jeopi-cli 16.2.13 → 16.2.14

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 (1115) hide show
  1. package/CHANGELOG.md +11 -3
  2. package/README.md +1 -1
  3. package/dist/cli.js +2940 -2913
  4. package/examples/custom-tools/README.md +1 -1
  5. package/examples/extensions/README.md +1 -1
  6. package/examples/extensions/pirate.ts +1 -1
  7. package/examples/extensions/plan-mode.ts +1 -1
  8. package/examples/extensions/tools.ts +1 -1
  9. package/examples/hooks/README.md +1 -1
  10. package/examples/sdk/01-minimal.ts +1 -1
  11. package/examples/sdk/04-skills.ts +1 -1
  12. package/examples/sdk/06-extensions.ts +3 -3
  13. package/examples/sdk/09-api-keys-and-oauth.ts +2 -2
  14. package/examples/sdk/12-redis-sessions.ts +1 -1
  15. package/examples/sdk/13-sql-sessions.ts +1 -1
  16. package/examples/sdk/README.md +1 -1
  17. package/package.json +39 -39
  18. package/scripts/jeopi +1 -1
  19. package/src/advisor/__tests__/config.test.ts +4 -4
  20. package/src/advisor/watchdog.ts +8 -8
  21. package/src/autolearn/managed-skills.ts +3 -3
  22. package/src/autoresearch/storage.ts +1 -1
  23. package/src/cli/agents-cli.ts +2 -2
  24. package/src/cli/args.ts +2 -2
  25. package/src/cli/auth-broker-cli.ts +1 -1
  26. package/src/cli/commands/migrate-legacy.ts +24 -0
  27. package/src/cli/config-cli.ts +20 -5
  28. package/src/cli/models-cli.ts +1 -1
  29. package/src/cli/ssh-cli.ts +2 -2
  30. package/src/cli/worktree-cli.ts +3 -3
  31. package/src/commands/agents.ts +2 -2
  32. package/src/commands/config.ts +1 -1
  33. package/src/commands/launch.ts +1 -1
  34. package/src/commands/models.ts +1 -1
  35. package/src/commands/ttsr.ts +2 -2
  36. package/src/commands/worktree.ts +3 -3
  37. package/src/config/mcp-schema.json +1 -1
  38. package/src/config/prompt-templates.ts +2 -2
  39. package/src/config/settings-schema.ts +15 -3
  40. package/src/config.ts +10 -10
  41. package/src/discovery/builtin.ts +9 -9
  42. package/src/discovery/helpers.ts +11 -11
  43. package/src/discovery/omp-extension-roots.ts +4 -4
  44. package/src/discovery/omp-plugins.ts +2 -2
  45. package/src/eval/py/runtime.ts +1 -1
  46. package/src/export/custom-share.ts +1 -1
  47. package/src/extensibility/custom-tools/loader.ts +3 -3
  48. package/src/extensibility/extensions/loader.ts +2 -2
  49. package/src/extensibility/hooks/loader.ts +1 -1
  50. package/src/extensibility/plugins/loader.ts +3 -3
  51. package/src/extensibility/plugins/types.ts +1 -1
  52. package/src/internal-urls/docs-index.generated.txt +1 -1
  53. package/src/lsp/config.ts +4 -4
  54. package/src/lsp/index.ts +1 -1
  55. package/src/main.ts +1 -1
  56. package/src/mcp/config-writer.ts +2 -2
  57. package/src/memories/index.ts +82 -11
  58. package/src/memories/okf.ts +129 -0
  59. package/src/modes/components/__tests__/assistant-agent-label.test.ts +87 -0
  60. package/src/modes/components/assistant-message.ts +27 -0
  61. package/src/modes/components/extensions/extension-dashboard.ts +1 -1
  62. package/src/modes/controllers/omfg-controller.ts +2 -2
  63. package/src/modes/controllers/ssh-command-controller.ts +2 -2
  64. package/src/modes/interactive-mode.ts +3 -1
  65. package/src/prompts/agents/jeo.md +20 -10
  66. package/src/prompts/system/autolearn-guidance.md +2 -2
  67. package/src/prompts/system/system-prompt.md +10 -1
  68. package/src/prompts/tools/learn.md +1 -1
  69. package/src/prompts/tools/manage-skill.md +1 -1
  70. package/src/sdk.ts +7 -5
  71. package/src/secrets/index.ts +2 -2
  72. package/src/session/agent-session.ts +85 -5
  73. package/src/session/auth-broker-config.ts +2 -2
  74. package/src/session/snapcompact-savings-journal.ts +1 -1
  75. package/src/slash-commands/helpers/mcp.ts +1 -1
  76. package/src/task/commands.ts +1 -1
  77. package/src/task/critic-gate.test.ts +181 -0
  78. package/src/task/critic-gate.ts +148 -0
  79. package/src/task/discovery.ts +5 -5
  80. package/src/task/executor.ts +1 -1
  81. package/src/task/index.ts +35 -2
  82. package/src/tools/acp-bridge.ts +2 -2
  83. package/src/tools/browser/launch.ts +1 -1
  84. package/src/tools/index.ts +6 -1
  85. package/src/tools/plan-mode-guard.ts +16 -0
  86. package/src/tools/report-tool-issue.ts +2 -2
  87. package/src/utils/changelog.ts +2 -2
  88. package/dist/types/advisor/__tests__/advisor.test.d.ts +0 -1
  89. package/dist/types/advisor/__tests__/config.test.d.ts +0 -1
  90. package/dist/types/advisor/__tests__/emission-guard.test.d.ts +0 -1
  91. package/dist/types/advisor/advise-tool.d.ts +0 -106
  92. package/dist/types/advisor/config.d.ts +0 -90
  93. package/dist/types/advisor/emission-guard.d.ts +0 -73
  94. package/dist/types/advisor/index.d.ts +0 -6
  95. package/dist/types/advisor/runtime.d.ts +0 -76
  96. package/dist/types/advisor/transcript-recorder.d.ts +0 -63
  97. package/dist/types/advisor/watchdog.d.ts +0 -38
  98. package/dist/types/async/index.d.ts +0 -1
  99. package/dist/types/async/job-manager.d.ts +0 -121
  100. package/dist/types/auto-thinking/classifier.d.ts +0 -37
  101. package/dist/types/autolearn/controller.d.ts +0 -25
  102. package/dist/types/autolearn/managed-skills.d.ts +0 -45
  103. package/dist/types/autoresearch/dashboard.d.ts +0 -4
  104. package/dist/types/autoresearch/git.d.ts +0 -36
  105. package/dist/types/autoresearch/helpers.d.ts +0 -24
  106. package/dist/types/autoresearch/index.d.ts +0 -2
  107. package/dist/types/autoresearch/state.d.ts +0 -17
  108. package/dist/types/autoresearch/storage.d.ts +0 -142
  109. package/dist/types/autoresearch/tools/init-experiment.d.ts +0 -27
  110. package/dist/types/autoresearch/tools/log-experiment.d.ts +0 -21
  111. package/dist/types/autoresearch/tools/run-experiment.d.ts +0 -7
  112. package/dist/types/autoresearch/tools/update-notes.d.ts +0 -11
  113. package/dist/types/autoresearch/types.d.ts +0 -154
  114. package/dist/types/capability/context-file.d.ts +0 -17
  115. package/dist/types/capability/extension-module.d.ts +0 -15
  116. package/dist/types/capability/extension.d.ts +0 -28
  117. package/dist/types/capability/fs.d.ts +0 -20
  118. package/dist/types/capability/hook.d.ts +0 -19
  119. package/dist/types/capability/index.d.ts +0 -80
  120. package/dist/types/capability/instruction.d.ts +0 -17
  121. package/dist/types/capability/mcp.d.ts +0 -47
  122. package/dist/types/capability/prompt.d.ts +0 -15
  123. package/dist/types/capability/rule-buckets.d.ts +0 -30
  124. package/dist/types/capability/rule.d.ts +0 -73
  125. package/dist/types/capability/settings.d.ts +0 -15
  126. package/dist/types/capability/skill.d.ts +0 -43
  127. package/dist/types/capability/slash-command.d.ts +0 -17
  128. package/dist/types/capability/ssh.d.ts +0 -23
  129. package/dist/types/capability/system-prompt.d.ts +0 -15
  130. package/dist/types/capability/tool.d.ts +0 -19
  131. package/dist/types/capability/types.d.ts +0 -154
  132. package/dist/types/cli/agents-cli.d.ts +0 -12
  133. package/dist/types/cli/args.d.ts +0 -80
  134. package/dist/types/cli/auth-broker-cli.d.ts +0 -25
  135. package/dist/types/cli/auth-gateway-cli.d.ts +0 -26
  136. package/dist/types/cli/bench-cli.d.ts +0 -85
  137. package/dist/types/cli/classify-install-target.d.ts +0 -12
  138. package/dist/types/cli/claude-trace-cli.d.ts +0 -54
  139. package/dist/types/cli/commands/init-xdg.d.ts +0 -1
  140. package/dist/types/cli/completion-gen.d.ts +0 -80
  141. package/dist/types/cli/config-cli.d.ts +0 -22
  142. package/dist/types/cli/dry-balance-cli.d.ts +0 -113
  143. package/dist/types/cli/extension-flags.d.ts +0 -36
  144. package/dist/types/cli/file-processor.d.ts +0 -11
  145. package/dist/types/cli/flag-tables.d.ts +0 -144
  146. package/dist/types/cli/gallery-cli.d.ts +0 -49
  147. package/dist/types/cli/gallery-fixtures/agentic.d.ts +0 -2
  148. package/dist/types/cli/gallery-fixtures/codeintel.d.ts +0 -3
  149. package/dist/types/cli/gallery-fixtures/edit.d.ts +0 -3
  150. package/dist/types/cli/gallery-fixtures/fs.d.ts +0 -2
  151. package/dist/types/cli/gallery-fixtures/index.d.ts +0 -4
  152. package/dist/types/cli/gallery-fixtures/interaction.d.ts +0 -3
  153. package/dist/types/cli/gallery-fixtures/memory.d.ts +0 -2
  154. package/dist/types/cli/gallery-fixtures/misc.d.ts +0 -3
  155. package/dist/types/cli/gallery-fixtures/search.d.ts +0 -3
  156. package/dist/types/cli/gallery-fixtures/shell.d.ts +0 -3
  157. package/dist/types/cli/gallery-fixtures/types.d.ts +0 -55
  158. package/dist/types/cli/gallery-fixtures/web.d.ts +0 -2
  159. package/dist/types/cli/gallery-screenshot.d.ts +0 -35
  160. package/dist/types/cli/gc-cli.d.ts +0 -58
  161. package/dist/types/cli/grep-cli.d.ts +0 -17
  162. package/dist/types/cli/grievances-cli.d.ts +0 -37
  163. package/dist/types/cli/initial-message.d.ts +0 -17
  164. package/dist/types/cli/models-cli.d.ts +0 -62
  165. package/dist/types/cli/plugin-cli.d.ts +0 -32
  166. package/dist/types/cli/profile-alias.d.ts +0 -29
  167. package/dist/types/cli/profile-bootstrap.d.ts +0 -55
  168. package/dist/types/cli/read-cli.d.ts +0 -11
  169. package/dist/types/cli/session-picker.d.ts +0 -11
  170. package/dist/types/cli/setup-cli.d.ts +0 -24
  171. package/dist/types/cli/setup-model-picker.d.ts +0 -14
  172. package/dist/types/cli/shell-cli.d.ts +0 -8
  173. package/dist/types/cli/ssh-cli.d.ts +0 -21
  174. package/dist/types/cli/startup-cwd.d.ts +0 -2
  175. package/dist/types/cli/stats-cli.d.ts +0 -17
  176. package/dist/types/cli/tiny-models-cli.d.ts +0 -11
  177. package/dist/types/cli/ttsr-cli.d.ts +0 -39
  178. package/dist/types/cli/update-cli.d.ts +0 -105
  179. package/dist/types/cli/usage-cli.d.ts +0 -95
  180. package/dist/types/cli/web-search-cli.d.ts +0 -20
  181. package/dist/types/cli/worktree-cli.d.ts +0 -26
  182. package/dist/types/cli-commands.d.ts +0 -33
  183. package/dist/types/cli.d.ts +0 -3
  184. package/dist/types/collab/crypto.d.ts +0 -7
  185. package/dist/types/collab/display-name.d.ts +0 -3
  186. package/dist/types/collab/guest.d.ts +0 -52
  187. package/dist/types/collab/host.d.ts +0 -43
  188. package/dist/types/collab/protocol.d.ts +0 -143
  189. package/dist/types/collab/relay-client.d.ts +0 -22
  190. package/dist/types/collab/replication-shrink.d.ts +0 -39
  191. package/dist/types/commands/acp.d.ts +0 -12
  192. package/dist/types/commands/agents.d.ts +0 -31
  193. package/dist/types/commands/auth-broker.d.ts +0 -51
  194. package/dist/types/commands/auth-gateway.d.ts +0 -32
  195. package/dist/types/commands/bench.d.ts +0 -37
  196. package/dist/types/commands/commit.d.ts +0 -27
  197. package/dist/types/commands/complete.d.ts +0 -6
  198. package/dist/types/commands/completions.d.ts +0 -13
  199. package/dist/types/commands/config.d.ts +0 -30
  200. package/dist/types/commands/dry-balance.d.ts +0 -31
  201. package/dist/types/commands/gallery.d.ts +0 -47
  202. package/dist/types/commands/gc.d.ts +0 -37
  203. package/dist/types/commands/grep.d.ts +0 -42
  204. package/dist/types/commands/grievances.d.ts +0 -40
  205. package/dist/types/commands/install.d.ts +0 -51
  206. package/dist/types/commands/join.d.ts +0 -12
  207. package/dist/types/commands/launch.d.ts +0 -148
  208. package/dist/types/commands/models.d.ts +0 -33
  209. package/dist/types/commands/plugin.d.ts +0 -52
  210. package/dist/types/commands/read.d.ts +0 -15
  211. package/dist/types/commands/say.d.ts +0 -24
  212. package/dist/types/commands/setup.d.ts +0 -31
  213. package/dist/types/commands/shell.d.ts +0 -21
  214. package/dist/types/commands/ssh.d.ts +0 -48
  215. package/dist/types/commands/stats.d.ts +0 -25
  216. package/dist/types/commands/tiny-models.d.ts +0 -22
  217. package/dist/types/commands/token.d.ts +0 -34
  218. package/dist/types/commands/ttsr.d.ts +0 -57
  219. package/dist/types/commands/update.d.ts +0 -20
  220. package/dist/types/commands/usage.d.ts +0 -34
  221. package/dist/types/commands/web-search.d.ts +0 -33
  222. package/dist/types/commands/worktree.d.ts +0 -31
  223. package/dist/types/commit/agentic/agent.d.ts +0 -31
  224. package/dist/types/commit/agentic/fallback.d.ts +0 -5
  225. package/dist/types/commit/agentic/index.d.ts +0 -2
  226. package/dist/types/commit/agentic/state.d.ts +0 -58
  227. package/dist/types/commit/agentic/tools/analyze-file.d.ts +0 -18
  228. package/dist/types/commit/agentic/tools/git-file-diff.d.ts +0 -9
  229. package/dist/types/commit/agentic/tools/git-hunk.d.ts +0 -8
  230. package/dist/types/commit/agentic/tools/git-overview.d.ts +0 -8
  231. package/dist/types/commit/agentic/tools/index.d.ts +0 -16
  232. package/dist/types/commit/agentic/tools/propose-changelog.d.ts +0 -27
  233. package/dist/types/commit/agentic/tools/propose-commit.d.ts +0 -15
  234. package/dist/types/commit/agentic/tools/recent-commits.d.ts +0 -6
  235. package/dist/types/commit/agentic/tools/schemas.d.ts +0 -6
  236. package/dist/types/commit/agentic/tools/split-commit.d.ts +0 -32
  237. package/dist/types/commit/agentic/topo-sort.d.ts +0 -4
  238. package/dist/types/commit/agentic/trivial.d.ts +0 -7
  239. package/dist/types/commit/agentic/validation.d.ts +0 -20
  240. package/dist/types/commit/analysis/conventional.d.ts +0 -22
  241. package/dist/types/commit/analysis/index.d.ts +0 -4
  242. package/dist/types/commit/analysis/scope.d.ts +0 -6
  243. package/dist/types/commit/analysis/summary.d.ts +0 -19
  244. package/dist/types/commit/analysis/validation.d.ts +0 -8
  245. package/dist/types/commit/changelog/detect.d.ts +0 -2
  246. package/dist/types/commit/changelog/generate.d.ts +0 -29
  247. package/dist/types/commit/changelog/index.d.ts +0 -30
  248. package/dist/types/commit/changelog/parse.d.ts +0 -2
  249. package/dist/types/commit/cli.d.ts +0 -3
  250. package/dist/types/commit/git/diff.d.ts +0 -5
  251. package/dist/types/commit/index.d.ts +0 -4
  252. package/dist/types/commit/map-reduce/index.d.ts +0 -28
  253. package/dist/types/commit/map-reduce/map-phase.d.ts +0 -17
  254. package/dist/types/commit/map-reduce/reduce-phase.d.ts +0 -13
  255. package/dist/types/commit/map-reduce/utils.d.ts +0 -2
  256. package/dist/types/commit/message.d.ts +0 -2
  257. package/dist/types/commit/model-selection.d.ts +0 -26
  258. package/dist/types/commit/pipeline.d.ts +0 -5
  259. package/dist/types/commit/shared-llm.d.ts +0 -27
  260. package/dist/types/commit/types.d.ts +0 -78
  261. package/dist/types/commit/utils/exclusions.d.ts +0 -4
  262. package/dist/types/commit/utils.d.ts +0 -20
  263. package/dist/types/config/api-key-resolver.d.ts +0 -43
  264. package/dist/types/config/append-only-context-mode.d.ts +0 -9
  265. package/dist/types/config/config-file.d.ts +0 -62
  266. package/dist/types/config/file-lock.d.ts +0 -29
  267. package/dist/types/config/inline-tool-descriptors-mode.d.ts +0 -12
  268. package/dist/types/config/keybindings.d.ts +0 -362
  269. package/dist/types/config/model-discovery.d.ts +0 -68
  270. package/dist/types/config/model-registry.d.ts +0 -251
  271. package/dist/types/config/model-resolver.d.ts +0 -300
  272. package/dist/types/config/model-roles.d.ts +0 -29
  273. package/dist/types/config/models-config-schema.d.ts +0 -697
  274. package/dist/types/config/models-config.d.ts +0 -436
  275. package/dist/types/config/prompt-templates.d.ts +0 -32
  276. package/dist/types/config/provider-globals.d.ts +0 -7
  277. package/dist/types/config/resolve-config-value.d.ts +0 -17
  278. package/dist/types/config/service-tier.d.ts +0 -49
  279. package/dist/types/config/settings-schema.d.ts +0 -5648
  280. package/dist/types/config/settings.d.ts +0 -181
  281. package/dist/types/config.d.ts +0 -92
  282. package/dist/types/cursor.d.ts +0 -22
  283. package/dist/types/dap/client.d.ts +0 -38
  284. package/dist/types/dap/config.d.ts +0 -19
  285. package/dist/types/dap/index.d.ts +0 -4
  286. package/dist/types/dap/session.d.ts +0 -108
  287. package/dist/types/dap/types.d.ts +0 -534
  288. package/dist/types/debug/index.d.ts +0 -15
  289. package/dist/types/debug/log-formatting.d.ts +0 -4
  290. package/dist/types/debug/log-viewer.d.ts +0 -69
  291. package/dist/types/debug/profiler.d.ts +0 -24
  292. package/dist/types/debug/protocol-probe.d.ts +0 -38
  293. package/dist/types/debug/raw-sse-buffer.d.ts +0 -44
  294. package/dist/types/debug/raw-sse.d.ts +0 -19
  295. package/dist/types/debug/remote-debugger.d.ts +0 -45
  296. package/dist/types/debug/report-bundle.d.ts +0 -58
  297. package/dist/types/debug/system-info.d.ts +0 -26
  298. package/dist/types/debug/terminal-info.d.ts +0 -33
  299. package/dist/types/discovery/agents-md.d.ts +0 -1
  300. package/dist/types/discovery/agents.d.ts +0 -12
  301. package/dist/types/discovery/at-imports.d.ts +0 -15
  302. package/dist/types/discovery/builtin-defaults.d.ts +0 -1
  303. package/dist/types/discovery/builtin-rules/index.d.ts +0 -7
  304. package/dist/types/discovery/builtin.d.ts +0 -1
  305. package/dist/types/discovery/claude-plugins.d.ts +0 -1
  306. package/dist/types/discovery/claude.d.ts +0 -1
  307. package/dist/types/discovery/cline.d.ts +0 -1
  308. package/dist/types/discovery/codex.d.ts +0 -1
  309. package/dist/types/discovery/cursor.d.ts +0 -16
  310. package/dist/types/discovery/gemini.d.ts +0 -1
  311. package/dist/types/discovery/github.d.ts +0 -1
  312. package/dist/types/discovery/helpers.d.ts +0 -276
  313. package/dist/types/discovery/index.d.ts +0 -53
  314. package/dist/types/discovery/mcp-json.d.ts +0 -1
  315. package/dist/types/discovery/omp-extension-roots.d.ts +0 -43
  316. package/dist/types/discovery/omp-plugins.d.ts +0 -1
  317. package/dist/types/discovery/opencode.d.ts +0 -1
  318. package/dist/types/discovery/plugin-dir-roots.d.ts +0 -15
  319. package/dist/types/discovery/ssh.d.ts +0 -1
  320. package/dist/types/discovery/substitute-plugin-root.d.ts +0 -1
  321. package/dist/types/discovery/vscode.d.ts +0 -1
  322. package/dist/types/discovery/windsurf.d.ts +0 -13
  323. package/dist/types/edit/apply-patch/index.d.ts +0 -35
  324. package/dist/types/edit/apply-patch/parser.d.ts +0 -34
  325. package/dist/types/edit/diff.d.ts +0 -60
  326. package/dist/types/edit/file-snapshot-store.d.ts +0 -64
  327. package/dist/types/edit/hashline/block-resolver.d.ts +0 -9
  328. package/dist/types/edit/hashline/diff.d.ts +0 -29
  329. package/dist/types/edit/hashline/execute.d.ts +0 -28
  330. package/dist/types/edit/hashline/filesystem.d.ts +0 -43
  331. package/dist/types/edit/hashline/index.d.ts +0 -5
  332. package/dist/types/edit/hashline/noop-loop-guard.d.ts +0 -72
  333. package/dist/types/edit/hashline/params.d.ts +0 -7
  334. package/dist/types/edit/index.d.ts +0 -83
  335. package/dist/types/edit/modes/apply-patch.d.ts +0 -23
  336. package/dist/types/edit/modes/patch.d.ts +0 -101
  337. package/dist/types/edit/modes/replace.d.ts +0 -141
  338. package/dist/types/edit/normalize.d.ts +0 -31
  339. package/dist/types/edit/notebook.d.ts +0 -23
  340. package/dist/types/edit/read-file.d.ts +0 -2
  341. package/dist/types/edit/renderer.d.ts +0 -118
  342. package/dist/types/edit/snapshot-details.d.ts +0 -33
  343. package/dist/types/edit/streaming.d.ts +0 -105
  344. package/dist/types/eval/__tests__/agent-bridge.test.d.ts +0 -1
  345. package/dist/types/eval/__tests__/bridge-timeout.test.d.ts +0 -1
  346. package/dist/types/eval/__tests__/budget-bridge.test.d.ts +0 -1
  347. package/dist/types/eval/__tests__/completion-bridge.test.d.ts +0 -1
  348. package/dist/types/eval/__tests__/helpers-local-roots.test.d.ts +0 -1
  349. package/dist/types/eval/__tests__/idle-timeout.test.d.ts +0 -1
  350. package/dist/types/eval/__tests__/js-context-manager.test.d.ts +0 -1
  351. package/dist/types/eval/__tests__/julia-prelude.test.d.ts +0 -1
  352. package/dist/types/eval/__tests__/kernel-spawn.test.d.ts +0 -1
  353. package/dist/types/eval/__tests__/prelude-agent.test.d.ts +0 -1
  354. package/dist/types/eval/agent-bridge.d.ts +0 -48
  355. package/dist/types/eval/backend-helpers.d.ts +0 -23
  356. package/dist/types/eval/backend.d.ts +0 -60
  357. package/dist/types/eval/bridge-timeout.d.ts +0 -27
  358. package/dist/types/eval/budget-bridge.d.ts +0 -29
  359. package/dist/types/eval/completion-bridge.d.ts +0 -38
  360. package/dist/types/eval/concurrency-bridge.d.ts +0 -26
  361. package/dist/types/eval/executor-base.d.ts +0 -118
  362. package/dist/types/eval/idle-timeout.d.ts +0 -26
  363. package/dist/types/eval/index.d.ts +0 -6
  364. package/dist/types/eval/jl/executor.d.ts +0 -44
  365. package/dist/types/eval/jl/index.d.ts +0 -11
  366. package/dist/types/eval/jl/kernel.d.ts +0 -28
  367. package/dist/types/eval/jl/prelude.d.ts +0 -1
  368. package/dist/types/eval/jl/runtime.d.ts +0 -22
  369. package/dist/types/eval/js/context-manager.d.ts +0 -40
  370. package/dist/types/eval/js/executor.d.ts +0 -38
  371. package/dist/types/eval/js/index.d.ts +0 -11
  372. package/dist/types/eval/js/shared/helpers.d.ts +0 -32
  373. package/dist/types/eval/js/shared/indirect-eval.d.ts +0 -14
  374. package/dist/types/eval/js/shared/local-module-loader.d.ts +0 -16
  375. package/dist/types/eval/js/shared/prelude.d.ts +0 -1
  376. package/dist/types/eval/js/shared/rewrite-imports.d.ts +0 -25
  377. package/dist/types/eval/js/shared/runtime.d.ts +0 -59
  378. package/dist/types/eval/js/shared/types.d.ts +0 -24
  379. package/dist/types/eval/js/tool-bridge.d.ts +0 -20
  380. package/dist/types/eval/js/worker-core.d.ts +0 -6
  381. package/dist/types/eval/js/worker-entry.d.ts +0 -1
  382. package/dist/types/eval/js/worker-protocol.d.ts +0 -83
  383. package/dist/types/eval/kernel-base.d.ts +0 -105
  384. package/dist/types/eval/py/__tests__/prelude.test.d.ts +0 -1
  385. package/dist/types/eval/py/__tests__/runner-shell-output.test.d.ts +0 -1
  386. package/dist/types/eval/py/display.d.ts +0 -25
  387. package/dist/types/eval/py/executor.d.ts +0 -107
  388. package/dist/types/eval/py/index.d.ts +0 -11
  389. package/dist/types/eval/py/kernel.d.ts +0 -17
  390. package/dist/types/eval/py/prelude.d.ts +0 -1
  391. package/dist/types/eval/py/runtime.d.ts +0 -40
  392. package/dist/types/eval/py/spawn-options.d.ts +0 -58
  393. package/dist/types/eval/py/tool-bridge.d.ts +0 -16
  394. package/dist/types/eval/rb/executor.d.ts +0 -77
  395. package/dist/types/eval/rb/index.d.ts +0 -11
  396. package/dist/types/eval/rb/kernel.d.ts +0 -31
  397. package/dist/types/eval/rb/prelude.d.ts +0 -1
  398. package/dist/types/eval/rb/runtime.d.ts +0 -23
  399. package/dist/types/eval/runtime-env.d.ts +0 -24
  400. package/dist/types/eval/session-id.d.ts +0 -3
  401. package/dist/types/eval/types.d.ts +0 -52
  402. package/dist/types/exa/index.d.ts +0 -2
  403. package/dist/types/exa/mcp-client.d.ts +0 -53
  404. package/dist/types/exa/types.d.ts +0 -72
  405. package/dist/types/exec/bash-cwd-sync.d.ts +0 -16
  406. package/dist/types/exec/bash-executor.d.ts +0 -45
  407. package/dist/types/exec/exec.d.ts +0 -25
  408. package/dist/types/exec/non-interactive-env.d.ts +0 -3
  409. package/dist/types/export/custom-share.d.ts +0 -19
  410. package/dist/types/export/html/index.d.ts +0 -78
  411. package/dist/types/export/html/web-palette.d.ts +0 -117
  412. package/dist/types/export/share.d.ts +0 -55
  413. package/dist/types/export/ttsr.d.ts +0 -67
  414. package/dist/types/extensibility/custom-commands/bundled/ci-green/index.d.ts +0 -9
  415. package/dist/types/extensibility/custom-commands/bundled/review/index.d.ts +0 -10
  416. package/dist/types/extensibility/custom-commands/index.d.ts +0 -2
  417. package/dist/types/extensibility/custom-commands/loader.d.ts +0 -29
  418. package/dist/types/extensibility/custom-commands/types.d.ts +0 -112
  419. package/dist/types/extensibility/custom-tools/index.d.ts +0 -6
  420. package/dist/types/extensibility/custom-tools/loader.d.ts +0 -89
  421. package/dist/types/extensibility/custom-tools/types.d.ts +0 -242
  422. package/dist/types/extensibility/custom-tools/wrapper.d.ts +0 -23
  423. package/dist/types/extensibility/extensions/compact-handler.d.ts +0 -26
  424. package/dist/types/extensibility/extensions/get-commands-handler.d.ts +0 -29
  425. package/dist/types/extensibility/extensions/index.d.ts +0 -8
  426. package/dist/types/extensibility/extensions/loader.d.ts +0 -59
  427. package/dist/types/extensibility/extensions/model-api.d.ts +0 -17
  428. package/dist/types/extensibility/extensions/runner.d.ts +0 -161
  429. package/dist/types/extensibility/extensions/types.d.ts +0 -962
  430. package/dist/types/extensibility/extensions/wrapper.d.ts +0 -54
  431. package/dist/types/extensibility/hooks/index.d.ts +0 -6
  432. package/dist/types/extensibility/hooks/loader.d.ts +0 -65
  433. package/dist/types/extensibility/hooks/runner.d.ts +0 -126
  434. package/dist/types/extensibility/hooks/tool-wrapper.d.ts +0 -25
  435. package/dist/types/extensibility/hooks/types.d.ts +0 -442
  436. package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +0 -35
  437. package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +0 -115
  438. package/dist/types/extensibility/plugins/doctor.d.ts +0 -3
  439. package/dist/types/extensibility/plugins/git-url.d.ts +0 -44
  440. package/dist/types/extensibility/plugins/index.d.ts +0 -7
  441. package/dist/types/extensibility/plugins/installer.d.ts +0 -5
  442. package/dist/types/extensibility/plugins/legacy-pi-bundled-keys.d.ts +0 -10
  443. package/dist/types/extensibility/plugins/legacy-pi-bundled-registry.d.ts +0 -10
  444. package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +0 -79
  445. package/dist/types/extensibility/plugins/loader.d.ts +0 -59
  446. package/dist/types/extensibility/plugins/manager.d.ts +0 -76
  447. package/dist/types/extensibility/plugins/marketplace/cache.d.ts +0 -41
  448. package/dist/types/extensibility/plugins/marketplace/fetcher.d.ts +0 -48
  449. package/dist/types/extensibility/plugins/marketplace/index.d.ts +0 -6
  450. package/dist/types/extensibility/plugins/marketplace/manager.d.ts +0 -57
  451. package/dist/types/extensibility/plugins/marketplace/registry.d.ts +0 -34
  452. package/dist/types/extensibility/plugins/marketplace/source-resolver.d.ts +0 -28
  453. package/dist/types/extensibility/plugins/marketplace/types.d.ts +0 -131
  454. package/dist/types/extensibility/plugins/marketplace-auto-update.d.ts +0 -8
  455. package/dist/types/extensibility/plugins/parser.d.ts +0 -52
  456. package/dist/types/extensibility/plugins/runtime-config.d.ts +0 -3
  457. package/dist/types/extensibility/plugins/types.d.ts +0 -149
  458. package/dist/types/extensibility/session-handler-types.d.ts +0 -23
  459. package/dist/types/extensibility/shared-events.d.ts +0 -301
  460. package/dist/types/extensibility/skills.d.ts +0 -97
  461. package/dist/types/extensibility/slash-commands.d.ts +0 -38
  462. package/dist/types/extensibility/tool-event-input.d.ts +0 -9
  463. package/dist/types/extensibility/tool-proxy.d.ts +0 -4
  464. package/dist/types/extensibility/typebox.d.ts +0 -177
  465. package/dist/types/extensibility/utils.d.ts +0 -24
  466. package/dist/types/goals/guided-setup.d.ts +0 -18
  467. package/dist/types/goals/index.d.ts +0 -3
  468. package/dist/types/goals/runtime.d.ts +0 -69
  469. package/dist/types/goals/state.d.ts +0 -35
  470. package/dist/types/goals/tools/goal-tool.d.ts +0 -53
  471. package/dist/types/hindsight/backend.d.ts +0 -13
  472. package/dist/types/hindsight/bank.d.ts +0 -63
  473. package/dist/types/hindsight/client.d.ts +0 -224
  474. package/dist/types/hindsight/config.d.ts +0 -51
  475. package/dist/types/hindsight/content.d.ts +0 -69
  476. package/dist/types/hindsight/index.d.ts +0 -8
  477. package/dist/types/hindsight/mental-models.d.ts +0 -134
  478. package/dist/types/hindsight/state.d.ts +0 -105
  479. package/dist/types/hindsight/transcript.d.ts +0 -28
  480. package/dist/types/index.d.ts +0 -43
  481. package/dist/types/internal-urls/__tests__/ssh-protocol.test.d.ts +0 -1
  482. package/dist/types/internal-urls/agent-protocol.d.ts +0 -13
  483. package/dist/types/internal-urls/artifact-protocol.d.ts +0 -7
  484. package/dist/types/internal-urls/docs-index.d.ts +0 -19
  485. package/dist/types/internal-urls/filesystem-resource.d.ts +0 -9
  486. package/dist/types/internal-urls/history-protocol.d.ts +0 -14
  487. package/dist/types/internal-urls/index.d.ts +0 -25
  488. package/dist/types/internal-urls/issue-pr-protocol.d.ts +0 -17
  489. package/dist/types/internal-urls/json-query.d.ts +0 -30
  490. package/dist/types/internal-urls/local-protocol.d.ts +0 -79
  491. package/dist/types/internal-urls/mcp-protocol.d.ts +0 -12
  492. package/dist/types/internal-urls/memory-protocol.d.ts +0 -24
  493. package/dist/types/internal-urls/omp-protocol.d.ts +0 -13
  494. package/dist/types/internal-urls/parse.d.ts +0 -19
  495. package/dist/types/internal-urls/registry-helpers.d.ts +0 -12
  496. package/dist/types/internal-urls/router.d.ts +0 -21
  497. package/dist/types/internal-urls/rule-protocol.d.ts +0 -7
  498. package/dist/types/internal-urls/skill-protocol.d.ts +0 -14
  499. package/dist/types/internal-urls/ssh-protocol.d.ts +0 -10
  500. package/dist/types/internal-urls/types.d.ts +0 -165
  501. package/dist/types/internal-urls/vault-protocol.d.ts +0 -93
  502. package/dist/types/irc/bus.d.ts +0 -85
  503. package/dist/types/jsonrpc/message-framing.d.ts +0 -35
  504. package/dist/types/lib/xai-http.d.ts +0 -40
  505. package/dist/types/lsp/client.d.ts +0 -84
  506. package/dist/types/lsp/clients/biome-client.d.ts +0 -16
  507. package/dist/types/lsp/clients/index.d.ts +0 -19
  508. package/dist/types/lsp/clients/lsp-linter-client.d.ts +0 -16
  509. package/dist/types/lsp/clients/swiftlint-client.d.ts +0 -20
  510. package/dist/types/lsp/config.d.ts +0 -65
  511. package/dist/types/lsp/diagnostics-ledger.d.ts +0 -10
  512. package/dist/types/lsp/edits.d.ts +0 -32
  513. package/dist/types/lsp/format-options.d.ts +0 -32
  514. package/dist/types/lsp/index.d.ts +0 -120
  515. package/dist/types/lsp/lspmux.d.ts +0 -58
  516. package/dist/types/lsp/render.d.ts +0 -32
  517. package/dist/types/lsp/startup-events.d.ts +0 -11
  518. package/dist/types/lsp/types.d.ts +0 -300
  519. package/dist/types/lsp/utils.d.ts +0 -116
  520. package/dist/types/main.d.ts +0 -70
  521. package/dist/types/markit/converters/docx.d.ts +0 -6
  522. package/dist/types/markit/converters/epub.d.ts +0 -15
  523. package/dist/types/markit/converters/pdf/columns.d.ts +0 -35
  524. package/dist/types/markit/converters/pdf/extract.d.ts +0 -10
  525. package/dist/types/markit/converters/pdf/grid.d.ts +0 -25
  526. package/dist/types/markit/converters/pdf/headers.d.ts +0 -24
  527. package/dist/types/markit/converters/pdf/index.d.ts +0 -6
  528. package/dist/types/markit/converters/pdf/render.d.ts +0 -24
  529. package/dist/types/markit/converters/pdf/types.d.ts +0 -75
  530. package/dist/types/markit/converters/pptx.d.ts +0 -57
  531. package/dist/types/markit/converters/xlsx.d.ts +0 -25
  532. package/dist/types/markit/index.d.ts +0 -2
  533. package/dist/types/markit/registry.d.ts +0 -16
  534. package/dist/types/markit/types.d.ts +0 -30
  535. package/dist/types/mcp/client.d.ts +0 -83
  536. package/dist/types/mcp/config-writer.d.ts +0 -101
  537. package/dist/types/mcp/config.d.ts +0 -75
  538. package/dist/types/mcp/index.d.ts +0 -18
  539. package/dist/types/mcp/json-rpc.d.ts +0 -32
  540. package/dist/types/mcp/loader.d.ts +0 -44
  541. package/dist/types/mcp/manager.d.ts +0 -215
  542. package/dist/types/mcp/oauth-credentials.d.ts +0 -17
  543. package/dist/types/mcp/oauth-discovery.d.ts +0 -35
  544. package/dist/types/mcp/oauth-flow.d.ts +0 -145
  545. package/dist/types/mcp/render.d.ts +0 -25
  546. package/dist/types/mcp/smithery-auth.d.ts +0 -16
  547. package/dist/types/mcp/smithery-connect.d.ts +0 -38
  548. package/dist/types/mcp/smithery-registry.d.ts +0 -51
  549. package/dist/types/mcp/startup-events.d.ts +0 -28
  550. package/dist/types/mcp/timeout.d.ts +0 -9
  551. package/dist/types/mcp/tool-bridge.d.ts +0 -95
  552. package/dist/types/mcp/tool-cache.d.ts +0 -8
  553. package/dist/types/mcp/transports/http.d.ts +0 -45
  554. package/dist/types/mcp/transports/index.d.ts +0 -6
  555. package/dist/types/mcp/transports/sse.d.ts +0 -20
  556. package/dist/types/mcp/transports/stdio.d.ts +0 -108
  557. package/dist/types/mcp/transports/stdio.test.d.ts +0 -1
  558. package/dist/types/mcp/types.d.ts +0 -340
  559. package/dist/types/memories/index.d.ts +0 -54
  560. package/dist/types/memories/storage.d.ts +0 -110
  561. package/dist/types/memory-backend/index.d.ts +0 -7
  562. package/dist/types/memory-backend/local-backend.d.ts +0 -10
  563. package/dist/types/memory-backend/off-backend.d.ts +0 -7
  564. package/dist/types/memory-backend/resolve.d.ts +0 -16
  565. package/dist/types/memory-backend/runtime.d.ts +0 -4
  566. package/dist/types/memory-backend/types.d.ts +0 -132
  567. package/dist/types/mnemopi/backend.d.ts +0 -4
  568. package/dist/types/mnemopi/config.d.ts +0 -60
  569. package/dist/types/mnemopi/embed-client.d.ts +0 -53
  570. package/dist/types/mnemopi/embed-protocol.d.ts +0 -52
  571. package/dist/types/mnemopi/embed-worker.d.ts +0 -12
  572. package/dist/types/mnemopi/index.d.ts +0 -3
  573. package/dist/types/mnemopi/state.d.ts +0 -130
  574. package/dist/types/modes/acp/acp-agent.d.ts +0 -60
  575. package/dist/types/modes/acp/acp-client-bridge.d.ts +0 -9
  576. package/dist/types/modes/acp/acp-event-mapper.d.ts +0 -33
  577. package/dist/types/modes/acp/acp-mode.d.ts +0 -5
  578. package/dist/types/modes/acp/index.d.ts +0 -2
  579. package/dist/types/modes/acp/terminal-auth.d.ts +0 -6
  580. package/dist/types/modes/components/__tests__/move-overlay.test.d.ts +0 -1
  581. package/dist/types/modes/components/__tests__/skill-message.test.d.ts +0 -1
  582. package/dist/types/modes/components/advisor-config.d.ts +0 -59
  583. package/dist/types/modes/components/advisor-message.d.ts +0 -9
  584. package/dist/types/modes/components/agent-dashboard.d.ts +0 -22
  585. package/dist/types/modes/components/agent-hub.d.ts +0 -77
  586. package/dist/types/modes/components/agent-transcript-viewer.d.ts +0 -40
  587. package/dist/types/modes/components/assistant-message.d.ts +0 -53
  588. package/dist/types/modes/components/background-tan-message.d.ts +0 -9
  589. package/dist/types/modes/components/bash-execution.d.ts +0 -29
  590. package/dist/types/modes/components/bordered-loader.d.ts +0 -11
  591. package/dist/types/modes/components/btw-panel.d.ts +0 -19
  592. package/dist/types/modes/components/cache-invalidation-marker.d.ts +0 -52
  593. package/dist/types/modes/components/chat-block.d.ts +0 -64
  594. package/dist/types/modes/components/chat-transcript-builder.d.ts +0 -45
  595. package/dist/types/modes/components/collab-prompt-message.d.ts +0 -10
  596. package/dist/types/modes/components/compaction-summary-message.d.ts +0 -46
  597. package/dist/types/modes/components/copy-selector.d.ts +0 -22
  598. package/dist/types/modes/components/countdown-timer.d.ts +0 -14
  599. package/dist/types/modes/components/custom-editor.d.ts +0 -163
  600. package/dist/types/modes/components/custom-editor.test.d.ts +0 -1
  601. package/dist/types/modes/components/custom-message.d.ts +0 -15
  602. package/dist/types/modes/components/diff.d.ts +0 -11
  603. package/dist/types/modes/components/dynamic-border.d.ts +0 -14
  604. package/dist/types/modes/components/error-banner.d.ts +0 -11
  605. package/dist/types/modes/components/eval-execution.d.ts +0 -23
  606. package/dist/types/modes/components/execution-shared.d.ts +0 -46
  607. package/dist/types/modes/components/extensions/extension-dashboard.d.ts +0 -43
  608. package/dist/types/modes/components/extensions/extension-list.d.ts +0 -52
  609. package/dist/types/modes/components/extensions/index.d.ts +0 -8
  610. package/dist/types/modes/components/extensions/inspector-panel.d.ts +0 -8
  611. package/dist/types/modes/components/extensions/state-manager.d.ts +0 -50
  612. package/dist/types/modes/components/extensions/types.d.ts +0 -147
  613. package/dist/types/modes/components/footer.d.ts +0 -30
  614. package/dist/types/modes/components/history-search.d.ts +0 -7
  615. package/dist/types/modes/components/hook-editor.d.ts +0 -24
  616. package/dist/types/modes/components/hook-input.d.ts +0 -19
  617. package/dist/types/modes/components/hook-message.d.ts +0 -15
  618. package/dist/types/modes/components/hook-selector.d.ts +0 -68
  619. package/dist/types/modes/components/index.d.ts +0 -38
  620. package/dist/types/modes/components/keybinding-hints.d.ts +0 -40
  621. package/dist/types/modes/components/late-diagnostics-message.d.ts +0 -20
  622. package/dist/types/modes/components/login-dialog.d.ts +0 -32
  623. package/dist/types/modes/components/logout-account-selector.d.ts +0 -8
  624. package/dist/types/modes/components/mcp-add-wizard.d.ts +0 -38
  625. package/dist/types/modes/components/message-frame.d.ts +0 -44
  626. package/dist/types/modes/components/model-selector.d.ts +0 -36
  627. package/dist/types/modes/components/move-overlay.d.ts +0 -23
  628. package/dist/types/modes/components/oauth-selector.d.ts +0 -23
  629. package/dist/types/modes/components/omfg-panel.d.ts +0 -19
  630. package/dist/types/modes/components/overlay-box.d.ts +0 -17
  631. package/dist/types/modes/components/plan-review-overlay.d.ts +0 -61
  632. package/dist/types/modes/components/plan-toc.d.ts +0 -41
  633. package/dist/types/modes/components/plugin-selector.d.ts +0 -27
  634. package/dist/types/modes/components/plugin-settings.d.ts +0 -103
  635. package/dist/types/modes/components/queue-mode-selector.d.ts +0 -10
  636. package/dist/types/modes/components/read-tool-group.d.ts +0 -38
  637. package/dist/types/modes/components/reset-usage-selector.d.ts +0 -12
  638. package/dist/types/modes/components/segment-track.d.ts +0 -27
  639. package/dist/types/modes/components/select-list-mouse-routing.d.ts +0 -2
  640. package/dist/types/modes/components/selector-helpers.d.ts +0 -53
  641. package/dist/types/modes/components/session-selector.d.ts +0 -94
  642. package/dist/types/modes/components/settings-defs.d.ts +0 -60
  643. package/dist/types/modes/components/settings-selector.d.ts +0 -70
  644. package/dist/types/modes/components/show-images-selector.d.ts +0 -10
  645. package/dist/types/modes/components/skill-message.d.ts +0 -9
  646. package/dist/types/modes/components/snapcompact-shape-preview.d.ts +0 -31
  647. package/dist/types/modes/components/status-line/component.d.ts +0 -94
  648. package/dist/types/modes/components/status-line/component.test.d.ts +0 -1
  649. package/dist/types/modes/components/status-line/context-thresholds.d.ts +0 -10
  650. package/dist/types/modes/components/status-line/git-utils.d.ts +0 -22
  651. package/dist/types/modes/components/status-line/index.d.ts +0 -5
  652. package/dist/types/modes/components/status-line/presets.d.ts +0 -3
  653. package/dist/types/modes/components/status-line/segments.d.ts +0 -5
  654. package/dist/types/modes/components/status-line/separators.d.ts +0 -3
  655. package/dist/types/modes/components/status-line/token-rate.d.ts +0 -10
  656. package/dist/types/modes/components/status-line/types.d.ts +0 -150
  657. package/dist/types/modes/components/theme-selector.d.ts +0 -11
  658. package/dist/types/modes/components/thinking-selector.d.ts +0 -11
  659. package/dist/types/modes/components/tiny-title-download-progress.d.ts +0 -11
  660. package/dist/types/modes/components/todo-reminder.d.ts +0 -15
  661. package/dist/types/modes/components/tool-execution.d.ts +0 -124
  662. package/dist/types/modes/components/transcript-container.d.ts +0 -88
  663. package/dist/types/modes/components/tree-selector.d.ts +0 -31
  664. package/dist/types/modes/components/ttsr-notification.d.ts +0 -17
  665. package/dist/types/modes/components/usage-row.d.ts +0 -3
  666. package/dist/types/modes/components/user-message-selector.d.ts +0 -28
  667. package/dist/types/modes/components/user-message.d.ts +0 -9
  668. package/dist/types/modes/components/visual-truncate.d.ts +0 -19
  669. package/dist/types/modes/components/welcome.d.ts +0 -76
  670. package/dist/types/modes/controllers/btw-controller.d.ts +0 -14
  671. package/dist/types/modes/controllers/command-controller-shared.d.ts +0 -47
  672. package/dist/types/modes/controllers/command-controller.d.ts +0 -55
  673. package/dist/types/modes/controllers/event-controller.d.ts +0 -28
  674. package/dist/types/modes/controllers/extension-ui-controller.d.ts +0 -88
  675. package/dist/types/modes/controllers/input-controller.d.ts +0 -71
  676. package/dist/types/modes/controllers/mcp-command-controller.d.ts +0 -27
  677. package/dist/types/modes/controllers/omfg-controller.d.ts +0 -10
  678. package/dist/types/modes/controllers/omfg-rule.d.ts +0 -26
  679. package/dist/types/modes/controllers/selector-controller.d.ts +0 -61
  680. package/dist/types/modes/controllers/session-focus-controller.d.ts +0 -31
  681. package/dist/types/modes/controllers/ssh-command-controller.d.ts +0 -10
  682. package/dist/types/modes/controllers/streaming-reveal.d.ts +0 -45
  683. package/dist/types/modes/controllers/tan-command-controller.d.ts +0 -6
  684. package/dist/types/modes/controllers/todo-command-controller.d.ts +0 -7
  685. package/dist/types/modes/controllers/tool-args-reveal.d.ts +0 -77
  686. package/dist/types/modes/emoji-autocomplete.d.ts +0 -16
  687. package/dist/types/modes/gradient-highlight.d.ts +0 -32
  688. package/dist/types/modes/image-references.d.ts +0 -28
  689. package/dist/types/modes/index.d.ts +0 -10
  690. package/dist/types/modes/interactive-mode.d.ts +0 -399
  691. package/dist/types/modes/internal-url-autocomplete.d.ts +0 -43
  692. package/dist/types/modes/loop-limit.d.ts +0 -35
  693. package/dist/types/modes/magic-keywords.d.ts +0 -26
  694. package/dist/types/modes/markdown-prose.d.ts +0 -27
  695. package/dist/types/modes/oauth-manual-input.d.ts +0 -15
  696. package/dist/types/modes/orchestrate.d.ts +0 -15
  697. package/dist/types/modes/print-mode.d.ts +0 -29
  698. package/dist/types/modes/prompt-action-autocomplete.d.ts +0 -46
  699. package/dist/types/modes/rpc/host-tools.d.ts +0 -16
  700. package/dist/types/modes/rpc/host-uris.d.ts +0 -38
  701. package/dist/types/modes/rpc/rpc-client.d.ts +0 -300
  702. package/dist/types/modes/rpc/rpc-mode.d.ts +0 -145
  703. package/dist/types/modes/rpc/rpc-subagents.d.ts +0 -24
  704. package/dist/types/modes/rpc/rpc-types.d.ts +0 -699
  705. package/dist/types/modes/running-subagent-badge.d.ts +0 -6
  706. package/dist/types/modes/runtime-init.d.ts +0 -25
  707. package/dist/types/modes/session-observer-registry.d.ts +0 -35
  708. package/dist/types/modes/session-teardown.d.ts +0 -63
  709. package/dist/types/modes/session-teardown.test.d.ts +0 -1
  710. package/dist/types/modes/setup-version.d.ts +0 -11
  711. package/dist/types/modes/setup-wizard/index.d.ts +0 -22
  712. package/dist/types/modes/setup-wizard/lazy.d.ts +0 -2
  713. package/dist/types/modes/setup-wizard/scenes/glyph.d.ts +0 -2
  714. package/dist/types/modes/setup-wizard/scenes/outro.d.ts +0 -2
  715. package/dist/types/modes/setup-wizard/scenes/providers.d.ts +0 -2
  716. package/dist/types/modes/setup-wizard/scenes/sign-in.d.ts +0 -22
  717. package/dist/types/modes/setup-wizard/scenes/splash.d.ts +0 -11
  718. package/dist/types/modes/setup-wizard/scenes/theme.d.ts +0 -2
  719. package/dist/types/modes/setup-wizard/scenes/types.d.ts +0 -52
  720. package/dist/types/modes/setup-wizard/scenes/web-search.d.ts +0 -23
  721. package/dist/types/modes/setup-wizard/startup-splash.d.ts +0 -7
  722. package/dist/types/modes/setup-wizard/wizard-overlay.d.ts +0 -15
  723. package/dist/types/modes/shared.d.ts +0 -15
  724. package/dist/types/modes/skill-command.d.ts +0 -32
  725. package/dist/types/modes/theme/defaults/index.d.ts +0 -9436
  726. package/dist/types/modes/theme/mermaid-cache.d.ts +0 -26
  727. package/dist/types/modes/theme/mermaid-rendering.test.d.ts +0 -1
  728. package/dist/types/modes/theme/shimmer.d.ts +0 -40
  729. package/dist/types/modes/theme/theme.d.ts +0 -360
  730. package/dist/types/modes/turn-budget.d.ts +0 -18
  731. package/dist/types/modes/types.d.ts +0 -399
  732. package/dist/types/modes/ultrathink.d.ts +0 -15
  733. package/dist/types/modes/utils/context-usage.d.ts +0 -64
  734. package/dist/types/modes/utils/copy-targets.d.ts +0 -75
  735. package/dist/types/modes/utils/hotkeys-markdown.d.ts +0 -5
  736. package/dist/types/modes/utils/interactive-context-helpers.d.ts +0 -14
  737. package/dist/types/modes/utils/keybinding-matchers.d.ts +0 -32
  738. package/dist/types/modes/utils/tools-markdown.d.ts +0 -5
  739. package/dist/types/modes/utils/transcript-render-helpers.d.ts +0 -54
  740. package/dist/types/modes/utils/ui-helpers.d.ts +0 -55
  741. package/dist/types/modes/workflow.d.ts +0 -15
  742. package/dist/types/plan-mode/approved-plan-prompt.test.d.ts +0 -1
  743. package/dist/types/plan-mode/approved-plan.d.ts +0 -68
  744. package/dist/types/plan-mode/plan-handoff.d.ts +0 -20
  745. package/dist/types/plan-mode/plan-protection.d.ts +0 -12
  746. package/dist/types/plan-mode/state.d.ts +0 -6
  747. package/dist/types/registry/agent-lifecycle.d.ts +0 -66
  748. package/dist/types/registry/agent-registry.d.ts +0 -97
  749. package/dist/types/sdk.d.ts +0 -370
  750. package/dist/types/secrets/index.d.ts +0 -9
  751. package/dist/types/secrets/obfuscator.d.ts +0 -63
  752. package/dist/types/secrets/regex.d.ts +0 -2
  753. package/dist/types/session/agent-session.d.ts +0 -1417
  754. package/dist/types/session/agent-storage.d.ts +0 -97
  755. package/dist/types/session/artifacts.d.ts +0 -61
  756. package/dist/types/session/auth-broker-config.d.ts +0 -45
  757. package/dist/types/session/auth-storage.d.ts +0 -7
  758. package/dist/types/session/blob-store.d.ts +0 -68
  759. package/dist/types/session/client-bridge.d.ts +0 -88
  760. package/dist/types/session/codex-auto-reset.d.ts +0 -111
  761. package/dist/types/session/compact-modes.d.ts +0 -60
  762. package/dist/types/session/exit-diagnostics.d.ts +0 -48
  763. package/dist/types/session/history-storage.d.ts +0 -30
  764. package/dist/types/session/indexed-session-storage.d.ts +0 -65
  765. package/dist/types/session/messages.d.ts +0 -220
  766. package/dist/types/session/messages.test.d.ts +0 -1
  767. package/dist/types/session/provider-image-budget.d.ts +0 -3
  768. package/dist/types/session/redis-session-storage.d.ts +0 -51
  769. package/dist/types/session/session-context.d.ts +0 -44
  770. package/dist/types/session/session-dump-format.d.ts +0 -30
  771. package/dist/types/session/session-entries.d.ts +0 -197
  772. package/dist/types/session/session-history-format.d.ts +0 -49
  773. package/dist/types/session/session-listing.d.ts +0 -78
  774. package/dist/types/session/session-loader.d.ts +0 -29
  775. package/dist/types/session/session-manager.d.ts +0 -306
  776. package/dist/types/session/session-migrations.d.ts +0 -12
  777. package/dist/types/session/session-paths.d.ts +0 -25
  778. package/dist/types/session/session-persistence.d.ts +0 -12
  779. package/dist/types/session/session-storage.d.ts +0 -101
  780. package/dist/types/session/session-title-slot.d.ts +0 -19
  781. package/dist/types/session/settings-stream-fn.d.ts +0 -21
  782. package/dist/types/session/shake-types.d.ts +0 -24
  783. package/dist/types/session/snapcompact-inline.d.ts +0 -145
  784. package/dist/types/session/snapcompact-savings-journal.d.ts +0 -46
  785. package/dist/types/session/sql-session-storage.d.ts +0 -72
  786. package/dist/types/session/streaming-output.d.ts +0 -229
  787. package/dist/types/session/tool-choice-queue.d.ts +0 -94
  788. package/dist/types/session/turn-persistence.d.ts +0 -88
  789. package/dist/types/session/unexpected-stop-classifier.d.ts +0 -13
  790. package/dist/types/session/yield-queue.d.ts +0 -37
  791. package/dist/types/slash-commands/acp-builtins.d.ts +0 -34
  792. package/dist/types/slash-commands/available-commands.d.ts +0 -34
  793. package/dist/types/slash-commands/builtin-registry.d.ts +0 -36
  794. package/dist/types/slash-commands/helpers/active-oauth-account.d.ts +0 -14
  795. package/dist/types/slash-commands/helpers/collab-qrcode.d.ts +0 -13
  796. package/dist/types/slash-commands/helpers/context-report.d.ts +0 -7
  797. package/dist/types/slash-commands/helpers/format.d.ts +0 -10
  798. package/dist/types/slash-commands/helpers/logout.d.ts +0 -15
  799. package/dist/types/slash-commands/helpers/marketplace-manager.d.ts +0 -8
  800. package/dist/types/slash-commands/helpers/mcp.d.ts +0 -3
  801. package/dist/types/slash-commands/helpers/parse.d.ts +0 -33
  802. package/dist/types/slash-commands/helpers/reset-usage.d.ts +0 -27
  803. package/dist/types/slash-commands/helpers/ssh.d.ts +0 -3
  804. package/dist/types/slash-commands/helpers/stats-dashboard.d.ts +0 -13
  805. package/dist/types/slash-commands/helpers/todo.d.ts +0 -3
  806. package/dist/types/slash-commands/helpers/usage-report.d.ts +0 -7
  807. package/dist/types/slash-commands/marketplace-install-parser.d.ts +0 -33
  808. package/dist/types/slash-commands/types.d.ts +0 -127
  809. package/dist/types/ssh/__tests__/connection-manager-args.test.d.ts +0 -1
  810. package/dist/types/ssh/__tests__/file-transfer-posix-guard.test.d.ts +0 -1
  811. package/dist/types/ssh/config-writer.d.ts +0 -49
  812. package/dist/types/ssh/connection-manager.d.ts +0 -90
  813. package/dist/types/ssh/file-transfer.d.ts +0 -79
  814. package/dist/types/ssh/ssh-executor.d.ts +0 -37
  815. package/dist/types/ssh/sshfs-mount.d.ts +0 -6
  816. package/dist/types/ssh/utils.d.ts +0 -24
  817. package/dist/types/startup-splash.d.ts +0 -12
  818. package/dist/types/stt/asr-client.d.ts +0 -68
  819. package/dist/types/stt/asr-protocol.d.ts +0 -97
  820. package/dist/types/stt/asr-worker.d.ts +0 -2
  821. package/dist/types/stt/downloader.d.ts +0 -47
  822. package/dist/types/stt/endpointer.d.ts +0 -59
  823. package/dist/types/stt/index.d.ts +0 -8
  824. package/dist/types/stt/models.d.ts +0 -120
  825. package/dist/types/stt/recorder.d.ts +0 -30
  826. package/dist/types/stt/stt-controller.d.ts +0 -24
  827. package/dist/types/stt/submit-trigger.d.ts +0 -30
  828. package/dist/types/stt/transcriber.d.ts +0 -14
  829. package/dist/types/stt/wav.d.ts +0 -29
  830. package/dist/types/subprocess/worker-client.d.ts +0 -149
  831. package/dist/types/subprocess/worker-runtime.d.ts +0 -107
  832. package/dist/types/system-prompt.d.ts +0 -128
  833. package/dist/types/system-prompt.test.d.ts +0 -1
  834. package/dist/types/task/agents.d.ts +0 -28
  835. package/dist/types/task/commands.d.ts +0 -35
  836. package/dist/types/task/discovery.d.ts +0 -17
  837. package/dist/types/task/executor.d.ts +0 -214
  838. package/dist/types/task/index.d.ts +0 -79
  839. package/dist/types/task/isolation-runner.d.ts +0 -128
  840. package/dist/types/task/name-generator.d.ts +0 -16
  841. package/dist/types/task/omp-command.d.ts +0 -7
  842. package/dist/types/task/output-manager.d.ts +0 -20
  843. package/dist/types/task/parallel.d.ts +0 -55
  844. package/dist/types/task/persisted-revive.d.ts +0 -36
  845. package/dist/types/task/provider-concurrency.d.ts +0 -40
  846. package/dist/types/task/render.d.ts +0 -34
  847. package/dist/types/task/render.test.d.ts +0 -1
  848. package/dist/types/task/renderer.d.ts +0 -13
  849. package/dist/types/task/repair-args.d.ts +0 -53
  850. package/dist/types/task/spawn-policy.d.ts +0 -17
  851. package/dist/types/task/spawn-policy.test.d.ts +0 -1
  852. package/dist/types/task/subprocess-tool-registry.d.ts +0 -72
  853. package/dist/types/task/types.d.ts +0 -384
  854. package/dist/types/task/worktree.d.ts +0 -135
  855. package/dist/types/task/yield-assembly.d.ts +0 -28
  856. package/dist/types/telemetry-export.d.ts +0 -43
  857. package/dist/types/thinking.d.ts +0 -96
  858. package/dist/types/tiny/device.d.ts +0 -78
  859. package/dist/types/tiny/dtype.d.ts +0 -85
  860. package/dist/types/tiny/models.d.ts +0 -230
  861. package/dist/types/tiny/text.d.ts +0 -44
  862. package/dist/types/tiny/title-client.d.ts +0 -68
  863. package/dist/types/tiny/title-protocol.d.ts +0 -78
  864. package/dist/types/tiny/worker.d.ts +0 -2
  865. package/dist/types/tool-discovery/mode.d.ts +0 -8
  866. package/dist/types/tool-discovery/tool-index.d.ts +0 -57
  867. package/dist/types/tools/__tests__/eval-description.test.d.ts +0 -1
  868. package/dist/types/tools/__tests__/json-tree.test.d.ts +0 -1
  869. package/dist/types/tools/acp-bridge.d.ts +0 -29
  870. package/dist/types/tools/approval.d.ts +0 -46
  871. package/dist/types/tools/ask.d.ts +0 -119
  872. package/dist/types/tools/ast-edit.d.ts +0 -84
  873. package/dist/types/tools/ast-grep.d.ts +0 -74
  874. package/dist/types/tools/auto-generated-guard.d.ts +0 -17
  875. package/dist/types/tools/bash-command-fixup.d.ts +0 -11
  876. package/dist/types/tools/bash-interactive.d.ts +0 -16
  877. package/dist/types/tools/bash-interceptor.d.ts +0 -24
  878. package/dist/types/tools/bash-pty-selection.d.ts +0 -7
  879. package/dist/types/tools/bash-skill-urls.d.ts +0 -31
  880. package/dist/types/tools/bash.d.ts +0 -148
  881. package/dist/types/tools/browser/aria/aria-snapshot.d.ts +0 -39
  882. package/dist/types/tools/browser/attach.d.ts +0 -34
  883. package/dist/types/tools/browser/cmux/cmux-tab.d.ts +0 -212
  884. package/dist/types/tools/browser/cmux/rpc.d.ts +0 -70
  885. package/dist/types/tools/browser/cmux/socket-client.d.ts +0 -19
  886. package/dist/types/tools/browser/launch.d.ts +0 -67
  887. package/dist/types/tools/browser/readable.d.ts +0 -17
  888. package/dist/types/tools/browser/registry.d.ts +0 -58
  889. package/dist/types/tools/browser/render.d.ts +0 -52
  890. package/dist/types/tools/browser/run-cancellation.d.ts +0 -4
  891. package/dist/types/tools/browser/tab-protocol.d.ts +0 -146
  892. package/dist/types/tools/browser/tab-supervisor.d.ts +0 -104
  893. package/dist/types/tools/browser/tab-worker-entry.d.ts +0 -1
  894. package/dist/types/tools/browser/tab-worker.d.ts +0 -56
  895. package/dist/types/tools/browser.d.ts +0 -96
  896. package/dist/types/tools/builtin-names.d.ts +0 -6
  897. package/dist/types/tools/checkpoint.d.ts +0 -72
  898. package/dist/types/tools/conflict-detect.d.ts +0 -221
  899. package/dist/types/tools/context.d.ts +0 -19
  900. package/dist/types/tools/debug.d.ts +0 -156
  901. package/dist/types/tools/eval-backends.d.ts +0 -15
  902. package/dist/types/tools/eval-render.d.ts +0 -58
  903. package/dist/types/tools/eval.d.ts +0 -66
  904. package/dist/types/tools/fetch.d.ts +0 -99
  905. package/dist/types/tools/file-recorder.d.ts +0 -13
  906. package/dist/types/tools/fs-cache-invalidation.d.ts +0 -15
  907. package/dist/types/tools/gh-cache-invalidation.d.ts +0 -6
  908. package/dist/types/tools/gh-format.d.ts +0 -6
  909. package/dist/types/tools/gh-renderer.d.ts +0 -25
  910. package/dist/types/tools/gh.d.ts +0 -331
  911. package/dist/types/tools/github-cache.d.ts +0 -123
  912. package/dist/types/tools/glob.d.ts +0 -94
  913. package/dist/types/tools/grep.d.ts +0 -98
  914. package/dist/types/tools/grouped-file-output.d.ts +0 -70
  915. package/dist/types/tools/image-gen.d.ts +0 -66
  916. package/dist/types/tools/index.d.ts +0 -368
  917. package/dist/types/tools/inspect-image-renderer.d.ts +0 -26
  918. package/dist/types/tools/inspect-image.d.ts +0 -32
  919. package/dist/types/tools/irc.d.ts +0 -112
  920. package/dist/types/tools/job.d.ts +0 -73
  921. package/dist/types/tools/json-tree.d.ts +0 -23
  922. package/dist/types/tools/jtd-to-json-schema.d.ts +0 -29
  923. package/dist/types/tools/jtd-to-typescript.d.ts +0 -26
  924. package/dist/types/tools/jtd-utils.d.ts +0 -42
  925. package/dist/types/tools/learn.d.ts +0 -44
  926. package/dist/types/tools/list-limit.d.ts +0 -12
  927. package/dist/types/tools/manage-skill.d.ts +0 -31
  928. package/dist/types/tools/match-line-format.d.ts +0 -11
  929. package/dist/types/tools/memory-edit.d.ts +0 -31
  930. package/dist/types/tools/memory-recall.d.ts +0 -23
  931. package/dist/types/tools/memory-reflect.d.ts +0 -25
  932. package/dist/types/tools/memory-render.d.ts +0 -63
  933. package/dist/types/tools/memory-retain.d.ts +0 -29
  934. package/dist/types/tools/output-meta.d.ts +0 -211
  935. package/dist/types/tools/output-schema-validator.d.ts +0 -77
  936. package/dist/types/tools/path-utils.d.ts +0 -260
  937. package/dist/types/tools/plan-mode-guard.d.ts +0 -33
  938. package/dist/types/tools/read.d.ts +0 -87
  939. package/dist/types/tools/render-utils.d.ts +0 -218
  940. package/dist/types/tools/renderers.d.ts +0 -45
  941. package/dist/types/tools/report-tool-issue.d.ts +0 -127
  942. package/dist/types/tools/resolve.d.ts +0 -94
  943. package/dist/types/tools/review.d.ts +0 -59
  944. package/dist/types/tools/search-tool-bm25.d.ts +0 -65
  945. package/dist/types/tools/sqlite-reader.d.ts +0 -114
  946. package/dist/types/tools/ssh.d.ts +0 -73
  947. package/dist/types/tools/todo.d.ts +0 -126
  948. package/dist/types/tools/tool-errors.d.ts +0 -33
  949. package/dist/types/tools/tool-result.d.ts +0 -34
  950. package/dist/types/tools/tool-timeouts.d.ts +0 -51
  951. package/dist/types/tools/tts.d.ts +0 -42
  952. package/dist/types/tools/write.d.ts +0 -66
  953. package/dist/types/tools/yield.d.ts +0 -39
  954. package/dist/types/tts/downloader.d.ts +0 -20
  955. package/dist/types/tts/index.d.ts +0 -8
  956. package/dist/types/tts/models.d.ts +0 -82
  957. package/dist/types/tts/player.d.ts +0 -32
  958. package/dist/types/tts/runtime.d.ts +0 -6
  959. package/dist/types/tts/streaming-player.d.ts +0 -41
  960. package/dist/types/tts/tts-client.d.ts +0 -68
  961. package/dist/types/tts/tts-protocol.d.ts +0 -95
  962. package/dist/types/tts/tts-worker.d.ts +0 -2
  963. package/dist/types/tts/vocalizer.d.ts +0 -41
  964. package/dist/types/tts/wav.d.ts +0 -8
  965. package/dist/types/tui/code-cell.d.ts +0 -47
  966. package/dist/types/tui/file-list.d.ts +0 -22
  967. package/dist/types/tui/hyperlink.d.ts +0 -61
  968. package/dist/types/tui/index.d.ts +0 -12
  969. package/dist/types/tui/output-block.d.ts +0 -59
  970. package/dist/types/tui/status-line.d.ts +0 -21
  971. package/dist/types/tui/tree-list.d.ts +0 -20
  972. package/dist/types/tui/types.d.ts +0 -13
  973. package/dist/types/tui/utils.d.ts +0 -36
  974. package/dist/types/tui/width-aware-text.d.ts +0 -23
  975. package/dist/types/utils/active-repo-context.d.ts +0 -8
  976. package/dist/types/utils/block-context.d.ts +0 -35
  977. package/dist/types/utils/changelog.d.ts +0 -33
  978. package/dist/types/utils/clipboard.d.ts +0 -37
  979. package/dist/types/utils/command-args.d.ts +0 -9
  980. package/dist/types/utils/commit-message-generator.d.ts +0 -7
  981. package/dist/types/utils/edit-mode.d.ts +0 -13
  982. package/dist/types/utils/enhanced-paste.d.ts +0 -20
  983. package/dist/types/utils/event-bus.d.ts +0 -6
  984. package/dist/types/utils/external-editor.d.ts +0 -27
  985. package/dist/types/utils/file-display-mode.d.ts +0 -27
  986. package/dist/types/utils/file-mentions.d.ts +0 -13
  987. package/dist/types/utils/git.d.ts +0 -453
  988. package/dist/types/utils/image-loading.d.ts +0 -67
  989. package/dist/types/utils/image-resize.d.ts +0 -42
  990. package/dist/types/utils/image-vision-fallback.d.ts +0 -28
  991. package/dist/types/utils/ipc.d.ts +0 -22
  992. package/dist/types/utils/jj.d.ts +0 -74
  993. package/dist/types/utils/lang-from-path.d.ts +0 -8
  994. package/dist/types/utils/markit-cache.d.ts +0 -23
  995. package/dist/types/utils/markit.d.ts +0 -20
  996. package/dist/types/utils/mupdf-wasm-embed.d.ts +0 -1
  997. package/dist/types/utils/open.d.ts +0 -2
  998. package/dist/types/utils/prompt-path.d.ts +0 -1
  999. package/dist/types/utils/qrcode.d.ts +0 -48
  1000. package/dist/types/utils/session-color.d.ts +0 -27
  1001. package/dist/types/utils/shell-snapshot.d.ts +0 -15
  1002. package/dist/types/utils/sixel.d.ts +0 -21
  1003. package/dist/types/utils/thinking-display.d.ts +0 -7
  1004. package/dist/types/utils/title-generator.d.ts +0 -33
  1005. package/dist/types/utils/tool-choice.d.ts +0 -15
  1006. package/dist/types/utils/tools-manager.d.ts +0 -12
  1007. package/dist/types/utils/turndown.d.ts +0 -15
  1008. package/dist/types/utils/zip.d.ts +0 -119
  1009. package/dist/types/web/kagi.d.ts +0 -99
  1010. package/dist/types/web/parallel.d.ts +0 -67
  1011. package/dist/types/web/scrapers/artifacthub.d.ts +0 -6
  1012. package/dist/types/web/scrapers/arxiv.d.ts +0 -5
  1013. package/dist/types/web/scrapers/aur.d.ts +0 -5
  1014. package/dist/types/web/scrapers/biorxiv.d.ts +0 -5
  1015. package/dist/types/web/scrapers/bluesky.d.ts +0 -5
  1016. package/dist/types/web/scrapers/brew.d.ts +0 -5
  1017. package/dist/types/web/scrapers/cheatsh.d.ts +0 -8
  1018. package/dist/types/web/scrapers/chocolatey.d.ts +0 -5
  1019. package/dist/types/web/scrapers/choosealicense.d.ts +0 -2
  1020. package/dist/types/web/scrapers/cisa-kev.d.ts +0 -5
  1021. package/dist/types/web/scrapers/clojars.d.ts +0 -5
  1022. package/dist/types/web/scrapers/coingecko.d.ts +0 -5
  1023. package/dist/types/web/scrapers/crates-io.d.ts +0 -5
  1024. package/dist/types/web/scrapers/crossref.d.ts +0 -2
  1025. package/dist/types/web/scrapers/devto.d.ts +0 -5
  1026. package/dist/types/web/scrapers/discogs.d.ts +0 -8
  1027. package/dist/types/web/scrapers/discourse.d.ts +0 -5
  1028. package/dist/types/web/scrapers/dockerhub.d.ts +0 -5
  1029. package/dist/types/web/scrapers/docs-rs.d.ts +0 -2
  1030. package/dist/types/web/scrapers/fdroid.d.ts +0 -5
  1031. package/dist/types/web/scrapers/firefox-addons.d.ts +0 -2
  1032. package/dist/types/web/scrapers/flathub.d.ts +0 -2
  1033. package/dist/types/web/scrapers/github-gist.d.ts +0 -5
  1034. package/dist/types/web/scrapers/github.d.ts +0 -34
  1035. package/dist/types/web/scrapers/gitlab.d.ts +0 -5
  1036. package/dist/types/web/scrapers/go-pkg.d.ts +0 -5
  1037. package/dist/types/web/scrapers/hackage.d.ts +0 -5
  1038. package/dist/types/web/scrapers/hackernews.d.ts +0 -2
  1039. package/dist/types/web/scrapers/hex.d.ts +0 -5
  1040. package/dist/types/web/scrapers/huggingface.d.ts +0 -2
  1041. package/dist/types/web/scrapers/iacr.d.ts +0 -5
  1042. package/dist/types/web/scrapers/index.d.ts +0 -84
  1043. package/dist/types/web/scrapers/jetbrains-marketplace.d.ts +0 -2
  1044. package/dist/types/web/scrapers/lemmy.d.ts +0 -2
  1045. package/dist/types/web/scrapers/lobsters.d.ts +0 -5
  1046. package/dist/types/web/scrapers/mastodon.d.ts +0 -5
  1047. package/dist/types/web/scrapers/maven.d.ts +0 -6
  1048. package/dist/types/web/scrapers/mdn.d.ts +0 -2
  1049. package/dist/types/web/scrapers/metacpan.d.ts +0 -5
  1050. package/dist/types/web/scrapers/musicbrainz.d.ts +0 -5
  1051. package/dist/types/web/scrapers/npm.d.ts +0 -5
  1052. package/dist/types/web/scrapers/nuget.d.ts +0 -5
  1053. package/dist/types/web/scrapers/nvd.d.ts +0 -5
  1054. package/dist/types/web/scrapers/ollama.d.ts +0 -2
  1055. package/dist/types/web/scrapers/open-vsx.d.ts +0 -5
  1056. package/dist/types/web/scrapers/opencorporates.d.ts +0 -5
  1057. package/dist/types/web/scrapers/openlibrary.d.ts +0 -5
  1058. package/dist/types/web/scrapers/orcid.d.ts +0 -5
  1059. package/dist/types/web/scrapers/osv.d.ts +0 -5
  1060. package/dist/types/web/scrapers/packagist.d.ts +0 -5
  1061. package/dist/types/web/scrapers/pub-dev.d.ts +0 -5
  1062. package/dist/types/web/scrapers/pubmed.d.ts +0 -5
  1063. package/dist/types/web/scrapers/pypi.d.ts +0 -5
  1064. package/dist/types/web/scrapers/rawg.d.ts +0 -2
  1065. package/dist/types/web/scrapers/readthedocs.d.ts +0 -5
  1066. package/dist/types/web/scrapers/reddit.d.ts +0 -5
  1067. package/dist/types/web/scrapers/repology.d.ts +0 -5
  1068. package/dist/types/web/scrapers/rfc.d.ts +0 -5
  1069. package/dist/types/web/scrapers/rubygems.d.ts +0 -5
  1070. package/dist/types/web/scrapers/searchcode.d.ts +0 -2
  1071. package/dist/types/web/scrapers/sec-edgar.d.ts +0 -5
  1072. package/dist/types/web/scrapers/semantic-scholar.d.ts +0 -2
  1073. package/dist/types/web/scrapers/snapcraft.d.ts +0 -2
  1074. package/dist/types/web/scrapers/sourcegraph.d.ts +0 -2
  1075. package/dist/types/web/scrapers/spdx.d.ts +0 -5
  1076. package/dist/types/web/scrapers/spotify.d.ts +0 -8
  1077. package/dist/types/web/scrapers/stackoverflow.d.ts +0 -6
  1078. package/dist/types/web/scrapers/terraform.d.ts +0 -5
  1079. package/dist/types/web/scrapers/tldr.d.ts +0 -7
  1080. package/dist/types/web/scrapers/twitter.d.ts +0 -5
  1081. package/dist/types/web/scrapers/types.d.ts +0 -90
  1082. package/dist/types/web/scrapers/utils.d.ts +0 -26
  1083. package/dist/types/web/scrapers/vimeo.d.ts +0 -5
  1084. package/dist/types/web/scrapers/vscode-marketplace.d.ts +0 -5
  1085. package/dist/types/web/scrapers/w3c.d.ts +0 -2
  1086. package/dist/types/web/scrapers/wikidata.d.ts +0 -5
  1087. package/dist/types/web/scrapers/wikipedia.d.ts +0 -5
  1088. package/dist/types/web/scrapers/youtube.d.ts +0 -5
  1089. package/dist/types/web/search/index.d.ts +0 -74
  1090. package/dist/types/web/search/provider.d.ts +0 -30
  1091. package/dist/types/web/search/providers/anthropic.d.ts +0 -33
  1092. package/dist/types/web/search/providers/base.d.ts +0 -83
  1093. package/dist/types/web/search/providers/brave.d.ts +0 -28
  1094. package/dist/types/web/search/providers/codex.d.ts +0 -36
  1095. package/dist/types/web/search/providers/duckduckgo.d.ts +0 -14
  1096. package/dist/types/web/search/providers/exa.d.ts +0 -70
  1097. package/dist/types/web/search/providers/firecrawl.d.ts +0 -28
  1098. package/dist/types/web/search/providers/gemini.d.ts +0 -62
  1099. package/dist/types/web/search/providers/jina.d.ts +0 -31
  1100. package/dist/types/web/search/providers/kagi.d.ts +0 -30
  1101. package/dist/types/web/search/providers/kimi.d.ts +0 -32
  1102. package/dist/types/web/search/providers/parallel.d.ts +0 -16
  1103. package/dist/types/web/search/providers/perplexity-auth.d.ts +0 -37
  1104. package/dist/types/web/search/providers/perplexity.d.ts +0 -58
  1105. package/dist/types/web/search/providers/searxng.d.ts +0 -45
  1106. package/dist/types/web/search/providers/synthetic.d.ts +0 -25
  1107. package/dist/types/web/search/providers/tavily.d.ts +0 -30
  1108. package/dist/types/web/search/providers/tinyfish.d.ts +0 -29
  1109. package/dist/types/web/search/providers/utils.d.ts +0 -52
  1110. package/dist/types/web/search/providers/xai.d.ts +0 -13
  1111. package/dist/types/web/search/providers/zai.d.ts +0 -29
  1112. package/dist/types/web/search/render.d.ts +0 -34
  1113. package/dist/types/web/search/types.d.ts +0 -431
  1114. package/dist/types/web/search/utils.d.ts +0 -4
  1115. package/dist/types/workspace-tree.d.ts +0 -42
@@ -1,1417 +0,0 @@
1
- /**
2
- * AgentSession - Core abstraction for agent lifecycle and session management.
3
- *
4
- * This class is shared between all run modes (interactive, print, rpc).
5
- * It encapsulates:
6
- * - Agent state access
7
- * - Event subscription with automatic session persistence
8
- * - Model and thinking level management
9
- * - Compaction (manual and auto)
10
- * - Bash execution
11
- * - Session switching and branching
12
- *
13
- * Modes use this class and add their own I/O layer on top.
14
- */
15
- import { Agent, type AgentEvent, type AgentMessage, type AgentState, type AgentTool, type StreamFn, ThinkingLevel, type ToolChoiceDirective } from "jeopi-agent-core";
16
- import { type CompactionResult, type ShakeConfig } from "jeopi-agent-core/compaction";
17
- import type { AssistantMessage, Context, ImageContent, Message, MessageAttribution, Model, ProviderSessionState, ResetCreditAccountStatus, ResetCreditRedeemOutcome, ResetCreditTarget, ServiceTier, ServiceTierByFamily, ServiceTierFamily, SimpleStreamOptions, TextContent, ToolChoice, UsageReport } from "jeopi-ai";
18
- import { Effort } from "jeopi-ai";
19
- import type { InMemorySnapshotStore } from "jeopi-hashline";
20
- import { postmortem } from "jeopi-utils";
21
- import { type AdvisorConfig } from "../advisor";
22
- import { type AsyncJob, type AsyncJobDeliveryState, AsyncJobManager } from "../async";
23
- import type { Rule } from "../capability/rule";
24
- import type { ModelRegistry } from "../config/model-registry";
25
- import { type ResolvedModelRoleValue } from "../config/model-resolver";
26
- import { type PromptTemplate } from "../config/prompt-templates";
27
- import type { Settings, SkillsSettings } from "../config/settings";
28
- import { RawSseDebugBuffer } from "../debug/raw-sse-buffer";
29
- import { type PythonResult } from "../eval/py/executor";
30
- import { type BashResult } from "../exec/bash-executor";
31
- import type { TtsrManager } from "../export/ttsr";
32
- import type { LoadedCustomCommand } from "../extensibility/custom-commands";
33
- import type { CustomTool } from "../extensibility/custom-tools/types";
34
- import type { ExtensionRunner } from "../extensibility/extensions";
35
- import type { CompactOptions, ContextUsage } from "../extensibility/extensions/types";
36
- import type { Skill, SkillWarning } from "../extensibility/skills";
37
- import { type FileSlashCommand } from "../extensibility/slash-commands";
38
- import { GoalRuntime } from "../goals/runtime";
39
- import type { Goal, GoalModeState } from "../goals/state";
40
- import type { HindsightSessionState } from "../hindsight/state";
41
- import { type IrcMessage } from "../irc/bus";
42
- import { type MnemopiSessionState } from "../mnemopi/state";
43
- import type { PlanModeState } from "../plan-mode/state";
44
- import { type SecretObfuscator } from "../secrets/obfuscator";
45
- import { type ConfiguredThinkingLevel } from "../thinking";
46
- import { type DiscoverableTool, type DiscoverableToolSearchIndex } from "../tool-discovery/tool-index";
47
- import type { CheckpointState, CompletedRewindState } from "../tools/checkpoint";
48
- import { type TodoItem, type TodoPhase } from "../tools/todo";
49
- import type { ClientBridge } from "./client-bridge";
50
- import { type CustomMessage } from "./messages";
51
- import type { BuildSessionContextOptions, SessionContext } from "./session-context";
52
- import type { BranchSummaryEntry, NewSessionOptions } from "./session-entries";
53
- import { type SessionManager } from "./session-manager";
54
- import type { ShakeMode, ShakeResult } from "./shake-types";
55
- import { ToolChoiceQueue } from "./tool-choice-queue";
56
- import { YieldQueue } from "./yield-queue";
57
- /** Session-specific events that extend the core AgentEvent */
58
- export type AgentSessionEvent = AgentEvent | {
59
- type: "auto_compaction_start";
60
- reason: "threshold" | "overflow" | "idle" | "incomplete";
61
- action: "context-full" | "handoff" | "shake" | "snapcompact";
62
- } | {
63
- type: "auto_compaction_end";
64
- action: "context-full" | "handoff" | "shake" | "snapcompact";
65
- result: CompactionResult | undefined;
66
- aborted: boolean;
67
- willRetry: boolean;
68
- errorMessage?: string;
69
- /** True when compaction was skipped for a benign reason (no model, no candidates, nothing to compact). */
70
- skipped?: boolean;
71
- } | {
72
- type: "auto_retry_start";
73
- attempt: number;
74
- maxAttempts: number;
75
- delayMs: number;
76
- errorMessage: string;
77
- errorId?: number;
78
- } | {
79
- type: "auto_retry_end";
80
- success: boolean;
81
- attempt: number;
82
- finalError?: string;
83
- } | {
84
- type: "retry_fallback_applied";
85
- from: string;
86
- to: string;
87
- role: string;
88
- } | {
89
- type: "retry_fallback_succeeded";
90
- model: string;
91
- role: string;
92
- } | {
93
- type: "ttsr_triggered";
94
- rules: Rule[];
95
- } | {
96
- type: "todo_reminder";
97
- todos: TodoItem[];
98
- attempt: number;
99
- maxAttempts: number;
100
- } | {
101
- type: "todo_auto_clear";
102
- } | {
103
- type: "irc_message";
104
- message: CustomMessage;
105
- } | {
106
- type: "notice";
107
- level: "info" | "warning" | "error";
108
- message: string;
109
- source?: string;
110
- } | {
111
- type: "thinking_level_changed";
112
- thinkingLevel: ThinkingLevel | undefined;
113
- /** The user-configured selector when it differs from the effective level (e.g. `auto`). */
114
- configured?: ConfiguredThinkingLevel;
115
- /** The level `auto` resolved to this turn, once classified. */
116
- resolved?: Effort;
117
- } | {
118
- type: "goal_updated";
119
- goal: Goal | null;
120
- state?: GoalModeState;
121
- };
122
- /** Listener function for agent session events */
123
- export type AgentSessionEventListener = (event: AgentSessionEvent) => void;
124
- /**
125
- * Budget for callers on the user-visible `/quit` / `/exit` shutdown path that
126
- * want to cap how long they wait for `MnemopiSessionState.dispose()` to finish
127
- * its consolidate pass. Consolidate fires fresh LLM fact extractions, each a
128
- * 1–3 s round-trip, so interactive shutdown passes this budget to keep the
129
- * UI responsive. Callers that keep the process/session host alive must omit it
130
- * so dispose still awaits the full consolidate-then-close pipeline.
131
- */
132
- export declare const SHUTDOWN_CONSOLIDATE_BUDGET_MS = 1500;
133
- export interface AgentSessionDisposeOptions {
134
- mnemopiConsolidateTimeoutMs?: number;
135
- /**
136
- * Postmortem reason that triggered this dispose (signal/fatal teardown
137
- * paths). When set, the persisted `session_exit` diagnostic records it
138
- * instead of the generic `"dispose"` used for normal programmatic disposal
139
- * (`/quit`, test teardown, subagent completion).
140
- */
141
- reason?: postmortem.Reason;
142
- }
143
- export type CommandMetadataChangedListener = () => void | Promise<void>;
144
- export type AsyncJobSnapshotItem = Pick<AsyncJob, "id" | "type" | "status" | "label" | "startTime">;
145
- export interface AsyncJobSnapshot {
146
- running: AsyncJobSnapshotItem[];
147
- recent: AsyncJobSnapshotItem[];
148
- delivery: AsyncJobDeliveryState;
149
- }
150
- export type { ShakeMode, ShakeResult };
151
- export interface AgentSessionConfig {
152
- agent: Agent;
153
- sessionManager: SessionManager;
154
- settings: Settings;
155
- /** Whether the caller explicitly requested yolo/auto-approve behavior for this session. */
156
- autoApprove?: boolean;
157
- /** Models to cycle through with Ctrl+P (from --models flag) */
158
- scopedModels?: Array<{
159
- model: Model;
160
- thinkingLevel?: ThinkingLevel;
161
- }>;
162
- /** Initial session thinking selector. */
163
- thinkingLevel?: ConfiguredThinkingLevel;
164
- /** Initial per-family service tiers (OpenAI / Anthropic / Google) for the live session. */
165
- serviceTierByFamily?: ServiceTierByFamily;
166
- /** Prompt templates for expansion */
167
- promptTemplates?: PromptTemplate[];
168
- /** File-based slash commands for expansion */
169
- slashCommands?: FileSlashCommand[];
170
- /** Extension runner (created in main.ts with wrapped tools) */
171
- extensionRunner?: ExtensionRunner;
172
- /** Loaded skills (already discovered by SDK) */
173
- skills?: Skill[];
174
- /** Skill loading warnings (already captured by SDK) */
175
- skillWarnings?: SkillWarning[];
176
- /** Custom commands (TypeScript slash commands) */
177
- customCommands?: LoadedCustomCommand[];
178
- skillsSettings?: SkillsSettings;
179
- /** Model registry for API key resolution and model discovery */
180
- modelRegistry: ModelRegistry;
181
- /** Tool registry for LSP and settings */
182
- toolRegistry?: Map<string, AgentTool>;
183
- /** Tool names whose current registry entry is still the built-in implementation. */
184
- builtInToolNames?: Iterable<string>;
185
- /** Current session pre-LLM message transform pipeline */
186
- transformContext?: (messages: AgentMessage[], signal?: AbortSignal) => AgentMessage[] | Promise<AgentMessage[]>;
187
- /**
188
- * Per-request transform applied after `convertToLlm` and before the
189
- * provider call. Used for snapcompact, secret obfuscation, and image
190
- * clamping. When supplied via {@link createAgentSession}, the advisor agent
191
- * inherits this so its requests undergo the same shaping as the main turn.
192
- */
193
- transformProviderContext?: (context: Context, model: Model) => Context | Promise<Context>;
194
- /**
195
- * Stream wrapper passed to side-channel requests (`/btw`, `/omfg`, IRC
196
- * auto-replies, and handoff generation) so they apply the same provider
197
- * shaping and host-level request wrappers as normal agent turns. Defaults
198
- * to plain `streamSimple` when omitted.
199
- */
200
- sideStreamFn?: StreamFn;
201
- /**
202
- * Stream wrapper passed to the advisor agent so its requests apply the
203
- * session's `providers.openrouterVariant`, `providers.antigravityEndpoint`,
204
- * `providers.maxInFlightRequests`, and `model.loopGuard.*` settings —
205
- * keeping OpenRouter sticky-routing / response caching consistent with the
206
- * main agent. Defaults to plain `streamSimple` when omitted.
207
- */
208
- advisorStreamFn?: StreamFn;
209
- /** Hint that OpenAI Codex requests should prefer websocket transport when supported. */
210
- preferWebsockets?: boolean;
211
- /** Provider payload hook used by the active session request path */
212
- onPayload?: SimpleStreamOptions["onPayload"];
213
- /** Provider response hook used by the active session request path */
214
- onResponse?: SimpleStreamOptions["onResponse"];
215
- /** Raw SSE hook used by the active session request path */
216
- onSseEvent?: SimpleStreamOptions["onSseEvent"];
217
- /** Per-session raw SSE diagnostic buffer */
218
- rawSseDebugBuffer?: RawSseDebugBuffer;
219
- /** Current session message-to-LLM conversion pipeline */
220
- convertToLlm?: (messages: AgentMessage[]) => Message[] | Promise<Message[]>;
221
- /** System prompt builder that can consider tool availability. Returns ordered provider-facing blocks. */
222
- rebuildSystemPrompt?: (toolNames: string[], tools: Map<string, AgentTool>) => Promise<{
223
- systemPrompt: string[];
224
- }>;
225
- /** Rebuild the SSH tool from current capability discovery results. */
226
- reloadSshTool?: () => Promise<AgentTool | null>;
227
- requestedToolNames?: ReadonlySet<string>;
228
- /**
229
- * Optional accessor for live MCP server instructions. Read by the session's
230
- * `rebuildSystemPrompt`-skip optimization to detect server-side instruction
231
- * changes (e.g. an MCP server upgrade) that would otherwise pass the tool-set
232
- * signature comparison and silently keep a stale prompt cached.
233
- */
234
- getMcpServerInstructions?: () => Map<string, string> | undefined;
235
- /** Enable hidden-by-default MCP tool discovery for this session. */
236
- mcpDiscoveryEnabled?: boolean;
237
- /** MCP tool names to activate for the current session when discovery mode is enabled. */
238
- initialSelectedMCPToolNames?: string[];
239
- /** Whether constructor-provided MCP defaults should be persisted immediately. */
240
- persistInitialMCPToolSelection?: boolean;
241
- /** MCP server names whose tools should seed discovery-mode sessions whenever those servers are connected. */
242
- defaultSelectedMCPServerNames?: string[];
243
- /** MCP tool names that should seed brand-new sessions created from this AgentSession. */
244
- defaultSelectedMCPToolNames?: string[];
245
- /** TTSR manager for time-traveling stream rules */
246
- ttsrManager?: TtsrManager;
247
- /** Secret obfuscator for deobfuscating streaming edit content */
248
- obfuscator?: SecretObfuscator;
249
- /** Inherited eval executor session id from a parent agent. */
250
- parentEvalSessionId?: string;
251
- /** Logical owner for retained eval kernels created by this session. */
252
- evalKernelOwnerId?: string;
253
- /**
254
- * AsyncJobManager that this session installed as the process-global instance.
255
- * Only set for top-level sessions; subagents inherit the parent's manager and
256
- * **MUST NOT** dispose it on their own teardown.
257
- */
258
- ownedAsyncJobManager?: AsyncJobManager;
259
- /**
260
- * AsyncJobManager reachable by this session for scoped job actions.
261
- *
262
- * Top-level owners receive their own manager, subagents receive the inherited
263
- * parent manager, and secondary in-process top-level sessions receive
264
- * `undefined` so job snapshots and ACP drains cannot observe the primary's
265
- * state.
266
- */
267
- asyncJobManager?: AsyncJobManager;
268
- /** Agent identity (registry id like "Main" or "Alice") used for IRC routing. */
269
- agentId?: string;
270
- /** Whether this session is the top-level agent or a subagent. Drives eager-task
271
- * prelude gating so a top-level session created with a custom `agentId` still
272
- * receives the always-mode reminder. Defaults to "main". */
273
- agentKind?: "main" | "sub";
274
- /**
275
- * Override the provider-facing session ID for all API requests from this session.
276
- * When absent, `sessionManager.getSessionId()` is used. Needed when benchmark or
277
- * SDK callers issue probes / prewarming with an explicit `--provider-session-id`
278
- * so that credential sticky selection is consistent with the session's streaming calls.
279
- */
280
- providerSessionId?: string;
281
- /**
282
- * Full advisor toolset, pre-built in `createAgentSession` against a distinct,
283
- * advisor-scoped `ToolSession` (its own `-advisor` session/agent id) so the
284
- * advisor's tool state stays isolated from the primary. The advisor is a full
285
- * agent; its config `tools` selects a subset (default read/grep/glob). Undefined
286
- * when the advisor is disabled.
287
- */
288
- advisorTools?: AgentTool[];
289
- /** Preloaded watchdog prompt content for the advisor. */
290
- advisorWatchdogPrompt?: string;
291
- /** Preloaded YAML top-level `instructions` shared baseline, kept separate from
292
- * `advisorWatchdogPrompt` so `/advisor configure` can swap it live. */
293
- advisorSharedInstructions?: string;
294
- /**
295
- * Preloaded project context files (AGENTS.md, etc.) rendered as a system-prompt
296
- * block for the advisor — the same standing instructions the primary agent
297
- * receives, so the reviewer holds the agent to them.
298
- */
299
- advisorContextPrompt?: string;
300
- /**
301
- * Advisors discovered from `WATCHDOG.yml`. Empty/undefined runs a single
302
- * legacy advisor on the `advisor` role (byte-for-byte the pre-config path).
303
- */
304
- advisorConfigs?: AdvisorConfig[];
305
- /**
306
- * Strip tool descriptions from provider-bound tool specs on side requests
307
- * (handoff). Must match the session-start value used to build the system
308
- * prompt so inline descriptors are not also sent through provider schemas.
309
- */
310
- pruneToolDescriptions?: boolean;
311
- /**
312
- * Disconnect this session's OWNED MCP manager on dispose. Provided only when
313
- * the session created the manager (top-level sessions); subagents reuse a
314
- * parent's manager via `options.mcpManager` and omit this so a child's
315
- * teardown never tears down the shared servers.
316
- */
317
- disconnectOwnedMcpManager?: () => Promise<void>;
318
- /**
319
- * Override the bundled system prompt used by automatic session-title
320
- * generation paths (initial title + replan refresh). Source-of-truth is
321
- * `TITLE_SYSTEM.md` discovered via {@link discoverTitleSystemPromptFile} and
322
- * resolved through {@link resolvePromptInput}; refresh after a `/move`-style
323
- * cwd change via {@link AgentSession.setTitleSystemPrompt}.
324
- */
325
- titleSystemPrompt?: string;
326
- }
327
- /** Options for AgentSession.prompt() */
328
- export interface PromptOptions {
329
- /** Whether to expand file-based prompt templates (default: true) */
330
- expandPromptTemplates?: boolean;
331
- /** Image attachments */
332
- images?: ImageContent[];
333
- /** When streaming, how to queue the message: "steer" (interrupt) or "followUp" (wait). */
334
- streamingBehavior?: "steer" | "followUp";
335
- /** Optional tool choice override for the next LLM call. */
336
- toolChoice?: ToolChoice;
337
- /** Send as developer/system message instead of user. Providers that support it use the developer role; others fall back to user. */
338
- synthetic?: boolean;
339
- /** Marks this prompt as a deliberate user action (typed message, `.`/`c`
340
- * continue). Clears advisor auto-resume suppression that a user interrupt set.
341
- * Defaults to `!synthetic`; manual-continue is synthetic yet user-initiated, so
342
- * it sets this explicitly. Agent-initiated synthetic prompts (auto-continue,
343
- * plan re-prime, reminders) leave it unset and keep suppression latched. */
344
- userInitiated?: boolean;
345
- /** Explicit billing/initiator attribution for the prompt. Defaults to user prompts as `user` and synthetic prompts as `agent`. */
346
- attribution?: MessageAttribution;
347
- /** Skip pre-send compaction checks for this prompt (internal use for maintenance flows). */
348
- skipCompactionCheck?: boolean;
349
- }
350
- /** Result from a handoff operation. */
351
- export interface HandoffResult {
352
- document: string;
353
- savedPath?: string;
354
- }
355
- export interface SessionHandoffOptions {
356
- autoTriggered?: boolean;
357
- signal?: AbortSignal;
358
- }
359
- /** Result from cycleModel() */
360
- export interface ModelCycleResult {
361
- model: Model;
362
- thinkingLevel: ThinkingLevel | undefined;
363
- /** Whether cycling through scoped models (--models flag) or all available */
364
- isScoped: boolean;
365
- }
366
- /** Result from cycleRoleModels() */
367
- export interface RoleModelCycleResult {
368
- model: Model;
369
- thinkingLevel: ThinkingLevel | undefined;
370
- role: string;
371
- }
372
- /** A configured role resolved to a concrete model, used by role cycling and
373
- * the plan-approval model slider. */
374
- export interface ResolvedRoleModel {
375
- role: string;
376
- model: Model;
377
- thinkingLevel?: ConfiguredThinkingLevel;
378
- explicitThinkingLevel: boolean;
379
- }
380
- /** The set of resolvable role models plus the index of the currently active
381
- * one within {@link ResolvedRoleModel.role} order. */
382
- export interface RoleModelCycle {
383
- models: ResolvedRoleModel[];
384
- currentIndex: number;
385
- }
386
- export interface ContextUsageBreakdown {
387
- contextWindow: number;
388
- anchored: boolean;
389
- usedTokens: number;
390
- systemPromptTokens: number;
391
- systemToolsTokens: number;
392
- systemContextTokens: number;
393
- skillsTokens: number;
394
- messagesTokens: number;
395
- }
396
- /** Session statistics for /session command */
397
- export interface SessionStats {
398
- sessionFile: string | undefined;
399
- sessionId: string;
400
- userMessages: number;
401
- assistantMessages: number;
402
- toolCalls: number;
403
- toolResults: number;
404
- totalMessages: number;
405
- tokens: {
406
- input: number;
407
- output: number;
408
- reasoning: number;
409
- cacheRead: number;
410
- cacheWrite: number;
411
- total: number;
412
- };
413
- premiumRequests: number;
414
- cost: number;
415
- }
416
- /** Advisor statistics for /advisor status command. */
417
- export interface AdvisorStats {
418
- configured: boolean;
419
- active: boolean;
420
- model?: Model;
421
- contextWindow: number;
422
- contextTokens: number;
423
- tokens: {
424
- input: number;
425
- output: number;
426
- reasoning: number;
427
- cacheRead: number;
428
- cacheWrite: number;
429
- total: number;
430
- };
431
- cost: number;
432
- messages: {
433
- user: number;
434
- assistant: number;
435
- total: number;
436
- };
437
- /** Per-advisor breakdown; one entry per active advisor (single-advisor sessions have one). */
438
- advisors: PerAdvisorStat[];
439
- }
440
- /** One advisor's slice of {@link AdvisorStats}, surfaced for the multi-advisor status panel. */
441
- export interface PerAdvisorStat {
442
- name: string;
443
- model: Model;
444
- contextWindow: number;
445
- contextTokens: number;
446
- tokens: AdvisorStats["tokens"];
447
- cost: number;
448
- messages: AdvisorStats["messages"];
449
- }
450
- export interface FreshSessionResult {
451
- previousSessionId: string;
452
- sessionId: string;
453
- closedProviderSessions: number;
454
- }
455
- /** Entry returned by {@link AgentSession.clearQueue} / {@link AgentSession.popLastQueuedMessage}. */
456
- export type RestoredQueuedMessage = {
457
- text: string;
458
- images?: ImageContent[];
459
- };
460
- type SessionNameTrigger = "replan";
461
- export declare class AgentSession {
462
- #private;
463
- readonly agent: Agent;
464
- readonly sessionManager: SessionManager;
465
- readonly settings: Settings;
466
- readonly yieldQueue: YieldQueue;
467
- fileSnapshotStore?: InMemorySnapshotStore;
468
- readonly configWarnings: string[];
469
- readonly rawSseDebugBuffer: RawSseDebugBuffer;
470
- constructor(config: AgentSessionConfig);
471
- /** Model registry for API key resolution and model discovery */
472
- get modelRegistry(): ModelRegistry;
473
- get asyncJobManager(): AsyncJobManager | undefined;
474
- getAgentId(): string | undefined;
475
- /**
476
- * The per-turn tool-choice directive for the agent loop's `getToolChoice`. Priority:
477
- * 1. a HARD forced choice from the queue (genuine forces: user-force, eager-todo, …) —
478
- * consuming (advances the queue generator);
479
- * 2. else, when a non-forcing preview is pending, a {@link SoftToolRequirement} — a
480
- * PEEK (advances/pops nothing), so the agent-loop injects the reminder once per head
481
- * and escalates to a forced `resolve` only if the model declines. A compliant turn
482
- * pays ZERO tool_choice change (no prompt-cache messages-cache invalidation);
483
- * 3. else undefined.
484
- */
485
- nextToolChoiceDirective(): ToolChoiceDirective | undefined;
486
- /** Peek the head non-forcing pending preview invoker, for the `resolve` tool's dispatch. */
487
- peekPendingInvoker(): ((input: unknown) => Promise<unknown> | unknown) | undefined;
488
- /** Clear stale non-forcing pending preview invokers after `resolve` proves none can run. */
489
- clearPendingInvokers(): void;
490
- /**
491
- * Force the next model call to target a specific active tool, then terminate
492
- * the agent loop. Pushes a two-step sequence [forced, "none"] so the model
493
- * calls exactly the forced tool once and then cannot call another.
494
- */
495
- setForcedToolChoice(toolName: string): void;
496
- /** The tool-choice queue: forces forthcoming tool invocations and carries handlers. */
497
- get toolChoiceQueue(): ToolChoiceQueue;
498
- /** Peek the in-flight directive's invocation handler for use by the resolve tool. */
499
- peekQueueInvoker(): ((input: unknown) => Promise<unknown> | unknown) | undefined;
500
- peekStandingResolveHandler(): ((input: unknown) => Promise<unknown> | unknown) | undefined;
501
- setStandingResolveHandler(handler: ((input: unknown) => Promise<unknown> | unknown) | null): void;
502
- setSessionSwitchReconciler(reconciler: (() => Promise<void>) | null): void;
503
- /** Provider-scoped mutable state store for transport/session caches. */
504
- get providerSessionState(): Map<string, ProviderSessionState>;
505
- /** Hint forwarded to provider calls that support websocket transport. */
506
- get preferWebsockets(): boolean | undefined;
507
- getHindsightSessionState(): HindsightSessionState | undefined;
508
- setHindsightSessionState(state: HindsightSessionState | undefined): HindsightSessionState | undefined;
509
- getMnemopiSessionState(): MnemopiSessionState | undefined;
510
- /** TTSR manager for time-traveling stream rules */
511
- get ttsrManager(): TtsrManager | undefined;
512
- /** Secret obfuscator, when secrets are configured; /share redaction reuses it. */
513
- get obfuscator(): SecretObfuscator | undefined;
514
- /** Whether a TTSR abort is pending (stream was aborted to inject rules) */
515
- get isTtsrAbortPending(): boolean;
516
- /** Whether an expected internal plan-mode abort is pending. Consumed by
517
- * `#handleAgentEvent` to stamp `SILENT_ABORT_MARKER` on the next aborted
518
- * assistant message_end; callers clear it in `finally`. */
519
- get isPlanInternalAbortPending(): boolean;
520
- /** Arm the silent-abort marker for the next aborted assistant message_end.
521
- * Caller MUST clear via `clearPlanInternalAbortPending()` in a `finally`
522
- * to guarantee no leak. */
523
- markPlanInternalAbortPending(): void;
524
- /** Unconditionally clear the silent-abort flag. Idempotent: safe when the
525
- * flag was never set OR was already consumed by `#handleAgentEvent`. */
526
- clearPlanInternalAbortPending(): void;
527
- getAsyncJobSnapshot(options?: {
528
- recentLimit?: number;
529
- }): AsyncJobSnapshot | null;
530
- /**
531
- * Emit a UI-only notice to the session. Surfaces in interactive mode as a
532
- * `showWarning` / `showError` / `showStatus` line; non-interactive modes
533
- * receive the event through the normal subscribe stream.
534
- *
535
- * Notices are NOT added to agent state and never reach the LLM — use this
536
- * for out-of-band conditions the user should see but the model shouldn't
537
- * react to (e.g. background queue flush failures).
538
- */
539
- emitNotice(level: "info" | "warning" | "error", message: string, source?: string): void;
540
- /**
541
- * Subscribe to agent events.
542
- * Session persistence is handled internally (saves messages on message_end).
543
- * Multiple listeners can be added. Returns unsubscribe function for this listener.
544
- */
545
- subscribe(listener: AgentSessionEventListener): () => void;
546
- subscribeCommandMetadataChanged(listener: CommandMetadataChangedListener): () => void;
547
- /** True once dispose() has begun; deferred background work (e.g. the deferred
548
- * MCP discovery task in sdk.ts) must not touch the session past this point. */
549
- get isDisposed(): boolean;
550
- markMovedFromEmptySessionFile(sessionFile: string): void;
551
- /**
552
- * Synchronously mark the session as disposing so new work is rejected
553
- * immediately: eval starts throw, queued asides are dropped, and the
554
- * aside provider is detached. Idempotent; `dispose()` runs it first.
555
- *
556
- * Wrappers that await other teardown before delegating to `dispose()` MUST
557
- * call this before their first await — otherwise work started in that async
558
- * gap slips past the disposal guards.
559
- */
560
- beginDispose(): void;
561
- dispose(options?: AgentSessionDisposeOptions): Promise<void>;
562
- freshSession(): FreshSessionResult | undefined;
563
- /** Full agent state */
564
- get state(): AgentState;
565
- /** Current model (may be undefined if not yet selected) */
566
- get model(): Model | undefined;
567
- /** Effective thinking level applied to the agent (the resolved level when `auto`). */
568
- get thinkingLevel(): ThinkingLevel | undefined;
569
- /** The selector the user configured: `auto` when auto mode is active, else the effective level. */
570
- configuredThinkingLevel(): ConfiguredThinkingLevel | undefined;
571
- /** True when `auto` thinking mode is active. */
572
- get isAutoThinking(): boolean;
573
- /** The level `auto` resolved to for the current turn (undefined until classified). */
574
- autoResolvedThinkingLevel(): Effort | undefined;
575
- /** Live per-family service tiers (OpenAI / Anthropic / Google). */
576
- get serviceTierByFamily(): ServiceTierByFamily;
577
- /** Whether agent is currently streaming a response */
578
- get isStreaming(): boolean;
579
- get isAborting(): boolean;
580
- /** Wait until streaming and deferred recovery work are fully settled. */
581
- waitForIdle(): Promise<void>;
582
- drainAsyncJobDeliveriesForAcp(options?: {
583
- timeoutMs?: number;
584
- }): Promise<boolean>;
585
- /** Most recent assistant message in agent state. */
586
- getLastAssistantMessage(): AssistantMessage | undefined;
587
- /** Current effective system prompt blocks (includes any per-turn extension modifications) */
588
- get systemPrompt(): string[];
589
- /** Current retry attempt (0 if not retrying) */
590
- get retryAttempt(): number;
591
- /**
592
- * Get the names of currently active tools.
593
- * Returns the names of tools currently set on the agent.
594
- */
595
- getActiveToolNames(): string[];
596
- /** Whether the edit tool is registered in this session. */
597
- get hasEditTool(): boolean;
598
- /**
599
- * Get a tool by name from the registry.
600
- */
601
- getToolByName(name: string): AgentTool | undefined;
602
- /** True when the current registry entry for `name` came from a built-in factory. */
603
- hasBuiltInTool(name: string): boolean;
604
- /**
605
- * Get all configured tool names (built-in via --tools or default, plus custom tools).
606
- */
607
- getAllToolNames(): string[];
608
- isMCPDiscoveryEnabled(): boolean;
609
- /**
610
- * Flip MCP discovery on after deferred discovery learns the real tool count.
611
- * UI sessions resolve `tools.discoveryMode: "auto"` before MCP servers
612
- * connect, so a large MCP toolset discovered later must be able to upgrade
613
- * the session from the force-activate path to the discovery path. One-way:
614
- * discovery is never downgraded mid-session.
615
- */
616
- enableMCPDiscovery(): void;
617
- getSelectedMCPToolNames(): string[];
618
- activateDiscoveredMCPTools(toolNames: string[]): Promise<string[]>;
619
- isToolDiscoveryEnabled(): boolean;
620
- getDiscoverableTools(filter?: {
621
- source?: DiscoverableTool["source"];
622
- }): DiscoverableTool[];
623
- getDiscoverableToolSearchIndex(): DiscoverableToolSearchIndex;
624
- getSelectedDiscoveredToolNames(): string[];
625
- activateDiscoveredTools(toolNames: string[]): Promise<string[]>;
626
- /**
627
- * Reload the SSH tool from disk-backed capability discovery and make the
628
- * refreshed definition visible to the next model call without restarting.
629
- */
630
- refreshSshTool(options?: {
631
- activateIfAvailable?: boolean;
632
- }): Promise<void>;
633
- /**
634
- * Set active tools by name.
635
- * Only tools in the registry can be enabled. Unknown tool names are ignored.
636
- * Also rebuilds the system prompt to reflect the new tool set.
637
- * Changes take effect before the next model call.
638
- */
639
- setActiveToolsByName(toolNames: string[]): Promise<void>;
640
- /** Rebuild the base system prompt using the current active tool set. */
641
- refreshBaseSystemPrompt(): Promise<void>;
642
- /**
643
- * Replace MCP tools in the registry and recompute the visible MCP tool set immediately.
644
- * This allows /mcp add/remove/reauth to take effect without restarting the session.
645
- *
646
- * @param mcpTools The new MCP tools to register.
647
- * @param options.activateAll When true, force-activates every newly registered MCP tool
648
- * regardless of prior selection state. Used when an ACP client provisions MCP servers
649
- * for a session where MCP discovery is disabled.
650
- */
651
- refreshMCPTools(mcpTools: CustomTool[], options?: {
652
- activateAll?: boolean;
653
- }): Promise<void>;
654
- /**
655
- * Replace RPC host-owned tools and refresh the active tool set before the next model call.
656
- */
657
- refreshRpcHostTools(rpcTools: AgentTool[]): Promise<void>;
658
- /** Whether auto-compaction is currently running */
659
- get isCompacting(): boolean;
660
- /**
661
- * Whether idle-flush tasks, auto-continuations, or other short-lived
662
- * post-prompt work are pending. True in the brief window after
663
- * `session.prompt()` returns but before a scheduled background delivery
664
- * (e.g. an async-job result) has finished its own streaming turn.
665
- * Loop-mode and similar auto-submit paths should treat this as a block
666
- * to avoid racing against the delivery turn.
667
- */
668
- get hasPostPromptWork(): boolean;
669
- /** All messages including custom types like BashExecutionMessage */
670
- get messages(): AgentMessage[];
671
- /** Latest image attachments addressable by tools as `Image #N` or `attachment://N`. */
672
- getImageAttachments(): {
673
- label: string;
674
- uri: string;
675
- image: ImageContent;
676
- }[];
677
- buildDisplaySessionContext(): SessionContext;
678
- /**
679
- * Transcript for TUI display. Full history is kept for export/resume-style
680
- * callers; live chat can collapse compacted history to keep the hot render
681
- * surface bounded. Display-only — NEVER feed the result to
682
- * `agent.replaceMessages` or a provider.
683
- */
684
- buildTranscriptSessionContext(options?: Pick<BuildSessionContextOptions, "collapseCompactedHistory">): SessionContext;
685
- /** Convert session messages using the same pre-LLM pipeline as the active session. */
686
- convertMessagesToLlm(messages: AgentMessage[], signal?: AbortSignal): Promise<Message[]>;
687
- /** Apply session-level stream hooks to a direct side request. */
688
- prepareSimpleStreamOptions(options: SimpleStreamOptions, provider?: string): SimpleStreamOptions;
689
- /** Current steering mode */
690
- get steeringMode(): "all" | "one-at-a-time";
691
- /** Current follow-up mode */
692
- get followUpMode(): "all" | "one-at-a-time";
693
- /** Current interrupt mode */
694
- get interruptMode(): "immediate" | "wait";
695
- /** Current session file path, or undefined if sessions are disabled */
696
- get sessionFile(): string | undefined;
697
- /** Current session ID */
698
- get sessionId(): string;
699
- getEvalSessionId(): string | null;
700
- /** Current session display name, if set */
701
- get sessionName(): string | undefined;
702
- /** Scoped models for cycling (from --models flag) */
703
- get scopedModels(): ReadonlyArray<{
704
- model: Model;
705
- thinkingLevel?: ThinkingLevel;
706
- }>;
707
- /** Prompt templates */
708
- getPlanModeState(): PlanModeState | undefined;
709
- setPlanModeState(state: PlanModeState | undefined): void;
710
- getGoalModeState(): GoalModeState | undefined;
711
- setGoalModeState(state: GoalModeState | undefined): void;
712
- get goalRuntime(): GoalRuntime;
713
- markPlanReferenceSent(): void;
714
- setPlanReferencePath(path: string): void;
715
- getPlanReferencePath(): string;
716
- get clientBridge(): ClientBridge | undefined;
717
- setClientBridge(bridge: ClientBridge | undefined): void;
718
- getCheckpointState(): CheckpointState | undefined;
719
- getLastCompletedRewind(): CompletedRewindState | undefined;
720
- setCheckpointState(state: CheckpointState | undefined): void;
721
- /**
722
- * Inject the plan mode context message into the conversation history.
723
- */
724
- sendPlanModeContext(options?: {
725
- deliverAs?: "steer" | "followUp" | "nextTurn";
726
- }): Promise<void>;
727
- sendGoalModeContext(options?: {
728
- deliverAs?: "steer" | "followUp" | "nextTurn";
729
- }): Promise<void>;
730
- resolveRoleModel(role: string): Model | undefined;
731
- /**
732
- * Resolve a role to its model AND thinking level.
733
- * Unlike resolveRoleModel(), this preserves the thinking level suffix
734
- * from role configuration (e.g., "anthropic/claude-sonnet-4-5:xhigh").
735
- */
736
- resolveRoleModelWithThinking(role: string): ResolvedModelRoleValue;
737
- get promptTemplates(): ReadonlyArray<PromptTemplate>;
738
- /** Replace file-based slash commands used for prompt expansion. */
739
- setSlashCommands(slashCommands: FileSlashCommand[]): void;
740
- /** Custom commands (TypeScript slash commands and MCP prompts) */
741
- get customCommands(): ReadonlyArray<LoadedCustomCommand>;
742
- /** MCP prompt commands only, for command-list metadata. */
743
- get mcpPromptCommands(): ReadonlyArray<LoadedCustomCommand>;
744
- /** Update the MCP prompt commands list. Called when server prompts are (re)loaded. */
745
- setMCPPromptCommands(commands: LoadedCustomCommand[]): void;
746
- /**
747
- * Send a prompt to the agent.
748
- * - Handles extension commands (registered via pi.registerCommand) immediately, even during streaming
749
- * - Expands file-based prompt templates by default
750
- * - During streaming, queues via steer() or followUp() based on streamingBehavior option
751
- * - Validates model and API key before sending (when not streaming)
752
- * @throws Error if streaming and no streamingBehavior specified
753
- * @throws Error if no model selected or no API key available (when not streaming)
754
- */
755
- /**
756
- * Returns `false` when the command was fully handled locally (extension or
757
- * custom-TS command consumed without calling the LLM). Returns `true` when
758
- * the prompt was forwarded to the agent — either directly or queued as a
759
- * steer/follow-up. Callers that render a UI or manage turn lifecycle (e.g.
760
- * the ACP agent) use this to know whether to expect an `agent_end` event.
761
- */
762
- prompt(text: string, options?: PromptOptions): Promise<boolean>;
763
- promptCustomMessage<T = unknown>(message: Pick<CustomMessage<T>, "customType" | "content" | "display" | "details" | "attribution">, options?: Pick<PromptOptions, "streamingBehavior" | "toolChoice"> & {
764
- queueChipText?: string;
765
- queueOnly?: boolean;
766
- }): Promise<void>;
767
- /**
768
- * Queue a steering message to interrupt the agent mid-run.
769
- */
770
- steer(text: string, images?: ImageContent[]): Promise<void>;
771
- /**
772
- * Queue a follow-up message to process after the agent would otherwise stop.
773
- */
774
- followUp(text: string, images?: ImageContent[]): Promise<void>;
775
- queueDeferredMessage(message: CustomMessage): void;
776
- /**
777
- * Send a custom message to the session. Creates a CustomMessageEntry.
778
- *
779
- * Handles three cases:
780
- * - Streaming: queue as steer/follow-up or store for next turn
781
- * - Not streaming + triggerTurn: appends to state/session, starts new turn unless the client cannot own it
782
- * - Not streaming + no trigger: appends to state/session, no turn
783
- *
784
- * @returns true iff this call synchronously started a new turn (awaited
785
- * `agent.prompt`); false when the message was queued/appended without a turn
786
- * — including when `triggerTurn` is downgraded because the client defers
787
- * agent-initiated turns. Callers that must mirror the resulting `agent_end`
788
- * use this to avoid acting on a turn that never ran.
789
- */
790
- sendCustomMessage<T = unknown>(message: Pick<CustomMessage<T>, "customType" | "content" | "display" | "details" | "attribution">, options?: {
791
- triggerTurn?: boolean;
792
- deliverAs?: "steer" | "followUp" | "nextTurn";
793
- queueChipText?: string;
794
- }): Promise<boolean>;
795
- /**
796
- * Send a user message to the agent.
797
- * When deliverAs is set, queue the message instead of starting a new turn.
798
- *
799
- * @param content User message content (string or content array)
800
- * @param options.deliverAs Delivery mode: "steer" or "followUp"
801
- */
802
- sendUserMessage(content: string | (TextContent | ImageContent)[], options?: {
803
- deliverAs?: "steer" | "followUp";
804
- }): Promise<void>;
805
- /** Clear queued messages and return the user-restorable ones (text plus any attached images).
806
- * Only user-authored messages (plain user turns, `attribution:"user"` custom like `/skill`) are
807
- * returned for editor restore. Other queued messages stay in the agent-core queues so a continuing
808
- * stream still delivers them — EXCEPT on `forInterrupt` (Esc+abort), where only advisor cards are
809
- * kept (abort()'s #extractQueuedAdvisorCards preserves them as visible advice) and every other
810
- * non-user steer (hidden goal/plan/budget, IRC/extension asides) is dropped, so abort()'s
811
- * #drainStrandedQueuedMessages can't auto-resume the run the user just interrupted (the drain only
812
- * fires while agent.hasQueuedMessages()). Plain Alt+Up dequeue preserves those non-user steers. */
813
- clearQueue(options?: {
814
- forInterrupt?: boolean;
815
- }): {
816
- steering: RestoredQueuedMessage[];
817
- followUp: RestoredQueuedMessage[];
818
- };
819
- /** Number of pending displayable messages (includes steering, follow-up, and next-turn messages).
820
- * Reflects actual queued work (advisor cards included) — feeds hasPendingMessages()/RPC and the
821
- * empty-submit abort gate. The user-restorable subset is surfaced by getQueuedMessages()/clearQueue(). */
822
- get queuedMessageCount(): number;
823
- getQueuedMessages(): {
824
- steering: readonly string[];
825
- followUp: readonly string[];
826
- };
827
- /**
828
- * Pop the last queued message (steering first, then follow-up).
829
- * Used by dequeue keybinding to restore messages to editor one at a time.
830
- * Steps over agent-authored queued messages (advisor cards, hidden/internal steers).
831
- */
832
- popLastQueuedMessage(): RestoredQueuedMessage | undefined;
833
- get skillsSettings(): SkillsSettings | undefined;
834
- /** Skills loaded by SDK (empty if --no-skills or skills: [] was passed) */
835
- get skills(): readonly Skill[];
836
- /** Skill loading warnings captured by SDK */
837
- get skillWarnings(): readonly SkillWarning[];
838
- getTodoPhases(): TodoPhase[];
839
- setTodoPhases(phases: TodoPhase[]): void;
840
- /** Currently-applied {@link TITLE_SYSTEM.md} override, or undefined when the
841
- * bundled prompt is in effect. Consumed by {@link InteractiveMode} so the
842
- * first-input title path and the replan refresh share one source. */
843
- get titleSystemPrompt(): string | undefined;
844
- /** Replace the title-generation system prompt override. Called by
845
- * {@link InteractiveMode.refreshTitleSystemPrompt} after the session cwd
846
- * changes (e.g. `/move` relocation) so the next replan refresh resolves
847
- * against the destination project's override. */
848
- setTitleSystemPrompt(prompt: string | undefined): void;
849
- /**
850
- * Abort current operation and wait for agent to become idle.
851
- *
852
- * `reason` (e.g. `USER_INTERRUPT_LABEL`) rides the agent's `AbortController`
853
- * and surfaces verbatim on the aborted assistant message's `errorMessage`, so
854
- * the transcript can distinguish a deliberate user interrupt from an opaque
855
- * abort. Omit it for internal/lifecycle aborts.
856
- */
857
- abort(options?: {
858
- goalReason?: "interrupted" | "internal";
859
- reason?: string;
860
- /** Internal `/compact` startup keeps the manual-compaction marker alive while aborting the active turn. */
861
- preserveCompaction?: boolean;
862
- }): Promise<void>;
863
- /**
864
- * Start a new session, optionally with initial messages and parent tracking.
865
- * Clears all messages and starts a new session.
866
- * Listeners are preserved and will continue receiving events.
867
- * @param options - Optional initial messages and parent session path
868
- * @returns true if completed, false if cancelled by hook
869
- */
870
- newSession(options?: NewSessionOptions): Promise<boolean>;
871
- /**
872
- * Set a display name for the current session.
873
- */
874
- setSessionName(name: string, source?: "auto" | "user", trigger?: SessionNameTrigger): Promise<boolean>;
875
- /**
876
- * Fork the current session, creating a new session file with the exact same state.
877
- * Copies all entries and artifacts to the new session.
878
- * Unlike newSession(), this preserves all messages in the agent state.
879
- * @returns true if completed, false if cancelled by hook or not persisting
880
- */
881
- fork(): Promise<boolean>;
882
- /**
883
- * Set model directly.
884
- * Validates that a credential source is configured (synchronously, without
885
- * refreshing OAuth or running command-backed key programs). The active
886
- * session switches by default; when `currentContextTokens` is provided and
887
- * exceeds the refreshed candidate's context window, the live switch is
888
- * skipped while role persistence still runs. Returns whether the active
889
- * model actually switched, computed against the refreshed metadata so
890
- * dynamic providers (e.g. llama.cpp) honor their post-load contextWindow.
891
- * @throws Error if no API key available for the model
892
- */
893
- setModel(model: Model, role?: string, options?: {
894
- selector?: string;
895
- thinkingLevel?: ThinkingLevel;
896
- persist?: boolean;
897
- currentContextTokens?: number;
898
- }): Promise<{
899
- switched: boolean;
900
- }>;
901
- /**
902
- * Set model temporarily (for this session only).
903
- * Validates that a credential source is configured (synchronously, without
904
- * refreshing OAuth or running command-backed key programs), saves to session
905
- * log but NOT to settings.
906
- * @throws Error if no API key available for the model
907
- */
908
- setModelTemporary(model: Model, thinkingLevel?: ConfiguredThinkingLevel, options?: {
909
- ephemeral?: boolean;
910
- }): Promise<void>;
911
- /**
912
- * Cycle to next/previous model.
913
- * Uses scoped models (from --models flag) if available, otherwise all available models.
914
- * @param direction - "forward" (default) or "backward"
915
- * @returns The new model info, or undefined if only one model available
916
- */
917
- cycleModel(direction?: "forward" | "backward"): Promise<ModelCycleResult | undefined>;
918
- /**
919
- * Resolve the configured role models in the given order plus the index of
920
- * the currently active one. Roles that have no configured model, or whose
921
- * configured model is not currently available, are skipped. The `default`
922
- * role falls back to the active model when no explicit assignment exists.
923
- *
924
- * Returns `undefined` only when there is no current model or no available
925
- * models at all; an empty `models` array is never returned (callers should
926
- * still guard on `models.length`).
927
- */
928
- getRoleModelCycle(roleOrder: readonly string[]): RoleModelCycle | undefined;
929
- /**
930
- * Apply a resolved role model as the active model without changing global
931
- * settings. Shared with role cycling and the plan-approval model slider.
932
- */
933
- applyRoleModel(entry: ResolvedRoleModel): Promise<void>;
934
- /**
935
- * Cycle through configured role models in a fixed order.
936
- * Skips missing roles and changes only the active session model.
937
- * @param roleOrder - Order of roles to cycle through (e.g., ["slow", "default", "smol"])
938
- * @param direction - "forward" (default) or "backward"
939
- */
940
- cycleRoleModels(roleOrder: readonly string[], direction?: "forward" | "backward"): Promise<RoleModelCycleResult | undefined>;
941
- /**
942
- * Get all available models with valid API keys, filtered by `enabledModels` when configured.
943
- * See {@link filterAvailableModelsByEnabledPatterns} for supported pattern forms and limitations.
944
- */
945
- getAvailableModels(): Model[];
946
- /**
947
- * Set the thinking level. `auto` enables per-turn classification; the selector
948
- * itself is never written to the session log, but resolved concrete levels are
949
- * persisted when real user turns are classified so resumed sessions keep the
950
- * last resolved effort instead of reverting to pending auto.
951
- */
952
- setThinkingLevel(level: ConfiguredThinkingLevel | undefined, persist?: boolean): void;
953
- /**
954
- * Cycle to next thinking level: off → auto → minimal..xhigh → off.
955
- * @returns New selector, or undefined if model doesn't support thinking
956
- */
957
- cycleThinkingLevel(): ConfiguredThinkingLevel | undefined;
958
- /**
959
- * True when the currently selected model's family is set to `priority` — the
960
- * `/fast` on/off state for the active model. Returns false when no model is
961
- * selected or the model exposes no service-tier family (e.g. Fireworks, which
962
- * has its own Providers › Fireworks Tier toggle).
963
- *
964
- * For "is priority actually applied to the next request?" use
965
- * {@link isFastModeActive} instead.
966
- */
967
- isFastModeEnabled(): boolean;
968
- /**
969
- * True when `priority` is actually realized on the wire for the currently
970
- * selected model (OpenAI/Google `service_tier`, direct Anthropic fast mode,
971
- * or Fireworks priority). Returns false for tiers the active model can't
972
- * realize and when no model is selected.
973
- */
974
- isFastModeActive(): boolean;
975
- /** Set one family's tier (or clear it with `undefined`); persists the change. */
976
- setServiceTierFamily(family: ServiceTierFamily, tier: ServiceTier | undefined): void;
977
- /**
978
- * `/fast on|off` targets the family of the currently selected model: it sets
979
- * (or clears) that family's `priority` tier. Models without a service-tier
980
- * family (Fireworks, or providers with no tier knob) have nothing to toggle.
981
- */
982
- setFastMode(enabled: boolean): void;
983
- toggleFastMode(): boolean;
984
- /**
985
- * Get available thinking levels for current model.
986
- */
987
- getAvailableThinkingLevels(): ReadonlyArray<Effort>;
988
- /**
989
- * Set steering mode.
990
- * Saves to settings.
991
- */
992
- setSteeringMode(mode: "all" | "one-at-a-time"): void;
993
- /**
994
- * Set follow-up mode.
995
- * Saves to settings.
996
- */
997
- setFollowUpMode(mode: "all" | "one-at-a-time"): void;
998
- /**
999
- * Set interrupt mode.
1000
- * Saves to settings.
1001
- */
1002
- setInterruptMode(mode: "immediate" | "wait"): void;
1003
- /**
1004
- * Strip image content blocks from every message on the current branch and
1005
- * persist the rewrite. Walks `SessionManager.getBranch()` in place — both
1006
- * `SessionMessageEntry.message` and `CustomMessageEntry.content` arrays
1007
- * are mutated, then `rewriteEntries` durably commits the new shape. The
1008
- * agent's runtime view is rebuilt from the freshly-mutated entries so any
1009
- * provider sessions caching message identity (Codex Responses) are torn
1010
- * down to force a clean replay on the next turn.
1011
- *
1012
- * No-op when the branch carries no images; returns `{ removed: 0 }` and
1013
- * skips the disk rewrite.
1014
- */
1015
- dropImages(): Promise<{
1016
- removed: number;
1017
- }>;
1018
- /**
1019
- * Surgically reduce context by dropping heavy content ("shake").
1020
- *
1021
- * - `images` delegates to {@link dropImages}.
1022
- * - `elide` replaces whole tool-call results and large fenced/XML blocks
1023
- * with short placeholders that embed an `artifact://` recovery link.
1024
- *
1025
- * Mutates the branch in place, persists via `rewriteEntries`, replays the
1026
- * rebuilt context through the agent, and tears down provider sessions that
1027
- * cache message identity — same rewrite contract as {@link dropImages}.
1028
- *
1029
- * No-op (zero counts) when nothing is eligible.
1030
- */
1031
- shake(mode: ShakeMode, opts?: {
1032
- config?: ShakeConfig;
1033
- signal?: AbortSignal;
1034
- }): Promise<ShakeResult>;
1035
- /**
1036
- * Manually compact the session context.
1037
- * Aborts current agent operation first.
1038
- * @param customInstructions Optional instructions for the compaction summary
1039
- * @param options Optional callbacks for completion/error handling
1040
- */
1041
- compact(customInstructions?: string, options?: CompactOptions): Promise<CompactionResult>;
1042
- /**
1043
- * Cancel in-progress context maintenance (manual compaction, auto-compaction, or auto-handoff).
1044
- */
1045
- abortCompaction(): void;
1046
- /** Trigger idle compaction through the auto-compaction flow (with UI events). */
1047
- runIdleCompaction(): Promise<void>;
1048
- /**
1049
- * Cancel in-progress branch summarization.
1050
- */
1051
- abortBranchSummary(): void;
1052
- /**
1053
- * Cancel in-progress handoff generation.
1054
- */
1055
- abortHandoff(): void;
1056
- /**
1057
- * Check if handoff generation is in progress.
1058
- */
1059
- get isGeneratingHandoff(): boolean;
1060
- /**
1061
- * Generate a handoff document with a oneshot LLM call, then start a new session with it.
1062
- *
1063
- * @param customInstructions Optional focus for the handoff document
1064
- * @param options Handoff execution options
1065
- * @returns The handoff document text, or undefined if cancelled/failed
1066
- */
1067
- handoff(customInstructions?: string, options?: SessionHandoffOptions): Promise<HandoffResult | undefined>;
1068
- /**
1069
- * Toggle auto-compaction setting.
1070
- */
1071
- setAutoCompactionEnabled(enabled: boolean): void;
1072
- /** Whether auto-compaction is enabled */
1073
- get autoCompactionEnabled(): boolean;
1074
- /**
1075
- * Cancel in-progress retry.
1076
- */
1077
- abortRetry(): void;
1078
- /** Whether auto-retry is currently in progress */
1079
- get isRetrying(): boolean;
1080
- /** Whether auto-retry is enabled */
1081
- get autoRetryEnabled(): boolean;
1082
- /**
1083
- * Toggle auto-retry setting.
1084
- */
1085
- setAutoRetryEnabled(enabled: boolean): void;
1086
- /**
1087
- * Manually retry the last failed assistant turn.
1088
- * Removes the error message from agent state and re-attempts with a fresh retry budget.
1089
- * @returns true if retry was initiated, false if no failed turn to retry or agent is busy
1090
- */
1091
- retry(): Promise<boolean>;
1092
- /**
1093
- * Execute a bash command.
1094
- * Adds result to agent context and session.
1095
- * @param command The bash command to execute
1096
- * @param onChunk Optional streaming callback for output
1097
- * @param options.excludeFromContext If true, command output won't be sent to LLM (!! prefix)
1098
- * @param options.useUserShell If true, allow caller to request configured user-shell routing
1099
- */
1100
- executeBash(command: string, onChunk?: (chunk: string) => void, options?: {
1101
- excludeFromContext?: boolean;
1102
- useUserShell?: boolean;
1103
- }): Promise<BashResult>;
1104
- /**
1105
- * Record a bash execution result in session history.
1106
- * Used by executeBash and by extensions that handle bash execution themselves.
1107
- */
1108
- recordBashResult(command: string, result: BashResult, options?: {
1109
- excludeFromContext?: boolean;
1110
- }): void;
1111
- /**
1112
- * Cancel running bash command.
1113
- */
1114
- abortBash(): void;
1115
- /** Whether a bash command is currently running */
1116
- get isBashRunning(): boolean;
1117
- /** Whether there are pending bash messages waiting to be flushed */
1118
- get hasPendingBashMessages(): boolean;
1119
- /**
1120
- * Execute Python code in the shared kernel.
1121
- * Uses the same kernel session as eval's Python backend, allowing collaborative editing.
1122
- * @param code The Python code to execute
1123
- * @param onChunk Optional streaming callback for output
1124
- * @param options.excludeFromContext If true, execution won't be sent to LLM ($$ prefix)
1125
- */
1126
- executePython(code: string, onChunk?: (chunk: string) => void, options?: {
1127
- excludeFromContext?: boolean;
1128
- }): Promise<PythonResult>;
1129
- assertEvalExecutionAllowed(): void;
1130
- /**
1131
- * Track Python work started outside AgentSession.executePython so dispose can await and abort it too.
1132
- */
1133
- trackEvalExecution<T>(execution: Promise<T>, abortController: AbortController): Promise<T>;
1134
- /**
1135
- * Record a Python execution result in session history.
1136
- */
1137
- recordPythonResult(code: string, result: PythonResult, options?: {
1138
- excludeFromContext?: boolean;
1139
- }): void;
1140
- /**
1141
- * Cancel running Python execution.
1142
- */
1143
- abortEval(): void;
1144
- /** Whether a Python execution is currently running */
1145
- get isEvalRunning(): boolean;
1146
- /** Whether there are pending Python messages waiting to be flushed */
1147
- get hasPendingPythonMessages(): boolean;
1148
- /**
1149
- * Surfaces (and consumes) pending IRC incoming records before the next model
1150
- * step can inject them automatically.
1151
- *
1152
- * The inbox tool injects the formatted body into the tool result, so the
1153
- * model sees it once via the result. Leaving the record in either pending
1154
- * IRC queue would deliver it a second time at the next step boundary —
1155
- * including on `peek`, which is why peek also drains here.
1156
- */
1157
- drainPendingIrcInboxMessages(agentId: string): IrcMessage[];
1158
- /**
1159
- * Deliver an IRC message into this session (recipient side; called by the
1160
- * IrcBus). Emits the `irc_message` session event for UI cards and injects
1161
- * the rendered message into the model's context as an `irc:incoming`
1162
- * custom message:
1163
- *
1164
- * - mid-turn → queued on the aside channel and folded in at the next step
1165
- * boundary (non-interrupting, like async-result deliveries) → "injected";
1166
- * - idle → starts a real turn with the message so the recipient wakes
1167
- * → "woken".
1168
- *
1169
- * Never blocks on the recipient's turn: the wake turn is fire-and-forget.
1170
- *
1171
- * When the sender expects a reply (`send await:true`) and this session is
1172
- * mid-turn with async execution disabled, the next step boundary may be
1173
- * gated on the sender's own batch finishing (blocking task spawns), so a
1174
- * real reply turn can never happen in time. In that case an ephemeral
1175
- * side-channel auto-reply is generated from the current context (the old
1176
- * `respondAsBackground` path) and sent back over the bus on this agent's
1177
- * behalf.
1178
- */
1179
- deliverIrcMessage(msg: IrcMessage, opts?: {
1180
- expectsReply?: boolean;
1181
- }): Promise<"injected" | "woken">;
1182
- /**
1183
- * Emit an IRC relay observation event on this session for UI rendering only.
1184
- * Does not persist the record to history. Called by the IrcBus to surface
1185
- * agent↔agent traffic on the main session.
1186
- */
1187
- emitIrcRelayObservation(record: CustomMessage): void;
1188
- /**
1189
- * Run a single ephemeral side-channel turn against this session's current
1190
- * model + system prompt + history. The main turn's tool catalog is sent
1191
- * to preserve the prompt cache, but the model is reminded not to call
1192
- * tools and any tool calls are discarded. The side request
1193
- * does not block on, or interfere with, any in-flight main turn. The
1194
- * session's history and persisted state are NOT modified by this call.
1195
- *
1196
- * Used by `BtwController` (`/btw`) and `OmfgController` (`/omfg`) to share
1197
- * the snapshot + stream pipeline. The snapshot includes any in-flight
1198
- * streaming assistant text so the model sees the half-finished response
1199
- * rather than missing context.
1200
- */
1201
- runEphemeralTurn(args: {
1202
- promptText: string;
1203
- onTextDelta?: (delta: string) => void;
1204
- signal?: AbortSignal;
1205
- dedupeReply?: boolean;
1206
- }): Promise<{
1207
- replyText: string;
1208
- assistantMessage: AssistantMessage;
1209
- }>;
1210
- /**
1211
- * Reload the current session from disk.
1212
- *
1213
- * Intended for extension commands and headless modes to re-read the current session
1214
- * file and re-emit session_switch hooks.
1215
- */
1216
- reload(): Promise<void>;
1217
- /**
1218
- * Switch to a different session file.
1219
- * Aborts current operation, loads messages, restores model/thinking.
1220
- * Listeners are preserved and will continue receiving events.
1221
- * @returns true if switch completed, false if cancelled by hook
1222
- */
1223
- switchSession(sessionPath: string): Promise<boolean>;
1224
- /**
1225
- * Create a branch from a specific entry.
1226
- * Emits before_branch/branch session events to hooks.
1227
- *
1228
- * @param entryId ID of the entry to branch from
1229
- * @returns Object with:
1230
- * - selectedText: The text of the selected user message (for editor pre-fill)
1231
- * - cancelled: True if a hook cancelled the branch
1232
- */
1233
- branch(entryId: string): Promise<{
1234
- selectedText: string;
1235
- cancelled: boolean;
1236
- }>;
1237
- branchFromBtw(question: string, assistantMessage: AssistantMessage): Promise<{
1238
- cancelled: boolean;
1239
- sessionFile: string | undefined;
1240
- }>;
1241
- /**
1242
- * Navigate to a different node in the session tree.
1243
- * Unlike branch() which creates a new session file, this stays in the same file.
1244
- *
1245
- * @param targetId The entry ID to navigate to
1246
- * @param options.summarize Whether user wants to summarize abandoned branch
1247
- * @param options.customInstructions Custom instructions for summarizer
1248
- * @returns Result with editorText (if user message) and cancelled status
1249
- */
1250
- navigateTree(targetId: string, options?: {
1251
- summarize?: boolean;
1252
- customInstructions?: string;
1253
- }): Promise<{
1254
- editorText?: string;
1255
- cancelled: boolean;
1256
- aborted?: boolean;
1257
- summaryEntry?: BranchSummaryEntry;
1258
- /** Raw session context built during navigation — pass to renderInitialMessages to skip a second O(N) walk. */
1259
- sessionContext?: SessionContext;
1260
- }>;
1261
- /**
1262
- * Get all user messages from session for branch selector.
1263
- */
1264
- getUserMessagesForBranching(): Array<{
1265
- entryId: string;
1266
- text: string;
1267
- }>;
1268
- /**
1269
- * Get session statistics.
1270
- */
1271
- getSessionStats(): SessionStats;
1272
- /**
1273
- * Get current context usage statistics.
1274
- * Uses the last assistant message's usage data when available,
1275
- * otherwise estimates tokens for all messages.
1276
- */
1277
- getContextBreakdown(options?: {
1278
- contextWindow?: number;
1279
- pendingMessages?: AgentMessage[];
1280
- }): ContextUsageBreakdown | undefined;
1281
- getContextUsage(options?: {
1282
- contextWindow?: number;
1283
- }): ContextUsage | undefined;
1284
- /**
1285
- * Monotonic counter that changes whenever the in-flight pending context
1286
- * snapshot is set or cleared. Status-line context memoization keys on this so
1287
- * a value computed mid-turn cannot persist after the turn ends/aborts.
1288
- */
1289
- get contextUsageRevision(): number;
1290
- fetchUsageReports(signal?: AbortSignal): Promise<UsageReport[] | null>;
1291
- /**
1292
- * Redeem one saved Codex rate-limit reset for a specific account, injecting
1293
- * the provider base URL like {@link AgentSession.fetchUsageReports}. Powers
1294
- * the `/usage reset` command and auto-redeem. Never throws for business
1295
- * outcomes — inspect the returned `code`.
1296
- */
1297
- redeemResetCredit(target: ResetCreditTarget, signal?: AbortSignal): Promise<ResetCreditRedeemOutcome>;
1298
- /**
1299
- * List saved Codex rate-limit resets per stored account, fetched live from
1300
- * the dedicated credits endpoint (bypasses the usage cache). Powers the
1301
- * `/usage reset` account selector.
1302
- */
1303
- listResetCredits(signal?: AbortSignal): Promise<ResetCreditAccountStatus[]>;
1304
- /**
1305
- * Export session to HTML.
1306
- * @param outputPath Optional output path (defaults to session directory)
1307
- * @returns Path to exported file
1308
- */
1309
- exportToHtml(outputPath?: string): Promise<string>;
1310
- /**
1311
- * Get text content of last assistant message.
1312
- * Useful for /copy command.
1313
- * @returns Text content, or undefined if no assistant message exists
1314
- */
1315
- getLastAssistantText(): string | undefined;
1316
- hasCopyCandidateAssistantMessage(): boolean;
1317
- /**
1318
- * Get text content of the most recent visible handoff message.
1319
- * Fresh handoff sessions store the handoff context as a custom message, not
1320
- * an assistant message, so callers that copy the "last" message can use this
1321
- * as a fallback before the new session has an assistant response.
1322
- */
1323
- getLastVisibleHandoffText(): string | undefined;
1324
- /**
1325
- * Format the entire session as plain text for clipboard export: system
1326
- * prompt, model/thinking config, tool inventory, and the full transcript
1327
- * rendered with markdown role headings (`## User`, `## Assistant`,
1328
- * `### Tool Call`/`### Tool Result`).
1329
- */
1330
- formatSessionAsText(): string;
1331
- /**
1332
- * Dump the current session's LLM-facing request context as JSON to a
1333
- * auto-named file in `os.tmpdir()`. This is the synchronous
1334
- * `convertToLlm`-boundary snapshot — system prompt, tools (wire schemas),
1335
- * thinking/service tier, and converted messages — with no network round-trip
1336
- * and no arming flag, so advisor/side requests cannot intercept it.
1337
- *
1338
- * The file persists on disk and may contain the same raw context/secrets
1339
- * as `/dump`; treat the path accordingly.
1340
- *
1341
- * @returns the written file path, or `undefined` when there are no messages.
1342
- */
1343
- dumpLlmRequestToTmpDir(): Promise<string | undefined>;
1344
- /**
1345
- * Enable or disable the advisor for this session. The setting is overridden for the session,
1346
- * and the runtime is started or stopped to match.
1347
- *
1348
- * @returns true when the advisor is actively running after the call.
1349
- */
1350
- setAdvisorEnabled(enabled: boolean): boolean;
1351
- /**
1352
- * Toggle the advisor setting and start/stop the runtime accordingly.
1353
- *
1354
- * @returns true when the advisor is actively running after the call.
1355
- */
1356
- toggleAdvisorEnabled(): boolean;
1357
- /**
1358
- * Replace the live advisor roster from an edited `WATCHDOG.yml` (the `/advisor
1359
- * configure` save path). Swaps the configs + shared baseline, then rebuilds the
1360
- * runtimes in place so the change applies without a restart. When the advisor is
1361
- * disabled the new configs are simply stored for the next enable.
1362
- *
1363
- * @returns the number of advisors active after the rebuild.
1364
- */
1365
- applyAdvisorConfigs(advisors: AdvisorConfig[], sharedInstructions: string | undefined): number;
1366
- /**
1367
- * Whether the advisor setting is enabled for this session.
1368
- */
1369
- isAdvisorEnabled(): boolean;
1370
- /**
1371
- * Whether a live advisor agent is attached to this session. True only when
1372
- * `advisor.enabled` is set AND a model resolved for the `advisor` role AND
1373
- * the advisor applies to this agent kind — i.e. the actual runtime exists,
1374
- * not merely the setting. Drives the status-line badge and `/dump advisor`.
1375
- */
1376
- isAdvisorActive(): boolean;
1377
- /**
1378
- * The names of the tools available to advisors this session (the pool a
1379
- * `/advisor configure` editor lists). The advisor is a full agent, so this is the
1380
- * full built tool set; a tool whose optional factory returns null (e.g. lsp with
1381
- * no servers) is absent.
1382
- */
1383
- getAdvisorAvailableToolNames(): string[];
1384
- /**
1385
- * The live advisor `Agent`, or `undefined` when no advisor runtime is
1386
- * attached. Surfaced for diagnostics (`/dump advisor` already serializes
1387
- * its transcript via {@link formatAdvisorHistoryAsText}) and so callers can
1388
- * verify the advisor inherits the session's provider-shaping options
1389
- * (`streamFn`, `promptCacheKey`, `providerSessionState`, ...).
1390
- */
1391
- getAdvisorAgent(): Agent | undefined;
1392
- /**
1393
- * Return structured advisor stats for the status command and TUI panel.
1394
- */
1395
- getAdvisorStats(): AdvisorStats;
1396
- /**
1397
- * Format a concise advisor status line for ACP/text output.
1398
- */
1399
- formatAdvisorStatus(): string;
1400
- /**
1401
- * Format the advisor agent's own transcript (its system prompt, config,
1402
- * tools, and the markdown deltas it received plus its thinking/advise/read
1403
- * calls) as plain text — the advisor-side equivalent of
1404
- * {@link formatSessionAsText}. Returns null when no advisor is active.
1405
- */
1406
- formatAdvisorHistoryAsText(options?: {
1407
- compact?: boolean;
1408
- }): string | null;
1409
- /**
1410
- * Check if extensions have handlers for a specific event type.
1411
- */
1412
- hasExtensionHandlers(eventType: string): boolean;
1413
- /**
1414
- * Get the extension runner (for setting UI context and error handlers).
1415
- */
1416
- get extensionRunner(): ExtensionRunner | undefined;
1417
- }