@genesislcap/ai-assistant 15.58.1 → 15.59.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.
Files changed (58) hide show
  1. package/dist/ai-assistant.api.json +10096 -6986
  2. package/dist/ai-assistant.d.ts +545 -101
  3. package/dist/chat-driver.cjs +624 -207
  4. package/dist/chat-driver.cjs.map +4 -4
  5. package/dist/chat-driver.mjs +624 -207
  6. package/dist/chat-driver.mjs.map +4 -4
  7. package/dist/custom-elements.json +1836 -378
  8. package/dist/dts/components/agent-session/agent-session.d.ts +19 -3
  9. package/dist/dts/components/agent-session/agent-session.d.ts.map +1 -1
  10. package/dist/dts/components/ai-driver/ai-driver.d.ts +120 -10
  11. package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
  12. package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +103 -0
  13. package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -0
  14. package/dist/dts/components/ai-driver/index.d.ts +3 -1
  15. package/dist/dts/components/ai-driver/index.d.ts.map +1 -1
  16. package/dist/dts/components/chat-driver/chat-driver.d.ts +84 -8
  17. package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
  18. package/dist/dts/components/chat-driver/interaction-controller.d.ts +37 -3
  19. package/dist/dts/components/chat-driver/interaction-controller.d.ts.map +1 -1
  20. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +30 -93
  21. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
  22. package/dist/dts/index.d.ts +4 -1
  23. package/dist/dts/index.d.ts.map +1 -1
  24. package/dist/dts/main/main.d.ts +4 -4
  25. package/dist/dts/main/main.d.ts.map +1 -1
  26. package/dist/dts/state/debug-event-log.d.ts +1 -1
  27. package/dist/dts/state/debug-event-log.d.ts.map +1 -1
  28. package/dist/dts/state/interaction-context.d.ts +7 -1
  29. package/dist/dts/state/interaction-context.d.ts.map +1 -1
  30. package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
  31. package/dist/dts/suggestions/generate-suggestions.d.ts.map +1 -1
  32. package/dist/dts/types/handler-capability.d.ts +28 -0
  33. package/dist/dts/types/handler-capability.d.ts.map +1 -0
  34. package/dist/dts/types/interaction-context.d.ts +16 -0
  35. package/dist/dts/types/interaction-context.d.ts.map +1 -1
  36. package/dist/dts/types/interaction-interceptor.d.ts +109 -0
  37. package/dist/dts/types/interaction-interceptor.d.ts.map +1 -0
  38. package/dist/dts/utils/delegated-message.d.ts +52 -0
  39. package/dist/dts/utils/delegated-message.d.ts.map +1 -0
  40. package/dist/dts/utils/history-transform.d.ts.map +1 -1
  41. package/dist/esm/components/agent-session/agent-session.js +17 -0
  42. package/dist/esm/components/ai-driver/ai-driver.js +21 -1
  43. package/dist/esm/components/ai-driver/base-driver-decorator.js +211 -0
  44. package/dist/esm/components/ai-driver/index.js +2 -1
  45. package/dist/esm/components/chat-driver/chat-driver.js +195 -14
  46. package/dist/esm/components/chat-driver/interaction-controller.js +168 -14
  47. package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +72 -196
  48. package/dist/esm/index.js +1 -0
  49. package/dist/esm/main/main.js +79 -77
  50. package/dist/esm/state/debug-event-log.js +7 -2
  51. package/dist/esm/state/interaction-context.js +11 -0
  52. package/dist/esm/state/persistence/session-persister.js +5 -6
  53. package/dist/esm/suggestions/generate-suggestions.js +8 -1
  54. package/dist/esm/types/handler-capability.js +1 -0
  55. package/dist/esm/types/interaction-interceptor.js +1 -0
  56. package/dist/esm/utils/delegated-message.js +25 -0
  57. package/dist/esm/utils/history-transform.js +12 -1
  58. package/package.json +17 -17
@@ -1206,7 +1206,7 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
1206
1206
  var _a, _b, _c, _d;
1207
1207
  const previous = (_b = (_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.store.aiAssistant.pinnedAgentName) !== null && _b !== void 0 ? _b : null;
1208
1208
  (_c = this._sessionRef) === null || _c === void 0 ? void 0 : _c.actions.aiAssistant.setPinnedAgentName(value);
1209
- (_d = this.orchestrator) === null || _d === void 0 ? void 0 : _d.setPinnedAgent(value);
1209
+ (_d = this.driver) === null || _d === void 0 ? void 0 : _d.setPinnedAgent(value);
1210
1210
  // Suggestions are scoped to the active routing — resetting forces a fresh
1211
1211
  // fetch when the user pins/unpins so the prompts match the new agent.
1212
1212
  if (previous !== value) {
@@ -1231,7 +1231,7 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
1231
1231
  set flowOwnerAgentName(value) {
1232
1232
  var _a, _b;
1233
1233
  (_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.actions.aiAssistant.setFlowOwnerAgentName(value);
1234
- (_b = this.orchestrator) === null || _b === void 0 ? void 0 : _b.setFlowOwner(value);
1234
+ (_b = this.driver) === null || _b === void 0 ? void 0 : _b.setFlowOwner(value);
1235
1235
  }
1236
1236
  get liveSubAgentTrace() {
1237
1237
  var _a, _b;
@@ -1576,12 +1576,12 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
1576
1576
  this.settings.costHistorySlotted = value;
1577
1577
  }
1578
1578
  /**
1579
- * This element's driver as an orchestrator, or `undefined` when the session is running a bare
1580
- * `ChatDriver`. The only place in this element that narrows the type; the test itself lives in
1581
- * `asOrchestrator`, shared with the session persister.
1579
+ * Which kind of driver this element runs, for the `driver.created` / `assistant.connected` log
1580
+ * lines only. Looks through any decorators (GENC-1660): behaviour goes through `AiDriver`
1581
+ * members, which every layer forwards, so this is the one place the concrete class matters.
1582
1582
  */
1583
- get orchestrator() {
1584
- return asOrchestrator(this.driver);
1583
+ get driverKind() {
1584
+ return asOrchestrator(this.driver) ? 'orchestrating' : 'chat';
1585
1585
  }
1586
1586
  /**
1587
1587
  * A get/set pair over one of this element's own properties, for a controller
@@ -1751,7 +1751,7 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
1751
1751
  this.driver.loadHistory([...history]);
1752
1752
  this.logMeta('driver.created', {
1753
1753
  reason: 'agents-changed',
1754
- driverKind: this.orchestrator ? 'orchestrating' : 'chat',
1754
+ driverKind: this.driverKind,
1755
1755
  });
1756
1756
  }
1757
1757
  /**
@@ -1835,14 +1835,13 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
1835
1835
  * times — unwires any existing listeners first.
1836
1836
  */
1837
1837
  wireDriver() {
1838
+ var _a;
1838
1839
  const { driver } = this;
1839
1840
  if (!driver)
1840
1841
  return;
1841
1842
  // Captured, not re-read: the cleanup closures below must remove their listeners
1842
1843
  // from the object they were added to, even if `this.driver` has been reassigned
1843
- // by the time `unwireDriver` runs. Same reason `driver` itself is destructured,
1844
- // and reading both from `this` here means they cannot disagree.
1845
- const orchestrator = this.orchestrator;
1844
+ // by the time `unwireDriver` runs.
1846
1845
  // Idempotent — unwire previous listeners on this component before re-wiring.
1847
1846
  this.unwireDriver();
1848
1847
  const onHistoryUpdated = (e) => {
@@ -1963,72 +1962,75 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
1963
1962
  () => driver.removeEventListener('interaction-stop', onInteractionStop),
1964
1963
  () => driver.removeEventListener('provider-changed', onProviderChanged),
1965
1964
  ];
1966
- if (orchestrator) {
1967
- // Restore the user pin and flow-owner lock from the session store onto
1968
- // the freshly built driver, so pop-in/pop-out and agents-array
1969
- // reassignment preserve both.
1970
- orchestrator.setPinnedAgent(this.pinnedAgentName);
1971
- orchestrator.setFlowOwner(this.flowOwnerAgentName);
1972
- orchestrator.setContextGuard(this.contextGateCtrl.guardPolicy);
1973
- const onOrchStart = () => {
1974
- this.showHalo = 'orchestrating';
1975
- };
1976
- const onOrchStop = () => {
1977
- if (this.showHalo === 'orchestrating')
1978
- this.showHalo = 'agent';
1979
- };
1980
- const onAgentChanged = (e) => {
1981
- this.activeAgent = e.detail;
1982
- };
1983
- // User-initiated pin changes flow into the driver via the
1984
- // `pinnedAgentName` setter, which already calls setPinnedAgent — no
1985
- // event-driven mirror needed in this direction. The driver does still
1986
- // emit `'pinned-changed'` if other code ever calls `setPinnedAgent`
1987
- // directly, so keep the mirror for safety; guard against the redundant
1988
- // round-trip caused by our own setter call.
1989
- const onPinnedChanged = (e) => {
1990
- var _a, _b;
1991
- const name = e.detail;
1992
- if (((_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.store.aiAssistant.pinnedAgentName) !== name) {
1993
- (_b = this._sessionRef) === null || _b === void 0 ? void 0 : _b.actions.aiAssistant.setPinnedAgentName(name);
1994
- }
1995
- };
1996
- // Orchestrator-initiated flow-owner changes (auto-lock on stateful
1997
- // activation, auto-clear on release). Mirror to Redux so the UI freeze
1998
- // state and `pinLocked` survive component remount.
1999
- const onFlowOwnerChanged = (e) => {
2000
- var _a, _b, _c, _d, _e, _f, _g, _h;
2001
- const name = e.detail;
2002
- if (((_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.store.aiAssistant.flowOwnerAgentName) !== name) {
2003
- (_b = this._sessionRef) === null || _b === void 0 ? void 0 : _b.actions.aiAssistant.setFlowOwnerAgentName(name);
2004
- }
2005
- // Capture the prompt that started this flow so a non-resumable tombstone can
2006
- // hand it back on return (GENC-1351 §5.9). On release, clear it. Slice-backed so
2007
- // both element instances agree.
2008
- if (name) {
2009
- // Prefer the message currently being sent (`send()` stashes it in
2010
- // `_pendingSendPrompt`) over the driver's raw history: `flow-owner-changed` fires
2011
- // while routing THIS turn — BEFORE `chatDriver.sendMessage` appends the triggering
2012
- // message to raw history — so a raw-history read here captures the PREVIOUS user
2013
- // turn (the bug behind an interrupted flow re-priming the wrong prompt). Fall back
2014
- // to raw history for a flow that locks outside a user send.
2015
- const history = (_e = (_d = (_c = this.driver) === null || _c === void 0 ? void 0 : _c.getRawHistory) === null || _d === void 0 ? void 0 : _d.call(_c)) !== null && _e !== void 0 ? _e : [];
2016
- const prompt = this._pendingSendPrompt || ((_f = history[lastUserMessageIndex(history)]) === null || _f === void 0 ? void 0 : _f.content);
2017
- if (prompt) {
2018
- (_g = this._sessionRef) === null || _g === void 0 ? void 0 : _g.actions.aiAssistant.setFlowActivationPrompt(prompt);
2019
- }
2020
- }
2021
- else {
2022
- (_h = this._sessionRef) === null || _h === void 0 ? void 0 : _h.actions.aiAssistant.setFlowActivationPrompt(null);
1965
+ // Wired on the driver this element holds, whatever it is, rather than on an orchestrator found
1966
+ // by narrowing (GENC-1660). Every layer forwards these members and events, so this works for a
1967
+ // bare `ChatDriver` — which now raises the lifecycle events itself (GENC-1485) — and for any
1968
+ // decorator stack, where a narrowed orchestrator would be one layer the host should not reach.
1969
+ //
1970
+ // Restore the user pin and flow-owner lock from the session store onto
1971
+ // the freshly built driver, so pop-in/pop-out and agents-array
1972
+ // reassignment preserve both.
1973
+ driver.setPinnedAgent(this.pinnedAgentName);
1974
+ driver.setFlowOwner(this.flowOwnerAgentName);
1975
+ (_a = driver.setContextGuard) === null || _a === void 0 ? void 0 : _a.call(driver, this.contextGateCtrl.guardPolicy);
1976
+ const onOrchStart = () => {
1977
+ this.showHalo = 'orchestrating';
1978
+ };
1979
+ const onOrchStop = () => {
1980
+ if (this.showHalo === 'orchestrating')
1981
+ this.showHalo = 'agent';
1982
+ };
1983
+ const onAgentChanged = (e) => {
1984
+ this.activeAgent = e.detail;
1985
+ };
1986
+ // User-initiated pin changes flow into the driver via the
1987
+ // `pinnedAgentName` setter, which already calls setPinnedAgent — no
1988
+ // event-driven mirror needed in this direction. The driver does still
1989
+ // emit `'pinned-changed'` if other code ever calls `setPinnedAgent`
1990
+ // directly, so keep the mirror for safety; guard against the redundant
1991
+ // round-trip caused by our own setter call.
1992
+ const onPinnedChanged = (e) => {
1993
+ var _a, _b;
1994
+ const name = e.detail;
1995
+ if (((_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.store.aiAssistant.pinnedAgentName) !== name) {
1996
+ (_b = this._sessionRef) === null || _b === void 0 ? void 0 : _b.actions.aiAssistant.setPinnedAgentName(name);
1997
+ }
1998
+ };
1999
+ // Orchestrator-initiated flow-owner changes (auto-lock on stateful
2000
+ // activation, auto-clear on release). Mirror to Redux so the UI freeze
2001
+ // state and `pinLocked` survive component remount.
2002
+ const onFlowOwnerChanged = (e) => {
2003
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2004
+ const name = e.detail;
2005
+ if (((_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.store.aiAssistant.flowOwnerAgentName) !== name) {
2006
+ (_b = this._sessionRef) === null || _b === void 0 ? void 0 : _b.actions.aiAssistant.setFlowOwnerAgentName(name);
2007
+ }
2008
+ // Capture the prompt that started this flow so a non-resumable tombstone can
2009
+ // hand it back on return (GENC-1351 §5.9). On release, clear it. Slice-backed so
2010
+ // both element instances agree.
2011
+ if (name) {
2012
+ // Prefer the message currently being sent (`send()` stashes it in
2013
+ // `_pendingSendPrompt`) over the driver's raw history: `flow-owner-changed` fires
2014
+ // while routing THIS turn — BEFORE `chatDriver.sendMessage` appends the triggering
2015
+ // message to raw history — so a raw-history read here captures the PREVIOUS user
2016
+ // turn (the bug behind an interrupted flow re-priming the wrong prompt). Fall back
2017
+ // to raw history for a flow that locks outside a user send.
2018
+ const history = (_e = (_d = (_c = this.driver) === null || _c === void 0 ? void 0 : _c.getRawHistory) === null || _d === void 0 ? void 0 : _d.call(_c)) !== null && _e !== void 0 ? _e : [];
2019
+ const prompt = this._pendingSendPrompt || ((_f = history[lastUserMessageIndex(history)]) === null || _f === void 0 ? void 0 : _f.content);
2020
+ if (prompt) {
2021
+ (_g = this._sessionRef) === null || _g === void 0 ? void 0 : _g.actions.aiAssistant.setFlowActivationPrompt(prompt);
2023
2022
  }
2024
- };
2025
- orchestrator.addEventListener('orchestrating-start', onOrchStart);
2026
- orchestrator.addEventListener('orchestrating-stop', onOrchStop);
2027
- orchestrator.addEventListener('agent-changed', onAgentChanged);
2028
- orchestrator.addEventListener('pinned-changed', onPinnedChanged);
2029
- orchestrator.addEventListener('flow-owner-changed', onFlowOwnerChanged);
2030
- cleanups.push(() => orchestrator.removeEventListener('orchestrating-start', onOrchStart), () => orchestrator.removeEventListener('orchestrating-stop', onOrchStop), () => orchestrator.removeEventListener('agent-changed', onAgentChanged), () => orchestrator.removeEventListener('pinned-changed', onPinnedChanged), () => orchestrator.removeEventListener('flow-owner-changed', onFlowOwnerChanged));
2031
- }
2023
+ }
2024
+ else {
2025
+ (_h = this._sessionRef) === null || _h === void 0 ? void 0 : _h.actions.aiAssistant.setFlowActivationPrompt(null);
2026
+ }
2027
+ };
2028
+ driver.addEventListener('orchestrating-start', onOrchStart);
2029
+ driver.addEventListener('orchestrating-stop', onOrchStop);
2030
+ driver.addEventListener('agent-changed', onAgentChanged);
2031
+ driver.addEventListener('pinned-changed', onPinnedChanged);
2032
+ driver.addEventListener('flow-owner-changed', onFlowOwnerChanged);
2033
+ cleanups.push(() => driver.removeEventListener('orchestrating-start', onOrchStart), () => driver.removeEventListener('orchestrating-stop', onOrchStop), () => driver.removeEventListener('agent-changed', onAgentChanged), () => driver.removeEventListener('pinned-changed', onPinnedChanged), () => driver.removeEventListener('flow-owner-changed', onFlowOwnerChanged));
2032
2034
  this.driverCleanup = () => {
2033
2035
  for (const fn of cleanups)
2034
2036
  fn();
@@ -2157,7 +2159,7 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
2157
2159
  store: isNewStore ? 'created' : 'restored',
2158
2160
  restoredMessages: this.messages.length,
2159
2161
  driver: driverExisted ? 'reused' : 'created',
2160
- driverKind: this.orchestrator ? 'orchestrating' : 'chat',
2162
+ driverKind: this.driverKind,
2161
2163
  driverBusy: (_f = (_e = this.driver) === null || _e === void 0 ? void 0 : _e.isBusy()) !== null && _f !== void 0 ? _f : false,
2162
2164
  });
2163
2165
  }
@@ -76,6 +76,10 @@ export const META_EVENT_IMPORTANCE = {
76
76
  'interaction.outcome': 'normal',
77
77
  // An outcome that could not be recorded: the widget goes on showing only the answer.
78
78
  'interaction.outcome-dropped': 'high',
79
+ // A claimant handing a pending interaction to the person, or taking it back.
80
+ 'interaction.held': 'normal',
81
+ // A claim on a `userOnly` interaction, refused. Expected when an interceptor claims broadly.
82
+ 'interaction.claim-refused': 'low',
79
83
  'external-diagnostics.folded': 'normal',
80
84
  'session.cleared': 'normal',
81
85
  'session.switched': 'low',
@@ -222,7 +226,8 @@ export const DEBUG_LOG_README = [
222
226
  "What 'session' means for those figures: the CURRENT conversation under this session key (a host-supplied per-project id, or the element id + header title when the host supplies none) — which is not necessarily everything in `timeline`. It is re-derived from the live transcript, so it spans page loads only when the chat is being remembered, and a Clear resets it to zero. `timeline` is append-only regardless: it keeps every page load and the pre-Clear conversation, with the session.cleared event as the boundary. So on a long-lived log, read these totals as the latest conversation's and the earlier sections as history — not as a total of the whole file.",
223
227
  '`timeline` is the entire session as one array, already sorted chronologically by `timestamp` (ISO 8601). Every entry has a `kind`.',
224
228
  'Timestamps are millisecond-resolution; entries that share the same millisecond are ordered by a fixed kind rank (event, then turn, then message), which is a heuristic and may not reflect exact causal order within that millisecond — e.g. a user message and the turn it triggered, or a final assistant message and its turn.end event, can appear in either order depending on whether they landed in the same millisecond. Read the logical structure of a turn rather than over-interpreting the micro-ordering of co-timestamped entries of different kinds.',
225
- "kind:'message' — the conversation. `role` is user/assistant/tool/system-event/synthetic-user; `agentName` says which agent produced it; `toolCalls`/`toolResult`/`interaction` carry tool and widget activity; `inputTokens`/`outputTokens`/`cost` are per-message LLM usage, where `inputTokens` is the WHOLE prompt for that request and `cacheReadTokens`/`cacheWriteTokens` BREAK IT DOWN rather than add to it — uncached input is `inputTokens` minus those two, and adding the cache fields to `inputTokens` counts the prompt twice. The cache fields are absent on providers that report no cache split (Gemini reports reads only, since implicit caching bills no write) and on messages persisted before they existed, so read them as 0 when missing. Each bucket bills at a different rate — cache reads a fraction of uncached input, cache writes a premium, output highest — so a large token count at a small cost means the prompt was mostly cache hits. `externalCostUsd` is any non-LLM cost a widget reported for its own external service calls (folded into the session cost total alongside `cost`). On model-produced assistant messages, `model` is the concrete model id that generated it (e.g. 'gemini-2.5-flash-lite') and `providerName` is the registry slot it resolved under (e.g. a tier name like 'high'/'low', or the default); together they attribute the message — and any tool calls it carries — to an exact model even across a mid-session vendor/tier switch, where one slot name can map to different models before and after the switch. Both are undefined on any entry that is NOT an LLM response: non-assistant roles (user/tool/system-event) and 'synthetic-user' echoes; assistant interaction/widget entries (empty content carrying an `interaction` — a rendered widget, not a model turn); driver-authored assistant fallbacks (the timeout, repeated-malformed-call, and empty-response apology messages); and messages restored from a session persisted before these fields existed. One partial case: on a genuine model turn whose provider exposes no `getStatus` (or reports no model), `providerName` is still set but `model` alone is undefined. A 'synthetic-user' message is a display-only echo of an interaction outcome (e.g. the answer a widget reported): it renders on the user's side of the chat and `agentName` is the agent that created it, but it is never sent to the LLM — so it has no matching 'turn' and the model learns the outcome only from the corresponding tool result.",
229
+ "kind:'message' — the conversation. `role` is user/assistant/tool/system-event/synthetic-user; `agentName` says which agent produced it; `toolCalls`/`toolResult`/`interaction` carry tool and widget activity; `inputTokens`/`outputTokens`/`cost` are per-message LLM usage, where `inputTokens` is the WHOLE prompt for that request and `cacheReadTokens`/`cacheWriteTokens` BREAK IT DOWN rather than add to it — uncached input is `inputTokens` minus those two, and adding the cache fields to `inputTokens` counts the prompt twice. The cache fields are absent on providers that report no cache split (Gemini reports reads only, since implicit caching bills no write) and on messages persisted before they existed, so read them as 0 when missing. Each bucket bills at a different rate — cache reads a fraction of uncached input, cache writes a premium, output highest — so a large token count at a small cost means the prompt was mostly cache hits. `externalCostUsd` is any non-LLM cost a widget reported for its own external service calls (folded into the session cost total alongside `cost`). On model-produced assistant messages, `model` is the concrete model id that generated it (e.g. 'gemini-2.5-flash-lite') and `providerName` is the registry slot it resolved under (e.g. a tier name like 'high'/'low', or the default); together they attribute the message — and any tool calls it carries — to an exact model even across a mid-session vendor/tier switch, where one slot name can map to different models before and after the switch. Both are undefined on any entry that is NOT an LLM response: non-assistant roles (user/tool/system-event) and 'synthetic-user' echoes; assistant interaction/widget entries (empty content carrying an `interaction` — a rendered widget, not a model turn); driver-authored assistant fallbacks (the timeout, repeated-malformed-call, and empty-response apology messages); and messages restored from a session persisted before these fields existed. One partial case: on a genuine model turn whose provider exposes no `getStatus` (or reports no model), `providerName` is still set but `model` alone is undefined. A 'synthetic-user' message is a display-only echo of an interaction outcome (e.g. the answer a widget reported): it renders on the user's side of the chat and `agentName` is the agent that created it, but it is never sent to the LLM — so it has no matching 'turn' and the model learns the outcome only from the corresponding tool result. An echo of an answer an interceptor (such as an autopilot) gave is NOT synthetic-user: see the delegated-messages paragraph.",
230
+ "Delegated messages (GENC-1660): a message with a `delegate` field was written or sent ON THE USER'S BEHALF by a driver decorator, and `delegate` names it (e.g. autopilot). The platform stamps it; nothing else can. It renders as the assistant whatever its role. A delegated `user` message was NOT typed by the user: it is an answer given on their behalf, and the model read it with `delegateFraming` in brackets in front of the content (the stored `content` is the bare text). A delegated `assistant` message is display-only (`excludeFromProvider`): the decorator's narration, or the echo of a widget answer it gave, which takes the place of a synthetic-user echo. To tell what the person decided from what was decided for them, read `interaction.answeredBy` and these fields, never the role alone.",
226
231
  "Sub-agent messages appear inline. When a tool delegates to a sub-agent (via `requestSubAgent`), the sub-agent's whole conversation — its own assistant/tool messages, each with their own `content`/`thinking`/`toolCalls`/`toolResult` and per-message `model`/`providerName`/`inputTokens`/`outputTokens`/`cacheReadTokens`/`cacheWriteTokens`/`cost` — is hoisted into the timeline as ordinary kind:'message' entries, interleaved by timestamp right after the tool call that spawned them (so you read the delegation top-to-bottom). A hoisted entry is marked: `subAgentDepth` is its delegation depth (1 for a sub-agent, 2 for a sub-agent's sub-agent, …), `subAgentOf` is the id of the parent tool call that spawned it (correlates it back even when two sub-agents run in one parent turn), `subAgentName` is the sub-agent's own name, and `agentName` is rewritten to a `\"<parent> › <sub-agent>\"` breadcrumb (composing when nested, e.g. `\"UI Builder › Planner › Grounding\"`). The sub-agent's per-LLM-call snapshots also surface as kind:'turn' entries with an N-M `turnIndex`, and subagent.started/completed (or subagent.failed) events bracket the run. Per-message `cost` on hoisted entries is already part of the session total (it is summed from the un-flattened history), so summing the top-level timeline does NOT double-count.",
227
232
  "kind:'turn' — one LLM call. `turnIndex` is a string: a top-level turn is the bare counter ('0', '1', …); a sub-agent's turns are numbered under the parent turn that activated them ('3-1', '3-2', …, and a nested sub-agent contributes '3-2-1', …), and `agentName` names the agent that ran the turn. `systemPrompt` and `toolNames` are what the model saw. A systemPrompt of '<repeated — identical to turn N>' was byte-identical to turn N and de-duplicated; the full prompt is shown whenever it changes (often because a stateful agent advanced), so prompt evolution is visible.",
228
233
  "kind:'turn'.`model`/`providerName`/`provider` — which model ran that call: the concrete model id, the registry slot it resolved under (a tier name like 'high'/'low', or the default), and the vendor. Recorded per CALL, so an agent whose `provider` selector varies by state — a flow that plans on a high tier and executes on a low one — has every step attributed, including calls that produced no message. `model` is the SERVING model where the provider reports one, so a turn answered by a server-side fallback names the model that answered rather than the one requested; it always matches the `model` on the message that call produced. Absent when the provider exposes no `getStatus` and the transport stamped nothing.",
@@ -230,7 +235,7 @@ export const DEBUG_LOG_README = [
230
235
  "kind:'turn'.`agentSnapshot` — the active agent's own view of its internal state, captured at that turn. An agent opts into this by exposing a `getDebugSnapshot()` that returns JSON-serializable per-state info; stateful/flow agents wire it automatically, so you can watch a flow advance turn-by-turn (e.g. current step, cursor, collected fields, pending changes). Absent for agents that don't expose one.",
231
236
  "kind:'event' — a meta/lifecycle event. `type` names it (see below); `detail` carries structured data. `detail.placement` is the emitting UI instance: 'bubble' (collapsed), 'panel' (popped-out), or 'standalone'.",
232
237
  "Each 'event' also has an `importance`: 'high' (failures/limits — turn.error, tool.failed, subagent.failed, file.read-failed, suggestions.failed, context.threshold-crossed), 'normal' (session flow — connects, turns, retries, handoffs, agent/provider changes, interactions, sub-agent start/complete), or 'low' (skippable UI/bookkeeping noise — panel.toggled, attachment.added, driver.wired/unwired, context.updated, context.condensed). To skim, ignore importance:'low'; to triage a failure, filter to importance:'high' then read the nearby messages and turns. A 'high' turn.error is often preceded by one or more 'normal' turn.retry events for the same reason — read them together to see how many attempts were made before bailing. 'message' and 'turn' entries carry no importance — they are the substance, always read them.",
233
- 'Event types: assistant.connected/disconnected (mount + placement + whether the session was created or restored), assistant.popout/popin (window placement), driver.created/wired/unwired (which driver is live and why it stops/starts responding across a popout), state.changed (idle↔loading), turn.start/turn.end (turn boundary; turn.end carries durationMs), turn.retry (a recoverable in-turn retry — detail.reason plus attempt/maxAttempts; for malformed calls also finishMessage; for empty responses also the provider finishReason + thoughtsTokens + parts breakdown), turn.error (a turn failed or hit a guardrail — detail.reason is one of exception/malformed-function-call/empty-response/unknown-tool-limit/max-iterations/response-truncated/refusal/budget-exhausted/provider-refused/context-exhausted/ai-service-error, plus reason-specific diagnostics: attempts (for empty-response also finishReason + thoughtsTokens + a parts breakdown, distinguishing a thinking-only STOP from a truly empty turn), finishMessage, for response-truncated the model + maxTokens + outputTokens + tools, unknownTools (split into staleTools — real earlier this activation but retired by the current state or hidden behind an open exclusive fold — and hallucinatedTools — never advertised) + availableTools, iterations + limit, for budget-exhausted the budgetUsd + spentUsd figures reported by the proxy plus the resolved vendor, for provider-refused the kind (spend|auth) plus the upstream status and error type — the vendor refusing the ACCOUNT rather than us refusing to spend, so the remedy is a top-up or a key rotation rather than a raised cap, and the kind is the only place that distinction survives because the user-facing copy is deliberately cause-free, for context-exhausted the estimated contextTokens against the guard that stopped the turn plus the iterations reached — the driver ending a runaway tool loop at the edge of the context window rather than issuing a request the provider would reject, so the transcript survives intact and can still be compacted, for ai-service-error the code (one of AI_SERVICE_ERROR_CODES, e.g. NO_API_KEY) and the status the AI service answered with — its own text goes to the browser console only, or name + message for exceptions), tool.failed (a tool threw), tool.unresolved (the model called a tool that could not be dispatched — detail.kind is folded/fold-hidden/stale/unknown, plus tool + agent and, for the counted kinds, the consecutive streak; the recurring lead-up to an unknown-tool-limit turn.error), subagent.started/completed/failed (the lifecycle of a `requestSubAgent` delegation — detail.agent names the sub-agent; these bracket the sub-agent turns that appear as kind:turn entries with an N-M `turnIndex`; subagent.failed also carries detail.reason, one of max_iterations/malformed_tool_call/empty_response/unknown_tool_limit/timeout/response_truncated/refusal/budget_exhausted/provider_refused/context_exhausted/ai_service_error; budget_exhausted and provider_refused are terminal for the PARENT turn too, and so is ai_service_error when the refusal is about the service rather than the request and came from the vendor the parent calls — the parent stops rather than calling the model again into the same wall; after context_exhausted the parent goes on, but its own next call is likely to stop on the same guard), agent.handoff (routing; from=null is the initial activation), agent.pinned/unpinned (forced routing), routing.decided (ONE PER ROUTING DECISION — see its own paragraph below), provider.selected (the resolved provider for the upcoming turns — detail.provider is the registry SLOT/tier name, detail.model the concrete model behind it and detail.vendor its vendor; emitted only when the slot CHANGES, so read the per-turn `model` for the model of any given call rather than assuming the nearest event still applies), interaction.requested/resolved (blocking user widgets — explain quiet gaps; note that when a sub-agent opens a widget, detail.agent — and the agentName on the interaction message — is the HOST agent that owns the widget, NOT the sub-agent that asked, because widgets render and resolve on the host driver), context.updated/threshold-crossed (token + cost), context.condensed (a stale tool payload was collapsed out of the model-bound history by a `condenseWhen` declaration on the tool — detail.tool + toolCallId, target args|response, trigger (superseded:<key> or age:<n>), stubLen, and an estimated tokensSaved; stored history and this log keep the FULL payload, so the model-visible slice at any point is the full history minus the condensations recorded up to then), panel.toggled, attachment.added, file.read-failed, suggestions.failed.',
238
+ 'Event types: assistant.connected/disconnected (mount + placement + whether the session was created or restored), assistant.popout/popin (window placement), driver.created/wired/unwired (which driver is live and why it stops/starts responding across a popout), state.changed (idle↔loading), turn.start/turn.end (turn boundary; turn.end carries durationMs), turn.retry (a recoverable in-turn retry — detail.reason plus attempt/maxAttempts; for malformed calls also finishMessage; for empty responses also the provider finishReason + thoughtsTokens + parts breakdown), turn.error (a turn failed or hit a guardrail — detail.reason is one of exception/malformed-function-call/empty-response/unknown-tool-limit/max-iterations/response-truncated/refusal/budget-exhausted/provider-refused/context-exhausted/ai-service-error, plus reason-specific diagnostics: attempts (for empty-response also finishReason + thoughtsTokens + a parts breakdown, distinguishing a thinking-only STOP from a truly empty turn), finishMessage, for response-truncated the model + maxTokens + outputTokens + tools, unknownTools (split into staleTools — real earlier this activation but retired by the current state or hidden behind an open exclusive fold — and hallucinatedTools — never advertised) + availableTools, iterations + limit, for budget-exhausted the budgetUsd + spentUsd figures reported by the proxy plus the resolved vendor, for provider-refused the kind (spend|auth) plus the upstream status and error type — the vendor refusing the ACCOUNT rather than us refusing to spend, so the remedy is a top-up or a key rotation rather than a raised cap, and the kind is the only place that distinction survives because the user-facing copy is deliberately cause-free, for context-exhausted the estimated contextTokens against the guard that stopped the turn plus the iterations reached — the driver ending a runaway tool loop at the edge of the context window rather than issuing a request the provider would reject, so the transcript survives intact and can still be compacted, for ai-service-error the code (one of AI_SERVICE_ERROR_CODES, e.g. NO_API_KEY) and the status the AI service answered with — its own text goes to the browser console only, or name + message for exceptions), tool.failed (a tool threw), tool.unresolved (the model called a tool that could not be dispatched — detail.kind is folded/fold-hidden/stale/unknown, plus tool + agent and, for the counted kinds, the consecutive streak; the recurring lead-up to an unknown-tool-limit turn.error), subagent.started/completed/failed (the lifecycle of a `requestSubAgent` delegation — detail.agent names the sub-agent; these bracket the sub-agent turns that appear as kind:turn entries with an N-M `turnIndex`; subagent.failed also carries detail.reason, one of max_iterations/malformed_tool_call/empty_response/unknown_tool_limit/timeout/response_truncated/refusal/budget_exhausted/provider_refused/context_exhausted/ai_service_error; budget_exhausted and provider_refused are terminal for the PARENT turn too, and so is ai_service_error when the refusal is about the service rather than the request and came from the vendor the parent calls — the parent stops rather than calling the model again into the same wall; after context_exhausted the parent goes on, but its own next call is likely to stop on the same guard), agent.handoff (routing; from=null is the initial activation), agent.pinned/unpinned (forced routing), routing.decided (ONE PER ROUTING DECISION — see its own paragraph below), provider.selected (the resolved provider for the upcoming turns — detail.provider is the registry SLOT/tier name, detail.model the concrete model behind it and detail.vendor its vendor; emitted only when the slot CHANGES, so read the per-turn `model` for the model of any given call rather than assuming the nearest event still applies), interaction.requested/resolved (blocking user widgets — explain quiet gaps; note that when a sub-agent opens a widget, detail.agent — and the agentName on the interaction message — is the HOST agent that owns the widget, NOT the sub-agent that asked, because widgets render and resolve on the host driver; detail.ownerPath names the agents that actually asked, outermost first, the last being the one whose tool requested it, and detail.heldBy says who held it when it opened: user, or the id of the interceptor that claimed it, such as autopilot; on interaction.resolved, detail.answeredBy is who answered — the claimant id when it settled through its own hold, user for any other answer (a click counts as the person even on a widget a claimant held) — absent when it closed unanswered (a timeout or a stop); the same value is stamped on the interaction message as answeredBy, and when it is not user the tool result that interaction returned carries a decidedOnUsersBehalf record, so the model was told the choice was not made by the person), interaction.held (a claimant moved a pending interaction to the person or back to itself — detail.heldBy is the new holder, detail.claimant the interceptor; a widget held by anything but user was not answered by the person), interaction.claim-refused (a claim on a userOnly interaction, which stays with the person — detail.claimant + reason), context.updated/threshold-crossed (token + cost), context.condensed (a stale tool payload was collapsed out of the model-bound history by a `condenseWhen` declaration on the tool — detail.tool + toolCallId, target args|response, trigger (superseded:<key> or age:<n>), stubLen, and an estimated tokensSaved; stored history and this log keep the FULL payload, so the model-visible slice at any point is the full history minus the condensations recorded up to then), panel.toggled, attachment.added, file.read-failed, suggestions.failed.',
234
239
  'Sub-agent meta events: a sub-agent\'s own turn.retry/turn.error/tool.failed/tool.unresolved events are merged into this same timeline, tagged with `detail.subAgent` — a `"<parent> › <sub-agent>"` breadcrumb that composes when nested (e.g. `"UI Builder › Planner › Grounding"`) — and interleaved by their original timestamps within the subagent.started→completed/failed bracket. These are the per-attempt/per-failure signals that do NOT appear among the sub-agent\'s (hoisted) messages: a malformed/empty attempt that gets retried produces no message, and the stale-vs-hallucinated split and streak counts live only on the event. A sub-agent\'s high-volume, message-derivable events (turn.start/turn.end, provider.selected, context.updated) are intentionally NOT merged — read its hoisted messages for model/tokens/cost and turn-by-turn activity, and the bracketing subagent.* events for the run\'s span.',
235
240
  "`meta` holds context captured at export time: agentSummary (full agent configs), context (active model, contextTokens/contextLimit/contextUsagePercent for the last call, and the session totals — sessionCostUsd, sessionTokensConsumed, and the four-bucket sessionUsage lifted to the top of this log), activeDebugSnapshot (the active agent's `getDebugSnapshot()` taken fresh at export — reflects state NOW, which may have advanced beyond the last turn's agentSnapshot), debug (optional host-supplied debug state), host, and the export timestamp.",
236
241
  'Note the two different scopes in `meta.context`: `contextTokens` is the prompt size of the LAST call (against `contextLimit`, the model context window), while `sessionUsage`/`sessionTokensConsumed` are cumulative BILLED throughput. Every turn resends the conversation, so the cumulative figure counts each turn’s prompt again in the next turn’s and is expected to dwarf the context size — that is not double-counting.',
@@ -12,8 +12,12 @@ export function createInteractionContext(interactionId) {
12
12
  const listeners = new Set();
13
13
  const disposers = new Set();
14
14
  let disposed = false;
15
+ let heldBy = 'user';
15
16
  const context = {
16
17
  interactionId,
18
+ get heldBy() {
19
+ return heldBy;
20
+ },
17
21
  state,
18
22
  once(key, factory) {
19
23
  if (onceCache.has(key))
@@ -78,5 +82,12 @@ export function createInteractionContext(interactionId) {
78
82
  // themselves are closed via their `onDispose`, but drop the references too.
79
83
  onceCache.clear();
80
84
  },
85
+ setHeldBy(holder) {
86
+ if (disposed || holder === heldBy)
87
+ return false;
88
+ heldBy = holder;
89
+ context.notify();
90
+ return true;
91
+ },
81
92
  };
82
93
  }
@@ -1,5 +1,4 @@
1
1
  import { __awaiter } from "tslib";
2
- import { asOrchestrator } from '../../components/orchestrating-driver/orchestrating-driver';
3
2
  import { flattenSubAgentMessages } from '../../utils/flatten-sub-agent-messages';
4
3
  import { logger } from '../../utils/logger';
5
4
  import { isSessionNoticeMarker, SESSION_RESTORE_FAILED_LABEL, SESSION_RESTORED_LABEL, SESSION_RESUMED_LABEL, } from '../../utils/message-partition';
@@ -699,11 +698,11 @@ export class SessionPersister {
699
698
  // (flow-owned but unpinned) — `resolvePinnedAgent` reads `flowOwnerAgentName ??
700
699
  // pinnedAgentName`, so restoring both resumes the flow without re-classifying, and the
701
700
  // driver's routing agrees with the restored (picker-locked) store state.
702
- const orchestrator = asOrchestrator(driver);
703
- if (orchestrator) {
704
- orchestrator.setPinnedAgent((_g = snapshot.pinnedAgentName) !== null && _g !== void 0 ? _g : null);
705
- orchestrator.setFlowOwner((_h = snapshot.flowOwnerAgentName) !== null && _h !== void 0 ? _h : null);
706
- }
701
+ //
702
+ // On the driver itself, not a narrowed orchestrator (GENC-1660): both members are on
703
+ // `AiDriver` and every decorator forwards them, so this reaches the routing whatever wraps it.
704
+ driver === null || driver === void 0 ? void 0 : driver.setPinnedAgent((_g = snapshot.pinnedAgentName) !== null && _g !== void 0 ? _g : null);
705
+ driver === null || driver === void 0 ? void 0 : driver.setFlowOwner((_h = snapshot.flowOwnerAgentName) !== null && _h !== void 0 ? _h : null);
707
706
  if (flowOwner) {
708
707
  this.logMeta('persistence.resume-planned', {
709
708
  flowOwner,
@@ -1,5 +1,6 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { reachesProvider } from '../utils/context-tokens';
3
+ import { frameDelegatedContent } from '../utils/delegated-message';
3
4
  import { logger } from '../utils/logger';
4
5
  /** Turns of transcript given to the model when suggesting follow-ups. */
5
6
  const HISTORY_WINDOW = 8;
@@ -75,7 +76,13 @@ export function buildSuggestionsPrompt(ctx, history, prompt, count, allAgentInfo
75
76
  !!((_b = m.content) === null || _b === void 0 ? void 0 : _b.trim());
76
77
  })
77
78
  .slice(-HISTORY_WINDOW)
78
- .map((m) => `${m.role === 'user' ? 'User' : 'Assistant'}: ${m.content}`)
79
+ // A delegated user message is read framed, as every other model call reads it (GENC-1660).
80
+ .map((m) => {
81
+ var _a;
82
+ return m.role === 'user'
83
+ ? `User: ${m.delegate ? frameDelegatedContent((_a = m.content) !== null && _a !== void 0 ? _a : '', m.delegateFraming) : m.content}`
84
+ : `Assistant: ${m.content}`;
85
+ })
79
86
  .join('\n');
80
87
  return (`<conversation_history>\n${conversationContext}\n</conversation_history>\n\n` +
81
88
  `The conversation above has ended. Do not continue it or respond as the assistant. ` +
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Whether `message` was written or sent on the user's behalf. A delegated message renders as the
3
+ * assistant, whatever its role.
4
+ *
5
+ * @beta
6
+ */
7
+ export const isDelegated = (message) => !!message.delegate;
8
+ /**
9
+ * How a delegated `user` message is framed for the model when its sender gives no phrase. Names no
10
+ * decorator, so the model has none to repeat.
11
+ *
12
+ * @beta
13
+ */
14
+ export const DEFAULT_DELEGATE_FRAMING = "Sent on the user's behalf.";
15
+ /**
16
+ * A delegated `user` message's content as the model reads it: its framing in brackets, then the
17
+ * text. The one place this string is built, so the first model call (which takes the message as
18
+ * its input) and every later call (which reads it from history) send the same bytes and the cache
19
+ * prefix holds.
20
+ *
21
+ * @internal
22
+ */
23
+ export function frameDelegatedContent(content, framing) {
24
+ return `(${framing !== null && framing !== void 0 ? framing : DEFAULT_DELEGATE_FRAMING})\n\n${content}`;
25
+ }
@@ -1,5 +1,6 @@
1
1
  import { __rest } from "tslib";
2
2
  import { COMPACTION_SUMMARY_TOKEN_ESTIMATE, estimateMessageTokens, projectCompaction, reachesProvider, } from './context-tokens';
3
+ import { frameDelegatedContent } from './delegated-message';
3
4
  /**
4
5
  * Masks the tool-specific payload of a single message — clears tool call args
5
6
  * and replaces tool result content with a placeholder. Used when passing history
@@ -204,7 +205,11 @@ function renderMessageForSummary(m) {
204
205
  case 'compacted-summary':
205
206
  return `[Earlier summary] ${m.content}`;
206
207
  case 'user':
207
- return m.content ? `User: ${m.content}` : '';
208
+ // A delegated message keeps its framing here too, or the summary would put words in the
209
+ // user's mouth that outlive the message itself (GENC-1660).
210
+ if (!m.content)
211
+ return '';
212
+ return `User: ${m.delegate ? frameDelegatedContent(m.content, m.delegateFraming) : m.content}`;
208
213
  case 'assistant': {
209
214
  // Reasoning ("Thinking") and narration ("Working") are display-only assistant splits
210
215
  // (GENC-1410) with no tool calls of their own — fold them into the summary too, labelled
@@ -265,6 +270,12 @@ export function buildCompactionSummaryPrompt(toCompact) {
265
270
  */
266
271
  export function normalizeForProvider(history) {
267
272
  return history.map((m) => {
273
+ var _a;
274
+ // A user message sent on the user's behalf (GENC-1660) is framed, so the model never reads
275
+ // it as something the person typed.
276
+ if (m.role === 'user' && m.delegate) {
277
+ return Object.assign(Object.assign({}, m), { content: frameDelegatedContent((_a = m.content) !== null && _a !== void 0 ? _a : '', m.delegateFraming) });
278
+ }
268
279
  if (m.role !== 'compacted-summary')
269
280
  return m;
270
281
  return Object.assign(Object.assign({}, m), { role: 'user', content: `<conversation_summary>\n${m.content}\n</conversation_summary>\n\n` +
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/ai-assistant",
3
3
  "description": "Genesis AI Assistant micro-frontend",
4
- "version": "15.58.1",
4
+ "version": "15.59.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/ai-assistant.d.ts",
@@ -92,31 +92,31 @@
92
92
  }
93
93
  },
94
94
  "devDependencies": {
95
- "@genesislcap/foundation-comms": "15.58.1",
96
- "@genesislcap/foundation-testing": "15.58.1",
97
- "@genesislcap/genx": "15.58.1",
98
- "@genesislcap/ts-builder": "15.58.1",
99
- "@genesislcap/uvu-playwright-builder": "15.58.1",
100
- "@genesislcap/vite-builder": "15.58.1",
101
- "@genesislcap/webpack-builder": "15.58.1",
95
+ "@genesislcap/foundation-comms": "15.59.0",
96
+ "@genesislcap/foundation-testing": "15.59.0",
97
+ "@genesislcap/genx": "15.59.0",
98
+ "@genesislcap/ts-builder": "15.59.0",
99
+ "@genesislcap/uvu-playwright-builder": "15.59.0",
100
+ "@genesislcap/vite-builder": "15.59.0",
101
+ "@genesislcap/webpack-builder": "15.59.0",
102
102
  "@types/dompurify": "^3.0.5",
103
103
  "@types/marked": "^5.0.2",
104
104
  "esbuild": "0.25.12"
105
105
  },
106
106
  "dependencies": {
107
- "@genesislcap/foundation-ai": "15.58.1",
108
- "@genesislcap/foundation-logger": "15.58.1",
109
- "@genesislcap/foundation-notifications": "15.58.1",
110
- "@genesislcap/foundation-redux": "15.58.1",
111
- "@genesislcap/foundation-ui": "15.58.1",
112
- "@genesislcap/foundation-utils": "15.58.1",
113
- "@genesislcap/rapid-design-system": "15.58.1",
114
- "@genesislcap/web-core": "15.58.1",
107
+ "@genesislcap/foundation-ai": "15.59.0",
108
+ "@genesislcap/foundation-logger": "15.59.0",
109
+ "@genesislcap/foundation-notifications": "15.59.0",
110
+ "@genesislcap/foundation-redux": "15.59.0",
111
+ "@genesislcap/foundation-ui": "15.59.0",
112
+ "@genesislcap/foundation-utils": "15.59.0",
113
+ "@genesislcap/rapid-design-system": "15.59.0",
114
+ "@genesislcap/web-core": "15.59.0",
115
115
  "dompurify": "^3.3.1",
116
116
  "marked": "^17.0.3"
117
117
  },
118
118
  "peerDependencies": {
119
- "@genesislcap/foundation-comms": "^15.58.1"
119
+ "@genesislcap/foundation-comms": "^15.59.0"
120
120
  },
121
121
  "peerDependenciesMeta": {
122
122
  "@genesislcap/foundation-comms": {