@ashx-j/lunr-dev 0.2.19-dev.10.1 → 0.2.25-dev.13.1
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 +60 -2
- package/README.md +2 -2
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +2 -2
- 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 -2
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-browser.d.ts +9 -0
- package/dist/builtin-extensions/lunr-browser.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-browser.js +169 -0
- package/dist/builtin-extensions/lunr-browser.js.map +1 -0
- package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-computer-use.js +15 -14
- package/dist/builtin-extensions/lunr-computer-use.js.map +1 -1
- package/dist/builtin-extensions/lunr-plan-tools.d.ts +7 -7
- package/dist/builtin-extensions/lunr-plan-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-plan-tools.js +12 -12
- package/dist/builtin-extensions/lunr-plan-tools.js.map +1 -1
- package/dist/builtin-extensions/lunr-todos.d.ts +6 -5
- package/dist/builtin-extensions/lunr-todos.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-todos.js +24 -7
- package/dist/builtin-extensions/lunr-todos.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts +6 -4
- package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/broker/spawn.js +114 -61
- package/dist/builtin-extensions/pi-intercom/broker/spawn.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +365 -351
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.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 +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js +5 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js +2 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +9 -7
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +143 -59
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts +18 -8
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +39 -14
- 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 +5 -3
- 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 +32 -17
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts +17 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js +45 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js +10 -14
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +12 -2
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +401 -58
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts +29 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +184 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +91 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +542 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +13 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +42 -12
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js +3 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js +35 -8
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js +2 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +7 -3
- 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 +26 -4
- 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 +1 -0
- 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 +55 -38
- 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 +100 -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 +47 -32
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +6 -6
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +75 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts +15 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js +14 -4
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +43 -4
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts +1 -0
- 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 +26 -9
- 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 +4 -3
- 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 +0 -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 +94 -25
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js +75 -18
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.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 +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts +13 -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 +67 -11
- 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 +1 -0
- 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.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +25 -15
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js +3 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +17 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js +5 -10
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js +3 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts +3 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +70 -13
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts +12 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js +21 -2
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +23 -4
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts +7 -0
- 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 +11 -7
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +6 -0
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +46 -29
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts +18 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +48 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +46 -4
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +407 -450
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts +2 -13
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js +5 -91
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.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 +11 -7
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +2 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/install-cli.d.ts.map +1 -1
- package/dist/cli/install-cli.js +15 -45
- package/dist/cli/install-cli.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +9 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +126 -29
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session.d.ts +23 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +255 -109
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/browser/network.d.ts +9 -0
- package/dist/core/browser/network.d.ts.map +1 -0
- package/dist/core/browser/network.js +146 -0
- package/dist/core/browser/network.js.map +1 -0
- package/dist/core/browser/runtime.d.ts +24 -0
- package/dist/core/browser/runtime.d.ts.map +1 -0
- package/dist/core/browser/runtime.js +289 -0
- package/dist/core/browser/runtime.js.map +1 -0
- package/dist/core/browser/schema.d.ts +16 -0
- package/dist/core/browser/schema.d.ts.map +1 -0
- package/dist/core/browser/schema.js +36 -0
- package/dist/core/browser/schema.js.map +1 -0
- package/dist/core/browser/settings.d.ts +8 -0
- package/dist/core/browser/settings.d.ts.map +1 -0
- package/dist/core/browser/settings.js +30 -0
- package/dist/core/browser/settings.js.map +1 -0
- package/dist/core/browser/setup.d.ts +2 -0
- package/dist/core/browser/setup.d.ts.map +1 -0
- package/dist/core/browser/setup.js +16 -0
- package/dist/core/browser/setup.js.map +1 -0
- package/dist/core/catalog-cache-scope.d.ts.map +1 -1
- package/dist/core/catalog-cache-scope.js +3 -1
- package/dist/core/catalog-cache-scope.js.map +1 -1
- 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 +72 -0
- package/dist/core/computer-use/image.js.map +1 -0
- package/dist/core/computer-use/policy.d.ts.map +1 -1
- package/dist/core/computer-use/policy.js +2 -6
- package/dist/core/computer-use/policy.js.map +1 -1
- package/dist/core/computer-use/schemas.d.ts +14 -10
- package/dist/core/computer-use/schemas.d.ts.map +1 -1
- package/dist/core/computer-use/schemas.js +27 -35
- package/dist/core/computer-use/schemas.js.map +1 -1
- package/dist/core/computer-use/workflow.d.ts +16 -8
- package/dist/core/computer-use/workflow.d.ts.map +1 -1
- package/dist/core/computer-use/workflow.js +337 -260
- package/dist/core/computer-use/workflow.js.map +1 -1
- package/dist/core/customize.d.ts +2 -0
- package/dist/core/customize.d.ts.map +1 -1
- package/dist/core/customize.js +17 -13
- package/dist/core/customize.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +1 -1
- package/dist/core/export-html/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 +1 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +1 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/install-features.d.ts.map +1 -1
- package/dist/core/install-features.js +10 -8
- package/dist/core/install-features.js.map +1 -1
- package/dist/core/memory-cap.d.ts.map +1 -1
- package/dist/core/memory-cap.js +5 -3
- package/dist/core/memory-cap.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +3 -2
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/model-tiers.d.ts.map +1 -1
- package/dist/core/model-tiers.js +9 -6
- package/dist/core/model-tiers.js.map +1 -1
- package/dist/core/permissions.d.ts +17 -23
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +79 -146
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts +10 -12
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +20 -24
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/process-registry.d.ts.map +1 -1
- package/dist/core/process-registry.js +6 -4
- package/dist/core/process-registry.js.map +1 -1
- package/dist/core/runtime-bridges.d.ts.map +1 -1
- package/dist/core/runtime-bridges.js +2 -2
- package/dist/core/runtime-bridges.js.map +1 -1
- package/dist/core/runtime-scope.d.ts +11 -0
- package/dist/core/runtime-scope.d.ts.map +1 -0
- package/dist/core/runtime-scope.js +3 -0
- package/dist/core/runtime-scope.js.map +1 -0
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +26 -6
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-handoff.d.ts +35 -0
- package/dist/core/session-handoff.d.ts.map +1 -0
- package/dist/core/session-handoff.js +214 -0
- package/dist/core/session-handoff.js.map +1 -0
- package/dist/core/session-manager.d.ts +20 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +191 -22
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-ownership.d.ts +28 -0
- package/dist/core/session-ownership.d.ts.map +1 -0
- package/dist/core/session-ownership.js +138 -0
- package/dist/core/session-ownership.js.map +1 -0
- package/dist/core/session-retention.d.ts.map +1 -1
- package/dist/core/session-retention.js +11 -2
- package/dist/core/session-retention.js.map +1 -1
- package/dist/core/settings-manager.d.ts +24 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +78 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +6 -4
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/subagent-cancellation.d.ts +21 -0
- package/dist/core/subagent-cancellation.d.ts.map +1 -0
- package/dist/core/subagent-cancellation.js +53 -0
- package/dist/core/subagent-cancellation.js.map +1 -0
- package/dist/core/subagent-permission-inherit.d.ts +6 -10
- package/dist/core/subagent-permission-inherit.d.ts.map +1 -1
- package/dist/core/subagent-permission-inherit.js +14 -14
- package/dist/core/subagent-permission-inherit.js.map +1 -1
- package/dist/core/subagent-spinner-setting.d.ts +6 -0
- package/dist/core/subagent-spinner-setting.d.ts.map +1 -0
- package/dist/core/subagent-spinner-setting.js +12 -0
- package/dist/core/subagent-spinner-setting.js.map +1 -0
- package/dist/core/subagent-spinner.d.ts +4 -0
- package/dist/core/subagent-spinner.d.ts.map +1 -0
- package/dist/core/subagent-spinner.js +6 -0
- package/dist/core/subagent-spinner.js.map +1 -0
- package/dist/core/subagent-wait-interruption.d.ts +11 -0
- package/dist/core/subagent-wait-interruption.d.ts.map +1 -0
- package/dist/core/subagent-wait-interruption.js +19 -0
- package/dist/core/subagent-wait-interruption.js.map +1 -0
- package/dist/core/system-prompt.d.ts +2 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +14 -4
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/todo-settings.d.ts +5 -0
- package/dist/core/todo-settings.d.ts.map +1 -0
- package/dist/core/todo-settings.js +7 -0
- package/dist/core/todo-settings.js.map +1 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +4 -4
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +5 -3
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +4 -4
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +4 -4
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +4 -4
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +4 -4
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +14 -5
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +34 -7
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +4 -4
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/usage-service.d.ts.map +1 -1
- package/dist/core/usage-service.js +5 -3
- package/dist/core/usage-service.js.map +1 -1
- package/dist/gateway/adapters/discord.d.ts +12 -1
- package/dist/gateway/adapters/discord.d.ts.map +1 -1
- package/dist/gateway/adapters/discord.js +114 -24
- package/dist/gateway/adapters/discord.js.map +1 -1
- package/dist/gateway/adapters/telegram.d.ts +4 -2
- package/dist/gateway/adapters/telegram.d.ts.map +1 -1
- package/dist/gateway/adapters/telegram.js +41 -11
- package/dist/gateway/adapters/telegram.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +18 -4
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +305 -73
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/approval.d.ts +3 -6
- package/dist/gateway/approval.d.ts.map +1 -1
- package/dist/gateway/approval.js +62 -24
- package/dist/gateway/approval.js.map +1 -1
- package/dist/gateway/authz.d.ts +2 -0
- package/dist/gateway/authz.d.ts.map +1 -1
- package/dist/gateway/authz.js +13 -0
- package/dist/gateway/authz.js.map +1 -1
- package/dist/gateway/buttons.d.ts +3 -1
- package/dist/gateway/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +45 -20
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/command.d.ts.map +1 -1
- package/dist/gateway/command.js +49 -4
- package/dist/gateway/command.js.map +1 -1
- package/dist/gateway/commands.d.ts +2 -0
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +52 -16
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/config.d.ts +6 -0
- package/dist/gateway/config.d.ts.map +1 -1
- package/dist/gateway/config.js +7 -0
- package/dist/gateway/config.js.map +1 -1
- package/dist/gateway/conversations.d.ts +14 -0
- package/dist/gateway/conversations.d.ts.map +1 -0
- package/dist/gateway/conversations.js +30 -0
- package/dist/gateway/conversations.js.map +1 -0
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +2 -2
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/download.d.ts +2 -0
- package/dist/gateway/download.d.ts.map +1 -0
- package/dist/gateway/download.js +36 -0
- package/dist/gateway/download.js.map +1 -0
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +106 -47
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts +24 -0
- package/dist/gateway/mobile-commands.d.ts.map +1 -0
- package/dist/gateway/mobile-commands.js +423 -0
- package/dist/gateway/mobile-commands.js.map +1 -0
- package/dist/gateway/presenter.d.ts +27 -0
- package/dist/gateway/presenter.d.ts.map +1 -0
- package/dist/gateway/presenter.js +308 -0
- package/dist/gateway/presenter.js.map +1 -0
- package/dist/gateway/router.d.ts +6 -5
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +126 -43
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts +46 -0
- package/dist/gateway/service.d.ts.map +1 -0
- package/dist/gateway/service.js +404 -0
- package/dist/gateway/service.js.map +1 -0
- package/dist/gateway/setup.d.ts +9 -0
- package/dist/gateway/setup.d.ts.map +1 -0
- package/dist/gateway/setup.js +202 -0
- package/dist/gateway/setup.js.map +1 -0
- package/dist/gateway/stream.d.ts +6 -5
- package/dist/gateway/stream.d.ts.map +1 -1
- package/dist/gateway/stream.js +24 -11
- package/dist/gateway/stream.js.map +1 -1
- package/dist/gateway/types.d.ts +4 -2
- package/dist/gateway/types.d.ts.map +1 -1
- package/dist/gateway/types.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +19 -2
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +90 -35
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/copyable-text.d.ts +27 -0
- package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -0
- package/dist/modes/interactive/components/copyable-text.js +156 -0
- package/dist/modes/interactive/components/copyable-text.js.map +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js +8 -0
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +8 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +16 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +16 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +147 -4
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-tail.d.ts +9 -2
- package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-tail.js +43 -1
- package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +5 -3
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +55 -44
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/extension-widget-order.d.ts +8 -0
- package/dist/modes/interactive/extension-widget-order.d.ts.map +1 -0
- package/dist/modes/interactive/extension-widget-order.js +37 -0
- package/dist/modes/interactive/extension-widget-order.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +11 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +386 -155
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts +1 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +23 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/node-runtime/agent-session-services-MQUPZSIN.js +51 -0
- package/dist/node-runtime/{builtin-extensions-7STLFW3A.js → builtin-extensions-4GNDR6U3.js} +8 -6
- package/dist/node-runtime/{chunk-LTXUQJI4.js → chunk-24C5IAJ4.js} +1 -6
- package/dist/node-runtime/chunk-2BLXLDJR.js +144 -0
- package/dist/node-runtime/{chunk-RQ5DNUNG.js → chunk-2CMV4L24.js} +21 -124
- package/dist/node-runtime/{chunk-OTT6JMPU.js → chunk-2MI5OPMN.js} +17 -370
- package/dist/node-runtime/{chunk-W3CVH5RX.js → chunk-2TKODGBZ.js} +11 -6
- package/dist/node-runtime/{chunk-K72NVGUB.js → chunk-33SIKK3Y.js} +38 -164
- package/dist/node-runtime/{chunk-GZQHMEWL.js → chunk-3DKIWPKN.js} +19 -4
- package/dist/node-runtime/{chunk-5OLJGVCB.js → chunk-3ONQTOMR.js} +2 -2
- package/dist/node-runtime/{chunk-3GHXVUAK.js → chunk-3VEY2IYY.js} +1 -1
- package/dist/node-runtime/chunk-4ER2ZV4Z.js +537 -0
- package/dist/node-runtime/chunk-4EULYYR4.js +62 -0
- package/dist/node-runtime/{chunk-BKAZ6BKX.js → chunk-4SBQAI4T.js} +31 -31
- package/dist/node-runtime/{chunk-W7S2REEG.js → chunk-53ARRUHA.js} +785 -285
- package/dist/node-runtime/{chunk-ZSEZY3II.js → chunk-5Q4A37RB.js} +10 -4
- package/dist/node-runtime/{chunk-SWSN6HAB.js → chunk-5UZOPGE3.js} +1 -1
- package/dist/node-runtime/{chunk-LCACDWHJ.js → chunk-5Z5PCXGY.js} +263 -222
- package/dist/node-runtime/chunk-5ZH3ZFIZ.js +308 -0
- package/dist/node-runtime/chunk-7JIYPIQU.js +356 -0
- package/dist/node-runtime/{chunk-ZRDIMBEQ.js → chunk-AJ6R5VTV.js} +66 -91
- package/dist/node-runtime/chunk-ATIF3RX5.js +352 -0
- package/dist/node-runtime/chunk-BBUVIEZB.js +51 -0
- package/dist/node-runtime/chunk-CCCN2UCX.js +14 -0
- package/dist/node-runtime/chunk-CJS4KQFI.js +3412 -0
- package/dist/node-runtime/chunk-DO6PALE2.js +205 -0
- package/dist/node-runtime/{chunk-MUMMMTW4.js → chunk-DRJI7ZSC.js} +572 -401
- package/dist/node-runtime/{chunk-6SPPH4FY.js → chunk-E75WFZ33.js} +4 -4
- package/dist/node-runtime/{chunk-MJQDX3BA.js → chunk-EBB4BJW4.js} +3 -3
- package/dist/node-runtime/{chunk-5NWQCSKR.js → chunk-EOEAQIJV.js} +70 -3
- package/dist/node-runtime/chunk-EOPL2HMM.js +117 -0
- package/dist/node-runtime/chunk-H4K3JDRB.js +47 -0
- package/dist/node-runtime/{chunk-HRS4HMDX.js → chunk-HT2XEJNP.js} +19 -3
- package/dist/node-runtime/chunk-IMLCWLPI.js +9 -0
- package/dist/node-runtime/{chunk-FLYMHKCS.js → chunk-JJWZB7S3.js} +60 -48
- package/dist/node-runtime/chunk-KFFOQR4G.js +672 -0
- package/dist/node-runtime/chunk-L5LZUGT7.js +40 -0
- package/dist/node-runtime/chunk-LV6CEFW2.js +97 -0
- package/dist/node-runtime/{chunk-EHMBW7FA.js → chunk-LWYIVUGV.js} +5 -4
- package/dist/node-runtime/{chunk-T5GM5BFH.js → chunk-MFV2LOOX.js} +186 -2194
- package/dist/node-runtime/{chunk-5SQDLSZJ.js → chunk-MNRO3UCV.js} +2 -2
- package/dist/node-runtime/{chunk-JHYKXIMM.js → chunk-MPKSOJBT.js} +1 -1
- package/dist/node-runtime/{chunk-C4O2RSQQ.js → chunk-N4TUWAGA.js} +1 -1
- package/dist/node-runtime/{chunk-4SJWFTUP.js → chunk-NAY6UUQZ.js} +1 -1
- package/dist/node-runtime/chunk-NKH2QBKF.js +773 -0
- package/dist/node-runtime/chunk-O2AT4MEU.js +124 -0
- package/dist/node-runtime/chunk-OAR4TYZE.js +146 -0
- package/dist/node-runtime/{chunk-DDGMHUOW.js → chunk-OGJN3OZV.js} +2 -1
- package/dist/node-runtime/{chunk-MX3GJNXJ.js → chunk-PLGA743X.js} +23 -0
- package/dist/node-runtime/chunk-Q3FEOEDA.js +1364 -0
- package/dist/node-runtime/chunk-QFADHUQV.js +74 -0
- package/dist/node-runtime/chunk-RBZQU6TJ.js +27 -0
- package/dist/node-runtime/{chunk-MGSB2C3M.js → chunk-RVOQBXTA.js} +10 -6
- package/dist/node-runtime/{chunk-ISQDQIZN.js → chunk-RW4PYFNE.js} +14 -94
- package/dist/node-runtime/chunk-TP7K7YWS.js +2830 -0
- package/dist/node-runtime/{chunk-TAP7QTUT.js → chunk-TVLBDVTR.js} +46 -436
- package/dist/node-runtime/chunk-UAEOTO52.js +119 -0
- package/dist/node-runtime/{chunk-MGWCVY6Y.js → chunk-UDKX3PFN.js} +3 -3
- package/dist/node-runtime/{chunk-AY6CAJSL.js → chunk-UJOCPOMX.js} +6 -3
- package/dist/node-runtime/{chunk-J7QGQD45.js → chunk-UQUCFAJ3.js} +1 -1
- package/dist/node-runtime/chunk-US544NN6.js +13 -0
- package/dist/node-runtime/{chunk-7AFOFSDY.js → chunk-V3HK3FE7.js} +1 -1
- package/dist/node-runtime/{chunk-6UB6NKA3.js → chunk-VIVYOI7C.js} +130 -27
- package/dist/node-runtime/{chunk-5Q45AVQG.js → chunk-XHIRAZ26.js} +1 -1
- package/dist/node-runtime/chunk-YPHAIRZT.js +10 -0
- package/dist/node-runtime/{chunk-3RCWXWAY.js → chunk-YRUY57IN.js} +1 -1
- package/dist/node-runtime/cli-runtime.js +2 -2
- package/dist/node-runtime/command-PYBNGLPP.js +45 -0
- package/dist/node-runtime/{commands-LGR5VT5X.js → commands-EMBQQVVT.js} +13 -13
- package/dist/node-runtime/commands-Y2OUC2T7.js +37 -0
- package/dist/node-runtime/config-7DYMNJUO.js +20 -0
- package/dist/node-runtime/{customize-XEXL2DGQ.js → customize-VFJV3U6A.js} +2 -1
- package/dist/node-runtime/{direct-tool-executor-TDJS7TBD.js → direct-tool-executor-4D7UXYU4.js} +10 -10
- package/dist/node-runtime/{export-html-E4DT6ZJQ.js → export-html-ETFOKW3M.js} +4 -3
- package/dist/node-runtime/{extension-input-RV5N6APL.js → extension-input-7QODTFAS.js} +4 -4
- package/dist/node-runtime/{extension-selector-CPD5LWDD.js → extension-selector-T65JEDJ5.js} +4 -4
- package/dist/node-runtime/{extract-IUCVZCWC.js → extract-EQJE7FZZ.js} +2 -2
- package/dist/node-runtime/gateway-QENRQA5X.js +1476 -0
- package/dist/node-runtime/{gemini-search-NCIDF7NE.js → gemini-search-35OCRFLN.js} +1 -1
- package/dist/node-runtime/{gemini-url-context-OKIN7AIP.js → gemini-url-context-UQY3PHHW.js} +2 -2
- package/dist/node-runtime/index.js +120 -77
- package/dist/node-runtime/{init-EKE277AG.js → init-P5AUV77I.js} +5 -5
- package/dist/node-runtime/{install-cli-TH7IJJQQ.js → install-cli-KHAXYBOO.js} +21 -82
- package/dist/node-runtime/interactive-mode-IN77GQGX.js +74 -0
- package/dist/node-runtime/{interactive-view-N6F4KUIT.js → interactive-view-OMWDFGUQ.js} +10 -10
- package/dist/node-runtime/lunr-browser-VVPRWC3F.js +174 -0
- package/dist/node-runtime/lunr-computer-use-IAUNXSXH.js +138 -0
- package/dist/node-runtime/{lunr-cron-KKBOGAEF.js → lunr-cron-P6ZJGVEF.js} +22 -8
- package/dist/node-runtime/main.js +50 -35
- package/dist/node-runtime/{mcp-auth-flow-YL6RWPYG.js → mcp-auth-flow-QVLFVLEO.js} +2 -2
- package/dist/node-runtime/{memory-cap-3S4XRLNP.js → memory-cap-EL3KL4JJ.js} +2 -1
- package/dist/node-runtime/mobile-commands-WKFSFACZ.js +33 -0
- package/dist/node-runtime/model-runtime-YXGJS5OJ.js +16 -0
- package/dist/node-runtime/{model-tiers-NJLHUEGK.js → model-tiers-OU3U5CZG.js} +2 -1
- package/dist/node-runtime/{package-manager-cli-C4EJOO5Q.js → package-manager-cli-J337RKTI.js} +28 -19
- package/dist/node-runtime/{pi-intercom-EEMBGQID.js → pi-intercom-QM53RLTS.js} +114 -88
- package/dist/node-runtime/{pi-mcp-adapter-DPTJGAAL.js → pi-mcp-adapter-3PHF4KZ4.js} +9 -8
- package/dist/node-runtime/{pi-subagents-VKCLYIBY.js → pi-subagents-RCHPB6UK.js} +1476 -646
- package/dist/node-runtime/{pi-web-access-BV6DSZOP.js → pi-web-access-PNG35XW7.js} +11 -11
- package/dist/node-runtime/process-registry-PVJ44F7H.js +31 -0
- package/dist/node-runtime/{proxy-modes-R64LU6WZ.js → proxy-modes-5FAPSZEZ.js} +14 -14
- package/dist/node-runtime/rpc-entry.js +50 -35
- package/dist/node-runtime/{rpc-mode-SJNSOA4G.js → rpc-mode-SH7VB4RH.js} +2 -2
- package/dist/node-runtime/runtime-4VA6JKNF.js +373 -0
- package/dist/node-runtime/runtime-bridges-3CQHWVVY.js +21 -0
- package/dist/node-runtime/service-HGGU3STY.js +36 -0
- package/dist/node-runtime/session-handoff-IAFIK7QP.js +33 -0
- package/dist/node-runtime/{session-manager-QEMZBMTM.js → session-manager-TCEFDKBL.js} +2 -1
- package/dist/node-runtime/{session-selector-URVJLOTK.js → session-selector-HG5J4BDZ.js} +5 -4
- package/dist/node-runtime/{settings-manager-K6IPIQTI.js → settings-manager-HIBIUNBK.js} +13 -5
- package/dist/node-runtime/setup-JBKOLJ6F.js +18 -0
- package/dist/node-runtime/setup-YU5LKRL3.js +215 -0
- package/dist/node-runtime/{subagent-executor-EFLTO32A.js → subagent-executor-2BH76MMS.js} +242 -314
- package/dist/node-runtime/theme-WTJWZSGD.js +68 -0
- package/dist/node-runtime/trust-manager-6ZQANSBX.js +17 -0
- package/dist/node-runtime/{update-cli-I6OVDRPL.js → update-cli-TVTPVUNM.js} +7 -3
- package/dist/node-runtime/usage-service-LFB2SWYV.js +37 -0
- package/dist/node-runtime/{video-extract-ETA5RA7U.js → video-extract-OOZHR7SU.js} +2 -2
- package/dist/node-runtime/workflow-TVJNKKQP.js +509 -0
- package/dist/node-runtime/{youtube-extract-SRVGNN26.js → youtube-extract-FNPAUNHU.js} +6 -6
- package/dist/startup/interactive-view.d.ts.map +1 -1
- package/dist/startup/interactive-view.js +5 -1
- package/dist/startup/interactive-view.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 +10 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/docs/browser.md +86 -0
- package/docs/computer-use.md +319 -268
- package/docs/extensions.md +2 -0
- package/docs/features.md +129 -30
- package/docs/index.md +1 -1
- package/docs/interactive-startup.md +2 -1
- package/docs/keybindings.md +4 -2
- package/docs/providers.md +6 -2
- package/docs/quickstart.md +2 -2
- package/docs/sessions.md +10 -0
- package/docs/settings.md +6 -3
- package/docs/tui.md +2 -0
- package/docs/usage.md +20 -4
- 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/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/plan-mode/README.md +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/install-lock/package-lock.json +39 -25
- package/install-lock/package.json +2 -2
- package/npm-shrinkwrap.json +36 -22
- package/package.json +10 -7
- package/scripts/install-browser.mjs +20 -0
- package/dist/builtin-extensions/lunr-settings-tools.d.ts +0 -4
- package/dist/builtin-extensions/lunr-settings-tools.d.ts.map +0 -1
- package/dist/builtin-extensions/lunr-settings-tools.js +0 -120
- package/dist/builtin-extensions/lunr-settings-tools.js.map +0 -1
- package/dist/core/settings-tools-bridge.d.ts +0 -35
- package/dist/core/settings-tools-bridge.d.ts.map +0 -1
- package/dist/core/settings-tools-bridge.js +0 -56
- package/dist/core/settings-tools-bridge.js.map +0 -1
- package/dist/node-runtime/agent-session-services-RSGP5GDN.js +0 -39
- package/dist/node-runtime/chunk-EH2LJQPM.js +0 -64
- package/dist/node-runtime/chunk-HQCKFM2O.js +0 -56
- package/dist/node-runtime/chunk-JT6YCS5B.js +0 -5648
- package/dist/node-runtime/command-6UXQ6XZN.js +0 -13
- package/dist/node-runtime/gateway-3OLC4GQN.js +0 -2139
- package/dist/node-runtime/image-resize-6ZPBFMWW.js +0 -11
- package/dist/node-runtime/interactive-mode-S5M26CQ7.js +0 -59
- package/dist/node-runtime/lunr-computer-use-4X3KUNF4.js +0 -206
- package/dist/node-runtime/runtime-bridges-UJ5WJJLN.js +0 -14
- package/dist/node-runtime/workflow-SA34S4VX.js +0 -325
- package/dist/node-runtime/{chunk-U6C7VTR5.js → chunk-7IQGBKBJ.js} +3 -3
- package/dist/node-runtime/{mcp-panel-IIGMXQGP.js → mcp-panel-KTTFXJZ4.js} +3 -3
- package/dist/node-runtime/{src-GPFAU3N6.js → src-IVPNZ2BX.js} +6 -6
|
@@ -31,14 +31,17 @@ import { getModelTiersBridge } from "../../core/model-tiers.js";
|
|
|
31
31
|
import { registerPermissionModeBridge } from "../../core/permission-mode.js";
|
|
32
32
|
import { nextModeForGoal, registerPermissionModeControlBridge } from "../../core/permission-mode-control.js";
|
|
33
33
|
import { AUTO_MODE_ADDENDUM, getPermissionMode, nextPermissionMode, registerApprovalHandler, resetPermissions, restorePermissionModeAfterPlan, setPermissionMode, } from "../../core/permissions.js";
|
|
34
|
-
import {
|
|
34
|
+
import { READ_ONLY_MODE_ADDENDUM } from "../../core/plan-mode.js";
|
|
35
35
|
import * as processRegistry from "../../core/process-registry.js";
|
|
36
36
|
import { captureTreeChanges, clearRollback, disableRollbackForSession, enableRollbackForSession, initRollback, isRollbackEnabled, isRollbackSessionForceEnabled, migrateRollbackSession, peekRollbackTurnsConsumed, beginTurn as rollbackBeginTurn, rollbackLastTurn, setRollbackWarningHandler, } from "../../core/rollback.js";
|
|
37
37
|
import { getSearchCuratorSetting, setSearchCuratorSetting } from "../../core/search-curator.js";
|
|
38
38
|
import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
|
|
39
|
+
import { cancelSessionHandoff, markSessionHandoff, recordTuiActivity, registerTransferHandler, requestSessionTransfer, } from "../../core/session-handoff.js";
|
|
39
40
|
import { SessionManager, sessionEntryToContextMessages } from "../../core/session-manager.js";
|
|
40
41
|
import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
|
|
42
|
+
import { getSubagentCancellation, SubagentEscapeSequence } from "../../core/subagent-cancellation.js";
|
|
41
43
|
import { time } from "../../core/timings.js";
|
|
44
|
+
import { notifyTodosEnabledChanged } from "../../core/todo-settings.js";
|
|
42
45
|
import { hasTrustRequiringProjectResources, ProjectTrustStore } from "../../core/trust-manager.js";
|
|
43
46
|
import { checkForUpdate, markUpdateNotified } from "../../core/update-check.js";
|
|
44
47
|
import { getAllPlanUsageResults, getUsageServiceBridge } from "../../core/usage-service.js";
|
|
@@ -87,6 +90,7 @@ import { TrustSelectorComponent } from "./components/trust-selector.js";
|
|
|
87
90
|
import { renderUsageBox } from "./components/usage-view.js";
|
|
88
91
|
import { UserMessageComponent } from "./components/user-message.js";
|
|
89
92
|
import { UserMessageSelectorComponent } from "./components/user-message-selector.js";
|
|
93
|
+
import { orderedExtensionWidgets, replaceExtensionWidget, widgetSeparatorNeedsSpacer, } from "./extension-widget-order.js";
|
|
90
94
|
import { getModelSearchText } from "./model-search.js";
|
|
91
95
|
import { wrapSkillTagAutocomplete } from "./skill-tag-autocomplete.js";
|
|
92
96
|
import { computeSmoothRevealStep, countGraphemesBeforeToolCall, countMessageGraphemes, sliceMessageContent, } from "./smooth-streaming.js";
|
|
@@ -119,9 +123,9 @@ function isDeadTerminalError(error) {
|
|
|
119
123
|
const code = error.code;
|
|
120
124
|
return code !== undefined && DEAD_TERMINAL_ERROR_CODES.has(code);
|
|
121
125
|
}
|
|
122
|
-
const ANTHROPIC_SUBSCRIPTION_AUTH_WARNING = "Anthropic subscription
|
|
126
|
+
const ANTHROPIC_SUBSCRIPTION_AUTH_WARNING = "Claude Code handles Anthropic subscription authentication. lunR retains tool execution and conversation state. Check your Claude account for usage and any extra charges.";
|
|
123
127
|
// lunr: pre-connection ToS disclaimer for Anthropic subscription (OAuth) accounts.
|
|
124
|
-
const ANTHROPIC_TOS_DISCLAIMER = "Connecting an Anthropic subscription
|
|
128
|
+
const ANTHROPIC_TOS_DISCLAIMER = "Connecting an Anthropic subscription through Claude Code may be subject to Anthropic's Terms of Service (https://www.anthropic.com/legal/consumer-terms). Claude Code authenticates each lunR generation; lunR keeps its own tools and history. Continue?";
|
|
125
129
|
const INIT_PROMPT = `Analyze this codebase and write a starter AGENTS.md in the project root.
|
|
126
130
|
Scan: package manifests, directory layout, build/test/lint scripts, CI config,
|
|
127
131
|
existing README/docs. Include only: project purpose (one paragraph), build &
|
|
@@ -239,6 +243,7 @@ export class InteractiveMode {
|
|
|
239
243
|
hiddenThinkingLabel = this.defaultHiddenThinkingLabel;
|
|
240
244
|
lastSigintTime = 0;
|
|
241
245
|
lastEscapeTime = 0;
|
|
246
|
+
subagentEscape = new SubagentEscapeSequence();
|
|
242
247
|
anthropicSubscriptionWarningShown = false;
|
|
243
248
|
// Status line tracking (for mutating immediately-sequential status updates)
|
|
244
249
|
lastStatusSpacer = undefined;
|
|
@@ -252,8 +257,10 @@ export class InteractiveMode {
|
|
|
252
257
|
streamingTargetMessage = undefined;
|
|
253
258
|
streamingDisplayedLength = 0;
|
|
254
259
|
smoothStreamingTimer = undefined;
|
|
260
|
+
thinkingAnimationTimer;
|
|
255
261
|
// Tool execution tracking: toolCallId -> component
|
|
256
262
|
pendingTools = new Map();
|
|
263
|
+
browserActivityComponent;
|
|
257
264
|
// Tool output expansion state
|
|
258
265
|
toolOutputExpanded = false;
|
|
259
266
|
// Thinking block visibility state
|
|
@@ -272,8 +279,7 @@ export class InteractiveMode {
|
|
|
272
279
|
signalCleanupHandlers = [];
|
|
273
280
|
// Track if editor is in bash mode (text starts with !)
|
|
274
281
|
isBashMode = false;
|
|
275
|
-
//
|
|
276
|
-
// / `/plan <text>` to leave plan. Shift+Tab and `/mode` pick the destination themselves.
|
|
282
|
+
// Restore the previous mode after approving a plan or leaving read-only via /plan.
|
|
277
283
|
previousPermissionMode;
|
|
278
284
|
// lunr: mode in effect before `/goal` forced session auto. Dedicated so it cannot
|
|
279
285
|
// collide with plan restore.
|
|
@@ -357,7 +363,9 @@ export class InteractiveMode {
|
|
|
357
363
|
await this.rebindCurrentSession({ renderBeforeBind: true });
|
|
358
364
|
// lunr: re-init rollback for the new session id + re-apply auto force-enable.
|
|
359
365
|
initRollback(this.settingsManager, this.sessionManager.getSessionId());
|
|
360
|
-
this.
|
|
366
|
+
const mode = this.sessionManager.getPermissionMode() ?? this.settingsManager.getDefaultPermissionMode();
|
|
367
|
+
resetPermissions(mode);
|
|
368
|
+
this.syncPermissionModeEffects(mode);
|
|
361
369
|
});
|
|
362
370
|
this.version = VERSION;
|
|
363
371
|
this.ui = options.startupView?.ui ?? new TUI(new ProcessTerminal(), this.settingsManager.getShowHardwareCursor());
|
|
@@ -368,8 +376,7 @@ export class InteractiveMode {
|
|
|
368
376
|
enterGoalAuto: () => this.enterGoalAuto(),
|
|
369
377
|
leaveGoalAuto: () => this.leaveGoalAuto(),
|
|
370
378
|
});
|
|
371
|
-
|
|
372
|
-
resetPermissions(this.settingsManager.getDefaultPermissionMode());
|
|
379
|
+
resetPermissions(this.sessionManager.getPermissionMode() ?? this.settingsManager.getDefaultPermissionMode());
|
|
373
380
|
this.headerContainer = new Container();
|
|
374
381
|
if (options.startupView) {
|
|
375
382
|
this.headerContainer.addChild(new Spacer(1));
|
|
@@ -603,28 +610,27 @@ export class InteractiveMode {
|
|
|
603
610
|
time("ui.start");
|
|
604
611
|
void this.maybeNotifyCliUpdate();
|
|
605
612
|
this.startPlanUsagePolling();
|
|
606
|
-
//
|
|
613
|
+
// Plans and large subagent launches use distinct approval dialogs.
|
|
607
614
|
registerApprovalHandler(async (req) => {
|
|
608
615
|
if (req.kind === "large-subagent-launch") {
|
|
609
616
|
return this.showLargeSubagentLaunchApprovalDialog(req);
|
|
610
617
|
}
|
|
611
|
-
//
|
|
612
|
-
// restore runs BEFORE resolving so the model's next tool call already
|
|
613
|
-
// has full access. Decline keeps plan mode active.
|
|
618
|
+
// Approval restores writing access before the model's next tool call.
|
|
614
619
|
if (req.kind === "plan") {
|
|
615
620
|
const resp = await this.showPlanApprovalDialog(req.detail);
|
|
616
621
|
const decision = typeof resp === "string" ? resp : resp.decision;
|
|
617
622
|
if (decision !== "reject") {
|
|
618
|
-
this.
|
|
623
|
+
const target = this.restoreTargetAfterPlan();
|
|
624
|
+
this.applyPermissionMode(target === "read-only" ? "yolo" : target);
|
|
619
625
|
}
|
|
620
626
|
return resp;
|
|
621
627
|
}
|
|
622
|
-
return
|
|
628
|
+
return "reject";
|
|
623
629
|
});
|
|
624
630
|
// lunr: initialize rollback service for this session.
|
|
625
631
|
initRollback(this.settingsManager, this.sessionManager.getSessionId());
|
|
626
632
|
setRollbackWarningHandler((msg) => this.showStatus(msg));
|
|
627
|
-
this.syncPermissionModeEffects(this.settingsManager.getDefaultPermissionMode());
|
|
633
|
+
this.syncPermissionModeEffects(this.sessionManager.getPermissionMode() ?? this.settingsManager.getDefaultPermissionMode());
|
|
628
634
|
await this.themeController.applyFromSettings();
|
|
629
635
|
this.headerContainer.clear();
|
|
630
636
|
// Add boot screen header (unless silenced)
|
|
@@ -1380,7 +1386,7 @@ export class InteractiveMode {
|
|
|
1380
1386
|
if (result.cancelled) {
|
|
1381
1387
|
return { cancelled: true };
|
|
1382
1388
|
}
|
|
1383
|
-
this.
|
|
1389
|
+
this.clearChatContainer();
|
|
1384
1390
|
this.renderInitialMessages();
|
|
1385
1391
|
if (result.editorText && !this.editor.getText().trim()) {
|
|
1386
1392
|
this.restoreEditorFromTreeResult(result);
|
|
@@ -1449,8 +1455,26 @@ export class InteractiveMode {
|
|
|
1449
1455
|
}
|
|
1450
1456
|
return bootRows;
|
|
1451
1457
|
}
|
|
1458
|
+
unregisterSessionTransfer;
|
|
1459
|
+
transferInProgress = false;
|
|
1460
|
+
detachedDraft = "";
|
|
1452
1461
|
async rebindCurrentSession(options = {}) {
|
|
1453
1462
|
await this.waitForDeferredBuiltins();
|
|
1463
|
+
this.unregisterSessionTransfer?.();
|
|
1464
|
+
recordTuiActivity(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
1465
|
+
this.unregisterSessionTransfer = registerTransferHandler(this.sessionManager, async ({ stop, signal }) => {
|
|
1466
|
+
this.transferInProgress = true;
|
|
1467
|
+
try {
|
|
1468
|
+
this.detachedDraft = this.editor.getText();
|
|
1469
|
+
await this.runtimeHost.releaseForTransfer({ stop, signal });
|
|
1470
|
+
this.editor.setText(this.detachedDraft);
|
|
1471
|
+
this.unregisterSessionTransfer?.();
|
|
1472
|
+
this.showStatus("Session released for remote continuation. Draft retained. Use /reclaim to continue here.");
|
|
1473
|
+
}
|
|
1474
|
+
finally {
|
|
1475
|
+
this.transferInProgress = false;
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1454
1478
|
this.unsubscribe?.();
|
|
1455
1479
|
this.unsubscribe = undefined;
|
|
1456
1480
|
this.applyRuntimeSettings();
|
|
@@ -1481,7 +1505,7 @@ export class InteractiveMode {
|
|
|
1481
1505
|
renderCurrentSessionState() {
|
|
1482
1506
|
this.ui.setChatScroll(0);
|
|
1483
1507
|
this.loadedResourcesContainer.clear();
|
|
1484
|
-
this.
|
|
1508
|
+
this.clearChatContainer();
|
|
1485
1509
|
this.pendingMessagesContainer.clear();
|
|
1486
1510
|
this.compactionQueuedMessages = [];
|
|
1487
1511
|
this.pendingCompactionRender = undefined;
|
|
@@ -1614,21 +1638,8 @@ export class InteractiveMode {
|
|
|
1614
1638
|
*/
|
|
1615
1639
|
setExtensionWidget(key, content, options) {
|
|
1616
1640
|
const placement = options?.placement ?? "aboveEditor";
|
|
1617
|
-
const removeExisting = (map) => {
|
|
1618
|
-
const existing = map.get(key);
|
|
1619
|
-
if (existing?.dispose)
|
|
1620
|
-
existing.dispose();
|
|
1621
|
-
map.delete(key);
|
|
1622
|
-
};
|
|
1623
|
-
removeExisting(this.extensionWidgetsAbove);
|
|
1624
|
-
removeExisting(this.extensionWidgetsBelow);
|
|
1625
|
-
if (content === undefined) {
|
|
1626
|
-
this.renderWidgets();
|
|
1627
|
-
return;
|
|
1628
|
-
}
|
|
1629
1641
|
let component;
|
|
1630
1642
|
if (Array.isArray(content)) {
|
|
1631
|
-
// Wrap string array in a Container with Text components
|
|
1632
1643
|
const container = new Container();
|
|
1633
1644
|
for (const line of content.slice(0, InteractiveMode.MAX_WIDGET_LINES)) {
|
|
1634
1645
|
container.addChild(new Text(line, 1, 0));
|
|
@@ -1638,12 +1649,10 @@ export class InteractiveMode {
|
|
|
1638
1649
|
}
|
|
1639
1650
|
component = container;
|
|
1640
1651
|
}
|
|
1641
|
-
else {
|
|
1642
|
-
// Factory function - create component
|
|
1652
|
+
else if (content) {
|
|
1643
1653
|
component = content(this.ui, theme);
|
|
1644
1654
|
}
|
|
1645
|
-
|
|
1646
|
-
targetMap.set(key, component);
|
|
1655
|
+
replaceExtensionWidget(this.extensionWidgetsAbove, this.extensionWidgetsBelow, key, component, placement);
|
|
1647
1656
|
this.renderWidgets();
|
|
1648
1657
|
}
|
|
1649
1658
|
clearExtensionWidgets() {
|
|
@@ -1710,13 +1719,14 @@ export class InteractiveMode {
|
|
|
1710
1719
|
if (leadingSpacer) {
|
|
1711
1720
|
container.addChild(new Spacer(1));
|
|
1712
1721
|
}
|
|
1713
|
-
let
|
|
1714
|
-
for (const component of widgets
|
|
1715
|
-
if (
|
|
1716
|
-
|
|
1722
|
+
let previousKey;
|
|
1723
|
+
for (const [key, component] of orderedExtensionWidgets(widgets)) {
|
|
1724
|
+
if (previousKey !== undefined) {
|
|
1725
|
+
if (widgetSeparatorNeedsSpacer(previousKey, key))
|
|
1726
|
+
container.addChild(new Spacer(1));
|
|
1717
1727
|
container.addChild(new DynamicBorder((s) => theme.fg("dim", s)));
|
|
1718
1728
|
}
|
|
1719
|
-
|
|
1729
|
+
previousKey = key;
|
|
1720
1730
|
container.addChild(component);
|
|
1721
1731
|
}
|
|
1722
1732
|
}
|
|
@@ -2171,6 +2181,33 @@ export class InteractiveMode {
|
|
|
2171
2181
|
// Set up handlers on defaultEditor - they use this.editor for text access
|
|
2172
2182
|
// so they work correctly regardless of which editor is active
|
|
2173
2183
|
this.defaultEditor.onEscape = () => {
|
|
2184
|
+
const sessionId = this.session.sessionId;
|
|
2185
|
+
const cancellation = getSubagentCancellation(sessionId);
|
|
2186
|
+
const escapeAction = this.subagentEscape.press(sessionId, cancellation?.hasActiveRuns() ?? false);
|
|
2187
|
+
if (escapeAction) {
|
|
2188
|
+
this.lastEscapeTime = 0;
|
|
2189
|
+
if (this.session.isStreaming)
|
|
2190
|
+
this.restoreQueuedMessagesToEditor({ abort: true });
|
|
2191
|
+
else if (this.session.isBashRunning)
|
|
2192
|
+
this.session.abortBash();
|
|
2193
|
+
if (escapeAction === "children" && cancellation) {
|
|
2194
|
+
void cancellation
|
|
2195
|
+
.stop()
|
|
2196
|
+
.then(({ requested, failed }) => {
|
|
2197
|
+
if (this.session.sessionId !== sessionId)
|
|
2198
|
+
return;
|
|
2199
|
+
if (failed)
|
|
2200
|
+
this.showError(`Could not request stop for ${failed} async runs. Inspect subagent status.`);
|
|
2201
|
+
else if (requested)
|
|
2202
|
+
this.showStatus(`Stopping ${requested} async ${requested === 1 ? "run" : "runs"}`);
|
|
2203
|
+
})
|
|
2204
|
+
.catch((error) => {
|
|
2205
|
+
if (this.session.sessionId === sessionId)
|
|
2206
|
+
this.showError(error instanceof Error ? error.message : String(error));
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
return;
|
|
2210
|
+
}
|
|
2174
2211
|
if (this.session.isStreaming) {
|
|
2175
2212
|
this.restoreQueuedMessagesToEditor({ abort: true });
|
|
2176
2213
|
}
|
|
@@ -2378,6 +2415,51 @@ export class InteractiveMode {
|
|
|
2378
2415
|
setupEditorSubmitHandler() {
|
|
2379
2416
|
this.defaultEditor.onSubmit = async (text) => {
|
|
2380
2417
|
text = text.trim();
|
|
2418
|
+
if (text === "/reclaim" || text === "/reclaim stop") {
|
|
2419
|
+
const file = this.sessionManager.getSessionFile();
|
|
2420
|
+
try {
|
|
2421
|
+
if (!file)
|
|
2422
|
+
throw new Error("This session is not saved.");
|
|
2423
|
+
if (!this.runtimeHost.isDetached) {
|
|
2424
|
+
this.showStatus("This terminal already owns the session.");
|
|
2425
|
+
return;
|
|
2426
|
+
}
|
|
2427
|
+
const draft = this.editor.getText();
|
|
2428
|
+
await requestSessionTransfer(file, { stop: text === "/reclaim stop" });
|
|
2429
|
+
await this.runtimeHost.switchSession(file);
|
|
2430
|
+
this.editor.setText(draft === text ? this.detachedDraft : draft);
|
|
2431
|
+
this.showStatus("Session reclaimed.");
|
|
2432
|
+
}
|
|
2433
|
+
catch (error) {
|
|
2434
|
+
this.showError(error instanceof Error ? error.message : String(error));
|
|
2435
|
+
}
|
|
2436
|
+
return;
|
|
2437
|
+
}
|
|
2438
|
+
if ((this.runtimeHost.isDetached || this.transferInProgress) && !["/quit", "/exit"].includes(text)) {
|
|
2439
|
+
this.showError("Session is detached or transferring. Draft retained. Use /reclaim, /reclaim stop, or /quit.");
|
|
2440
|
+
return;
|
|
2441
|
+
}
|
|
2442
|
+
if (text === "/handoff" || text === "/handoff cancel") {
|
|
2443
|
+
try {
|
|
2444
|
+
if (text === "/handoff cancel")
|
|
2445
|
+
cancelSessionHandoff(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
2446
|
+
else
|
|
2447
|
+
markSessionHandoff(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
2448
|
+
this.showStatus(text === "/handoff cancel"
|
|
2449
|
+
? "Handoff mark cancelled."
|
|
2450
|
+
: "Marked for phone continuation for 8 hours. Busy work must finish or be explicitly stopped before transfer.");
|
|
2451
|
+
}
|
|
2452
|
+
catch (error) {
|
|
2453
|
+
this.showError(error instanceof Error ? error.message : String(error));
|
|
2454
|
+
}
|
|
2455
|
+
return;
|
|
2456
|
+
}
|
|
2457
|
+
if (text &&
|
|
2458
|
+
!this.runtimeHost.isDetached &&
|
|
2459
|
+
(!text.startsWith("/") ||
|
|
2460
|
+
/^\/(?:model|thinking|effort|reasoning|off|minimal|low|medium|high|xhigh|max|mode|plan|read|yolo|auto|name|title|undo|edit|redo|tree|compact)(?:\s|$)/.test(text))) {
|
|
2461
|
+
recordTuiActivity(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
2462
|
+
}
|
|
2381
2463
|
if (!text) {
|
|
2382
2464
|
this.takeSubmittedImages(text);
|
|
2383
2465
|
return;
|
|
@@ -2501,9 +2583,9 @@ export class InteractiveMode {
|
|
|
2501
2583
|
this.handleModeCommand(text === "/mode" ? "" : text.slice(6).trim());
|
|
2502
2584
|
return;
|
|
2503
2585
|
}
|
|
2504
|
-
if (text === "/
|
|
2586
|
+
if (text === "/read" || text === "/yolo" || text === "/auto") {
|
|
2505
2587
|
this.editor.setText("");
|
|
2506
|
-
this.applyPermissionMode(text.slice(1));
|
|
2588
|
+
this.applyPermissionMode(text === "/read" ? "read-only" : text.slice(1));
|
|
2507
2589
|
return;
|
|
2508
2590
|
}
|
|
2509
2591
|
if (text === "/processes") {
|
|
@@ -2605,15 +2687,30 @@ export class InteractiveMode {
|
|
|
2605
2687
|
}
|
|
2606
2688
|
return;
|
|
2607
2689
|
}
|
|
2608
|
-
//
|
|
2609
|
-
//
|
|
2610
|
-
if (this.session.isStreaming) {
|
|
2611
|
-
this.
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2690
|
+
// While streaming or settling a wait handoff, reserve normal Enter for subagent_wait when possible.
|
|
2691
|
+
// Extension commands keep their existing path.
|
|
2692
|
+
if (this.session.isStreaming || this.session.isWaitPromptHandoffActive) {
|
|
2693
|
+
if (!this.isExtensionCommand(text)) {
|
|
2694
|
+
await this.awaitDeferredBuiltinsForPrompt();
|
|
2695
|
+
const handoff = await this.session.interruptSubagentWaitWithPrompt(text, { images });
|
|
2696
|
+
if (handoff) {
|
|
2697
|
+
this.editor.addToHistory?.(text);
|
|
2698
|
+
this.editor.setText("");
|
|
2699
|
+
void handoff.completion.catch((error) => {
|
|
2700
|
+
this.showError(error instanceof Error ? error.message : String(error));
|
|
2701
|
+
});
|
|
2702
|
+
this.ui.requestRender();
|
|
2703
|
+
return;
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
if (this.session.isStreaming) {
|
|
2707
|
+
this.editor.addToHistory?.(text);
|
|
2708
|
+
this.editor.setText("");
|
|
2709
|
+
await this.promptAfterDeferredBuiltins(text, { streamingBehavior: "steer", images });
|
|
2710
|
+
this.updatePendingMessagesDisplay();
|
|
2711
|
+
this.ui.requestRender();
|
|
2712
|
+
return;
|
|
2713
|
+
}
|
|
2617
2714
|
}
|
|
2618
2715
|
// Normal message submission
|
|
2619
2716
|
// First, move any pending bash components to chat
|
|
@@ -2632,6 +2729,18 @@ export class InteractiveMode {
|
|
|
2632
2729
|
getSmoothStreamingOptions() {
|
|
2633
2730
|
return { hideThinking: this.hideThinkingBlock };
|
|
2634
2731
|
}
|
|
2732
|
+
setThinkingAnimation(active) {
|
|
2733
|
+
if (!active) {
|
|
2734
|
+
if (this.thinkingAnimationTimer)
|
|
2735
|
+
clearInterval(this.thinkingAnimationTimer);
|
|
2736
|
+
this.thinkingAnimationTimer = undefined;
|
|
2737
|
+
return;
|
|
2738
|
+
}
|
|
2739
|
+
if (this.thinkingAnimationTimer)
|
|
2740
|
+
return;
|
|
2741
|
+
this.thinkingAnimationTimer = setInterval(() => this.ui.requestRender(), 33);
|
|
2742
|
+
this.thinkingAnimationTimer.unref?.();
|
|
2743
|
+
}
|
|
2635
2744
|
clearSmoothStreamingTimer() {
|
|
2636
2745
|
if (this.smoothStreamingTimer) {
|
|
2637
2746
|
clearInterval(this.smoothStreamingTimer);
|
|
@@ -2672,12 +2781,9 @@ export class InteractiveMode {
|
|
|
2672
2781
|
if (content.type !== "toolCall" || !revealedIds.has(content.id))
|
|
2673
2782
|
continue;
|
|
2674
2783
|
if (!this.pendingTools.has(content.id)) {
|
|
2675
|
-
const component =
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
}, this.getRegisteredToolDefinition(content.name), this.ui, this.sessionManager.getCwd());
|
|
2679
|
-
component.setExpanded(this.toolOutputExpanded);
|
|
2680
|
-
this.addToolComponentToChat(component);
|
|
2784
|
+
const component = content.name === "browser" && this.browserActivityComponent
|
|
2785
|
+
? this.browserActivityComponent
|
|
2786
|
+
: this.createToolExecutionComponent(content.name, content.id, content.arguments);
|
|
2681
2787
|
this.pendingTools.set(content.id, component);
|
|
2682
2788
|
}
|
|
2683
2789
|
else {
|
|
@@ -2712,6 +2818,7 @@ export class InteractiveMode {
|
|
|
2712
2818
|
}
|
|
2713
2819
|
}
|
|
2714
2820
|
stopSmoothStreaming() {
|
|
2821
|
+
this.setThinkingAnimation(false);
|
|
2715
2822
|
this.clearSmoothStreamingTimer();
|
|
2716
2823
|
this.streamingTargetMessage = undefined;
|
|
2717
2824
|
this.streamingDisplayedLength = 0;
|
|
@@ -2751,6 +2858,7 @@ export class InteractiveMode {
|
|
|
2751
2858
|
switch (event.type) {
|
|
2752
2859
|
case "agent_start":
|
|
2753
2860
|
this.pendingTools.clear();
|
|
2861
|
+
this.browserActivityComponent = undefined;
|
|
2754
2862
|
if (this.settingsManager.getShowTerminalProgress()) {
|
|
2755
2863
|
this.ui.terminal.setProgress(true);
|
|
2756
2864
|
}
|
|
@@ -2803,7 +2911,11 @@ export class InteractiveMode {
|
|
|
2803
2911
|
this.ui.requestRender();
|
|
2804
2912
|
}
|
|
2805
2913
|
else if (event.message.role === "assistant") {
|
|
2806
|
-
this.streamingComponent = new AssistantMessageComponent(undefined, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel, this.outputPad, this.thinkingCollapse
|
|
2914
|
+
this.streamingComponent = new AssistantMessageComponent(undefined, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel, this.outputPad, this.thinkingCollapse, {
|
|
2915
|
+
requestRender: () => this.ui.requestRender(),
|
|
2916
|
+
reasoningDisplay: this.settingsManager.getReasoningDisplay(),
|
|
2917
|
+
onThinkingAnimationChange: (active) => this.setThinkingAnimation(active),
|
|
2918
|
+
});
|
|
2807
2919
|
// lunr: collapsible reasoning — fresh timing array for this message.
|
|
2808
2920
|
this.thinkingRunTimings = [];
|
|
2809
2921
|
this.streamingComponent.setThinkingTimings(this.thinkingRunTimings);
|
|
@@ -2910,14 +3022,12 @@ export class InteractiveMode {
|
|
|
2910
3022
|
}
|
|
2911
3023
|
let component = this.pendingTools.get(event.toolCallId);
|
|
2912
3024
|
if (!component) {
|
|
2913
|
-
component =
|
|
2914
|
-
showImages: this.settingsManager.getShowImages(),
|
|
2915
|
-
imageWidthCells: this.settingsManager.getImageWidthCells(),
|
|
2916
|
-
}, this.getRegisteredToolDefinition(event.toolName), this.ui, this.sessionManager.getCwd());
|
|
2917
|
-
component.setExpanded(this.toolOutputExpanded);
|
|
2918
|
-
this.addToolComponentToChat(component);
|
|
3025
|
+
component = this.createToolExecutionComponent(event.toolName, event.toolCallId, event.args);
|
|
2919
3026
|
this.pendingTools.set(event.toolCallId, component);
|
|
2920
3027
|
}
|
|
3028
|
+
else if (event.toolName === "browser" && !component.matchesToolCall(event.toolCallId)) {
|
|
3029
|
+
component.beginNextExecution(event.toolCallId, event.args);
|
|
3030
|
+
}
|
|
2921
3031
|
component.markExecutionStarted();
|
|
2922
3032
|
this.ui.requestRender();
|
|
2923
3033
|
break;
|
|
@@ -2952,6 +3062,7 @@ export class InteractiveMode {
|
|
|
2952
3062
|
this.streamingMessage = undefined;
|
|
2953
3063
|
}
|
|
2954
3064
|
this.pendingTools.clear();
|
|
3065
|
+
this.browserActivityComponent = undefined;
|
|
2955
3066
|
this.maybeAutoNameSession();
|
|
2956
3067
|
// lunr: capture tree-scope changes at turn boundary (bash side-effects).
|
|
2957
3068
|
captureTreeChanges(this.sessionManager.getCwd(), this.sessionManager.getSessionId());
|
|
@@ -3170,7 +3281,10 @@ export class InteractiveMode {
|
|
|
3170
3281
|
break;
|
|
3171
3282
|
}
|
|
3172
3283
|
case "assistant": {
|
|
3173
|
-
const assistantComponent = new AssistantMessageComponent(message, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel, this.outputPad, this.thinkingCollapse
|
|
3284
|
+
const assistantComponent = new AssistantMessageComponent(message, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel, this.outputPad, this.thinkingCollapse, {
|
|
3285
|
+
requestRender: () => this.ui.requestRender(),
|
|
3286
|
+
reasoningDisplay: this.settingsManager.getReasoningDisplay(),
|
|
3287
|
+
});
|
|
3174
3288
|
// lunr: collapsible reasoning — re-attach live timings when this
|
|
3175
3289
|
// message was streamed in this session (undefined = history).
|
|
3176
3290
|
assistantComponent.setThinkingTimings(this.thinkingTimingsByMessage.get(message));
|
|
@@ -3190,6 +3304,7 @@ export class InteractiveMode {
|
|
|
3190
3304
|
}
|
|
3191
3305
|
renderSessionItems(items, options = {}) {
|
|
3192
3306
|
this.pendingTools.clear();
|
|
3307
|
+
let browserActivityComponent;
|
|
3193
3308
|
const renderedPendingTools = new Map();
|
|
3194
3309
|
// Cache-miss notices are not persisted; re-derive them from the full entry
|
|
3195
3310
|
// list and re-inject them after the assistant messages that paid for them.
|
|
@@ -3212,12 +3327,20 @@ export class InteractiveMode {
|
|
|
3212
3327
|
// Render tool call components
|
|
3213
3328
|
for (const content of message.content) {
|
|
3214
3329
|
if (content.type === "toolCall") {
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}
|
|
3219
|
-
|
|
3220
|
-
|
|
3330
|
+
let component = content.name === "browser" ? browserActivityComponent : undefined;
|
|
3331
|
+
if (component) {
|
|
3332
|
+
component.beginNextExecution(content.id, content.arguments);
|
|
3333
|
+
}
|
|
3334
|
+
else {
|
|
3335
|
+
component = new ToolExecutionComponent(content.name, content.id, content.arguments, {
|
|
3336
|
+
showImages: this.settingsManager.getShowImages(),
|
|
3337
|
+
imageWidthCells: this.settingsManager.getImageWidthCells(),
|
|
3338
|
+
}, this.getRegisteredToolDefinition(content.name), this.ui, this.sessionManager.getCwd());
|
|
3339
|
+
component.setExpanded(this.toolOutputExpanded);
|
|
3340
|
+
this.addToolComponentToChat(component);
|
|
3341
|
+
if (content.name === "browser")
|
|
3342
|
+
browserActivityComponent = component;
|
|
3343
|
+
}
|
|
3221
3344
|
if (message.stopReason === "aborted" || message.stopReason === "error") {
|
|
3222
3345
|
let errorMessage;
|
|
3223
3346
|
if (message.stopReason === "aborted") {
|
|
@@ -3252,6 +3375,8 @@ export class InteractiveMode {
|
|
|
3252
3375
|
}
|
|
3253
3376
|
}
|
|
3254
3377
|
else {
|
|
3378
|
+
if (message.role === "user")
|
|
3379
|
+
browserActivityComponent = undefined;
|
|
3255
3380
|
// All other messages use standard rendering
|
|
3256
3381
|
this.addMessageToChat(message, options);
|
|
3257
3382
|
}
|
|
@@ -3342,7 +3467,7 @@ export class InteractiveMode {
|
|
|
3342
3467
|
});
|
|
3343
3468
|
}
|
|
3344
3469
|
rebuildChatFromMessages() {
|
|
3345
|
-
this.
|
|
3470
|
+
this.clearChatContainer();
|
|
3346
3471
|
this.renderSessionEntries(this.sessionManager.buildContextEntries());
|
|
3347
3472
|
}
|
|
3348
3473
|
// =========================================================================
|
|
@@ -3372,6 +3497,7 @@ export class InteractiveMode {
|
|
|
3372
3497
|
if (this.isShuttingDown)
|
|
3373
3498
|
return;
|
|
3374
3499
|
this.isShuttingDown = true;
|
|
3500
|
+
this.unregisterSessionTransfer?.();
|
|
3375
3501
|
this.stopSmoothStreaming();
|
|
3376
3502
|
if (this.planUsageTimer) {
|
|
3377
3503
|
clearInterval(this.planUsageTimer);
|
|
@@ -3559,6 +3685,10 @@ export class InteractiveMode {
|
|
|
3559
3685
|
}
|
|
3560
3686
|
}
|
|
3561
3687
|
async handleFollowUp() {
|
|
3688
|
+
if (this.runtimeHost.isDetached || this.transferInProgress) {
|
|
3689
|
+
this.showError("Use /reclaim before sending more work. Draft retained.");
|
|
3690
|
+
return;
|
|
3691
|
+
}
|
|
3562
3692
|
const text = (this.editor.getExpandedText?.() ?? this.editor.getText()).trim();
|
|
3563
3693
|
if (!text)
|
|
3564
3694
|
return;
|
|
@@ -3613,6 +3743,9 @@ export class InteractiveMode {
|
|
|
3613
3743
|
this.ui.requestRender();
|
|
3614
3744
|
}
|
|
3615
3745
|
cycleThinkingLevel() {
|
|
3746
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
3747
|
+
return;
|
|
3748
|
+
recordTuiActivity(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
3616
3749
|
const newLevel = this.session.cycleThinkingLevel();
|
|
3617
3750
|
if (newLevel === undefined) {
|
|
3618
3751
|
this.showStatus("Current model does not support thinking");
|
|
@@ -3626,6 +3759,9 @@ export class InteractiveMode {
|
|
|
3626
3759
|
this.applyPermissionMode(nextPermissionMode(getPermissionMode()), { silent: true });
|
|
3627
3760
|
}
|
|
3628
3761
|
async cycleModel(direction) {
|
|
3762
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
3763
|
+
return;
|
|
3764
|
+
recordTuiActivity(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
3629
3765
|
try {
|
|
3630
3766
|
const result = await this.session.cycleModel(direction);
|
|
3631
3767
|
if (result === undefined) {
|
|
@@ -3662,6 +3798,32 @@ export class InteractiveMode {
|
|
|
3662
3798
|
globalThis[Symbol.for("@lunr/tools-expanded-changed")]?.(expanded);
|
|
3663
3799
|
this.ui.requestRender();
|
|
3664
3800
|
}
|
|
3801
|
+
createToolExecutionComponent(toolName, toolCallId, args) {
|
|
3802
|
+
if (toolName === "browser" && this.browserActivityComponent) {
|
|
3803
|
+
this.browserActivityComponent.beginNextExecution(toolCallId, args);
|
|
3804
|
+
return this.browserActivityComponent;
|
|
3805
|
+
}
|
|
3806
|
+
const component = new ToolExecutionComponent(toolName, toolCallId, args, {
|
|
3807
|
+
showImages: this.settingsManager.getShowImages(),
|
|
3808
|
+
imageWidthCells: this.settingsManager.getImageWidthCells(),
|
|
3809
|
+
}, this.getRegisteredToolDefinition(toolName), this.ui, this.sessionManager.getCwd());
|
|
3810
|
+
component.setExpanded(this.toolOutputExpanded);
|
|
3811
|
+
this.addToolComponentToChat(component);
|
|
3812
|
+
if (toolName === "browser")
|
|
3813
|
+
this.browserActivityComponent = component;
|
|
3814
|
+
return component;
|
|
3815
|
+
}
|
|
3816
|
+
disposeChatToolComponents() {
|
|
3817
|
+
for (const child of this.chatContainer.children) {
|
|
3818
|
+
if (child instanceof ToolExecutionComponent)
|
|
3819
|
+
child.dispose();
|
|
3820
|
+
}
|
|
3821
|
+
this.browserActivityComponent = undefined;
|
|
3822
|
+
}
|
|
3823
|
+
clearChatContainer() {
|
|
3824
|
+
this.disposeChatToolComponents();
|
|
3825
|
+
this.chatContainer.clear();
|
|
3826
|
+
}
|
|
3665
3827
|
// lunr: consecutive same-tool grouping — a tool component appended right after
|
|
3666
3828
|
// another component for the SAME tool becomes a group continuation (no top
|
|
3667
3829
|
// spacer / top pad); the previous card drops its bottom pad. Mixed neighbors
|
|
@@ -3675,7 +3837,6 @@ export class InteractiveMode {
|
|
|
3675
3837
|
this.hideThinkingBlock = !this.hideThinkingBlock;
|
|
3676
3838
|
this.settingsManager.setHideThinkingBlock(this.hideThinkingBlock);
|
|
3677
3839
|
// Rebuild chat from session messages
|
|
3678
|
-
this.chatContainer.clear();
|
|
3679
3840
|
this.rebuildChatFromMessages();
|
|
3680
3841
|
// If streaming, re-add the streaming component with updated visibility and re-render.
|
|
3681
3842
|
// Re-slice to the current revealed length so hide-thinking does not dump the tail.
|
|
@@ -3853,7 +4014,6 @@ export class InteractiveMode {
|
|
|
3853
4014
|
return !!extensionRunner.getCommand(commandName);
|
|
3854
4015
|
}
|
|
3855
4016
|
renderCompactionResult(result) {
|
|
3856
|
-
this.chatContainer.clear();
|
|
3857
4017
|
this.rebuildChatFromMessages();
|
|
3858
4018
|
this.addMessageToChat(createCompactionSummaryMessage(result.summary, result.tokensBefore, new Date().toISOString()));
|
|
3859
4019
|
this.footer.invalidate();
|
|
@@ -3979,6 +4139,7 @@ export class InteractiveMode {
|
|
|
3979
4139
|
availableThemes: getAvailableThemes(),
|
|
3980
4140
|
hideThinkingBlock: this.hideThinkingBlock,
|
|
3981
4141
|
thinkingCollapse: this.thinkingCollapse,
|
|
4142
|
+
reasoningDisplay: this.settingsManager.getReasoningDisplay(),
|
|
3982
4143
|
cacheRetention: this.settingsManager.getCacheRetention() ?? "short",
|
|
3983
4144
|
doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
|
|
3984
4145
|
treeFilterMode: this.settingsManager.getTreeFilterMode(),
|
|
@@ -3990,6 +4151,7 @@ export class InteractiveMode {
|
|
|
3990
4151
|
autocompleteMaxVisible: this.settingsManager.getAutocompleteMaxVisible(),
|
|
3991
4152
|
quietStartup: this.settingsManager.getQuietStartup(),
|
|
3992
4153
|
smoothStreaming: this.settingsManager.getSmoothStreaming(),
|
|
4154
|
+
subagentSpinner: this.settingsManager.getSubagentSpinner(),
|
|
3993
4155
|
sessionRetentionDays: this.settingsManager.getSessionRetentionDays(),
|
|
3994
4156
|
clearOnShrink: this.settingsManager.getClearOnShrink(),
|
|
3995
4157
|
showTerminalProgress: this.settingsManager.getShowTerminalProgress(),
|
|
@@ -4000,8 +4162,12 @@ export class InteractiveMode {
|
|
|
4000
4162
|
confirmLargeSubagentLaunches: this.settingsManager.getConfirmLargeSubagentLaunches(),
|
|
4001
4163
|
computerUse: this.settingsManager.getComputerUse(),
|
|
4002
4164
|
computerForeground: this.settingsManager.getComputerForeground(),
|
|
4165
|
+
subagentCommunicationEnabled: this.settingsManager.getSubagentCommunicationEnabled(),
|
|
4166
|
+
automaticSubagentDelegation: this.settingsManager.getAutomaticSubagentDelegation(),
|
|
4167
|
+
browserEnabled: this.settingsManager.getBrowserEnabled(),
|
|
4003
4168
|
memoryEnabled: this.settingsManager.getMemoryEnabled(),
|
|
4004
4169
|
memoryCharCap: this.settingsManager.getMemoryCharCap(),
|
|
4170
|
+
todosEnabled: this.settingsManager.getTodosEnabled(),
|
|
4005
4171
|
searchCurator: getSearchCuratorSetting(),
|
|
4006
4172
|
// lunr: TUI customize settings
|
|
4007
4173
|
footerMcp: this.settingsManager.getFooterMcp(),
|
|
@@ -4091,7 +4257,6 @@ export class InteractiveMode {
|
|
|
4091
4257
|
child.setHideThinkingBlock(hidden);
|
|
4092
4258
|
}
|
|
4093
4259
|
}
|
|
4094
|
-
this.chatContainer.clear();
|
|
4095
4260
|
this.rebuildChatFromMessages();
|
|
4096
4261
|
},
|
|
4097
4262
|
onThinkingCollapseChange: (collapse) => {
|
|
@@ -4102,9 +4267,17 @@ export class InteractiveMode {
|
|
|
4102
4267
|
child.setThinkingCollapse(collapse);
|
|
4103
4268
|
}
|
|
4104
4269
|
}
|
|
4105
|
-
this.chatContainer.clear();
|
|
4106
4270
|
this.rebuildChatFromMessages();
|
|
4107
4271
|
},
|
|
4272
|
+
onReasoningDisplayChange: (display) => {
|
|
4273
|
+
this.settingsManager.setReasoningDisplay(display);
|
|
4274
|
+
for (const child of this.chatContainer.children) {
|
|
4275
|
+
if (child instanceof AssistantMessageComponent) {
|
|
4276
|
+
child.setReasoningDisplay(this.settingsManager.getReasoningDisplay());
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
this.ui.requestRender();
|
|
4280
|
+
},
|
|
4108
4281
|
onShowCacheMissNoticesChange: (shown) => {
|
|
4109
4282
|
this.settingsManager.setShowCacheMissNotices(shown);
|
|
4110
4283
|
this.rebuildChatFromMessages();
|
|
@@ -4118,6 +4291,10 @@ export class InteractiveMode {
|
|
|
4118
4291
|
onSmoothStreamingChange: (enabled) => {
|
|
4119
4292
|
this.applySmoothStreamingSettingChange(enabled);
|
|
4120
4293
|
},
|
|
4294
|
+
onSubagentSpinnerChange: (spinner) => {
|
|
4295
|
+
this.settingsManager.setSubagentSpinner(spinner);
|
|
4296
|
+
this.ui.requestRender();
|
|
4297
|
+
},
|
|
4121
4298
|
onSessionRetentionDaysChange: (days) => {
|
|
4122
4299
|
this.settingsManager.setSessionRetentionDays(days);
|
|
4123
4300
|
},
|
|
@@ -4196,6 +4373,13 @@ export class InteractiveMode {
|
|
|
4196
4373
|
onConfirmLargeSubagentLaunchesChange: (enabled) => {
|
|
4197
4374
|
this.settingsManager.setConfirmLargeSubagentLaunches(enabled);
|
|
4198
4375
|
},
|
|
4376
|
+
onSubagentCommunicationChange: (enabled) => {
|
|
4377
|
+
this.settingsManager.setSubagentCommunicationEnabled(enabled);
|
|
4378
|
+
},
|
|
4379
|
+
onAutomaticSubagentDelegationChange: (enabled) => {
|
|
4380
|
+
this.settingsManager.setAutomaticSubagentDelegation(enabled);
|
|
4381
|
+
this.session.refreshToolRegistry();
|
|
4382
|
+
},
|
|
4199
4383
|
getTierThinkingLevels: (tier) => {
|
|
4200
4384
|
const model = this.resolveModelReference(this.settingsManager.getTierModel(tier));
|
|
4201
4385
|
if (model)
|
|
@@ -4211,11 +4395,20 @@ export class InteractiveMode {
|
|
|
4211
4395
|
onComputerForegroundChange: (enabled) => {
|
|
4212
4396
|
this.settingsManager.setComputerForeground(enabled);
|
|
4213
4397
|
},
|
|
4398
|
+
onBrowserEnabledChange: (enabled) => {
|
|
4399
|
+
this.settingsManager.setBrowserEnabled(enabled);
|
|
4400
|
+
this.session.refreshToolRegistry();
|
|
4401
|
+
},
|
|
4214
4402
|
onMemoryEnabledChange: (enabled) => {
|
|
4215
4403
|
this.settingsManager.setMemoryEnabled(enabled);
|
|
4216
4404
|
this.session.refreshToolRegistry();
|
|
4217
4405
|
this.showStatus(`Agent memory: ${enabled ? "on" : "off"}`);
|
|
4218
4406
|
},
|
|
4407
|
+
onTodosEnabledChange: (enabled) => {
|
|
4408
|
+
this.settingsManager.setTodosEnabled(enabled);
|
|
4409
|
+
notifyTodosEnabledChanged(enabled);
|
|
4410
|
+
this.session.refreshToolRegistry();
|
|
4411
|
+
},
|
|
4219
4412
|
onSearchCuratorChange: (setting) => {
|
|
4220
4413
|
if (!setSearchCuratorSetting(setting)) {
|
|
4221
4414
|
this.showError("pi-web-access is not loaded; curator setting unavailable.");
|
|
@@ -4255,6 +4448,36 @@ export class InteractiveMode {
|
|
|
4255
4448
|
onPlanUsageWindowChange: (window) => {
|
|
4256
4449
|
this.settingsManager.setPlanUsageWindow(window);
|
|
4257
4450
|
},
|
|
4451
|
+
onGatewayAction: (action) => {
|
|
4452
|
+
void (async () => {
|
|
4453
|
+
if (this.session.isStreaming) {
|
|
4454
|
+
this.showStatus("Wait for the current turn before managing the gateway.");
|
|
4455
|
+
return;
|
|
4456
|
+
}
|
|
4457
|
+
if (action === "status") {
|
|
4458
|
+
this.showStatus((await import("../../gateway/service.js")).serviceStatusText());
|
|
4459
|
+
return;
|
|
4460
|
+
}
|
|
4461
|
+
this.ui.stop();
|
|
4462
|
+
try {
|
|
4463
|
+
await new Promise((resolve, reject) => {
|
|
4464
|
+
const child = spawn(process.execPath, [process.argv[1], "gateway", ...action.split(" ")], {
|
|
4465
|
+
stdio: "inherit",
|
|
4466
|
+
env: process.env,
|
|
4467
|
+
});
|
|
4468
|
+
child.once("error", reject);
|
|
4469
|
+
child.once("exit", (code) => code === 0
|
|
4470
|
+
? resolve()
|
|
4471
|
+
: reject(new Error(`Gateway command exited with code ${code}. Run lunr gateway doctor.`)));
|
|
4472
|
+
});
|
|
4473
|
+
}
|
|
4474
|
+
finally {
|
|
4475
|
+
this.ui.start();
|
|
4476
|
+
this.ui.requestRender(true);
|
|
4477
|
+
}
|
|
4478
|
+
this.showStatus((await import("../../gateway/service.js")).serviceStatusText());
|
|
4479
|
+
})().catch((error) => this.showStatus(error instanceof Error ? error.message : String(error)));
|
|
4480
|
+
},
|
|
4258
4481
|
onDefaultPermissionModeChange: (mode) => {
|
|
4259
4482
|
this.settingsManager.setDefaultPermissionMode(mode);
|
|
4260
4483
|
},
|
|
@@ -4284,6 +4507,7 @@ export class InteractiveMode {
|
|
|
4284
4507
|
autoManage: () => this.settingsManager.getAutoManageSubscriptions(),
|
|
4285
4508
|
requestRender: () => this.ui.requestRender(),
|
|
4286
4509
|
},
|
|
4510
|
+
requestRender: () => this.ui.requestRender(),
|
|
4287
4511
|
createModelTierPicker: (_tier, currentModelRef, done) => {
|
|
4288
4512
|
const selector = new ModelSelectorComponent(this.ui, this.resolveModelReference(currentModelRef), this.settingsManager, this.session.modelRuntime, this.session.scopedModels, (model) => {
|
|
4289
4513
|
done(`${model.provider}/${model.id}`);
|
|
@@ -4484,6 +4708,8 @@ export class InteractiveMode {
|
|
|
4484
4708
|
});
|
|
4485
4709
|
}
|
|
4486
4710
|
async showModelSelector(initialSearchInput) {
|
|
4711
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
4712
|
+
return;
|
|
4487
4713
|
// lunr: prefetch active subscription names so row rendering stays synchronous.
|
|
4488
4714
|
const subscriptionNames = await this.getActiveSubscriptionNames();
|
|
4489
4715
|
this.showSelector((done) => {
|
|
@@ -4676,6 +4902,8 @@ export class InteractiveMode {
|
|
|
4676
4902
|
});
|
|
4677
4903
|
}
|
|
4678
4904
|
showUserMessageSelector() {
|
|
4905
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
4906
|
+
return;
|
|
4679
4907
|
const userMessages = this.session.getUserMessagesForForking();
|
|
4680
4908
|
if (userMessages.length === 0) {
|
|
4681
4909
|
this.showStatus("No messages to fork from");
|
|
@@ -4724,6 +4952,8 @@ export class InteractiveMode {
|
|
|
4724
4952
|
}
|
|
4725
4953
|
}
|
|
4726
4954
|
showTreeSelector(initialSelectedId) {
|
|
4955
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
4956
|
+
return;
|
|
4727
4957
|
const tree = this.sessionManager.getTree();
|
|
4728
4958
|
const realLeafId = this.sessionManager.getLeafId();
|
|
4729
4959
|
const initialFilterMode = this.settingsManager.getTreeFilterMode();
|
|
@@ -4797,7 +5027,7 @@ export class InteractiveMode {
|
|
|
4797
5027
|
return;
|
|
4798
5028
|
}
|
|
4799
5029
|
// Update UI
|
|
4800
|
-
this.
|
|
5030
|
+
this.clearChatContainer();
|
|
4801
5031
|
this.renderInitialMessages();
|
|
4802
5032
|
if (result.editorText && !this.editor.getText().trim()) {
|
|
4803
5033
|
this.restoreEditorFromTreeResult(result);
|
|
@@ -4854,8 +5084,17 @@ export class InteractiveMode {
|
|
|
4854
5084
|
const next = (nextName ?? "").trim();
|
|
4855
5085
|
if (!next)
|
|
4856
5086
|
return;
|
|
5087
|
+
if (sessionFilePath === this.sessionManager.getSessionFile() && !this.runtimeHost.isDetached) {
|
|
5088
|
+
this.sessionManager.appendSessionInfo(next);
|
|
5089
|
+
return;
|
|
5090
|
+
}
|
|
4857
5091
|
const mgr = SessionManager.open(sessionFilePath);
|
|
4858
|
-
|
|
5092
|
+
try {
|
|
5093
|
+
mgr.appendSessionInfo(next);
|
|
5094
|
+
}
|
|
5095
|
+
finally {
|
|
5096
|
+
mgr.dispose();
|
|
5097
|
+
}
|
|
4859
5098
|
},
|
|
4860
5099
|
showRenameHint: true,
|
|
4861
5100
|
keybindings: this.keybindings,
|
|
@@ -4932,7 +5171,8 @@ export class InteractiveMode {
|
|
|
4932
5171
|
// lunr: providers with a multi-key pool list one entry per subscription plus an
|
|
4933
5172
|
// "all subscriptions" entry, encoding the target as "<providerId>#<subId|all>".
|
|
4934
5173
|
const options = [];
|
|
4935
|
-
for (const { providerId, type } of await this.session.modelRuntime.listCredentials()) {
|
|
5174
|
+
for (const { providerId, type: credentialType } of await this.session.modelRuntime.listCredentials()) {
|
|
5175
|
+
const type = credentialType === "external_claude_code" ? "oauth" : credentialType;
|
|
4936
5176
|
const name = this.session.modelRuntime.getProvider(providerId)?.name ?? providerId;
|
|
4937
5177
|
const status = { type, source: "stored credential" };
|
|
4938
5178
|
if (type === "api_key") {
|
|
@@ -5546,6 +5786,32 @@ export class InteractiveMode {
|
|
|
5546
5786
|
signal: dialog.signal,
|
|
5547
5787
|
prompt: (prompt) => this.showAuthPrompt(dialog, prompt),
|
|
5548
5788
|
notify: (event) => this.notifyAuthDialog(dialog, event),
|
|
5789
|
+
handoff: async (command, args, env) => {
|
|
5790
|
+
this.ui.stop();
|
|
5791
|
+
try {
|
|
5792
|
+
await new Promise((resolve, reject) => {
|
|
5793
|
+
const child = spawn(command, [...args], { stdio: "inherit", env, windowsHide: false });
|
|
5794
|
+
const abort = () => child.kill();
|
|
5795
|
+
dialog.signal.addEventListener("abort", abort, { once: true });
|
|
5796
|
+
if (dialog.signal.aborted)
|
|
5797
|
+
abort();
|
|
5798
|
+
child.once("error", (error) => {
|
|
5799
|
+
dialog.signal.removeEventListener("abort", abort);
|
|
5800
|
+
reject(error);
|
|
5801
|
+
});
|
|
5802
|
+
child.once("close", (code) => {
|
|
5803
|
+
dialog.signal.removeEventListener("abort", abort);
|
|
5804
|
+
if (code === 0)
|
|
5805
|
+
resolve();
|
|
5806
|
+
else
|
|
5807
|
+
reject(new Error("Claude Code login did not complete"));
|
|
5808
|
+
});
|
|
5809
|
+
});
|
|
5810
|
+
}
|
|
5811
|
+
finally {
|
|
5812
|
+
this.ui.start();
|
|
5813
|
+
}
|
|
5814
|
+
},
|
|
5549
5815
|
});
|
|
5550
5816
|
}
|
|
5551
5817
|
async showLoginDialog(providerId, providerName) {
|
|
@@ -5648,7 +5914,7 @@ export class InteractiveMode {
|
|
|
5648
5914
|
if (leafId) {
|
|
5649
5915
|
this.redoStack.push(leafId);
|
|
5650
5916
|
}
|
|
5651
|
-
this.
|
|
5917
|
+
this.clearChatContainer();
|
|
5652
5918
|
this.renderInitialMessages();
|
|
5653
5919
|
void this.flushCompactionQueue({ willRetry: false });
|
|
5654
5920
|
return { editorText: result.editorText, editorImages: result.editorImages };
|
|
@@ -5691,7 +5957,7 @@ export class InteractiveMode {
|
|
|
5691
5957
|
this.showStatus("Navigation cancelled");
|
|
5692
5958
|
return;
|
|
5693
5959
|
}
|
|
5694
|
-
this.
|
|
5960
|
+
this.clearChatContainer();
|
|
5695
5961
|
this.renderInitialMessages();
|
|
5696
5962
|
if (result.editorText && !this.editor.getText().trim()) {
|
|
5697
5963
|
this.restoreEditorFromTreeResult(result);
|
|
@@ -6211,83 +6477,68 @@ export class InteractiveMode {
|
|
|
6211
6477
|
this.chatContainer.addChild(new Text(lines.join("\n"), 1, 0));
|
|
6212
6478
|
this.ui.requestRender();
|
|
6213
6479
|
}
|
|
6214
|
-
//
|
|
6480
|
+
// /plan is a shortcut into read-only mode for planning.
|
|
6215
6481
|
async handlePlanCommand(args) {
|
|
6216
6482
|
const sub = args.toLowerCase();
|
|
6217
|
-
const
|
|
6483
|
+
const inReadOnly = getPermissionMode() === "read-only";
|
|
6218
6484
|
if (sub === "status") {
|
|
6219
|
-
this.showStatus(
|
|
6220
|
-
? "Plan mode is active — edit/write and mutating bash are blocked. /plan off to implement."
|
|
6221
|
-
: `Permission mode: ${getPermissionMode()}.`);
|
|
6485
|
+
this.showStatus(inReadOnly ? "Read mode is active. /plan off to leave it." : `Permission mode: ${getPermissionMode()}.`);
|
|
6222
6486
|
return;
|
|
6223
6487
|
}
|
|
6224
|
-
// lunr: `/plan <text>` — any arg other than on/off/status is task text.
|
|
6225
|
-
// While not in plan: enter plan and send. While in plan: restore previous
|
|
6226
|
-
// mode and send with full tool access ("looks good, go implement it").
|
|
6227
6488
|
if (sub !== "" && sub !== "on" && sub !== "off") {
|
|
6228
|
-
if (
|
|
6229
|
-
this.applyPermissionMode(
|
|
6230
|
-
}
|
|
6231
|
-
else {
|
|
6232
|
-
this.applyPermissionMode("plan");
|
|
6233
|
-
}
|
|
6234
|
-
await this.sendUserMessageAfterDeferredBuiltins(args);
|
|
6489
|
+
if (!inReadOnly)
|
|
6490
|
+
this.applyPermissionMode("read-only");
|
|
6491
|
+
await this.sendUserMessageAfterDeferredBuiltins(`Create a plan for: ${args}`);
|
|
6235
6492
|
return;
|
|
6236
6493
|
}
|
|
6237
|
-
const next = sub
|
|
6238
|
-
if (next ===
|
|
6239
|
-
this.showStatus(next ? "
|
|
6494
|
+
const next = sub !== "off";
|
|
6495
|
+
if (next === inReadOnly) {
|
|
6496
|
+
this.showStatus(next ? "Read mode is already active." : "Read mode is already off.");
|
|
6240
6497
|
return;
|
|
6241
6498
|
}
|
|
6242
|
-
|
|
6243
|
-
this.applyPermissionMode("plan");
|
|
6244
|
-
}
|
|
6245
|
-
else {
|
|
6246
|
-
this.applyPermissionMode(this.restoreTargetAfterPlan());
|
|
6247
|
-
}
|
|
6499
|
+
this.applyPermissionMode(next ? "read-only" : this.restoreTargetAfterPlan());
|
|
6248
6500
|
}
|
|
6249
|
-
// lunr: /mode — permission mode selector (manual / yolo / plan / auto). Per-session only.
|
|
6250
6501
|
handleModeCommand(args) {
|
|
6251
6502
|
const sub = args.toLowerCase();
|
|
6252
6503
|
if (sub === "status") {
|
|
6253
|
-
this.showStatus(`Permission mode: ${getPermissionMode()}`);
|
|
6504
|
+
this.showStatus(`Permission mode: ${getPermissionMode() === "read-only" ? "read" : getPermissionMode()}`);
|
|
6254
6505
|
return;
|
|
6255
6506
|
}
|
|
6256
|
-
if (sub === "
|
|
6257
|
-
this.applyPermissionMode(sub);
|
|
6507
|
+
if (sub === "yolo" || sub === "auto" || sub === "read-only" || sub === "read") {
|
|
6508
|
+
this.applyPermissionMode(sub === "read" ? "read-only" : sub);
|
|
6258
6509
|
return;
|
|
6259
6510
|
}
|
|
6260
6511
|
if (sub !== "") {
|
|
6261
|
-
this.showStatus("Usage: /mode [
|
|
6512
|
+
this.showStatus("Usage: /mode [yolo|auto|read] — bare /mode opens the selector.");
|
|
6262
6513
|
return;
|
|
6263
6514
|
}
|
|
6264
6515
|
const options = [
|
|
6265
|
-
"Manual — approve every action",
|
|
6266
6516
|
"YOLO — auto-approve tools, agent may still ask",
|
|
6267
|
-
"Plan — read-only; present a plan for approval",
|
|
6268
6517
|
"Auto — fully autonomous, no questions",
|
|
6518
|
+
"Read — inspect without making changes",
|
|
6269
6519
|
];
|
|
6270
6520
|
void this.showExtensionSelector("Permission mode", options).then((choice) => {
|
|
6271
6521
|
if (!choice)
|
|
6272
6522
|
return;
|
|
6273
|
-
if (choice.startsWith("
|
|
6274
|
-
this.applyPermissionMode("manual");
|
|
6275
|
-
else if (choice.startsWith("YOLO"))
|
|
6523
|
+
if (choice.startsWith("YOLO"))
|
|
6276
6524
|
this.applyPermissionMode("yolo");
|
|
6277
|
-
else if (choice.startsWith("Plan"))
|
|
6278
|
-
this.applyPermissionMode("plan");
|
|
6279
6525
|
else if (choice.startsWith("Auto"))
|
|
6280
6526
|
this.applyPermissionMode("auto");
|
|
6527
|
+
else if (choice.startsWith("Read"))
|
|
6528
|
+
this.applyPermissionMode("read-only");
|
|
6281
6529
|
});
|
|
6282
6530
|
}
|
|
6283
|
-
/** Destination
|
|
6531
|
+
/** Destination after plan approval or /plan off. */
|
|
6284
6532
|
restoreTargetAfterPlan() {
|
|
6285
6533
|
return restorePermissionModeAfterPlan(this.previousPermissionMode, this.settingsManager.getDefaultPermissionMode());
|
|
6286
6534
|
}
|
|
6287
6535
|
/** Apply addendum + auto-rollback for a mode without a status toast. */
|
|
6288
6536
|
syncPermissionModeEffects(mode) {
|
|
6289
|
-
if (
|
|
6290
|
-
|
|
6537
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
6538
|
+
return;
|
|
6539
|
+
this.sessionManager.setPermissionMode(mode);
|
|
6540
|
+
if (mode === "read-only") {
|
|
6541
|
+
this.session.setSystemPromptAppend(READ_ONLY_MODE_ADDENDUM);
|
|
6291
6542
|
}
|
|
6292
6543
|
else if (mode === "auto") {
|
|
6293
6544
|
this.session.setSystemPromptAppend(AUTO_MODE_ADDENDUM);
|
|
@@ -6313,14 +6564,18 @@ export class InteractiveMode {
|
|
|
6313
6564
|
}
|
|
6314
6565
|
}
|
|
6315
6566
|
applyPermissionMode(mode, opts) {
|
|
6567
|
+
if (this.runtimeHost.isDetached || this.transferInProgress)
|
|
6568
|
+
return;
|
|
6569
|
+
this.sessionManager.setPermissionMode(mode);
|
|
6570
|
+
recordTuiActivity(this.sessionManager, this.runtimeHost.services.agentDir);
|
|
6316
6571
|
const prev = getPermissionMode();
|
|
6317
|
-
if (mode === "
|
|
6572
|
+
if (mode === "read-only" && prev !== "read-only") {
|
|
6318
6573
|
this.previousPermissionMode = prev;
|
|
6319
6574
|
}
|
|
6320
6575
|
setPermissionMode(mode);
|
|
6321
6576
|
this.ui.requestRender();
|
|
6322
|
-
if (mode === "
|
|
6323
|
-
this.session.setSystemPromptAppend(
|
|
6577
|
+
if (mode === "read-only") {
|
|
6578
|
+
this.session.setSystemPromptAppend(READ_ONLY_MODE_ADDENDUM);
|
|
6324
6579
|
}
|
|
6325
6580
|
else if (mode === "auto") {
|
|
6326
6581
|
this.session.setSystemPromptAppend(AUTO_MODE_ADDENDUM);
|
|
@@ -6339,43 +6594,13 @@ export class InteractiveMode {
|
|
|
6339
6594
|
if (mode === "auto" && prev !== "auto") {
|
|
6340
6595
|
this.showStatus("Auto mode active — fully autonomous. Rollback enabled for this session.");
|
|
6341
6596
|
}
|
|
6342
|
-
else if (mode === "
|
|
6343
|
-
this.showStatus("
|
|
6597
|
+
else if (mode === "read-only") {
|
|
6598
|
+
this.showStatus("Read mode active. Changes are blocked.");
|
|
6344
6599
|
}
|
|
6345
6600
|
else {
|
|
6346
6601
|
this.showStatus(`Permission mode: ${mode}`);
|
|
6347
6602
|
}
|
|
6348
6603
|
}
|
|
6349
|
-
// lunr: approval dialog for manual permission mode.
|
|
6350
|
-
// lunr: adds "Switch to auto" / "Switch to yolo" at the bottom so users can
|
|
6351
|
-
// escape manual approval mid-turn without a separate /mode round-trip.
|
|
6352
|
-
async showApprovalDialog(req) {
|
|
6353
|
-
return new Promise((resolve) => {
|
|
6354
|
-
this.showSelector((done) => {
|
|
6355
|
-
const selector = new ExtensionSelectorComponent(`Approve ${req.action}?`, ["Approve once", "Approve for session", "Reject", "Switch to auto", "Switch to yolo"], (option) => {
|
|
6356
|
-
done();
|
|
6357
|
-
if (option === "Approve once")
|
|
6358
|
-
resolve("once");
|
|
6359
|
-
else if (option === "Approve for session")
|
|
6360
|
-
resolve("session");
|
|
6361
|
-
else if (option === "Switch to auto") {
|
|
6362
|
-
this.applyPermissionMode("auto");
|
|
6363
|
-
resolve("once");
|
|
6364
|
-
}
|
|
6365
|
-
else if (option === "Switch to yolo") {
|
|
6366
|
-
this.applyPermissionMode("yolo");
|
|
6367
|
-
resolve("once");
|
|
6368
|
-
}
|
|
6369
|
-
else
|
|
6370
|
-
resolve("reject");
|
|
6371
|
-
}, () => {
|
|
6372
|
-
done();
|
|
6373
|
-
resolve("reject");
|
|
6374
|
-
}, { message: req.detail.slice(0, 500) });
|
|
6375
|
-
return { component: selector, focus: selector };
|
|
6376
|
-
});
|
|
6377
|
-
});
|
|
6378
|
-
}
|
|
6379
6604
|
// Approval dialog for one subagent call launching more than two children.
|
|
6380
6605
|
// "Reject with feedback" collects a one-line
|
|
6381
6606
|
// reason that becomes the block reason the model sees, so it can adjust the plan.
|
|
@@ -6404,7 +6629,7 @@ export class InteractiveMode {
|
|
|
6404
6629
|
});
|
|
6405
6630
|
});
|
|
6406
6631
|
}
|
|
6407
|
-
//
|
|
6632
|
+
// Approval dialog for present_plan (read-only mode). The "with feedback"
|
|
6408
6633
|
// options collect a one-line note via showExtensionInput that becomes part of
|
|
6409
6634
|
// the result text the model sees. Esc/close counts as Decline.
|
|
6410
6635
|
showPlanInChat(summary) {
|
|
@@ -6651,6 +6876,10 @@ ${toggleThinking ? `| \`${toggleThinking}\` | Toggle thinking block visibility |
|
|
|
6651
6876
|
this.ui.requestRender();
|
|
6652
6877
|
}
|
|
6653
6878
|
async handleClearCommand() {
|
|
6879
|
+
if (this.runtimeHost.isDetached || this.transferInProgress) {
|
|
6880
|
+
this.showError("Use /reclaim first, or /quit to leave this terminal.");
|
|
6881
|
+
return;
|
|
6882
|
+
}
|
|
6654
6883
|
this.clearStatusIndicator();
|
|
6655
6884
|
this.ui.setChatScroll(0);
|
|
6656
6885
|
// Deferred factories must be on builtinRoster before /new rebuilds the runtime.
|
|
@@ -6791,6 +7020,7 @@ ${toggleThinking ? `| \`${toggleThinking}\` | Toggle thinking block visibility |
|
|
|
6791
7020
|
}
|
|
6792
7021
|
}
|
|
6793
7022
|
stop() {
|
|
7023
|
+
this.setThinkingAnimation(false);
|
|
6794
7024
|
this.stopCatalogRefresh?.();
|
|
6795
7025
|
this.stopCatalogRefresh = undefined;
|
|
6796
7026
|
if (this.settingsManager.getShowTerminalProgress()) {
|
|
@@ -6801,6 +7031,7 @@ ${toggleThinking ? `| \`${toggleThinking}\` | Toggle thinking block visibility |
|
|
|
6801
7031
|
this.clearExtensionTerminalInputListeners();
|
|
6802
7032
|
this.footer.dispose();
|
|
6803
7033
|
this.footerDataProvider.dispose();
|
|
7034
|
+
this.disposeChatToolComponents();
|
|
6804
7035
|
if (this.unsubscribe) {
|
|
6805
7036
|
this.unsubscribe();
|
|
6806
7037
|
}
|