@animalabs/agent-framework 0.32.0 → 0.34.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 (368) hide show
  1. package/README.md +340 -22
  2. package/dist/src/admission/admit.d.ts +18 -0
  3. package/dist/src/admission/admit.d.ts.map +1 -1
  4. package/dist/src/admission/admit.js +16 -3
  5. package/dist/src/admission/admit.js.map +1 -1
  6. package/dist/src/agent.d.ts +208 -80
  7. package/dist/src/agent.d.ts.map +1 -1
  8. package/dist/src/agent.js +345 -113
  9. package/dist/src/agent.js.map +1 -1
  10. package/dist/src/api/mcp-server-core.d.ts.map +1 -1
  11. package/dist/src/api/mcp-server-core.js +50 -12
  12. package/dist/src/api/mcp-server-core.js.map +1 -1
  13. package/dist/src/api/server.d.ts.map +1 -1
  14. package/dist/src/api/server.js +4 -20
  15. package/dist/src/api/server.js.map +1 -1
  16. package/dist/src/append-all.d.ts +5 -0
  17. package/dist/src/append-all.d.ts.map +1 -0
  18. package/dist/src/append-all.js +8 -0
  19. package/dist/src/append-all.js.map +1 -0
  20. package/dist/src/code-execution/isolate/scripts.d.ts +12 -8
  21. package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -1
  22. package/dist/src/code-execution/isolate/scripts.js +24 -0
  23. package/dist/src/code-execution/isolate/scripts.js.map +1 -1
  24. package/dist/src/config-checks.d.ts +7 -0
  25. package/dist/src/config-checks.d.ts.map +1 -1
  26. package/dist/src/config-checks.js +14 -0
  27. package/dist/src/config-checks.js.map +1 -1
  28. package/dist/src/context-manager-errors.d.ts +25 -0
  29. package/dist/src/context-manager-errors.d.ts.map +1 -0
  30. package/dist/src/context-manager-errors.js +31 -0
  31. package/dist/src/context-manager-errors.js.map +1 -0
  32. package/dist/src/context-options.d.ts +70 -0
  33. package/dist/src/context-options.d.ts.map +1 -0
  34. package/dist/src/context-options.js +90 -0
  35. package/dist/src/context-options.js.map +1 -0
  36. package/dist/src/cut-off-round.js +4 -4
  37. package/dist/src/deferred-import.d.ts +93 -0
  38. package/dist/src/deferred-import.d.ts.map +1 -0
  39. package/dist/src/deferred-import.js +177 -0
  40. package/dist/src/deferred-import.js.map +1 -0
  41. package/dist/src/dendrite/audience.d.ts +223 -0
  42. package/dist/src/dendrite/audience.d.ts.map +1 -0
  43. package/dist/src/dendrite/audience.js +202 -0
  44. package/dist/src/dendrite/audience.js.map +1 -0
  45. package/dist/src/dendrite/index.d.ts +5 -3
  46. package/dist/src/dendrite/index.d.ts.map +1 -1
  47. package/dist/src/dendrite/index.js +2 -1
  48. package/dist/src/dendrite/index.js.map +1 -1
  49. package/dist/src/dendrite/presets.d.ts +10 -5
  50. package/dist/src/dendrite/presets.d.ts.map +1 -1
  51. package/dist/src/dendrite/presets.js +17 -5
  52. package/dist/src/dendrite/presets.js.map +1 -1
  53. package/dist/src/dendrite/registry.d.ts +62 -7
  54. package/dist/src/dendrite/registry.d.ts.map +1 -1
  55. package/dist/src/dendrite/registry.js +183 -12
  56. package/dist/src/dendrite/registry.js.map +1 -1
  57. package/dist/src/dendrite/types.d.ts +91 -8
  58. package/dist/src/dendrite/types.d.ts.map +1 -1
  59. package/dist/src/failure-text.d.ts +36 -0
  60. package/dist/src/failure-text.d.ts.map +1 -0
  61. package/dist/src/failure-text.js +89 -0
  62. package/dist/src/failure-text.js.map +1 -0
  63. package/dist/src/foreign-rounds.d.ts +69 -0
  64. package/dist/src/foreign-rounds.d.ts.map +1 -0
  65. package/dist/src/foreign-rounds.js +152 -0
  66. package/dist/src/foreign-rounds.js.map +1 -0
  67. package/dist/src/framework.d.ts +2064 -842
  68. package/dist/src/framework.d.ts.map +1 -1
  69. package/dist/src/framework.js +8586 -3739
  70. package/dist/src/framework.js.map +1 -1
  71. package/dist/src/gate/event-gate.d.ts +125 -21
  72. package/dist/src/gate/event-gate.d.ts.map +1 -1
  73. package/dist/src/gate/event-gate.js +487 -72
  74. package/dist/src/gate/event-gate.js.map +1 -1
  75. package/dist/src/gate/index.d.ts +1 -1
  76. package/dist/src/gate/index.d.ts.map +1 -1
  77. package/dist/src/gate/index.js.map +1 -1
  78. package/dist/src/gate/reply-judge.d.ts +4 -0
  79. package/dist/src/gate/reply-judge.d.ts.map +1 -1
  80. package/dist/src/gate/reply-judge.js +12 -3
  81. package/dist/src/gate/reply-judge.js.map +1 -1
  82. package/dist/src/gate/rule-scope.d.ts +30 -0
  83. package/dist/src/gate/rule-scope.d.ts.map +1 -0
  84. package/dist/src/gate/rule-scope.js +41 -0
  85. package/dist/src/gate/rule-scope.js.map +1 -0
  86. package/dist/src/gate/suppress-script-worker.d.ts +2 -0
  87. package/dist/src/gate/suppress-script-worker.d.ts.map +1 -0
  88. package/dist/src/gate/suppress-script-worker.js +103 -0
  89. package/dist/src/gate/suppress-script-worker.js.map +1 -0
  90. package/dist/src/gate/suppress-scripts.d.ts +105 -0
  91. package/dist/src/gate/suppress-scripts.d.ts.map +1 -0
  92. package/dist/src/gate/suppress-scripts.js +403 -0
  93. package/dist/src/gate/suppress-scripts.js.map +1 -0
  94. package/dist/src/gate/suppression-review.d.ts +143 -0
  95. package/dist/src/gate/suppression-review.d.ts.map +1 -0
  96. package/dist/src/gate/suppression-review.js +463 -0
  97. package/dist/src/gate/suppression-review.js.map +1 -0
  98. package/dist/src/gate/suppression-stats.d.ts +125 -0
  99. package/dist/src/gate/suppression-stats.d.ts.map +1 -0
  100. package/dist/src/gate/suppression-stats.js +214 -0
  101. package/dist/src/gate/suppression-stats.js.map +1 -0
  102. package/dist/src/gate/types.d.ts +142 -7
  103. package/dist/src/gate/types.d.ts.map +1 -1
  104. package/dist/src/gate/wake-onboarding.d.ts +119 -0
  105. package/dist/src/gate/wake-onboarding.d.ts.map +1 -0
  106. package/dist/src/gate/wake-onboarding.js +277 -0
  107. package/dist/src/gate/wake-onboarding.js.map +1 -0
  108. package/dist/src/heartbeat/heartbeat.js +1 -1
  109. package/dist/src/heartbeat/heartbeat.js.map +1 -1
  110. package/dist/src/held-writes.d.ts +31 -23
  111. package/dist/src/held-writes.d.ts.map +1 -1
  112. package/dist/src/held-writes.js +44 -59
  113. package/dist/src/held-writes.js.map +1 -1
  114. package/dist/src/index.d.ts +6 -2
  115. package/dist/src/index.d.ts.map +1 -1
  116. package/dist/src/index.js +4 -0
  117. package/dist/src/index.js.map +1 -1
  118. package/dist/src/inference-bounds.d.ts +2 -1
  119. package/dist/src/inference-bounds.d.ts.map +1 -1
  120. package/dist/src/inference-bounds.js +9 -6
  121. package/dist/src/inference-bounds.js.map +1 -1
  122. package/dist/src/jsonrpc-envelope.d.ts +69 -0
  123. package/dist/src/jsonrpc-envelope.d.ts.map +1 -0
  124. package/dist/src/jsonrpc-envelope.js +66 -0
  125. package/dist/src/jsonrpc-envelope.js.map +1 -0
  126. package/dist/src/mcpl/channel-registry.d.ts +188 -28
  127. package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
  128. package/dist/src/mcpl/channel-registry.js +426 -70
  129. package/dist/src/mcpl/channel-registry.js.map +1 -1
  130. package/dist/src/mcpl/checkpoint-manager.d.ts +2 -4
  131. package/dist/src/mcpl/checkpoint-manager.d.ts.map +1 -1
  132. package/dist/src/mcpl/checkpoint-manager.js.map +1 -1
  133. package/dist/src/mcpl/feature-set-manager.d.ts +2 -4
  134. package/dist/src/mcpl/feature-set-manager.d.ts.map +1 -1
  135. package/dist/src/mcpl/feature-set-manager.js.map +1 -1
  136. package/dist/src/mcpl/inbound-source.d.ts +2 -1
  137. package/dist/src/mcpl/inbound-source.d.ts.map +1 -1
  138. package/dist/src/mcpl/inbound-source.js +2 -1
  139. package/dist/src/mcpl/inbound-source.js.map +1 -1
  140. package/dist/src/mcpl/inference-router.d.ts +6 -6
  141. package/dist/src/mcpl/inference-router.d.ts.map +1 -1
  142. package/dist/src/mcpl/inference-router.js.map +1 -1
  143. package/dist/src/mcpl/modern-connection.d.ts +109 -15
  144. package/dist/src/mcpl/modern-connection.d.ts.map +1 -1
  145. package/dist/src/mcpl/modern-connection.js +593 -86
  146. package/dist/src/mcpl/modern-connection.js.map +1 -1
  147. package/dist/src/mcpl/protocol-family.d.ts +3 -1
  148. package/dist/src/mcpl/protocol-family.d.ts.map +1 -1
  149. package/dist/src/mcpl/protocol-family.js +15 -9
  150. package/dist/src/mcpl/protocol-family.js.map +1 -1
  151. package/dist/src/mcpl/push-coalescer.d.ts +132 -22
  152. package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
  153. package/dist/src/mcpl/push-coalescer.js +105 -15
  154. package/dist/src/mcpl/push-coalescer.js.map +1 -1
  155. package/dist/src/mcpl/push-handler.d.ts +9 -7
  156. package/dist/src/mcpl/push-handler.d.ts.map +1 -1
  157. package/dist/src/mcpl/push-handler.js.map +1 -1
  158. package/dist/src/mcpl/server-connection.d.ts +50 -28
  159. package/dist/src/mcpl/server-connection.d.ts.map +1 -1
  160. package/dist/src/mcpl/server-connection.js +165 -72
  161. package/dist/src/mcpl/server-connection.js.map +1 -1
  162. package/dist/src/mcpl/tool-classes.d.ts.map +1 -1
  163. package/dist/src/mcpl/tool-classes.js +3 -0
  164. package/dist/src/mcpl/tool-classes.js.map +1 -1
  165. package/dist/src/mcpl/tool-presence.d.ts.map +1 -1
  166. package/dist/src/mcpl/tool-presence.js +10 -6
  167. package/dist/src/mcpl/tool-presence.js.map +1 -1
  168. package/dist/src/mcpl/toolset-host.d.ts.map +1 -1
  169. package/dist/src/mcpl/toolset-host.js +7 -6
  170. package/dist/src/mcpl/toolset-host.js.map +1 -1
  171. package/dist/src/mcpl/toolsets-module.d.ts.map +1 -1
  172. package/dist/src/mcpl/toolsets-module.js +2 -1
  173. package/dist/src/mcpl/toolsets-module.js.map +1 -1
  174. package/dist/src/mcpl/types.d.ts +33 -6
  175. package/dist/src/mcpl/types.d.ts.map +1 -1
  176. package/dist/src/mcpl/types.js.map +1 -1
  177. package/dist/src/module-registry.d.ts +24 -1
  178. package/dist/src/module-registry.d.ts.map +1 -1
  179. package/dist/src/module-registry.js +68 -18
  180. package/dist/src/module-registry.js.map +1 -1
  181. package/dist/src/modules/discord/index.d.ts +45 -8
  182. package/dist/src/modules/discord/index.d.ts.map +1 -1
  183. package/dist/src/modules/discord/index.js +238 -87
  184. package/dist/src/modules/discord/index.js.map +1 -1
  185. package/dist/src/modules/health/index.js +2 -2
  186. package/dist/src/modules/health/index.js.map +1 -1
  187. package/dist/src/modules/history/index.d.ts +59 -0
  188. package/dist/src/modules/history/index.d.ts.map +1 -1
  189. package/dist/src/modules/history/index.js +432 -67
  190. package/dist/src/modules/history/index.js.map +1 -1
  191. package/dist/src/modules/history/semantic.d.ts +6 -5
  192. package/dist/src/modules/history/semantic.d.ts.map +1 -1
  193. package/dist/src/modules/history/semantic.js +18 -25
  194. package/dist/src/modules/history/semantic.js.map +1 -1
  195. package/dist/src/modules/workspace/disk-agreement.d.ts +1 -1
  196. package/dist/src/modules/workspace/disk-agreement.js +1 -1
  197. package/dist/src/modules/workspace/index.d.ts +28 -7
  198. package/dist/src/modules/workspace/index.d.ts.map +1 -1
  199. package/dist/src/modules/workspace/index.js +80 -25
  200. package/dist/src/modules/workspace/index.js.map +1 -1
  201. package/dist/src/modules/workspace/observe.d.ts.map +1 -1
  202. package/dist/src/modules/workspace/observe.js +2 -1
  203. package/dist/src/modules/workspace/observe.js.map +1 -1
  204. package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
  205. package/dist/src/modules/workspace/reconcile.js +3 -2
  206. package/dist/src/modules/workspace/reconcile.js.map +1 -1
  207. package/dist/src/notice-tags.d.ts +20 -9
  208. package/dist/src/notice-tags.d.ts.map +1 -1
  209. package/dist/src/notice-tags.js +20 -9
  210. package/dist/src/notice-tags.js.map +1 -1
  211. package/dist/src/operator-log.d.ts +36 -3
  212. package/dist/src/operator-log.d.ts.map +1 -1
  213. package/dist/src/operator-log.js +2 -2
  214. package/dist/src/operator-log.js.map +1 -1
  215. package/dist/src/presentation.d.ts +747 -0
  216. package/dist/src/presentation.d.ts.map +1 -0
  217. package/dist/src/presentation.js +1437 -0
  218. package/dist/src/presentation.js.map +1 -0
  219. package/dist/src/prose-drafts.d.ts +15 -11
  220. package/dist/src/prose-drafts.d.ts.map +1 -1
  221. package/dist/src/prose-drafts.js +16 -12
  222. package/dist/src/prose-drafts.js.map +1 -1
  223. package/dist/src/read-marks.d.ts +192 -0
  224. package/dist/src/read-marks.d.ts.map +1 -0
  225. package/dist/src/read-marks.js +242 -0
  226. package/dist/src/read-marks.js.map +1 -0
  227. package/dist/src/reasoning-loss.d.ts +5 -0
  228. package/dist/src/reasoning-loss.d.ts.map +1 -0
  229. package/dist/src/reasoning-loss.js +8 -0
  230. package/dist/src/reasoning-loss.js.map +1 -0
  231. package/dist/src/recovery/offline-branch.d.ts +91 -6
  232. package/dist/src/recovery/offline-branch.d.ts.map +1 -1
  233. package/dist/src/recovery/offline-branch.js +277 -32
  234. package/dist/src/recovery/offline-branch.js.map +1 -1
  235. package/dist/src/recovery/recover-cli.js +24 -4
  236. package/dist/src/recovery/recover-cli.js.map +1 -1
  237. package/dist/src/send-tools.d.ts +5 -9
  238. package/dist/src/send-tools.d.ts.map +1 -1
  239. package/dist/src/send-tools.js +40 -7
  240. package/dist/src/send-tools.js.map +1 -1
  241. package/dist/src/sent-rows.js +1 -1
  242. package/dist/src/stored-injections.d.ts +2 -2
  243. package/dist/src/stored-injections.js +2 -2
  244. package/dist/src/stored-removal.d.ts +17 -4
  245. package/dist/src/stored-removal.d.ts.map +1 -1
  246. package/dist/src/stored-removal.js +29 -5
  247. package/dist/src/stored-removal.js.map +1 -1
  248. package/dist/src/supplied-text.d.ts +1 -1
  249. package/dist/src/supplied-text.js +3 -3
  250. package/dist/src/supplied-text.js.map +1 -1
  251. package/dist/src/thinking-drops.d.ts +2 -0
  252. package/dist/src/thinking-drops.d.ts.map +1 -1
  253. package/dist/src/thinking-drops.js.map +1 -1
  254. package/dist/src/tool-presentation.d.ts.map +1 -1
  255. package/dist/src/tool-presentation.js +38 -9
  256. package/dist/src/tool-presentation.js.map +1 -1
  257. package/dist/src/tool-result-guard.d.ts +12 -1
  258. package/dist/src/tool-result-guard.d.ts.map +1 -1
  259. package/dist/src/tool-result-guard.js +42 -8
  260. package/dist/src/tool-result-guard.js.map +1 -1
  261. package/dist/src/tune-out/coordinator.d.ts +1170 -81
  262. package/dist/src/tune-out/coordinator.d.ts.map +1 -1
  263. package/dist/src/tune-out/coordinator.js +3732 -369
  264. package/dist/src/tune-out/coordinator.js.map +1 -1
  265. package/dist/src/tune-out/tools.d.ts +114 -17
  266. package/dist/src/tune-out/tools.d.ts.map +1 -1
  267. package/dist/src/tune-out/tools.js +89 -28
  268. package/dist/src/tune-out/tools.js.map +1 -1
  269. package/dist/src/tune-out/window-anchor.d.ts +143 -0
  270. package/dist/src/tune-out/window-anchor.d.ts.map +1 -0
  271. package/dist/src/tune-out/window-anchor.js +202 -0
  272. package/dist/src/tune-out/window-anchor.js.map +1 -0
  273. package/dist/src/types/agent.d.ts +121 -25
  274. package/dist/src/types/agent.d.ts.map +1 -1
  275. package/dist/src/types/events.d.ts +2 -0
  276. package/dist/src/types/events.d.ts.map +1 -1
  277. package/dist/src/types/framework.d.ts +72 -17
  278. package/dist/src/types/framework.d.ts.map +1 -1
  279. package/dist/src/types/inference-log.d.ts +1 -0
  280. package/dist/src/types/inference-log.d.ts.map +1 -1
  281. package/dist/src/types/module.d.ts +180 -69
  282. package/dist/src/types/module.d.ts.map +1 -1
  283. package/dist/src/types/trace.d.ts +573 -39
  284. package/dist/src/types/trace.d.ts.map +1 -1
  285. package/package.json +4 -4
  286. package/src/admission/admit.ts +32 -3
  287. package/src/agent.ts +392 -132
  288. package/src/api/mcp-server-core.ts +54 -17
  289. package/src/api/server.ts +4 -23
  290. package/src/append-all.ts +6 -0
  291. package/src/code-execution/isolate/scripts.ts +28 -3
  292. package/src/config-checks.ts +14 -0
  293. package/src/context-manager-errors.ts +37 -0
  294. package/src/context-options.ts +106 -0
  295. package/src/cut-off-round.ts +4 -4
  296. package/src/deferred-import.ts +239 -0
  297. package/src/dendrite/audience.ts +315 -0
  298. package/src/dendrite/index.ts +14 -2
  299. package/src/dendrite/presets.ts +18 -6
  300. package/src/dendrite/registry.ts +213 -14
  301. package/src/dendrite/types.ts +92 -8
  302. package/src/failure-text.ts +88 -0
  303. package/src/foreign-rounds.ts +199 -0
  304. package/src/framework.ts +8796 -3813
  305. package/src/gate/event-gate.ts +518 -91
  306. package/src/gate/index.ts +3 -0
  307. package/src/gate/reply-judge.ts +12 -3
  308. package/src/gate/rule-scope.ts +45 -0
  309. package/src/gate/suppress-script-worker.ts +89 -0
  310. package/src/gate/suppress-scripts.ts +414 -0
  311. package/src/gate/suppression-review.ts +517 -0
  312. package/src/gate/suppression-stats.ts +314 -0
  313. package/src/gate/types.ts +148 -7
  314. package/src/gate/wake-onboarding.ts +309 -0
  315. package/src/heartbeat/heartbeat.ts +1 -1
  316. package/src/held-writes.ts +49 -60
  317. package/src/index.ts +10 -2
  318. package/src/inference-bounds.ts +11 -6
  319. package/src/jsonrpc-envelope.ts +81 -0
  320. package/src/mcpl/channel-registry.ts +513 -116
  321. package/src/mcpl/checkpoint-manager.ts +3 -2
  322. package/src/mcpl/feature-set-manager.ts +2 -1
  323. package/src/mcpl/inbound-source.ts +2 -1
  324. package/src/mcpl/inference-router.ts +7 -4
  325. package/src/mcpl/modern-connection.ts +629 -91
  326. package/src/mcpl/protocol-family.ts +15 -9
  327. package/src/mcpl/push-coalescer.ts +193 -34
  328. package/src/mcpl/push-handler.ts +10 -5
  329. package/src/mcpl/server-connection.ts +169 -75
  330. package/src/mcpl/tool-classes.ts +3 -0
  331. package/src/mcpl/tool-presence.ts +10 -5
  332. package/src/mcpl/toolset-host.ts +7 -6
  333. package/src/mcpl/toolsets-module.ts +2 -1
  334. package/src/mcpl/types.ts +33 -6
  335. package/src/module-registry.ts +73 -17
  336. package/src/modules/discord/index.ts +230 -82
  337. package/src/modules/health/index.ts +2 -2
  338. package/src/modules/history/index.ts +439 -70
  339. package/src/modules/history/semantic.ts +18 -24
  340. package/src/modules/workspace/disk-agreement.ts +1 -1
  341. package/src/modules/workspace/index.ts +89 -26
  342. package/src/modules/workspace/observe.ts +2 -1
  343. package/src/modules/workspace/reconcile.ts +3 -2
  344. package/src/notice-tags.ts +21 -9
  345. package/src/operator-log.ts +36 -3
  346. package/src/presentation.ts +1678 -0
  347. package/src/prose-drafts.ts +16 -12
  348. package/src/read-marks.ts +328 -0
  349. package/src/reasoning-loss.ts +7 -0
  350. package/src/recovery/offline-branch.ts +350 -35
  351. package/src/recovery/recover-cli.ts +23 -4
  352. package/src/send-tools.ts +40 -7
  353. package/src/sent-rows.ts +1 -1
  354. package/src/stored-injections.ts +2 -2
  355. package/src/stored-removal.ts +31 -7
  356. package/src/supplied-text.ts +3 -3
  357. package/src/thinking-drops.ts +2 -0
  358. package/src/tool-presentation.ts +34 -9
  359. package/src/tool-result-guard.ts +41 -7
  360. package/src/tune-out/coordinator.ts +4121 -472
  361. package/src/tune-out/tools.ts +162 -44
  362. package/src/tune-out/window-anchor.ts +277 -0
  363. package/src/types/agent.ts +122 -25
  364. package/src/types/events.ts +2 -0
  365. package/src/types/framework.ts +73 -17
  366. package/src/types/inference-log.ts +1 -0
  367. package/src/types/module.ts +181 -68
  368. package/src/types/trace.ts +607 -43
@@ -4,6 +4,7 @@ import type { CacheWireReceipt } from './kv-unified-wire.js';
4
4
  import { ToolResultGuard } from './tool-result-guard.js';
5
5
  import { type PlacedDrop } from './thinking-drops.js';
6
6
  import { type SentRow } from './sent-rows.js';
7
+ import { type MarkCm, type MarkedRow, type ReadMark } from './read-marks.js';
7
8
  import { type RequestOnlyPrompt, type SilentHeartbeatTick } from './silent-heartbeat.js';
8
9
  import { type ResolvedClockConfig } from './clock-rows.js';
9
10
  export interface ActivationRequestOptions {
@@ -77,6 +78,11 @@ export interface StartStreamResult {
77
78
  * far in sent order, with this request's head (context-manager's `noteRequestSent`). Present only where the
78
79
  * model binds its thinking and the context manager keeps a record it can be told of. */
79
80
  noteRequestSent?: (rows: readonly SentRow[]) => boolean;
81
+ /** Tells the context manager which stored bodies' thinking the provider dropped from a call of this stream, by the
82
+ * ids `placeDrops` gives for a `reply` drop, with the compile the stream was built from (context-manager's
83
+ * `noteThinkingDropped`), so, once the context manager takes the note, its record leaves them without their
84
+ * thinking from the next compile on. Present only where `noteRequestSent` is. */
85
+ noteThinkingDropped?: (messageIds: readonly MessageId[]) => boolean;
80
86
  /** The stored bodies the request's compile carried, by each body's first message id (its provenance's raw bodies).
81
87
  * Absent when the compile reports no provenance. */
82
88
  carriedBodies?: ReadonlySet<MessageId>;
@@ -86,11 +92,13 @@ import type { AgentConfig, AgentState, SameRoundThinkTextPolicy, SameRoundThinkT
86
92
  export declare function assertThinkingBinding(setting: string, value: AgentConfig['thinkingBinding']): void;
87
93
  /**
88
94
  * Refuse an agent config whose `promptCaching`, `toolResultGuard`,
89
- * `toolWrapperProseGuard`, `thinking.enabled`, `thinkingBinding.dropBlock`,
95
+ * `toolWrapperProseGuard`, `turnInputsPin`, `thinking.enabled`, `thinkingBinding.dropBlock`,
90
96
  * `thinkingBinding.binds` or `refusalHandling.autoRewind` holds anything but true or false
91
97
  * (assertBooleanSetting, where null counts as left out), or whose `thinking`, `thinkingBinding` or
92
98
  * `refusalHandling` is anything but an object, null or false (holdsSettings),
93
- * or whose `autoContinue` resolveAutoContinue refuses. The constructor runs it
99
+ * or whose `autoContinue` resolveAutoContinue refuses, or whose `observes`
100
+ * is anything but a list of names, or whose `foreignRounds` is neither of
101
+ * its modes (assertOneOfSetting). The constructor runs it
94
102
  * first, so the rule holds wherever an Agent is built. `create()` also runs it
95
103
  * for each of its agents before anything opens, and `createEphemeralAgent`
96
104
  * before it reserves the name, so a refusal there leaves nothing behind.
@@ -109,6 +117,7 @@ export declare const DEFAULT_AUTO_CONTINUE_MAX = 3;
109
117
  export declare function resolveAutoContinue(config: AgentConfig): {
110
118
  maxConsecutive: number;
111
119
  } | undefined;
120
+ /** A branch's key in Agent.unsentSince: its id and when it was created. */
112
121
  export declare function branchKey(branch: {
113
122
  readonly id: string;
114
123
  readonly created: number;
@@ -146,7 +155,9 @@ export declare class Agent {
146
155
  readonly refusalHandling: AgentConfig['refusalHandling'];
147
156
  readonly toolResultGuard: ToolResultGuard;
148
157
  /** Prose delivery mode (see AgentConfig.proseRouting). Default 'locus'. */
149
- readonly proseRouting: 'locus' | 'explicit' | 'hybrid' | 'disabled';
158
+ readonly proseRouting: 'locus' | 'explicit' | 'hybrid' | 'disabled' | 'locked';
159
+ /** Locked mode's destination until the agent chooses one (see AgentConfig.proseLock). */
160
+ readonly proseLock: string | undefined;
150
161
  /** Exact whole-response known-tool wrapper containment (default off). */
151
162
  readonly toolWrapperProseGuard: boolean;
152
163
  /** Continuation after a turn the model ends itself (see
@@ -232,6 +243,7 @@ export declare class Agent {
232
243
  * the next change.
233
244
  */
234
245
  private liveBudgetEpoch;
246
+ private contextSettingsChangeCount;
235
247
  /**
236
248
  * Counts changes of the descent (each arm of one, the same target included,
237
249
  * a reset, a cancel, a settle). A settle proves its target only to a
@@ -297,6 +309,34 @@ export declare class Agent {
297
309
  deniesAtDispatch(toolName: string): boolean;
298
310
  /** Whether a stored participant is this agent's own voice. */
299
311
  isOwnParticipant(participant: string): boolean;
312
+ /**
313
+ * How another agent's rounds go out in this agent's requests (#291, answer
314
+ * 13): `'raw'`, as stored, or `'transcript'` (foreign-rounds.ts), a line
315
+ * per call and per result and no thinking, the same in every compile and
316
+ * in what a tool boundary injects. The framework sets it, once the
317
+ * agent's window follows the presentation index, for the persistent
318
+ * subconscious, for a resident that observes another
319
+ * (AgentConfig.observes), as their configurations' `foreignRounds` say
320
+ * (`'transcript'` by default), and for an agent derived or forked from
321
+ * one of them, in that agent's mode (its inheritance holds them); every
322
+ * other agent reads no other agent's
323
+ * rounds, but for a co-resident's rows stored before audience stamps,
324
+ * which a window written down from the record keeps and which go out as
325
+ * stored ('raw'), as earlier releases sent them.
326
+ */
327
+ private foreignRounds;
328
+ /** Set how another agent's rounds go out in this agent's requests (see foreignRounds). */
329
+ setForeignRounds(mode: 'raw' | 'transcript'): void;
330
+ /**
331
+ * A stored row as this agent's requests carry it, for a row a tool
332
+ * boundary injects: another participant's row as a transcript where this
333
+ * agent is sent other agents' rounds so (setForeignRounds), its own and
334
+ * every row otherwise as stored. An injected row holds no tool block (the
335
+ * boundary cuts at one), so what changes is its thinking.
336
+ */
337
+ injectedAsSent(participant: string, content: ContentBlock[]): ContentBlock[];
338
+ /** A compile's messages with other agents' rounds as this agent is sent them (setForeignRounds). */
339
+ private foreignRoundsAsSent;
300
340
  /**
301
341
  * Role assignment for a request: every participant that is this agent's
302
342
  * own voice — its name, and for a derived agent the agent it inherited
@@ -328,6 +368,10 @@ export declare class Agent {
328
368
  * doubles working while making the new capability optional at runtime. */
329
369
  private getHotContextSettings;
330
370
  private updateHotContextSettings;
371
+ /** How many times the live budget, its descent target or the hot context
372
+ * settings have changed.
373
+ * @internal For the framework's budget holds; not a host API. */
374
+ contextSettingsChanges(): number;
331
375
  getRuntimeSettings(): AgentRuntimeSettingsSnapshot;
332
376
  getRuntimeSettingsOverrides(): AgentRuntimeSettingsOverrides;
333
377
  /**
@@ -461,16 +505,28 @@ export declare class Agent {
461
505
  /** Settle a converging budget once the window is prepared; true if it settled. */
462
506
  private settleRuntimeSettingsTransition;
463
507
  /**
464
- * RFC-006 consumed watermark, per branch: the newest stored message as of
465
- * the latest of the agent's creation, a committing compile that returns,
466
- * and a tool boundary that injected messages into a live stream declaring
467
- * it carries them (`supportsInjectedMessages` true: membrane's native
468
- * path, from membrane 0.6.0). A compile counts from when it takes its
469
- * value, before it awaits, so one that began before a boundary's mark
470
- * doesn't roll the mark back (applyCompileWatermark), and a dry run, such
471
- * as previewActivation's, doesn't move it. Each move takes the store's
472
- * head, a scalar, so it also covers stored messages the agent wasn't
473
- * given, such as another slot's.
508
+ * RFC-006 consumed watermark, per branch: how far the agent had read as of
509
+ * the latest of its creation, a committing compile that returns, and a
510
+ * tool boundary that injected messages into a live stream declaring it
511
+ * carries them (`supportsInjectedMessages` true: membrane's native path,
512
+ * from membrane 0.6.0). A compile counts from when it takes its mark,
513
+ * before it awaits, so one that began before a boundary's mark doesn't
514
+ * roll the mark back (applyCompileWatermark), and a dry run, such as
515
+ * previewActivation's, doesn't move it.
516
+ *
517
+ * It is a ReadMark (read-marks.ts), read only through `covers`. Once the
518
+ * agent's context presents rows (#291's presentation index, in presented
519
+ * mode), it covers exactly the rows in the agent's window as of the mark:
520
+ * a row stored then and not yet presented to the agent isn't covered.
521
+ * While the context is in legacy mode, its window is the record, and the
522
+ * mark covers every row stored on the branch by then, as it always did:
523
+ * a prefix of the record, so it also covers stored messages the agent
524
+ * wasn't given, such as another slot's. Once the window is written down
525
+ * (an agent registered on a branch its window was never written down on
526
+ * holds such a mark until its first compile), a mark taken in legacy mode
527
+ * covers the rows its window held by the mark where they still stand, as
528
+ * a mark taken in presented mode then would: a row stored after it, taken
529
+ * out of the window since, or presented to the agent again, isn't.
474
530
  *
475
531
  * A message above it may still be replaced or withdrawn in place by its
476
532
  * sender, though it may already have been in one of the agent's requests.
@@ -482,26 +538,23 @@ export declare class Agent {
482
538
  * compile that finishes can tell whether one was made while it ran. */
483
539
  private watermarkMarks;
484
540
  /**
485
- * The newest stored message a compile or a tool boundary may have put in
486
- * front of the agent, per branch. It moves where the consumed watermark
487
- * does, and sooner: when a committing compile takes its value, before it
488
- * awaits, and at every tool boundary that injects into its stream. A message above it may still
489
- * have been shown, though: for one, a live stream carries each round's own
490
- * content and results, stored at a boundary that injected nothing, into its
491
- * next request. A compile that throws assembled nothing, and gives its move
492
- * back where it can (unshowFailedCompile). A scalar counts a prefix, so a
493
- * message stored below it without having been shown counts as shown, which
494
- * errs toward a marker.
541
+ * How far a compile or a tool boundary may have put the agent's context in
542
+ * front of it, per branch. It moves where the consumed watermark does,
543
+ * and sooner: when a committing compile takes its mark, before it awaits,
544
+ * and at every tool boundary that injects into its stream. A message above
545
+ * it may still have been shown, though: for one, a live stream carries each
546
+ * round's own content and results, stored at a boundary that injected
547
+ * nothing, into its next request. A compile that throws assembled nothing,
548
+ * and gives its move back where it can (unshowFailedCompile). A mark taken
549
+ * in legacy mode, read while the window is the record, counts a prefix of
550
+ * the record, so a message stored below it without having been shown
551
+ * counts as shown, which errs toward a marker; one taken in presented
552
+ * mode, and one taken in legacy mode read once the window is written down,
553
+ * cover the window as it stood.
495
554
  */
496
555
  private shownWatermark;
497
- getConsumedWatermark(): {
498
- branch: string;
499
- sequence: number;
500
- } | null;
501
- getShownWatermark(): {
502
- branch: string;
503
- sequence: number;
504
- } | null;
556
+ getConsumedWatermark(): ReadMark | null;
557
+ getShownWatermark(): ReadMark | null;
505
558
  /**
506
559
  * The newest consumed watermark a request carried that was answered: its
507
560
  * round's tool calls, or its completion, came back. A message a boundary
@@ -511,25 +564,23 @@ export declare class Agent {
511
564
  * leaves this as it was.
512
565
  */
513
566
  private answeredWatermark;
514
- getAnsweredWatermark(): {
515
- branch: string;
516
- sequence: number;
517
- } | null;
567
+ getAnsweredWatermark(): ReadMark | null;
518
568
  /** A request that carried `watermark` was answered. Requests are answered
519
569
  * in the order they're sent, and the consumed watermark only advances
520
570
  * within a branch, so the latest is the newest. */
521
- markAnswered(watermark: {
522
- branch: string;
523
- sequence: number;
524
- } | null): void;
525
- /**
526
- * Keep the stored rows from `first` through `last` raw for the turn now
527
- * opening, with a raw pin under one name per agent. Any pin of that name
528
- * already held is removed first, one a crash left included. Under a
529
- * strategy without pins nothing is pinned. A committing compile that
530
- * refuses as over budget while a pin of that name is held removes it and
531
- * compiles once more, and `unpinTurnInputs` removes it. Returns the pin's
532
- * id, or undefined when nothing was pinned.
571
+ markAnswered(watermark: ReadMark | null): void;
572
+ /** Whether a turn this agent opens pins its inputs (AgentConfig.turnInputsPin, on by default). */
573
+ readonly pinsTurnInputs: boolean;
574
+ /**
575
+ * Keep the rows of the agent's window from `first` through `last` raw for
576
+ * the turn now opening, with a raw pin under one name per agent: a
577
+ * strategy reads a pin by its rows' positions in its message view, which
578
+ * is the window, in its order (#291; in legacy mode the record). Any pin
579
+ * of that name already held is removed first, one a crash left included.
580
+ * Under a strategy without pins nothing is pinned. A committing compile
581
+ * that refuses as over budget while a pin of that name is held removes it
582
+ * and compiles once more, and `unpinTurnInputs` removes it. Returns the
583
+ * pin's id, or undefined when nothing was pinned.
533
584
  *
534
585
  * @internal For the framework's turn starts; not a host API.
535
586
  */
@@ -547,29 +598,48 @@ export declare class Agent {
547
598
  * draft resend, or a send tool whose channel the framework records), on
548
599
  * the branch it was taken on. A wake that carries a channel, unless it's
549
600
  * marked ambient (InferenceRequest.ambient), keeps its turn unless the
550
- * agent spoke there after reading the write the wake is for. It
601
+ * agent spoke there after reading the row the wake is for. It
551
602
  * lives as long as this Agent: an agent made again starts it empty, and
552
603
  * such a wake then stays.
553
604
  */
554
605
  private publishedThrough;
555
606
  /** Note a publish into `destination` (its key), made having read through
556
607
  * `readThrough`: the consumed watermark when its words were written, or
557
- * its call made. */
558
- notePublished(destination: string, readThrough: {
559
- branch: string;
560
- sequence: number;
561
- } | null): void;
608
+ * its call made. A later mark on the same branch (markAtOrAfter: of two
609
+ * at one head, the one whose window reached further) replaces an earlier
610
+ * one; one on another branch replaces whatever was noted. */
611
+ notePublished(destination: string, readThrough: ReadMark | null): void;
562
612
  /** Whether the agent published into `destination` (its key) having read
563
- * the row stored at `sequence` on `branch`. */
564
- publishedAfterReading(destination: string, branch: string, sequence: number): boolean;
565
- /** Mark everything currently stored as consumed (the agent's creation, at
566
- * boot or later, and a tool boundary that injected messages into a live
567
- * stream declaring it carries them; see consumedWatermark). */
613
+ * `row`, as `cm` (the agent's context, where the row's place in its
614
+ * window is read) says: the mark noted for the destination covers it. A
615
+ * mark that can't say (one on another branch) says no. */
616
+ publishedAfterReading(destination: string, row: MarkedRow, cm: MarkCm): boolean;
617
+ /**
618
+ * Every read mark this agent holds: its consumed, shown and answered
619
+ * watermarks and the mark noted for each destination it published into,
620
+ * each mark once (two of them are often the one mark). A redo on the
621
+ * window (AgentFramework.redo) reads which of them covered the rows it
622
+ * puts back, and gives those marks again (replaceReadMarks).
623
+ */
624
+ heldReadMarks(): ReadMark[];
625
+ /**
626
+ * Put each mark `replacements` maps in its place wherever this agent holds
627
+ * it (heldReadMarks), so a mark held as two of them stays one: a redo on
628
+ * the window (#291) puts rows back at new ordinals, past every mark that
629
+ * covered them before their undo, and gives each such mark again where it
630
+ * covers them now. It counts as a mark (watermarkMarks), so a compile that
631
+ * began before it doesn't put its own older mark back over it.
632
+ */
633
+ replaceReadMarks(replacements: ReadonlyMap<ReadMark, ReadMark>): void;
634
+ /** Mark everything in the agent's window (in legacy mode, everything
635
+ * stored) as consumed: the agent's creation, at boot or later, and a tool
636
+ * boundary that injected messages into a live stream declaring it carries
637
+ * them; see consumedWatermark. */
568
638
  markContextConsumed(): void;
569
- /** Mark everything currently stored as possibly shown (a tool boundary
570
- * that injected messages into its stream). Without
571
- * a watermark the coalescer counts a message as shown, as it counts one
572
- * read without a consumed watermark. */
639
+ /** Mark everything in the agent's window (in legacy mode, everything
640
+ * stored) as possibly shown (a tool boundary that injected messages into
641
+ * its stream). Without a watermark the coalescer counts a message as
642
+ * shown, as it counts one read without a consumed watermark. */
573
643
  markContextShown(): void;
574
644
  /** A committing compile that threw assembled nothing, so its own move of
575
645
  * the shown watermark goes back, unless a boundary or another compile has
@@ -580,7 +650,9 @@ export declare class Agent {
580
650
  * the second then throws, it restores the first's failed claim. Messages
581
651
  * up to that claim then count as shown, although no request held those
582
652
  * above the watermark the first compile found, which errs toward a marker
583
- * until the next compile or boundary moves the watermark. */
653
+ * until the next compile or boundary moves the watermark. Each mark is a
654
+ * fresh object (readMarkOf), so the compare by identity is this compile's
655
+ * own claim. */
584
656
  private unshowFailedCompile;
585
657
  /**
586
658
  * A finished compile's watermark, taken before it awaited. Within a branch
@@ -589,18 +661,26 @@ export declare class Agent {
589
661
  * mark's branch, so a boundary's mark is never rolled back by a compile
590
662
  * that started before it (a committing compile, such as compileContext's,
591
663
  * run during a live turn; a dry run, such as previewActivation's, never
592
- * reaches here).
664
+ * reaches here). Marks are ordered by markAtOrAfter: by the window's
665
+ * index length where both keep one, else by the store's head, each of
666
+ * which only grows on a branch.
593
667
  */
594
668
  private applyCompileWatermark;
595
669
  /**
596
- * The branch now (`branchKey`) and its head, as `pendingWatermark` reads it: a message stored on that branch later
597
- * has a larger sequence. Sequences are numbered per branch, so one compares with another only on the same branch.
670
+ * The branch now (`branchKey`) and the store's head on it (storeHeadOf, the
671
+ * head a mark pendingWatermark takes keeps): a message stored on that
672
+ * branch later has a larger sequence. Sequences are numbered per branch, so
673
+ * one compares with another only on the same branch. A record sequence, not
674
+ * a place in the agent's window (#291).
598
675
  */
599
676
  branchHead(): {
600
677
  branch: string;
601
678
  sequence: number;
602
679
  } | undefined;
603
- /** The watermark a successful compile will establish (taken before, applied after). */
680
+ /** The watermark a successful compile will establish (taken before, applied
681
+ * after): where the agent's context stands now (readMarkOf), its window's
682
+ * index length with the store's head once it presents rows. Null for a
683
+ * context double that can't say. */
604
684
  private pendingWatermark;
605
685
  /** A committing compile, as for a request that is sent: the context
606
686
  * manager commits what it commits for one, the consumed watermark moves,
@@ -649,9 +729,8 @@ export declare class Agent {
649
729
  /**
650
730
  * A host's hook, called with each committing compile's `thinkingStrip` (never a dry run's) and the key of the
651
731
  * branch it read (`branchKey`), as the compile returns, whether or not its request is then sent, since the
652
- * context manager's binding record takes the strip either way. One that throws is logged. The framework sets it
653
- * at the agent's first stream unless a host has set one, so a host's own observer stands in for the framework's,
654
- * whose `[reasoning]` line for the agent then isn't told.
732
+ * context manager's binding record takes the strip either way. One that throws is logged. It is observational only;
733
+ * the framework does not write agent-facing reasoning-loss notices.
655
734
  */
656
735
  onThinkingStrip?: (strip: ThinkingStrip, branch: string) => void;
657
736
  /**
@@ -664,13 +743,31 @@ export declare class Agent {
664
743
  * start and the next (a host's own committing compile, or the compression
665
744
  * an over-budget retry waits for) can summarize them all the same: the
666
745
  * next request then has the summary's word for them, and the start after
667
- * it stores them again, as after any fold. The window is read back 64
668
- * rows at a time from the newest, stopping at that point.
746
+ * it stores them again, as after any fold. The slot's record is read
747
+ * back 64 rows at a time from the newest, stopping at that point.
748
+ *
749
+ * It reads the record, by sequence, not the agent's window, and that
750
+ * holds once the context presents rows (#291): the rows it counts are
751
+ * this agent's own stored injections, its own rows, which enter its
752
+ * window as they are written, so one stored after the point is in no
753
+ * request yet whatever else has been stored or presented since. Another
754
+ * agent's rows, stored into a shared slot at once rather than queued, are
755
+ * passed over, whatever they are.
669
756
  */
670
757
  unsentInjection(namespace: string): {
671
758
  contentHash: string;
672
759
  whole: boolean;
673
760
  } | undefined;
761
+ /** Set the unsent point where it isn't set, as a start's plan does: a row
762
+ * stored after it counts as in no request until a compile built to send.
763
+ * @internal For the framework's budget holds; not a host API. */
764
+ markUnsentPoint(): void;
765
+ /** The ids of this agent's stored injections, of every namespace, stored
766
+ * on its branch since its last compile built to send and in its window
767
+ * where it's presented, in the record's order, a sharded body's first
768
+ * shard first: the rows unsentInjection counts, which no request has
769
+ * carried. Reads only, so an unset point gives none. */
770
+ unsentInjectionRows(): MessageId[];
674
771
  /** Record which of this agent's stored injections a compile built to send
675
772
  * rendered. Another agent's stored rows never reach this agent's compile,
676
773
  * since every compile of a shared store leaves them out by its view
@@ -681,14 +778,28 @@ export declare class Agent {
681
778
  * The newest content of `namespace` among this agent's stored injections
682
779
  * that the last compile built to send rendered, by its newest copy: its
683
780
  * content hash, and whether every part of that content was there in some
684
- * copy, every shard, however the strategy shaped it. Undefined when none
685
- * was, when this agent hasn't built a request since it started, or when
686
- * the window's branch has changed since.
781
+ * copy, every shard, however the strategy shaped it. Copies of the same
782
+ * content pool what they hold: the agent has each part one of them holds.
783
+ * A copy the agent's next request won't hold is passed over: one an undo
784
+ * took out of its window since (#291: `'undone'`, which no presentation
785
+ * point presents again until a redo), and one no longer stored. Undefined
786
+ * when no copy is left, when this agent hasn't built a request since it
787
+ * started, or when the window's branch has changed since.
687
788
  */
688
789
  renderedInjection(namespace: string): {
689
790
  contentHash: string;
690
791
  whole: boolean;
691
792
  } | undefined;
793
+ /**
794
+ * Whether a stored injection's copy the last compile rendered is still
795
+ * where the agent's next request reads it: stored, and not taken out of
796
+ * its window by an undo (#291). A copy out of the window otherwise
797
+ * (`'out'`, as a redo leaves one presented since its undo) is presented
798
+ * again at the agent's next point, its own rows' sweep, so it counts. A
799
+ * context that can't say (a double without windowStatusOf, a read that
800
+ * throws) counts it, as before the window was presented.
801
+ */
802
+ private renderedCopyStands;
692
803
  /**
693
804
  * Whether compiled message `i` of `result` is a row of this agent's stored
694
805
  * context injections (stored-injections.ts): rendered as an injection's
@@ -784,8 +895,9 @@ export declare class Agent {
784
895
  * other model, since thinking is off there.
785
896
  */
786
897
  private requestThinking;
787
- /** The stream's way to tell the context manager what its later rounds sent, with the head its compile was given:
788
- * where the agent's model binds its thinking (context-manager's `noteRequestSent`). */
898
+ /** The stream's way to tell the context manager what its later rounds sent, with the head its compile was given,
899
+ * and which stored bodies' thinking the provider dropped: where the agent's model binds its thinking
900
+ * (context-manager's `noteRequestSent` and `noteThinkingDropped`). */
789
901
  private requestNotes;
790
902
  /**
791
903
  * The binding a compile of this agent is told of (bindingCompileOptions), and a preview of its context too: the
@@ -812,9 +924,12 @@ export declare class Agent {
812
924
  /** The request `assembleActivationRequest` builds (see there), for preview
813
925
  * and debug tooling: what this agent's next activation would send. */
814
926
  buildActivationRequest(availableTools: ToolDefinition[], injections?: ContextInjection[], budget?: TokenBudget, compressionTools?: ToolDefinition[], options?: ActivationRequestOptions): Promise<NormalizedRequest>;
815
- /** Stored rows that follow a request-only turn, memoized on the store's
816
- * cached message array (ContextManager returns the same array until the
817
- * store changes). */
927
+ /** Stored rows that follow a request-only turn, memoized on the window's
928
+ * cached row array (ContextManager returns the same array until the
929
+ * window changes): the rows a compile sends are the window's (#291), and
930
+ * a write another agent stores, which the window doesn't take, leaves the
931
+ * memo as it was. A context without a window reads the record, the same
932
+ * array as the window's for a single slot that is still the record. */
818
933
  private requestOnlyIndex;
819
934
  private indexRequestOnlyRows;
820
935
  /**
@@ -900,6 +1015,19 @@ export declare class Agent {
900
1015
  * Get the context manager.
901
1016
  */
902
1017
  getContextManager(): ContextManager;
1018
+ /** Where this agent tells of its own rows once they are stored (setOwnRowSink). */
1019
+ private ownRowSink?;
1020
+ /**
1021
+ * Install where this agent tells of its own rows once they are stored
1022
+ * (its rounds and the rows the framework writes for it through
1023
+ * storeOwnRow, and its tool results through its guard), or take it off
1024
+ * with undefined. The presentation index (#291) installs one when it takes
1025
+ * the agent on, and presents each row in the agent's window as it is
1026
+ * told. With none, as for an agent nothing took on, nothing is told.
1027
+ */
1028
+ setOwnRowSink(sink: ((ids: readonly MessageId[]) => void) | undefined): void;
1029
+ /** Tell the sink of own rows just stored (storeOwnRow calls it, once each add has returned). */
1030
+ ownRowsStored(ids: readonly MessageId[]): void;
903
1031
  /**
904
1032
  * Build the effective system prompt, appending any system-position
905
1033
  * injections, their blocks joined by line breaks. The system prompt is
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE9I,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAA+C,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAK5D,OAAO,EAQL,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAEzB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,iB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