@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
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// node_modules/unicode-animations/dist/chunk-F2BWZODB.js
|
|
4
|
+
var BRAILLE_DOT_MAP = [
|
|
5
|
+
[1, 8],
|
|
6
|
+
// row 0
|
|
7
|
+
[2, 16],
|
|
8
|
+
// row 1
|
|
9
|
+
[4, 32],
|
|
10
|
+
// row 2
|
|
11
|
+
[64, 128]
|
|
12
|
+
// row 3
|
|
13
|
+
];
|
|
14
|
+
function gridToBraille(grid) {
|
|
15
|
+
let rows = grid.length, cols = grid[0] ? grid[0].length : 0, charCount = Math.ceil(cols / 2), result = "";
|
|
16
|
+
for (let c = 0; c < charCount; c++) {
|
|
17
|
+
let code = 10240;
|
|
18
|
+
for (let r = 0; r < 4 && r < rows; r++)
|
|
19
|
+
for (let d = 0; d < 2; d++) {
|
|
20
|
+
let col = c * 2 + d;
|
|
21
|
+
col < cols && grid[r] && grid[r][col] && (code |= BRAILLE_DOT_MAP[r][d]);
|
|
22
|
+
}
|
|
23
|
+
result += String.fromCodePoint(code);
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
function makeGrid(rows, cols) {
|
|
28
|
+
return rows <= 0 || cols <= 0 ? [] : Array.from({ length: rows }, () => Array(cols).fill(!1));
|
|
29
|
+
}
|
|
30
|
+
function genScan() {
|
|
31
|
+
let frames = [];
|
|
32
|
+
for (let pos = -1; pos < 9; pos++) {
|
|
33
|
+
let g = makeGrid(4, 8);
|
|
34
|
+
for (let r = 0; r < 4; r++)
|
|
35
|
+
for (let c = 0; c < 8; c++)
|
|
36
|
+
(c === pos || c === pos - 1) && (g[r][c] = !0);
|
|
37
|
+
frames.push(gridToBraille(g));
|
|
38
|
+
}
|
|
39
|
+
return frames;
|
|
40
|
+
}
|
|
41
|
+
function genRain() {
|
|
42
|
+
let frames = [], offsets = [0, 3, 1, 5, 2, 7, 4, 6];
|
|
43
|
+
for (let f = 0; f < 12; f++) {
|
|
44
|
+
let g = makeGrid(4, 8);
|
|
45
|
+
for (let c = 0; c < 8; c++) {
|
|
46
|
+
let row = (f + offsets[c]) % 6;
|
|
47
|
+
row < 4 && (g[row][c] = !0);
|
|
48
|
+
}
|
|
49
|
+
frames.push(gridToBraille(g));
|
|
50
|
+
}
|
|
51
|
+
return frames;
|
|
52
|
+
}
|
|
53
|
+
function genScanLine() {
|
|
54
|
+
let frames = [], positions = [0, 1, 2, 3, 2, 1];
|
|
55
|
+
for (let row of positions) {
|
|
56
|
+
let g = makeGrid(4, 6);
|
|
57
|
+
for (let c = 0; c < 6; c++)
|
|
58
|
+
g[row][c] = !0, row > 0 && (g[row - 1][c] = c % 2 === 0);
|
|
59
|
+
frames.push(gridToBraille(g));
|
|
60
|
+
}
|
|
61
|
+
return frames;
|
|
62
|
+
}
|
|
63
|
+
function genPulse() {
|
|
64
|
+
let frames = [], radii = [0.5, 1.2, 2, 3, 3.5];
|
|
65
|
+
for (let r of radii) {
|
|
66
|
+
let g = makeGrid(4, 6);
|
|
67
|
+
for (let row = 0; row < 4; row++)
|
|
68
|
+
for (let col = 0; col < 6; col++) {
|
|
69
|
+
let dist = Math.sqrt((col - 2.5) ** 2 + (row - 1.5) ** 2);
|
|
70
|
+
Math.abs(dist - r) < 0.9 && (g[row][col] = !0);
|
|
71
|
+
}
|
|
72
|
+
frames.push(gridToBraille(g));
|
|
73
|
+
}
|
|
74
|
+
return frames;
|
|
75
|
+
}
|
|
76
|
+
function genSnake() {
|
|
77
|
+
let path = [];
|
|
78
|
+
for (let r = 0; r < 4; r++)
|
|
79
|
+
if (r % 2 === 0)
|
|
80
|
+
for (let c = 0; c < 4; c++) path.push([r, c]);
|
|
81
|
+
else
|
|
82
|
+
for (let c = 3; c >= 0; c--) path.push([r, c]);
|
|
83
|
+
let frames = [];
|
|
84
|
+
for (let i = 0; i < path.length; i++) {
|
|
85
|
+
let g = makeGrid(4, 4);
|
|
86
|
+
for (let t = 0; t < 4; t++) {
|
|
87
|
+
let idx = (i - t + path.length) % path.length;
|
|
88
|
+
g[path[idx][0]][path[idx][1]] = !0;
|
|
89
|
+
}
|
|
90
|
+
frames.push(gridToBraille(g));
|
|
91
|
+
}
|
|
92
|
+
return frames;
|
|
93
|
+
}
|
|
94
|
+
function genSparkle() {
|
|
95
|
+
let patterns = [
|
|
96
|
+
[1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0],
|
|
97
|
+
[0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0],
|
|
98
|
+
[0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1],
|
|
99
|
+
[1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0],
|
|
100
|
+
[0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1],
|
|
101
|
+
[0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0]
|
|
102
|
+
], W = 8, H = 4, frames = [];
|
|
103
|
+
for (let pat of patterns) {
|
|
104
|
+
let g = makeGrid(H, W);
|
|
105
|
+
for (let r = 0; r < H; r++)
|
|
106
|
+
for (let c = 0; c < W; c++)
|
|
107
|
+
g[r][c] = !!pat[r * W + c];
|
|
108
|
+
frames.push(gridToBraille(g));
|
|
109
|
+
}
|
|
110
|
+
return frames;
|
|
111
|
+
}
|
|
112
|
+
function genCascade() {
|
|
113
|
+
let frames = [];
|
|
114
|
+
for (let offset = -2; offset < 12; offset++) {
|
|
115
|
+
let g = makeGrid(4, 8);
|
|
116
|
+
for (let r = 0; r < 4; r++)
|
|
117
|
+
for (let c = 0; c < 8; c++) {
|
|
118
|
+
let diag = c + r;
|
|
119
|
+
(diag === offset || diag === offset - 1) && (g[r][c] = !0);
|
|
120
|
+
}
|
|
121
|
+
frames.push(gridToBraille(g));
|
|
122
|
+
}
|
|
123
|
+
return frames;
|
|
124
|
+
}
|
|
125
|
+
function genColumns() {
|
|
126
|
+
let frames = [];
|
|
127
|
+
for (let col = 0; col < 6; col++)
|
|
128
|
+
for (let fillTo = 3; fillTo >= 0; fillTo--) {
|
|
129
|
+
let g = makeGrid(4, 6);
|
|
130
|
+
for (let pc = 0; pc < col; pc++)
|
|
131
|
+
for (let r = 0; r < 4; r++) g[r][pc] = !0;
|
|
132
|
+
for (let r = fillTo; r < 4; r++) g[r][col] = !0;
|
|
133
|
+
frames.push(gridToBraille(g));
|
|
134
|
+
}
|
|
135
|
+
let full = makeGrid(4, 6);
|
|
136
|
+
for (let r = 0; r < 4; r++) for (let c = 0; c < 6; c++) full[r][c] = !0;
|
|
137
|
+
return frames.push(gridToBraille(full)), frames.push(gridToBraille(makeGrid(4, 6))), frames;
|
|
138
|
+
}
|
|
139
|
+
function genOrbit() {
|
|
140
|
+
let path = [
|
|
141
|
+
[0, 0],
|
|
142
|
+
[0, 1],
|
|
143
|
+
[1, 1],
|
|
144
|
+
[2, 1],
|
|
145
|
+
[3, 1],
|
|
146
|
+
[3, 0],
|
|
147
|
+
[2, 0],
|
|
148
|
+
[1, 0]
|
|
149
|
+
], frames = [];
|
|
150
|
+
for (let i = 0; i < path.length; i++) {
|
|
151
|
+
let g = makeGrid(4, 2);
|
|
152
|
+
g[path[i][0]][path[i][1]] = !0;
|
|
153
|
+
let t1 = (i - 1 + path.length) % path.length;
|
|
154
|
+
g[path[t1][0]][path[t1][1]] = !0, frames.push(gridToBraille(g));
|
|
155
|
+
}
|
|
156
|
+
return frames;
|
|
157
|
+
}
|
|
158
|
+
function genBreathe() {
|
|
159
|
+
let stages = [
|
|
160
|
+
[],
|
|
161
|
+
[[1, 0]],
|
|
162
|
+
[[0, 1], [2, 0]],
|
|
163
|
+
[[0, 0], [1, 1], [3, 0]],
|
|
164
|
+
[[0, 0], [1, 1], [2, 0], [3, 1]],
|
|
165
|
+
[[0, 0], [0, 1], [1, 1], [2, 0], [3, 1]],
|
|
166
|
+
[[0, 0], [0, 1], [1, 0], [2, 1], [3, 0], [3, 1]],
|
|
167
|
+
[[0, 0], [0, 1], [1, 0], [1, 1], [2, 0], [3, 0], [3, 1]],
|
|
168
|
+
[[0, 0], [0, 1], [1, 0], [1, 1], [2, 0], [2, 1], [3, 0], [3, 1]]
|
|
169
|
+
], frames = [], sequence = [...stages, ...stages.slice().reverse().slice(1)];
|
|
170
|
+
for (let dots of sequence) {
|
|
171
|
+
let g = makeGrid(4, 2);
|
|
172
|
+
for (let [r, c] of dots) g[r][c] = !0;
|
|
173
|
+
frames.push(gridToBraille(g));
|
|
174
|
+
}
|
|
175
|
+
return frames;
|
|
176
|
+
}
|
|
177
|
+
function genWaveRows() {
|
|
178
|
+
let frames = [];
|
|
179
|
+
for (let f = 0; f < 16; f++) {
|
|
180
|
+
let g = makeGrid(4, 8);
|
|
181
|
+
for (let c = 0; c < 8; c++) {
|
|
182
|
+
let phase = f - c * 0.5, row = Math.round((Math.sin(phase * 0.8) + 1) / 2 * 3);
|
|
183
|
+
g[row][c] = !0, row > 0 && (g[row - 1][c] = (f + c) % 3 === 0);
|
|
184
|
+
}
|
|
185
|
+
frames.push(gridToBraille(g));
|
|
186
|
+
}
|
|
187
|
+
return frames;
|
|
188
|
+
}
|
|
189
|
+
function genCheckerboard() {
|
|
190
|
+
let frames = [];
|
|
191
|
+
for (let phase = 0; phase < 4; phase++) {
|
|
192
|
+
let g = makeGrid(4, 6);
|
|
193
|
+
for (let r = 0; r < 4; r++)
|
|
194
|
+
for (let c = 0; c < 6; c++)
|
|
195
|
+
phase < 2 ? g[r][c] = (r + c + phase) % 2 === 0 : g[r][c] = (r + c + phase) % 3 === 0;
|
|
196
|
+
frames.push(gridToBraille(g));
|
|
197
|
+
}
|
|
198
|
+
return frames;
|
|
199
|
+
}
|
|
200
|
+
function genHelix() {
|
|
201
|
+
let frames = [];
|
|
202
|
+
for (let f = 0; f < 16; f++) {
|
|
203
|
+
let g = makeGrid(4, 8);
|
|
204
|
+
for (let c = 0; c < 8; c++) {
|
|
205
|
+
let phase = (f + c) * (Math.PI / 4), y1 = Math.round((Math.sin(phase) + 1) / 2 * 3), y2 = Math.round((Math.sin(phase + Math.PI) + 1) / 2 * 3);
|
|
206
|
+
g[y1][c] = !0, g[y2][c] = !0;
|
|
207
|
+
}
|
|
208
|
+
frames.push(gridToBraille(g));
|
|
209
|
+
}
|
|
210
|
+
return frames;
|
|
211
|
+
}
|
|
212
|
+
function genFillSweep() {
|
|
213
|
+
let frames = [];
|
|
214
|
+
for (let row = 3; row >= 0; row--) {
|
|
215
|
+
let g = makeGrid(4, 4);
|
|
216
|
+
for (let r = row; r < 4; r++)
|
|
217
|
+
for (let c = 0; c < 4; c++) g[r][c] = !0;
|
|
218
|
+
frames.push(gridToBraille(g));
|
|
219
|
+
}
|
|
220
|
+
let full = makeGrid(4, 4);
|
|
221
|
+
for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) full[r][c] = !0;
|
|
222
|
+
frames.push(gridToBraille(full)), frames.push(gridToBraille(full));
|
|
223
|
+
for (let row = 0; row < 4; row++) {
|
|
224
|
+
let g = makeGrid(4, 4);
|
|
225
|
+
for (let r = row + 1; r < 4; r++)
|
|
226
|
+
for (let c = 0; c < 4; c++) g[r][c] = !0;
|
|
227
|
+
frames.push(gridToBraille(g));
|
|
228
|
+
}
|
|
229
|
+
return frames.push(gridToBraille(makeGrid(4, 4))), frames;
|
|
230
|
+
}
|
|
231
|
+
function genDiagonalSwipe() {
|
|
232
|
+
let frames = [];
|
|
233
|
+
for (let d = 0; d <= 6; d++) {
|
|
234
|
+
let g = makeGrid(4, 4);
|
|
235
|
+
for (let r = 0; r < 4; r++)
|
|
236
|
+
for (let c = 0; c < 4; c++)
|
|
237
|
+
r + c <= d && (g[r][c] = !0);
|
|
238
|
+
frames.push(gridToBraille(g));
|
|
239
|
+
}
|
|
240
|
+
let full = makeGrid(4, 4);
|
|
241
|
+
for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) full[r][c] = !0;
|
|
242
|
+
frames.push(gridToBraille(full));
|
|
243
|
+
for (let d = 0; d <= 6; d++) {
|
|
244
|
+
let g = makeGrid(4, 4);
|
|
245
|
+
for (let r = 0; r < 4; r++)
|
|
246
|
+
for (let c = 0; c < 4; c++)
|
|
247
|
+
r + c > d && (g[r][c] = !0);
|
|
248
|
+
frames.push(gridToBraille(g));
|
|
249
|
+
}
|
|
250
|
+
return frames.push(gridToBraille(makeGrid(4, 4))), frames;
|
|
251
|
+
}
|
|
252
|
+
var spinners = {
|
|
253
|
+
// === Classic braille single-char ===
|
|
254
|
+
braille: {
|
|
255
|
+
frames: ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"],
|
|
256
|
+
interval: 80
|
|
257
|
+
},
|
|
258
|
+
braillewave: {
|
|
259
|
+
frames: [
|
|
260
|
+
"\u2801\u2802\u2804\u2840",
|
|
261
|
+
"\u2802\u2804\u2840\u2880",
|
|
262
|
+
"\u2804\u2840\u2880\u2820",
|
|
263
|
+
"\u2840\u2880\u2820\u2810",
|
|
264
|
+
"\u2880\u2820\u2810\u2808",
|
|
265
|
+
"\u2820\u2810\u2808\u2801",
|
|
266
|
+
"\u2810\u2808\u2801\u2802",
|
|
267
|
+
"\u2808\u2801\u2802\u2804"
|
|
268
|
+
],
|
|
269
|
+
interval: 100
|
|
270
|
+
},
|
|
271
|
+
dna: {
|
|
272
|
+
frames: [
|
|
273
|
+
"\u280B\u2809\u2819\u281A",
|
|
274
|
+
"\u2809\u2819\u281A\u2812",
|
|
275
|
+
"\u2819\u281A\u2812\u2802",
|
|
276
|
+
"\u281A\u2812\u2802\u2802",
|
|
277
|
+
"\u2812\u2802\u2802\u2812",
|
|
278
|
+
"\u2802\u2802\u2812\u2832",
|
|
279
|
+
"\u2802\u2812\u2832\u2834",
|
|
280
|
+
"\u2812\u2832\u2834\u2824",
|
|
281
|
+
"\u2832\u2834\u2824\u2804",
|
|
282
|
+
"\u2834\u2824\u2804\u280B",
|
|
283
|
+
"\u2824\u2804\u280B\u2809",
|
|
284
|
+
"\u2804\u280B\u2809\u2819"
|
|
285
|
+
],
|
|
286
|
+
interval: 80
|
|
287
|
+
},
|
|
288
|
+
// === Generated braille grid animations ===
|
|
289
|
+
scan: { frames: genScan(), interval: 70 },
|
|
290
|
+
rain: { frames: genRain(), interval: 100 },
|
|
291
|
+
scanline: { frames: genScanLine(), interval: 120 },
|
|
292
|
+
pulse: { frames: genPulse(), interval: 180 },
|
|
293
|
+
snake: { frames: genSnake(), interval: 80 },
|
|
294
|
+
sparkle: { frames: genSparkle(), interval: 150 },
|
|
295
|
+
cascade: { frames: genCascade(), interval: 60 },
|
|
296
|
+
columns: { frames: genColumns(), interval: 60 },
|
|
297
|
+
orbit: { frames: genOrbit(), interval: 100 },
|
|
298
|
+
breathe: { frames: genBreathe(), interval: 100 },
|
|
299
|
+
waverows: { frames: genWaveRows(), interval: 90 },
|
|
300
|
+
checkerboard: { frames: genCheckerboard(), interval: 250 },
|
|
301
|
+
helix: { frames: genHelix(), interval: 80 },
|
|
302
|
+
fillsweep: { frames: genFillSweep(), interval: 100 },
|
|
303
|
+
diagswipe: { frames: genDiagonalSwipe(), interval: 60 }
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export {
|
|
307
|
+
spinners
|
|
308
|
+
};
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
bindConversation,
|
|
4
|
+
conversationBinding,
|
|
5
|
+
createPicker,
|
|
6
|
+
gatewayInput,
|
|
7
|
+
gatewaySelect,
|
|
8
|
+
isGatewayOwner,
|
|
9
|
+
requireGatewayOwner
|
|
10
|
+
} from "./chunk-NKH2QBKF.js";
|
|
11
|
+
import {
|
|
12
|
+
getSubagentCancellation
|
|
13
|
+
} from "./chunk-BBUVIEZB.js";
|
|
14
|
+
import {
|
|
15
|
+
PERMISSION_MODES,
|
|
16
|
+
getPermissionMode,
|
|
17
|
+
setPermissionMode
|
|
18
|
+
} from "./chunk-AJ6R5VTV.js";
|
|
19
|
+
import {
|
|
20
|
+
SessionManager
|
|
21
|
+
} from "./chunk-VIVYOI7C.js";
|
|
22
|
+
import {
|
|
23
|
+
loadGatewayConfig
|
|
24
|
+
} from "./chunk-O2AT4MEU.js";
|
|
25
|
+
|
|
26
|
+
// packages/coding-agent/dist/gateway/mobile-commands.js
|
|
27
|
+
import { mkdirSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
28
|
+
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
29
|
+
var MOBILE_COMMANDS = [
|
|
30
|
+
{ name: "project", description: "Browse folders and choose a project" },
|
|
31
|
+
{ name: "continue", description: "Continue a handoff or the latest TUI session" },
|
|
32
|
+
{ name: "sessions", description: "Browse saved sessions across projects" },
|
|
33
|
+
{ name: "mode", description: "Choose yolo, auto, or read-only permissions" },
|
|
34
|
+
{ name: "plan", description: "Plan work and approve it from this chat" },
|
|
35
|
+
{ name: "settings", description: "Change this session's model, thinking, or permissions" },
|
|
36
|
+
{ name: "stopall", description: "Stop this session and its background subagents" },
|
|
37
|
+
{ name: "download", description: "Send a file from the current project" },
|
|
38
|
+
{ name: "usage", description: "Show session tokens and subscription usage" },
|
|
39
|
+
{ name: "processes", description: "List or stop this session's shell processes" },
|
|
40
|
+
{ name: "refresh", description: "Refresh available models" },
|
|
41
|
+
{ name: "skill", description: "Choose a skill and send it a task" },
|
|
42
|
+
{ name: "fast", description: "Toggle OpenAI Codex fast mode" }
|
|
43
|
+
], FORWARDED_COMMANDS = [
|
|
44
|
+
{ name: "goal", description: "Set or manage the session goal" },
|
|
45
|
+
{ name: "cron", description: "Schedule prompts and manage scheduled jobs" },
|
|
46
|
+
{ name: "run", description: "Launch a subagent task" },
|
|
47
|
+
{ name: "chain", description: "Run a sequence of subagent tasks" },
|
|
48
|
+
{ name: "parallel", description: "Run independent subagent tasks" },
|
|
49
|
+
{ name: "mcp", description: "Show configured MCP servers" },
|
|
50
|
+
{ name: "lsp", description: "Show language server status" }
|
|
51
|
+
];
|
|
52
|
+
function resolveWithinRoots(path, roots) {
|
|
53
|
+
let actual = realpathSync(resolve(path));
|
|
54
|
+
if (!roots.some((root) => {
|
|
55
|
+
try {
|
|
56
|
+
let rel = relative(realpathSync(root), actual);
|
|
57
|
+
return rel === "" || !rel.startsWith(`..${process.platform === "win32" ? "\\" : "/"}`) && rel !== ".." && !isAbsolute(rel);
|
|
58
|
+
} catch {
|
|
59
|
+
return !1;
|
|
60
|
+
}
|
|
61
|
+
}))
|
|
62
|
+
throw new Error("That path is outside the approved folders.");
|
|
63
|
+
return actual;
|
|
64
|
+
}
|
|
65
|
+
function createProjectFolder(parent, name, roots) {
|
|
66
|
+
if (!name || name === "." || name === ".." || /[\\/\x00-\x1f<>:"|?*]/.test(name) || /[. ]$/.test(name) || /^(con|prn|aux|nul|com\d|lpt\d)(\.|$)/i.test(name))
|
|
67
|
+
throw new Error("Use a simple folder name without slashes or reserved characters.");
|
|
68
|
+
let actual = resolveWithinRoots(parent, roots);
|
|
69
|
+
return mkdirSync(join(actual, name)), resolveWithinRoots(join(actual, name), roots);
|
|
70
|
+
}
|
|
71
|
+
async function browseProject(ctx, initialPath) {
|
|
72
|
+
let { key, event, adapter, bridge } = ctx, roots = ctx.cfg.projectRoots ?? [];
|
|
73
|
+
if (!roots.length)
|
|
74
|
+
throw new Error("Add approved project folders with lunr gateway setup first.");
|
|
75
|
+
let current = initialPath ? resolveWithinRoots(initialPath, ctx.cfg.projectRoots ?? []) : void 0, view = () => {
|
|
76
|
+
if (!current)
|
|
77
|
+
return {
|
|
78
|
+
title: "Choose a project folder",
|
|
79
|
+
items: [.../* @__PURE__ */ new Set([...conversationBinding(key)?.recentProjects ?? [], ...roots])].filter((p) => {
|
|
80
|
+
try {
|
|
81
|
+
return resolveWithinRoots(p, roots), !0;
|
|
82
|
+
} catch {
|
|
83
|
+
return !1;
|
|
84
|
+
}
|
|
85
|
+
}).map((p) => ({ label: p, value: p }))
|
|
86
|
+
};
|
|
87
|
+
current = resolveWithinRoots(current, roots);
|
|
88
|
+
let items = [
|
|
89
|
+
{ label: "Use this folder", value: "use" },
|
|
90
|
+
{ label: "New folder", value: "new" },
|
|
91
|
+
{ label: "Recent and roots", value: "roots" }
|
|
92
|
+
];
|
|
93
|
+
try {
|
|
94
|
+
let up = resolveWithinRoots(dirname(current), roots);
|
|
95
|
+
up !== current && items.push({ label: "Up", value: up });
|
|
96
|
+
} catch {
|
|
97
|
+
}
|
|
98
|
+
for (let item of readdirSync(current, { withFileTypes: !0 }).sort((a, b) => a.name.localeCompare(b.name)))
|
|
99
|
+
if (!(!item.isDirectory() && !item.isSymbolicLink()))
|
|
100
|
+
try {
|
|
101
|
+
let path = resolveWithinRoots(join(current, item.name), roots);
|
|
102
|
+
statSync(path).isDirectory() && items.push({ label: item.name, value: path });
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
return { title: current, items };
|
|
106
|
+
}, initial = view();
|
|
107
|
+
await createPicker(adapter, event.source, {
|
|
108
|
+
kind: "project",
|
|
109
|
+
sessionKey: key,
|
|
110
|
+
invokerId: event.source.userId,
|
|
111
|
+
...initial,
|
|
112
|
+
validate: () => isGatewayOwner(event.source, loadGatewayConfig()),
|
|
113
|
+
resolve: async (item) => {
|
|
114
|
+
if (requireGatewayOwner(event.source), item.value === "use" && current) {
|
|
115
|
+
let cwd = resolveWithinRoots(current, loadGatewayConfig().projectRoots ?? []);
|
|
116
|
+
if (bridge.getStatus(key).busy)
|
|
117
|
+
throw new Error("Stop the current turn or wait before switching projects.");
|
|
118
|
+
return await bridge.reset(key), bindConversation(key, event.source, { cwd, owner: event.source.userId }), {
|
|
119
|
+
done: !0,
|
|
120
|
+
text: `Project selected: ${cwd}
|
|
121
|
+
Send a task to begin. Existing sessions are still available through /sessions.`
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
if (item.value === "new" && current) {
|
|
125
|
+
let name = await gatewayInput(key, "New folder name");
|
|
126
|
+
name && (current = createProjectFolder(current, name, loadGatewayConfig().projectRoots ?? []));
|
|
127
|
+
} else
|
|
128
|
+
current = item.value === "roots" ? void 0 : item.value;
|
|
129
|
+
return { done: !1, ...view() };
|
|
130
|
+
}
|
|
131
|
+
}, { threadId: event.source.threadId });
|
|
132
|
+
}
|
|
133
|
+
var transfers = /* @__PURE__ */ new Map();
|
|
134
|
+
function cancelMobileTransfer(key) {
|
|
135
|
+
transfers.get(key)?.abort();
|
|
136
|
+
}
|
|
137
|
+
async function continueSession(ctx, file) {
|
|
138
|
+
if (transfers.has(ctx.key))
|
|
139
|
+
throw new Error("A session transfer is already pending. Use /stop to cancel it.");
|
|
140
|
+
let controller = new AbortController();
|
|
141
|
+
transfers.set(ctx.key, controller);
|
|
142
|
+
try {
|
|
143
|
+
await performContinue(ctx, file, controller.signal);
|
|
144
|
+
} finally {
|
|
145
|
+
transfers.delete(ctx.key);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async function performContinue(ctx, file, signal) {
|
|
149
|
+
requireGatewayOwner(ctx.event.source);
|
|
150
|
+
let { requestSessionTransfer, SessionTransferError } = await import("./session-handoff-IAFIK7QP.js"), { key, bridge } = ctx;
|
|
151
|
+
if (bridge.peekSession?.(key)?.sessionManager?.getSessionFile() === file) {
|
|
152
|
+
await ctx.adapter.send(ctx.event.source.chatId, "This session is already open here.");
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (bridge.getStatus(key).busy)
|
|
156
|
+
throw new Error("Stop the current phone session before switching.");
|
|
157
|
+
try {
|
|
158
|
+
await requestSessionTransfer(file, { timeoutMs: 3e3, signal });
|
|
159
|
+
} catch (error) {
|
|
160
|
+
if (!(error instanceof SessionTransferError) || !["busy", "timeout"].includes(error.code))
|
|
161
|
+
throw error;
|
|
162
|
+
let choice = await gatewaySelect(key, `${error instanceof Error ? error.message : "Session is in use"}
|
|
163
|
+
How should lunR continue?`, ["Wait until idle", "Stop and continue", "Cancel"], { signal });
|
|
164
|
+
if (!choice || choice === "Cancel")
|
|
165
|
+
return;
|
|
166
|
+
if (choice === "Stop and continue")
|
|
167
|
+
await requestSessionTransfer(file, { stop: !0, timeoutMs: 3e4, signal });
|
|
168
|
+
else {
|
|
169
|
+
let deadline = Date.now() + 12e4;
|
|
170
|
+
for (; ; ) {
|
|
171
|
+
signal.throwIfAborted(), requireGatewayOwner(ctx.event.source);
|
|
172
|
+
try {
|
|
173
|
+
await requestSessionTransfer(file, { timeoutMs: 3e3, signal });
|
|
174
|
+
break;
|
|
175
|
+
} catch (retryError) {
|
|
176
|
+
if (!(retryError instanceof SessionTransferError) || !["busy", "timeout"].includes(retryError.code) || Date.now() >= deadline)
|
|
177
|
+
throw retryError;
|
|
178
|
+
}
|
|
179
|
+
await new Promise((resolve2) => setTimeout(resolve2, 500));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
signal.throwIfAborted(), requireGatewayOwner(ctx.event.source), await bridge.switchSession(key, file);
|
|
184
|
+
let session = await bridge.getSession(key), cwd = session?.sessionManager?.getCwd();
|
|
185
|
+
bindConversation(key, ctx.event.source, { cwd, owner: ctx.event.source.userId });
|
|
186
|
+
let id = session?.sessionManager?.getSessionId();
|
|
187
|
+
if (id && ["auto", "yolo"].includes(getPermissionMode(id))) {
|
|
188
|
+
let requested = getPermissionMode(id);
|
|
189
|
+
setPermissionMode("read-only", id), session?.sessionManager?.setPermissionMode?.("read-only"), await gatewaySelect(key, `Continue with ${requested} permissions? Tools can change files and run commands without individual approval.`, ["Keep read-only", `Use ${requested}`]) === `Use ${requested}` && (setPermissionMode(requested, id), session?.sessionManager?.setPermissionMode?.(requested));
|
|
190
|
+
}
|
|
191
|
+
await ctx.adapter.send(ctx.event.source.chatId, `Continuing ${session?.sessionManager?.getSessionName() ?? basename(file)}
|
|
192
|
+
Project: ${cwd}
|
|
193
|
+
Send your next instruction.`, { threadId: ctx.event.source.threadId });
|
|
194
|
+
}
|
|
195
|
+
async function browseSessions(ctx, args, quick) {
|
|
196
|
+
let handoff = await import("./session-handoff-IAFIK7QP.js");
|
|
197
|
+
if (quick) {
|
|
198
|
+
let candidates = handoff.listHandoffCandidates();
|
|
199
|
+
if (!candidates.length) {
|
|
200
|
+
let latest = handoff.latestTuiSession();
|
|
201
|
+
if (!latest)
|
|
202
|
+
throw new Error("No recent TUI session found. Use /sessions or mark one in the terminal with /handoff.");
|
|
203
|
+
await continueSession(ctx, latest.sessionFile);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
if (candidates.length === 1) {
|
|
207
|
+
await continueSession(ctx, candidates[0].sessionFile);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
await sessionPicker(ctx, candidates.map((s) => ({ label: `${s.cwd} \xB7 ${basename(s.sessionFile)}`, value: s.sessionFile })));
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
let sessions = await SessionManager.listAll(), known = new Set(sessions.map((s) => s.path));
|
|
214
|
+
for (let file of handoff.listRegisteredSessionPaths())
|
|
215
|
+
if (!known.has(file))
|
|
216
|
+
try {
|
|
217
|
+
let manager = SessionManager.openReadOnly(file), header = manager.getHeader();
|
|
218
|
+
header && sessions.push({
|
|
219
|
+
id: header.id,
|
|
220
|
+
path: file,
|
|
221
|
+
cwd: manager.getCwd(),
|
|
222
|
+
name: manager.getSessionName(),
|
|
223
|
+
created: new Date(header.timestamp),
|
|
224
|
+
modified: statSync(file).mtime,
|
|
225
|
+
messageCount: manager.getEntries().length,
|
|
226
|
+
firstMessage: "",
|
|
227
|
+
allMessagesText: ""
|
|
228
|
+
});
|
|
229
|
+
} catch {
|
|
230
|
+
}
|
|
231
|
+
let query = args.toLowerCase(), items = sessions.sort((a, b) => b.modified.getTime() - a.modified.getTime()).filter((s) => !query || `${s.name ?? ""} ${s.cwd} ${s.id}`.toLowerCase().includes(query)).map((s) => ({
|
|
232
|
+
label: `${s.name || s.firstMessage.slice(0, 35) || s.id.slice(0, 8)} \xB7 ${basename(s.cwd)} \xB7 ${s.modified.toLocaleDateString()}`,
|
|
233
|
+
value: s.path
|
|
234
|
+
}));
|
|
235
|
+
await sessionPicker(ctx, items);
|
|
236
|
+
}
|
|
237
|
+
async function sessionPicker(ctx, items) {
|
|
238
|
+
await createPicker(ctx.adapter, ctx.event.source, {
|
|
239
|
+
kind: "sessions",
|
|
240
|
+
sessionKey: ctx.key,
|
|
241
|
+
invokerId: ctx.event.source.userId,
|
|
242
|
+
title: "Choose a session. Use /sessions <search> to filter.",
|
|
243
|
+
items,
|
|
244
|
+
validate: () => isGatewayOwner(ctx.event.source, loadGatewayConfig()),
|
|
245
|
+
resolve: async (item) => (await continueSession(ctx, item.value), { done: !0, text: "Session selection finished." })
|
|
246
|
+
}, { threadId: ctx.event.source.threadId });
|
|
247
|
+
}
|
|
248
|
+
async function handleMobileCommand(ctx, command, args) {
|
|
249
|
+
if (!MOBILE_COMMANDS.some((c) => c.name === command) && command !== "resume")
|
|
250
|
+
return !1;
|
|
251
|
+
if (requireGatewayOwner(ctx.event.source, ctx.cfg), bindConversation(ctx.key, ctx.event.source, { owner: ctx.event.source.userId }), command === "project")
|
|
252
|
+
return await browseProject(ctx, args.trim() || void 0), !0;
|
|
253
|
+
if (command === "sessions" || command === "resume" || command === "continue")
|
|
254
|
+
return await browseSessions(ctx, args, command === "continue"), !0;
|
|
255
|
+
let session = await ctx.bridge.getSession(ctx.key);
|
|
256
|
+
if (!session)
|
|
257
|
+
throw new Error("Select a project and send a task, or use /continue first.");
|
|
258
|
+
let id = session.sessionManager?.getSessionId();
|
|
259
|
+
if (command === "usage") {
|
|
260
|
+
let stats = session.getSessionStats(), plans = await (await import("./usage-service-LFB2SWYV.js")).getAllPlanUsageResults(session.model?.provider, session.modelRuntime);
|
|
261
|
+
return await ctx.adapter.send(ctx.event.source.chatId, [
|
|
262
|
+
`Tokens: ${stats.tokens.total} \xB7 cost: $${stats.cost.toFixed(4)}`,
|
|
263
|
+
...plans.usages.flatMap((p) => p.windows.map((w) => `${p.provider} ${w.label}: ${w.usedPercent.toFixed(1)}% used`)),
|
|
264
|
+
...plans.errors
|
|
265
|
+
].join(`
|
|
266
|
+
`)), !0;
|
|
267
|
+
}
|
|
268
|
+
if (command === "processes") {
|
|
269
|
+
if (!id)
|
|
270
|
+
throw new Error("No session identity.");
|
|
271
|
+
let processes = await import("./process-registry-PVJ44F7H.js"), own = processes.list(id);
|
|
272
|
+
if (args) {
|
|
273
|
+
let [action, raw] = args.split(/\s+/), pid = Number(raw);
|
|
274
|
+
if (action !== "stop" || !own.some((p) => p.pid === pid))
|
|
275
|
+
throw new Error("Usage: /processes stop <pid> from this session's process list.");
|
|
276
|
+
processes.kill(pid), await ctx.adapter.send(ctx.event.source.chatId, `Stop requested for process ${pid}.`);
|
|
277
|
+
} else
|
|
278
|
+
await ctx.adapter.send(ctx.event.source.chatId, own.length ? own.map((p) => `${p.pid} \xB7 ${p.status} \xB7 ${p.command}`).join(`
|
|
279
|
+
`).slice(0, ctx.adapter.maxMessageLength) : "No tracked processes.");
|
|
280
|
+
return !0;
|
|
281
|
+
}
|
|
282
|
+
if (command === "stopall") {
|
|
283
|
+
await ctx.bridge.abort(ctx.key);
|
|
284
|
+
let result = id ? await getSubagentCancellation(id)?.stop() : void 0, processes = await import("./process-registry-PVJ44F7H.js"), count = id ? processes.list(id).filter((p) => p.status !== "exited").length : 0;
|
|
285
|
+
return id && processes.killAll(id), await ctx.adapter.send(ctx.event.source.chatId, `Stopped the current turn. Requested stop for ${result?.requested ?? 0} background runs and ${count} tracked processes${result?.failed ? `; ${result.failed} requests failed` : ""}. Wait for them to exit before transferring.`), !0;
|
|
286
|
+
}
|
|
287
|
+
if (ctx.bridge.getStatus(ctx.key).busy)
|
|
288
|
+
throw new Error("Wait for the current turn or use /stop first.");
|
|
289
|
+
if (command === "refresh")
|
|
290
|
+
return await session.modelRuntime.refresh(), await ctx.adapter.send(ctx.event.source.chatId, "Model catalog refreshed. Use /model to choose."), !0;
|
|
291
|
+
if (command === "fast") {
|
|
292
|
+
if (session.model?.provider !== "openai-codex" || !session.settingsManager)
|
|
293
|
+
throw new Error("Fast mode is available only for OpenAI Codex subscriptions.");
|
|
294
|
+
let current = session.settingsManager.getOpenAIFastMode();
|
|
295
|
+
if (args && !["on", "off", "status"].includes(args))
|
|
296
|
+
throw new Error("Usage: /fast on|off|status");
|
|
297
|
+
return args !== "status" && session.settingsManager.setOpenAIFastMode(args ? args === "on" : !current), await ctx.adapter.send(ctx.event.source.chatId, `Fast mode: ${session.settingsManager.getOpenAIFastMode() ? "on" : "off"}`), !0;
|
|
298
|
+
}
|
|
299
|
+
if (command === "skill") {
|
|
300
|
+
let names = session.resourceLoader?.getSkills().skills.map((s) => s.name) ?? [], [name, ...task] = args.split(/\s+/).filter(Boolean), chosen = name || await gatewaySelect(ctx.key, "Choose a skill", names);
|
|
301
|
+
if (!chosen)
|
|
302
|
+
return !0;
|
|
303
|
+
if (!names.includes(chosen))
|
|
304
|
+
throw new Error("That skill is not loaded for this project.");
|
|
305
|
+
return ctx.event.text = `/skill:${chosen} ${task.join(" ") || await gatewayInput(ctx.key, "What should this skill do?") || ""}`, !1;
|
|
306
|
+
}
|
|
307
|
+
if (command === "download") {
|
|
308
|
+
if (!ctx.adapter.sendFile)
|
|
309
|
+
throw new Error("This platform cannot send files.");
|
|
310
|
+
if (!args)
|
|
311
|
+
throw new Error("Usage: /download <project-relative path>");
|
|
312
|
+
let cwd = session.sessionManager?.getCwd();
|
|
313
|
+
if (!cwd)
|
|
314
|
+
throw new Error("No project selected.");
|
|
315
|
+
let file = resolveWithinRoots(resolve(cwd, args), [cwd]), stat = statSync(file);
|
|
316
|
+
if (!stat.isFile() || stat.size > 8 * 1024 * 1024)
|
|
317
|
+
throw new Error("Choose a file no larger than 8 MB.");
|
|
318
|
+
if (/(^|[\\/])(?:\.env(?:\.[^\\/]*)?|auth\.json|gateway\.json|credentials[^\\/]*|id_rsa|id_ed25519)([\\/]|$)/i.test(file))
|
|
319
|
+
throw new Error("Credential files cannot be sent through chat.");
|
|
320
|
+
let result = await ctx.adapter.sendFile(ctx.event.source.chatId, file, { threadId: ctx.event.source.threadId });
|
|
321
|
+
if (!result.success)
|
|
322
|
+
throw new Error(result.error ?? "File delivery failed.");
|
|
323
|
+
return !0;
|
|
324
|
+
}
|
|
325
|
+
if (command === "settings") {
|
|
326
|
+
let choice = await gatewaySelect(ctx.key, "Session settings", ["Model", "Thinking", "Permissions"]);
|
|
327
|
+
if (choice === "Model" || choice === "Thinking") {
|
|
328
|
+
let { CHAT_COMMANDS, runChatCommand } = await import("./commands-Y2OUC2T7.js"), cmd = CHAT_COMMANDS.find((c) => c.name === choice.toLowerCase());
|
|
329
|
+
return cmd && await runChatCommand(cmd, {
|
|
330
|
+
...ctx,
|
|
331
|
+
args: "",
|
|
332
|
+
reply: async (text) => {
|
|
333
|
+
await ctx.adapter.send(ctx.event.source.chatId, text);
|
|
334
|
+
}
|
|
335
|
+
}), !0;
|
|
336
|
+
}
|
|
337
|
+
if (choice !== "Permissions")
|
|
338
|
+
return !0;
|
|
339
|
+
}
|
|
340
|
+
let requested = command === "plan" ? "read-only" : args || await gatewaySelect(ctx.key, `Permission mode: ${getPermissionMode(id)}`, [...PERMISSION_MODES]);
|
|
341
|
+
if (!requested)
|
|
342
|
+
return !0;
|
|
343
|
+
let mode = requested === "read" ? "read-only" : requested;
|
|
344
|
+
if (!PERMISSION_MODES.includes(mode))
|
|
345
|
+
throw new Error("Choose yolo, auto, or read-only.");
|
|
346
|
+
return setPermissionMode(mode, id), session.sessionManager?.setPermissionMode?.(mode), await ctx.adapter.send(ctx.event.source.chatId, `Permission mode: ${mode}`), command === "plan" && args ? (ctx.event.text = `Create a plan for: ${args}`, !1) : !0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export {
|
|
350
|
+
MOBILE_COMMANDS,
|
|
351
|
+
FORWARDED_COMMANDS,
|
|
352
|
+
resolveWithinRoots,
|
|
353
|
+
createProjectFolder,
|
|
354
|
+
cancelMobileTransfer,
|
|
355
|
+
handleMobileCommand
|
|
356
|
+
};
|