@ashx-j/lunr 0.2.17 → 0.2.18

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.
Files changed (339) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/README.md +2 -1
  3. package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -0
  4. package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
  5. package/dist/builtin-extensions/ashxj-thinking.js +44 -19
  6. package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
  7. package/dist/builtin-extensions/ashxj-tui.d.ts +2 -2
  8. package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
  9. package/dist/builtin-extensions/ashxj-tui.js +8 -11
  10. package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
  11. package/dist/builtin-extensions/index.d.ts.map +1 -1
  12. package/dist/builtin-extensions/index.js +2 -1
  13. package/dist/builtin-extensions/index.js.map +1 -1
  14. package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts +4 -0
  15. package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
  16. package/dist/builtin-extensions/pi-lsp-extension/src/index.js +172 -171
  17. package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
  18. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +50 -0
  19. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts.map +1 -0
  20. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js +131 -0
  21. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js.map +1 -0
  22. package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts +7 -0
  23. package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts.map +1 -0
  24. package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js +211 -0
  25. package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js.map +1 -0
  26. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts +0 -5
  27. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
  28. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +0 -202
  29. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js.map +1 -1
  30. package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
  31. package/dist/builtin-extensions/pi-mcp-adapter/index.js +276 -109
  32. package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
  33. package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts +4 -1
  34. package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts.map +1 -1
  35. package/dist/builtin-extensions/pi-mcp-adapter/init.js +10 -3
  36. package/dist/builtin-extensions/pi-mcp-adapter/init.js.map +1 -1
  37. package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.d.ts.map +1 -1
  38. package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js +6 -1
  39. package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js.map +1 -1
  40. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts +6 -1
  41. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
  42. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +33 -8
  43. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js.map +1 -1
  44. package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts.map +1 -1
  45. package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js +2 -1
  46. package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js.map +1 -1
  47. package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts +1 -1
  48. package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts.map +1 -1
  49. package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js +1 -1
  50. package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js.map +1 -1
  51. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +1 -1
  52. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
  53. package/dist/builtin-extensions/pi-subagents/src/extension/index.js +68 -15
  54. package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
  55. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts +1 -1
  56. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
  57. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +5 -2
  58. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
  59. package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.d.ts.map +1 -1
  60. package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js +1 -1
  61. package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js.map +1 -1
  62. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +1 -1
  63. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
  64. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +1 -1
  65. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
  66. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -1
  67. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
  68. package/dist/builtin-extensions/pi-subagents/src/tui/render.js +72 -31
  69. package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
  70. package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts +1 -1
  71. package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts.map +1 -1
  72. package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js +2 -1
  73. package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js.map +1 -1
  74. package/dist/builtin-extensions/pi-web-access/extract.d.ts.map +1 -1
  75. package/dist/builtin-extensions/pi-web-access/extract.js +105 -54
  76. package/dist/builtin-extensions/pi-web-access/extract.js.map +1 -1
  77. package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts +1 -1
  78. package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts.map +1 -1
  79. package/dist/builtin-extensions/pi-web-access/gemini-search.js +82 -65
  80. package/dist/builtin-extensions/pi-web-access/gemini-search.js.map +1 -1
  81. package/dist/builtin-extensions/pi-web-access/github-extract.d.ts.map +1 -1
  82. package/dist/builtin-extensions/pi-web-access/github-extract.js +2 -0
  83. package/dist/builtin-extensions/pi-web-access/github-extract.js.map +1 -1
  84. package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
  85. package/dist/builtin-extensions/pi-web-access/index.js +259 -168
  86. package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
  87. package/dist/builtin-extensions/pi-web-access/lazy.d.ts +18 -0
  88. package/dist/builtin-extensions/pi-web-access/lazy.d.ts.map +1 -0
  89. package/dist/builtin-extensions/pi-web-access/lazy.js +19 -0
  90. package/dist/builtin-extensions/pi-web-access/lazy.js.map +1 -0
  91. package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts +6 -0
  92. package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts.map +1 -0
  93. package/dist/builtin-extensions/pi-web-access/session-cleanup.js +17 -0
  94. package/dist/builtin-extensions/pi-web-access/session-cleanup.js.map +1 -0
  95. package/dist/cli-runtime.d.ts +3 -0
  96. package/dist/cli-runtime.d.ts.map +1 -0
  97. package/dist/cli-runtime.js +72 -0
  98. package/dist/cli-runtime.js.map +1 -0
  99. package/dist/cli.d.ts.map +1 -1
  100. package/dist/cli.js +11 -60
  101. package/dist/cli.js.map +1 -1
  102. package/dist/config.d.ts +1 -0
  103. package/dist/config.d.ts.map +1 -1
  104. package/dist/config.js +1 -0
  105. package/dist/config.js.map +1 -1
  106. package/dist/core/agent-session.d.ts.map +1 -1
  107. package/dist/core/agent-session.js +6 -3
  108. package/dist/core/agent-session.js.map +1 -1
  109. package/dist/core/extensions/host-static.d.ts.map +1 -1
  110. package/dist/core/extensions/host-static.js +34 -12
  111. package/dist/core/extensions/host-static.js.map +1 -1
  112. package/dist/core/extensions/loader.d.ts +1 -2
  113. package/dist/core/extensions/loader.d.ts.map +1 -1
  114. package/dist/core/extensions/loader.js +10 -64
  115. package/dist/core/extensions/loader.js.map +1 -1
  116. package/dist/core/keybindings.d.ts +2 -2
  117. package/dist/core/keybindings.d.ts.map +1 -1
  118. package/dist/core/keybindings.js +2 -2
  119. package/dist/core/keybindings.js.map +1 -1
  120. package/dist/core/package-manager.d.ts.map +1 -1
  121. package/dist/core/package-manager.js +1 -1
  122. package/dist/core/package-manager.js.map +1 -1
  123. package/dist/core/sdk.d.ts +1 -1
  124. package/dist/core/sdk.d.ts.map +1 -1
  125. package/dist/core/sdk.js +1 -1
  126. package/dist/core/sdk.js.map +1 -1
  127. package/dist/core/timings.d.ts +2 -1
  128. package/dist/core/timings.d.ts.map +1 -1
  129. package/dist/core/timings.js +17 -2
  130. package/dist/core/timings.js.map +1 -1
  131. package/dist/gateway/agent-bridge.d.ts +6 -1
  132. package/dist/gateway/agent-bridge.d.ts.map +1 -1
  133. package/dist/gateway/agent-bridge.js +23 -6
  134. package/dist/gateway/agent-bridge.js.map +1 -1
  135. package/dist/gateway/cron.d.ts +1 -1
  136. package/dist/gateway/cron.d.ts.map +1 -1
  137. package/dist/gateway/cron.js +3 -1
  138. package/dist/gateway/cron.js.map +1 -1
  139. package/dist/main.d.ts.map +1 -1
  140. package/dist/main.js +20 -14
  141. package/dist/main.js.map +1 -1
  142. package/dist/modes/interactive/injected-context.d.ts +2 -0
  143. package/dist/modes/interactive/injected-context.d.ts.map +1 -0
  144. package/dist/modes/interactive/injected-context.js +7 -0
  145. package/dist/modes/interactive/injected-context.js.map +1 -0
  146. package/dist/modes/interactive/interactive-mode.d.ts +2 -0
  147. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  148. package/dist/modes/interactive/interactive-mode.js +32 -8
  149. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  150. package/dist/modes/interactive/thinking-level-slash.d.ts +4 -0
  151. package/dist/modes/interactive/thinking-level-slash.d.ts.map +1 -0
  152. package/dist/modes/interactive/thinking-level-slash.js +23 -0
  153. package/dist/modes/interactive/thinking-level-slash.js.map +1 -0
  154. package/dist/node-runtime/agent-session-services-35WNVGMR.js +36 -0
  155. package/dist/node-runtime/benchmark-request-UC7PD3V3.js +57 -0
  156. package/dist/node-runtime/brave-UWDA3I22.js +143 -0
  157. package/dist/node-runtime/builtin-extensions-QATGXENO.js +28 -0
  158. package/dist/node-runtime/chunk-2SJB2AWP.js +47 -0
  159. package/dist/node-runtime/chunk-3NMWLTPV.js +64 -0
  160. package/dist/node-runtime/chunk-3WFAEVKS.js +115 -0
  161. package/dist/node-runtime/chunk-3X3KZKMI.js +49 -0
  162. package/dist/node-runtime/chunk-4CSFRBCN.js +7558 -0
  163. package/dist/node-runtime/chunk-4DJ6HEGH.js +296 -0
  164. package/dist/node-runtime/chunk-4HXHDDCF.js +16 -0
  165. package/dist/node-runtime/chunk-4I23VTC4.js +429 -0
  166. package/dist/node-runtime/chunk-4TLO4PO2.js +3427 -0
  167. package/dist/node-runtime/chunk-4ZWGEEAS.js +69 -0
  168. package/dist/node-runtime/chunk-53YJI7JU.js +137 -0
  169. package/dist/node-runtime/chunk-5EFIU3OM.js +295 -0
  170. package/dist/node-runtime/chunk-6BEIBLQ3.js +53 -0
  171. package/dist/node-runtime/chunk-6KDIOJL3.js +72 -0
  172. package/dist/node-runtime/chunk-7N3YHTYF.js +26 -0
  173. package/dist/node-runtime/chunk-7NBZ5P7I.js +24 -0
  174. package/dist/node-runtime/chunk-AD6VXAO7.js +342 -0
  175. package/dist/node-runtime/chunk-ARC4KOTI.js +11178 -0
  176. package/dist/node-runtime/chunk-AROOY4BB.js +173 -0
  177. package/dist/node-runtime/chunk-ATGA2WLC.js +5646 -0
  178. package/dist/node-runtime/chunk-AUXVGBO4.js +19 -0
  179. package/dist/node-runtime/chunk-AY6CAJSL.js +30 -0
  180. package/dist/node-runtime/chunk-BHO7O6E5.js +296 -0
  181. package/dist/node-runtime/chunk-BI3DHYCN.js +8845 -0
  182. package/dist/node-runtime/chunk-BOHIDQT4.js +21 -0
  183. package/dist/node-runtime/chunk-BRJX2PRC.js +53 -0
  184. package/dist/node-runtime/chunk-CBGB57XT.js +20211 -0
  185. package/dist/node-runtime/chunk-CCZJ3PYY.js +17 -0
  186. package/dist/node-runtime/chunk-CGBXPL3E.js +1171 -0
  187. package/dist/node-runtime/chunk-CJECDQKP.js +19 -0
  188. package/dist/node-runtime/chunk-CSFI6YXL.js +130 -0
  189. package/dist/node-runtime/chunk-DAPBPCBP.js +53 -0
  190. package/dist/node-runtime/chunk-DDWHZ633.js +37 -0
  191. package/dist/node-runtime/chunk-DMMTJQMQ.js +43 -0
  192. package/dist/node-runtime/chunk-DVGWF6A2.js +1180 -0
  193. package/dist/node-runtime/chunk-EBF6COVM.js +1734 -0
  194. package/dist/node-runtime/chunk-FQMM2EZ2.js +248 -0
  195. package/dist/node-runtime/chunk-FVDOXRUD.js +96 -0
  196. package/dist/node-runtime/chunk-G4P75AIS.js +9471 -0
  197. package/dist/node-runtime/chunk-G6LRAP36.js +105 -0
  198. package/dist/node-runtime/chunk-GKLEQ3I4.js +860 -0
  199. package/dist/node-runtime/chunk-H2EOZYMP.js +57 -0
  200. package/dist/node-runtime/chunk-HQCKFM2O.js +56 -0
  201. package/dist/node-runtime/chunk-HYHJIRDW.js +19 -0
  202. package/dist/node-runtime/chunk-I6R76AG7.js +22 -0
  203. package/dist/node-runtime/chunk-IRPJXI6U.js +1269 -0
  204. package/dist/node-runtime/chunk-J26TSGDL.js +633 -0
  205. package/dist/node-runtime/chunk-JZQ7F36T.js +610 -0
  206. package/dist/node-runtime/chunk-KBKMCJDU.js +126 -0
  207. package/dist/node-runtime/chunk-KWA4OC2J.js +100 -0
  208. package/dist/node-runtime/chunk-M3LZLQW2.js +98 -0
  209. package/dist/node-runtime/chunk-MCUNIRD5.js +8388 -0
  210. package/dist/node-runtime/chunk-NI6OTSBH.js +966 -0
  211. package/dist/node-runtime/chunk-NUIFPZWX.js +209 -0
  212. package/dist/node-runtime/chunk-OBMWP3I5.js +68 -0
  213. package/dist/node-runtime/chunk-OCVIXVTZ.js +88 -0
  214. package/dist/node-runtime/chunk-OPEK5RRY.js +466 -0
  215. package/dist/node-runtime/chunk-OR4L3IB2.js +42 -0
  216. package/dist/node-runtime/chunk-PL6JKXWI.js +3622 -0
  217. package/dist/node-runtime/chunk-PNJSG3IZ.js +807 -0
  218. package/dist/node-runtime/chunk-PVCDKGR6.js +55 -0
  219. package/dist/node-runtime/chunk-Q4Q6D4IY.js +364 -0
  220. package/dist/node-runtime/chunk-Q5ZU2VRT.js +83 -0
  221. package/dist/node-runtime/chunk-QFWG2RVL.js +5477 -0
  222. package/dist/node-runtime/chunk-QZMODZQ2.js +305 -0
  223. package/dist/node-runtime/chunk-R5EDISSV.js +375 -0
  224. package/dist/node-runtime/chunk-RNBHABBA.js +986 -0
  225. package/dist/node-runtime/chunk-RQ2Q5IYR.js +72 -0
  226. package/dist/node-runtime/chunk-RRIZE6QQ.js +17 -0
  227. package/dist/node-runtime/chunk-SN6G4OU6.js +4753 -0
  228. package/dist/node-runtime/chunk-STERBGUB.js +949 -0
  229. package/dist/node-runtime/chunk-UWQYRSYQ.js +8973 -0
  230. package/dist/node-runtime/chunk-VRB2IYGG.js +53 -0
  231. package/dist/node-runtime/chunk-VSELYKWU.js +772 -0
  232. package/dist/node-runtime/chunk-W3CVH5RX.js +62 -0
  233. package/dist/node-runtime/chunk-WJVFOIB5.js +24921 -0
  234. package/dist/node-runtime/chunk-WKDK4C5P.js +2834 -0
  235. package/dist/node-runtime/chunk-XATUM2HK.js +46 -0
  236. package/dist/node-runtime/chunk-XBWPBZBN.js +125 -0
  237. package/dist/node-runtime/chunk-XTHQ7XR7.js +509 -0
  238. package/dist/node-runtime/chunk-ZBV7FAHG.js +1345 -0
  239. package/dist/node-runtime/cli-runtime.js +80 -0
  240. package/dist/node-runtime/clipboard-OZ63BBC6.js +12 -0
  241. package/dist/node-runtime/clipboard-image-7QR6GXVA.js +13 -0
  242. package/dist/node-runtime/command-AAV3YRR5.js +13 -0
  243. package/dist/node-runtime/commands-MV5KOZ64.js +291 -0
  244. package/dist/node-runtime/config-QDD5PUE2.js +73 -0
  245. package/dist/node-runtime/curator-server-XCM43VEF.js +3816 -0
  246. package/dist/node-runtime/customize-XEXL2DGQ.js +12 -0
  247. package/dist/node-runtime/direct-tool-executor-BK7CLEBX.js +188 -0
  248. package/dist/node-runtime/exa-LL64QZR2.js +329 -0
  249. package/dist/node-runtime/export-html-TEXVV5RP.js +150 -0
  250. package/dist/node-runtime/extension-input-O4HSAEM4.js +14 -0
  251. package/dist/node-runtime/extension-selector-X5FCX43D.js +14 -0
  252. package/dist/node-runtime/extract-XLQSJN4V.js +17 -0
  253. package/dist/node-runtime/file-sync-HCOP2QVF.js +117 -0
  254. package/dist/node-runtime/gateway-OAC4OBBL.js +2137 -0
  255. package/dist/node-runtime/gemini-api-QE7ANVDZ.js +29 -0
  256. package/dist/node-runtime/gemini-search-U7SUMPQA.js +330 -0
  257. package/dist/node-runtime/gemini-url-context-PXWCBQHK.js +103 -0
  258. package/dist/node-runtime/gemini-web-MM446SEH.js +14 -0
  259. package/dist/node-runtime/github-extract-F64RZOEA.js +619 -0
  260. package/dist/node-runtime/goal-NJEE5CTU.js +1831 -0
  261. package/dist/node-runtime/index.js +859 -0
  262. package/dist/node-runtime/init-3C7Z24OI.js +28 -0
  263. package/dist/node-runtime/install-cli-EXMJQESX.js +308 -0
  264. package/dist/node-runtime/interactive-mode-2SZUO53H.js +56 -0
  265. package/dist/node-runtime/interactive-view-S6J3QHEF.js +247 -0
  266. package/dist/node-runtime/lsp-manager-3ASUSO4T.js +1104 -0
  267. package/dist/node-runtime/lunr-cron-AUUYP4N4.js +272 -0
  268. package/dist/node-runtime/main.js +54 -0
  269. package/dist/node-runtime/mcp-auth-flow-QIXHW6QN.js +32 -0
  270. package/dist/node-runtime/mcp-panel-IIGMXQGP.js +501 -0
  271. package/dist/node-runtime/mcp-setup-panel-FEK7663I.js +355 -0
  272. package/dist/node-runtime/memory-cap-3S4XRLNP.js +20 -0
  273. package/dist/node-runtime/model-tiers-NJLHUEGK.js +20 -0
  274. package/dist/node-runtime/openai-search-B3MSNCQA.js +288 -0
  275. package/dist/node-runtime/package-manager-cli-7RKSZGEN.js +749 -0
  276. package/dist/node-runtime/parallel-AI2MNSCU.js +265 -0
  277. package/dist/node-runtime/parser-manager-TQHWYDH7.js +152 -0
  278. package/dist/node-runtime/pdf-extract-IPE6H4HP.js +57 -0
  279. package/dist/node-runtime/perplexity-QVJW3I35.js +12 -0
  280. package/dist/node-runtime/pi-intercom-EEMBGQID.js +2215 -0
  281. package/dist/node-runtime/pi-mcp-adapter-GUFZWW54.js +428 -0
  282. package/dist/node-runtime/pi-ollama-cloud-2F3Y2QNM.js +1440 -0
  283. package/dist/node-runtime/pi-prompt-template-model-QWTCGLJU.js +3946 -0
  284. package/dist/node-runtime/pi-subagents-7YJ3I4VE.js +6048 -0
  285. package/dist/node-runtime/pi-web-access-2CQGFLT2.js +1867 -0
  286. package/dist/node-runtime/print-mode-XSFM26EL.js +12 -0
  287. package/dist/node-runtime/proxy-modes-V6YVFH3C.js +685 -0
  288. package/dist/node-runtime/rpc-entry.js +62 -0
  289. package/dist/node-runtime/rpc-mode-W5ZTLTMZ.js +13 -0
  290. package/dist/node-runtime/runtime-bridges-3RKBDLNA.js +14 -0
  291. package/dist/node-runtime/session-manager-E7AREDTV.js +33 -0
  292. package/dist/node-runtime/session-selector-FJ7M2AIX.js +14 -0
  293. package/dist/node-runtime/settings-manager-GHPTUN7R.js +21 -0
  294. package/dist/node-runtime/src-BPQFJR76.js +2427 -0
  295. package/dist/node-runtime/subagent-executor-5Q5A4HJ2.js +8499 -0
  296. package/dist/node-runtime/summary-review-YSMXKITO.js +228 -0
  297. package/dist/node-runtime/tavily-WEZFVFP7.js +154 -0
  298. package/dist/node-runtime/timings-UAD5BEAS.js +16 -0
  299. package/dist/node-runtime/tool-renderer-MV5O452K.js +204 -0
  300. package/dist/node-runtime/update-cli-L3JIBH2U.js +70 -0
  301. package/dist/node-runtime/v4-5MNC3H7G.js +424 -0
  302. package/dist/node-runtime/video-extract-OYT5WKS5.js +304 -0
  303. package/dist/node-runtime/workspace-index-6DBXSTJ6.js +163 -0
  304. package/dist/node-runtime/youtube-extract-TQYKGFGS.js +264 -0
  305. package/dist/rpc.d.ts +3 -0
  306. package/dist/rpc.d.ts.map +1 -0
  307. package/dist/rpc.js +18 -0
  308. package/dist/rpc.js.map +1 -0
  309. package/dist/startup/benchmark-request.d.ts +3 -0
  310. package/dist/startup/benchmark-request.d.ts.map +1 -0
  311. package/dist/startup/benchmark-request.js +65 -0
  312. package/dist/startup/benchmark-request.js.map +1 -0
  313. package/dist/startup/interactive-view.d.ts.map +1 -1
  314. package/dist/startup/interactive-view.js +1 -2
  315. package/dist/startup/interactive-view.js.map +1 -1
  316. package/dist/startup/startup-milestones.d.ts +1 -1
  317. package/dist/startup/startup-milestones.d.ts.map +1 -1
  318. package/dist/startup/startup-milestones.js.map +1 -1
  319. package/dist/utils/await-with-abort.d.ts +2 -0
  320. package/dist/utils/await-with-abort.d.ts.map +1 -0
  321. package/dist/utils/await-with-abort.js +19 -0
  322. package/dist/utils/await-with-abort.js.map +1 -0
  323. package/docs/development.md +5 -1
  324. package/docs/features.md +2 -2
  325. package/docs/interactive-startup.md +95 -48
  326. package/docs/keybindings.md +2 -2
  327. package/docs/terminal-setup.md +1 -1
  328. package/docs/usage.md +1 -1
  329. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  330. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  331. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  332. package/examples/extensions/gondolin/package-lock.json +2 -2
  333. package/examples/extensions/gondolin/package.json +1 -1
  334. package/examples/extensions/hidden-thinking-label.ts +1 -1
  335. package/examples/extensions/sandbox/package-lock.json +2 -2
  336. package/examples/extensions/sandbox/package.json +1 -1
  337. package/examples/extensions/with-deps/package-lock.json +2 -2
  338. package/examples/extensions/with-deps/package.json +1 -1
  339. package/package.json +8 -8
@@ -0,0 +1,466 @@
1
+ import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+ import {
3
+ flushRawStdout,
4
+ takeOverStdout,
5
+ waitForRawStdoutBackpressure,
6
+ writeRawStdout
7
+ } from "./chunk-OBMWP3I5.js";
8
+ import {
9
+ killTrackedDetachedChildren
10
+ } from "./chunk-CSFI6YXL.js";
11
+ import {
12
+ theme
13
+ } from "./chunk-RNBHABBA.js";
14
+
15
+ // packages/coding-agent/dist/modes/rpc/rpc-mode.js
16
+ import * as crypto from "node:crypto";
17
+
18
+ // packages/coding-agent/dist/modes/rpc/jsonl.js
19
+ import { StringDecoder } from "node:string_decoder";
20
+ function serializeJsonLine(value) {
21
+ return `${JSON.stringify(value)}
22
+ `;
23
+ }
24
+ function attachJsonlLineReader(stream, onLine) {
25
+ let decoder = new StringDecoder("utf8"), buffer = "", emitLine = (line) => {
26
+ onLine(line.endsWith("\r") ? line.slice(0, -1) : line);
27
+ }, onData = (chunk) => {
28
+ for (buffer += typeof chunk == "string" ? chunk : decoder.write(chunk); ; ) {
29
+ let newlineIndex = buffer.indexOf(`
30
+ `);
31
+ if (newlineIndex === -1)
32
+ return;
33
+ emitLine(buffer.slice(0, newlineIndex)), buffer = buffer.slice(newlineIndex + 1);
34
+ }
35
+ }, onEnd = () => {
36
+ buffer += decoder.end(), buffer.length > 0 && (emitLine(buffer), buffer = "");
37
+ };
38
+ return stream.on("data", onData), stream.on("end", onEnd), () => {
39
+ stream.off("data", onData), stream.off("end", onEnd);
40
+ };
41
+ }
42
+
43
+ // packages/coding-agent/dist/modes/rpc/rpc-mode.js
44
+ async function runRpcMode(runtimeHost) {
45
+ takeOverStdout();
46
+ let session = runtimeHost.session, unsubscribe, unsubscribeBackpressure, output = (obj) => {
47
+ writeRawStdout(serializeJsonLine(obj));
48
+ }, success = (id, command, data) => data === void 0 ? { id, type: "response", command, success: !0 } : { id, type: "response", command, success: !0, data }, error = (id, command, message) => ({ id, type: "response", command, success: !1, error: message }), pendingExtensionRequests = /* @__PURE__ */ new Map(), shutdownRequested = !1, shuttingDown = !1, signalCleanupHandlers = [];
49
+ function createDialogPromise(opts, defaultValue, request, parseResponse) {
50
+ if (opts?.signal?.aborted)
51
+ return Promise.resolve(defaultValue);
52
+ let id = crypto.randomUUID();
53
+ return new Promise((resolve, reject) => {
54
+ let timeoutId, cleanup = () => {
55
+ timeoutId && clearTimeout(timeoutId), opts?.signal?.removeEventListener("abort", onAbort), pendingExtensionRequests.delete(id);
56
+ }, onAbort = () => {
57
+ cleanup(), resolve(defaultValue);
58
+ };
59
+ opts?.signal?.addEventListener("abort", onAbort, { once: !0 }), opts?.timeout && (timeoutId = setTimeout(() => {
60
+ cleanup(), resolve(defaultValue);
61
+ }, opts.timeout)), pendingExtensionRequests.set(id, {
62
+ resolve: (response) => {
63
+ cleanup(), resolve(parseResponse(response));
64
+ },
65
+ reject
66
+ }), output({ type: "extension_ui_request", id, ...request });
67
+ });
68
+ }
69
+ let createExtensionUIContext = () => ({
70
+ select: (title, options, opts) => createDialogPromise(opts, void 0, { method: "select", title, options, timeout: opts?.timeout }, (r) => "cancelled" in r && r.cancelled ? void 0 : "value" in r ? r.value : void 0),
71
+ confirm: (title, message, opts) => createDialogPromise(opts, !1, { method: "confirm", title, message, timeout: opts?.timeout }, (r) => "cancelled" in r && r.cancelled ? !1 : "confirmed" in r ? r.confirmed : !1),
72
+ input: (title, placeholder, opts) => createDialogPromise(opts, void 0, { method: "input", title, placeholder, timeout: opts?.timeout }, (r) => "cancelled" in r && r.cancelled ? void 0 : "value" in r ? r.value : void 0),
73
+ notify(message, type) {
74
+ output({
75
+ type: "extension_ui_request",
76
+ id: crypto.randomUUID(),
77
+ method: "notify",
78
+ message,
79
+ notifyType: type
80
+ });
81
+ },
82
+ onTerminalInput() {
83
+ return () => {
84
+ };
85
+ },
86
+ setStatus(key, text) {
87
+ output({
88
+ type: "extension_ui_request",
89
+ id: crypto.randomUUID(),
90
+ method: "setStatus",
91
+ statusKey: key,
92
+ statusText: text
93
+ });
94
+ },
95
+ setWorkingMessage(_message) {
96
+ },
97
+ setWorkingVisible(_visible) {
98
+ },
99
+ setWorkingIndicator(_options) {
100
+ },
101
+ setHiddenThinkingLabel(_label) {
102
+ },
103
+ setWidget(key, content, options) {
104
+ (content === void 0 || Array.isArray(content)) && output({
105
+ type: "extension_ui_request",
106
+ id: crypto.randomUUID(),
107
+ method: "setWidget",
108
+ widgetKey: key,
109
+ widgetLines: content,
110
+ widgetPlacement: options?.placement
111
+ });
112
+ },
113
+ setFooter(_factory) {
114
+ },
115
+ setHeader(_factory) {
116
+ },
117
+ setTitle(title) {
118
+ output({
119
+ type: "extension_ui_request",
120
+ id: crypto.randomUUID(),
121
+ method: "setTitle",
122
+ title
123
+ });
124
+ },
125
+ async custom() {
126
+ },
127
+ pasteToEditor(text) {
128
+ this.setEditorText(text);
129
+ },
130
+ setEditorText(text) {
131
+ output({
132
+ type: "extension_ui_request",
133
+ id: crypto.randomUUID(),
134
+ method: "set_editor_text",
135
+ text
136
+ });
137
+ },
138
+ getEditorText() {
139
+ return "";
140
+ },
141
+ async editor(title, prefill) {
142
+ let id = crypto.randomUUID();
143
+ return new Promise((resolve, reject) => {
144
+ pendingExtensionRequests.set(id, {
145
+ resolve: (response) => {
146
+ "cancelled" in response && response.cancelled ? resolve(void 0) : "value" in response ? resolve(response.value) : resolve(void 0);
147
+ },
148
+ reject
149
+ }), output({ type: "extension_ui_request", id, method: "editor", title, prefill });
150
+ });
151
+ },
152
+ addAutocompleteProvider() {
153
+ },
154
+ setEditorComponent() {
155
+ },
156
+ getEditorComponent() {
157
+ },
158
+ get theme() {
159
+ return theme;
160
+ },
161
+ getAllThemes() {
162
+ return [];
163
+ },
164
+ getTheme(_name) {
165
+ },
166
+ setTheme(_theme) {
167
+ return { success: !1, error: "Theme switching not supported in RPC mode" };
168
+ },
169
+ getToolsExpanded() {
170
+ return !1;
171
+ },
172
+ setToolsExpanded(_expanded) {
173
+ }
174
+ });
175
+ runtimeHost.setRebindSession(async () => {
176
+ await rebindSession();
177
+ });
178
+ let rebindSession = async () => {
179
+ session = runtimeHost.session, await session.bindExtensions({
180
+ uiContext: createExtensionUIContext(),
181
+ mode: "rpc",
182
+ commandContextActions: {
183
+ waitForIdle: () => session.waitForIdle(),
184
+ newSession: async (options) => runtimeHost.newSession(options),
185
+ fork: async (entryId, forkOptions) => ({ cancelled: (await runtimeHost.fork(entryId, forkOptions)).cancelled }),
186
+ navigateTree: async (targetId, options) => ({ cancelled: (await session.navigateTree(targetId, {
187
+ summarize: options?.summarize,
188
+ customInstructions: options?.customInstructions,
189
+ replaceInstructions: options?.replaceInstructions,
190
+ label: options?.label
191
+ })).cancelled }),
192
+ switchSession: async (sessionPath, options) => runtimeHost.switchSession(sessionPath, options),
193
+ reload: async () => {
194
+ await session.reload();
195
+ }
196
+ },
197
+ shutdownHandler: () => {
198
+ shutdownRequested = !0;
199
+ },
200
+ onError: (err) => {
201
+ output({ type: "extension_error", extensionPath: err.extensionPath, event: err.event, error: err.error });
202
+ }
203
+ }), unsubscribe?.(), unsubscribeBackpressure?.(), unsubscribe = session.subscribe((event) => {
204
+ output(event), event.type === "agent_settled" && checkShutdownRequested();
205
+ }), unsubscribeBackpressure = session.agent.subscribe(async () => {
206
+ await waitForRawStdoutBackpressure();
207
+ });
208
+ }, registerSignalHandlers = () => {
209
+ let signals = ["SIGTERM"];
210
+ process.platform !== "win32" && signals.push("SIGHUP");
211
+ for (let signal of signals) {
212
+ let handler = () => {
213
+ killTrackedDetachedChildren(), shutdown(signal === "SIGHUP" ? 129 : 143, signal);
214
+ };
215
+ process.on(signal, handler), signalCleanupHandlers.push(() => process.off(signal, handler));
216
+ }
217
+ };
218
+ await rebindSession(), registerSignalHandlers();
219
+ let handleCommand = async (command) => {
220
+ let id = command.id;
221
+ switch (command.type) {
222
+ // =================================================================
223
+ // Prompting
224
+ // =================================================================
225
+ case "prompt": {
226
+ let preflightSucceeded = !1;
227
+ session.prompt(command.message, {
228
+ images: command.images,
229
+ streamingBehavior: command.streamingBehavior,
230
+ source: "rpc",
231
+ preflightResult: (didSucceed) => {
232
+ didSucceed && (preflightSucceeded = !0, output(success(id, "prompt")));
233
+ }
234
+ }).catch((e) => {
235
+ preflightSucceeded || output(error(id, "prompt", e.message));
236
+ });
237
+ return;
238
+ }
239
+ case "steer":
240
+ return await session.steer(command.message, command.images), success(id, "steer");
241
+ case "follow_up":
242
+ return await session.followUp(command.message, command.images), success(id, "follow_up");
243
+ case "abort":
244
+ return await session.abort(), success(id, "abort");
245
+ case "new_session": {
246
+ let options = command.parentSession ? { parentSession: command.parentSession } : void 0, result = await runtimeHost.newSession(options);
247
+ return result.cancelled || await rebindSession(), success(id, "new_session", result);
248
+ }
249
+ // =================================================================
250
+ // State
251
+ // =================================================================
252
+ case "get_state": {
253
+ let state = {
254
+ model: session.model,
255
+ thinkingLevel: session.thinkingLevel,
256
+ isStreaming: session.isStreaming,
257
+ isCompacting: session.isCompacting,
258
+ steeringMode: session.steeringMode,
259
+ followUpMode: session.followUpMode,
260
+ sessionFile: session.sessionFile,
261
+ sessionId: session.sessionId,
262
+ sessionName: session.sessionName,
263
+ autoCompactionEnabled: session.autoCompactionEnabled,
264
+ messageCount: session.messages.length,
265
+ pendingMessageCount: session.pendingMessageCount
266
+ };
267
+ return success(id, "get_state", state);
268
+ }
269
+ // =================================================================
270
+ // Model
271
+ // =================================================================
272
+ case "set_model": {
273
+ let model = (await session.modelRuntime.getAvailable()).find((m) => m.provider === command.provider && m.id === command.modelId);
274
+ return model ? (await session.setModel(model), success(id, "set_model", model)) : error(id, "set_model", `Model not found: ${command.provider}/${command.modelId}`);
275
+ }
276
+ case "cycle_model": {
277
+ let result = await session.cycleModel();
278
+ return result ? success(id, "cycle_model", result) : success(id, "cycle_model", null);
279
+ }
280
+ case "get_available_models": {
281
+ let models = await session.modelRuntime.getAvailable();
282
+ return success(id, "get_available_models", { models });
283
+ }
284
+ // =================================================================
285
+ // Thinking
286
+ // =================================================================
287
+ case "set_thinking_level":
288
+ return session.setThinkingLevel(command.level), success(id, "set_thinking_level");
289
+ case "cycle_thinking_level": {
290
+ let level = session.cycleThinkingLevel();
291
+ return level ? success(id, "cycle_thinking_level", { level }) : success(id, "cycle_thinking_level", null);
292
+ }
293
+ // =================================================================
294
+ // Queue Modes
295
+ // =================================================================
296
+ case "set_steering_mode":
297
+ return session.setSteeringMode(command.mode), success(id, "set_steering_mode");
298
+ case "set_follow_up_mode":
299
+ return session.setFollowUpMode(command.mode), success(id, "set_follow_up_mode");
300
+ // =================================================================
301
+ // Compaction
302
+ // =================================================================
303
+ case "compact": {
304
+ let result = await session.compact(command.customInstructions);
305
+ return success(id, "compact", result);
306
+ }
307
+ case "set_auto_compaction":
308
+ return session.setAutoCompactionEnabled(command.enabled), success(id, "set_auto_compaction");
309
+ // =================================================================
310
+ // Retry
311
+ // =================================================================
312
+ case "set_auto_retry":
313
+ return session.setAutoRetryEnabled(command.enabled), success(id, "set_auto_retry");
314
+ case "abort_retry":
315
+ return session.abortRetry(), success(id, "abort_retry");
316
+ // =================================================================
317
+ // Bash
318
+ // =================================================================
319
+ case "bash": {
320
+ let result = await session.executeBash(command.command, void 0, {
321
+ excludeFromContext: command.excludeFromContext
322
+ });
323
+ return success(id, "bash", result);
324
+ }
325
+ case "abort_bash":
326
+ return session.abortBash(), success(id, "abort_bash");
327
+ // =================================================================
328
+ // Session
329
+ // =================================================================
330
+ case "get_session_stats": {
331
+ let stats = session.getSessionStats();
332
+ return success(id, "get_session_stats", stats);
333
+ }
334
+ case "export_html": {
335
+ let path = await session.exportToHtml(command.outputPath);
336
+ return success(id, "export_html", { path });
337
+ }
338
+ case "switch_session": {
339
+ let result = await runtimeHost.switchSession(command.sessionPath);
340
+ return result.cancelled || await rebindSession(), success(id, "switch_session", result);
341
+ }
342
+ case "fork": {
343
+ let result = await runtimeHost.fork(command.entryId);
344
+ return result.cancelled || await rebindSession(), success(id, "fork", { text: result.selectedText, cancelled: result.cancelled });
345
+ }
346
+ case "clone": {
347
+ let leafId = session.sessionManager.getLeafId();
348
+ if (!leafId)
349
+ return error(id, "clone", "Cannot clone session: no current entry selected");
350
+ let result = await runtimeHost.fork(leafId, { position: "at" });
351
+ return result.cancelled || await rebindSession(), success(id, "clone", { cancelled: result.cancelled });
352
+ }
353
+ case "get_fork_messages": {
354
+ let messages = session.getUserMessagesForForking();
355
+ return success(id, "get_fork_messages", { messages });
356
+ }
357
+ case "get_entries": {
358
+ let sessionManager = session.sessionManager, entries = sessionManager.getEntries();
359
+ if (command.since !== void 0) {
360
+ let sinceIndex = entries.findIndex((e) => e.id === command.since);
361
+ if (sinceIndex === -1)
362
+ return error(id, "get_entries", `Entry not found: ${command.since}`);
363
+ entries = entries.slice(sinceIndex + 1);
364
+ }
365
+ return success(id, "get_entries", { entries, leafId: sessionManager.getLeafId() });
366
+ }
367
+ case "get_tree": {
368
+ let sessionManager = session.sessionManager;
369
+ return success(id, "get_tree", { tree: sessionManager.getTree(), leafId: sessionManager.getLeafId() });
370
+ }
371
+ case "get_last_assistant_text": {
372
+ let text = session.getLastAssistantText();
373
+ return success(id, "get_last_assistant_text", { text });
374
+ }
375
+ case "set_session_name": {
376
+ let name = command.name.trim();
377
+ return name ? (session.setSessionName(name), success(id, "set_session_name")) : error(id, "set_session_name", "Session name cannot be empty");
378
+ }
379
+ // =================================================================
380
+ // Messages
381
+ // =================================================================
382
+ case "get_messages":
383
+ return success(id, "get_messages", { messages: session.messages });
384
+ // =================================================================
385
+ // Commands (available for invocation via prompt)
386
+ // =================================================================
387
+ case "get_commands": {
388
+ let commands = [];
389
+ for (let command2 of session.extensionRunner.getRegisteredCommands())
390
+ commands.push({
391
+ name: command2.invocationName,
392
+ description: command2.description,
393
+ source: "extension",
394
+ sourceInfo: command2.sourceInfo
395
+ });
396
+ for (let template of session.promptTemplates)
397
+ commands.push({
398
+ name: template.name,
399
+ description: template.description,
400
+ source: "prompt",
401
+ sourceInfo: template.sourceInfo
402
+ });
403
+ for (let skill of session.resourceLoader.getSkills().skills)
404
+ commands.push({
405
+ name: `skill:${skill.name}`,
406
+ description: skill.description,
407
+ source: "skill",
408
+ sourceInfo: skill.sourceInfo
409
+ });
410
+ return success(id, "get_commands", { commands });
411
+ }
412
+ default: {
413
+ let unknownCommand = command;
414
+ return error(id, unknownCommand.type, `Unknown command: ${unknownCommand.type}`);
415
+ }
416
+ }
417
+ }, detachInput = () => {
418
+ };
419
+ async function shutdown(exitCode = 0, signal) {
420
+ shuttingDown && process.exit(exitCode), shuttingDown = !0;
421
+ for (let cleanup of signalCleanupHandlers)
422
+ cleanup();
423
+ unsubscribe?.(), unsubscribeBackpressure?.(), await runtimeHost.dispose(), detachInput(), process.stdin.pause(), signal !== "SIGTERM" && await flushRawStdout(), process.exit(exitCode);
424
+ }
425
+ async function checkShutdownRequested() {
426
+ shutdownRequested && await shutdown();
427
+ }
428
+ let handleInputLine = async (line) => {
429
+ let parsed;
430
+ try {
431
+ parsed = JSON.parse(line);
432
+ } catch (parseError) {
433
+ output(error(void 0, "parse", `Failed to parse command: ${parseError instanceof Error ? parseError.message : String(parseError)}`)), await waitForRawStdoutBackpressure();
434
+ return;
435
+ }
436
+ if (typeof parsed == "object" && parsed !== null && "type" in parsed && parsed.type === "extension_ui_response") {
437
+ let response = parsed, pending = pendingExtensionRequests.get(response.id);
438
+ pending && (pendingExtensionRequests.delete(response.id), pending.resolve(response));
439
+ return;
440
+ }
441
+ let command = parsed;
442
+ try {
443
+ let response = await handleCommand(command);
444
+ response && (output(response), await waitForRawStdoutBackpressure()), await checkShutdownRequested();
445
+ } catch (commandError) {
446
+ output(error(command.id, command.type, commandError instanceof Error ? commandError.message : String(commandError))), await waitForRawStdoutBackpressure();
447
+ }
448
+ }, onInputEnd = () => {
449
+ shutdown();
450
+ };
451
+ return process.stdin.on("end", onInputEnd), detachInput = (() => {
452
+ let detachJsonl = attachJsonlLineReader(process.stdin, (line) => {
453
+ handleInputLine(line);
454
+ });
455
+ return () => {
456
+ detachJsonl(), process.stdin.off("end", onInputEnd);
457
+ };
458
+ })(), new Promise(() => {
459
+ });
460
+ }
461
+
462
+ export {
463
+ serializeJsonLine,
464
+ attachJsonlLineReader,
465
+ runRpcMode
466
+ };
@@ -0,0 +1,42 @@
1
+ import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+
3
+ // packages/coding-agent/dist/core/extensions/types.js
4
+ function defineTool(tool) {
5
+ return tool;
6
+ }
7
+ function isBashToolResult(e) {
8
+ return e.toolName === "bash";
9
+ }
10
+ function isReadToolResult(e) {
11
+ return e.toolName === "read";
12
+ }
13
+ function isEditToolResult(e) {
14
+ return e.toolName === "edit";
15
+ }
16
+ function isWriteToolResult(e) {
17
+ return e.toolName === "write";
18
+ }
19
+ function isGrepToolResult(e) {
20
+ return e.toolName === "grep";
21
+ }
22
+ function isFindToolResult(e) {
23
+ return e.toolName === "find";
24
+ }
25
+ function isLsToolResult(e) {
26
+ return e.toolName === "ls";
27
+ }
28
+ function isToolCallEventType(toolName, event) {
29
+ return event.toolName === toolName;
30
+ }
31
+
32
+ export {
33
+ defineTool,
34
+ isBashToolResult,
35
+ isReadToolResult,
36
+ isEditToolResult,
37
+ isWriteToolResult,
38
+ isGrepToolResult,
39
+ isFindToolResult,
40
+ isLsToolResult,
41
+ isToolCallEventType
42
+ };