@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,19 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/builtin-extensions/pi-web-access/session-cleanup.js
|
|
4
|
+
var cleanups = [];
|
|
5
|
+
function registerSessionCleanup(fn) {
|
|
6
|
+
cleanups.includes(fn) || cleanups.push(fn);
|
|
7
|
+
}
|
|
8
|
+
function runSessionCleanups() {
|
|
9
|
+
for (let fn of cleanups)
|
|
10
|
+
try {
|
|
11
|
+
fn();
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
registerSessionCleanup,
|
|
18
|
+
runSessionCleanups
|
|
19
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/memory-cap.js
|
|
4
|
+
var MEMORY_CAP_BRIDGE_SYMBOL = /* @__PURE__ */ Symbol.for("@lunr/memory-cap"), MEMORY_CHAR_CAP_DEFAULT = 5e3, MEMORY_CHAR_CAP_MIN = 1, MEMORY_CHAR_CAP_MAX = 3e4, MEMORY_TOOL_NAMES = /* @__PURE__ */ new Set(["memory_add", "memory_remove", "memory_load"]), activeSettingsManager, bridge = {
|
|
5
|
+
isEnabled() {
|
|
6
|
+
return activeSettingsManager?.getMemoryEnabled() ?? !0;
|
|
7
|
+
},
|
|
8
|
+
getCharCap() {
|
|
9
|
+
return activeSettingsManager?.getMemoryCharCap() ?? MEMORY_CHAR_CAP_DEFAULT;
|
|
10
|
+
},
|
|
11
|
+
setCharCap(cap) {
|
|
12
|
+
activeSettingsManager?.setMemoryCharCap(cap);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function registerMemoryCapBridge(settingsManager) {
|
|
16
|
+
activeSettingsManager = settingsManager, globalThis[MEMORY_CAP_BRIDGE_SYMBOL] = bridge;
|
|
17
|
+
}
|
|
18
|
+
function getMemoryCapBridge() {
|
|
19
|
+
return globalThis[MEMORY_CAP_BRIDGE_SYMBOL];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
MEMORY_CAP_BRIDGE_SYMBOL,
|
|
24
|
+
MEMORY_CHAR_CAP_DEFAULT,
|
|
25
|
+
MEMORY_CHAR_CAP_MIN,
|
|
26
|
+
MEMORY_CHAR_CAP_MAX,
|
|
27
|
+
MEMORY_TOOL_NAMES,
|
|
28
|
+
registerMemoryCapBridge,
|
|
29
|
+
getMemoryCapBridge
|
|
30
|
+
};
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/symbol-extractor.js
|
|
4
|
+
var SymbolKind = {
|
|
5
|
+
File: 1,
|
|
6
|
+
Module: 2,
|
|
7
|
+
Namespace: 3,
|
|
8
|
+
Package: 4,
|
|
9
|
+
Class: 5,
|
|
10
|
+
Method: 6,
|
|
11
|
+
Property: 7,
|
|
12
|
+
Field: 8,
|
|
13
|
+
Constructor: 9,
|
|
14
|
+
Enum: 10,
|
|
15
|
+
Interface: 11,
|
|
16
|
+
Function: 12,
|
|
17
|
+
Variable: 13,
|
|
18
|
+
Constant: 14,
|
|
19
|
+
String: 15,
|
|
20
|
+
Number: 16,
|
|
21
|
+
Boolean: 17,
|
|
22
|
+
Array: 18,
|
|
23
|
+
Object: 19,
|
|
24
|
+
Struct: 22
|
|
25
|
+
}, TS_JS_SYMBOLS = [
|
|
26
|
+
{ nodeType: "function_declaration", kind: SymbolKind.Function },
|
|
27
|
+
{ nodeType: "class_declaration", kind: SymbolKind.Class, recurse: !0 },
|
|
28
|
+
{ nodeType: "interface_declaration", kind: SymbolKind.Interface, recurse: !0 },
|
|
29
|
+
{ nodeType: "enum_declaration", kind: SymbolKind.Enum, recurse: !0 },
|
|
30
|
+
{ nodeType: "type_alias_declaration", kind: SymbolKind.Variable },
|
|
31
|
+
{ nodeType: "method_definition", kind: SymbolKind.Method },
|
|
32
|
+
{ nodeType: "public_field_definition", kind: SymbolKind.Field },
|
|
33
|
+
{ nodeType: "abstract_method_signature", kind: SymbolKind.Method },
|
|
34
|
+
{ nodeType: "lexical_declaration", kind: SymbolKind.Variable },
|
|
35
|
+
{ nodeType: "variable_declaration", kind: SymbolKind.Variable }
|
|
36
|
+
], PYTHON_SYMBOLS = [
|
|
37
|
+
{ nodeType: "function_definition", kind: SymbolKind.Function },
|
|
38
|
+
{ nodeType: "class_definition", kind: SymbolKind.Class, recurse: !0 },
|
|
39
|
+
{ nodeType: "decorated_definition", kind: SymbolKind.Function }
|
|
40
|
+
], RUST_SYMBOLS = [
|
|
41
|
+
{ nodeType: "function_item", kind: SymbolKind.Function },
|
|
42
|
+
{ nodeType: "struct_item", kind: SymbolKind.Struct },
|
|
43
|
+
{ nodeType: "enum_item", kind: SymbolKind.Enum, recurse: !0 },
|
|
44
|
+
{ nodeType: "impl_item", kind: SymbolKind.Class, recurse: !0 },
|
|
45
|
+
{ nodeType: "trait_item", kind: SymbolKind.Interface, recurse: !0 },
|
|
46
|
+
{ nodeType: "mod_item", kind: SymbolKind.Module, recurse: !0 },
|
|
47
|
+
{ nodeType: "type_item", kind: SymbolKind.Variable },
|
|
48
|
+
{ nodeType: "const_item", kind: SymbolKind.Constant },
|
|
49
|
+
{ nodeType: "static_item", kind: SymbolKind.Constant },
|
|
50
|
+
{ nodeType: "macro_definition", kind: SymbolKind.Function }
|
|
51
|
+
], GO_SYMBOLS = [
|
|
52
|
+
{ nodeType: "function_declaration", kind: SymbolKind.Function },
|
|
53
|
+
{ nodeType: "method_declaration", kind: SymbolKind.Method },
|
|
54
|
+
{ nodeType: "type_declaration", kind: SymbolKind.Class },
|
|
55
|
+
{ nodeType: "type_spec", kind: SymbolKind.Class },
|
|
56
|
+
{ nodeType: "const_declaration", kind: SymbolKind.Constant },
|
|
57
|
+
{ nodeType: "var_declaration", kind: SymbolKind.Variable }
|
|
58
|
+
], JAVA_SYMBOLS = [
|
|
59
|
+
{ nodeType: "class_declaration", kind: SymbolKind.Class, recurse: !0 },
|
|
60
|
+
{ nodeType: "interface_declaration", kind: SymbolKind.Interface, recurse: !0 },
|
|
61
|
+
{ nodeType: "enum_declaration", kind: SymbolKind.Enum, recurse: !0 },
|
|
62
|
+
{ nodeType: "method_declaration", kind: SymbolKind.Method },
|
|
63
|
+
{ nodeType: "constructor_declaration", kind: SymbolKind.Constructor },
|
|
64
|
+
{ nodeType: "field_declaration", kind: SymbolKind.Field },
|
|
65
|
+
{ nodeType: "annotation_type_declaration", kind: SymbolKind.Interface }
|
|
66
|
+
], C_CPP_SYMBOLS = [
|
|
67
|
+
{ nodeType: "function_definition", kind: SymbolKind.Function },
|
|
68
|
+
{ nodeType: "declaration", kind: SymbolKind.Variable },
|
|
69
|
+
{ nodeType: "struct_specifier", kind: SymbolKind.Struct },
|
|
70
|
+
{ nodeType: "enum_specifier", kind: SymbolKind.Enum },
|
|
71
|
+
{ nodeType: "class_specifier", kind: SymbolKind.Class, recurse: !0 },
|
|
72
|
+
{ nodeType: "namespace_definition", kind: SymbolKind.Namespace, recurse: !0 }
|
|
73
|
+
], RUBY_SYMBOLS = [
|
|
74
|
+
{ nodeType: "method", kind: SymbolKind.Method },
|
|
75
|
+
{ nodeType: "singleton_method", kind: SymbolKind.Method },
|
|
76
|
+
{ nodeType: "class", kind: SymbolKind.Class, recurse: !0 },
|
|
77
|
+
{ nodeType: "module", kind: SymbolKind.Module, recurse: !0 }
|
|
78
|
+
], LANGUAGE_SYMBOLS = {
|
|
79
|
+
typescript: TS_JS_SYMBOLS,
|
|
80
|
+
typescriptreact: TS_JS_SYMBOLS,
|
|
81
|
+
javascript: TS_JS_SYMBOLS,
|
|
82
|
+
javascriptreact: TS_JS_SYMBOLS,
|
|
83
|
+
python: PYTHON_SYMBOLS,
|
|
84
|
+
rust: RUST_SYMBOLS,
|
|
85
|
+
go: GO_SYMBOLS,
|
|
86
|
+
java: JAVA_SYMBOLS,
|
|
87
|
+
c: C_CPP_SYMBOLS,
|
|
88
|
+
cpp: C_CPP_SYMBOLS,
|
|
89
|
+
ruby: RUBY_SYMBOLS
|
|
90
|
+
};
|
|
91
|
+
function extractSymbols(tree, languageId) {
|
|
92
|
+
let mappings = LANGUAGE_SYMBOLS[languageId];
|
|
93
|
+
return mappings ? extractFromNode(tree.rootNode, mappings, languageId) : extractGenericSymbols(tree);
|
|
94
|
+
}
|
|
95
|
+
function extractFromNode(node, mappings, languageId, deep = !1) {
|
|
96
|
+
let symbols = [];
|
|
97
|
+
for (let child of node.namedChildren) {
|
|
98
|
+
let mapping = mappings.find((m) => m.nodeType === child.type);
|
|
99
|
+
if (mapping) {
|
|
100
|
+
let name = extractName(child, mapping, languageId);
|
|
101
|
+
if (name) {
|
|
102
|
+
let sym = {
|
|
103
|
+
name,
|
|
104
|
+
kind: mapping.kind,
|
|
105
|
+
line: child.startPosition.row + 1,
|
|
106
|
+
endLine: child.endPosition.row + 1
|
|
107
|
+
};
|
|
108
|
+
if (mapping.recurse) {
|
|
109
|
+
let children = extractFromNode(child, mappings, languageId, !0);
|
|
110
|
+
children.length > 0 && (sym.children = children);
|
|
111
|
+
}
|
|
112
|
+
symbols.push(sym);
|
|
113
|
+
}
|
|
114
|
+
} else if (child.type === "export_statement" && (languageId.startsWith("typescript") || languageId.startsWith("javascript"))) {
|
|
115
|
+
let inner = extractFromNode(child, mappings, languageId, deep);
|
|
116
|
+
symbols.push(...inner);
|
|
117
|
+
} else deep && child.namedChildCount > 0 && symbols.push(...extractFromNode(child, mappings, languageId, !0));
|
|
118
|
+
}
|
|
119
|
+
return symbols;
|
|
120
|
+
}
|
|
121
|
+
function extractName(node, mapping, languageId) {
|
|
122
|
+
let nameNode = node.childForFieldName(mapping.nameField ?? "name");
|
|
123
|
+
if (nameNode)
|
|
124
|
+
return nameNode.text;
|
|
125
|
+
switch (node.type) {
|
|
126
|
+
case "lexical_declaration":
|
|
127
|
+
case "variable_declaration": {
|
|
128
|
+
let declarator = node.namedChildren.find((c) => c.type === "variable_declarator" || c.type === "init_declarator");
|
|
129
|
+
return declarator ? declarator.childForFieldName("name")?.text ?? null : null;
|
|
130
|
+
}
|
|
131
|
+
case "decorated_definition": {
|
|
132
|
+
let inner = node.namedChildren.find((c) => c.type === "function_definition" || c.type === "class_definition");
|
|
133
|
+
return inner ? inner.childForFieldName("name")?.text ?? null : null;
|
|
134
|
+
}
|
|
135
|
+
case "impl_item": {
|
|
136
|
+
let typeNode = node.childForFieldName("type");
|
|
137
|
+
return typeNode ? `impl ${typeNode.text}` : null;
|
|
138
|
+
}
|
|
139
|
+
case "type_declaration": {
|
|
140
|
+
let spec = node.namedChildren.find((c) => c.type === "type_spec");
|
|
141
|
+
return spec ? spec.childForFieldName("name")?.text ?? null : null;
|
|
142
|
+
}
|
|
143
|
+
case "const_declaration":
|
|
144
|
+
case "var_declaration": {
|
|
145
|
+
let spec = node.namedChildren.find((c) => c.type === "const_spec" || c.type === "var_spec");
|
|
146
|
+
return spec ? spec.childForFieldName("name")?.text ?? null : null;
|
|
147
|
+
}
|
|
148
|
+
case "field_declaration": {
|
|
149
|
+
let declarator = node.namedChildren.find((c) => c.type === "variable_declarator");
|
|
150
|
+
return declarator ? declarator.childForFieldName("name")?.text ?? null : null;
|
|
151
|
+
}
|
|
152
|
+
case "declaration": {
|
|
153
|
+
let declarator = node.namedChildren.find((c) => c.type === "init_declarator" || c.type === "function_declarator");
|
|
154
|
+
return declarator ? (declarator.childForFieldName("declarator") ?? declarator.childForFieldName("name"))?.text ?? null : null;
|
|
155
|
+
}
|
|
156
|
+
default:
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
let first = node.firstNamedChild;
|
|
160
|
+
return first && first.text.length < 60 ? first.text : null;
|
|
161
|
+
}
|
|
162
|
+
function extractGenericSymbols(tree) {
|
|
163
|
+
let symbols = [], root = tree.rootNode;
|
|
164
|
+
for (let child of root.namedChildren)
|
|
165
|
+
if (child.type.includes("function") || child.type.includes("method")) {
|
|
166
|
+
let name = child.childForFieldName("name")?.text;
|
|
167
|
+
name && symbols.push({
|
|
168
|
+
name,
|
|
169
|
+
kind: SymbolKind.Function,
|
|
170
|
+
line: child.startPosition.row + 1,
|
|
171
|
+
endLine: child.endPosition.row + 1
|
|
172
|
+
});
|
|
173
|
+
} else if (child.type.includes("class") || child.type.includes("struct")) {
|
|
174
|
+
let name = child.childForFieldName("name")?.text;
|
|
175
|
+
name && symbols.push({
|
|
176
|
+
name,
|
|
177
|
+
kind: SymbolKind.Class,
|
|
178
|
+
line: child.startPosition.row + 1,
|
|
179
|
+
endLine: child.endPosition.row + 1
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
return symbols;
|
|
183
|
+
}
|
|
184
|
+
function getNodeAtPosition(tree, line, character) {
|
|
185
|
+
let point = { row: line, column: character };
|
|
186
|
+
return tree.rootNode.namedDescendantForPosition(point);
|
|
187
|
+
}
|
|
188
|
+
function findDefinition(tree, symbolName, languageId) {
|
|
189
|
+
let allSymbols = extractSymbols(tree, languageId);
|
|
190
|
+
return findSymbolByName(allSymbols, symbolName);
|
|
191
|
+
}
|
|
192
|
+
function findSymbolByName(symbols, name) {
|
|
193
|
+
let results = [];
|
|
194
|
+
for (let sym of symbols)
|
|
195
|
+
sym.name === name && results.push(sym), sym.children && results.push(...findSymbolByName(sym.children, name));
|
|
196
|
+
return results;
|
|
197
|
+
}
|
|
198
|
+
function getSyntaxErrors(tree) {
|
|
199
|
+
let errors = [];
|
|
200
|
+
function walk(node) {
|
|
201
|
+
if (node.isError)
|
|
202
|
+
errors.push({
|
|
203
|
+
line: node.startPosition.row,
|
|
204
|
+
character: node.startPosition.column,
|
|
205
|
+
endLine: node.endPosition.row,
|
|
206
|
+
endCharacter: node.endPosition.column,
|
|
207
|
+
message: `Syntax error: unexpected "${node.text.slice(0, 50)}${node.text.length > 50 ? "..." : ""}"`
|
|
208
|
+
});
|
|
209
|
+
else if (node.isMissing)
|
|
210
|
+
errors.push({
|
|
211
|
+
line: node.startPosition.row,
|
|
212
|
+
character: node.startPosition.column,
|
|
213
|
+
endLine: node.endPosition.row,
|
|
214
|
+
endCharacter: node.endPosition.column,
|
|
215
|
+
message: `Missing ${node.type}`
|
|
216
|
+
});
|
|
217
|
+
else if (node.hasError)
|
|
218
|
+
for (let child of node.children)
|
|
219
|
+
walk(child);
|
|
220
|
+
}
|
|
221
|
+
return walk(tree.rootNode), errors;
|
|
222
|
+
}
|
|
223
|
+
function getSignatureText(node) {
|
|
224
|
+
return node.text.split(`
|
|
225
|
+
`)[0].replace(/\s*[{:]\s*$/, "").trim();
|
|
226
|
+
}
|
|
227
|
+
function getEnclosingDeclaration(tree, line, character) {
|
|
228
|
+
let point = { row: line, column: character }, node = tree.rootNode.namedDescendantForPosition(point), declarationTypes = /* @__PURE__ */ new Set([
|
|
229
|
+
"function_declaration",
|
|
230
|
+
"function_definition",
|
|
231
|
+
"function_item",
|
|
232
|
+
"method_declaration",
|
|
233
|
+
"method_definition",
|
|
234
|
+
"class_declaration",
|
|
235
|
+
"class_definition",
|
|
236
|
+
"class_specifier",
|
|
237
|
+
"interface_declaration",
|
|
238
|
+
"enum_declaration",
|
|
239
|
+
"enum_item",
|
|
240
|
+
"struct_item",
|
|
241
|
+
"impl_item",
|
|
242
|
+
"trait_item",
|
|
243
|
+
"mod_item",
|
|
244
|
+
"type_alias_declaration",
|
|
245
|
+
"type_declaration",
|
|
246
|
+
"variable_declarator",
|
|
247
|
+
"lexical_declaration",
|
|
248
|
+
"const_item",
|
|
249
|
+
"static_item",
|
|
250
|
+
"decorated_definition"
|
|
251
|
+
]);
|
|
252
|
+
for (; node; ) {
|
|
253
|
+
if (declarationTypes.has(node.type))
|
|
254
|
+
return node;
|
|
255
|
+
node = node.parent;
|
|
256
|
+
}
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// packages/coding-agent/dist/builtin-extensions/pi-lsp-extension/src/shared/constants.js
|
|
261
|
+
var SKIP_DIRS = /* @__PURE__ */ new Set([
|
|
262
|
+
"node_modules",
|
|
263
|
+
".git",
|
|
264
|
+
"build",
|
|
265
|
+
"dist",
|
|
266
|
+
"target",
|
|
267
|
+
"out",
|
|
268
|
+
".next",
|
|
269
|
+
"__pycache__",
|
|
270
|
+
".tox",
|
|
271
|
+
".venv",
|
|
272
|
+
"venv",
|
|
273
|
+
".mypy_cache",
|
|
274
|
+
".pytest_cache",
|
|
275
|
+
"vendor",
|
|
276
|
+
".gradle",
|
|
277
|
+
".idea",
|
|
278
|
+
".vscode",
|
|
279
|
+
".bemol",
|
|
280
|
+
"env",
|
|
281
|
+
"coverage",
|
|
282
|
+
".nyc_output",
|
|
283
|
+
".cache"
|
|
284
|
+
]), MAX_FILE_SIZE = 500 * 1024, MAX_INDEX_FILES = 5e3;
|
|
285
|
+
|
|
286
|
+
export {
|
|
287
|
+
extractSymbols,
|
|
288
|
+
getNodeAtPosition,
|
|
289
|
+
findDefinition,
|
|
290
|
+
getSyntaxErrors,
|
|
291
|
+
getSignatureText,
|
|
292
|
+
getEnclosingDeclaration,
|
|
293
|
+
SKIP_DIRS,
|
|
294
|
+
MAX_FILE_SIZE,
|
|
295
|
+
MAX_INDEX_FILES
|
|
296
|
+
};
|