@genesislcap/ai-assistant 15.58.2 → 15.60.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/ai-assistant.api.json +10096 -6986
- package/dist/ai-assistant.d.ts +562 -101
- package/dist/chat-driver.cjs +624 -207
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +624 -207
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +5426 -3570
- package/dist/dts/components/agent-session/agent-session.d.ts +19 -3
- package/dist/dts/components/agent-session/agent-session.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/ai-driver.d.ts +120 -10
- package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +103 -0
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -0
- package/dist/dts/components/ai-driver/index.d.ts +3 -1
- package/dist/dts/components/ai-driver/index.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +84 -8
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/interaction-controller.d.ts +37 -3
- package/dist/dts/components/chat-driver/interaction-controller.d.ts.map +1 -1
- package/dist/dts/components/message-feedback/index.d.ts +2 -0
- package/dist/dts/components/message-feedback/index.d.ts.map +1 -0
- package/dist/dts/components/message-feedback/message-feedback.d.ts +61 -0
- package/dist/dts/components/message-feedback/message-feedback.d.ts.map +1 -0
- package/dist/dts/components/message-feedback/message-feedback.styles.d.ts +2 -0
- package/dist/dts/components/message-feedback/message-feedback.styles.d.ts.map +1 -0
- package/dist/dts/components/message-feedback/message-feedback.template.d.ts +4 -0
- package/dist/dts/components/message-feedback/message-feedback.template.d.ts.map +1 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +30 -93
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/index.d.ts +4 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +21 -5
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/react.d.ts +10 -0
- package/dist/dts/state/debug-event-log.d.ts +1 -1
- package/dist/dts/state/debug-event-log.d.ts.map +1 -1
- package/dist/dts/state/interaction-context.d.ts +7 -1
- package/dist/dts/state/interaction-context.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/dts/suggestions/generate-suggestions.d.ts.map +1 -1
- package/dist/dts/types/handler-capability.d.ts +28 -0
- package/dist/dts/types/handler-capability.d.ts.map +1 -0
- package/dist/dts/types/interaction-context.d.ts +16 -0
- package/dist/dts/types/interaction-context.d.ts.map +1 -1
- package/dist/dts/types/interaction-interceptor.d.ts +109 -0
- package/dist/dts/types/interaction-interceptor.d.ts.map +1 -0
- package/dist/dts/utils/delegated-message.d.ts +52 -0
- package/dist/dts/utils/delegated-message.d.ts.map +1 -0
- package/dist/dts/utils/history-transform.d.ts.map +1 -1
- package/dist/esm/components/agent-session/agent-session.js +17 -0
- package/dist/esm/components/ai-driver/ai-driver.js +21 -1
- package/dist/esm/components/ai-driver/base-driver-decorator.js +211 -0
- package/dist/esm/components/ai-driver/index.js +2 -1
- package/dist/esm/components/chat-driver/chat-driver.js +195 -14
- package/dist/esm/components/chat-driver/interaction-controller.js +168 -14
- package/dist/esm/components/message-feedback/index.js +1 -0
- package/dist/esm/components/message-feedback/message-feedback.js +241 -0
- package/dist/esm/components/message-feedback/message-feedback.styles.js +94 -0
- package/dist/esm/components/message-feedback/message-feedback.template.js +80 -0
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +72 -196
- package/dist/esm/index.js +1 -0
- package/dist/esm/main/main.js +123 -78
- package/dist/esm/main/main.styles.js +27 -0
- package/dist/esm/main/main.template.js +13 -0
- package/dist/esm/state/debug-event-log.js +7 -2
- package/dist/esm/state/interaction-context.js +11 -0
- package/dist/esm/state/persistence/session-persister.js +5 -6
- package/dist/esm/suggestions/generate-suggestions.js +8 -1
- package/dist/esm/types/handler-capability.js +1 -0
- package/dist/esm/types/interaction-interceptor.js +1 -0
- package/dist/esm/utils/delegated-message.js +25 -0
- package/dist/esm/utils/history-transform.js +12 -1
- package/dist/react.cjs +7 -0
- package/dist/react.mjs +6 -0
- package/package.json +17 -17
- package/sandbox/README.md +1 -1
- package/sandbox/sandbox.ts +35 -0
|
@@ -2,9 +2,9 @@ import type { AgentConfig } from '../../config/config';
|
|
|
2
2
|
/**
|
|
3
3
|
* What changed when an agent was activated or released.
|
|
4
4
|
*
|
|
5
|
-
* Returned
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Returned to the caller, and also reported to the session's owner through
|
|
6
|
+
* {@link AgentSessionDeps.onTransition}, which is how the owning `ChatDriver` raises the lifecycle
|
|
7
|
+
* events whoever triggered the change (GENC-1485).
|
|
8
8
|
*
|
|
9
9
|
* @beta
|
|
10
10
|
*/
|
|
@@ -31,6 +31,16 @@ export interface AgentSessionDeps {
|
|
|
31
31
|
* after construction on some paths, so a value captured here would pin the wrong one.
|
|
32
32
|
*/
|
|
33
33
|
sessionKey: () => string;
|
|
34
|
+
/**
|
|
35
|
+
* Called after every real transition (a swap to a different agent, or a release), once the
|
|
36
|
+
* session already reflects it. Not called for a re-activation of the same agent, for the direct
|
|
37
|
+
* {@link AgentSession.setFlowOwner} restore write, or on {@link AgentSession.dispose}.
|
|
38
|
+
*
|
|
39
|
+
* One place for the lifecycle events (GENC-1485): the session is shared between a `ChatDriver`
|
|
40
|
+
* and the `OrchestratingDriver` wrapping it, and either may move it, so the owner learns of a
|
|
41
|
+
* transition here rather than from whichever caller happened to make it.
|
|
42
|
+
*/
|
|
43
|
+
onTransition?: (transition: AgentTransition) => void;
|
|
34
44
|
}
|
|
35
45
|
/**
|
|
36
46
|
* The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing,
|
|
@@ -121,6 +131,12 @@ export declare class AgentSession {
|
|
|
121
131
|
* Returns `undefined` when there was no active agent, so a caller can skip its events.
|
|
122
132
|
*/
|
|
123
133
|
release(): Promise<AgentTransition | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* Hand a transition to the owner. A throwing listener is logged rather than propagated, for the
|
|
136
|
+
* same reason a throwing hook is: the transition has already happened, and failing the caller
|
|
137
|
+
* would leave it believing it had not.
|
|
138
|
+
*/
|
|
139
|
+
private reportTransition;
|
|
124
140
|
/**
|
|
125
141
|
* Fire `onDeactivate` on the active agent and abort pending lifecycle work, for session
|
|
126
142
|
* teardown, so machines release resources cleanly. The session is not reusable afterwards: the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-session/agent-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-session/agent-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;I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eAAe,CAAC;YAOxC,WAAW;IAmDzB;;;;;;;;OAQG;IACG,OAAO,IAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAcrD;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;;;;;OAWG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAO9B;;;OAGG;YACW,cAAc;CAgB7B"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type { ChatAttachment, ChatDriverResult, ChatMessage, ChatToolDefinition } from '@genesislcap/foundation-ai';
|
|
1
|
+
import type { ChatAttachment, ChatDriverResult, ChatMessage, ChatToolDefinition, InteractionRequestOptions, InteractionResult } from '@genesislcap/foundation-ai';
|
|
2
2
|
import type { AgentConfig } from '../../config/config';
|
|
3
3
|
import type { DiagnosticEntry } from '../../state/persistence/diagnostics';
|
|
4
|
+
import type { HandlerCapabilityFactory } from '../../types/handler-capability';
|
|
4
5
|
import type { InteractionContext } from '../../types/interaction-context';
|
|
6
|
+
import type { InteractionInterceptor } from '../../types/interaction-interceptor';
|
|
5
7
|
import type { PersistedCondensePolicy } from '../../utils/condense-history';
|
|
6
8
|
import type { CompactionProjection } from '../../utils/context-tokens';
|
|
9
|
+
import type { SendMessageOptions } from '../../utils/delegated-message';
|
|
7
10
|
import type { CompactionPlanOptions } from '../../utils/history-transform';
|
|
8
11
|
import type { ContextGuardPolicy, ContinueFromHistoryOptions, TurnSnapshot } from '../chat-driver/chat-driver';
|
|
9
12
|
/**
|
|
@@ -36,6 +39,59 @@ export interface ContextReserveResolution {
|
|
|
36
39
|
*/
|
|
37
40
|
basis: 'locked' | 'reachable-max';
|
|
38
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Every event an {@link AiDriver} can dispatch, by type (GENC-1660).
|
|
44
|
+
*
|
|
45
|
+
* The list a decorator forwards: {@link BaseDriverDecorator} re-dispatches each of these from its
|
|
46
|
+
* inner driver, so an event missing here is an event a host behind a decorator never sees. That is
|
|
47
|
+
* the failure the orchestrator's hand-written proxy list had twice (`external-cost-recorded`, then
|
|
48
|
+
* the lifecycle events a bare `ChatDriver` never raised). Details typed `unknown` are forwarded
|
|
49
|
+
* as-is and not yet described here.
|
|
50
|
+
*
|
|
51
|
+
* @beta
|
|
52
|
+
*/
|
|
53
|
+
export interface AiDriverEventMap {
|
|
54
|
+
/** The transcript changed. Detail: the full history. */
|
|
55
|
+
'history-updated': CustomEvent<ReadonlyArray<ChatMessage>>;
|
|
56
|
+
/** A sub-agent's own transcript changed. */
|
|
57
|
+
'sub-agent-history-updated': CustomEvent<unknown>;
|
|
58
|
+
/** A sub-agent run started. */
|
|
59
|
+
'sub-agent-start': CustomEvent<unknown>;
|
|
60
|
+
/** A sub-agent run ended. */
|
|
61
|
+
'sub-agent-stop': CustomEvent<unknown>;
|
|
62
|
+
/** A blocking interaction that overrides the chat input opened. */
|
|
63
|
+
'interaction-start': CustomEvent<unknown>;
|
|
64
|
+
/** That interaction settled. */
|
|
65
|
+
'interaction-stop': CustomEvent<{
|
|
66
|
+
interactionId: string;
|
|
67
|
+
}>;
|
|
68
|
+
/** The provider resolved for a turn changed. */
|
|
69
|
+
'provider-changed': CustomEvent<{
|
|
70
|
+
name: string;
|
|
71
|
+
}>;
|
|
72
|
+
/** Spend was recorded against an already-resolved interaction. */
|
|
73
|
+
'external-cost-recorded': CustomEvent<{
|
|
74
|
+
interactionId: string;
|
|
75
|
+
costUsd: number;
|
|
76
|
+
}>;
|
|
77
|
+
/** The active agent changed. Detail: the new agent, or `undefined` after a release. */
|
|
78
|
+
'agent-changed': CustomEvent<AgentConfig | undefined>;
|
|
79
|
+
/** A stateful agent released its flow. Detail: the released agent. */
|
|
80
|
+
'agent-released': CustomEvent<AgentConfig>;
|
|
81
|
+
/** The flow-owner lock changed. Detail: the new owner's name, or `null` when cleared. */
|
|
82
|
+
'flow-owner-changed': CustomEvent<string | null>;
|
|
83
|
+
/** Routing started (the classifier is about to run). Orchestrator only. */
|
|
84
|
+
'orchestrating-start': CustomEvent<undefined>;
|
|
85
|
+
/** Routing finished and an agent is installed. Orchestrator only. */
|
|
86
|
+
'orchestrating-stop': CustomEvent<undefined>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The event types in {@link AiDriverEventMap}, as a runtime list. Built from a record keyed by the
|
|
90
|
+
* map, so adding an event to the map without adding it here is a compile error.
|
|
91
|
+
*
|
|
92
|
+
* @beta
|
|
93
|
+
*/
|
|
94
|
+
export declare const AI_DRIVER_EVENT_TYPES: ReadonlyArray<keyof AiDriverEventMap>;
|
|
39
95
|
/** @internal */
|
|
40
96
|
export interface AllAgentSummary {
|
|
41
97
|
name: string;
|
|
@@ -43,21 +99,22 @@ export interface AllAgentSummary {
|
|
|
43
99
|
tools: ChatToolDefinition[];
|
|
44
100
|
}
|
|
45
101
|
/**
|
|
46
|
-
* Common interface implemented by
|
|
47
|
-
*
|
|
48
|
-
* on this interface — the concrete
|
|
49
|
-
*
|
|
102
|
+
* Common interface implemented by `ChatDriver` (single-agent), `OrchestratingDriver`
|
|
103
|
+
* (multi-agent) and any decorator built on {@link BaseDriverDecorator}. `FoundationAiAssistant`
|
|
104
|
+
* depends only on this interface — the concrete driver is chosen at startup based on how many
|
|
105
|
+
* agents are configured, and may be wrapped.
|
|
50
106
|
*
|
|
51
|
-
* Extends `EventTarget` so consumers can subscribe to
|
|
107
|
+
* Extends `EventTarget` so consumers can subscribe to the events in {@link AiDriverEventMap}
|
|
52
108
|
* without knowing the concrete implementation.
|
|
53
109
|
*
|
|
54
110
|
* @beta
|
|
55
111
|
*/
|
|
56
112
|
export interface AiDriver extends EventTarget {
|
|
57
113
|
/**
|
|
58
|
-
* Send a user message and run the tool loop to completion.
|
|
114
|
+
* Send a user message and run the tool loop to completion. `options.delegate` sends it on the
|
|
115
|
+
* user's behalf instead (GENC-1660): see {@link SendMessageOptions}.
|
|
59
116
|
*/
|
|
60
|
-
sendMessage(input: string, attachments?: ChatAttachment[]): Promise<ChatDriverResult>;
|
|
117
|
+
sendMessage(input: string, attachments?: ChatAttachment[], options?: SendMessageOptions): Promise<ChatDriverResult>;
|
|
61
118
|
/**
|
|
62
119
|
* Continue the tool loop from the current history without appending a new
|
|
63
120
|
* user message. Used by `OrchestratingDriver` on agent handoffs — the
|
|
@@ -127,12 +184,17 @@ export interface AiDriver extends EventTarget {
|
|
|
127
184
|
* than on the next message, then, when `resumeNote` is given and the agent has not opted out,
|
|
128
185
|
* runs one turn from the restored history with the note in the tail of its first model call.
|
|
129
186
|
*
|
|
187
|
+
* `agent` is the flow owner's config, for a driver that holds no list of agents to look it up
|
|
188
|
+
* in (GENC-1660): a config cannot be persisted, so after a reload only its name survives, and
|
|
189
|
+
* whoever runs a bare `ChatDriver` is the one that knows which agent it runs. A driver that does
|
|
190
|
+
* hold a list (the orchestrator) looks the owner up itself and ignores this.
|
|
191
|
+
*
|
|
130
192
|
* Returns the turn's result when one ran, `undefined` otherwise (no flow owner, the owner is not
|
|
131
|
-
* configured, or no note). Never throws for those cases.
|
|
193
|
+
* configured or not given, or no note). Never throws for those cases.
|
|
132
194
|
*
|
|
133
195
|
* @beta
|
|
134
196
|
*/
|
|
135
|
-
resumeRestoredFlow?(resumeNote?: string): Promise<ChatDriverResult | undefined>;
|
|
197
|
+
resumeRestoredFlow?(resumeNote?: string, agent?: AgentConfig): Promise<ChatDriverResult | undefined>;
|
|
136
198
|
/**
|
|
137
199
|
* Return the full, unredacted conversation history.
|
|
138
200
|
*/
|
|
@@ -206,6 +268,54 @@ export interface AiDriver extends EventTarget {
|
|
|
206
268
|
* since that ticket's breaking release.
|
|
207
269
|
*/
|
|
208
270
|
setFlowOwner(name: string | null): void;
|
|
271
|
+
/**
|
|
272
|
+
* The transient flow lock: the name of the stateful agent that owns the current flow, or `null`
|
|
273
|
+
* (GENC-1660). The reading half of {@link AiDriver.setFlowOwner}; changes are announced on
|
|
274
|
+
* `flow-owner-changed`. Lets a decorator scope its behaviour to a flow without reaching for a
|
|
275
|
+
* concrete driver.
|
|
276
|
+
*
|
|
277
|
+
* Optional, so a third-party driver need not implement it; every shipped driver does.
|
|
278
|
+
*
|
|
279
|
+
* @beta
|
|
280
|
+
*/
|
|
281
|
+
getFlowOwner?(): string | null;
|
|
282
|
+
/**
|
|
283
|
+
* Install an {@link InteractionInterceptor}: told about every interaction this driver opens,
|
|
284
|
+
* with its live context, and able to claim it and answer it instead of the person (GENC-1660).
|
|
285
|
+
* Interceptors are asked outermost first and the first claim wins. Returns a remover.
|
|
286
|
+
*
|
|
287
|
+
* Optional, so a third-party driver need not implement it; every shipped driver does.
|
|
288
|
+
*
|
|
289
|
+
* @beta
|
|
290
|
+
*/
|
|
291
|
+
addInteractionInterceptor?(interceptor: InteractionInterceptor): () => void;
|
|
292
|
+
/**
|
|
293
|
+
* Show a widget in the transcript OUTSIDE any tool loop, and resolve with its result
|
|
294
|
+
* (GENC-1660): `requestInteraction` for something that is not a tool handler. How a decorator
|
|
295
|
+
* asks the person something of its own, such as what to do after a turn failed.
|
|
296
|
+
*
|
|
297
|
+
* It takes the one interaction slot like any other, so a turn that requests an interaction
|
|
298
|
+
* while it is open throws. Pass `options.signal` to close it — unanswered, like a timeout — when
|
|
299
|
+
* the moment passes. Interceptors are offered it like any other, with the active agent (if any)
|
|
300
|
+
* as its owner.
|
|
301
|
+
*
|
|
302
|
+
* Optional, so a third-party driver need not implement it; every shipped driver does.
|
|
303
|
+
*
|
|
304
|
+
* @beta
|
|
305
|
+
*/
|
|
306
|
+
presentInteraction?<T = InteractionResult>(componentName: string, data: unknown, options?: InteractionRequestOptions): Promise<T>;
|
|
307
|
+
/**
|
|
308
|
+
* Add a named capability to every tool handler's context, under `context.capabilities[name]`
|
|
309
|
+
* (GENC-1660). How a decorator gives the working agent's handlers something to call — the
|
|
310
|
+
* autopilot's `mode` / `setMode`, say — without the agent knowing the decorator exists.
|
|
311
|
+
* `factory` builds the value per handler call, from who is calling; sub-agents' handlers see
|
|
312
|
+
* their root's capabilities. Returns a remover.
|
|
313
|
+
*
|
|
314
|
+
* Optional, so a third-party driver need not implement it; every shipped driver does.
|
|
315
|
+
*
|
|
316
|
+
* @beta
|
|
317
|
+
*/
|
|
318
|
+
provideHandlerCapability?(name: string, factory: HandlerCapabilityFactory): () => void;
|
|
209
319
|
/**
|
|
210
320
|
* Headroom the next turn could need, and which agent set that requirement
|
|
211
321
|
* (GENC-1582). `undefined` when no agent the turn could land on declares a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/ai-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ai-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/ai-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EACV,kBAAkB,EAClB,0BAA0B,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;OAKG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { ChatAttachment, ChatDriverResult, ChatMessage, InteractionRequestOptions, InteractionResult } from '@genesislcap/foundation-ai';
|
|
2
|
+
import type { AgentConfig } from '../../config/config';
|
|
3
|
+
import type { DiagnosticEntry } from '../../state/persistence/diagnostics';
|
|
4
|
+
import type { HandlerCapabilityFactory } from '../../types/handler-capability';
|
|
5
|
+
import type { InteractionContext } from '../../types/interaction-context';
|
|
6
|
+
import type { InteractionInterceptor } from '../../types/interaction-interceptor';
|
|
7
|
+
import type { PersistedCondensePolicy } from '../../utils/condense-history';
|
|
8
|
+
import type { CompactionProjection } from '../../utils/context-tokens';
|
|
9
|
+
import type { SendMessageOptions } from '../../utils/delegated-message';
|
|
10
|
+
import type { CompactionPlanOptions } from '../../utils/history-transform';
|
|
11
|
+
import type { ContextGuardPolicy, ContinueFromHistoryOptions, TurnSnapshot } from '../chat-driver/chat-driver';
|
|
12
|
+
import { type AiDriver, type AllAgentSummary, type ContextReserveResolution } from './ai-driver';
|
|
13
|
+
/**
|
|
14
|
+
* The base of every driver decorator (GENC-1660): an {@link AiDriver} that wraps another and
|
|
15
|
+
* passes every member, and every event in {@link AiDriverEventMap}, through to it.
|
|
16
|
+
*
|
|
17
|
+
* A decorator extends this and overrides only what it changes, so decorators stack in any order
|
|
18
|
+
* and a member or event added to `AiDriver` reaches the host through every layer by default.
|
|
19
|
+
* `OrchestratingDriver` is one; it used to forward by hand, and twice a member it did not forward
|
|
20
|
+
* silently did nothing for every multi-agent host (`recordExternalCost`, then
|
|
21
|
+
* `getHistoryForPersistence`).
|
|
22
|
+
*
|
|
23
|
+
* Abstract with no abstract members, so it cannot be constructed on its own: a decorator that
|
|
24
|
+
* changes nothing is not one.
|
|
25
|
+
*
|
|
26
|
+
* Optional `AiDriver` members are implemented here unconditionally, as a forward that falls back
|
|
27
|
+
* to the "not supported" answer when the inner driver lacks them. A host that feature-detects with
|
|
28
|
+
* `?.` therefore always finds them, and gets the same answer it would from the inner driver.
|
|
29
|
+
*
|
|
30
|
+
* @beta
|
|
31
|
+
*/
|
|
32
|
+
export declare abstract class BaseDriverDecorator<TInner extends AiDriver = AiDriver> extends EventTarget implements AiDriver {
|
|
33
|
+
protected readonly inner: TInner;
|
|
34
|
+
/** Undoes this layer's hold on its inner driver; see {@link BaseDriverDecorator.detach}. */
|
|
35
|
+
private readonly detachers;
|
|
36
|
+
protected constructor(inner: TInner);
|
|
37
|
+
/**
|
|
38
|
+
* Let go of the inner driver WITHOUT disposing it: stop forwarding its events, and undo whatever
|
|
39
|
+
* a subclass registered through {@link BaseDriverDecorator.onDetach} (its interceptors, its
|
|
40
|
+
* capabilities, its own listeners). For dropping or replacing a decorator while the driver it
|
|
41
|
+
* wrapped lives on — otherwise the old layer keeps re-dispatching every event and is never
|
|
42
|
+
* collected. Idempotent. `dispose()` detaches too.
|
|
43
|
+
*/
|
|
44
|
+
detach(): void;
|
|
45
|
+
/** Register something {@link BaseDriverDecorator.detach} must undo. */
|
|
46
|
+
protected onDetach(undo: () => void): void;
|
|
47
|
+
sendMessage(input: string, attachments?: ChatAttachment[], options?: SendMessageOptions): Promise<ChatDriverResult>;
|
|
48
|
+
continueFromHistory(transientPrimer?: ChatMessage[], options?: ContinueFromHistoryOptions): Promise<ChatDriverResult>;
|
|
49
|
+
resolveInteraction(interactionId: string, result: unknown): void;
|
|
50
|
+
recordExternalCost(interactionId: string, costUsd: number): boolean;
|
|
51
|
+
getInteractionContext(interactionId: string): InteractionContext | undefined;
|
|
52
|
+
loadHistory(messages: ChatMessage[]): void;
|
|
53
|
+
primeRestoredAgentState(snapshots: Record<string, unknown>): void;
|
|
54
|
+
canRestoreFlowOwner(agentName: string): boolean;
|
|
55
|
+
canResumeRestoredFlow(agentName: string): boolean;
|
|
56
|
+
resumeRestoredFlow(resumeNote?: string, agent?: AgentConfig): Promise<ChatDriverResult | undefined>;
|
|
57
|
+
getRawHistory(): readonly ChatMessage[];
|
|
58
|
+
getHistoryForPersistence(): ChatMessage[];
|
|
59
|
+
getCondensePoliciesForPersistence(messages: readonly ChatMessage[]): PersistedCondensePolicy[];
|
|
60
|
+
restoreCondensePolicies(entries: readonly unknown[] | undefined): {
|
|
61
|
+
restored: number;
|
|
62
|
+
awaitingReactivation: number;
|
|
63
|
+
};
|
|
64
|
+
getActiveAgent(): AgentConfig | undefined;
|
|
65
|
+
setPinnedAgent(name: string | null): void;
|
|
66
|
+
setFlowOwner(name: string | null): void;
|
|
67
|
+
getFlowOwner(): string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Forwarded, so an interceptor installed on any layer lands on the driver that opens the
|
|
70
|
+
* interactions. A decorator that answers interactions installs its own on `this.inner`.
|
|
71
|
+
*/
|
|
72
|
+
addInteractionInterceptor(interceptor: InteractionInterceptor): () => void;
|
|
73
|
+
presentInteraction<T = InteractionResult>(componentName: string, data: unknown, options?: InteractionRequestOptions): Promise<T>;
|
|
74
|
+
provideHandlerCapability(name: string, factory: HandlerCapabilityFactory): () => void;
|
|
75
|
+
getContextReserve(): ContextReserveResolution | undefined;
|
|
76
|
+
getPreambleTokens(): number | undefined;
|
|
77
|
+
setContextGuard(policy?: ContextGuardPolicy): void;
|
|
78
|
+
compact(options?: CompactionPlanOptions): Promise<ChatMessage | null>;
|
|
79
|
+
getCompactionPlan(options?: CompactionPlanOptions): CompactionProjection | null;
|
|
80
|
+
canCompact(options?: CompactionPlanOptions): boolean;
|
|
81
|
+
isBusy(): boolean;
|
|
82
|
+
getSuggestions(history: ChatMessage[], prompt: string, count: number, allAgentInfo?: AllAgentSummary[]): Promise<string[]>;
|
|
83
|
+
getTurnSnapshots(): ReadonlyArray<TurnSnapshot>;
|
|
84
|
+
/**
|
|
85
|
+
* The inner driver's entries. Diagnostics compose down the stack: a decorator with entries of
|
|
86
|
+
* its own overrides this and appends them to `super.getExternalDiagnostics()`.
|
|
87
|
+
*/
|
|
88
|
+
getExternalDiagnostics(): ReadonlyArray<DiagnosticEntry>;
|
|
89
|
+
getActiveProviderName(): string;
|
|
90
|
+
dispose(): void | Promise<void>;
|
|
91
|
+
cancel(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Every driver in the stack, outermost first: `driver`, then each inner driver down to the one
|
|
94
|
+
* that is not a decorator.
|
|
95
|
+
*
|
|
96
|
+
* For diagnostics and labelling only: behaviour must go through `AiDriver` members, which every
|
|
97
|
+
* layer forwards, never through a concrete class found here.
|
|
98
|
+
*
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
static layers(driver: AiDriver): AiDriver[];
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=base-driver-decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-driver-decorator.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/base-driver-decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EACV,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oB,GAAG,IAAI;IAI/E,UAAU,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO;IAIpD,MAAM,IAAI,OAAO;IAIjB,cAAc,CACZ,OAAO,EAAE,WAAW,EAAE,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,eAAe,EAAE,GAC/B,OAAO,CAAC,MAAM,EAAE,CAAC;IAIpB,gBAAgB,IAAI,aAAa,CAAC,YAAY,CAAC;IAI/C;;;OAGG;IACH,sBAAsB,IAAI,aAAa,CAAC,eAAe,CAAC;IAIxD,qBAAqB,IAAI,MAAM;IAI/B,OAAO,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAM/B,MAAM,IAAI,IAAI;IAId;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE;CAS5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type { AIProviderRegistry, AIProviderType, ChatAttachment, ChatDriverResult, ChatMessage, InteractionRequestOptions, SubAgentFailureReason, AIServiceRefusal } from '@genesislcap/foundation-ai';
|
|
1
|
+
import type { AIProviderRegistry, AIProviderType, ChatAttachment, ChatDriverResult, ChatMessage, InteractionRequestOptions, InteractionResult, SubAgentFailureReason, AIServiceRefusal } from '@genesislcap/foundation-ai';
|
|
2
2
|
import { AIServiceError, BudgetExhaustedError } from '@genesislcap/foundation-ai';
|
|
3
3
|
import { type ActivityBus } from '../../channel/ai-activity-bus';
|
|
4
4
|
import type { AgentConfig, SystemPromptInput, ToolDefinitionsInput, ToolHandlersInput } from '../../config/config';
|
|
5
5
|
import type { DiagnosticEntry } from '../../state/persistence/diagnostics';
|
|
6
|
+
import type { HandlerCapabilityFactory } from '../../types/handler-capability';
|
|
6
7
|
import type { InteractionContext } from '../../types/interaction-context';
|
|
8
|
+
import type { InteractionInterceptor } from '../../types/interaction-interceptor';
|
|
7
9
|
import { type PersistedCondensePolicy } from '../../utils/condense-history';
|
|
8
10
|
import { type CompactionProjection } from '../../utils/context-tokens';
|
|
11
|
+
import { type SendMessageOptions } from '../../utils/delegated-message';
|
|
9
12
|
import { type CompactionPlanOptions } from '../../utils/history-transform';
|
|
10
13
|
import { AgentSession } from '../agent-session/agent-session';
|
|
11
14
|
import type { AiDriver, AllAgentSummary } from '../ai-driver/ai-driver';
|
|
12
|
-
import { type InteractionRequester } from './interaction-controller';
|
|
15
|
+
import { type InteractionRequester, type InteractionSettled } from './interaction-controller';
|
|
13
16
|
import { type TurnSnapshot } from './turn-recorder';
|
|
14
17
|
/** Re-exported so `from './chat-driver'` keeps resolving these. */
|
|
15
18
|
export { EMPTY_RESPONSE_NUDGE, MALFORMED_CALL_NUDGE, REQUEST_CONTINUATION_TOOL, } from './chat-driver.constants';
|
|
@@ -114,10 +117,10 @@ export interface ChatDriverConfig {
|
|
|
114
117
|
* Leave acting on `releaseAgent` to the owner of this driver.
|
|
115
118
|
*
|
|
116
119
|
* Set by `OrchestratingDriver` for its inner driver, which performs the release itself after the
|
|
117
|
-
* turn
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
120
|
+
* turn, because a release ends its handoff loop and it reads the flag to know. Both drivers share
|
|
121
|
+
* one `AgentSession`, and releasing here first would clear the flag before the orchestrator saw
|
|
122
|
+
* it. The host-facing `agent-released` / `agent-changed` / `flow-owner-changed` events fire from
|
|
123
|
+
* the session's transition either way (GENC-1485).
|
|
121
124
|
*
|
|
122
125
|
* Left unset, a driver releases its own agent, which is what a bare `ChatDriver` needs: nothing
|
|
123
126
|
* else is watching the flag.
|
|
@@ -393,6 +396,13 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
393
396
|
private unlinkLifecycleFromMessage?;
|
|
394
397
|
/** A sub-agent runs inside its parent's message: the parent's `turnSignal`, handed down. */
|
|
395
398
|
private inheritedTurnSignal?;
|
|
399
|
+
/** Capabilities provided on this driver by decorators (GENC-1660). Only the root's are used. */
|
|
400
|
+
private readonly handlerCapabilities;
|
|
401
|
+
/**
|
|
402
|
+
* For a sub-agent's driver, the driver that invoked it: its capabilities, flow owner and owner
|
|
403
|
+
* path are the ones this driver's handlers see, so a capability reaches sub-agents unchanged.
|
|
404
|
+
*/
|
|
405
|
+
private capabilityParent?;
|
|
396
406
|
/**
|
|
397
407
|
* Active agent's provider selector (static name or per-turn resolver).
|
|
398
408
|
* `undefined` means "use the registry default".
|
|
@@ -497,6 +507,11 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
497
507
|
* the point: two would let `getActiveAgent()` disagree between the outer and inner driver.
|
|
498
508
|
* `@internal` rather than private so that reach is legal without six delegating one-liners.
|
|
499
509
|
*
|
|
510
|
+
* **This driver raises the lifecycle events for every transition of the session**, whoever made
|
|
511
|
+
* it: itself, through {@link ChatDriver.activateAgent} or a release, or the orchestrator reaching
|
|
512
|
+
* through (GENC-1485). Before, only the orchestrator dispatched them, so a host on a bare
|
|
513
|
+
* `ChatDriver` never learned its flow owner.
|
|
514
|
+
*
|
|
500
515
|
* @internal
|
|
501
516
|
*/
|
|
502
517
|
readonly agentSession: AgentSession;
|
|
@@ -770,6 +785,30 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
770
785
|
* @beta
|
|
771
786
|
*/
|
|
772
787
|
activateAgent(config: AgentConfig): Promise<void>;
|
|
788
|
+
/**
|
|
789
|
+
* {@inheritDoc AiDriver.resumeRestoredFlow}
|
|
790
|
+
*
|
|
791
|
+
* This driver holds no list of agents, so it resumes only the `agent` it is handed (GENC-1660):
|
|
792
|
+
* whoever runs a bare `ChatDriver` knows which agent that is, and after a reload only the name
|
|
793
|
+
* survived. Without one it does nothing, as a driver without this member did before; given one
|
|
794
|
+
* that is not the restored flow owner, it refuses.
|
|
795
|
+
*
|
|
796
|
+
* For headless callers: the shipped host restores and resumes through `OrchestratingDriver`,
|
|
797
|
+
* and a bare `ChatDriver` does not answer `canRestoreFlowOwner`, so the host never plans a resume
|
|
798
|
+
* for one.
|
|
799
|
+
*
|
|
800
|
+
* The orchestrator does not delegate here, because it installs a decorated config of its own;
|
|
801
|
+
* this is the bare-driver path.
|
|
802
|
+
*
|
|
803
|
+
* @beta
|
|
804
|
+
*/
|
|
805
|
+
resumeRestoredFlow(resumeNote?: string, agent?: AgentConfig): Promise<ChatDriverResult | undefined>;
|
|
806
|
+
/**
|
|
807
|
+
* Raise the host-facing lifecycle events for one session transition (GENC-1485), in the order
|
|
808
|
+
* the orchestrator raised them before it stopped doing so itself: the flow lock first, then the
|
|
809
|
+
* release, then the active agent.
|
|
810
|
+
*/
|
|
811
|
+
private dispatchAgentTransition;
|
|
773
812
|
/**
|
|
774
813
|
* {@inheritDoc AiDriver.getActiveAgent}
|
|
775
814
|
*
|
|
@@ -797,6 +836,12 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
797
836
|
* @beta
|
|
798
837
|
*/
|
|
799
838
|
setFlowOwner(name: string | null): void;
|
|
839
|
+
/**
|
|
840
|
+
* {@inheritDoc AiDriver.getFlowOwner}
|
|
841
|
+
*
|
|
842
|
+
* @beta
|
|
843
|
+
*/
|
|
844
|
+
getFlowOwner(): string | null;
|
|
800
845
|
/**
|
|
801
846
|
* Install `config` as the active agent **without firing lifecycle hooks**.
|
|
802
847
|
*
|
|
@@ -1099,7 +1144,38 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
1099
1144
|
* and `presentation` to control whether the host wraps the widget in a chat
|
|
1100
1145
|
* bubble and/or shows the "Assistant" label.
|
|
1101
1146
|
*/
|
|
1102
|
-
requestInteraction<T>(componentName: string, data: any, options?: InteractionRequestOptions, onOpened?: (interactionId: string) => void): Promise<T>;
|
|
1147
|
+
requestInteraction<T>(componentName: string, data: any, options?: InteractionRequestOptions, onOpened?: (interactionId: string) => void, innerPath?: readonly string[], onSettled?: (settled: InteractionSettled) => void): Promise<T>;
|
|
1148
|
+
/**
|
|
1149
|
+
* {@inheritDoc AiDriver.addInteractionInterceptor}
|
|
1150
|
+
*
|
|
1151
|
+
* Consulted only on the root driver, where every interaction opens: a sub-agent's request
|
|
1152
|
+
* travels up to its root, carrying its owner path, and is offered there once.
|
|
1153
|
+
*
|
|
1154
|
+
* @beta
|
|
1155
|
+
*/
|
|
1156
|
+
addInteractionInterceptor(interceptor: InteractionInterceptor): () => void;
|
|
1157
|
+
/**
|
|
1158
|
+
* {@inheritDoc AiDriver.presentInteraction}
|
|
1159
|
+
*
|
|
1160
|
+
* @beta
|
|
1161
|
+
*/
|
|
1162
|
+
presentInteraction<T = InteractionResult>(componentName: string, data: unknown, options?: InteractionRequestOptions): Promise<T>;
|
|
1163
|
+
/**
|
|
1164
|
+
* {@inheritDoc AiDriver.provideHandlerCapability}
|
|
1165
|
+
*
|
|
1166
|
+
* Throws if `name` is already provided: two decorators answering to one name would leave a
|
|
1167
|
+
* handler unable to tell which it is talking to.
|
|
1168
|
+
*
|
|
1169
|
+
* @beta
|
|
1170
|
+
*/
|
|
1171
|
+
provideHandlerCapability(name: string, factory: HandlerCapabilityFactory): () => void;
|
|
1172
|
+
/**
|
|
1173
|
+
* The capabilities this driver's handlers see, and who they see them as: the root's factories,
|
|
1174
|
+
* the root's flow owner, and the owner path from the root down to this driver's agent.
|
|
1175
|
+
*/
|
|
1176
|
+
private capabilityScope;
|
|
1177
|
+
/** Build `context.capabilities` for one handler call, or `undefined` when nothing is provided. */
|
|
1178
|
+
private buildCapabilities;
|
|
1103
1179
|
/**
|
|
1104
1180
|
* Record what came of an interaction, after it resolved, on its history message
|
|
1105
1181
|
* (`interaction.outcome`): handed to its widget and persisted with the session, never sent to a
|
|
@@ -1154,7 +1230,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
1154
1230
|
* can continue an existing conversation. Call this before the first user message.
|
|
1155
1231
|
*/
|
|
1156
1232
|
loadHistory(messages: ChatMessage[]): void;
|
|
1157
|
-
sendMessage(userInput: string, attachments?: ChatAttachment[]): Promise<ChatDriverResult>;
|
|
1233
|
+
sendMessage(userInput: string, attachments?: ChatAttachment[], options?: SendMessageOptions): Promise<ChatDriverResult>;
|
|
1158
1234
|
/**
|
|
1159
1235
|
* Builds the context object passed to every tool handler call.
|
|
1160
1236
|
* Centralised here so fold shortcut dispatch and the main tool loop use the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,gBAAgB,EAGhB,WAAW,EAQX,yBAAyB,EACzB,qBAAqB,EAGrB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EACd,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EAKX,iBAAiB,EAKjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAML,KAAK,uBAAuB,EA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