@ashx-j/lunr-dev 0.2.13-dev.8.1 → 0.2.19-dev.10.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 -1
- package/README.md +7 -1
- package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -0
- package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js +44 -19
- package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts +14 -0
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +37 -3
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts +1 -15
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +8 -21
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-computer-use.d.ts +3 -0
- package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-computer-use.js +157 -0
- package/dist/builtin-extensions/lunr-computer-use.js.map +1 -0
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +6 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts +4 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js +172 -171
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +50 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js +131 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts +7 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js +211 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts +0 -5
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +0 -202
- 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 +276 -109
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts +4 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js +10 -3
- package/dist/builtin-extensions/pi-mcp-adapter/init.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js +6 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts +6 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +33 -8
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js +2 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +68 -15
- 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 +6 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts +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 +5 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts +10 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js +38 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js.map +1 -0
- 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 +3 -16
- 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 +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +1 -1
- 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 +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +72 -31
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js +2 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.js +105 -54
- package/dist/builtin-extensions/pi-web-access/extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.js +82 -65
- package/dist/builtin-extensions/pi-web-access/gemini-search.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.js +2 -0
- package/dist/builtin-extensions/pi-web-access/github-extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.js +259 -168
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/lazy.d.ts +18 -0
- package/dist/builtin-extensions/pi-web-access/lazy.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/lazy.js +19 -0
- package/dist/builtin-extensions/pi-web-access/lazy.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts +6 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js +17 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js.map +1 -0
- package/dist/catalog/publication.json +12 -12
- package/dist/cli-runtime.d.ts +3 -0
- package/dist/cli-runtime.d.ts.map +1 -0
- package/dist/cli-runtime.js +73 -0
- package/dist/cli-runtime.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +14 -53
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +1 -1
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +56 -12
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +10 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/computer-use/adapter.d.ts +23 -0
- package/dist/core/computer-use/adapter.d.ts.map +1 -0
- package/dist/core/computer-use/adapter.js +116 -0
- package/dist/core/computer-use/adapter.js.map +1 -0
- package/dist/core/computer-use/lease.d.ts +18 -0
- package/dist/core/computer-use/lease.d.ts.map +1 -0
- package/dist/core/computer-use/lease.js +129 -0
- package/dist/core/computer-use/lease.js.map +1 -0
- package/dist/core/computer-use/macos-runtime.d.ts +14 -0
- package/dist/core/computer-use/macos-runtime.d.ts.map +1 -0
- package/dist/core/computer-use/macos-runtime.js +148 -0
- package/dist/core/computer-use/macos-runtime.js.map +1 -0
- package/dist/core/computer-use/policy.d.ts +19 -0
- package/dist/core/computer-use/policy.d.ts.map +1 -0
- package/dist/core/computer-use/policy.js +66 -0
- package/dist/core/computer-use/policy.js.map +1 -0
- package/dist/core/computer-use/release.generated.d.ts +31 -0
- package/dist/core/computer-use/release.generated.d.ts.map +1 -0
- package/dist/core/computer-use/release.generated.js +36 -0
- package/dist/core/computer-use/release.generated.js.map +1 -0
- package/dist/core/computer-use/runtime.d.ts +13 -0
- package/dist/core/computer-use/runtime.d.ts.map +1 -0
- package/dist/core/computer-use/runtime.js +158 -0
- package/dist/core/computer-use/runtime.js.map +1 -0
- package/dist/core/computer-use/schemas.d.ts +88 -0
- package/dist/core/computer-use/schemas.d.ts.map +1 -0
- package/dist/core/computer-use/schemas.js +80 -0
- package/dist/core/computer-use/schemas.js.map +1 -0
- package/dist/core/computer-use/windows-desktop.d.ts +3 -0
- package/dist/core/computer-use/windows-desktop.d.ts.map +1 -0
- package/dist/core/computer-use/windows-desktop.js +48 -0
- package/dist/core/computer-use/windows-desktop.js.map +1 -0
- package/dist/core/computer-use/workflow.d.ts +24 -0
- package/dist/core/computer-use/workflow.d.ts.map +1 -0
- package/dist/core/computer-use/workflow.js +330 -0
- package/dist/core/computer-use/workflow.js.map +1 -0
- package/dist/core/extensions/host-static.d.ts.map +1 -1
- package/dist/core/extensions/host-static.js +34 -12
- package/dist/core/extensions/host-static.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +1 -2
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +10 -64
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +2 -0
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/keybindings.d.ts +2 -2
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +2 -2
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-runtime.d.ts +0 -3
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +1 -10
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +1 -1
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/permissions.d.ts +1 -3
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +33 -25
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +9 -0
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/rollback.d.ts.map +1 -1
- package/dist/core/rollback.js +13 -90
- package/dist/core/rollback.js.map +1 -1
- package/dist/core/sdk.d.ts +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +0 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +21 -79
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-manager.d.ts +6 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +19 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +0 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/timings.d.ts +2 -1
- package/dist/core/timings.d.ts.map +1 -1
- package/dist/core/timings.js +17 -2
- package/dist/core/timings.js.map +1 -1
- package/dist/dev-cli.js +0 -0
- package/dist/gateway/agent-bridge.d.ts +6 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +23 -6
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/commands.d.ts +1 -1
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +1 -18
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +23 -7
- package/dist/gateway/cron.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +57 -48
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +4 -2
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +23 -32
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/processes-selector.d.ts +2 -3
- package/dist/modes/interactive/components/processes-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/processes-selector.js +5 -10
- package/dist/modes/interactive/components/processes-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +20 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +12 -21
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +138 -152
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +95 -84
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/interactive/thinking-level-slash.d.ts +4 -0
- package/dist/modes/interactive/thinking-level-slash.d.ts.map +1 -0
- package/dist/modes/interactive/thinking-level-slash.js +23 -0
- package/dist/modes/interactive/thinking-level-slash.js.map +1 -0
- package/dist/node-runtime/adapter-AZMY335J.js +279 -0
- package/dist/node-runtime/agent-session-services-RSGP5GDN.js +39 -0
- package/dist/node-runtime/benchmark-request-UC7PD3V3.js +57 -0
- package/dist/node-runtime/brave-UWDA3I22.js +143 -0
- package/dist/node-runtime/builtin-extensions-7STLFW3A.js +29 -0
- package/dist/node-runtime/chunk-2IDTZAG5.js +1415 -0
- package/dist/node-runtime/chunk-3GHXVUAK.js +21 -0
- package/dist/node-runtime/chunk-3RCWXWAY.js +466 -0
- package/dist/node-runtime/chunk-3WFAEVKS.js +115 -0
- package/dist/node-runtime/chunk-3X3KZKMI.js +49 -0
- package/dist/node-runtime/chunk-4HXHDDCF.js +16 -0
- package/dist/node-runtime/chunk-4SJWFTUP.js +24 -0
- package/dist/node-runtime/chunk-4ZWGEEAS.js +69 -0
- package/dist/node-runtime/chunk-53YJI7JU.js +137 -0
- package/dist/node-runtime/chunk-5NWQCSKR.js +19218 -0
- package/dist/node-runtime/chunk-5OLJGVCB.js +68 -0
- package/dist/node-runtime/chunk-5Q45AVQG.js +108 -0
- package/dist/node-runtime/chunk-5SQDLSZJ.js +949 -0
- package/dist/node-runtime/chunk-6SPPH4FY.js +1269 -0
- package/dist/node-runtime/chunk-6UB6NKA3.js +860 -0
- package/dist/node-runtime/chunk-7AFOFSDY.js +105 -0
- package/dist/node-runtime/chunk-7N3YHTYF.js +26 -0
- package/dist/node-runtime/chunk-ARC4KOTI.js +11178 -0
- package/dist/node-runtime/chunk-AUXVGBO4.js +19 -0
- package/dist/node-runtime/chunk-AY6CAJSL.js +30 -0
- package/dist/node-runtime/chunk-BHO7O6E5.js +296 -0
- package/dist/node-runtime/chunk-BI3DHYCN.js +8845 -0
- package/dist/node-runtime/chunk-BKAZ6BKX.js +2185 -0
- package/dist/node-runtime/chunk-BR7YDUKA.js +109 -0
- package/dist/node-runtime/chunk-BRJX2PRC.js +53 -0
- package/dist/node-runtime/chunk-C4O2RSQQ.js +37 -0
- package/dist/node-runtime/chunk-CCZJ3PYY.js +17 -0
- package/dist/node-runtime/chunk-CGBXPL3E.js +1171 -0
- package/dist/node-runtime/chunk-CH6OL6P2.js +295 -0
- package/dist/node-runtime/chunk-CJECDQKP.js +19 -0
- package/dist/node-runtime/chunk-DAPBPCBP.js +53 -0
- package/dist/node-runtime/chunk-DDGMHUOW.js +305 -0
- package/dist/node-runtime/chunk-DMMTJQMQ.js +43 -0
- package/dist/node-runtime/chunk-DVGWF6A2.js +1180 -0
- package/dist/node-runtime/chunk-EH2LJQPM.js +64 -0
- package/dist/node-runtime/chunk-EHMBW7FA.js +772 -0
- package/dist/node-runtime/chunk-FLYMHKCS.js +966 -0
- package/dist/node-runtime/chunk-FVDOXRUD.js +96 -0
- package/dist/node-runtime/chunk-GZQHMEWL.js +126 -0
- package/dist/node-runtime/chunk-H2EOZYMP.js +57 -0
- package/dist/node-runtime/chunk-HQCKFM2O.js +56 -0
- package/dist/node-runtime/chunk-HRS4HMDX.js +610 -0
- package/dist/node-runtime/chunk-HYHJIRDW.js +19 -0
- package/dist/node-runtime/chunk-I6R76AG7.js +22 -0
- package/dist/node-runtime/chunk-ISQDQIZN.js +296 -0
- package/dist/node-runtime/chunk-J7QGQD45.js +24921 -0
- package/dist/node-runtime/chunk-JHYKXIMM.js +378 -0
- package/dist/node-runtime/chunk-JT6YCS5B.js +5648 -0
- package/dist/node-runtime/chunk-JZHEUQRL.js +180 -0
- package/dist/node-runtime/chunk-K72NVGUB.js +2834 -0
- package/dist/node-runtime/chunk-KKSIVROT.js +88 -0
- package/dist/node-runtime/chunk-LCACDWHJ.js +1743 -0
- package/dist/node-runtime/chunk-LTXUQJI4.js +173 -0
- package/dist/node-runtime/chunk-LWJXTA6Z.js +6814 -0
- package/dist/node-runtime/chunk-M3LZLQW2.js +98 -0
- package/dist/node-runtime/chunk-MGSB2C3M.js +46 -0
- package/dist/node-runtime/chunk-MGWCVY6Y.js +47 -0
- package/dist/node-runtime/chunk-MJQDX3BA.js +72 -0
- package/dist/node-runtime/chunk-MUMMMTW4.js +8392 -0
- package/dist/node-runtime/chunk-MX3GJNXJ.js +986 -0
- package/dist/node-runtime/chunk-NUIFPZWX.js +209 -0
- package/dist/node-runtime/chunk-OBMWP3I5.js +68 -0
- package/dist/node-runtime/chunk-OR4L3IB2.js +42 -0
- package/dist/node-runtime/chunk-OTT6JMPU.js +807 -0
- package/dist/node-runtime/chunk-PCIGF2XK.js +250 -0
- package/dist/node-runtime/chunk-PL6JKXWI.js +3622 -0
- package/dist/node-runtime/chunk-PVCDKGR6.js +55 -0
- package/dist/node-runtime/chunk-Q4Q6D4IY.js +364 -0
- package/dist/node-runtime/chunk-Q5ZU2VRT.js +83 -0
- package/dist/node-runtime/chunk-QFWG2RVL.js +5477 -0
- package/dist/node-runtime/chunk-RQ2Q5IYR.js +72 -0
- package/dist/node-runtime/chunk-RQ5DNUNG.js +429 -0
- package/dist/node-runtime/chunk-RRIZE6QQ.js +17 -0
- package/dist/node-runtime/chunk-SN6G4OU6.js +4753 -0
- package/dist/node-runtime/chunk-SWSN6HAB.js +53 -0
- package/dist/node-runtime/chunk-T5GM5BFH.js +7558 -0
- package/dist/node-runtime/chunk-TAP7QTUT.js +1346 -0
- package/dist/node-runtime/chunk-U6C7VTR5.js +2033 -0
- package/dist/node-runtime/chunk-URD2SLIT.js +1019 -0
- package/dist/node-runtime/chunk-VRB2IYGG.js +53 -0
- package/dist/node-runtime/chunk-W3CVH5RX.js +62 -0
- package/dist/node-runtime/chunk-W7S2REEG.js +9478 -0
- package/dist/node-runtime/chunk-XBWPBZBN.js +125 -0
- package/dist/node-runtime/chunk-XTHQ7XR7.js +509 -0
- package/dist/node-runtime/chunk-ZCHMJ34K.js +130 -0
- package/dist/node-runtime/chunk-ZRDIMBEQ.js +651 -0
- package/dist/node-runtime/chunk-ZSEZY3II.js +247 -0
- package/dist/node-runtime/cli-runtime.js +81 -0
- package/dist/node-runtime/clipboard-OZ63BBC6.js +12 -0
- package/dist/node-runtime/clipboard-image-7QR6GXVA.js +13 -0
- package/dist/node-runtime/command-6UXQ6XZN.js +13 -0
- package/dist/node-runtime/commands-LGR5VT5X.js +293 -0
- package/dist/node-runtime/config-FMEOZSWE.js +77 -0
- package/dist/node-runtime/curator-server-XCM43VEF.js +3816 -0
- package/dist/node-runtime/customize-XEXL2DGQ.js +12 -0
- package/dist/node-runtime/direct-tool-executor-TDJS7TBD.js +191 -0
- package/dist/node-runtime/exa-LL64QZR2.js +329 -0
- package/dist/node-runtime/export-html-E4DT6ZJQ.js +150 -0
- package/dist/node-runtime/extension-input-RV5N6APL.js +14 -0
- package/dist/node-runtime/extension-selector-CPD5LWDD.js +14 -0
- package/dist/node-runtime/extract-IUCVZCWC.js +17 -0
- package/dist/node-runtime/file-sync-HCOP2QVF.js +117 -0
- package/dist/node-runtime/gateway-3OLC4GQN.js +2139 -0
- package/dist/node-runtime/gemini-api-QE7ANVDZ.js +29 -0
- package/dist/node-runtime/gemini-search-NCIDF7NE.js +330 -0
- package/dist/node-runtime/gemini-url-context-OKIN7AIP.js +103 -0
- package/dist/node-runtime/gemini-web-MM446SEH.js +14 -0
- package/dist/node-runtime/github-extract-F64RZOEA.js +619 -0
- package/dist/node-runtime/goal-CZQ7FFQJ.js +1831 -0
- package/dist/node-runtime/image-resize-6ZPBFMWW.js +11 -0
- package/dist/node-runtime/index.js +863 -0
- package/dist/node-runtime/init-EKE277AG.js +30 -0
- package/dist/node-runtime/install-cli-TH7IJJQQ.js +308 -0
- package/dist/node-runtime/interactive-mode-S5M26CQ7.js +59 -0
- package/dist/node-runtime/interactive-view-N6F4KUIT.js +247 -0
- package/dist/node-runtime/lsp-manager-3ASUSO4T.js +1104 -0
- package/dist/node-runtime/lunr-computer-use-4X3KUNF4.js +206 -0
- package/dist/node-runtime/lunr-cron-KKBOGAEF.js +274 -0
- package/dist/node-runtime/main.js +57 -0
- package/dist/node-runtime/mcp-auth-flow-YL6RWPYG.js +33 -0
- package/dist/node-runtime/mcp-panel-IIGMXQGP.js +501 -0
- package/dist/node-runtime/mcp-setup-panel-FEK7663I.js +355 -0
- package/dist/node-runtime/memory-cap-3S4XRLNP.js +20 -0
- package/dist/node-runtime/model-tiers-NJLHUEGK.js +20 -0
- package/dist/node-runtime/openai-search-B3MSNCQA.js +288 -0
- package/dist/node-runtime/package-manager-cli-C4EJOO5Q.js +751 -0
- package/dist/node-runtime/parallel-AI2MNSCU.js +265 -0
- package/dist/node-runtime/parser-manager-TQHWYDH7.js +152 -0
- package/dist/node-runtime/pdf-extract-IPE6H4HP.js +57 -0
- package/dist/node-runtime/perplexity-QVJW3I35.js +12 -0
- package/dist/node-runtime/pi-intercom-EEMBGQID.js +2215 -0
- package/dist/node-runtime/pi-mcp-adapter-DPTJGAAL.js +428 -0
- package/dist/node-runtime/pi-ollama-cloud-4VZRMULP.js +1440 -0
- package/dist/node-runtime/pi-prompt-template-model-4QT4LLXF.js +3946 -0
- package/dist/node-runtime/pi-subagents-VKCLYIBY.js +6050 -0
- package/dist/node-runtime/pi-web-access-BV6DSZOP.js +1867 -0
- package/dist/node-runtime/print-mode-VWIRFDAC.js +12 -0
- package/dist/node-runtime/proxy-modes-R64LU6WZ.js +688 -0
- package/dist/node-runtime/rpc-entry.js +65 -0
- package/dist/node-runtime/rpc-mode-SJNSOA4G.js +13 -0
- package/dist/node-runtime/runtime-3SB5ATHQ.js +21 -0
- package/dist/node-runtime/runtime-bridges-UJ5WJJLN.js +14 -0
- package/dist/node-runtime/session-manager-QEMZBMTM.js +33 -0
- package/dist/node-runtime/session-selector-URVJLOTK.js +14 -0
- package/dist/node-runtime/settings-manager-K6IPIQTI.js +23 -0
- package/dist/node-runtime/src-GPFAU3N6.js +2427 -0
- package/dist/node-runtime/subagent-executor-EFLTO32A.js +8501 -0
- package/dist/node-runtime/summary-review-YSMXKITO.js +228 -0
- package/dist/node-runtime/tavily-WEZFVFP7.js +154 -0
- package/dist/node-runtime/timings-UAD5BEAS.js +16 -0
- package/dist/node-runtime/tool-renderer-MV5O452K.js +204 -0
- package/dist/node-runtime/update-cli-I6OVDRPL.js +75 -0
- package/dist/node-runtime/v4-5MNC3H7G.js +424 -0
- package/dist/node-runtime/video-extract-ETA5RA7U.js +304 -0
- package/dist/node-runtime/workflow-SA34S4VX.js +325 -0
- package/dist/node-runtime/workspace-index-6DBXSTJ6.js +163 -0
- package/dist/node-runtime/youtube-extract-SRVGNN26.js +264 -0
- package/dist/rpc.d.ts +3 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +18 -0
- package/dist/rpc.js.map +1 -0
- package/dist/startup/benchmark-request.d.ts +3 -0
- package/dist/startup/benchmark-request.d.ts.map +1 -0
- package/dist/startup/benchmark-request.js +65 -0
- package/dist/startup/benchmark-request.js.map +1 -0
- package/dist/startup/{interactive-shell.d.ts → interactive-view.d.ts} +18 -18
- package/dist/startup/interactive-view.d.ts.map +1 -0
- package/dist/startup/{interactive-shell.js → interactive-view.js} +119 -52
- package/dist/startup/interactive-view.js.map +1 -0
- package/dist/startup/launch-routing.d.ts.map +1 -1
- package/dist/startup/launch-routing.js +9 -10
- package/dist/startup/launch-routing.js.map +1 -1
- package/dist/startup/startup-milestones.d.ts +1 -1
- package/dist/startup/startup-milestones.d.ts.map +1 -1
- package/dist/startup/startup-milestones.js +3 -2
- package/dist/startup/startup-milestones.js.map +1 -1
- package/dist/utils/await-with-abort.d.ts +2 -0
- package/dist/utils/await-with-abort.d.ts.map +1 -0
- package/dist/utils/await-with-abort.js +19 -0
- package/dist/utils/await-with-abort.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +10 -4
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/docs/compaction.md +5 -3
- package/docs/computer-use.md +277 -0
- package/docs/development.md +5 -33
- package/docs/features.md +2 -3
- package/docs/interactive-startup.md +105 -0
- package/docs/keybindings.md +2 -2
- package/docs/terminal-setup.md +1 -1
- package/docs/usage.md +1 -2
- 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/hidden-thinking-label.ts +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 +3827 -0
- package/install-lock/package.json +18 -0
- package/native/computer-use/LICENSE.md +21 -0
- package/npm-shrinkwrap.json +3808 -0
- package/package.json +30 -24
- package/dist/core/swarm.d.ts +0 -23
- package/dist/core/swarm.d.ts.map +0 -1
- package/dist/core/swarm.js +0 -45
- package/dist/core/swarm.js.map +0 -1
- package/dist/startup/interactive-shell.d.ts.map +0 -1
- package/dist/startup/interactive-shell.js.map +0 -1
|
@@ -0,0 +1,295 @@
|
|
|
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/core/keybindings.js
|
|
7
|
+
import { TUI_KEYBINDINGS, KeybindingsManager as TuiKeybindingsManager } from "@ashx-j/lunr-tui";
|
|
8
|
+
import { existsSync, readFileSync } from "fs";
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
var KEYBINDINGS = {
|
|
11
|
+
...TUI_KEYBINDINGS,
|
|
12
|
+
"app.interrupt": { defaultKeys: "escape", description: "Cancel or abort" },
|
|
13
|
+
"app.clear": { defaultKeys: "ctrl+c", description: "Clear editor" },
|
|
14
|
+
"app.exit": { defaultKeys: "ctrl+d", description: "Exit when editor is empty" },
|
|
15
|
+
"app.suspend": {
|
|
16
|
+
defaultKeys: process.platform === "win32" ? [] : "ctrl+z",
|
|
17
|
+
description: "Suspend to background"
|
|
18
|
+
},
|
|
19
|
+
"app.thinking.cycle": {
|
|
20
|
+
defaultKeys: "ctrl+t",
|
|
21
|
+
description: "Cycle thinking level"
|
|
22
|
+
},
|
|
23
|
+
"app.mode.cycle": {
|
|
24
|
+
defaultKeys: "shift+tab",
|
|
25
|
+
description: "Cycle permission mode"
|
|
26
|
+
},
|
|
27
|
+
"app.model.cycleForward": {
|
|
28
|
+
defaultKeys: "ctrl+p",
|
|
29
|
+
description: "Cycle to next model"
|
|
30
|
+
},
|
|
31
|
+
"app.model.cycleBackward": {
|
|
32
|
+
defaultKeys: "shift+ctrl+p",
|
|
33
|
+
description: "Cycle to previous model"
|
|
34
|
+
},
|
|
35
|
+
"app.model.select": { defaultKeys: "ctrl+l", description: "Open model selector" },
|
|
36
|
+
"app.tools.expand": { defaultKeys: [], description: "Toggle tool output (unbound; click a card instead)" },
|
|
37
|
+
"app.chat.pageUp": {
|
|
38
|
+
defaultKeys: ["shift+pageUp", "ctrl+up"],
|
|
39
|
+
description: "Scroll chat up"
|
|
40
|
+
},
|
|
41
|
+
"app.chat.pageDown": {
|
|
42
|
+
defaultKeys: ["shift+pageDown", "ctrl+down"],
|
|
43
|
+
description: "Scroll chat down"
|
|
44
|
+
},
|
|
45
|
+
"app.thinking.toggle": {
|
|
46
|
+
defaultKeys: [],
|
|
47
|
+
description: "Toggle thinking blocks"
|
|
48
|
+
},
|
|
49
|
+
"app.session.toggleNamedFilter": {
|
|
50
|
+
defaultKeys: "ctrl+n",
|
|
51
|
+
description: "Toggle named session filter"
|
|
52
|
+
},
|
|
53
|
+
"app.editor.external": {
|
|
54
|
+
defaultKeys: "ctrl+g",
|
|
55
|
+
description: "Open external editor"
|
|
56
|
+
},
|
|
57
|
+
"app.message.copy": {
|
|
58
|
+
defaultKeys: "ctrl+x",
|
|
59
|
+
description: "Copy message to clipboard"
|
|
60
|
+
},
|
|
61
|
+
"app.message.followUp": {
|
|
62
|
+
defaultKeys: "alt+enter",
|
|
63
|
+
description: "Queue follow-up message"
|
|
64
|
+
},
|
|
65
|
+
"app.message.dequeue": {
|
|
66
|
+
defaultKeys: "alt+up",
|
|
67
|
+
description: "Restore queued messages"
|
|
68
|
+
},
|
|
69
|
+
"app.clipboard.pasteImage": {
|
|
70
|
+
defaultKeys: process.platform === "win32" ? "alt+v" : "ctrl+v",
|
|
71
|
+
description: "Paste image from clipboard (text fallback)"
|
|
72
|
+
},
|
|
73
|
+
"app.session.new": { defaultKeys: [], description: "Start a new session" },
|
|
74
|
+
"app.session.tree": { defaultKeys: [], description: "Open session tree" },
|
|
75
|
+
"app.session.fork": { defaultKeys: [], description: "Fork current session" },
|
|
76
|
+
"app.session.resume": { defaultKeys: [], description: "Resume a session" },
|
|
77
|
+
"app.tree.foldOrUp": {
|
|
78
|
+
defaultKeys: process.platform === "darwin" ? ["alt+left", "ctrl+left"] : ["ctrl+left", "alt+left"],
|
|
79
|
+
description: "Fold tree branch or move up"
|
|
80
|
+
},
|
|
81
|
+
"app.tree.unfoldOrDown": {
|
|
82
|
+
defaultKeys: process.platform === "darwin" ? ["alt+right", "ctrl+right"] : ["ctrl+right", "alt+right"],
|
|
83
|
+
description: "Unfold tree branch or move down"
|
|
84
|
+
},
|
|
85
|
+
"app.tree.editLabel": {
|
|
86
|
+
defaultKeys: "shift+l",
|
|
87
|
+
description: "Edit tree label"
|
|
88
|
+
},
|
|
89
|
+
"app.tree.toggleLabelTimestamp": {
|
|
90
|
+
defaultKeys: "shift+t",
|
|
91
|
+
description: "Toggle tree label timestamps"
|
|
92
|
+
},
|
|
93
|
+
"app.session.togglePath": {
|
|
94
|
+
defaultKeys: "ctrl+p",
|
|
95
|
+
description: "Toggle session path display"
|
|
96
|
+
},
|
|
97
|
+
"app.session.toggleSort": {
|
|
98
|
+
defaultKeys: "ctrl+s",
|
|
99
|
+
description: "Toggle session sort mode"
|
|
100
|
+
},
|
|
101
|
+
"app.session.rename": {
|
|
102
|
+
defaultKeys: "ctrl+r",
|
|
103
|
+
description: "Rename session"
|
|
104
|
+
},
|
|
105
|
+
"app.session.delete": {
|
|
106
|
+
defaultKeys: "ctrl+d",
|
|
107
|
+
description: "Delete session"
|
|
108
|
+
},
|
|
109
|
+
"app.session.deleteNoninvasive": {
|
|
110
|
+
defaultKeys: "ctrl+backspace",
|
|
111
|
+
description: "Delete session when query is empty"
|
|
112
|
+
},
|
|
113
|
+
"app.models.save": {
|
|
114
|
+
defaultKeys: "ctrl+s",
|
|
115
|
+
description: "Save model selection"
|
|
116
|
+
},
|
|
117
|
+
"app.models.enableAll": {
|
|
118
|
+
defaultKeys: "ctrl+a",
|
|
119
|
+
description: "Enable all models"
|
|
120
|
+
},
|
|
121
|
+
"app.models.clearAll": {
|
|
122
|
+
defaultKeys: "ctrl+x",
|
|
123
|
+
description: "Clear all models"
|
|
124
|
+
},
|
|
125
|
+
"app.models.toggleProvider": {
|
|
126
|
+
defaultKeys: "ctrl+p",
|
|
127
|
+
description: "Toggle all models for provider"
|
|
128
|
+
},
|
|
129
|
+
"app.models.reorderUp": {
|
|
130
|
+
defaultKeys: "alt+up",
|
|
131
|
+
description: "Move model up in order"
|
|
132
|
+
},
|
|
133
|
+
"app.models.reorderDown": {
|
|
134
|
+
defaultKeys: "alt+down",
|
|
135
|
+
description: "Move model down in order"
|
|
136
|
+
},
|
|
137
|
+
"app.tree.filter.default": {
|
|
138
|
+
defaultKeys: "ctrl+d",
|
|
139
|
+
description: "Tree filter: default view"
|
|
140
|
+
},
|
|
141
|
+
"app.tree.filter.noTools": {
|
|
142
|
+
defaultKeys: "ctrl+t",
|
|
143
|
+
description: "Tree filter: hide tool results"
|
|
144
|
+
},
|
|
145
|
+
"app.tree.filter.userOnly": {
|
|
146
|
+
defaultKeys: "ctrl+u",
|
|
147
|
+
description: "Tree filter: user messages only"
|
|
148
|
+
},
|
|
149
|
+
"app.tree.filter.labeledOnly": {
|
|
150
|
+
defaultKeys: "ctrl+l",
|
|
151
|
+
description: "Tree filter: labeled entries only"
|
|
152
|
+
},
|
|
153
|
+
"app.tree.filter.all": {
|
|
154
|
+
defaultKeys: "ctrl+a",
|
|
155
|
+
description: "Tree filter: show all entries"
|
|
156
|
+
},
|
|
157
|
+
"app.tree.filter.cycleForward": {
|
|
158
|
+
defaultKeys: "ctrl+o",
|
|
159
|
+
description: "Tree filter: cycle forward"
|
|
160
|
+
},
|
|
161
|
+
"app.tree.filter.cycleBackward": {
|
|
162
|
+
defaultKeys: "shift+ctrl+o",
|
|
163
|
+
description: "Tree filter: cycle backward"
|
|
164
|
+
}
|
|
165
|
+
}, KEYBINDING_NAME_MIGRATIONS = {
|
|
166
|
+
cursorUp: "tui.editor.cursorUp",
|
|
167
|
+
cursorDown: "tui.editor.cursorDown",
|
|
168
|
+
cursorLeft: "tui.editor.cursorLeft",
|
|
169
|
+
cursorRight: "tui.editor.cursorRight",
|
|
170
|
+
cursorWordLeft: "tui.editor.cursorWordLeft",
|
|
171
|
+
cursorWordRight: "tui.editor.cursorWordRight",
|
|
172
|
+
cursorLineStart: "tui.editor.cursorLineStart",
|
|
173
|
+
cursorLineEnd: "tui.editor.cursorLineEnd",
|
|
174
|
+
jumpForward: "tui.editor.jumpForward",
|
|
175
|
+
jumpBackward: "tui.editor.jumpBackward",
|
|
176
|
+
pageUp: "tui.editor.pageUp",
|
|
177
|
+
pageDown: "tui.editor.pageDown",
|
|
178
|
+
deleteCharBackward: "tui.editor.deleteCharBackward",
|
|
179
|
+
deleteCharForward: "tui.editor.deleteCharForward",
|
|
180
|
+
deleteWordBackward: "tui.editor.deleteWordBackward",
|
|
181
|
+
deleteWordForward: "tui.editor.deleteWordForward",
|
|
182
|
+
deleteToLineStart: "tui.editor.deleteToLineStart",
|
|
183
|
+
deleteToLineEnd: "tui.editor.deleteToLineEnd",
|
|
184
|
+
yank: "tui.editor.yank",
|
|
185
|
+
yankPop: "tui.editor.yankPop",
|
|
186
|
+
undo: "tui.editor.undo",
|
|
187
|
+
newLine: "tui.input.newLine",
|
|
188
|
+
submit: "tui.input.submit",
|
|
189
|
+
tab: "tui.input.tab",
|
|
190
|
+
copy: "tui.input.copy",
|
|
191
|
+
selectUp: "tui.select.up",
|
|
192
|
+
selectDown: "tui.select.down",
|
|
193
|
+
selectPageUp: "tui.select.pageUp",
|
|
194
|
+
selectPageDown: "tui.select.pageDown",
|
|
195
|
+
selectConfirm: "tui.select.confirm",
|
|
196
|
+
selectCancel: "tui.select.cancel",
|
|
197
|
+
interrupt: "app.interrupt",
|
|
198
|
+
clear: "app.clear",
|
|
199
|
+
exit: "app.exit",
|
|
200
|
+
suspend: "app.suspend",
|
|
201
|
+
cycleThinkingLevel: "app.thinking.cycle",
|
|
202
|
+
cyclePermissionMode: "app.mode.cycle",
|
|
203
|
+
cycleModelForward: "app.model.cycleForward",
|
|
204
|
+
cycleModelBackward: "app.model.cycleBackward",
|
|
205
|
+
selectModel: "app.model.select",
|
|
206
|
+
expandTools: "app.tools.expand",
|
|
207
|
+
toggleThinking: "app.thinking.toggle",
|
|
208
|
+
toggleSessionNamedFilter: "app.session.toggleNamedFilter",
|
|
209
|
+
externalEditor: "app.editor.external",
|
|
210
|
+
followUp: "app.message.followUp",
|
|
211
|
+
dequeue: "app.message.dequeue",
|
|
212
|
+
pasteImage: "app.clipboard.pasteImage",
|
|
213
|
+
newSession: "app.session.new",
|
|
214
|
+
tree: "app.session.tree",
|
|
215
|
+
fork: "app.session.fork",
|
|
216
|
+
resume: "app.session.resume",
|
|
217
|
+
treeFoldOrUp: "app.tree.foldOrUp",
|
|
218
|
+
treeUnfoldOrDown: "app.tree.unfoldOrDown",
|
|
219
|
+
treeEditLabel: "app.tree.editLabel",
|
|
220
|
+
treeToggleLabelTimestamp: "app.tree.toggleLabelTimestamp",
|
|
221
|
+
toggleSessionPath: "app.session.togglePath",
|
|
222
|
+
toggleSessionSort: "app.session.toggleSort",
|
|
223
|
+
renameSession: "app.session.rename",
|
|
224
|
+
deleteSession: "app.session.delete",
|
|
225
|
+
deleteSessionNoninvasive: "app.session.deleteNoninvasive"
|
|
226
|
+
};
|
|
227
|
+
function isLegacyKeybindingName(key) {
|
|
228
|
+
return key in KEYBINDING_NAME_MIGRATIONS;
|
|
229
|
+
}
|
|
230
|
+
function toKeybindingsConfig(value) {
|
|
231
|
+
let config = {};
|
|
232
|
+
for (let [key, binding] of Object.entries(value)) {
|
|
233
|
+
if (typeof binding == "string") {
|
|
234
|
+
config[key] = binding;
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
Array.isArray(binding) && binding.every((entry) => typeof entry == "string") && (config[key] = binding);
|
|
238
|
+
}
|
|
239
|
+
return config;
|
|
240
|
+
}
|
|
241
|
+
function migrateKeybindingsConfig(rawConfig) {
|
|
242
|
+
let config = {}, migrated = !1;
|
|
243
|
+
for (let [key, value] of Object.entries(rawConfig)) {
|
|
244
|
+
let nextKey = isLegacyKeybindingName(key) ? KEYBINDING_NAME_MIGRATIONS[key] : key;
|
|
245
|
+
if (nextKey !== key && (migrated = !0), key !== nextKey && Object.hasOwn(rawConfig, nextKey)) {
|
|
246
|
+
migrated = !0;
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
config[nextKey] = value;
|
|
250
|
+
}
|
|
251
|
+
return { config: orderKeybindingsConfig(config), migrated };
|
|
252
|
+
}
|
|
253
|
+
function orderKeybindingsConfig(config) {
|
|
254
|
+
let ordered = {};
|
|
255
|
+
for (let keybinding of Object.keys(KEYBINDINGS))
|
|
256
|
+
Object.hasOwn(config, keybinding) && (ordered[keybinding] = config[keybinding]);
|
|
257
|
+
let extras = Object.keys(config).filter((key) => !Object.hasOwn(ordered, key)).sort();
|
|
258
|
+
for (let key of extras)
|
|
259
|
+
ordered[key] = config[key];
|
|
260
|
+
return ordered;
|
|
261
|
+
}
|
|
262
|
+
function loadRawConfig(path) {
|
|
263
|
+
if (existsSync(path))
|
|
264
|
+
try {
|
|
265
|
+
let parsed = JSON.parse(readFileSync(path, "utf-8"));
|
|
266
|
+
return typeof parsed != "object" || parsed === null ? void 0 : parsed;
|
|
267
|
+
} catch {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
var KeybindingsManager = class _KeybindingsManager extends TuiKeybindingsManager {
|
|
272
|
+
configPath;
|
|
273
|
+
constructor(userBindings = {}, configPath) {
|
|
274
|
+
super(KEYBINDINGS, userBindings), this.configPath = configPath;
|
|
275
|
+
}
|
|
276
|
+
static create(agentDir = getAgentDir()) {
|
|
277
|
+
let configPath = join(agentDir, "keybindings.json"), userBindings = _KeybindingsManager.loadFromFile(configPath);
|
|
278
|
+
return new _KeybindingsManager(userBindings, configPath);
|
|
279
|
+
}
|
|
280
|
+
reload() {
|
|
281
|
+
this.configPath && this.setUserBindings(_KeybindingsManager.loadFromFile(this.configPath));
|
|
282
|
+
}
|
|
283
|
+
getEffectiveConfig() {
|
|
284
|
+
return this.getResolvedBindings();
|
|
285
|
+
}
|
|
286
|
+
static loadFromFile(path) {
|
|
287
|
+
let rawConfig = loadRawConfig(path);
|
|
288
|
+
return rawConfig ? toKeybindingsConfig(migrateKeybindingsConfig(rawConfig).config) : {};
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export {
|
|
293
|
+
migrateKeybindingsConfig,
|
|
294
|
+
KeybindingsManager
|
|
295
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/cron/fire-guard.js
|
|
4
|
+
var fireDepth = 0;
|
|
5
|
+
function beginCronFire() {
|
|
6
|
+
fireDepth += 1;
|
|
7
|
+
}
|
|
8
|
+
function endCronFire() {
|
|
9
|
+
fireDepth > 0 && (fireDepth -= 1);
|
|
10
|
+
}
|
|
11
|
+
function isCronFire() {
|
|
12
|
+
return fireDepth > 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
beginCronFire,
|
|
17
|
+
endCronFire,
|
|
18
|
+
isCronFire
|
|
19
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/builtin-extensions/pi-web-access/activity.js
|
|
4
|
+
var ActivityMonitor = class {
|
|
5
|
+
entries = [];
|
|
6
|
+
maxEntries = 10;
|
|
7
|
+
listeners = /* @__PURE__ */ new Set();
|
|
8
|
+
rateLimitInfo = { used: 0, max: 10, oldestTimestamp: null, windowMs: 6e4 };
|
|
9
|
+
nextId = 1;
|
|
10
|
+
logStart(partial) {
|
|
11
|
+
let id = `act-${this.nextId++}`, entry = {
|
|
12
|
+
...partial,
|
|
13
|
+
id,
|
|
14
|
+
startTime: Date.now(),
|
|
15
|
+
status: null
|
|
16
|
+
};
|
|
17
|
+
return this.entries.push(entry), this.entries.length > this.maxEntries && this.entries.shift(), this.notify(), id;
|
|
18
|
+
}
|
|
19
|
+
logComplete(id, status) {
|
|
20
|
+
let entry = this.entries.find((e) => e.id === id);
|
|
21
|
+
entry && (entry.endTime = Date.now(), entry.status = status, this.notify());
|
|
22
|
+
}
|
|
23
|
+
logError(id, error) {
|
|
24
|
+
let entry = this.entries.find((e) => e.id === id);
|
|
25
|
+
entry && (entry.endTime = Date.now(), entry.error = error, this.notify());
|
|
26
|
+
}
|
|
27
|
+
getEntries() {
|
|
28
|
+
return this.entries;
|
|
29
|
+
}
|
|
30
|
+
getRateLimitInfo() {
|
|
31
|
+
return this.rateLimitInfo;
|
|
32
|
+
}
|
|
33
|
+
updateRateLimit(info) {
|
|
34
|
+
this.rateLimitInfo = info, this.notify();
|
|
35
|
+
}
|
|
36
|
+
onUpdate(callback) {
|
|
37
|
+
return this.listeners.add(callback), () => this.listeners.delete(callback);
|
|
38
|
+
}
|
|
39
|
+
clear() {
|
|
40
|
+
this.entries = [], this.rateLimitInfo = { used: 0, max: 10, oldestTimestamp: null, windowMs: 6e4 }, this.notify();
|
|
41
|
+
}
|
|
42
|
+
notify() {
|
|
43
|
+
for (let cb of this.listeners)
|
|
44
|
+
try {
|
|
45
|
+
cb();
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, activityMonitor = new ActivityMonitor();
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
activityMonitor
|
|
53
|
+
};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
APP_NAME,
|
|
4
|
+
CONFIG_DIR_NAME,
|
|
5
|
+
ENV_AGENT_DIR,
|
|
6
|
+
ENV_SESSION_DIR
|
|
7
|
+
} from "./chunk-PCIGF2XK.js";
|
|
8
|
+
|
|
9
|
+
// packages/coding-agent/dist/cli/args.js
|
|
10
|
+
import chalk from "chalk";
|
|
11
|
+
var VALID_THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
12
|
+
function isValidThinkingLevel(level) {
|
|
13
|
+
return VALID_THINKING_LEVELS.includes(level);
|
|
14
|
+
}
|
|
15
|
+
function parseArgs(args) {
|
|
16
|
+
let result = {
|
|
17
|
+
messages: [],
|
|
18
|
+
fileArgs: [],
|
|
19
|
+
unknownFlags: /* @__PURE__ */ new Map(),
|
|
20
|
+
diagnostics: []
|
|
21
|
+
};
|
|
22
|
+
for (let i = 0; i < args.length; i++) {
|
|
23
|
+
let arg = args[i];
|
|
24
|
+
if (arg === "--help" || arg === "-h")
|
|
25
|
+
result.help = !0;
|
|
26
|
+
else if (arg === "--version" || arg === "-v")
|
|
27
|
+
result.version = !0;
|
|
28
|
+
else if (arg === "--mode" && i + 1 < args.length) {
|
|
29
|
+
let mode = args[++i];
|
|
30
|
+
(mode === "text" || mode === "json" || mode === "rpc") && (result.mode = mode);
|
|
31
|
+
} else if (arg === "--continue" || arg === "-c")
|
|
32
|
+
result.continue = !0;
|
|
33
|
+
else if (arg === "--resume" || arg === "-r")
|
|
34
|
+
result.resume = !0;
|
|
35
|
+
else if (arg === "--provider" && i + 1 < args.length)
|
|
36
|
+
result.provider = args[++i];
|
|
37
|
+
else if (arg === "--model" && i + 1 < args.length)
|
|
38
|
+
result.model = args[++i];
|
|
39
|
+
else if (arg === "--api-key" && i + 1 < args.length)
|
|
40
|
+
result.apiKey = args[++i];
|
|
41
|
+
else if (arg === "--system-prompt" && i + 1 < args.length)
|
|
42
|
+
result.systemPrompt = args[++i];
|
|
43
|
+
else if (arg === "--append-system-prompt" && i + 1 < args.length)
|
|
44
|
+
result.appendSystemPrompt = result.appendSystemPrompt ?? [], result.appendSystemPrompt.push(args[++i]);
|
|
45
|
+
else if (arg === "--name" || arg === "-n")
|
|
46
|
+
i + 1 < args.length ? result.name = args[++i] : result.diagnostics.push({ type: "error", message: "--name requires a value" });
|
|
47
|
+
else if (arg === "--no-session")
|
|
48
|
+
result.noSession = !0;
|
|
49
|
+
else if (arg === "--session" && i + 1 < args.length)
|
|
50
|
+
result.session = args[++i];
|
|
51
|
+
else if (arg === "--session-id" && i + 1 < args.length)
|
|
52
|
+
result.sessionId = args[++i];
|
|
53
|
+
else if (arg === "--fork" && i + 1 < args.length)
|
|
54
|
+
result.fork = args[++i];
|
|
55
|
+
else if (arg === "--session-dir" && i + 1 < args.length)
|
|
56
|
+
result.sessionDir = args[++i];
|
|
57
|
+
else if (arg === "--models" && i + 1 < args.length)
|
|
58
|
+
result.models = args[++i].split(",").map((s) => s.trim());
|
|
59
|
+
else if (arg === "--no-tools" || arg === "-nt")
|
|
60
|
+
result.noTools = !0;
|
|
61
|
+
else if (arg === "--no-builtin-tools" || arg === "-nbt")
|
|
62
|
+
result.noBuiltinTools = !0;
|
|
63
|
+
else if ((arg === "--tools" || arg === "-t") && i + 1 < args.length)
|
|
64
|
+
result.tools = args[++i].split(",").map((s) => s.trim()).filter((name) => name.length > 0);
|
|
65
|
+
else if ((arg === "--exclude-tools" || arg === "-xt") && i + 1 < args.length)
|
|
66
|
+
result.excludeTools = args[++i].split(",").map((s) => s.trim()).filter((name) => name.length > 0);
|
|
67
|
+
else if (arg === "--thinking" && i + 1 < args.length) {
|
|
68
|
+
let level = args[++i];
|
|
69
|
+
isValidThinkingLevel(level) ? result.thinking = level : result.diagnostics.push({
|
|
70
|
+
type: "warning",
|
|
71
|
+
message: `Invalid thinking level "${level}". Valid values: ${VALID_THINKING_LEVELS.join(", ")}`
|
|
72
|
+
});
|
|
73
|
+
} else if (arg === "--print" || arg === "-p") {
|
|
74
|
+
result.print = !0;
|
|
75
|
+
let next = args[i + 1];
|
|
76
|
+
next !== void 0 && !next.startsWith("@") && (!next.startsWith("-") || next.startsWith("---")) && (result.messages.push(next), i++);
|
|
77
|
+
} else if (arg === "--export" && i + 1 < args.length)
|
|
78
|
+
result.export = args[++i];
|
|
79
|
+
else if ((arg === "--extension" || arg === "-e") && i + 1 < args.length)
|
|
80
|
+
result.extensions = result.extensions ?? [], result.extensions.push(args[++i]);
|
|
81
|
+
else if (arg === "--no-extensions" || arg === "-ne")
|
|
82
|
+
result.noExtensions = !0;
|
|
83
|
+
else if (arg === "--skill" && i + 1 < args.length)
|
|
84
|
+
result.skills = result.skills ?? [], result.skills.push(args[++i]);
|
|
85
|
+
else if (arg === "--prompt-template" && i + 1 < args.length)
|
|
86
|
+
result.promptTemplates = result.promptTemplates ?? [], result.promptTemplates.push(args[++i]);
|
|
87
|
+
else if (arg === "--theme" && i + 1 < args.length)
|
|
88
|
+
result.themes = result.themes ?? [], result.themes.push(args[++i]);
|
|
89
|
+
else if (arg === "--no-skills" || arg === "-ns")
|
|
90
|
+
result.noSkills = !0;
|
|
91
|
+
else if (arg === "--no-prompt-templates" || arg === "-np")
|
|
92
|
+
result.noPromptTemplates = !0;
|
|
93
|
+
else if (arg === "--no-themes")
|
|
94
|
+
result.noThemes = !0;
|
|
95
|
+
else if (arg === "--no-context-files" || arg === "-nc")
|
|
96
|
+
result.noContextFiles = !0;
|
|
97
|
+
else if (arg === "--list-models")
|
|
98
|
+
i + 1 < args.length && !args[i + 1].startsWith("-") && !args[i + 1].startsWith("@") ? result.listModels = args[++i] : result.listModels = !0;
|
|
99
|
+
else if (arg === "--verbose")
|
|
100
|
+
result.verbose = !0;
|
|
101
|
+
else if (arg === "--approve" || arg === "-a")
|
|
102
|
+
result.projectTrustOverride = !0;
|
|
103
|
+
else if (arg === "--no-approve" || arg === "-na")
|
|
104
|
+
result.projectTrustOverride = !1;
|
|
105
|
+
else if (arg === "--offline")
|
|
106
|
+
result.offline = !0;
|
|
107
|
+
else if (arg.startsWith("@"))
|
|
108
|
+
result.fileArgs.push(arg.slice(1));
|
|
109
|
+
else if (arg.startsWith("--")) {
|
|
110
|
+
let eqIndex = arg.indexOf("=");
|
|
111
|
+
if (eqIndex !== -1)
|
|
112
|
+
result.unknownFlags.set(arg.slice(2, eqIndex), arg.slice(eqIndex + 1));
|
|
113
|
+
else {
|
|
114
|
+
let flagName = arg.slice(2), next = args[i + 1];
|
|
115
|
+
next !== void 0 && !next.startsWith("-") && !next.startsWith("@") ? (result.unknownFlags.set(flagName, next), i++) : result.unknownFlags.set(flagName, !0);
|
|
116
|
+
}
|
|
117
|
+
} else arg.startsWith("-") && !arg.startsWith("--") ? result.diagnostics.push({ type: "error", message: `Unknown option: ${arg}` }) : arg.startsWith("-") || result.messages.push(arg);
|
|
118
|
+
}
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
function printHelp(extensionFlags) {
|
|
122
|
+
let extensionFlagsText = extensionFlags && extensionFlags.length > 0 ? `
|
|
123
|
+
${chalk.bold("Extension CLI Flags:")}
|
|
124
|
+
${extensionFlags.map((flag) => {
|
|
125
|
+
let value = flag.type === "string" ? " <value>" : "", description = flag.description ?? `Registered by ${flag.extensionPath}`;
|
|
126
|
+
return ` --${flag.name}${value}`.padEnd(30) + description;
|
|
127
|
+
}).join(`
|
|
128
|
+
`)}
|
|
129
|
+
` : "";
|
|
130
|
+
console.log(`${chalk.bold(APP_NAME)} - AI coding assistant with read, bash, edit, write tools
|
|
131
|
+
|
|
132
|
+
${chalk.bold("Usage:")}
|
|
133
|
+
${APP_NAME} [options] [@files...] [messages...]
|
|
134
|
+
|
|
135
|
+
${chalk.bold("Commands:")}
|
|
136
|
+
${APP_NAME} setup First-run / reconfigure optional features
|
|
137
|
+
${APP_NAME} features [list|enable|disable]
|
|
138
|
+
${APP_NAME} uninstall Remove this ${APP_NAME} install (keeps agent dir unless --purge)
|
|
139
|
+
${APP_NAME} uninstall <source> [-l] Remove an extension package (alias for remove)
|
|
140
|
+
${APP_NAME} install <source> [-l] Install extension source and add to settings
|
|
141
|
+
${APP_NAME} remove <source> [-l] Remove extension source from settings
|
|
142
|
+
${APP_NAME} list List installed extensions from settings
|
|
143
|
+
${APP_NAME} config [-l] Open TUI to enable/disable package resources (Tab switches scope)
|
|
144
|
+
${APP_NAME} gateway [\u2026] Chat gateway daemon (requires chat-platforms feature)
|
|
145
|
+
${APP_NAME} <command> --help Show help for install/remove/uninstall/list/config
|
|
146
|
+
|
|
147
|
+
${chalk.bold("Options:")}
|
|
148
|
+
--provider <name> Provider name (default: google)
|
|
149
|
+
--model <pattern> Model pattern or ID (supports "provider/id" and optional ":<thinking>")
|
|
150
|
+
--api-key <key> API key (defaults to env vars)
|
|
151
|
+
--system-prompt <text> System prompt (default: coding assistant prompt)
|
|
152
|
+
--append-system-prompt <text> Append text or file contents to the system prompt (can be used multiple times)
|
|
153
|
+
--mode <mode> Output mode: text (default), json, or rpc
|
|
154
|
+
--print, -p Non-interactive mode: process prompt and exit
|
|
155
|
+
--continue, -c Continue previous session
|
|
156
|
+
--resume, -r Select a session to resume
|
|
157
|
+
--session <path|id> Use specific session file or partial UUID
|
|
158
|
+
--session-id <id> Use exact project session ID, creating it if missing
|
|
159
|
+
--fork <path|id> Fork specific session file or partial UUID into a new session
|
|
160
|
+
--session-dir <dir> Directory for session storage and lookup
|
|
161
|
+
--no-session Don't save session (ephemeral)
|
|
162
|
+
--name, -n <name> Set session display name
|
|
163
|
+
--models <patterns> Comma-separated model patterns for Ctrl+P cycling
|
|
164
|
+
Supports globs (anthropic/*, *sonnet*) and fuzzy matching
|
|
165
|
+
--no-tools, -nt Disable all tools by default (built-in and extension)
|
|
166
|
+
--no-builtin-tools, -nbt Disable built-in tools by default but keep extension/custom tools enabled
|
|
167
|
+
--tools, -t <tools> Comma-separated allowlist of tool names to enable
|
|
168
|
+
Applies to built-in, extension, and custom tools
|
|
169
|
+
--exclude-tools, -xt <tools> Comma-separated denylist of tool names to disable
|
|
170
|
+
Applies to built-in, extension, and custom tools
|
|
171
|
+
--thinking <level> Set thinking level: off, minimal, low, medium, high, xhigh, max
|
|
172
|
+
--extension, -e <path> Load an extension file (can be used multiple times)
|
|
173
|
+
--no-extensions, -ne Disable extension discovery (explicit -e paths still work)
|
|
174
|
+
--skill <path> Load a skill file or directory (can be used multiple times)
|
|
175
|
+
--no-skills, -ns Disable skills discovery and loading
|
|
176
|
+
--prompt-template <path> Load a prompt template file or directory (can be used multiple times)
|
|
177
|
+
--no-prompt-templates, -np Disable prompt template discovery and loading
|
|
178
|
+
--theme <path> Load a theme file or directory (can be used multiple times)
|
|
179
|
+
--no-themes Disable theme discovery and loading
|
|
180
|
+
--no-context-files, -nc Disable AGENTS.md and CLAUDE.md discovery and loading
|
|
181
|
+
--export <file> Export session file to HTML and exit
|
|
182
|
+
--list-models [search] List available models (with optional fuzzy search)
|
|
183
|
+
--verbose Force verbose startup (overrides quietStartup setting)
|
|
184
|
+
--approve, -a Trust project-local files for this run
|
|
185
|
+
--no-approve, -na Ignore project-local files for this run
|
|
186
|
+
--offline Disable startup network operations (same as PI_OFFLINE=1)
|
|
187
|
+
--help, -h Show this help
|
|
188
|
+
--version, -v Show version number
|
|
189
|
+
|
|
190
|
+
Extensions can register additional flags (e.g., --plan from plan-mode extension).${extensionFlagsText}
|
|
191
|
+
|
|
192
|
+
${chalk.bold("Examples:")}
|
|
193
|
+
# Interactive mode
|
|
194
|
+
${APP_NAME}
|
|
195
|
+
|
|
196
|
+
# Interactive mode with initial prompt
|
|
197
|
+
${APP_NAME} "List all .ts files in src/"
|
|
198
|
+
|
|
199
|
+
# Include files in initial message
|
|
200
|
+
${APP_NAME} @prompt.md @image.png "What color is the sky?"
|
|
201
|
+
|
|
202
|
+
# Non-interactive mode (process and exit)
|
|
203
|
+
${APP_NAME} -p "List all .ts files in src/"
|
|
204
|
+
|
|
205
|
+
# Multiple messages (interactive)
|
|
206
|
+
${APP_NAME} "Read package.json" "What dependencies do we have?"
|
|
207
|
+
|
|
208
|
+
# Continue previous session
|
|
209
|
+
${APP_NAME} --continue "What did we discuss?"
|
|
210
|
+
|
|
211
|
+
# Start a named session
|
|
212
|
+
${APP_NAME} --name "Refactor auth module"
|
|
213
|
+
|
|
214
|
+
# Use different model
|
|
215
|
+
${APP_NAME} --provider openai --model gpt-4o-mini "Help me refactor this code"
|
|
216
|
+
|
|
217
|
+
# Use model with provider prefix (no --provider needed)
|
|
218
|
+
${APP_NAME} --model openai/gpt-4o "Help me refactor this code"
|
|
219
|
+
|
|
220
|
+
# Use model with thinking level shorthand
|
|
221
|
+
${APP_NAME} --model sonnet:high "Solve this complex problem"
|
|
222
|
+
|
|
223
|
+
# Limit model cycling to specific models
|
|
224
|
+
${APP_NAME} --models claude-sonnet,claude-haiku,gpt-4o
|
|
225
|
+
|
|
226
|
+
# Limit to a specific provider with glob pattern
|
|
227
|
+
${APP_NAME} --models "github-copilot/*"
|
|
228
|
+
|
|
229
|
+
# Cycle models with fixed thinking levels
|
|
230
|
+
${APP_NAME} --models sonnet:high,haiku:low
|
|
231
|
+
|
|
232
|
+
# Start with a specific thinking level
|
|
233
|
+
${APP_NAME} --thinking high "Solve this complex problem"
|
|
234
|
+
|
|
235
|
+
# Read-only mode (no file modifications possible)
|
|
236
|
+
${APP_NAME} --tools read,grep,find,ls -p "Review the code in src/"
|
|
237
|
+
|
|
238
|
+
# Disable one tool while keeping the rest available
|
|
239
|
+
${APP_NAME} --exclude-tools ask_question
|
|
240
|
+
|
|
241
|
+
# Export a session file to HTML
|
|
242
|
+
${APP_NAME} --export ~/${CONFIG_DIR_NAME}/agent/sessions/--path--/session.jsonl
|
|
243
|
+
${APP_NAME} --export session.jsonl output.html
|
|
244
|
+
|
|
245
|
+
${chalk.bold("Environment Variables:")}
|
|
246
|
+
ANTHROPIC_API_KEY - Anthropic Claude API key
|
|
247
|
+
ANTHROPIC_OAUTH_TOKEN - Anthropic OAuth token (alternative to API key)
|
|
248
|
+
ANT_LING_API_KEY - Ant Ling API key
|
|
249
|
+
OPENAI_API_KEY - OpenAI GPT API key
|
|
250
|
+
AZURE_OPENAI_API_KEY - Azure OpenAI API key
|
|
251
|
+
AZURE_OPENAI_BASE_URL - Azure OpenAI/Cognitive Services base URL (e.g. https://{resource}.openai.azure.com)
|
|
252
|
+
AZURE_OPENAI_RESOURCE_NAME - Azure OpenAI resource name (alternative to base URL)
|
|
253
|
+
AZURE_OPENAI_API_VERSION - Azure OpenAI API version (default: v1)
|
|
254
|
+
AZURE_OPENAI_DEPLOYMENT_NAME_MAP - Azure OpenAI model=deployment map (comma-separated)
|
|
255
|
+
DEEPSEEK_API_KEY - DeepSeek API key
|
|
256
|
+
NVIDIA_API_KEY - NVIDIA NIM API key
|
|
257
|
+
GEMINI_API_KEY - Google Gemini API key
|
|
258
|
+
GROQ_API_KEY - Groq API key
|
|
259
|
+
CEREBRAS_API_KEY - Cerebras API key
|
|
260
|
+
XAI_API_KEY - xAI Grok API key
|
|
261
|
+
FIREWORKS_API_KEY - Fireworks API key
|
|
262
|
+
TOGETHER_API_KEY - Together AI API key
|
|
263
|
+
OPENROUTER_API_KEY - OpenRouter API key
|
|
264
|
+
AI_GATEWAY_API_KEY - Vercel AI Gateway API key
|
|
265
|
+
ZAI_API_KEY - ZAI Coding Plan API key (Global)
|
|
266
|
+
ZAI_CODING_CN_API_KEY - ZAI Coding Plan API key (China)
|
|
267
|
+
MISTRAL_API_KEY - Mistral API key
|
|
268
|
+
MINIMAX_API_KEY - MiniMax API key
|
|
269
|
+
MOONSHOT_API_KEY - Moonshot AI API key
|
|
270
|
+
OPENCODE_API_KEY - OpenCode Zen/OpenCode Go API key
|
|
271
|
+
KIMI_API_KEY - Kimi For Coding API key
|
|
272
|
+
CLOUDFLARE_API_KEY - Cloudflare API token (Workers AI and AI Gateway)
|
|
273
|
+
CLOUDFLARE_ACCOUNT_ID - Cloudflare account id (required for both)
|
|
274
|
+
CLOUDFLARE_GATEWAY_ID - Cloudflare AI Gateway slug (required for AI Gateway)
|
|
275
|
+
XIAOMI_API_KEY - Xiaomi MiMo API key (api.xiaomimimo.com billing)
|
|
276
|
+
XIAOMI_TOKEN_PLAN_CN_API_KEY - Xiaomi MiMo Token Plan API key (China region)
|
|
277
|
+
XIAOMI_TOKEN_PLAN_AMS_API_KEY - Xiaomi MiMo Token Plan API key (Amsterdam region)
|
|
278
|
+
XIAOMI_TOKEN_PLAN_SGP_API_KEY - Xiaomi MiMo Token Plan API key (Singapore region)
|
|
279
|
+
AWS_PROFILE - AWS profile for Amazon Bedrock
|
|
280
|
+
AWS_ACCESS_KEY_ID - AWS access key for Amazon Bedrock
|
|
281
|
+
AWS_SECRET_ACCESS_KEY - AWS secret key for Amazon Bedrock
|
|
282
|
+
AWS_BEARER_TOKEN_BEDROCK - Bedrock API key (bearer token)
|
|
283
|
+
AWS_REGION - AWS region for Amazon Bedrock (e.g., us-east-1)
|
|
284
|
+
${ENV_AGENT_DIR.padEnd(32)} - Config directory (default: ~/${CONFIG_DIR_NAME}/agent)
|
|
285
|
+
${ENV_SESSION_DIR.padEnd(32)} - Session storage directory (overridden by --session-dir)
|
|
286
|
+
PI_PACKAGE_DIR - Override package directory (for Nix/Guix store paths)
|
|
287
|
+
PI_OFFLINE - Disable startup network operations when set to 1/true/yes
|
|
288
|
+
PI_SHARE_VIEWER_URL - Base URL for /share command (default: https://pi.dev/session/)
|
|
289
|
+
|
|
290
|
+
${chalk.bold("Built-in Tool Names:")}
|
|
291
|
+
read - Read file contents
|
|
292
|
+
bash - Execute bash commands
|
|
293
|
+
edit - Edit files with find/replace
|
|
294
|
+
write - Write files (creates/overwrites)
|
|
295
|
+
grep - Search file contents (read-only, off by default)
|
|
296
|
+
find - Find files by glob pattern (read-only, off by default)
|
|
297
|
+
ls - List directory contents (read-only, off by default)
|
|
298
|
+
`);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export {
|
|
302
|
+
isValidThinkingLevel,
|
|
303
|
+
parseArgs,
|
|
304
|
+
printHelp
|
|
305
|
+
};
|