@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,55 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/timings.js
|
|
4
|
+
var ENABLED = process.env.PI_TIMING === "1", timingNamespaces = /* @__PURE__ */ new Map(), importMainMs;
|
|
5
|
+
function noteImportMain(ms) {
|
|
6
|
+
importMainMs = ms;
|
|
7
|
+
}
|
|
8
|
+
function resetTimings(namespace = "main") {
|
|
9
|
+
if (!ENABLED)
|
|
10
|
+
return;
|
|
11
|
+
let timings = namespace === "main" && importMainMs !== void 0 ? [{ label: "import:main", ms: importMainMs }] : [];
|
|
12
|
+
timingNamespaces.set(namespace, { timings, lastTime: Date.now() });
|
|
13
|
+
}
|
|
14
|
+
function time(label, namespace = "main") {
|
|
15
|
+
if (!ENABLED)
|
|
16
|
+
return;
|
|
17
|
+
let now = Date.now();
|
|
18
|
+
timingNamespaces.has(namespace) || resetTimings(namespace);
|
|
19
|
+
let timingNamespace = timingNamespaces.get(namespace);
|
|
20
|
+
timingNamespace.timings.push({ label, ms: now - timingNamespace.lastTime }), timingNamespace.lastTime = now;
|
|
21
|
+
}
|
|
22
|
+
async function measureStartup(label, operation, namespace = "extensions") {
|
|
23
|
+
if (!ENABLED)
|
|
24
|
+
return operation();
|
|
25
|
+
let started = performance.now();
|
|
26
|
+
try {
|
|
27
|
+
return await operation();
|
|
28
|
+
} finally {
|
|
29
|
+
timingNamespaces.has(namespace) || resetTimings(namespace), timingNamespaces.get(namespace).timings.push({ label, ms: performance.now() - started });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function printTimingGroup(title, timings) {
|
|
33
|
+
let printableTimings = timings.filter((timing) => timing.ms >= 0);
|
|
34
|
+
if (printableTimings.length !== 0) {
|
|
35
|
+
console.error(`
|
|
36
|
+
--- ${title} ---`);
|
|
37
|
+
for (let t of printableTimings)
|
|
38
|
+
console.error(` ${t.label}: ${t.ms.toFixed(1)}ms`);
|
|
39
|
+
title.endsWith("main") && console.error(` TOTAL: ${printableTimings.reduce((a, b) => a + b.ms, 0).toFixed(1)}ms`), console.error(`${"-".repeat(title.length + 8)}
|
|
40
|
+
`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function printTimings() {
|
|
44
|
+
if (ENABLED)
|
|
45
|
+
for (let [namespace, timingNamespace] of timingNamespaces)
|
|
46
|
+
printTimingGroup(`Startup Timings: ${namespace}`, timingNamespace.timings);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
noteImportMain,
|
|
51
|
+
resetTimings,
|
|
52
|
+
time,
|
|
53
|
+
measureStartup,
|
|
54
|
+
printTimings
|
|
55
|
+
};
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__commonJS,
|
|
4
|
+
__require
|
|
5
|
+
} from "./chunk-BRJX2PRC.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/isexe/windows.js
|
|
8
|
+
var require_windows = __commonJS({
|
|
9
|
+
"node_modules/isexe/windows.js"(exports, module) {
|
|
10
|
+
module.exports = isexe;
|
|
11
|
+
isexe.sync = sync;
|
|
12
|
+
var fs = __require("fs");
|
|
13
|
+
function checkPathExt(path, options) {
|
|
14
|
+
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
15
|
+
if (!pathext || (pathext = pathext.split(";"), pathext.indexOf("") !== -1))
|
|
16
|
+
return !0;
|
|
17
|
+
for (var i = 0; i < pathext.length; i++) {
|
|
18
|
+
var p = pathext[i].toLowerCase();
|
|
19
|
+
if (p && path.substr(-p.length).toLowerCase() === p)
|
|
20
|
+
return !0;
|
|
21
|
+
}
|
|
22
|
+
return !1;
|
|
23
|
+
}
|
|
24
|
+
function checkStat(stat, path, options) {
|
|
25
|
+
return !stat.isSymbolicLink() && !stat.isFile() ? !1 : checkPathExt(path, options);
|
|
26
|
+
}
|
|
27
|
+
function isexe(path, options, cb) {
|
|
28
|
+
fs.stat(path, function(er, stat) {
|
|
29
|
+
cb(er, er ? !1 : checkStat(stat, path, options));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function sync(path, options) {
|
|
33
|
+
return checkStat(fs.statSync(path), path, options);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// node_modules/isexe/mode.js
|
|
39
|
+
var require_mode = __commonJS({
|
|
40
|
+
"node_modules/isexe/mode.js"(exports, module) {
|
|
41
|
+
module.exports = isexe;
|
|
42
|
+
isexe.sync = sync;
|
|
43
|
+
var fs = __require("fs");
|
|
44
|
+
function isexe(path, options, cb) {
|
|
45
|
+
fs.stat(path, function(er, stat) {
|
|
46
|
+
cb(er, er ? !1 : checkStat(stat, options));
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function sync(path, options) {
|
|
50
|
+
return checkStat(fs.statSync(path), options);
|
|
51
|
+
}
|
|
52
|
+
function checkStat(stat, options) {
|
|
53
|
+
return stat.isFile() && checkMode(stat, options);
|
|
54
|
+
}
|
|
55
|
+
function checkMode(stat, options) {
|
|
56
|
+
var mod = stat.mode, uid = stat.uid, gid = stat.gid, myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid(), myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid(), u = parseInt("100", 8), g = parseInt("010", 8), o = parseInt("001", 8), ug = u | g, ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
57
|
+
return ret;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// node_modules/isexe/index.js
|
|
63
|
+
var require_isexe = __commonJS({
|
|
64
|
+
"node_modules/isexe/index.js"(exports, module) {
|
|
65
|
+
var fs = __require("fs"), core;
|
|
66
|
+
process.platform === "win32" || global.TESTING_WINDOWS ? core = require_windows() : core = require_mode();
|
|
67
|
+
module.exports = isexe;
|
|
68
|
+
isexe.sync = sync;
|
|
69
|
+
function isexe(path, options, cb) {
|
|
70
|
+
if (typeof options == "function" && (cb = options, options = {}), !cb) {
|
|
71
|
+
if (typeof Promise != "function")
|
|
72
|
+
throw new TypeError("callback not provided");
|
|
73
|
+
return new Promise(function(resolve, reject) {
|
|
74
|
+
isexe(path, options || {}, function(er, is) {
|
|
75
|
+
er ? reject(er) : resolve(is);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
core(path, options || {}, function(er, is) {
|
|
80
|
+
er && (er.code === "EACCES" || options && options.ignoreErrors) && (er = null, is = !1), cb(er, is);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function sync(path, options) {
|
|
84
|
+
try {
|
|
85
|
+
return core.sync(path, options || {});
|
|
86
|
+
} catch (er) {
|
|
87
|
+
if (options && options.ignoreErrors || er.code === "EACCES")
|
|
88
|
+
return !1;
|
|
89
|
+
throw er;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
// node_modules/which/which.js
|
|
96
|
+
var require_which = __commonJS({
|
|
97
|
+
"node_modules/which/which.js"(exports, module) {
|
|
98
|
+
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", path = __require("path"), COLON = isWindows ? ";" : ":", isexe = require_isexe(), getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), getPathInfo = (cmd, opt) => {
|
|
99
|
+
let colon = opt.colon || COLON, pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
100
|
+
// windows always checks the cwd first
|
|
101
|
+
...isWindows ? [process.cwd()] : [],
|
|
102
|
+
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
103
|
+
"").split(colon)
|
|
104
|
+
], pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
105
|
+
return isWindows && cmd.indexOf(".") !== -1 && pathExt[0] !== "" && pathExt.unshift(""), {
|
|
106
|
+
pathEnv,
|
|
107
|
+
pathExt,
|
|
108
|
+
pathExtExe
|
|
109
|
+
};
|
|
110
|
+
}, which = (cmd, opt, cb) => {
|
|
111
|
+
typeof opt == "function" && (cb = opt, opt = {}), opt || (opt = {});
|
|
112
|
+
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [], step = (i) => new Promise((resolve, reject) => {
|
|
113
|
+
if (i === pathEnv.length)
|
|
114
|
+
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
115
|
+
let ppRaw = pathEnv[i], pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw, pCmd = path.join(pathPart, cmd), p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
116
|
+
resolve(subStep(p, i, 0));
|
|
117
|
+
}), subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
118
|
+
if (ii === pathExt.length)
|
|
119
|
+
return resolve(step(i + 1));
|
|
120
|
+
let ext = pathExt[ii];
|
|
121
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
122
|
+
if (!er && is)
|
|
123
|
+
if (opt.all)
|
|
124
|
+
found.push(p + ext);
|
|
125
|
+
else
|
|
126
|
+
return resolve(p + ext);
|
|
127
|
+
return resolve(subStep(p, i, ii + 1));
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
131
|
+
}, whichSync = (cmd, opt) => {
|
|
132
|
+
opt = opt || {};
|
|
133
|
+
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
|
|
134
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
135
|
+
let ppRaw = pathEnv[i], pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw, pCmd = path.join(pathPart, cmd), p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
136
|
+
for (let j = 0; j < pathExt.length; j++) {
|
|
137
|
+
let cur = p + pathExt[j];
|
|
138
|
+
try {
|
|
139
|
+
if (isexe.sync(cur, { pathExt: pathExtExe }))
|
|
140
|
+
if (opt.all)
|
|
141
|
+
found.push(cur);
|
|
142
|
+
else
|
|
143
|
+
return cur;
|
|
144
|
+
} catch {
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (opt.all && found.length)
|
|
149
|
+
return found;
|
|
150
|
+
if (opt.nothrow)
|
|
151
|
+
return null;
|
|
152
|
+
throw getNotFoundError(cmd);
|
|
153
|
+
};
|
|
154
|
+
module.exports = which;
|
|
155
|
+
which.sync = whichSync;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
// node_modules/path-key/index.js
|
|
160
|
+
var require_path_key = __commonJS({
|
|
161
|
+
"node_modules/path-key/index.js"(exports, module) {
|
|
162
|
+
"use strict";
|
|
163
|
+
var pathKey = (options = {}) => {
|
|
164
|
+
let environment = options.env || process.env;
|
|
165
|
+
return (options.platform || process.platform) !== "win32" ? "PATH" : Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
166
|
+
};
|
|
167
|
+
module.exports = pathKey;
|
|
168
|
+
module.exports.default = pathKey;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
173
|
+
var require_resolveCommand = __commonJS({
|
|
174
|
+
"node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
175
|
+
"use strict";
|
|
176
|
+
var path = __require("path"), which = require_which(), getPathKey = require_path_key();
|
|
177
|
+
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
178
|
+
let env = parsed.options.env || process.env, cwd = process.cwd(), hasCustomCwd = parsed.options.cwd != null, shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
179
|
+
if (shouldSwitchCwd)
|
|
180
|
+
try {
|
|
181
|
+
process.chdir(parsed.options.cwd);
|
|
182
|
+
} catch {
|
|
183
|
+
}
|
|
184
|
+
let resolved;
|
|
185
|
+
try {
|
|
186
|
+
resolved = which.sync(parsed.command, {
|
|
187
|
+
path: env[getPathKey({ env })],
|
|
188
|
+
pathExt: withoutPathExt ? path.delimiter : void 0
|
|
189
|
+
});
|
|
190
|
+
} catch {
|
|
191
|
+
} finally {
|
|
192
|
+
shouldSwitchCwd && process.chdir(cwd);
|
|
193
|
+
}
|
|
194
|
+
return resolved && (resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved)), resolved;
|
|
195
|
+
}
|
|
196
|
+
function resolveCommand(parsed) {
|
|
197
|
+
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, !0);
|
|
198
|
+
}
|
|
199
|
+
module.exports = resolveCommand;
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
// node_modules/cross-spawn/lib/util/escape.js
|
|
204
|
+
var require_escape = __commonJS({
|
|
205
|
+
"node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
206
|
+
"use strict";
|
|
207
|
+
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
208
|
+
function escapeCommand(arg) {
|
|
209
|
+
return arg = arg.replace(metaCharsRegExp, "^$1"), arg;
|
|
210
|
+
}
|
|
211
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
212
|
+
return arg = `${arg}`, arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1"), arg = `"${arg}"`, arg = arg.replace(metaCharsRegExp, "^$1"), doubleEscapeMetaChars && (arg = arg.replace(metaCharsRegExp, "^$1")), arg;
|
|
213
|
+
}
|
|
214
|
+
module.exports.command = escapeCommand;
|
|
215
|
+
module.exports.argument = escapeArgument;
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
// node_modules/shebang-regex/index.js
|
|
220
|
+
var require_shebang_regex = __commonJS({
|
|
221
|
+
"node_modules/shebang-regex/index.js"(exports, module) {
|
|
222
|
+
"use strict";
|
|
223
|
+
module.exports = /^#!(.*)/;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
// node_modules/shebang-command/index.js
|
|
228
|
+
var require_shebang_command = __commonJS({
|
|
229
|
+
"node_modules/shebang-command/index.js"(exports, module) {
|
|
230
|
+
"use strict";
|
|
231
|
+
var shebangRegex = require_shebang_regex();
|
|
232
|
+
module.exports = (string = "") => {
|
|
233
|
+
let match = string.match(shebangRegex);
|
|
234
|
+
if (!match)
|
|
235
|
+
return null;
|
|
236
|
+
let [path, argument] = match[0].replace(/#! ?/, "").split(" "), binary = path.split("/").pop();
|
|
237
|
+
return binary === "env" ? argument : argument ? `${binary} ${argument}` : binary;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// node_modules/cross-spawn/lib/util/readShebang.js
|
|
243
|
+
var require_readShebang = __commonJS({
|
|
244
|
+
"node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
245
|
+
"use strict";
|
|
246
|
+
var fs = __require("fs"), shebangCommand = require_shebang_command();
|
|
247
|
+
function readShebang(command) {
|
|
248
|
+
let buffer = Buffer.alloc(150), fd;
|
|
249
|
+
try {
|
|
250
|
+
fd = fs.openSync(command, "r"), fs.readSync(fd, buffer, 0, 150, 0), fs.closeSync(fd);
|
|
251
|
+
} catch {
|
|
252
|
+
}
|
|
253
|
+
return shebangCommand(buffer.toString());
|
|
254
|
+
}
|
|
255
|
+
module.exports = readShebang;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
// node_modules/cross-spawn/lib/parse.js
|
|
260
|
+
var require_parse = __commonJS({
|
|
261
|
+
"node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
262
|
+
"use strict";
|
|
263
|
+
var path = __require("path"), resolveCommand = require_resolveCommand(), escape = require_escape(), readShebang = require_readShebang(), isWin = process.platform === "win32", isExecutableRegExp = /\.(?:com|exe)$/i, isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
264
|
+
function detectShebang(parsed) {
|
|
265
|
+
parsed.file = resolveCommand(parsed);
|
|
266
|
+
let shebang = parsed.file && readShebang(parsed.file);
|
|
267
|
+
return shebang ? (parsed.args.unshift(parsed.file), parsed.command = shebang, resolveCommand(parsed)) : parsed.file;
|
|
268
|
+
}
|
|
269
|
+
function parseNonShell(parsed) {
|
|
270
|
+
if (!isWin)
|
|
271
|
+
return parsed;
|
|
272
|
+
let commandFile = detectShebang(parsed), needsShell = !isExecutableRegExp.test(commandFile);
|
|
273
|
+
if (parsed.options.forceShell || needsShell) {
|
|
274
|
+
let needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
275
|
+
parsed.command = path.normalize(parsed.command), parsed.command = escape.command(parsed.command), parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
276
|
+
let shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
277
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`], parsed.command = process.env.comspec || "cmd.exe", parsed.options.windowsVerbatimArguments = !0;
|
|
278
|
+
}
|
|
279
|
+
return parsed;
|
|
280
|
+
}
|
|
281
|
+
function parse(command, args, options) {
|
|
282
|
+
args && !Array.isArray(args) && (options = args, args = null), args = args ? args.slice(0) : [], options = Object.assign({}, options);
|
|
283
|
+
let parsed = {
|
|
284
|
+
command,
|
|
285
|
+
args,
|
|
286
|
+
options,
|
|
287
|
+
file: void 0,
|
|
288
|
+
original: {
|
|
289
|
+
command,
|
|
290
|
+
args
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
294
|
+
}
|
|
295
|
+
module.exports = parse;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
// node_modules/cross-spawn/lib/enoent.js
|
|
300
|
+
var require_enoent = __commonJS({
|
|
301
|
+
"node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
302
|
+
"use strict";
|
|
303
|
+
var isWin = process.platform === "win32";
|
|
304
|
+
function notFoundError(original, syscall) {
|
|
305
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
306
|
+
code: "ENOENT",
|
|
307
|
+
errno: "ENOENT",
|
|
308
|
+
syscall: `${syscall} ${original.command}`,
|
|
309
|
+
path: original.command,
|
|
310
|
+
spawnargs: original.args
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
function hookChildProcess(cp, parsed) {
|
|
314
|
+
if (!isWin)
|
|
315
|
+
return;
|
|
316
|
+
let originalEmit = cp.emit;
|
|
317
|
+
cp.emit = function(name, arg1) {
|
|
318
|
+
if (name === "exit") {
|
|
319
|
+
let err = verifyENOENT(arg1, parsed);
|
|
320
|
+
if (err)
|
|
321
|
+
return originalEmit.call(cp, "error", err);
|
|
322
|
+
}
|
|
323
|
+
return originalEmit.apply(cp, arguments);
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function verifyENOENT(status, parsed) {
|
|
327
|
+
return isWin && status === 1 && !parsed.file ? notFoundError(parsed.original, "spawn") : null;
|
|
328
|
+
}
|
|
329
|
+
function verifyENOENTSync(status, parsed) {
|
|
330
|
+
return isWin && status === 1 && !parsed.file ? notFoundError(parsed.original, "spawnSync") : null;
|
|
331
|
+
}
|
|
332
|
+
module.exports = {
|
|
333
|
+
hookChildProcess,
|
|
334
|
+
verifyENOENT,
|
|
335
|
+
verifyENOENTSync,
|
|
336
|
+
notFoundError
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
// node_modules/cross-spawn/index.js
|
|
342
|
+
var require_cross_spawn = __commonJS({
|
|
343
|
+
"node_modules/cross-spawn/index.js"(exports, module) {
|
|
344
|
+
"use strict";
|
|
345
|
+
var cp = __require("child_process"), parse = require_parse(), enoent = require_enoent();
|
|
346
|
+
function spawn(command, args, options) {
|
|
347
|
+
let parsed = parse(command, args, options), spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
348
|
+
return enoent.hookChildProcess(spawned, parsed), spawned;
|
|
349
|
+
}
|
|
350
|
+
function spawnSync(command, args, options) {
|
|
351
|
+
let parsed = parse(command, args, options), result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
352
|
+
return result.error = result.error || enoent.verifyENOENTSync(result.status, parsed), result;
|
|
353
|
+
}
|
|
354
|
+
module.exports = spawn;
|
|
355
|
+
module.exports.spawn = spawn;
|
|
356
|
+
module.exports.sync = spawnSync;
|
|
357
|
+
module.exports._parse = parse;
|
|
358
|
+
module.exports._enoent = enoent;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
export {
|
|
363
|
+
require_cross_spawn
|
|
364
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
clipboard,
|
|
4
|
+
isWaylandSession
|
|
5
|
+
} from "./chunk-NUIFPZWX.js";
|
|
6
|
+
|
|
7
|
+
// packages/coding-agent/dist/utils/clipboard.js
|
|
8
|
+
import { execSync, spawn } from "child_process";
|
|
9
|
+
import { platform } from "os";
|
|
10
|
+
function copyToX11Clipboard(options) {
|
|
11
|
+
try {
|
|
12
|
+
execSync("xclip -selection clipboard", options);
|
|
13
|
+
} catch {
|
|
14
|
+
execSync("xsel --clipboard --input", options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
var MAX_OSC52_ENCODED_LENGTH = 1e5;
|
|
18
|
+
function isRemoteSession(env = process.env) {
|
|
19
|
+
return !!(env.SSH_CONNECTION || env.SSH_CLIENT || env.MOSH_CONNECTION);
|
|
20
|
+
}
|
|
21
|
+
function emitOsc52(text) {
|
|
22
|
+
let encoded = Buffer.from(text).toString("base64");
|
|
23
|
+
return encoded.length > MAX_OSC52_ENCODED_LENGTH ? !1 : (process.stdout.write(`\x1B]52;c;${encoded}\x07`), !0);
|
|
24
|
+
}
|
|
25
|
+
async function readClipboardText() {
|
|
26
|
+
if (!clipboard)
|
|
27
|
+
return null;
|
|
28
|
+
try {
|
|
29
|
+
return await clipboard.getText() || null;
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async function copyToClipboard(text) {
|
|
35
|
+
let copied = !1, p = platform();
|
|
36
|
+
try {
|
|
37
|
+
clipboard && p !== "linux" && (await clipboard.setText(text), copied = !0);
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
let remote = isRemoteSession();
|
|
41
|
+
if (copied && !remote)
|
|
42
|
+
return;
|
|
43
|
+
let options = { input: text, timeout: 5e3, stdio: ["pipe", "ignore", "ignore"] };
|
|
44
|
+
if (!copied)
|
|
45
|
+
try {
|
|
46
|
+
if (p === "darwin")
|
|
47
|
+
execSync("pbcopy", options), copied = !0;
|
|
48
|
+
else if (p === "win32")
|
|
49
|
+
execSync("clip", options), copied = !0;
|
|
50
|
+
else {
|
|
51
|
+
if (process.env.TERMUX_VERSION)
|
|
52
|
+
try {
|
|
53
|
+
execSync("termux-clipboard-set", options), copied = !0;
|
|
54
|
+
} catch {
|
|
55
|
+
}
|
|
56
|
+
if (!copied) {
|
|
57
|
+
let hasWaylandDisplay = !!process.env.WAYLAND_DISPLAY, hasX11Display = !!process.env.DISPLAY;
|
|
58
|
+
if (isWaylandSession() && hasWaylandDisplay)
|
|
59
|
+
try {
|
|
60
|
+
execSync("which wl-copy", { stdio: "ignore" });
|
|
61
|
+
let proc = spawn("wl-copy", [], { stdio: ["pipe", "ignore", "ignore"] });
|
|
62
|
+
proc.stdin.on("error", () => {
|
|
63
|
+
}), proc.stdin.write(text), proc.stdin.end(), proc.unref(), copied = !0;
|
|
64
|
+
} catch {
|
|
65
|
+
hasX11Display && (copyToX11Clipboard(options), copied = !0);
|
|
66
|
+
}
|
|
67
|
+
else hasX11Display && (copyToX11Clipboard(options), copied = !0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
} catch {
|
|
71
|
+
}
|
|
72
|
+
if (remote || !copied) {
|
|
73
|
+
let osc52Copied = emitOsc52(text);
|
|
74
|
+
copied = copied || osc52Copied;
|
|
75
|
+
}
|
|
76
|
+
if (!copied)
|
|
77
|
+
throw new Error("Failed to copy to clipboard");
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
readClipboardText,
|
|
82
|
+
copyToClipboard
|
|
83
|
+
};
|