@ashx-j/lunr-dev 0.2.13-dev.8.1 → 0.2.16-dev.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts +14 -0
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +37 -3
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts +1 -15
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +7 -21
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +6 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts +4 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js +163 -169
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +46 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js +109 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts +7 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js +211 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts +0 -5
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +0 -202
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js +251 -94
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts +4 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js +10 -3
- package/dist/builtin-extensions/pi-mcp-adapter/init.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js +6 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js +2 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +38 -14
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +2 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js +2 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.js +105 -54
- package/dist/builtin-extensions/pi-web-access/extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.js +82 -65
- package/dist/builtin-extensions/pi-web-access/gemini-search.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.js +2 -0
- package/dist/builtin-extensions/pi-web-access/github-extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.js +167 -77
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/lazy.d.ts +18 -0
- package/dist/builtin-extensions/pi-web-access/lazy.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/lazy.js +19 -0
- package/dist/builtin-extensions/pi-web-access/lazy.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts +6 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js +17 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js.map +1 -0
- package/dist/catalog/publication.json +12 -12
- package/dist/cli-runtime.d.ts +3 -0
- package/dist/cli-runtime.d.ts.map +1 -0
- package/dist/cli-runtime.js +73 -0
- package/dist/cli-runtime.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +14 -53
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +56 -12
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +10 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/extensions/host-static.d.ts.map +1 -1
- package/dist/core/extensions/host-static.js +34 -12
- package/dist/core/extensions/host-static.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +1 -2
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +10 -64
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +2 -0
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/permissions.d.ts +0 -2
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +10 -18
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/sdk.d.ts +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +0 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/timings.d.ts +2 -1
- package/dist/core/timings.d.ts.map +1 -1
- package/dist/core/timings.js +17 -2
- package/dist/core/timings.js.map +1 -1
- package/dist/gateway/commands.d.ts +1 -1
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +1 -18
- package/dist/gateway/commands.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +57 -48
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +12 -21
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +120 -144
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +95 -84
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/node-runtime/agent-session-services-IFJMSX7Z.js +36 -0
- package/dist/node-runtime/benchmark-request-UC7PD3V3.js +57 -0
- package/dist/node-runtime/brave-UWDA3I22.js +143 -0
- package/dist/node-runtime/builtin-extensions-LYZ3BFWQ.js +28 -0
- package/dist/node-runtime/chunk-2QKLKMKC.js +173 -0
- package/dist/node-runtime/chunk-3GHXVUAK.js +21 -0
- package/dist/node-runtime/chunk-3RCWXWAY.js +466 -0
- package/dist/node-runtime/chunk-3WFAEVKS.js +115 -0
- package/dist/node-runtime/chunk-3X3KZKMI.js +49 -0
- package/dist/node-runtime/chunk-4HXHDDCF.js +16 -0
- package/dist/node-runtime/chunk-4TLO4PO2.js +3427 -0
- package/dist/node-runtime/chunk-4ZWGEEAS.js +69 -0
- package/dist/node-runtime/chunk-53YJI7JU.js +137 -0
- package/dist/node-runtime/chunk-5P7PZMRU.js +610 -0
- package/dist/node-runtime/chunk-7N3YHTYF.js +26 -0
- package/dist/node-runtime/chunk-7NBZ5P7I.js +24 -0
- package/dist/node-runtime/chunk-A2KQXUJD.js +105 -0
- package/dist/node-runtime/chunk-AD6VXAO7.js +342 -0
- package/dist/node-runtime/chunk-AHSTJBIB.js +64 -0
- package/dist/node-runtime/chunk-AJX357CL.js +20211 -0
- package/dist/node-runtime/chunk-ARC4KOTI.js +11178 -0
- package/dist/node-runtime/chunk-AUXVGBO4.js +19 -0
- package/dist/node-runtime/chunk-AY6CAJSL.js +30 -0
- package/dist/node-runtime/chunk-BHO7O6E5.js +296 -0
- package/dist/node-runtime/chunk-BI3DHYCN.js +8845 -0
- package/dist/node-runtime/chunk-BR7YDUKA.js +109 -0
- package/dist/node-runtime/chunk-BRJX2PRC.js +53 -0
- package/dist/node-runtime/chunk-C4O2RSQQ.js +37 -0
- package/dist/node-runtime/chunk-CCZJ3PYY.js +17 -0
- package/dist/node-runtime/chunk-CDFZEWPU.js +8388 -0
- package/dist/node-runtime/chunk-CGBXPL3E.js +1171 -0
- package/dist/node-runtime/chunk-CJECDQKP.js +19 -0
- package/dist/node-runtime/chunk-DAPBPCBP.js +53 -0
- package/dist/node-runtime/chunk-DDGMHUOW.js +305 -0
- package/dist/node-runtime/chunk-DMMTJQMQ.js +43 -0
- package/dist/node-runtime/chunk-DVGWF6A2.js +1180 -0
- package/dist/node-runtime/chunk-ECD5L7YI.js +1369 -0
- package/dist/node-runtime/chunk-EDBJNRSM.js +46 -0
- package/dist/node-runtime/chunk-F4VQFJI2.js +1269 -0
- package/dist/node-runtime/chunk-FVDOXRUD.js +96 -0
- package/dist/node-runtime/chunk-GZQHMEWL.js +126 -0
- package/dist/node-runtime/chunk-H2EOZYMP.js +57 -0
- package/dist/node-runtime/chunk-HQCKFM2O.js +56 -0
- package/dist/node-runtime/chunk-HYHJIRDW.js +19 -0
- package/dist/node-runtime/chunk-I6R76AG7.js +22 -0
- package/dist/node-runtime/chunk-IPA627GP.js +296 -0
- package/dist/node-runtime/chunk-JHYKXIMM.js +378 -0
- package/dist/node-runtime/chunk-KKSIVROT.js +88 -0
- package/dist/node-runtime/chunk-LZAW4ZX3.js +633 -0
- package/dist/node-runtime/chunk-M3LZLQW2.js +98 -0
- package/dist/node-runtime/chunk-MGWCVY6Y.js +47 -0
- package/dist/node-runtime/chunk-MJQDX3BA.js +72 -0
- package/dist/node-runtime/chunk-MKKH27PH.js +8956 -0
- package/dist/node-runtime/chunk-MX3GJNXJ.js +986 -0
- package/dist/node-runtime/chunk-N77MY65L.js +966 -0
- package/dist/node-runtime/chunk-NUIFPZWX.js +209 -0
- package/dist/node-runtime/chunk-OBMWP3I5.js +68 -0
- package/dist/node-runtime/chunk-OR4L3IB2.js +42 -0
- package/dist/node-runtime/chunk-PBC2Y6GS.js +903 -0
- package/dist/node-runtime/chunk-PCGNAY2O.js +1324 -0
- package/dist/node-runtime/chunk-PCIGF2XK.js +250 -0
- package/dist/node-runtime/chunk-PGAJ5MO5.js +7558 -0
- package/dist/node-runtime/chunk-PL6JKXWI.js +3622 -0
- package/dist/node-runtime/chunk-PVCDKGR6.js +55 -0
- package/dist/node-runtime/chunk-Q4Q6D4IY.js +364 -0
- package/dist/node-runtime/chunk-Q5ZU2VRT.js +83 -0
- package/dist/node-runtime/chunk-QFWG2RVL.js +5477 -0
- package/dist/node-runtime/chunk-QH42CDX3.js +9451 -0
- package/dist/node-runtime/chunk-RQ2Q5IYR.js +72 -0
- package/dist/node-runtime/chunk-RQ5DNUNG.js +429 -0
- package/dist/node-runtime/chunk-RRIZE6QQ.js +17 -0
- package/dist/node-runtime/chunk-SN6G4OU6.js +4753 -0
- package/dist/node-runtime/chunk-SWSN6HAB.js +53 -0
- package/dist/node-runtime/chunk-TQNSPERU.js +949 -0
- package/dist/node-runtime/chunk-VRB2IYGG.js +53 -0
- package/dist/node-runtime/chunk-VSELYKWU.js +772 -0
- package/dist/node-runtime/chunk-W3CVH5RX.js +62 -0
- package/dist/node-runtime/chunk-WJVFOIB5.js +24921 -0
- package/dist/node-runtime/chunk-WOVTOV5P.js +5653 -0
- package/dist/node-runtime/chunk-XBWPBZBN.js +125 -0
- package/dist/node-runtime/chunk-XTHQ7XR7.js +509 -0
- package/dist/node-runtime/chunk-YF63P5ZT.js +864 -0
- package/dist/node-runtime/chunk-YSKSB3BJ.js +295 -0
- package/dist/node-runtime/chunk-ZCHMJ34K.js +130 -0
- package/dist/node-runtime/chunk-ZKMFUD3Q.js +2834 -0
- package/dist/node-runtime/cli-runtime.js +81 -0
- package/dist/node-runtime/clipboard-OZ63BBC6.js +12 -0
- package/dist/node-runtime/clipboard-image-7QR6GXVA.js +13 -0
- package/dist/node-runtime/command-L3LAHDIH.js +13 -0
- package/dist/node-runtime/commands-RL5YBW5I.js +291 -0
- package/dist/node-runtime/config-FMEOZSWE.js +77 -0
- package/dist/node-runtime/curator-server-XCM43VEF.js +3816 -0
- package/dist/node-runtime/customize-XEXL2DGQ.js +12 -0
- package/dist/node-runtime/direct-tool-executor-JVDXTO7A.js +188 -0
- package/dist/node-runtime/exa-LL64QZR2.js +329 -0
- package/dist/node-runtime/export-html-KR26FOUZ.js +150 -0
- package/dist/node-runtime/extension-input-RV5N6APL.js +14 -0
- package/dist/node-runtime/extension-selector-CPD5LWDD.js +14 -0
- package/dist/node-runtime/extract-XLQSJN4V.js +17 -0
- package/dist/node-runtime/file-sync-HCOP2QVF.js +117 -0
- package/dist/node-runtime/gateway-X2TI5X7F.js +2484 -0
- package/dist/node-runtime/gemini-api-QE7ANVDZ.js +29 -0
- package/dist/node-runtime/gemini-search-U7SUMPQA.js +330 -0
- package/dist/node-runtime/gemini-url-context-PXWCBQHK.js +103 -0
- package/dist/node-runtime/gemini-web-MM446SEH.js +14 -0
- package/dist/node-runtime/github-extract-F64RZOEA.js +619 -0
- package/dist/node-runtime/goal-CZQ7FFQJ.js +1831 -0
- package/dist/node-runtime/index.js +859 -0
- package/dist/node-runtime/init-NJV2T55N.js +28 -0
- package/dist/node-runtime/install-cli-TH7IJJQQ.js +308 -0
- package/dist/node-runtime/interactive-mode-KOM35YF2.js +56 -0
- package/dist/node-runtime/interactive-view-U6OILKF3.js +249 -0
- package/dist/node-runtime/lsp-manager-3ASUSO4T.js +1104 -0
- package/dist/node-runtime/lunr-cron-YJ5UHYRD.js +268 -0
- package/dist/node-runtime/main.js +54 -0
- package/dist/node-runtime/mcp-auth-flow-QIXHW6QN.js +32 -0
- package/dist/node-runtime/mcp-panel-IIGMXQGP.js +501 -0
- package/dist/node-runtime/mcp-setup-panel-FEK7663I.js +355 -0
- package/dist/node-runtime/memory-cap-3S4XRLNP.js +20 -0
- package/dist/node-runtime/model-tiers-NJLHUEGK.js +20 -0
- package/dist/node-runtime/openai-search-B3MSNCQA.js +288 -0
- package/dist/node-runtime/package-manager-cli-TZZHJCVI.js +749 -0
- package/dist/node-runtime/parallel-AI2MNSCU.js +265 -0
- package/dist/node-runtime/parser-manager-TQHWYDH7.js +152 -0
- package/dist/node-runtime/pdf-extract-IPE6H4HP.js +57 -0
- package/dist/node-runtime/perplexity-QVJW3I35.js +12 -0
- package/dist/node-runtime/pi-intercom-EEMBGQID.js +2215 -0
- package/dist/node-runtime/pi-mcp-adapter-QFB37AVN.js +422 -0
- package/dist/node-runtime/pi-ollama-cloud-4VZRMULP.js +1440 -0
- package/dist/node-runtime/pi-prompt-template-model-4QT4LLXF.js +3946 -0
- package/dist/node-runtime/pi-subagents-7XJ4H53P.js +6023 -0
- package/dist/node-runtime/pi-web-access-DPGAVKOA.js +1864 -0
- package/dist/node-runtime/print-mode-VWIRFDAC.js +12 -0
- package/dist/node-runtime/proxy-modes-HEEFK4KC.js +685 -0
- package/dist/node-runtime/rpc-entry.js +62 -0
- package/dist/node-runtime/rpc-mode-SJNSOA4G.js +13 -0
- package/dist/node-runtime/runtime-bridges-PPHNBFWL.js +14 -0
- package/dist/node-runtime/session-manager-MQNBYACL.js +35 -0
- package/dist/node-runtime/session-selector-5AZLJS6U.js +14 -0
- package/dist/node-runtime/settings-manager-5LF2VQWC.js +21 -0
- package/dist/node-runtime/src-Y7JSCK64.js +2407 -0
- package/dist/node-runtime/subagent-executor-5RNDEPIJ.js +8483 -0
- package/dist/node-runtime/summary-review-YSMXKITO.js +228 -0
- package/dist/node-runtime/tavily-WEZFVFP7.js +154 -0
- package/dist/node-runtime/timings-UAD5BEAS.js +16 -0
- package/dist/node-runtime/tool-renderer-MV5O452K.js +204 -0
- package/dist/node-runtime/update-cli-A253SZ7P.js +73 -0
- package/dist/node-runtime/v4-5MNC3H7G.js +424 -0
- package/dist/node-runtime/video-extract-OYT5WKS5.js +304 -0
- package/dist/node-runtime/workspace-index-6DBXSTJ6.js +163 -0
- package/dist/node-runtime/youtube-extract-TQYKGFGS.js +264 -0
- package/dist/startup/benchmark-request.d.ts +3 -0
- package/dist/startup/benchmark-request.d.ts.map +1 -0
- package/dist/startup/benchmark-request.js +65 -0
- package/dist/startup/benchmark-request.js.map +1 -0
- package/dist/startup/interactive-view.d.ts +55 -0
- package/dist/startup/interactive-view.d.ts.map +1 -0
- package/dist/startup/interactive-view.js +332 -0
- package/dist/startup/interactive-view.js.map +1 -0
- package/dist/startup/launch-routing.d.ts.map +1 -1
- package/dist/startup/launch-routing.js +9 -10
- package/dist/startup/launch-routing.js.map +1 -1
- package/dist/startup/startup-milestones.d.ts +1 -1
- package/dist/startup/startup-milestones.d.ts.map +1 -1
- package/dist/startup/startup-milestones.js +3 -2
- package/dist/startup/startup-milestones.js.map +1 -1
- package/dist/utils/await-with-abort.d.ts +2 -0
- package/dist/utils/await-with-abort.d.ts.map +1 -0
- package/dist/utils/await-with-abort.js +19 -0
- package/dist/utils/await-with-abort.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +10 -4
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/docs/compaction.md +5 -3
- package/docs/development.md +5 -1
- package/docs/features.md +0 -1
- package/docs/interactive-startup.md +98 -0
- package/docs/usage.md +0 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +20 -20
- package/dist/core/swarm.d.ts +0 -23
- package/dist/core/swarm.d.ts.map +0 -1
- package/dist/core/swarm.js +0 -45
- package/dist/core/swarm.js.map +0 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
getAgentDir
|
|
4
|
+
} from "./chunk-PCIGF2XK.js";
|
|
5
|
+
|
|
6
|
+
// packages/coding-agent/dist/core/keybindings.js
|
|
7
|
+
import { TUI_KEYBINDINGS, KeybindingsManager as TuiKeybindingsManager } from "@ashx-j/lunr-tui";
|
|
8
|
+
import { existsSync, readFileSync } from "fs";
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
var KEYBINDINGS = {
|
|
11
|
+
...TUI_KEYBINDINGS,
|
|
12
|
+
"app.interrupt": { defaultKeys: "escape", description: "Cancel or abort" },
|
|
13
|
+
"app.clear": { defaultKeys: "ctrl+c", description: "Clear editor" },
|
|
14
|
+
"app.exit": { defaultKeys: "ctrl+d", description: "Exit when editor is empty" },
|
|
15
|
+
"app.suspend": {
|
|
16
|
+
defaultKeys: process.platform === "win32" ? [] : "ctrl+z",
|
|
17
|
+
description: "Suspend to background"
|
|
18
|
+
},
|
|
19
|
+
"app.thinking.cycle": {
|
|
20
|
+
defaultKeys: [],
|
|
21
|
+
description: "Cycle thinking level"
|
|
22
|
+
},
|
|
23
|
+
"app.mode.cycle": {
|
|
24
|
+
defaultKeys: "shift+tab",
|
|
25
|
+
description: "Cycle permission mode"
|
|
26
|
+
},
|
|
27
|
+
"app.model.cycleForward": {
|
|
28
|
+
defaultKeys: "ctrl+p",
|
|
29
|
+
description: "Cycle to next model"
|
|
30
|
+
},
|
|
31
|
+
"app.model.cycleBackward": {
|
|
32
|
+
defaultKeys: "shift+ctrl+p",
|
|
33
|
+
description: "Cycle to previous model"
|
|
34
|
+
},
|
|
35
|
+
"app.model.select": { defaultKeys: "ctrl+l", description: "Open model selector" },
|
|
36
|
+
"app.tools.expand": { defaultKeys: [], description: "Toggle tool output (unbound; click a card instead)" },
|
|
37
|
+
"app.chat.pageUp": {
|
|
38
|
+
defaultKeys: ["shift+pageUp", "ctrl+up"],
|
|
39
|
+
description: "Scroll chat up"
|
|
40
|
+
},
|
|
41
|
+
"app.chat.pageDown": {
|
|
42
|
+
defaultKeys: ["shift+pageDown", "ctrl+down"],
|
|
43
|
+
description: "Scroll chat down"
|
|
44
|
+
},
|
|
45
|
+
"app.thinking.toggle": {
|
|
46
|
+
defaultKeys: "ctrl+t",
|
|
47
|
+
description: "Toggle thinking blocks"
|
|
48
|
+
},
|
|
49
|
+
"app.session.toggleNamedFilter": {
|
|
50
|
+
defaultKeys: "ctrl+n",
|
|
51
|
+
description: "Toggle named session filter"
|
|
52
|
+
},
|
|
53
|
+
"app.editor.external": {
|
|
54
|
+
defaultKeys: "ctrl+g",
|
|
55
|
+
description: "Open external editor"
|
|
56
|
+
},
|
|
57
|
+
"app.message.copy": {
|
|
58
|
+
defaultKeys: "ctrl+x",
|
|
59
|
+
description: "Copy message to clipboard"
|
|
60
|
+
},
|
|
61
|
+
"app.message.followUp": {
|
|
62
|
+
defaultKeys: "alt+enter",
|
|
63
|
+
description: "Queue follow-up message"
|
|
64
|
+
},
|
|
65
|
+
"app.message.dequeue": {
|
|
66
|
+
defaultKeys: "alt+up",
|
|
67
|
+
description: "Restore queued messages"
|
|
68
|
+
},
|
|
69
|
+
"app.clipboard.pasteImage": {
|
|
70
|
+
defaultKeys: process.platform === "win32" ? "alt+v" : "ctrl+v",
|
|
71
|
+
description: "Paste image from clipboard (text fallback)"
|
|
72
|
+
},
|
|
73
|
+
"app.session.new": { defaultKeys: [], description: "Start a new session" },
|
|
74
|
+
"app.session.tree": { defaultKeys: [], description: "Open session tree" },
|
|
75
|
+
"app.session.fork": { defaultKeys: [], description: "Fork current session" },
|
|
76
|
+
"app.session.resume": { defaultKeys: [], description: "Resume a session" },
|
|
77
|
+
"app.tree.foldOrUp": {
|
|
78
|
+
defaultKeys: process.platform === "darwin" ? ["alt+left", "ctrl+left"] : ["ctrl+left", "alt+left"],
|
|
79
|
+
description: "Fold tree branch or move up"
|
|
80
|
+
},
|
|
81
|
+
"app.tree.unfoldOrDown": {
|
|
82
|
+
defaultKeys: process.platform === "darwin" ? ["alt+right", "ctrl+right"] : ["ctrl+right", "alt+right"],
|
|
83
|
+
description: "Unfold tree branch or move down"
|
|
84
|
+
},
|
|
85
|
+
"app.tree.editLabel": {
|
|
86
|
+
defaultKeys: "shift+l",
|
|
87
|
+
description: "Edit tree label"
|
|
88
|
+
},
|
|
89
|
+
"app.tree.toggleLabelTimestamp": {
|
|
90
|
+
defaultKeys: "shift+t",
|
|
91
|
+
description: "Toggle tree label timestamps"
|
|
92
|
+
},
|
|
93
|
+
"app.session.togglePath": {
|
|
94
|
+
defaultKeys: "ctrl+p",
|
|
95
|
+
description: "Toggle session path display"
|
|
96
|
+
},
|
|
97
|
+
"app.session.toggleSort": {
|
|
98
|
+
defaultKeys: "ctrl+s",
|
|
99
|
+
description: "Toggle session sort mode"
|
|
100
|
+
},
|
|
101
|
+
"app.session.rename": {
|
|
102
|
+
defaultKeys: "ctrl+r",
|
|
103
|
+
description: "Rename session"
|
|
104
|
+
},
|
|
105
|
+
"app.session.delete": {
|
|
106
|
+
defaultKeys: "ctrl+d",
|
|
107
|
+
description: "Delete session"
|
|
108
|
+
},
|
|
109
|
+
"app.session.deleteNoninvasive": {
|
|
110
|
+
defaultKeys: "ctrl+backspace",
|
|
111
|
+
description: "Delete session when query is empty"
|
|
112
|
+
},
|
|
113
|
+
"app.models.save": {
|
|
114
|
+
defaultKeys: "ctrl+s",
|
|
115
|
+
description: "Save model selection"
|
|
116
|
+
},
|
|
117
|
+
"app.models.enableAll": {
|
|
118
|
+
defaultKeys: "ctrl+a",
|
|
119
|
+
description: "Enable all models"
|
|
120
|
+
},
|
|
121
|
+
"app.models.clearAll": {
|
|
122
|
+
defaultKeys: "ctrl+x",
|
|
123
|
+
description: "Clear all models"
|
|
124
|
+
},
|
|
125
|
+
"app.models.toggleProvider": {
|
|
126
|
+
defaultKeys: "ctrl+p",
|
|
127
|
+
description: "Toggle all models for provider"
|
|
128
|
+
},
|
|
129
|
+
"app.models.reorderUp": {
|
|
130
|
+
defaultKeys: "alt+up",
|
|
131
|
+
description: "Move model up in order"
|
|
132
|
+
},
|
|
133
|
+
"app.models.reorderDown": {
|
|
134
|
+
defaultKeys: "alt+down",
|
|
135
|
+
description: "Move model down in order"
|
|
136
|
+
},
|
|
137
|
+
"app.tree.filter.default": {
|
|
138
|
+
defaultKeys: "ctrl+d",
|
|
139
|
+
description: "Tree filter: default view"
|
|
140
|
+
},
|
|
141
|
+
"app.tree.filter.noTools": {
|
|
142
|
+
defaultKeys: "ctrl+t",
|
|
143
|
+
description: "Tree filter: hide tool results"
|
|
144
|
+
},
|
|
145
|
+
"app.tree.filter.userOnly": {
|
|
146
|
+
defaultKeys: "ctrl+u",
|
|
147
|
+
description: "Tree filter: user messages only"
|
|
148
|
+
},
|
|
149
|
+
"app.tree.filter.labeledOnly": {
|
|
150
|
+
defaultKeys: "ctrl+l",
|
|
151
|
+
description: "Tree filter: labeled entries only"
|
|
152
|
+
},
|
|
153
|
+
"app.tree.filter.all": {
|
|
154
|
+
defaultKeys: "ctrl+a",
|
|
155
|
+
description: "Tree filter: show all entries"
|
|
156
|
+
},
|
|
157
|
+
"app.tree.filter.cycleForward": {
|
|
158
|
+
defaultKeys: "ctrl+o",
|
|
159
|
+
description: "Tree filter: cycle forward"
|
|
160
|
+
},
|
|
161
|
+
"app.tree.filter.cycleBackward": {
|
|
162
|
+
defaultKeys: "shift+ctrl+o",
|
|
163
|
+
description: "Tree filter: cycle backward"
|
|
164
|
+
}
|
|
165
|
+
}, KEYBINDING_NAME_MIGRATIONS = {
|
|
166
|
+
cursorUp: "tui.editor.cursorUp",
|
|
167
|
+
cursorDown: "tui.editor.cursorDown",
|
|
168
|
+
cursorLeft: "tui.editor.cursorLeft",
|
|
169
|
+
cursorRight: "tui.editor.cursorRight",
|
|
170
|
+
cursorWordLeft: "tui.editor.cursorWordLeft",
|
|
171
|
+
cursorWordRight: "tui.editor.cursorWordRight",
|
|
172
|
+
cursorLineStart: "tui.editor.cursorLineStart",
|
|
173
|
+
cursorLineEnd: "tui.editor.cursorLineEnd",
|
|
174
|
+
jumpForward: "tui.editor.jumpForward",
|
|
175
|
+
jumpBackward: "tui.editor.jumpBackward",
|
|
176
|
+
pageUp: "tui.editor.pageUp",
|
|
177
|
+
pageDown: "tui.editor.pageDown",
|
|
178
|
+
deleteCharBackward: "tui.editor.deleteCharBackward",
|
|
179
|
+
deleteCharForward: "tui.editor.deleteCharForward",
|
|
180
|
+
deleteWordBackward: "tui.editor.deleteWordBackward",
|
|
181
|
+
deleteWordForward: "tui.editor.deleteWordForward",
|
|
182
|
+
deleteToLineStart: "tui.editor.deleteToLineStart",
|
|
183
|
+
deleteToLineEnd: "tui.editor.deleteToLineEnd",
|
|
184
|
+
yank: "tui.editor.yank",
|
|
185
|
+
yankPop: "tui.editor.yankPop",
|
|
186
|
+
undo: "tui.editor.undo",
|
|
187
|
+
newLine: "tui.input.newLine",
|
|
188
|
+
submit: "tui.input.submit",
|
|
189
|
+
tab: "tui.input.tab",
|
|
190
|
+
copy: "tui.input.copy",
|
|
191
|
+
selectUp: "tui.select.up",
|
|
192
|
+
selectDown: "tui.select.down",
|
|
193
|
+
selectPageUp: "tui.select.pageUp",
|
|
194
|
+
selectPageDown: "tui.select.pageDown",
|
|
195
|
+
selectConfirm: "tui.select.confirm",
|
|
196
|
+
selectCancel: "tui.select.cancel",
|
|
197
|
+
interrupt: "app.interrupt",
|
|
198
|
+
clear: "app.clear",
|
|
199
|
+
exit: "app.exit",
|
|
200
|
+
suspend: "app.suspend",
|
|
201
|
+
cycleThinkingLevel: "app.thinking.cycle",
|
|
202
|
+
cyclePermissionMode: "app.mode.cycle",
|
|
203
|
+
cycleModelForward: "app.model.cycleForward",
|
|
204
|
+
cycleModelBackward: "app.model.cycleBackward",
|
|
205
|
+
selectModel: "app.model.select",
|
|
206
|
+
expandTools: "app.tools.expand",
|
|
207
|
+
toggleThinking: "app.thinking.toggle",
|
|
208
|
+
toggleSessionNamedFilter: "app.session.toggleNamedFilter",
|
|
209
|
+
externalEditor: "app.editor.external",
|
|
210
|
+
followUp: "app.message.followUp",
|
|
211
|
+
dequeue: "app.message.dequeue",
|
|
212
|
+
pasteImage: "app.clipboard.pasteImage",
|
|
213
|
+
newSession: "app.session.new",
|
|
214
|
+
tree: "app.session.tree",
|
|
215
|
+
fork: "app.session.fork",
|
|
216
|
+
resume: "app.session.resume",
|
|
217
|
+
treeFoldOrUp: "app.tree.foldOrUp",
|
|
218
|
+
treeUnfoldOrDown: "app.tree.unfoldOrDown",
|
|
219
|
+
treeEditLabel: "app.tree.editLabel",
|
|
220
|
+
treeToggleLabelTimestamp: "app.tree.toggleLabelTimestamp",
|
|
221
|
+
toggleSessionPath: "app.session.togglePath",
|
|
222
|
+
toggleSessionSort: "app.session.toggleSort",
|
|
223
|
+
renameSession: "app.session.rename",
|
|
224
|
+
deleteSession: "app.session.delete",
|
|
225
|
+
deleteSessionNoninvasive: "app.session.deleteNoninvasive"
|
|
226
|
+
};
|
|
227
|
+
function isLegacyKeybindingName(key) {
|
|
228
|
+
return key in KEYBINDING_NAME_MIGRATIONS;
|
|
229
|
+
}
|
|
230
|
+
function toKeybindingsConfig(value) {
|
|
231
|
+
let config = {};
|
|
232
|
+
for (let [key, binding] of Object.entries(value)) {
|
|
233
|
+
if (typeof binding == "string") {
|
|
234
|
+
config[key] = binding;
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
Array.isArray(binding) && binding.every((entry) => typeof entry == "string") && (config[key] = binding);
|
|
238
|
+
}
|
|
239
|
+
return config;
|
|
240
|
+
}
|
|
241
|
+
function migrateKeybindingsConfig(rawConfig) {
|
|
242
|
+
let config = {}, migrated = !1;
|
|
243
|
+
for (let [key, value] of Object.entries(rawConfig)) {
|
|
244
|
+
let nextKey = isLegacyKeybindingName(key) ? KEYBINDING_NAME_MIGRATIONS[key] : key;
|
|
245
|
+
if (nextKey !== key && (migrated = !0), key !== nextKey && Object.hasOwn(rawConfig, nextKey)) {
|
|
246
|
+
migrated = !0;
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
config[nextKey] = value;
|
|
250
|
+
}
|
|
251
|
+
return { config: orderKeybindingsConfig(config), migrated };
|
|
252
|
+
}
|
|
253
|
+
function orderKeybindingsConfig(config) {
|
|
254
|
+
let ordered = {};
|
|
255
|
+
for (let keybinding of Object.keys(KEYBINDINGS))
|
|
256
|
+
Object.hasOwn(config, keybinding) && (ordered[keybinding] = config[keybinding]);
|
|
257
|
+
let extras = Object.keys(config).filter((key) => !Object.hasOwn(ordered, key)).sort();
|
|
258
|
+
for (let key of extras)
|
|
259
|
+
ordered[key] = config[key];
|
|
260
|
+
return ordered;
|
|
261
|
+
}
|
|
262
|
+
function loadRawConfig(path) {
|
|
263
|
+
if (existsSync(path))
|
|
264
|
+
try {
|
|
265
|
+
let parsed = JSON.parse(readFileSync(path, "utf-8"));
|
|
266
|
+
return typeof parsed != "object" || parsed === null ? void 0 : parsed;
|
|
267
|
+
} catch {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
var KeybindingsManager = class _KeybindingsManager extends TuiKeybindingsManager {
|
|
272
|
+
configPath;
|
|
273
|
+
constructor(userBindings = {}, configPath) {
|
|
274
|
+
super(KEYBINDINGS, userBindings), this.configPath = configPath;
|
|
275
|
+
}
|
|
276
|
+
static create(agentDir = getAgentDir()) {
|
|
277
|
+
let configPath = join(agentDir, "keybindings.json"), userBindings = _KeybindingsManager.loadFromFile(configPath);
|
|
278
|
+
return new _KeybindingsManager(userBindings, configPath);
|
|
279
|
+
}
|
|
280
|
+
reload() {
|
|
281
|
+
this.configPath && this.setUserBindings(_KeybindingsManager.loadFromFile(this.configPath));
|
|
282
|
+
}
|
|
283
|
+
getEffectiveConfig() {
|
|
284
|
+
return this.getResolvedBindings();
|
|
285
|
+
}
|
|
286
|
+
static loadFromFile(path) {
|
|
287
|
+
let rawConfig = loadRawConfig(path);
|
|
288
|
+
return rawConfig ? toKeybindingsConfig(migrateKeybindingsConfig(rawConfig).config) : {};
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export {
|
|
293
|
+
migrateKeybindingsConfig,
|
|
294
|
+
KeybindingsManager
|
|
295
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
getBinDir
|
|
4
|
+
} from "./chunk-PCIGF2XK.js";
|
|
5
|
+
|
|
6
|
+
// packages/coding-agent/dist/utils/shell.js
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { delimiter } from "node:path";
|
|
9
|
+
import { spawn, spawnSync } from "child_process";
|
|
10
|
+
function isLegacyWslBashPath(path) {
|
|
11
|
+
let normalized = path.replace(/\//g, "\\").toLowerCase();
|
|
12
|
+
return /^[a-z]:\\windows\\(?:system32|sysnative)\\bash\.exe$/.test(normalized);
|
|
13
|
+
}
|
|
14
|
+
function getBashShellConfig(shell) {
|
|
15
|
+
return isLegacyWslBashPath(shell) ? { shell, args: ["-s"], commandTransport: "stdin" } : { shell, args: ["-c"] };
|
|
16
|
+
}
|
|
17
|
+
function findBashOnPath() {
|
|
18
|
+
if (process.platform === "win32") {
|
|
19
|
+
try {
|
|
20
|
+
let result = spawnSync("where", ["bash.exe"], {
|
|
21
|
+
encoding: "utf-8",
|
|
22
|
+
timeout: 5e3,
|
|
23
|
+
windowsHide: !0
|
|
24
|
+
});
|
|
25
|
+
if (result.status === 0 && result.stdout) {
|
|
26
|
+
let firstMatch = result.stdout.trim().split(/\r?\n/)[0];
|
|
27
|
+
if (firstMatch && existsSync(firstMatch))
|
|
28
|
+
return firstMatch;
|
|
29
|
+
}
|
|
30
|
+
} catch {
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
let result = spawnSync("which", ["bash"], { encoding: "utf-8", timeout: 5e3 });
|
|
36
|
+
if (result.status === 0 && result.stdout) {
|
|
37
|
+
let firstMatch = result.stdout.trim().split(/\r?\n/)[0];
|
|
38
|
+
if (firstMatch)
|
|
39
|
+
return firstMatch;
|
|
40
|
+
}
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function getShellConfig(customShellPath) {
|
|
46
|
+
if (customShellPath) {
|
|
47
|
+
if (existsSync(customShellPath))
|
|
48
|
+
return getBashShellConfig(customShellPath);
|
|
49
|
+
throw new Error(`Custom shell path not found: ${customShellPath}`);
|
|
50
|
+
}
|
|
51
|
+
if (process.platform === "win32") {
|
|
52
|
+
let paths = [], programFiles = process.env.ProgramFiles;
|
|
53
|
+
programFiles && paths.push(`${programFiles}\\Git\\bin\\bash.exe`);
|
|
54
|
+
let programFilesX86 = process.env["ProgramFiles(x86)"];
|
|
55
|
+
programFilesX86 && paths.push(`${programFilesX86}\\Git\\bin\\bash.exe`);
|
|
56
|
+
for (let path of paths)
|
|
57
|
+
if (existsSync(path))
|
|
58
|
+
return getBashShellConfig(path);
|
|
59
|
+
let bashOnPath2 = findBashOnPath();
|
|
60
|
+
if (bashOnPath2)
|
|
61
|
+
return getBashShellConfig(bashOnPath2);
|
|
62
|
+
throw new Error(`No bash shell found. Options:
|
|
63
|
+
1. Install Git for Windows: https://git-scm.com/download/win
|
|
64
|
+
2. Add your bash to PATH (Cygwin, MSYS2, etc.)
|
|
65
|
+
3. Set shellPath in settings.json
|
|
66
|
+
|
|
67
|
+
Searched Git Bash in:
|
|
68
|
+
${paths.map((p) => ` ${p}`).join(`
|
|
69
|
+
`)}`);
|
|
70
|
+
}
|
|
71
|
+
if (existsSync("/bin/bash"))
|
|
72
|
+
return getBashShellConfig("/bin/bash");
|
|
73
|
+
let bashOnPath = findBashOnPath();
|
|
74
|
+
return bashOnPath ? getBashShellConfig(bashOnPath) : { shell: "sh", args: ["-c"] };
|
|
75
|
+
}
|
|
76
|
+
function getShellEnv() {
|
|
77
|
+
let binDir = getBinDir(), pathKey = Object.keys(process.env).find((key) => key.toLowerCase() === "path") ?? "PATH", currentPath = process.env[pathKey] ?? "", updatedPath = currentPath.split(delimiter).filter(Boolean).includes(binDir) ? currentPath : [binDir, currentPath].filter(Boolean).join(delimiter);
|
|
78
|
+
return {
|
|
79
|
+
...process.env,
|
|
80
|
+
[pathKey]: updatedPath
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function sanitizeBinaryOutput(str) {
|
|
84
|
+
return Array.from(str).filter((char) => {
|
|
85
|
+
let code = char.codePointAt(0);
|
|
86
|
+
return code === void 0 ? !1 : code === 9 || code === 10 || code === 13 ? !0 : !(code <= 31 || code >= 65529 && code <= 65531);
|
|
87
|
+
}).join("");
|
|
88
|
+
}
|
|
89
|
+
var trackedDetachedChildPids = /* @__PURE__ */ new Set();
|
|
90
|
+
function trackDetachedChildPid(pid) {
|
|
91
|
+
trackedDetachedChildPids.add(pid);
|
|
92
|
+
}
|
|
93
|
+
function untrackDetachedChildPid(pid) {
|
|
94
|
+
trackedDetachedChildPids.delete(pid);
|
|
95
|
+
}
|
|
96
|
+
function killTrackedDetachedChildren() {
|
|
97
|
+
for (let pid of trackedDetachedChildPids)
|
|
98
|
+
killProcessTree(pid);
|
|
99
|
+
trackedDetachedChildPids.clear();
|
|
100
|
+
}
|
|
101
|
+
function killProcessTree(pid) {
|
|
102
|
+
if (process.platform === "win32")
|
|
103
|
+
try {
|
|
104
|
+
spawn("taskkill", ["/F", "/T", "/PID", String(pid)], {
|
|
105
|
+
stdio: "ignore",
|
|
106
|
+
detached: !0,
|
|
107
|
+
windowsHide: !0
|
|
108
|
+
});
|
|
109
|
+
} catch {
|
|
110
|
+
}
|
|
111
|
+
else
|
|
112
|
+
try {
|
|
113
|
+
process.kill(-pid, "SIGKILL");
|
|
114
|
+
} catch {
|
|
115
|
+
try {
|
|
116
|
+
process.kill(pid, "SIGKILL");
|
|
117
|
+
} catch {
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export {
|
|
123
|
+
getShellConfig,
|
|
124
|
+
getShellEnv,
|
|
125
|
+
sanitizeBinaryOutput,
|
|
126
|
+
trackDetachedChildPid,
|
|
127
|
+
untrackDetachedChildPid,
|
|
128
|
+
killTrackedDetachedChildren,
|
|
129
|
+
killProcessTree
|
|
130
|
+
};
|