@ashx-j/lunr-dev 0.2.21-dev.12.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 +25 -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 -0
- 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 +3 -3
- 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.map +1 -1
- package/dist/builtin-extensions/lunr-todos.js +15 -0
- package/dist/builtin-extensions/lunr-todos.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +5 -0
- 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/index.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +18 -5
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -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 +8 -3
- 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 +4 -1
- 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 +167 -53
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +5 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +3 -2
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +2 -0
- 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 +4 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.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/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +1 -1
- 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 +3 -0
- 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 +11 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.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 +41 -3
- 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 +5 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +3 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +23 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.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/pi-args.d.ts +2 -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 +20 -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 +4 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- 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 +2 -2
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.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-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 +1 -0
- package/dist/core/computer-use/image.d.ts.map +1 -1
- package/dist/core/computer-use/image.js +8 -0
- package/dist/core/computer-use/image.js.map +1 -1
- package/dist/core/computer-use/schemas.d.ts +1 -0
- package/dist/core/computer-use/schemas.d.ts.map +1 -1
- package/dist/core/computer-use/schemas.js +2 -1
- package/dist/core/computer-use/schemas.js.map +1 -1
- package/dist/core/computer-use/workflow.d.ts.map +1 -1
- package/dist/core/computer-use/workflow.js +89 -23
- package/dist/core/computer-use/workflow.js.map +1 -1
- package/dist/core/customize.d.ts.map +1 -1
- package/dist/core/customize.js +15 -14
- 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 +16 -23
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +71 -142
- 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 -19
- 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 -0
- 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 +20 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +67 -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-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-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 +78 -17
- 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 +12 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +74 -3
- 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 +44 -45
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +10 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +342 -133
- 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-SRCYQPZ6.js → builtin-extensions-4GNDR6U3.js} +7 -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-LTYWTR3V.js → chunk-2MI5OPMN.js} +17 -2
- package/dist/node-runtime/{chunk-W3CVH5RX.js → chunk-2TKODGBZ.js} +11 -6
- package/dist/node-runtime/{chunk-GT5F3OKM.js → chunk-33SIKK3Y.js} +38 -164
- package/dist/node-runtime/{chunk-GZQHMEWL.js → chunk-3DKIWPKN.js} +19 -4
- 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-LOYUC2ID.js → chunk-4SBQAI4T.js} +27 -27
- package/dist/node-runtime/{chunk-CZUBYPFP.js → chunk-53ARRUHA.js} +674 -257
- package/dist/node-runtime/{chunk-VTPM5V35.js → chunk-5Q4A37RB.js} +10 -4
- package/dist/node-runtime/{chunk-SWSN6HAB.js → chunk-5UZOPGE3.js} +1 -1
- package/dist/node-runtime/{chunk-XSRCAQK2.js → chunk-5Z5PCXGY.js} +263 -222
- package/dist/node-runtime/chunk-7JIYPIQU.js +356 -0
- package/dist/node-runtime/{chunk-D466UAID.js → chunk-AJ6R5VTV.js} +60 -88
- package/dist/node-runtime/chunk-ATIF3RX5.js +352 -0
- package/dist/node-runtime/{chunk-A3KMVBZV.js → chunk-BBUVIEZB.js} +1 -10
- 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-N3PNL74S.js → chunk-DRJI7ZSC.js} +63 -163
- package/dist/node-runtime/{chunk-VTGEKB7R.js → chunk-E75WFZ33.js} +1 -1
- package/dist/node-runtime/{chunk-MJQDX3BA.js → chunk-EBB4BJW4.js} +3 -3
- package/dist/node-runtime/{chunk-VQ4UBWSA.js → chunk-EOEAQIJV.js} +63 -6
- 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-BJ6H7DPI.js → chunk-JJWZB7S3.js} +62 -50
- 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-VSELYKWU.js → chunk-LWYIVUGV.js} +2 -1
- package/dist/node-runtime/{chunk-BYQ2MOFI.js → chunk-MFV2LOOX.js} +184 -2192
- 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-7NBZ5P7I.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-H2BI7G7T.js → chunk-QFADHUQV.js} +2 -1
- package/dist/node-runtime/{chunk-W3SILANP.js → chunk-RBZQU6TJ.js} +12 -9
- package/dist/node-runtime/{chunk-ZVSORYRM.js → chunk-RVOQBXTA.js} +10 -6
- package/dist/node-runtime/{chunk-HXJS2PJM.js → chunk-RW4PYFNE.js} +14 -94
- package/dist/node-runtime/chunk-TP7K7YWS.js +2830 -0
- package/dist/node-runtime/{chunk-ZOIIMEN6.js → chunk-TVLBDVTR.js} +32 -21
- 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-WJVFOIB5.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-MW2XJZIK.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-BZGSLIP7.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-LF5VST47.js → customize-VFJV3U6A.js} +2 -1
- package/dist/node-runtime/{direct-tool-executor-BSZDHIYR.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-XLQSJN4V.js → extract-EQJE7FZZ.js} +2 -2
- package/dist/node-runtime/gateway-QENRQA5X.js +1476 -0
- package/dist/node-runtime/{gemini-search-U7SUMPQA.js → gemini-search-35OCRFLN.js} +1 -1
- package/dist/node-runtime/{gemini-url-context-PXWCBQHK.js → gemini-url-context-UQY3PHHW.js} +2 -2
- package/dist/node-runtime/index.js +113 -73
- package/dist/node-runtime/{init-DVJUAOUO.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-TJNDAMWM.js → lunr-computer-use-IAUNXSXH.js} +11 -8
- package/dist/node-runtime/{lunr-cron-J64I72C6.js → lunr-cron-P6ZJGVEF.js} +21 -7
- package/dist/node-runtime/main.js +47 -34
- 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-VMYX4Y2S.js → package-manager-cli-J337RKTI.js} +25 -17
- package/dist/node-runtime/{pi-intercom-NV2LW6X7.js → pi-intercom-QM53RLTS.js} +6 -1
- package/dist/node-runtime/{pi-mcp-adapter-JLB5YL2F.js → pi-mcp-adapter-3PHF4KZ4.js} +8 -7
- package/dist/node-runtime/{pi-subagents-WEHV3W7H.js → pi-subagents-RCHPB6UK.js} +255 -88
- package/dist/node-runtime/{pi-web-access-FN5YC5T6.js → pi-web-access-PNG35XW7.js} +15 -15
- package/dist/node-runtime/process-registry-PVJ44F7H.js +31 -0
- package/dist/node-runtime/{proxy-modes-OR7ISBXK.js → proxy-modes-5FAPSZEZ.js} +11 -11
- package/dist/node-runtime/rpc-entry.js +47 -34
- 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-3CCU326G.js → settings-manager-HIBIUNBK.js} +12 -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-CXKXQDHH.js → subagent-executor-2BH76MMS.js} +64 -23
- 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-NM7B4CKL.js → update-cli-TVTPVUNM.js} +6 -3
- package/dist/node-runtime/usage-service-LFB2SWYV.js +37 -0
- package/dist/node-runtime/{video-extract-OYT5WKS5.js → video-extract-OOZHR7SU.js} +2 -2
- package/dist/node-runtime/{workflow-C26QCUTW.js → workflow-TVJNKKQP.js} +80 -39
- package/dist/node-runtime/{youtube-extract-TQYKGFGS.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 +134 -48
- package/docs/extensions.md +2 -0
- package/docs/features.md +108 -27
- package/docs/index.md +1 -1
- package/docs/interactive-startup.md +2 -1
- package/docs/keybindings.md +1 -1
- package/docs/providers.md +6 -2
- package/docs/quickstart.md +2 -2
- package/docs/sessions.md +10 -0
- package/docs/settings.md +3 -1
- 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/node-runtime/agent-session-services-QANFGM2V.js +0 -40
- package/dist/node-runtime/chunk-LISUTZS3.js +0 -19
- package/dist/node-runtime/chunk-VGYZ3APQ.js +0 -59
- package/dist/node-runtime/chunk-XAUQOKYK.js +0 -6011
- package/dist/node-runtime/command-ZURZJDXF.js +0 -13
- package/dist/node-runtime/gateway-FWHRIBK5.js +0 -2139
- package/dist/node-runtime/interactive-mode-BBASNWHN.js +0 -62
- package/dist/node-runtime/runtime-bridges-2VQTLPOZ.js +0 -12
- 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-BPQFJR76.js → src-IVPNZ2BX.js} +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
browserEnabledDefault,
|
|
4
|
+
notifyBrowserEnabledChange
|
|
5
|
+
} from "./chunk-L5LZUGT7.js";
|
|
2
6
|
import {
|
|
3
7
|
require_proper_lockfile
|
|
4
8
|
} from "./chunk-URD2SLIT.js";
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_SUBAGENT_SPINNER,
|
|
7
|
-
isSubagentSpinnerName
|
|
8
|
-
} from "./chunk-LISUTZS3.js";
|
|
9
9
|
import {
|
|
10
10
|
computerSettingsChanged
|
|
11
11
|
} from "./chunk-3ONQTOMR.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
MEMORY_CHAR_CAP_DEFAULT,
|
|
14
14
|
MEMORY_CHAR_CAP_MAX,
|
|
15
15
|
MEMORY_CHAR_CAP_MIN
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UJOCPOMX.js";
|
|
17
17
|
import {
|
|
18
18
|
CONFIG_DIR_NAME,
|
|
19
19
|
getAgentDir,
|
|
@@ -18409,11 +18409,33 @@ function configureHttpDispatcher(timeoutMs = DEFAULT_HTTP_IDLE_TIMEOUT_MS) {
|
|
|
18409
18409
|
undici.setGlobalDispatcher(dispatcher), (installedGlobalFetch === void 0 ? globalThis.fetch === originalGlobalFetch : globalThis.fetch === installedGlobalFetch) && (undici.install?.(), installedGlobalFetch = globalThis.fetch);
|
|
18410
18410
|
}
|
|
18411
18411
|
|
|
18412
|
+
// packages/coding-agent/dist/core/subagent-spinner-setting.js
|
|
18413
|
+
var SUBAGENT_SPINNER_NAMES = ["braille", "orbit", "snake", "sparkle"], DEFAULT_SUBAGENT_SPINNER = "braille", SUBAGENT_SPINNER_LABELS = {
|
|
18414
|
+
braille: "Braille",
|
|
18415
|
+
orbit: "Orbit",
|
|
18416
|
+
snake: "Snake",
|
|
18417
|
+
sparkle: "Sparkle"
|
|
18418
|
+
};
|
|
18419
|
+
function isSubagentSpinnerName(value) {
|
|
18420
|
+
return typeof value == "string" && SUBAGENT_SPINNER_NAMES.includes(value);
|
|
18421
|
+
}
|
|
18422
|
+
|
|
18412
18423
|
// packages/coding-agent/dist/core/settings-manager.js
|
|
18413
18424
|
var SKILL_TAG_CHARACTERS = ["+", "~", "$"], DEFAULT_SKILL_TAG_CHARACTER = "+";
|
|
18414
18425
|
function parseSkillTagCharacter(value) {
|
|
18415
18426
|
return value === "~" || value === "$" ? value : DEFAULT_SKILL_TAG_CHARACTER;
|
|
18416
18427
|
}
|
|
18428
|
+
var SUBAGENT_COMMUNICATION_BRIDGE = /* @__PURE__ */ Symbol.for("@lunr/subagent-communication");
|
|
18429
|
+
function bindSubagentCommunicationSetting(manager) {
|
|
18430
|
+
manager ? globalThis[SUBAGENT_COMMUNICATION_BRIDGE] = manager : delete globalThis[SUBAGENT_COMMUNICATION_BRIDGE];
|
|
18431
|
+
}
|
|
18432
|
+
function subagentCommunicationEnabled(cwd, agentDir = getAgentDir()) {
|
|
18433
|
+
let inherited = process.env.PI_SUBAGENT_COMMUNICATION_ENABLED;
|
|
18434
|
+
if (process.env.PI_SUBAGENT_CHILD === "1" && (inherited === "0" || inherited === "1"))
|
|
18435
|
+
return inherited === "1";
|
|
18436
|
+
let active = globalThis[SUBAGENT_COMMUNICATION_BRIDGE];
|
|
18437
|
+
return agentDir === getAgentDir() && active && typeof active.getSubagentCommunicationEnabled == "function" ? active.getSubagentCommunicationEnabled() : inherited === "0" || inherited === "1" ? inherited === "1" : SettingsManager.create(cwd, agentDir, { projectTrusted: !1 }).getSubagentCommunicationEnabled();
|
|
18438
|
+
}
|
|
18417
18439
|
function deepMergeSettings(base, overrides) {
|
|
18418
18440
|
let result = { ...base };
|
|
18419
18441
|
for (let key of Object.keys(overrides)) {
|
|
@@ -18783,6 +18805,13 @@ var FileSettingsStorage = class {
|
|
|
18783
18805
|
getHideThinkingBlock() {
|
|
18784
18806
|
return this.settings.hideThinkingBlock ?? !1;
|
|
18785
18807
|
}
|
|
18808
|
+
getReasoningDisplay() {
|
|
18809
|
+
let value = this.settings.reasoningDisplay;
|
|
18810
|
+
return value === "one-line" || value === "four-lines" ? value : "auto";
|
|
18811
|
+
}
|
|
18812
|
+
setReasoningDisplay(display) {
|
|
18813
|
+
this.globalSettings.reasoningDisplay = display, this.markModified("reasoningDisplay"), this.save();
|
|
18814
|
+
}
|
|
18786
18815
|
getThinkingCollapse() {
|
|
18787
18816
|
return this.settings.thinkingCollapse ?? !0;
|
|
18788
18817
|
}
|
|
@@ -18853,12 +18882,24 @@ var FileSettingsStorage = class {
|
|
|
18853
18882
|
setComputerForeground(enabled) {
|
|
18854
18883
|
this.globalSettings.computerForeground = enabled, this.markModified("computerForeground"), this.save(), computerSettingsChanged({ enabled: this.getComputerUse(), foreground: enabled });
|
|
18855
18884
|
}
|
|
18885
|
+
getBrowserEnabled() {
|
|
18886
|
+
return this.globalSettings.browserEnabled ?? browserEnabledDefault();
|
|
18887
|
+
}
|
|
18888
|
+
setBrowserEnabled(enabled) {
|
|
18889
|
+
this.globalSettings.browserEnabled = enabled, this.markModified("browserEnabled"), this.save(), notifyBrowserEnabledChange(enabled);
|
|
18890
|
+
}
|
|
18856
18891
|
getMemoryEnabled() {
|
|
18857
18892
|
return this.globalSettings.memoryEnabled ?? !0;
|
|
18858
18893
|
}
|
|
18859
18894
|
setMemoryEnabled(enabled) {
|
|
18860
18895
|
this.globalSettings.memoryEnabled = enabled, this.markModified("memoryEnabled"), this.save();
|
|
18861
18896
|
}
|
|
18897
|
+
getTodosEnabled() {
|
|
18898
|
+
return this.globalSettings.todosEnabled ?? !0;
|
|
18899
|
+
}
|
|
18900
|
+
setTodosEnabled(enabled) {
|
|
18901
|
+
this.globalSettings.todosEnabled = enabled, this.markModified("todosEnabled"), this.save();
|
|
18902
|
+
}
|
|
18862
18903
|
setMemoryCharCap(cap) {
|
|
18863
18904
|
this.globalSettings.memoryCharCap = Math.min(MEMORY_CHAR_CAP_MAX, Math.max(MEMORY_CHAR_CAP_MIN, Math.floor(cap))), this.markModified("memoryCharCap"), this.save();
|
|
18864
18905
|
}
|
|
@@ -18939,7 +18980,7 @@ var FileSettingsStorage = class {
|
|
|
18939
18980
|
// lunr: default permission mode (startup default; per-session mode is in-memory)
|
|
18940
18981
|
getDefaultPermissionMode() {
|
|
18941
18982
|
let value = this.settings.defaultPermissionMode;
|
|
18942
|
-
return value === "
|
|
18983
|
+
return value === "plan" ? "read-only" : value === "auto" || value === "read-only" ? value : "yolo";
|
|
18943
18984
|
}
|
|
18944
18985
|
setDefaultPermissionMode(mode) {
|
|
18945
18986
|
this.globalSettings.defaultPermissionMode = mode, this.markModified("defaultPermissionMode"), this.save();
|
|
@@ -19175,6 +19216,18 @@ var FileSettingsStorage = class {
|
|
|
19175
19216
|
setModelInstructionsMode(mode) {
|
|
19176
19217
|
this.globalSettings.modelInstructions ??= {}, this.globalSettings.modelInstructions.mode = mode, this.markModified("modelInstructions", "mode"), this.save();
|
|
19177
19218
|
}
|
|
19219
|
+
getSubagentCommunicationEnabled() {
|
|
19220
|
+
return this.globalSettings.subagentCommunicationEnabled ?? !0;
|
|
19221
|
+
}
|
|
19222
|
+
setSubagentCommunicationEnabled(enabled) {
|
|
19223
|
+
this.globalSettings.subagentCommunicationEnabled = enabled, this.markModified("subagentCommunicationEnabled"), this.save();
|
|
19224
|
+
}
|
|
19225
|
+
getAutomaticSubagentDelegation() {
|
|
19226
|
+
return this.settings.automaticSubagentDelegation ?? !0;
|
|
19227
|
+
}
|
|
19228
|
+
setAutomaticSubagentDelegation(enabled) {
|
|
19229
|
+
this.globalSettings.automaticSubagentDelegation = enabled, this.markModified("automaticSubagentDelegation"), this.save();
|
|
19230
|
+
}
|
|
19178
19231
|
getConfirmLargeSubagentLaunches() {
|
|
19179
19232
|
return this.settings.confirmLargeSubagentLaunches ?? !0;
|
|
19180
19233
|
}
|
|
@@ -19211,9 +19264,13 @@ export {
|
|
|
19211
19264
|
formatHttpIdleTimeoutMs,
|
|
19212
19265
|
applyHttpProxySettings,
|
|
19213
19266
|
configureHttpDispatcher,
|
|
19267
|
+
SUBAGENT_SPINNER_NAMES,
|
|
19268
|
+
SUBAGENT_SPINNER_LABELS,
|
|
19214
19269
|
SKILL_TAG_CHARACTERS,
|
|
19215
19270
|
DEFAULT_SKILL_TAG_CHARACTER,
|
|
19216
19271
|
parseSkillTagCharacter,
|
|
19272
|
+
bindSubagentCommunicationSetting,
|
|
19273
|
+
subagentCommunicationEnabled,
|
|
19217
19274
|
FileSettingsStorage,
|
|
19218
19275
|
InMemorySettingsStorage,
|
|
19219
19276
|
SettingsManager
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
getAgentDir
|
|
4
|
+
} from "./chunk-PCIGF2XK.js";
|
|
5
|
+
|
|
6
|
+
// packages/coding-agent/dist/gateway/pairing.js
|
|
7
|
+
import { randomInt } from "node:crypto";
|
|
8
|
+
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
9
|
+
import { join } from "node:path";
|
|
10
|
+
var CODE_ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZ23456789", CODE_LENGTH = 8, DEFAULT_TTL_MS = 3600 * 1e3, DEFAULT_RATE_LIMIT_MS = 600 * 1e3, DEFAULT_MAX_PENDING = 3, DEFAULT_MAX_FAILS = 5, DEFAULT_LOCKOUT_MS = 3600 * 1e3;
|
|
11
|
+
function normalizeCode(code) {
|
|
12
|
+
return code.replace(/-/g, "").trim().toUpperCase();
|
|
13
|
+
}
|
|
14
|
+
function generateCode() {
|
|
15
|
+
let code = "";
|
|
16
|
+
for (let i = 0; i < CODE_LENGTH; i++)
|
|
17
|
+
code += CODE_ALPHABET[randomInt(0, CODE_ALPHABET.length)];
|
|
18
|
+
return code;
|
|
19
|
+
}
|
|
20
|
+
function createPairingStore(options = {}) {
|
|
21
|
+
let dir = options.dir ?? join(getAgentDir(), "pairing"), ttlMs = options.ttlMs ?? DEFAULT_TTL_MS, rateLimitMs = options.rateLimitMs ?? DEFAULT_RATE_LIMIT_MS, maxPending = options.maxPending ?? DEFAULT_MAX_PENDING, maxFails = options.maxFails ?? DEFAULT_MAX_FAILS, lockoutMs = options.lockoutMs ?? DEFAULT_LOCKOUT_MS, now = options.now ?? (() => Date.now());
|
|
22
|
+
function storeFile() {
|
|
23
|
+
return join(dir, "store.json");
|
|
24
|
+
}
|
|
25
|
+
function read() {
|
|
26
|
+
let path = storeFile();
|
|
27
|
+
if (!existsSync(path))
|
|
28
|
+
return { pending: [], approved: [] };
|
|
29
|
+
try {
|
|
30
|
+
let parsed = JSON.parse(readFileSync(path, "utf-8"));
|
|
31
|
+
if (parsed == null || typeof parsed != "object" || Array.isArray(parsed))
|
|
32
|
+
return { pending: [], approved: [] };
|
|
33
|
+
let p = parsed, pending = Array.isArray(p.pending) ? p.pending : [], approved = Array.isArray(p.approved) ? p.approved : [];
|
|
34
|
+
return {
|
|
35
|
+
pending: pending.filter((c) => typeof c?.code == "string" && typeof c?.platform == "string" && typeof c?.userId == "string"),
|
|
36
|
+
approved: approved.filter((u) => typeof u?.platform == "string" && typeof u?.userId == "string"),
|
|
37
|
+
failedAttempts: typeof p.failedAttempts == "object" && p.failedAttempts !== null && !Array.isArray(p.failedAttempts) ? p.failedAttempts : void 0,
|
|
38
|
+
lockedOutUntil: typeof p.lockedOutUntil == "object" && p.lockedOutUntil !== null && !Array.isArray(p.lockedOutUntil) ? p.lockedOutUntil : void 0
|
|
39
|
+
};
|
|
40
|
+
} catch {
|
|
41
|
+
return { pending: [], approved: [] };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function write(data) {
|
|
45
|
+
existsSync(dir) || mkdirSync(dir, { recursive: !0 });
|
|
46
|
+
let path = storeFile(), tmp = `${path}.tmp-${process.pid}`;
|
|
47
|
+
writeFileSync(tmp, `${JSON.stringify(data, null, 2)}
|
|
48
|
+
`, "utf-8"), renameSync(tmp, path);
|
|
49
|
+
try {
|
|
50
|
+
chmodSync(path, 384);
|
|
51
|
+
} catch {
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function isLockedOut(platform) {
|
|
55
|
+
let until = read().lockedOutUntil?.[platform] ?? 0;
|
|
56
|
+
return now() < until;
|
|
57
|
+
}
|
|
58
|
+
function recordFailedAttempt(platform) {
|
|
59
|
+
let data = read(), failed = data.failedAttempts ?? {};
|
|
60
|
+
if (failed[platform] = (failed[platform] ?? 0) + 1, failed[platform] >= maxFails) {
|
|
61
|
+
let locked = data.lockedOutUntil ?? {};
|
|
62
|
+
locked[platform] = now() + lockoutMs, failed[platform] = 0, data.lockedOutUntil = locked;
|
|
63
|
+
}
|
|
64
|
+
data.failedAttempts = failed, write(data);
|
|
65
|
+
}
|
|
66
|
+
function livePending(data) {
|
|
67
|
+
let cutoff = now() - ttlMs;
|
|
68
|
+
return data.pending.filter((c) => c.issuedAt >= cutoff);
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
issueCode(platform, userId) {
|
|
72
|
+
if (isLockedOut(platform))
|
|
73
|
+
return null;
|
|
74
|
+
let data = read(), lastIssued = data.pending.filter((c) => c.platform === platform && c.userId === userId).reduce((max, c) => Math.max(max, c.issuedAt), 0);
|
|
75
|
+
if (lastIssued > 0 && now() - lastIssued < rateLimitMs)
|
|
76
|
+
return null;
|
|
77
|
+
let live = livePending(data);
|
|
78
|
+
if (live.filter((c) => c.platform === platform).length >= maxPending)
|
|
79
|
+
return null;
|
|
80
|
+
let entry = {
|
|
81
|
+
code: generateCode(),
|
|
82
|
+
platform,
|
|
83
|
+
userId,
|
|
84
|
+
issuedAt: now()
|
|
85
|
+
};
|
|
86
|
+
return data.pending = [...live, entry], write(data), entry.code;
|
|
87
|
+
},
|
|
88
|
+
approve(platform, code) {
|
|
89
|
+
if (isLockedOut(platform))
|
|
90
|
+
return null;
|
|
91
|
+
let data = read(), live = livePending(data), normalized = normalizeCode(code), match = live.find((c) => c.platform === platform && c.code === normalized);
|
|
92
|
+
return match ? (data.pending = live.filter((c) => c !== match), data.approved = [
|
|
93
|
+
...data.approved.filter((u) => !(u.platform === platform && u.userId === match.userId)),
|
|
94
|
+
{ platform, userId: match.userId, approvedAt: now() }
|
|
95
|
+
], write(data), match.userId) : (recordFailedAttempt(platform), null);
|
|
96
|
+
},
|
|
97
|
+
isPaired(platform, userId) {
|
|
98
|
+
return read().approved.some((u) => u.platform === platform && u.userId === userId);
|
|
99
|
+
},
|
|
100
|
+
listPending() {
|
|
101
|
+
let data = read();
|
|
102
|
+
return livePending(data).map((c) => ({
|
|
103
|
+
code: c.code,
|
|
104
|
+
platform: c.platform,
|
|
105
|
+
userId: c.userId,
|
|
106
|
+
expiresAt: c.issuedAt + ttlMs
|
|
107
|
+
}));
|
|
108
|
+
},
|
|
109
|
+
listApproved() {
|
|
110
|
+
return read().approved.map((u) => ({ platform: u.platform, userId: u.userId, approvedAt: u.approvedAt }));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
createPairingStore
|
|
117
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/cli/read-secret.js
|
|
4
|
+
async function readSecret(prompt) {
|
|
5
|
+
let stdin = process.stdin;
|
|
6
|
+
if (!stdin.isTTY || typeof stdin.setRawMode != "function") {
|
|
7
|
+
console.error("set LUNR_TELEGRAM_BOT_TOKEN / LUNR_DISCORD_BOT_TOKEN or re-run from a terminal.");
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
process.stderr.write(`${prompt}
|
|
11
|
+
Token: `), stdin.setRawMode(!0), stdin.resume(), stdin.setEncoding("utf8");
|
|
12
|
+
try {
|
|
13
|
+
return await new Promise((resolve, reject) => {
|
|
14
|
+
let buf = "", onData = (chunk) => {
|
|
15
|
+
for (let ch of chunk) {
|
|
16
|
+
if (ch === "") {
|
|
17
|
+
cleanup(), process.stderr.write(`
|
|
18
|
+
`), process.exit(130);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (ch === "\r" || ch === `
|
|
22
|
+
`) {
|
|
23
|
+
cleanup(), process.stderr.write(`********
|
|
24
|
+
`), resolve(buf.length === 0 ? void 0 : buf);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (ch === "\x7F" || ch === "\b") {
|
|
28
|
+
buf = buf.slice(0, -1);
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
ch >= " " && (buf += ch);
|
|
32
|
+
}
|
|
33
|
+
}, cleanup = () => {
|
|
34
|
+
stdin.off("data", onData), stdin.off("error", onError);
|
|
35
|
+
}, onError = (err) => {
|
|
36
|
+
cleanup(), reject(err);
|
|
37
|
+
};
|
|
38
|
+
stdin.on("data", onData), stdin.on("error", onError);
|
|
39
|
+
});
|
|
40
|
+
} finally {
|
|
41
|
+
typeof stdin.setRawMode == "function" && stdin.setRawMode(!1), stdin.pause();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
readSecret
|
|
47
|
+
};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
SessionOwnership
|
|
4
|
+
} from "./chunk-UAEOTO52.js";
|
|
2
5
|
import {
|
|
3
6
|
KeybindingsManager
|
|
4
7
|
} from "./chunk-CH6OL6P2.js";
|
|
5
8
|
import {
|
|
6
9
|
DynamicBorder
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3VEY2IYY.js";
|
|
8
11
|
import {
|
|
9
12
|
keyHint,
|
|
10
13
|
keyText
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-N4TUWAGA.js";
|
|
12
15
|
import {
|
|
13
16
|
theme
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PLGA743X.js";
|
|
15
18
|
import {
|
|
16
19
|
canonicalizePath
|
|
17
20
|
} from "./chunk-PCIGF2XK.js";
|
|
@@ -432,6 +435,19 @@ var SessionList = class {
|
|
|
432
435
|
}
|
|
433
436
|
};
|
|
434
437
|
async function deleteSessionFile(sessionPath) {
|
|
438
|
+
let ownership;
|
|
439
|
+
try {
|
|
440
|
+
ownership = new SessionOwnership(sessionPath);
|
|
441
|
+
} catch (error) {
|
|
442
|
+
return { ok: !1, method: "unlink", error: error instanceof Error ? error.message : String(error) };
|
|
443
|
+
}
|
|
444
|
+
try {
|
|
445
|
+
return await deleteOwnedSessionFile(sessionPath);
|
|
446
|
+
} finally {
|
|
447
|
+
ownership.release();
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
async function deleteOwnedSessionFile(sessionPath) {
|
|
435
451
|
let trashArgs = sessionPath.startsWith("-") ? ["--", sessionPath] : [sessionPath], trashResult = spawnSync("trash", trashArgs, { encoding: "utf-8" }), getTrashErrorHint = () => {
|
|
436
452
|
let parts = [];
|
|
437
453
|
trashResult.error && parts.push(trashResult.error.message);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/runtime-scope.js
|
|
4
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
|
+
var runtimeScope = new AsyncLocalStorage();
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
runtimeScope
|
|
9
|
+
};
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createProjectTrustContext,
|
|
4
|
+
resolveProjectTrusted
|
|
5
|
+
} from "./chunk-LV6CEFW2.js";
|
|
2
6
|
import {
|
|
3
7
|
lightBuiltinExtensions,
|
|
4
8
|
loadAllBuiltinExtensions
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TVLBDVTR.js";
|
|
6
10
|
import {
|
|
7
|
-
createProjectTrustContext,
|
|
8
11
|
createStartupTui,
|
|
9
|
-
resolveProjectTrusted,
|
|
10
12
|
shouldRunFirstTimeSetup,
|
|
11
13
|
showFirstTimeSetup,
|
|
12
14
|
showStartupSelector,
|
|
13
15
|
startStartupTui
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
ProjectTrustStore,
|
|
17
|
-
hasTrustRequiringProjectResources
|
|
18
|
-
} from "./chunk-LTXUQJI4.js";
|
|
16
|
+
} from "./chunk-RW4PYFNE.js";
|
|
19
17
|
import {
|
|
20
18
|
applyInheritedSubagentPermissions
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RVOQBXTA.js";
|
|
22
20
|
import {
|
|
23
21
|
MissingSessionCwdError,
|
|
24
22
|
createAgentSessionFromServices,
|
|
@@ -27,11 +25,7 @@ import {
|
|
|
27
25
|
formatMissingSessionCwdPrompt,
|
|
28
26
|
formatNoModelsAvailableMessage,
|
|
29
27
|
getMissingSessionCwdIssue
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
resolveCliModel,
|
|
33
|
-
resolveModelScope
|
|
34
|
-
} from "./chunk-5SQDLSZJ.js";
|
|
28
|
+
} from "./chunk-CJS4KQFI.js";
|
|
35
29
|
import {
|
|
36
30
|
restoreStdout,
|
|
37
31
|
takeOverStdout
|
|
@@ -39,57 +33,68 @@ import {
|
|
|
39
33
|
import {
|
|
40
34
|
detectSupportedImageMimeTypeFromFile,
|
|
41
35
|
resolveReadPath
|
|
42
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-33SIKK3Y.js";
|
|
37
|
+
import {
|
|
38
|
+
processImage
|
|
39
|
+
} from "./chunk-XHIRAZ26.js";
|
|
40
|
+
import {
|
|
41
|
+
bindRuntimeBridges
|
|
42
|
+
} from "./chunk-RBZQU6TJ.js";
|
|
43
43
|
import {
|
|
44
44
|
SettingsManager,
|
|
45
45
|
applyHttpProxySettings,
|
|
46
46
|
configureHttpDispatcher
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-EOEAQIJV.js";
|
|
48
|
+
import {
|
|
49
|
+
ProjectTrustStore,
|
|
50
|
+
hasTrustRequiringProjectResources
|
|
51
|
+
} from "./chunk-24C5IAJ4.js";
|
|
52
|
+
import {
|
|
53
|
+
resolveCliModel,
|
|
54
|
+
resolveModelScope
|
|
55
|
+
} from "./chunk-MNRO3UCV.js";
|
|
56
|
+
import {
|
|
57
|
+
migrateLegacyGlobalInstructions
|
|
58
|
+
} from "./chunk-M3LZLQW2.js";
|
|
48
59
|
import {
|
|
49
60
|
SessionManager,
|
|
50
61
|
assertValidSessionId
|
|
51
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-VIVYOI7C.js";
|
|
52
63
|
import {
|
|
53
|
-
|
|
54
|
-
} from "./chunk-
|
|
64
|
+
registerCustomizeBridge
|
|
65
|
+
} from "./chunk-4EULYYR4.js";
|
|
66
|
+
import {
|
|
67
|
+
registerMemoryCapBridge
|
|
68
|
+
} from "./chunk-UJOCPOMX.js";
|
|
55
69
|
import {
|
|
56
70
|
registerModelTierBridge
|
|
57
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-2TKODGBZ.js";
|
|
58
72
|
import {
|
|
59
|
-
|
|
60
|
-
} from "./chunk-
|
|
73
|
+
SessionSelectorComponent
|
|
74
|
+
} from "./chunk-HT2XEJNP.js";
|
|
61
75
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
76
|
+
SessionOwnership
|
|
77
|
+
} from "./chunk-UAEOTO52.js";
|
|
78
|
+
import {
|
|
79
|
+
KeybindingsManager,
|
|
80
|
+
migrateKeybindingsConfig
|
|
81
|
+
} from "./chunk-CH6OL6P2.js";
|
|
64
82
|
import {
|
|
65
83
|
printTimings,
|
|
66
84
|
resetTimings,
|
|
67
85
|
time
|
|
68
86
|
} from "./chunk-PVCDKGR6.js";
|
|
69
|
-
import {
|
|
70
|
-
registerCustomizeBridge
|
|
71
|
-
} from "./chunk-VGYZ3APQ.js";
|
|
72
|
-
import {
|
|
73
|
-
registerMemoryCapBridge
|
|
74
|
-
} from "./chunk-AY6CAJSL.js";
|
|
75
87
|
import {
|
|
76
88
|
parseArgs,
|
|
77
89
|
printHelp
|
|
78
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-OGJN3OZV.js";
|
|
79
91
|
import {
|
|
80
92
|
markStartupMilestone
|
|
81
93
|
} from "./chunk-CCZJ3PYY.js";
|
|
82
|
-
import {
|
|
83
|
-
SessionSelectorComponent
|
|
84
|
-
} from "./chunk-HRS4HMDX.js";
|
|
85
|
-
import {
|
|
86
|
-
KeybindingsManager,
|
|
87
|
-
migrateKeybindingsConfig
|
|
88
|
-
} from "./chunk-CH6OL6P2.js";
|
|
89
94
|
import {
|
|
90
95
|
initTheme,
|
|
91
96
|
stopThemeWatcher
|
|
92
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-PLGA743X.js";
|
|
93
98
|
import {
|
|
94
99
|
APP_NAME,
|
|
95
100
|
CONFIG_DIR_NAME,
|
|
@@ -281,7 +286,14 @@ async function pruneDir(dir, cutoffMs, excludeFile, deleted) {
|
|
|
281
286
|
let filePath = join(dir, entry.name);
|
|
282
287
|
if (!(excludeFile && sameFile(filePath, excludeFile)))
|
|
283
288
|
try {
|
|
284
|
-
(await stat2(filePath)).mtimeMs < cutoffMs
|
|
289
|
+
if ((await stat2(filePath)).mtimeMs < cutoffMs) {
|
|
290
|
+
let ownership = new SessionOwnership(filePath);
|
|
291
|
+
try {
|
|
292
|
+
(await stat2(filePath)).mtimeMs < cutoffMs && (await unlink(filePath), deleted.push(filePath));
|
|
293
|
+
} finally {
|
|
294
|
+
ownership.release();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
285
297
|
} catch {
|
|
286
298
|
}
|
|
287
299
|
}
|
|
@@ -719,18 +731,18 @@ async function promptForMissingSessionCwd(issue, settingsManager, startupView) {
|
|
|
719
731
|
async function main(args, options) {
|
|
720
732
|
resetTimings(), (args.includes("--offline") || isTruthyEnvFlag(process.env.PI_OFFLINE)) && (process.env.PI_OFFLINE = "1");
|
|
721
733
|
let cwd = process.cwd(), agentDir = getAgentDir(), bootstrapSettingsManager = SettingsManager.create(cwd, agentDir, { projectTrusted: !1 });
|
|
722
|
-
if (applyHttpProxySettings(bootstrapSettingsManager.getGlobalSettings().httpProxy), configureHttpDispatcher(), ["setup", "features", "uninstall"].includes(args[0])) {
|
|
723
|
-
let { handleInstallCli } = await import("./install-cli-
|
|
734
|
+
if (applyHttpProxySettings(bootstrapSettingsManager.getGlobalSettings().httpProxy), configureHttpDispatcher(), ["setup", "features", "uninstall", "browser"].includes(args[0])) {
|
|
735
|
+
let { handleInstallCli } = await import("./install-cli-KHAXYBOO.js");
|
|
724
736
|
if (await handleInstallCli(args))
|
|
725
737
|
return;
|
|
726
738
|
}
|
|
727
739
|
if (args[0] === "update") {
|
|
728
|
-
let { handleUpdateCli } = await import("./update-cli-
|
|
740
|
+
let { handleUpdateCli } = await import("./update-cli-TVTPVUNM.js");
|
|
729
741
|
if (await handleUpdateCli(args))
|
|
730
742
|
return;
|
|
731
743
|
}
|
|
732
744
|
if (["install", "remove", "uninstall", "list", "config"].includes(args[0])) {
|
|
733
|
-
let { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli-
|
|
745
|
+
let { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli-J337RKTI.js");
|
|
734
746
|
if (await handlePackageCommand(args, { extensionFactories: options?.extensionFactories })) {
|
|
735
747
|
process.exit(process.exitCode ?? 0);
|
|
736
748
|
return;
|
|
@@ -739,7 +751,7 @@ async function main(args, options) {
|
|
|
739
751
|
return;
|
|
740
752
|
}
|
|
741
753
|
if (args[0] === "gateway") {
|
|
742
|
-
let { handleGatewayCommand } = await import("./command-
|
|
754
|
+
let { handleGatewayCommand } = await import("./command-PYBNGLPP.js");
|
|
743
755
|
if (await handleGatewayCommand(args))
|
|
744
756
|
return;
|
|
745
757
|
}
|
|
@@ -754,7 +766,7 @@ async function main(args, options) {
|
|
|
754
766
|
if (time("parseArgs"), parsed.version && (console.log(VERSION), process.exit(0)), parsed.export) {
|
|
755
767
|
let result;
|
|
756
768
|
try {
|
|
757
|
-
let { exportFromFile } = await import("./export-html-
|
|
769
|
+
let { exportFromFile } = await import("./export-html-ETFOKW3M.js"), outputPath = parsed.messages.length > 0 ? parsed.messages[0] : void 0;
|
|
758
770
|
result = await exportFromFile(parsed.export, outputPath);
|
|
759
771
|
} catch (error) {
|
|
760
772
|
let message = error instanceof Error ? error.message : "Failed to export session";
|
|
@@ -762,7 +774,7 @@ async function main(args, options) {
|
|
|
762
774
|
}
|
|
763
775
|
console.log(`Exported to: ${result}`), process.exit(0);
|
|
764
776
|
}
|
|
765
|
-
let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY), interactiveModeImport = appMode === "interactive" ? import("./interactive-mode-
|
|
777
|
+
let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY), interactiveModeImport = appMode === "interactive" ? import("./interactive-mode-IN77GQGX.js") : void 0, startupView = appMode === "interactive" ? options?.startupView : void 0;
|
|
766
778
|
options?.startupView && !startupView && options.startupView.stop(), applyInheritedSubagentPermissions(), appMode !== "interactive" && !isPlainRuntimeMetadataCommand(parsed) && takeOverStdout(), parsed.mode === "rpc" && parsed.fileArgs.length > 0 && (console.error(chalk4.red("Error: @file arguments are not supported in RPC mode")), process.exit(1)), validateForkFlags(parsed), validateSessionIdFlags(parsed);
|
|
767
779
|
let { migratedAuthProviders: migratedProviders, deprecationWarnings } = runMigrations(cwd);
|
|
768
780
|
time("runMigrations");
|
|
@@ -772,7 +784,7 @@ async function main(args, options) {
|
|
|
772
784
|
if (missingSessionCwdIssue)
|
|
773
785
|
if (appMode === "interactive") {
|
|
774
786
|
let selectedCwd = await promptForMissingSessionCwd(missingSessionCwdIssue, startupSettingsManager, startupView);
|
|
775
|
-
selectedCwd || process.exit(0), sessionManager = SessionManager.open(missingSessionCwdIssue.sessionFile, sessionDir, selectedCwd);
|
|
787
|
+
selectedCwd || process.exit(0), sessionManager.dispose(), sessionManager = SessionManager.open(missingSessionCwdIssue.sessionFile, sessionDir, selectedCwd);
|
|
776
788
|
} else
|
|
777
789
|
console.error(chalk4.red(new MissingSessionCwdError(missingSessionCwdIssue).message)), process.exit(1);
|
|
778
790
|
if (parsed.name !== void 0) {
|
|
@@ -919,12 +931,12 @@ ${EXTENSION_LOAD_FAILURE_HINT}` : "";
|
|
|
919
931
|
extensionHint && console.error(chalk4.yellow(EXTENSION_LOAD_FAILURE_HINT)), process.exit(1);
|
|
920
932
|
}
|
|
921
933
|
if (time("createAgentSession"), appMode !== "interactive" && !session.model && (console.error(chalk4.red(formatNoModelsAvailableMessage())), process.exit(1)), startupBenchmark && appMode !== "interactive" && (console.error(chalk4.red("Error: PI_STARTUP_BENCHMARK only supports interactive mode")), process.exit(1)), appMode === "rpc") {
|
|
922
|
-
let { runRpcMode } = await import("./rpc-mode-
|
|
934
|
+
let { runRpcMode } = await import("./rpc-mode-SH7VB4RH.js");
|
|
923
935
|
printTimings(), await runRpcMode(runtime);
|
|
924
936
|
} else if (appMode === "interactive") {
|
|
925
937
|
let [{ InteractiveMode }, { loadDeferredBuiltinExtensions }] = await Promise.all([
|
|
926
938
|
interactiveModeImport,
|
|
927
|
-
import("./builtin-extensions-
|
|
939
|
+
import("./builtin-extensions-4GNDR6U3.js")
|
|
928
940
|
]), interactiveMode = new InteractiveMode(runtime, {
|
|
929
941
|
migratedProviders,
|
|
930
942
|
modelFallbackMessage,
|