@animalabs/agent-framework 0.28.0 → 0.29.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 (240) hide show
  1. package/README.md +88 -25
  2. package/dist/src/agent.d.ts.map +1 -1
  3. package/dist/src/agent.js +4 -1
  4. package/dist/src/agent.js.map +1 -1
  5. package/dist/src/api/mcp-server-core.d.ts.map +1 -1
  6. package/dist/src/api/mcp-server-core.js +3 -12
  7. package/dist/src/api/mcp-server-core.js.map +1 -1
  8. package/dist/src/api/server.d.ts.map +1 -1
  9. package/dist/src/api/server.js +7 -3
  10. package/dist/src/api/server.js.map +1 -1
  11. package/dist/src/auto-continue.d.ts +2 -0
  12. package/dist/src/auto-continue.d.ts.map +1 -1
  13. package/dist/src/auto-continue.js +5 -2
  14. package/dist/src/auto-continue.js.map +1 -1
  15. package/dist/src/code-execution/isolate/runner.d.ts +7 -5
  16. package/dist/src/code-execution/isolate/runner.d.ts.map +1 -1
  17. package/dist/src/code-execution/isolate/runner.js +7 -5
  18. package/dist/src/code-execution/isolate/runner.js.map +1 -1
  19. package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -1
  20. package/dist/src/code-execution/isolate/scripts.js +3 -2
  21. package/dist/src/code-execution/isolate/scripts.js.map +1 -1
  22. package/dist/src/framework.d.ts +164 -36
  23. package/dist/src/framework.d.ts.map +1 -1
  24. package/dist/src/framework.js +1120 -479
  25. package/dist/src/framework.js.map +1 -1
  26. package/dist/src/gate/event-gate.d.ts +34 -10
  27. package/dist/src/gate/event-gate.d.ts.map +1 -1
  28. package/dist/src/gate/event-gate.js +118 -48
  29. package/dist/src/gate/event-gate.js.map +1 -1
  30. package/dist/src/gate/index.d.ts +1 -1
  31. package/dist/src/gate/index.d.ts.map +1 -1
  32. package/dist/src/gate/index.js +1 -1
  33. package/dist/src/gate/index.js.map +1 -1
  34. package/dist/src/gate/types.d.ts +12 -2
  35. package/dist/src/gate/types.d.ts.map +1 -1
  36. package/dist/src/heartbeat/heartbeat.d.ts +18 -0
  37. package/dist/src/heartbeat/heartbeat.d.ts.map +1 -1
  38. package/dist/src/heartbeat/heartbeat.js +34 -8
  39. package/dist/src/heartbeat/heartbeat.js.map +1 -1
  40. package/dist/src/held-writes.d.ts +3 -3
  41. package/dist/src/held-writes.js +3 -3
  42. package/dist/src/host-presentation.d.ts +170 -0
  43. package/dist/src/host-presentation.d.ts.map +1 -0
  44. package/dist/src/host-presentation.js +561 -0
  45. package/dist/src/host-presentation.js.map +1 -0
  46. package/dist/src/index.d.ts +2 -2
  47. package/dist/src/index.d.ts.map +1 -1
  48. package/dist/src/index.js +1 -1
  49. package/dist/src/index.js.map +1 -1
  50. package/dist/src/line-reader.d.ts +4 -0
  51. package/dist/src/line-reader.d.ts.map +1 -0
  52. package/dist/src/line-reader.js +59 -0
  53. package/dist/src/line-reader.js.map +1 -0
  54. package/dist/src/mcpl/channel-registry.d.ts +34 -6
  55. package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
  56. package/dist/src/mcpl/channel-registry.js +131 -53
  57. package/dist/src/mcpl/channel-registry.js.map +1 -1
  58. package/dist/src/mcpl/conversation-router.d.ts.map +1 -1
  59. package/dist/src/mcpl/conversation-router.js +2 -1
  60. package/dist/src/mcpl/conversation-router.js.map +1 -1
  61. package/dist/src/mcpl/convert-block.d.ts +1 -0
  62. package/dist/src/mcpl/convert-block.d.ts.map +1 -1
  63. package/dist/src/mcpl/convert-block.js +16 -4
  64. package/dist/src/mcpl/convert-block.js.map +1 -1
  65. package/dist/src/mcpl/hook-orchestrator.d.ts.map +1 -1
  66. package/dist/src/mcpl/hook-orchestrator.js +4 -3
  67. package/dist/src/mcpl/hook-orchestrator.js.map +1 -1
  68. package/dist/src/mcpl/inbound-source.d.ts +3 -1
  69. package/dist/src/mcpl/inbound-source.d.ts.map +1 -1
  70. package/dist/src/mcpl/inbound-source.js +3 -1
  71. package/dist/src/mcpl/inbound-source.js.map +1 -1
  72. package/dist/src/mcpl/modern-connection.d.ts.map +1 -1
  73. package/dist/src/mcpl/modern-connection.js +11 -7
  74. package/dist/src/mcpl/modern-connection.js.map +1 -1
  75. package/dist/src/mcpl/protocol-family.d.ts +3 -2
  76. package/dist/src/mcpl/protocol-family.d.ts.map +1 -1
  77. package/dist/src/mcpl/protocol-family.js +25 -3
  78. package/dist/src/mcpl/protocol-family.js.map +1 -1
  79. package/dist/src/mcpl/push-handler.js +2 -2
  80. package/dist/src/mcpl/push-handler.js.map +1 -1
  81. package/dist/src/mcpl/references.d.ts +12 -40
  82. package/dist/src/mcpl/references.d.ts.map +1 -1
  83. package/dist/src/mcpl/references.js +29 -23
  84. package/dist/src/mcpl/references.js.map +1 -1
  85. package/dist/src/mcpl/server-connection.d.ts.map +1 -1
  86. package/dist/src/mcpl/server-connection.js +20 -20
  87. package/dist/src/mcpl/server-connection.js.map +1 -1
  88. package/dist/src/mcpl/skip-reply-wake.d.ts +25 -0
  89. package/dist/src/mcpl/skip-reply-wake.d.ts.map +1 -1
  90. package/dist/src/mcpl/skip-reply-wake.js +25 -0
  91. package/dist/src/mcpl/skip-reply-wake.js.map +1 -1
  92. package/dist/src/mcpl/tool-presence.d.ts.map +1 -1
  93. package/dist/src/mcpl/tool-presence.js +18 -17
  94. package/dist/src/mcpl/tool-presence.js.map +1 -1
  95. package/dist/src/mcpl/tool-signature.d.ts.map +1 -1
  96. package/dist/src/mcpl/tool-signature.js +17 -16
  97. package/dist/src/mcpl/tool-signature.js.map +1 -1
  98. package/dist/src/mcpl/toolset-host.d.ts +8 -26
  99. package/dist/src/mcpl/toolset-host.d.ts.map +1 -1
  100. package/dist/src/mcpl/toolset-host.js +16 -6
  101. package/dist/src/mcpl/toolset-host.js.map +1 -1
  102. package/dist/src/mcpl/toolsets-module.d.ts +14 -25
  103. package/dist/src/mcpl/toolsets-module.d.ts.map +1 -1
  104. package/dist/src/mcpl/toolsets-module.js +180 -50
  105. package/dist/src/mcpl/toolsets-module.js.map +1 -1
  106. package/dist/src/mcpl/transport.d.ts +1 -1
  107. package/dist/src/mcpl/transport.d.ts.map +1 -1
  108. package/dist/src/mcpl/transport.js +16 -16
  109. package/dist/src/mcpl/transport.js.map +1 -1
  110. package/dist/src/mcpl/types.d.ts +28 -12
  111. package/dist/src/mcpl/types.d.ts.map +1 -1
  112. package/dist/src/mcpl/types.js.map +1 -1
  113. package/dist/src/module-registry.d.ts +6 -7
  114. package/dist/src/module-registry.d.ts.map +1 -1
  115. package/dist/src/module-registry.js +6 -7
  116. package/dist/src/module-registry.js.map +1 -1
  117. package/dist/src/modules/api/index.d.ts.map +1 -1
  118. package/dist/src/modules/api/index.js +4 -2
  119. package/dist/src/modules/api/index.js.map +1 -1
  120. package/dist/src/modules/discord/index.d.ts.map +1 -1
  121. package/dist/src/modules/discord/index.js +33 -25
  122. package/dist/src/modules/discord/index.js.map +1 -1
  123. package/dist/src/modules/history/index.js +8 -6
  124. package/dist/src/modules/history/index.js.map +1 -1
  125. package/dist/src/modules/sender-name.d.ts +7 -0
  126. package/dist/src/modules/sender-name.d.ts.map +1 -0
  127. package/dist/src/modules/sender-name.js +10 -0
  128. package/dist/src/modules/sender-name.js.map +1 -0
  129. package/dist/src/modules/workspace/answers.d.ts +5 -1
  130. package/dist/src/modules/workspace/answers.d.ts.map +1 -1
  131. package/dist/src/modules/workspace/answers.js +16 -1
  132. package/dist/src/modules/workspace/answers.js.map +1 -1
  133. package/dist/src/modules/workspace/direct-write.d.ts.map +1 -1
  134. package/dist/src/modules/workspace/direct-write.js +6 -4
  135. package/dist/src/modules/workspace/direct-write.js.map +1 -1
  136. package/dist/src/modules/workspace/effects.d.ts +4 -2
  137. package/dist/src/modules/workspace/effects.d.ts.map +1 -1
  138. package/dist/src/modules/workspace/effects.js +50 -40
  139. package/dist/src/modules/workspace/effects.js.map +1 -1
  140. package/dist/src/modules/workspace/index.d.ts +1 -0
  141. package/dist/src/modules/workspace/index.d.ts.map +1 -1
  142. package/dist/src/modules/workspace/index.js +66 -36
  143. package/dist/src/modules/workspace/index.js.map +1 -1
  144. package/dist/src/modules/workspace/observe.d.ts +51 -20
  145. package/dist/src/modules/workspace/observe.d.ts.map +1 -1
  146. package/dist/src/modules/workspace/observe.js +120 -82
  147. package/dist/src/modules/workspace/observe.js.map +1 -1
  148. package/dist/src/modules/workspace/reconcile.d.ts +7 -1
  149. package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
  150. package/dist/src/modules/workspace/reconcile.js +133 -37
  151. package/dist/src/modules/workspace/reconcile.js.map +1 -1
  152. package/dist/src/notice-tags.d.ts +79 -0
  153. package/dist/src/notice-tags.d.ts.map +1 -0
  154. package/dist/src/notice-tags.js +83 -0
  155. package/dist/src/notice-tags.js.map +1 -0
  156. package/dist/src/reasoning-loss-notice.d.ts.map +1 -1
  157. package/dist/src/reasoning-loss-notice.js +5 -3
  158. package/dist/src/reasoning-loss-notice.js.map +1 -1
  159. package/dist/src/silent-heartbeat.d.ts +1 -53
  160. package/dist/src/silent-heartbeat.d.ts.map +1 -1
  161. package/dist/src/silent-heartbeat.js +56 -3
  162. package/dist/src/silent-heartbeat.js.map +1 -1
  163. package/dist/src/supplied-text.d.ts +35 -0
  164. package/dist/src/supplied-text.d.ts.map +1 -0
  165. package/dist/src/supplied-text.js +141 -0
  166. package/dist/src/supplied-text.js.map +1 -0
  167. package/dist/src/tool-args.d.ts.map +1 -1
  168. package/dist/src/tool-args.js +9 -8
  169. package/dist/src/tool-args.js.map +1 -1
  170. package/dist/src/tool-image-ledger.d.ts.map +1 -1
  171. package/dist/src/tool-image-ledger.js +2 -1
  172. package/dist/src/tool-image-ledger.js.map +1 -1
  173. package/dist/src/tool-presentation.d.ts.map +1 -1
  174. package/dist/src/tool-presentation.js +5 -4
  175. package/dist/src/tool-presentation.js.map +1 -1
  176. package/dist/src/tune-out/coordinator.d.ts +3 -2
  177. package/dist/src/tune-out/coordinator.d.ts.map +1 -1
  178. package/dist/src/tune-out/coordinator.js +24 -26
  179. package/dist/src/tune-out/coordinator.js.map +1 -1
  180. package/dist/src/types/agent.d.ts +23 -9
  181. package/dist/src/types/agent.d.ts.map +1 -1
  182. package/dist/src/types/framework.d.ts +43 -0
  183. package/dist/src/types/framework.d.ts.map +1 -1
  184. package/dist/src/types/module.d.ts +22 -11
  185. package/dist/src/types/module.d.ts.map +1 -1
  186. package/package.json +2 -2
  187. package/src/agent.ts +4 -1
  188. package/src/api/mcp-server-core.ts +3 -14
  189. package/src/api/server.ts +7 -3
  190. package/src/auto-continue.ts +8 -2
  191. package/src/code-execution/isolate/runner.ts +7 -5
  192. package/src/code-execution/isolate/scripts.ts +3 -2
  193. package/src/framework.ts +1132 -492
  194. package/src/gate/event-gate.ts +128 -47
  195. package/src/gate/index.ts +1 -1
  196. package/src/gate/types.ts +12 -2
  197. package/src/heartbeat/heartbeat.ts +48 -9
  198. package/src/held-writes.ts +3 -3
  199. package/src/host-presentation.ts +605 -0
  200. package/src/index.ts +2 -2
  201. package/src/line-reader.ts +58 -0
  202. package/src/mcpl/channel-registry.ts +137 -52
  203. package/src/mcpl/conversation-router.ts +2 -1
  204. package/src/mcpl/convert-block.ts +17 -4
  205. package/src/mcpl/hook-orchestrator.ts +4 -3
  206. package/src/mcpl/inbound-source.ts +3 -1
  207. package/src/mcpl/modern-connection.ts +11 -7
  208. package/src/mcpl/protocol-family.ts +24 -3
  209. package/src/mcpl/push-handler.ts +2 -2
  210. package/src/mcpl/references.ts +31 -23
  211. package/src/mcpl/server-connection.ts +20 -18
  212. package/src/mcpl/skip-reply-wake.ts +35 -0
  213. package/src/mcpl/tool-presence.ts +18 -17
  214. package/src/mcpl/tool-signature.ts +17 -16
  215. package/src/mcpl/toolset-host.ts +18 -6
  216. package/src/mcpl/toolsets-module.ts +142 -50
  217. package/src/mcpl/transport.ts +18 -14
  218. package/src/mcpl/types.ts +29 -12
  219. package/src/module-registry.ts +6 -7
  220. package/src/modules/api/index.ts +4 -2
  221. package/src/modules/discord/index.ts +37 -25
  222. package/src/modules/history/index.ts +8 -6
  223. package/src/modules/sender-name.ts +9 -0
  224. package/src/modules/workspace/answers.ts +20 -2
  225. package/src/modules/workspace/direct-write.ts +4 -3
  226. package/src/modules/workspace/effects.ts +50 -40
  227. package/src/modules/workspace/index.ts +58 -34
  228. package/src/modules/workspace/observe.ts +139 -88
  229. package/src/modules/workspace/reconcile.ts +159 -36
  230. package/src/notice-tags.ts +84 -0
  231. package/src/reasoning-loss-notice.ts +5 -3
  232. package/src/silent-heartbeat.ts +4 -3
  233. package/src/supplied-text.ts +154 -0
  234. package/src/tool-args.ts +9 -8
  235. package/src/tool-image-ledger.ts +2 -1
  236. package/src/tool-presentation.ts +5 -4
  237. package/src/tune-out/coordinator.ts +25 -27
  238. package/src/types/agent.ts +23 -9
  239. package/src/types/framework.ts +44 -0
  240. package/src/types/module.ts +23 -11
@@ -1 +1 @@
1
- {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../../../../src/code-execution/isolate/scripts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAiB,SAAS,EAAwE,MAAM,aAAa,CAAC;AAI7H,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA4GtC,4EAA4E;AAC5E,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AAED,yGAAyG;AACzG,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC;AACxH,CAAC;AAED,MAAM,OAAO,YAAY;IAeJ,IAAI;IACJ,MAAM;IACN,QAAQ;IAhBV,OAAO,GAAG,IAAI,GAAG,EAAkB,C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CAAiC,OAAO,+BAA+B,CAAC,OAAO,GAAG,MAAM,WAAW,EAAE,CAAC;AAChJ,CAAC"}
@@ -9,6 +9,13 @@ import { Agent, type RenderStats } from './agent.js';
9
9
  import { type ToolClass, type ToolClassSource } from './mcpl/tool-classes.js';
10
10
  import { ChannelRegistry } from './mcpl/channel-registry.js';
11
11
  import { ConversationRouter } from './mcpl/conversation-router.js';
12
+ /**
13
+ * The framework's own tools that belong to the host's built-in toolset
14
+ * ("settings", host-presentation.ts) rather than the tool list: the ones an
15
+ * agent reaches for rarely. Modules place theirs with Module.toolPlacement,
16
+ * and every module utility is there too.
17
+ */
18
+ export declare const BUILTIN_TOOLSET_TOOLS: ReadonlySet<string>;
12
19
  import type { SessionUsageSnapshot } from './usage/types.js';
13
20
  import { type DiscordAwarenessView, type DiscordAwarenessCancelReceipt, type DiscordAwarenessMarks, type DiscordAwarenessRetractReceipt } from './recovery/discord-awareness-outbox.js';
14
21
  import { type SurgeryMarkerReceipt, type SurgeryMarksPreview, type OperatorLogEntry, type OperatorLogInput, type OperatorRequester } from './operator-log.js';
@@ -525,8 +532,6 @@ export declare class AgentFramework {
525
532
  * by the object, not the run's record (ephemeralRuns), which its cleanup
526
533
  * drops before a cancelled stream may count its last usage. */
527
534
  private ephemeralAgents;
528
- /** Warn only once per Agent instance after utilities are registered. */
529
- private emptyUtilityPermissionWarnings;
530
535
  /** Physical ephemeral frames deliberately disposed by their run watchdog/caller.
531
536
  * The name is single-generation, so these frames still own their terminal
532
537
  * typing/outgoing close even after runEphemeralToCompletion deregisters them. */
@@ -535,6 +540,10 @@ export declare class AgentFramework {
535
540
  * completes (inference:completed), not when a call answers mid-turn.
536
541
  * Drives hard-down escalation — see noteInferenceExhausted. */
537
542
  private consecutiveInferenceFailures;
543
+ private turnRearmMs;
544
+ private turnRearms;
545
+ private exhaustingRearms;
546
+ private statedWaitRuns;
538
547
  /** N consecutive failed inferences ⇒ the agent is treated as hard-down and
539
548
  * escalated loudly to stderr. */
540
549
  private readonly inferenceFailureEscalationThreshold;
@@ -758,6 +767,7 @@ export declare class AgentFramework {
758
767
  private readonly releasedByCleanup;
759
768
  private readonly openManagers;
760
769
  private readonly openManagerRefs;
770
+ private readonly storeSees;
761
771
  private readonly collectedManagers;
762
772
  /** The coalescing commit in flight, if any (see commitCoalescingDurable). */
763
773
  private coalescingCommit;
@@ -882,10 +892,15 @@ export declare class AgentFramework {
882
892
  /** Host capabilities advertised during the MCP handshake — stored so servers
883
893
  * can be connected at runtime (connectMcplServer) after initialization. */
884
894
  private mcplHostCapabilities;
885
- /** MCPL RFC-014: every toolHints server's tool presence, for the
895
+ /** MCPL RFC-014: every hinted server's tool presence, for the
886
896
  * `toolsets` module's meta-tools and reminders. Made when the first
887
- * server configured with `toolHints: true` is set up; null until then. */
897
+ * server with tool hints (any not configured `toolHints: false`) is set
898
+ * up; null until then. */
888
899
  private toolsetHub;
900
+ /** The host's own toolsets: the built-in "settings" and MCPL server tabs. */
901
+ private hostPresentation;
902
+ /** MCPL servers kept disconnected as closed tabs, with the configuration an open connects them with. */
903
+ private closedTabConfigMap?;
889
904
  /** Inference routing policy from FrameworkConfig — stored so the MCPL
890
905
  * subsystem can be lazily initialized by connectMcplServer when the
891
906
  * framework started with zero configured servers. */
@@ -1118,6 +1133,27 @@ export declare class AgentFramework {
1118
1133
  * them beside the gate's own timers, so it can weigh what waiting costs.
1119
1134
  */
1120
1135
  private upcomingWakesFor;
1136
+ /**
1137
+ * The heartbeat's ticks and reminders for `agentName`, soonest first, which
1138
+ * the agent's rules decide as they decide a heartbeat push: one the rules
1139
+ * would hold back is only a "maybe" (`certain` false). Each is probed as
1140
+ * the event its delivery is judged by (deliverHeartbeat): a silent tick as
1141
+ * silent, with the text it will bring, so a rule on the content or the
1142
+ * silent flag decides the probe as it will decide the wake. None for an
1143
+ * agent the heartbeat doesn't wake. `whose` words them for the judge ("its
1144
+ * heartbeat") or for the agent ("your heartbeat").
1145
+ */
1146
+ private heartbeatWakesFor;
1147
+ /**
1148
+ * The heartbeat's wake due before a self-wake due at `selfWakeAt` (ms), for
1149
+ * the skip_reply that armed it: the soonest of its ticks and reminders that
1150
+ * the agent's rules, as they stand, let wake it. The confirmation says when
1151
+ * it's due, not that it will wake the agent (skipReplyNote), so a probe
1152
+ * that can't foresee the gate at the wake's time (a gate.js, a rate limit's
1153
+ * tokens then) leaves it true. A failure here costs only that line: the
1154
+ * self-wake is armed already, and the confirmation goes out without it.
1155
+ */
1156
+ private heartbeatWakeBefore;
1121
1157
  /** The agents the heartbeat wakes: the residents, not conversation forks,
1122
1158
  * ephemeral runs or the subconscious, which keep windows of their own. */
1123
1159
  private heartbeatTargets;
@@ -1209,6 +1245,7 @@ export declare class AgentFramework {
1209
1245
  * inference on it. True = extended in place (held requests stay held). */
1210
1246
  private extendHostProviderHold;
1211
1247
  private holdProviderAcceleration;
1248
+ private rearmExhaustedTurn;
1212
1249
  /**
1213
1250
  * A provider's stated wait on a turn that doesn't own provider admission:
1214
1251
  * a conversation agent's or an ephemeral run's. Left to the error policy,
@@ -1258,6 +1295,9 @@ export declare class AgentFramework {
1258
1295
  * ops alert.
1259
1296
  */
1260
1297
  private recordProviderWait;
1298
+ private noteStatedWaitRun;
1299
+ private alertStatedWaitRun;
1300
+ private endStatedWaitRun;
1261
1301
  /**
1262
1302
  * Hold this agent's primary turns for a provider wait on its model. The
1263
1303
  * requests are kept and released together, into one fresh compile, when
@@ -1612,7 +1652,6 @@ export declare class AgentFramework {
1612
1652
  private buildThinkTool;
1613
1653
  /** agent_settings tool definition with module extension fields merged in. */
1614
1654
  private buildAgentSettingsTool;
1615
- private warnEmptyUtilityPermissions;
1616
1655
  private getToolsForAgent;
1617
1656
  /** Available is independent of presentation visibility; execution callers keep this surface. */
1618
1657
  private availableToolsForPresentation;
@@ -1744,8 +1783,10 @@ export declare class AgentFramework {
1744
1783
  * CURRENT settings — maintenance may have moved the folded floor and the
1745
1784
  * branch generation, so verdicts are computed at resume time, never reused.
1746
1785
  * Throws ResumeBlockedError (with all failing verdicts) unless `force`.
1747
- * Unavailable previews warn and pass — refusing to resume because the
1748
- * strategy cannot preview would hold hosts hostage to a diagnostic.
1786
+ * Unavailable previews pass, with a warning naming the reason unless it is
1787
+ * `no_preview_support`, a strategy with nothing to preview — refusing to
1788
+ * resume because the strategy cannot preview would hold hosts hostage to a
1789
+ * diagnostic.
1749
1790
  */
1750
1791
  resume(opts?: {
1751
1792
  force?: boolean;
@@ -1993,7 +2034,13 @@ export declare class AgentFramework {
1993
2034
  * see `AutobiographicalStrategy.previewContext` and
1994
2035
  * `Agent.compileWithInjections`.
1995
2036
  *
1996
- * Returns null when the agent's strategy has no fold plan (non-adaptive).
2037
+ * Returns null when the agent's strategy has nothing to preview: one without
2038
+ * `previewContext`, or a non-adaptive `AutobiographicalStrategy` whose select
2039
+ * fits the budget, built from the framework's own copy of context-manager.
2040
+ * Built from another copy, such a strategy throws its `previewContext
2041
+ * requires adaptiveResolution` error here instead, since the manager
2042
+ * recognises only its own copy's `NoFoldPlanToPreviewError`. Over the
2043
+ * budget, a non-adaptive strategy's preview is an infeasible one.
1997
2044
  */
1998
2045
  previewContextSettings(agentName: string, budgetTokens: number, overrides?: Record<string, unknown>, opts?: {
1999
2046
  render?: boolean;
@@ -2014,9 +2061,9 @@ export declare class AgentFramework {
2014
2061
  *
2015
2062
  * Never throws for preview-layer reasons: strategy without previewContext,
2016
2063
  * preview overlap, stale branch generation, the hierarchical (non-
2017
- * adaptive) path, and a context manager that refuses its queries (its
2018
- * strategy's initialization pending or failed) all come back as
2019
- * `{available: false, reason}`. Unknown agent still throws, matching the
2064
+ * adaptive) path within its budget, and a context manager that refuses its
2065
+ * queries (its strategy's initialization pending or failed) all come back
2066
+ * as `{available: false, reason}`. Unknown agent still throws, matching the
2020
2067
  * sibling accessors, and so does a patch whose values the agent refuses,
2021
2068
  * whatever its context manager's state. Whether the strategy takes live
2022
2069
  * tail and pace settings is the manager's to say, so while it refuses, a
@@ -2965,11 +3012,6 @@ export declare class AgentFramework {
2965
3012
  * explicit-prose agent's natural plain reply bounced with nowhere to go
2966
3013
  * (Rhys's first portal mention: a 2,320-char reply stranded).
2967
3014
  *
2968
- * Wording: option 1 teaches the `>>` destination prefix, which delivers for
2969
- * BOTH legacy (host-inferred) and explicit prose-routing agents. The
2970
- * previous "simply write your reply as normal text" was a false promise
2971
- * under explicit routing (the metadata flags it set had no consumers).
2972
- *
2973
3015
  * Human-readable names wherever the surface provided them — a mind reading
2974
3016
  * this should see WHO addressed it WHERE, not a wall of snowflake ids. Raw
2975
3017
  * ids remain only inside the tool-argument instructions, where they are the
@@ -3333,6 +3375,21 @@ export declare class AgentFramework {
3333
3375
  /** Why a draft can't be resent now (dismissed, or possibly already posted
3334
3376
  * without the resident's confirmation), or undefined when it can. */
3335
3377
  private resendRefusal;
3378
+ /** Why a heartbeat's turn holds its plain speech, in a held-draft notice ("because …"). */
3379
+ private static readonly HEARTBEAT_HOLD_BECAUSE;
3380
+ /**
3381
+ * Locus mode's delivery of plain speech to the turn's frozen locus. A
3382
+ * heartbeat's turn with no locus of its own (TurnRouting.heartbeat) holds
3383
+ * the words as a draft instead of failing the delivery: nobody was waiting
3384
+ * for them, and the agent may send them where it chooses.
3385
+ */
3386
+ private routeLocusSpeech;
3387
+ /** The mark a framework wake takes from a heartbeat's turn with no locus
3388
+ * of its own (InferenceRequest.heartbeatTurn), so the turn it opens is a
3389
+ * heartbeat's too; nothing for any other turn. */
3390
+ private heartbeatTurnMark;
3391
+ /** Hold a heartbeat turn's plain speech as drafts ('no-destination'), named by `round`'s notice. */
3392
+ private holdHeartbeatProse;
3336
3393
  /** Record a successful plain-prose delivery for this turn's receipt. */
3337
3394
  private recordProseDelivery;
3338
3395
  /**
@@ -3362,6 +3419,13 @@ export declare class AgentFramework {
3362
3419
  * mid-turn. No-op otherwise.
3363
3420
  */
3364
3421
  private appendClosedChannelNoteAlone;
3422
+ /**
3423
+ * Tell a heartbeat's turn, before it compiles, that its plain speech has
3424
+ * no destination (TurnRouting.heartbeat): the last `[routing]` notice may
3425
+ * name a channel, and this turn's words won't go there. It leaves the
3426
+ * announced baseline alone (announceLocusIfChanged).
3427
+ */
3428
+ private noticeHeartbeatTurn;
3365
3429
  /**
3366
3430
  * Announce-on-change locus notice (turn-frozen routing). Appends a durable
3367
3431
  * `[routing]` window message when the turn's effective outbound locus
@@ -3475,12 +3539,13 @@ export declare class AgentFramework {
3475
3539
  * more rows than that have come since the last clock; a window with no
3476
3540
  * clock row is read whole once, and then takes one (planClock). */
3477
3541
  private lastClockOf;
3542
+ private agentSees;
3478
3543
  /**
3479
3544
  * Weigh a message that no tool boundary of the agent's open logical turn
3480
3545
  * will weigh: one that would re-pin the locus becomes one of the turn's
3481
- * arrivals (TurnRouting.arrivals). A message tune-out diverted
3482
- * (metadata.tuneOut) never enters a resident's compiled view, so the agent
3483
- * won't see it, and it moves nothing.
3546
+ * arrivals (TurnRouting.arrivals). A message the agent's own view leaves
3547
+ * out, such as one a tune-out diverted (metadata.tuneOut), never enters
3548
+ * its compiled view, so the agent won't see it, and it moves nothing.
3484
3549
  */
3485
3550
  private noteArrival;
3486
3551
  /**
@@ -3975,8 +4040,7 @@ export declare class AgentFramework {
3975
4040
  * exists only through the private closure handed to ModuleRegistry
3976
4041
  * (ctx.callTool → executeToolCallFrom with {kind:'module'}), which is exempt
3977
4042
  * from agent allowlists. Registered agents' allowedTools is enforced at
3978
- * dispatch, including namespaced utility names; utils only grants the
3979
- * list/describe/run slot. Genuinely unidentified public callers (including
4043
+ * dispatch, including namespaced utility names. Genuinely unidentified public callers (including
3980
4044
  * unknown legacy names) remain unrestricted. Framework-created identities
3981
4045
  * are refused while unregistered, even if their configured list allows it.
3982
4046
  */
@@ -4043,6 +4107,10 @@ export declare class AgentFramework {
4043
4107
  * tool it makes, under that tool's model-facing name and with its
4044
4108
  * arguments, its id kept; or the reason it can't be sent. */
4045
4109
  private resolveToolsetAct;
4110
+ /** A toolsets--act call a host toolset resolved (HostPresentation.resolveAct):
4111
+ * its refusal answered, or the tool's own call dispatched in its place,
4112
+ * with the act's id, so its result is the act's. */
4113
+ private dispatchHostAct;
4046
4114
  /**
4047
4115
  * RFC-014 §8.2: a toolsets--act call from the agent (the model's, or a
4048
4116
  * script's) goes down the path a direct call of the server's tool takes
@@ -4488,14 +4556,16 @@ export declare class AgentFramework {
4488
4556
  */
4489
4557
  private placeWakeLines;
4490
4558
  /** Whether `entry`'s own stored entry is the newest in `agent`'s window,
4491
- * clock rows and stored context injections after it aside: a channel
4492
- * message by its server, channel and message id, a push event by its
4493
- * server and event id, and never one a tune-out holds. Past
4559
+ * clock rows, stored context injections and rows the agent's own view
4560
+ * leaves out after it aside: a channel message by its server, channel and
4561
+ * message id, a push event by its server and event id, and never one the
4562
+ * agent's view leaves out, such as one a tune-out holds. Past
4494
4563
  * NEWEST_SCAN_ROWS such rows, it answers no. */
4495
4564
  private isNewestIn;
4496
4565
  /** Where addMessage delivers: the named agent, else the primary, else the
4497
4566
  * first registered agent. Undefined when there is no such agent. */
4498
4567
  private deliveryAgent;
4568
+ private noteSpokenTo;
4499
4569
  /** The notes addMessage takes for a message it stored: an arrival for the
4500
4570
  * agent when none of its turns is alive or the message was assembled for
4501
4571
  * the start now beginning (no tool boundary will weigh it), and one for
@@ -5189,6 +5259,7 @@ export declare class AgentFramework {
5189
5259
  /** The restarts' claims (mcpRestartClaims), created on first use, as the
5190
5260
  * modern connections are. */
5191
5261
  private restartClaims;
5262
+ private closedTabConfigs;
5192
5263
  private legacyConnectAborts;
5193
5264
  /**
5194
5265
  * Hold a server id for one connect or disconnect, until `release()`.
@@ -5370,17 +5441,78 @@ export declare class AgentFramework {
5370
5441
  * logged here rather than replacing the failure the connect reports.
5371
5442
  */
5372
5443
  private closeFailedRuntimeConnect;
5444
+ /** RFC-014: who held the name `toolsets` at startup (a module given to
5445
+ * create(); a server's toolPrefix of it is refused), so a server that
5446
+ * leaves toolHints out has none for the life of this framework; null when
5447
+ * the name was free. */
5448
+ private toolsetsNameHeldAtStart;
5449
+ /** At startup: note who holds the name the meta-tools need, and say which
5450
+ * servers that leaves without hints. */
5451
+ private reserveToolsetsName;
5452
+ /**
5453
+ * RFC-014: whether a server has tool hints. Only an MCPL (legacy-family)
5454
+ * server can: a modern MCP server never has them. `true` and `false` are
5455
+ * as configured. Left out (or null) they're on, wherever the name
5456
+ * `toolsets` the meta-tools need is free: no other module holds it and no
5457
+ * server's prefix is it, now or at startup. So a configuration that loaded
5458
+ * when hints were opt-in still loads. A name held at startup stays held
5459
+ * for the framework's life.
5460
+ */
5461
+ private hintsFor;
5373
5462
  /**
5374
5463
  * The host capabilities offered to one server: the host's own, plus
5375
- * RFC-014's `toolHints` where its configuration asks for them. Without it,
5376
- * the very object every server is offered.
5464
+ * RFC-014's `toolHints` unless its configuration turns them off
5465
+ * (`toolHints: false`). With them off, the very object every server is
5466
+ * offered.
5377
5467
  */
5378
5468
  private mcplHostCapabilitiesFor;
5379
5469
  /** RFC-014: every toolHints server's presence, made on first use. */
5380
5470
  private toolsets;
5381
- /** RFC-014: the `toolsets` module (toolsets--open, --act, --look,
5382
- * --close), registered once, by the first server configured with
5383
- * toolHints. Its tools don't change after that. */
5471
+ /**
5472
+ * The host's own toolsets (host-presentation.ts): the built-in "settings"
5473
+ * toolset and each MCPL server's tab. State is kept beside the store, in
5474
+ * `config/toolsets.json`; with no store path, in memory only.
5475
+ */
5476
+ private makeHostPresentation;
5477
+ /** Whether a name is a module utility (and not a tool of its module, which takes the name). */
5478
+ private isModuleUtility;
5479
+ /** Whether an agent has the host's own toolsets: the meta-tools registered, and
5480
+ * usable by it (the subconscious keeps its own small surface). */
5481
+ /**
5482
+ * What a call of the removed `utils` is answered: where utilities went, as
5483
+ * this agent can reach them. One that can't use the built-in toolset is
5484
+ * told to call a utility by its own name and which ones it may call.
5485
+ */
5486
+ private utilsRemoved;
5487
+ private hostToolsetsFor;
5488
+ /**
5489
+ * Whether a host tool belongs to the built-in toolset: the framework's own
5490
+ * rarely-used ones (BUILTIN_TOOLSET_TOOLS), a module's that it places there
5491
+ * (Module.toolPlacement), and every module utility.
5492
+ */
5493
+ private placedInBuiltin;
5494
+ /**
5495
+ * The tool list an agent's requests carry, from the tools it may call: its
5496
+ * host presentation applied (the built-in toolset's tools, the servers it
5497
+ * has as tabs and its hidden tools left out; a utility never in it), as
5498
+ * every request of a registered agent has it (with its own tool
5499
+ * presentation, hidden tools and descriptions, applied first). For a stream that isn't
5500
+ * registered yet, such as a fork whose orientation is written before its
5501
+ * run starts, the host says whether it will be able to call
5502
+ * `toolsets--open` and `toolsets--act` (`canUseMeta`); left out, the agent
5503
+ * registered under that name is asked. Presentation it chose itself (open
5504
+ * toolsets, tabs) is read under that name, so a new name starts from the
5505
+ * configured presentation.
5506
+ */
5507
+ presentedTools(agentName: string, tools: import('./types/index.js').ToolDefinition[], canUseMeta?: boolean): import('./types/index.js').ToolDefinition[];
5508
+ /** The host presentation of a server's tools, for the tool list: the agent's
5509
+ * view, less the built-in toolset and the servers it has as tabs. */
5510
+ private headerTools;
5511
+ /** The `toolsets` module (toolsets--open, --act, --look, --close): the
5512
+ * meta-tools of the host's own toolsets and of RFC-014 servers' toolsets.
5513
+ * Registered once, at create(), unless a module given to create() holds
5514
+ * the name; a server with toolHints: true then can't have hints, and its
5515
+ * connect is refused here. Its tools don't change after that. */
5384
5516
  private ensureToolsetsModule;
5385
5517
  /** RFC-014 §5.3: after a (re)connect whose policy has settled, read what
5386
5518
  * the server holds open and adopt it. In the background: its notices are
@@ -5604,6 +5736,9 @@ export declare class AgentFramework {
5604
5736
  listMcplServers(): Array<{
5605
5737
  id: string;
5606
5738
  connected: boolean;
5739
+ /** Kept disconnected as a closed tab (host-presentation.ts) until an
5740
+ * agent's toolsets--open, an operator's connect or a restart connects it. */
5741
+ closedTab: boolean;
5607
5742
  retrying: boolean;
5608
5743
  /** Which engine serves it: `legacy` (MCP 2024-11-05 + MCPL) or `modern`
5609
5744
  * (MCP 2026-07-28), as its configuration selects; null when the
@@ -5858,13 +5993,6 @@ export declare class AgentFramework {
5858
5993
  * authenticate bytes from another surface.
5859
5994
  */
5860
5995
  private dispatchSaveImageToolCall;
5861
- /** The `utils` meta-tool: list/describe/run over module utilities
5862
- * (Module.getUtilities). Shared by the model-facing dispatcher, which a
5863
- * running code_execution script's calls take too, and executeToolCallFrom,
5864
- * which the puppet and a host reach through executeToolCall and a module
5865
- * through callTool. */
5866
- private handleUtilsToolCall;
5867
- private dispatchUtilsToolCall;
5868
5996
  private readAgentSettings;
5869
5997
  private settingsChangedSince;
5870
5998
  private dispatchAgentSettingsToolCall;