@ashx-j/lunr 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/LICENSE +22 -0
- package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -1
- package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts +11 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +6 -10
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/lunr-cron.d.ts +4 -5
- package/dist/builtin-extensions/lunr-cron.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-cron.js +94 -108
- package/dist/builtin-extensions/lunr-cron.js.map +1 -1
- package/dist/builtin-extensions/lunr-local-providers/local-servers.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-local-providers/local-servers.js +3 -1
- package/dist/builtin-extensions/lunr-local-providers/local-servers.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/commands.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/commands.js +2 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/commands.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/runtime.js +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +2 -2
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.js +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js +1 -15
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.d.ts +6 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.js +187 -132
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.d.ts +8 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.js +142 -112
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.d.ts +12 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.js +14 -7
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.d.ts +11 -3
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.js +67 -41
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.d.ts +4 -2
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.js +3 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/commands.d.ts +2 -1
- package/dist/builtin-extensions/pi-mcp-adapter/commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/commands.js +6 -6
- package/dist/builtin-extensions/pi-mcp-adapter/commands.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/config.d.ts +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/config.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/config.js +11 -5
- package/dist/builtin-extensions/pi-mcp-adapter/config.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js +2 -2
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/host-html-template.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/host-html-template.js +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/host-html-template.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js +48 -40
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js +3 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.d.ts +12 -40
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.js +166 -235
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.d.ts +5 -0
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.js +43 -13
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.d.ts +14 -3
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.js +73 -21
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/proxy-modes.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/proxy-modes.js +4 -4
- package/dist/builtin-extensions/pi-mcp-adapter/proxy-modes.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +2 -2
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/state.d.ts +2 -0
- package/dist/builtin-extensions/pi-mcp-adapter/state.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/state.js.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.js +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.js.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/models.d.ts +11 -5
- package/dist/builtin-extensions/pi-ollama-cloud/models.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/models.js +12 -32
- package/dist/builtin-extensions/pi-ollama-cloud/models.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/index.js +5 -3
- package/dist/builtin-extensions/pi-prompt-template-model/index.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts +2 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js +21 -12
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js +7 -24
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +39 -77
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js +15 -31
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js +7 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +10 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +8 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +106 -24
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +25 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +7 -8
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js +60 -32
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.js +15 -5
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js +4 -3
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +17 -8
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js +3 -3
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js.map +1 -1
- package/dist/builtin-extensions/pi-tps.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-tps.js +20 -17
- package/dist/builtin-extensions/pi-tps.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/activity.d.ts +1 -0
- package/dist/builtin-extensions/pi-web-access/activity.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/activity.js +27 -5
- package/dist/builtin-extensions/pi-web-access/activity.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/bounded-body.d.ts +3 -0
- package/dist/builtin-extensions/pi-web-access/bounded-body.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/bounded-body.js +43 -0
- package/dist/builtin-extensions/pi-web-access/bounded-body.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/content-page.d.ts +24 -0
- package/dist/builtin-extensions/pi-web-access/content-page.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/content-page.js +57 -0
- package/dist/builtin-extensions/pi-web-access/content-page.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.js +7 -2
- package/dist/builtin-extensions/pi-web-access/extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts +0 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.js +147 -36
- package/dist/builtin-extensions/pi-web-access/github-extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.js +48 -73
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts +12 -4
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js +35 -12
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/storage.d.ts +9 -6
- package/dist/builtin-extensions/pi-web-access/storage.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/storage.js +36 -24
- package/dist/builtin-extensions/pi-web-access/storage.js.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.d.ts +1 -1
- package/dist/builtin-extensions/simple-pi-memory.d.ts.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.js +1 -1
- package/dist/builtin-extensions/simple-pi-memory.js.map +1 -1
- package/dist/cli/install-cli.d.ts.map +1 -1
- package/dist/cli/install-cli.js +38 -30
- package/dist/cli/install-cli.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +13 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +75 -11
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +1 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +1 -0
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +40 -6
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +309 -76
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/browser/runtime.d.ts +2 -0
- package/dist/core/browser/runtime.d.ts.map +1 -1
- package/dist/core/browser/runtime.js +80 -45
- package/dist/core/browser/runtime.js.map +1 -1
- package/dist/core/browser/setup.d.ts.map +1 -1
- package/dist/core/browser/setup.js +12 -1
- package/dist/core/browser/setup.js.map +1 -1
- package/dist/core/computer-use/adapter.d.ts.map +1 -1
- package/dist/core/computer-use/adapter.js +7 -2
- package/dist/core/computer-use/adapter.js.map +1 -1
- package/dist/core/computer-use/image.d.ts.map +1 -1
- package/dist/core/computer-use/image.js +17 -5
- package/dist/core/computer-use/image.js.map +1 -1
- package/dist/core/computer-use/schemas.d.ts.map +1 -1
- package/dist/core/computer-use/schemas.js +23 -6
- package/dist/core/computer-use/schemas.js.map +1 -1
- package/dist/core/computer-use/workflow.d.ts.map +1 -1
- package/dist/core/computer-use/workflow.js +459 -119
- package/dist/core/computer-use/workflow.js.map +1 -1
- package/dist/core/cron/jobs.d.ts +26 -8
- package/dist/core/cron/jobs.d.ts.map +1 -1
- package/dist/core/cron/jobs.js +357 -232
- package/dist/core/cron/jobs.js.map +1 -1
- package/dist/core/cron/origin-context.d.ts +1 -0
- package/dist/core/cron/origin-context.d.ts.map +1 -1
- package/dist/core/cron/origin-context.js.map +1 -1
- package/dist/core/cron/scheduler.d.ts +22 -17
- package/dist/core/cron/scheduler.d.ts.map +1 -1
- package/dist/core/cron/scheduler.js +153 -73
- package/dist/core/cron/scheduler.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +8 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +8 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts +4 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +22 -1
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/large-subagent-launch.d.ts +1 -1
- package/dist/core/large-subagent-launch.d.ts.map +1 -1
- package/dist/core/large-subagent-launch.js +7 -7
- package/dist/core/large-subagent-launch.js.map +1 -1
- package/dist/core/model-registry.d.ts +2 -0
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +5 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-runtime.d.ts +4 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +40 -4
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/permissions.d.ts +3 -3
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +11 -35
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts +5 -13
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +126 -116
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/prompt-resource-bridge.d.ts +12 -0
- package/dist/core/prompt-resource-bridge.d.ts.map +1 -0
- package/dist/core/prompt-resource-bridge.js +9 -0
- package/dist/core/prompt-resource-bridge.js.map +1 -0
- package/dist/core/protected-targets.d.ts +6 -0
- package/dist/core/protected-targets.d.ts.map +1 -0
- package/dist/core/protected-targets.js +45 -0
- package/dist/core/protected-targets.js.map +1 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +7 -0
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/rollback.d.ts +19 -3
- package/dist/core/rollback.d.ts.map +1 -1
- package/dist/core/rollback.js +172 -56
- package/dist/core/rollback.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts +3 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +14 -1
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts +3 -0
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +6 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +95 -32
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-ownership.d.ts.map +1 -1
- package/dist/core/session-ownership.js +8 -3
- package/dist/core/session-ownership.js.map +1 -1
- package/dist/core/session-retention.d.ts.map +1 -1
- package/dist/core/session-retention.js +18 -7
- package/dist/core/session-retention.js.map +1 -1
- package/dist/core/session-startup-settings.d.ts +10 -0
- package/dist/core/session-startup-settings.d.ts.map +1 -0
- package/dist/core/session-startup-settings.js +70 -0
- package/dist/core/session-startup-settings.js.map +1 -0
- package/dist/core/subscriptions.d.ts +16 -7
- package/dist/core/subscriptions.d.ts.map +1 -1
- package/dist/core/subscriptions.js +96 -55
- package/dist/core/subscriptions.js.map +1 -1
- package/dist/core/trust-manager.d.ts +2 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +6 -1
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/update-check.d.ts.map +1 -1
- package/dist/core/update-check.js.map +1 -1
- package/dist/core/usage-adapters/kimi-coding.d.ts +2 -2
- package/dist/core/usage-adapters/kimi-coding.d.ts.map +1 -1
- package/dist/core/usage-adapters/kimi-coding.js +2 -2
- package/dist/core/usage-adapters/kimi-coding.js.map +1 -1
- package/dist/core/usage-adapters/openai-codex.d.ts +3 -2
- package/dist/core/usage-adapters/openai-codex.d.ts.map +1 -1
- package/dist/core/usage-adapters/openai-codex.js +3 -3
- package/dist/core/usage-adapters/openai-codex.js.map +1 -1
- package/dist/core/usage-adapters/xai.d.ts +2 -2
- package/dist/core/usage-adapters/xai.d.ts.map +1 -1
- package/dist/core/usage-adapters/xai.js +3 -3
- package/dist/core/usage-adapters/xai.js.map +1 -1
- package/dist/core/usage-adapters/zai.d.ts +2 -2
- package/dist/core/usage-adapters/zai.d.ts.map +1 -1
- package/dist/core/usage-adapters/zai.js +2 -2
- package/dist/core/usage-adapters/zai.js.map +1 -1
- package/dist/core/usage-service.d.ts +9 -2
- package/dist/core/usage-service.d.ts.map +1 -1
- package/dist/core/usage-service.js +95 -50
- package/dist/core/usage-service.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +9 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +91 -37
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/buttons.d.ts +8 -1
- package/dist/gateway/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +76 -18
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/commands.d.ts +1 -0
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +10 -4
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/cron.d.ts +12 -11
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +65 -56
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +2 -1
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts +1 -0
- package/dist/gateway/mobile-commands.d.ts.map +1 -1
- package/dist/gateway/mobile-commands.js +56 -14
- package/dist/gateway/mobile-commands.js.map +1 -1
- package/dist/gateway/presenter.d.ts +12 -2
- package/dist/gateway/presenter.d.ts.map +1 -1
- package/dist/gateway/presenter.js +73 -38
- package/dist/gateway/presenter.js.map +1 -1
- package/dist/gateway/router.d.ts +2 -2
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +17 -2
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts +2 -0
- package/dist/gateway/service.d.ts.map +1 -1
- package/dist/gateway/service.js +153 -0
- package/dist/gateway/service.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +86 -33
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +6 -4
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/copyable-text.js +3 -2
- package/dist/modes/interactive/components/copyable-text.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-editor.js +1 -1
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +96 -109
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/smooth-streaming.d.ts.map +1 -1
- package/dist/modes/interactive/smooth-streaming.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +2 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/node-runtime/{adapter-VFG7WNPX.js → adapter-247RTYLS.js} +4 -5
- package/dist/node-runtime/agent-session-services-KDMSPQDY.js +53 -0
- package/dist/node-runtime/{brave-UWDA3I22.js → brave-2AFFAXNN.js} +1 -1
- package/dist/node-runtime/{builtin-extensions-I2HIFEMY.js → builtin-extensions-OX6KELNX.js} +8 -7
- package/dist/node-runtime/{chunk-QH6YL7VK.js → chunk-252ZVPPF.js} +3 -3
- package/dist/node-runtime/{chunk-PCEW76PM.js → chunk-2OIPYKLZ.js} +6 -6
- package/dist/node-runtime/{chunk-XBWPBZBN.js → chunk-2SWW7KMW.js} +1 -1
- package/dist/node-runtime/{chunk-UQUCFAJ3.js → chunk-2VIW3IMF.js} +40 -7
- package/dist/node-runtime/{chunk-UOEDI7RP.js → chunk-4KNKQGHM.js} +2 -2
- package/dist/node-runtime/{chunk-FQMM2EZ2.js → chunk-64XTQNLA.js} +29 -7
- package/dist/node-runtime/{chunk-SPVDBUOS.js → chunk-6O3IW3IA.js} +2 -2
- package/dist/node-runtime/{chunk-5ZQXRPMC.js → chunk-6ZZHGUSA.js} +2 -2
- package/dist/node-runtime/chunk-A2WO6WIN.js +1197 -0
- package/dist/node-runtime/{chunk-WIF24I7G.js → chunk-APVM5NEU.js} +149 -144
- package/dist/node-runtime/{chunk-RCR3XAQY.js → chunk-AYHH7YSD.js} +177 -144
- package/dist/node-runtime/{chunk-LWYIVUGV.js → chunk-B2IBAXNX.js} +48 -31
- package/dist/node-runtime/{chunk-M3LZLQW2.js → chunk-BDRGN3L2.js} +1 -0
- package/dist/node-runtime/{chunk-GJ2RDBRL.js → chunk-BYC6RKCN.js} +4 -2
- package/dist/node-runtime/{chunk-UVWCDQYF.js → chunk-C3P6Q3B2.js} +455 -278
- package/dist/node-runtime/{chunk-SN2KSMPQ.js → chunk-DQSCFU7R.js} +13 -7
- package/dist/node-runtime/{chunk-4SBQAI4T.js → chunk-EBLAZVSA.js} +2058 -73
- package/dist/node-runtime/{chunk-2KIPT4HJ.js → chunk-EPR2F3GU.js} +68 -20
- package/dist/node-runtime/{chunk-CSFI6YXL.js → chunk-ES6PBSIE.js} +1 -1
- package/dist/node-runtime/{chunk-IF24A3FH.js → chunk-EVM653DD.js} +4 -4
- package/dist/node-runtime/{chunk-HTFRRDSF.js → chunk-F2SMQ6ES.js} +3 -2
- package/dist/node-runtime/chunk-F2V2F4ZG.js +114 -0
- package/dist/node-runtime/{chunk-IKU6Y7DL.js → chunk-FE3WZI7F.js} +9 -6
- package/dist/node-runtime/{chunk-GYIXXQAO.js → chunk-FIRA54AC.js} +2 -5
- package/dist/node-runtime/{chunk-6VYZ5UFP.js → chunk-FLGEEH27.js} +1 -1
- package/dist/node-runtime/{chunk-5EFIU3OM.js → chunk-FTKEZL27.js} +1 -1
- package/dist/node-runtime/{chunk-RGQAEOM5.js → chunk-FYIFPFXE.js} +23 -6
- package/dist/node-runtime/{chunk-HMBGROQK.js → chunk-GLDXBBL6.js} +3 -3
- package/dist/node-runtime/{chunk-KWA4OC2J.js → chunk-H6YBCWKG.js} +1 -1
- package/dist/node-runtime/{chunk-2MI5OPMN.js → chunk-HNNHHJAB.js} +68 -50
- package/dist/node-runtime/{chunk-I74LN5JG.js → chunk-HUD2RFJW.js} +2 -2
- package/dist/node-runtime/{chunk-I54LGHWM.js → chunk-I2H5QMWW.js} +3 -3
- package/dist/node-runtime/{chunk-XHIRAZ26.js → chunk-IAZSK7KK.js} +1 -1
- package/dist/node-runtime/{chunk-X3PGBLQ7.js → chunk-IHHTWSXN.js} +9 -9
- package/dist/node-runtime/{chunk-DAPBPCBP.js → chunk-IPP5BIV5.js} +25 -3
- package/dist/node-runtime/{chunk-QFWG2RVL.js → chunk-IXG6F4NT.js} +11 -0
- package/dist/node-runtime/{chunk-RDDAZOMU.js → chunk-JL4HYQXK.js} +1 -1
- package/dist/node-runtime/{chunk-CDVHZOOK.js → chunk-JQYNHAKX.js} +1 -1
- package/dist/node-runtime/{chunk-L24TPBS4.js → chunk-JWEVT363.js} +37 -29
- package/dist/node-runtime/{chunk-2HMIRK7W.js → chunk-LHV3V67B.js} +5 -5
- package/dist/node-runtime/{chunk-UAEOTO52.js → chunk-MNQXDFPV.js} +6 -2
- package/dist/node-runtime/{chunk-T4DA4XE7.js → chunk-MQPKUHRN.js} +162 -82
- package/dist/node-runtime/{chunk-MPKSOJBT.js → chunk-NHATCSOI.js} +4 -7
- package/dist/node-runtime/{chunk-RMQZU2YU.js → chunk-NNNR3QIY.js} +1 -1
- package/dist/node-runtime/{chunk-RWTKOC3B.js → chunk-QBTJG3UM.js} +1 -1
- package/dist/node-runtime/{chunk-P7XBVXGT.js → chunk-QNVMKNNN.js} +18 -14
- package/dist/node-runtime/{chunk-GS42T6MX.js → chunk-QW3AAHWN.js} +1 -1
- package/dist/node-runtime/{chunk-DVQSHCVP.js → chunk-R4WSB2MQ.js} +5 -5
- package/dist/node-runtime/{chunk-B4HP6ZWM.js → chunk-RHCGYWO7.js} +1 -1
- package/dist/node-runtime/{chunk-2CFDTH5B.js → chunk-RLGY2QIL.js} +45 -59
- package/dist/node-runtime/{chunk-KKUTQQV7.js → chunk-RYRGL7P4.js} +1 -1
- package/dist/node-runtime/{chunk-5Q4A37RB.js → chunk-TCT6PCUR.js} +32 -11
- package/dist/node-runtime/{chunk-D5UCKPBQ.js → chunk-UBWW2PID.js} +1 -1
- package/dist/node-runtime/{chunk-E75WFZ33.js → chunk-UNUZICC4.js} +3 -3
- package/dist/node-runtime/{chunk-RAK2QA2B.js → chunk-UYRKUKFE.js} +4 -4
- package/dist/node-runtime/{chunk-LWJXTA6Z.js → chunk-VSUEAI7O.js} +1377 -45
- package/dist/node-runtime/{chunk-NAY6UUQZ.js → chunk-WDIVLMOH.js} +1 -1
- package/dist/node-runtime/{chunk-E24EO34J.js → chunk-WPXUR3HE.js} +1 -1
- package/dist/node-runtime/{chunk-SLVOAQOY.js → chunk-WXYNALHD.js} +113 -1
- package/dist/node-runtime/{chunk-KJ6DWS3K.js → chunk-XEOCUEUJ.js} +121 -60
- package/dist/node-runtime/chunk-YD3IZAZ7.js +47 -0
- package/dist/node-runtime/chunk-YSB6URMT.js +41 -0
- package/dist/node-runtime/{chunk-LJTIVM7I.js → chunk-ZDJUR45D.js} +427 -126
- package/dist/node-runtime/{chunk-YWOJIGFY.js → chunk-ZEVFBFNF.js} +95 -142
- package/dist/node-runtime/{chunk-5B6VKFEV.js → chunk-ZIQUS5QO.js} +1 -1
- package/dist/node-runtime/cli-runtime.js +4 -4
- package/dist/node-runtime/{command-FSBU2EVZ.js → command-3HMSY6W2.js} +5 -5
- package/dist/node-runtime/{commands-EMBQQVVT.js → commands-D6A6H4TS.js} +11 -18
- package/dist/node-runtime/{commands-NAAL7KNT.js → commands-OCSSEEWJ.js} +16 -16
- package/dist/node-runtime/{config-QDD5PUE2.js → config-CU7M7BTK.js} +1 -1
- package/dist/node-runtime/{config-D4QUPAHX.js → config-DS7XLMEM.js} +2 -2
- package/dist/node-runtime/{direct-tool-executor-4D7UXYU4.js → direct-tool-executor-2QJXVQD2.js} +6 -11
- package/dist/node-runtime/{exa-LL64QZR2.js → exa-6VBZNPGE.js} +1 -1
- package/dist/node-runtime/{export-html-VM4J2MNR.js → export-html-BRWF5AHI.js} +4 -4
- package/dist/node-runtime/{extension-input-E7BJZ35H.js → extension-input-VBBMX7YV.js} +5 -5
- package/dist/node-runtime/{extension-selector-WU42XDTU.js → extension-selector-T5AOG5XB.js} +5 -5
- package/dist/node-runtime/{extract-EQJE7FZZ.js → extract-BFX2N35A.js} +3 -3
- package/dist/node-runtime/{gateway-DQM333YV.js → gateway-6623C2U3.js} +51 -42
- package/dist/node-runtime/{gemini-search-35OCRFLN.js → gemini-search-C66QHDT6.js} +2 -2
- package/dist/node-runtime/{gemini-url-context-UQY3PHHW.js → gemini-url-context-T7DEK73R.js} +3 -3
- package/dist/node-runtime/{github-extract-F64RZOEA.js → github-extract-HOGE3D6F.js} +107 -38
- package/dist/node-runtime/{goal-NJEE5CTU.js → goal-AIHEDUYA.js} +5 -5
- package/dist/node-runtime/index.js +50 -48
- package/dist/node-runtime/{init-P5AUV77I.js → init-JBQJIPYI.js} +3 -6
- package/dist/node-runtime/{install-cli-NN4YAU44.js → install-cli-INGHIVBY.js} +30 -25
- package/dist/node-runtime/interactive-mode-FM5DNUSW.js +74 -0
- package/dist/node-runtime/{interactive-view-NGFAMHPW.js → interactive-view-K33PM4OS.js} +8 -8
- package/dist/node-runtime/{lsp-manager-3ASUSO4T.js → lsp-manager-S554V5HR.js} +240 -155
- package/dist/node-runtime/{lunr-browser-IR7TL3J7.js → lunr-browser-H4FDOR3C.js} +7 -7
- package/dist/node-runtime/{lunr-computer-use-Y23CCDIJ.js → lunr-computer-use-VDP2QNRQ.js} +9 -9
- package/dist/node-runtime/{lunr-cron-USHC4LXH.js → lunr-cron-LKVA5CZZ.js} +93 -80
- package/dist/node-runtime/main.js +42 -41
- package/dist/node-runtime/{mobile-commands-O5LCHL32.js → mobile-commands-XT3NQXLD.js} +12 -12
- package/dist/node-runtime/{model-runtime-OO5HFLWE.js → model-runtime-MZ2JMDV4.js} +4 -4
- package/dist/node-runtime/{openai-search-B3MSNCQA.js → openai-search-K72LJDYN.js} +1 -1
- package/dist/node-runtime/{package-manager-cli-Q7BL6KZO.js → package-manager-cli-CYM262SI.js} +20 -20
- package/dist/node-runtime/{parallel-AI2MNSCU.js → parallel-X724NCNU.js} +1 -1
- package/dist/node-runtime/{perplexity-QVJW3I35.js → perplexity-RDHQHVMK.js} +2 -2
- package/dist/node-runtime/{pi-intercom-QM53RLTS.js → pi-intercom-NHHEPBMI.js} +2 -2
- package/dist/node-runtime/{pi-mcp-adapter-3PHF4KZ4.js → pi-mcp-adapter-PP3GQJQ2.js} +98 -94
- package/dist/node-runtime/{pi-ollama-cloud-2F3Y2QNM.js → pi-ollama-cloud-4MNWIMFN.js} +11 -24
- package/dist/node-runtime/{pi-prompt-template-model-QWTCGLJU.js → pi-prompt-template-model-FTGELLS5.js} +32 -36
- package/dist/node-runtime/{pi-subagents-7IBSSGEW.js → pi-subagents-LT3CTO4E.js} +98 -106
- package/dist/node-runtime/{pi-web-access-WTGMNZ32.js → pi-web-access-Z3LP246C.js} +144 -108
- package/dist/node-runtime/{print-mode-XQ76CYMT.js → print-mode-2XHN5SUA.js} +3 -3
- package/dist/node-runtime/{process-registry-4FAKZQOL.js → process-registry-Q4QWIU33.js} +3 -3
- package/dist/node-runtime/{proxy-modes-5FAPSZEZ.js → proxy-modes-VEGC6QG5.js} +8 -15
- package/dist/node-runtime/rpc-entry.js +42 -41
- package/dist/node-runtime/{rpc-mode-O3XV4SID.js → rpc-mode-32DHJPEJ.js} +4 -4
- package/dist/node-runtime/{runtime-4VA6JKNF.js → runtime-EDUUGAQD.js} +56 -46
- package/dist/node-runtime/{runtime-EFPPD2UW.js → runtime-UGXM4NPQ.js} +2 -2
- package/dist/node-runtime/{runtime-bridges-7WVCLI76.js → runtime-bridges-DNKMNJCF.js} +7 -7
- package/dist/node-runtime/{service-MDQIPQ26.js → service-IHLGFLBT.js} +6 -4
- package/dist/node-runtime/{session-handoff-GWARVEWT.js → session-handoff-LNSPDTKY.js} +4 -4
- package/dist/node-runtime/{session-manager-JB5J6XBN.js → session-manager-YIFIAVGC.js} +3 -3
- package/dist/node-runtime/{session-selector-GIM4DHQ2.js → session-selector-I73U3EIO.js} +7 -7
- package/dist/node-runtime/{settings-manager-DJDM5AHM.js → settings-manager-P2TKGYTR.js} +5 -5
- package/dist/node-runtime/{setup-JBKOLJ6F.js → setup-H7CCELIL.js} +15 -1
- package/dist/node-runtime/{setup-PFBWRNUI.js → setup-OLQ4GXWS.js} +17 -17
- package/dist/node-runtime/{src-IVPNZ2BX.js → src-6RV4PXKJ.js} +64 -36
- package/dist/node-runtime/{subagent-executor-LPZ4BHWE.js → subagent-executor-Q5F7DBVM.js} +119 -58
- package/dist/node-runtime/{tavily-WEZFVFP7.js → tavily-KZBFYQB6.js} +1 -1
- package/dist/node-runtime/{theme-UOO5RVFN.js → theme-YLVZKKZD.js} +2 -2
- package/dist/node-runtime/{trust-manager-MMISNCYO.js → trust-manager-ZCU76D23.js} +2 -2
- package/dist/node-runtime/{update-cli-HNMOTNGX.js → update-cli-F3XXJANQ.js} +6 -6
- package/dist/node-runtime/{usage-service-LFB2SWYV.js → usage-service-CPAGBED5.js} +1 -1
- package/dist/node-runtime/{video-extract-OOZHR7SU.js → video-extract-UPKYIBW3.js} +3 -3
- package/dist/node-runtime/{workflow-OHPBEFO4.js → workflow-ICDI4N3J.js} +208 -78
- package/dist/node-runtime/{youtube-extract-FNPAUNHU.js → youtube-extract-77NT7FWH.js} +4 -4
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/exif-orientation.d.ts.map +1 -1
- package/dist/utils/exif-orientation.js +25 -10
- package/dist/utils/exif-orientation.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +2 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/paths.d.ts +4 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +33 -2
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/sanitize-terminal-text.d.ts +7 -0
- package/dist/utils/sanitize-terminal-text.d.ts.map +1 -0
- package/dist/utils/sanitize-terminal-text.js +67 -0
- package/dist/utils/sanitize-terminal-text.js.map +1 -0
- package/docs/browser.md +1 -1
- package/docs/custom-provider.md +3 -3
- package/docs/extensions.md +8 -4
- package/docs/features.md +15 -7
- package/docs/keybindings.md +1 -1
- package/docs/models.md +5 -5
- package/docs/packages.md +1 -1
- package/docs/providers.md +2 -2
- package/docs/rpc.md +7 -7
- package/docs/security.md +10 -5
- package/docs/sessions.md +2 -2
- package/docs/skills.md +1 -1
- package/docs/terminal-setup.md +7 -7
- package/docs/themes.md +1 -1
- package/docs/usage.md +1 -1
- package/examples/extensions/auto-commit-on-exit.ts +1 -1
- package/examples/extensions/bash-spawn-hook.ts +1 -1
- package/examples/extensions/built-in-tool-renderer.ts +1 -1
- package/examples/extensions/claude-rules.ts +1 -1
- package/examples/extensions/commands.ts +1 -1
- package/examples/extensions/custom-compaction.ts +1 -1
- package/examples/extensions/custom-provider-anthropic/index.ts +3 -3
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/doom-overlay/index.ts +1 -1
- package/examples/extensions/git-merge-and-resolve.ts +2 -2
- package/examples/extensions/gondolin/index.ts +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/hidden-thinking-label.ts +1 -1
- package/examples/extensions/inline-bash.ts +2 -2
- package/examples/extensions/input-transform-streaming.ts +2 -2
- package/examples/extensions/input-transform.ts +2 -2
- package/examples/extensions/interactive-shell.ts +1 -1
- package/examples/extensions/kimi-deferred-tools.ts +1 -1
- package/examples/extensions/mac-system-theme.ts +1 -1
- package/examples/extensions/minimal-mode.ts +1 -1
- package/examples/extensions/modal-editor.ts +1 -1
- package/examples/extensions/model-status.ts +1 -1
- package/examples/extensions/notify.ts +3 -3
- package/examples/extensions/overlay-qa-tests.ts +1 -1
- package/examples/extensions/overlay-test.ts +1 -1
- package/examples/extensions/pirate.ts +1 -1
- package/examples/extensions/preset.ts +3 -3
- package/examples/extensions/project-trust.ts +4 -4
- package/examples/extensions/prompt-customizer.ts +1 -1
- package/examples/extensions/rainbow-editor.ts +1 -1
- package/examples/extensions/rpc-demo.ts +1 -1
- package/examples/extensions/sandbox/index.ts +7 -7
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/shutdown-command.ts +5 -5
- package/examples/extensions/ssh.ts +2 -2
- package/examples/extensions/subagent/README.md +3 -3
- package/examples/extensions/subagent/index.ts +2 -2
- package/examples/extensions/titlebar-spinner.ts +1 -1
- package/examples/extensions/tool-override.ts +1 -1
- package/examples/extensions/tools.ts +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/extensions/working-indicator.ts +1 -1
- package/examples/extensions/working-message-test.ts +1 -1
- package/examples/sdk/01-minimal.ts +1 -1
- package/examples/sdk/03-custom-prompt.ts +1 -1
- package/examples/sdk/04-skills.ts +1 -1
- package/examples/sdk/06-extensions.ts +2 -2
- package/examples/sdk/08-prompt-templates.ts +1 -1
- package/install-lock/package-lock.json +24 -24
- package/install-lock/package.json +2 -2
- package/npm-shrinkwrap.json +60 -24
- package/package.json +9 -9
- package/dist/modes/interactive/components/exit-card.d.ts +0 -22
- package/dist/modes/interactive/components/exit-card.d.ts.map +0 -1
- package/dist/modes/interactive/components/exit-card.js +0 -69
- package/dist/modes/interactive/components/exit-card.js.map +0 -1
- package/dist/node-runtime/agent-session-services-5YXS2PLF.js +0 -51
- package/dist/node-runtime/chunk-2IDTZAG5.js +0 -1415
- package/dist/node-runtime/chunk-3MISGG4S.js +0 -769
- package/dist/node-runtime/chunk-4HXHDDCF.js +0 -16
- package/dist/node-runtime/chunk-5B5QN3ZQ.js +0 -356
- package/dist/node-runtime/chunk-7IQGBKBJ.js +0 -2033
- package/dist/node-runtime/chunk-AUXVGBO4.js +0 -19
- package/dist/node-runtime/chunk-PTFBPO3C.js +0 -50
- package/dist/node-runtime/interactive-mode-YOHZVMKX.js +0 -74
- package/dist/node-runtime/mcp-auth-flow-QVLFVLEO.js +0 -33
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
createWebSession,
|
|
4
|
+
getWebSession,
|
|
5
|
+
runSessionCleanups,
|
|
6
|
+
runWithWebSession
|
|
7
|
+
} from "./chunk-YD3IZAZ7.js";
|
|
5
8
|
import {
|
|
6
9
|
loadEnabledModelPatterns,
|
|
7
10
|
modelMatchesEnabledPatterns
|
|
@@ -22,10 +25,8 @@ import {
|
|
|
22
25
|
loadPerplexity,
|
|
23
26
|
loadSummaryReview,
|
|
24
27
|
loadTavily
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import
|
|
27
|
-
activityMonitor
|
|
28
|
-
} from "./chunk-DAPBPCBP.js";
|
|
28
|
+
} from "./chunk-WDIVLMOH.js";
|
|
29
|
+
import "./chunk-IPP5BIV5.js";
|
|
29
30
|
import {
|
|
30
31
|
getWebSearchConfigDir,
|
|
31
32
|
getWebSearchConfigPath
|
|
@@ -34,9 +35,14 @@ import {
|
|
|
34
35
|
GroupedCallText,
|
|
35
36
|
toolGroupTree,
|
|
36
37
|
toolStatusDotFromContext
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import
|
|
39
|
-
|
|
38
|
+
} from "./chunk-6ZZHGUSA.js";
|
|
39
|
+
import {
|
|
40
|
+
DEFAULT_MAX_BYTES,
|
|
41
|
+
DEFAULT_MAX_LINES,
|
|
42
|
+
truncateHead
|
|
43
|
+
} from "./chunk-53YJI7JU.js";
|
|
44
|
+
import "./chunk-ES6PBSIE.js";
|
|
45
|
+
import "./chunk-64XTQNLA.js";
|
|
40
46
|
import "./chunk-Q4Q6D4IY.js";
|
|
41
47
|
import "./chunk-BRJX2PRC.js";
|
|
42
48
|
|
|
@@ -45,6 +51,47 @@ import { Box, Text, truncateToWidth } from "@ashx-j/lunr-tui";
|
|
|
45
51
|
import { Type } from "typebox";
|
|
46
52
|
import { StringEnum, complete } from "@ashx-j/lunr-ai/compat";
|
|
47
53
|
|
|
54
|
+
// packages/coding-agent/dist/builtin-extensions/pi-web-access/content-page.js
|
|
55
|
+
function utf8Prefix(bytes, limit) {
|
|
56
|
+
let end = Math.min(limit, bytes.length);
|
|
57
|
+
for (; end > 0 && end < bytes.length && (bytes[end] & 192) === 128; )
|
|
58
|
+
end--;
|
|
59
|
+
return bytes.subarray(0, end).toString("utf8");
|
|
60
|
+
}
|
|
61
|
+
function contentPage(text, offset = 0, details = {}) {
|
|
62
|
+
let bytes = Buffer.from(text, "utf8");
|
|
63
|
+
if (!Number.isSafeInteger(offset) || offset < 0 || offset > bytes.length || offset < bytes.length && (bytes[offset] & 192) === 128)
|
|
64
|
+
return {
|
|
65
|
+
content: [
|
|
66
|
+
{
|
|
67
|
+
type: "text",
|
|
68
|
+
text: "Invalid offset. Use 0 or the nextOffset returned by the previous page."
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
details: { error: "Invalid offset" }
|
|
72
|
+
};
|
|
73
|
+
let remaining = bytes.subarray(offset).toString("utf8"), page = truncateHead(remaining, {
|
|
74
|
+
maxBytes: 50944,
|
|
75
|
+
maxLines: 1997
|
|
76
|
+
}), body = page.firstLineExceedsLimit ? utf8Prefix(bytes.subarray(offset), 50944) : page.content, end = offset + Buffer.byteLength(body, "utf8"), truncated = end < bytes.length, notice = truncated ? `
|
|
77
|
+
|
|
78
|
+
[Truncated. Continue with the same responseId and selectors, offset: ${end}.]` : "", metadata = Object.fromEntries(Object.entries(details).map(([key, value]) => [
|
|
79
|
+
key,
|
|
80
|
+
typeof value == "string" ? utf8Prefix(Buffer.from(value, "utf8"), 512) : value
|
|
81
|
+
]));
|
|
82
|
+
return {
|
|
83
|
+
content: [{ type: "text", text: body + notice }],
|
|
84
|
+
details: {
|
|
85
|
+
...metadata,
|
|
86
|
+
offset,
|
|
87
|
+
nextOffset: truncated ? end : null,
|
|
88
|
+
truncated,
|
|
89
|
+
totalBytes: bytes.length,
|
|
90
|
+
pageBytes: end - offset
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
48
95
|
// packages/coding-agent/dist/builtin-extensions/pi-web-access/fetch-params.js
|
|
49
96
|
function normalizeFetchContentParams(params) {
|
|
50
97
|
let normalizedUrls = uniqueUrls(normalizeUrlArray(params.urls)), urlList = normalizedUrls.length > 0 ? normalizedUrls : normalizeSingleUrl(params.url), prompt = normalizeOptionalString(params.prompt), timestamp = normalizeOptionalString(params.timestamp), frames = normalizeOptionalInteger(params.frames), shouldIncludeFrames = frames !== void 0 && (timestamp !== void 0 || frames > 1);
|
|
@@ -80,39 +127,49 @@ function uniqueUrls(urls) {
|
|
|
80
127
|
}
|
|
81
128
|
|
|
82
129
|
// packages/coding-agent/dist/builtin-extensions/pi-web-access/storage.js
|
|
83
|
-
var storedResults = /* @__PURE__ */ new Map();
|
|
84
130
|
function generateId() {
|
|
85
131
|
return Date.now().toString(36) + Math.random().toString(36).slice(2, 8);
|
|
86
132
|
}
|
|
87
|
-
function storeResult(id, data) {
|
|
88
|
-
storedResults.set(id, data);
|
|
89
|
-
}
|
|
90
|
-
function getResult(id) {
|
|
91
|
-
return storedResults.get(id) ?? null;
|
|
92
|
-
}
|
|
93
|
-
function getAllResults() {
|
|
94
|
-
return Array.from(storedResults.values());
|
|
95
|
-
}
|
|
96
|
-
function deleteResult(id) {
|
|
97
|
-
return storedResults.delete(id);
|
|
98
|
-
}
|
|
99
|
-
function clearResults() {
|
|
100
|
-
storedResults.clear();
|
|
101
|
-
}
|
|
102
133
|
function isValidStoredData(data) {
|
|
103
134
|
if (!data || typeof data != "object")
|
|
104
135
|
return !1;
|
|
105
136
|
let d = data;
|
|
106
137
|
return !(typeof d.id != "string" || !d.id || d.type !== "search" && d.type !== "fetch" || typeof d.timestamp != "number" || d.type === "search" && !Array.isArray(d.queries) || d.type === "fetch" && !Array.isArray(d.urls));
|
|
107
138
|
}
|
|
108
|
-
function
|
|
109
|
-
storedResults
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
139
|
+
function createResultStore() {
|
|
140
|
+
let storedResults = /* @__PURE__ */ new Map();
|
|
141
|
+
function storeResult(id, data) {
|
|
142
|
+
storedResults.set(id, data);
|
|
143
|
+
}
|
|
144
|
+
function getResult(id) {
|
|
145
|
+
return storedResults.get(id) ?? null;
|
|
146
|
+
}
|
|
147
|
+
function getAllResults() {
|
|
148
|
+
return Array.from(storedResults.values());
|
|
149
|
+
}
|
|
150
|
+
function deleteResult(id) {
|
|
151
|
+
return storedResults.delete(id);
|
|
152
|
+
}
|
|
153
|
+
function clearResults() {
|
|
154
|
+
storedResults.clear();
|
|
155
|
+
}
|
|
156
|
+
function restoreFromSession(ctx2) {
|
|
157
|
+
storedResults.clear();
|
|
158
|
+
let now = Date.now();
|
|
159
|
+
for (let entry of ctx2.sessionManager.getBranch())
|
|
160
|
+
if (entry.type === "custom" && entry.customType === "web-search-results") {
|
|
161
|
+
let data = entry.data;
|
|
162
|
+
isValidStoredData(data) && now - data.timestamp < 36e5 && storedResults.set(data.id, data);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
storeResult,
|
|
167
|
+
getResult,
|
|
168
|
+
getAllResults,
|
|
169
|
+
deleteResult,
|
|
170
|
+
clearResults,
|
|
171
|
+
restoreFromSession
|
|
172
|
+
};
|
|
116
173
|
}
|
|
117
174
|
|
|
118
175
|
// packages/coding-agent/dist/builtin-extensions/pi-web-access/index.js
|
|
@@ -460,6 +517,10 @@ function formatEntryLine(entry, theme) {
|
|
|
460
517
|
return entry.error ? (statusStr = "err", indicator = theme.fg("error", "\u2717")) : entry.status === null ? (statusStr = "...", indicator = theme.fg("warning", "\u22EF")) : entry.status === 0 ? (statusStr = "abort", indicator = theme.fg("muted", "\u25CB")) : (statusStr = String(entry.status), indicator = entry.status >= 200 && entry.status < 300 ? theme.fg("success", "\u2713") : theme.fg("error", "\u2717")), `${typeStr.padEnd(4)} ${target.padEnd(32)} ${statusStr.padStart(5)} ${duration.padStart(5)} ${indicator}`;
|
|
461
518
|
}
|
|
462
519
|
function pi_web_access_default(pi) {
|
|
520
|
+
let { clearResults, deleteResult, getAllResults, getResult, restoreFromSession, storeResult } = createResultStore(), webSession = createWebSession();
|
|
521
|
+
function registerWebTool(tool) {
|
|
522
|
+
pi.registerTool({ ...tool, execute: (...args) => runWithWebSession(webSession, () => tool.execute(...args)) });
|
|
523
|
+
}
|
|
463
524
|
let initConfig = loadConfigForExtensionInit(), curateKey = initConfig.shortcuts?.curate || DEFAULT_SHORTCUTS.curate, activityKey = initConfig.shortcuts?.activity || DEFAULT_SHORTCUTS.activity, pendingFetches = /* @__PURE__ */ new Map(), pendingCurates = /* @__PURE__ */ new Map(), activeCurators = /* @__PURE__ */ new Map(), glimpseWins = /* @__PURE__ */ new Map(), sessionActive = !1, widgetVisible = !1, widgetUnsubscribe = null, sessionGeneration = 0, sessionAbort = new AbortController();
|
|
464
525
|
function abortPendingFetches() {
|
|
465
526
|
for (let controller of pendingFetches.values())
|
|
@@ -503,34 +564,36 @@ function pi_web_access_default(pi) {
|
|
|
503
564
|
activeCurators.clear();
|
|
504
565
|
}
|
|
505
566
|
function updateWidget(ctx2) {
|
|
506
|
-
let theme = ctx2.ui.theme, entries =
|
|
567
|
+
let theme = ctx2.ui.theme, entries = webSession.activity.getEntries(), lines = [];
|
|
507
568
|
if (lines.push(theme.fg("accent", "\u2500\u2500\u2500 Web Search Activity " + "\u2500".repeat(36))), entries.length === 0)
|
|
508
569
|
lines.push(theme.fg("muted", " No activity yet"));
|
|
509
570
|
else
|
|
510
571
|
for (let entry of entries)
|
|
511
572
|
lines.push(" " + formatEntryLine(entry, theme));
|
|
512
573
|
lines.push(theme.fg("accent", "\u2500".repeat(60)));
|
|
513
|
-
let rateInfo =
|
|
574
|
+
let rateInfo = webSession.activity.getRateLimitInfo(), resetMs = rateInfo.oldestTimestamp ? Math.max(0, rateInfo.oldestTimestamp + rateInfo.windowMs - Date.now()) : 0, resetSec = Math.ceil(resetMs / 1e3);
|
|
514
575
|
lines.push(theme.fg("muted", `Rate: ${rateInfo.used}/${rateInfo.max}`) + (resetMs > 0 ? theme.fg("dim", ` (resets in ${resetSec}s)`) : "")), ctx2.ui.setWidget("web-activity", new Text(lines.join(`
|
|
515
576
|
`), 0, 0));
|
|
516
577
|
}
|
|
517
|
-
function handleSessionChange(ctx2) {
|
|
518
|
-
abortPendingFetches(), closeCurator()
|
|
578
|
+
async function handleSessionChange(ctx2) {
|
|
579
|
+
abortPendingFetches(), closeCurator();
|
|
580
|
+
let cleanup = runSessionCleanups(webSession);
|
|
581
|
+
webSession = createWebSession(), sessionActive = !0, restoreFromSession(ctx2), widgetUnsubscribe?.(), widgetUnsubscribe = null, webSession.activity.clear(), widgetVisible && (widgetUnsubscribe = webSession.activity.onUpdate(() => updateWidget(ctx2)), updateWidget(ctx2)), await cleanup;
|
|
519
582
|
}
|
|
520
583
|
let warmSummaryReview = null;
|
|
521
584
|
function assertActiveRequest(generation, signal) {
|
|
522
585
|
if (signal?.throwIfAborted(), generation !== sessionGeneration)
|
|
523
586
|
throw new Error("Web request cancelled: session changed");
|
|
524
587
|
}
|
|
525
|
-
function startSession(ctx2) {
|
|
526
|
-
sessionGeneration++, sessionAbort.abort(), sessionAbort = new AbortController(), handleSessionChange(ctx2);
|
|
588
|
+
async function startSession(ctx2) {
|
|
589
|
+
sessionGeneration++, sessionAbort.abort(), sessionAbort = new AbortController(), await handleSessionChange(ctx2);
|
|
527
590
|
}
|
|
528
591
|
async function ensureSummaryReview() {
|
|
529
592
|
return warmSummaryReview || (warmSummaryReview = await loadSummaryReview()), warmSummaryReview;
|
|
530
593
|
}
|
|
531
594
|
async function runSearch(query, options) {
|
|
532
|
-
let { search } = await loadGeminiSearch();
|
|
533
|
-
return search(query, options);
|
|
595
|
+
let owner = getWebSession() ?? webSession, { search } = await loadGeminiSearch();
|
|
596
|
+
return runWithWebSession(owner, () => search(query, options));
|
|
534
597
|
}
|
|
535
598
|
globalThis[/* @__PURE__ */ Symbol.for("@lunr/search-curator")] = {
|
|
536
599
|
getWorkflow() {
|
|
@@ -544,7 +607,7 @@ function pi_web_access_default(pi) {
|
|
|
544
607
|
if (urls.length === 0)
|
|
545
608
|
return null;
|
|
546
609
|
let fetchId = generateId(), controller = new AbortController();
|
|
547
|
-
return pendingFetches.set(fetchId, controller), (async () => {
|
|
610
|
+
return pendingFetches.set(fetchId, controller), runWithWebSession(webSession, async () => {
|
|
548
611
|
try {
|
|
549
612
|
let { fetchAllContent } = await loadExtract();
|
|
550
613
|
if (!sessionActive || !pendingFetches.has(fetchId))
|
|
@@ -577,7 +640,7 @@ function pi_web_access_default(pi) {
|
|
|
577
640
|
} finally {
|
|
578
641
|
pendingFetches.delete(fetchId);
|
|
579
642
|
}
|
|
580
|
-
})
|
|
643
|
+
}), fetchId;
|
|
581
644
|
}
|
|
582
645
|
function storeAndPublishSearch(results) {
|
|
583
646
|
let id = generateId(), data = {
|
|
@@ -1028,11 +1091,13 @@ Open manually: ${handle.url}` }],
|
|
|
1028
1091
|
}), pi.registerShortcut(activityKey, {
|
|
1029
1092
|
description: "Toggle web search activity",
|
|
1030
1093
|
handler: async (ctx2) => {
|
|
1031
|
-
widgetVisible = !widgetVisible, widgetVisible ? (widgetUnsubscribe =
|
|
1094
|
+
widgetVisible = !widgetVisible, widgetVisible ? (widgetUnsubscribe = webSession.activity.onUpdate(() => updateWidget(ctx2)), updateWidget(ctx2)) : (widgetUnsubscribe?.(), widgetUnsubscribe = null, ctx2.ui.setWidget("web-activity", void 0));
|
|
1032
1095
|
}
|
|
1033
|
-
}), pi.on("session_start", async (_event, ctx2) => startSession(ctx2)), pi.on("session_tree", async (_event, ctx2) => startSession(ctx2)), pi.on("session_shutdown", () => {
|
|
1034
|
-
sessionGeneration++, sessionAbort.abort(), sessionActive = !1, abortPendingFetches(), closeCurator()
|
|
1035
|
-
|
|
1096
|
+
}), pi.on("session_start", async (_event, ctx2) => startSession(ctx2)), pi.on("session_tree", async (_event, ctx2) => startSession(ctx2)), pi.on("session_shutdown", async () => {
|
|
1097
|
+
sessionGeneration++, sessionAbort.abort(), sessionActive = !1, abortPendingFetches(), closeCurator();
|
|
1098
|
+
let cleanup = runSessionCleanups(webSession);
|
|
1099
|
+
clearResults(), widgetUnsubscribe?.(), widgetUnsubscribe = null, webSession.activity.clear(), widgetVisible = !1, await cleanup;
|
|
1100
|
+
}), initConfig.webSearch?.enabled !== !1 && registerWebTool({
|
|
1036
1101
|
name: "web_search",
|
|
1037
1102
|
label: "Web Search",
|
|
1038
1103
|
description: 'Search the web using OpenAI, Brave, Parallel, Tavily, Exa, Perplexity, or Gemini. Use web_search for discovery and fetch_content for reading URLs. When the browser tool is available, use it for JavaScript-rendered inspection or explicit website interaction; never automatically fall back to browser. Returns an AI-synthesized answer with source citations. OpenAI web_search uses a Codex subscription or OpenAI API key. For comprehensive research, prefer queries (plural) with 2-4 varied angles over a single query \u2014 each query gets its own synthesized answer, so varying phrasing and scope gives much broader coverage. When includeContent is true, full page content is fetched in the background. Searches auto-open the interactive browser curator and stream results live; set workflow to "none" to skip curation or "auto-summary" for a model-generated summary without the browser curator. Provider auto-selects: OpenAI when suitable and available, then Exa, Brave, Parallel, Tavily, Perplexity, Gemini API, then Gemini Web.',
|
|
@@ -1291,7 +1356,7 @@ Open manually: ${handle.url}` }],
|
|
|
1291
1356
|
return new Text(chrome.result.map((line) => theme.fg(statusColor, line)).join(`
|
|
1292
1357
|
`), 0, 0);
|
|
1293
1358
|
}
|
|
1294
|
-
}),
|
|
1359
|
+
}), registerWebTool({
|
|
1295
1360
|
name: "fetch_content",
|
|
1296
1361
|
label: "Fetch Content",
|
|
1297
1362
|
description: "Fetch URL(s) and extract readable content as markdown. Prefer fetch_content for reading URLs and web_search for discovery. The browser tool handles JavaScript-rendered inspection and explicit website interactions when enabled; it is not an automatic fallback, and interaction tasks do not require a preliminary fetch. Supports YouTube video transcripts (with thumbnail), GitHub repository contents, and local video files (with frame thumbnail). Video frames can be extracted via timestamp/range or sampled across the entire video with frames alone. Falls back to Gemini for pages that block bots or fail Readability extraction. For YouTube and video files: ALWAYS pass the user's specific question via the prompt parameter \u2014 this directs the AI to focus on that aspect of the video, producing much better results than a generic extraction. Content is always stored and can be retrieved with get_search_content.",
|
|
@@ -1357,7 +1422,7 @@ Open manually: ${handle.url}` }],
|
|
|
1357
1422
|
truncated && (output2 += `
|
|
1358
1423
|
|
|
1359
1424
|
---
|
|
1360
|
-
Showing ${MAX_INLINE_CONTENT} of ${fullLength} chars. Use get_search_content({ responseId: "${responseId}", urlIndex: 0 }) for
|
|
1425
|
+
Showing ${MAX_INLINE_CONTENT} of ${fullLength} chars. Use get_search_content({ responseId: "${responseId}", urlIndex: 0 }) for stored content. Follow nextOffset if truncated.`);
|
|
1361
1426
|
let content = [];
|
|
1362
1427
|
if (result.frames?.length)
|
|
1363
1428
|
for (let frame of result.frames)
|
|
@@ -1393,7 +1458,7 @@ Showing ${MAX_INLINE_CONTENT} of ${fullLength} chars. Use get_search_content({ r
|
|
|
1393
1458
|
`;
|
|
1394
1459
|
return output += `
|
|
1395
1460
|
---
|
|
1396
|
-
Use get_search_content({ responseId: "${responseId}", urlIndex: 0 }) to retrieve
|
|
1461
|
+
Use get_search_content({ responseId: "${responseId}", urlIndex: 0 }) to retrieve stored content. Follow nextOffset if truncated.`, {
|
|
1397
1462
|
content: [{ type: "text", text: output }],
|
|
1398
1463
|
details: { urls: urlList, urlCount: urlList.length, successful, totalChars, responseId }
|
|
1399
1464
|
};
|
|
@@ -1436,12 +1501,13 @@ Use get_search_content({ responseId: "${responseId}", urlIndex: 0 }) to retrieve
|
|
|
1436
1501
|
return new Text(chrome.result.map((line) => theme.fg(statusColor, line)).join(`
|
|
1437
1502
|
`), 0, 0);
|
|
1438
1503
|
}
|
|
1439
|
-
}),
|
|
1504
|
+
}), registerWebTool({
|
|
1440
1505
|
name: "get_search_content",
|
|
1441
1506
|
label: "Get Search Content",
|
|
1442
|
-
description: "Retrieve
|
|
1443
|
-
promptSnippet: "
|
|
1507
|
+
description: "Retrieve stored web_search or fetch_content text in pages capped at 50 KiB and 2,000 lines. Reuse responseId and selectors with nextOffset to continue. Available-selector lists and errors are paginated too.",
|
|
1508
|
+
promptSnippet: "Retrieve stored text with responseId and query/url selectors. If truncated, repeat with offset=nextOffset and the same selectors. Each page is at most 50 KiB/2,000 lines.",
|
|
1444
1509
|
parameters: Type.Object({
|
|
1510
|
+
offset: Type.Optional(Type.Integer({ minimum: 0, description: "UTF-8 byte offset, starting at 0. Use nextOffset from the previous page with unchanged selectors." })),
|
|
1445
1511
|
responseId: Type.String({ description: "The responseId from web_search or fetch_content" }),
|
|
1446
1512
|
query: Type.Optional(Type.String({ description: "Get content for this query (web_search)" })),
|
|
1447
1513
|
queryIndex: Type.Optional(Type.Number({ description: "Get content for query at index" })),
|
|
@@ -1449,78 +1515,48 @@ Use get_search_content({ responseId: "${responseId}", urlIndex: 0 }) to retrieve
|
|
|
1449
1515
|
urlIndex: Type.Optional(Type.Number({ description: "Get content for URL at index" }))
|
|
1450
1516
|
}),
|
|
1451
1517
|
async execute(_toolCallId, params) {
|
|
1452
|
-
let data = getResult(params.responseId);
|
|
1518
|
+
let reply = (text, details) => contentPage(text, params.offset, details), data = getResult(params.responseId);
|
|
1453
1519
|
if (!data)
|
|
1454
|
-
return {
|
|
1455
|
-
content: [{ type: "text", text: `Error: No stored results for "${params.responseId}"` }],
|
|
1456
|
-
details: { error: "Not found", responseId: params.responseId }
|
|
1457
|
-
};
|
|
1520
|
+
return reply(`Error: No stored results for "${params.responseId}"`, { error: "Not found", responseId: params.responseId });
|
|
1458
1521
|
if (data.type === "search" && data.queries) {
|
|
1459
1522
|
let queryData;
|
|
1460
1523
|
if (params.query !== void 0) {
|
|
1461
1524
|
if (queryData = data.queries.find((q) => q.query === params.query), !queryData) {
|
|
1462
1525
|
let available = data.queries.map((q) => `"${q.query}"`).join(", ");
|
|
1463
|
-
return {
|
|
1464
|
-
content: [{ type: "text", text: `Query "${params.query}" not found. Available: ${available}` }],
|
|
1465
|
-
details: { error: "Query not found" }
|
|
1466
|
-
};
|
|
1526
|
+
return reply(`Query "${params.query}" not found. Available: ${available}`, { error: "Query not found" });
|
|
1467
1527
|
}
|
|
1468
1528
|
} else if (params.queryIndex !== void 0) {
|
|
1469
1529
|
if (queryData = data.queries[params.queryIndex], !queryData)
|
|
1470
|
-
return {
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
content: [{ type: "text", text: `Specify query or queryIndex. Available: ${data.queries.map((q, i) => `${i}: "${q.query}"`).join(", ")}` }],
|
|
1477
|
-
details: { error: "No query specified" }
|
|
1478
|
-
};
|
|
1479
|
-
return queryData.error ? {
|
|
1480
|
-
content: [{ type: "text", text: `Error for "${queryData.query}": ${queryData.error}` }],
|
|
1481
|
-
details: { error: queryData.error, query: queryData.query }
|
|
1482
|
-
} : {
|
|
1483
|
-
content: [{ type: "text", text: formatFullResults(queryData) }],
|
|
1484
|
-
details: { query: queryData.query, resultCount: queryData.results.length }
|
|
1485
|
-
};
|
|
1530
|
+
return reply(`Index ${params.queryIndex} out of range (0-${data.queries.length - 1})`, { error: "Index out of range" });
|
|
1531
|
+
} else {
|
|
1532
|
+
let available = data.queries.map((q, i) => `${i}: "${q.query}"`).join(", ");
|
|
1533
|
+
return reply(`Specify query or queryIndex. Available: ${available}`, { error: "No query specified" });
|
|
1534
|
+
}
|
|
1535
|
+
return queryData.error ? reply(`Error for "${queryData.query}": ${queryData.error}`, { error: queryData.error, query: queryData.query }) : reply(formatFullResults(queryData), { query: queryData.query, resultCount: queryData.results.length });
|
|
1486
1536
|
}
|
|
1487
1537
|
if (data.type === "fetch" && data.urls) {
|
|
1488
1538
|
let urlData;
|
|
1489
1539
|
if (params.url !== void 0) {
|
|
1490
|
-
if (urlData = data.urls.find((u) => u.url === params.url), !urlData)
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
};
|
|
1540
|
+
if (urlData = data.urls.find((u) => u.url === params.url), !urlData) {
|
|
1541
|
+
let available = data.urls.map((u) => u.url).join(`
|
|
1542
|
+
`);
|
|
1543
|
+
return reply(`URL not found. Available:
|
|
1544
|
+
${available}`, { error: "URL not found" });
|
|
1545
|
+
}
|
|
1497
1546
|
} else if (params.urlIndex !== void 0) {
|
|
1498
1547
|
if (urlData = data.urls[params.urlIndex], !urlData)
|
|
1499
|
-
return {
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
`)}` }],
|
|
1508
|
-
details: { error: "No URL specified" }
|
|
1509
|
-
};
|
|
1510
|
-
return urlData.error ? {
|
|
1511
|
-
content: [{ type: "text", text: `Error for ${urlData.url}: ${urlData.error}` }],
|
|
1512
|
-
details: { error: urlData.error, url: urlData.url }
|
|
1513
|
-
} : {
|
|
1514
|
-
content: [{ type: "text", text: `# ${urlData.title}
|
|
1548
|
+
return reply(`Index ${params.urlIndex} out of range (0-${data.urls.length - 1})`, { error: "Index out of range" });
|
|
1549
|
+
} else {
|
|
1550
|
+
let available = data.urls.map((u, i) => `${i}: ${u.url}`).join(`
|
|
1551
|
+
`);
|
|
1552
|
+
return reply(`Specify url or urlIndex. Available:
|
|
1553
|
+
${available}`, { error: "No URL specified" });
|
|
1554
|
+
}
|
|
1555
|
+
return urlData.error ? reply(`Error for ${urlData.url}: ${urlData.error}`, { error: urlData.error, url: urlData.url }) : reply(`# ${urlData.title}
|
|
1515
1556
|
|
|
1516
|
-
${urlData.content}
|
|
1517
|
-
details: { url: urlData.url, title: urlData.title, contentLength: urlData.content.length }
|
|
1518
|
-
};
|
|
1557
|
+
${urlData.content}`, { url: urlData.url, title: urlData.title, contentLength: urlData.content.length });
|
|
1519
1558
|
}
|
|
1520
|
-
return {
|
|
1521
|
-
content: [{ type: "text", text: "Invalid stored data format" }],
|
|
1522
|
-
details: { error: "Invalid data" }
|
|
1523
|
-
};
|
|
1559
|
+
return reply("Invalid stored data format", { error: "Invalid data" });
|
|
1524
1560
|
},
|
|
1525
1561
|
renderCall(args, theme) {
|
|
1526
1562
|
let { responseId, query, queryIndex, url, urlIndex } = args, target = "";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runPrintMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UBWW2PID.js";
|
|
5
5
|
import "./chunk-U5F4IC7R.js";
|
|
6
6
|
import "./chunk-OBMWP3I5.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ES6PBSIE.js";
|
|
8
|
+
import "./chunk-64XTQNLA.js";
|
|
9
9
|
import "./chunk-Q4Q6D4IY.js";
|
|
10
10
|
import "./chunk-BRJX2PRC.js";
|
|
11
11
|
export {
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
restart,
|
|
12
12
|
resume,
|
|
13
13
|
unregister
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-RYRGL7P4.js";
|
|
15
|
+
import "./chunk-ES6PBSIE.js";
|
|
16
|
+
import "./chunk-64XTQNLA.js";
|
|
17
17
|
import "./chunk-Q4Q6D4IY.js";
|
|
18
18
|
import "./chunk-BRJX2PRC.js";
|
|
19
19
|
export {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveMcpOutputGuardOptions,
|
|
7
7
|
resolveMcpResultContent,
|
|
8
8
|
transformMcpContent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNUZICC4.js";
|
|
10
10
|
import {
|
|
11
11
|
buildToolMetadata,
|
|
12
12
|
findToolByName,
|
|
@@ -14,27 +14,20 @@ import {
|
|
|
14
14
|
getFailureAgeSeconds,
|
|
15
15
|
getToolNames,
|
|
16
16
|
lazyConnect,
|
|
17
|
+
supportsOAuth,
|
|
17
18
|
updateMetadataCache,
|
|
18
19
|
updateServerMetadata,
|
|
19
20
|
updateStatusBar
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-LWJXTA6Z.js";
|
|
22
|
-
import {
|
|
23
|
-
authenticate,
|
|
24
|
-
completeAuthFromInput,
|
|
25
|
-
startAuth,
|
|
26
|
-
supportsOAuth
|
|
27
|
-
} from "./chunk-7IQGBKBJ.js";
|
|
21
|
+
} from "./chunk-EBLAZVSA.js";
|
|
28
22
|
import {
|
|
29
23
|
UrlElicitationRequiredError
|
|
30
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VSUEAI7O.js";
|
|
31
25
|
import {
|
|
32
26
|
abortable,
|
|
33
27
|
formatAuthRequiredMessage,
|
|
34
28
|
throwIfAborted,
|
|
35
29
|
truncateAtWord
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-4HXHDDCF.js";
|
|
30
|
+
} from "./chunk-B2IBAXNX.js";
|
|
38
31
|
import {
|
|
39
32
|
getServerPrefix,
|
|
40
33
|
parseUiPromptHandoff
|
|
@@ -98,7 +91,7 @@ async function attemptAutoAuth(state, serverName) {
|
|
|
98
91
|
message: getAuthRequiredMessage(state, serverName, `Server "${serverName}" requires OAuth authentication. Run mcp({ action: "auth-start", server: "${serverName}" }) to get a browser URL, or /mcp-auth ${serverName} in an interactive local session.`)
|
|
99
92
|
};
|
|
100
93
|
try {
|
|
101
|
-
return await authenticate(serverName, definition.url, definition), { status: "success" };
|
|
94
|
+
return await state.authFlow.authenticate(serverName, definition.url, definition), { status: "success" };
|
|
102
95
|
} catch (error) {
|
|
103
96
|
let message = error instanceof Error ? error.message : String(error);
|
|
104
97
|
return {
|
|
@@ -218,7 +211,7 @@ async function executeAuthStart(state, serverName) {
|
|
|
218
211
|
details: { mode: "auth-start", error: "oauth_not_supported", server: serverName }
|
|
219
212
|
};
|
|
220
213
|
try {
|
|
221
|
-
let { authorizationUrl } = await startAuth(serverName, definition.url, definition);
|
|
214
|
+
let { authorizationUrl } = await state.authFlow.startAuth(serverName, definition.url, definition);
|
|
222
215
|
return authorizationUrl ? {
|
|
223
216
|
content: [{ type: "text", text: formatManualAuthInstructions(serverName, authorizationUrl) }],
|
|
224
217
|
details: { mode: "auth-start", server: serverName, authorizationUrl }
|
|
@@ -241,7 +234,7 @@ async function executeAuthComplete(state, serverName, input) {
|
|
|
241
234
|
details: { mode: "auth-complete", error: "not_found", server: serverName }
|
|
242
235
|
};
|
|
243
236
|
try {
|
|
244
|
-
let status = await completeAuthFromInput(serverName, input);
|
|
237
|
+
let status = await state.authFlow.completeAuthFromInput(serverName, input);
|
|
245
238
|
return status !== "authenticated" ? {
|
|
246
239
|
content: [{ type: "text", text: `OAuth authentication did not complete for "${serverName}".` }],
|
|
247
240
|
details: { mode: "auth-complete", error: "not_authenticated", server: serverName, status }
|
|
@@ -2,72 +2,73 @@
|
|
|
2
2
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
main
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MQPKUHRN.js";
|
|
6
|
+
import "./chunk-R4WSB2MQ.js";
|
|
7
|
+
import "./chunk-JWEVT363.js";
|
|
8
|
+
import "./chunk-IHHTWSXN.js";
|
|
9
9
|
import "./chunk-YPHAIRZT.js";
|
|
10
10
|
import "./chunk-PL6JKXWI.js";
|
|
11
11
|
import "./chunk-5ZH3ZFIZ.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-SN2KSMPQ.js";
|
|
12
|
+
import "./chunk-ZDJUR45D.js";
|
|
13
|
+
import "./chunk-DQSCFU7R.js";
|
|
15
14
|
import "./chunk-CCCN2UCX.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-DVGWF6A2.js";
|
|
15
|
+
import "./chunk-UYRKUKFE.js";
|
|
18
16
|
import "./chunk-OBMWP3I5.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DVGWF6A2.js";
|
|
18
|
+
import "./chunk-IXG6F4NT.js";
|
|
19
|
+
import "./chunk-ZEVFBFNF.js";
|
|
20
|
+
import "./chunk-YSB6URMT.js";
|
|
21
|
+
import "./chunk-6ZZHGUSA.js";
|
|
21
22
|
import "./chunk-53YJI7JU.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-SPVDBUOS.js";
|
|
23
|
+
import "./chunk-IAZSK7KK.js";
|
|
24
|
+
import "./chunk-TCT6PCUR.js";
|
|
25
|
+
import "./chunk-XEOCUEUJ.js";
|
|
26
|
+
import "./chunk-6O3IW3IA.js";
|
|
27
27
|
import {
|
|
28
28
|
configureHttpDispatcher
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-HUD2RFJW.js";
|
|
30
|
+
import "./chunk-4KNKQGHM.js";
|
|
31
|
+
import "./chunk-LHV3V67B.js";
|
|
32
|
+
import "./chunk-F2SMQ6ES.js";
|
|
33
33
|
import "./chunk-URD2SLIT.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-FIRA54AC.js";
|
|
35
|
+
import "./chunk-BYC6RKCN.js";
|
|
36
36
|
import "./chunk-CGBXPL3E.js";
|
|
37
37
|
import "./chunk-BBUVIEZB.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-APVM5NEU.js";
|
|
39
|
+
import "./chunk-F2V2F4ZG.js";
|
|
40
|
+
import "./chunk-BDRGN3L2.js";
|
|
40
41
|
import "./chunk-FY4A63RK.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-RYRGL7P4.js";
|
|
43
|
+
import "./chunk-ES6PBSIE.js";
|
|
44
|
+
import "./chunk-I2H5QMWW.js";
|
|
45
|
+
import "./chunk-EPR2F3GU.js";
|
|
45
46
|
import "./chunk-FVDOXRUD.js";
|
|
46
47
|
import "./chunk-4EULYYR4.js";
|
|
47
48
|
import "./chunk-UJOCPOMX.js";
|
|
48
49
|
import "./chunk-2TKODGBZ.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-HNNHHJAB.js";
|
|
50
51
|
import "./chunk-IMLCWLPI.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-2OIPYKLZ.js";
|
|
53
|
+
import "./chunk-MNQXDFPV.js";
|
|
53
54
|
import "./chunk-RQ2Q5IYR.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-NHATCSOI.js";
|
|
55
56
|
import "./chunk-H2EOZYMP.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-FTKEZL27.js";
|
|
57
58
|
import "./chunk-PVCDKGR6.js";
|
|
58
59
|
import "./chunk-OR4L3IB2.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-RHCGYWO7.js";
|
|
61
|
+
import "./chunk-WPXUR3HE.js";
|
|
61
62
|
import "./chunk-CCZJ3PYY.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-252ZVPPF.js";
|
|
64
|
+
import "./chunk-GLDXBBL6.js";
|
|
64
65
|
import "./chunk-I6R76AG7.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-FLGEEH27.js";
|
|
67
|
+
import "./chunk-QW3AAHWN.js";
|
|
68
|
+
import "./chunk-JL4HYQXK.js";
|
|
68
69
|
import {
|
|
69
70
|
APP_NAME
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-64XTQNLA.js";
|
|
71
72
|
import "./chunk-Q4Q6D4IY.js";
|
|
72
73
|
import "./chunk-BRJX2PRC.js";
|
|
73
74
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runRpcMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EVM653DD.js";
|
|
5
5
|
import "./chunk-OBMWP3I5.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ES6PBSIE.js";
|
|
7
|
+
import "./chunk-JL4HYQXK.js";
|
|
8
|
+
import "./chunk-64XTQNLA.js";
|
|
9
9
|
import "./chunk-Q4Q6D4IY.js";
|
|
10
10
|
import "./chunk-BRJX2PRC.js";
|
|
11
11
|
export {
|