@animalabs/agent-framework 0.26.2 → 0.27.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.
- package/README.md +56 -6
- package/dist/src/agent.d.ts +263 -22
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +531 -54
- package/dist/src/agent.js.map +1 -1
- package/dist/src/api/server.d.ts.map +1 -1
- package/dist/src/api/server.js +1 -2
- package/dist/src/api/server.js.map +1 -1
- package/dist/src/auto-continue.d.ts +33 -0
- package/dist/src/auto-continue.d.ts.map +1 -0
- package/dist/src/auto-continue.js +35 -0
- package/dist/src/auto-continue.js.map +1 -0
- package/dist/src/code-execution/isolate/scripts.d.ts +11 -0
- package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -1
- package/dist/src/code-execution/isolate/scripts.js +5 -1
- package/dist/src/code-execution/isolate/scripts.js.map +1 -1
- package/dist/src/framework.d.ts +759 -129
- package/dist/src/framework.d.ts.map +1 -1
- package/dist/src/framework.js +3482 -928
- package/dist/src/framework.js.map +1 -1
- package/dist/src/gate/event-gate.d.ts +309 -46
- package/dist/src/gate/event-gate.d.ts.map +1 -1
- package/dist/src/gate/event-gate.js +2117 -395
- package/dist/src/gate/event-gate.js.map +1 -1
- package/dist/src/gate/index.d.ts +2 -2
- package/dist/src/gate/index.d.ts.map +1 -1
- package/dist/src/gate/index.js +1 -1
- package/dist/src/gate/index.js.map +1 -1
- package/dist/src/gate/recipe-reconcile.d.ts +103 -0
- package/dist/src/gate/recipe-reconcile.d.ts.map +1 -0
- package/dist/src/gate/recipe-reconcile.js +325 -0
- package/dist/src/gate/recipe-reconcile.js.map +1 -0
- package/dist/src/gate/types.d.ts +68 -8
- package/dist/src/gate/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +6 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcpl/channel-registry.d.ts +433 -113
- package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.js +1152 -434
- package/dist/src/mcpl/channel-registry.js.map +1 -1
- package/dist/src/mcpl/conversation-router.d.ts +16 -8
- package/dist/src/mcpl/conversation-router.d.ts.map +1 -1
- package/dist/src/mcpl/conversation-router.js +29 -15
- package/dist/src/mcpl/conversation-router.js.map +1 -1
- package/dist/src/mcpl/convert-block.d.ts.map +1 -1
- package/dist/src/mcpl/convert-block.js +14 -2
- package/dist/src/mcpl/convert-block.js.map +1 -1
- package/dist/src/mcpl/hook-orchestrator.d.ts +7 -1
- package/dist/src/mcpl/hook-orchestrator.d.ts.map +1 -1
- package/dist/src/mcpl/hook-orchestrator.js +32 -7
- package/dist/src/mcpl/hook-orchestrator.js.map +1 -1
- package/dist/src/mcpl/index.d.ts +5 -1
- package/dist/src/mcpl/index.d.ts.map +1 -1
- package/dist/src/mcpl/index.js +4 -0
- package/dist/src/mcpl/index.js.map +1 -1
- package/dist/src/mcpl/inference-router.d.ts +14 -2
- package/dist/src/mcpl/inference-router.d.ts.map +1 -1
- package/dist/src/mcpl/inference-router.js +73 -28
- package/dist/src/mcpl/inference-router.js.map +1 -1
- package/dist/src/mcpl/prose-grammar.d.ts +4 -0
- package/dist/src/mcpl/prose-grammar.d.ts.map +1 -1
- package/dist/src/mcpl/prose-grammar.js +6 -0
- package/dist/src/mcpl/prose-grammar.js.map +1 -1
- package/dist/src/mcpl/protocol-family.d.ts.map +1 -1
- package/dist/src/mcpl/protocol-family.js +3 -0
- package/dist/src/mcpl/protocol-family.js.map +1 -1
- package/dist/src/mcpl/push-coalescer.d.ts +20 -2
- package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
- package/dist/src/mcpl/push-coalescer.js +33 -11
- package/dist/src/mcpl/push-coalescer.js.map +1 -1
- package/dist/src/mcpl/reference-fetcher.d.ts +63 -42
- package/dist/src/mcpl/reference-fetcher.d.ts.map +1 -1
- package/dist/src/mcpl/reference-fetcher.js +177 -145
- package/dist/src/mcpl/reference-fetcher.js.map +1 -1
- package/dist/src/mcpl/references.d.ts +380 -46
- package/dist/src/mcpl/references.d.ts.map +1 -1
- package/dist/src/mcpl/references.js +736 -77
- package/dist/src/mcpl/references.js.map +1 -1
- package/dist/src/mcpl/server-connection.d.ts +82 -3
- package/dist/src/mcpl/server-connection.d.ts.map +1 -1
- package/dist/src/mcpl/server-connection.js +132 -7
- package/dist/src/mcpl/server-connection.js.map +1 -1
- package/dist/src/mcpl/tool-lifecycle.d.ts +11 -0
- package/dist/src/mcpl/tool-lifecycle.d.ts.map +1 -1
- package/dist/src/mcpl/tool-lifecycle.js +21 -0
- package/dist/src/mcpl/tool-lifecycle.js.map +1 -1
- package/dist/src/mcpl/tool-presence.d.ts +259 -0
- package/dist/src/mcpl/tool-presence.d.ts.map +1 -0
- package/dist/src/mcpl/tool-presence.js +628 -0
- package/dist/src/mcpl/tool-presence.js.map +1 -0
- package/dist/src/mcpl/tool-result-normalize.d.ts +9 -3
- package/dist/src/mcpl/tool-result-normalize.d.ts.map +1 -1
- package/dist/src/mcpl/tool-result-normalize.js +14 -6
- package/dist/src/mcpl/tool-result-normalize.js.map +1 -1
- package/dist/src/mcpl/tool-signature.d.ts +39 -0
- package/dist/src/mcpl/tool-signature.d.ts.map +1 -0
- package/dist/src/mcpl/tool-signature.js +292 -0
- package/dist/src/mcpl/tool-signature.js.map +1 -0
- package/dist/src/mcpl/toolset-host.d.ts +200 -0
- package/dist/src/mcpl/toolset-host.d.ts.map +1 -0
- package/dist/src/mcpl/toolset-host.js +621 -0
- package/dist/src/mcpl/toolset-host.js.map +1 -0
- package/dist/src/mcpl/toolsets-module.d.ts +80 -0
- package/dist/src/mcpl/toolsets-module.d.ts.map +1 -0
- package/dist/src/mcpl/toolsets-module.js +431 -0
- package/dist/src/mcpl/toolsets-module.js.map +1 -0
- package/dist/src/mcpl/transport.d.ts +2 -2
- package/dist/src/mcpl/transport.d.ts.map +1 -1
- package/dist/src/mcpl/transport.js +3 -2
- package/dist/src/mcpl/transport.js.map +1 -1
- package/dist/src/mcpl/types.d.ts +21 -1
- package/dist/src/mcpl/types.d.ts.map +1 -1
- package/dist/src/mcpl/types.js.map +1 -1
- package/dist/src/mcpl/visible-content.d.ts +7 -9
- package/dist/src/mcpl/visible-content.d.ts.map +1 -1
- package/dist/src/mcpl/visible-content.js +21 -9
- package/dist/src/mcpl/visible-content.js.map +1 -1
- package/dist/src/module-registry.d.ts +23 -8
- package/dist/src/module-registry.d.ts.map +1 -1
- package/dist/src/module-registry.js +68 -15
- package/dist/src/module-registry.js.map +1 -1
- package/dist/src/modules/discord/index.js +1 -1
- package/dist/src/modules/discord/index.js.map +1 -1
- package/dist/src/modules/history/index.d.ts +2 -1
- package/dist/src/modules/history/index.d.ts.map +1 -1
- package/dist/src/modules/history/index.js +51 -17
- package/dist/src/modules/history/index.js.map +1 -1
- package/dist/src/modules/history/semantic.d.ts +108 -6
- package/dist/src/modules/history/semantic.d.ts.map +1 -1
- package/dist/src/modules/history/semantic.js +273 -57
- package/dist/src/modules/history/semantic.js.map +1 -1
- package/dist/src/modules/workspace/direct-write.d.ts +181 -0
- package/dist/src/modules/workspace/direct-write.d.ts.map +1 -0
- package/dist/src/modules/workspace/direct-write.js +384 -0
- package/dist/src/modules/workspace/direct-write.js.map +1 -0
- package/dist/src/modules/workspace/edit-text.d.ts +26 -12
- package/dist/src/modules/workspace/edit-text.d.ts.map +1 -1
- package/dist/src/modules/workspace/edit-text.js +58 -28
- package/dist/src/modules/workspace/edit-text.js.map +1 -1
- package/dist/src/modules/workspace/effects.d.ts +10 -0
- package/dist/src/modules/workspace/effects.d.ts.map +1 -1
- package/dist/src/modules/workspace/effects.js +1 -1
- package/dist/src/modules/workspace/effects.js.map +1 -1
- package/dist/src/modules/workspace/index.d.ts +246 -27
- package/dist/src/modules/workspace/index.d.ts.map +1 -1
- package/dist/src/modules/workspace/index.js +1216 -236
- package/dist/src/modules/workspace/index.js.map +1 -1
- package/dist/src/modules/workspace/read-page.d.ts +41 -0
- package/dist/src/modules/workspace/read-page.d.ts.map +1 -0
- package/dist/src/modules/workspace/read-page.js +213 -0
- package/dist/src/modules/workspace/read-page.js.map +1 -0
- package/dist/src/modules/workspace/result-text.d.ts +67 -0
- package/dist/src/modules/workspace/result-text.d.ts.map +1 -0
- package/dist/src/modules/workspace/result-text.js +94 -0
- package/dist/src/modules/workspace/result-text.js.map +1 -0
- package/dist/src/modules/workspace/text.d.ts +29 -12
- package/dist/src/modules/workspace/text.d.ts.map +1 -1
- package/dist/src/modules/workspace/text.js +35 -33
- package/dist/src/modules/workspace/text.js.map +1 -1
- package/dist/src/modules/workspace/types.d.ts +41 -17
- package/dist/src/modules/workspace/types.d.ts.map +1 -1
- package/dist/src/modules/workspace/types.js.map +1 -1
- package/dist/src/sent-rows.d.ts +59 -0
- package/dist/src/sent-rows.d.ts.map +1 -0
- package/dist/src/sent-rows.js +145 -0
- package/dist/src/sent-rows.js.map +1 -0
- package/dist/src/silent-heartbeat.d.ts +17 -10
- package/dist/src/silent-heartbeat.d.ts.map +1 -1
- package/dist/src/silent-heartbeat.js.map +1 -1
- package/dist/src/stable-hash.d.ts +3 -0
- package/dist/src/stable-hash.d.ts.map +1 -0
- package/dist/src/stable-hash.js +15 -0
- package/dist/src/stable-hash.js.map +1 -0
- package/dist/src/stored-injections.d.ts +99 -0
- package/dist/src/stored-injections.d.ts.map +1 -0
- package/dist/src/stored-injections.js +106 -0
- package/dist/src/stored-injections.js.map +1 -0
- package/dist/src/text-as-stored.d.ts +4 -3
- package/dist/src/text-as-stored.d.ts.map +1 -1
- package/dist/src/text-as-stored.js +4 -3
- package/dist/src/text-as-stored.js.map +1 -1
- package/dist/src/thinking-drops.d.ts +81 -0
- package/dist/src/thinking-drops.d.ts.map +1 -0
- package/dist/src/thinking-drops.js +103 -0
- package/dist/src/thinking-drops.js.map +1 -0
- package/dist/src/tool-image-ledger.d.ts +9 -8
- package/dist/src/tool-image-ledger.d.ts.map +1 -1
- package/dist/src/tool-image-ledger.js +9 -8
- package/dist/src/tool-image-ledger.js.map +1 -1
- package/dist/src/tool-presentation.d.ts.map +1 -1
- package/dist/src/tool-presentation.js +3 -1
- package/dist/src/tool-presentation.js.map +1 -1
- package/dist/src/tool-result-guard.d.ts +4 -2
- package/dist/src/tool-result-guard.d.ts.map +1 -1
- package/dist/src/tool-result-guard.js +21 -6
- package/dist/src/tool-result-guard.js.map +1 -1
- package/dist/src/tool-result-history.d.ts +176 -24
- package/dist/src/tool-result-history.d.ts.map +1 -1
- package/dist/src/tool-result-history.js +411 -91
- package/dist/src/tool-result-history.js.map +1 -1
- package/dist/src/tune-out/coordinator.d.ts +17 -9
- package/dist/src/tune-out/coordinator.d.ts.map +1 -1
- package/dist/src/tune-out/coordinator.js +84 -37
- package/dist/src/tune-out/coordinator.js.map +1 -1
- package/dist/src/types/agent.d.ts +186 -7
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/events.d.ts +15 -1
- package/dist/src/types/events.d.ts.map +1 -1
- package/dist/src/types/framework.d.ts +24 -3
- package/dist/src/types/framework.d.ts.map +1 -1
- package/dist/src/types/module.d.ts +90 -7
- package/dist/src/types/module.d.ts.map +1 -1
- package/dist/src/types/trace.d.ts +57 -2
- package/dist/src/types/trace.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/agent.ts +593 -60
- package/src/api/server.ts +1 -2
- package/src/auto-continue.ts +42 -0
- package/src/code-execution/isolate/scripts.ts +11 -3
- package/src/framework.ts +3601 -967
- package/src/gate/event-gate.ts +2315 -389
- package/src/gate/index.ts +2 -1
- package/src/gate/recipe-reconcile.ts +355 -0
- package/src/gate/types.ts +70 -8
- package/src/index.ts +7 -4
- package/src/mcpl/channel-registry.ts +1220 -467
- package/src/mcpl/conversation-router.ts +34 -16
- package/src/mcpl/convert-block.ts +14 -1
- package/src/mcpl/hook-orchestrator.ts +33 -6
- package/src/mcpl/index.ts +6 -1
- package/src/mcpl/inference-router.ts +79 -34
- package/src/mcpl/prose-grammar.ts +7 -0
- package/src/mcpl/protocol-family.ts +2 -0
- package/src/mcpl/push-coalescer.ts +51 -13
- package/src/mcpl/reference-fetcher.ts +201 -162
- package/src/mcpl/references.ts +851 -77
- package/src/mcpl/server-connection.ts +145 -7
- package/src/mcpl/tool-lifecycle.ts +21 -0
- package/src/mcpl/tool-presence.ts +650 -0
- package/src/mcpl/tool-result-normalize.ts +18 -6
- package/src/mcpl/tool-signature.ts +285 -0
- package/src/mcpl/toolset-host.ts +637 -0
- package/src/mcpl/toolsets-module.ts +451 -0
- package/src/mcpl/transport.ts +3 -2
- package/src/mcpl/types.ts +22 -1
- package/src/mcpl/visible-content.ts +22 -9
- package/src/module-registry.ts +77 -24
- package/src/modules/discord/index.ts +1 -1
- package/src/modules/history/index.ts +48 -18
- package/src/modules/history/semantic.ts +308 -54
- package/src/modules/workspace/direct-write.ts +425 -0
- package/src/modules/workspace/edit-text.ts +82 -35
- package/src/modules/workspace/effects.ts +1 -1
- package/src/modules/workspace/index.ts +1274 -241
- package/src/modules/workspace/read-page.ts +222 -0
- package/src/modules/workspace/result-text.ts +119 -0
- package/src/modules/workspace/text.ts +58 -32
- package/src/modules/workspace/types.ts +41 -17
- package/src/sent-rows.ts +162 -0
- package/src/silent-heartbeat.ts +17 -10
- package/src/stable-hash.ts +14 -0
- package/src/stored-injections.ts +131 -0
- package/src/text-as-stored.ts +4 -3
- package/src/thinking-drops.ts +141 -0
- package/src/tool-image-ledger.ts +9 -8
- package/src/tool-presentation.ts +3 -1
- package/src/tool-result-guard.ts +19 -6
- package/src/tool-result-history.ts +471 -90
- package/src/tune-out/coordinator.ts +80 -37
- package/src/types/agent.ts +189 -7
- package/src/types/events.ts +15 -1
- package/src/types/framework.ts +21 -3
- package/src/types/module.ts +86 -7
- package/src/types/trace.ts +58 -2
|
@@ -2,8 +2,25 @@ import type { ContentBlock, YieldingStream } from '@animalabs/membrane';
|
|
|
2
2
|
import type { ContextStrategy } from '@animalabs/context-manager';
|
|
3
3
|
import type { ToolCallId, ToolResult, ToolCall } from './events.js';
|
|
4
4
|
import type { SilentHeartbeatTick } from '../silent-heartbeat.js';
|
|
5
|
+
import type { WakeLine } from '../gate/types.js';
|
|
5
6
|
export type SameRoundThinkTextPolicy = 'public' | 'private';
|
|
6
7
|
export type SameRoundThinkTextPolicySource = 'runtime_override' | 'recipe' | 'compatibility_default';
|
|
8
|
+
/** What a continuation's `[continue]` row says (InferenceRequest.autoContinueRun). */
|
|
9
|
+
export interface AutoContinueRun {
|
|
10
|
+
/** How the agent stops, as the row puts it ("call skip_reply"). */
|
|
11
|
+
stop: string;
|
|
12
|
+
/** The turn before ended in words that were held, not sent, because it
|
|
13
|
+
* had already sent with a send tool. */
|
|
14
|
+
heldAfterSend?: boolean;
|
|
15
|
+
/** Set by the scheduler: the continuation is the turn's only cause. */
|
|
16
|
+
sole?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** `AgentConfig.autoContinue` as an object (`true` means `{}`). */
|
|
19
|
+
export interface AutoContinueConfig {
|
|
20
|
+
/** Continuations in a row before the agent waits for the next event:
|
|
21
|
+
* a whole number, 1 to 20. Default 3. */
|
|
22
|
+
maxConsecutive?: number;
|
|
23
|
+
}
|
|
7
24
|
/**
|
|
8
25
|
* Configuration for an agent.
|
|
9
26
|
*/
|
|
@@ -49,7 +66,11 @@ export interface AgentConfig {
|
|
|
49
66
|
/** Temperature for inference */
|
|
50
67
|
temperature?: number;
|
|
51
68
|
/** Max input tokens before framework breaks a yielding stream and
|
|
52
|
-
* restarts with recompiled (compressed) context. Default: 150000.
|
|
69
|
+
* restarts with recompiled (compressed) context. Default: 150000. Not
|
|
70
|
+
* checked mid-turn for an agent whose model binds its thinking
|
|
71
|
+
* (`thinkingBinding.binds`) with `physicalWindowTokens` set: a new stream
|
|
72
|
+
* there would take the turn's own earlier reasoning out of the request, and
|
|
73
|
+
* the window projection still guards the provider's hard cap. */
|
|
53
74
|
maxStreamTokens?: number;
|
|
54
75
|
/**
|
|
55
76
|
* The model's PHYSICAL context window (provider hard cap, e.g. 200000).
|
|
@@ -61,7 +82,9 @@ export interface AgentConfig {
|
|
|
61
82
|
* request the provider will 400 (issue #92: a legal compile can walk past
|
|
62
83
|
* the physical window mid-turn). The projection runs once a call on the
|
|
63
84
|
* stream has reported its prompt. Unset → no projection; only the
|
|
64
|
-
* maxStreamTokens restart applies.
|
|
85
|
+
* maxStreamTokens restart applies. A value is converted to a number as a
|
|
86
|
+
* comparison converts it, so a string such as "200000" reads as its number;
|
|
87
|
+
* one whose number isn't finite, such as null, reads as unset.
|
|
65
88
|
*/
|
|
66
89
|
physicalWindowTokens?: number;
|
|
67
90
|
/** Per-agent context compile budget (input tokens). When unset, the
|
|
@@ -114,7 +137,9 @@ export interface AgentConfig {
|
|
|
114
137
|
* Extended thinking config. When `enabled: true`, the agent runs with
|
|
115
138
|
* Anthropic's native extended thinking; responses include `thinking` blocks
|
|
116
139
|
* with cryptographic signatures, and the API enforces `temperature: 1`
|
|
117
|
-
* (Membrane handles this). Omit or set `enabled: false` to disable
|
|
140
|
+
* (Membrane handles this). Omit or set `enabled: false` to disable, except
|
|
141
|
+
* on a model whose thinking is always on (Fable, Mythos), which thinks
|
|
142
|
+
* whatever this says.
|
|
118
143
|
*/
|
|
119
144
|
thinking?: {
|
|
120
145
|
enabled: boolean;
|
|
@@ -124,10 +149,98 @@ export interface AgentConfig {
|
|
|
124
149
|
/**
|
|
125
150
|
* How thinking content is returned: 'summarized' (readable summary) or
|
|
126
151
|
* 'omitted' (empty thinking field, signature only). Fable 5 / Opus 4.7+
|
|
127
|
-
* default to 'omitted' — set 'summarized' to receive thinking text.
|
|
152
|
+
* default to 'omitted' — set 'summarized' to receive thinking text. A
|
|
153
|
+
* model whose thinking is always on (Fable, Mythos) is sent a thinking
|
|
154
|
+
* config only to carry `thinkingBinding.dropBlock`, so this reaches it
|
|
155
|
+
* only with that set.
|
|
128
156
|
*/
|
|
129
157
|
display?: 'summarized' | 'omitted';
|
|
130
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* How the provider binds this agent's signed thinking to the conversation
|
|
161
|
+
* before it. A host sets it from what it knows of the agent's model and
|
|
162
|
+
* route.
|
|
163
|
+
*/
|
|
164
|
+
thinkingBinding?: {
|
|
165
|
+
/**
|
|
166
|
+
* Ask the provider to drop a signed thinking block whose earlier
|
|
167
|
+
* conversation has changed, as a fold changes it, rather than refuse the
|
|
168
|
+
* request. An account that enforces the binding otherwise answers such a
|
|
169
|
+
* request with a 400. One that doesn't decides for itself: the four
|
|
170
|
+
* accounts tried on 2026-10-18 dropped such blocks silently, so there the
|
|
171
|
+
* model sees nothing different and the report is what's new, and one
|
|
172
|
+
* that would show such a block to the model is asked to drop it instead.
|
|
173
|
+
*
|
|
174
|
+
* It's sent as `thinking.block_binding.prefix_mismatch_behavior:
|
|
175
|
+
* "drop_block"` with the `thinking-binding-controls-2026-08-01` beta,
|
|
176
|
+
* which membrane's Anthropic and Bedrock adapters carry (Bedrock's
|
|
177
|
+
* acceptance of the beta hasn't been tried). On any other adapter it does
|
|
178
|
+
* nothing, so a host should refuse it there. A thinking config the host
|
|
179
|
+
* sends itself, through `request.extra` or as `thinking` in
|
|
180
|
+
* `providerParams`, replaces the one membrane builds, control included.
|
|
181
|
+
*
|
|
182
|
+
* On a model whose thinking is always on (Fable, Mythos), membrane
|
|
183
|
+
* carries it in an adaptive thinking config whatever `thinking.enabled`
|
|
184
|
+
* says, with `thinking.display` when that's set, so such an agent's
|
|
185
|
+
* `display` takes effect only with this setting. On any other model, it
|
|
186
|
+
* goes only in the thinking config membrane sends while thinking is on.
|
|
187
|
+
* Membrane tells the first kind by its id, which names `fable` or
|
|
188
|
+
* `mythos`. Opus 5.5, Haiku 5.5, Sonnet 5.5, Sonnet 5, Fable 5 and Fable
|
|
189
|
+
* 5.1 accepted the config on 2026-10-18. Mythos hasn't been tried, and
|
|
190
|
+
* membrane notes that the family has refused thinking configs with a 400
|
|
191
|
+
* before, so for a Mythos model the setting may fail every request.
|
|
192
|
+
*
|
|
193
|
+
* On a framework turn, each call's report of the blocks the provider
|
|
194
|
+
* dropped goes to its `inference:usage` trace, and neither that call nor
|
|
195
|
+
* its stream's later calls feed the context strategy's calibration, since
|
|
196
|
+
* the provider doesn't bill a block it dropped and the strategy still
|
|
197
|
+
* counts it. After a fold, each block after the stretch it rewrote is
|
|
198
|
+
* bound to a conversation the request no longer holds. Where the context
|
|
199
|
+
* strategy still sends such a block, the provider drops it on every call
|
|
200
|
+
* until a later fold takes it out of the context, and while such blocks
|
|
201
|
+
* are sent, no stream gives a sample and the calibration keeps the value
|
|
202
|
+
* it had. A strategy that leaves that thinking out at the fold sends none
|
|
203
|
+
* to drop. The direct API carries the control too, but reads no report: it
|
|
204
|
+
* traces no usage and feeds no calibration.
|
|
205
|
+
*
|
|
206
|
+
* Default false: nothing is sent, and the account's default applies.
|
|
207
|
+
*/
|
|
208
|
+
dropBlock?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Whether this agent's model binds its signed thinking to the
|
|
211
|
+
* conversation before it, as the host knows from its own model records.
|
|
212
|
+
* A context manager that keeps a record of what each branch sent can
|
|
213
|
+
* then leave out thinking whose earlier conversation changed before the
|
|
214
|
+
* provider sees it. Set:
|
|
215
|
+
* - each compile the agent sends tells the context manager so
|
|
216
|
+
* (`thinkingBinding`: `binds`, `dropBlock` as set here, and the agent's
|
|
217
|
+
* name as the `participant` whose replies are its own), with digests
|
|
218
|
+
* of what the request carries ahead of its messages (`identity`: the
|
|
219
|
+
* system text with its system-position injections, the tools in the
|
|
220
|
+
* order sent, the model, and the thinking config, `maxTokens`,
|
|
221
|
+
* `providerParams` and `prefillUserMessage`);
|
|
222
|
+
* - each framework stream tells the context manager which stored rows
|
|
223
|
+
* its later rounds and its last reply carried as stored
|
|
224
|
+
* (`noteRequestSent`), naming the compile it was built from, so their
|
|
225
|
+
* thinking is kept at the next compile. The direct API
|
|
226
|
+
* (`runInference`) notes nothing, so each of its replies' thinking is
|
|
227
|
+
* left out at the compile after it's stored;
|
|
228
|
+
* - with `physicalWindowTokens` set too, `maxStreamTokens` no longer
|
|
229
|
+
* starts a new stream mid-turn, since the new stream's compile can take
|
|
230
|
+
* the turn's earlier reasoning out of the request;
|
|
231
|
+
* - with `dropBlock` set too, where a compile reports where the branch's
|
|
232
|
+
* record began (`thinkingRecordedAfter`), a block the provider drops
|
|
233
|
+
* that the record doesn't account for raises the
|
|
234
|
+
* `thinking-binding-loss` ops alert, once per incident and again if a
|
|
235
|
+
* call drops more. The provider reports drops only on a request that
|
|
236
|
+
* carries the drop control; without it, such a block is refused.
|
|
237
|
+
* The record and the notes
|
|
238
|
+
* vouch for requests as agent-framework hands them to membrane, so a
|
|
239
|
+
* membrane `beforeRequest` hook that changes a request must change every
|
|
240
|
+
* request alike. Default false: compiles and streams are as they were.
|
|
241
|
+
*/
|
|
242
|
+
binds?: boolean;
|
|
243
|
+
};
|
|
131
244
|
/**
|
|
132
245
|
* How to handle a model content-policy refusal (`stop_reason: refusal`).
|
|
133
246
|
* When `autoRewind` is on, a refused turn triggers an automatic rewind: the
|
|
@@ -196,6 +309,33 @@ export interface AgentConfig {
|
|
|
196
309
|
* content-free system receipt is stored instead. Default false.
|
|
197
310
|
*/
|
|
198
311
|
toolWrapperProseGuard?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Continue on the agent's own turn ending (off when left out): a turn the
|
|
314
|
+
* model ends itself (stop reason `end_turn` or `stop_sequence`), whether
|
|
315
|
+
* its last response is prose or empty, is followed by another turn,
|
|
316
|
+
* instead of a pause until the next event. A turn ended through
|
|
317
|
+
* `skip_reply` (or another tool that ends the turn, such as `sleep`), or
|
|
318
|
+
* whose last prose envelope is `>>skip_reply` (explicit) or `>>>skip_reply`
|
|
319
|
+
* (hybrid), pauses as usual. So does one whose closing prose bounced (the
|
|
320
|
+
* bounce and its cap answer it), and an agent offered no way to stop
|
|
321
|
+
* (locus or disabled mode without an offered `skip_reply`).
|
|
322
|
+
*
|
|
323
|
+
* As the next turn starts, a short `[continue]` system row naming the agent
|
|
324
|
+
* joins the window: another turn starts, how to stop, and that unmarked
|
|
325
|
+
* words are sent as usual; on the last continuation of a run, that the
|
|
326
|
+
* agent waits for the next event after it. It's written only when the
|
|
327
|
+
* continuation is that turn's whole cause: a message batched with it makes
|
|
328
|
+
* it that message's turn, with no row, in the message's channel. Otherwise
|
|
329
|
+
* the next turn keeps the turn's locus (locus and hybrid modes). At most
|
|
330
|
+
* `maxConsecutive` (default 3) continuations run in a row: the count
|
|
331
|
+
* starts again when a turn starts with a cause of its own (a message, a
|
|
332
|
+
* timer, a heartbeat that isn't a silent tick) or a tool ends one. Silent
|
|
333
|
+
* heartbeat ticks, refusals, `max_tokens` cut-offs, the stall guard's
|
|
334
|
+
* ends, ephemeral runs, conversation forks and a quiesce never continue. A
|
|
335
|
+
* ` !` continuation the turn asked for runs instead, and counts toward
|
|
336
|
+
* nothing. See docs/auto-continue.md.
|
|
337
|
+
*/
|
|
338
|
+
autoContinue?: boolean | AutoContinueConfig;
|
|
199
339
|
/**
|
|
200
340
|
* Clock rows (off when left out): when a boundary of this interval on the
|
|
201
341
|
* agent's local wall clock (counted from local midnight, in the
|
|
@@ -382,9 +522,13 @@ export interface InferenceRequest {
|
|
|
382
522
|
* all of them without materializing content, the turn has no cause left
|
|
383
523
|
* and does not run. */
|
|
384
524
|
coalescingBatchSubjects?: string[];
|
|
385
|
-
/** Host-owned: this wake's sole cause is
|
|
386
|
-
* coalesced render placed in its
|
|
387
|
-
*
|
|
525
|
+
/** Host-owned: this wake's sole cause is this write, deferred for its
|
|
526
|
+
* agent while a turn was alive: a coalesced render placed in its queue
|
|
527
|
+
* (wakeToRead), or a message, notice or event whose wake was queued with
|
|
528
|
+
* it. Once a request that carried the write was answered and, for a wake
|
|
529
|
+
* that carries a channel, the agent has since published into that
|
|
530
|
+
* channel having read it, or once the write is in neither the agent's
|
|
531
|
+
* queue nor its store's current branch, the wake starts no turn. */
|
|
388
532
|
readsDeferredWrite?: string;
|
|
389
533
|
agentName: string;
|
|
390
534
|
reason: string;
|
|
@@ -401,6 +545,25 @@ export interface InferenceRequest {
|
|
|
401
545
|
* ephemeral run's (a subagent's), which takes no global fallback.
|
|
402
546
|
*/
|
|
403
547
|
channelId?: string;
|
|
548
|
+
/**
|
|
549
|
+
* The server of `channelId`'s channel. MCPL requires a channel id to be
|
|
550
|
+
* unique only within one server's connection (§14.2), so where two
|
|
551
|
+
* servers register the same id only the pair names one channel. The
|
|
552
|
+
* framework's own wakes set it beside `channelId`. A host's request that
|
|
553
|
+
* gives `channelId` alone names the one channel that id, or its
|
|
554
|
+
* server-qualified name (`serverId:channelId`), means; one that two
|
|
555
|
+
* servers' channels answer to names none, and the turn's speech has no
|
|
556
|
+
* channel of its own.
|
|
557
|
+
*/
|
|
558
|
+
channelServerId?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Framework-set: this wake carries an autoContinue continuation
|
|
561
|
+
* (AgentConfig.autoContinue), with what its `[continue]` row says. The
|
|
562
|
+
* scheduler keeps the mark on the turn's trigger only when the
|
|
563
|
+
* continuation is that turn's whole cause, and the turn writes the row as
|
|
564
|
+
* it starts. Hosts don't set it.
|
|
565
|
+
*/
|
|
566
|
+
autoContinueRun?: AutoContinueRun;
|
|
404
567
|
/**
|
|
405
568
|
* True when the triggering message explicitly addressed the agent (mention,
|
|
406
569
|
* reply-to-bot, DM — `chat:addressed` in MCPL RFC-001 terms). When a wake
|
|
@@ -409,6 +572,16 @@ export interface InferenceRequest {
|
|
|
409
572
|
* not capture the agent's voice just by being newest.
|
|
410
573
|
*/
|
|
411
574
|
addressed?: boolean;
|
|
575
|
+
/**
|
|
576
|
+
* Host-owned: true when the triggering message's server marked it ambient
|
|
577
|
+
* (`chat:ambient`). A coalesced push's wake carries it only to read a
|
|
578
|
+
* render, and only when every notice the render stands for was. Such a
|
|
579
|
+
* message asked nothing of the agent, so a wake for it that carries
|
|
580
|
+
* `readsDeferredWrite` is dropped once a request that carried the message
|
|
581
|
+
* was answered, with no publish asked of the agent. A message with neither
|
|
582
|
+
* tag is in doubt, and is judged as an addressed one.
|
|
583
|
+
*/
|
|
584
|
+
ambient?: true;
|
|
412
585
|
/**
|
|
413
586
|
* Who spoke the message that triggered this inference, as an adapter-
|
|
414
587
|
* namespaced opaque id (`<serverId>:user:<authorId>`) — never a display
|
|
@@ -429,6 +602,12 @@ export interface InferenceRequest {
|
|
|
429
602
|
wakeChannelId?: string;
|
|
430
603
|
/** Timestamp of the event the wake provenance was taken from (ms). */
|
|
431
604
|
wakeAt?: number;
|
|
605
|
+
/** Batched-wake lines the gate handed to this wake rather than wrote
|
|
606
|
+
* (WakeLine), decided by a fresh start of its turn as WakeLine says: each
|
|
607
|
+
* written once into the window it names, or left for a later fresh start
|
|
608
|
+
* of the same wake. A retry, or a start that resumes a logical turn,
|
|
609
|
+
* decides none. */
|
|
610
|
+
wakeLines?: WakeLine[];
|
|
432
611
|
/** Suppress every automatic plain-prose delivery for this logical turn.
|
|
433
612
|
* Explicit tool calls remain available. Used by authenticated silent wakes. */
|
|
434
613
|
suppressProse?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/types/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/types/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,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IACzD,eAAe,CAAC,EAAE,mBAAmB,CAAC;CACvC"}
|
|
@@ -166,6 +166,18 @@ export interface ToolResult {
|
|
|
166
166
|
* it reads the result's error text, if any.
|
|
167
167
|
*/
|
|
168
168
|
data?: unknown;
|
|
169
|
+
/**
|
|
170
|
+
* Whether `data` is a protocol result's content: an array in which every
|
|
171
|
+
* element is a content block, of a type this host can show or not. The
|
|
172
|
+
* framework sets it on an MCPL tool's result, and a module that returns a
|
|
173
|
+
* content array can set it too. When it's set, each element reaches the
|
|
174
|
+
* model as itself, as a reference's stub, or as a marker saying what it was
|
|
175
|
+
* and why it isn't shown, never as JSON. When it isn't, an array counts as
|
|
176
|
+
* content only when every element is a block of one of MCP's types (text,
|
|
177
|
+
* image, audio, resource, resource_link), and any other array is data,
|
|
178
|
+
* written as JSON.
|
|
179
|
+
*/
|
|
180
|
+
dataIsContent?: boolean;
|
|
169
181
|
/** Error message (if failure) */
|
|
170
182
|
error?: string;
|
|
171
183
|
/** Whether this was an error (for LLM) */
|
|
@@ -282,7 +294,9 @@ export interface ToolCall {
|
|
|
282
294
|
* read_image tool passes a model's call to the workspace without it; and a
|
|
283
295
|
* utility run through `utils` carries what its `utils` call carried.
|
|
284
296
|
* Without it, a module holds its answer to a bound of its own, if any: the
|
|
285
|
-
* workspace's
|
|
297
|
+
* workspace's `edit` and `edit_many` answers hold to the house default,
|
|
298
|
+
* 24,000, and a `read` holds its page to its line limit alone, with every
|
|
299
|
+
* line whole, since such a caller takes the data itself.
|
|
286
300
|
*/
|
|
287
301
|
resultMaxChars?: number;
|
|
288
302
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,IAAI,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;GAEG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Y,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -13,6 +13,16 @@ export type { TraceEvent, TraceEventListener } from './trace.js';
|
|
|
13
13
|
export interface ModuleProcessResponse {
|
|
14
14
|
moduleName: string;
|
|
15
15
|
response: EventResponse;
|
|
16
|
+
/**
|
|
17
|
+
* Set when applying the response threw: the operation it threw at, such
|
|
18
|
+
* as `the edit of <id>`, and the error's message. What the response asked
|
|
19
|
+
* for before that was applied, that operation may have taken effect in
|
|
20
|
+
* part or whole, and the rest of it wasn't (EventResponse).
|
|
21
|
+
*/
|
|
22
|
+
threw?: {
|
|
23
|
+
at: string;
|
|
24
|
+
error: string;
|
|
25
|
+
};
|
|
16
26
|
}
|
|
17
27
|
/**
|
|
18
28
|
* Configuration for process event logging.
|
|
@@ -211,8 +221,9 @@ export interface FrameworkConfig {
|
|
|
211
221
|
* workspace file under `tool-results/` (deterministic `<date>-<callId>.txt`
|
|
212
222
|
* name, overwritten on collision, retained until the workspace owner
|
|
213
223
|
* deletes it — never auto-GC'd) and replaced inline by a bounded preview
|
|
214
|
-
* plus the file reference; with no writable mount without an include
|
|
215
|
-
*
|
|
224
|
+
* plus the file reference; with no writable mount without an include that
|
|
225
|
+
* keeps its files in the store (not configured direct), the fallback is
|
|
226
|
+
* explicit plain truncation. Default 24000 (house-safe; issue #89). Must be
|
|
216
227
|
* >= 1000. A resident's own agent_settings value
|
|
217
228
|
* `tool_result_inline_max_chars` (durable, persisted in framework state)
|
|
218
229
|
* takes precedence over this for that agent; the EFFECTIVE cap for every
|
|
@@ -243,7 +254,17 @@ export interface FrameworkConfig {
|
|
|
243
254
|
* class comes from an override or their server's `_meta["mcpl/class"]`.
|
|
244
255
|
*/
|
|
245
256
|
hostToolClasses?: Record<string, string[]>;
|
|
246
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* Inference routing policy for server-initiated inference (optional): the
|
|
259
|
+
* model an MCPL server's inference/request runs on. Without one, each such
|
|
260
|
+
* request is refused with -32603 and a message naming this setting; the
|
|
261
|
+
* framework doesn't choose a model for a server. A server's effective
|
|
262
|
+
* grant can still list `inferenceRequest` then, since the grant comes from
|
|
263
|
+
* what the server advertises and `enabledCapabilities`, not from this
|
|
264
|
+
* policy. A policy that names no model for a request's feature set (no
|
|
265
|
+
* override, byFeature or wildcards entry that names one, and an empty
|
|
266
|
+
* `default`) refuses that request the same way, naming the feature set.
|
|
267
|
+
*/
|
|
247
268
|
inferenceRouting?: InferenceRoutingPolicy;
|
|
248
269
|
/** EventGate config. If omitted, all events trigger inference (unchanged default). */
|
|
249
270
|
gate?: GateOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../../../src/types/framework.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"framework.d.ts","sourceRoot":"","s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C;IACvB,kDAAkD;IAClD,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,kCAAkC;IAClC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,2CAA2C;IAC3C,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -18,6 +18,30 @@ export interface MessageQuery {
|
|
|
18
18
|
* equality */
|
|
19
19
|
metadata?: Record<string, unknown>;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* A context injection a module gathers (Module.gatherContext).
|
|
23
|
+
*
|
|
24
|
+
* An `afterUser` one is stored in the agent's window, as the message
|
|
25
|
+
* `compile()` would have placed after the last user message, where it then
|
|
26
|
+
* stays: so the replies after it keep their thinking, and the cache keeps the
|
|
27
|
+
* turns before it. The same source's unchanged content isn't stored again
|
|
28
|
+
* while the copy the agent will read as current has it whole: the one its
|
|
29
|
+
* last request held, or a newer one a start stored whose compile then
|
|
30
|
+
* didn't record. Once a fold has summarized it or a strategy's window has
|
|
31
|
+
* scrolled past it, it's stored again, as one more row. (See
|
|
32
|
+
* stored-injections.ts.)
|
|
33
|
+
*
|
|
34
|
+
* `placedEachCompile: true` opts out: `compile()` places the injection after
|
|
35
|
+
* the last user message at each start, near the end, as before it was
|
|
36
|
+
* stored. That's for context meant to stay near the end, such as
|
|
37
|
+
* instructions moved off `system`. Its cost: it moves, and on a model that
|
|
38
|
+
* binds a reply's thinking to everything before it, every reply after its old
|
|
39
|
+
* place loses its thinking. It has no effect on a `system` or `beforeUser`
|
|
40
|
+
* injection, which `compile()` always places.
|
|
41
|
+
*/
|
|
42
|
+
export type ModuleContextInjection = ContextInjection & {
|
|
43
|
+
placedEachCompile?: true;
|
|
44
|
+
};
|
|
21
45
|
/**
|
|
22
46
|
* A message as a module context's reads answer it: a stored row, or a row
|
|
23
47
|
* for a write the framework holds (`held`). Either is marked
|
|
@@ -137,9 +161,16 @@ export interface Module {
|
|
|
137
161
|
* Called before each inference to collect data (e.g., HUD overlays, game state)
|
|
138
162
|
* that should be injected into the compiled context.
|
|
139
163
|
* Complementary to MCPL push-based hooks — modules pull via gatherContext.
|
|
164
|
+
* An `afterUser` injection is appended to the agent's window, where it
|
|
165
|
+
* then stays, unless the copy the agent will read as current has the same
|
|
166
|
+
* content, every part of it (the one its last request held, or a newer
|
|
167
|
+
* one a start stored whose compile then didn't record), or it opts out
|
|
168
|
+
* (ModuleContextInjection.placedEachCompile). At a
|
|
169
|
+
* turn's start or a restart after tool results, that's where `compile()`
|
|
170
|
+
* would have placed it.
|
|
140
171
|
* Adapted from Anarchid/agent-framework@mcpl-module-proto.
|
|
141
172
|
*/
|
|
142
|
-
gatherContext?(agentName: string): Promise<
|
|
173
|
+
gatherContext?(agentName: string): Promise<ModuleContextInjection[]>;
|
|
143
174
|
/**
|
|
144
175
|
* Called once an agent's tool batch has completed — when the round's last
|
|
145
176
|
* pending result arrives, before it is provided to the agent and before
|
|
@@ -268,9 +299,42 @@ export interface ModuleContext {
|
|
|
268
299
|
* (ModuleMessage.held). The writes a process held, and keeps across a
|
|
269
300
|
* restart, show to the next process's modules once create() has restored
|
|
270
301
|
* them, which is after every module's start().
|
|
302
|
+
*
|
|
303
|
+
* With `opts.forAgent`, it's added to the named agent's window instead: a
|
|
304
|
+
* conversation fork's or a running sub-agent's own store, or, for an
|
|
305
|
+
* ordinary resident, the residents' shared slot. It's held while that
|
|
306
|
+
* agent's turn is alive, as a write for the primary is while the
|
|
307
|
+
* primary's is. A name that isn't a registered agent when the write is
|
|
308
|
+
* made, or the empty name, throws, naming the registered ones, so a write
|
|
309
|
+
* for a launcher that has gone is heard. For an ephemeral run (a
|
|
310
|
+
* sub-agent's run) or a conversation fork, whose window nothing reads
|
|
311
|
+
* after it's released, a write it never read goes to the primary at its
|
|
312
|
+
* release, as the write itself, through the primary's own delivery. It's
|
|
313
|
+
* read as the framework reads a notice: once it's below the target's
|
|
314
|
+
* consumed watermark, which a compile built to send moves when it
|
|
315
|
+
* commits (a row that compile's strategy left out counts as read too),
|
|
316
|
+
* and a tool round moves when it injects messages into a stream that
|
|
317
|
+
* declares it carries them. So one that waited for its target's end (a
|
|
318
|
+
* run's end, or a fork's last turn), one stored while it was idle and
|
|
319
|
+
* never sent, one stored at a tool round that ended the turn, and one
|
|
320
|
+
* injected into a stream that didn't declare it carries injections go to
|
|
321
|
+
* the primary. The framework's own
|
|
322
|
+
* writes for a run or a fork are unchanged: they stay in its store,
|
|
323
|
+
* unless they're notices the primary already takes in their place (a
|
|
324
|
+
* failed reply, or a channel notice its reader could act on). getMessage,
|
|
325
|
+
* editMessage and removeMessage read the delivery agent's window (the
|
|
326
|
+
* primary's, or the first agent's when none is primary): they don't take
|
|
327
|
+
* an id or handle for a row in a fork's or a sub-agent's window, and don't
|
|
328
|
+
* find it (read it with queryMessages and the same forAgent). The
|
|
329
|
+
* residents' shared slot is the primary's window too, for a primary
|
|
330
|
+
* that's an ordinary resident, so there they do.
|
|
331
|
+
* `metadata.external` with a target throws: its id map is read in the
|
|
332
|
+
* primary's window.
|
|
271
333
|
*/
|
|
272
334
|
addMessage(participant: string, content: ContentBlock[], metadata?: MessageMetadata & {
|
|
273
335
|
external?: ExternalIdRef;
|
|
336
|
+
}, opts?: {
|
|
337
|
+
forAgent?: string;
|
|
274
338
|
}): MessageId;
|
|
275
339
|
/**
|
|
276
340
|
* Edit a message, by its id or a held write's handle. A held write is
|
|
@@ -311,8 +375,19 @@ export interface ModuleContext {
|
|
|
311
375
|
* restored them, after every module's start() (addMessage). A message a
|
|
312
376
|
* tune-out holds from the residents is among the rows, marked
|
|
313
377
|
* `heldFromResidents` (ModuleMessage).
|
|
314
|
-
|
|
315
|
-
|
|
378
|
+
*
|
|
379
|
+
* It reads the primary's window (the first registered agent's when none
|
|
380
|
+
* is primary), or with `opts.forAgent`, the named agent's: a conversation
|
|
381
|
+
* fork's or a running sub-agent's own store, or, for an ordinary resident,
|
|
382
|
+
* the residents' shared slot. For the subconscious, it's the
|
|
383
|
+
* subconscious's own store, not the residents' slot its compile merges
|
|
384
|
+
* in. A name that isn't a registered agent, or the empty name, throws,
|
|
385
|
+
* naming the registered ones, so a typo is heard rather than read as an
|
|
386
|
+
* empty window.
|
|
387
|
+
*/
|
|
388
|
+
queryMessages(filter: MessageQuery, opts?: {
|
|
389
|
+
forAgent?: string;
|
|
390
|
+
}): MessageQueryResult;
|
|
316
391
|
/**
|
|
317
392
|
* Get info about all agents.
|
|
318
393
|
*/
|
|
@@ -446,7 +521,15 @@ export interface AgentInfo {
|
|
|
446
521
|
*/
|
|
447
522
|
export type AgentStatus = 'idle' | 'inferring' | 'streaming' | 'waiting_for_tools' | 'ready';
|
|
448
523
|
/**
|
|
449
|
-
* Response from a module's event handler.
|
|
524
|
+
* Response from a module's event handler. The framework applies it in this
|
|
525
|
+
* order: its messages added, edited and removed, then its stateUpdate, then
|
|
526
|
+
* its inference request. When one of these throws, such as an edit of a
|
|
527
|
+
* message the store doesn't hold, what came before it stays applied, the
|
|
528
|
+
* operation that threw may have taken effect in part or whole (a store can
|
|
529
|
+
* throw after it wrote), the rest of the response isn't, and a line names
|
|
530
|
+
* the module and where it threw; the event's other responses, a tool call's dispatch and its trace
|
|
531
|
+
* go on. Content the framework finds malformed refuses the whole response
|
|
532
|
+
* before any of it applies.
|
|
450
533
|
*/
|
|
451
534
|
export interface EventResponse {
|
|
452
535
|
/**
|
|
@@ -475,9 +558,9 @@ export interface EventResponse {
|
|
|
475
558
|
*/
|
|
476
559
|
toolsChanged?: boolean;
|
|
477
560
|
/**
|
|
478
|
-
* Module state update.
|
|
479
|
-
*
|
|
480
|
-
*
|
|
561
|
+
* Module state update. The framework calls setState() with this value
|
|
562
|
+
* after applying the response's message changes, and not when one of
|
|
563
|
+
* them threw.
|
|
481
564
|
*/
|
|
482
565
|
stateUpdate?: unknown;
|
|
483
566
|
}
|
|
@@ -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,CAAC,EAAE,MAAM,CAAC;IACrB;;mBAEe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;;;;;;;;;;;;;;;OAkBG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;8BAE0B;IAC1B,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM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