Update to version 1.1.0 with tab_list timeout fixes and enhanced documentation

- Fixed tab_list timeout issue on Chrome by increasing content script timeout from 1s to 3s
- Updated all package.json and manifest files to version 1.1.0
- Set check_content_script default to false to avoid timeouts
- Enhanced DXT build script with comprehensive installation guide and GitHub repo links
- Fixed OpenDia logo path in README.md
- Updated tool examples and documentation to reflect timeout improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Aaron Elijah Mars
2025-07-20 23:43:30 +02:00
parent 0b09201160
commit daa4b55ee5
10 changed files with 70 additions and 38 deletions

View File

@@ -358,7 +358,7 @@ async function getTabContentScriptStatus(tabId) {
}
const response = await new Promise((resolve, reject) => {
const timeout = setTimeout(() => resolve(null), 1000);
const timeout = setTimeout(() => resolve(null), 3000); // Increase to 3 seconds
browser.tabs.sendMessage(tabId, { action: 'ping' }, (response) => {
clearTimeout(timeout);
resolve(response);
@@ -382,12 +382,12 @@ function getAvailableTools() {
/*
🎯 BACKGROUND TAB WORKFLOW GUIDE:
1. DISCOVER TABS: Use tab_list with check_content_script=true to see all tabs and their IDs
1. DISCOVER TABS: Use tab_list with check_content_script=false to see all tabs and their IDs
2. TARGET SPECIFIC TABS: Add tab_id parameter to any tool to work on background tabs
3. MULTI-TAB OPERATIONS: Process multiple tabs without switching between them
Example Multi-Tab Workflow:
- tab_list({check_content_script: true}) → Get tab IDs and readiness status
- tab_list({check_content_script: false}) → Get tab IDs quickly
- page_analyze({intent_hint: "article", tab_id: 12345}) → Analyze background research tab
- page_extract_content({content_type: "article", tab_id: 12345}) → Extract content without switching
- get_selected_text({tab_id: 67890}) → Get quotes from another background tab
@@ -689,8 +689,8 @@ function getAvailableTools() {
inputSchema: {
type: "object",
examples: [
{ check_content_script: true }, // RECOMMENDED: Check which tabs are ready for background operations
{ current_window_only: false, check_content_script: true } // Check all tabs across windows
{ check_content_script: false }, // RECOMMENDED: Default false to avoid timeouts
{ current_window_only: false, check_content_script: false } // Get all tabs across windows
],
properties: {
current_window_only: {