jeopi-cli 16.2.14 → 16.2.17

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 (1097) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cli.js +2562 -2561
  3. package/dist/types/advisor/__tests__/advisor.test.d.ts +1 -0
  4. package/dist/types/advisor/__tests__/config.test.d.ts +1 -0
  5. package/dist/types/advisor/__tests__/emission-guard.test.d.ts +1 -0
  6. package/dist/types/advisor/advise-tool.d.ts +106 -0
  7. package/dist/types/advisor/config.d.ts +90 -0
  8. package/dist/types/advisor/emission-guard.d.ts +73 -0
  9. package/dist/types/advisor/index.d.ts +6 -0
  10. package/dist/types/advisor/runtime.d.ts +76 -0
  11. package/dist/types/advisor/transcript-recorder.d.ts +63 -0
  12. package/dist/types/advisor/watchdog.d.ts +38 -0
  13. package/dist/types/async/index.d.ts +1 -0
  14. package/dist/types/async/job-manager.d.ts +121 -0
  15. package/dist/types/auto-thinking/classifier.d.ts +37 -0
  16. package/dist/types/autolearn/controller.d.ts +25 -0
  17. package/dist/types/autolearn/managed-skills.d.ts +45 -0
  18. package/dist/types/autoresearch/dashboard.d.ts +4 -0
  19. package/dist/types/autoresearch/git.d.ts +36 -0
  20. package/dist/types/autoresearch/helpers.d.ts +24 -0
  21. package/dist/types/autoresearch/index.d.ts +2 -0
  22. package/dist/types/autoresearch/state.d.ts +17 -0
  23. package/dist/types/autoresearch/storage.d.ts +142 -0
  24. package/dist/types/autoresearch/tools/init-experiment.d.ts +27 -0
  25. package/dist/types/autoresearch/tools/log-experiment.d.ts +21 -0
  26. package/dist/types/autoresearch/tools/run-experiment.d.ts +7 -0
  27. package/dist/types/autoresearch/tools/update-notes.d.ts +11 -0
  28. package/dist/types/autoresearch/types.d.ts +154 -0
  29. package/dist/types/capability/context-file.d.ts +17 -0
  30. package/dist/types/capability/extension-module.d.ts +15 -0
  31. package/dist/types/capability/extension.d.ts +28 -0
  32. package/dist/types/capability/fs.d.ts +20 -0
  33. package/dist/types/capability/hook.d.ts +19 -0
  34. package/dist/types/capability/index.d.ts +80 -0
  35. package/dist/types/capability/instruction.d.ts +17 -0
  36. package/dist/types/capability/mcp.d.ts +47 -0
  37. package/dist/types/capability/prompt.d.ts +15 -0
  38. package/dist/types/capability/rule-buckets.d.ts +30 -0
  39. package/dist/types/capability/rule.d.ts +73 -0
  40. package/dist/types/capability/settings.d.ts +15 -0
  41. package/dist/types/capability/skill.d.ts +43 -0
  42. package/dist/types/capability/slash-command.d.ts +17 -0
  43. package/dist/types/capability/ssh.d.ts +23 -0
  44. package/dist/types/capability/system-prompt.d.ts +15 -0
  45. package/dist/types/capability/tool.d.ts +19 -0
  46. package/dist/types/capability/types.d.ts +154 -0
  47. package/dist/types/cli/agents-cli.d.ts +12 -0
  48. package/dist/types/cli/args.d.ts +80 -0
  49. package/dist/types/cli/auth-broker-cli.d.ts +25 -0
  50. package/dist/types/cli/auth-gateway-cli.d.ts +26 -0
  51. package/dist/types/cli/bench-cli.d.ts +85 -0
  52. package/dist/types/cli/classify-install-target.d.ts +12 -0
  53. package/dist/types/cli/claude-trace-cli.d.ts +54 -0
  54. package/dist/types/cli/commands/init-xdg.d.ts +1 -0
  55. package/dist/types/cli/commands/migrate-legacy.d.ts +1 -0
  56. package/dist/types/cli/completion-gen.d.ts +80 -0
  57. package/dist/types/cli/config-cli.d.ts +22 -0
  58. package/dist/types/cli/dry-balance-cli.d.ts +113 -0
  59. package/dist/types/cli/extension-flags.d.ts +36 -0
  60. package/dist/types/cli/file-processor.d.ts +11 -0
  61. package/dist/types/cli/flag-tables.d.ts +144 -0
  62. package/dist/types/cli/gallery-cli.d.ts +49 -0
  63. package/dist/types/cli/gallery-fixtures/agentic.d.ts +2 -0
  64. package/dist/types/cli/gallery-fixtures/codeintel.d.ts +3 -0
  65. package/dist/types/cli/gallery-fixtures/edit.d.ts +3 -0
  66. package/dist/types/cli/gallery-fixtures/fs.d.ts +2 -0
  67. package/dist/types/cli/gallery-fixtures/index.d.ts +4 -0
  68. package/dist/types/cli/gallery-fixtures/interaction.d.ts +3 -0
  69. package/dist/types/cli/gallery-fixtures/memory.d.ts +2 -0
  70. package/dist/types/cli/gallery-fixtures/misc.d.ts +3 -0
  71. package/dist/types/cli/gallery-fixtures/search.d.ts +3 -0
  72. package/dist/types/cli/gallery-fixtures/shell.d.ts +3 -0
  73. package/dist/types/cli/gallery-fixtures/types.d.ts +55 -0
  74. package/dist/types/cli/gallery-fixtures/web.d.ts +2 -0
  75. package/dist/types/cli/gallery-screenshot.d.ts +35 -0
  76. package/dist/types/cli/gc-cli.d.ts +58 -0
  77. package/dist/types/cli/grep-cli.d.ts +17 -0
  78. package/dist/types/cli/grievances-cli.d.ts +37 -0
  79. package/dist/types/cli/initial-message.d.ts +17 -0
  80. package/dist/types/cli/models-cli.d.ts +62 -0
  81. package/dist/types/cli/plugin-cli.d.ts +32 -0
  82. package/dist/types/cli/profile-alias.d.ts +29 -0
  83. package/dist/types/cli/profile-bootstrap.d.ts +55 -0
  84. package/dist/types/cli/read-cli.d.ts +11 -0
  85. package/dist/types/cli/session-picker.d.ts +11 -0
  86. package/dist/types/cli/setup-cli.d.ts +24 -0
  87. package/dist/types/cli/setup-model-picker.d.ts +14 -0
  88. package/dist/types/cli/shell-cli.d.ts +8 -0
  89. package/dist/types/cli/ssh-cli.d.ts +21 -0
  90. package/dist/types/cli/startup-cwd.d.ts +2 -0
  91. package/dist/types/cli/stats-cli.d.ts +17 -0
  92. package/dist/types/cli/tiny-models-cli.d.ts +11 -0
  93. package/dist/types/cli/ttsr-cli.d.ts +39 -0
  94. package/dist/types/cli/update-cli.d.ts +105 -0
  95. package/dist/types/cli/usage-cli.d.ts +95 -0
  96. package/dist/types/cli/web-search-cli.d.ts +20 -0
  97. package/dist/types/cli/worktree-cli.d.ts +26 -0
  98. package/dist/types/cli-commands.d.ts +33 -0
  99. package/dist/types/cli.d.ts +3 -0
  100. package/dist/types/collab/crypto.d.ts +7 -0
  101. package/dist/types/collab/display-name.d.ts +3 -0
  102. package/dist/types/collab/guest.d.ts +52 -0
  103. package/dist/types/collab/host.d.ts +43 -0
  104. package/dist/types/collab/protocol.d.ts +143 -0
  105. package/dist/types/collab/relay-client.d.ts +22 -0
  106. package/dist/types/collab/replication-shrink.d.ts +39 -0
  107. package/dist/types/commands/acp.d.ts +12 -0
  108. package/dist/types/commands/agents.d.ts +31 -0
  109. package/dist/types/commands/auth-broker.d.ts +51 -0
  110. package/dist/types/commands/auth-gateway.d.ts +32 -0
  111. package/dist/types/commands/bench.d.ts +37 -0
  112. package/dist/types/commands/commit.d.ts +27 -0
  113. package/dist/types/commands/complete.d.ts +6 -0
  114. package/dist/types/commands/completions.d.ts +13 -0
  115. package/dist/types/commands/config.d.ts +30 -0
  116. package/dist/types/commands/dry-balance.d.ts +31 -0
  117. package/dist/types/commands/gallery.d.ts +47 -0
  118. package/dist/types/commands/gc.d.ts +37 -0
  119. package/dist/types/commands/grep.d.ts +42 -0
  120. package/dist/types/commands/grievances.d.ts +40 -0
  121. package/dist/types/commands/install.d.ts +51 -0
  122. package/dist/types/commands/join.d.ts +12 -0
  123. package/dist/types/commands/launch.d.ts +148 -0
  124. package/dist/types/commands/models.d.ts +33 -0
  125. package/dist/types/commands/plugin.d.ts +52 -0
  126. package/dist/types/commands/read.d.ts +15 -0
  127. package/dist/types/commands/say.d.ts +24 -0
  128. package/dist/types/commands/setup.d.ts +31 -0
  129. package/dist/types/commands/shell.d.ts +21 -0
  130. package/dist/types/commands/ssh.d.ts +48 -0
  131. package/dist/types/commands/stats.d.ts +25 -0
  132. package/dist/types/commands/tiny-models.d.ts +22 -0
  133. package/dist/types/commands/token.d.ts +34 -0
  134. package/dist/types/commands/ttsr.d.ts +57 -0
  135. package/dist/types/commands/update.d.ts +20 -0
  136. package/dist/types/commands/usage.d.ts +34 -0
  137. package/dist/types/commands/web-search.d.ts +33 -0
  138. package/dist/types/commands/worktree.d.ts +31 -0
  139. package/dist/types/commit/agentic/agent.d.ts +31 -0
  140. package/dist/types/commit/agentic/fallback.d.ts +5 -0
  141. package/dist/types/commit/agentic/index.d.ts +2 -0
  142. package/dist/types/commit/agentic/state.d.ts +58 -0
  143. package/dist/types/commit/agentic/tools/analyze-file.d.ts +18 -0
  144. package/dist/types/commit/agentic/tools/git-file-diff.d.ts +9 -0
  145. package/dist/types/commit/agentic/tools/git-hunk.d.ts +8 -0
  146. package/dist/types/commit/agentic/tools/git-overview.d.ts +8 -0
  147. package/dist/types/commit/agentic/tools/index.d.ts +16 -0
  148. package/dist/types/commit/agentic/tools/propose-changelog.d.ts +27 -0
  149. package/dist/types/commit/agentic/tools/propose-commit.d.ts +15 -0
  150. package/dist/types/commit/agentic/tools/recent-commits.d.ts +6 -0
  151. package/dist/types/commit/agentic/tools/schemas.d.ts +6 -0
  152. package/dist/types/commit/agentic/tools/split-commit.d.ts +32 -0
  153. package/dist/types/commit/agentic/topo-sort.d.ts +4 -0
  154. package/dist/types/commit/agentic/trivial.d.ts +7 -0
  155. package/dist/types/commit/agentic/validation.d.ts +20 -0
  156. package/dist/types/commit/analysis/conventional.d.ts +22 -0
  157. package/dist/types/commit/analysis/index.d.ts +4 -0
  158. package/dist/types/commit/analysis/scope.d.ts +6 -0
  159. package/dist/types/commit/analysis/summary.d.ts +19 -0
  160. package/dist/types/commit/analysis/validation.d.ts +8 -0
  161. package/dist/types/commit/changelog/detect.d.ts +2 -0
  162. package/dist/types/commit/changelog/generate.d.ts +29 -0
  163. package/dist/types/commit/changelog/index.d.ts +30 -0
  164. package/dist/types/commit/changelog/parse.d.ts +2 -0
  165. package/dist/types/commit/cli.d.ts +3 -0
  166. package/dist/types/commit/git/diff.d.ts +5 -0
  167. package/dist/types/commit/index.d.ts +4 -0
  168. package/dist/types/commit/map-reduce/index.d.ts +28 -0
  169. package/dist/types/commit/map-reduce/map-phase.d.ts +17 -0
  170. package/dist/types/commit/map-reduce/reduce-phase.d.ts +13 -0
  171. package/dist/types/commit/map-reduce/utils.d.ts +2 -0
  172. package/dist/types/commit/message.d.ts +2 -0
  173. package/dist/types/commit/model-selection.d.ts +26 -0
  174. package/dist/types/commit/pipeline.d.ts +5 -0
  175. package/dist/types/commit/shared-llm.d.ts +27 -0
  176. package/dist/types/commit/types.d.ts +78 -0
  177. package/dist/types/commit/utils/exclusions.d.ts +4 -0
  178. package/dist/types/commit/utils.d.ts +20 -0
  179. package/dist/types/config/api-key-resolver.d.ts +43 -0
  180. package/dist/types/config/append-only-context-mode.d.ts +9 -0
  181. package/dist/types/config/config-file.d.ts +62 -0
  182. package/dist/types/config/file-lock.d.ts +29 -0
  183. package/dist/types/config/inline-tool-descriptors-mode.d.ts +12 -0
  184. package/dist/types/config/keybindings.d.ts +362 -0
  185. package/dist/types/config/model-discovery.d.ts +68 -0
  186. package/dist/types/config/model-registry.d.ts +251 -0
  187. package/dist/types/config/model-resolver.d.ts +300 -0
  188. package/dist/types/config/model-roles.d.ts +29 -0
  189. package/dist/types/config/models-config-schema.d.ts +697 -0
  190. package/dist/types/config/models-config.d.ts +436 -0
  191. package/dist/types/config/prompt-templates.d.ts +32 -0
  192. package/dist/types/config/provider-globals.d.ts +7 -0
  193. package/dist/types/config/resolve-config-value.d.ts +17 -0
  194. package/dist/types/config/service-tier.d.ts +49 -0
  195. package/dist/types/config/settings-schema.d.ts +5658 -0
  196. package/dist/types/config/settings.d.ts +181 -0
  197. package/dist/types/config.d.ts +92 -0
  198. package/dist/types/cursor.d.ts +22 -0
  199. package/dist/types/dap/client.d.ts +38 -0
  200. package/dist/types/dap/config.d.ts +19 -0
  201. package/dist/types/dap/index.d.ts +4 -0
  202. package/dist/types/dap/session.d.ts +108 -0
  203. package/dist/types/dap/types.d.ts +534 -0
  204. package/dist/types/debug/index.d.ts +15 -0
  205. package/dist/types/debug/log-formatting.d.ts +4 -0
  206. package/dist/types/debug/log-viewer.d.ts +69 -0
  207. package/dist/types/debug/profiler.d.ts +24 -0
  208. package/dist/types/debug/protocol-probe.d.ts +38 -0
  209. package/dist/types/debug/raw-sse-buffer.d.ts +44 -0
  210. package/dist/types/debug/raw-sse.d.ts +19 -0
  211. package/dist/types/debug/remote-debugger.d.ts +45 -0
  212. package/dist/types/debug/report-bundle.d.ts +58 -0
  213. package/dist/types/debug/system-info.d.ts +26 -0
  214. package/dist/types/debug/terminal-info.d.ts +33 -0
  215. package/dist/types/discovery/agents-md.d.ts +1 -0
  216. package/dist/types/discovery/agents.d.ts +12 -0
  217. package/dist/types/discovery/at-imports.d.ts +15 -0
  218. package/dist/types/discovery/builtin-defaults.d.ts +1 -0
  219. package/dist/types/discovery/builtin-rules/index.d.ts +7 -0
  220. package/dist/types/discovery/builtin.d.ts +1 -0
  221. package/dist/types/discovery/claude-plugins.d.ts +1 -0
  222. package/dist/types/discovery/claude.d.ts +1 -0
  223. package/dist/types/discovery/cline.d.ts +1 -0
  224. package/dist/types/discovery/codex.d.ts +1 -0
  225. package/dist/types/discovery/cursor.d.ts +16 -0
  226. package/dist/types/discovery/gemini.d.ts +1 -0
  227. package/dist/types/discovery/github.d.ts +1 -0
  228. package/dist/types/discovery/helpers.d.ts +276 -0
  229. package/dist/types/discovery/index.d.ts +53 -0
  230. package/dist/types/discovery/mcp-json.d.ts +1 -0
  231. package/dist/types/discovery/omp-extension-roots.d.ts +43 -0
  232. package/dist/types/discovery/omp-plugins.d.ts +1 -0
  233. package/dist/types/discovery/opencode.d.ts +1 -0
  234. package/dist/types/discovery/plugin-dir-roots.d.ts +15 -0
  235. package/dist/types/discovery/ssh.d.ts +1 -0
  236. package/dist/types/discovery/substitute-plugin-root.d.ts +1 -0
  237. package/dist/types/discovery/vscode.d.ts +1 -0
  238. package/dist/types/discovery/windsurf.d.ts +13 -0
  239. package/dist/types/edit/apply-patch/index.d.ts +35 -0
  240. package/dist/types/edit/apply-patch/parser.d.ts +34 -0
  241. package/dist/types/edit/diff.d.ts +60 -0
  242. package/dist/types/edit/file-snapshot-store.d.ts +64 -0
  243. package/dist/types/edit/hashline/block-resolver.d.ts +9 -0
  244. package/dist/types/edit/hashline/diff.d.ts +29 -0
  245. package/dist/types/edit/hashline/execute.d.ts +28 -0
  246. package/dist/types/edit/hashline/filesystem.d.ts +43 -0
  247. package/dist/types/edit/hashline/index.d.ts +5 -0
  248. package/dist/types/edit/hashline/noop-loop-guard.d.ts +72 -0
  249. package/dist/types/edit/hashline/params.d.ts +7 -0
  250. package/dist/types/edit/index.d.ts +83 -0
  251. package/dist/types/edit/modes/apply-patch.d.ts +23 -0
  252. package/dist/types/edit/modes/patch.d.ts +101 -0
  253. package/dist/types/edit/modes/replace.d.ts +141 -0
  254. package/dist/types/edit/normalize.d.ts +31 -0
  255. package/dist/types/edit/notebook.d.ts +23 -0
  256. package/dist/types/edit/read-file.d.ts +2 -0
  257. package/dist/types/edit/renderer.d.ts +118 -0
  258. package/dist/types/edit/snapshot-details.d.ts +33 -0
  259. package/dist/types/edit/streaming.d.ts +105 -0
  260. package/dist/types/eval/__tests__/agent-bridge.test.d.ts +1 -0
  261. package/dist/types/eval/__tests__/bridge-timeout.test.d.ts +1 -0
  262. package/dist/types/eval/__tests__/budget-bridge.test.d.ts +1 -0
  263. package/dist/types/eval/__tests__/completion-bridge.test.d.ts +1 -0
  264. package/dist/types/eval/__tests__/helpers-local-roots.test.d.ts +1 -0
  265. package/dist/types/eval/__tests__/idle-timeout.test.d.ts +1 -0
  266. package/dist/types/eval/__tests__/js-context-manager.test.d.ts +1 -0
  267. package/dist/types/eval/__tests__/julia-prelude.test.d.ts +1 -0
  268. package/dist/types/eval/__tests__/kernel-spawn.test.d.ts +1 -0
  269. package/dist/types/eval/__tests__/prelude-agent.test.d.ts +1 -0
  270. package/dist/types/eval/agent-bridge.d.ts +48 -0
  271. package/dist/types/eval/backend-helpers.d.ts +23 -0
  272. package/dist/types/eval/backend.d.ts +60 -0
  273. package/dist/types/eval/bridge-timeout.d.ts +27 -0
  274. package/dist/types/eval/budget-bridge.d.ts +29 -0
  275. package/dist/types/eval/completion-bridge.d.ts +38 -0
  276. package/dist/types/eval/concurrency-bridge.d.ts +26 -0
  277. package/dist/types/eval/executor-base.d.ts +118 -0
  278. package/dist/types/eval/idle-timeout.d.ts +26 -0
  279. package/dist/types/eval/index.d.ts +6 -0
  280. package/dist/types/eval/jl/executor.d.ts +44 -0
  281. package/dist/types/eval/jl/index.d.ts +11 -0
  282. package/dist/types/eval/jl/kernel.d.ts +28 -0
  283. package/dist/types/eval/jl/prelude.d.ts +1 -0
  284. package/dist/types/eval/jl/runtime.d.ts +22 -0
  285. package/dist/types/eval/js/context-manager.d.ts +40 -0
  286. package/dist/types/eval/js/executor.d.ts +38 -0
  287. package/dist/types/eval/js/index.d.ts +11 -0
  288. package/dist/types/eval/js/shared/helpers.d.ts +32 -0
  289. package/dist/types/eval/js/shared/indirect-eval.d.ts +14 -0
  290. package/dist/types/eval/js/shared/local-module-loader.d.ts +16 -0
  291. package/dist/types/eval/js/shared/prelude.d.ts +1 -0
  292. package/dist/types/eval/js/shared/rewrite-imports.d.ts +25 -0
  293. package/dist/types/eval/js/shared/runtime.d.ts +59 -0
  294. package/dist/types/eval/js/shared/types.d.ts +24 -0
  295. package/dist/types/eval/js/tool-bridge.d.ts +20 -0
  296. package/dist/types/eval/js/worker-core.d.ts +6 -0
  297. package/dist/types/eval/js/worker-entry.d.ts +1 -0
  298. package/dist/types/eval/js/worker-protocol.d.ts +83 -0
  299. package/dist/types/eval/kernel-base.d.ts +105 -0
  300. package/dist/types/eval/py/__tests__/prelude.test.d.ts +1 -0
  301. package/dist/types/eval/py/__tests__/runner-shell-output.test.d.ts +1 -0
  302. package/dist/types/eval/py/display.d.ts +25 -0
  303. package/dist/types/eval/py/executor.d.ts +107 -0
  304. package/dist/types/eval/py/index.d.ts +11 -0
  305. package/dist/types/eval/py/kernel.d.ts +17 -0
  306. package/dist/types/eval/py/prelude.d.ts +1 -0
  307. package/dist/types/eval/py/runtime.d.ts +40 -0
  308. package/dist/types/eval/py/spawn-options.d.ts +58 -0
  309. package/dist/types/eval/py/tool-bridge.d.ts +16 -0
  310. package/dist/types/eval/rb/executor.d.ts +77 -0
  311. package/dist/types/eval/rb/index.d.ts +11 -0
  312. package/dist/types/eval/rb/kernel.d.ts +31 -0
  313. package/dist/types/eval/rb/prelude.d.ts +1 -0
  314. package/dist/types/eval/rb/runtime.d.ts +23 -0
  315. package/dist/types/eval/runtime-env.d.ts +24 -0
  316. package/dist/types/eval/session-id.d.ts +3 -0
  317. package/dist/types/eval/types.d.ts +52 -0
  318. package/dist/types/exa/index.d.ts +2 -0
  319. package/dist/types/exa/mcp-client.d.ts +53 -0
  320. package/dist/types/exa/types.d.ts +72 -0
  321. package/dist/types/exec/bash-cwd-sync.d.ts +16 -0
  322. package/dist/types/exec/bash-executor.d.ts +45 -0
  323. package/dist/types/exec/exec.d.ts +25 -0
  324. package/dist/types/exec/non-interactive-env.d.ts +3 -0
  325. package/dist/types/export/custom-share.d.ts +19 -0
  326. package/dist/types/export/html/index.d.ts +78 -0
  327. package/dist/types/export/html/web-palette.d.ts +117 -0
  328. package/dist/types/export/share.d.ts +55 -0
  329. package/dist/types/export/ttsr.d.ts +67 -0
  330. package/dist/types/extensibility/custom-commands/bundled/ci-green/index.d.ts +9 -0
  331. package/dist/types/extensibility/custom-commands/bundled/review/index.d.ts +10 -0
  332. package/dist/types/extensibility/custom-commands/index.d.ts +2 -0
  333. package/dist/types/extensibility/custom-commands/loader.d.ts +29 -0
  334. package/dist/types/extensibility/custom-commands/types.d.ts +112 -0
  335. package/dist/types/extensibility/custom-tools/index.d.ts +6 -0
  336. package/dist/types/extensibility/custom-tools/loader.d.ts +89 -0
  337. package/dist/types/extensibility/custom-tools/types.d.ts +242 -0
  338. package/dist/types/extensibility/custom-tools/wrapper.d.ts +23 -0
  339. package/dist/types/extensibility/extensions/compact-handler.d.ts +26 -0
  340. package/dist/types/extensibility/extensions/get-commands-handler.d.ts +29 -0
  341. package/dist/types/extensibility/extensions/index.d.ts +8 -0
  342. package/dist/types/extensibility/extensions/loader.d.ts +59 -0
  343. package/dist/types/extensibility/extensions/model-api.d.ts +17 -0
  344. package/dist/types/extensibility/extensions/runner.d.ts +161 -0
  345. package/dist/types/extensibility/extensions/types.d.ts +962 -0
  346. package/dist/types/extensibility/extensions/wrapper.d.ts +54 -0
  347. package/dist/types/extensibility/hooks/index.d.ts +6 -0
  348. package/dist/types/extensibility/hooks/loader.d.ts +65 -0
  349. package/dist/types/extensibility/hooks/runner.d.ts +126 -0
  350. package/dist/types/extensibility/hooks/tool-wrapper.d.ts +25 -0
  351. package/dist/types/extensibility/hooks/types.d.ts +442 -0
  352. package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +35 -0
  353. package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +115 -0
  354. package/dist/types/extensibility/plugins/doctor.d.ts +3 -0
  355. package/dist/types/extensibility/plugins/git-url.d.ts +44 -0
  356. package/dist/types/extensibility/plugins/index.d.ts +7 -0
  357. package/dist/types/extensibility/plugins/installer.d.ts +5 -0
  358. package/dist/types/extensibility/plugins/legacy-pi-bundled-keys.d.ts +10 -0
  359. package/dist/types/extensibility/plugins/legacy-pi-bundled-registry.d.ts +10 -0
  360. package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +79 -0
  361. package/dist/types/extensibility/plugins/loader.d.ts +59 -0
  362. package/dist/types/extensibility/plugins/manager.d.ts +76 -0
  363. package/dist/types/extensibility/plugins/marketplace/cache.d.ts +41 -0
  364. package/dist/types/extensibility/plugins/marketplace/fetcher.d.ts +48 -0
  365. package/dist/types/extensibility/plugins/marketplace/index.d.ts +6 -0
  366. package/dist/types/extensibility/plugins/marketplace/manager.d.ts +57 -0
  367. package/dist/types/extensibility/plugins/marketplace/registry.d.ts +34 -0
  368. package/dist/types/extensibility/plugins/marketplace/source-resolver.d.ts +28 -0
  369. package/dist/types/extensibility/plugins/marketplace/types.d.ts +131 -0
  370. package/dist/types/extensibility/plugins/marketplace-auto-update.d.ts +8 -0
  371. package/dist/types/extensibility/plugins/parser.d.ts +52 -0
  372. package/dist/types/extensibility/plugins/runtime-config.d.ts +3 -0
  373. package/dist/types/extensibility/plugins/types.d.ts +161 -0
  374. package/dist/types/extensibility/session-handler-types.d.ts +23 -0
  375. package/dist/types/extensibility/shared-events.d.ts +301 -0
  376. package/dist/types/extensibility/skills.d.ts +97 -0
  377. package/dist/types/extensibility/slash-commands.d.ts +38 -0
  378. package/dist/types/extensibility/tool-event-input.d.ts +9 -0
  379. package/dist/types/extensibility/tool-proxy.d.ts +4 -0
  380. package/dist/types/extensibility/typebox.d.ts +177 -0
  381. package/dist/types/extensibility/utils.d.ts +24 -0
  382. package/dist/types/goals/guided-setup.d.ts +18 -0
  383. package/dist/types/goals/index.d.ts +3 -0
  384. package/dist/types/goals/runtime.d.ts +69 -0
  385. package/dist/types/goals/state.d.ts +35 -0
  386. package/dist/types/goals/tools/goal-tool.d.ts +53 -0
  387. package/dist/types/hindsight/backend.d.ts +13 -0
  388. package/dist/types/hindsight/bank.d.ts +63 -0
  389. package/dist/types/hindsight/client.d.ts +224 -0
  390. package/dist/types/hindsight/config.d.ts +51 -0
  391. package/dist/types/hindsight/content.d.ts +69 -0
  392. package/dist/types/hindsight/index.d.ts +8 -0
  393. package/dist/types/hindsight/mental-models.d.ts +134 -0
  394. package/dist/types/hindsight/state.d.ts +105 -0
  395. package/dist/types/hindsight/transcript.d.ts +28 -0
  396. package/dist/types/index.d.ts +43 -0
  397. package/dist/types/internal-urls/__tests__/ssh-protocol.test.d.ts +1 -0
  398. package/dist/types/internal-urls/agent-protocol.d.ts +13 -0
  399. package/dist/types/internal-urls/artifact-protocol.d.ts +7 -0
  400. package/dist/types/internal-urls/docs-index.d.ts +19 -0
  401. package/dist/types/internal-urls/filesystem-resource.d.ts +9 -0
  402. package/dist/types/internal-urls/history-protocol.d.ts +14 -0
  403. package/dist/types/internal-urls/index.d.ts +25 -0
  404. package/dist/types/internal-urls/issue-pr-protocol.d.ts +17 -0
  405. package/dist/types/internal-urls/json-query.d.ts +30 -0
  406. package/dist/types/internal-urls/local-protocol.d.ts +79 -0
  407. package/dist/types/internal-urls/mcp-protocol.d.ts +12 -0
  408. package/dist/types/internal-urls/memory-protocol.d.ts +24 -0
  409. package/dist/types/internal-urls/omp-protocol.d.ts +13 -0
  410. package/dist/types/internal-urls/parse.d.ts +19 -0
  411. package/dist/types/internal-urls/registry-helpers.d.ts +12 -0
  412. package/dist/types/internal-urls/router.d.ts +21 -0
  413. package/dist/types/internal-urls/rule-protocol.d.ts +7 -0
  414. package/dist/types/internal-urls/skill-protocol.d.ts +14 -0
  415. package/dist/types/internal-urls/ssh-protocol.d.ts +10 -0
  416. package/dist/types/internal-urls/types.d.ts +165 -0
  417. package/dist/types/internal-urls/vault-protocol.d.ts +93 -0
  418. package/dist/types/irc/bus.d.ts +85 -0
  419. package/dist/types/jsonrpc/message-framing.d.ts +35 -0
  420. package/dist/types/lib/xai-http.d.ts +40 -0
  421. package/dist/types/lsp/client.d.ts +84 -0
  422. package/dist/types/lsp/clients/biome-client.d.ts +16 -0
  423. package/dist/types/lsp/clients/index.d.ts +19 -0
  424. package/dist/types/lsp/clients/lsp-linter-client.d.ts +16 -0
  425. package/dist/types/lsp/clients/swiftlint-client.d.ts +20 -0
  426. package/dist/types/lsp/config.d.ts +65 -0
  427. package/dist/types/lsp/diagnostics-ledger.d.ts +10 -0
  428. package/dist/types/lsp/edits.d.ts +32 -0
  429. package/dist/types/lsp/format-options.d.ts +32 -0
  430. package/dist/types/lsp/index.d.ts +120 -0
  431. package/dist/types/lsp/lspmux.d.ts +58 -0
  432. package/dist/types/lsp/render.d.ts +32 -0
  433. package/dist/types/lsp/startup-events.d.ts +11 -0
  434. package/dist/types/lsp/types.d.ts +300 -0
  435. package/dist/types/lsp/utils.d.ts +116 -0
  436. package/dist/types/main.d.ts +70 -0
  437. package/dist/types/markit/converters/docx.d.ts +6 -0
  438. package/dist/types/markit/converters/epub.d.ts +15 -0
  439. package/dist/types/markit/converters/pdf/columns.d.ts +35 -0
  440. package/dist/types/markit/converters/pdf/extract.d.ts +10 -0
  441. package/dist/types/markit/converters/pdf/grid.d.ts +25 -0
  442. package/dist/types/markit/converters/pdf/headers.d.ts +24 -0
  443. package/dist/types/markit/converters/pdf/index.d.ts +6 -0
  444. package/dist/types/markit/converters/pdf/render.d.ts +24 -0
  445. package/dist/types/markit/converters/pdf/types.d.ts +75 -0
  446. package/dist/types/markit/converters/pptx.d.ts +57 -0
  447. package/dist/types/markit/converters/xlsx.d.ts +25 -0
  448. package/dist/types/markit/index.d.ts +2 -0
  449. package/dist/types/markit/registry.d.ts +16 -0
  450. package/dist/types/markit/types.d.ts +30 -0
  451. package/dist/types/mcp/client.d.ts +83 -0
  452. package/dist/types/mcp/config-writer.d.ts +101 -0
  453. package/dist/types/mcp/config.d.ts +75 -0
  454. package/dist/types/mcp/index.d.ts +18 -0
  455. package/dist/types/mcp/json-rpc.d.ts +32 -0
  456. package/dist/types/mcp/loader.d.ts +44 -0
  457. package/dist/types/mcp/manager.d.ts +215 -0
  458. package/dist/types/mcp/oauth-credentials.d.ts +17 -0
  459. package/dist/types/mcp/oauth-discovery.d.ts +35 -0
  460. package/dist/types/mcp/oauth-flow.d.ts +145 -0
  461. package/dist/types/mcp/render.d.ts +25 -0
  462. package/dist/types/mcp/smithery-auth.d.ts +16 -0
  463. package/dist/types/mcp/smithery-connect.d.ts +38 -0
  464. package/dist/types/mcp/smithery-registry.d.ts +51 -0
  465. package/dist/types/mcp/startup-events.d.ts +28 -0
  466. package/dist/types/mcp/timeout.d.ts +9 -0
  467. package/dist/types/mcp/tool-bridge.d.ts +95 -0
  468. package/dist/types/mcp/tool-cache.d.ts +8 -0
  469. package/dist/types/mcp/transports/http.d.ts +45 -0
  470. package/dist/types/mcp/transports/index.d.ts +6 -0
  471. package/dist/types/mcp/transports/sse.d.ts +20 -0
  472. package/dist/types/mcp/transports/stdio.d.ts +108 -0
  473. package/dist/types/mcp/transports/stdio.test.d.ts +1 -0
  474. package/dist/types/mcp/types.d.ts +340 -0
  475. package/dist/types/memories/index.d.ts +54 -0
  476. package/dist/types/memories/okf.d.ts +36 -0
  477. package/dist/types/memories/storage.d.ts +110 -0
  478. package/dist/types/memory-backend/index.d.ts +7 -0
  479. package/dist/types/memory-backend/local-backend.d.ts +10 -0
  480. package/dist/types/memory-backend/off-backend.d.ts +7 -0
  481. package/dist/types/memory-backend/resolve.d.ts +16 -0
  482. package/dist/types/memory-backend/runtime.d.ts +4 -0
  483. package/dist/types/memory-backend/types.d.ts +132 -0
  484. package/dist/types/mnemopi/backend.d.ts +4 -0
  485. package/dist/types/mnemopi/config.d.ts +60 -0
  486. package/dist/types/mnemopi/embed-client.d.ts +53 -0
  487. package/dist/types/mnemopi/embed-protocol.d.ts +52 -0
  488. package/dist/types/mnemopi/embed-worker.d.ts +12 -0
  489. package/dist/types/mnemopi/index.d.ts +3 -0
  490. package/dist/types/mnemopi/state.d.ts +130 -0
  491. package/dist/types/modes/acp/acp-agent.d.ts +60 -0
  492. package/dist/types/modes/acp/acp-client-bridge.d.ts +9 -0
  493. package/dist/types/modes/acp/acp-event-mapper.d.ts +33 -0
  494. package/dist/types/modes/acp/acp-mode.d.ts +5 -0
  495. package/dist/types/modes/acp/index.d.ts +2 -0
  496. package/dist/types/modes/acp/terminal-auth.d.ts +6 -0
  497. package/dist/types/modes/components/__tests__/assistant-agent-label.test.d.ts +1 -0
  498. package/dist/types/modes/components/__tests__/move-overlay.test.d.ts +1 -0
  499. package/dist/types/modes/components/__tests__/skill-message.test.d.ts +1 -0
  500. package/dist/types/modes/components/advisor-config.d.ts +59 -0
  501. package/dist/types/modes/components/advisor-message.d.ts +9 -0
  502. package/dist/types/modes/components/agent-dashboard.d.ts +22 -0
  503. package/dist/types/modes/components/agent-hub.d.ts +77 -0
  504. package/dist/types/modes/components/agent-transcript-viewer.d.ts +40 -0
  505. package/dist/types/modes/components/assistant-message.d.ts +57 -0
  506. package/dist/types/modes/components/background-tan-message.d.ts +9 -0
  507. package/dist/types/modes/components/bash-execution.d.ts +29 -0
  508. package/dist/types/modes/components/bordered-loader.d.ts +11 -0
  509. package/dist/types/modes/components/btw-panel.d.ts +19 -0
  510. package/dist/types/modes/components/cache-invalidation-marker.d.ts +52 -0
  511. package/dist/types/modes/components/chat-block.d.ts +64 -0
  512. package/dist/types/modes/components/chat-transcript-builder.d.ts +45 -0
  513. package/dist/types/modes/components/collab-prompt-message.d.ts +10 -0
  514. package/dist/types/modes/components/compaction-summary-message.d.ts +46 -0
  515. package/dist/types/modes/components/copy-selector.d.ts +22 -0
  516. package/dist/types/modes/components/countdown-timer.d.ts +14 -0
  517. package/dist/types/modes/components/custom-editor.d.ts +163 -0
  518. package/dist/types/modes/components/custom-editor.test.d.ts +1 -0
  519. package/dist/types/modes/components/custom-message.d.ts +15 -0
  520. package/dist/types/modes/components/diff.d.ts +11 -0
  521. package/dist/types/modes/components/dynamic-border.d.ts +14 -0
  522. package/dist/types/modes/components/error-banner.d.ts +11 -0
  523. package/dist/types/modes/components/eval-execution.d.ts +23 -0
  524. package/dist/types/modes/components/execution-shared.d.ts +46 -0
  525. package/dist/types/modes/components/extensions/extension-dashboard.d.ts +43 -0
  526. package/dist/types/modes/components/extensions/extension-list.d.ts +52 -0
  527. package/dist/types/modes/components/extensions/index.d.ts +8 -0
  528. package/dist/types/modes/components/extensions/inspector-panel.d.ts +8 -0
  529. package/dist/types/modes/components/extensions/state-manager.d.ts +50 -0
  530. package/dist/types/modes/components/extensions/types.d.ts +147 -0
  531. package/dist/types/modes/components/footer.d.ts +30 -0
  532. package/dist/types/modes/components/history-search.d.ts +7 -0
  533. package/dist/types/modes/components/hook-editor.d.ts +24 -0
  534. package/dist/types/modes/components/hook-input.d.ts +19 -0
  535. package/dist/types/modes/components/hook-message.d.ts +15 -0
  536. package/dist/types/modes/components/hook-selector.d.ts +68 -0
  537. package/dist/types/modes/components/index.d.ts +38 -0
  538. package/dist/types/modes/components/keybinding-hints.d.ts +40 -0
  539. package/dist/types/modes/components/late-diagnostics-message.d.ts +20 -0
  540. package/dist/types/modes/components/login-dialog.d.ts +32 -0
  541. package/dist/types/modes/components/logout-account-selector.d.ts +8 -0
  542. package/dist/types/modes/components/mcp-add-wizard.d.ts +38 -0
  543. package/dist/types/modes/components/message-frame.d.ts +44 -0
  544. package/dist/types/modes/components/model-selector.d.ts +36 -0
  545. package/dist/types/modes/components/move-overlay.d.ts +23 -0
  546. package/dist/types/modes/components/oauth-selector.d.ts +23 -0
  547. package/dist/types/modes/components/omfg-panel.d.ts +19 -0
  548. package/dist/types/modes/components/overlay-box.d.ts +17 -0
  549. package/dist/types/modes/components/plan-review-overlay.d.ts +61 -0
  550. package/dist/types/modes/components/plan-toc.d.ts +41 -0
  551. package/dist/types/modes/components/plugin-selector.d.ts +27 -0
  552. package/dist/types/modes/components/plugin-settings.d.ts +103 -0
  553. package/dist/types/modes/components/queue-mode-selector.d.ts +10 -0
  554. package/dist/types/modes/components/read-tool-group.d.ts +38 -0
  555. package/dist/types/modes/components/reset-usage-selector.d.ts +12 -0
  556. package/dist/types/modes/components/segment-track.d.ts +27 -0
  557. package/dist/types/modes/components/select-list-mouse-routing.d.ts +2 -0
  558. package/dist/types/modes/components/selector-helpers.d.ts +53 -0
  559. package/dist/types/modes/components/session-selector.d.ts +94 -0
  560. package/dist/types/modes/components/settings-defs.d.ts +60 -0
  561. package/dist/types/modes/components/settings-selector.d.ts +70 -0
  562. package/dist/types/modes/components/show-images-selector.d.ts +10 -0
  563. package/dist/types/modes/components/skill-message.d.ts +9 -0
  564. package/dist/types/modes/components/snapcompact-shape-preview.d.ts +31 -0
  565. package/dist/types/modes/components/status-line/component.d.ts +94 -0
  566. package/dist/types/modes/components/status-line/component.test.d.ts +1 -0
  567. package/dist/types/modes/components/status-line/context-thresholds.d.ts +10 -0
  568. package/dist/types/modes/components/status-line/git-utils.d.ts +22 -0
  569. package/dist/types/modes/components/status-line/index.d.ts +5 -0
  570. package/dist/types/modes/components/status-line/presets.d.ts +3 -0
  571. package/dist/types/modes/components/status-line/segments.d.ts +5 -0
  572. package/dist/types/modes/components/status-line/separators.d.ts +3 -0
  573. package/dist/types/modes/components/status-line/token-rate.d.ts +10 -0
  574. package/dist/types/modes/components/status-line/types.d.ts +150 -0
  575. package/dist/types/modes/components/theme-selector.d.ts +11 -0
  576. package/dist/types/modes/components/thinking-selector.d.ts +11 -0
  577. package/dist/types/modes/components/tiny-title-download-progress.d.ts +11 -0
  578. package/dist/types/modes/components/todo-reminder.d.ts +15 -0
  579. package/dist/types/modes/components/tool-execution.d.ts +124 -0
  580. package/dist/types/modes/components/transcript-container.d.ts +88 -0
  581. package/dist/types/modes/components/tree-selector.d.ts +31 -0
  582. package/dist/types/modes/components/ttsr-notification.d.ts +17 -0
  583. package/dist/types/modes/components/usage-row.d.ts +3 -0
  584. package/dist/types/modes/components/user-message-selector.d.ts +28 -0
  585. package/dist/types/modes/components/user-message.d.ts +9 -0
  586. package/dist/types/modes/components/visual-truncate.d.ts +19 -0
  587. package/dist/types/modes/components/welcome.d.ts +76 -0
  588. package/dist/types/modes/controllers/btw-controller.d.ts +14 -0
  589. package/dist/types/modes/controllers/command-controller-shared.d.ts +47 -0
  590. package/dist/types/modes/controllers/command-controller.d.ts +55 -0
  591. package/dist/types/modes/controllers/event-controller.d.ts +28 -0
  592. package/dist/types/modes/controllers/extension-ui-controller.d.ts +88 -0
  593. package/dist/types/modes/controllers/input-controller.d.ts +71 -0
  594. package/dist/types/modes/controllers/mcp-command-controller.d.ts +27 -0
  595. package/dist/types/modes/controllers/omfg-controller.d.ts +10 -0
  596. package/dist/types/modes/controllers/omfg-rule.d.ts +26 -0
  597. package/dist/types/modes/controllers/selector-controller.d.ts +61 -0
  598. package/dist/types/modes/controllers/session-focus-controller.d.ts +31 -0
  599. package/dist/types/modes/controllers/ssh-command-controller.d.ts +10 -0
  600. package/dist/types/modes/controllers/streaming-reveal.d.ts +45 -0
  601. package/dist/types/modes/controllers/tan-command-controller.d.ts +6 -0
  602. package/dist/types/modes/controllers/todo-command-controller.d.ts +7 -0
  603. package/dist/types/modes/controllers/tool-args-reveal.d.ts +77 -0
  604. package/dist/types/modes/emoji-autocomplete.d.ts +16 -0
  605. package/dist/types/modes/gradient-highlight.d.ts +32 -0
  606. package/dist/types/modes/image-references.d.ts +28 -0
  607. package/dist/types/modes/index.d.ts +10 -0
  608. package/dist/types/modes/interactive-mode.d.ts +399 -0
  609. package/dist/types/modes/internal-url-autocomplete.d.ts +43 -0
  610. package/dist/types/modes/loop-limit.d.ts +35 -0
  611. package/dist/types/modes/magic-keywords.d.ts +26 -0
  612. package/dist/types/modes/markdown-prose.d.ts +27 -0
  613. package/dist/types/modes/oauth-manual-input.d.ts +15 -0
  614. package/dist/types/modes/orchestrate.d.ts +15 -0
  615. package/dist/types/modes/print-mode.d.ts +29 -0
  616. package/dist/types/modes/prompt-action-autocomplete.d.ts +46 -0
  617. package/dist/types/modes/rpc/host-tools.d.ts +16 -0
  618. package/dist/types/modes/rpc/host-uris.d.ts +38 -0
  619. package/dist/types/modes/rpc/rpc-client.d.ts +300 -0
  620. package/dist/types/modes/rpc/rpc-mode.d.ts +145 -0
  621. package/dist/types/modes/rpc/rpc-subagents.d.ts +24 -0
  622. package/dist/types/modes/rpc/rpc-types.d.ts +699 -0
  623. package/dist/types/modes/running-subagent-badge.d.ts +6 -0
  624. package/dist/types/modes/runtime-init.d.ts +25 -0
  625. package/dist/types/modes/session-observer-registry.d.ts +35 -0
  626. package/dist/types/modes/session-teardown.d.ts +63 -0
  627. package/dist/types/modes/session-teardown.test.d.ts +1 -0
  628. package/dist/types/modes/setup-version.d.ts +11 -0
  629. package/dist/types/modes/setup-wizard/index.d.ts +22 -0
  630. package/dist/types/modes/setup-wizard/lazy.d.ts +2 -0
  631. package/dist/types/modes/setup-wizard/scenes/glyph.d.ts +2 -0
  632. package/dist/types/modes/setup-wizard/scenes/outro.d.ts +2 -0
  633. package/dist/types/modes/setup-wizard/scenes/providers.d.ts +2 -0
  634. package/dist/types/modes/setup-wizard/scenes/sign-in.d.ts +22 -0
  635. package/dist/types/modes/setup-wizard/scenes/splash.d.ts +11 -0
  636. package/dist/types/modes/setup-wizard/scenes/theme.d.ts +2 -0
  637. package/dist/types/modes/setup-wizard/scenes/types.d.ts +52 -0
  638. package/dist/types/modes/setup-wizard/scenes/web-search.d.ts +23 -0
  639. package/dist/types/modes/setup-wizard/startup-splash.d.ts +7 -0
  640. package/dist/types/modes/setup-wizard/wizard-overlay.d.ts +15 -0
  641. package/dist/types/modes/shared.d.ts +15 -0
  642. package/dist/types/modes/skill-command.d.ts +32 -0
  643. package/dist/types/modes/theme/defaults/index.d.ts +9436 -0
  644. package/dist/types/modes/theme/mermaid-cache.d.ts +26 -0
  645. package/dist/types/modes/theme/mermaid-rendering.test.d.ts +1 -0
  646. package/dist/types/modes/theme/shimmer.d.ts +40 -0
  647. package/dist/types/modes/theme/theme.d.ts +360 -0
  648. package/dist/types/modes/turn-budget.d.ts +18 -0
  649. package/dist/types/modes/types.d.ts +399 -0
  650. package/dist/types/modes/ultrathink.d.ts +15 -0
  651. package/dist/types/modes/utils/context-usage.d.ts +64 -0
  652. package/dist/types/modes/utils/copy-targets.d.ts +75 -0
  653. package/dist/types/modes/utils/hotkeys-markdown.d.ts +5 -0
  654. package/dist/types/modes/utils/interactive-context-helpers.d.ts +14 -0
  655. package/dist/types/modes/utils/keybinding-matchers.d.ts +32 -0
  656. package/dist/types/modes/utils/tools-markdown.d.ts +5 -0
  657. package/dist/types/modes/utils/transcript-render-helpers.d.ts +54 -0
  658. package/dist/types/modes/utils/ui-helpers.d.ts +55 -0
  659. package/dist/types/modes/workflow.d.ts +15 -0
  660. package/dist/types/plan-mode/approved-plan-prompt.test.d.ts +1 -0
  661. package/dist/types/plan-mode/approved-plan.d.ts +68 -0
  662. package/dist/types/plan-mode/plan-handoff.d.ts +20 -0
  663. package/dist/types/plan-mode/plan-protection.d.ts +12 -0
  664. package/dist/types/plan-mode/state.d.ts +6 -0
  665. package/dist/types/registry/agent-lifecycle.d.ts +66 -0
  666. package/dist/types/registry/agent-registry.d.ts +97 -0
  667. package/dist/types/sdk.d.ts +370 -0
  668. package/dist/types/secrets/index.d.ts +9 -0
  669. package/dist/types/secrets/obfuscator.d.ts +63 -0
  670. package/dist/types/secrets/regex.d.ts +2 -0
  671. package/dist/types/session/agent-session.d.ts +1420 -0
  672. package/dist/types/session/agent-storage.d.ts +97 -0
  673. package/dist/types/session/artifacts.d.ts +61 -0
  674. package/dist/types/session/auth-broker-config.d.ts +45 -0
  675. package/dist/types/session/auth-storage.d.ts +7 -0
  676. package/dist/types/session/blob-store.d.ts +68 -0
  677. package/dist/types/session/client-bridge.d.ts +88 -0
  678. package/dist/types/session/codex-auto-reset.d.ts +111 -0
  679. package/dist/types/session/compact-modes.d.ts +60 -0
  680. package/dist/types/session/exit-diagnostics.d.ts +48 -0
  681. package/dist/types/session/history-storage.d.ts +30 -0
  682. package/dist/types/session/indexed-session-storage.d.ts +65 -0
  683. package/dist/types/session/messages.d.ts +220 -0
  684. package/dist/types/session/messages.test.d.ts +1 -0
  685. package/dist/types/session/provider-image-budget.d.ts +3 -0
  686. package/dist/types/session/redis-session-storage.d.ts +51 -0
  687. package/dist/types/session/session-context.d.ts +44 -0
  688. package/dist/types/session/session-dump-format.d.ts +30 -0
  689. package/dist/types/session/session-entries.d.ts +197 -0
  690. package/dist/types/session/session-history-format.d.ts +49 -0
  691. package/dist/types/session/session-listing.d.ts +78 -0
  692. package/dist/types/session/session-loader.d.ts +29 -0
  693. package/dist/types/session/session-manager.d.ts +306 -0
  694. package/dist/types/session/session-migrations.d.ts +12 -0
  695. package/dist/types/session/session-paths.d.ts +25 -0
  696. package/dist/types/session/session-persistence.d.ts +12 -0
  697. package/dist/types/session/session-storage.d.ts +101 -0
  698. package/dist/types/session/session-title-slot.d.ts +19 -0
  699. package/dist/types/session/settings-stream-fn.d.ts +21 -0
  700. package/dist/types/session/shake-types.d.ts +24 -0
  701. package/dist/types/session/snapcompact-inline.d.ts +145 -0
  702. package/dist/types/session/snapcompact-savings-journal.d.ts +46 -0
  703. package/dist/types/session/sql-session-storage.d.ts +72 -0
  704. package/dist/types/session/streaming-output.d.ts +229 -0
  705. package/dist/types/session/tool-choice-queue.d.ts +94 -0
  706. package/dist/types/session/turn-persistence.d.ts +88 -0
  707. package/dist/types/session/unexpected-stop-classifier.d.ts +13 -0
  708. package/dist/types/session/yield-queue.d.ts +37 -0
  709. package/dist/types/slash-commands/acp-builtins.d.ts +34 -0
  710. package/dist/types/slash-commands/available-commands.d.ts +34 -0
  711. package/dist/types/slash-commands/builtin-registry.d.ts +36 -0
  712. package/dist/types/slash-commands/helpers/active-oauth-account.d.ts +14 -0
  713. package/dist/types/slash-commands/helpers/collab-qrcode.d.ts +13 -0
  714. package/dist/types/slash-commands/helpers/context-report.d.ts +7 -0
  715. package/dist/types/slash-commands/helpers/format.d.ts +10 -0
  716. package/dist/types/slash-commands/helpers/logout.d.ts +15 -0
  717. package/dist/types/slash-commands/helpers/marketplace-manager.d.ts +8 -0
  718. package/dist/types/slash-commands/helpers/mcp.d.ts +3 -0
  719. package/dist/types/slash-commands/helpers/parse.d.ts +33 -0
  720. package/dist/types/slash-commands/helpers/reset-usage.d.ts +27 -0
  721. package/dist/types/slash-commands/helpers/ssh.d.ts +3 -0
  722. package/dist/types/slash-commands/helpers/stats-dashboard.d.ts +13 -0
  723. package/dist/types/slash-commands/helpers/todo.d.ts +3 -0
  724. package/dist/types/slash-commands/helpers/usage-report.d.ts +7 -0
  725. package/dist/types/slash-commands/marketplace-install-parser.d.ts +33 -0
  726. package/dist/types/slash-commands/types.d.ts +127 -0
  727. package/dist/types/ssh/__tests__/connection-manager-args.test.d.ts +1 -0
  728. package/dist/types/ssh/__tests__/file-transfer-posix-guard.test.d.ts +1 -0
  729. package/dist/types/ssh/config-writer.d.ts +49 -0
  730. package/dist/types/ssh/connection-manager.d.ts +90 -0
  731. package/dist/types/ssh/file-transfer.d.ts +79 -0
  732. package/dist/types/ssh/ssh-executor.d.ts +37 -0
  733. package/dist/types/ssh/sshfs-mount.d.ts +6 -0
  734. package/dist/types/ssh/utils.d.ts +24 -0
  735. package/dist/types/startup-splash.d.ts +12 -0
  736. package/dist/types/stt/asr-client.d.ts +68 -0
  737. package/dist/types/stt/asr-protocol.d.ts +97 -0
  738. package/dist/types/stt/asr-worker.d.ts +2 -0
  739. package/dist/types/stt/downloader.d.ts +47 -0
  740. package/dist/types/stt/endpointer.d.ts +59 -0
  741. package/dist/types/stt/index.d.ts +8 -0
  742. package/dist/types/stt/models.d.ts +120 -0
  743. package/dist/types/stt/recorder.d.ts +30 -0
  744. package/dist/types/stt/stt-controller.d.ts +24 -0
  745. package/dist/types/stt/submit-trigger.d.ts +30 -0
  746. package/dist/types/stt/transcriber.d.ts +14 -0
  747. package/dist/types/stt/wav.d.ts +29 -0
  748. package/dist/types/subprocess/worker-client.d.ts +149 -0
  749. package/dist/types/subprocess/worker-runtime.d.ts +107 -0
  750. package/dist/types/system-prompt.d.ts +128 -0
  751. package/dist/types/system-prompt.test.d.ts +1 -0
  752. package/dist/types/task/agents.d.ts +28 -0
  753. package/dist/types/task/commands.d.ts +35 -0
  754. package/dist/types/task/critic-gate.d.ts +76 -0
  755. package/dist/types/task/critic-gate.test.d.ts +1 -0
  756. package/dist/types/task/discovery.d.ts +17 -0
  757. package/dist/types/task/executor.d.ts +214 -0
  758. package/dist/types/task/index.d.ts +79 -0
  759. package/dist/types/task/isolation-runner.d.ts +128 -0
  760. package/dist/types/task/name-generator.d.ts +16 -0
  761. package/dist/types/task/omp-command.d.ts +7 -0
  762. package/dist/types/task/output-manager.d.ts +20 -0
  763. package/dist/types/task/parallel.d.ts +55 -0
  764. package/dist/types/task/persisted-revive.d.ts +36 -0
  765. package/dist/types/task/provider-concurrency.d.ts +40 -0
  766. package/dist/types/task/render.d.ts +34 -0
  767. package/dist/types/task/render.test.d.ts +1 -0
  768. package/dist/types/task/renderer.d.ts +13 -0
  769. package/dist/types/task/repair-args.d.ts +53 -0
  770. package/dist/types/task/spawn-policy.d.ts +17 -0
  771. package/dist/types/task/spawn-policy.test.d.ts +1 -0
  772. package/dist/types/task/subprocess-tool-registry.d.ts +72 -0
  773. package/dist/types/task/types.d.ts +384 -0
  774. package/dist/types/task/worktree.d.ts +135 -0
  775. package/dist/types/task/yield-assembly.d.ts +28 -0
  776. package/dist/types/telemetry-export.d.ts +43 -0
  777. package/dist/types/thinking.d.ts +96 -0
  778. package/dist/types/tiny/device.d.ts +78 -0
  779. package/dist/types/tiny/dtype.d.ts +85 -0
  780. package/dist/types/tiny/models.d.ts +230 -0
  781. package/dist/types/tiny/text.d.ts +44 -0
  782. package/dist/types/tiny/title-client.d.ts +68 -0
  783. package/dist/types/tiny/title-protocol.d.ts +78 -0
  784. package/dist/types/tiny/worker.d.ts +2 -0
  785. package/dist/types/tool-discovery/mode.d.ts +8 -0
  786. package/dist/types/tool-discovery/tool-index.d.ts +57 -0
  787. package/dist/types/tools/__tests__/eval-description.test.d.ts +1 -0
  788. package/dist/types/tools/__tests__/json-tree.test.d.ts +1 -0
  789. package/dist/types/tools/acp-bridge.d.ts +29 -0
  790. package/dist/types/tools/approval.d.ts +46 -0
  791. package/dist/types/tools/ask.d.ts +119 -0
  792. package/dist/types/tools/ast-edit.d.ts +84 -0
  793. package/dist/types/tools/ast-grep.d.ts +74 -0
  794. package/dist/types/tools/auto-generated-guard.d.ts +17 -0
  795. package/dist/types/tools/bash-command-fixup.d.ts +11 -0
  796. package/dist/types/tools/bash-interactive.d.ts +16 -0
  797. package/dist/types/tools/bash-interceptor.d.ts +24 -0
  798. package/dist/types/tools/bash-pty-selection.d.ts +7 -0
  799. package/dist/types/tools/bash-skill-urls.d.ts +31 -0
  800. package/dist/types/tools/bash.d.ts +148 -0
  801. package/dist/types/tools/browser/aria/aria-snapshot.d.ts +39 -0
  802. package/dist/types/tools/browser/attach.d.ts +34 -0
  803. package/dist/types/tools/browser/cmux/cmux-tab.d.ts +212 -0
  804. package/dist/types/tools/browser/cmux/rpc.d.ts +70 -0
  805. package/dist/types/tools/browser/cmux/socket-client.d.ts +19 -0
  806. package/dist/types/tools/browser/launch.d.ts +67 -0
  807. package/dist/types/tools/browser/readable.d.ts +17 -0
  808. package/dist/types/tools/browser/registry.d.ts +58 -0
  809. package/dist/types/tools/browser/render.d.ts +52 -0
  810. package/dist/types/tools/browser/run-cancellation.d.ts +4 -0
  811. package/dist/types/tools/browser/tab-protocol.d.ts +146 -0
  812. package/dist/types/tools/browser/tab-supervisor.d.ts +104 -0
  813. package/dist/types/tools/browser/tab-worker-entry.d.ts +1 -0
  814. package/dist/types/tools/browser/tab-worker.d.ts +56 -0
  815. package/dist/types/tools/browser.d.ts +96 -0
  816. package/dist/types/tools/builtin-names.d.ts +6 -0
  817. package/dist/types/tools/checkpoint.d.ts +72 -0
  818. package/dist/types/tools/conflict-detect.d.ts +221 -0
  819. package/dist/types/tools/context.d.ts +19 -0
  820. package/dist/types/tools/debug.d.ts +156 -0
  821. package/dist/types/tools/eval-backends.d.ts +15 -0
  822. package/dist/types/tools/eval-render.d.ts +58 -0
  823. package/dist/types/tools/eval.d.ts +66 -0
  824. package/dist/types/tools/fetch.d.ts +99 -0
  825. package/dist/types/tools/file-recorder.d.ts +13 -0
  826. package/dist/types/tools/fs-cache-invalidation.d.ts +15 -0
  827. package/dist/types/tools/gh-cache-invalidation.d.ts +6 -0
  828. package/dist/types/tools/gh-format.d.ts +6 -0
  829. package/dist/types/tools/gh-renderer.d.ts +25 -0
  830. package/dist/types/tools/gh.d.ts +331 -0
  831. package/dist/types/tools/github-cache.d.ts +123 -0
  832. package/dist/types/tools/glob.d.ts +94 -0
  833. package/dist/types/tools/grep.d.ts +98 -0
  834. package/dist/types/tools/grouped-file-output.d.ts +70 -0
  835. package/dist/types/tools/image-gen.d.ts +66 -0
  836. package/dist/types/tools/index.d.ts +373 -0
  837. package/dist/types/tools/inspect-image-renderer.d.ts +26 -0
  838. package/dist/types/tools/inspect-image.d.ts +32 -0
  839. package/dist/types/tools/irc.d.ts +112 -0
  840. package/dist/types/tools/job.d.ts +73 -0
  841. package/dist/types/tools/json-tree.d.ts +23 -0
  842. package/dist/types/tools/jtd-to-json-schema.d.ts +29 -0
  843. package/dist/types/tools/jtd-to-typescript.d.ts +26 -0
  844. package/dist/types/tools/jtd-utils.d.ts +42 -0
  845. package/dist/types/tools/learn.d.ts +44 -0
  846. package/dist/types/tools/list-limit.d.ts +12 -0
  847. package/dist/types/tools/manage-skill.d.ts +31 -0
  848. package/dist/types/tools/match-line-format.d.ts +11 -0
  849. package/dist/types/tools/memory-edit.d.ts +31 -0
  850. package/dist/types/tools/memory-recall.d.ts +23 -0
  851. package/dist/types/tools/memory-reflect.d.ts +25 -0
  852. package/dist/types/tools/memory-render.d.ts +63 -0
  853. package/dist/types/tools/memory-retain.d.ts +29 -0
  854. package/dist/types/tools/output-meta.d.ts +211 -0
  855. package/dist/types/tools/output-schema-validator.d.ts +77 -0
  856. package/dist/types/tools/path-utils.d.ts +260 -0
  857. package/dist/types/tools/plan-mode-guard.d.ts +41 -0
  858. package/dist/types/tools/read.d.ts +87 -0
  859. package/dist/types/tools/render-utils.d.ts +218 -0
  860. package/dist/types/tools/renderers.d.ts +45 -0
  861. package/dist/types/tools/report-tool-issue.d.ts +127 -0
  862. package/dist/types/tools/resolve.d.ts +94 -0
  863. package/dist/types/tools/review.d.ts +59 -0
  864. package/dist/types/tools/search-tool-bm25.d.ts +65 -0
  865. package/dist/types/tools/sqlite-reader.d.ts +114 -0
  866. package/dist/types/tools/ssh.d.ts +73 -0
  867. package/dist/types/tools/todo.d.ts +126 -0
  868. package/dist/types/tools/tool-errors.d.ts +33 -0
  869. package/dist/types/tools/tool-result.d.ts +34 -0
  870. package/dist/types/tools/tool-timeouts.d.ts +51 -0
  871. package/dist/types/tools/tts.d.ts +42 -0
  872. package/dist/types/tools/write.d.ts +66 -0
  873. package/dist/types/tools/yield.d.ts +39 -0
  874. package/dist/types/tts/downloader.d.ts +20 -0
  875. package/dist/types/tts/index.d.ts +8 -0
  876. package/dist/types/tts/models.d.ts +82 -0
  877. package/dist/types/tts/player.d.ts +32 -0
  878. package/dist/types/tts/runtime.d.ts +6 -0
  879. package/dist/types/tts/streaming-player.d.ts +41 -0
  880. package/dist/types/tts/tts-client.d.ts +68 -0
  881. package/dist/types/tts/tts-protocol.d.ts +95 -0
  882. package/dist/types/tts/tts-worker.d.ts +2 -0
  883. package/dist/types/tts/vocalizer.d.ts +41 -0
  884. package/dist/types/tts/wav.d.ts +8 -0
  885. package/dist/types/tui/code-cell.d.ts +47 -0
  886. package/dist/types/tui/file-list.d.ts +22 -0
  887. package/dist/types/tui/hyperlink.d.ts +61 -0
  888. package/dist/types/tui/index.d.ts +12 -0
  889. package/dist/types/tui/output-block.d.ts +59 -0
  890. package/dist/types/tui/status-line.d.ts +21 -0
  891. package/dist/types/tui/tree-list.d.ts +20 -0
  892. package/dist/types/tui/types.d.ts +13 -0
  893. package/dist/types/tui/utils.d.ts +36 -0
  894. package/dist/types/tui/width-aware-text.d.ts +23 -0
  895. package/dist/types/utils/active-repo-context.d.ts +8 -0
  896. package/dist/types/utils/block-context.d.ts +35 -0
  897. package/dist/types/utils/changelog.d.ts +33 -0
  898. package/dist/types/utils/clipboard.d.ts +37 -0
  899. package/dist/types/utils/command-args.d.ts +9 -0
  900. package/dist/types/utils/commit-message-generator.d.ts +7 -0
  901. package/dist/types/utils/edit-mode.d.ts +13 -0
  902. package/dist/types/utils/enhanced-paste.d.ts +20 -0
  903. package/dist/types/utils/event-bus.d.ts +6 -0
  904. package/dist/types/utils/external-editor.d.ts +27 -0
  905. package/dist/types/utils/file-display-mode.d.ts +27 -0
  906. package/dist/types/utils/file-mentions.d.ts +13 -0
  907. package/dist/types/utils/git.d.ts +453 -0
  908. package/dist/types/utils/image-loading.d.ts +67 -0
  909. package/dist/types/utils/image-resize.d.ts +42 -0
  910. package/dist/types/utils/image-vision-fallback.d.ts +28 -0
  911. package/dist/types/utils/ipc.d.ts +22 -0
  912. package/dist/types/utils/jj.d.ts +74 -0
  913. package/dist/types/utils/lang-from-path.d.ts +8 -0
  914. package/dist/types/utils/markit-cache.d.ts +23 -0
  915. package/dist/types/utils/markit.d.ts +20 -0
  916. package/dist/types/utils/mupdf-wasm-embed.d.ts +1 -0
  917. package/dist/types/utils/open.d.ts +2 -0
  918. package/dist/types/utils/prompt-path.d.ts +1 -0
  919. package/dist/types/utils/qrcode.d.ts +48 -0
  920. package/dist/types/utils/session-color.d.ts +27 -0
  921. package/dist/types/utils/shell-snapshot.d.ts +15 -0
  922. package/dist/types/utils/sixel.d.ts +21 -0
  923. package/dist/types/utils/thinking-display.d.ts +7 -0
  924. package/dist/types/utils/title-generator.d.ts +33 -0
  925. package/dist/types/utils/tool-choice.d.ts +15 -0
  926. package/dist/types/utils/tools-manager.d.ts +12 -0
  927. package/dist/types/utils/turndown.d.ts +15 -0
  928. package/dist/types/utils/zip.d.ts +119 -0
  929. package/dist/types/web/kagi.d.ts +99 -0
  930. package/dist/types/web/parallel.d.ts +67 -0
  931. package/dist/types/web/scrapers/artifacthub.d.ts +6 -0
  932. package/dist/types/web/scrapers/arxiv.d.ts +5 -0
  933. package/dist/types/web/scrapers/aur.d.ts +5 -0
  934. package/dist/types/web/scrapers/biorxiv.d.ts +5 -0
  935. package/dist/types/web/scrapers/bluesky.d.ts +5 -0
  936. package/dist/types/web/scrapers/brew.d.ts +5 -0
  937. package/dist/types/web/scrapers/cheatsh.d.ts +8 -0
  938. package/dist/types/web/scrapers/chocolatey.d.ts +5 -0
  939. package/dist/types/web/scrapers/choosealicense.d.ts +2 -0
  940. package/dist/types/web/scrapers/cisa-kev.d.ts +5 -0
  941. package/dist/types/web/scrapers/clojars.d.ts +5 -0
  942. package/dist/types/web/scrapers/coingecko.d.ts +5 -0
  943. package/dist/types/web/scrapers/crates-io.d.ts +5 -0
  944. package/dist/types/web/scrapers/crossref.d.ts +2 -0
  945. package/dist/types/web/scrapers/devto.d.ts +5 -0
  946. package/dist/types/web/scrapers/discogs.d.ts +8 -0
  947. package/dist/types/web/scrapers/discourse.d.ts +5 -0
  948. package/dist/types/web/scrapers/dockerhub.d.ts +5 -0
  949. package/dist/types/web/scrapers/docs-rs.d.ts +2 -0
  950. package/dist/types/web/scrapers/fdroid.d.ts +5 -0
  951. package/dist/types/web/scrapers/firefox-addons.d.ts +2 -0
  952. package/dist/types/web/scrapers/flathub.d.ts +2 -0
  953. package/dist/types/web/scrapers/github-gist.d.ts +5 -0
  954. package/dist/types/web/scrapers/github.d.ts +34 -0
  955. package/dist/types/web/scrapers/gitlab.d.ts +5 -0
  956. package/dist/types/web/scrapers/go-pkg.d.ts +5 -0
  957. package/dist/types/web/scrapers/hackage.d.ts +5 -0
  958. package/dist/types/web/scrapers/hackernews.d.ts +2 -0
  959. package/dist/types/web/scrapers/hex.d.ts +5 -0
  960. package/dist/types/web/scrapers/huggingface.d.ts +2 -0
  961. package/dist/types/web/scrapers/iacr.d.ts +5 -0
  962. package/dist/types/web/scrapers/index.d.ts +84 -0
  963. package/dist/types/web/scrapers/jetbrains-marketplace.d.ts +2 -0
  964. package/dist/types/web/scrapers/lemmy.d.ts +2 -0
  965. package/dist/types/web/scrapers/lobsters.d.ts +5 -0
  966. package/dist/types/web/scrapers/mastodon.d.ts +5 -0
  967. package/dist/types/web/scrapers/maven.d.ts +6 -0
  968. package/dist/types/web/scrapers/mdn.d.ts +2 -0
  969. package/dist/types/web/scrapers/metacpan.d.ts +5 -0
  970. package/dist/types/web/scrapers/musicbrainz.d.ts +5 -0
  971. package/dist/types/web/scrapers/npm.d.ts +5 -0
  972. package/dist/types/web/scrapers/nuget.d.ts +5 -0
  973. package/dist/types/web/scrapers/nvd.d.ts +5 -0
  974. package/dist/types/web/scrapers/ollama.d.ts +2 -0
  975. package/dist/types/web/scrapers/open-vsx.d.ts +5 -0
  976. package/dist/types/web/scrapers/opencorporates.d.ts +5 -0
  977. package/dist/types/web/scrapers/openlibrary.d.ts +5 -0
  978. package/dist/types/web/scrapers/orcid.d.ts +5 -0
  979. package/dist/types/web/scrapers/osv.d.ts +5 -0
  980. package/dist/types/web/scrapers/packagist.d.ts +5 -0
  981. package/dist/types/web/scrapers/pub-dev.d.ts +5 -0
  982. package/dist/types/web/scrapers/pubmed.d.ts +5 -0
  983. package/dist/types/web/scrapers/pypi.d.ts +5 -0
  984. package/dist/types/web/scrapers/rawg.d.ts +2 -0
  985. package/dist/types/web/scrapers/readthedocs.d.ts +5 -0
  986. package/dist/types/web/scrapers/reddit.d.ts +5 -0
  987. package/dist/types/web/scrapers/repology.d.ts +5 -0
  988. package/dist/types/web/scrapers/rfc.d.ts +5 -0
  989. package/dist/types/web/scrapers/rubygems.d.ts +5 -0
  990. package/dist/types/web/scrapers/searchcode.d.ts +2 -0
  991. package/dist/types/web/scrapers/sec-edgar.d.ts +5 -0
  992. package/dist/types/web/scrapers/semantic-scholar.d.ts +2 -0
  993. package/dist/types/web/scrapers/snapcraft.d.ts +2 -0
  994. package/dist/types/web/scrapers/sourcegraph.d.ts +2 -0
  995. package/dist/types/web/scrapers/spdx.d.ts +5 -0
  996. package/dist/types/web/scrapers/spotify.d.ts +8 -0
  997. package/dist/types/web/scrapers/stackoverflow.d.ts +6 -0
  998. package/dist/types/web/scrapers/terraform.d.ts +5 -0
  999. package/dist/types/web/scrapers/tldr.d.ts +7 -0
  1000. package/dist/types/web/scrapers/twitter.d.ts +5 -0
  1001. package/dist/types/web/scrapers/types.d.ts +90 -0
  1002. package/dist/types/web/scrapers/utils.d.ts +26 -0
  1003. package/dist/types/web/scrapers/vimeo.d.ts +5 -0
  1004. package/dist/types/web/scrapers/vscode-marketplace.d.ts +5 -0
  1005. package/dist/types/web/scrapers/w3c.d.ts +2 -0
  1006. package/dist/types/web/scrapers/wikidata.d.ts +5 -0
  1007. package/dist/types/web/scrapers/wikipedia.d.ts +5 -0
  1008. package/dist/types/web/scrapers/youtube.d.ts +5 -0
  1009. package/dist/types/web/search/index.d.ts +74 -0
  1010. package/dist/types/web/search/provider.d.ts +30 -0
  1011. package/dist/types/web/search/providers/anthropic.d.ts +33 -0
  1012. package/dist/types/web/search/providers/base.d.ts +83 -0
  1013. package/dist/types/web/search/providers/brave.d.ts +28 -0
  1014. package/dist/types/web/search/providers/codex.d.ts +36 -0
  1015. package/dist/types/web/search/providers/duckduckgo.d.ts +14 -0
  1016. package/dist/types/web/search/providers/exa.d.ts +70 -0
  1017. package/dist/types/web/search/providers/firecrawl.d.ts +28 -0
  1018. package/dist/types/web/search/providers/gemini.d.ts +62 -0
  1019. package/dist/types/web/search/providers/jina.d.ts +31 -0
  1020. package/dist/types/web/search/providers/kagi.d.ts +30 -0
  1021. package/dist/types/web/search/providers/kimi.d.ts +32 -0
  1022. package/dist/types/web/search/providers/parallel.d.ts +16 -0
  1023. package/dist/types/web/search/providers/perplexity-auth.d.ts +37 -0
  1024. package/dist/types/web/search/providers/perplexity.d.ts +58 -0
  1025. package/dist/types/web/search/providers/searxng.d.ts +45 -0
  1026. package/dist/types/web/search/providers/synthetic.d.ts +25 -0
  1027. package/dist/types/web/search/providers/tavily.d.ts +30 -0
  1028. package/dist/types/web/search/providers/tinyfish.d.ts +29 -0
  1029. package/dist/types/web/search/providers/utils.d.ts +52 -0
  1030. package/dist/types/web/search/providers/xai.d.ts +13 -0
  1031. package/dist/types/web/search/providers/zai.d.ts +29 -0
  1032. package/dist/types/web/search/render.d.ts +34 -0
  1033. package/dist/types/web/search/types.d.ts +431 -0
  1034. package/dist/types/web/search/utils.d.ts +4 -0
  1035. package/dist/types/workspace-tree.d.ts +42 -0
  1036. package/package.json +39 -39
  1037. package/src/autolearn/managed-skills.ts +1 -1
  1038. package/src/autoresearch/storage.ts +1 -1
  1039. package/src/capability/types.ts +2 -2
  1040. package/src/cli/args.ts +1 -1
  1041. package/src/cli/auth-broker-cli.ts +4 -4
  1042. package/src/cli/auth-gateway-cli.ts +4 -4
  1043. package/src/cli/claude-trace-cli.ts +1 -1
  1044. package/src/cli/flag-tables.ts +1 -1
  1045. package/src/cli/gallery-fixtures/misc.ts +7 -7
  1046. package/src/cli/gallery-screenshot.ts +2 -2
  1047. package/src/cli/grievances-cli.ts +1 -1
  1048. package/src/cli/plugin-cli.ts +2 -2
  1049. package/src/cli/profile-alias.ts +8 -8
  1050. package/src/cli/read-cli.ts +1 -1
  1051. package/src/cli/update-cli.ts +27 -27
  1052. package/src/cli.ts +5 -5
  1053. package/src/commands/auth-broker.ts +1 -1
  1054. package/src/commands/dry-balance.ts +6 -6
  1055. package/src/commands/launch.ts +1 -1
  1056. package/src/commands/say.ts +1 -1
  1057. package/src/commands/token.ts +5 -5
  1058. package/src/commit/agentic/prompts/system.md +1 -1
  1059. package/src/commit/cli.ts +1 -1
  1060. package/src/commit/index.ts +1 -1
  1061. package/src/commit/pipeline.ts +1 -1
  1062. package/src/commit/types.ts +1 -1
  1063. package/src/config/mcp-schema.json +5 -5
  1064. package/src/config/models-config-schema.ts +1 -1
  1065. package/src/config/settings-schema.ts +6 -6
  1066. package/src/config/settings.ts +1 -1
  1067. package/src/dap/session.ts +2 -2
  1068. package/src/debug/protocol-probe.ts +1 -1
  1069. package/src/debug/raw-sse-buffer.ts +3 -3
  1070. package/src/debug/raw-sse.ts +2 -2
  1071. package/src/discovery/helpers.ts +2 -2
  1072. package/src/discovery/substitute-plugin-root.ts +3 -3
  1073. package/src/eval/rb/runner.rb +6 -6
  1074. package/src/extensibility/extensions/loader.ts +6 -2
  1075. package/src/extensibility/plugins/installer.ts +2 -2
  1076. package/src/extensibility/plugins/legacy-pi-bundled-keys.ts +3 -0
  1077. package/src/extensibility/plugins/legacy-pi-bundled-registry.ts +11 -0
  1078. package/src/extensibility/plugins/loader.ts +14 -7
  1079. package/src/extensibility/plugins/manager.ts +13 -10
  1080. package/src/extensibility/plugins/types.ts +16 -3
  1081. package/src/mcp/client.ts +1 -1
  1082. package/src/mcp/manager.ts +1 -1
  1083. package/src/mcp/oauth-flow.ts +1 -1
  1084. package/src/mcp/timeout.ts +2 -2
  1085. package/src/mcp/transports/http.ts +1 -1
  1086. package/src/modes/controllers/mcp-command-controller.ts +2 -2
  1087. package/src/modes/setup-wizard/index.ts +1 -1
  1088. package/src/sdk.ts +1 -1
  1089. package/src/session/agent-session.ts +1 -1
  1090. package/src/session/auth-broker-config.ts +4 -4
  1091. package/src/system-prompt.test.ts +15 -15
  1092. package/src/tools/browser/tab-protocol.ts +1 -1
  1093. package/src/tools/grep.ts +2 -2
  1094. package/src/tools/read.ts +1 -1
  1095. package/src/utils/image-loading.ts +4 -4
  1096. package/src/utils/image-resize.ts +5 -5
  1097. package/src/web/search/index.ts +1 -1
@@ -0,0 +1,36 @@
1
+ /** OKF v0.1 frontmatter fields. Only `type`/`title`/`description` are required. */
2
+ export interface OkfFields {
3
+ type: string;
4
+ title: string;
5
+ description: string;
6
+ resource?: string;
7
+ tags?: readonly string[];
8
+ /** ISO 8601 datetime, e.g. `2026-07-02T10:00:00Z`. */
9
+ timestamp?: string;
10
+ /** Producer-specific extension fields (e.g. `thread_id`). */
11
+ extra?: Record<string, string | number>;
12
+ }
13
+ /** Render an OKF atom: YAML frontmatter followed by the markdown body. */
14
+ export declare function renderOkfDocument(fields: OkfFields, body: string): string;
15
+ /** Parsed frontmatter (undefined when absent/unparseable) plus the body. */
16
+ export interface OkfDocumentParts {
17
+ frontmatter: Record<string, unknown> | undefined;
18
+ body: string;
19
+ }
20
+ /**
21
+ * Split an OKF document into frontmatter and body. Tolerant by design: text
22
+ * without a leading fence (legacy jeopi memory files, hand-edited files)
23
+ * returns the whole text as body with `frontmatter: undefined`, and a
24
+ * malformed YAML block still strips so prompt paths never leak fences.
25
+ */
26
+ export declare function parseOkfDocument(text: string): OkfDocumentParts;
27
+ /** Body of an OKF document with any leading frontmatter removed. */
28
+ export declare function stripOkfFrontmatter(text: string): string;
29
+ /**
30
+ * Validate a document against the OKF v0.1 rules the jeo-skills `okf` linter
31
+ * enforces: a leading `---` fence, a closing fence, and non-empty
32
+ * `type` / `title` / `description` fields. Returns an empty array when valid.
33
+ */
34
+ export declare function validateOkfDocument(text: string): string[];
35
+ /** Format a unix-seconds timestamp as the ISO 8601 string OKF expects. */
36
+ export declare function okfTimestamp(unixSeconds?: number): string;
@@ -0,0 +1,110 @@
1
+ import { Database } from "bun:sqlite";
2
+ export interface MemoryThread {
3
+ id: string;
4
+ updatedAt: number;
5
+ rolloutPath: string;
6
+ cwd: string;
7
+ sourceKind: string;
8
+ }
9
+ export interface Stage1OutputRow {
10
+ threadId: string;
11
+ sourceUpdatedAt: number;
12
+ rawMemory: string;
13
+ rolloutSummary: string;
14
+ rolloutSlug: string | null;
15
+ generatedAt: number;
16
+ cwd: string;
17
+ }
18
+ export interface Stage1Claim {
19
+ threadId: string;
20
+ ownershipToken: string;
21
+ inputWatermark: number;
22
+ sourceUpdatedAt: number;
23
+ rolloutPath: string;
24
+ cwd: string;
25
+ }
26
+ export interface GlobalClaim {
27
+ ownershipToken: string;
28
+ inputWatermark: number;
29
+ }
30
+ export declare function openMemoryDb(dbPath: string): Database;
31
+ export declare function closeMemoryDb(db: Database): void;
32
+ export declare function clearMemoryData(db: Database): void;
33
+ export declare function upsertThreads(db: Database, threads: MemoryThread[]): void;
34
+ export declare function claimStage1Jobs(db: Database, params: {
35
+ nowSec: number;
36
+ threadScanLimit: number;
37
+ maxRolloutsPerStartup: number;
38
+ maxRolloutAgeDays: number;
39
+ minRolloutIdleHours: number;
40
+ leaseSeconds: number;
41
+ runningConcurrencyCap: number;
42
+ workerId: string;
43
+ excludeThreadIds?: string[];
44
+ }): Stage1Claim[];
45
+ export declare function enqueueGlobalWatermark(db: Database, sourceUpdatedAt: number, cwd: string, params?: {
46
+ forceDirtyWhenNotAdvanced?: boolean;
47
+ }): void;
48
+ export declare function markStage1SucceededWithOutput(db: Database, params: {
49
+ threadId: string;
50
+ ownershipToken: string;
51
+ sourceUpdatedAt: number;
52
+ rawMemory: string;
53
+ rolloutSummary: string;
54
+ rolloutSlug: string | null;
55
+ nowSec: number;
56
+ cwd: string;
57
+ }): boolean;
58
+ export declare function markStage1SucceededNoOutput(db: Database, params: {
59
+ threadId: string;
60
+ ownershipToken: string;
61
+ sourceUpdatedAt: number;
62
+ nowSec: number;
63
+ cwd: string;
64
+ }): boolean;
65
+ export declare function markStage1Failed(db: Database, params: {
66
+ threadId: string;
67
+ ownershipToken: string;
68
+ retryDelaySeconds: number;
69
+ reason: string;
70
+ nowSec: number;
71
+ }): boolean;
72
+ export declare function tryClaimGlobalPhase2Job(db: Database, params: {
73
+ workerId: string;
74
+ leaseSeconds: number;
75
+ nowSec: number;
76
+ cwd: string;
77
+ }): {
78
+ kind: "claimed";
79
+ claim: GlobalClaim;
80
+ } | {
81
+ kind: "skipped_not_dirty";
82
+ } | {
83
+ kind: "skipped_running";
84
+ };
85
+ export declare function heartbeatGlobalJob(db: Database, params: {
86
+ ownershipToken: string;
87
+ leaseSeconds: number;
88
+ nowSec: number;
89
+ cwd: string;
90
+ }): boolean;
91
+ export declare function listStage1OutputsForGlobal(db: Database, limit: number, cwd: string): Stage1OutputRow[];
92
+ export declare function markGlobalPhase2Succeeded(db: Database, params: {
93
+ ownershipToken: string;
94
+ newWatermark: number;
95
+ nowSec: number;
96
+ cwd: string;
97
+ }): boolean;
98
+ export declare function markGlobalPhase2Failed(db: Database, params: {
99
+ ownershipToken: string;
100
+ retryDelaySeconds: number;
101
+ reason: string;
102
+ nowSec: number;
103
+ cwd: string;
104
+ }): boolean;
105
+ export declare function markGlobalPhase2FailedUnowned(db: Database, params: {
106
+ retryDelaySeconds: number;
107
+ reason: string;
108
+ nowSec: number;
109
+ cwd: string;
110
+ }): boolean;
@@ -0,0 +1,7 @@
1
+ export type { MnemopiBackendConfig, MnemopiLlmMode, MnemopiProviderOptions, MnemopiScoping, } from "../mnemopi/config";
2
+ export type { MnemopiMemoryEditOperation, MnemopiMemoryEditOptions, MnemopiMemoryEditResult, MnemopiSessionState, MnemopiSessionStateOptions, } from "../mnemopi/state";
3
+ export * from "./local-backend";
4
+ export * from "./off-backend";
5
+ export * from "./resolve";
6
+ export * from "./runtime";
7
+ export * from "./types";
@@ -0,0 +1,10 @@
1
+ import type { MemoryBackend } from "./types";
2
+ /**
3
+ * Wraps the existing `memories/` module as a `MemoryBackend`.
4
+ *
5
+ * The rollout-summarisation pipeline (rollouts → SQLite → memory_summary.md) is
6
+ * delegated unchanged. On top of it, `save()` persists `learn`-tool lessons to
7
+ * `learned.md` (so `status()` reports `writable: true`); structured search is
8
+ * still unavailable.
9
+ */
10
+ export declare const localBackend: MemoryBackend;
@@ -0,0 +1,7 @@
1
+ import type { MemoryBackend } from "./types";
2
+ /**
3
+ * No-op memory backend.
4
+ *
5
+ * Selected when `memory.backend` is `"off"`.
6
+ */
7
+ export declare const offBackend: MemoryBackend;
@@ -0,0 +1,16 @@
1
+ import type { Settings } from "../config/settings";
2
+ import type { MemoryBackend } from "./types";
3
+ /**
4
+ * Pick the active memory backend for a Settings instance.
5
+ *
6
+ * Selection rules (single source of truth — every memory consumer routes
7
+ * through this):
8
+ * - `memory.backend === "hindsight"` → Hindsight remote memory
9
+ * - `memory.backend === "mnemopi"` → local Mnemopi SQLite memory
10
+ * - `memory.backend === "local"` → local rollout summary pipeline
11
+ * - everything else → no-op
12
+ *
13
+ * `memories.enabled` remains accepted only as a legacy migration input. Once
14
+ * a config is loaded, `memory.backend` is the sole runtime selector.
15
+ */
16
+ export declare function resolveMemoryBackend(settings: Settings): Promise<MemoryBackend>;
@@ -0,0 +1,4 @@
1
+ import type { AgentSession } from "../session/agent-session";
2
+ import type { MemoryBackendOperationContext, MemoryRuntimeContext } from "./types";
3
+ export declare function createMemoryRuntimeContext(context: MemoryBackendOperationContext): MemoryRuntimeContext;
4
+ export declare function createSessionMemoryRuntimeContext(session: AgentSession, agentDir: string, cwd: string): MemoryRuntimeContext;
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Memory backend abstraction.
3
+ *
4
+ * Backends are mutually exclusive — `await resolveMemoryBackend(settings)` returns
5
+ * exactly one. Implementations MUST be self-contained: they own the per-session
6
+ * state they create in `start()` and tear it down on `clear()`.
7
+ */
8
+ import type { AgentMessage } from "jeopi-agent-core";
9
+ import type { ModelRegistry } from "../config/model-registry";
10
+ import type { Settings } from "../config/settings";
11
+ import type { HindsightSessionState } from "../hindsight/state";
12
+ import type { MnemopiSessionState } from "../mnemopi/state";
13
+ import type { AgentSession } from "../session/agent-session";
14
+ export type MemoryBackendId = "off" | "local" | "hindsight" | "mnemopi";
15
+ export interface MemoryBackendStatus {
16
+ backend: MemoryBackendId;
17
+ active: boolean;
18
+ writable: boolean;
19
+ searchable: boolean;
20
+ scope?: string;
21
+ retainBank?: string;
22
+ recallBanks?: string[];
23
+ workingCount?: number;
24
+ episodicCount?: number;
25
+ tripleCount?: number;
26
+ lastMemory?: string;
27
+ lastRecall?: boolean;
28
+ database?: string;
29
+ message?: string;
30
+ error?: string;
31
+ }
32
+ export interface MemoryBackendSearchOptions {
33
+ limit?: number;
34
+ /** Best-effort abort signal. Backends may only observe it before/after an underlying recall call. */
35
+ signal?: AbortSignal;
36
+ }
37
+ export interface MemoryBackendSearchItem {
38
+ id?: string;
39
+ content: string;
40
+ source?: string;
41
+ timestamp?: string;
42
+ score?: number;
43
+ }
44
+ export interface MemoryBackendSearchResult {
45
+ backend: MemoryBackendId;
46
+ query: string;
47
+ count: number;
48
+ items: MemoryBackendSearchItem[];
49
+ message?: string;
50
+ }
51
+ export interface MemoryBackendSaveInput {
52
+ content: string;
53
+ context?: string;
54
+ source?: string;
55
+ importance?: number;
56
+ }
57
+ export interface MemoryBackendSaveResult {
58
+ backend: MemoryBackendId;
59
+ stored: number;
60
+ ids?: string[];
61
+ queued?: boolean;
62
+ message?: string;
63
+ }
64
+ export interface MemoryBackendOperationContext {
65
+ agentDir: string;
66
+ cwd: string;
67
+ session?: AgentSession;
68
+ }
69
+ export interface MemoryRuntimeContext {
70
+ status(): Promise<MemoryBackendStatus>;
71
+ search(query: string, options?: MemoryBackendSearchOptions): Promise<MemoryBackendSearchResult>;
72
+ save(input: string | MemoryBackendSaveInput): Promise<MemoryBackendSaveResult>;
73
+ }
74
+ export interface MemoryBackendStartOptions {
75
+ session: AgentSession;
76
+ settings: Settings;
77
+ modelRegistry: ModelRegistry;
78
+ agentDir: string;
79
+ taskDepth: number;
80
+ parentHindsightSessionState?: HindsightSessionState;
81
+ parentMnemopiSessionState?: MnemopiSessionState;
82
+ }
83
+ export interface MemoryBackend {
84
+ readonly id: MemoryBackendId;
85
+ /**
86
+ * Wire any background work or session subscriptions for this backend.
87
+ *
88
+ * Called once per agent session at startup. Implementations MUST be
89
+ * non-throwing: failures should be logged and swallowed so a misconfigured
90
+ * memory backend cannot break the agent loop.
91
+ */
92
+ start(options: MemoryBackendStartOptions): void | Promise<void>;
93
+ /**
94
+ * Markdown injected as the system-prompt append section.
95
+ * Returned on every prompt rebuild via `refreshBaseSystemPrompt()`.
96
+ */
97
+ buildDeveloperInstructions(agentDir: string, settings: Settings, session?: AgentSession): Promise<string | undefined>;
98
+ /** Wipe all persisted state for this backend (slash `/memory clear`). */
99
+ clear(agentDir: string, cwd: string, session?: AgentSession): Promise<void>;
100
+ /** Force consolidation/retain to happen now (slash `/memory enqueue`). */
101
+ enqueue(agentDir: string, cwd: string, session?: AgentSession): Promise<void>;
102
+ /** Structured state for UI, slash commands, and extensions. */
103
+ status?(context: MemoryBackendOperationContext): Promise<MemoryBackendStatus>;
104
+ /** Explicit user-facing semantic/lexical search. */
105
+ search?(context: MemoryBackendOperationContext, query: string, options?: MemoryBackendSearchOptions): Promise<MemoryBackendSearchResult>;
106
+ /** Explicit user-facing save operation. */
107
+ save?(context: MemoryBackendOperationContext, input: MemoryBackendSaveInput): Promise<MemoryBackendSaveResult>;
108
+ /** Render backend-specific memory statistics as markdown (`/memory stats`). */
109
+ stats?(agentDir: string, cwd: string, session?: AgentSession): Promise<string | undefined>;
110
+ /** Render backend-specific memory diagnostics as markdown (`/memory diagnose`). */
111
+ diagnose?(agentDir: string, cwd: string, session?: AgentSession): Promise<string | undefined>;
112
+ /**
113
+ * Optional hook to inject a backend-specific block into the current turn's
114
+ * system prompt before the agent starts generating.
115
+ *
116
+ * This is the only place a backend can affect the very first answer of a
117
+ * fresh session. The returned text is appended to the already-built base
118
+ * system prompt for this turn only; callers may separately cache it and
119
+ * surface it through `buildDeveloperInstructions()` on later rebuilds.
120
+ */
121
+ beforeAgentStartPrompt?(session: AgentSession, promptText: string): Promise<string | undefined>;
122
+ /**
123
+ * Optional hook to splice extra context into a compaction summarization.
124
+ *
125
+ * Called from the compaction call site before the LLM summary is requested.
126
+ * Returning a string appends one entry to the compaction's `extraContext`
127
+ * list (which becomes part of the summarization prompt). Return `undefined`
128
+ * to inject nothing — the local backend takes this branch because its
129
+ * summary is already part of the system prompt.
130
+ */
131
+ preCompactionContext?(messages: AgentMessage[], settings: Settings, session?: AgentSession): Promise<string | undefined>;
132
+ }
@@ -0,0 +1,4 @@
1
+ import type { MemoryBackend } from "../memory-backend/types";
2
+ import type { AgentSession } from "../session/agent-session";
3
+ export declare const mnemopiBackend: MemoryBackend;
4
+ export declare function getMnemopiDbDirForTests(session: AgentSession): string | undefined;
@@ -0,0 +1,60 @@
1
+ import type { MnemopiOptions } from "jeopi-mnemopi";
2
+ import type { Settings } from "../config/settings";
3
+ export type MnemopiLlmMode = "none" | "smol" | "remote";
4
+ export type MnemopiScoping = "global" | "per-project" | "per-project-tagged";
5
+ export type MnemopiProviderOptions = Pick<MnemopiOptions, "noEmbeddings" | "embeddingModel" | "embeddingApiUrl" | "embeddingApiKey" | "llm" | "debug">;
6
+ export interface MnemopiBackendConfig {
7
+ dbPath: string;
8
+ baseBank?: string;
9
+ bank: string;
10
+ globalBank?: string;
11
+ retainBank?: string;
12
+ recallBanks?: readonly string[];
13
+ scoping?: MnemopiScoping;
14
+ autoRecall: boolean;
15
+ autoRetain: boolean;
16
+ polyphonicRecall: boolean;
17
+ enhancedRecall: boolean;
18
+ proactiveLinking: boolean;
19
+ retainEveryNTurns: number;
20
+ recallLimit: number;
21
+ recallContextTurns: number;
22
+ recallMaxQueryChars: number;
23
+ injectionTokenLimit: number;
24
+ debug: boolean;
25
+ providerOptions: MnemopiProviderOptions;
26
+ llmMode: MnemopiLlmMode;
27
+ llmBaseUrl?: string;
28
+ llmApiKey?: string;
29
+ llmModel?: string;
30
+ }
31
+ export declare function loadMnemopiConfig(settings: Settings, agentDir: string): MnemopiBackendConfig;
32
+ export interface MnemopiBankScope {
33
+ baseBank: string;
34
+ bank: string;
35
+ globalBank: string;
36
+ retainBank: string;
37
+ recallBanks: readonly string[];
38
+ }
39
+ /**
40
+ * Resolve write/recall banks for a session.
41
+ *
42
+ * Mnemopi has no tag-filtered recall, so `per-project-tagged` maps to a
43
+ * project-local write bank plus a shared recall-visible bank. The project
44
+ * bank is derived purely from {@link cwd} — see {@link projectBank} for the
45
+ * stability contract.
46
+ */
47
+ export declare function computeMnemopiBankScope(configured: string | undefined, cwd: string, scoping: MnemopiScoping): MnemopiBankScope;
48
+ /**
49
+ * Discover sibling banks under `<dbDir>/banks/` whose `working_memory` rows
50
+ * all carry the active `cwd` in `metadata_json.$.cwd`, and add those safe
51
+ * single-cwd banks to the recall set. This rescues memories stranded by a
52
+ * previous, less-stable bank derivation (#2412) without recalling mixed-cwd
53
+ * legacy banks wholesale under per-project isolation.
54
+ *
55
+ * Robust by design: a missing banks directory, unreadable bank dir, or
56
+ * corrupt SQLite file is silently skipped. Scanning is capped at
57
+ * {@link LEGACY_BANK_SCAN_LIMIT} to bound startup cost.
58
+ */
59
+ export declare function extendRecallWithLegacyBanks(resolved: readonly string[], dbPath: string, cwd: string): readonly string[];
60
+ export declare function truncateApproxTokens(text: string, tokenLimit: number): string;
@@ -0,0 +1,53 @@
1
+ import { type SpawnedSubprocess, type WorkerHandle } from "../subprocess/worker-client";
2
+ import type { MnemopiEmbedModelId, MnemopiEmbedWorkerInbound, MnemopiEmbedWorkerOutbound } from "./embed-protocol";
3
+ /**
4
+ * Parent-side handle for the mnemopi embeddings subprocess. The runtime
5
+ * implementation is a Bun child process so `onnxruntime-node`'s NAPI
6
+ * constructor + finalizer never run inside the main agent address space —
7
+ * those destructors segfault Bun on Windows when mnemopi's local embedding
8
+ * provider loads fastembed in the main process (issue #3031; the mnemopi
9
+ * sibling of the tiny-model fix from #1606 / #1607).
10
+ */
11
+ export type MnemopiEmbedWorkerHandle = WorkerHandle<MnemopiEmbedWorkerInbound, MnemopiEmbedWorkerOutbound>;
12
+ /**
13
+ * Hidden subcommand on the main CLI that boots the mnemopi embeddings worker
14
+ * in the spawned subprocess. Kept in sync with the dispatch in `cli.ts`.
15
+ */
16
+ export declare const MNEMOPI_EMBED_WORKER_ARG = "__omp_worker_mnemopi_embed";
17
+ /**
18
+ * Spawn the mnemopi embeddings worker as a subprocess. Exported for tests and
19
+ * the smoke probe; production callers go through {@link spawnMnemopiEmbedWorker}.
20
+ * The child inherits the parent env verbatim — fastembed honours `HF_HUB_*`,
21
+ * `HTTPS_PROXY`, etc., and our `loadFastembed()` reads the same `OMP_*`
22
+ * runtime-install knobs the parent uses.
23
+ */
24
+ export declare function createMnemopiEmbedSubprocess(): SpawnedSubprocess<MnemopiEmbedWorkerOutbound>;
25
+ /**
26
+ * Per-model wrapper produced by {@link MnemopiEmbedClient.initialize}.
27
+ * `embed()` round-trips one batch of texts through the worker subprocess and
28
+ * yields the resulting vectors in a single asynchronous batch — fastembed's
29
+ * own iterator was emitting batches that we collect on the child side anyway,
30
+ * and serializing per-batch over IPC would not improve throughput.
31
+ */
32
+ export interface MnemopiSubprocessEmbeddingModel {
33
+ embed(texts: string[], batchSize?: number): AsyncIterable<number[][]>;
34
+ }
35
+ export declare class MnemopiEmbedClient {
36
+ #private;
37
+ constructor(spawnWorker?: () => MnemopiEmbedWorkerHandle);
38
+ /**
39
+ * Load the named fastembed model inside the subprocess. Resolves to a
40
+ * thin wrapper whose `embed()` round-trips through the same worker, or
41
+ * `null` when the worker cannot init the model (missing peer, native
42
+ * load failure, etc.). Multiple calls with the same model reuse the
43
+ * single in-flight worker; calling with a different model loads it on
44
+ * the child without restarting the process.
45
+ */
46
+ initialize(model: MnemopiEmbedModelId, cacheDir: string | undefined): Promise<MnemopiSubprocessEmbeddingModel | null>;
47
+ terminate(): Promise<void>;
48
+ }
49
+ export declare const mnemopiEmbedClient: MnemopiEmbedClient;
50
+ export declare function shutdownMnemopiEmbedClient(): Promise<void>;
51
+ export declare function smokeTestMnemopiEmbedWorker({ timeoutMs, }?: {
52
+ timeoutMs?: number;
53
+ }): Promise<void>;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Wire types between the parent (`MnemopiEmbedClient`) and the local
3
+ * embeddings subprocess. The parent owns the subprocess lifecycle (graceful
4
+ * work, hard `SIGKILL` on shutdown); the protocol carries no explicit close
5
+ * handshake — once the parent decides to terminate, it signals the OS to reap
6
+ * the child so `onnxruntime-node`'s NAPI finalizer never runs in the main
7
+ * agent address space (it crashes Bun on Windows shutdown — issue #3031, the
8
+ * mnemopi sibling of the tiny-model fix from #1606/#1607). See
9
+ * `embed-client.ts` for the spawn/kill glue.
10
+ */
11
+ /** Identifier of the fastembed model the worker should load (e.g. `fast-bge-base-en-v1.5`). */
12
+ export type MnemopiEmbedModelId = string;
13
+ export type MnemopiEmbedWorkerInbound = {
14
+ type: "ping";
15
+ id: string;
16
+ } | {
17
+ type: "init";
18
+ id: string;
19
+ model: MnemopiEmbedModelId;
20
+ cacheDir?: string;
21
+ } | {
22
+ type: "embed";
23
+ id: string;
24
+ model: MnemopiEmbedModelId;
25
+ cacheDir?: string;
26
+ texts: string[];
27
+ batchSize?: number;
28
+ };
29
+ export type MnemopiEmbedWorkerOutbound = {
30
+ type: "pong";
31
+ id: string;
32
+ } | {
33
+ type: "ready";
34
+ id: string;
35
+ } | {
36
+ type: "vectors";
37
+ id: string;
38
+ vectors: number[][];
39
+ } | {
40
+ type: "error";
41
+ id: string;
42
+ error: string;
43
+ } | {
44
+ type: "log";
45
+ level: "debug" | "warn" | "error";
46
+ msg: string;
47
+ meta?: Record<string, unknown>;
48
+ };
49
+ export interface MnemopiEmbedTransport {
50
+ send(message: MnemopiEmbedWorkerOutbound): void;
51
+ onMessage(handler: (message: MnemopiEmbedWorkerInbound) => void): () => void;
52
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Mnemopi local-embeddings worker. Loaded inside the dedicated subprocess
3
+ * spawned by `embed-client.ts` (re-entered through the agent CLI's hidden
4
+ * `__omp_worker_mnemopi_embed` selector). The whole point of this module is
5
+ * that `loadFastembed()` — and therefore `onnxruntime-node`'s NAPI
6
+ * constructor + finalizer — only ever runs in this child address space. The
7
+ * parent `SIGKILL`s us on shutdown so the destructor that crashes Bun on
8
+ * Windows shutdown (issue #3031, mnemopi sibling of #1606/#1607) never runs
9
+ * in either process.
10
+ */
11
+ import type { MnemopiEmbedTransport } from "./embed-protocol";
12
+ export declare function startMnemopiEmbedWorker(transport: MnemopiEmbedTransport): void;
@@ -0,0 +1,3 @@
1
+ export * from "./backend";
2
+ export * from "./config";
3
+ export * from "./state";
@@ -0,0 +1,130 @@
1
+ import type { AgentMessage } from "jeopi-agent-core";
2
+ import type * as MnemopiNs from "jeopi-mnemopi";
3
+ import type { Mnemopi, RecallResult } from "jeopi-mnemopi";
4
+ import type * as MnemopiCoreNs from "jeopi-mnemopi/core";
5
+ import type { AgentSession } from "../session/agent-session";
6
+ import type { MnemopiBackendConfig } from "./config";
7
+ /**
8
+ * Lazily load `jeopi-mnemopi` (memoized) and route fastembed loads
9
+ * through the dedicated embeddings subprocess. The override is installed once
10
+ * — before any consumer gets the chance to call `embed()` — so
11
+ * `onnxruntime-node`'s NAPI constructor + finalizer never run inside the
12
+ * agent's address space (issue #3031). Test seams that swap the initializer
13
+ * with `setLocalModelInitializerForTests` still win because both go through
14
+ * the same module-level slot.
15
+ */
16
+ export declare function loadMnemopi(): Promise<typeof MnemopiNs>;
17
+ /** Lazily load `jeopi-mnemopi/core` (memoized). */
18
+ export declare function loadMnemopiCore(): Promise<typeof MnemopiCoreNs>;
19
+ /** Sync access for code below an async boundary that already awaited {@link loadMnemopi}. */
20
+ export declare function requireMnemopi(): typeof MnemopiNs;
21
+ /** Sync access for code below an async boundary that already awaited {@link loadMnemopiCore}. */
22
+ export declare function requireMnemopiCore(): typeof MnemopiCoreNs;
23
+ interface MnemopiScopedMemory {
24
+ bank: string;
25
+ memory: Mnemopi;
26
+ }
27
+ type MnemopiRememberInput = Parameters<Mnemopi["remember"]>[0];
28
+ type MnemopiRememberOptions = Parameters<Mnemopi["remember"]>[1];
29
+ export type MnemopiMemoryEditOperation = "update" | "forget" | "invalidate";
30
+ export interface MnemopiMemoryEditOptions {
31
+ content?: string;
32
+ importance?: number;
33
+ replacementId?: string;
34
+ }
35
+ export interface MnemopiMemoryEditResult {
36
+ status: "updated" | "deleted" | "invalidated" | "not_found";
37
+ bank?: string;
38
+ store?: "working" | "episodic";
39
+ }
40
+ export declare function getMnemopiSessionState(session: AgentSession | undefined): MnemopiSessionState | undefined;
41
+ export declare function setMnemopiSessionState(session: AgentSession, state: MnemopiSessionState | undefined): MnemopiSessionState | undefined;
42
+ export interface MnemopiSessionStateOptions {
43
+ sessionId: string;
44
+ config: MnemopiBackendConfig;
45
+ session: AgentSession;
46
+ aliasOf?: MnemopiSessionState;
47
+ lastRetainedTurn?: number;
48
+ hasRecalledForFirstTurn?: boolean;
49
+ }
50
+ export declare class MnemopiSessionState {
51
+ sessionId: string;
52
+ readonly config: MnemopiBackendConfig;
53
+ readonly session: AgentSession;
54
+ readonly memory: Mnemopi;
55
+ readonly globalMemory?: Mnemopi;
56
+ readonly aliasOf?: MnemopiSessionState;
57
+ private readonly scoped;
58
+ lastRetainedTurn: number;
59
+ hasRecalledForFirstTurn: boolean;
60
+ lastRecallSnippet?: string;
61
+ unsubscribe?: () => void;
62
+ constructor(options: MnemopiSessionStateOptions);
63
+ setSessionId(sessionId: string): void;
64
+ resetConversationTracking(): void;
65
+ getScopedRecallTargets(): readonly MnemopiScopedMemory[];
66
+ getScopedRetainTarget(): MnemopiScopedMemory;
67
+ editScopedMemory(op: MnemopiMemoryEditOperation, id: string, options?: MnemopiMemoryEditOptions): MnemopiMemoryEditResult;
68
+ formatScopedRecallWithIds(results: readonly RecallResult[]): string;
69
+ collectScopedRecallResults(query: string): Promise<RecallResult[]>;
70
+ recallResultsScoped(query: string): Promise<RecallResult[]>;
71
+ formatScopedRecallContext(results: readonly RecallResult[], format?: "bullet" | "json"): string | undefined;
72
+ formatContextScoped(results: readonly RecallResult[], format?: "bullet" | "json"): string;
73
+ rememberInScope(memory: MnemopiRememberInput, options?: MnemopiRememberOptions): string | undefined;
74
+ rememberScoped(memory: MnemopiRememberInput, options?: MnemopiRememberOptions): string | undefined;
75
+ recallForContext(query: string): Promise<string | undefined>;
76
+ beforeAgentStartPrompt(promptText: string): Promise<string | undefined>;
77
+ recallForCompaction(messages: AgentMessage[]): Promise<string | undefined>;
78
+ maybeRetainOnAgentEnd(_messages: AgentMessage[]): Promise<void>;
79
+ forceRetainCurrentSession(): Promise<void>;
80
+ retainMessages(messages: Array<{
81
+ role: string;
82
+ content: string;
83
+ }>, sourceId: string): Promise<void>;
84
+ attachSessionListeners(): void;
85
+ maybeRecallOnAgentStart(): Promise<void>;
86
+ /**
87
+ * Drain in-flight fact extraction and run beam consolidation on every owned
88
+ * bank, after capturing the current transcript. Mirrors the manual
89
+ * `/memory enqueue` slash command, but stops short of closing the DBs so
90
+ * callers can keep using the state. {@link dispose} composes this with the
91
+ * close step so normal session shutdown promotes working memory to
92
+ * episodic/gists/graph automatically (see issue #2320).
93
+ *
94
+ * Aliased subagent states share `scoped` (and therefore the actual SQLite
95
+ * banks) with their parent. `consolidate()` deliberately does NOT
96
+ * short-circuit on `aliasOf`: `forceRetainCurrentSession` already guards
97
+ * itself, and an explicit `/memory enqueue` invoked from within a subagent
98
+ * still needs to flush extractions and sleep the parent's shared banks —
99
+ * otherwise enqueue would report success while leaving the subagent's
100
+ * retained memories unconsolidated until the parent eventually shuts down
101
+ * (PR #2327 review).
102
+ */
103
+ consolidate(): Promise<void>;
104
+ /**
105
+ * Release the per-session resources. Defaults to running {@link consolidate}
106
+ * before closing handles so normal session shutdown promotes working memory
107
+ * into long-term storage. Callers that are about to delete the DB files —
108
+ * e.g. `mnemopiBackend.clear` — pass `{ consolidate: false }` to skip the
109
+ * extraction/sleep pass, since spending tokens on memories that will be
110
+ * wiped on the next line is wasted work (PR #2327 review).
111
+ *
112
+ * `timeoutMs` caps how long the consolidate await blocks the caller
113
+ * (the user-visible `/quit` / `/exit` shutdown path passes this so
114
+ * dispose returns within a UX budget — issue #3641). When the cap is
115
+ * hit, dispose returns immediately and detaches the still-in-flight
116
+ * consolidate; the SQLite handles are closed in the background once
117
+ * the consolidate settles so writes never race a closed handle, and
118
+ * any pending embeddings are SIGKILL'd along with the embed worker
119
+ * (a tolerable loss — working memory rows are durable; only the
120
+ * episodic promotion / embedding for the LAST few turns is skipped,
121
+ * and `maybeRetainOnAgentEnd` has already retained earlier turns).
122
+ */
123
+ dispose(options?: {
124
+ consolidate?: boolean;
125
+ timeoutMs?: number;
126
+ }): Promise<void>;
127
+ }
128
+ export declare function getMnemopiScopedDbPaths(config: MnemopiBackendConfig): readonly string[];
129
+ export declare function getMnemopiScopedBanks(config: MnemopiBackendConfig): readonly string[];
130
+ export {};