@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,209 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
loadPhoton
|
|
4
|
+
} from "./chunk-RQ2Q5IYR.js";
|
|
5
|
+
|
|
6
|
+
// packages/coding-agent/dist/utils/clipboard-image.js
|
|
7
|
+
import { spawnSync } from "child_process";
|
|
8
|
+
import { randomUUID } from "crypto";
|
|
9
|
+
import { readFileSync, statSync, unlinkSync } from "fs";
|
|
10
|
+
import { tmpdir } from "os";
|
|
11
|
+
import { extname, join as join2 } from "path";
|
|
12
|
+
|
|
13
|
+
// packages/coding-agent/dist/utils/clipboard-native.js
|
|
14
|
+
import { createRequire } from "module";
|
|
15
|
+
import { dirname, join } from "path";
|
|
16
|
+
import { pathToFileURL } from "url";
|
|
17
|
+
var moduleRequire = createRequire(new URL("../utils/clipboard-native.js", import.meta.url).href), executableDirRequire = createRequire(pathToFileURL(join(dirname(process.execPath), "package.json")).href), hasDisplay = process.platform !== "linux" || !!(process.env.DISPLAY || process.env.WAYLAND_DISPLAY);
|
|
18
|
+
function loadClipboardNative(requires = [moduleRequire, executableDirRequire]) {
|
|
19
|
+
for (let requireClipboard of requires)
|
|
20
|
+
try {
|
|
21
|
+
return requireClipboard("@mariozechner/clipboard");
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
var clipboard = !process.env.TERMUX_VERSION && hasDisplay ? loadClipboardNative() : null;
|
|
27
|
+
|
|
28
|
+
// packages/coding-agent/dist/utils/clipboard-image.js
|
|
29
|
+
var SUPPORTED_IMAGE_MIME_TYPES = ["image/png", "image/jpeg", "image/webp", "image/gif"], DEFAULT_LIST_TIMEOUT_MS = 1e3, DEFAULT_READ_TIMEOUT_MS = 3e3, DEFAULT_POWERSHELL_TIMEOUT_MS = 5e3, DEFAULT_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
|
|
30
|
+
function isWaylandSession(env = process.env) {
|
|
31
|
+
return !!env.WAYLAND_DISPLAY || env.XDG_SESSION_TYPE === "wayland";
|
|
32
|
+
}
|
|
33
|
+
function baseMimeType(mimeType) {
|
|
34
|
+
return mimeType.split(";")[0]?.trim().toLowerCase() ?? mimeType.toLowerCase();
|
|
35
|
+
}
|
|
36
|
+
function extensionForImageMimeType(mimeType) {
|
|
37
|
+
switch (baseMimeType(mimeType)) {
|
|
38
|
+
case "image/png":
|
|
39
|
+
return "png";
|
|
40
|
+
case "image/jpeg":
|
|
41
|
+
return "jpg";
|
|
42
|
+
case "image/webp":
|
|
43
|
+
return "webp";
|
|
44
|
+
case "image/gif":
|
|
45
|
+
return "gif";
|
|
46
|
+
default:
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function selectPreferredImageMimeType(mimeTypes) {
|
|
51
|
+
let normalized = mimeTypes.map((t) => t.trim()).filter(Boolean).map((t) => ({ raw: t, base: baseMimeType(t) }));
|
|
52
|
+
for (let preferred of SUPPORTED_IMAGE_MIME_TYPES) {
|
|
53
|
+
let match = normalized.find((t) => t.base === preferred);
|
|
54
|
+
if (match)
|
|
55
|
+
return match.raw;
|
|
56
|
+
}
|
|
57
|
+
return normalized.find((t) => t.base.startsWith("image/"))?.raw ?? null;
|
|
58
|
+
}
|
|
59
|
+
function isSupportedImageMimeType(mimeType) {
|
|
60
|
+
let base = baseMimeType(mimeType);
|
|
61
|
+
return SUPPORTED_IMAGE_MIME_TYPES.some((t) => t === base);
|
|
62
|
+
}
|
|
63
|
+
async function convertToPng(bytes) {
|
|
64
|
+
let photon = await loadPhoton();
|
|
65
|
+
if (!photon)
|
|
66
|
+
return null;
|
|
67
|
+
try {
|
|
68
|
+
let image = photon.PhotonImage.new_from_byteslice(bytes);
|
|
69
|
+
try {
|
|
70
|
+
return image.get_bytes();
|
|
71
|
+
} finally {
|
|
72
|
+
image.free();
|
|
73
|
+
}
|
|
74
|
+
} catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function runCommand(command, args, options) {
|
|
79
|
+
let timeoutMs = options?.timeoutMs ?? DEFAULT_READ_TIMEOUT_MS, maxBufferBytes = options?.maxBufferBytes ?? DEFAULT_MAX_BUFFER_BYTES, result = spawnSync(command, args, {
|
|
80
|
+
timeout: timeoutMs,
|
|
81
|
+
maxBuffer: maxBufferBytes,
|
|
82
|
+
env: options?.env
|
|
83
|
+
});
|
|
84
|
+
return result.error ? { ok: !1, stdout: Buffer.alloc(0) } : result.status !== 0 ? { ok: !1, stdout: Buffer.alloc(0) } : { ok: !0, stdout: Buffer.isBuffer(result.stdout) ? result.stdout : Buffer.from(result.stdout ?? "", typeof result.stdout == "string" ? "utf-8" : void 0) };
|
|
85
|
+
}
|
|
86
|
+
function readClipboardImageViaWlPaste() {
|
|
87
|
+
let list = runCommand("wl-paste", ["--list-types"], { timeoutMs: DEFAULT_LIST_TIMEOUT_MS });
|
|
88
|
+
if (!list.ok)
|
|
89
|
+
return null;
|
|
90
|
+
let types = list.stdout.toString("utf-8").split(/\r?\n/).map((t) => t.trim()).filter(Boolean), selectedType = selectPreferredImageMimeType(types);
|
|
91
|
+
if (!selectedType)
|
|
92
|
+
return null;
|
|
93
|
+
let data = runCommand("wl-paste", ["--type", selectedType, "--no-newline"]);
|
|
94
|
+
return !data.ok || data.stdout.length === 0 ? null : { bytes: data.stdout, mimeType: baseMimeType(selectedType) };
|
|
95
|
+
}
|
|
96
|
+
function isWSL(env = process.env) {
|
|
97
|
+
if (env.WSL_DISTRO_NAME || env.WSLENV)
|
|
98
|
+
return !0;
|
|
99
|
+
try {
|
|
100
|
+
let release = readFileSync("/proc/version", "utf-8");
|
|
101
|
+
return /microsoft|wsl/i.test(release);
|
|
102
|
+
} catch {
|
|
103
|
+
return !1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function readClipboardImageViaPowerShell(useWslpath) {
|
|
107
|
+
let tmpFile = join2(tmpdir(), `pi-clip-${randomUUID()}.png`);
|
|
108
|
+
try {
|
|
109
|
+
let winPath = tmpFile;
|
|
110
|
+
if (useWslpath) {
|
|
111
|
+
let winPathResult = runCommand("wslpath", ["-w", tmpFile], { timeoutMs: DEFAULT_LIST_TIMEOUT_MS });
|
|
112
|
+
if (!winPathResult.ok || (winPath = winPathResult.stdout.toString("utf-8").trim(), !winPath))
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
let psScript = [
|
|
116
|
+
"Add-Type -AssemblyName System.Windows.Forms",
|
|
117
|
+
"Add-Type -AssemblyName System.Drawing",
|
|
118
|
+
`$path = '${winPath.replaceAll("'", "''")}'`,
|
|
119
|
+
"$img = $null",
|
|
120
|
+
"try { $img = Get-Clipboard -Format Image } catch {}",
|
|
121
|
+
"if (-not $img) { $img = [System.Windows.Forms.Clipboard]::GetImage() }",
|
|
122
|
+
"if ($img) { $img.Save($path, [System.Drawing.Imaging.ImageFormat]::Png); Write-Output 'ok' } else { Write-Output 'empty' }"
|
|
123
|
+
].join("; "), result = runCommand("powershell.exe", ["-NoProfile", "-STA", "-Command", psScript], {
|
|
124
|
+
timeoutMs: DEFAULT_POWERSHELL_TIMEOUT_MS
|
|
125
|
+
});
|
|
126
|
+
if (!result.ok || result.stdout.toString("utf-8").trim() !== "ok")
|
|
127
|
+
return null;
|
|
128
|
+
let bytes = readFileSync(tmpFile);
|
|
129
|
+
return bytes.length === 0 ? null : { bytes: new Uint8Array(bytes), mimeType: "image/png" };
|
|
130
|
+
} catch {
|
|
131
|
+
return null;
|
|
132
|
+
} finally {
|
|
133
|
+
try {
|
|
134
|
+
unlinkSync(tmpFile);
|
|
135
|
+
} catch {
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
var FILE_DROP_IMAGE_MIME_TYPES = {
|
|
140
|
+
".png": "image/png",
|
|
141
|
+
".jpg": "image/jpeg",
|
|
142
|
+
".jpeg": "image/jpeg",
|
|
143
|
+
".webp": "image/webp",
|
|
144
|
+
".gif": "image/gif",
|
|
145
|
+
".bmp": "image/bmp"
|
|
146
|
+
};
|
|
147
|
+
function readClipboardImageFileDropViaPowerShell() {
|
|
148
|
+
let result = runCommand("powershell.exe", ["-NoProfile", "-STA", "-Command", "Get-Clipboard -Format FileDropList"], {
|
|
149
|
+
timeoutMs: DEFAULT_POWERSHELL_TIMEOUT_MS
|
|
150
|
+
});
|
|
151
|
+
if (!result.ok || result.stdout.length === 0)
|
|
152
|
+
return null;
|
|
153
|
+
let candidates = result.stdout.toString("utf-8").split(/\r?\n/).map((p) => p.trim()).filter(Boolean);
|
|
154
|
+
for (let filePath of candidates) {
|
|
155
|
+
let mimeType = FILE_DROP_IMAGE_MIME_TYPES[extname(filePath).toLowerCase()];
|
|
156
|
+
if (mimeType)
|
|
157
|
+
try {
|
|
158
|
+
let stat = statSync(filePath);
|
|
159
|
+
if (!stat.isFile() || stat.size === 0 || stat.size > DEFAULT_MAX_BUFFER_BYTES)
|
|
160
|
+
continue;
|
|
161
|
+
return { bytes: new Uint8Array(readFileSync(filePath)), mimeType };
|
|
162
|
+
} catch {
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
function readClipboardImageViaXclip() {
|
|
168
|
+
let targets = runCommand("xclip", ["-selection", "clipboard", "-t", "TARGETS", "-o"], {
|
|
169
|
+
timeoutMs: DEFAULT_LIST_TIMEOUT_MS
|
|
170
|
+
}), candidateTypes = [];
|
|
171
|
+
targets.ok && (candidateTypes = targets.stdout.toString("utf-8").split(/\r?\n/).map((t) => t.trim()).filter(Boolean));
|
|
172
|
+
let preferred = candidateTypes.length > 0 ? selectPreferredImageMimeType(candidateTypes) : null, tryTypes = preferred ? [preferred, ...SUPPORTED_IMAGE_MIME_TYPES] : [...SUPPORTED_IMAGE_MIME_TYPES];
|
|
173
|
+
for (let mimeType of tryTypes) {
|
|
174
|
+
let data = runCommand("xclip", ["-selection", "clipboard", "-t", mimeType, "-o"]);
|
|
175
|
+
if (data.ok && data.stdout.length > 0)
|
|
176
|
+
return { bytes: data.stdout, mimeType: baseMimeType(mimeType) };
|
|
177
|
+
}
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
async function readClipboardImageViaNativeClipboard() {
|
|
181
|
+
if (!clipboard || !clipboard.hasImage())
|
|
182
|
+
return null;
|
|
183
|
+
let imageData = await clipboard.getImageBinary();
|
|
184
|
+
return !imageData || imageData.length === 0 ? null : { bytes: imageData instanceof Uint8Array ? imageData : Uint8Array.from(imageData), mimeType: "image/png" };
|
|
185
|
+
}
|
|
186
|
+
async function readClipboardImage(options) {
|
|
187
|
+
let env = options?.env ?? process.env, platform = options?.platform ?? process.platform;
|
|
188
|
+
if (env.TERMUX_VERSION)
|
|
189
|
+
return null;
|
|
190
|
+
let image = null;
|
|
191
|
+
if (platform === "linux") {
|
|
192
|
+
let wsl = isWSL(env), wayland = isWaylandSession(env);
|
|
193
|
+
(wayland || wsl) && (image = readClipboardImageViaWlPaste() ?? readClipboardImageViaXclip()), !image && wsl && (image = readClipboardImageViaPowerShell(!0)), !image && !wayland && (image = await readClipboardImageViaNativeClipboard() ?? readClipboardImageViaXclip());
|
|
194
|
+
} else platform === "win32" ? image = await readClipboardImageViaNativeClipboard() ?? readClipboardImageViaPowerShell(!1) ?? readClipboardImageFileDropViaPowerShell() : image = await readClipboardImageViaNativeClipboard();
|
|
195
|
+
if (!image)
|
|
196
|
+
return null;
|
|
197
|
+
if (!isSupportedImageMimeType(image.mimeType)) {
|
|
198
|
+
let pngBytes = await convertToPng(image.bytes);
|
|
199
|
+
return pngBytes ? { bytes: pngBytes, mimeType: "image/png" } : null;
|
|
200
|
+
}
|
|
201
|
+
return image;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export {
|
|
205
|
+
clipboard,
|
|
206
|
+
isWaylandSession,
|
|
207
|
+
extensionForImageMimeType,
|
|
208
|
+
readClipboardImage
|
|
209
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/output-guard.js
|
|
4
|
+
var stdoutTakeoverState;
|
|
5
|
+
var rawStdoutWriteTail = Promise.resolve();
|
|
6
|
+
function getRawStdoutWrite() {
|
|
7
|
+
return stdoutTakeoverState ? stdoutTakeoverState.rawStdoutWrite : process.stdout.write.bind(process.stdout);
|
|
8
|
+
}
|
|
9
|
+
async function writeRawStdoutChunk(text) {
|
|
10
|
+
for (; ; )
|
|
11
|
+
try {
|
|
12
|
+
await new Promise((resolve, reject) => {
|
|
13
|
+
try {
|
|
14
|
+
getRawStdoutWrite()(text, (error) => {
|
|
15
|
+
error ? reject(error) : resolve();
|
|
16
|
+
});
|
|
17
|
+
} catch (error) {
|
|
18
|
+
reject(error instanceof Error ? error : new Error(String(error)));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return;
|
|
22
|
+
} catch (error) {
|
|
23
|
+
let writeError = error instanceof Error ? error : new Error(String(error)), code = writeError.code;
|
|
24
|
+
if (code !== "ENOBUFS" && code !== "EAGAIN" && code !== "EWOULDBLOCK")
|
|
25
|
+
throw writeError;
|
|
26
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function takeOverStdout() {
|
|
30
|
+
if (stdoutTakeoverState)
|
|
31
|
+
return;
|
|
32
|
+
let rawStdoutWrite = process.stdout.write.bind(process.stdout), rawStderrWrite = process.stderr.write.bind(process.stderr), originalStdoutWrite = process.stdout.write;
|
|
33
|
+
process.stdout.write = ((chunk, encodingOrCallback, callback) => typeof encodingOrCallback == "function" ? rawStderrWrite(String(chunk), encodingOrCallback) : rawStderrWrite(String(chunk), callback)), stdoutTakeoverState = {
|
|
34
|
+
rawStdoutWrite,
|
|
35
|
+
rawStderrWrite,
|
|
36
|
+
originalStdoutWrite
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function restoreStdout() {
|
|
40
|
+
stdoutTakeoverState && (process.stdout.write = stdoutTakeoverState.originalStdoutWrite, stdoutTakeoverState = void 0);
|
|
41
|
+
}
|
|
42
|
+
function isStdoutTakenOver() {
|
|
43
|
+
return stdoutTakeoverState !== void 0;
|
|
44
|
+
}
|
|
45
|
+
function writeRawStdout(text) {
|
|
46
|
+
text.length !== 0 && (rawStdoutWriteTail = rawStdoutWriteTail.then(() => writeRawStdoutChunk(text)), rawStdoutWriteTail.catch(() => {
|
|
47
|
+
process.exit(1);
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
async function waitForRawStdoutBackpressure() {
|
|
51
|
+
for (; ; ) {
|
|
52
|
+
let tail = rawStdoutWriteTail;
|
|
53
|
+
if (await tail, tail === rawStdoutWriteTail)
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function flushRawStdout() {
|
|
58
|
+
await waitForRawStdoutBackpressure(), await writeRawStdoutChunk("");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
takeOverStdout,
|
|
63
|
+
restoreStdout,
|
|
64
|
+
isStdoutTakenOver,
|
|
65
|
+
writeRawStdout,
|
|
66
|
+
waitForRawStdoutBackpressure,
|
|
67
|
+
flushRawStdout
|
|
68
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/extensions/types.js
|
|
4
|
+
function defineTool(tool) {
|
|
5
|
+
return tool;
|
|
6
|
+
}
|
|
7
|
+
function isBashToolResult(e) {
|
|
8
|
+
return e.toolName === "bash";
|
|
9
|
+
}
|
|
10
|
+
function isReadToolResult(e) {
|
|
11
|
+
return e.toolName === "read";
|
|
12
|
+
}
|
|
13
|
+
function isEditToolResult(e) {
|
|
14
|
+
return e.toolName === "edit";
|
|
15
|
+
}
|
|
16
|
+
function isWriteToolResult(e) {
|
|
17
|
+
return e.toolName === "write";
|
|
18
|
+
}
|
|
19
|
+
function isGrepToolResult(e) {
|
|
20
|
+
return e.toolName === "grep";
|
|
21
|
+
}
|
|
22
|
+
function isFindToolResult(e) {
|
|
23
|
+
return e.toolName === "find";
|
|
24
|
+
}
|
|
25
|
+
function isLsToolResult(e) {
|
|
26
|
+
return e.toolName === "ls";
|
|
27
|
+
}
|
|
28
|
+
function isToolCallEventType(toolName, event) {
|
|
29
|
+
return event.toolName === toolName;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
defineTool,
|
|
34
|
+
isBashToolResult,
|
|
35
|
+
isReadToolResult,
|
|
36
|
+
isEditToolResult,
|
|
37
|
+
isWriteToolResult,
|
|
38
|
+
isGrepToolResult,
|
|
39
|
+
isFindToolResult,
|
|
40
|
+
isLsToolResult,
|
|
41
|
+
isToolCallEventType
|
|
42
|
+
};
|