@animalabs/agent-framework 0.32.0 → 0.33.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 (288) hide show
  1. package/README.md +204 -14
  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 +185 -78
  7. package/dist/src/agent.d.ts.map +1 -1
  8. package/dist/src/agent.js +279 -102
  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/code-execution/isolate/scripts.d.ts +12 -8
  17. package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -1
  18. package/dist/src/code-execution/isolate/scripts.js +24 -0
  19. package/dist/src/code-execution/isolate/scripts.js.map +1 -1
  20. package/dist/src/config-checks.d.ts +7 -0
  21. package/dist/src/config-checks.d.ts.map +1 -1
  22. package/dist/src/config-checks.js +14 -0
  23. package/dist/src/config-checks.js.map +1 -1
  24. package/dist/src/context-manager-errors.d.ts +25 -0
  25. package/dist/src/context-manager-errors.d.ts.map +1 -0
  26. package/dist/src/context-manager-errors.js +31 -0
  27. package/dist/src/context-manager-errors.js.map +1 -0
  28. package/dist/src/context-options.d.ts +67 -0
  29. package/dist/src/context-options.d.ts.map +1 -0
  30. package/dist/src/context-options.js +85 -0
  31. package/dist/src/context-options.js.map +1 -0
  32. package/dist/src/deferred-import.d.ts +93 -0
  33. package/dist/src/deferred-import.d.ts.map +1 -0
  34. package/dist/src/deferred-import.js +177 -0
  35. package/dist/src/deferred-import.js.map +1 -0
  36. package/dist/src/dendrite/audience.d.ts +223 -0
  37. package/dist/src/dendrite/audience.d.ts.map +1 -0
  38. package/dist/src/dendrite/audience.js +202 -0
  39. package/dist/src/dendrite/audience.js.map +1 -0
  40. package/dist/src/dendrite/index.d.ts +5 -3
  41. package/dist/src/dendrite/index.d.ts.map +1 -1
  42. package/dist/src/dendrite/index.js +2 -1
  43. package/dist/src/dendrite/index.js.map +1 -1
  44. package/dist/src/dendrite/presets.d.ts +10 -5
  45. package/dist/src/dendrite/presets.d.ts.map +1 -1
  46. package/dist/src/dendrite/presets.js +17 -5
  47. package/dist/src/dendrite/presets.js.map +1 -1
  48. package/dist/src/dendrite/registry.d.ts +62 -7
  49. package/dist/src/dendrite/registry.d.ts.map +1 -1
  50. package/dist/src/dendrite/registry.js +179 -10
  51. package/dist/src/dendrite/registry.js.map +1 -1
  52. package/dist/src/dendrite/types.d.ts +91 -8
  53. package/dist/src/dendrite/types.d.ts.map +1 -1
  54. package/dist/src/foreign-rounds.d.ts +69 -0
  55. package/dist/src/foreign-rounds.d.ts.map +1 -0
  56. package/dist/src/foreign-rounds.js +152 -0
  57. package/dist/src/foreign-rounds.js.map +1 -0
  58. package/dist/src/framework.d.ts +1976 -818
  59. package/dist/src/framework.d.ts.map +1 -1
  60. package/dist/src/framework.js +7566 -3422
  61. package/dist/src/framework.js.map +1 -1
  62. package/dist/src/gate/event-gate.d.ts +85 -15
  63. package/dist/src/gate/event-gate.d.ts.map +1 -1
  64. package/dist/src/gate/event-gate.js +421 -47
  65. package/dist/src/gate/event-gate.js.map +1 -1
  66. package/dist/src/gate/index.d.ts +1 -1
  67. package/dist/src/gate/index.d.ts.map +1 -1
  68. package/dist/src/gate/index.js.map +1 -1
  69. package/dist/src/gate/rule-scope.d.ts +30 -0
  70. package/dist/src/gate/rule-scope.d.ts.map +1 -0
  71. package/dist/src/gate/rule-scope.js +41 -0
  72. package/dist/src/gate/rule-scope.js.map +1 -0
  73. package/dist/src/gate/suppress-script-worker.d.ts +2 -0
  74. package/dist/src/gate/suppress-script-worker.d.ts.map +1 -0
  75. package/dist/src/gate/suppress-script-worker.js +103 -0
  76. package/dist/src/gate/suppress-script-worker.js.map +1 -0
  77. package/dist/src/gate/suppress-scripts.d.ts +105 -0
  78. package/dist/src/gate/suppress-scripts.d.ts.map +1 -0
  79. package/dist/src/gate/suppress-scripts.js +403 -0
  80. package/dist/src/gate/suppress-scripts.js.map +1 -0
  81. package/dist/src/gate/suppression-review.d.ts +143 -0
  82. package/dist/src/gate/suppression-review.d.ts.map +1 -0
  83. package/dist/src/gate/suppression-review.js +463 -0
  84. package/dist/src/gate/suppression-review.js.map +1 -0
  85. package/dist/src/gate/suppression-stats.d.ts +125 -0
  86. package/dist/src/gate/suppression-stats.d.ts.map +1 -0
  87. package/dist/src/gate/suppression-stats.js +214 -0
  88. package/dist/src/gate/suppression-stats.js.map +1 -0
  89. package/dist/src/gate/types.d.ts +135 -7
  90. package/dist/src/gate/types.d.ts.map +1 -1
  91. package/dist/src/gate/wake-onboarding.d.ts +119 -0
  92. package/dist/src/gate/wake-onboarding.d.ts.map +1 -0
  93. package/dist/src/gate/wake-onboarding.js +277 -0
  94. package/dist/src/gate/wake-onboarding.js.map +1 -0
  95. package/dist/src/held-writes.d.ts +31 -23
  96. package/dist/src/held-writes.d.ts.map +1 -1
  97. package/dist/src/held-writes.js +44 -59
  98. package/dist/src/held-writes.js.map +1 -1
  99. package/dist/src/index.d.ts +5 -2
  100. package/dist/src/index.d.ts.map +1 -1
  101. package/dist/src/index.js +3 -0
  102. package/dist/src/index.js.map +1 -1
  103. package/dist/src/jsonrpc-envelope.d.ts +69 -0
  104. package/dist/src/jsonrpc-envelope.d.ts.map +1 -0
  105. package/dist/src/jsonrpc-envelope.js +66 -0
  106. package/dist/src/jsonrpc-envelope.js.map +1 -0
  107. package/dist/src/mcpl/channel-registry.d.ts +131 -15
  108. package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
  109. package/dist/src/mcpl/channel-registry.js +290 -46
  110. package/dist/src/mcpl/channel-registry.js.map +1 -1
  111. package/dist/src/mcpl/checkpoint-manager.d.ts +2 -4
  112. package/dist/src/mcpl/checkpoint-manager.d.ts.map +1 -1
  113. package/dist/src/mcpl/checkpoint-manager.js.map +1 -1
  114. package/dist/src/mcpl/feature-set-manager.d.ts +2 -4
  115. package/dist/src/mcpl/feature-set-manager.d.ts.map +1 -1
  116. package/dist/src/mcpl/feature-set-manager.js.map +1 -1
  117. package/dist/src/mcpl/inbound-source.d.ts +2 -1
  118. package/dist/src/mcpl/inbound-source.d.ts.map +1 -1
  119. package/dist/src/mcpl/inbound-source.js +2 -1
  120. package/dist/src/mcpl/inbound-source.js.map +1 -1
  121. package/dist/src/mcpl/inference-router.d.ts +6 -6
  122. package/dist/src/mcpl/inference-router.d.ts.map +1 -1
  123. package/dist/src/mcpl/inference-router.js.map +1 -1
  124. package/dist/src/mcpl/push-coalescer.d.ts +132 -22
  125. package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
  126. package/dist/src/mcpl/push-coalescer.js +105 -15
  127. package/dist/src/mcpl/push-coalescer.js.map +1 -1
  128. package/dist/src/mcpl/push-handler.d.ts +9 -7
  129. package/dist/src/mcpl/push-handler.d.ts.map +1 -1
  130. package/dist/src/mcpl/push-handler.js.map +1 -1
  131. package/dist/src/mcpl/server-connection.d.ts +13 -10
  132. package/dist/src/mcpl/server-connection.d.ts.map +1 -1
  133. package/dist/src/mcpl/server-connection.js +134 -56
  134. package/dist/src/mcpl/server-connection.js.map +1 -1
  135. package/dist/src/mcpl/tool-classes.d.ts.map +1 -1
  136. package/dist/src/mcpl/tool-classes.js +3 -0
  137. package/dist/src/mcpl/tool-classes.js.map +1 -1
  138. package/dist/src/mcpl/types.d.ts +8 -2
  139. package/dist/src/mcpl/types.d.ts.map +1 -1
  140. package/dist/src/mcpl/types.js.map +1 -1
  141. package/dist/src/module-registry.d.ts +24 -1
  142. package/dist/src/module-registry.d.ts.map +1 -1
  143. package/dist/src/module-registry.js +68 -18
  144. package/dist/src/module-registry.js.map +1 -1
  145. package/dist/src/modules/discord/index.d.ts +45 -8
  146. package/dist/src/modules/discord/index.d.ts.map +1 -1
  147. package/dist/src/modules/discord/index.js +237 -86
  148. package/dist/src/modules/discord/index.js.map +1 -1
  149. package/dist/src/modules/history/index.d.ts +59 -0
  150. package/dist/src/modules/history/index.d.ts.map +1 -1
  151. package/dist/src/modules/history/index.js +432 -67
  152. package/dist/src/modules/history/index.js.map +1 -1
  153. package/dist/src/modules/history/semantic.d.ts +6 -5
  154. package/dist/src/modules/history/semantic.d.ts.map +1 -1
  155. package/dist/src/modules/history/semantic.js +15 -22
  156. package/dist/src/modules/history/semantic.js.map +1 -1
  157. package/dist/src/modules/workspace/disk-agreement.d.ts +1 -1
  158. package/dist/src/modules/workspace/disk-agreement.js +1 -1
  159. package/dist/src/modules/workspace/index.d.ts +28 -7
  160. package/dist/src/modules/workspace/index.d.ts.map +1 -1
  161. package/dist/src/modules/workspace/index.js +76 -22
  162. package/dist/src/modules/workspace/index.js.map +1 -1
  163. package/dist/src/notice-tags.d.ts +10 -1
  164. package/dist/src/notice-tags.d.ts.map +1 -1
  165. package/dist/src/notice-tags.js +10 -1
  166. package/dist/src/notice-tags.js.map +1 -1
  167. package/dist/src/operator-log.d.ts +36 -3
  168. package/dist/src/operator-log.d.ts.map +1 -1
  169. package/dist/src/operator-log.js +2 -2
  170. package/dist/src/operator-log.js.map +1 -1
  171. package/dist/src/presentation.d.ts +746 -0
  172. package/dist/src/presentation.d.ts.map +1 -0
  173. package/dist/src/presentation.js +1435 -0
  174. package/dist/src/presentation.js.map +1 -0
  175. package/dist/src/prose-drafts.d.ts +15 -11
  176. package/dist/src/prose-drafts.d.ts.map +1 -1
  177. package/dist/src/prose-drafts.js +16 -12
  178. package/dist/src/prose-drafts.js.map +1 -1
  179. package/dist/src/read-marks.d.ts +192 -0
  180. package/dist/src/read-marks.d.ts.map +1 -0
  181. package/dist/src/read-marks.js +242 -0
  182. package/dist/src/read-marks.js.map +1 -0
  183. package/dist/src/recovery/offline-branch.d.ts +91 -6
  184. package/dist/src/recovery/offline-branch.d.ts.map +1 -1
  185. package/dist/src/recovery/offline-branch.js +273 -29
  186. package/dist/src/recovery/offline-branch.js.map +1 -1
  187. package/dist/src/recovery/recover-cli.js +22 -3
  188. package/dist/src/recovery/recover-cli.js.map +1 -1
  189. package/dist/src/send-tools.d.ts +5 -9
  190. package/dist/src/send-tools.d.ts.map +1 -1
  191. package/dist/src/send-tools.js +40 -7
  192. package/dist/src/send-tools.js.map +1 -1
  193. package/dist/src/stored-injections.d.ts +2 -2
  194. package/dist/src/stored-injections.js +2 -2
  195. package/dist/src/stored-removal.d.ts +17 -4
  196. package/dist/src/stored-removal.d.ts.map +1 -1
  197. package/dist/src/stored-removal.js +29 -5
  198. package/dist/src/stored-removal.js.map +1 -1
  199. package/dist/src/tool-result-guard.d.ts +12 -1
  200. package/dist/src/tool-result-guard.d.ts.map +1 -1
  201. package/dist/src/tool-result-guard.js +42 -8
  202. package/dist/src/tool-result-guard.js.map +1 -1
  203. package/dist/src/tune-out/coordinator.d.ts +1159 -79
  204. package/dist/src/tune-out/coordinator.d.ts.map +1 -1
  205. package/dist/src/tune-out/coordinator.js +3709 -363
  206. package/dist/src/tune-out/coordinator.js.map +1 -1
  207. package/dist/src/tune-out/tools.d.ts +114 -17
  208. package/dist/src/tune-out/tools.d.ts.map +1 -1
  209. package/dist/src/tune-out/tools.js +87 -27
  210. package/dist/src/tune-out/tools.js.map +1 -1
  211. package/dist/src/tune-out/window-anchor.d.ts +143 -0
  212. package/dist/src/tune-out/window-anchor.d.ts.map +1 -0
  213. package/dist/src/tune-out/window-anchor.js +202 -0
  214. package/dist/src/tune-out/window-anchor.js.map +1 -0
  215. package/dist/src/types/agent.d.ts +82 -20
  216. package/dist/src/types/agent.d.ts.map +1 -1
  217. package/dist/src/types/events.d.ts +2 -0
  218. package/dist/src/types/events.d.ts.map +1 -1
  219. package/dist/src/types/framework.d.ts +32 -12
  220. package/dist/src/types/framework.d.ts.map +1 -1
  221. package/dist/src/types/module.d.ts +180 -69
  222. package/dist/src/types/module.d.ts.map +1 -1
  223. package/dist/src/types/trace.d.ts +510 -36
  224. package/dist/src/types/trace.d.ts.map +1 -1
  225. package/package.json +3 -3
  226. package/src/admission/admit.ts +32 -3
  227. package/src/agent.ts +323 -120
  228. package/src/api/mcp-server-core.ts +54 -17
  229. package/src/api/server.ts +4 -23
  230. package/src/code-execution/isolate/scripts.ts +28 -3
  231. package/src/config-checks.ts +14 -0
  232. package/src/context-manager-errors.ts +37 -0
  233. package/src/context-options.ts +96 -0
  234. package/src/deferred-import.ts +239 -0
  235. package/src/dendrite/audience.ts +315 -0
  236. package/src/dendrite/index.ts +14 -2
  237. package/src/dendrite/presets.ts +18 -6
  238. package/src/dendrite/registry.ts +209 -12
  239. package/src/dendrite/types.ts +92 -8
  240. package/src/foreign-rounds.ts +199 -0
  241. package/src/framework.ts +7804 -3546
  242. package/src/gate/event-gate.ts +428 -65
  243. package/src/gate/index.ts +3 -0
  244. package/src/gate/rule-scope.ts +45 -0
  245. package/src/gate/suppress-script-worker.ts +89 -0
  246. package/src/gate/suppress-scripts.ts +414 -0
  247. package/src/gate/suppression-review.ts +517 -0
  248. package/src/gate/suppression-stats.ts +314 -0
  249. package/src/gate/types.ts +141 -7
  250. package/src/gate/wake-onboarding.ts +309 -0
  251. package/src/held-writes.ts +49 -60
  252. package/src/index.ts +9 -2
  253. package/src/jsonrpc-envelope.ts +81 -0
  254. package/src/mcpl/channel-registry.ts +353 -85
  255. package/src/mcpl/checkpoint-manager.ts +3 -2
  256. package/src/mcpl/feature-set-manager.ts +2 -1
  257. package/src/mcpl/inbound-source.ts +2 -1
  258. package/src/mcpl/inference-router.ts +7 -4
  259. package/src/mcpl/push-coalescer.ts +193 -34
  260. package/src/mcpl/push-handler.ts +10 -5
  261. package/src/mcpl/server-connection.ts +141 -60
  262. package/src/mcpl/tool-classes.ts +3 -0
  263. package/src/mcpl/types.ts +8 -2
  264. package/src/module-registry.ts +73 -17
  265. package/src/modules/discord/index.ts +229 -81
  266. package/src/modules/history/index.ts +439 -70
  267. package/src/modules/history/semantic.ts +15 -21
  268. package/src/modules/workspace/disk-agreement.ts +1 -1
  269. package/src/modules/workspace/index.ts +85 -23
  270. package/src/notice-tags.ts +10 -1
  271. package/src/operator-log.ts +36 -3
  272. package/src/presentation.ts +1676 -0
  273. package/src/prose-drafts.ts +16 -12
  274. package/src/read-marks.ts +328 -0
  275. package/src/recovery/offline-branch.ts +346 -32
  276. package/src/recovery/recover-cli.ts +21 -3
  277. package/src/send-tools.ts +40 -7
  278. package/src/stored-injections.ts +2 -2
  279. package/src/stored-removal.ts +31 -7
  280. package/src/tool-result-guard.ts +41 -7
  281. package/src/tune-out/coordinator.ts +4089 -457
  282. package/src/tune-out/tools.ts +160 -43
  283. package/src/tune-out/window-anchor.ts +277 -0
  284. package/src/types/agent.ts +86 -20
  285. package/src/types/events.ts +2 -0
  286. package/src/types/framework.ts +32 -12
  287. package/src/types/module.ts +181 -68
  288. package/src/types/trace.ts +542 -40
@@ -1,5 +1,5 @@
1
1
  import type { ContentBlock } from '@animalabs/membrane';
2
- import type { MessageId, MessageMetadata, StoredMessage, ContextInjection } from '@animalabs/context-manager';
2
+ import type { ContextManager, MessageId, MessageMetadata, StoredMessage, ContextInjection, WindowStatus } from '@animalabs/context-manager';
3
3
  import type { ProcessEvent, ToolDefinition, ToolCall, ToolResult } from './events.js';
4
4
  import type { TraceEventListener } from './trace.js';
5
5
  /**
@@ -43,44 +43,54 @@ export type ModuleContextInjection = ContextInjection & {
43
43
  placedEachCompile?: true;
44
44
  };
45
45
  /**
46
- * A message as a module context's reads answer it: a stored row, or a row
47
- * for a write the framework holds (`held`). Either is marked
48
- * `heldFromResidents` when a tune-out holds it from the residents.
46
+ * A message as a module context's reads answer it: a stored row, marked
47
+ * `held` when it isn't in the window of the agent the read is for, and
48
+ * `heldFromResidents` when a tune-out or a suppress rule holds it from the
49
+ * residents.
49
50
  */
50
51
  export type ModuleMessage = StoredMessage & {
51
52
  /**
52
- * True while the framework holds the message's write, as it does while
53
- * the write's agent has a turn alive or the host is quiesced, until a
54
- * later boundary stores it. The row's `id` is then a handle, which
55
- * getMessage, editMessage and removeMessage take as they take a stored
56
- * id, and which names the stored row once the write lands. Its `sequence`
57
- * and `timestamp` are provisional: the sequence comes after every stored
58
- * row's, the timestamp is when the framework held the write (for a write
59
- * an older release held, when its queue was read back), and both change
60
- * when it lands. A held write whose earlier write may already be stored
61
- * is looked up first, and answered as the stored row it is when the store
62
- * holds it. Absent on a stored row.
53
+ * True on a row stored and not in the window of the agent the read is for
54
+ * (#291's presentation index): it arrived while that agent's turn was
55
+ * alive, or while the host was quiesced, and enters the window at the
56
+ * agent's next presentation point (a turn's start, a tool boundary that
57
+ * can carry it, a turn's end, or at once while no turn of it is alive);
58
+ * or it was taken out of the window as an undone turn's; or it is never
59
+ * presented to that agent, as a held message is to a resident. Set only
60
+ * once that agent's window is written down (presented mode); a held
61
+ * message an earlier release stored is in a resident's window written
62
+ * down from the record, so it reads without `held`, and
63
+ * `heldFromResidents` is what marks it. Its `id`,
64
+ * `sequence` and `timestamp` are the store's, as for any row: since #291
65
+ * every write is stored at once, so no row is a handle and nothing
66
+ * changes when it enters the window. Before #291 the same name marked a
67
+ * write the framework still held, under a `held:` handle; see the
68
+ * changelog. Absent on a row the window holds.
63
69
  */
64
70
  held?: true;
65
71
  /**
66
72
  * True on a message a tune-out holds from the residents: one that arrived
67
73
  * in a tuned-out channel, stamped `metadata.tuneOut` as it came in. The
68
74
  * store keeps it, but no resident is shown the row itself: no resident's
69
- * compiled view includes it, during the tune-out or after it, and a
70
- * resident's tool boundary of a turn alive when it arrived stores it
71
- * without injecting it into the live turn. The subconscious reads it. Its
75
+ * compiled view includes it, during the tune-out or after it. It is
76
+ * stored as any write is, and a resident's tool boundary of a turn alive
77
+ * when it arrived doesn't inject it into the live turn. The subconscious
78
+ * reads it. Its
72
79
  * text can still reach a resident in rows of their own, which aren't
73
80
  * marked, such as the
74
81
  * cancel's `<tuned-out-backlog>` row, with the text of the tune-out's newest
75
82
  * messages, up to `backlogCap` of them and as many as fit in one of the
76
- * residents' messages, the stored ones first and then those still held;
77
- * what the subconscious says of it, in its report or its note; and the
83
+ * residents' messages; what the subconscious says of it, in its report or
84
+ * its note; and the
78
85
  * result of a tool that reads history on request, such as a
79
86
  * channel's `fetch_history` or the history module's `extract`. A module
80
87
  * that builds on what the residents see, such as one choosing from the
81
88
  * recent conversation, leaves a marked row out, and one that matches
82
- * what's stored, such as a sync's dedupe, keeps it. A held write (`held`)
83
- * is marked too when it carries the stamp. Absent on every other row.
89
+ * what's stored, such as a sync's dedupe, keeps it. A row a suppress rule
90
+ * hid (`metadata.suppressed`) is marked too: no view shows it, the
91
+ * subconscious's included, and no window presents it, so once the
92
+ * agent's window is written down it reads `held` too. Absent on every
93
+ * other row.
84
94
  */
85
95
  heldFromResidents?: true;
86
96
  };
@@ -88,9 +98,8 @@ export type ModuleMessage = StoredMessage & {
88
98
  * Result of a message query.
89
99
  */
90
100
  export interface MessageQueryResult {
91
- /** The matching stored rows, then, as the newest, the matching rows of
92
- * writes the framework holds (ModuleMessage.held): before the stored rows
93
- * in a reversed query */
101
+ /** The matching stored rows, in store order (newest first in a reversed
102
+ * query), each marked as ModuleMessage says. */
94
103
  messages: ModuleMessage[];
95
104
  totalCount: number;
96
105
  }
@@ -255,9 +264,10 @@ export interface AgentSettingsExtension {
255
264
  * nothing.
256
265
  *
257
266
  * Its reads (`getState`, `getLog`, `getLogLength`, `getMessage`,
258
- * `queryMessages`, `getAgents`, `getActiveTools`, `findMessageByExternalId`)
259
- * answer, and fail, as before; one that meets a held write may record that
260
- * the write has landed, as any reader's does. The framework calls none of the
267
+ * `queryMessages`, `getAgents`, `getActiveTools`, `findMessageByExternalId`,
268
+ * and the window lookups `windowStatusOf`, `observes`, `viewKeeps` and
269
+ * `agentNameOf` where the framework offers them) answer, and fail, as
270
+ * before. The framework calls none of the
261
271
  * module's `onProcess`, `onAgentSpeech` and `onToolBatchComplete` again; it
262
272
  * drops whole a response of its that hadn't been applied by then, with a line
263
273
  * naming what the response asked for if it asked for anything; and it leaves
@@ -345,20 +355,44 @@ export interface ModuleContext {
345
355
  */
346
356
  getModule<T extends Module>(name: string): T | null;
347
357
  /**
348
- * Add a message to the conversation, and answer its id. While the
349
- * framework holds the write (the agent's turn is alive, or the host is
350
- * quiesced), the id is a handle, `held:` and the write's id, which
351
- * getMessage, editMessage and removeMessage take as they take a stored
352
- * id, and which names the stored row once the write lands
353
- * (ModuleMessage.held). The writes a process held, and keeps across a
354
- * restart, show to the next process's modules once create() has restored
355
- * them, which is after every module's start().
358
+ * Add a message to the conversation, and answer its stored id. The write
359
+ * is stored at once, whatever the agent's turn (#291): it enters the
360
+ * agent's window at the agent's next presentation point, or at once while
361
+ * no turn of it is alive, and until then reads mark it `held`
362
+ * (ModuleMessage.held). Only while the write is kept in memory is the id
363
+ * '': while an operator's surgery holds the store, stored at the
364
+ * surgery's end, and while the agent's context manager refuses its work
365
+ * after a failed re-initialization, stored when a switchBranch()
366
+ * re-initializes it (a restart loses it; if the agent ends first, it goes
367
+ * to the primary when it is a write the primary takes in its place).
368
+ * Until it lands, such a write can't be read, edited or removed through
369
+ * this context: it has no id, getMessage, editMessage and removeMessage
370
+ * take none for it, and queryMessages and findMessageByExternalId read
371
+ * the store, which doesn't hold it yet. Its release stores it as it was
372
+ * given here. A module that must change it keeps the change and applies
373
+ * it to the row once the row is stored, which the release traces
374
+ * synchronously as `message:added` with source `surgery-release` and the
375
+ * stored id, as the Discord module does for an edit or a delete of a
376
+ * message whose create was kept.
377
+ * Writes a release before #291 held and kept across a restart are
378
+ * stored once create() imports them, which is after every module's
379
+ * start().
380
+ * A write whose store throws after rows of it landed is answered by the
381
+ * first of them, as stored (context-manager's WriteLandedError names
382
+ * them). One whose store throws where the store can't be read to tell
383
+ * what of it landed throws context-manager's WriteOutcomeUnknownError,
384
+ * which names the rows it knows are stored (`landed`, presented as a
385
+ * stored write's rows are) and counts those it can't (`unknown`,
386
+ * `unnamed`): the write may be stored, in part or whole, or not at all,
387
+ * and isn't answered as stored. A read of the store tells, once the store
388
+ * reads: queryMessages, or findMessageByExternalId for a write that
389
+ * carried `metadata.external`. Any other error means none of it is stored.
356
390
  *
357
391
  * With `opts.forAgent`, it's added to the named agent's window instead: a
358
392
  * conversation fork's or a running sub-agent's own store, or, for an
359
- * ordinary resident, the residents' shared slot. It's held while that
360
- * agent's turn is alive, as a write for the primary is while the
361
- * primary's is. A name that isn't a registered agent when the write is
393
+ * ordinary resident, the residents' shared slot. It enters that agent's
394
+ * window at that agent's points, as a write for the primary does at the
395
+ * primary's. A name that isn't a registered agent when the write is
362
396
  * made, or the empty name, throws, naming the registered ones, so a write
363
397
  * for a launcher that has gone is heard. For an ephemeral run (a
364
398
  * sub-agent's run) or a conversation fork, whose window nothing reads
@@ -377,12 +411,17 @@ export interface ModuleContext {
377
411
  * failed reply, or a channel notice its reader could act on). getMessage,
378
412
  * editMessage and removeMessage read the delivery agent's window (the
379
413
  * primary's, or the first agent's when none is primary): they don't take
380
- * an id or handle for a row in a fork's or a sub-agent's window, and don't
414
+ * an id for a row in a fork's or a sub-agent's window, and don't
381
415
  * find it (read it with queryMessages and the same forAgent). The
382
416
  * residents' shared slot is the primary's window too, for a primary
383
417
  * that's an ordinary resident, so there they do.
384
418
  * `metadata.external` with a target throws: its id map is read in the
385
- * primary's window.
419
+ * primary's window. The row is stamped (`metadata.audience`, #291) for
420
+ * the agent named, or, with no agent named, for the agents that take
421
+ * untargeted inbound in the slot it lands in: every resident on a
422
+ * residents' host. A row a suppress rule took is stamped for nobody, and
423
+ * one carrying a tune-out's hold for nobody but a named agent whose view
424
+ * keeps held traffic (the persistent subconscious).
386
425
  */
387
426
  addMessage(participant: string, content: ContentBlock[], metadata?: MessageMetadata & {
388
427
  external?: ExternalIdRef;
@@ -390,44 +429,49 @@ export interface ModuleContext {
390
429
  forAgent?: string;
391
430
  }): MessageId;
392
431
  /**
393
- * Edit a message, by its id or a held write's handle. A held write is
394
- * stored with the new content. One whose earlier write may already be
395
- * stored, where the store can't be searched to tell, throws with nothing
396
- * changed.
432
+ * Edit a stored message, by its id. An edit of a row an agent's window
433
+ * holds changes what that agent's next compile sends, as for any stored
434
+ * row. For one release it also takes the `held:` handle a release before
435
+ * #291 answered for a write it held, and edits the row that write landed
436
+ * as.
397
437
  */
398
438
  editMessage(id: MessageId, content: ContentBlock[]): void;
399
439
  /**
400
- * Remove a message, by its id or a held write's handle. A held write is
401
- * dropped, so the agent never reads it. One whose earlier write may
402
- * already be stored, where the store can't be searched to tell, throws
403
- * with nothing changed.
440
+ * Remove a stored message, by its id. For one release it also takes the
441
+ * `held:` handle a release before #291 answered for a write it held, and
442
+ * removes the row that write landed as.
404
443
  */
405
444
  removeMessage(id: MessageId): void;
406
445
  /**
407
446
  * Find the message for an external ID this context added a message under:
408
- * the row it added, while the store holds it. For a write the framework
409
- * held, whose id this context doesn't keep, the first row the store shows
410
- * under that external ID, held rows included, a held row by its handle.
411
- * Null when this context added none under it, when the row it added is
412
- * gone, or when the store shows none for a held write, such as one the
413
- * last process held, looked up in start().
447
+ * the row it added, while the store holds it. For a write whose id this
448
+ * context doesn't keep (one kept in memory, by an operator's surgery or
449
+ * for its agent's recovery, one whose store threw where context-manager
450
+ * couldn't tell whether it landed (WriteOutcomeUnknownError), or one a
451
+ * release before #291 held, whose map it kept as ''), the first row the
452
+ * store shows under that external ID. Null when this context added none under
453
+ * it, when the row it added is gone, or when the store shows none for
454
+ * such a write, as for one an earlier release left queued, looked up in
455
+ * start() before create() imports it.
414
456
  */
415
457
  findMessageByExternalId(source: string, externalId: string): MessageId | null;
416
458
  /**
417
- * Get a message by its id or a held write's handle, marked
418
- * `heldFromResidents` when a tune-out holds it from the residents
419
- * (ModuleMessage).
459
+ * Get a stored message by its id, marked as ModuleMessage says: `held`
460
+ * when it isn't in the delivery agent's window, `heldFromResidents` when a
461
+ * tune-out or a suppress rule holds it from the residents. For one release
462
+ * it also takes the `held:` handle a release before #291 answered, and
463
+ * gives the row that write landed as.
420
464
  */
421
465
  getMessage(id: MessageId): ModuleMessage | null;
422
466
  /**
423
467
  * Query messages by filter criteria.
424
468
  * Useful for finding messages from external sources, by participant, etc.
425
- * The rows of writes the framework holds come after the stored rows, as
426
- * the newest, or before them in a reversed query, marked `held`
427
- * (ModuleMessage). Those the last process held show once create() has
428
- * restored them, after every module's start() (addMessage). A message a
429
- * tune-out holds from the residents is among the rows, marked
430
- * `heldFromResidents` (ModuleMessage).
469
+ * The rows come in store order, each marked as ModuleMessage says: `held`
470
+ * when it isn't in the window of the agent the read is for (stored and not
471
+ * yet presented to it, or undone), and `heldFromResidents` when a tune-out
472
+ * or a suppress rule holds it from the residents. Writes a release before
473
+ * #291 left queued show once create() has imported them, after every
474
+ * module's start() (addMessage).
431
475
  *
432
476
  * It reads the primary's window (the first registered agent's when none
433
477
  * is primary), or with `opts.forAgent`, the named agent's: a conversation
@@ -441,6 +485,67 @@ export interface ModuleContext {
441
485
  queryMessages(filter: MessageQuery, opts?: {
442
486
  forAgent?: string;
443
487
  }): MessageQueryResult;
488
+ /**
489
+ * Where a stored row stands with an agent's window (#291), the rows its
490
+ * requests are given, before its view's filter (context-manager's
491
+ * `windowStatusOf`): `'in'` when the window holds it, which is every row
492
+ * its record holds while the window is still the record; `'undone'` when
493
+ * it was taken out as an undone turn's, or shed after a refusal; `'out'`
494
+ * when it is stored and not in the window (not presented to the agent
495
+ * yet, or taken back to arrived); `'absent'` when the agent's record
496
+ * doesn't hold it (removed, never stored on its branch, or in a slot it
497
+ * doesn't read). For the delivery agent (the primary's, or the first
498
+ * agent's when none is primary), or with `opts.forAgent`, the named
499
+ * agent, which must be registered, as for queryMessages: a name that
500
+ * isn't throws. A tool that reads the record for an agent, such as the
501
+ * history module's, says with it, and with viewKeeps, which of the rows it
502
+ * returns the agent isn't being shown.
503
+ *
504
+ * Optional: a framework from before the presentation index, or a host's
505
+ * own context, doesn't offer it. Call as `ctx.windowStatusOf?.(...)`.
506
+ */
507
+ windowStatusOf?(id: MessageId, opts?: {
508
+ forAgent?: string;
509
+ }): WindowStatus;
510
+ /**
511
+ * Whether `observer` reads `observed`'s own rows through an observe edge
512
+ * (dendrite's relationships): one of its edges reads another slot
513
+ * `observed` owns, or names `observed` and reads the observer's own slot
514
+ * (a resident's `AgentConfig.observes`). Seeing another agent's rounds is
515
+ * a declared relationship (#291, decision 1): an observe edge, which a
516
+ * resident's configuration declares with `observes`, so a tool that reads
517
+ * the record for an agent leaves out another agent's own rows it isn't
518
+ * shown unless this is true.
519
+ * False for a name the registry doesn't know. Optional, as
520
+ * windowStatusOf is, and offered with it.
521
+ */
522
+ observes?(observer: string, observed: string): boolean;
523
+ /**
524
+ * Whether an agent's view keeps a stored row (#291): whether its requests
525
+ * carry the row, as its strategy renders it (a row it has folded, as that
526
+ * summary), while its window holds it. windowStatusOf answers before
527
+ * the view's filter, and a window written down from the record the
528
+ * residents share can hold rows the view never sends: another agent's
529
+ * stored context injection, and, for an agent whose view leaves held
530
+ * traffic out (a resident), a row a tune-out holds from the residents. A
531
+ * row the agent is shown is one windowStatusOf reads `'in'` and this
532
+ * keeps. It reads the view the agent's context was opened with
533
+ * (context-options.ts), for the delivery agent, or with `opts.forAgent`
534
+ * the named agent, which must be registered, as for windowStatusOf: a name
535
+ * that isn't throws. Optional, as windowStatusOf is, and offered with it.
536
+ */
537
+ viewKeeps?(row: StoredMessage, opts?: {
538
+ forAgent?: string;
539
+ }): boolean;
540
+ /**
541
+ * The live agent whose context `contextManager` is (the one its
542
+ * `getContextManager()` returns), or undefined when it is no live
543
+ * agent's (#291). A module a host binds to an agent's context, as it binds
544
+ * the history module, reads that context's record and summaries; this
545
+ * says whose they are, so another agent's call can be told from that
546
+ * agent's own. Optional, as windowStatusOf is, and offered with it.
547
+ */
548
+ agentNameOf?(contextManager: ContextManager): string | undefined;
444
549
  /**
445
550
  * Get info about all agents.
446
551
  */
@@ -586,17 +691,23 @@ export type AgentStatus = 'idle' | 'inferring' | 'streaming' | 'waiting_for_tool
586
691
  */
587
692
  export interface EventResponse {
588
693
  /**
589
- * Messages to add to the conversation.
694
+ * Messages to add to the conversation. Each row says who it is for in
695
+ * `metadata.audience` (#291): the agents a `requestInference` list names
696
+ * that are registered and read the slot the row lands in (the agent the
697
+ * row is delivered to, when none of them is registered); for `true`, no
698
+ * request, or a list whose registered agents don't read that slot (an
699
+ * isolated job, a conversation fork), as for any write that names no
700
+ * agent, the agents that take untargeted inbound in the slot it lands in
701
+ * (every resident on a residents' host). A message that carries a
702
+ * tune-out's hold is for nobody.
590
703
  */
591
704
  addMessages?: NewMessage[];
592
705
  /**
593
- * Messages to edit, each by its id or a held write's handle
594
- * (ModuleContext.editMessage).
706
+ * Messages to edit, each by its stored id (ModuleContext.editMessage).
595
707
  */
596
708
  editMessages?: MessageEdit[];
597
709
  /**
598
- * Messages to remove, each by its id or a held write's handle
599
- * (ModuleContext.removeMessage).
710
+ * Messages to remove, each by its stored id (ModuleContext.removeMessage).
600
711
  */
601
712
  removeMessages?: MessageId[];
602
713
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/types/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kHAAkH;IAClH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,iCAAiC;IACjC,WAAW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