@ashx-j/lunr-dev 0.2.13-dev.8.1 → 0.2.16-dev.9.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 +29 -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 +7 -21
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +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 +163 -169
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +46 -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 +109 -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 +251 -94
- 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-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 +38 -14
- package/dist/builtin-extensions/pi-subagents/src/extension/index.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 +1 -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 +2 -1
- 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 +167 -77
- 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.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/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/permissions.d.ts +0 -2
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +10 -18
- package/dist/core/permissions.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/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/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/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/interactive-mode.d.ts +12 -21
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +120 -144
- 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/node-runtime/agent-session-services-IFJMSX7Z.js +36 -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-LYZ3BFWQ.js +28 -0
- package/dist/node-runtime/chunk-2QKLKMKC.js +173 -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-4TLO4PO2.js +3427 -0
- package/dist/node-runtime/chunk-4ZWGEEAS.js +69 -0
- package/dist/node-runtime/chunk-53YJI7JU.js +137 -0
- package/dist/node-runtime/chunk-5P7PZMRU.js +610 -0
- package/dist/node-runtime/chunk-7N3YHTYF.js +26 -0
- package/dist/node-runtime/chunk-7NBZ5P7I.js +24 -0
- package/dist/node-runtime/chunk-A2KQXUJD.js +105 -0
- package/dist/node-runtime/chunk-AD6VXAO7.js +342 -0
- package/dist/node-runtime/chunk-AHSTJBIB.js +64 -0
- package/dist/node-runtime/chunk-AJX357CL.js +20211 -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-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-CDFZEWPU.js +8388 -0
- package/dist/node-runtime/chunk-CGBXPL3E.js +1171 -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-ECD5L7YI.js +1369 -0
- package/dist/node-runtime/chunk-EDBJNRSM.js +46 -0
- package/dist/node-runtime/chunk-F4VQFJI2.js +1269 -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-HYHJIRDW.js +19 -0
- package/dist/node-runtime/chunk-I6R76AG7.js +22 -0
- package/dist/node-runtime/chunk-IPA627GP.js +296 -0
- package/dist/node-runtime/chunk-JHYKXIMM.js +378 -0
- package/dist/node-runtime/chunk-KKSIVROT.js +88 -0
- package/dist/node-runtime/chunk-LZAW4ZX3.js +633 -0
- package/dist/node-runtime/chunk-M3LZLQW2.js +98 -0
- package/dist/node-runtime/chunk-MGWCVY6Y.js +47 -0
- package/dist/node-runtime/chunk-MJQDX3BA.js +72 -0
- package/dist/node-runtime/chunk-MKKH27PH.js +8956 -0
- package/dist/node-runtime/chunk-MX3GJNXJ.js +986 -0
- package/dist/node-runtime/chunk-N77MY65L.js +966 -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-PBC2Y6GS.js +903 -0
- package/dist/node-runtime/chunk-PCGNAY2O.js +1324 -0
- package/dist/node-runtime/chunk-PCIGF2XK.js +250 -0
- package/dist/node-runtime/chunk-PGAJ5MO5.js +7558 -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-QH42CDX3.js +9451 -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-TQNSPERU.js +949 -0
- package/dist/node-runtime/chunk-VRB2IYGG.js +53 -0
- package/dist/node-runtime/chunk-VSELYKWU.js +772 -0
- package/dist/node-runtime/chunk-W3CVH5RX.js +62 -0
- package/dist/node-runtime/chunk-WJVFOIB5.js +24921 -0
- package/dist/node-runtime/chunk-WOVTOV5P.js +5653 -0
- package/dist/node-runtime/chunk-XBWPBZBN.js +125 -0
- package/dist/node-runtime/chunk-XTHQ7XR7.js +509 -0
- package/dist/node-runtime/chunk-YF63P5ZT.js +864 -0
- package/dist/node-runtime/chunk-YSKSB3BJ.js +295 -0
- package/dist/node-runtime/chunk-ZCHMJ34K.js +130 -0
- package/dist/node-runtime/chunk-ZKMFUD3Q.js +2834 -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-L3LAHDIH.js +13 -0
- package/dist/node-runtime/commands-RL5YBW5I.js +291 -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-JVDXTO7A.js +188 -0
- package/dist/node-runtime/exa-LL64QZR2.js +329 -0
- package/dist/node-runtime/export-html-KR26FOUZ.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-XLQSJN4V.js +17 -0
- package/dist/node-runtime/file-sync-HCOP2QVF.js +117 -0
- package/dist/node-runtime/gateway-X2TI5X7F.js +2484 -0
- package/dist/node-runtime/gemini-api-QE7ANVDZ.js +29 -0
- package/dist/node-runtime/gemini-search-U7SUMPQA.js +330 -0
- package/dist/node-runtime/gemini-url-context-PXWCBQHK.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/index.js +859 -0
- package/dist/node-runtime/init-NJV2T55N.js +28 -0
- package/dist/node-runtime/install-cli-TH7IJJQQ.js +308 -0
- package/dist/node-runtime/interactive-mode-KOM35YF2.js +56 -0
- package/dist/node-runtime/interactive-view-U6OILKF3.js +249 -0
- package/dist/node-runtime/lsp-manager-3ASUSO4T.js +1104 -0
- package/dist/node-runtime/lunr-cron-YJ5UHYRD.js +268 -0
- package/dist/node-runtime/main.js +54 -0
- package/dist/node-runtime/mcp-auth-flow-QIXHW6QN.js +32 -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-TZZHJCVI.js +749 -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-QFB37AVN.js +422 -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-7XJ4H53P.js +6023 -0
- package/dist/node-runtime/pi-web-access-DPGAVKOA.js +1864 -0
- package/dist/node-runtime/print-mode-VWIRFDAC.js +12 -0
- package/dist/node-runtime/proxy-modes-HEEFK4KC.js +685 -0
- package/dist/node-runtime/rpc-entry.js +62 -0
- package/dist/node-runtime/rpc-mode-SJNSOA4G.js +13 -0
- package/dist/node-runtime/runtime-bridges-PPHNBFWL.js +14 -0
- package/dist/node-runtime/session-manager-MQNBYACL.js +35 -0
- package/dist/node-runtime/session-selector-5AZLJS6U.js +14 -0
- package/dist/node-runtime/settings-manager-5LF2VQWC.js +21 -0
- package/dist/node-runtime/src-Y7JSCK64.js +2407 -0
- package/dist/node-runtime/subagent-executor-5RNDEPIJ.js +8483 -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-A253SZ7P.js +73 -0
- package/dist/node-runtime/v4-5MNC3H7G.js +424 -0
- package/dist/node-runtime/video-extract-OYT5WKS5.js +304 -0
- package/dist/node-runtime/workspace-index-6DBXSTJ6.js +163 -0
- package/dist/node-runtime/youtube-extract-TQYKGFGS.js +264 -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-view.d.ts +55 -0
- package/dist/startup/interactive-view.d.ts.map +1 -0
- package/dist/startup/interactive-view.js +332 -0
- 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/development.md +5 -1
- package/docs/features.md +0 -1
- package/docs/interactive-startup.md +98 -0
- package/docs/usage.md +0 -1
- 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/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/package.json +20 -20
- 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/main.js
CHANGED
|
@@ -11,12 +11,10 @@ import { lightBuiltinExtensions, loadAllBuiltinExtensions } from "./builtin-exte
|
|
|
11
11
|
import { parseArgs, printHelp } from "./cli/args.js";
|
|
12
12
|
import { processFileArguments } from "./cli/file-processor.js";
|
|
13
13
|
import { buildInitialMessage } from "./cli/initial-message.js";
|
|
14
|
-
import { handleInstallCli } from "./cli/install-cli.js";
|
|
15
14
|
import { listModels } from "./cli/list-models.js";
|
|
16
15
|
import { createProjectTrustContext } from "./cli/project-trust.js";
|
|
17
16
|
import { selectSession } from "./cli/session-picker.js";
|
|
18
17
|
import { shouldRunFirstTimeSetup, showFirstTimeSetup, showStartupSelector } from "./cli/startup-ui.js";
|
|
19
|
-
import { handleUpdateCli } from "./cli/update-cli.js";
|
|
20
18
|
import { APP_NAME, appendDebugLog, ENV_SESSION_DIR, expandTildePath, getAgentDir, getSessionsDir, VERSION, } from "./config.js";
|
|
21
19
|
import { createAgentSessionRuntime } from "./core/agent-session-runtime.js";
|
|
22
20
|
import { createAgentSessionFromServices, createAgentSessionServices, } from "./core/agent-session-services.js";
|
|
@@ -38,7 +36,6 @@ import { printTimings, resetTimings, time } from "./core/timings.js";
|
|
|
38
36
|
import { hasTrustRequiringProjectResources, ProjectTrustStore } from "./core/trust-manager.js";
|
|
39
37
|
import { runMigrations, showDeprecationWarnings } from "./migrations.js";
|
|
40
38
|
import { initTheme, stopThemeWatcher } from "./modes/interactive/theme/theme.js";
|
|
41
|
-
import { handleConfigCommand, handlePackageCommand } from "./package-manager-cli.js";
|
|
42
39
|
import { markStartupMilestone } from "./startup/startup-milestones.js";
|
|
43
40
|
import { isLocalPath, normalizePath, resolvePath } from "./utils/paths.js";
|
|
44
41
|
const EXTENSION_LOAD_FAILURE_HINT = `Hint: Start without extensions using "${APP_NAME} -ne".`;
|
|
@@ -177,9 +174,9 @@ async function resolveSessionPath(sessionArg, cwd, sessionDir) {
|
|
|
177
174
|
return { type: "not_found", arg: sessionArg };
|
|
178
175
|
}
|
|
179
176
|
/** Prompt user for yes/no confirmation */
|
|
180
|
-
async function promptConfirm(message,
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
177
|
+
async function promptConfirm(message, startupView) {
|
|
178
|
+
if (startupView) {
|
|
179
|
+
return startupView.confirm("Confirm", message);
|
|
183
180
|
}
|
|
184
181
|
return new Promise((resolve) => {
|
|
185
182
|
const rl = createInterface({
|
|
@@ -247,7 +244,7 @@ function forkSessionOrExit(sourcePath, cwd, sessionDir, sessionId) {
|
|
|
247
244
|
process.exit(1);
|
|
248
245
|
}
|
|
249
246
|
}
|
|
250
|
-
async function createSessionManager(parsed, cwd, sessionDir, settingsManager,
|
|
247
|
+
async function createSessionManager(parsed, cwd, sessionDir, settingsManager, startupView) {
|
|
251
248
|
if (parsed.noSession || parsed.help || parsed.listModels !== undefined) {
|
|
252
249
|
return SessionManager.inMemory(cwd, parsed.sessionId !== undefined ? { id: parsed.sessionId } : undefined);
|
|
253
250
|
}
|
|
@@ -278,7 +275,7 @@ async function createSessionManager(parsed, cwd, sessionDir, settingsManager, st
|
|
|
278
275
|
return openSessionOrExit(resolved.path, sessionDir);
|
|
279
276
|
case "global": {
|
|
280
277
|
console.log(chalk.yellow(`Session found in different project: ${resolved.cwd}`));
|
|
281
|
-
const shouldFork = await promptConfirm("Fork this session into current directory?",
|
|
278
|
+
const shouldFork = await promptConfirm("Fork this session into current directory?", startupView);
|
|
282
279
|
if (!shouldFork) {
|
|
283
280
|
console.log(chalk.dim("Aborted."));
|
|
284
281
|
process.exit(0);
|
|
@@ -294,8 +291,8 @@ async function createSessionManager(parsed, cwd, sessionDir, settingsManager, st
|
|
|
294
291
|
try {
|
|
295
292
|
const currentSessionsLoader = (onProgress) => SessionManager.list(cwd, sessionDir, onProgress);
|
|
296
293
|
const allSessionsLoader = (onProgress) => SessionManager.listAll(sessionDir, onProgress);
|
|
297
|
-
const selectedPath =
|
|
298
|
-
? await
|
|
294
|
+
const selectedPath = startupView
|
|
295
|
+
? await startupView.selectSession(currentSessionsLoader, allSessionsLoader)
|
|
299
296
|
: await selectSession(currentSessionsLoader, allSessionsLoader, settingsManager);
|
|
300
297
|
if (!selectedPath) {
|
|
301
298
|
console.log(chalk.dim("No session selected"));
|
|
@@ -403,26 +400,26 @@ function buildSessionOptions(parsed, scopedModels, hasExistingSession, modelRunt
|
|
|
403
400
|
function resolveCliPaths(cwd, paths) {
|
|
404
401
|
return paths?.map((value) => (isLocalPath(value) ? resolvePath(value, cwd) : value));
|
|
405
402
|
}
|
|
406
|
-
function
|
|
403
|
+
function createStartupViewTrustContext(cwd, startupView) {
|
|
407
404
|
return {
|
|
408
405
|
cwd,
|
|
409
406
|
mode: "tui",
|
|
410
407
|
hasUI: true,
|
|
411
408
|
ui: {
|
|
412
|
-
select: (title, options) =>
|
|
413
|
-
confirm: (title, message) =>
|
|
414
|
-
input: (title, placeholder) =>
|
|
409
|
+
select: (title, options) => startupView.select(title, options.map((option) => ({ label: option, value: option }))),
|
|
410
|
+
confirm: (title, message) => startupView.confirm(title, message),
|
|
411
|
+
input: (title, placeholder) => startupView.input(title, placeholder),
|
|
415
412
|
notify: () => { },
|
|
416
413
|
},
|
|
417
414
|
};
|
|
418
415
|
}
|
|
419
|
-
async function promptForMissingSessionCwd(issue, settingsManager,
|
|
416
|
+
async function promptForMissingSessionCwd(issue, settingsManager, startupView) {
|
|
420
417
|
const options = [
|
|
421
418
|
{ label: "Continue", value: issue.fallbackCwd },
|
|
422
419
|
{ label: "Cancel", value: undefined },
|
|
423
420
|
];
|
|
424
|
-
return
|
|
425
|
-
?
|
|
421
|
+
return startupView
|
|
422
|
+
? startupView.select(formatMissingSessionCwdPrompt(issue), options)
|
|
426
423
|
: showStartupSelector(settingsManager, formatMissingSessionCwdPrompt(issue), options);
|
|
427
424
|
}
|
|
428
425
|
export async function main(args, options) {
|
|
@@ -436,19 +433,24 @@ export async function main(args, options) {
|
|
|
436
433
|
const bootstrapSettingsManager = SettingsManager.create(cwd, agentDir, { projectTrusted: false });
|
|
437
434
|
applyHttpProxySettings(bootstrapSettingsManager.getGlobalSettings().httpProxy);
|
|
438
435
|
configureHttpDispatcher();
|
|
439
|
-
if (
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
return;
|
|
436
|
+
if (["setup", "features", "uninstall"].includes(args[0])) {
|
|
437
|
+
const { handleInstallCli } = await import("./cli/install-cli.js");
|
|
438
|
+
if (await handleInstallCli(args))
|
|
439
|
+
return;
|
|
444
440
|
}
|
|
445
|
-
if (
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
|
|
441
|
+
if (args[0] === "update") {
|
|
442
|
+
const { handleUpdateCli } = await import("./cli/update-cli.js");
|
|
443
|
+
if (await handleUpdateCli(args))
|
|
444
|
+
return;
|
|
449
445
|
}
|
|
450
|
-
if (
|
|
451
|
-
|
|
446
|
+
if (["install", "remove", "uninstall", "list", "config"].includes(args[0])) {
|
|
447
|
+
const { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli.js");
|
|
448
|
+
if (await handlePackageCommand(args, { extensionFactories: options?.extensionFactories })) {
|
|
449
|
+
process.exit(process.exitCode ?? 0);
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
if (await handleConfigCommand(args, { extensionFactories: options?.extensionFactories }))
|
|
453
|
+
return;
|
|
452
454
|
}
|
|
453
455
|
if (args[0] === "gateway") {
|
|
454
456
|
const { handleGatewayCommand } = await import("./gateway/command.js");
|
|
@@ -487,9 +489,9 @@ export async function main(args, options) {
|
|
|
487
489
|
}
|
|
488
490
|
let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY);
|
|
489
491
|
const interactiveModeImport = appMode === "interactive" ? import("./modes/interactive/interactive-mode.js") : undefined;
|
|
490
|
-
const
|
|
491
|
-
if (options?.
|
|
492
|
-
options.
|
|
492
|
+
const startupView = appMode === "interactive" ? options?.startupView : undefined;
|
|
493
|
+
if (options?.startupView && !startupView)
|
|
494
|
+
options.startupView.stop();
|
|
493
495
|
// lunr: parent-delegated children inherit plan or auto before any tool call.
|
|
494
496
|
// Non-child print/json stays fail-closed (module default manual, no handler).
|
|
495
497
|
applyInheritedSubagentPermissions();
|
|
@@ -521,9 +523,9 @@ export async function main(args, options) {
|
|
|
521
523
|
// Experimental first-time setup: theme choice and analytics opt-in.
|
|
522
524
|
// Runs before any runtime services are created so the chosen settings apply everywhere.
|
|
523
525
|
if (appMode === "interactive" && !parsed.help && parsed.listModels === undefined && shouldRunFirstTimeSetup()) {
|
|
524
|
-
|
|
526
|
+
startupView?.pause();
|
|
525
527
|
await showFirstTimeSetup(startupSettingsManager);
|
|
526
|
-
|
|
528
|
+
startupView?.resume();
|
|
527
529
|
time("firstTimeSetup");
|
|
528
530
|
}
|
|
529
531
|
// Decide the final runtime cwd before creating cwd-bound runtime services.
|
|
@@ -535,11 +537,11 @@ export async function main(args, options) {
|
|
|
535
537
|
const sessionDir = (parsed.sessionDir ? normalizePath(parsed.sessionDir) : undefined) ??
|
|
536
538
|
(envSessionDir ? expandTildePath(envSessionDir) : undefined) ??
|
|
537
539
|
startupSettingsManager.getSessionDir();
|
|
538
|
-
let sessionManager = await createSessionManager(parsed, cwd, sessionDir, startupSettingsManager,
|
|
540
|
+
let sessionManager = await createSessionManager(parsed, cwd, sessionDir, startupSettingsManager, startupView);
|
|
539
541
|
const missingSessionCwdIssue = getMissingSessionCwdIssue(sessionManager, cwd);
|
|
540
542
|
if (missingSessionCwdIssue) {
|
|
541
543
|
if (appMode === "interactive") {
|
|
542
|
-
const selectedCwd = await promptForMissingSessionCwd(missingSessionCwdIssue, startupSettingsManager,
|
|
544
|
+
const selectedCwd = await promptForMissingSessionCwd(missingSessionCwdIssue, startupSettingsManager, startupView);
|
|
543
545
|
if (!selectedCwd) {
|
|
544
546
|
process.exit(0);
|
|
545
547
|
}
|
|
@@ -632,8 +634,8 @@ export async function main(args, options) {
|
|
|
632
634
|
defaultProjectTrust: startupSettingsManager.getDefaultProjectTrust(),
|
|
633
635
|
extensionsResult,
|
|
634
636
|
projectTrustContext: projectTrustContext ??
|
|
635
|
-
(isInitialRuntime &&
|
|
636
|
-
?
|
|
637
|
+
(isInitialRuntime && startupView
|
|
638
|
+
? createStartupViewTrustContext(cwd, startupView)
|
|
637
639
|
: createProjectTrustContext({
|
|
638
640
|
cwd,
|
|
639
641
|
mode: isInitialRuntime ? trustPromptMode : appMode,
|
|
@@ -730,7 +732,7 @@ export async function main(args, options) {
|
|
|
730
732
|
sessionManager,
|
|
731
733
|
onRuntimeApplied: bindRuntimeBridges,
|
|
732
734
|
});
|
|
733
|
-
if (
|
|
735
|
+
if (startupView?.isExitRequested) {
|
|
734
736
|
await runtime.dispose();
|
|
735
737
|
return;
|
|
736
738
|
}
|
|
@@ -769,18 +771,19 @@ export async function main(args, options) {
|
|
|
769
771
|
time("prepareInitialMessage");
|
|
770
772
|
initTheme(settingsManager.getTheme(), appMode === "interactive");
|
|
771
773
|
time("initTheme");
|
|
772
|
-
if (appMode === "interactive" && !
|
|
774
|
+
if (appMode === "interactive" && !startupView && deprecationWarnings.length > 0) {
|
|
773
775
|
await showDeprecationWarnings(deprecationWarnings);
|
|
774
776
|
}
|
|
775
777
|
time("resolveModelScope");
|
|
776
|
-
if (!(appMode === "interactive" &&
|
|
778
|
+
if (!(appMode === "interactive" && startupView))
|
|
777
779
|
reportDiagnostics(runtime.diagnostics);
|
|
778
780
|
if (runtime.diagnostics.some((diagnostic) => diagnostic.type === "error")) {
|
|
779
781
|
const extensionHint = runtime.diagnostics.some((diagnostic) => diagnostic.message.includes("Failed to load extension"))
|
|
780
782
|
? `\n${EXTENSION_LOAD_FAILURE_HINT}`
|
|
781
783
|
: "";
|
|
782
|
-
if (
|
|
783
|
-
|
|
784
|
+
if (startupView) {
|
|
785
|
+
process.exitCode = 1;
|
|
786
|
+
await startupView.fail(`${runtime.diagnostics.map((diagnostic) => diagnostic.message).join("\n")}${extensionHint}`);
|
|
784
787
|
return;
|
|
785
788
|
}
|
|
786
789
|
if (extensionHint)
|
|
@@ -802,7 +805,7 @@ export async function main(args, options) {
|
|
|
802
805
|
await runRpcMode(runtime);
|
|
803
806
|
}
|
|
804
807
|
else if (appMode === "interactive") {
|
|
805
|
-
const [{ InteractiveMode }, {
|
|
808
|
+
const [{ InteractiveMode }, { loadDeferredBuiltinExtensions }] = await Promise.all([
|
|
806
809
|
interactiveModeImport,
|
|
807
810
|
import("./builtin-extensions/index.js"),
|
|
808
811
|
]);
|
|
@@ -814,21 +817,27 @@ export async function main(args, options) {
|
|
|
814
817
|
initialImages,
|
|
815
818
|
initialMessages: parsed.messages,
|
|
816
819
|
verbose: parsed.verbose,
|
|
817
|
-
deprecationWarnings:
|
|
818
|
-
startupDiagnostics:
|
|
820
|
+
deprecationWarnings: startupView ? deprecationWarnings : undefined,
|
|
821
|
+
startupDiagnostics: startupView
|
|
819
822
|
? runtime.diagnostics.filter((diagnostic) => diagnostic.type !== "error")
|
|
820
823
|
: undefined,
|
|
821
|
-
|
|
824
|
+
startupView: startupView?.binding(),
|
|
822
825
|
deferredMaintenance: runSessionRetention,
|
|
823
|
-
deferredBuiltinFactories: parsed.noExtensions ? undefined :
|
|
826
|
+
deferredBuiltinFactories: parsed.noExtensions ? undefined : loadDeferredBuiltinExtensions,
|
|
824
827
|
onDeferredBuiltinsAttached: rememberAttachedFactories,
|
|
825
828
|
});
|
|
826
829
|
if (startupBenchmark) {
|
|
830
|
+
const { prepareBenchmarkRequest } = await import("./startup/benchmark-request.js");
|
|
831
|
+
const request = await prepareBenchmarkRequest(session);
|
|
827
832
|
await interactiveMode.init();
|
|
828
833
|
time("interactiveMode.init");
|
|
829
|
-
await interactiveMode.
|
|
834
|
+
await interactiveMode.waitForStartupReady();
|
|
830
835
|
time("promptBarrier");
|
|
836
|
+
await request();
|
|
837
|
+
// Consume terminal-query replies before returning control to the shell.
|
|
838
|
+
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
831
839
|
interactiveMode.stop();
|
|
840
|
+
await runtime.dispose();
|
|
832
841
|
stopThemeWatcher();
|
|
833
842
|
printTimings();
|
|
834
843
|
if (process.stdout.writableLength > 0) {
|