@genesislcap/ai-assistant 14.452.0 → 14.452.1-alpha-9f63574.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 +74 -3
- package/dist/ai-assistant.d.ts +62 -4
- package/dist/dts/components/chat-driver/chat-driver.d.ts +60 -3
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +1 -1
- 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/esm/components/chat-driver/chat-driver.js +152 -25
- package/dist/esm/components/chat-driver/chat-driver.test.js +130 -0
- package/dist/esm/main/main.js +1 -1
- package/dist/esm/state/debug-event-log.js +2 -1
- package/docs/migration-GENC-1312.md +176 -0
- package/docs/sub_agent.md +35 -15
- package/package.json +16 -16
- package/src/components/chat-driver/chat-driver.test.ts +183 -0
- package/src/components/chat-driver/chat-driver.ts +179 -32
- package/src/main/main.ts +1 -1
- package/src/state/debug-event-log.ts +3 -1
|
@@ -2986,6 +2986,46 @@
|
|
|
2986
2986
|
"isAbstract": false,
|
|
2987
2987
|
"name": "getSubAgentCompletion"
|
|
2988
2988
|
},
|
|
2989
|
+
{
|
|
2990
|
+
"kind": "Method",
|
|
2991
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getSubAgentFailure:member(1)",
|
|
2992
|
+
"docComment": "/**\n * Returns the typed failure recorded when a sub-agent run ended without `completeSubAgent`, if any. Called by a parent `ChatDriver` after running this instance as a sub-agent.\n */\n",
|
|
2993
|
+
"excerptTokens": [
|
|
2994
|
+
{
|
|
2995
|
+
"kind": "Content",
|
|
2996
|
+
"text": "getSubAgentFailure(): "
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
"kind": "Content",
|
|
3000
|
+
"text": "{\n reason: "
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
"kind": "Reference",
|
|
3004
|
+
"text": "SubAgentFailureReason",
|
|
3005
|
+
"canonicalReference": "@genesislcap/foundation-ai!SubAgentFailureReason:type"
|
|
3006
|
+
},
|
|
3007
|
+
{
|
|
3008
|
+
"kind": "Content",
|
|
3009
|
+
"text": ";\n } | undefined"
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"kind": "Content",
|
|
3013
|
+
"text": ";"
|
|
3014
|
+
}
|
|
3015
|
+
],
|
|
3016
|
+
"isStatic": false,
|
|
3017
|
+
"returnTypeTokenRange": {
|
|
3018
|
+
"startIndex": 1,
|
|
3019
|
+
"endIndex": 4
|
|
3020
|
+
},
|
|
3021
|
+
"releaseTag": "Beta",
|
|
3022
|
+
"isProtected": false,
|
|
3023
|
+
"overloadIndex": 1,
|
|
3024
|
+
"parameters": [],
|
|
3025
|
+
"isOptional": false,
|
|
3026
|
+
"isAbstract": false,
|
|
3027
|
+
"name": "getSubAgentFailure"
|
|
3028
|
+
},
|
|
2989
3029
|
{
|
|
2990
3030
|
"kind": "Method",
|
|
2991
3031
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getSuggestions:member(1)",
|
|
@@ -3226,6 +3266,37 @@
|
|
|
3226
3266
|
"isAbstract": false,
|
|
3227
3267
|
"name": "loadHistory"
|
|
3228
3268
|
},
|
|
3269
|
+
{
|
|
3270
|
+
"kind": "Method",
|
|
3271
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#markAsSubAgent:member(1)",
|
|
3272
|
+
"docComment": "/**\n * Mark this driver as running as a sub-agent. Called by a parent driver's `invokeSubAgent` immediately after construction, before the first turn. Enables forced tool use and typed failure reporting (see `isSubAgent`).\n */\n",
|
|
3273
|
+
"excerptTokens": [
|
|
3274
|
+
{
|
|
3275
|
+
"kind": "Content",
|
|
3276
|
+
"text": "markAsSubAgent(): "
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"kind": "Content",
|
|
3280
|
+
"text": "void"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
"kind": "Content",
|
|
3284
|
+
"text": ";"
|
|
3285
|
+
}
|
|
3286
|
+
],
|
|
3287
|
+
"isStatic": false,
|
|
3288
|
+
"returnTypeTokenRange": {
|
|
3289
|
+
"startIndex": 1,
|
|
3290
|
+
"endIndex": 2
|
|
3291
|
+
},
|
|
3292
|
+
"releaseTag": "Beta",
|
|
3293
|
+
"isProtected": false,
|
|
3294
|
+
"overloadIndex": 1,
|
|
3295
|
+
"parameters": [],
|
|
3296
|
+
"isOptional": false,
|
|
3297
|
+
"isAbstract": false,
|
|
3298
|
+
"name": "markAsSubAgent"
|
|
3299
|
+
},
|
|
3229
3300
|
{
|
|
3230
3301
|
"kind": "Method",
|
|
3231
3302
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#requestInteraction:member(1)",
|
|
@@ -4955,7 +5026,7 @@
|
|
|
4955
5026
|
},
|
|
4956
5027
|
{
|
|
4957
5028
|
"kind": "Content",
|
|
4958
|
-
"text": "{\n readme: readonly string[];\n timeline: ({\n systemPrompt: string;\n turnIndex:
|
|
5029
|
+
"text": "{\n readme: readonly string[];\n timeline: ({\n systemPrompt: string;\n turnIndex: string;\n timestamp: string;\n agentName?: string;\n toolNames: string[];\n agentLabel?: string;\n agentSnapshot?: unknown;\n kind: \"turn\";\n } | {\n role: import(\"@genesislcap/foundation-ai\")."
|
|
4959
5030
|
},
|
|
4960
5031
|
{
|
|
4961
5032
|
"kind": "Reference",
|
|
@@ -9800,7 +9871,7 @@
|
|
|
9800
9871
|
{
|
|
9801
9872
|
"kind": "PropertySignature",
|
|
9802
9873
|
"canonicalReference": "@genesislcap/ai-assistant!TurnSnapshot#turnIndex:member",
|
|
9803
|
-
"docComment": "/**\n *
|
|
9874
|
+
"docComment": "/**\n * Turn identifier, always a string. A driver's own turns are the bare counter (`\"0\"`, `\"1\"`, … — monotonic, does not reset on agent swap). Turns forwarded up from a sub-agent are re-labelled under the parent turn that activated them — a sub-agent invoked on parent turn 5 contributes `\"5-1\"`, `\"5-2\"`, …, and a nested sub-agent on `\"5-2\"` contributes `\"5-2-1\"`, …. See `forwardSubAgentSnapshots`.\n */\n",
|
|
9804
9875
|
"excerptTokens": [
|
|
9805
9876
|
{
|
|
9806
9877
|
"kind": "Content",
|
|
@@ -9808,7 +9879,7 @@
|
|
|
9808
9879
|
},
|
|
9809
9880
|
{
|
|
9810
9881
|
"kind": "Content",
|
|
9811
|
-
"text": "
|
|
9882
|
+
"text": "string"
|
|
9812
9883
|
},
|
|
9813
9884
|
{
|
|
9814
9885
|
"kind": "Content",
|
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { ChatToolResult } from '@genesislcap/foundation-ai';
|
|
|
15
15
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
16
16
|
import type { InteractionRequestOptions } from '@genesislcap/foundation-ai';
|
|
17
17
|
import type { InteractionResult } from '@genesislcap/foundation-ai';
|
|
18
|
+
import type { SubAgentFailureReason } from '@genesislcap/foundation-ai';
|
|
18
19
|
import { ViewTemplate } from '@genesislcap/web-core';
|
|
19
20
|
|
|
20
21
|
/** Sentinel value used by the segmented control / select to represent "Auto". */
|
|
@@ -656,6 +657,20 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
656
657
|
* `undefined` means the loop has not been stopped early.
|
|
657
658
|
*/
|
|
658
659
|
private subAgentCompletion;
|
|
660
|
+
/**
|
|
661
|
+
* True when this driver runs as a child sub-agent (created by a parent
|
|
662
|
+
* driver's `invokeSubAgent`). Sub-agents force tool use every turn so a turn
|
|
663
|
+
* can only end via their completion tool, and on any non-completion exit they
|
|
664
|
+
* record a typed `SubAgentFailureReason` instead of appending a
|
|
665
|
+
* user-facing message — the parent decides how to surface the failure.
|
|
666
|
+
*/
|
|
667
|
+
private isSubAgent;
|
|
668
|
+
/**
|
|
669
|
+
* Set when a sub-agent's tool loop ends without `completeSubAgent` being
|
|
670
|
+
* called. Read by the parent's `invokeSubAgent` to build the `{ ok: false }`
|
|
671
|
+
* branch of `requestSubAgent`. Only ever set when `isSubAgent` is true.
|
|
672
|
+
*/
|
|
673
|
+
private subAgentFailure;
|
|
659
674
|
/**
|
|
660
675
|
* Set by `releaseAgent` inside a top-level tool handler — typically a stateful
|
|
661
676
|
* agent's terminal-state handler signalling that its flow is complete and the
|
|
@@ -726,6 +741,29 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
726
741
|
getSubAgentCompletion(): {
|
|
727
742
|
result: unknown;
|
|
728
743
|
} | undefined;
|
|
744
|
+
/**
|
|
745
|
+
* Mark this driver as running as a sub-agent. Called by a parent driver's
|
|
746
|
+
* `invokeSubAgent` immediately after construction, before the first turn.
|
|
747
|
+
* Enables forced tool use and typed failure reporting (see `isSubAgent`).
|
|
748
|
+
*/
|
|
749
|
+
markAsSubAgent(): void;
|
|
750
|
+
/**
|
|
751
|
+
* Returns the typed failure recorded when a sub-agent run ended without
|
|
752
|
+
* `completeSubAgent`, if any. Called by a parent `ChatDriver` after running
|
|
753
|
+
* this instance as a sub-agent.
|
|
754
|
+
*/
|
|
755
|
+
getSubAgentFailure(): {
|
|
756
|
+
reason: SubAgentFailureReason;
|
|
757
|
+
} | undefined;
|
|
758
|
+
/**
|
|
759
|
+
* Record a sub-agent failure reason (first one wins). No-op for top-level
|
|
760
|
+
* agents, so loop-exit sites can call it unconditionally. The parent reads
|
|
761
|
+
* this via `getSubAgentFailure()` and emits the `subagent.failed` meta event
|
|
762
|
+
* under its *own* session — see `invokeSubAgent`. (A child sub-agent runs
|
|
763
|
+
* under a separate session key, so recording here would orphan the event off
|
|
764
|
+
* the user-visible debug-log timeline.)
|
|
765
|
+
*/
|
|
766
|
+
private failSubAgent;
|
|
729
767
|
/**
|
|
730
768
|
* Returns true if `releaseAgent` was called during the most recent turn.
|
|
731
769
|
* Consumed by the orchestrator to trigger the auto-pin release path.
|
|
@@ -739,6 +777,19 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
739
777
|
* Ring-buffered at `MAX_TURN_SNAPSHOTS`; older entries are dropped.
|
|
740
778
|
*/
|
|
741
779
|
getTurnSnapshots(): ReadonlyArray<TurnSnapshot>;
|
|
780
|
+
/**
|
|
781
|
+
* Merge a sub-agent's turn snapshots into this driver's buffer so they surface
|
|
782
|
+
* as `kind:'turn'` entries in the exported debug log. The child runs as a
|
|
783
|
+
* separate, discarded driver, so its snapshots would otherwise be lost. Each is
|
|
784
|
+
* re-labelled under the parent turn that activated the sub-agent: the child's
|
|
785
|
+
* own (numeric) turns become `"<parentTurn>-1"`, `"-2"`, … (1-based, in order);
|
|
786
|
+
* any already-forwarded grand-child labels (strings) have their leading segment
|
|
787
|
+
* remapped the same way, so nesting composes (`"5-2"` → `"5-2-1"`).
|
|
788
|
+
*
|
|
789
|
+
* Note: two sub-agents invoked in the *same* parent turn share the prefix, so
|
|
790
|
+
* their labels can repeat — `agentName` on each snapshot disambiguates them.
|
|
791
|
+
*/
|
|
792
|
+
private forwardSubAgentSnapshots;
|
|
742
793
|
/**
|
|
743
794
|
* Push one snapshot to the ring buffer. Called inside `runToolLoop` just
|
|
744
795
|
* before each LLM call — that's the latest point where the prompt, tool
|
|
@@ -1346,7 +1397,7 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
1346
1397
|
readme: readonly string[];
|
|
1347
1398
|
timeline: ({
|
|
1348
1399
|
systemPrompt: string;
|
|
1349
|
-
turnIndex:
|
|
1400
|
+
turnIndex: string;
|
|
1350
1401
|
timestamp: string;
|
|
1351
1402
|
agentName?: string;
|
|
1352
1403
|
toolNames: string[];
|
|
@@ -1605,7 +1656,7 @@ declare type MetaEventImportance = 'high' | 'normal' | 'low';
|
|
|
1605
1656
|
* Catalogue of meta event names. This is the documented surface — extend it as
|
|
1606
1657
|
* new events are wired in (Tier 2/3 lifecycle, interaction, provider events).
|
|
1607
1658
|
*/
|
|
1608
|
-
declare type MetaEventType = 'assistant.connected' | 'assistant.disconnected' | 'assistant.popout' | 'assistant.popin' | 'driver.created' | 'driver.wired' | 'driver.unwired' | 'state.changed' | 'turn.start' | 'turn.end' | 'turn.retry' | 'turn.error' | 'tool.failed' | 'tool.unresolved' | 'agent.handoff' | 'agent.pinned' | 'agent.unpinned' | 'provider.selected' | 'interaction.requested' | 'interaction.resolved' | 'context.updated' | 'context.threshold-crossed' | 'panel.toggled' | 'attachment.added' | 'file.read-failed' | 'suggestions.failed';
|
|
1659
|
+
declare type MetaEventType = 'assistant.connected' | 'assistant.disconnected' | 'assistant.popout' | 'assistant.popin' | 'driver.created' | 'driver.wired' | 'driver.unwired' | 'state.changed' | 'turn.start' | 'turn.end' | 'turn.retry' | 'turn.error' | 'tool.failed' | 'tool.unresolved' | 'subagent.failed' | 'agent.handoff' | 'agent.pinned' | 'agent.unpinned' | 'provider.selected' | 'interaction.requested' | 'interaction.resolved' | 'context.updated' | 'context.threshold-crossed' | 'panel.toggled' | 'attachment.added' | 'file.read-failed' | 'suggestions.failed';
|
|
1609
1660
|
|
|
1610
1661
|
/**
|
|
1611
1662
|
* Orchestrates multiple specialist agents. Sits between `FoundationAiAssistant`
|
|
@@ -2051,8 +2102,15 @@ export declare interface ToolTreeNode extends ChatToolDefinition {
|
|
|
2051
2102
|
* @beta
|
|
2052
2103
|
*/
|
|
2053
2104
|
export declare interface TurnSnapshot {
|
|
2054
|
-
/**
|
|
2055
|
-
|
|
2105
|
+
/**
|
|
2106
|
+
* Turn identifier, always a string. A driver's own turns are the bare counter
|
|
2107
|
+
* (`"0"`, `"1"`, … — monotonic, does not reset on agent swap). Turns forwarded
|
|
2108
|
+
* up from a sub-agent are re-labelled under the parent turn that activated them
|
|
2109
|
+
* — a sub-agent invoked on parent turn 5 contributes `"5-1"`, `"5-2"`, …, and a
|
|
2110
|
+
* nested sub-agent on `"5-2"` contributes `"5-2-1"`, …. See
|
|
2111
|
+
* `forwardSubAgentSnapshots`.
|
|
2112
|
+
*/
|
|
2113
|
+
turnIndex: string;
|
|
2056
2114
|
/** ISO timestamp captured just before the LLM call. */
|
|
2057
2115
|
timestamp: string;
|
|
2058
2116
|
/** Name of the agent active when this LLM call ran. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AIProviderRegistry, ChatAttachment, ChatDriverResult, ChatMessage, InteractionRequestOptions } from '@genesislcap/foundation-ai';
|
|
1
|
+
import type { AIProviderRegistry, ChatAttachment, ChatDriverResult, ChatMessage, InteractionRequestOptions, SubAgentFailureReason } from '@genesislcap/foundation-ai';
|
|
2
2
|
import type { AgentConfig, SystemPromptInput, ToolDefinitionsInput, ToolHandlersInput } from '../../config/config';
|
|
3
3
|
import type { AiDriver, AllAgentSummary } from '../ai-driver/ai-driver';
|
|
4
4
|
/** Name reserved for the cross-agent handoff tool — injected by OrchestratingDriver. */
|
|
@@ -20,8 +20,15 @@ export type ChatHistoryUpdatedEvent = CustomEvent<ReadonlyArray<ChatMessage>>;
|
|
|
20
20
|
* @beta
|
|
21
21
|
*/
|
|
22
22
|
export interface TurnSnapshot {
|
|
23
|
-
/**
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Turn identifier, always a string. A driver's own turns are the bare counter
|
|
25
|
+
* (`"0"`, `"1"`, … — monotonic, does not reset on agent swap). Turns forwarded
|
|
26
|
+
* up from a sub-agent are re-labelled under the parent turn that activated them
|
|
27
|
+
* — a sub-agent invoked on parent turn 5 contributes `"5-1"`, `"5-2"`, …, and a
|
|
28
|
+
* nested sub-agent on `"5-2"` contributes `"5-2-1"`, …. See
|
|
29
|
+
* `forwardSubAgentSnapshots`.
|
|
30
|
+
*/
|
|
31
|
+
turnIndex: string;
|
|
25
32
|
/** ISO timestamp captured just before the LLM call. */
|
|
26
33
|
timestamp: string;
|
|
27
34
|
/** Name of the agent active when this LLM call ran. */
|
|
@@ -147,6 +154,20 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
147
154
|
* `undefined` means the loop has not been stopped early.
|
|
148
155
|
*/
|
|
149
156
|
private subAgentCompletion;
|
|
157
|
+
/**
|
|
158
|
+
* True when this driver runs as a child sub-agent (created by a parent
|
|
159
|
+
* driver's `invokeSubAgent`). Sub-agents force tool use every turn so a turn
|
|
160
|
+
* can only end via their completion tool, and on any non-completion exit they
|
|
161
|
+
* record a typed `SubAgentFailureReason` instead of appending a
|
|
162
|
+
* user-facing message — the parent decides how to surface the failure.
|
|
163
|
+
*/
|
|
164
|
+
private isSubAgent;
|
|
165
|
+
/**
|
|
166
|
+
* Set when a sub-agent's tool loop ends without `completeSubAgent` being
|
|
167
|
+
* called. Read by the parent's `invokeSubAgent` to build the `{ ok: false }`
|
|
168
|
+
* branch of `requestSubAgent`. Only ever set when `isSubAgent` is true.
|
|
169
|
+
*/
|
|
170
|
+
private subAgentFailure;
|
|
150
171
|
/**
|
|
151
172
|
* Set by `releaseAgent` inside a top-level tool handler — typically a stateful
|
|
152
173
|
* agent's terminal-state handler signalling that its flow is complete and the
|
|
@@ -217,6 +238,29 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
217
238
|
getSubAgentCompletion(): {
|
|
218
239
|
result: unknown;
|
|
219
240
|
} | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* Mark this driver as running as a sub-agent. Called by a parent driver's
|
|
243
|
+
* `invokeSubAgent` immediately after construction, before the first turn.
|
|
244
|
+
* Enables forced tool use and typed failure reporting (see `isSubAgent`).
|
|
245
|
+
*/
|
|
246
|
+
markAsSubAgent(): void;
|
|
247
|
+
/**
|
|
248
|
+
* Returns the typed failure recorded when a sub-agent run ended without
|
|
249
|
+
* `completeSubAgent`, if any. Called by a parent `ChatDriver` after running
|
|
250
|
+
* this instance as a sub-agent.
|
|
251
|
+
*/
|
|
252
|
+
getSubAgentFailure(): {
|
|
253
|
+
reason: SubAgentFailureReason;
|
|
254
|
+
} | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* Record a sub-agent failure reason (first one wins). No-op for top-level
|
|
257
|
+
* agents, so loop-exit sites can call it unconditionally. The parent reads
|
|
258
|
+
* this via `getSubAgentFailure()` and emits the `subagent.failed` meta event
|
|
259
|
+
* under its *own* session — see `invokeSubAgent`. (A child sub-agent runs
|
|
260
|
+
* under a separate session key, so recording here would orphan the event off
|
|
261
|
+
* the user-visible debug-log timeline.)
|
|
262
|
+
*/
|
|
263
|
+
private failSubAgent;
|
|
220
264
|
/**
|
|
221
265
|
* Returns true if `releaseAgent` was called during the most recent turn.
|
|
222
266
|
* Consumed by the orchestrator to trigger the auto-pin release path.
|
|
@@ -230,6 +274,19 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
230
274
|
* Ring-buffered at `MAX_TURN_SNAPSHOTS`; older entries are dropped.
|
|
231
275
|
*/
|
|
232
276
|
getTurnSnapshots(): ReadonlyArray<TurnSnapshot>;
|
|
277
|
+
/**
|
|
278
|
+
* Merge a sub-agent's turn snapshots into this driver's buffer so they surface
|
|
279
|
+
* as `kind:'turn'` entries in the exported debug log. The child runs as a
|
|
280
|
+
* separate, discarded driver, so its snapshots would otherwise be lost. Each is
|
|
281
|
+
* re-labelled under the parent turn that activated the sub-agent: the child's
|
|
282
|
+
* own (numeric) turns become `"<parentTurn>-1"`, `"-2"`, … (1-based, in order);
|
|
283
|
+
* any already-forwarded grand-child labels (strings) have their leading segment
|
|
284
|
+
* remapped the same way, so nesting composes (`"5-2"` → `"5-2-1"`).
|
|
285
|
+
*
|
|
286
|
+
* Note: two sub-agents invoked in the *same* parent turn share the prefix, so
|
|
287
|
+
* their labels can repeat — `agentName` on each snapshot disambiguates them.
|
|
288
|
+
*/
|
|
289
|
+
private forwardSubAgentSnapshots;
|
|
233
290
|
/**
|
|
234
291
|
* Push one snapshot to the ring buffer. Called inside `runToolLoop` just
|
|
235
292
|
* before each LLM call — that's the latest point where the prompt, tool
|
|
@@ -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,cA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;OAGG;IACG,mBAAmB,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA2CrF,wFAAwF;IACxF,OAAO,CAAC,OAAO;IAKf;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;;;;;;;OASG;IACH,OAAO,CAAC,cAAc;IAMtB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA+BxB,uFAAuF;IACvF,OAAO,CAAC,QAAQ;IAqChB,OAAO,CAAC,aAAa;IAQrB,8EAA8E;IAC9E,OAAO,CAAC,SAAS;IAWjB,mFAAmF;IACnF,OAAO,CAAC,2BAA2B;YAkCrB,WAAW;IAmiBzB,OAAO,CAAC,eAAe;CAoBxB"}
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -359,7 +359,7 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
359
359
|
readme: readonly string[];
|
|
360
360
|
timeline: ({
|
|
361
361
|
systemPrompt: string;
|
|
362
|
-
turnIndex:
|
|
362
|
+
turnIndex: string;
|
|
363
363
|
timestamp: string;
|
|
364
364
|
agentName?: string;
|
|
365
365
|
toolNames: string[];
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* Catalogue of meta event names. This is the documented surface — extend it as
|
|
28
28
|
* new events are wired in (Tier 2/3 lifecycle, interaction, provider events).
|
|
29
29
|
*/
|
|
30
|
-
export type MetaEventType = 'assistant.connected' | 'assistant.disconnected' | 'assistant.popout' | 'assistant.popin' | 'driver.created' | 'driver.wired' | 'driver.unwired' | 'state.changed' | 'turn.start' | 'turn.end' | 'turn.retry' | 'turn.error' | 'tool.failed' | 'tool.unresolved' | 'agent.handoff' | 'agent.pinned' | 'agent.unpinned' | 'provider.selected' | 'interaction.requested' | 'interaction.resolved' | 'context.updated' | 'context.threshold-crossed' | 'panel.toggled' | 'attachment.added' | 'file.read-failed' | 'suggestions.failed';
|
|
30
|
+
export type MetaEventType = 'assistant.connected' | 'assistant.disconnected' | 'assistant.popout' | 'assistant.popin' | 'driver.created' | 'driver.wired' | 'driver.unwired' | 'state.changed' | 'turn.start' | 'turn.end' | 'turn.retry' | 'turn.error' | 'tool.failed' | 'tool.unresolved' | 'subagent.failed' | 'agent.handoff' | 'agent.pinned' | 'agent.unpinned' | 'provider.selected' | 'interaction.requested' | 'interaction.resolved' | 'context.updated' | 'context.threshold-crossed' | 'panel.toggled' | 'attachment.added' | 'file.read-failed' | 'suggestions.failed';
|
|
31
31
|
/**
|
|
32
32
|
* How much a reader should care about an event — lets a consumer (or an AI
|
|
33
33
|
* agent) filter the timeline: skip `low` UI/bookkeeping noise, skim `normal`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-event-log.d.ts","sourceRoot":"","sources":["../../../src/state/debug-event-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;GAGG;AACH,MAAM,MAAM,aAAa,GAErB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,GAClB,iBAAiB,GAEjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAEhB,eAAe,GACf,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,iBAAiB,GAEjB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GAEnB,uBAAuB,GACvB,sBAAsB,GAEtB,iBAAiB,GACjB,2BAA2B,GAE3B,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,CAAC;AAEzB;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"debug-event-log.d.ts","sourceRoot":"","sources":["../../../src/state/debug-event-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;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