@ashx-j/lunr-dev 0.2.13-dev.7.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/models.json +1 -1
- package/dist/catalog/providers/amazon-bedrock.json +1 -1
- package/dist/catalog/providers/azure-openai-responses.json +1 -1
- package/dist/catalog/providers/fireworks.json +1 -1
- package/dist/catalog/providers/github-copilot.json +1 -1
- package/dist/catalog/providers/openai-codex.json +1 -1
- package/dist/catalog/providers/openai.json +1 -1
- package/dist/catalog/providers/opencode.json +1 -1
- package/dist/catalog/providers/openrouter.json +1 -1
- package/dist/catalog/providers/vercel-ai-gateway.json +1 -1
- package/dist/catalog/publication.json +131 -3
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js +1 -0
- package/dist/cli/list-models.js.map +1 -1
- 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/catalog-cache-scope.d.ts +3 -0
- package/dist/core/catalog-cache-scope.d.ts.map +1 -0
- package/dist/core/catalog-cache-scope.js +12 -0
- package/dist/core/catalog-cache-scope.js.map +1 -0
- package/dist/core/catalog-merge.d.ts +2 -0
- package/dist/core/catalog-merge.d.ts.map +1 -1
- package/dist/core/catalog-merge.js +29 -2
- package/dist/core/catalog-merge.js.map +1 -1
- package/dist/core/catalog-refresh-polling.d.ts +8 -0
- package/dist/core/catalog-refresh-polling.d.ts.map +1 -0
- package/dist/core/catalog-refresh-polling.js +30 -0
- package/dist/core/catalog-refresh-polling.js.map +1 -0
- package/dist/core/codex-catalog.d.ts +3 -0
- package/dist/core/codex-catalog.d.ts.map +1 -0
- package/dist/core/codex-catalog.js +15 -0
- package/dist/core/codex-catalog.js.map +1 -0
- 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/live-catalog.d.ts +5 -2
- package/dist/core/live-catalog.d.ts.map +1 -1
- package/dist/core/live-catalog.js +108 -27
- package/dist/core/live-catalog.js.map +1 -1
- package/dist/core/model-runtime.d.ts +8 -0
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +64 -12
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/official-catalog.d.ts +4 -0
- package/dist/core/official-catalog.d.ts.map +1 -1
- package/dist/core/official-catalog.js +86 -21
- package/dist/core/official-catalog.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 +66 -48
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +4 -1
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +13 -22
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +141 -207
- 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/model-catalog.md +29 -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
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
KeybindingsManager
|
|
4
|
+
} from "./chunk-YSKSB3BJ.js";
|
|
5
|
+
import {
|
|
6
|
+
DynamicBorder
|
|
7
|
+
} from "./chunk-3GHXVUAK.js";
|
|
8
|
+
import {
|
|
9
|
+
keyHint,
|
|
10
|
+
keyText
|
|
11
|
+
} from "./chunk-C4O2RSQQ.js";
|
|
12
|
+
import {
|
|
13
|
+
theme
|
|
14
|
+
} from "./chunk-MX3GJNXJ.js";
|
|
15
|
+
import {
|
|
16
|
+
canonicalizePath
|
|
17
|
+
} from "./chunk-PCIGF2XK.js";
|
|
18
|
+
|
|
19
|
+
// packages/coding-agent/dist/modes/interactive/components/session-selector.js
|
|
20
|
+
import { spawnSync } from "node:child_process";
|
|
21
|
+
import { existsSync } from "node:fs";
|
|
22
|
+
import { unlink } from "node:fs/promises";
|
|
23
|
+
import * as os from "node:os";
|
|
24
|
+
import { Container, getKeybindings, Input, Spacer, Text, truncateToWidth, visibleWidth } from "@ashx-j/lunr-tui";
|
|
25
|
+
|
|
26
|
+
// packages/coding-agent/dist/modes/interactive/components/session-selector-search.js
|
|
27
|
+
import { fuzzyMatch } from "@ashx-j/lunr-tui";
|
|
28
|
+
function normalizeWhitespaceLower(text) {
|
|
29
|
+
return text.toLowerCase().replace(/\s+/g, " ").trim();
|
|
30
|
+
}
|
|
31
|
+
function getSessionSearchText(session) {
|
|
32
|
+
return `${session.id} ${session.name ?? ""} ${session.allMessagesText} ${session.cwd}`;
|
|
33
|
+
}
|
|
34
|
+
function hasSessionName(session) {
|
|
35
|
+
return !!session.name?.trim();
|
|
36
|
+
}
|
|
37
|
+
function matchesNameFilter(session, filter) {
|
|
38
|
+
return filter === "all" ? !0 : hasSessionName(session);
|
|
39
|
+
}
|
|
40
|
+
function parseSearchQuery(query) {
|
|
41
|
+
let trimmed = query.trim();
|
|
42
|
+
if (!trimmed)
|
|
43
|
+
return { mode: "tokens", tokens: [], regex: null };
|
|
44
|
+
if (trimmed.startsWith("re:")) {
|
|
45
|
+
let pattern = trimmed.slice(3).trim();
|
|
46
|
+
if (!pattern)
|
|
47
|
+
return { mode: "regex", tokens: [], regex: null, error: "Empty regex" };
|
|
48
|
+
try {
|
|
49
|
+
return { mode: "regex", tokens: [], regex: new RegExp(pattern, "i") };
|
|
50
|
+
} catch (err) {
|
|
51
|
+
let msg = err instanceof Error ? err.message : String(err);
|
|
52
|
+
return { mode: "regex", tokens: [], regex: null, error: msg };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
let tokens = [], buf = "", inQuote = !1, hadUnclosedQuote = !1, flush = (kind) => {
|
|
56
|
+
let v = buf.trim();
|
|
57
|
+
buf = "", v && tokens.push({ kind, value: v });
|
|
58
|
+
};
|
|
59
|
+
for (let i = 0; i < trimmed.length; i++) {
|
|
60
|
+
let ch = trimmed[i];
|
|
61
|
+
if (ch === '"') {
|
|
62
|
+
inQuote ? (flush("phrase"), inQuote = !1) : (flush("fuzzy"), inQuote = !0);
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (!inQuote && /\s/.test(ch)) {
|
|
66
|
+
flush("fuzzy");
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
buf += ch;
|
|
70
|
+
}
|
|
71
|
+
return inQuote && (hadUnclosedQuote = !0), hadUnclosedQuote ? {
|
|
72
|
+
mode: "tokens",
|
|
73
|
+
tokens: trimmed.split(/\s+/).map((t) => t.trim()).filter((t) => t.length > 0).map((t) => ({ kind: "fuzzy", value: t })),
|
|
74
|
+
regex: null
|
|
75
|
+
} : (flush(inQuote ? "phrase" : "fuzzy"), { mode: "tokens", tokens, regex: null });
|
|
76
|
+
}
|
|
77
|
+
function matchSession(session, parsed) {
|
|
78
|
+
let text = getSessionSearchText(session);
|
|
79
|
+
if (parsed.mode === "regex") {
|
|
80
|
+
if (!parsed.regex)
|
|
81
|
+
return { matches: !1, score: 0 };
|
|
82
|
+
let idx = text.search(parsed.regex);
|
|
83
|
+
return idx < 0 ? { matches: !1, score: 0 } : { matches: !0, score: idx * 0.1 };
|
|
84
|
+
}
|
|
85
|
+
if (parsed.tokens.length === 0)
|
|
86
|
+
return { matches: !0, score: 0 };
|
|
87
|
+
let totalScore = 0, normalizedText = null;
|
|
88
|
+
for (let token of parsed.tokens) {
|
|
89
|
+
if (token.kind === "phrase") {
|
|
90
|
+
normalizedText === null && (normalizedText = normalizeWhitespaceLower(text));
|
|
91
|
+
let phrase = normalizeWhitespaceLower(token.value);
|
|
92
|
+
if (!phrase)
|
|
93
|
+
continue;
|
|
94
|
+
let idx = normalizedText.indexOf(phrase);
|
|
95
|
+
if (idx < 0)
|
|
96
|
+
return { matches: !1, score: 0 };
|
|
97
|
+
totalScore += idx * 0.1;
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
let m = fuzzyMatch(token.value, text);
|
|
101
|
+
if (!m.matches)
|
|
102
|
+
return { matches: !1, score: 0 };
|
|
103
|
+
totalScore += m.score;
|
|
104
|
+
}
|
|
105
|
+
return { matches: !0, score: totalScore };
|
|
106
|
+
}
|
|
107
|
+
function filterAndSortSessions(sessions, query, sortMode, nameFilter = "all") {
|
|
108
|
+
let nameFiltered = nameFilter === "all" ? sessions : sessions.filter((session) => matchesNameFilter(session, nameFilter));
|
|
109
|
+
if (!query.trim())
|
|
110
|
+
return nameFiltered;
|
|
111
|
+
let parsed = parseSearchQuery(query);
|
|
112
|
+
if (parsed.error)
|
|
113
|
+
return [];
|
|
114
|
+
if (sortMode === "recent") {
|
|
115
|
+
let filtered = [];
|
|
116
|
+
for (let s of nameFiltered)
|
|
117
|
+
matchSession(s, parsed).matches && filtered.push(s);
|
|
118
|
+
return filtered;
|
|
119
|
+
}
|
|
120
|
+
let scored = [];
|
|
121
|
+
for (let s of nameFiltered) {
|
|
122
|
+
let res = matchSession(s, parsed);
|
|
123
|
+
res.matches && scored.push({ session: s, score: res.score });
|
|
124
|
+
}
|
|
125
|
+
return scored.sort((a, b) => a.score !== b.score ? a.score - b.score : b.session.modified.getTime() - a.session.modified.getTime()), scored.map((r) => r.session);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// packages/coding-agent/dist/modes/interactive/components/session-selector.js
|
|
129
|
+
function shortenPath(path) {
|
|
130
|
+
let home = os.homedir();
|
|
131
|
+
return path && (path.startsWith(home) ? `~${path.slice(home.length)}` : path);
|
|
132
|
+
}
|
|
133
|
+
function formatSessionDate(date) {
|
|
134
|
+
let diffMs = (/* @__PURE__ */ new Date()).getTime() - date.getTime(), diffMins = Math.floor(diffMs / 6e4), diffHours = Math.floor(diffMs / 36e5), diffDays = Math.floor(diffMs / 864e5);
|
|
135
|
+
return diffMins < 1 ? "now" : diffMins < 60 ? `${diffMins}m` : diffHours < 24 ? `${diffHours}h` : diffDays < 7 ? `${diffDays}d` : diffDays < 30 ? `${Math.floor(diffDays / 7)}w` : diffDays < 365 ? `${Math.floor(diffDays / 30)}mo` : `${Math.floor(diffDays / 365)}y`;
|
|
136
|
+
}
|
|
137
|
+
function canonicalizePath2(path) {
|
|
138
|
+
return path && canonicalizePath(path);
|
|
139
|
+
}
|
|
140
|
+
var SessionSelectorHeader = class {
|
|
141
|
+
scope;
|
|
142
|
+
sortMode;
|
|
143
|
+
nameFilter;
|
|
144
|
+
requestRender;
|
|
145
|
+
loading = !1;
|
|
146
|
+
loadProgress = null;
|
|
147
|
+
showPath = !1;
|
|
148
|
+
confirmingDeletePath = null;
|
|
149
|
+
statusMessage = null;
|
|
150
|
+
statusTimeout = null;
|
|
151
|
+
showRenameHint = !1;
|
|
152
|
+
constructor(scope, sortMode, nameFilter, requestRender) {
|
|
153
|
+
this.scope = scope, this.sortMode = sortMode, this.nameFilter = nameFilter, this.requestRender = requestRender;
|
|
154
|
+
}
|
|
155
|
+
setScope(scope) {
|
|
156
|
+
this.scope = scope;
|
|
157
|
+
}
|
|
158
|
+
setSortMode(sortMode) {
|
|
159
|
+
this.sortMode = sortMode;
|
|
160
|
+
}
|
|
161
|
+
setNameFilter(nameFilter) {
|
|
162
|
+
this.nameFilter = nameFilter;
|
|
163
|
+
}
|
|
164
|
+
setLoading(loading) {
|
|
165
|
+
this.loading = loading, this.loadProgress = null;
|
|
166
|
+
}
|
|
167
|
+
setProgress(loaded, total) {
|
|
168
|
+
this.loadProgress = { loaded, total };
|
|
169
|
+
}
|
|
170
|
+
setShowPath(showPath) {
|
|
171
|
+
this.showPath = showPath;
|
|
172
|
+
}
|
|
173
|
+
setShowRenameHint(show) {
|
|
174
|
+
this.showRenameHint = show;
|
|
175
|
+
}
|
|
176
|
+
setConfirmingDeletePath(path) {
|
|
177
|
+
this.confirmingDeletePath = path;
|
|
178
|
+
}
|
|
179
|
+
clearStatusTimeout() {
|
|
180
|
+
this.statusTimeout && (clearTimeout(this.statusTimeout), this.statusTimeout = null);
|
|
181
|
+
}
|
|
182
|
+
setStatusMessage(msg, autoHideMs) {
|
|
183
|
+
this.clearStatusTimeout(), this.statusMessage = msg, !(!msg || !autoHideMs) && (this.statusTimeout = setTimeout(() => {
|
|
184
|
+
this.statusMessage = null, this.statusTimeout = null, this.requestRender();
|
|
185
|
+
}, autoHideMs));
|
|
186
|
+
}
|
|
187
|
+
invalidate() {
|
|
188
|
+
}
|
|
189
|
+
render(width) {
|
|
190
|
+
let title = this.scope === "current" ? "Resume Session (Current Folder)" : "Resume Session (All)", leftText = theme.bold(title), sortLabel = this.sortMode === "threaded" ? "Threaded" : this.sortMode === "recent" ? "Recent" : "Fuzzy", sortText = theme.fg("muted", "Sort: ") + theme.fg("accent", sortLabel), nameLabel = this.nameFilter === "all" ? "All" : "Named", nameText = theme.fg("muted", "Name: ") + theme.fg("accent", nameLabel), scopeText;
|
|
191
|
+
if (this.loading) {
|
|
192
|
+
let progressText = this.loadProgress ? `${this.loadProgress.loaded}/${this.loadProgress.total}` : "...";
|
|
193
|
+
scopeText = `${theme.fg("muted", "\u25CB Current Folder | ")}${theme.fg("accent", `Loading ${progressText}`)}`;
|
|
194
|
+
} else this.scope === "current" ? scopeText = `${theme.fg("accent", "\u25C9 Current Folder")}${theme.fg("muted", " | \u25CB All")}` : scopeText = `${theme.fg("muted", "\u25CB Current Folder | ")}${theme.fg("accent", "\u25C9 All")}`;
|
|
195
|
+
let rightText = truncateToWidth(`${scopeText} ${nameText} ${sortText}`, width, ""), availableLeft = Math.max(0, width - visibleWidth(rightText) - 1), left = truncateToWidth(leftText, availableLeft, ""), spacing = Math.max(0, width - visibleWidth(left) - visibleWidth(rightText)), hintLine1, hintLine2;
|
|
196
|
+
if (this.confirmingDeletePath !== null) {
|
|
197
|
+
let confirmHint = `Delete session? ${keyHint("tui.select.confirm", "confirm")} \xB7 ${keyHint("tui.select.cancel", "cancel")}`;
|
|
198
|
+
hintLine1 = theme.fg("error", truncateToWidth(confirmHint, width, "\u2026")), hintLine2 = "";
|
|
199
|
+
} else if (this.statusMessage) {
|
|
200
|
+
let color = this.statusMessage.type === "error" ? "error" : "accent";
|
|
201
|
+
hintLine1 = theme.fg(color, truncateToWidth(this.statusMessage.message, width, "\u2026")), hintLine2 = "";
|
|
202
|
+
} else {
|
|
203
|
+
let pathState = this.showPath ? "(on)" : "(off)", sep = theme.fg("muted", " \xB7 "), hint1 = keyHint("tui.input.tab", "scope") + sep + theme.fg("muted", 're:<pattern> regex \xB7 "phrase" exact'), hint2Parts = [
|
|
204
|
+
keyHint("app.session.toggleSort", "sort"),
|
|
205
|
+
keyHint("app.session.toggleNamedFilter", "named"),
|
|
206
|
+
keyHint("app.session.delete", "delete"),
|
|
207
|
+
keyHint("app.session.togglePath", `path ${pathState}`)
|
|
208
|
+
];
|
|
209
|
+
this.showRenameHint && hint2Parts.push(keyHint("app.session.rename", "rename"));
|
|
210
|
+
let hint2 = hint2Parts.join(sep);
|
|
211
|
+
hintLine1 = truncateToWidth(hint1, width, "\u2026"), hintLine2 = truncateToWidth(hint2, width, "\u2026");
|
|
212
|
+
}
|
|
213
|
+
return [`${left}${" ".repeat(spacing)}${rightText}`, hintLine1, hintLine2];
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
function buildSessionTree(sessions) {
|
|
217
|
+
let byPath = /* @__PURE__ */ new Map();
|
|
218
|
+
for (let session of sessions) {
|
|
219
|
+
let sessionPath = canonicalizePath2(session.path) ?? session.path;
|
|
220
|
+
byPath.set(sessionPath, { session, children: [], latestActivity: session.modified.getTime() });
|
|
221
|
+
}
|
|
222
|
+
let roots = [];
|
|
223
|
+
for (let session of sessions) {
|
|
224
|
+
let sessionPath = canonicalizePath2(session.path) ?? session.path, node = byPath.get(sessionPath), parentPath = canonicalizePath2(session.parentSessionPath);
|
|
225
|
+
parentPath && byPath.has(parentPath) ? byPath.get(parentPath).children.push(node) : roots.push(node);
|
|
226
|
+
}
|
|
227
|
+
let updateLatestActivity = (node) => {
|
|
228
|
+
let latestActivity = node.session.modified.getTime();
|
|
229
|
+
for (let child of node.children)
|
|
230
|
+
latestActivity = Math.max(latestActivity, updateLatestActivity(child));
|
|
231
|
+
return node.latestActivity = latestActivity, latestActivity;
|
|
232
|
+
};
|
|
233
|
+
for (let root of roots)
|
|
234
|
+
updateLatestActivity(root);
|
|
235
|
+
let sortNodes = (nodes) => {
|
|
236
|
+
nodes.sort((a, b) => b.latestActivity - a.latestActivity);
|
|
237
|
+
for (let node of nodes)
|
|
238
|
+
sortNodes(node.children);
|
|
239
|
+
};
|
|
240
|
+
return sortNodes(roots), roots;
|
|
241
|
+
}
|
|
242
|
+
function flattenSessionTree(roots) {
|
|
243
|
+
let result = [], walk = (node, depth, ancestorContinues, isLast) => {
|
|
244
|
+
result.push({ session: node.session, depth, isLast, ancestorContinues });
|
|
245
|
+
for (let i = 0; i < node.children.length; i++) {
|
|
246
|
+
let childIsLast = i === node.children.length - 1, continues = depth > 0 ? !isLast : !1;
|
|
247
|
+
walk(node.children[i], depth + 1, [...ancestorContinues, continues], childIsLast);
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
for (let i = 0; i < roots.length; i++)
|
|
251
|
+
walk(roots[i], 0, [], i === roots.length - 1);
|
|
252
|
+
return result;
|
|
253
|
+
}
|
|
254
|
+
var SessionList = class {
|
|
255
|
+
getSelectedSessionPath() {
|
|
256
|
+
return this.filteredSessions[this.selectedIndex]?.session.path;
|
|
257
|
+
}
|
|
258
|
+
allSessions = [];
|
|
259
|
+
filteredSessions = [];
|
|
260
|
+
selectedIndex = 0;
|
|
261
|
+
searchInput;
|
|
262
|
+
showCwd = !1;
|
|
263
|
+
sortMode = "threaded";
|
|
264
|
+
nameFilter = "all";
|
|
265
|
+
keybindings;
|
|
266
|
+
showPath = !1;
|
|
267
|
+
confirmingDeletePath = null;
|
|
268
|
+
currentSessionCanonicalPath;
|
|
269
|
+
onSelect;
|
|
270
|
+
onCancel;
|
|
271
|
+
onExit = () => {
|
|
272
|
+
};
|
|
273
|
+
onToggleScope;
|
|
274
|
+
onToggleSort;
|
|
275
|
+
onToggleNameFilter;
|
|
276
|
+
onTogglePath;
|
|
277
|
+
onDeleteConfirmationChange;
|
|
278
|
+
onDeleteSession;
|
|
279
|
+
onRenameSession;
|
|
280
|
+
onError;
|
|
281
|
+
maxVisible = 10;
|
|
282
|
+
// Max sessions visible (one line each)
|
|
283
|
+
// Focusable implementation - propagate to searchInput for IME cursor positioning
|
|
284
|
+
_focused = !1;
|
|
285
|
+
get focused() {
|
|
286
|
+
return this._focused;
|
|
287
|
+
}
|
|
288
|
+
set focused(value) {
|
|
289
|
+
this._focused = value, this.searchInput.focused = value;
|
|
290
|
+
}
|
|
291
|
+
constructor(sessions, showCwd, sortMode, nameFilter, keybindings, currentSessionFilePath) {
|
|
292
|
+
this.allSessions = sessions, this.filteredSessions = [], this.searchInput = new Input(), this.showCwd = showCwd, this.sortMode = sortMode, this.nameFilter = nameFilter, this.keybindings = keybindings, this.currentSessionCanonicalPath = canonicalizePath2(currentSessionFilePath), this.filterSessions(""), this.searchInput.onSubmit = () => {
|
|
293
|
+
if (this.filteredSessions[this.selectedIndex]) {
|
|
294
|
+
let selected = this.filteredSessions[this.selectedIndex];
|
|
295
|
+
this.onSelect && this.onSelect(selected.session.path);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
setSortMode(sortMode) {
|
|
300
|
+
this.sortMode = sortMode, this.filterSessions(this.searchInput.getValue());
|
|
301
|
+
}
|
|
302
|
+
setNameFilter(nameFilter) {
|
|
303
|
+
this.nameFilter = nameFilter, this.filterSessions(this.searchInput.getValue());
|
|
304
|
+
}
|
|
305
|
+
setSessions(sessions, showCwd) {
|
|
306
|
+
this.allSessions = sessions, this.showCwd = showCwd, this.filterSessions(this.searchInput.getValue());
|
|
307
|
+
}
|
|
308
|
+
filterSessions(query) {
|
|
309
|
+
let trimmed = query.trim(), nameFiltered = this.nameFilter === "all" ? this.allSessions : this.allSessions.filter((session) => hasSessionName(session));
|
|
310
|
+
if (this.sortMode === "threaded" && !trimmed) {
|
|
311
|
+
let roots = buildSessionTree(nameFiltered);
|
|
312
|
+
this.filteredSessions = flattenSessionTree(roots);
|
|
313
|
+
} else {
|
|
314
|
+
let filtered = filterAndSortSessions(nameFiltered, query, this.sortMode, "all");
|
|
315
|
+
this.filteredSessions = filtered.map((session) => ({
|
|
316
|
+
session,
|
|
317
|
+
depth: 0,
|
|
318
|
+
isLast: !0,
|
|
319
|
+
ancestorContinues: []
|
|
320
|
+
}));
|
|
321
|
+
}
|
|
322
|
+
this.selectedIndex = Math.min(this.selectedIndex, Math.max(0, this.filteredSessions.length - 1));
|
|
323
|
+
}
|
|
324
|
+
setConfirmingDeletePath(path) {
|
|
325
|
+
this.confirmingDeletePath = path, this.onDeleteConfirmationChange?.(path);
|
|
326
|
+
}
|
|
327
|
+
startDeleteConfirmationForSelectedSession() {
|
|
328
|
+
let selected = this.filteredSessions[this.selectedIndex];
|
|
329
|
+
if (selected) {
|
|
330
|
+
if (this.isCurrentSessionPath(selected.session.path)) {
|
|
331
|
+
this.onError?.("Cannot delete the currently active session");
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
this.setConfirmingDeletePath(selected.session.path);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
isCurrentSessionPath(path) {
|
|
338
|
+
return this.currentSessionCanonicalPath ? (canonicalizePath2(path) ?? path) === this.currentSessionCanonicalPath : !1;
|
|
339
|
+
}
|
|
340
|
+
invalidate() {
|
|
341
|
+
}
|
|
342
|
+
render(width) {
|
|
343
|
+
let lines = [];
|
|
344
|
+
if (lines.push(...this.searchInput.render(width)), lines.push(""), this.filteredSessions.length === 0) {
|
|
345
|
+
let emptyMessage;
|
|
346
|
+
if (this.nameFilter === "named") {
|
|
347
|
+
let toggleKey = keyText("app.session.toggleNamedFilter");
|
|
348
|
+
this.showCwd ? emptyMessage = ` No named sessions found. Press ${toggleKey} to show all.` : emptyMessage = ` No named sessions in current folder. Press ${toggleKey} to show all, or Tab to view all.`;
|
|
349
|
+
} else this.showCwd ? emptyMessage = " No sessions found" : emptyMessage = " No sessions in current folder. Press Tab to view all.";
|
|
350
|
+
return lines.push(theme.fg("muted", truncateToWidth(emptyMessage, width, "\u2026"))), lines;
|
|
351
|
+
}
|
|
352
|
+
let startIndex = Math.max(0, Math.min(this.selectedIndex - Math.floor(this.maxVisible / 2), this.filteredSessions.length - this.maxVisible)), endIndex = Math.min(startIndex + this.maxVisible, this.filteredSessions.length);
|
|
353
|
+
for (let i = startIndex; i < endIndex; i++) {
|
|
354
|
+
let node = this.filteredSessions[i], session = node.session, isSelected = i === this.selectedIndex, isConfirmingDelete = session.path === this.confirmingDeletePath, isCurrent = this.isCurrentSessionPath(session.path), prefix = this.buildTreePrefix(node), normalizedMessage = (session.name ?? session.firstMessage).replace(/[\x00-\x1f\x7f]/g, " ").trim(), age = formatSessionDate(session.modified), rightPart = `${String(session.messageCount)} ${age}`;
|
|
355
|
+
this.showCwd && session.cwd && (rightPart = `${shortenPath(session.cwd)} ${rightPart}`), this.showPath && (rightPart = `${shortenPath(session.path)} ${rightPart}`);
|
|
356
|
+
let cursor = isSelected ? theme.fg("accent", "\u203A ") : " ", prefixWidth = visibleWidth(prefix), rightWidth = visibleWidth(rightPart) + 2, availableForMsg = width - 2 - prefixWidth - rightWidth, truncatedMsg = truncateToWidth(normalizedMessage, Math.max(10, availableForMsg), "\u2026"), messageColor = null;
|
|
357
|
+
isConfirmingDelete ? messageColor = "error" : (isSelected || isCurrent) && (messageColor = "accent");
|
|
358
|
+
let styledMsg = messageColor ? theme.fg(messageColor, truncatedMsg) : truncatedMsg, leftPart = cursor + theme.fg("dim", prefix) + styledMsg, leftWidth = visibleWidth(leftPart), spacing = Math.max(1, width - leftWidth - visibleWidth(rightPart)), styledRight = theme.fg(isConfirmingDelete ? "error" : "dim", rightPart), line = leftPart + " ".repeat(spacing) + styledRight;
|
|
359
|
+
lines.push(truncateToWidth(line, width));
|
|
360
|
+
}
|
|
361
|
+
if (startIndex > 0 || endIndex < this.filteredSessions.length) {
|
|
362
|
+
let scrollText = ` (${this.selectedIndex + 1}/${this.filteredSessions.length})`, scrollInfo = theme.fg("muted", truncateToWidth(scrollText, width, ""));
|
|
363
|
+
lines.push(scrollInfo);
|
|
364
|
+
}
|
|
365
|
+
return lines;
|
|
366
|
+
}
|
|
367
|
+
buildTreePrefix(node) {
|
|
368
|
+
if (node.depth === 0)
|
|
369
|
+
return "";
|
|
370
|
+
let parts = node.ancestorContinues.map((continues) => continues ? "\u2502 " : " "), branch = node.isLast ? "\u2514\u2500 " : "\u251C\u2500 ";
|
|
371
|
+
return parts.join("") + branch;
|
|
372
|
+
}
|
|
373
|
+
handleInput(keyData) {
|
|
374
|
+
let kb = getKeybindings();
|
|
375
|
+
if (this.confirmingDeletePath !== null) {
|
|
376
|
+
if (kb.matches(keyData, "tui.select.confirm")) {
|
|
377
|
+
let pathToDelete = this.confirmingDeletePath;
|
|
378
|
+
this.setConfirmingDeletePath(null), this.onDeleteSession?.(pathToDelete);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
if (kb.matches(keyData, "tui.select.cancel")) {
|
|
382
|
+
this.setConfirmingDeletePath(null);
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (kb.matches(keyData, "tui.input.tab")) {
|
|
388
|
+
this.onToggleScope && this.onToggleScope();
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
if (kb.matches(keyData, "app.session.toggleSort")) {
|
|
392
|
+
this.onToggleSort?.();
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
if (this.keybindings.matches(keyData, "app.session.toggleNamedFilter")) {
|
|
396
|
+
this.onToggleNameFilter?.();
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
if (kb.matches(keyData, "app.session.togglePath")) {
|
|
400
|
+
this.showPath = !this.showPath, this.onTogglePath?.(this.showPath);
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
if (kb.matches(keyData, "app.session.delete")) {
|
|
404
|
+
this.startDeleteConfirmationForSelectedSession();
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (kb.matches(keyData, "app.session.rename")) {
|
|
408
|
+
let selected = this.filteredSessions[this.selectedIndex];
|
|
409
|
+
selected && this.onRenameSession?.(selected.session.path);
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
if (kb.matches(keyData, "app.session.deleteNoninvasive")) {
|
|
413
|
+
if (this.searchInput.getValue().length > 0) {
|
|
414
|
+
this.searchInput.handleInput(keyData), this.filterSessions(this.searchInput.getValue());
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
this.startDeleteConfirmationForSelectedSession();
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
if (kb.matches(keyData, "tui.select.up"))
|
|
421
|
+
this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
|
422
|
+
else if (kb.matches(keyData, "tui.select.down"))
|
|
423
|
+
this.selectedIndex = Math.min(this.filteredSessions.length - 1, this.selectedIndex + 1);
|
|
424
|
+
else if (kb.matches(keyData, "tui.select.pageUp"))
|
|
425
|
+
this.selectedIndex = Math.max(0, this.selectedIndex - this.maxVisible);
|
|
426
|
+
else if (kb.matches(keyData, "tui.select.pageDown"))
|
|
427
|
+
this.selectedIndex = Math.min(this.filteredSessions.length - 1, this.selectedIndex + this.maxVisible);
|
|
428
|
+
else if (kb.matches(keyData, "tui.select.confirm")) {
|
|
429
|
+
let selected = this.filteredSessions[this.selectedIndex];
|
|
430
|
+
selected && this.onSelect && this.onSelect(selected.session.path);
|
|
431
|
+
} else kb.matches(keyData, "tui.select.cancel") ? this.onCancel && this.onCancel() : (this.searchInput.handleInput(keyData), this.filterSessions(this.searchInput.getValue()));
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
async function deleteSessionFile(sessionPath) {
|
|
435
|
+
let trashArgs = sessionPath.startsWith("-") ? ["--", sessionPath] : [sessionPath], trashResult = spawnSync("trash", trashArgs, { encoding: "utf-8" }), getTrashErrorHint = () => {
|
|
436
|
+
let parts = [];
|
|
437
|
+
trashResult.error && parts.push(trashResult.error.message);
|
|
438
|
+
let stderr = trashResult.stderr?.trim();
|
|
439
|
+
return stderr && parts.push(stderr.split(`
|
|
440
|
+
`)[0] ?? stderr), parts.length === 0 ? null : `trash: ${parts.join(" \xB7 ").slice(0, 200)}`;
|
|
441
|
+
};
|
|
442
|
+
if (trashResult.status === 0 || !existsSync(sessionPath))
|
|
443
|
+
return { ok: !0, method: "trash" };
|
|
444
|
+
try {
|
|
445
|
+
return await unlink(sessionPath), { ok: !0, method: "unlink" };
|
|
446
|
+
} catch (err) {
|
|
447
|
+
let unlinkError = err instanceof Error ? err.message : String(err), trashErrorHint = getTrashErrorHint();
|
|
448
|
+
return { ok: !1, method: "unlink", error: trashErrorHint ? `${unlinkError} (${trashErrorHint})` : unlinkError };
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
var SessionSelectorComponent = class extends Container {
|
|
452
|
+
handleInput(data) {
|
|
453
|
+
if (this.mode === "rename") {
|
|
454
|
+
if (getKeybindings().matches(data, "tui.select.cancel")) {
|
|
455
|
+
this.exitRenameMode();
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
this.renameInput.handleInput(data);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
this.sessionList.handleInput(data);
|
|
462
|
+
}
|
|
463
|
+
canRename = !0;
|
|
464
|
+
sessionList;
|
|
465
|
+
header;
|
|
466
|
+
keybindings;
|
|
467
|
+
scope = "current";
|
|
468
|
+
sortMode = "threaded";
|
|
469
|
+
nameFilter = "all";
|
|
470
|
+
currentSessions = null;
|
|
471
|
+
allSessions = null;
|
|
472
|
+
currentSessionsLoader;
|
|
473
|
+
allSessionsLoader;
|
|
474
|
+
requestRender;
|
|
475
|
+
renameSession;
|
|
476
|
+
currentLoading = !1;
|
|
477
|
+
allLoading = !1;
|
|
478
|
+
allLoadSeq = 0;
|
|
479
|
+
mode = "list";
|
|
480
|
+
renameInput = new Input();
|
|
481
|
+
renameTargetPath = null;
|
|
482
|
+
// Focusable implementation - propagate to sessionList for IME cursor positioning
|
|
483
|
+
_focused = !1;
|
|
484
|
+
get focused() {
|
|
485
|
+
return this._focused;
|
|
486
|
+
}
|
|
487
|
+
set focused(value) {
|
|
488
|
+
this._focused = value, this.sessionList.focused = value, this.renameInput.focused = value, value && this.mode === "rename" && (this.renameInput.focused = !0);
|
|
489
|
+
}
|
|
490
|
+
buildBaseLayout(content, options) {
|
|
491
|
+
this.clear(), this.addChild(new Spacer(1)), this.addChild(new DynamicBorder((s) => theme.fg("accent", s))), this.addChild(new Spacer(1)), (options?.showHeader ?? !0) && (this.addChild(this.header), this.addChild(new Spacer(1))), this.addChild(content), this.addChild(new Spacer(1)), this.addChild(new DynamicBorder((s) => theme.fg("accent", s)));
|
|
492
|
+
}
|
|
493
|
+
constructor(currentSessionsLoader, allSessionsLoader, onSelect, onCancel, onExit, requestRender, options, currentSessionFilePath) {
|
|
494
|
+
super(), this.keybindings = options?.keybindings ?? KeybindingsManager.create(), this.currentSessionsLoader = currentSessionsLoader, this.allSessionsLoader = allSessionsLoader, this.requestRender = requestRender, this.header = new SessionSelectorHeader(this.scope, this.sortMode, this.nameFilter, this.requestRender);
|
|
495
|
+
let renameSession = options?.renameSession;
|
|
496
|
+
this.renameSession = renameSession, this.canRename = !!renameSession, this.header.setShowRenameHint(options?.showRenameHint ?? this.canRename), this.sessionList = new SessionList([], !1, this.sortMode, this.nameFilter, this.keybindings, currentSessionFilePath), this.buildBaseLayout(this.sessionList), this.renameInput.onSubmit = (value) => {
|
|
497
|
+
this.confirmRename(value);
|
|
498
|
+
};
|
|
499
|
+
let clearStatusMessage = () => this.header.setStatusMessage(null);
|
|
500
|
+
this.sessionList.onSelect = (sessionPath) => {
|
|
501
|
+
clearStatusMessage(), onSelect(sessionPath);
|
|
502
|
+
}, this.sessionList.onCancel = () => {
|
|
503
|
+
clearStatusMessage(), onCancel();
|
|
504
|
+
}, this.sessionList.onExit = () => {
|
|
505
|
+
clearStatusMessage(), onExit();
|
|
506
|
+
}, this.sessionList.onToggleScope = () => this.toggleScope(), this.sessionList.onToggleSort = () => this.toggleSortMode(), this.sessionList.onToggleNameFilter = () => this.toggleNameFilter(), this.sessionList.onRenameSession = (sessionPath) => {
|
|
507
|
+
if (!renameSession || this.scope === "current" && this.currentLoading || this.scope === "all" && this.allLoading)
|
|
508
|
+
return;
|
|
509
|
+
let session = (this.scope === "all" ? this.allSessions ?? [] : this.currentSessions ?? []).find((s) => s.path === sessionPath);
|
|
510
|
+
this.enterRenameMode(sessionPath, session?.name);
|
|
511
|
+
}, this.sessionList.onTogglePath = (showPath) => {
|
|
512
|
+
this.header.setShowPath(showPath), this.requestRender();
|
|
513
|
+
}, this.sessionList.onDeleteConfirmationChange = (path) => {
|
|
514
|
+
this.header.setConfirmingDeletePath(path), this.requestRender();
|
|
515
|
+
}, this.sessionList.onError = (msg) => {
|
|
516
|
+
this.header.setStatusMessage({ type: "error", message: msg }, 3e3), this.requestRender();
|
|
517
|
+
}, this.sessionList.onDeleteSession = async (sessionPath) => {
|
|
518
|
+
let result = await deleteSessionFile(sessionPath);
|
|
519
|
+
if (result.ok) {
|
|
520
|
+
this.currentSessions && (this.currentSessions = this.currentSessions.filter((s) => s.path !== sessionPath)), this.allSessions && (this.allSessions = this.allSessions.filter((s) => s.path !== sessionPath));
|
|
521
|
+
let sessions = this.scope === "all" ? this.allSessions ?? [] : this.currentSessions ?? [], showCwd = this.scope === "all";
|
|
522
|
+
this.sessionList.setSessions(sessions, showCwd);
|
|
523
|
+
let msg = result.method === "trash" ? "Session moved to trash" : "Session deleted";
|
|
524
|
+
this.header.setStatusMessage({ type: "info", message: msg }, 2e3), await this.refreshSessionsAfterMutation();
|
|
525
|
+
} else {
|
|
526
|
+
let errorMessage = result.error ?? "Unknown error";
|
|
527
|
+
this.header.setStatusMessage({ type: "error", message: `Failed to delete: ${errorMessage}` }, 3e3);
|
|
528
|
+
}
|
|
529
|
+
this.requestRender();
|
|
530
|
+
}, this.loadCurrentSessions();
|
|
531
|
+
}
|
|
532
|
+
loadCurrentSessions() {
|
|
533
|
+
this.loadScope("current", "initial");
|
|
534
|
+
}
|
|
535
|
+
enterRenameMode(sessionPath, currentName) {
|
|
536
|
+
this.mode = "rename", this.renameTargetPath = sessionPath, this.renameInput.setValue(currentName ?? ""), this.renameInput.focused = !0;
|
|
537
|
+
let panel = new Container();
|
|
538
|
+
panel.addChild(new Text(theme.bold("Rename Session"), 1, 0)), panel.addChild(new Spacer(1)), panel.addChild(this.renameInput), panel.addChild(new Spacer(1)), panel.addChild(new Text(theme.fg("muted", `${keyText("tui.select.confirm")} to save \xB7 ${keyText("tui.select.cancel")} to cancel`), 1, 0)), this.buildBaseLayout(panel, { showHeader: !1 }), this.requestRender();
|
|
539
|
+
}
|
|
540
|
+
exitRenameMode() {
|
|
541
|
+
this.mode = "list", this.renameTargetPath = null, this.buildBaseLayout(this.sessionList), this.requestRender();
|
|
542
|
+
}
|
|
543
|
+
async confirmRename(value) {
|
|
544
|
+
let next = value.trim();
|
|
545
|
+
if (!next)
|
|
546
|
+
return;
|
|
547
|
+
let target = this.renameTargetPath;
|
|
548
|
+
if (!target) {
|
|
549
|
+
this.exitRenameMode();
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
let renameSession = this.renameSession;
|
|
553
|
+
if (!renameSession) {
|
|
554
|
+
this.exitRenameMode();
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
try {
|
|
558
|
+
await renameSession(target, next), await this.refreshSessionsAfterMutation();
|
|
559
|
+
} finally {
|
|
560
|
+
this.exitRenameMode();
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
async loadScope(scope, reason) {
|
|
564
|
+
let showCwd = scope === "all";
|
|
565
|
+
scope === "current" ? this.currentLoading = !0 : this.allLoading = !0;
|
|
566
|
+
let seq = scope === "all" ? ++this.allLoadSeq : void 0;
|
|
567
|
+
this.header.setScope(scope), this.header.setLoading(!0), this.requestRender();
|
|
568
|
+
let onProgress = (loaded, total) => {
|
|
569
|
+
scope === this.scope && (seq !== void 0 && seq !== this.allLoadSeq || (this.header.setProgress(loaded, total), this.requestRender()));
|
|
570
|
+
};
|
|
571
|
+
try {
|
|
572
|
+
let sessions = await (scope === "current" ? this.currentSessionsLoader(onProgress) : this.allSessionsLoader(onProgress));
|
|
573
|
+
if (scope === "current" ? (this.currentSessions = sessions, this.currentLoading = !1) : (this.allSessions = sessions, this.allLoading = !1), scope !== this.scope || seq !== void 0 && seq !== this.allLoadSeq)
|
|
574
|
+
return;
|
|
575
|
+
this.header.setLoading(!1), this.sessionList.setSessions(sessions, showCwd), this.requestRender();
|
|
576
|
+
} catch (err) {
|
|
577
|
+
if (scope === "current" ? this.currentLoading = !1 : this.allLoading = !1, scope !== this.scope || seq !== void 0 && seq !== this.allLoadSeq)
|
|
578
|
+
return;
|
|
579
|
+
let message = err instanceof Error ? err.message : String(err);
|
|
580
|
+
this.header.setLoading(!1), this.header.setStatusMessage({ type: "error", message: `Failed to load sessions: ${message}` }, 4e3), reason === "initial" && this.sessionList.setSessions([], showCwd), this.requestRender();
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
toggleSortMode() {
|
|
584
|
+
this.sortMode = this.sortMode === "threaded" ? "recent" : this.sortMode === "recent" ? "relevance" : "threaded", this.header.setSortMode(this.sortMode), this.sessionList.setSortMode(this.sortMode), this.requestRender();
|
|
585
|
+
}
|
|
586
|
+
toggleNameFilter() {
|
|
587
|
+
this.nameFilter = this.nameFilter === "all" ? "named" : "all", this.header.setNameFilter(this.nameFilter), this.sessionList.setNameFilter(this.nameFilter), this.requestRender();
|
|
588
|
+
}
|
|
589
|
+
async refreshSessionsAfterMutation() {
|
|
590
|
+
await this.loadScope(this.scope, "refresh");
|
|
591
|
+
}
|
|
592
|
+
toggleScope() {
|
|
593
|
+
if (this.scope === "current") {
|
|
594
|
+
if (this.scope = "all", this.header.setScope(this.scope), this.allSessions !== null) {
|
|
595
|
+
this.header.setLoading(!1), this.sessionList.setSessions(this.allSessions, !0), this.requestRender();
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
this.allLoading || this.loadScope("all", "toggle");
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
this.scope = "current", this.header.setScope(this.scope), this.header.setLoading(this.currentLoading), this.sessionList.setSessions(this.currentSessions ?? [], !1), this.requestRender();
|
|
602
|
+
}
|
|
603
|
+
getSessionList() {
|
|
604
|
+
return this.sessionList;
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
export {
|
|
609
|
+
SessionSelectorComponent
|
|
610
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/permission-mode-control.js
|
|
4
|
+
var PERMISSION_MODE_CONTROL_SYMBOL = /* @__PURE__ */ Symbol.for("@lunr/permission-mode-control");
|
|
5
|
+
function nextModeForGoal(current, event, saved) {
|
|
6
|
+
return event === "enter" ? current === "auto" ? { mode: "auto", saved } : saved !== void 0 ? { mode: current, saved } : { mode: "auto", saved: current } : current === "auto" && saved !== void 0 ? { mode: saved, saved: void 0 } : { mode: current, saved: void 0 };
|
|
7
|
+
}
|
|
8
|
+
function registerPermissionModeControlBridge(bridge) {
|
|
9
|
+
globalThis[PERMISSION_MODE_CONTROL_SYMBOL] = bridge;
|
|
10
|
+
}
|
|
11
|
+
function getPermissionModeControlBridge() {
|
|
12
|
+
return globalThis[PERMISSION_MODE_CONTROL_SYMBOL];
|
|
13
|
+
}
|
|
14
|
+
function enterGoalAuto() {
|
|
15
|
+
getPermissionModeControlBridge()?.enterGoalAuto();
|
|
16
|
+
}
|
|
17
|
+
function leaveGoalAuto() {
|
|
18
|
+
getPermissionModeControlBridge()?.leaveGoalAuto();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
nextModeForGoal,
|
|
23
|
+
registerPermissionModeControlBridge,
|
|
24
|
+
enterGoalAuto,
|
|
25
|
+
leaveGoalAuto
|
|
26
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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/lazy.js
|
|
4
|
+
var loadExtract = () => import("./extract-XLQSJN4V.js"), loadGeminiSearch = () => import("./gemini-search-U7SUMPQA.js"), loadCuratorServer = () => import("./curator-server-XCM43VEF.js"), loadSummaryReview = () => import("./summary-review-YSMXKITO.js"), loadGeminiWeb = () => import("./gemini-web-MM446SEH.js"), loadGeminiApi = () => import("./gemini-api-QE7ANVDZ.js"), loadOpenAISearch = () => import("./openai-search-B3MSNCQA.js"), loadBrave = () => import("./brave-UWDA3I22.js"), loadParallel = () => import("./parallel-AI2MNSCU.js"), loadTavily = () => import("./tavily-WEZFVFP7.js"), loadPerplexity = () => import("./perplexity-QVJW3I35.js"), loadExa = () => import("./exa-LL64QZR2.js"), loadGithubExtract = () => import("./github-extract-F64RZOEA.js"), loadPdfExtract = () => import("./pdf-extract-IPE6H4HP.js"), loadYoutubeExtract = () => import("./youtube-extract-TQYKGFGS.js"), loadVideoExtract = () => import("./video-extract-OYT5WKS5.js"), loadGeminiUrlContext = () => import("./gemini-url-context-PXWCBQHK.js");
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
loadExtract,
|
|
8
|
+
loadGeminiSearch,
|
|
9
|
+
loadCuratorServer,
|
|
10
|
+
loadSummaryReview,
|
|
11
|
+
loadGeminiWeb,
|
|
12
|
+
loadGeminiApi,
|
|
13
|
+
loadOpenAISearch,
|
|
14
|
+
loadBrave,
|
|
15
|
+
loadParallel,
|
|
16
|
+
loadTavily,
|
|
17
|
+
loadPerplexity,
|
|
18
|
+
loadExa,
|
|
19
|
+
loadGithubExtract,
|
|
20
|
+
loadPdfExtract,
|
|
21
|
+
loadYoutubeExtract,
|
|
22
|
+
loadVideoExtract,
|
|
23
|
+
loadGeminiUrlContext
|
|
24
|
+
};
|