@animalabs/agent-framework 0.29.0 → 0.30.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/dist/src/admission/admit.d.ts +90 -0
- package/dist/src/admission/admit.d.ts.map +1 -0
- package/dist/src/admission/admit.js +43 -0
- package/dist/src/admission/admit.js.map +1 -0
- package/dist/src/agent.d.ts +21 -0
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +43 -6
- package/dist/src/agent.js.map +1 -1
- package/dist/src/author-presentation.d.ts +50 -0
- package/dist/src/author-presentation.d.ts.map +1 -0
- package/dist/src/author-presentation.js +58 -0
- package/dist/src/author-presentation.js.map +1 -0
- package/dist/src/dendrite/index.d.ts +6 -0
- package/dist/src/dendrite/index.d.ts.map +1 -0
- package/dist/src/dendrite/index.js +3 -0
- package/dist/src/dendrite/index.js.map +1 -0
- package/dist/src/dendrite/presets.d.ts +60 -0
- package/dist/src/dendrite/presets.d.ts.map +1 -0
- package/dist/src/dendrite/presets.js +117 -0
- package/dist/src/dendrite/presets.js.map +1 -0
- package/dist/src/dendrite/registry.d.ts +260 -0
- package/dist/src/dendrite/registry.d.ts.map +1 -0
- package/dist/src/dendrite/registry.js +742 -0
- package/dist/src/dendrite/registry.js.map +1 -0
- package/dist/src/dendrite/types.d.ts +392 -0
- package/dist/src/dendrite/types.d.ts.map +1 -0
- package/dist/src/dendrite/types.js +24 -0
- package/dist/src/dendrite/types.js.map +1 -0
- package/dist/src/framework.d.ts +684 -33
- package/dist/src/framework.d.ts.map +1 -1
- package/dist/src/framework.js +2998 -350
- package/dist/src/framework.js.map +1 -1
- package/dist/src/gate/event-gate.d.ts +12 -4
- package/dist/src/gate/event-gate.d.ts.map +1 -1
- package/dist/src/gate/event-gate.js +25 -5
- package/dist/src/gate/event-gate.js.map +1 -1
- package/dist/src/host-presentation.d.ts +4 -0
- package/dist/src/host-presentation.d.ts.map +1 -1
- package/dist/src/host-presentation.js +7 -3
- package/dist/src/host-presentation.js.map +1 -1
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcpl/channel-registry.d.ts +84 -9
- package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.js +136 -58
- package/dist/src/mcpl/channel-registry.js.map +1 -1
- package/dist/src/mcpl/push-coalescer.d.ts +9 -0
- package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
- package/dist/src/mcpl/push-coalescer.js +21 -0
- package/dist/src/mcpl/push-coalescer.js.map +1 -1
- package/dist/src/mcpl/toolsets-module.d.ts.map +1 -1
- package/dist/src/mcpl/toolsets-module.js +7 -0
- package/dist/src/mcpl/toolsets-module.js.map +1 -1
- package/dist/src/notice-tags.d.ts +2 -0
- package/dist/src/notice-tags.d.ts.map +1 -1
- package/dist/src/notice-tags.js +2 -0
- package/dist/src/notice-tags.js.map +1 -1
- package/dist/src/silent-heartbeat.d.ts +4 -2
- package/dist/src/silent-heartbeat.d.ts.map +1 -1
- package/dist/src/silent-heartbeat.js +7 -4
- package/dist/src/silent-heartbeat.js.map +1 -1
- package/dist/src/stored-injections.d.ts +4 -0
- package/dist/src/stored-injections.d.ts.map +1 -1
- package/dist/src/stored-injections.js +6 -0
- package/dist/src/stored-injections.js.map +1 -1
- package/dist/src/tune-out/coordinator.d.ts +379 -9
- package/dist/src/tune-out/coordinator.d.ts.map +1 -1
- package/dist/src/tune-out/coordinator.js +1080 -97
- package/dist/src/tune-out/coordinator.js.map +1 -1
- package/dist/src/tune-out/tools.d.ts +101 -5
- package/dist/src/tune-out/tools.d.ts.map +1 -1
- package/dist/src/tune-out/tools.js +55 -18
- package/dist/src/tune-out/tools.js.map +1 -1
- package/dist/src/types/agent.d.ts +25 -0
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/framework.d.ts +99 -0
- package/dist/src/types/framework.d.ts.map +1 -1
- package/dist/src/types/trace.d.ts +136 -0
- package/dist/src/types/trace.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/admission/admit.ts +113 -0
- package/src/agent.ts +48 -6
- package/src/author-presentation.ts +81 -0
- package/src/dendrite/index.ts +32 -0
- package/src/dendrite/presets.ts +149 -0
- package/src/dendrite/registry.ts +808 -0
- package/src/dendrite/types.ts +397 -0
- package/src/framework.ts +3239 -369
- package/src/gate/event-gate.ts +31 -5
- package/src/host-presentation.ts +10 -3
- package/src/index.ts +15 -2
- package/src/mcpl/channel-registry.ts +170 -60
- package/src/mcpl/push-coalescer.ts +19 -0
- package/src/mcpl/toolsets-module.ts +7 -0
- package/src/notice-tags.ts +2 -0
- package/src/silent-heartbeat.ts +7 -4
- package/src/stored-injections.ts +7 -0
- package/src/tune-out/coordinator.ts +1229 -98
- package/src/tune-out/tools.ts +152 -11
- package/src/types/agent.ts +28 -0
- package/src/types/framework.ts +102 -0
- package/src/types/trace.ts +150 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"silent-heartbeat.js","sourceRoot":"","sources":["../../src/silent-heartbeat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C;;;;;4DAK4D;AAC5D,MAAM,CAAC,MAAM,0BAA0B,GACrC,IAAI,UAAU,CAAC,eAAe,oEAAoE;IAClG,sHAAsH,CAAC;AAEzH;iEACiE;AACjE,MAAM,iCAAiC,GAAG,IAAI,UAAU,CAAC,aAAa,GAAG,CAAC;AAE1E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,iBAAiB,GAAG,CAAC;AA0BhE;6DAC6D;AAC7D,MAAM,UAAU,OAAO,CAAC,IAAyB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE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AK,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;YAClF,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzD,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC9B,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACvC,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;YACtF,IAAI,MAAM,KAAK,SAAS,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC5D,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC/B,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;QACD,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;AAC3C,CAAC"}
|
|
@@ -61,6 +61,10 @@ export declare function storedInjectionMarkOf(metadata: unknown): StoredInjectio
|
|
|
61
61
|
/** Whether a row is another agent's stored injection, which `agentName`'s
|
|
62
62
|
* view leaves out: it's that agent's context, not conversation. */
|
|
63
63
|
export declare function isAnotherAgentsInjection(metadata: unknown, agentName: string): boolean;
|
|
64
|
+
/** Whether a row is `agentName`'s own stored injection: its context, which
|
|
65
|
+
* its view keeps however the rest is read, as a shared fork's does, whose
|
|
66
|
+
* view is otherwise its source's (AgentFramework's deriveSharedContext). */
|
|
67
|
+
export declare function isOwnInjection(metadata: unknown, agentName: string): boolean;
|
|
64
68
|
/**
|
|
65
69
|
* Whether an injection is stored, rather than placed by `compile()` each
|
|
66
70
|
* time: an `afterUser` one, unless it opts out
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-injections.d.ts","sourceRoot":"","sources":["../../src/stored-injections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD;oEACoE;AACpE,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;sDACsD;AACtD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAQxF;AAED;oEACoE;AACpE,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAGtF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAGjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,OAAO,CAIhF;AAED;;;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G;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAGjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,OAAO,CAIhF;AAED;;;;;mEAKmE;AACnE,wBAAgB,WAAW,CAAC,SAAS,EAAE,gBAAgB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;CAAE,CAIzI;AAED;;qBAEqB;AACrB,wBAAgB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAE,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;CAAE,CAAC,GAAG,MAAM,CAE9F"}
|
|
@@ -62,6 +62,12 @@ export function isAnotherAgentsInjection(metadata, agentName) {
|
|
|
62
62
|
const mark = storedInjectionMarkOf(metadata);
|
|
63
63
|
return mark !== undefined && mark.agent !== agentName;
|
|
64
64
|
}
|
|
65
|
+
/** Whether a row is `agentName`'s own stored injection: its context, which
|
|
66
|
+
* its view keeps however the rest is read, as a shared fork's does, whose
|
|
67
|
+
* view is otherwise its source's (AgentFramework's deriveSharedContext). */
|
|
68
|
+
export function isOwnInjection(metadata, agentName) {
|
|
69
|
+
return storedInjectionMarkOf(metadata)?.agent === agentName;
|
|
70
|
+
}
|
|
65
71
|
/**
|
|
66
72
|
* Whether an injection is stored, rather than placed by `compile()` each
|
|
67
73
|
* time: an `afterUser` one, unless it opts out
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-injections.js","sourceRoot":"","sources":["../../src/stored-injections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;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AMG;AACH,MAAM,UAAU,YAAY,CAAC,SAA2B;IACtD,OAAO,SAAS,CAAC,QAAQ,KAAK,WAAW;WACnC,SAA6C,CAAC,iBAAiB,KAAK,IAAI,CAAC;AACjF,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAoC;IACrE,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CACtD,CAAC,CAAE,KAA4B,CAAC,IAAI,KAAK,MAAM;WAC1C,CAAC,OAAQ,KAA4B,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAE,KAA0B,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC;AAED;;;;;mEAKmE;AACnE,MAAM,UAAU,WAAW,CAAC,SAA2B;IACrD,MAAM,CAAC,MAAM,CAAC,GAAG,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAE,CAAC;IAClD,MAAM,SAAS,GAAG,GAAG,MAAO,CAAC,SAAS,EAAE,CAAC;IACzC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,MAAO,CAAC,OAAO,EAAE,CAAC;AAC/F,CAAC;AAED;;qBAEqB;AACrB,MAAM,UAAU,QAAQ,CAAC,IAA6D;IACpF,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -24,6 +24,96 @@ export declare const TUNE_OUT_DEFAULTS: {
|
|
|
24
24
|
readonly backlogCap: 200;
|
|
25
25
|
readonly maxWakes: 5;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* One backlog line: author, then the message's blocks in order — text as
|
|
29
|
+
* is, anything else named by kind (`[image]`, `[document]`), so a release
|
|
30
|
+
* never drops a block silently (#232 gap 4). The author is named once: a
|
|
31
|
+
* server that renders `Name: body` into the text itself is not doubled.
|
|
32
|
+
* A name the line adds is a value someone supplied, kept to one line with
|
|
33
|
+
* its notice openings marked (authorLine), as main's dump writes it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function renderHeldLine(m: Pick<StoredMessage, 'participant' | 'content' | 'metadata'>): string;
|
|
36
|
+
/** One reader invocation under `reader: 'forks'` (see SubconsciousConfig). */
|
|
37
|
+
export interface ReaderInvocation {
|
|
38
|
+
serverId: string;
|
|
39
|
+
channelId: string;
|
|
40
|
+
epochId: string;
|
|
41
|
+
trigger: 'cadence' | 'wake' | 'cancel';
|
|
42
|
+
/** The host-framed notice for this invocation (bracket style). */
|
|
43
|
+
notice: string;
|
|
44
|
+
/** Held messages not yet handed to any reader fork, oldest first. */
|
|
45
|
+
backlog: StoredMessage[];
|
|
46
|
+
/**
|
|
47
|
+
* Held messages not yet handed to any reader fork that are still queued
|
|
48
|
+
* behind the resident's turn (admitted, not yet stored), oldest first.
|
|
49
|
+
* They come after `backlog` in arrival order. A reader is most useful
|
|
50
|
+
* while the resident is busy, which is exactly when its traffic is here
|
|
51
|
+
* rather than in the store.
|
|
52
|
+
*/
|
|
53
|
+
queued: QueuedHeldMessage[];
|
|
54
|
+
/** Standing dispositions, as text, or null when there are none. */
|
|
55
|
+
dispositions: string | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A held message admitted for the resident but not yet in its store: it was
|
|
59
|
+
* deferred while a turn was alive. `writeId` is the deferred write's durable
|
|
60
|
+
* id, which the stored row carries as `metadata.deferredWriteId` once it
|
|
61
|
+
* lands.
|
|
62
|
+
*/
|
|
63
|
+
export type QueuedHeldMessage = Pick<StoredMessage, 'participant' | 'content' | 'metadata'> & {
|
|
64
|
+
writeId: string;
|
|
65
|
+
/** When the framework first held the write, in ms since the epoch. */
|
|
66
|
+
heldAt?: number;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* The all-except scope (issue #232 §3.2; focus folded into tune-out): a
|
|
70
|
+
* resident-level policy epoch holding every channel but one, for a bounded
|
|
71
|
+
* time. It covers DMs and channels registered after entry, since the
|
|
72
|
+
* decision is "not the exception" rather than a per-channel state.
|
|
73
|
+
*/
|
|
74
|
+
export interface AllExceptParams {
|
|
75
|
+
epochId: string;
|
|
76
|
+
except: {
|
|
77
|
+
serverId: string;
|
|
78
|
+
channelId: string;
|
|
79
|
+
};
|
|
80
|
+
cadenceSeconds: number;
|
|
81
|
+
/** Per held channel, at release. */
|
|
82
|
+
backlogCap: number;
|
|
83
|
+
/** Reader wakes before the reader is paused (the hold itself stays). */
|
|
84
|
+
maxWakes: number;
|
|
85
|
+
startedAtSequence: number;
|
|
86
|
+
startedAtMs: number;
|
|
87
|
+
/** Mandatory: the scope always ends on its own. */
|
|
88
|
+
expiresAtMs: number;
|
|
89
|
+
source: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AllExceptState {
|
|
92
|
+
params: AllExceptParams;
|
|
93
|
+
wakeCount: number;
|
|
94
|
+
}
|
|
95
|
+
/** `check`: what is held right now, without releasing anything. */
|
|
96
|
+
export interface TuneOutCheck {
|
|
97
|
+
allExcept: {
|
|
98
|
+
epochId: string;
|
|
99
|
+
except: {
|
|
100
|
+
serverId: string;
|
|
101
|
+
channelId: string;
|
|
102
|
+
};
|
|
103
|
+
expiresAtMs: number;
|
|
104
|
+
wakeCount: number;
|
|
105
|
+
held: Record<string, number>;
|
|
106
|
+
} | null;
|
|
107
|
+
channels: Array<{
|
|
108
|
+
serverId: string;
|
|
109
|
+
channelId: string;
|
|
110
|
+
epochId: string;
|
|
111
|
+
held: number;
|
|
112
|
+
expiresAtMs?: number;
|
|
113
|
+
}>;
|
|
114
|
+
/** Up to `peekLimit` newest held lines of the peeked channel, oldest first. */
|
|
115
|
+
peek?: string[];
|
|
116
|
+
}
|
|
27
117
|
/**
|
|
28
118
|
* tune_out's refusal of a channel already tuned out: its settings, then what
|
|
29
119
|
* its transport is now where the repeat tried to open it again (`transport`,
|
|
@@ -35,8 +125,20 @@ export interface TuneOutFrameworkHooks {
|
|
|
35
125
|
addMessage: (participant: string, content: ContentBlock[], metadata?: Record<string, unknown>, forAgent?: string) => string;
|
|
36
126
|
/** Queue an inference request for an agent. */
|
|
37
127
|
requestInference: (agentName: string, reason: string, source: string) => void;
|
|
38
|
-
/** The subconscious's registry/participant name. */
|
|
128
|
+
/** The persistent subconscious's registry/participant name, or null. */
|
|
39
129
|
subconsciousName: () => string | null;
|
|
130
|
+
/**
|
|
131
|
+
* `reader: 'forks'`: derive and run one reader fork. Absent in persistent
|
|
132
|
+
* mode. The framework owns the fork's lifecycle; the coordinator owns the
|
|
133
|
+
* epoch.
|
|
134
|
+
*/
|
|
135
|
+
invokeReader?: (invocation: ReaderInvocation) => void;
|
|
136
|
+
/**
|
|
137
|
+
* `reader: 'forks'`: deliver a reader fork's own words to the resident
|
|
138
|
+
* as attributed mail (its name, its incarnation). Absent in persistent
|
|
139
|
+
* mode, where the subconscious writes under its own name directly.
|
|
140
|
+
*/
|
|
141
|
+
deliverFromReader?: (reader: string, content: ContentBlock[], metadata: Record<string, unknown>) => void;
|
|
40
142
|
/** The primary resident's registry name. */
|
|
41
143
|
primaryName: () => string | null;
|
|
42
144
|
/** Read the primary's stored messages (shared slot, unfiltered). */
|
|
@@ -46,7 +148,22 @@ export interface TuneOutFrameworkHooks {
|
|
|
46
148
|
* while a turn was alive), oldest first. A cancel reads them too, so a
|
|
47
149
|
* message held mid-turn is in the backlog it belongs to (#232 gap 7).
|
|
48
150
|
*/
|
|
49
|
-
getDeferredMessages?: () => Array<Pick<StoredMessage, 'participant' | 'content' | 'metadata'
|
|
151
|
+
getDeferredMessages?: () => Array<Pick<StoredMessage, 'participant' | 'content' | 'metadata'> & {
|
|
152
|
+
writeId?: string;
|
|
153
|
+
heldAt?: number;
|
|
154
|
+
}>;
|
|
155
|
+
/**
|
|
156
|
+
* Make what was just delivered durable, including anything the delivery
|
|
157
|
+
* left in the deferred queue: a release flips durable epoch state, so its
|
|
158
|
+
* dump must survive a crash in the same window (#232 gap 6).
|
|
159
|
+
*/
|
|
160
|
+
commitDeliveries?: () => void;
|
|
161
|
+
/**
|
|
162
|
+
* The history-reading tool the resident actually has (e.g. a server's
|
|
163
|
+
* `fetch_history`), or null. A truncation note names it only when it exists
|
|
164
|
+
* (#232 gap 11).
|
|
165
|
+
*/
|
|
166
|
+
historyTool?: () => string | null;
|
|
50
167
|
/**
|
|
51
168
|
* The most characters of text every reader of the residents' shared slot
|
|
52
169
|
* is shown whole in one message: the smallest of their strategies'
|
|
@@ -65,6 +182,22 @@ export interface TuneOutFrameworkHooks {
|
|
|
65
182
|
isPrivilegedAuthor: (authorId: string | null | undefined) => boolean;
|
|
66
183
|
/** speak_in_channel master switch (recipe-side, canary-gated). */
|
|
67
184
|
allowChannelSpeech: () => boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Whether a tune-out may hold a channel with no reader at all — a silent
|
|
187
|
+
* hold (issue #232 §3.3), which the host opts into (`tuneOut.enabled`).
|
|
188
|
+
* Left out, or false, a hold with no reader is refused.
|
|
189
|
+
*/
|
|
190
|
+
holdWithoutReader?: () => boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Post a line into a channel under the resident's name. Used for the
|
|
193
|
+
* all-except scope's entry and release announcements in the excepted
|
|
194
|
+
* channel (Linn, 2026-10-12: the room should hear the door shut, not
|
|
195
|
+
* discover it). Absent when `tuneOut.announce` is off.
|
|
196
|
+
*/
|
|
197
|
+
announce?: (serverId: string, channelId: string, text: string) => Promise<{
|
|
198
|
+
success: boolean;
|
|
199
|
+
error?: string;
|
|
200
|
+
}>;
|
|
68
201
|
emitTrace: (event: {
|
|
69
202
|
type: string;
|
|
70
203
|
[key: string]: unknown;
|
|
@@ -83,10 +216,70 @@ export declare class TuneOutCoordinator {
|
|
|
83
216
|
private expiryTimers;
|
|
84
217
|
/** Channels with a wake invocation pending inside the coalescing window. */
|
|
85
218
|
private pendingWakes;
|
|
86
|
-
/**
|
|
219
|
+
/**
|
|
220
|
+
* Held messages the channel's reader hasn't looked at, per channel key:
|
|
221
|
+
* what makes a cadence period worth a look. Counted up as messages are
|
|
222
|
+
* held and back to zero at each look; rebuilt from the held rows where
|
|
223
|
+
* memory can't know it (rebuildTally): after a restart, and when a
|
|
224
|
+
* channel's own tune-out ends while the all-except hold still holds it.
|
|
225
|
+
* A failed reader fork's messages count again (readerFailed).
|
|
226
|
+
*/
|
|
87
227
|
private divertedSinceInvocation;
|
|
228
|
+
/**
|
|
229
|
+
* The persistent subconscious's last look at each held channel, per epoch:
|
|
230
|
+
* the store's sequence when the look was asked for. Durable, so that after
|
|
231
|
+
* a restart its next look counts only what was held since (rebuildTally).
|
|
232
|
+
* Reader forks need none: what they were handed is in memory, and after a
|
|
233
|
+
* restart the first fork of an epoch is handed all it has held.
|
|
234
|
+
*/
|
|
235
|
+
private lastLooksCache;
|
|
236
|
+
/**
|
|
237
|
+
* `reader: 'forks'`: the highest sequence of a held message already
|
|
238
|
+
* handed to a reader fork, per epoch and channel (handOffKey). Each held
|
|
239
|
+
* message is delivered to exactly one fork. A channel the all-except hold
|
|
240
|
+
* holds can be taken by a tune-out of its own and given back, and each
|
|
241
|
+
* epoch's readers read that epoch's messages, so what one epoch's readers
|
|
242
|
+
* were handed never moves or clears the other's. In-memory: after a
|
|
243
|
+
* restart the first fork of an epoch is handed everything the epoch has
|
|
244
|
+
* held, which is the right side to err on.
|
|
245
|
+
*/
|
|
246
|
+
private readerCursor;
|
|
247
|
+
/**
|
|
248
|
+
* `reader: 'forks'`: the deferred writes handed to a reader fork while
|
|
249
|
+
* still queued, per epoch and channel. Each lands in the store later as a row
|
|
250
|
+
* stamped with the same id (`metadata.deferredWriteId`), past the cursor;
|
|
251
|
+
* that row is not handed again. Cleared with the cursor.
|
|
252
|
+
*/
|
|
253
|
+
private readerHandedWrites;
|
|
254
|
+
/**
|
|
255
|
+
* `reader: 'forks'`: held messages a reader fork was handed but never read,
|
|
256
|
+
* per epoch and channel: its derive failed, or its run threw before it reported
|
|
257
|
+
* (readerFailed). The next invocation is handed them again, cursor or no:
|
|
258
|
+
* stored rows by id, and by write id those that were queued when handed
|
|
259
|
+
* (stored or still queued now). Cleared with the cursor.
|
|
260
|
+
*/
|
|
261
|
+
private readerReturned;
|
|
262
|
+
/**
|
|
263
|
+
* `reader: 'forks'`: the late forks derived for an ended epoch's messages
|
|
264
|
+
* (readerFailed), so that a late fork's own failure derives no other.
|
|
265
|
+
*/
|
|
266
|
+
private lateForks;
|
|
267
|
+
/** The all-except scope's durable record, cached (undefined = not read yet). */
|
|
268
|
+
private scopeCache;
|
|
269
|
+
/** The epoch whose release this process delivered and whose hold is not yet recorded as cleared. */
|
|
270
|
+
private scopeReleased;
|
|
271
|
+
/** Timer key for the scope's cadence and expiry. */
|
|
272
|
+
private static readonly SCOPE_KEY;
|
|
88
273
|
constructor(channelRegistry: ChannelRegistry, serverRegistry: McplServerRegistry, hooks: TuneOutFrameworkHooks);
|
|
89
274
|
private key;
|
|
275
|
+
/** The readers' hand-off bookkeeping's key: one epoch's reading of one channel. */
|
|
276
|
+
private handOffKey;
|
|
277
|
+
/** An ended epoch's hand-off bookkeeping goes with it, every channel's. */
|
|
278
|
+
private dropHandOffs;
|
|
279
|
+
/** A reader exists: the persistent subconscious, or forks on demand. */
|
|
280
|
+
private readerAvailable;
|
|
281
|
+
/** Reader forks are the configured reader. */
|
|
282
|
+
private get forkReader();
|
|
90
283
|
/** A channel as the resident and the subconscious are shown it
|
|
91
284
|
* (ChannelRegistry.nameShown): its id, or, where another server registers
|
|
92
285
|
* the same id, its server-qualified name, which tune_out and
|
|
@@ -102,11 +295,24 @@ export declare class TuneOutCoordinator {
|
|
|
102
295
|
* host process. */
|
|
103
296
|
private timerFailed;
|
|
104
297
|
private listActive;
|
|
298
|
+
/**
|
|
299
|
+
* The options a tune-out call gives, read as numbers before anything
|
|
300
|
+
* changes (F76). A tool's input reaches here as the model wrote it, and
|
|
301
|
+
* the store can't keep a NaN or an Infinity: its append would throw after
|
|
302
|
+
* the registry had marked the channel tuned out. So each option is read
|
|
303
|
+
* as a number first, a numeric string included, as the sleep tool reads
|
|
304
|
+
* its seconds; null counts as left out. A value that gives no finite
|
|
305
|
+
* number is refused, naming the option and, where it can be left out,
|
|
306
|
+
* what leaving it out means; so is a duration whose end time is too far
|
|
307
|
+
* off to store. `now` is the clock the end time was counted from. One
|
|
308
|
+
* rule for a channel's tune-out and the all-except hold.
|
|
309
|
+
*/
|
|
310
|
+
private readOptions;
|
|
105
311
|
enter(serverId: string, channelId: string, opts: {
|
|
106
|
-
cadenceSeconds?:
|
|
107
|
-
backlogCap?:
|
|
108
|
-
maxWakes?:
|
|
109
|
-
durationSeconds?:
|
|
312
|
+
cadenceSeconds?: unknown;
|
|
313
|
+
backlogCap?: unknown;
|
|
314
|
+
maxWakes?: unknown;
|
|
315
|
+
durationSeconds?: unknown;
|
|
110
316
|
}, source: string): {
|
|
111
317
|
ok: true;
|
|
112
318
|
params: TuneOutParams;
|
|
@@ -115,6 +321,8 @@ export declare class TuneOutCoordinator {
|
|
|
115
321
|
error: string;
|
|
116
322
|
alreadyTunedOut?: true;
|
|
117
323
|
};
|
|
324
|
+
/** Whether a reader (persistent subconscious or reader forks) attends holds. */
|
|
325
|
+
hasReader(): boolean;
|
|
118
326
|
/**
|
|
119
327
|
* End a tune-out: durable flip, system-framed backlog dump into the
|
|
120
328
|
* resident's window (capped), lifecycle notice, one wake for the
|
|
@@ -122,7 +330,11 @@ export declare class TuneOutCoordinator {
|
|
|
122
330
|
* cancel_tuneout call) — delivered verbatim under its name, never
|
|
123
331
|
* synthesized here.
|
|
124
332
|
*/
|
|
125
|
-
cancel(serverId: string, channelId: string, source: string, reason: string, subconsciousNote?: string
|
|
333
|
+
cancel(serverId: string, channelId: string, source: string, reason: string, subconsciousNote?: string,
|
|
334
|
+
/** `reader: 'forks'`: the reader fork whose note this is. */
|
|
335
|
+
noteAuthor?: string,
|
|
336
|
+
/** The lifecycle state the channel returns to (a tool close ends in 'closed'). */
|
|
337
|
+
nextState?: 'open' | 'closed'): {
|
|
126
338
|
ok: true;
|
|
127
339
|
} | {
|
|
128
340
|
ok: false;
|
|
@@ -139,6 +351,74 @@ export declare class TuneOutCoordinator {
|
|
|
139
351
|
onIncoming(serverId: string, channelId: string, messageId: string, tags: string[] | undefined, authorId?: string, gatePass?: boolean): {
|
|
140
352
|
epochId: string;
|
|
141
353
|
} | null;
|
|
354
|
+
/** The epoch holding this channel, or null. Pure: the admission stage's lookup. */
|
|
355
|
+
holdFor(serverId: string, channelId: string): {
|
|
356
|
+
epochId: string;
|
|
357
|
+
} | null;
|
|
358
|
+
/** The channel unprefixed speech lands in while an all-except hold is active, with its server, else null. */
|
|
359
|
+
focusChannel(): ChannelRef | null;
|
|
360
|
+
private get scopeStateId();
|
|
361
|
+
getAllExcept(): AllExceptState | null;
|
|
362
|
+
private writeScope;
|
|
363
|
+
enterAllExcept(except: {
|
|
364
|
+
serverId: string;
|
|
365
|
+
channelId: string;
|
|
366
|
+
}, opts: {
|
|
367
|
+
cadenceSeconds?: unknown;
|
|
368
|
+
backlogCap?: unknown;
|
|
369
|
+
maxWakes?: unknown;
|
|
370
|
+
durationSeconds?: unknown;
|
|
371
|
+
}, source: string): {
|
|
372
|
+
ok: true;
|
|
373
|
+
params: AllExceptParams;
|
|
374
|
+
} | {
|
|
375
|
+
ok: false;
|
|
376
|
+
error: string;
|
|
377
|
+
};
|
|
378
|
+
/** Whether entry and release of the all-except scope are announced in the excepted channel. */
|
|
379
|
+
announces(): boolean;
|
|
380
|
+
/**
|
|
381
|
+
* The excepted channel hears the scope open and close: one bracketed line
|
|
382
|
+
* under the resident's name, posted through the same path as a publish.
|
|
383
|
+
* Fire-and-forget; the outcome is traced, never awaited by the epoch flip.
|
|
384
|
+
*/
|
|
385
|
+
private announce;
|
|
386
|
+
/** The scope's end time and cadence, on timers no longer than one holds
|
|
387
|
+
* (deadline-timer), as a channel's tune-out arms its own. */
|
|
388
|
+
private armScopeTimers;
|
|
389
|
+
private clearScopeTimers;
|
|
390
|
+
/** Channels held by the scope (not by their own epoch) with the count held under it. */
|
|
391
|
+
private scopeHeldCounts;
|
|
392
|
+
/**
|
|
393
|
+
* End the all-except hold: durable flip, one release notice with a
|
|
394
|
+
* per-channel backlog (each capped), the reader's note if any, one wake
|
|
395
|
+
* for the resident, and the reader's own look at what it had not seen.
|
|
396
|
+
*/
|
|
397
|
+
cancelAllExcept(source: string, reason: string, note?: string, noteAuthor?: string): {
|
|
398
|
+
ok: true;
|
|
399
|
+
} | {
|
|
400
|
+
ok: false;
|
|
401
|
+
error: string;
|
|
402
|
+
};
|
|
403
|
+
/** What is held right now — per-channel epochs and the scope — without releasing. */
|
|
404
|
+
check(opts?: {
|
|
405
|
+
peek?: {
|
|
406
|
+
serverId?: string;
|
|
407
|
+
channelId: string;
|
|
408
|
+
};
|
|
409
|
+
peekLimit?: number;
|
|
410
|
+
}): TuneOutCheck;
|
|
411
|
+
/**
|
|
412
|
+
* Bookkeeping for one held message, after admission decided the hold:
|
|
413
|
+
* the cadence tally, the deterministic acknowledgement of a suppressed
|
|
414
|
+
* mention, and the reader wake when the resident's gate would have woken
|
|
415
|
+
* them (`gatePass` is that verdict, probed without side effects).
|
|
416
|
+
*/
|
|
417
|
+
recordHeld(serverId: string, channelId: string, messageId: string, tags: string[] | undefined, authorId?: string, gatePass?: boolean): void;
|
|
418
|
+
/** Reader forks that reported through `deliver_summary` (so their trailing prose is not a second report). */
|
|
419
|
+
private readerReports;
|
|
420
|
+
readerReported(reader: string): boolean;
|
|
421
|
+
forgetReader(reader: string): void;
|
|
142
422
|
private acknowledgeSuppressed;
|
|
143
423
|
private startCadence;
|
|
144
424
|
/** Clear a channel's tune-out timers: its cadence, its end time and a wake
|
|
@@ -146,12 +426,81 @@ export declare class TuneOutCoordinator {
|
|
|
146
426
|
private clearTimers;
|
|
147
427
|
private stopCadence;
|
|
148
428
|
private scheduleWakeInvocation;
|
|
429
|
+
/** One coalesced wake: counted durably against the epoch that holds the channel. */
|
|
430
|
+
private fireWake;
|
|
149
431
|
/**
|
|
150
432
|
* One subconscious turn: a system-framed trigger notice (bracket style —
|
|
151
433
|
* what happened, never what to say) plus standing dispositions, then an
|
|
152
434
|
* inference request. The merged view supplies the actual traffic.
|
|
153
435
|
*/
|
|
154
436
|
private invokeSubconscious;
|
|
437
|
+
/**
|
|
438
|
+
* Count again, from the held messages, stored or still queued behind the
|
|
439
|
+
* resident's turn, those the reader of the epoch holding this channel now
|
|
440
|
+
* hasn't looked at: for reader forks, those no fork was handed; for the
|
|
441
|
+
* persistent subconscious, the stored ones held since its last look
|
|
442
|
+
* (lastLooks) and every queued one, which no view of it can show yet.
|
|
443
|
+
* Nothing holding the channel leaves no count.
|
|
444
|
+
*/
|
|
445
|
+
private rebuildTally;
|
|
446
|
+
private get lastLooksStateId();
|
|
447
|
+
/**
|
|
448
|
+
* The stored last looks. Where they can't be read, none: every held row
|
|
449
|
+
* counts, and nothing is cached, so the next read tries again. Nor is
|
|
450
|
+
* anything written back over the stored record then (markLook, dropLooks,
|
|
451
|
+
* pruneLooks), which would erase the other epochs' and channels' looks.
|
|
452
|
+
*/
|
|
453
|
+
private lastLooks;
|
|
454
|
+
private writeLooks;
|
|
455
|
+
private markLook;
|
|
456
|
+
/** An ended epoch's last looks go with it. */
|
|
457
|
+
private dropLooks;
|
|
458
|
+
/** At boot: the last looks of epochs no longer active go. */
|
|
459
|
+
private pruneLooks;
|
|
460
|
+
/**
|
|
461
|
+
* `reader: 'forks'`: hand the framework one invocation. The backlog is
|
|
462
|
+
* the epoch's held messages not yet handed to any fork — each is
|
|
463
|
+
* delivered to exactly one reader — stored ones first, then those still
|
|
464
|
+
* queued behind the resident's turn, plus the standing dispositions. A
|
|
465
|
+
* cadence look with nothing new is skipped. True when a fork was asked for.
|
|
466
|
+
*/
|
|
467
|
+
private invokeReaderFork;
|
|
468
|
+
/**
|
|
469
|
+
* What no reader fork has read yet, of the given held messages: the stored
|
|
470
|
+
* ones past the epoch's cursor for the channel, less those a fork was handed while they
|
|
471
|
+
* were still queued, plus those a failed fork returned, oldest first; then
|
|
472
|
+
* the queued ones no fork was handed, or a failed fork returned.
|
|
473
|
+
*/
|
|
474
|
+
private unhandedBacklog;
|
|
475
|
+
/**
|
|
476
|
+
* A reader fork that never read what it was handed: its derive failed, or
|
|
477
|
+
* its run threw before it reported. While the epoch that held the
|
|
478
|
+
* messages is still active, they go back to that epoch's backlog for the
|
|
479
|
+
* channel, and its next invocation for the channel is handed them: the
|
|
480
|
+
* scope's while the scope is active, though the channel's own tune-out
|
|
481
|
+
* has taken the channel meanwhile, and a channel's own tune-out's while it
|
|
482
|
+
* holds the channel. Once the epoch has ended, its cancel's last fork was
|
|
483
|
+
* handed only what no fork had been, so a fork still running then is the
|
|
484
|
+
* only reader its messages had: one late fork is handed them instead
|
|
485
|
+
* (lateFork). Returns how many went back or to the late fork.
|
|
486
|
+
*/
|
|
487
|
+
readerFailed(invocation: Pick<ReaderInvocation, 'serverId' | 'channelId' | 'epochId' | 'backlog' | 'queued'>): number;
|
|
488
|
+
/**
|
|
489
|
+
* A fork that failed after its epoch ended: one late fork is handed what it
|
|
490
|
+
* was, with a notice saying a reader handed them failed after the tune-out
|
|
491
|
+
* ended. Those still queued when it was handed that have landed since are
|
|
492
|
+
* handed as stored. A late fork's own failure derives no other, so a
|
|
493
|
+
* reader that keeps failing costs one more fork, not a chain of them.
|
|
494
|
+
* Returns how many the late fork was handed.
|
|
495
|
+
*/
|
|
496
|
+
private lateFork;
|
|
497
|
+
/**
|
|
498
|
+
* The held messages still queued behind the resident's turn that `keep`
|
|
499
|
+
* keeps, oldest first, with their write ids. One the host gives no id for
|
|
500
|
+
* is left to reach a reader once it is stored: without the id, its stored
|
|
501
|
+
* row couldn't be told from a message no reader has had.
|
|
502
|
+
*/
|
|
503
|
+
private queuedHeld;
|
|
155
504
|
private dispositionsCache;
|
|
156
505
|
private get dispositionsStateId();
|
|
157
506
|
/**
|
|
@@ -174,12 +523,27 @@ export declare class TuneOutCoordinator {
|
|
|
174
523
|
noteDisposition(key: string, text: string): void;
|
|
175
524
|
handleSubconsciousTool(name: string, input: Record<string, unknown>,
|
|
176
525
|
/** The calling turn's own channels, for a call made inside it (the framework's callOwnChannels). */
|
|
177
|
-
own?: readonly ChannelRef[]
|
|
526
|
+
own?: readonly ChannelRef[],
|
|
527
|
+
/** The calling agent: the persistent subconscious, or a reader fork. */
|
|
528
|
+
caller?: string,
|
|
529
|
+
/** A reader fork, with the epoch it was derived to read, if any: it ends and posts only through that epoch's
|
|
530
|
+
* hold (forkRefusal). The persistent subconscious, which reads every epoch, passes none. */
|
|
531
|
+
fork?: {
|
|
532
|
+
epochId?: string;
|
|
533
|
+
}): Promise<{
|
|
178
534
|
success: boolean;
|
|
179
535
|
data?: unknown;
|
|
180
536
|
error?: string;
|
|
181
537
|
isError?: boolean;
|
|
182
538
|
}>;
|
|
539
|
+
/**
|
|
540
|
+
* Why a reader fork may not act through `hold` (the epoch holding what its
|
|
541
|
+
* call names, or null): a fork ends and posts only through the hold of the
|
|
542
|
+
* epoch it was derived to read, and one derived for none acts through no
|
|
543
|
+
* hold. Undefined where the hold is its own. `why` says, for the fork, how
|
|
544
|
+
* what its call names isn't its own hold; its reports stay open to it.
|
|
545
|
+
*/
|
|
546
|
+
private forkRefusal;
|
|
183
547
|
/**
|
|
184
548
|
* A cancel of a channel that isn't tuned out, by the name, quoted, the caller gave
|
|
185
549
|
* or knows it by: which channels are, so the next call can name one, and
|
|
@@ -192,6 +556,12 @@ export declare class TuneOutCoordinator {
|
|
|
192
556
|
* registered channels too), and the text claims nothing about it.
|
|
193
557
|
*/
|
|
194
558
|
private notTunedOut;
|
|
559
|
+
/**
|
|
560
|
+
* The reader ended, not the framework: its turns stop (cadence and
|
|
561
|
+
* coalescing wakes), and every hold keeps its end time, which releases it
|
|
562
|
+
* to the resident with no reader.
|
|
563
|
+
*/
|
|
564
|
+
stopReader(): void;
|
|
195
565
|
/** Stop all timers (framework shutdown). */
|
|
196
566
|
stop(): void;
|
|
197
567
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/tune-out/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/tune-out/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAOrE,yCAAyC;AACzC,eAAO,MAAM,iBAAiB;aAC5B,cAAc,EAAE,IAAI;aACpB,UAAU,EAAE,GAAG;aACf,QAAQ,EAAE,CAAC;CACH,CAAC;AAMX;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC,GAAG,MAAM,CAQrG;AAED,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IACvC,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,mEAAmE;IACnE,YAAY,EAA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