agent-afk 5.1.0 → 5.3.0

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 (571) hide show
  1. package/dist/agent/_lib/skill-sink-channel.d.ts +3 -0
  2. package/dist/agent/_lib/trusted-skill-events.d.ts +7 -0
  3. package/dist/agent/_lib/trusted-skill-registry.d.ts +3 -0
  4. package/dist/agent/abort-graph.d.ts +20 -0
  5. package/dist/agent/afk-channel.d.ts +9 -0
  6. package/dist/agent/afk-ledger-channel.d.ts +23 -0
  7. package/dist/agent/afk-mode-gate.d.ts +14 -0
  8. package/dist/agent/auth/credential-resolver.d.ts +3 -0
  9. package/dist/agent/auth/keychain.d.ts +4 -0
  10. package/dist/agent/awareness/index.d.ts +6 -0
  11. package/dist/agent/awareness/presence.d.ts +25 -0
  12. package/dist/agent/awareness/runtime-snapshot.d.ts +13 -0
  13. package/dist/agent/awareness/runtime-source.d.ts +18 -0
  14. package/dist/agent/awareness/tool.d.ts +7 -0
  15. package/dist/agent/awareness/types.d.ts +60 -0
  16. package/dist/agent/awareness/workspace-source.d.ts +2 -0
  17. package/dist/agent/background-registry.d.ts +57 -0
  18. package/dist/agent/background-summarizer.d.ts +43 -0
  19. package/dist/agent/bg-job-log.d.ts +41 -0
  20. package/dist/agent/daemon/gates.d.ts +20 -0
  21. package/dist/agent/daemon/http-client.d.ts +6 -0
  22. package/dist/agent/daemon/idle-detector.d.ts +7 -0
  23. package/dist/agent/daemon/queue-store.d.ts +13 -0
  24. package/dist/agent/daemon/schedule-store.d.ts +20 -0
  25. package/dist/agent/daemon/scheduler.d.ts +64 -0
  26. package/dist/agent/daemon/triggers.d.ts +10 -0
  27. package/dist/agent/daemon.d.ts +29 -0
  28. package/dist/agent/dag-subagent.d.ts +28 -0
  29. package/dist/agent/dag.d.ts +26 -0
  30. package/dist/agent/default-hook-registry.d.ts +25 -0
  31. package/dist/agent/elicitation-router.d.ts +22 -0
  32. package/dist/agent/facets/derive.d.ts +7 -0
  33. package/dist/agent/facets/index.d.ts +3 -0
  34. package/dist/agent/facets/raw-input.d.ts +3 -0
  35. package/dist/agent/facets/schema.d.ts +139 -0
  36. package/dist/agent/facets/store.d.ts +9 -0
  37. package/dist/agent/gh.d.ts +41 -0
  38. package/dist/agent/hook-registry.d.ts +9 -0
  39. package/dist/agent/hooks/command-executor.d.ts +12 -0
  40. package/dist/agent/hooks/config-bridge.d.ts +7 -0
  41. package/dist/agent/hooks/config-loader.d.ts +44 -0
  42. package/dist/agent/hooks.d.ts +88 -0
  43. package/dist/agent/index.d.ts +31 -0
  44. package/dist/agent/marketplaces/install.d.ts +23 -0
  45. package/dist/agent/marketplaces/manifest.d.ts +21 -0
  46. package/dist/agent/marketplaces/remove.d.ts +11 -0
  47. package/dist/agent/marketplaces/resolve.d.ts +27 -0
  48. package/dist/agent/marketplaces/update.d.ts +38 -0
  49. package/dist/agent/mcp/client.d.ts +28 -0
  50. package/dist/agent/mcp/config-loader.d.ts +22 -0
  51. package/dist/agent/mcp/env.d.ts +6 -0
  52. package/dist/agent/mcp/index.d.ts +8 -0
  53. package/dist/agent/mcp/manager.d.ts +23 -0
  54. package/dist/agent/mcp/naming.d.ts +20 -0
  55. package/dist/agent/mcp/oauth.d.ts +33 -0
  56. package/dist/agent/mcp/transport.d.ts +16 -0
  57. package/dist/agent/mcp/types.d.ts +22 -0
  58. package/dist/agent/memory/index.d.ts +5 -0
  59. package/dist/agent/memory/memory-evidence.d.ts +9 -0
  60. package/dist/agent/memory/memory-hooks.d.ts +3 -0
  61. package/dist/agent/memory/memory-loader.d.ts +3 -0
  62. package/dist/agent/memory/memory-store.d.ts +36 -0
  63. package/dist/agent/memory/memory-tool-renderers.d.ts +3 -0
  64. package/dist/agent/memory/memory-tools.d.ts +8 -0
  65. package/dist/agent/memory/types.d.ts +70 -0
  66. package/dist/agent/model-capabilities.d.ts +1 -0
  67. package/dist/agent/model-limits.d.ts +5 -0
  68. package/dist/agent/output-extractor.d.ts +1 -0
  69. package/dist/agent/permission-policy.d.ts +2 -0
  70. package/dist/agent/permissions-store.d.ts +28 -0
  71. package/dist/agent/permissions.d.ts +28 -0
  72. package/dist/agent/plan-mode-exit-prompt.d.ts +1 -0
  73. package/dist/agent/plan-mode-gate.d.ts +3 -0
  74. package/dist/agent/plugins/git-test-helpers.d.ts +2 -0
  75. package/dist/agent/plugins/git.d.ts +21 -0
  76. package/dist/agent/plugins/index-store.d.ts +32 -0
  77. package/dist/agent/plugins/install.d.ts +23 -0
  78. package/dist/agent/plugins/inventory.d.ts +16 -0
  79. package/dist/agent/plugins/load-entrypoints.d.ts +7 -0
  80. package/dist/agent/plugins/plugin-manifest.d.ts +5 -0
  81. package/dist/agent/plugins/remove.d.ts +10 -0
  82. package/dist/agent/plugins/source.d.ts +23 -0
  83. package/dist/agent/plugins/tool-injector.d.ts +18 -0
  84. package/dist/agent/plugins/update.d.ts +33 -0
  85. package/dist/agent/plugins/versions.d.ts +1 -0
  86. package/dist/agent/plugins-scanner.d.ts +9 -0
  87. package/dist/agent/provider.d.ts +212 -0
  88. package/dist/agent/providers/anthropic-direct/afk-mode-addendum.d.ts +3 -0
  89. package/dist/agent/providers/anthropic-direct/auth.d.ts +16 -0
  90. package/dist/agent/providers/anthropic-direct/cache-policy.d.ts +7 -0
  91. package/dist/agent/providers/anthropic-direct/compact.d.ts +10 -0
  92. package/dist/agent/providers/anthropic-direct/index.d.ts +75 -0
  93. package/dist/agent/providers/anthropic-direct/loop.d.ts +8 -0
  94. package/dist/agent/providers/anthropic-direct/oneshot.d.ts +15 -0
  95. package/dist/agent/providers/anthropic-direct/plan-mode-addendum.d.ts +3 -0
  96. package/dist/agent/providers/anthropic-direct/query/abort-coordinator.d.ts +15 -0
  97. package/dist/agent/providers/anthropic-direct/query/auto-compact.d.ts +15 -0
  98. package/dist/agent/providers/anthropic-direct/query/compact-handler.d.ts +12 -0
  99. package/dist/agent/providers/anthropic-direct/query/repair-orphan-tool-uses.d.ts +2 -0
  100. package/dist/agent/providers/anthropic-direct/query/retry-layer.d.ts +30 -0
  101. package/dist/agent/providers/anthropic-direct/query/session-state.d.ts +23 -0
  102. package/dist/agent/providers/anthropic-direct/query.d.ts +73 -0
  103. package/dist/agent/providers/anthropic-direct/resolve-params.d.ts +8 -0
  104. package/dist/agent/providers/anthropic-direct/tool-dispatcher.d.ts +7 -0
  105. package/dist/agent/providers/anthropic-direct/translate.d.ts +3 -0
  106. package/dist/agent/providers/anthropic-direct/types.d.ts +122 -0
  107. package/dist/agent/providers/anthropic-direct/usage-limit.d.ts +21 -0
  108. package/dist/agent/providers/index.d.ts +16 -0
  109. package/dist/agent/providers/openai-compatible/auth.d.ts +32 -0
  110. package/dist/agent/providers/openai-compatible/index.d.ts +53 -0
  111. package/dist/agent/providers/openai-compatible/loop.d.ts +47 -0
  112. package/dist/agent/providers/openai-compatible/messages.d.ts +33 -0
  113. package/dist/agent/providers/openai-compatible/oneshot.d.ts +17 -0
  114. package/dist/agent/providers/openai-compatible/query.d.ts +79 -0
  115. package/dist/agent/providers/openai-compatible/responses-config.d.ts +14 -0
  116. package/dist/agent/providers/openai-compatible/responses-messages.d.ts +54 -0
  117. package/dist/agent/providers/openai-compatible/responses-translate.d.ts +30 -0
  118. package/dist/agent/providers/openai-compatible/translate.d.ts +53 -0
  119. package/dist/agent/providers/router/provider-router.d.ts +55 -0
  120. package/dist/agent/query.d.ts +11 -0
  121. package/dist/agent/risk-classifier.d.ts +6 -0
  122. package/dist/agent/routing-directive.d.ts +5 -0
  123. package/dist/agent/routing-telemetry.d.ts +36 -0
  124. package/dist/agent/session/agent-session.d.ts +95 -0
  125. package/dist/agent/session/closure-guidance.d.ts +3 -0
  126. package/dist/agent/session/closure-reason.d.ts +11 -0
  127. package/dist/agent/session/hooks-dispatch.d.ts +9 -0
  128. package/dist/agent/session/input-iterable.d.ts +10 -0
  129. package/dist/agent/session/model-resolution.d.ts +5 -0
  130. package/dist/agent/session/model-slots.d.ts +24 -0
  131. package/dist/agent/session/phase-reducer.d.ts +3 -0
  132. package/dist/agent/session/prompt-dump.d.ts +33 -0
  133. package/dist/agent/session/session-identity.d.ts +6 -0
  134. package/dist/agent/session/session-setup.d.ts +6 -0
  135. package/dist/agent/session/session-state.d.ts +20 -0
  136. package/dist/agent/session/slot-credentials.d.ts +8 -0
  137. package/dist/agent/session/stream-consumer.d.ts +22 -0
  138. package/dist/agent/session-ledger.d.ts +81 -0
  139. package/dist/agent/session-ref.d.ts +4 -0
  140. package/dist/agent/session.d.ts +1 -0
  141. package/dist/agent/shadow-verify-nudge.d.ts +2 -0
  142. package/dist/agent/shell-jobs/index.d.ts +2 -0
  143. package/dist/agent/shell-jobs/registry.d.ts +36 -0
  144. package/dist/agent/shell-jobs/streamer.d.ts +33 -0
  145. package/dist/agent/signal-block.d.ts +45 -0
  146. package/dist/agent/subagent/handle.d.ts +51 -0
  147. package/dist/agent/subagent/result.d.ts +51 -0
  148. package/dist/agent/subagent/wave.d.ts +11 -0
  149. package/dist/agent/subagent-hooks.d.ts +12 -0
  150. package/dist/agent/subagent.d.ts +66 -0
  151. package/dist/agent/timeout.d.ts +7 -0
  152. package/dist/agent/tool-category.d.ts +9 -0
  153. package/dist/agent/tools/child-credential.d.ts +6 -0
  154. package/dist/agent/tools/compose-executor.d.ts +29 -0
  155. package/dist/agent/tools/custom-tool.d.ts +7 -0
  156. package/dist/agent/tools/dispatcher.d.ts +75 -0
  157. package/dist/agent/tools/handlers/_cwd-utils.d.ts +9 -0
  158. package/dist/agent/tools/handlers/ask-question.d.ts +2 -0
  159. package/dist/agent/tools/handlers/bash.d.ts +3 -0
  160. package/dist/agent/tools/handlers/browser-act.d.ts +4 -0
  161. package/dist/agent/tools/handlers/browser-close.d.ts +4 -0
  162. package/dist/agent/tools/handlers/browser-observe.d.ts +4 -0
  163. package/dist/agent/tools/handlers/browser-open.d.ts +6 -0
  164. package/dist/agent/tools/handlers/browser-screenshot.d.ts +4 -0
  165. package/dist/agent/tools/handlers/config-ops.d.ts +3 -0
  166. package/dist/agent/tools/handlers/edit-file.d.ts +2 -0
  167. package/dist/agent/tools/handlers/exit-plan-mode.d.ts +5 -0
  168. package/dist/agent/tools/handlers/glob.d.ts +3 -0
  169. package/dist/agent/tools/handlers/grep.d.ts +3 -0
  170. package/dist/agent/tools/handlers/index.d.ts +21 -0
  171. package/dist/agent/tools/handlers/list-directory.d.ts +2 -0
  172. package/dist/agent/tools/handlers/playwright-hints.d.ts +5 -0
  173. package/dist/agent/tools/handlers/read-file.d.ts +2 -0
  174. package/dist/agent/tools/handlers/schedules.d.ts +7 -0
  175. package/dist/agent/tools/handlers/send-telegram.d.ts +6 -0
  176. package/dist/agent/tools/handlers/terminal-font-size.d.ts +15 -0
  177. package/dist/agent/tools/handlers/test-runner-detector.d.ts +8 -0
  178. package/dist/agent/tools/handlers/web-scrape.d.ts +11 -0
  179. package/dist/agent/tools/handlers/write-denylist.d.ts +4 -0
  180. package/dist/agent/tools/handlers/write-file.d.ts +2 -0
  181. package/dist/agent/tools/hooks/bash-restriction-hook.d.ts +8 -0
  182. package/dist/agent/tools/hooks/path-approval-hook.d.ts +14 -0
  183. package/dist/agent/tools/index.d.ts +7 -0
  184. package/dist/agent/tools/nesting.d.ts +29 -0
  185. package/dist/agent/tools/permissions.d.ts +10 -0
  186. package/dist/agent/tools/readonly-bash.d.ts +4 -0
  187. package/dist/agent/tools/render-registry.d.ts +3 -0
  188. package/dist/agent/tools/renderers/bash-renderer.d.ts +1 -0
  189. package/dist/agent/tools/schemas.d.ts +29 -0
  190. package/dist/agent/tools/skill-bridge.d.ts +21 -0
  191. package/dist/agent/tools/skill-depth-message.d.ts +2 -0
  192. package/dist/agent/tools/skill-executor.d.ts +45 -0
  193. package/dist/agent/tools/subagent-executor.d.ts +57 -0
  194. package/dist/agent/tools/system-prompt.d.ts +6 -0
  195. package/dist/agent/tools/types.d.ts +17 -0
  196. package/dist/agent/trace/emit.d.ts +12 -0
  197. package/dist/agent/trace/events.d.ts +1079 -0
  198. package/dist/agent/trace/factory.d.ts +10 -0
  199. package/dist/agent/trace/index.d.ts +4 -0
  200. package/dist/agent/trace/receipt.d.ts +92 -0
  201. package/dist/agent/trace/types.d.ts +310 -0
  202. package/dist/agent/trace/writer.d.ts +42 -0
  203. package/dist/agent/transcript-search/transcript-index.d.ts +21 -0
  204. package/dist/agent/trusted-skill-result.d.ts +9 -0
  205. package/dist/agent/types/config-types.d.ts +86 -0
  206. package/dist/agent/types/message-types.d.ts +77 -0
  207. package/dist/agent/types/model-types.d.ts +2 -0
  208. package/dist/agent/types/permission-types.d.ts +8 -0
  209. package/dist/agent/types/sdk-types.d.ts +282 -0
  210. package/dist/agent/types/session-types.d.ts +134 -0
  211. package/dist/agent/types.d.ts +6 -0
  212. package/dist/agent/usage.d.ts +2 -0
  213. package/dist/agent/worktree-sweep.d.ts +52 -0
  214. package/dist/agent/worktree.d.ts +56 -0
  215. package/dist/browser/config.d.ts +13 -0
  216. package/dist/browser/playwright/index.d.ts +21 -0
  217. package/dist/browser/playwright/launcher.d.ts +32 -0
  218. package/dist/browser/playwright/observe.d.ts +12 -0
  219. package/dist/browser/playwright/resolve-target.d.ts +10 -0
  220. package/dist/browser/provider.d.ts +15 -0
  221. package/dist/browser/registry.d.ts +7 -0
  222. package/dist/browser/sanitize.d.ts +22 -0
  223. package/dist/browser/types.d.ts +139 -0
  224. package/dist/browser/witness.d.ts +11 -0
  225. package/dist/changelog.d.ts +13 -0
  226. package/dist/cli/_lib/capture-mode.d.ts +8 -0
  227. package/dist/cli/_lib/commit-block.d.ts +4 -0
  228. package/dist/cli/_lib/commit-coordinator.d.ts +13 -0
  229. package/dist/cli/_lib/dedup-line-writer.d.ts +5 -0
  230. package/dist/cli/_lib/overlay-composer.d.ts +18 -0
  231. package/dist/cli/_lib/sanitize.d.ts +1 -0
  232. package/dist/cli/_lib/stream-renderer-contexts.d.ts +43 -0
  233. package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +33 -0
  234. package/dist/cli/_lib/stream-renderer-orchestrator-emit.d.ts +10 -0
  235. package/dist/cli/_lib/stream-renderer-orchestrator.d.ts +30 -0
  236. package/dist/cli/_lib/stream-renderer-source.d.ts +27 -0
  237. package/dist/cli/_lib/stream-renderer-subagent-helpers.d.ts +6 -0
  238. package/dist/cli/_lib/stream-renderer-subagent.d.ts +22 -0
  239. package/dist/cli/_lib/stream-renderer.d.ts +68 -0
  240. package/dist/cli/_lib/testing/virtual-screen.d.ts +54 -0
  241. package/dist/cli/afk-mode-toggle.d.ts +2 -0
  242. package/dist/cli/auth-wizard.d.ts +4 -0
  243. package/dist/cli/background/types.d.ts +8 -0
  244. package/dist/cli/background-status-bar.d.ts +37 -0
  245. package/dist/cli/clipboard.d.ts +7 -0
  246. package/dist/cli/color-config.d.ts +1 -0
  247. package/dist/cli/commands/bg.d.ts +2 -0
  248. package/dist/cli/commands/browser.d.ts +11 -0
  249. package/dist/cli/commands/chat.d.ts +2 -0
  250. package/dist/cli/commands/completion.d.ts +2 -0
  251. package/dist/cli/commands/config-command.d.ts +2 -0
  252. package/dist/cli/commands/daemon.d.ts +14 -0
  253. package/dist/cli/commands/doctor-checks.d.ts +19 -0
  254. package/dist/cli/commands/doctor.d.ts +2 -0
  255. package/dist/cli/commands/farm.d.ts +40 -0
  256. package/dist/cli/commands/improve.d.ts +2 -0
  257. package/dist/cli/commands/interactive/afk-push.d.ts +14 -0
  258. package/dist/cli/commands/interactive/at-file-inject.d.ts +17 -0
  259. package/dist/cli/commands/interactive/boot-prune.d.ts +8 -0
  260. package/dist/cli/commands/interactive/bootstrap.d.ts +30 -0
  261. package/dist/cli/commands/interactive/context-pane.d.ts +11 -0
  262. package/dist/cli/commands/interactive/footer-subsystems.d.ts +15 -0
  263. package/dist/cli/commands/interactive/loop-iteration.d.ts +7 -0
  264. package/dist/cli/commands/interactive/loop-stage.d.ts +34 -0
  265. package/dist/cli/commands/interactive/progress-banner.d.ts +5 -0
  266. package/dist/cli/commands/interactive/provider-factory.d.ts +2 -0
  267. package/dist/cli/commands/interactive/repl-loop-shared.d.ts +10 -0
  268. package/dist/cli/commands/interactive/repl-loop.d.ts +6 -0
  269. package/dist/cli/commands/interactive/repl-renderer.d.ts +16 -0
  270. package/dist/cli/commands/interactive/resume-swap.d.ts +23 -0
  271. package/dist/cli/commands/interactive/shared.d.ts +116 -0
  272. package/dist/cli/commands/interactive/shell-passthrough.d.ts +33 -0
  273. package/dist/cli/commands/interactive/surface-setup.d.ts +12 -0
  274. package/dist/cli/commands/interactive/terminal-state.d.ts +18 -0
  275. package/dist/cli/commands/interactive/thinking-lane.d.ts +18 -0
  276. package/dist/cli/commands/interactive/thinking-paragraph.d.ts +5 -0
  277. package/dist/cli/commands/interactive/tool-lane-format-args.d.ts +4 -0
  278. package/dist/cli/commands/interactive/tool-lane-format-diff.d.ts +4 -0
  279. package/dist/cli/commands/interactive/tool-lane-format-sanitize.d.ts +2 -0
  280. package/dist/cli/commands/interactive/tool-lane-format.d.ts +14 -0
  281. package/dist/cli/commands/interactive/tool-lane-render-agent.d.ts +7 -0
  282. package/dist/cli/commands/interactive/tool-lane-render-children.d.ts +4 -0
  283. package/dist/cli/commands/interactive/tool-lane-render-grouping-overflow.d.ts +15 -0
  284. package/dist/cli/commands/interactive/tool-lane-render-grouping.d.ts +23 -0
  285. package/dist/cli/commands/interactive/tool-lane-render.d.ts +45 -0
  286. package/dist/cli/commands/interactive/tool-lane.d.ts +31 -0
  287. package/dist/cli/commands/interactive/transcript.d.ts +9 -0
  288. package/dist/cli/commands/interactive/turn-handler.d.ts +16 -0
  289. package/dist/cli/commands/interactive/verdict-card.d.ts +3 -0
  290. package/dist/cli/commands/interactive/verdict-ledger.d.ts +19 -0
  291. package/dist/cli/commands/interactive/worktree-autoname.d.ts +42 -0
  292. package/dist/cli/commands/interactive/worktree.d.ts +33 -0
  293. package/dist/cli/commands/interactive.d.ts +11 -0
  294. package/dist/cli/commands/login-command.d.ts +5 -0
  295. package/dist/cli/commands/marketplace.d.ts +8 -0
  296. package/dist/cli/commands/migrate.d.ts +14 -0
  297. package/dist/cli/commands/plugin.d.ts +7 -0
  298. package/dist/cli/commands/provider.d.ts +9 -0
  299. package/dist/cli/commands/queue.d.ts +2 -0
  300. package/dist/cli/commands/schedule.d.ts +2 -0
  301. package/dist/cli/commands/service.d.ts +2 -0
  302. package/dist/cli/commands/shell-init.d.ts +6 -0
  303. package/dist/cli/commands/skill-router.d.ts +9 -0
  304. package/dist/cli/commands/status.d.ts +2 -0
  305. package/dist/cli/commands/telegram.d.ts +2 -0
  306. package/dist/cli/commands/trace.d.ts +25 -0
  307. package/dist/cli/commands/transcript.d.ts +4 -0
  308. package/dist/cli/commands/update.d.ts +2 -0
  309. package/dist/cli/commands/worktree.d.ts +2 -0
  310. package/dist/cli/commit-mode.d.ts +25 -0
  311. package/dist/cli/config.d.ts +69 -0
  312. package/dist/cli/constants.d.ts +4 -0
  313. package/dist/cli/context-bar.d.ts +8 -0
  314. package/dist/cli/context-sampler.d.ts +43 -0
  315. package/dist/cli/context-sparkline.d.ts +1 -0
  316. package/dist/cli/cup-frame-renderer.d.ts +18 -0
  317. package/dist/cli/daemon-options.d.ts +11 -0
  318. package/dist/cli/debug-banner.d.ts +2 -0
  319. package/dist/cli/display.d.ts +19 -0
  320. package/dist/cli/elicitation-repl.d.ts +26 -0
  321. package/dist/cli/errors/classifier.d.ts +9 -0
  322. package/dist/cli/errors/index.d.ts +4 -0
  323. package/dist/cli/errors/presenter.d.ts +5 -0
  324. package/dist/cli/format-cwd.d.ts +5 -0
  325. package/dist/cli/format-utils.d.ts +4 -0
  326. package/dist/cli/formatter.d.ts +27 -0
  327. package/dist/cli/git-status-sampler.d.ts +43 -0
  328. package/dist/cli/hyperlink.d.ts +6 -0
  329. package/dist/cli/index.d.ts +4 -0
  330. package/dist/cli/input/attachments.d.ts +10 -0
  331. package/dist/cli/input/autocomplete-state.d.ts +11 -0
  332. package/dist/cli/input/caret-blink.d.ts +21 -0
  333. package/dist/cli/input/clipboard-image.d.ts +2 -0
  334. package/dist/cli/input/dropdown.d.ts +4 -0
  335. package/dist/cli/input/echo.d.ts +12 -0
  336. package/dist/cli/input/emit-keypress.d.ts +1 -0
  337. package/dist/cli/input/history.d.ts +15 -0
  338. package/dist/cli/input/input-surface.d.ts +63 -0
  339. package/dist/cli/input/non-tty.d.ts +2 -0
  340. package/dist/cli/input/raw-mode.d.ts +4 -0
  341. package/dist/cli/input/reader.d.ts +2 -0
  342. package/dist/cli/input/selectors.d.ts +3 -0
  343. package/dist/cli/input/spinner.d.ts +19 -0
  344. package/dist/cli/input/stdin-claim.d.ts +7 -0
  345. package/dist/cli/input/suggest.d.ts +36 -0
  346. package/dist/cli/input/trigger.d.ts +5 -0
  347. package/dist/cli/input/types.d.ts +53 -0
  348. package/dist/cli/input-box.d.ts +5 -0
  349. package/dist/cli/input-core.d.ts +37 -0
  350. package/dist/cli/input-highlight.d.ts +4 -0
  351. package/dist/cli/keychain.d.ts +1 -0
  352. package/dist/cli/loading-tips.d.ts +14 -0
  353. package/dist/cli/markdown-stream-format.d.ts +30 -0
  354. package/dist/cli/markdown-stream.d.ts +39 -0
  355. package/dist/cli/mascot.d.ts +6 -0
  356. package/dist/cli/model-limits.d.ts +1 -0
  357. package/dist/cli/multi-line-reader.d.ts +16 -0
  358. package/dist/cli/palette.d.ts +29 -0
  359. package/dist/cli/permission-mode-cycle.d.ts +3 -0
  360. package/dist/cli/plan-mode-toggle.d.ts +2 -0
  361. package/dist/cli/render/box.d.ts +8 -0
  362. package/dist/cli/render/card.d.ts +8 -0
  363. package/dist/cli/render/divider.d.ts +1 -0
  364. package/dist/cli/render/error-box.d.ts +1 -0
  365. package/dist/cli/render/help-table.d.ts +9 -0
  366. package/dist/cli/render/index.d.ts +9 -0
  367. package/dist/cli/render/picker.d.ts +15 -0
  368. package/dist/cli/render/progress-bar.d.ts +1 -0
  369. package/dist/cli/render/status-panel.d.ts +7 -0
  370. package/dist/cli/render/text-input.d.ts +9 -0
  371. package/dist/cli/render/usage-limit-box.d.ts +7 -0
  372. package/dist/cli/render/utils.d.ts +2 -0
  373. package/dist/cli/render/welcome-banner.d.ts +10 -0
  374. package/dist/cli/render.d.ts +1 -0
  375. package/dist/cli/resume-command.d.ts +3 -0
  376. package/dist/cli/resume-session.d.ts +13 -0
  377. package/dist/cli/session-name.d.ts +1 -0
  378. package/dist/cli/session-store.d.ts +51 -0
  379. package/dist/cli/shared-helpers.d.ts +33 -0
  380. package/dist/cli/slash/_lib/command-tags.d.ts +9 -0
  381. package/dist/cli/slash/_lib/create-skill-renderer.d.ts +9 -0
  382. package/dist/cli/slash/_lib/flag-harvest.d.ts +9 -0
  383. package/dist/cli/slash/_lib/image-blocks.d.ts +3 -0
  384. package/dist/cli/slash/_lib/review-post.d.ts +30 -0
  385. package/dist/cli/slash/_lib/run-skill-dispatch-turn.d.ts +11 -0
  386. package/dist/cli/slash/_lib/skill-message-bridge.d.ts +4 -0
  387. package/dist/cli/slash/_lib/skill-sink-channel.d.ts +1 -0
  388. package/dist/cli/slash/_lib/user-payload.d.ts +3 -0
  389. package/dist/cli/slash/builtin-skills.d.ts +4 -0
  390. package/dist/cli/slash/commands/afk.d.ts +2 -0
  391. package/dist/cli/slash/commands/allow-dir.d.ts +14 -0
  392. package/dist/cli/slash/commands/bgsub.d.ts +11 -0
  393. package/dist/cli/slash/commands/changelog.d.ts +2 -0
  394. package/dist/cli/slash/commands/config-doctor.d.ts +2 -0
  395. package/dist/cli/slash/commands/core.d.ts +2 -0
  396. package/dist/cli/slash/commands/font-size.d.ts +4 -0
  397. package/dist/cli/slash/commands/fork.d.ts +4 -0
  398. package/dist/cli/slash/commands/info.d.ts +2 -0
  399. package/dist/cli/slash/commands/init.d.ts +2 -0
  400. package/dist/cli/slash/commands/keys.d.ts +2 -0
  401. package/dist/cli/slash/commands/name.d.ts +2 -0
  402. package/dist/cli/slash/commands/plan.d.ts +2 -0
  403. package/dist/cli/slash/commands/reauth.d.ts +2 -0
  404. package/dist/cli/slash/commands/resume.d.ts +2 -0
  405. package/dist/cli/slash/commands/save.d.ts +2 -0
  406. package/dist/cli/slash/commands/sh.d.ts +4 -0
  407. package/dist/cli/slash/commands/stats.d.ts +2 -0
  408. package/dist/cli/slash/commands/todo.d.ts +2 -0
  409. package/dist/cli/slash/commands/transcript.d.ts +2 -0
  410. package/dist/cli/slash/commands/worktree.d.ts +2 -0
  411. package/dist/cli/slash/index.d.ts +3 -0
  412. package/dist/cli/slash/marketplace-browse.d.ts +1 -0
  413. package/dist/cli/slash/plugin-agents.d.ts +5 -0
  414. package/dist/cli/slash/plugin-skills.d.ts +32 -0
  415. package/dist/cli/slash/preflight/artifact-dir.d.ts +3 -0
  416. package/dist/cli/slash/preflight/index.d.ts +6 -0
  417. package/dist/cli/slash/preflight/registry.d.ts +8 -0
  418. package/dist/cli/slash/preflight/review-pr.d.ts +34 -0
  419. package/dist/cli/slash/preflight/stitch-forward.d.ts +1 -0
  420. package/dist/cli/slash/preflight/types.d.ts +18 -0
  421. package/dist/cli/slash/registry-exports.d.ts +2 -0
  422. package/dist/cli/slash/registry.d.ts +23 -0
  423. package/dist/cli/slash/session-stats.d.ts +6 -0
  424. package/dist/cli/slash/types.d.ts +103 -0
  425. package/dist/cli/slash/writer.d.ts +6 -0
  426. package/dist/cli/status-line.d.ts +51 -0
  427. package/dist/cli/syntax-highlight.d.ts +1 -0
  428. package/dist/cli/syntax-theme.d.ts +2 -0
  429. package/dist/cli/terminal-compositor.autocomplete.d.ts +16 -0
  430. package/dist/cli/terminal-compositor.committed-band-commit.d.ts +24 -0
  431. package/dist/cli/terminal-compositor.committed-band-repin.d.ts +3 -0
  432. package/dist/cli/terminal-compositor.committed-band.d.ts +2 -0
  433. package/dist/cli/terminal-compositor.d.ts +118 -0
  434. package/dist/cli/terminal-compositor.frame-preserve.d.ts +3 -0
  435. package/dist/cli/terminal-compositor.frame.d.ts +33 -0
  436. package/dist/cli/terminal-compositor.input-dispatch.d.ts +42 -0
  437. package/dist/cli/terminal-compositor.input-mode.d.ts +26 -0
  438. package/dist/cli/terminal-compositor.lifecycle.d.ts +40 -0
  439. package/dist/cli/terminal-compositor.paste.d.ts +16 -0
  440. package/dist/cli/terminal-compositor.render.d.ts +17 -0
  441. package/dist/cli/terminal-compositor.reset.d.ts +36 -0
  442. package/dist/cli/terminal-compositor.types.d.ts +80 -0
  443. package/dist/cli/terminal-size.d.ts +9 -0
  444. package/dist/cli/terminal-spawn/detect.d.ts +3 -0
  445. package/dist/cli/terminal-spawn/index.d.ts +29 -0
  446. package/dist/cli/terminal-spawn/spawners.d.ts +18 -0
  447. package/dist/cli/todo-panel.d.ts +18 -0
  448. package/dist/cli/tool-category.d.ts +9 -0
  449. package/dist/cli/trusted-skill-badge.d.ts +19 -0
  450. package/dist/cli/trusted-skill-ledger.d.ts +16 -0
  451. package/dist/cli/trusted-skills-registered.d.ts +1 -0
  452. package/dist/cli/update-checker.d.ts +10 -0
  453. package/dist/cli/version.d.ts +1 -0
  454. package/dist/cli/wrap.d.ts +4 -0
  455. package/dist/cli.mjs +430 -426
  456. package/dist/config/env.d.ts +136 -0
  457. package/dist/config/import-sources.d.ts +46 -0
  458. package/dist/config/mutate.d.ts +78 -0
  459. package/dist/config/settable-keys.d.ts +44 -0
  460. package/dist/improve/eval-gen/replay-fixture.d.ts +19 -0
  461. package/dist/improve/eval-gen/writer.d.ts +41 -0
  462. package/dist/improve/eval-run/contracts.d.ts +25 -0
  463. package/dist/improve/eval-run/replay.d.ts +25 -0
  464. package/dist/improve/eval-run/runner.d.ts +37 -0
  465. package/dist/improve/paths.d.ts +19 -0
  466. package/dist/improve/propose/template-engine.d.ts +7 -0
  467. package/dist/improve/propose/writer.d.ts +26 -0
  468. package/dist/improve/scan/card-writer.d.ts +38 -0
  469. package/dist/improve/scan/detectors/closure-anomaly.d.ts +8 -0
  470. package/dist/improve/scan/detectors/index.d.ts +20 -0
  471. package/dist/improve/scan/detectors/repeated-tool-use.d.ts +29 -0
  472. package/dist/improve/scan/detectors/subagent-block.d.ts +13 -0
  473. package/dist/improve/scan/detectors/tool-failure-density.d.ts +10 -0
  474. package/dist/improve/scan/reader.d.ts +38 -0
  475. package/dist/improve/schemas.d.ts +494 -0
  476. package/dist/improve/triage.d.ts +22 -0
  477. package/dist/index.d.ts +5 -0
  478. package/dist/index.mjs +148 -146
  479. package/dist/paths.d.ts +57 -0
  480. package/dist/service/launchd/install.d.ts +35 -0
  481. package/dist/service/launchd/paths.d.ts +8 -0
  482. package/dist/service/launchd/plist.d.ts +15 -0
  483. package/dist/service/launchd/status.d.ts +15 -0
  484. package/dist/service/launchd.d.ts +4 -0
  485. package/dist/skills/_agents/contract.d.ts +5 -0
  486. package/dist/skills/_agents/git-investigator.d.ts +8 -0
  487. package/dist/skills/_agents/index.d.ts +4 -0
  488. package/dist/skills/_agents/research-agent.d.ts +7 -0
  489. package/dist/skills/_agents/to-definition.d.ts +7 -0
  490. package/dist/skills/_lib/confidence-gate.d.ts +10 -0
  491. package/dist/skills/_lib/emit-card.d.ts +3 -0
  492. package/dist/skills/_lib/prompt-loader.d.ts +1 -0
  493. package/dist/skills/all.d.ts +7 -0
  494. package/dist/skills/audit-fit/discover.d.ts +16 -0
  495. package/dist/skills/audit-fit/index.d.ts +100 -0
  496. package/dist/skills/diagnose/_phases/orchestrator.d.ts +4 -0
  497. package/dist/skills/diagnose/_phases/triage.d.ts +4 -0
  498. package/dist/skills/diagnose/_phases/types.d.ts +142 -0
  499. package/dist/skills/diagnose/_phases/verifier.d.ts +16 -0
  500. package/dist/skills/diagnose/index.d.ts +6 -0
  501. package/dist/skills/example-template/index.d.ts +1 -0
  502. package/dist/skills/get-started/index.d.ts +2 -0
  503. package/dist/skills/index.d.ts +28 -0
  504. package/dist/skills/mint/_phases/build.d.ts +7 -0
  505. package/dist/skills/mint/_phases/heal.d.ts +8 -0
  506. package/dist/skills/mint/_phases/parallelize-dispatch.d.ts +12 -0
  507. package/dist/skills/mint/_phases/plan.d.ts +2 -0
  508. package/dist/skills/mint/_phases/research.d.ts +2 -0
  509. package/dist/skills/mint/_phases/ship.d.ts +3 -0
  510. package/dist/skills/mint/_phases/spec.d.ts +2 -0
  511. package/dist/skills/mint/_phases/verify.d.ts +9 -0
  512. package/dist/skills/mint/index.d.ts +47 -0
  513. package/dist/skills/mint/state-store.d.ts +4 -0
  514. package/dist/skills/score/digest-keyboard.d.ts +2 -0
  515. package/dist/skills/score/digest.d.ts +10 -0
  516. package/dist/skills/score/farm-run-record.d.ts +20 -0
  517. package/dist/skills/score/index.d.ts +33 -0
  518. package/dist/skills/score/memory-write.d.ts +31 -0
  519. package/dist/skills/score/winner.d.ts +10 -0
  520. package/dist/skills/service-setup/index.d.ts +2 -0
  521. package/dist/skills/telegram-setup/index.d.ts +2 -0
  522. package/dist/skills/user-skills.d.ts +9 -0
  523. package/dist/telegram/allowlist.d.ts +4 -0
  524. package/dist/telegram/bot.d.ts +38 -0
  525. package/dist/telegram/construct-session.d.ts +11 -0
  526. package/dist/telegram/elicitation-callback-data.d.ts +11 -0
  527. package/dist/telegram/elicitation-handler.d.ts +6 -0
  528. package/dist/telegram/elicitation-telegram.d.ts +6 -0
  529. package/dist/telegram/error-utils.d.ts +5 -0
  530. package/dist/telegram/example.d.ts +1 -0
  531. package/dist/telegram/farm-callback-data.d.ts +9 -0
  532. package/dist/telegram/formatter.d.ts +24 -0
  533. package/dist/telegram/handlers/commands.d.ts +11 -0
  534. package/dist/telegram/handlers/farm-callbacks.d.ts +26 -0
  535. package/dist/telegram/handlers/help.d.ts +3 -0
  536. package/dist/telegram/handlers/message.d.ts +26 -0
  537. package/dist/telegram/handlers/registration.d.ts +5 -0
  538. package/dist/telegram/handlers/start.d.ts +2 -0
  539. package/dist/telegram/index.d.ts +8 -0
  540. package/dist/telegram/manager.d.ts +35 -0
  541. package/dist/telegram/mcp-session.d.ts +8 -0
  542. package/dist/telegram/notify-routing.d.ts +12 -0
  543. package/dist/telegram/push.d.ts +23 -0
  544. package/dist/telegram/session-manager.d.ts +42 -0
  545. package/dist/telegram/setup-wizard.d.ts +59 -0
  546. package/dist/telegram/stream-timeout-error.d.ts +3 -0
  547. package/dist/telegram/streaming.d.ts +10 -0
  548. package/dist/telegram/version-check.d.ts +19 -0
  549. package/dist/telegram/watch.d.ts +22 -0
  550. package/dist/telegram.d.ts +2 -0
  551. package/dist/telegram.mjs +203 -199
  552. package/dist/telemetry/schemas.d.ts +10 -0
  553. package/dist/utils/CircularBuffer.d.ts +13 -0
  554. package/dist/utils/cd-on-exit.d.ts +5 -0
  555. package/dist/utils/cleanupRegistry.d.ts +2 -0
  556. package/dist/utils/debug.d.ts +2 -0
  557. package/dist/utils/diff.d.ts +17 -0
  558. package/dist/utils/envFile.d.ts +5 -0
  559. package/dist/utils/envUtils.d.ts +2 -0
  560. package/dist/utils/error-classifiers.d.ts +2 -0
  561. package/dist/utils/errors.d.ts +38 -0
  562. package/dist/utils/json.d.ts +1 -0
  563. package/dist/utils/memoize.d.ts +9 -0
  564. package/dist/utils/prompt-secret.d.ts +1 -0
  565. package/dist/utils/terminal-sanitize.d.ts +2 -0
  566. package/dist/web/extract.d.ts +3 -0
  567. package/dist/web/index.d.ts +6 -0
  568. package/dist/web/scrape.d.ts +14 -0
  569. package/dist/web/search.d.ts +14 -0
  570. package/dist/web/types.d.ts +29 -0
  571. package/package.json +10 -1
@@ -0,0 +1,19 @@
1
+ import { type DetectedSource, type ImportFromConfig } from '../../config/import-sources.js';
2
+ export interface Check {
3
+ name: string;
4
+ state: 'pass' | 'warn' | 'fail';
5
+ detail?: string;
6
+ fix?: string;
7
+ }
8
+ export declare function checkAnthropicKey(): Promise<Check>;
9
+ export declare function checkCodexKey(): Promise<Check>;
10
+ export declare function checkNpmBinOnPath(): Promise<Check>;
11
+ export declare function checkDirWritable(name: string, getDir: () => string): Promise<Check>;
12
+ export declare function checkConfigFile(): Promise<Check>;
13
+ export declare function checkRequiredEnvVars(): Promise<Check | null>;
14
+ export declare function checkTelegram(): Promise<Check | null>;
15
+ export declare function checkImportAvailable(deps?: {
16
+ detected?: DetectedSource[];
17
+ trusted?: ImportFromConfig;
18
+ }): Promise<Check | null>;
19
+ export declare function runDoctorChecks(): Promise<Check[]>;
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerDoctorCommand(program: Command): void;
@@ -0,0 +1,40 @@
1
+ import { Command } from 'commander';
2
+ import { createFarm, setFarmMemoryFactId } from '../../agent/worktree.js';
3
+ import { runSubagentDAG } from '../../agent/dag-subagent.js';
4
+ import { scoreBranch, writeScore } from '../../skills/score/index.js';
5
+ import { writeFarmFact } from '../../skills/score/memory-write.js';
6
+ import { sendFarmDigest } from '../../skills/score/digest.js';
7
+ import { createDefaultTraceWriter } from '../../agent/trace/factory.js';
8
+ declare function getCommitCount(worktreePath: string, baseSha: string): Promise<number>;
9
+ declare function getSourceRepoDirtyFiles(sourceCwd: string): Promise<string[]>;
10
+ export declare class FarmIsolationViolation extends Error {
11
+ readonly dirtyFiles: string[];
12
+ constructor(dirtyFiles: string[]);
13
+ }
14
+ export interface RunFarmOptions {
15
+ task: string;
16
+ branches: number;
17
+ labels?: string[];
18
+ model?: string;
19
+ baseRef?: string;
20
+ cwd?: string;
21
+ failFast: boolean;
22
+ taskSlug?: string;
23
+ score?: boolean;
24
+ scoreTimeoutMs?: number;
25
+ memoryWrite?: boolean;
26
+ digest?: boolean;
27
+ _createFarm?: typeof createFarm;
28
+ _runSubagentDAG?: typeof runSubagentDAG;
29
+ _getCommitCount?: typeof getCommitCount;
30
+ _getSourceRepoDirtyFiles?: typeof getSourceRepoDirtyFiles;
31
+ _scoreBranch?: typeof scoreBranch;
32
+ _writeScore?: typeof writeScore;
33
+ _writeFarmFact?: typeof writeFarmFact;
34
+ _sendFarmDigest?: typeof sendFarmDigest;
35
+ _setFarmMemoryFactId?: typeof setFarmMemoryFactId;
36
+ _createTraceWriter?: typeof createDefaultTraceWriter;
37
+ }
38
+ export declare function runFarm(opts: RunFarmOptions): Promise<void>;
39
+ export declare function registerFarmCommand(program: Command): void;
40
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerImproveCommand(program: Command): void;
@@ -0,0 +1,14 @@
1
+ import { pushIfConfigured } from '../../../telegram/push.js';
2
+ import type { ToolEvent } from '../../slash/types.js';
3
+ import type { TerminalState } from './terminal-state.js';
4
+ export declare const MAX_PUSHES_PER_SESSION = 20;
5
+ export declare const DONE_EVIDENCE_TOOLS: ReadonlySet<string>;
6
+ export declare function doneHasCorroboratingEvidence(toolEvents: readonly ToolEvent[]): boolean;
7
+ export declare function formatTerminalStateForTelegram(state: TerminalState, opts?: {
8
+ unverified?: boolean;
9
+ }): string;
10
+ export declare function resetAfkPushBudget(): void;
11
+ export declare function afkPushCount(): number;
12
+ export declare function pushTerminalStateToTelegram(state: TerminalState, pushImpl?: typeof pushIfConfigured, opts?: {
13
+ unverified?: boolean;
14
+ }): Promise<void>;
@@ -0,0 +1,17 @@
1
+ export declare const AT_FILE_MAX_SIZE_BYTES: number;
2
+ export declare const AT_FILE_TOTAL_MAX_BYTES: number;
3
+ export interface AtFileBlock {
4
+ type: 'text';
5
+ text: string;
6
+ }
7
+ export interface AtFileInjectResult {
8
+ fileBlocks: AtFileBlock[];
9
+ warnings: string[];
10
+ }
11
+ export interface AtFileInjectOpts {
12
+ rootDir?: string;
13
+ homeDir?: string;
14
+ env?: NodeJS.ProcessEnv;
15
+ }
16
+ export declare function detectAtFileInject(env?: NodeJS.ProcessEnv): boolean;
17
+ export declare function expandAtFileTokens(text: string, opts?: AtFileInjectOpts): AtFileInjectResult;
@@ -0,0 +1,8 @@
1
+ export interface BootPruneResult {
2
+ ran: boolean;
3
+ removedCount: number;
4
+ skippedReason?: 'not-in-repo' | 'lock-contested' | 'timeout' | 'error' | 'disabled';
5
+ }
6
+ export declare function bootPruneWorktrees(opts?: {
7
+ disabled?: boolean;
8
+ }): Promise<BootPruneResult>;
@@ -0,0 +1,30 @@
1
+ import { AgentSession } from '../../../agent/session.js';
2
+ import type { PermissionMode } from '../../../agent/types/sdk-types.js';
3
+ import type { ThinkingConfig, EffortLevel } from '../../../agent/types.js';
4
+ import type { AgentConfig } from '../../../agent/types.js';
5
+ import type { ModelProvider } from '../../../agent/provider.js';
6
+ import type { HookRegistry } from '../../../agent/hooks.js';
7
+ import type { TraceWriter } from '../../../agent/trace/index.js';
8
+ import type { CliOptions, InteractiveCtx } from './shared.js';
9
+ interface BuildAgentSessionDeps {
10
+ model: string;
11
+ resumeConfig: Partial<AgentConfig>;
12
+ systemPrompt: string | undefined;
13
+ systemPromptSource: string | undefined;
14
+ thinking: ThinkingConfig | undefined;
15
+ effort: EffortLevel | undefined;
16
+ maxOutputTokens: number | undefined;
17
+ providerFactory: (model: string | undefined) => ModelProvider;
18
+ hookRegistry: HookRegistry;
19
+ traceWriter: TraceWriter | undefined;
20
+ cwd: string | undefined;
21
+ maxTurns: number;
22
+ autoResumeOnUsageLimit: boolean | undefined;
23
+ permissionMode?: PermissionMode;
24
+ baseUrl?: string;
25
+ }
26
+ export declare function buildAgentSession(deps: BuildAgentSessionDeps): AgentSession;
27
+ export declare function bootstrapSession(options: CliOptions, extras?: {
28
+ cwd?: string;
29
+ }): Promise<InteractiveCtx>;
30
+ export {};
@@ -0,0 +1,11 @@
1
+ import { loadTodos } from '../../todo-panel.js';
2
+ export interface ContextPane {
3
+ renderIfChanged(sessionId: string | undefined): string[];
4
+ invalidate(): void;
5
+ dispose(): void;
6
+ }
7
+ export interface ContextPaneOptions {
8
+ load?: (sessionId: string) => ReturnType<typeof loadTodos>;
9
+ onResize?: (cb: () => void) => () => void;
10
+ }
11
+ export declare function createContextPane(opts?: ContextPaneOptions): ContextPane;
@@ -0,0 +1,15 @@
1
+ import type { InteractiveCtx } from './shared.js';
2
+ import { createContextPane } from './context-pane.js';
3
+ import { createVerdictLedger } from './verdict-ledger.js';
4
+ import { BackgroundStatusBar } from '../../background-status-bar.js';
5
+ import { LoopStageBar } from './loop-stage.js';
6
+ import { ShellPassthrough } from './shell-passthrough.js';
7
+ import type { TurnState } from './repl-loop-shared.js';
8
+ export interface FooterSubsystems {
9
+ contextPane: ReturnType<typeof createContextPane>;
10
+ bgStatusBar: BackgroundStatusBar;
11
+ loopStageBar: LoopStageBar;
12
+ verdictLedger: ReturnType<typeof createVerdictLedger>;
13
+ shellPassthrough: ShellPassthrough;
14
+ }
15
+ export declare function setupFooterSubsystems(ctx: InteractiveCtx, turnState: TurnState): FooterSubsystems;
@@ -0,0 +1,7 @@
1
+ import type { InteractiveCtx } from './shared.js';
2
+ import type { TranscriptHandle } from './transcript.js';
3
+ import type { InputSurface } from '../../input/input-surface.js';
4
+ import type { ReplHistory } from '../../input/history.js';
5
+ import { type TurnState } from './repl-loop-shared.js';
6
+ import type { FooterSubsystems } from './footer-subsystems.js';
7
+ export declare function runInputLoop(ctx: InteractiveCtx, transcript: TranscriptHandle, turnState: TurnState, sigintHandler: () => void, surface: InputSurface, installSoftStop: (handler: (() => void) | null) => void, footer: FooterSubsystems, history: ReplHistory): Promise<void>;
@@ -0,0 +1,34 @@
1
+ import type { OutputEvent } from '../../../agent/types.js';
2
+ export type LoopStage = 'observing' | 'modeling' | 'choosing' | 'acting' | 'updating';
3
+ export declare const LOOP_STAGES: readonly LoopStage[];
4
+ export declare const STAGE_LABEL: Record<LoopStage, string>;
5
+ export interface StageTrackerState {
6
+ stage: LoopStage;
7
+ pendingTools: Set<string>;
8
+ }
9
+ export declare function createStageTracker(): StageTrackerState;
10
+ export declare function resetStageTracker(s: StageTrackerState): void;
11
+ export declare function advanceStage(s: StageTrackerState, event: OutputEvent): boolean;
12
+ export declare function formatStageRail(active: LoopStage, fmt: {
13
+ dim: (s: string) => string;
14
+ accent: (s: string) => string;
15
+ bold: (s: string) => string;
16
+ }): string;
17
+ export declare class LoopStageBar {
18
+ private readonly stream;
19
+ private readonly getExtraRows;
20
+ private started;
21
+ private currentStage;
22
+ private resizeUnsub;
23
+ private onRowCountChange?;
24
+ constructor(opts: {
25
+ getExtraRows: () => number;
26
+ stream?: NodeJS.WriteStream;
27
+ });
28
+ setRowCountChangeHandler(handler: (rows: number) => void): void;
29
+ start(): void;
30
+ stop(): void;
31
+ repaint(stage: LoopStage): void;
32
+ redraw(): void;
33
+ private clearRow;
34
+ }
@@ -0,0 +1,5 @@
1
+ import type { SubagentCompleteInfo } from '../../../agent/default-hook-registry.js';
2
+ import type { ProgressEvent } from '../../../agent/types.js';
3
+ export declare function formatProgressBanner(event: ProgressEvent, columns?: number): string[];
4
+ export declare function formatProgressSummary(event: ProgressEvent, columns?: number): string;
5
+ export declare function formatSubagentCompletion(info: SubagentCompleteInfo, columns?: number): string;
@@ -0,0 +1,2 @@
1
+ import type { ModelProvider } from '../../../agent/provider.js';
2
+ export declare function createMemoizedProviderFactory(buildProvider: (model: string | undefined) => ModelProvider, keyForModel: (model: string | undefined) => string): (model: string | undefined) => ModelProvider;
@@ -0,0 +1,10 @@
1
+ import type { PermissionMode } from '../../../agent/types/sdk-types.js';
2
+ export interface TurnState {
3
+ turnInFlight: boolean;
4
+ lastSigintAt: number;
5
+ activeCompositor?: import('../../terminal-compositor.js').TerminalCompositor | null;
6
+ tryAbortShellForeground?: (() => boolean) | null;
7
+ notifyInterrupting?: ((active: boolean) => void) | null;
8
+ requestSoftStop?: (() => void) | null;
9
+ }
10
+ export declare function buildPrompt(mode: PermissionMode): string;
@@ -0,0 +1,6 @@
1
+ import type { InteractiveCtx } from './shared.js';
2
+ import type { TranscriptHandle } from './transcript.js';
3
+ import type { TurnState } from './repl-loop-shared.js';
4
+ export type { TurnState };
5
+ export declare function resolveSuggestGhost(envRaw: string | undefined, jsonVal: boolean | undefined): boolean;
6
+ export declare function runReplLoop(ctx: InteractiveCtx, transcript: TranscriptHandle, turnState: TurnState, sigintHandler: () => void): Promise<void>;
@@ -0,0 +1,16 @@
1
+ interface CompositorRef {
2
+ isArmed(): boolean;
3
+ commitAbove(text: string): void;
4
+ }
5
+ export interface ScrollRegionGuard {
6
+ withFullScrollRegion<T>(fn: () => T): T;
7
+ }
8
+ export interface ReplRenderer {
9
+ writeLine(text: string): void;
10
+ setCompositor(c: CompositorRef | null): void;
11
+ }
12
+ export interface CreateReplRendererOpts {
13
+ statusLine?: ScrollRegionGuard;
14
+ }
15
+ export declare function createReplRenderer(stdout: NodeJS.WriteStream, opts?: CreateReplRendererOpts): ReplRenderer;
16
+ export {};
@@ -0,0 +1,23 @@
1
+ import { resumeConfigFor, type ResolvedResumeTarget } from '../../resume-session.js';
2
+ import { type ResumeSwapResult, type CompletionWriter } from './shared.js';
3
+ import type { SessionRef } from '../../../agent/session-ref.js';
4
+ import type { SessionStats } from '../../slash/types.js';
5
+ import type { ContextSampler } from '../../context-sampler.js';
6
+ import type { GitStatusSampler } from '../../git-status-sampler.js';
7
+ import type { StatusLine } from '../../status-line.js';
8
+ import type { BackgroundAgentRegistry } from '../../../agent/background-registry.js';
9
+ import type { AgentSession } from '../../../agent/session.js';
10
+ export interface ResumeSwapDeps {
11
+ sessionRef: SessionRef;
12
+ stats: SessionStats;
13
+ contextSampler: ContextSampler;
14
+ gitStatusSampler?: GitStatusSampler;
15
+ statusLine: StatusLine;
16
+ backgroundRegistry: BackgroundAgentRegistry;
17
+ completionWriter: CompletionWriter;
18
+ isInFlight: () => boolean;
19
+ onSwapped: (target: ResolvedResumeTarget) => void;
20
+ buildSession: (target: ResolvedResumeTarget) => AgentSession;
21
+ }
22
+ export declare function performResumeSwap(target: ResolvedResumeTarget, deps: ResumeSwapDeps): Promise<ResumeSwapResult>;
23
+ export { resumeConfigFor };
@@ -0,0 +1,116 @@
1
+ import * as readline from 'node:readline';
2
+ import type { HookRegistry } from '../../../agent/hooks.js';
3
+ import type { SessionRef } from '../../../agent/session-ref.js';
4
+ import type { MemoryStore } from '../../../agent/memory/index.js';
5
+ import type { AgentModelInput } from '../../../agent/types.js';
6
+ import type { BackgroundAgentRegistry } from '../../../agent/background-registry.js';
7
+ import type { BackgroundSummarizer } from '../../../agent/background-summarizer.js';
8
+ import type { SubagentControl } from '../../../agent/tools/subagent-executor.js';
9
+ import type { SlashContext, SessionStats, ResumeSwapResult } from '../../slash/types.js';
10
+ import type { StoredSession } from '../../session-store.js';
11
+ import type { StatusLine } from '../../status-line.js';
12
+ import type { ReplRenderer } from './repl-renderer.js';
13
+ import type { ResolvedResumeTarget } from '../../resume-session.js';
14
+ import { ContextSampler } from '../../context-sampler.js';
15
+ import type { GitStatusSampler } from '../../git-status-sampler.js';
16
+ export type { ResumeSwapResult } from '../../slash/types.js';
17
+ export declare function reseedStatsFromStored(stats: SessionStats, stored: StoredSession, resumeId: string): void;
18
+ export declare function printResumeBanner(stats: SessionStats, writer: CompletionWriter): void;
19
+ export type ThinkingUiMode = 'summary' | 'live' | 'off';
20
+ export interface CliOptions {
21
+ model: AgentModelInput;
22
+ maxTurns: string;
23
+ thinking?: string;
24
+ thinkingUi: ThinkingUiMode;
25
+ effort?: string;
26
+ maxOutputTokens?: string;
27
+ resume?: string;
28
+ continue?: boolean;
29
+ debug?: boolean;
30
+ dangerouslySkipPermissions?: boolean;
31
+ worktree?: string | true;
32
+ worktreeAutoname?: boolean;
33
+ worktreeBase?: string;
34
+ shellPassthrough?: boolean;
35
+ provider?: string;
36
+ dumpPrompt?: string | boolean;
37
+ mcpConfig?: string;
38
+ }
39
+ export interface InteractiveCtx {
40
+ session: SessionRef;
41
+ memoryStore: MemoryStore;
42
+ stats: SessionStats;
43
+ statusLine: StatusLine;
44
+ contextSampler: ContextSampler;
45
+ gitStatusSampler: GitStatusSampler;
46
+ completionWriter: CompletionWriter;
47
+ replRenderer: ReplRenderer;
48
+ slashCtx: SlashContext;
49
+ rl: readline.Interface;
50
+ options: CliOptions;
51
+ resumeTarget?: ResolvedResumeTarget;
52
+ teardownTrustedSkillEvents?: () => void;
53
+ mcpManager?: import('../../../agent/mcp/index.js').McpManager;
54
+ backgroundRegistry: BackgroundAgentRegistry;
55
+ subagentControl?: SubagentControl;
56
+ bgSummarizer?: BackgroundSummarizer;
57
+ firstTurnHook?: (firstMessage: string) => Promise<void>;
58
+ getInFlight?: () => boolean;
59
+ requestResume?: (target: ResolvedResumeTarget) => Promise<ResumeSwapResult>;
60
+ clearVerdictLedger?: () => void;
61
+ preArmAnchorRow?: number;
62
+ inputSurfaceRef?: {
63
+ current: import('../../input/input-surface.js').InputSurface | null;
64
+ };
65
+ suggestApiKey?: string;
66
+ suggestBaseUrl?: string;
67
+ suggestGhostConfig?: boolean;
68
+ hookRegistry?: HookRegistry;
69
+ }
70
+ export interface CompletionWriter {
71
+ fn: (line: string) => void;
72
+ idleFn: (line: string) => void;
73
+ }
74
+ export interface TurnHandles {
75
+ setInFlight(v: boolean): void;
76
+ onUserMessage?(userInput: string): Promise<void> | void;
77
+ onTurnComplete?(userInput: string, assistantText: string): Promise<void>;
78
+ onAfterTurn?(): void | Promise<void>;
79
+ rearmStatus?(): void;
80
+ onTerminalState?(state: import('./terminal-state.js').TerminalState): void;
81
+ setActiveCompositor?(c: import('../../terminal-compositor.js').TerminalCompositor | null): void;
82
+ setInterruptNotifier?(notifier: ((active: boolean) => void) | null): void;
83
+ scrollRegion?: {
84
+ withFullScrollRegion<T>(fn: () => T): T;
85
+ getExtraRows(): number;
86
+ };
87
+ getCompositor?(): import('../../terminal-compositor.js').TerminalCompositor | null;
88
+ setBackgroundHandler?(handler: (() => void) | null): void;
89
+ subagentControl?: SubagentControl;
90
+ setSoftStopHandler?(handler: (() => void) | null): void;
91
+ setPausedState?(paused: boolean): void;
92
+ setPauseInterruptHandler?(handler: (() => void) | null): void;
93
+ onContextProgress?(): void | Promise<void>;
94
+ onStageChange?(stage: import('./loop-stage.js').LoopStage): void;
95
+ }
96
+ export declare const REPL_SPINNER_OPTIONS: {
97
+ readonly stream: NodeJS.WriteStream & {
98
+ fd: 1;
99
+ };
100
+ readonly hideCursor: false;
101
+ readonly discardStdin: false;
102
+ };
103
+ export declare function contextRatio(stats: SessionStats, sampler?: ContextSampler): number;
104
+ export declare function formatStatusFields(stats: SessionStats, sampler?: ContextSampler, gitSampler?: GitStatusSampler): {
105
+ pr?: number | undefined;
106
+ branch?: string | undefined;
107
+ cwd?: string | undefined;
108
+ model: string;
109
+ cost: number;
110
+ tokens: number;
111
+ contextPct: number;
112
+ contextLimit: number;
113
+ contextUsedTokens: number | undefined;
114
+ contextSparkline: string | undefined;
115
+ permissionMode: import("../../../agent/types.js").PermissionMode;
116
+ };
@@ -0,0 +1,33 @@
1
+ import { ShellJobRegistry, type ShellJob, type ShellResult, type ShellErrorReason } from '../../../agent/shell-jobs/index.js';
2
+ export interface ShellPassthroughOptions {
3
+ writeLine: (text: string) => void;
4
+ getCwd: () => string | undefined;
5
+ }
6
+ export declare function parseShellTrigger(input: string): {
7
+ mode: 'foreground' | 'background';
8
+ command: string;
9
+ } | null;
10
+ export interface PendingBgNotification {
11
+ job: ShellJob;
12
+ result: ShellResult;
13
+ }
14
+ export declare class ShellPassthrough {
15
+ private readonly opts;
16
+ readonly registry: ShellJobRegistry;
17
+ private pendingInjections;
18
+ private pendingNotifications;
19
+ private activeFgJobId;
20
+ static readonly MAX_PENDING_INJECTIONS = 25;
21
+ static readonly MAX_PENDING_NOTIFICATIONS = 50;
22
+ constructor(opts: ShellPassthroughOptions);
23
+ dispatch(input: string): Promise<boolean>;
24
+ drainInjections(): string;
25
+ drainNotifications(): readonly PendingBgNotification[];
26
+ abortActiveForeground(): boolean;
27
+ hasActiveForeground(): boolean;
28
+ drainOnExit(): void;
29
+ private runForeground;
30
+ private startBackground;
31
+ private queueInjection;
32
+ }
33
+ export type { ShellJob, ShellResult, ShellErrorReason };
@@ -0,0 +1,12 @@
1
+ import type { InputSurface } from '../../input/input-surface.js';
2
+ import type { InteractiveCtx } from './shared.js';
3
+ import type { TranscriptHandle } from './transcript.js';
4
+ import type { LoopStageBar } from './loop-stage.js';
5
+ import { type TurnState } from './repl-loop-shared.js';
6
+ export interface SurfaceSetupDeps {
7
+ getLoopStageBar: () => LoopStageBar | undefined;
8
+ }
9
+ export interface SurfaceSetupResult {
10
+ installSoftStop: (handler: (() => void) | null) => void;
11
+ }
12
+ export declare function setupSurface(ctx: InteractiveCtx, surface: InputSurface, turnState: TurnState, transcript: TranscriptHandle, sigintHandler: () => void, suggestGhostEnabled: boolean, deps: SurfaceSetupDeps): Promise<SurfaceSetupResult>;
@@ -0,0 +1,18 @@
1
+ export type TerminalKind = 'done' | 'blocked' | 'asking' | 'interrupted';
2
+ export interface TerminalState {
3
+ kind: TerminalKind;
4
+ whatWasDone?: string;
5
+ evidence?: string;
6
+ deferred?: string;
7
+ whatBlocks?: string;
8
+ unblockCondition?: string;
9
+ alreadyDone?: string;
10
+ question?: string;
11
+ assumption?: string;
12
+ followup?: string;
13
+ whatWasInProgress?: string;
14
+ stateLocation?: string;
15
+ resumeRequires?: string;
16
+ rawBody: string;
17
+ }
18
+ export declare function parseTerminalState(text: string): TerminalState | null;
@@ -0,0 +1,18 @@
1
+ export declare function formatThoughtSummary(durationMs: number, charCount: number): string;
2
+ export declare class ThinkingLane {
3
+ private buffer;
4
+ private startedAt;
5
+ private endedAt;
6
+ private hasEmitted;
7
+ private committedUpTo;
8
+ push(chunk: string): void;
9
+ markEnded(): void;
10
+ isActive(): boolean;
11
+ hasBufferedContent(): boolean;
12
+ peek(): string;
13
+ consume(): string;
14
+ peekPhase(): string;
15
+ drainPhase(): string;
16
+ collapse(): string | null;
17
+ inlineSummary(): string | null;
18
+ }
@@ -0,0 +1,5 @@
1
+ export interface ThinkingParagraphOptions {
2
+ cols: number;
3
+ maxLines?: number;
4
+ }
5
+ export declare function formatThinkingParagraph(buffer: string, opts: ThinkingParagraphOptions): string;
@@ -0,0 +1,4 @@
1
+ export declare function shortenPaths(text: string): string;
2
+ export declare function summarizeToolArgs(name: string, args: string): string;
3
+ export declare function bracketPairAwareTruncate(args: string, maxWidth: number, ellipsis?: string): string;
4
+ export declare function formatToolLine(content: string, maxWidth?: number): string;
@@ -0,0 +1,4 @@
1
+ import type { DiffPayload } from '../../../utils/diff.js';
2
+ export declare const MAX_OVERLAY_DIFF_LINES = 8;
3
+ export declare const FLUSH_DIFF_LINES_DEFAULT = 30;
4
+ export declare function formatDiffBlock(diff: DiffPayload, mode: 'overlay' | 'flush', indent: string): string[];
@@ -0,0 +1,2 @@
1
+ export declare function sanitizeLabel(raw: string): string;
2
+ export declare function sanitizeTextParagraph(raw: string): string;
@@ -0,0 +1,14 @@
1
+ import type { ToolResultChunk } from '../../../agent/types/message-types.js';
2
+ import { sanitizeLabel, sanitizeTextParagraph } from './tool-lane-format-sanitize.js';
3
+ export { sanitizeLabel, sanitizeTextParagraph };
4
+ export { shortenPaths, summarizeToolArgs, bracketPairAwareTruncate, formatToolLine, } from './tool-lane-format-args.js';
5
+ export { MAX_OVERLAY_DIFF_LINES, FLUSH_DIFF_LINES_DEFAULT, formatDiffBlock, } from './tool-lane-format-diff.js';
6
+ export declare const DONE_GLYPH: string;
7
+ export declare const ERROR_GLYPH: string;
8
+ export declare function doneGlyph(isError: boolean | undefined): string;
9
+ export declare const MAX_VISIBLE_CHILDREN = 3;
10
+ export declare const GROUP_THRESHOLD_DISPATCH = 2;
11
+ export declare const GROUP_THRESHOLD_LEAF = 3;
12
+ export declare function inProgressVerb(toolName: string): string;
13
+ export declare function formatOutcome(chunk: ToolResultChunk, homeDir?: string, maxPreview?: number, toolName?: string): string;
14
+ export declare function formatToolResultLine(chunk: ToolResultChunk, toolPrefix?: string, homeDir?: string, toolName?: string): string;
@@ -0,0 +1,7 @@
1
+ import type { ToolEntry, Entry } from './tool-lane-render.js';
2
+ declare function formatAgentSummary(agent: ToolEntry, children: Entry[], childMap: Map<string, Entry[]>, homeDir?: string, ancestorIsLast?: readonly boolean[]): string;
3
+ declare function formatAgentHeader(agent: ToolEntry, ancestorIsLast?: readonly boolean[]): string;
4
+ declare function formatAgentChildren(agent: ToolEntry, children: Entry[], childMap: Map<string, Entry[]>, homeDir?: string, ancestorIsLast?: readonly boolean[]): string[];
5
+ declare function renderGroupedRootTools(groups: Map<string, ToolEntry[]>, groupOrder: string[], homeDir?: string): string[];
6
+ declare function formatGroupedToolResults(toolName: string, entries: ToolEntry[], homeDir?: string): string;
7
+ export { formatAgentSummary, formatAgentHeader, formatAgentChildren, renderGroupedRootTools, formatGroupedToolResults, };
@@ -0,0 +1,4 @@
1
+ import type { Entry, Glyphs } from './tool-lane-render.js';
2
+ declare function renderOverlayChildren(children: Entry[], childMap: Map<string, Entry[]>, lines: string[], cols?: number, ancestorIsLast?: readonly boolean[], g?: Readonly<Glyphs>, parentIsLast?: boolean): void;
3
+ declare function renderFlushChildren(children: Entry[], childMap: Map<string, Entry[]>, homeDir?: string, agentResultSummary?: string, cols?: number, ancestorIsLast?: readonly boolean[], g?: Readonly<Glyphs>, parentIsLast?: boolean): string[];
4
+ export { renderOverlayChildren, renderFlushChildren };
@@ -0,0 +1,15 @@
1
+ import type { ToolEntry } from './tool-lane-render.js';
2
+ interface GroupedSibling {
3
+ kind: 'group';
4
+ toolName: string;
5
+ label: string;
6
+ entries: ToolEntry[];
7
+ }
8
+ export interface OverflowSibling {
9
+ kind: 'overflow';
10
+ count: number;
11
+ text: string;
12
+ }
13
+ export declare function addOverflowSynthetic(siblings: Array<ToolEntry | GroupedSibling>, maxVisible: number): Array<ToolEntry | GroupedSibling | OverflowSibling>;
14
+ export declare function formatCategoricalOverflow(hidden: Array<ToolEntry | GroupedSibling>): string;
15
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { ToolEntry } from './tool-lane-render.js';
2
+ import type { Glyphs } from './tool-lane-render.js';
3
+ import { addOverflowSynthetic, formatCategoricalOverflow, type OverflowSibling } from './tool-lane-render-grouping-overflow.js';
4
+ interface GroupedSibling {
5
+ kind: 'group';
6
+ toolName: string;
7
+ label: string;
8
+ entries: ToolEntry[];
9
+ }
10
+ interface ResultSummarySibling {
11
+ kind: 'resultSummary';
12
+ summary: string;
13
+ }
14
+ type RenderableSibling = ToolEntry | GroupedSibling | OverflowSibling | ResultSummarySibling;
15
+ interface ConnectedSibling {
16
+ sibling: RenderableSibling;
17
+ connector: string;
18
+ }
19
+ declare function assignConnectors(siblings: RenderableSibling[], g?: Readonly<Glyphs>): ConnectedSibling[];
20
+ declare function addResultSummarySynthetic(siblings: RenderableSibling[], agentResultSummary: string | undefined): RenderableSibling[];
21
+ declare function groupSiblings(toolChildren: ToolEntry[]): Array<ToolEntry | GroupedSibling>;
22
+ declare function formatGroupedSibling(group: GroupedSibling): string;
23
+ export { assignConnectors, addOverflowSynthetic, addResultSummarySynthetic, groupSiblings, formatGroupedSibling, formatCategoricalOverflow, type GroupedSibling, type OverflowSibling, type ResultSummarySibling, type RenderableSibling, type ConnectedSibling, };
@@ -0,0 +1,45 @@
1
+ import type { ToolResultChunk } from '../../../agent/types/message-types.js';
2
+ import type { DiffPayload } from '../../../utils/diff.js';
3
+ export declare function clampLineToTerminal(line: string, cols: number): string;
4
+ interface ToolEntryFields {
5
+ toolUseId: string;
6
+ toolName: string;
7
+ toolInput: string;
8
+ prefix: string;
9
+ result?: ToolResultChunk;
10
+ agentContext?: string;
11
+ agentResultSummary?: string;
12
+ thinkingTail?: string;
13
+ diff?: DiffPayload;
14
+ headerEmitted?: boolean;
15
+ }
16
+ export type ToolEntry = ToolEntryFields & {
17
+ kind: 'tool';
18
+ };
19
+ export interface TextEntry {
20
+ kind: 'text';
21
+ toolUseId: string;
22
+ text: string;
23
+ agentContext: string;
24
+ }
25
+ export type Entry = ToolEntry | TextEntry;
26
+ export interface Glyphs {
27
+ spine: string;
28
+ spineClosed: string;
29
+ lead: string;
30
+ turnRoot: string;
31
+ midConnector: string;
32
+ lastConnector: string;
33
+ textPrefix: string;
34
+ }
35
+ export declare const UNICODE_GLYPHS: Readonly<Glyphs>;
36
+ export declare const ASCII_GLYPHS: Readonly<Glyphs>;
37
+ export declare const TREE_CONNECTOR_MID: string;
38
+ export declare const TREE_CONNECTOR_LAST: string;
39
+ export declare function getGlyphs(): Readonly<Glyphs>;
40
+ export declare function buildIndent(ancestorIsLast: readonly boolean[], g: Readonly<Glyphs>): string;
41
+ export declare function colorizeIndent(plainIndent: string, g: Readonly<Glyphs>): string;
42
+ export declare function renderTextChildLines(text: string, indent: string, g: Readonly<Glyphs>): string[];
43
+ export { assignConnectors, addOverflowSynthetic, addResultSummarySynthetic, type GroupedSibling, type OverflowSibling, type ResultSummarySibling, type RenderableSibling, type ConnectedSibling, } from './tool-lane-render-grouping.js';
44
+ export { renderOverlayChildren, renderFlushChildren } from './tool-lane-render-children.js';
45
+ export { formatAgentSummary, formatAgentHeader, formatAgentChildren, renderGroupedRootTools, formatGroupedToolResults, } from './tool-lane-render-agent.js';