@ashx-j/lunr 0.2.25 → 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 +31 -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/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +1 -0
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-computer-use.d.ts +3 -0
- package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-computer-use.js +179 -0
- package/dist/builtin-extensions/lunr-computer-use.js.map +1 -0
- 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/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -4
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +8 -5
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.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 +1 -0
- 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 +21 -4
- 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 +11 -4
- 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 +121 -25
- 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/chain-outputs.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.js +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.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/communication.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -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 +22 -11
- 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 +28 -0
- package/dist/core/computer-use/adapter.d.ts.map +1 -0
- package/dist/core/computer-use/adapter.js +138 -0
- package/dist/core/computer-use/adapter.js.map +1 -0
- package/dist/core/computer-use/image.d.ts +27 -0
- package/dist/core/computer-use/image.d.ts.map +1 -0
- package/dist/core/computer-use/image.js +84 -0
- package/dist/core/computer-use/image.js.map +1 -0
- package/dist/core/computer-use/lease.d.ts +18 -0
- package/dist/core/computer-use/lease.d.ts.map +1 -0
- package/dist/core/computer-use/lease.js +129 -0
- package/dist/core/computer-use/lease.js.map +1 -0
- package/dist/core/computer-use/macos-runtime.d.ts +14 -0
- package/dist/core/computer-use/macos-runtime.d.ts.map +1 -0
- package/dist/core/computer-use/macos-runtime.js +148 -0
- package/dist/core/computer-use/macos-runtime.js.map +1 -0
- package/dist/core/computer-use/policy.d.ts +19 -0
- package/dist/core/computer-use/policy.d.ts.map +1 -0
- package/dist/core/computer-use/policy.js +67 -0
- package/dist/core/computer-use/policy.js.map +1 -0
- package/dist/core/computer-use/release.generated.d.ts +31 -0
- package/dist/core/computer-use/release.generated.d.ts.map +1 -0
- package/dist/core/computer-use/release.generated.js +36 -0
- package/dist/core/computer-use/release.generated.js.map +1 -0
- package/dist/core/computer-use/runtime.d.ts +13 -0
- package/dist/core/computer-use/runtime.d.ts.map +1 -0
- package/dist/core/computer-use/runtime.js +158 -0
- package/dist/core/computer-use/runtime.js.map +1 -0
- package/dist/core/computer-use/schemas.d.ts +100 -0
- package/dist/core/computer-use/schemas.d.ts.map +1 -0
- package/dist/core/computer-use/schemas.js +96 -0
- package/dist/core/computer-use/schemas.js.map +1 -0
- package/dist/core/computer-use/windows-desktop.d.ts +3 -0
- package/dist/core/computer-use/windows-desktop.d.ts.map +1 -0
- package/dist/core/computer-use/windows-desktop.js +48 -0
- package/dist/core/computer-use/windows-desktop.js.map +1 -0
- package/dist/core/computer-use/workflow.d.ts +38 -0
- package/dist/core/computer-use/workflow.d.ts.map +1 -0
- package/dist/core/computer-use/workflow.js +900 -0
- package/dist/core/computer-use/workflow.js.map +1 -0
- 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/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +4 -0
- package/dist/core/extensions/loader.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 +4 -4
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +25 -38
- 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 +135 -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/settings-manager.d.ts +6 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +19 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/subagent-event-transport.d.ts +3 -0
- package/dist/core/subagent-event-transport.d.ts.map +1 -0
- package/dist/core/subagent-event-transport.js +61 -0
- package/dist/core/subagent-event-transport.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/adapters/discord.d.ts.map +1 -1
- package/dist/gateway/adapters/discord.js +2 -2
- package/dist/gateway/adapters/discord.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/approval.d.ts.map +1 -1
- package/dist/gateway/approval.js +3 -3
- package/dist/gateway/approval.js.map +1 -1
- package/dist/gateway/authz.d.ts +4 -4
- package/dist/gateway/authz.d.ts.map +1 -1
- package/dist/gateway/authz.js +8 -12
- package/dist/gateway/authz.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 +12 -10
- 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 +85 -62
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +5 -4
- 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 +64 -22
- 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 +74 -39
- 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 +22 -9
- 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/gateway/setup.d.ts.map +1 -1
- package/dist/gateway/setup.js +6 -4
- package/dist/gateway/setup.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/components/settings-selector.d.ts +4 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +20 -0
- package/dist/modes/interactive/components/settings-selector.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 +104 -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/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +9 -1
- package/dist/modes/print-mode.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-247RTYLS.js +16 -0
- 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-ZLAX7TUH.js → builtin-extensions-OX6KELNX.js} +9 -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-NRKGMJYU.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-ZXSGTGJ6.js → chunk-APVM5NEU.js} +169 -148
- package/dist/node-runtime/{chunk-RC7DMV45.js → chunk-AYHH7YSD.js} +205 -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-KWIYUUZK.js → chunk-C3P6Q3B2.js} +469 -283
- package/dist/node-runtime/{chunk-YCUZEGJG.js → chunk-DQSCFU7R.js} +17 -8
- package/dist/node-runtime/chunk-EBLAZVSA.js +4170 -0
- 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-FE3WZI7F.js +290 -0
- 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-FY4A63RK.js +73 -0
- package/dist/node-runtime/chunk-FYIFPFXE.js +98 -0
- 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-6XL67VVY.js → chunk-HUD2RFJW.js} +17 -2
- package/dist/node-runtime/{chunk-I54LGHWM.js → chunk-I2H5QMWW.js} +3 -3
- package/dist/node-runtime/chunk-IAZSK7KK.js +108 -0
- package/dist/node-runtime/{chunk-2HHLJWGD.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-WF7PGWRZ.js → chunk-JWEVT363.js} +37 -28
- 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-IJIFHRTB.js → chunk-MQPKUHRN.js} +165 -85
- 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-E4D3IGP2.js → chunk-QNVMKNNN.js} +20 -17
- package/dist/node-runtime/{chunk-GS42T6MX.js → chunk-QW3AAHWN.js} +1 -1
- package/dist/node-runtime/{chunk-7S3T6YEA.js → chunk-R4WSB2MQ.js} +5 -5
- package/dist/node-runtime/{chunk-B4HP6ZWM.js → chunk-RHCGYWO7.js} +1 -1
- package/dist/node-runtime/{chunk-3XPLBUEM.js → chunk-RLGY2QIL.js} +49 -59
- package/dist/node-runtime/{chunk-KKUTQQV7.js → chunk-RYRGL7P4.js} +1 -1
- package/dist/node-runtime/{chunk-AD6VXAO7.js → chunk-TCT6PCUR.js} +47 -115
- package/dist/node-runtime/chunk-U5F4IC7R.js +53 -0
- package/dist/node-runtime/{chunk-OCVIXVTZ.js → chunk-UBWW2PID.js} +13 -2
- package/dist/node-runtime/{chunk-HFVZUPFJ.js → chunk-UNUZICC4.js} +3 -3
- package/dist/node-runtime/{chunk-LQP3RB67.js → chunk-UYRKUKFE.js} +1 -1
- package/dist/node-runtime/{chunk-DSIKTUPW.js → chunk-VSUEAI7O.js} +2993 -3820
- 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-VQFSUJJG.js → chunk-ZDJUR45D.js} +430 -129
- package/dist/node-runtime/{chunk-YDO2F2IA.js → chunk-ZEVFBFNF.js} +95 -142
- package/dist/node-runtime/chunk-ZIQUS5QO.js +180 -0
- package/dist/node-runtime/cli-runtime.js +4 -4
- package/dist/node-runtime/{command-6WDOYKS6.js → command-3HMSY6W2.js} +5 -5
- package/dist/node-runtime/{commands-NZLSOHPE.js → commands-D6A6H4TS.js} +11 -16
- package/dist/node-runtime/commands-OCSSEEWJ.js +37 -0
- 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-77GW4F5P.js → direct-tool-executor-2QJXVQD2.js} +8 -10
- 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-INAYBF4Q.js → gateway-6623C2U3.js} +61 -53
- 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 +54 -48
- package/dist/node-runtime/{init-HS6NQXSK.js → init-JBQJIPYI.js} +3 -4
- package/dist/node-runtime/{install-cli-KL4UDDAD.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-VDP2QNRQ.js +158 -0
- package/dist/node-runtime/{lunr-cron-LWIZJM2N.js → lunr-cron-LKVA5CZZ.js} +94 -79
- package/dist/node-runtime/main.js +42 -39
- package/dist/node-runtime/{mobile-commands-J7OJEKFO.js → mobile-commands-XT3NQXLD.js} +13 -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-VYZM5WHN.js → package-manager-cli-CYM262SI.js} +20 -19
- 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-5UKBZP44.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-DNY7EAIG.js → pi-subagents-LT3CTO4E.js} +114 -116
- package/dist/node-runtime/{pi-web-access-WTGMNZ32.js → pi-web-access-Z3LP246C.js} +144 -108
- package/dist/node-runtime/{print-mode-XSFM26EL.js → print-mode-2XHN5SUA.js} +4 -3
- package/dist/node-runtime/{process-registry-4FAKZQOL.js → process-registry-Q4QWIU33.js} +3 -3
- package/dist/node-runtime/{proxy-modes-LGEUYD7R.js → proxy-modes-VEGC6QG5.js} +9 -13
- package/dist/node-runtime/rpc-entry.js +42 -39
- 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-UGXM4NPQ.js +21 -0
- package/dist/node-runtime/{runtime-bridges-VRDDR73P.js → runtime-bridges-DNKMNJCF.js} +8 -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-J4SPQPDJ.js → settings-manager-P2TKGYTR.js} +6 -5
- package/dist/node-runtime/{setup-JBKOLJ6F.js → setup-H7CCELIL.js} +15 -1
- package/dist/node-runtime/{setup-CQ2NLVK5.js → setup-OLQ4GXWS.js} +22 -21
- package/dist/node-runtime/{src-IVPNZ2BX.js → src-6RV4PXKJ.js} +64 -36
- package/dist/node-runtime/{subagent-executor-KZZQGAKV.js → subagent-executor-Q5F7DBVM.js} +141 -62
- 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-GTFJC7XK.js → update-cli-F3XXJANQ.js} +7 -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-ICDI4N3J.js +767 -0
- 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 +2 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +12 -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/computer-use.md +362 -0
- package/docs/custom-provider.md +3 -3
- package/docs/extensions.md +8 -4
- package/docs/features.md +22 -12
- 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 +3841 -0
- package/install-lock/package.json +18 -0
- package/native/computer-use/LICENSE.md +21 -0
- package/npm-shrinkwrap.json +3858 -0
- package/package.json +15 -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-YXXFCP5J.js +0 -49
- package/dist/node-runtime/chunk-4HXHDDCF.js +0 -16
- package/dist/node-runtime/chunk-4TLO4PO2.js +0 -3427
- package/dist/node-runtime/chunk-AUXVGBO4.js +0 -19
- package/dist/node-runtime/chunk-OVX6X377.js +0 -50
- package/dist/node-runtime/chunk-QTU6AKNJ.js +0 -773
- package/dist/node-runtime/chunk-TORR5XBV.js +0 -356
- package/dist/node-runtime/commands-QC6VUZJQ.js +0 -36
- package/dist/node-runtime/interactive-mode-Z5M7WYYZ.js +0 -72
- package/dist/node-runtime/mcp-auth-flow-QIXHW6QN.js +0 -32
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
SUBAGENT_CONTROL_MESSAGE_TYPE,
|
|
25
25
|
SUBAGENT_FANOUT_CHILD_ENV,
|
|
26
26
|
SUBAGENT_FOREGROUND_COMPLETE_EVENT,
|
|
27
|
-
SUBAGENT_PARENT_SESSION_ENV,
|
|
28
27
|
SUBAGENT_RESULT_INTERCOM_EVENT,
|
|
29
28
|
SUBAGENT_STEERING_NOTICE_EVENT,
|
|
30
29
|
SUPERVISOR_PROGRESS_TYPE,
|
|
@@ -77,7 +76,6 @@ import {
|
|
|
77
76
|
resolveAsyncRunLocation,
|
|
78
77
|
resolveCommunicationPeer,
|
|
79
78
|
resolveCurrentSessionId,
|
|
80
|
-
resolveSubagentRequestParams,
|
|
81
79
|
resolveSubagentResultStatus,
|
|
82
80
|
resolveSubagentRunId,
|
|
83
81
|
resolveTurnBudgetConfig,
|
|
@@ -94,45 +92,51 @@ import {
|
|
|
94
92
|
validateExecutionAcceptance,
|
|
95
93
|
validateToolBudgetConfig,
|
|
96
94
|
writeAtomicJson
|
|
97
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-RLGY2QIL.js";
|
|
98
96
|
import {
|
|
97
|
+
controlNotificationKey,
|
|
99
98
|
formatControlNoticeMessage
|
|
100
99
|
} from "./chunk-OAR4TYZE.js";
|
|
101
100
|
import {
|
|
102
101
|
getSubagentSpinnerDefinition
|
|
103
102
|
} from "./chunk-US544NN6.js";
|
|
104
103
|
import "./chunk-5ZH3ZFIZ.js";
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-ZEVFBFNF.js";
|
|
105
|
+
import "./chunk-YSB6URMT.js";
|
|
106
|
+
import "./chunk-6ZZHGUSA.js";
|
|
107
107
|
import "./chunk-53YJI7JU.js";
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-IAZSK7KK.js";
|
|
109
|
+
import "./chunk-TCT6PCUR.js";
|
|
110
110
|
import {
|
|
111
111
|
subagentCommunicationEnabled
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-HUD2RFJW.js";
|
|
113
|
+
import "./chunk-4KNKQGHM.js";
|
|
114
|
+
import "./chunk-LHV3V67B.js";
|
|
115
115
|
import "./chunk-URD2SLIT.js";
|
|
116
116
|
import {
|
|
117
117
|
createSubagentCancellation,
|
|
118
118
|
registerSubagentCancellation
|
|
119
119
|
} from "./chunk-BBUVIEZB.js";
|
|
120
|
-
import
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
import "./chunk-
|
|
120
|
+
import {
|
|
121
|
+
resolveSubagentRequestParams
|
|
122
|
+
} from "./chunk-APVM5NEU.js";
|
|
123
|
+
import "./chunk-F2V2F4ZG.js";
|
|
124
|
+
import "./chunk-BDRGN3L2.js";
|
|
125
|
+
import "./chunk-FY4A63RK.js";
|
|
126
|
+
import "./chunk-RYRGL7P4.js";
|
|
127
|
+
import "./chunk-ES6PBSIE.js";
|
|
124
128
|
import "./chunk-FVDOXRUD.js";
|
|
125
129
|
import "./chunk-UJOCPOMX.js";
|
|
126
130
|
import "./chunk-IMLCWLPI.js";
|
|
127
131
|
import "./chunk-RQ2Q5IYR.js";
|
|
128
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-RHCGYWO7.js";
|
|
129
133
|
import {
|
|
130
134
|
keyText
|
|
131
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-QW3AAHWN.js";
|
|
132
136
|
import {
|
|
133
137
|
getMarkdownTheme
|
|
134
|
-
} from "./chunk-
|
|
135
|
-
import "./chunk-
|
|
138
|
+
} from "./chunk-JL4HYQXK.js";
|
|
139
|
+
import "./chunk-64XTQNLA.js";
|
|
136
140
|
import "./chunk-Q4Q6D4IY.js";
|
|
137
141
|
import "./chunk-BRJX2PRC.js";
|
|
138
142
|
|
|
@@ -349,7 +353,7 @@ function formatCompactRowStats(tokens, durationMs) {
|
|
|
349
353
|
return `${formatTokenStat(tokens)} \xB7 ${durationMs > 0 ? formatDuration(durationMs) : "0ms"}`;
|
|
350
354
|
}
|
|
351
355
|
function formatCompactSubagentRow(theme, width, parts) {
|
|
352
|
-
let stats = formatCompactRowStats(parts.tokens, parts.durationMs), body = [
|
|
356
|
+
let stats = parts.waiting ? "waiting" : formatCompactRowStats(parts.tokens, parts.durationMs), body = [
|
|
353
357
|
`${parts.prefix ?? ""}${parts.glyph} ${themeBold(theme, parts.description)}`,
|
|
354
358
|
parts.modelBadge ? theme.fg("dim", parts.modelBadge) : "",
|
|
355
359
|
theme.fg("dim", stats),
|
|
@@ -634,13 +638,13 @@ function compactTerminalStatus(status) {
|
|
|
634
638
|
return "detached";
|
|
635
639
|
}
|
|
636
640
|
function compactJobProgress(job, step, now = Date.now()) {
|
|
637
|
-
let running = (step?.status ?? job.status) === "running", tokens = step?.tokens?.total ?? job.totalTokens?.total ?? 0;
|
|
641
|
+
let running = (step?.status ?? job.status) === "running", wholeJob = !step || !job.steps?.length && job.agents?.length === 1, tokens = step?.tokens?.total ?? (wholeJob ? job.totalTokens?.total : void 0) ?? 0;
|
|
638
642
|
if (step?.durationMs !== void 0)
|
|
639
643
|
return {
|
|
640
644
|
tokens,
|
|
641
645
|
durationMs: liveDurationMs({ durationMs: step.durationMs, lastActivityAt: step.lastActivityAt }, running, now)
|
|
642
646
|
};
|
|
643
|
-
let startedAt = step?.startedAt ?? job.startedAt;
|
|
647
|
+
let startedAt = step?.startedAt ?? (wholeJob ? job.startedAt : void 0);
|
|
644
648
|
if (startedAt === void 0)
|
|
645
649
|
return { tokens, durationMs: 0 };
|
|
646
650
|
let endedAt = running ? now : step?.endedAt ?? step?.lastActivityAt ?? job.updatedAt ?? now;
|
|
@@ -660,7 +664,8 @@ function compactJobLines(job, step, theme, width, now = Date.now()) {
|
|
|
660
664
|
modelBadge,
|
|
661
665
|
tokens: progress.tokens,
|
|
662
666
|
durationMs: progress.durationMs,
|
|
663
|
-
terminalStatus: compactTerminalStatus(step?.status ?? job.status)
|
|
667
|
+
terminalStatus: compactTerminalStatus(step?.status ?? job.status),
|
|
668
|
+
waiting: step?.status === "pending" || (step?.status ?? job.status) === "queued"
|
|
664
669
|
})];
|
|
665
670
|
}
|
|
666
671
|
var RESERVED_NON_WIDGET_ROWS = 19, widgetLayoutSession;
|
|
@@ -735,7 +740,7 @@ function buildWidgetLines(jobs, theme, width = getTermWidth(), expanded = !1, no
|
|
|
735
740
|
}
|
|
736
741
|
return lines;
|
|
737
742
|
}
|
|
738
|
-
var
|
|
743
|
+
var activeWidgets = /* @__PURE__ */ new Map(), SubagentAsyncWidget = class {
|
|
739
744
|
jobs;
|
|
740
745
|
expanded;
|
|
741
746
|
theme;
|
|
@@ -778,7 +783,9 @@ var activeWidget, SubagentAsyncWidget = class {
|
|
|
778
783
|
this.cachedWidth = void 0, this.cachedLines = void 0;
|
|
779
784
|
}
|
|
780
785
|
dispose() {
|
|
781
|
-
this.disposed = !0, this.stopTimer()
|
|
786
|
+
this.disposed = !0, this.stopTimer();
|
|
787
|
+
for (let [owner, widget] of activeWidgets)
|
|
788
|
+
widget === this && activeWidgets.delete(owner);
|
|
782
789
|
}
|
|
783
790
|
render(width) {
|
|
784
791
|
let theme = this.theme;
|
|
@@ -793,23 +800,29 @@ var activeWidget, SubagentAsyncWidget = class {
|
|
|
793
800
|
return this.cachedWidth = width, this.cachedLines = padded, padded;
|
|
794
801
|
}
|
|
795
802
|
};
|
|
796
|
-
function disposeSubagentWidget() {
|
|
797
|
-
|
|
803
|
+
function disposeSubagentWidget(ctx) {
|
|
804
|
+
if (ctx) {
|
|
805
|
+
activeWidgets.get(ctx.ui)?.dispose(), activeWidgets.delete(ctx.ui);
|
|
806
|
+
return;
|
|
807
|
+
}
|
|
808
|
+
for (let widget of activeWidgets.values())
|
|
809
|
+
widget.dispose();
|
|
810
|
+
activeWidgets.clear();
|
|
798
811
|
}
|
|
799
812
|
function renderWidget(ctx, jobs) {
|
|
800
813
|
if (jobs.length === 0) {
|
|
801
|
-
resetWidgetLayoutSession(), disposeSubagentWidget(), ctx.hasUI && ctx.ui.setWidget(WIDGET_KEY, void 0);
|
|
814
|
+
resetWidgetLayoutSession(), disposeSubagentWidget(ctx), ctx.hasUI && ctx.ui.setWidget(WIDGET_KEY, void 0);
|
|
802
815
|
return;
|
|
803
816
|
}
|
|
804
817
|
if (!ctx.hasUI)
|
|
805
818
|
return;
|
|
806
|
-
let expanded = ctx.ui.getToolsExpanded?.() ?? !1, requestRender = () => ctx.ui.requestRender?.();
|
|
819
|
+
let expanded = ctx.ui.getToolsExpanded?.() ?? !1, requestRender = () => ctx.ui.requestRender?.(), activeWidget = activeWidgets.get(ctx.ui);
|
|
807
820
|
if (activeWidget) {
|
|
808
821
|
activeWidget.setJobs(jobs), activeWidget.setExpanded(expanded), activeWidget.setRequestRender(requestRender), ctx.ui.requestRender?.();
|
|
809
822
|
return;
|
|
810
823
|
}
|
|
811
824
|
let widget = new SubagentAsyncWidget(jobs, void 0, { expanded, requestRender });
|
|
812
|
-
|
|
825
|
+
activeWidgets.set(ctx.ui, widget), ctx.ui.setWidget(WIDGET_KEY, (_tui, theme) => (widget.setTheme(theme), widget));
|
|
813
826
|
}
|
|
814
827
|
function compactResultTerminalStatus(result2) {
|
|
815
828
|
if (result2.stopped)
|
|
@@ -1038,7 +1051,7 @@ var SkillOverride = Type.Unsafe({
|
|
|
1038
1051
|
}), OutputModeOverride = Type.String({
|
|
1039
1052
|
enum: ["inline", "file-only"],
|
|
1040
1053
|
description: "Return saved output inline (default) or only a concise file reference. file-only requires output to be a path."
|
|
1041
|
-
}), TIER_SELECTION_DESCRIPTION = "Choose the
|
|
1054
|
+
}), TIER_SELECTION_DESCRIPTION = "Choose for the child's specific assignment: 'light' for bounded lookups and straightforward verification; 'standard' by default for implementation, debugging, testing, research synthesis, planning, and focused review, including multi-file work; 'heavy' only for a specific reasoning difficulty that makes standard insufficient, such as tightly coupled systems, conflicting architectural constraints, subtle concurrency/state bugs, or security-critical adversarial analysis. When uncertain, choose standard. Length, file count, unfamiliarity, and importance alone do not justify heavy. Heavy does not require a failed standard attempt; escalation should address a reasoning limitation, not missing context or tools.", TierOverride = Type.Optional(Type.String({
|
|
1042
1055
|
enum: ["light", "standard", "heavy"],
|
|
1043
1056
|
description: `Required by default. ${TIER_SELECTION_DESCRIPTION} Do not combine with model. The configured tier model must be available and authenticated.`
|
|
1044
1057
|
})), ModelOverride = Type.Optional(Type.String({
|
|
@@ -1863,18 +1876,20 @@ ${baseOutput}` : ""}` : output, sessionPath = result2.sessionFile ?? (resultChil
|
|
|
1863
1876
|
if (!state.watcher) {
|
|
1864
1877
|
state.watcherRestartTimer && (timers.clearTimeout(state.watcherRestartTimer), timers.clearInterval(state.watcherRestartTimer), state.watcherRestartTimer = null);
|
|
1865
1878
|
try {
|
|
1866
|
-
let watchDir = resolveWatchPath(resultsDir, fsApi.realpathSync.native)
|
|
1867
|
-
|
|
1868
|
-
if (ev !== "rename" || !file)
|
|
1879
|
+
let watchDir = resolveWatchPath(resultsDir, fsApi.realpathSync.native), watcher = fsApi.watch(watchDir, (ev, file) => {
|
|
1880
|
+
if (state.watcher !== watcher || ev !== "rename" || !file)
|
|
1869
1881
|
return;
|
|
1870
1882
|
let fileName = file.toString();
|
|
1871
1883
|
fileName.endsWith(".json") && state.resultFileCoalescer.schedule(fileName);
|
|
1872
|
-
})
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1884
|
+
});
|
|
1885
|
+
state.watcher = watcher, watcher.on("error", (error) => {
|
|
1886
|
+
if (state.watcher === watcher) {
|
|
1887
|
+
if (shouldFallBackToPolling(error)) {
|
|
1888
|
+
startPollingFallback(error);
|
|
1889
|
+
return;
|
|
1890
|
+
}
|
|
1891
|
+
report(`Subagent result watcher failed for '${resultsDir}':`, error), state.watcher?.close(), state.watcher = null, scheduleRestart();
|
|
1876
1892
|
}
|
|
1877
|
-
report(`Subagent result watcher failed for '${resultsDir}':`, error), state.watcher?.close(), state.watcher = null, scheduleRestart();
|
|
1878
1893
|
}), state.watcher.unref?.();
|
|
1879
1894
|
} catch (error) {
|
|
1880
1895
|
if (shouldFallBackToPolling(error)) {
|
|
@@ -2305,6 +2320,7 @@ function parseFrontmatter(content) {
|
|
|
2305
2320
|
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js
|
|
2306
2321
|
var RESERVED_COMMAND_NAMES = /* @__PURE__ */ new Set([
|
|
2307
2322
|
"chain-prompts",
|
|
2323
|
+
"chain-workflows",
|
|
2308
2324
|
"prompt-workflow",
|
|
2309
2325
|
"run",
|
|
2310
2326
|
"chain",
|
|
@@ -2528,8 +2544,8 @@ function registerPromptWorkflowCommands(input) {
|
|
|
2528
2544
|
ctx.ui.notify(error instanceof Error ? error.message : String(error), "error");
|
|
2529
2545
|
}
|
|
2530
2546
|
}
|
|
2531
|
-
}), pi.registerCommand("chain-
|
|
2532
|
-
description: "Run prompt
|
|
2547
|
+
}), pi.registerCommand("chain-workflows", {
|
|
2548
|
+
description: "Run prompt workflows as a native subagent chain: /chain-workflows analyze -> fix -- args",
|
|
2533
2549
|
handler: async (rawArgs, ctx) => {
|
|
2534
2550
|
let { declaration, argsText } = splitChainDeclaration(rawArgs), workflows = discoverPromptWorkflows(ctx.cwd);
|
|
2535
2551
|
if (!declaration || declaration === "list") {
|
|
@@ -2538,7 +2554,7 @@ function registerPromptWorkflowCommands(input) {
|
|
|
2538
2554
|
}
|
|
2539
2555
|
let runtime = parseRuntimeOptions(shellWords(argsText)), names = splitPromptChain(declaration);
|
|
2540
2556
|
if (names.length === 0) {
|
|
2541
|
-
ctx.ui.notify("Usage: /chain-
|
|
2557
|
+
ctx.ui.notify("Usage: /chain-workflows prompt-a -> prompt-b -- args", "error");
|
|
2542
2558
|
return;
|
|
2543
2559
|
}
|
|
2544
2560
|
try {
|
|
@@ -4867,7 +4883,7 @@ ${communication.message}`, 0, 0);
|
|
|
4867
4883
|
}
|
|
4868
4884
|
function renderCommunicationCard(communication, expanded, theme) {
|
|
4869
4885
|
let box = new Box(1, 1, (text) => theme.bg("toolSuccessBg", text));
|
|
4870
|
-
return box.addChild(new Text2(theme.fg("toolTitle", theme.bold(`\u25CF subagent ${communication.kind}`)), 0, 0)), expanded && box.addChild(renderCommunicationBody(communication, theme)), box;
|
|
4886
|
+
return box.addChild(new Text2(theme.fg("toolTitle", theme.bold(`\u25CF subagent ${communication.kind === "handoff" ? "progress" : communication.kind}`)), 0, 0)), expanded && box.addChild(renderCommunicationBody(communication, theme)), box;
|
|
4871
4887
|
}
|
|
4872
4888
|
function renderCommunicationCall(name, args, theme, context, communication, displayTitle) {
|
|
4873
4889
|
let container = new Container2(), details = context?.result?.details, saved = readCommunication(details?.communication) ?? communication, action = args.action ?? (args.reason === "need_decision" ? "request" : args.reason === "interview_request" ? "interview" : args.reason === "progress_update" ? "progress" : args.reason), title = theme.fg("toolTitle", theme.bold(`${name}${action ? ` ${action}` : ""}`));
|
|
@@ -6236,31 +6252,13 @@ ${JSON.stringify(report, null, 2)}
|
|
|
6236
6252
|
};
|
|
6237
6253
|
}
|
|
6238
6254
|
function registerSubagentNotify(pi, state, options = {}) {
|
|
6239
|
-
let
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
previousUnsubscribe();
|
|
6243
|
-
} catch {
|
|
6244
|
-
}
|
|
6245
|
-
let previousBatcher = globalStore[batcherStoreKey];
|
|
6246
|
-
if (previousBatcher && typeof previousBatcher.dispose == "function")
|
|
6247
|
-
try {
|
|
6248
|
-
previousBatcher.dispose();
|
|
6249
|
-
} catch {
|
|
6250
|
-
}
|
|
6251
|
-
let seen = getGlobalSeenMap("__pi_subagents_notify_seen__"), ttlMs = 600 * 1e3, nowFn = options.now ?? Date.now, batchConfig = resolveCompletionBatchConfig(options.batchConfig), batchers = /* @__PURE__ */ new Map();
|
|
6252
|
-
globalStore[batcherStoreKey] = {
|
|
6253
|
-
dispose() {
|
|
6254
|
-
for (let batcher of batchers.values())
|
|
6255
|
-
batcher.dispose();
|
|
6256
|
-
batchers.clear();
|
|
6257
|
-
}
|
|
6258
|
-
};
|
|
6259
|
-
let handleComplete = (data) => {
|
|
6255
|
+
let disposed = !1, seen = getGlobalSeenMap("__pi_subagents_notify_seen__"), ttlMs = 600 * 1e3, nowFn = options.now ?? Date.now, batchConfig = resolveCompletionBatchConfig(options.batchConfig), batchers = /* @__PURE__ */ new Map(), handleComplete = (data) => {
|
|
6256
|
+
if (disposed)
|
|
6257
|
+
return;
|
|
6260
6258
|
let result2 = data;
|
|
6261
6259
|
if (typeof result2.sessionId != "string" || result2.sessionId !== state.currentSessionId)
|
|
6262
6260
|
return;
|
|
6263
|
-
let now = nowFn(), key = buildCompletionKey(result2, "notify")
|
|
6261
|
+
let now = nowFn(), key = `${result2.sessionId}:${buildCompletionKey(result2, "notify")}`;
|
|
6264
6262
|
if (markSeenWithTtl(seen, key, now, ttlMs))
|
|
6265
6263
|
return;
|
|
6266
6264
|
let details = buildCompletionDetails(result2);
|
|
@@ -6271,7 +6269,9 @@ function registerSubagentNotify(pi, state, options = {}) {
|
|
|
6271
6269
|
let batchKey = completionBatchKey(result2), batcher = batchers.get(batchKey);
|
|
6272
6270
|
if (batcher || (batcher = createCompletionBatcher({
|
|
6273
6271
|
config: batchConfig,
|
|
6274
|
-
emit: (items) =>
|
|
6272
|
+
emit: (items) => {
|
|
6273
|
+
!disposed && result2.sessionId === state.currentSessionId && sendCompletion(pi, items);
|
|
6274
|
+
},
|
|
6275
6275
|
...options.timers ? { timers: options.timers } : {},
|
|
6276
6276
|
now: nowFn
|
|
6277
6277
|
}), batchers.set(batchKey, batcher)), details.status !== "completed") {
|
|
@@ -6283,9 +6283,15 @@ function registerSubagentNotify(pi, state, options = {}) {
|
|
|
6283
6283
|
pi.events.on(SUBAGENT_ASYNC_COMPLETE_EVENT, handleComplete),
|
|
6284
6284
|
pi.events.on(SUBAGENT_FOREGROUND_COMPLETE_EVENT, handleComplete)
|
|
6285
6285
|
].filter((unsubscribe) => typeof unsubscribe == "function");
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6286
|
+
return () => {
|
|
6287
|
+
if (!disposed) {
|
|
6288
|
+
disposed = !0;
|
|
6289
|
+
for (let batcher of batchers.values())
|
|
6290
|
+
batcher.dispose();
|
|
6291
|
+
batchers.clear();
|
|
6292
|
+
for (let unsubscribe of unsubscribers)
|
|
6293
|
+
unsubscribe();
|
|
6294
|
+
}
|
|
6289
6295
|
};
|
|
6290
6296
|
}
|
|
6291
6297
|
|
|
@@ -6340,10 +6346,13 @@ function loadConfig() {
|
|
|
6340
6346
|
import * as fs9 from "node:fs";
|
|
6341
6347
|
import * as path11 from "node:path";
|
|
6342
6348
|
var CUSTOM_TOOL_DESCRIPTION_FILE = "subagent-tool-description.md", CUSTOM_TOOL_DESCRIPTION_MAX_BYTES = 50 * 1024, SUBAGENT_TIER_GUIDANCE = `TIER SELECTION:
|
|
6343
|
-
\u2022 Choose the
|
|
6344
|
-
\u2022 light: Use for
|
|
6345
|
-
\u2022 standard:
|
|
6346
|
-
\u2022 heavy:
|
|
6349
|
+
\u2022 Choose the tier for the child's specific assignment, not the size or importance of the overall project.
|
|
6350
|
+
\u2022 light: Use for bounded lookups, fact gathering, small code inspections, and straightforward verification.
|
|
6351
|
+
\u2022 standard: Default for implementation, debugging, testing, research synthesis, planning, and focused code review. Standard can handle multi-file changes and unfamiliar code when the assignment has a clear goal.
|
|
6352
|
+
\u2022 heavy: Reserve for tasks whose central difficulty requires reasoning across tightly coupled systems, resolving conflicting architectural constraints, diagnosing subtle concurrency or state bugs, or adversarial analysis of security-critical behavior.
|
|
6353
|
+
\u2022 Before choosing heavy, identify the specific difficulty that makes standard insufficient. Task length, file count, unfamiliarity, importance, or the words "review" and "architecture" are not enough by themselves.
|
|
6354
|
+
\u2022 When uncertain between standard and heavy, choose standard. Use heavy upfront when the difficulty is already clear; do not require a failed standard attempt.
|
|
6355
|
+
\u2022 If standard gets blocked, distinguish missing context, unavailable tools, and unclear requirements from a reasoning limitation. Escalate for the reasoning limitation, passing along findings rather than restarting the investigation.`, SUBAGENT_COORDINATION_GUIDANCE = "Define file ownership, local decision authority, and required outputs at launch. Establish shared contracts before dependent parallel work; use chains and artifacts to pass results. When enabled, native child intercom reaches the supervisor only, not siblings. Reserve parent relays for actionable exceptions, not routine progress or implementation approvals.", SUBAGENT_SAFETY_GUIDANCE = `SAFETY-CRITICAL SUBAGENT GUIDANCE:
|
|
6347
6356
|
\u2022 Prompt children directly. There is no agent roster. Every execution task needs task (the full child prompt) and description (a concise UI label).
|
|
6348
6357
|
\u2022 Every executable child chooses exactly one of tier: "light"|"standard"|"heavy" (default) or model: "provider/id" when the user names a model. Do not pass both, and do not use inherit. Missing, disabled, unconfigured, unavailable, or unauthenticated selections fail before launch.
|
|
6349
6358
|
\u2022 Optional thinking (off/minimal/low/medium/high/xhigh/max) is only valid with an explicit model. Tier launches use the configured tier thinking level.
|
|
@@ -6373,7 +6382,7 @@ CHAIN TEMPLATE VARIABLES (use in task and description strings):
|
|
|
6373
6382
|
\u2022 {chain_dir} - Shared directory for chain files (e.g., <tmpdir>/pi-subagents-<scope>/chain-runs/abc123/)
|
|
6374
6383
|
|
|
6375
6384
|
CHAIN EXAMPLES:
|
|
6376
|
-
\u2022 Sequential: { chain: [{task:"Analyze {task}", description:"Analyze request", tier:"standard"}, {task:"Plan based on {previous}", description:"Draft plan", tier:"
|
|
6385
|
+
\u2022 Sequential: { chain: [{task:"Analyze {task}", description:"Analyze request", tier:"standard"}, {task:"Plan based on {previous}", description:"Draft plan", tier:"standard"}] }
|
|
6377
6386
|
\u2022 Parallel fan-out: { chain: [{parallel: [{task:"Check part of {task}", description:"Check one part", tier:"light", permissions:"read-only", count: 3}]}] }
|
|
6378
6387
|
\u2022 Mixed: { chain: [{task:"Research {task}", description:"Research request", tier:"standard", permissions:"read-only"}, {parallel: [{task:"Review {previous}", description:"Review findings", tier:"light", permissions:"read-only", count: 2}]}, {task:"Summarize {previous}", description:"Summarize reviews", tier:"standard"}] }
|
|
6379
6388
|
|
|
@@ -6633,12 +6642,6 @@ function createSlashResultComponent(details, options, theme) {
|
|
|
6633
6642
|
function registerSubagentExtension(pi) {
|
|
6634
6643
|
if (process.env[SUBAGENT_CHILD_ENV] === "1")
|
|
6635
6644
|
return;
|
|
6636
|
-
let globalStore = globalThis, runtimeCleanupStoreKey = "__piSubagentRuntimeCleanup", previousRuntimeCleanup = globalStore[runtimeCleanupStoreKey];
|
|
6637
|
-
if (typeof previousRuntimeCleanup == "function")
|
|
6638
|
-
try {
|
|
6639
|
-
previousRuntimeCleanup();
|
|
6640
|
-
} catch {
|
|
6641
|
-
}
|
|
6642
6645
|
ensureAccessibleDir(RESULTS_DIR), ensureAccessibleDir(ASYNC_DIR), cleanupOldChainDirs();
|
|
6643
6646
|
let config = normalizeAsyncLaunchConfig(loadConfig()), waitToolConfig = resolveWaitToolConfig(config.waitTool), tempArtifactsDir = getArtifactsDir(null);
|
|
6644
6647
|
cleanupAllArtifactDirs(DEFAULT_ARTIFACT_CONFIG.cleanupDays);
|
|
@@ -6665,13 +6668,7 @@ function registerSubagentExtension(pi) {
|
|
|
6665
6668
|
clear: () => {
|
|
6666
6669
|
}
|
|
6667
6670
|
}
|
|
6668
|
-
}, supervisorChannel = createNativeSupervisorChannel(pi, state), mainWatchdog = registerMainWatchdog(pi), { startResultWatcher, primeExistingResults, stopResultWatcher } = createResultWatcher(pi, state, RESULTS_DIR, 600 * 1e3)
|
|
6669
|
-
startResultWatcher(), primeExistingResults();
|
|
6670
|
-
let generation = 0, executorPromise, pendingLaunches = /* @__PURE__ */ new Set(), pendingAsyncLaunches = /* @__PURE__ */ new Set(), unregisterCancellation, runtimeCleanup = () => {
|
|
6671
|
-
generation++, supervisorChannel.cancelOwnedQuestions("parent runtime replaced"), state.sessionGeneration = (state.sessionGeneration ?? 0) + 1, executorPromise = void 0, pendingLaunches.clear(), pendingAsyncLaunches.clear(), unregisterCancellation?.(), mainWatchdog.dispose(), stopResultWatcher(), scheduledRunManager.stop(), supervisorChannel.dispose(), clearPendingForegroundControlNotices(state), disposeSubagentWidget(), state.poller && (clearInterval(state.poller), state.poller = null);
|
|
6672
|
-
};
|
|
6673
|
-
globalStore[runtimeCleanupStoreKey] = runtimeCleanup;
|
|
6674
|
-
let { ensurePoller, refreshWidget, handleStarted, handleComplete: trackComplete, resetJobs, restoreActiveJobs } = createAsyncJobTracker(pi, state, ASYNC_DIR, {
|
|
6671
|
+
}, supervisorChannel = createNativeSupervisorChannel(pi, state), mainWatchdog = registerMainWatchdog(pi), { startResultWatcher, primeExistingResults, stopResultWatcher } = createResultWatcher(pi, state, RESULTS_DIR, 600 * 1e3), generation = 0, executorPromise, pendingLaunches = /* @__PURE__ */ new Set(), pendingAsyncLaunches = /* @__PURE__ */ new Set(), unregisterCancellation, { ensurePoller, refreshWidget, handleStarted, handleComplete: trackComplete, resetJobs, restoreActiveJobs } = createAsyncJobTracker(pi, state, ASYNC_DIR, {
|
|
6675
6672
|
widgetEnabled: config.asyncWidget !== !1
|
|
6676
6673
|
}), handleComplete = (data) => {
|
|
6677
6674
|
trackComplete(data);
|
|
@@ -6695,7 +6692,7 @@ function registerSubagentExtension(pi) {
|
|
|
6695
6692
|
try {
|
|
6696
6693
|
let currentGeneration = generation;
|
|
6697
6694
|
if (signal?.throwIfAborted(), !executorPromise) {
|
|
6698
|
-
let pending = import("./subagent-executor-
|
|
6695
|
+
let pending = import("./subagent-executor-Q5F7DBVM.js").then(({ createSubagentExecutor }) => {
|
|
6699
6696
|
if (generation !== currentGeneration)
|
|
6700
6697
|
throw new Error("Subagent session changed before initialization");
|
|
6701
6698
|
return createSubagentExecutor({
|
|
@@ -6799,19 +6796,7 @@ function registerSubagentExtension(pi) {
|
|
|
6799
6796
|
}), pi.on("agent_end", async (_event, ctx) => {
|
|
6800
6797
|
ctx.hasUI || await drainOutstandingWork({ state, events: pi.events, hasPendingMessages: () => ctx.hasPendingMessages() });
|
|
6801
6798
|
}), registerSlashCommands(pi, state);
|
|
6802
|
-
let
|
|
6803
|
-
if (Array.isArray(previousEventUnsubscribes)) {
|
|
6804
|
-
for (let unsubscribe of previousEventUnsubscribes)
|
|
6805
|
-
if (typeof unsubscribe == "function")
|
|
6806
|
-
try {
|
|
6807
|
-
unsubscribe();
|
|
6808
|
-
} catch {
|
|
6809
|
-
}
|
|
6810
|
-
}
|
|
6811
|
-
registerSubagentNotify(pi, state, { batchConfig: config.completionBatch });
|
|
6812
|
-
let existingVisibleControlNotices = globalStore[controlNoticeSeenStoreKey], visibleControlNotices = existingVisibleControlNotices instanceof Set ? existingVisibleControlNotices : /* @__PURE__ */ new Set();
|
|
6813
|
-
globalStore[controlNoticeSeenStoreKey] = visibleControlNotices;
|
|
6814
|
-
let controlEventHandler = (payload) => {
|
|
6799
|
+
let disposeNotify = registerSubagentNotify(pi, state, { batchConfig: config.completionBatch }), visibleControlNotices = /* @__PURE__ */ new Set(), controlEventHandler = (payload) => {
|
|
6815
6800
|
handleSubagentControlNotice({
|
|
6816
6801
|
pi,
|
|
6817
6802
|
state,
|
|
@@ -6827,7 +6812,7 @@ function registerSubagentExtension(pi) {
|
|
|
6827
6812
|
pi.events.on(SUBAGENT_STEERING_NOTICE_EVENT, steeringNoticeHandler),
|
|
6828
6813
|
rpcBridge.dispose
|
|
6829
6814
|
];
|
|
6830
|
-
|
|
6815
|
+
pi.on("tool_result", (event, ctx) => {
|
|
6831
6816
|
event.toolName === "subagent" && ctx.hasUI && (state.lastUiContext = ctx, state.asyncJobs.size > 0 && (refreshWidget(ctx), ensurePoller()));
|
|
6832
6817
|
});
|
|
6833
6818
|
let cleanupSessionArtifacts = (ctx) => {
|
|
@@ -6837,34 +6822,47 @@ function registerSubagentExtension(pi) {
|
|
|
6837
6822
|
} catch {
|
|
6838
6823
|
}
|
|
6839
6824
|
}, resetSessionState = (ctx) => {
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6825
|
+
generation++, disposeNotify(), disposeNotify = registerSubagentNotify(pi, state, { batchConfig: config.completionBatch }), stopResultWatcher(), supervisorChannel.dispose(), state.sessionGeneration = (state.sessionGeneration ?? 0) + 1, executorPromise = void 0, pendingLaunches.clear(), pendingAsyncLaunches.clear(), unregisterCancellation?.(), state.baseCwd = ctx.cwd, state.currentSessionId = resolveCurrentSessionId(ctx.sessionManager), state.subagentSpawns = { sessionId: state.currentSessionId, count: 0 }, state.lastUiContext = ctx, cleanupSessionArtifacts(ctx), clearPendingForegroundControlNotices(state), visibleControlNotices.clear();
|
|
6826
|
+
for (let entry of ctx.sessionManager.getEntries()) {
|
|
6827
|
+
if (entry.type !== "custom_message" && entry.type !== "custom" || entry.customType !== SUBAGENT_CONTROL_MESSAGE_TYPE)
|
|
6828
|
+
continue;
|
|
6829
|
+
let data = entry.type === "custom_message" ? entry.details : entry.data;
|
|
6830
|
+
if (!data || typeof data != "object" || !("event" in data))
|
|
6831
|
+
continue;
|
|
6832
|
+
let details = data;
|
|
6833
|
+
typeof details.event?.runId != "string" || typeof details.event.type != "string" || visibleControlNotices.add(controlNotificationKey(details.event, details.childIntercomTarget));
|
|
6843
6834
|
}
|
|
6844
|
-
|
|
6835
|
+
resetJobs(ctx), restoreActiveJobs(ctx);
|
|
6845
6836
|
let sessionId = state.currentSessionId, sessionGeneration = generation;
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6837
|
+
if (sessionId) {
|
|
6838
|
+
let cancellation = createSubagentCancellation({
|
|
6839
|
+
pendingLaunches: pendingAsyncLaunches,
|
|
6840
|
+
isCurrent: () => generation === sessionGeneration && state.currentSessionId === sessionId,
|
|
6841
|
+
getActiveRunIds: () => [...state.asyncJobs.values()].filter((job) => job.sessionId === sessionId && (job.status === "queued" || job.status === "running")).map((job) => job.asyncId),
|
|
6842
|
+
async stopRun(id) {
|
|
6843
|
+
return !(await executor.execute(randomUUID4(), { action: "stop", id }, new AbortController().signal, void 0, ctx)).isError;
|
|
6844
|
+
}
|
|
6845
|
+
}), unregisters = [.../* @__PURE__ */ new Set([sessionId, ctx.sessionManager.getSessionId()])].filter((id) => !!id).map((id) => registerSubagentCancellation(id, cancellation));
|
|
6846
|
+
unregisterCancellation = () => {
|
|
6847
|
+
for (let unregister of unregisters)
|
|
6848
|
+
unregister();
|
|
6849
|
+
};
|
|
6850
|
+
}
|
|
6851
|
+
scheduledRunManager.bindSession(ctx), restoreSlashFinalSnapshots(ctx.sessionManager.getEntries()), startResultWatcher(), primeExistingResults();
|
|
6854
6852
|
};
|
|
6855
6853
|
pi.on("session_start", (_event, ctx) => {
|
|
6856
6854
|
resetSessionState(ctx), rpcBridge.emitReady(ctx), supervisorChannel.start();
|
|
6857
6855
|
}), pi.on("session_shutdown", () => {
|
|
6858
|
-
generation++, supervisorChannel.cancelOwnedQuestions("parent session shutdown"), state.sessionGeneration = (state.sessionGeneration ?? 0) + 1, executorPromise = void 0, pendingLaunches.clear(), pendingAsyncLaunches.clear(), unregisterCancellation?.(),
|
|
6856
|
+
generation++, supervisorChannel.cancelOwnedQuestions("parent session shutdown"), state.sessionGeneration = (state.sessionGeneration ?? 0) + 1, executorPromise = void 0, pendingLaunches.clear(), pendingAsyncLaunches.clear(), unregisterCancellation?.(), disposeNotify(), mainWatchdog.dispose();
|
|
6859
6857
|
for (let unsubscribe of eventUnsubscribes)
|
|
6860
6858
|
try {
|
|
6861
6859
|
unsubscribe();
|
|
6862
6860
|
} catch {
|
|
6863
6861
|
}
|
|
6864
|
-
|
|
6862
|
+
stopResultWatcher(), scheduledRunManager.stop(), state.poller && clearInterval(state.poller), state.poller = null, clearPendingForegroundControlNotices(state);
|
|
6865
6863
|
for (let timer of state.cleanupTimers.values())
|
|
6866
6864
|
clearTimeout(timer);
|
|
6867
|
-
state.cleanupTimers.clear(), state.asyncJobs.clear(), clearSlashSnapshots(), slashBridge.cancelAll(), slashBridge.dispose(), promptTemplateBridge.cancelAll(), promptTemplateBridge.dispose(), supervisorChannel.dispose(),
|
|
6865
|
+
state.cleanupTimers.clear(), state.asyncJobs.clear(), clearSlashSnapshots(), slashBridge.cancelAll(), slashBridge.dispose(), promptTemplateBridge.cancelAll(), promptTemplateBridge.dispose(), supervisorChannel.dispose(), state.lastUiContext && disposeSubagentWidget(state.lastUiContext);
|
|
6868
6866
|
try {
|
|
6869
6867
|
state.lastUiContext?.hasUI && state.lastUiContext.ui.setWidget(WIDGET_KEY, void 0);
|
|
6870
6868
|
} catch (error) {
|