@zvada/agent-server 0.3.22 → 0.3.23

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 (348) hide show
  1. package/CHANGELOG.md +261 -0
  2. package/dist/types/accounts/chatgpt.d.ts +1 -1
  3. package/dist/types/accounts/chatgpt.d.ts.map +1 -1
  4. package/dist/types/accounts/http.d.ts +2 -4
  5. package/dist/types/accounts/http.d.ts.map +1 -1
  6. package/dist/types/client/client.d.ts +37 -11
  7. package/dist/types/client/client.d.ts.map +1 -1
  8. package/dist/types/client/connection.d.ts +64 -13
  9. package/dist/types/client/connection.d.ts.map +1 -1
  10. package/dist/types/client/index.d.ts +1 -1
  11. package/dist/types/client/index.d.ts.map +1 -1
  12. package/dist/types/client/logins.d.ts +2 -1
  13. package/dist/types/client/logins.d.ts.map +1 -1
  14. package/dist/types/client/streams.d.ts +9 -3
  15. package/dist/types/client/streams.d.ts.map +1 -1
  16. package/dist/types/client/turns.d.ts +1 -1
  17. package/dist/types/client/turns.d.ts.map +1 -1
  18. package/dist/types/core/agents/acp/acp-agent.d.ts +34 -1
  19. package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
  20. package/dist/types/core/agents/acp/adapter.d.ts.map +1 -1
  21. package/dist/types/core/agents/acp/client.d.ts +12 -3
  22. package/dist/types/core/agents/acp/client.d.ts.map +1 -1
  23. package/dist/types/core/agents/acp/mappings.d.ts +8 -2
  24. package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
  25. package/dist/types/core/agents/base.d.ts +22 -8
  26. package/dist/types/core/agents/base.d.ts.map +1 -1
  27. package/dist/types/core/agents/claude-code/adapter.d.ts +7 -0
  28. package/dist/types/core/agents/claude-code/adapter.d.ts.map +1 -1
  29. package/dist/types/core/agents/claude-code/approvals.d.ts +4 -1
  30. package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -1
  31. package/dist/types/core/agents/claude-code/claude-agent.d.ts +16 -5
  32. package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
  33. package/dist/types/core/agents/claude-code/events.d.ts +9 -1
  34. package/dist/types/core/agents/claude-code/events.d.ts.map +1 -1
  35. package/dist/types/core/agents/claude-code/login.d.ts +4 -1
  36. package/dist/types/core/agents/claude-code/login.d.ts.map +1 -1
  37. package/dist/types/core/agents/claude-code/mcp.d.ts +21 -7
  38. package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -1
  39. package/dist/types/core/agents/claude-code/models.d.ts +5 -1
  40. package/dist/types/core/agents/claude-code/models.d.ts.map +1 -1
  41. package/dist/types/core/agents/claude-code/options.d.ts +10 -4
  42. package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
  43. package/dist/types/core/agents/claude-code/outcome.d.ts +3 -5
  44. package/dist/types/core/agents/claude-code/outcome.d.ts.map +1 -1
  45. package/dist/types/core/agents/claude-code/results.d.ts +16 -0
  46. package/dist/types/core/agents/claude-code/results.d.ts.map +1 -0
  47. package/dist/types/core/agents/claude-code/sdk-pair.d.ts +13 -0
  48. package/dist/types/core/agents/claude-code/sdk-pair.d.ts.map +1 -0
  49. package/dist/types/core/agents/claude-code/session.d.ts +50 -12
  50. package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
  51. package/dist/types/core/agents/claude-code/spend.d.ts +2 -1
  52. package/dist/types/core/agents/claude-code/spend.d.ts.map +1 -1
  53. package/dist/types/core/agents/claude-code/tools.d.ts +26 -3
  54. package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -1
  55. package/dist/types/core/agents/codex-app-server/adapter.d.ts +2 -2
  56. package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -1
  57. package/dist/types/core/agents/codex-app-server/client.d.ts +12 -2
  58. package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
  59. package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +58 -13
  60. package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -1
  61. package/dist/types/core/agents/codex-app-server/commands.d.ts +2 -2
  62. package/dist/types/core/agents/codex-app-server/commands.d.ts.map +1 -1
  63. package/dist/types/core/agents/codex-app-server/credentials.d.ts +5 -1
  64. package/dist/types/core/agents/codex-app-server/credentials.d.ts.map +1 -1
  65. package/dist/types/core/agents/codex-app-server/effort.d.ts +2 -1
  66. package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -1
  67. package/dist/types/core/agents/codex-app-server/homes.d.ts +19 -0
  68. package/dist/types/core/agents/codex-app-server/homes.d.ts.map +1 -1
  69. package/dist/types/core/agents/codex-app-server/items.d.ts +27 -2
  70. package/dist/types/core/agents/codex-app-server/items.d.ts.map +1 -1
  71. package/dist/types/core/agents/codex-app-server/login.d.ts +4 -1
  72. package/dist/types/core/agents/codex-app-server/login.d.ts.map +1 -1
  73. package/dist/types/core/agents/codex-app-server/mcp.d.ts +15 -30
  74. package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -1
  75. package/dist/types/core/agents/codex-app-server/models.d.ts +3 -10
  76. package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -1
  77. package/dist/types/core/agents/codex-app-server/options.d.ts +27 -4
  78. package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -1
  79. package/dist/types/core/agents/codex-app-server/plan-approval.d.ts +2 -1
  80. package/dist/types/core/agents/codex-app-server/plan-approval.d.ts.map +1 -1
  81. package/dist/types/core/agents/codex-app-server/protocol.d.ts +16 -3
  82. package/dist/types/core/agents/codex-app-server/protocol.d.ts.map +1 -1
  83. package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -1
  84. package/dist/types/core/agents/codex-app-server/session.d.ts +68 -40
  85. package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -1
  86. package/dist/types/core/agents/codex-app-server/subagents.d.ts +9 -4
  87. package/dist/types/core/agents/codex-app-server/subagents.d.ts.map +1 -1
  88. package/dist/types/core/agents/codex-app-server/thread-settings.d.ts +3 -2
  89. package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -1
  90. package/dist/types/core/agents/codex-app-server/turn-items.d.ts +2 -1
  91. package/dist/types/core/agents/codex-app-server/turn-items.d.ts.map +1 -1
  92. package/dist/types/core/agents/codex-app-server/turn.d.ts +31 -8
  93. package/dist/types/core/agents/codex-app-server/turn.d.ts.map +1 -1
  94. package/dist/types/core/agents/codex-app-server/user-login.d.ts +28 -0
  95. package/dist/types/core/agents/codex-app-server/user-login.d.ts.map +1 -0
  96. package/dist/types/core/agents/credentials.d.ts +3 -1
  97. package/dist/types/core/agents/credentials.d.ts.map +1 -1
  98. package/dist/types/core/agents/diffs.d.ts +9 -0
  99. package/dist/types/core/agents/diffs.d.ts.map +1 -0
  100. package/dist/types/core/agents/elicitation.d.ts +3 -2
  101. package/dist/types/core/agents/elicitation.d.ts.map +1 -1
  102. package/dist/types/core/agents/login.d.ts +6 -0
  103. package/dist/types/core/agents/login.d.ts.map +1 -1
  104. package/dist/types/core/agents/mcp-config.d.ts +0 -4
  105. package/dist/types/core/agents/mcp-config.d.ts.map +1 -1
  106. package/dist/types/core/agents/process-pool.d.ts +193 -0
  107. package/dist/types/core/agents/process-pool.d.ts.map +1 -0
  108. package/dist/types/core/agents/scripted/adapter.d.ts +68 -0
  109. package/dist/types/core/agents/scripted/adapter.d.ts.map +1 -0
  110. package/dist/types/core/agents/scripted/mcp-call.d.ts +56 -0
  111. package/dist/types/core/agents/scripted/mcp-call.d.ts.map +1 -0
  112. package/dist/types/core/agents/scripted/scripted-agent.d.ts +73 -0
  113. package/dist/types/core/agents/scripted/scripted-agent.d.ts.map +1 -0
  114. package/dist/types/core/agents/scripted/scripts.d.ts +29 -0
  115. package/dist/types/core/agents/scripted/scripts.d.ts.map +1 -0
  116. package/dist/types/core/agents/scripted/steps.d.ts +132 -0
  117. package/dist/types/core/agents/scripted/steps.d.ts.map +1 -0
  118. package/dist/types/core/agents/session-agent.d.ts +49 -6
  119. package/dist/types/core/agents/session-agent.d.ts.map +1 -1
  120. package/dist/types/core/diagnostics.d.ts +4 -1
  121. package/dist/types/core/diagnostics.d.ts.map +1 -1
  122. package/dist/types/core/index.d.ts +5 -0
  123. package/dist/types/core/index.d.ts.map +1 -1
  124. package/dist/types/core/presets.d.ts +32 -6
  125. package/dist/types/core/presets.d.ts.map +1 -1
  126. package/dist/types/core/processes/lifeline.d.ts +0 -20
  127. package/dist/types/core/processes/lifeline.d.ts.map +1 -1
  128. package/dist/types/core/provision/index.d.ts +2 -2
  129. package/dist/types/core/provision/index.d.ts.map +1 -1
  130. package/dist/types/core/provision/install-build.d.ts +2 -1
  131. package/dist/types/core/provision/install-build.d.ts.map +1 -1
  132. package/dist/types/core/provision/npm.d.ts +20 -8
  133. package/dist/types/core/provision/npm.d.ts.map +1 -1
  134. package/dist/types/core/provision/provisioner.d.ts +4 -1
  135. package/dist/types/core/provision/provisioner.d.ts.map +1 -1
  136. package/dist/types/core/provision/tools.d.ts +2 -1
  137. package/dist/types/core/provision/tools.d.ts.map +1 -1
  138. package/dist/types/core/runtime/agent-runtime.d.ts +16 -8
  139. package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -1
  140. package/dist/types/core/runtime/event-processor.d.ts +5 -1
  141. package/dist/types/core/runtime/event-processor.d.ts.map +1 -1
  142. package/dist/types/core/runtime/harness-clis.d.ts +9 -0
  143. package/dist/types/core/runtime/harness-clis.d.ts.map +1 -1
  144. package/dist/types/core/runtime/harness-logins.d.ts +33 -5
  145. package/dist/types/core/runtime/harness-logins.d.ts.map +1 -1
  146. package/dist/types/core/runtime/model-lists.d.ts +2 -0
  147. package/dist/types/core/runtime/model-lists.d.ts.map +1 -1
  148. package/dist/types/core/runtime/permission-policy.d.ts +5 -3
  149. package/dist/types/core/runtime/permission-policy.d.ts.map +1 -1
  150. package/dist/types/core/runtime/request-broker.d.ts +2 -1
  151. package/dist/types/core/runtime/request-broker.d.ts.map +1 -1
  152. package/dist/types/core/runtime/turn.d.ts +12 -1
  153. package/dist/types/core/runtime/turn.d.ts.map +1 -1
  154. package/dist/types/core/utils/deadline.d.ts +6 -0
  155. package/dist/types/core/utils/deadline.d.ts.map +1 -1
  156. package/dist/types/core/utils/errors.d.ts +7 -1
  157. package/dist/types/core/utils/errors.d.ts.map +1 -1
  158. package/dist/types/operator/operator.d.ts.map +1 -1
  159. package/dist/types/operator/render.d.ts +6 -4
  160. package/dist/types/operator/render.d.ts.map +1 -1
  161. package/dist/types/protocol/auth.d.ts +54 -24
  162. package/dist/types/protocol/auth.d.ts.map +1 -1
  163. package/dist/types/protocol/clis.d.ts +14 -7
  164. package/dist/types/protocol/clis.d.ts.map +1 -1
  165. package/dist/types/protocol/config.d.ts +2 -0
  166. package/dist/types/protocol/config.d.ts.map +1 -1
  167. package/dist/types/protocol/conversation.d.ts +40 -3
  168. package/dist/types/protocol/conversation.d.ts.map +1 -1
  169. package/dist/types/protocol/credentials.d.ts +7 -0
  170. package/dist/types/protocol/credentials.d.ts.map +1 -1
  171. package/dist/types/protocol/execution.d.ts +2 -1
  172. package/dist/types/protocol/execution.d.ts.map +1 -1
  173. package/dist/types/protocol/factories.d.ts +12 -2
  174. package/dist/types/protocol/factories.d.ts.map +1 -1
  175. package/dist/types/protocol/harness.d.ts +6 -2
  176. package/dist/types/protocol/harness.d.ts.map +1 -1
  177. package/dist/types/protocol/history.d.ts +19 -0
  178. package/dist/types/protocol/history.d.ts.map +1 -1
  179. package/dist/types/protocol/lifecycle.d.ts +47 -8
  180. package/dist/types/protocol/lifecycle.d.ts.map +1 -1
  181. package/dist/types/protocol/model-catalog.d.ts.map +1 -1
  182. package/dist/types/protocol/models.d.ts +3 -0
  183. package/dist/types/protocol/models.d.ts.map +1 -1
  184. package/dist/types/protocol/parts.d.ts +14 -0
  185. package/dist/types/protocol/parts.d.ts.map +1 -1
  186. package/dist/types/protocol/tool-state.d.ts +12 -0
  187. package/dist/types/protocol/tool-state.d.ts.map +1 -1
  188. package/dist/types/protocol/wire-api.d.ts +129 -23
  189. package/dist/types/protocol/wire-api.d.ts.map +1 -1
  190. package/dist/types/protocol/wire.d.ts +70 -10
  191. package/dist/types/protocol/wire.d.ts.map +1 -1
  192. package/dist/types/server/acp/binding.d.ts +6 -1
  193. package/dist/types/server/acp/binding.d.ts.map +1 -1
  194. package/dist/types/server/acp/translate.d.ts +33 -7
  195. package/dist/types/server/acp/translate.d.ts.map +1 -1
  196. package/dist/types/server/agent-server.d.ts +6 -0
  197. package/dist/types/server/agent-server.d.ts.map +1 -1
  198. package/dist/types/server/feedback.d.ts +2 -1
  199. package/dist/types/server/feedback.d.ts.map +1 -1
  200. package/dist/types/server/install.d.ts +11 -0
  201. package/dist/types/server/install.d.ts.map +1 -1
  202. package/dist/types/server/session-gate.d.ts +2 -1
  203. package/dist/types/server/session-gate.d.ts.map +1 -1
  204. package/dist/types/server/session-store.d.ts +1 -0
  205. package/dist/types/server/session-store.d.ts.map +1 -1
  206. package/dist/types/server/subscriptions.d.ts +2 -1
  207. package/dist/types/server/subscriptions.d.ts.map +1 -1
  208. package/dist/types/server/transports.d.ts.map +1 -1
  209. package/dist/types/sync/fit.d.ts +8 -7
  210. package/dist/types/sync/fit.d.ts.map +1 -1
  211. package/dist/types/sync/history-sqlite.d.ts.map +1 -1
  212. package/dist/types/sync/index.d.ts +1 -0
  213. package/dist/types/sync/index.d.ts.map +1 -1
  214. package/dist/types/sync/journal-sqlite.d.ts +2 -1
  215. package/dist/types/sync/journal-sqlite.d.ts.map +1 -1
  216. package/dist/types/sync/journal.d.ts +11 -3
  217. package/dist/types/sync/journal.d.ts.map +1 -1
  218. package/dist/types/sync/projection.d.ts +6 -0
  219. package/dist/types/sync/projection.d.ts.map +1 -1
  220. package/dist/types/sync/recovery.d.ts +2 -1
  221. package/dist/types/sync/recovery.d.ts.map +1 -1
  222. package/dist/types/sync/schema.d.ts +10 -0
  223. package/dist/types/sync/schema.d.ts.map +1 -1
  224. package/dist/types/sync/sql.d.ts +2 -1
  225. package/dist/types/sync/sql.d.ts.map +1 -1
  226. package/docs/consuming.md +278 -28
  227. package/docs/deploy.md +36 -8
  228. package/docs/durable-sessions.md +35 -5
  229. package/docs/harnesses.md +385 -24
  230. package/package.json +6 -1
  231. package/src/accounts/chatgpt.ts +2 -2
  232. package/src/accounts/http.ts +2 -16
  233. package/src/client/client.ts +92 -31
  234. package/src/client/connection.ts +103 -22
  235. package/src/client/index.ts +1 -0
  236. package/src/client/logins.ts +1 -1
  237. package/src/client/streams.ts +12 -4
  238. package/src/client/turns.ts +1 -1
  239. package/src/core/agents/acp/acp-agent.ts +181 -52
  240. package/src/core/agents/acp/adapter.ts +9 -1
  241. package/src/core/agents/acp/client.ts +16 -4
  242. package/src/core/agents/acp/mappings.ts +27 -0
  243. package/src/core/agents/base.ts +25 -10
  244. package/src/core/agents/claude-code/adapter.ts +47 -17
  245. package/src/core/agents/claude-code/approvals.ts +6 -5
  246. package/src/core/agents/claude-code/claude-agent.ts +60 -30
  247. package/src/core/agents/claude-code/events.ts +11 -1
  248. package/src/core/agents/claude-code/login.ts +14 -2
  249. package/src/core/agents/claude-code/mcp.ts +31 -15
  250. package/src/core/agents/claude-code/models.ts +7 -2
  251. package/src/core/agents/claude-code/options.ts +11 -3
  252. package/src/core/agents/claude-code/outcome.ts +10 -2
  253. package/src/core/agents/claude-code/results.ts +73 -0
  254. package/src/core/agents/claude-code/sdk-pair.ts +66 -0
  255. package/src/core/agents/claude-code/session.ts +166 -37
  256. package/src/core/agents/claude-code/spend.ts +1 -1
  257. package/src/core/agents/claude-code/tools.ts +108 -12
  258. package/src/core/agents/codex-app-server/adapter.ts +37 -12
  259. package/src/core/agents/codex-app-server/client.ts +37 -8
  260. package/src/core/agents/codex-app-server/codex-agent.ts +115 -50
  261. package/src/core/agents/codex-app-server/commands.ts +2 -2
  262. package/src/core/agents/codex-app-server/credentials.ts +10 -5
  263. package/src/core/agents/codex-app-server/effort.ts +1 -1
  264. package/src/core/agents/codex-app-server/homes.ts +43 -1
  265. package/src/core/agents/codex-app-server/items.ts +219 -31
  266. package/src/core/agents/codex-app-server/login.ts +14 -2
  267. package/src/core/agents/codex-app-server/mcp.ts +47 -32
  268. package/src/core/agents/codex-app-server/models.ts +9 -8
  269. package/src/core/agents/codex-app-server/options.ts +69 -10
  270. package/src/core/agents/codex-app-server/plan-approval.ts +1 -1
  271. package/src/core/agents/codex-app-server/protocol.ts +14 -4
  272. package/src/core/agents/codex-app-server/requests.ts +14 -6
  273. package/src/core/agents/codex-app-server/session.ts +151 -113
  274. package/src/core/agents/codex-app-server/subagents.ts +21 -14
  275. package/src/core/agents/codex-app-server/thread-settings.ts +18 -8
  276. package/src/core/agents/codex-app-server/turn-items.ts +1 -1
  277. package/src/core/agents/codex-app-server/turn.ts +79 -32
  278. package/src/core/agents/codex-app-server/user-login.ts +107 -0
  279. package/src/core/agents/credentials.ts +5 -2
  280. package/src/core/agents/diffs.ts +25 -0
  281. package/src/core/agents/elicitation.ts +2 -2
  282. package/src/core/agents/login.ts +6 -0
  283. package/src/core/agents/mcp-config.ts +2 -2
  284. package/src/core/agents/process-pool.ts +432 -0
  285. package/src/core/agents/scripted/adapter.ts +142 -0
  286. package/src/core/agents/scripted/mcp-call.ts +134 -0
  287. package/src/core/agents/scripted/scripted-agent.ts +418 -0
  288. package/src/core/agents/scripted/scripts.ts +171 -0
  289. package/src/core/agents/scripted/steps.ts +127 -0
  290. package/src/core/agents/session-agent.ts +105 -8
  291. package/src/core/diagnostics.ts +9 -1
  292. package/src/core/index.ts +11 -0
  293. package/src/core/presets.ts +99 -14
  294. package/src/core/processes/lifeline.ts +99 -25
  295. package/src/core/provision/index.ts +1 -2
  296. package/src/core/provision/install-build.ts +4 -1
  297. package/src/core/provision/npm.ts +309 -97
  298. package/src/core/provision/provisioner.ts +22 -8
  299. package/src/core/provision/tools.ts +44 -19
  300. package/src/core/runtime/agent-runtime.ts +48 -18
  301. package/src/core/runtime/event-processor.ts +18 -2
  302. package/src/core/runtime/harness-clis.ts +36 -1
  303. package/src/core/runtime/harness-logins.ts +82 -31
  304. package/src/core/runtime/model-lists.ts +1 -1
  305. package/src/core/runtime/permission-policy.ts +4 -3
  306. package/src/core/runtime/request-broker.ts +1 -1
  307. package/src/core/runtime/turn.ts +51 -3
  308. package/src/core/utils/deadline.ts +23 -0
  309. package/src/core/utils/errors.ts +11 -4
  310. package/src/operator/operator.ts +8 -4
  311. package/src/operator/render.ts +46 -8
  312. package/src/protocol/auth.ts +30 -23
  313. package/src/protocol/clis.ts +12 -4
  314. package/src/protocol/credentials.ts +19 -0
  315. package/src/protocol/execution.ts +5 -0
  316. package/src/protocol/factories.ts +25 -3
  317. package/src/protocol/harness.ts +11 -1
  318. package/src/protocol/history.ts +20 -0
  319. package/src/protocol/lifecycle.ts +10 -1
  320. package/src/protocol/model-catalog.ts +19 -8
  321. package/src/protocol/parts.ts +12 -1
  322. package/src/protocol/tool-state.ts +14 -1
  323. package/src/protocol/wire.ts +14 -0
  324. package/src/server/acp/binding.ts +113 -23
  325. package/src/server/acp/translate.ts +161 -8
  326. package/src/server/agent-server.ts +10 -1
  327. package/src/server/bin.ts +83 -9
  328. package/src/server/feedback.ts +1 -1
  329. package/src/server/install.ts +82 -4
  330. package/src/server/session-gate.ts +1 -1
  331. package/src/server/session-store.ts +5 -1
  332. package/src/server/subscriptions.ts +1 -1
  333. package/src/server/transports.ts +14 -0
  334. package/src/sync/fit.ts +115 -28
  335. package/src/sync/history-sqlite.ts +6 -2
  336. package/src/sync/index.ts +1 -0
  337. package/src/sync/journal-sqlite.ts +20 -2
  338. package/src/sync/journal.ts +10 -2
  339. package/src/sync/projection.ts +10 -0
  340. package/src/sync/recovery.ts +11 -4
  341. package/src/sync/schema.ts +7 -5
  342. package/src/sync/sql.ts +1 -1
  343. package/dist/types/core/agents/claude-code/session-pool.d.ts +0 -36
  344. package/dist/types/core/agents/claude-code/session-pool.d.ts.map +0 -1
  345. package/dist/types/core/agents/session-pool.d.ts +0 -41
  346. package/dist/types/core/agents/session-pool.d.ts.map +0 -1
  347. package/src/core/agents/claude-code/session-pool.ts +0 -136
  348. package/src/core/agents/session-pool.ts +0 -111
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,SAAS,EAA0B,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAsC,MAAM,UAAU,CAAC;AAChG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACN,KAAK,oBAAoB,EAIzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,0EAA0E;AAC1E,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACzD,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,MAAM,EAAE,WAAW,CAAC;IACpB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sGAAsG;IACtG,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,aAAa,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,CAAC,CAAC;IAC7E,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;CA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SAAS,EAAE,MAAM,GAAG,OAAO;IAInC;;;OAGG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS;IAU9D;;;;;OAKG;IACH,UAAU,IAAI,IAAI;IASlB;;;;OAIG;IACH,YAAY,IAAI,IAAI;IAIpB,yEAAyE;IACzE,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAMhC,YAAY,IAAI,IAAI;YAMN,KAAK;YAgBL,KAAK;CA2EnB"}
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,SAAS,EAA0B,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAA0C,MAAM,UAAU,CAAC;AACpG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACN,KAAK,oBAAoB,EAEzB,KAAK,iBAAiB,EAItB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,0EAA0E;AAC1E,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACzD,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,yEAAyE;IACzE,MAAM,EAAE,WAAW,CAAC;IACpB,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,6FAA6F;IAC7F,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,IAAI;IAI5D,8EAA8E;IAC9E,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAInC;;;OAGG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS;IAU9D;;;;;OAKG;IACH,UAAU,IAAI,IAAI;IAIlB;;;;;OAKG;IACH,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzC,6DAA6D;IAC7D,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAO7B;;;;;;;;OAQG;YACW,eAAe;IA+B7B;;;;OAIG;YACW,KAAK;CA6DnB"}
@@ -6,12 +6,11 @@ import type { NativeTurn, TurnStop } from "./turn.ts";
6
6
  export declare class CodexTurnSubagents {
7
7
  private readonly client;
8
8
  private readonly root;
9
- private readonly timeoutMs;
10
9
  private readonly parents;
11
10
  private readonly candidates;
12
11
  private readonly active;
13
12
  private activeAtParentEnd;
14
- constructor(client: CodexConnection, root: string, timeoutMs: number);
13
+ constructor(client: CodexConnection, root: string);
15
14
  observe(notification: CodexNotification): void;
16
15
  private read;
17
16
  owns(id: string): Promise<boolean>;
@@ -33,14 +32,20 @@ export declare class ManagedStop implements TurnStop {
33
32
  private readonly threadId;
34
33
  private readonly commands;
35
34
  private readonly signal;
36
- /** Every cleanup request's deadline; five of them, the whole cleanup's. */
35
+ /**
36
+ * How long Codex has to answer the `turn/interrupt` that stops its turn
37
+ * before its process is ended (`cancelGraceMs`).
38
+ */
37
39
  private readonly graceMs;
38
40
  /** Keep the session from another turn until its process is confirmed stopped. */
39
41
  private readonly quarantine;
40
42
  readonly continues = false;
41
43
  private finishing?;
42
44
  constructor(subagents: CodexTurnSubagents, client: CodexConnection, threadId: string, commands: TurnCommands, signal: AbortSignal,
43
- /** Every cleanup request's deadline; five of them, the whole cleanup's. */
45
+ /**
46
+ * How long Codex has to answer the `turn/interrupt` that stops its turn
47
+ * before its process is ended (`cancelGraceMs`).
48
+ */
44
49
  graceMs: number,
45
50
  /** Keep the session from another turn until its process is confirmed stopped. */
46
51
  quarantine: () => void);
@@ -1 +1 @@
1
- {"version":3,"file":"subagents.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/subagents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAS,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,KAAK,iBAAiB,EAAa,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAsBtD,iFAAiF;AACjF,qBAAa,kBAAkB;IAO7B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAR3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqB;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,iBAAiB,CAAqB;gBAG5B,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM;IAGnC,OAAO,CAAC,YAAY,EAAE,iBAAiB,GAAG,IAAI;YAmChC,IAAI;IAaZ,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;YAc1B,WAAW;IAmBzB,uFAAuF;IACjF,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;CA0DhC;AAED;;;;;;;GAOG;AACH,qBAAa,WAAY,YAAW,QAAQ;IAK1C,OA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,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvC,cAAc,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAKnC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAM9B,OAAO,CAAC,MAAM;CAyCd"}
@@ -28,7 +28,7 @@ export interface ThreadSettings {
28
28
  readonly effortSet: boolean;
29
29
  }
30
30
  /** What a turn sends Codex to run as its options ask, and what it leaves the thread on. */
31
- export interface TurnSettings {
31
+ interface TurnSettings {
32
32
  /** The `turn/start` params that carry them. */
33
33
  params: Record<string, unknown>;
34
34
  /** The thinking level and reported model the turn runs, as far as the engine knows. */
@@ -71,7 +71,7 @@ export declare class CodexThread {
71
71
  * cannot, the thread keeps what Codex has, and a later turn that names no
72
72
  * model sends the default.
73
73
  */
74
- restore(session: CodexSession, previous: ThreadSettings, sent: Record<string, unknown>, timeoutMs: number): Promise<void>;
74
+ restore(session: CodexSession, previous: ThreadSettings, sent: Record<string, unknown>): Promise<void>;
75
75
  /**
76
76
  * What a turn that names no model or level runs. Read once; empty when
77
77
  * Codex cannot say, and read again by a later turn.
@@ -84,4 +84,5 @@ export declare class CodexThread {
84
84
  */
85
85
  private defaultEffort;
86
86
  }
87
+ export {};
87
88
  //# sourceMappingURL=thread-settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thread-settings.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/thread-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AASxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM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AAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;IA2BhB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAcnB;;;;OAIG;YACW,aAAa;CAU3B"}
1
+ {"version":3,"file":"thread-settings.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/thread-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AASxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAKjD;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,gGAAgG;IAChG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC5B;AAED,2FAA2F;AAC3F,UAAU,YAAY;IACrB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,uFAAuF;IACvF,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,cAAc,GAClB;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,CAiB3D;AA8BD,0EAA0E;AAC1E,qBAAa,WAAW;IACvB,QAAQ,EAAE,cAAc,CAAyC;IACjE,kFAAkF;IAClF,OAAO,CAAC,QAAQ,CAAC,CAA+B;IAEhD;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;IAuBpE;;;;;OAKG;IACG,OAAO,CACZ,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,cAAc,GAClB,OAAO,CAAC,YAAY,CAAC;IA6DxB;;;;;;OAMG;IACG,OAAO,CACZ,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,OAAO,CAAC,IAAI,CAAC;IA2BhB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAcnB;;;;OAIG;YACW,aAAa;CAU3B"}
@@ -1,6 +1,6 @@
1
1
  import { type CodexFileChange, type CodexNotification } from "./protocol.ts";
2
2
  /** An MCP tool call Codex started and may ask consent for. */
3
- export interface CodexMcpCall {
3
+ interface CodexMcpCall {
4
4
  id: string;
5
5
  threadId?: string;
6
6
  server: string;
@@ -30,4 +30,5 @@ export declare class TurnItems {
30
30
  /** The edits of a file change Codex asks to apply. */
31
31
  changesOf(itemId: string): CodexFileChange[];
32
32
  }
33
+ export {};
33
34
  //# sourceMappingURL=turn-items.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"turn-items.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/turn-items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAa,MAAM,eAAe,CAAC;AAExF,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAA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;IAEpE,OAAO,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI;IA8BnC;;;;OAIG;IACH,aAAa,CACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,IAAI,EAAE,MAAM,GACV,YAAY,GAAG,SAAS;IAe3B,oGAAoG;IACpG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS;IAI5D,sDAAsD;IACtD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,EAAE;CAG5C"}
@@ -9,9 +9,9 @@ import type { CodexTurnScope } from "./requests.ts";
9
9
  import type { CodexSession } from "./session.ts";
10
10
  /**
11
11
  * How one of Codex's turns ended: its `turn/completed` status, or `error`
12
- * when an error Codex would not retry ended it for the stream.
12
+ * when an error Codex would not retry had no `turn/completed` after it.
13
13
  */
14
- export type NativeOutcome = "completed" | "interrupted" | "failed" | "error";
14
+ type NativeOutcome = "completed" | "interrupted" | "failed" | "error";
15
15
  /** One of Codex's turns, `turn/start` to its end, within an engine turn. */
16
16
  export declare class NativeTurn {
17
17
  /** Codex's id for it, once `turn/started` names it. */
@@ -25,6 +25,8 @@ export declare class NativeTurn {
25
25
  itemId: string;
26
26
  text: string;
27
27
  };
28
+ /** The error Codex would not retry, held for the stream until Codex's turn ends. */
29
+ failure?: CodexNotification;
28
30
  /** Its events took their last: at its end, or once a managed turn's cleanup is done. */
29
31
  finished: boolean;
30
32
  private settle;
@@ -52,8 +54,9 @@ export interface TurnStop {
52
54
  /** Codex's turn ended with `n`: its events end, now or once the stop cleaned up. */
53
55
  nativeEnded(native: NativeTurn, n: CodexNotification): void;
54
56
  /**
55
- * Stop for a cancel: Codex's turn, once it began. Resolves whether the stop
56
- * is confirmed (`CancelResult.confirmed`).
57
+ * Stop for a cancel: Codex's turn, once it began, else the process it
58
+ * would run on. Resolves whether the stop is confirmed
59
+ * (`CancelResult.confirmed`).
57
60
  */
58
61
  cancel(native?: NativeTurn): Promise<boolean>;
59
62
  /** The commands whose outcome a turn that ended cancelled leaves unknown. */
@@ -82,7 +85,7 @@ export declare class InterruptStop implements TurnStop {
82
85
  private force;
83
86
  }
84
87
  /** Lets Codex's turn take steers: the agent's `openSteering` and `holdSteering`. */
85
- export interface TurnSteering {
88
+ interface TurnSteering {
86
89
  /** Codex's turn takes input now: the steers that wait go to it, then each as it comes. */
87
90
  open(deliver: DeliverSteer): void;
88
91
  /** Codex's turn takes no more: steers wait for its next. */
@@ -97,7 +100,9 @@ export interface TurnSteering {
97
100
  export declare function codexSteerRefused(error: unknown): boolean;
98
101
  /** How long an engine turn on Codex waits for it. */
99
102
  export interface CodexTurnTiming {
100
- /** `cancelGraceMs`: an interrupt, a stop, a thread settings update. */
103
+ /** `cancelConfirmMs`: how long Codex has to say its turn ended, a cancelled or a failed one. */
104
+ confirmMs: number;
105
+ /** `cancelGraceMs`: how long a cancelled turn has to stop before Codex's process is ended. */
101
106
  graceMs: number;
102
107
  /** How long a retryable error may go unanswered before the turn is failed. */
103
108
  retryStallMs: number;
@@ -124,14 +129,19 @@ export declare class CodexTurn {
124
129
  private native;
125
130
  /** Codex's turns in this one: a plan's, then the one carrying out its answer. */
126
131
  private readonly turnIds;
132
+ /**
133
+ * The one deadline the turn waits on: while Codex retries, how long it may
134
+ * go silent (`watchStall`); once its turn is failing, how long its
135
+ * turn/completed may take (`failed`). A cancel and the turn's end clear it.
136
+ */
127
137
  private stallTimer?;
128
138
  private acknowledged?;
129
139
  private readonly unsubscribe;
130
140
  private accepted;
131
141
  constructor(session: CodexSession, scope: CodexTurnScope, options: AgentExecuteOptions, commands: TurnCommands, stop: TurnStop, steering: TurnSteering, timing: CodexTurnTiming);
132
142
  get signal(): AbortSignal;
133
- /** The cancel's acknowledgement, once one came: whether Codex's turn stopped. */
134
- get acknowledgement(): Promise<boolean> | undefined;
143
+ /** Stop Codex's turn for the cancel, once: whether it stopped. */
144
+ cancel(): Promise<boolean>;
135
145
  /**
136
146
  * Codex took a turn of this one (it accepted `turn/start`): from then on
137
147
  * it writes the thread, which before had nothing to resume.
@@ -158,12 +168,25 @@ export declare class CodexTurn {
158
168
  private start;
159
169
  private observe;
160
170
  private began;
171
+ /**
172
+ * Codex's turn failed. It ends at its own turn/completed, which Codex sends
173
+ * after: ended here, Codex's turn would still be running, and the session's
174
+ * next turn/start would steer it and end on its turn/completed. Without one
175
+ * within `confirmMs`, it ends with the error, and its process with it. The
176
+ * wait runs from the first failure: a later one changes nothing, or a run
177
+ * of them would keep the turn open. After a cancel, its interrupt's grace
178
+ * governs.
179
+ */
180
+ private failed;
161
181
  private ended;
162
182
  /**
163
183
  * A retryable error promises more notifications. If none arrive, the
164
184
  * subprocess is wedged-but-alive and the turn would hang forever: bound it.
185
+ * A failing turn's deadline is not this one's to move: what Codex sends
186
+ * after its error leaves it as it is.
165
187
  */
166
188
  private watchStall;
167
189
  private clearStall;
168
190
  }
191
+ export {};
169
192
  //# sourceMappingURL=turn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"turn.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/turn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAA8B,MAAM,YAAY,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,YAAY,CAAC;AAEzD,OAAO,EACN,KAAK,iBAAiB,EAKtB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,c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Y,IAAI,cAAc,CAAC,aAAa,CAAC;IAMpD,OAAO,IAAI,IAAI;IAKf,2CAA2C;YAC5B,MAAM;IAOrB;;;;OAIG;IACH,OAAO,CAAC,KAAK;IA0Cb,OAAO,CAAC,OAAO;IAgDf,OAAO,CAAC,KAAK;IAQb;;;;;;;;OAQG;IAEH,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,KAAK;IAWb;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,UAAU;CAIlB"}
@@ -0,0 +1,28 @@
1
+ import type { CodexConnection } from "./client.ts";
2
+ import type { CodexAuth } from "./credentials.ts";
3
+ /** What Codex's `getAuthStatus` answers: the login of the home its app-server runs in. */
4
+ export interface CodexAuthStatus {
5
+ /** `chatgpt`, `apikey` (lowercase), another kind, or none when signed out. */
6
+ authMethod?: string | null;
7
+ /** The login's access token, or its key; asked for only to hand it to a session's process. */
8
+ authToken?: string | null;
9
+ requiresOpenaiAuth?: boolean;
10
+ }
11
+ /** Read the user's own login, renewed by Codex in its own home first when `refreshToken`. */
12
+ export type ReadUserLogin = (refreshToken: boolean, signal?: AbortSignal) => Promise<CodexAuthStatus>;
13
+ /**
14
+ * One read of the user's own login: a new app-server on the engine's own
15
+ * Codex home (`connect` gives it the engine's environment, never a session's
16
+ * `CODEX_HOME`), asked once and ended at once. Nothing is kept between reads.
17
+ */
18
+ export declare function userLoginReader(connect: () => Promise<CodexConnection>): ReadUserLogin;
19
+ /**
20
+ * The user's own Codex login as a session's process logs in with it: a
21
+ * ChatGPT login as its tokens, held in that process's memory, or an API key.
22
+ * When Codex refuses the token it holds, a fresher one: the login read again,
23
+ * and when that is still the refused token, renewed by Codex in the user's
24
+ * own home under its own lock. No login, or one that cannot be handed over,
25
+ * fails the turn before any process of the session starts.
26
+ */
27
+ export declare function userAuth(read: ReadUserLogin, signal?: AbortSignal): Promise<CodexAuth>;
28
+ //# sourceMappingURL=user-login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-login.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/user-login.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC/B,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,6FAA6F;AAC7F,MAAM,MAAM,aAAa,GAAG,CAC3B,YAAY,EAAE,OAAO,EACrB,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,eAAe,CAAC,CAAC;AAE9B;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,GAAG,aAAa,CAetF;AA+BD;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CAyB5F"}
@@ -9,7 +9,9 @@ import { type CredentialRequest, type HarnessCredential, type HarnessCredentials
9
9
  export type CredentialSource = (request: CredentialRequest, signal?: AbortSignal) => Promise<HarnessCredential | undefined>;
10
10
  /**
11
11
  * The product's credential for a harness, as the kind it runs on: one it
12
- * cannot run fails the turn here, before anything starts.
12
+ * cannot run fails the turn here, before anything starts. A turn cancelled
13
+ * meanwhile stops waiting at once, whether or not the source heeds `signal`,
14
+ * and an answer that comes after is dropped.
13
15
  */
14
16
  export declare function credentialFor<H extends keyof HarnessCredentials>(source: CredentialSource, request: CredentialRequest & {
15
17
  harness: H;
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAEvB,MAAM,yBAAyB,CAAC;AAIjC;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;AAE5C;;;GAGG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACrE,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,iBAAiB,GAAG;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,EAC3C,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAM5C;AAiCD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB,GAAG,gBAAgB,CAkBnB"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAEvB,MAAM,yBAAyB,CAAC;AAKjC;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;AAE5C;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACrE,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,iBAAiB,GAAG;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,EAC3C,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAM5C;AAiCD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB,GAAG,gBAAgB,CAkBnB"}
@@ -0,0 +1,9 @@
1
+ import type { ToolResultContent } from "../../protocol/index.ts";
2
+ /**
3
+ * One hunk of a unified diff as a `diff` entry: `oldText` is its context and
4
+ * removed lines, `newText` its context and added lines, each joined by a
5
+ * newline. A `` marker is no line of either file,
6
+ * so it is dropped. Undefined for a hunk with no lines.
7
+ */
8
+ export declare function hunkDiff(path: string, lines: readonly string[]): ToolResultContent | undefined;
9
+ //# sourceMappingURL=diffs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diffs.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/diffs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,iBAAiB,GAAG,SAAS,CAe9F"}
@@ -10,7 +10,7 @@ export declare function questionRequest(questions: ElicitationQuestion[], toolCa
10
10
  /** What the agent is told when the user leaves its question unanswered. */
11
11
  export declare function unanswered(action: "decline" | "cancel"): string;
12
12
  /** An MCP server's request for input: a form to fill in, or a URL to visit. */
13
- export interface McpInputRequest {
13
+ interface McpInputRequest {
14
14
  mode: "form" | "url";
15
15
  message: string;
16
16
  /** The server asking, when the harness names it. */
@@ -27,11 +27,12 @@ export declare function inputRequest(request: McpInputRequest): ElicitationReque
27
27
  * The user's answer as an MCP server takes it (MCP's `ElicitResult`). A type,
28
28
  * not an interface: the SDKs' reply types are indexable.
29
29
  */
30
- export type McpInputReply = {
30
+ type McpInputReply = {
31
31
  action: "accept" | "decline" | "cancel";
32
32
  /** What the user filled in; only an accept carries it. */
33
33
  content?: Record<string, string | number | boolean | string[]>;
34
34
  };
35
35
  /** The broker's outcome, as the MCP server that asked takes it. */
36
36
  export declare function inputReply(outcome: ElicitationOutcome): McpInputReply;
37
+ export {};
37
38
  //# sourceMappingURL=elicitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/elicitation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,UAAU,2HACkG,CAAC;AAE1H,iHAAiH;AACjH,wBAAgB,eAAe,CAC9B,SAAS,EAAE,mBAAmB,EAAE,EAChC,UAAU,CAAC,EAAE,MAAM,GACjB,kBAAkB,CAOpB;AAED,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAI/D;AAED,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,kGAAkG;AAClG,wBAAgB,YAAY,CAAC,OAAO,EAAE,eAAe,GAAG,kBAAkB,CAUzE;AAED;;;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;AACH,KAAK,aAAa,GAAG;IACpB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxC,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;CAC/D,CAAC;AAEF,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,OAAO,EAAE,kBAAkB,GAAG,aAAa,CAOrE"}
@@ -40,6 +40,12 @@ export interface CliLogin {
40
40
  apiKey?: string;
41
41
  }): Promise<NativeLogin>;
42
42
  logout(options: LoginOptions): Promise<void>;
43
+ /**
44
+ * The store a turn or a login with this `env` reads its login from: the
45
+ * value of the CLI's store variable, empty when unset. A login changed
46
+ * there restarts that store's sessions alone. Absent: one store.
47
+ */
48
+ store?(env: Record<string, string> | undefined): string;
43
49
  }
44
50
  /** The method a login names, refused unless the harness offers it as a login. */
45
51
  export declare function loginMethod<M extends AuthMethod>(methods: readonly M[], id: string): M;
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/login.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAIxE,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,mEAAmE;IACnE,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,4FAA4F;AAC5F,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;AAEnE,4EAA4E;AAC5E,MAAM,WAAW,WAAW;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uGAAuG;IACvG,OAAO,CAAC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,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACpD,2FAA2F;IAC3F,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACzF,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;;;OAIG;IACH,KAAK,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC;CACxD;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,CAAC,SAAS,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAOtF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC7B,OAAO,EAAE,MAAM,EAAE,EACjB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EACvC,aAAa,EAAE,MAAM,GACnB,UAAU,CASZ;AAKD;;;GAGG;AACH,wBAAsB,cAAc,CACnC,SAAS,EAAE,eAAe,EAC1B,IAAI,EAAE;IACL,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB,GACC,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAoBlE"}
@@ -1,8 +1,6 @@
1
1
  import type { ErrorInfo, McpServerConfig } from "../../protocol/index.ts";
2
2
  /** A turn owns its wire configuration even when the caller reuses its objects. */
3
3
  export declare function snapshotMcpServers(servers: Record<string, McpServerConfig> | undefined): Record<string, McpServerConfig>;
4
- /** Whether a turn needs the server: each does unless it says `required: false`. */
5
- export declare function mcpServerRequired(server: McpServerConfig | undefined): boolean;
6
4
  /** The server as its harness takes it: whether a turn needs it is the engine's rule. */
7
5
  export declare function nativeMcpServer(server: McpServerConfig): McpServerConfig;
8
6
  export declare function mcpConnectionErrors(names: string[], statuses: Array<{
@@ -22,8 +20,6 @@ export declare function settleMcpFailures(errors: Record<string, string>, server
22
20
  * query, and the stream is journaled, replayed and synced.
23
21
  */
24
22
  export declare function mcpCause(cause: string): string;
25
- /** What a turn says of a server it goes on without. */
26
- export declare function mcpUnavailableWarning(name: string, cause: string): ErrorInfo;
27
23
  /**
28
24
  * How long a turn goes on without a server that could not connect before a
29
25
  * turn tries it again: a server that never answers would otherwise hold up
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/mcp-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1E,kFAAkF;AAClF,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,GAClD,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAEjC;AAGD,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAE9E;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAGxE;AAED,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACtE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,EAAE,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAW7F,kFAAkF;IAC5E,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI7F"}
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Idle time before an unused session's process is ended, unless
3
+ * `idleTimeoutMs` says otherwise.
4
+ */
5
+ export declare const IDLE_TIMEOUT_MS: number;
6
+ /**
7
+ * The native process a pooled session runs on, as the pool sees it.
8
+ *
9
+ * A client sets what `gone()` returns before its `onClose` handlers run: the
10
+ * pool reads `gone()` in its handler, and a successor and a release wait for
11
+ * what it read. A client that set it after would be succeeded while it still
12
+ * runs.
13
+ */
14
+ export interface PooledClient {
15
+ /** The process exited, or the client was closed. */
16
+ readonly closed: boolean;
17
+ /**
18
+ * End the process now; its exit follows (`gone`). The pool says why
19
+ * (`reason`), for a harness that reports it; a client may ignore it.
20
+ */
21
+ close(reason?: ProcessEndReason): void;
22
+ /** Called once, when the process ends: closed by anyone, or exited by itself. */
23
+ onClose(handler: (error?: Error) => void): () => void;
24
+ /**
25
+ * Settles once a client that was closed has exited, or could not be made
26
+ * to, bounded by the client's own stop. Absent: nothing to wait for.
27
+ */
28
+ gone?(): Promise<void>;
29
+ }
30
+ /** What the pool needs of a harness's process: the client it runs on. */
31
+ export interface PooledProcess {
32
+ client: PooledClient;
33
+ }
34
+ /** Why a warm process did not take the session's next turn (`replaceReason`). */
35
+ export type ReplaceReason = "exited" | "hostResumed" | "loginChanged" | "otherConversation" | "doesNotFit" | "cannotChange";
36
+ /**
37
+ * Why the pool ended a session's process, or saw it end: an idle timeout, a
38
+ * release, a shutdown, its own exit (or its harness closing it), or a turn
39
+ * that needed another.
40
+ */
41
+ export type ProcessEndReason = "idle" | "released" | "shutdown" | "exited" | `replaced:${ReplaceReason}`;
42
+ /**
43
+ * What a harness tells the pool about its processes. The rest (the map, the
44
+ * idle timer, the login generation per store, the host resume, and the waits
45
+ * for an exit) is the pool's. `T` is the harness's turn: whatever it needs to
46
+ * decide and to start.
47
+ */
48
+ export interface ProcessHarness<P extends PooledProcess, T> {
49
+ /**
50
+ * The login store a turn's process reads its login from at its start (an
51
+ * `env` value, say). Absent: one store, which every login change names.
52
+ */
53
+ store?(turn: T): string;
54
+ /** The conversation the turn resumes, when it names one. */
55
+ resumeOf(turn: T): string | undefined;
56
+ /** The conversations a warm process is on: a turn that resumes another needs another process. */
57
+ conversationsOf(process: P): readonly string[];
58
+ /**
59
+ * Whether a warm process was started with what this turn needs, as the
60
+ * process is now: a process's identity can change while it runs (an
61
+ * approved Codex plan rewrites its sandbox), and can depend on what it
62
+ * said at its start (whether an ACP agent takes extra directories).
63
+ */
64
+ fits(process: P, turn: T): boolean;
65
+ /**
66
+ * Make on a warm process the change this turn needs that a restart need
67
+ * not (Codex: log the turn's account in again, then compare the MCP table
68
+ * its thread carries): `false` when it cannot, and a new process starts.
69
+ * A throw fails the turn; the process stays the session's unless the
70
+ * harness closed it. Absent: nothing to change.
71
+ */
72
+ applyLiveChange?(process: P, turn: T, signal: AbortSignal): Promise<boolean>;
73
+ /**
74
+ * Whether the process holds the only copy of its conversation (an ACP
75
+ * agent that can neither resume nor load): no other process could go on
76
+ * with it, so it is neither ended for idleness nor replaced for a host
77
+ * resume. A turn it cannot take still replaces it.
78
+ */
79
+ holdsOnlyCopy?(process: P): boolean;
80
+ /**
81
+ * Start a process for the turn. `own` takes its client as soon as it
82
+ * exists, before anything is asked of it: from then a release or a
83
+ * shutdown closes it, its exit is waited for, and `startedBeforeResume`
84
+ * answers for it. A throw must leave the client closed. `replacing` is the
85
+ * warm process this turn could not take, ended by now, for what a harness
86
+ * carries over to its successor (Claude: the conversation's spend).
87
+ */
88
+ spawn(turn: T, own: (client: P["client"]) => void, signal: AbortSignal, replacing?: P): Promise<P>;
89
+ }
90
+ export interface ProcessPoolOptions {
91
+ /** Idle time before an unused process is ended; 0 or less never ends one for idleness. */
92
+ idleMs: number;
93
+ }
94
+ /**
95
+ * Each logical session's native process: reused while it still fits the
96
+ * turn, replaced otherwise, ended when idle, and never succeeded before it
97
+ * has exited. Claude, Codex and ACP run on it; a harness keeps only what is
98
+ * its own.
99
+ */
100
+ export declare class ProcessPool<P extends PooledProcess, T> {
101
+ private readonly harness;
102
+ private readonly options;
103
+ private readonly held;
104
+ /** Clients still being started, per session: a release or a shutdown closes them too. */
105
+ private readonly starting;
106
+ /** Every exit still under way, per session: a successor and a release wait for all of them. */
107
+ private readonly exiting;
108
+ /** Per client, from the moment it is owned: a process still starting can ask too. */
109
+ private readonly started;
110
+ /** Login changes per store, and those that named none (every store). */
111
+ private readonly logins;
112
+ private loginsEverywhere;
113
+ /** Host resumes so far (`invalidate`). */
114
+ private resumes;
115
+ private closed;
116
+ constructor(harness: ProcessHarness<P, T>, options: ProcessPoolOptions);
117
+ /** The session's process, ready, between or during its turns. */
118
+ get(sessionId: string): P | undefined;
119
+ /**
120
+ * The session's client: its process's, or the one still starting, the
121
+ * latest when the start owns several. An explicit change a harness queues
122
+ * on its client (Claude's MCP swap) reaches a session that is starting.
123
+ */
124
+ client(sessionId: string): P["client"] | undefined;
125
+ /**
126
+ * The session's process for the turn, which has it until `leave`: the
127
+ * warm one when it can take the turn, else a new one, started once every
128
+ * process of the session that was ended has exited. A session runs one
129
+ * turn at a time (`SessionAgent`), so a warm process is never under a
130
+ * running turn here.
131
+ */
132
+ acquire(sessionId: string, turn: T, signal: AbortSignal): Promise<P>;
133
+ /**
134
+ * The one rule: why the warm process cannot take the turn, or nothing
135
+ * when it can. The facts first, the harness's checks next, and the live
136
+ * change last, since it acts on the process.
137
+ */
138
+ private replaceReason;
139
+ /**
140
+ * Activity on a warm process between turns (Claude answering a query it
141
+ * began itself): its idle wait starts again. Nothing while a turn has it.
142
+ */
143
+ touch(sessionId: string, process: P): void;
144
+ /** The turn is done with the process: a warm one waits for the next turn, at most `idleMs`. */
145
+ leave(sessionId: string, process: P): void;
146
+ /**
147
+ * A login changed in `store` (in every store when none is named): each
148
+ * session's next turn on it starts a new process, which resumes its
149
+ * conversation. A turn already starting or running finishes on its own.
150
+ */
151
+ loginChanged(store?: string): void;
152
+ /**
153
+ * The host resumed from suspension, which left every process's remote
154
+ * connections dead: each session's next turn starts a new process. Ends
155
+ * nothing now, since ending at once has killed a turn still setting up.
156
+ */
157
+ invalidate(): void;
158
+ /**
159
+ * Whether a host resume came since the process began to start (a harness
160
+ * may refuse to prompt it); asked while it starts, too.
161
+ */
162
+ startedBeforeResume(process: P): boolean;
163
+ /**
164
+ * End the session's process for good, and any still starting, and settle
165
+ * once every process of the session has exited, those ended earlier
166
+ * (idle, replaced) included: a host removes the session's folders on this
167
+ * answer, and a process still exiting can write to them. Each wait is
168
+ * bounded by its client's stop (LLP 0007).
169
+ */
170
+ release(sessionId: string): Promise<void>;
171
+ /**
172
+ * End every process and refuse new ones; settles once every process of
173
+ * every session has exited, bounded as a release is.
174
+ */
175
+ closeAll(): Promise<void>;
176
+ private generation;
177
+ /** Every exit under way for the session, as one wait. */
178
+ private exits;
179
+ /** Wait for every ended process of the session to exit; a cancelled turn does not sit it out. */
180
+ private exited;
181
+ private start;
182
+ /** Own a client from its first moment: a release closes it, and its exit is waited for. */
183
+ private own;
184
+ /** Keep the client's exit until it is done: `gone()` is set by now (`PooledClient`). */
185
+ private exitUnderWay;
186
+ private disown;
187
+ /** End the session's process and those still starting. */
188
+ private remove;
189
+ /** End a held process, when it is still the session's; its exit is then waited for. */
190
+ private end;
191
+ private clearIdle;
192
+ }
193
+ //# sourceMappingURL=process-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-pool.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/process-pool.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAa,CAAC;AAE1C;;;;;;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