@ashx-j/lunr 0.2.17 → 0.2.19
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 +26 -1
- package/README.md +2 -1
- package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -0
- package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js +44 -19
- package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +2 -1
- package/dist/builtin-extensions/index.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 +172 -171
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +50 -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 +131 -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 +276 -109
- 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-mcp-adapter/server-manager.d.ts +6 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +33 -8
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.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 +68 -15
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +5 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.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 +2 -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 +72 -31
- 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 +259 -168
- 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/cli-runtime.d.ts +3 -0
- package/dist/cli-runtime.d.ts.map +1 -0
- package/dist/cli-runtime.js +72 -0
- package/dist/cli-runtime.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -60
- 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.map +1 -1
- package/dist/core/agent-session.js +6 -3
- package/dist/core/agent-session.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/keybindings.d.ts +2 -2
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +2 -2
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +1 -1
- package/dist/core/package-manager.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/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/agent-bridge.d.ts +6 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +23 -6
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +3 -1
- package/dist/gateway/cron.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +20 -14
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +10 -8
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/thinking-level-slash.d.ts +4 -0
- package/dist/modes/interactive/thinking-level-slash.d.ts.map +1 -0
- package/dist/modes/interactive/thinking-level-slash.js +23 -0
- package/dist/modes/interactive/thinking-level-slash.js.map +1 -0
- package/dist/node-runtime/agent-session-services-35WNVGMR.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-322XDDEM.js +28 -0
- package/dist/node-runtime/chunk-2SJB2AWP.js +47 -0
- package/dist/node-runtime/chunk-3NMWLTPV.js +64 -0
- package/dist/node-runtime/chunk-3WFAEVKS.js +115 -0
- package/dist/node-runtime/chunk-3X3KZKMI.js +49 -0
- package/dist/node-runtime/chunk-4CSFRBCN.js +7558 -0
- package/dist/node-runtime/chunk-4DJ6HEGH.js +296 -0
- package/dist/node-runtime/chunk-4FX25LWP.js +1345 -0
- package/dist/node-runtime/chunk-4HXHDDCF.js +16 -0
- package/dist/node-runtime/chunk-4I23VTC4.js +429 -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-5EFIU3OM.js +295 -0
- package/dist/node-runtime/chunk-6BEIBLQ3.js +53 -0
- package/dist/node-runtime/chunk-6KDIOJL3.js +72 -0
- package/dist/node-runtime/chunk-7N3YHTYF.js +26 -0
- package/dist/node-runtime/chunk-7NBZ5P7I.js +24 -0
- package/dist/node-runtime/chunk-AD6VXAO7.js +342 -0
- package/dist/node-runtime/chunk-ARC4KOTI.js +11178 -0
- package/dist/node-runtime/chunk-AROOY4BB.js +173 -0
- package/dist/node-runtime/chunk-ATGA2WLC.js +5646 -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-BOHIDQT4.js +21 -0
- package/dist/node-runtime/chunk-BRJX2PRC.js +53 -0
- package/dist/node-runtime/chunk-CBGB57XT.js +20211 -0
- package/dist/node-runtime/chunk-CCZJ3PYY.js +17 -0
- package/dist/node-runtime/chunk-CGBXPL3E.js +1171 -0
- package/dist/node-runtime/chunk-CJECDQKP.js +19 -0
- package/dist/node-runtime/chunk-CSFI6YXL.js +130 -0
- package/dist/node-runtime/chunk-DAPBPCBP.js +53 -0
- package/dist/node-runtime/chunk-DDWHZ633.js +37 -0
- package/dist/node-runtime/chunk-DMMTJQMQ.js +43 -0
- package/dist/node-runtime/chunk-DVGWF6A2.js +1180 -0
- package/dist/node-runtime/chunk-FQMM2EZ2.js +248 -0
- package/dist/node-runtime/chunk-FVDOXRUD.js +96 -0
- package/dist/node-runtime/chunk-G6LRAP36.js +105 -0
- package/dist/node-runtime/chunk-GKLEQ3I4.js +860 -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-IRPJXI6U.js +1269 -0
- package/dist/node-runtime/chunk-J26TSGDL.js +633 -0
- package/dist/node-runtime/chunk-JHYKXIMM.js +378 -0
- package/dist/node-runtime/chunk-JZQ7F36T.js +610 -0
- package/dist/node-runtime/chunk-KBKMCJDU.js +126 -0
- package/dist/node-runtime/chunk-KWA4OC2J.js +100 -0
- package/dist/node-runtime/chunk-M3LZLQW2.js +98 -0
- package/dist/node-runtime/chunk-MCUNIRD5.js +8388 -0
- package/dist/node-runtime/chunk-NUIFPZWX.js +209 -0
- package/dist/node-runtime/chunk-OBMWP3I5.js +68 -0
- package/dist/node-runtime/chunk-OCVIXVTZ.js +88 -0
- package/dist/node-runtime/chunk-OPEK5RRY.js +466 -0
- package/dist/node-runtime/chunk-OR4L3IB2.js +42 -0
- package/dist/node-runtime/chunk-PL6JKXWI.js +3622 -0
- package/dist/node-runtime/chunk-PNJSG3IZ.js +807 -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-QZMODZQ2.js +305 -0
- package/dist/node-runtime/chunk-RNBHABBA.js +986 -0
- package/dist/node-runtime/chunk-RQ2Q5IYR.js +72 -0
- package/dist/node-runtime/chunk-RRIZE6QQ.js +17 -0
- package/dist/node-runtime/chunk-SN6G4OU6.js +4753 -0
- package/dist/node-runtime/chunk-STERBGUB.js +949 -0
- package/dist/node-runtime/chunk-TFBIJTM3.js +966 -0
- package/dist/node-runtime/chunk-TXHKBRHZ.js +9450 -0
- package/dist/node-runtime/chunk-UWQYRSYQ.js +8973 -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-WKDK4C5P.js +2834 -0
- package/dist/node-runtime/chunk-XATUM2HK.js +46 -0
- package/dist/node-runtime/chunk-XBWPBZBN.js +125 -0
- package/dist/node-runtime/chunk-XTHQ7XR7.js +509 -0
- package/dist/node-runtime/chunk-ZRCBN365.js +1734 -0
- package/dist/node-runtime/cli-runtime.js +80 -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-DWUM5X3U.js +13 -0
- package/dist/node-runtime/commands-MV5KOZ64.js +291 -0
- package/dist/node-runtime/config-QDD5PUE2.js +73 -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-BK7CLEBX.js +188 -0
- package/dist/node-runtime/exa-LL64QZR2.js +329 -0
- package/dist/node-runtime/export-html-TEXVV5RP.js +150 -0
- package/dist/node-runtime/extension-input-O4HSAEM4.js +14 -0
- package/dist/node-runtime/extension-selector-X5FCX43D.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-UZXMFGWY.js +2137 -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-NJEE5CTU.js +1831 -0
- package/dist/node-runtime/index.js +859 -0
- package/dist/node-runtime/init-3C7Z24OI.js +28 -0
- package/dist/node-runtime/install-cli-EXMJQESX.js +308 -0
- package/dist/node-runtime/interactive-mode-QT5IKGQ5.js +56 -0
- package/dist/node-runtime/interactive-view-ILS6TAN5.js +247 -0
- package/dist/node-runtime/lsp-manager-3ASUSO4T.js +1104 -0
- package/dist/node-runtime/lunr-cron-QPBTKBGI.js +272 -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-7RKSZGEN.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-GUFZWW54.js +428 -0
- package/dist/node-runtime/pi-ollama-cloud-2F3Y2QNM.js +1440 -0
- package/dist/node-runtime/pi-prompt-template-model-QWTCGLJU.js +3946 -0
- package/dist/node-runtime/pi-subagents-7YJ3I4VE.js +6048 -0
- package/dist/node-runtime/pi-web-access-2CQGFLT2.js +1867 -0
- package/dist/node-runtime/print-mode-XSFM26EL.js +12 -0
- package/dist/node-runtime/proxy-modes-V6YVFH3C.js +685 -0
- package/dist/node-runtime/rpc-entry.js +62 -0
- package/dist/node-runtime/rpc-mode-W5ZTLTMZ.js +13 -0
- package/dist/node-runtime/runtime-bridges-3RKBDLNA.js +14 -0
- package/dist/node-runtime/session-manager-E7AREDTV.js +33 -0
- package/dist/node-runtime/session-selector-FJ7M2AIX.js +14 -0
- package/dist/node-runtime/settings-manager-GHPTUN7R.js +21 -0
- package/dist/node-runtime/src-BPQFJR76.js +2427 -0
- package/dist/node-runtime/subagent-executor-5Q5A4HJ2.js +8499 -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-L3JIBH2U.js +70 -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/rpc.d.ts +3 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +18 -0
- package/dist/rpc.js.map +1 -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.map +1 -1
- package/dist/startup/interactive-view.js +1 -2
- package/dist/startup/interactive-view.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.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/docs/development.md +5 -1
- package/docs/features.md +2 -2
- package/docs/interactive-startup.md +95 -48
- package/docs/keybindings.md +2 -2
- package/docs/terminal-setup.md +1 -1
- package/docs/usage.md +1 -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/hidden-thinking-label.ts +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 +8 -8
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
sanitizeBinaryOutput
|
|
4
|
+
} from "./chunk-CSFI6YXL.js";
|
|
5
|
+
import {
|
|
6
|
+
resolvePath
|
|
7
|
+
} from "./chunk-FQMM2EZ2.js";
|
|
8
|
+
|
|
9
|
+
// packages/coding-agent/dist/core/tools/render-utils.js
|
|
10
|
+
import * as os from "node:os";
|
|
11
|
+
import { basename } from "node:path";
|
|
12
|
+
import { pathToFileURL } from "node:url";
|
|
13
|
+
import { getCapabilities, getImageDimensions, hyperlink, imageFallback } from "@ashx-j/lunr-tui";
|
|
14
|
+
|
|
15
|
+
// packages/coding-agent/dist/utils/ansi.js
|
|
16
|
+
function ansiRegex({ onlyFirst = !1 } = {}) {
|
|
17
|
+
let pattern = "(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
18
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
19
|
+
}
|
|
20
|
+
var regex = ansiRegex();
|
|
21
|
+
function stripAnsi(value) {
|
|
22
|
+
if (typeof value != "string")
|
|
23
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof value}\``);
|
|
24
|
+
return !value.includes("\x1B") && !value.includes("\x9B") ? value : value.replace(regex, "");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// packages/coding-agent/dist/core/tools/render-utils.js
|
|
28
|
+
function shortenPath(path) {
|
|
29
|
+
if (typeof path != "string")
|
|
30
|
+
return "";
|
|
31
|
+
let home = os.homedir();
|
|
32
|
+
return path.startsWith(home) ? `~${path.slice(home.length)}` : path;
|
|
33
|
+
}
|
|
34
|
+
function linkPath(styledText, rawPath, cwd) {
|
|
35
|
+
if (!getCapabilities().hyperlinks)
|
|
36
|
+
return styledText;
|
|
37
|
+
let absolutePath = resolvePath(rawPath, cwd);
|
|
38
|
+
return hyperlink(styledText, pathToFileURL(absolutePath).href);
|
|
39
|
+
}
|
|
40
|
+
function str(value) {
|
|
41
|
+
return typeof value == "string" ? value : value == null ? "" : null;
|
|
42
|
+
}
|
|
43
|
+
function replaceTabs(text) {
|
|
44
|
+
return text.replace(/\t/g, " ");
|
|
45
|
+
}
|
|
46
|
+
function normalizeDisplayText(text) {
|
|
47
|
+
return text.replace(/\r/g, "");
|
|
48
|
+
}
|
|
49
|
+
function getTextOutput(result, showImages) {
|
|
50
|
+
if (!result)
|
|
51
|
+
return "";
|
|
52
|
+
let textBlocks = result.content.filter((c) => c.type === "text"), imageBlocks = result.content.filter((c) => c.type === "image"), output = textBlocks.map((c) => sanitizeBinaryOutput(stripAnsi(c.text || "")).replace(/\r/g, "")).join(`
|
|
53
|
+
`), caps = getCapabilities();
|
|
54
|
+
if (imageBlocks.length > 0 && (!caps.images || !showImages)) {
|
|
55
|
+
let imageIndicators = imageBlocks.map((img) => {
|
|
56
|
+
let mimeType = img.mimeType ?? "image/unknown", dims = img.data && img.mimeType ? getImageDimensions(img.data, img.mimeType) ?? void 0 : void 0;
|
|
57
|
+
return imageFallback(mimeType, dims);
|
|
58
|
+
}).join(`
|
|
59
|
+
`);
|
|
60
|
+
output = output ? `${output}
|
|
61
|
+
${imageIndicators}` : imageIndicators;
|
|
62
|
+
}
|
|
63
|
+
return output;
|
|
64
|
+
}
|
|
65
|
+
function invalidArgText(theme) {
|
|
66
|
+
return theme.fg("error", "[invalid arg]");
|
|
67
|
+
}
|
|
68
|
+
function toolGroupRole(continuation, followed) {
|
|
69
|
+
return !continuation && followed ? "first" : continuation && followed ? "middle" : continuation && !followed ? "last" : "singleton";
|
|
70
|
+
}
|
|
71
|
+
function toolGroupTree(context) {
|
|
72
|
+
return !context.expanded;
|
|
73
|
+
}
|
|
74
|
+
function formatGroupedCall(opts) {
|
|
75
|
+
let detail = opts.detail?.trim() ? opts.detail : "";
|
|
76
|
+
if (!((opts.tree ?? opts.compact === !0) && opts.role !== "singleton" && detail.length > 0))
|
|
77
|
+
return detail ? `${opts.dot} ${opts.title} ${detail}` : `${opts.dot} ${opts.title}`;
|
|
78
|
+
let branch = opts.role === "last" ? "\u2514\u2500" : "\u251C\u2500";
|
|
79
|
+
return opts.role === "first" ? `${opts.dot} ${opts.title}
|
|
80
|
+
${branch} ${detail}` : ` ${branch} ${detail}`;
|
|
81
|
+
}
|
|
82
|
+
function toolStatusDot(state, theme) {
|
|
83
|
+
return theme.fg(state === "pending" ? "muted" : state, "\u25CF");
|
|
84
|
+
}
|
|
85
|
+
function toolStatusDotFromContext(context, theme) {
|
|
86
|
+
return toolStatusDot(context.isPartial ? "pending" : context.isError ? "error" : "success", theme);
|
|
87
|
+
}
|
|
88
|
+
function renderToolPath(rawPath, theme, cwd, options) {
|
|
89
|
+
if (rawPath === null)
|
|
90
|
+
return invalidArgText(theme);
|
|
91
|
+
let value = rawPath || options?.emptyFallback;
|
|
92
|
+
return value ? linkPath(theme.fg("accent", shortenPath(value)), value, cwd) : theme.fg("toolOutput", "...");
|
|
93
|
+
}
|
|
94
|
+
function renderToolFileName(rawPath, theme, cwd) {
|
|
95
|
+
if (rawPath === null)
|
|
96
|
+
return invalidArgText(theme);
|
|
97
|
+
if (!rawPath)
|
|
98
|
+
return theme.fg("toolOutput", "...");
|
|
99
|
+
let name = basename(rawPath) || rawPath;
|
|
100
|
+
return linkPath(theme.fg("accent", name), rawPath, cwd);
|
|
101
|
+
}
|
|
102
|
+
function renderCollapsedSearchPath(rawPath, theme, cwd) {
|
|
103
|
+
if (rawPath === null)
|
|
104
|
+
return invalidArgText(theme);
|
|
105
|
+
let value = rawPath.trim();
|
|
106
|
+
if (!(!value || value === "." || value === "./"))
|
|
107
|
+
return renderToolFileName(value, theme, cwd);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
stripAnsi,
|
|
112
|
+
shortenPath,
|
|
113
|
+
str,
|
|
114
|
+
replaceTabs,
|
|
115
|
+
normalizeDisplayText,
|
|
116
|
+
getTextOutput,
|
|
117
|
+
invalidArgText,
|
|
118
|
+
toolGroupRole,
|
|
119
|
+
toolGroupTree,
|
|
120
|
+
formatGroupedCall,
|
|
121
|
+
toolStatusDot,
|
|
122
|
+
toolStatusDotFromContext,
|
|
123
|
+
renderToolPath,
|
|
124
|
+
renderToolFileName,
|
|
125
|
+
renderCollapsedSearchPath
|
|
126
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
require_semver
|
|
4
|
+
} from "./chunk-DVGWF6A2.js";
|
|
5
|
+
import {
|
|
6
|
+
NPM_CLI_PACKAGE,
|
|
7
|
+
PACKAGE_NAME
|
|
8
|
+
} from "./chunk-FQMM2EZ2.js";
|
|
9
|
+
import {
|
|
10
|
+
__toESM
|
|
11
|
+
} from "./chunk-BRJX2PRC.js";
|
|
12
|
+
|
|
13
|
+
// packages/coding-agent/dist/core/update-check.js
|
|
14
|
+
var import_semver = __toESM(require_semver(), 1);
|
|
15
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
16
|
+
import { dirname, join } from "node:path";
|
|
17
|
+
var UPDATE_CHECK_TTL_MS = 1440 * 60 * 1e3, UPDATE_CHECK_TIMEOUT_MS = 4e3, NPM_LATEST_URL = `https://registry.npmjs.org/${NPM_CLI_PACKAGE}/latest`;
|
|
18
|
+
function isPublishedInstall(packageName = PACKAGE_NAME, npmName = NPM_CLI_PACKAGE) {
|
|
19
|
+
return packageName === npmName;
|
|
20
|
+
}
|
|
21
|
+
function updateCheckPath(agentDir) {
|
|
22
|
+
return join(agentDir, "update-check.json");
|
|
23
|
+
}
|
|
24
|
+
function readRecord(path) {
|
|
25
|
+
try {
|
|
26
|
+
let raw = JSON.parse(readFileSync(path, "utf8"));
|
|
27
|
+
return typeof raw.checkedAt != "number" || typeof raw.latest != "string" || !raw.latest.trim() ? void 0 : {
|
|
28
|
+
checkedAt: raw.checkedAt,
|
|
29
|
+
latest: raw.latest.trim(),
|
|
30
|
+
notifiedVersion: typeof raw.notifiedVersion == "string" ? raw.notifiedVersion : void 0
|
|
31
|
+
};
|
|
32
|
+
} catch {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function writeRecord(path, record) {
|
|
37
|
+
mkdirSync(dirname(path), { recursive: !0 }), writeFileSync(path, `${JSON.stringify(record)}
|
|
38
|
+
`, "utf8");
|
|
39
|
+
}
|
|
40
|
+
async function fetchLatest(fetchImpl) {
|
|
41
|
+
let controller = new AbortController(), timeout = setTimeout(() => controller.abort(), UPDATE_CHECK_TIMEOUT_MS);
|
|
42
|
+
try {
|
|
43
|
+
let response = await fetchImpl(NPM_LATEST_URL, {
|
|
44
|
+
headers: { Accept: "application/json" },
|
|
45
|
+
signal: controller.signal
|
|
46
|
+
});
|
|
47
|
+
if (!response.ok)
|
|
48
|
+
return;
|
|
49
|
+
let payload = await response.json();
|
|
50
|
+
return typeof payload.version == "string" && payload.version.trim() ? payload.version.trim() : void 0;
|
|
51
|
+
} catch {
|
|
52
|
+
return;
|
|
53
|
+
} finally {
|
|
54
|
+
clearTimeout(timeout);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function checkForUpdate(options) {
|
|
58
|
+
if (options.offline || !(options.published ?? isPublishedInstall()))
|
|
59
|
+
return;
|
|
60
|
+
let now = options.now ?? Date.now(), path = updateCheckPath(options.agentDir), record = existsSync(path) ? readRecord(path) : void 0;
|
|
61
|
+
if (!record || now - record.checkedAt >= UPDATE_CHECK_TTL_MS || options.force) {
|
|
62
|
+
let latest = await fetchLatest(options.fetchImpl ?? fetch);
|
|
63
|
+
if (!latest)
|
|
64
|
+
return record ? toResult(options.currentVersion, record, !1) : void 0;
|
|
65
|
+
record = { checkedAt: now, latest, notifiedVersion: record?.notifiedVersion };
|
|
66
|
+
try {
|
|
67
|
+
writeRecord(path, record);
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (record)
|
|
72
|
+
return toResult(options.currentVersion, record, !0);
|
|
73
|
+
}
|
|
74
|
+
function isNewer(latest, current) {
|
|
75
|
+
try {
|
|
76
|
+
return (0, import_semver.gt)(latest, current);
|
|
77
|
+
} catch {
|
|
78
|
+
return !1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function toResult(current, record, allowNotice) {
|
|
82
|
+
let newer = isNewer(record.latest, current), notice = allowNotice && newer && record.notifiedVersion !== record.latest ? `lunR ${record.latest} is available. Run lunr update.` : void 0;
|
|
83
|
+
return { latest: record.latest, current, newer, notice };
|
|
84
|
+
}
|
|
85
|
+
function markUpdateNotified(agentDir, latest) {
|
|
86
|
+
let path = updateCheckPath(agentDir), record = existsSync(path) ? readRecord(path) : void 0;
|
|
87
|
+
if (record) {
|
|
88
|
+
record.notifiedVersion = latest;
|
|
89
|
+
try {
|
|
90
|
+
writeRecord(path, record);
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
isPublishedInstall,
|
|
98
|
+
checkForUpdate,
|
|
99
|
+
markUpdateNotified
|
|
100
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/model-instructions.js
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
5
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, statSync } from "node:fs";
|
|
6
|
+
import { basename, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
|
+
function getInstructionsRoot(agentDir) {
|
|
8
|
+
return join(resolve(agentDir), "agents");
|
|
9
|
+
}
|
|
10
|
+
function getGlobalInstructionsPath(agentDir) {
|
|
11
|
+
return join(getInstructionsRoot(agentDir), "AGENTS.md");
|
|
12
|
+
}
|
|
13
|
+
function modelInstructionFolderName(modelId) {
|
|
14
|
+
let withoutThinking = (modelId.trim().split(/[\\/]/).filter(Boolean).at(-1) ?? "model").replace(/:(?:off|minimal|low|medium|high|xhigh|max)$/i, ""), safe = withoutThinking.replace(/[<>:"/\\|?*\u0000-\u001f]/g, "_").replace(/[. ]+$/g, "");
|
|
15
|
+
if ((!safe || safe === "." || safe === "..") && (safe = "model"), /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(safe) && (safe = `_${safe}`), safe.length > 100 || safe.toLowerCase() !== withoutThinking.toLowerCase()) {
|
|
16
|
+
let digest = createHash("sha256").update(withoutThinking.toLowerCase()).digest("hex").slice(0, 8);
|
|
17
|
+
safe = `${safe.slice(0, 90)}-${digest}`;
|
|
18
|
+
}
|
|
19
|
+
return safe.toLowerCase();
|
|
20
|
+
}
|
|
21
|
+
function getModelInstructionsPath(agentDir, modelId) {
|
|
22
|
+
return join(getInstructionsRoot(agentDir), modelInstructionFolderName(modelId), "AGENTS.md");
|
|
23
|
+
}
|
|
24
|
+
function isUserInstructionsPath(filePath, agentDir) {
|
|
25
|
+
let rel = relative(resolve(getInstructionsRoot(agentDir)), resolve(filePath));
|
|
26
|
+
return rel === "" || !isAbsolute(rel) && rel !== ".." && !rel.startsWith(`..${sep}`);
|
|
27
|
+
}
|
|
28
|
+
function migrateLegacyGlobalInstructions(agentDir) {
|
|
29
|
+
let legacyPath = join(resolve(agentDir), "AGENTS.md"), destinationPath = getGlobalInstructionsPath(agentDir);
|
|
30
|
+
if (!existsSync(legacyPath))
|
|
31
|
+
return { status: "absent" };
|
|
32
|
+
if (existsSync(destinationPath))
|
|
33
|
+
return {
|
|
34
|
+
status: "conflict",
|
|
35
|
+
diagnostic: `Both legacy '${legacyPath}' and current '${destinationPath}' exist. Kept both and will use the current file.`
|
|
36
|
+
};
|
|
37
|
+
try {
|
|
38
|
+
return mkdirSync(getInstructionsRoot(agentDir), { recursive: !0 }), renameSync(legacyPath, destinationPath), { status: "migrated" };
|
|
39
|
+
} catch (error) {
|
|
40
|
+
return {
|
|
41
|
+
status: "failed",
|
|
42
|
+
diagnostic: `Could not migrate '${legacyPath}' to '${destinationPath}': ${error instanceof Error ? error.message : String(error)}`
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function concreteModelId(value) {
|
|
47
|
+
if (typeof value != "string")
|
|
48
|
+
return;
|
|
49
|
+
let trimmed = value.trim();
|
|
50
|
+
if (!(!trimmed || /[*?{}]/.test(trimmed)))
|
|
51
|
+
return trimmed.replace(/:(?:off|minimal|low|medium|high|xhigh|max)$/i, "");
|
|
52
|
+
}
|
|
53
|
+
function ensureModelInstructionDirs(agentDir, settings, currentModel) {
|
|
54
|
+
let modelIds = /* @__PURE__ */ new Set(), add = (value) => {
|
|
55
|
+
let id = concreteModelId(value);
|
|
56
|
+
id && modelIds.add(id);
|
|
57
|
+
};
|
|
58
|
+
add(currentModel?.id), add(settings.defaultModel);
|
|
59
|
+
for (let value of settings.enabledModels ?? [])
|
|
60
|
+
add(value);
|
|
61
|
+
add(settings.modelTiers?.light), add(settings.modelTiers?.standard), add(settings.modelTiers?.heavy);
|
|
62
|
+
let diagnostics = [];
|
|
63
|
+
for (let id of modelIds)
|
|
64
|
+
try {
|
|
65
|
+
mkdirSync(join(getInstructionsRoot(agentDir), modelInstructionFolderName(id)), { recursive: !0 });
|
|
66
|
+
} catch (error) {
|
|
67
|
+
diagnostics.push(`Could not prepare model-instruction folder for '${id}': ${error instanceof Error ? error.message : String(error)}`);
|
|
68
|
+
}
|
|
69
|
+
return diagnostics;
|
|
70
|
+
}
|
|
71
|
+
function safeReadInstruction(path) {
|
|
72
|
+
try {
|
|
73
|
+
return !existsSync(path) || !statSync(path).isFile() ? void 0 : { path, content: readFileSync(path, "utf8") };
|
|
74
|
+
} catch {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function loadSelectedUserInstructions(options) {
|
|
79
|
+
ensureModelInstructionDirs(options.agentDir, options.settingsManager.getGlobalSettings(), options.model);
|
|
80
|
+
let enabled = options.settingsManager.getModelInstructionsEnabled(), mode = options.settingsManager.getModelInstructionsMode(), files = [];
|
|
81
|
+
if (!enabled || mode === "both") {
|
|
82
|
+
let globalFile = safeReadInstruction(getGlobalInstructionsPath(options.agentDir));
|
|
83
|
+
globalFile && files.push(globalFile);
|
|
84
|
+
}
|
|
85
|
+
if (enabled && options.model) {
|
|
86
|
+
let modelFile = safeReadInstruction(getModelInstructionsPath(options.agentDir, options.model.id));
|
|
87
|
+
modelFile && files.push(modelFile);
|
|
88
|
+
}
|
|
89
|
+
return files;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
getGlobalInstructionsPath,
|
|
94
|
+
getModelInstructionsPath,
|
|
95
|
+
isUserInstructionsPath,
|
|
96
|
+
migrateLegacyGlobalInstructions,
|
|
97
|
+
loadSelectedUserInstructions
|
|
98
|
+
};
|