@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,268 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createDeliverValidator,
|
|
4
|
+
createJob,
|
|
5
|
+
currentOrigin,
|
|
6
|
+
executeJob,
|
|
7
|
+
getJob,
|
|
8
|
+
listJobs,
|
|
9
|
+
parseSchedule,
|
|
10
|
+
pauseJob,
|
|
11
|
+
removeJob,
|
|
12
|
+
resumeJob,
|
|
13
|
+
setCronDeliverValidator,
|
|
14
|
+
startScheduler,
|
|
15
|
+
updateJob
|
|
16
|
+
} from "./chunk-ECD5L7YI.js";
|
|
17
|
+
import {
|
|
18
|
+
loadGatewayConfig
|
|
19
|
+
} from "./chunk-RQ5DNUNG.js";
|
|
20
|
+
import {
|
|
21
|
+
beginCronFire,
|
|
22
|
+
endCronFire,
|
|
23
|
+
isCronFire
|
|
24
|
+
} from "./chunk-CJECDQKP.js";
|
|
25
|
+
import {
|
|
26
|
+
typebox_exports
|
|
27
|
+
} from "./chunk-PL6JKXWI.js";
|
|
28
|
+
import "./chunk-PCIGF2XK.js";
|
|
29
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
30
|
+
import "./chunk-BRJX2PRC.js";
|
|
31
|
+
|
|
32
|
+
// packages/coding-agent/dist/builtin-extensions/lunr-cron.js
|
|
33
|
+
var pendingRun = null, scheduler = null, lastCtx = null, DELIVERY_BRIDGE_SYMBOL = /* @__PURE__ */ Symbol.for("@lunr/cron-delivery");
|
|
34
|
+
function extractAssistantText(messages) {
|
|
35
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
36
|
+
let msg = messages[i];
|
|
37
|
+
if (msg?.role !== "assistant")
|
|
38
|
+
continue;
|
|
39
|
+
let text = (Array.isArray(msg.content) ? msg.content : []).filter((p) => p?.type === "text").map((p) => String(p.text ?? "")).join("").trim();
|
|
40
|
+
if (text)
|
|
41
|
+
return text;
|
|
42
|
+
}
|
|
43
|
+
return "";
|
|
44
|
+
}
|
|
45
|
+
function fmtTime(iso) {
|
|
46
|
+
if (!iso)
|
|
47
|
+
return "-";
|
|
48
|
+
let d = new Date(iso);
|
|
49
|
+
if (Number.isNaN(d.getTime()))
|
|
50
|
+
return "-";
|
|
51
|
+
let p = (n) => String(n).padStart(2, "0");
|
|
52
|
+
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}`;
|
|
53
|
+
}
|
|
54
|
+
function formatJobList() {
|
|
55
|
+
let jobs = listJobs();
|
|
56
|
+
if (jobs.length === 0)
|
|
57
|
+
return "No cron jobs. Create one with /cron create <schedule> <prompt>.";
|
|
58
|
+
let lines = jobs.map((j) => `${j.id} ${j.state}${j.enabled ? "" : " (disabled)"} ${j.scheduleDisplay} next=${fmtTime(j.nextRunAt)} last=${j.lastStatus ?? "-"}${j.lastError ? ` (${j.lastError})` : ""} ${j.name}`);
|
|
59
|
+
return `Cron jobs (${jobs.length}):
|
|
60
|
+
${lines.join(`
|
|
61
|
+
`)}`;
|
|
62
|
+
}
|
|
63
|
+
function formatStatus() {
|
|
64
|
+
let jobs = listJobs(), count = (s) => jobs.filter((j) => j.state === s).length, next = jobs.filter((j) => j.enabled && j.state === "scheduled" && j.nextRunAt).sort((a, b) => String(a.nextRunAt).localeCompare(String(b.nextRunAt)))[0];
|
|
65
|
+
return `Cron: scheduler ${scheduler ? "running" : "stopped"}; ${jobs.length} job(s) \u2014 ${count("scheduled")} scheduled, ${count("paused")} paused, ${count("completed")} completed, ${count("error")} error.` + (next ? ` Next: '${next.name}' at ${fmtTime(next.nextRunAt)}.` : "");
|
|
66
|
+
}
|
|
67
|
+
function lunr_cron_default(pi) {
|
|
68
|
+
setCronDeliverValidator(createDeliverValidator(loadGatewayConfig())), globalThis[DELIVERY_BRIDGE_SYMBOL] = async (job, _content) => {
|
|
69
|
+
try {
|
|
70
|
+
return lastCtx?.ui.notify(`Cron job '${job.name}' finished`, "info"), null;
|
|
71
|
+
} catch (err) {
|
|
72
|
+
return String(err?.message ?? err);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
let schedulerDeps = { runJob: (prompt, _job) => pendingRun ? Promise.reject(new Error("another cron job turn is already in flight")) : new Promise((resolve, reject) => {
|
|
76
|
+
beginCronFire(), pendingRun = { resolve, reject };
|
|
77
|
+
try {
|
|
78
|
+
pi.sendUserMessage(prompt);
|
|
79
|
+
} catch (err) {
|
|
80
|
+
pendingRun = null, endCronFire(), reject(err);
|
|
81
|
+
}
|
|
82
|
+
}), deliverResult: async (job, content) => {
|
|
83
|
+
let bridge = globalThis[DELIVERY_BRIDGE_SYMBOL];
|
|
84
|
+
if (!bridge)
|
|
85
|
+
throw new Error("no cron delivery bridge registered");
|
|
86
|
+
let err = await bridge(job, content);
|
|
87
|
+
if (err)
|
|
88
|
+
throw new Error(String(err));
|
|
89
|
+
} }, triggerRun = async (job, ctx) => {
|
|
90
|
+
if (ctx.isIdle())
|
|
91
|
+
try {
|
|
92
|
+
return await executeJob(getJob(job.id), schedulerDeps), `Cron job '${job.name}' (${job.id}) finished.`;
|
|
93
|
+
} catch (err) {
|
|
94
|
+
return `Cron job '${job.name}' (${job.id}) failed: ${String(err?.message ?? err)}`;
|
|
95
|
+
}
|
|
96
|
+
return await updateJob(job.id, { nextRunAt: (/* @__PURE__ */ new Date()).toISOString() }), `Cron job '${job.name}' (${job.id}) queued for the next scheduler tick.`;
|
|
97
|
+
};
|
|
98
|
+
pi.on("agent_end", (event) => {
|
|
99
|
+
if (!pendingRun)
|
|
100
|
+
return;
|
|
101
|
+
let pending = pendingRun;
|
|
102
|
+
pendingRun = null, endCronFire(), pending.resolve(extractAssistantText(event.messages ?? []));
|
|
103
|
+
}), pi.on("session_start", (_event, ctx) => {
|
|
104
|
+
lastCtx = ctx, ctx.mode === "tui" && (scheduler?.stop(), scheduler = startScheduler(schedulerDeps));
|
|
105
|
+
}), pi.on("session_shutdown", () => {
|
|
106
|
+
scheduler?.stop(), scheduler = null;
|
|
107
|
+
}), pi.registerCommand("cron", {
|
|
108
|
+
description: "Manage cron jobs: /cron list | create <schedule> <prompt> | pause|resume|run|remove <id-or-name> | status",
|
|
109
|
+
getArgumentCompletions: (prefix) => {
|
|
110
|
+
let subs = ["list", "create", "pause", "resume", "run", "remove", "status"], lower = prefix.toLowerCase();
|
|
111
|
+
return subs.filter((s) => s.startsWith(lower)).map((s) => ({ value: s, label: s, description: `/cron ${s}` }));
|
|
112
|
+
},
|
|
113
|
+
handler: async (args, ctx) => {
|
|
114
|
+
lastCtx = ctx;
|
|
115
|
+
let tokens = args.trim().split(/\s+/).filter(Boolean), sub = (tokens.shift() ?? "list").toLowerCase();
|
|
116
|
+
try {
|
|
117
|
+
switch (sub) {
|
|
118
|
+
case "list": {
|
|
119
|
+
ctx.ui.notify(formatJobList(), "info");
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
case "status": {
|
|
123
|
+
ctx.ui.notify(formatStatus(), "info");
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
case "create": {
|
|
127
|
+
let used = 0;
|
|
128
|
+
for (let k = 1; k <= Math.min(6, tokens.length); k++)
|
|
129
|
+
try {
|
|
130
|
+
parseSchedule(tokens.slice(0, k).join(" ")), used = k;
|
|
131
|
+
break;
|
|
132
|
+
} catch {
|
|
133
|
+
}
|
|
134
|
+
let prompt = tokens.slice(used).join(" ").trim();
|
|
135
|
+
if (!used || !prompt) {
|
|
136
|
+
ctx.ui.notify("Usage: /cron create <schedule> <prompt> \u2014 e.g. /cron create every 30m check the deploy", "error");
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
let job = await createJob({ prompt, schedule: tokens.slice(0, used).join(" ") });
|
|
140
|
+
ctx.ui.notify(`Created cron job '${job.name}' (${job.id}) \u2014 ${job.scheduleDisplay}, next run ${fmtTime(job.nextRunAt)}.`, "info");
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
case "pause":
|
|
144
|
+
case "resume":
|
|
145
|
+
case "remove":
|
|
146
|
+
case "run": {
|
|
147
|
+
let idOrName = tokens.join(" ").trim();
|
|
148
|
+
if (!idOrName) {
|
|
149
|
+
ctx.ui.notify(`Usage: /cron ${sub} <id-or-name>`, "error");
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (sub === "pause") {
|
|
153
|
+
let job = await pauseJob(idOrName);
|
|
154
|
+
ctx.ui.notify(`Paused cron job '${job.name}' (${job.id}).`, "info");
|
|
155
|
+
} else if (sub === "resume") {
|
|
156
|
+
let job = await resumeJob(idOrName);
|
|
157
|
+
ctx.ui.notify(`Resumed cron job '${job.name}' (${job.id}) \u2014 next run ${fmtTime(job.nextRunAt)}.`, "info");
|
|
158
|
+
} else if (sub === "remove") {
|
|
159
|
+
let job = await removeJob(idOrName);
|
|
160
|
+
ctx.ui.notify(`Removed cron job '${job.name}' (${job.id}).`, "info");
|
|
161
|
+
} else {
|
|
162
|
+
let job = getJob(idOrName);
|
|
163
|
+
ctx.ui.notify(await triggerRun(job, ctx), "info");
|
|
164
|
+
}
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
default:
|
|
168
|
+
ctx.ui.notify("Usage: /cron list | create <schedule> <prompt> | pause|resume|run|remove <id-or-name> | status", "error");
|
|
169
|
+
}
|
|
170
|
+
} catch (err) {
|
|
171
|
+
ctx.ui.notify(String(err?.message ?? err), "error");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}), pi.registerTool({
|
|
175
|
+
name: "cron",
|
|
176
|
+
label: "Cron",
|
|
177
|
+
description: [
|
|
178
|
+
"Manage scheduled cron jobs that run prompts unattended in this session.",
|
|
179
|
+
"Actions: create (needs prompt + schedule), list, update (id + fields), pause, resume, remove, run (trigger now).",
|
|
180
|
+
"Schedule formats: 'every 30m' / 'every 2h' / 'every 1d' (recurring), '30m'/'2h' or an ISO timestamp (one-shot), or a 5-field cron expression.",
|
|
181
|
+
"Job output is delivered automatically; the job's prompt can answer [SILENT] to suppress delivery."
|
|
182
|
+
].join(`
|
|
183
|
+
`),
|
|
184
|
+
parameters: typebox_exports.Object({
|
|
185
|
+
action: typebox_exports.Union([
|
|
186
|
+
typebox_exports.Literal("create"),
|
|
187
|
+
typebox_exports.Literal("list"),
|
|
188
|
+
typebox_exports.Literal("update"),
|
|
189
|
+
typebox_exports.Literal("pause"),
|
|
190
|
+
typebox_exports.Literal("resume"),
|
|
191
|
+
typebox_exports.Literal("remove"),
|
|
192
|
+
typebox_exports.Literal("run")
|
|
193
|
+
]),
|
|
194
|
+
id: typebox_exports.Optional(typebox_exports.String({ description: "Job id or unique name (all actions except create/list)." })),
|
|
195
|
+
name: typebox_exports.Optional(typebox_exports.String({ description: "Display name (<=50 chars); derived from the prompt when omitted." })),
|
|
196
|
+
prompt: typebox_exports.Optional(typebox_exports.String({ description: "The prompt the job runs (create/update)." })),
|
|
197
|
+
schedule: typebox_exports.Optional(typebox_exports.String({ description: "Schedule input (create/update)." })),
|
|
198
|
+
deliver: typebox_exports.Optional(typebox_exports.String({
|
|
199
|
+
description: "Delivery target(s), comma-separated: 'local' (output file only), 'origin' (the chat that created the job), 'telegram'/'discord' (platform home channel), or 'telegram:<chatId>[:<threadId>]' / 'discord:<chatId>[:<threadId>]'. Defaults to 'origin' when created from a gateway chat, else 'local'."
|
|
200
|
+
}))
|
|
201
|
+
}),
|
|
202
|
+
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
203
|
+
let text = (t) => ({ content: [{ type: "text", text: t }] });
|
|
204
|
+
if (isCronFire())
|
|
205
|
+
return text("cron: unavailable while a cron-fired turn is running (cron jobs cannot schedule cron jobs).");
|
|
206
|
+
try {
|
|
207
|
+
switch (params.action) {
|
|
208
|
+
case "create": {
|
|
209
|
+
if (!params.prompt?.trim() || !params.schedule?.trim())
|
|
210
|
+
return text("cron create: prompt and schedule are required.");
|
|
211
|
+
let origin = currentOrigin(), job = await createJob({
|
|
212
|
+
prompt: params.prompt,
|
|
213
|
+
schedule: params.schedule,
|
|
214
|
+
name: params.name,
|
|
215
|
+
deliver: params.deliver ?? (origin ? "origin" : void 0),
|
|
216
|
+
origin: origin ? { ...origin } : void 0
|
|
217
|
+
});
|
|
218
|
+
return text(`Created cron job '${job.name}' (${job.id}) \u2014 ${job.scheduleDisplay}, next run ${fmtTime(job.nextRunAt)}.`);
|
|
219
|
+
}
|
|
220
|
+
case "list":
|
|
221
|
+
return text(formatJobList());
|
|
222
|
+
case "update": {
|
|
223
|
+
if (!params.id)
|
|
224
|
+
return text("cron update: id (or unique name) is required.");
|
|
225
|
+
let job = await updateJob(params.id, {
|
|
226
|
+
name: params.name,
|
|
227
|
+
prompt: params.prompt,
|
|
228
|
+
schedule: params.schedule,
|
|
229
|
+
deliver: params.deliver
|
|
230
|
+
});
|
|
231
|
+
return text(`Updated cron job '${job.name}' (${job.id}) \u2014 ${job.scheduleDisplay}, next run ${fmtTime(job.nextRunAt)}.`);
|
|
232
|
+
}
|
|
233
|
+
case "pause": {
|
|
234
|
+
if (!params.id)
|
|
235
|
+
return text("cron pause: id (or unique name) is required.");
|
|
236
|
+
let job = await pauseJob(params.id);
|
|
237
|
+
return text(`Paused cron job '${job.name}' (${job.id}).`);
|
|
238
|
+
}
|
|
239
|
+
case "resume": {
|
|
240
|
+
if (!params.id)
|
|
241
|
+
return text("cron resume: id (or unique name) is required.");
|
|
242
|
+
let job = await resumeJob(params.id);
|
|
243
|
+
return text(`Resumed cron job '${job.name}' (${job.id}) \u2014 next run ${fmtTime(job.nextRunAt)}.`);
|
|
244
|
+
}
|
|
245
|
+
case "remove": {
|
|
246
|
+
if (!params.id)
|
|
247
|
+
return text("cron remove: id (or unique name) is required.");
|
|
248
|
+
let job = await removeJob(params.id);
|
|
249
|
+
return text(`Removed cron job '${job.name}' (${job.id}).`);
|
|
250
|
+
}
|
|
251
|
+
case "run": {
|
|
252
|
+
if (!params.id)
|
|
253
|
+
return text("cron run: id (or unique name) is required.");
|
|
254
|
+
let job = getJob(params.id);
|
|
255
|
+
return text(await triggerRun(job, ctx));
|
|
256
|
+
}
|
|
257
|
+
default:
|
|
258
|
+
return text(`cron: unknown action "${String(params.action)}".`);
|
|
259
|
+
}
|
|
260
|
+
} catch (err) {
|
|
261
|
+
return text(`cron: ${String(err?.message ?? err)}`);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
export {
|
|
267
|
+
lunr_cron_default as default
|
|
268
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
main,
|
|
4
|
+
readPipedStdin
|
|
5
|
+
} from "./chunk-N77MY65L.js";
|
|
6
|
+
import "./chunk-PCGNAY2O.js";
|
|
7
|
+
import "./chunk-IPA627GP.js";
|
|
8
|
+
import "./chunk-2QKLKMKC.js";
|
|
9
|
+
import "./chunk-EDBJNRSM.js";
|
|
10
|
+
import "./chunk-WOVTOV5P.js";
|
|
11
|
+
import "./chunk-TQNSPERU.js";
|
|
12
|
+
import "./chunk-PGAJ5MO5.js";
|
|
13
|
+
import "./chunk-OBMWP3I5.js";
|
|
14
|
+
import "./chunk-DVGWF6A2.js";
|
|
15
|
+
import "./chunk-QFWG2RVL.js";
|
|
16
|
+
import "./chunk-CGBXPL3E.js";
|
|
17
|
+
import "./chunk-ZKMFUD3Q.js";
|
|
18
|
+
import "./chunk-AD6VXAO7.js";
|
|
19
|
+
import "./chunk-LZAW4ZX3.js";
|
|
20
|
+
import "./chunk-M3LZLQW2.js";
|
|
21
|
+
import "./chunk-53YJI7JU.js";
|
|
22
|
+
import "./chunk-GZQHMEWL.js";
|
|
23
|
+
import "./chunk-ZCHMJ34K.js";
|
|
24
|
+
import "./chunk-AJX357CL.js";
|
|
25
|
+
import "./chunk-PBC2Y6GS.js";
|
|
26
|
+
import "./chunk-FVDOXRUD.js";
|
|
27
|
+
import "./chunk-AHSTJBIB.js";
|
|
28
|
+
import "./chunk-W3CVH5RX.js";
|
|
29
|
+
import "./chunk-YF63P5ZT.js";
|
|
30
|
+
import "./chunk-PL6JKXWI.js";
|
|
31
|
+
import "./chunk-RQ2Q5IYR.js";
|
|
32
|
+
import "./chunk-JHYKXIMM.js";
|
|
33
|
+
import "./chunk-H2EOZYMP.js";
|
|
34
|
+
import "./chunk-PVCDKGR6.js";
|
|
35
|
+
import "./chunk-OR4L3IB2.js";
|
|
36
|
+
import "./chunk-HQCKFM2O.js";
|
|
37
|
+
import "./chunk-AY6CAJSL.js";
|
|
38
|
+
import "./chunk-DDGMHUOW.js";
|
|
39
|
+
import "./chunk-CCZJ3PYY.js";
|
|
40
|
+
import "./chunk-MJQDX3BA.js";
|
|
41
|
+
import "./chunk-MGWCVY6Y.js";
|
|
42
|
+
import "./chunk-I6R76AG7.js";
|
|
43
|
+
import "./chunk-5P7PZMRU.js";
|
|
44
|
+
import "./chunk-YSKSB3BJ.js";
|
|
45
|
+
import "./chunk-3GHXVUAK.js";
|
|
46
|
+
import "./chunk-C4O2RSQQ.js";
|
|
47
|
+
import "./chunk-MX3GJNXJ.js";
|
|
48
|
+
import "./chunk-PCIGF2XK.js";
|
|
49
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
50
|
+
import "./chunk-BRJX2PRC.js";
|
|
51
|
+
export {
|
|
52
|
+
main,
|
|
53
|
+
readPipedStdin
|
|
54
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
authenticate,
|
|
4
|
+
completeAuth,
|
|
5
|
+
completeAuthFromInput,
|
|
6
|
+
extractOAuthConfig,
|
|
7
|
+
getAuthStatus,
|
|
8
|
+
getValidToken,
|
|
9
|
+
initializeOAuth,
|
|
10
|
+
parseAuthorizationCodeInput,
|
|
11
|
+
removeAuth,
|
|
12
|
+
shutdownOAuth,
|
|
13
|
+
startAuth,
|
|
14
|
+
supportsOAuth
|
|
15
|
+
} from "./chunk-4TLO4PO2.js";
|
|
16
|
+
import "./chunk-4HXHDDCF.js";
|
|
17
|
+
import "./chunk-BI3DHYCN.js";
|
|
18
|
+
import "./chunk-BRJX2PRC.js";
|
|
19
|
+
export {
|
|
20
|
+
authenticate,
|
|
21
|
+
completeAuth,
|
|
22
|
+
completeAuthFromInput,
|
|
23
|
+
extractOAuthConfig,
|
|
24
|
+
getAuthStatus,
|
|
25
|
+
getValidToken,
|
|
26
|
+
initializeOAuth,
|
|
27
|
+
parseAuthorizationCodeInput,
|
|
28
|
+
removeAuth,
|
|
29
|
+
shutdownOAuth,
|
|
30
|
+
startAuth,
|
|
31
|
+
supportsOAuth
|
|
32
|
+
};
|