@genesislcap/ai-assistant 15.27.0 → 15.27.1

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.
@@ -5898,6 +5898,18 @@
5898
5898
  "declarations": [],
5899
5899
  "exports": []
5900
5900
  },
5901
+ {
5902
+ "kind": "javascript-module",
5903
+ "path": "src/types/ai-chat-widget.ts",
5904
+ "declarations": [],
5905
+ "exports": []
5906
+ },
5907
+ {
5908
+ "kind": "javascript-module",
5909
+ "path": "src/types/interaction-context.ts",
5910
+ "declarations": [],
5911
+ "exports": []
5912
+ },
5901
5913
  {
5902
5914
  "kind": "javascript-module",
5903
5915
  "path": "src/utils/agents-key.ts",
@@ -7908,18 +7920,6 @@
7908
7920
  "declarations": [],
7909
7921
  "exports": []
7910
7922
  },
7911
- {
7912
- "kind": "javascript-module",
7913
- "path": "src/types/ai-chat-widget.ts",
7914
- "declarations": [],
7915
- "exports": []
7916
- },
7917
- {
7918
- "kind": "javascript-module",
7919
- "path": "src/types/interaction-context.ts",
7920
- "declarations": [],
7921
- "exports": []
7922
- },
7923
7923
  {
7924
7924
  "kind": "javascript-module",
7925
7925
  "path": "src/components/activity-halo/activity-halo.ts",
@@ -8547,6 +8547,12 @@
8547
8547
  }
8548
8548
  ]
8549
8549
  },
8550
+ {
8551
+ "kind": "javascript-module",
8552
+ "path": "src/components/ai-driver/stub-driver.ts",
8553
+ "declarations": [],
8554
+ "exports": []
8555
+ },
8550
8556
  {
8551
8557
  "kind": "javascript-module",
8552
8558
  "path": "src/components/chat-bubble/chat-bubble.styles.ts",
@@ -9419,7 +9425,7 @@
9419
9425
  },
9420
9426
  "privacy": "private",
9421
9427
  "default": "0",
9422
- "description": "Monotonic agent-activation counter — the `agentEnd` clock. Advances when the\nactive flow ends: a swap to a different-named agent (`applyAgent`) OR an\nexplicit `releaseAgent` / `completeSubAgent`. A stateful agent re-resolving\nthe same name across turns keeps one activation. `agentEnd` fires for a\npayload once a LATER activation is current (`callActivation < currentActivation`)\n— so a re-run of a released agent gets a fresh activation and is NOT\ncollapsed until IT ends."
9428
+ "description": "Monotonic agent-activation counter — the `agentEnd` clock. Advances when the\nactive flow ends: a swap to a different-named agent (`installAgent`) OR an\nexplicit `releaseAgent` / `completeSubAgent`. A stateful agent re-resolving\nthe same name across turns keeps one activation. `agentEnd` fires for a\npayload once a LATER activation is current (`callActivation < currentActivation`)\n— so a re-run of a released agent gets a fresh activation and is NOT\ncollapsed until IT ends."
9423
9429
  },
9424
9430
  {
9425
9431
  "kind": "field",
@@ -9463,7 +9469,7 @@
9463
9469
  "privacy": "private",
9464
9470
  "readonly": true,
9465
9471
  "default": "new Set<string>()",
9466
- "description": "Union of every tool name advertised at any point during the current agent\nactivation. Lets the unknown-tool path tell a *stale* call (a real tool from\nan earlier state, now retired — or one an open exclusive fold is hiding)\napart from a *hallucinated* one. Reset on agent swap in `applyAgent`."
9472
+ "description": "Union of every tool name advertised at any point during the current agent\nactivation. Lets the unknown-tool path tell a *stale* call (a real tool from\nan earlier state, now retired — or one an open exclusive fold is hiding)\napart from a *hallucinated* one. Reset on agent swap in `installAgent`."
9467
9473
  },
9468
9474
  {
9469
9475
  "kind": "field",
@@ -9655,14 +9661,14 @@
9655
9661
  "text": "UnresolvedToolInput | undefined"
9656
9662
  },
9657
9663
  "privacy": "private",
9658
- "description": "Active agent's unresolved-tool hook, captured from `applyAgent`. Consulted\nonly when a tool call cannot be dispatched (a stale or hallucinated name);\n`undefined` keeps the framework's default messages. See\n`resolveUnresolvedToolContent`."
9664
+ "description": "Active agent's unresolved-tool hook, captured from `installAgent`. Consulted\nonly when a tool call cannot be dispatched (a stale or hallucinated name);\n`undefined` keeps the framework's default messages. See\n`resolveUnresolvedToolContent`."
9659
9665
  },
9660
9666
  {
9661
9667
  "kind": "field",
9662
9668
  "name": "resolvedProviderCache",
9663
9669
  "privacy": "private",
9664
9670
  "default": "new Map<string, AIProvider>()",
9665
- "description": "Caches validated provider lookups per name within the current agent. Cleared\nby `applyAgent` so each new agent's static/function-resolved names are\nvalidated fresh."
9671
+ "description": "Caches validated provider lookups per name within the current agent. Cleared\nby `installAgent` so each new agent's static/function-resolved names are\nvalidated fresh."
9666
9672
  },
9667
9673
  {
9668
9674
  "kind": "field",
@@ -9829,7 +9835,7 @@
9829
9835
  "text": "BudgetDetail | undefined"
9830
9836
  },
9831
9837
  "privacy": "private",
9832
- "description": "The refusing vendor's own attribution for the wall `budgetExhaustedThisTurn`\nrecords, when it was knowable. Kept SEPARATE from the flag rather than\nreplacing it: a figure-less 402 from a transport no vendor claims yields no\ndetail at all (`budgetDetailOf` returns `undefined`), and folding the two\nwould make that case stop ending the turn.\n\nIt matters most for a sub-agent's wall. The child can sit on a different\nvendor from its parent — `applyAgent` reads `config.provider` — so without\nthis the parent's short-circuit reports `lastResolvedProvider`, i.e. the one\nvendor that did NOT refuse. Under a mixed registry that walls Gemini because\nan Anthropic child 402'd, and if those are the only two reachable vendors the\nhost then derives `blocked` and locks a composer that still had headroom."
9838
+ "description": "The refusing vendor's own attribution for the wall `budgetExhaustedThisTurn`\nrecords, when it was knowable. Kept SEPARATE from the flag rather than\nreplacing it: a figure-less 402 from a transport no vendor claims yields no\ndetail at all (`budgetDetailOf` returns `undefined`), and folding the two\nwould make that case stop ending the turn.\n\nIt matters most for a sub-agent's wall. The child can sit on a different\nvendor from its parent — `installAgent` reads `config.provider` — so without\nthis the parent's short-circuit reports `lastResolvedProvider`, i.e. the one\nvendor that did NOT refuse. Under a mixed registry that walls Gemini because\nan Anthropic child 402'd, and if those are the only two reachable vendors the\nhost then derives `blocked` and locks a composer that still had headroom."
9833
9839
  },
9834
9840
  {
9835
9841
  "kind": "field",
@@ -10010,7 +10016,7 @@
10010
10016
  }
10011
10017
  }
10012
10018
  ],
10013
- "description": "Make `config` the active agent, firing its lifecycle hooks — `onDeactivate` on the outgoing\nagent, then `onActivate` on this one — before installing it.\n\nThis is the entry point a host should use. ChatDriver.applyAgent installs a config\n*without* firing hooks, which is right for the two callers that need it (the orchestrator,\nwhich fires them through the shared session, and `invokeSubAgent`, where a child's config is\nnot an activation) and wrong for everyone else."
10019
+ "description": "Make `config` the active agent, firing its lifecycle hooks — `onDeactivate` on the outgoing\nagent, then `onActivate` on this one — before installing it.\n\nThis is the entry point a host should use. ChatDriver.installAgent installs a config\n*without* firing hooks, which is right for the two callers that need it (the orchestrator,\nwhich fires them through the shared session, and `invokeSubAgent`, where a child's config is\nnot an activation) and wrong for everyone else."
10014
10020
  },
10015
10021
  {
10016
10022
  "kind": "method",
@@ -10078,7 +10084,7 @@
10078
10084
  },
10079
10085
  {
10080
10086
  "kind": "method",
10081
- "name": "applyAgent",
10087
+ "name": "installAgent",
10082
10088
  "return": {
10083
10089
  "type": {
10084
10090
  "text": "void"
@@ -10092,7 +10098,7 @@
10092
10098
  }
10093
10099
  }
10094
10100
  ],
10095
- "description": "Install `config` as the active agent **without firing lifecycle hooks**.\n\nPrefer ChatDriver.activateAgent unless you are deliberately skipping the hooks. Two\ncallers are: `OrchestratingDriver`, which fires them through the shared\nChatDriver.agentSession and then installs a decorated config, and `invokeSubAgent`,\nwhere the child driver's config is a tool surface rather than an activation.\n\nRenamed to `installAgent` in a follow-up (GENC-1580) — see `docs/migration-GENC-1580.md`.\nUntil then the name says less than it should, so do not add a third caller to this path\nwithout checking which of the two above it resembles."
10101
+ "description": "Install `config` as the active agent **without firing lifecycle hooks**.\n\nPrefer ChatDriver.activateAgent unless you are deliberately skipping the hooks. Two\ncallers are: `OrchestratingDriver`, which fires them through the shared\nChatDriver.agentSession and then installs a decorated config, and `invokeSubAgent`,\nwhere the child driver's config is a tool surface rather than an activation.\n\nDo not add a third caller to this path without checking which of the two above it resembles —\nwhether the hooks should fire is the whole difference between this and `activateAgent`."
10096
10102
  },
10097
10103
  {
10098
10104
  "kind": "method",
@@ -12096,7 +12102,7 @@
12096
12102
  "text": "AgentSession"
12097
12103
  },
12098
12104
  "privacy": "private",
12099
- "description": "The stateful-agent contract (§7.1): active agent, user pin, flow lock, restored state, and\nthe `onActivate` / `onDeactivate` hooks.\n\n**The inner driver's session, not one of our own.** One session is the invariant: two would\nlet the outer and inner driver disagree about which agent is active, and the inner one would\nnever be activated at all, because this driver installs a *decorated* config through\n`applyAgent` rather than going via `ChatDriver.activateAgent`. This driver keeps the routing\ndecisions; the session owns the lifecycle.",
12105
+ "description": "The stateful-agent contract (§7.1): active agent, user pin, flow lock, restored state, and\nthe `onActivate` / `onDeactivate` hooks.\n\n**The inner driver's session, not one of our own.** One session is the invariant: two would\nlet the outer and inner driver disagree about which agent is active, and the inner one would\nnever be activated at all, because this driver installs a *decorated* config through\n`installAgent` rather than going via `ChatDriver.activateAgent`. This driver keeps the routing\ndecisions; the session owns the lifecycle.",
12100
12106
  "readonly": true
12101
12107
  },
12102
12108
  {
@@ -12532,7 +12538,7 @@
12532
12538
  },
12533
12539
  {
12534
12540
  "kind": "method",
12535
- "name": "applyAgent",
12541
+ "name": "installAgent",
12536
12542
  "privacy": "private",
12537
12543
  "return": {
12538
12544
  "type": {
@@ -95,12 +95,10 @@ export interface AiDriver extends EventTarget {
95
95
  * (keyed by agent name) is handed to that agent's `onActivate`/`init` as
96
96
  * `ctx.restored` on its next activation, then consumed.
97
97
  *
98
- * Implemented by every driver since GENC-1580 — each owns an `AgentSession` — so "only
99
- * multi-agent drivers implement it" is no longer true. Still declared optional: this interface
100
- * is exported and `@beta`, so requiring it would break any third party implementing it. The `?`
101
- * comes off with the `installAgent` rename, which is the ticket's one breaking release.
98
+ * Required since GENC-1580's breaking release: every driver owns an `AgentSession`, so both
99
+ * shipped drivers implement it and a host no longer has to feature-detect before restoring.
102
100
  */
103
- primeRestoredAgentState?(snapshots: Record<string, unknown>): void;
101
+ primeRestoredAgentState(snapshots: Record<string, unknown>): void;
104
102
  /**
105
103
  * Return the full, unredacted conversation history.
106
104
  */
@@ -119,10 +117,10 @@ export interface AiDriver extends EventTarget {
119
117
  * which may mint fresh, never-activated configs.
120
118
  *
121
119
  * `undefined` means no agent is active (before the first activation, after a release), which is
122
- * a different statement from the driver not being able to answer. Both drivers implement it
123
- * since GENC-1580; see {@link AiDriver.primeRestoredAgentState} for why the `?` stays for now.
120
+ * a different statement from the driver not being able to answer — and since GENC-1580's
121
+ * breaking release the second case cannot arise, because the method is required.
124
122
  */
125
- getActiveAgent?(): AgentConfig | undefined;
123
+ getActiveAgent(): AgentConfig | undefined;
126
124
  /**
127
125
  * Pin routing to an agent by name, or `null` for automatic routing. A pin is sticky: it
128
126
  * survives a stateful flow completing, so the next turn starts fresh on the same agent.
@@ -131,18 +129,19 @@ export interface AiDriver extends EventTarget {
131
129
  * belongs to the session, which outlives the question of which driver holds it.
132
130
  *
133
131
  * Added to the interface in GENC-1580 — it was previously reached by narrowing to
134
- * `OrchestratingDriver` with `instanceof`. Optional, so adding it breaks no implementor.
132
+ * `OrchestratingDriver` with `instanceof`. Required since that ticket's breaking release.
135
133
  */
136
- setPinnedAgent?(name: string | null): void;
134
+ setPinnedAgent(name: string | null): void;
137
135
  /**
138
136
  * Set the transient flow lock — used to restore state on driver reconstruction (agents-array
139
137
  * changes, pop-in/pop-out), **not** to steer routing; that is
140
138
  * {@link AiDriver.setPinnedAgent}'s job. Writes without firing lifecycle hooks, because the
141
139
  * flow it names is already running.
142
140
  *
143
- * Added to the interface in GENC-1580, as for {@link AiDriver.setPinnedAgent}.
141
+ * Added to the interface in GENC-1580, as for {@link AiDriver.setPinnedAgent}, and required
142
+ * since that ticket's breaking release.
144
143
  */
145
- setFlowOwner?(name: string | null): void;
144
+ setFlowOwner(name: string | null): void;
146
145
  /**
147
146
  * Headroom the next turn could need, and which agent set that requirement
148
147
  * (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,EACnB,MAAM,4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AC;IAEjC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,17 @@
1
+ import type { AiDriver } from './ai-driver';
2
+ /**
3
+ * A complete no-op {@link AiDriver} for tests that inject a driver into the element.
4
+ *
5
+ * Typed rather than cast, which is the point: the element reaches these members through
6
+ * `this.driver?.x()` with no per-method guard, so a fake missing one fails at runtime with no
7
+ * compiler warning — the `as unknown as` cast the injection needs hides it. Spreading a typed
8
+ * stub puts the interface back in front of the compiler, so a member added to `AiDriver` breaks
9
+ * the build here instead of one unlucky suite.
10
+ *
11
+ * Built on a real `EventTarget` because `AiDriver` extends one, so a test can subscribe to a
12
+ * stub exactly as it would to a driver.
13
+ *
14
+ * @internal
15
+ */
16
+ export declare const stubDriver: (overrides?: Partial<AiDriver>) => AiDriver;
17
+ //# sourceMappingURL=stub-driver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stub-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/ai-driver/stub-driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,GAAI,YAAW,OAAO,CAAC,QAAQ,CAAM,KAAG,QAc3D,CAAC"}
@@ -31,7 +31,7 @@ type ProviderRefusedDetail = NonNullable<Extract<ChatDriverResult, {
31
31
  export type ChatHistoryUpdatedEvent = CustomEvent<ReadonlyArray<ChatMessage>>;
32
32
  /**
33
33
  * Construction-time configuration for {@link ChatDriver}. Everything except the provider
34
- * registry is optional — most fields are also settable per-agent via `applyAgent`, so a
34
+ * registry is optional — most fields are also settable per-agent via `installAgent`, so a
35
35
  * bare `new ChatDriver(registry)` is valid. Mirrors the `(registry, options)` shape of
36
36
  * `OrchestratingDriver`.
37
37
  *
@@ -228,7 +228,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
228
228
  private turnSeq;
229
229
  /**
230
230
  * Monotonic agent-activation counter — the `agentEnd` clock. Advances when the
231
- * active flow ends: a swap to a different-named agent (`applyAgent`) OR an
231
+ * active flow ends: a swap to a different-named agent (`installAgent`) OR an
232
232
  * explicit `releaseAgent` / `completeSubAgent`. A stateful agent re-resolving
233
233
  * the same name across turns keeps one activation. `agentEnd` fires for a
234
234
  * payload once a LATER activation is current (`callActivation < currentActivation`)
@@ -259,7 +259,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
259
259
  * Union of every tool name advertised at any point during the current agent
260
260
  * activation. Lets the unknown-tool path tell a *stale* call (a real tool from
261
261
  * an earlier state, now retired — or one an open exclusive fold is hiding)
262
- * apart from a *hallucinated* one. Reset on agent swap in `applyAgent`.
262
+ * apart from a *hallucinated* one. Reset on agent swap in `installAgent`.
263
263
  */
264
264
  private readonly everSeenToolNames;
265
265
  /**
@@ -376,7 +376,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
376
376
  */
377
377
  private activeFallbacks?;
378
378
  /**
379
- * Active agent's unresolved-tool hook, captured from `applyAgent`. Consulted
379
+ * Active agent's unresolved-tool hook, captured from `installAgent`. Consulted
380
380
  * only when a tool call cannot be dispatched (a stale or hallucinated name);
381
381
  * `undefined` keeps the framework's default messages. See
382
382
  * `resolveUnresolvedToolContent`.
@@ -384,7 +384,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
384
384
  private activeOnUnresolvedTool?;
385
385
  /**
386
386
  * Caches validated provider lookups per name within the current agent. Cleared
387
- * by `applyAgent` so each new agent's static/function-resolved names are
387
+ * by `installAgent` so each new agent's static/function-resolved names are
388
388
  * validated fresh.
389
389
  */
390
390
  private resolvedProviderCache;
@@ -482,7 +482,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
482
482
  * would make that case stop ending the turn.
483
483
  *
484
484
  * It matters most for a sub-agent's wall. The child can sit on a different
485
- * vendor from its parent — `applyAgent` reads `config.provider` — so without
485
+ * vendor from its parent — `installAgent` reads `config.provider` — so without
486
486
  * this the parent's short-circuit reports `lastResolvedProvider`, i.e. the one
487
487
  * vendor that did NOT refuse. Under a mixed registry that walls Gemini because
488
488
  * an Anthropic child 402'd, and if those are the only two reachable vendors the
@@ -611,7 +611,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
611
611
  * Make `config` the active agent, firing its lifecycle hooks — `onDeactivate` on the outgoing
612
612
  * agent, then `onActivate` on this one — before installing it.
613
613
  *
614
- * This is the entry point a host should use. {@link ChatDriver.applyAgent} installs a config
614
+ * This is the entry point a host should use. {@link ChatDriver.installAgent} installs a config
615
615
  * *without* firing hooks, which is right for the two callers that need it (the orchestrator,
616
616
  * which fires them through the shared session, and `invokeSubAgent`, where a child's config is
617
617
  * not an activation) and wrong for everyone else.
@@ -654,11 +654,10 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
654
654
  * {@link ChatDriver.agentSession} and then installs a decorated config, and `invokeSubAgent`,
655
655
  * where the child driver's config is a tool surface rather than an activation.
656
656
  *
657
- * Renamed to `installAgent` in a follow-up (GENC-1580) — see `docs/migration-GENC-1580.md`.
658
- * Until then the name says less than it should, so do not add a third caller to this path
659
- * without checking which of the two above it resembles.
657
+ * Do not add a third caller to this path without checking which of the two above it resembles —
658
+ * whether the hooks should fire is the whole difference between this and `activateAgent`.
660
659
  */
661
- applyAgent(config: AgentConfig): void;
660
+ installAgent(config: AgentConfig): void;
662
661
  /**
663
662
  * Resolve the tool-result content for an unresolved tool call. Consults the
664
663
  * active agent's `onUnresolvedTool` hook (if any) with the attempted 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,EAGlB,cAAc,EACd,gBAAgB,EAGhB,WAAW,EASX,yBAAyB,EACzB,qBAAqB,EAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,oBAAoB,EAOrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KA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C,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,yBAAyB,KAAK,OAAO,CAAC,CAAC,CAAC,GAC3F,IAAI;IAIP;;;;;;;;;;;;;;;;;;OAkBG;IACU,kBAAkB,CAAC,CAAC,EAC/B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,CAAC,CAAC;IAIb;;;;;;;;;;;;;;;;;;;OAmBG;IACI,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI1E;;;OAGG;IACI,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAInE;;;;OAIG;IACI,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAInF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI;IAK3C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA0D/F;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,mBAAmB;IAoG3B;;;;;OAKG;YACW,cAAc;IAyP5B;;;OAGG;IACG,mBAAmB,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;YA6DvE,WAAW;IA4lCzB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,eAAe;IAiBvB,gDAAgD;IAChD,OAAO,CAAC,oBAAoB;CAO7B"}
@@ -106,7 +106,7 @@ export declare class OrchestratingDriver extends EventTarget implements AiDriver
106
106
  * **The inner driver's session, not one of our own.** One session is the invariant: two would
107
107
  * let the outer and inner driver disagree about which agent is active, and the inner one would
108
108
  * never be activated at all, because this driver installs a *decorated* config through
109
- * `applyAgent` rather than going via `ChatDriver.activateAgent`. This driver keeps the routing
109
+ * `installAgent` rather than going via `ChatDriver.activateAgent`. This driver keeps the routing
110
110
  * decisions; the session owns the lifecycle.
111
111
  */
112
112
  private get agentSession();
@@ -213,7 +213,7 @@ export declare class OrchestratingDriver extends EventTarget implements AiDriver
213
213
  getContextReserve(): ContextReserveResolution | undefined;
214
214
  /** {@inheritDoc AiDriver.getActiveAgent} */
215
215
  getActiveAgent(): AgentConfig | undefined;
216
- private applyAgent;
216
+ private installAgent;
217
217
  /**
218
218
  * Release the current stateful agent: fire `onDeactivate`, clear the
219
219
  * flow-owner lock, dispatch events so the host (and Redux) reflect the
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrating-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/orchestrating-driver/orchestrating-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EAEZ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EAMZ,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAK3E,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAClB,MAAM,4BAA4B,CAAC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Q,GAAG,mBAAmB,GAAG,SAAS,CAEjF"}
1
+ {"version":3,"file":"orchestrating-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/orchestrating-driver/orchestrating-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EAEZ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EAMZ,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAK3E,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAClB,MAAM,4BAA4B,CAAC;AAkBpC;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,eAAe;AACzB,kDAAkD;AAChD,YAAY;AACd,6EAA6E;GAC3E,UAAU;AACZ;;;;;GAKG;GACD,kBAAkB;AACpB,+DAA+D;GAC7D,kBAAkB;AACpB,kDAAkD;GAChD,gBAAgB;AAClB,kFAAkF;GAChF,sBAAsB;AACxB,oEAAoE;GAClE,mBAAmB;AACrB,0EAA0E;GACxE,QAAQ,CAAC;AAwEb;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,sBAAsB,ijBAIyH,CAAC;AAuB7J;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,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BAAgB,CAAC;YAmC7E,mBAAmB;IAwJ3B,mBAAmB,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIrF,qDAAqD;IACrD,uBAAuB,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAIjE;;;;OAIG;IACH,iBAAiB,IAAI,wBAAwB,GAAG,SAAS;IAiDzD,4CAA4C;IAC5C,cAAc,IAAI,WAAW,GAAG,SAAS;YAI3B,YAAY;IAqD1B;;;;;;;;;;OAUG;YACW,kBAAkB;IAYhC;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAKd;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAS9B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,aAAa;IAoCrB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;YAgCd,QAAQ;IAmMtB;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAa1B;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;CAe5B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,mBAAmB,GAAG,SAAS,CAEjF"}
@@ -0,0 +1,16 @@
1
+ import { __awaiter } from "tslib";
2
+ /**
3
+ * A complete no-op {@link AiDriver} for tests that inject a driver into the element.
4
+ *
5
+ * Typed rather than cast, which is the point: the element reaches these members through
6
+ * `this.driver?.x()` with no per-method guard, so a fake missing one fails at runtime with no
7
+ * compiler warning — the `as unknown as` cast the injection needs hides it. Spreading a typed
8
+ * stub puts the interface back in front of the compiler, so a member added to `AiDriver` breaks
9
+ * the build here instead of one unlucky suite.
10
+ *
11
+ * Built on a real `EventTarget` because `AiDriver` extends one, so a test can subscribe to a
12
+ * stub exactly as it would to a driver.
13
+ *
14
+ * @internal
15
+ */
16
+ export const stubDriver = (overrides = {}) => Object.assign(new EventTarget(), Object.assign({ sendMessage: () => __awaiter(void 0, void 0, void 0, function* () { return ({ reason: 'done' }); }), continueFromHistory: () => __awaiter(void 0, void 0, void 0, function* () { return ({ reason: 'done' }); }), resolveInteraction: () => undefined, loadHistory: () => undefined, primeRestoredAgentState: () => undefined, getActiveAgent: () => undefined, setPinnedAgent: () => undefined, setFlowOwner: () => undefined, isBusy: () => false, getSuggestions: () => __awaiter(void 0, void 0, void 0, function* () { return []; }), getActiveProviderName: () => 'test-provider' }, overrides));
@@ -112,7 +112,7 @@ export class ChatDriver extends EventTarget {
112
112
  this.turnSeq = 0;
113
113
  /**
114
114
  * Monotonic agent-activation counter — the `agentEnd` clock. Advances when the
115
- * active flow ends: a swap to a different-named agent (`applyAgent`) OR an
115
+ * active flow ends: a swap to a different-named agent (`installAgent`) OR an
116
116
  * explicit `releaseAgent` / `completeSubAgent`. A stateful agent re-resolving
117
117
  * the same name across turns keeps one activation. `agentEnd` fires for a
118
118
  * payload once a LATER activation is current (`callActivation < currentActivation`)
@@ -153,7 +153,7 @@ export class ChatDriver extends EventTarget {
153
153
  * Union of every tool name advertised at any point during the current agent
154
154
  * activation. Lets the unknown-tool path tell a *stale* call (a real tool from
155
155
  * an earlier state, now retired — or one an open exclusive fold is hiding)
156
- * apart from a *hallucinated* one. Reset on agent swap in `applyAgent`.
156
+ * apart from a *hallucinated* one. Reset on agent swap in `installAgent`.
157
157
  */
158
158
  this.everSeenToolNames = new Set();
159
159
  /**
@@ -204,7 +204,7 @@ export class ChatDriver extends EventTarget {
204
204
  this.turnCancelled = false;
205
205
  /**
206
206
  * Caches validated provider lookups per name within the current agent. Cleared
207
- * by `applyAgent` so each new agent's static/function-resolved names are
207
+ * by `installAgent` so each new agent's static/function-resolved names are
208
208
  * validated fresh.
209
209
  */
210
210
  this.resolvedProviderCache = new Map();
@@ -560,7 +560,7 @@ export class ChatDriver extends EventTarget {
560
560
  * Make `config` the active agent, firing its lifecycle hooks — `onDeactivate` on the outgoing
561
561
  * agent, then `onActivate` on this one — before installing it.
562
562
  *
563
- * This is the entry point a host should use. {@link ChatDriver.applyAgent} installs a config
563
+ * This is the entry point a host should use. {@link ChatDriver.installAgent} installs a config
564
564
  * *without* firing hooks, which is right for the two callers that need it (the orchestrator,
565
565
  * which fires them through the shared session, and `invokeSubAgent`, where a child's config is
566
566
  * not an activation) and wrong for everyone else.
@@ -570,7 +570,7 @@ export class ChatDriver extends EventTarget {
570
570
  activateAgent(config) {
571
571
  return __awaiter(this, void 0, void 0, function* () {
572
572
  yield this.agentSession.activate(config);
573
- this.applyAgent(config);
573
+ this.installAgent(config);
574
574
  });
575
575
  }
576
576
  /**
@@ -616,11 +616,10 @@ export class ChatDriver extends EventTarget {
616
616
  * {@link ChatDriver.agentSession} and then installs a decorated config, and `invokeSubAgent`,
617
617
  * where the child driver's config is a tool surface rather than an activation.
618
618
  *
619
- * Renamed to `installAgent` in a follow-up (GENC-1580) — see `docs/migration-GENC-1580.md`.
620
- * Until then the name says less than it should, so do not add a third caller to this path
621
- * without checking which of the two above it resembles.
619
+ * Do not add a third caller to this path without checking which of the two above it resembles —
620
+ * whether the hooks should fire is the whole difference between this and `activateAgent`.
622
621
  */
623
- applyAgent(config) {
622
+ installAgent(config) {
624
623
  var _a, _b, _c;
625
624
  // A real swap to a different agent begins a NEW activation — the prior agent's
626
625
  // flow is over, so its `agentEnd`-tagged payloads become collapsible. Guarded
@@ -1426,7 +1425,7 @@ export class ChatDriver extends EventTarget {
1426
1425
  else {
1427
1426
  this.lifecycleController.signal.addEventListener('abort', disposeChild, { once: true });
1428
1427
  }
1429
- child.applyAgent(Object.assign(Object.assign({}, subConfig), { primerHistory: effectivePrimer }));
1428
+ child.installAgent(Object.assign(Object.assign({}, subConfig), { primerHistory: effectivePrimer }));
1430
1429
  // Route interactions back through this driver so widgets render in the
1431
1430
  // parent's (ultimately the root's) history and resolve via the same
1432
1431
  // pending map the main UI is wired to. Recurses naturally for nested
@@ -1773,7 +1772,7 @@ export class ChatDriver extends EventTarget {
1773
1772
  };
1774
1773
  // Re-resolve dynamic tool definitions before each LLM call. The static
1775
1774
  // case is a no-op (factory is undefined and `this.toolDefinitions` was
1776
- // set by applyAgent). Folds operate on `this.toolDefinitions` and are
1775
+ // set by installAgent). Folds operate on `this.toolDefinitions` and are
1777
1776
  // forbidden when a factory is set, so the array form is always valid.
1778
1777
  // Sequential await is required — each iteration must see fresh values
1779
1778
  // before constructing the LLM request.
@@ -1964,7 +1963,7 @@ export class ChatDriver extends EventTarget {
1964
1963
  fallbacks: this.activeFallbacks,
1965
1964
  };
1966
1965
  // Resolve the active provider for this turn. Static names were validated
1967
- // in `applyAgent`; function-form names are validated on first resolution
1966
+ // in `installAgent`; function-form names are validated on first resolution
1968
1967
  // here and cached for the agent's lifetime.
1969
1968
  // oxlint-disable-next-line no-await-in-loop
1970
1969
  const activeProvider = yield this.resolveProviderForTurn(promptCtx);
@@ -156,7 +156,7 @@ export class OrchestratingDriver extends EventTarget {
156
156
  * **The inner driver's session, not one of our own.** One session is the invariant: two would
157
157
  * let the outer and inner driver disagree about which agent is active, and the inner one would
158
158
  * never be activated at all, because this driver installs a *decorated* config through
159
- * `applyAgent` rather than going via `ChatDriver.activateAgent`. This driver keeps the routing
159
+ * `installAgent` rather than going via `ChatDriver.activateAgent`. This driver keeps the routing
160
160
  * decisions; the session owns the lifecycle.
161
161
  */
162
162
  get agentSession() {
@@ -431,7 +431,7 @@ export class OrchestratingDriver extends EventTarget {
431
431
  if (this.cancelled)
432
432
  break;
433
433
  // oxlint-disable-next-line no-await-in-loop
434
- yield this.applyAgent(currentAgent);
434
+ yield this.installAgent(currentAgent);
435
435
  let result;
436
436
  if (isHandoff) {
437
437
  const contextPrimer = handoffSummary
@@ -488,7 +488,7 @@ export class OrchestratingDriver extends EventTarget {
488
488
  break;
489
489
  }
490
490
  // Pinned agents never hand off — the continuation tool is filtered out in
491
- // applyAgent, but this guards against a model hallucinating a handoff result.
491
+ // installAgent, but this guards against a model hallucinating a handoff result.
492
492
  if (result.reason !== 'agent-handoff' || isFallback(currentAgent) || pinned) {
493
493
  break;
494
494
  }
@@ -592,7 +592,7 @@ export class OrchestratingDriver extends EventTarget {
592
592
  getActiveAgent() {
593
593
  return this.agentSession.getActive();
594
594
  }
595
- applyAgent(agent) {
595
+ installAgent(agent) {
596
596
  return __awaiter(this, void 0, void 0, function* () {
597
597
  // The transition — handoff record, lifecycle hooks, restored state, flow lock — belongs to
598
598
  // the session. What is left below is this driver's own job: what the agent may route to, and
@@ -634,7 +634,7 @@ export class OrchestratingDriver extends EventTarget {
634
634
  ]);
635
635
  }
636
636
  this.chatDriver.setProviderHistoryTransform((h) => transformHistoryForAgent(h, agent.name));
637
- this.chatDriver.applyAgent(agentToApply);
637
+ this.chatDriver.installAgent(agentToApply);
638
638
  this.dispatchEvent(new CustomEvent('orchestrating-stop'));
639
639
  this.dispatchEvent(new CustomEvent('agent-changed', { detail: agent }));
640
640
  });