@genesislcap/ai-assistant 15.92.0 → 15.93.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.
@@ -1 +1 @@
1
- {"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,gBAAgB,EAIhB,WAAW,EAQX,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EAGrB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EACd,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EAKX,iBAAiB,EAKjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACV,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAGV,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAML,KAAK,uBAAuB,EAK7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,KAAK,qBAAqB,EAG3B,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,YAAY,EAAwB,MAAM,gCAAg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CAAC,oBAAoB;CAO7B"}
1
+ {"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,gBAAgB,EAIhB,WAAW,EAQX,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EAGrB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EACd,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EAKX,iBAAiB,EAKjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACV,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAGV,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAML,KAAK,uBAAuB,EAK7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,KAAK,qBAAqB,EAG3B,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,YAAY,EAAwB,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAgBxE,OAAO,EAEL,KAAK,o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*/
2
+ export declare const isIdleLimit: (ms: unknown) => ms is number;
3
+ /**
4
+ * The idle clock behind `requestSubAgent`'s `idleTimeoutMs`: expires once `ms` pass with no
5
+ * {@link IdleClock.touch}, and stands still while the sub-agent is parked on something that is not
6
+ * its own work (a user interaction).
7
+ */
8
+ export declare class IdleClock {
9
+ private readonly ms;
10
+ /** True once the clock ran out (as opposed to being stopped). */
11
+ expired: boolean;
12
+ private handle;
13
+ private onExpire;
14
+ private stopped;
15
+ private parked;
16
+ constructor(ms: number);
17
+ /** Starts the clock; `onExpire` runs once if it ever runs out. */
18
+ start(onExpire: () => void): void;
19
+ /** Progress was made: restart the clock in full (a no-op before `start`, after `stop`, or parked). */
20
+ touch(): void;
21
+ /**
22
+ * Pauses the clock until `waiting` settles, then restarts it in full. Returns a promise that
23
+ * settles the same way `waiting` does.
24
+ */
25
+ parkWhile<T>(waiting: Promise<T>): Promise<T>;
26
+ /** Clears the timer for good, so a late `touch` (an aborted run settling) cannot re-arm it. */
27
+ stop(): void;
28
+ }
29
+ //# sourceMappingURL=idle-clock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"idle-clock.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/idle-clock.ts"],"names":[],"mappings":"AAGA,gGAAgG;AAChG,eAAO,MAAM,WAAW,GAAI,IAAI,OAAO,KAAG,EAAE,IAAI,MAC+B,CAAC;AAEhF;;;;GAIG;AACH,qBAAa,SAAS;IASR,OAAO,CAAC,QAAQ,CAAC,EAAE;IAR/B,iEAAiE;IACjE,OAAO,UAAS;IAEhB,OAAO,CAAC,MAAM,CAA4C;IAC1D,OAAO,CAAC,QAAQ,CAA2B;IAC3C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAK;gBAEU,EAAE,EAAE,MAAM;IAEvC,kEAAkE;IAClE,KAAK,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAKjC,sGAAsG;IACtG,KAAK,IAAI,IAAI;IAWb;;;OAGG;IACH,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAS7C,+FAA+F;IAC/F,IAAI,IAAI,IAAI;CAKb"}
@@ -15,6 +15,7 @@ import { messageUsage, sumUsage } from '../../utils/sum-usage';
15
15
  import { AgentSession } from '../agent-session/agent-session';
16
16
  import { DEFAULT_MAX_FOLD_OPERATIONS, DEFAULT_MAX_TOOL_ITERATIONS, DEFAULT_MAX_TURN_SNAPSHOTS, DEFAULT_MAX_UNKNOWN_TOOL_CALLS, EMPTY_RESPONSE_NUDGE, HARVESTED_SUBAGENT_EVENTS, MALFORMED_CALL_NUDGE, MAX_EMPTY_RESPONSE_RETRIES, MAX_MALFORMED_RETRIES, MAX_SETUP_TRANSPORT_RETRIES, MAX_STALE_TOOL_CALLS, } from './chat-driver.constants';
17
17
  import { FoldController } from './fold-controller';
18
+ import { IdleClock, isIdleLimit } from './idle-clock';
18
19
  import { InteractionController, } from './interaction-controller';
19
20
  import { TURN_FAILURE_EXITS, turnDone } from './turn-failures';
20
21
  import { TurnRecorder } from './turn-recorder';
@@ -2253,7 +2254,12 @@ export class ChatDriver extends EventTarget {
2253
2254
  const available = [...this.subAgentsMap.keys()].join(', ') || '(none)';
2254
2255
  throw new Error(`Sub-agent "${name}" not found on agent "${this.activeAgentName}". Available: ${available}`);
2255
2256
  }
2256
- const { task, historyCap, context, timeoutMs } = options !== null && options !== void 0 ? options : {};
2257
+ const { task, historyCap, context, timeoutMs, idleTimeoutMs } = options !== null && options !== void 0 ? options : {};
2258
+ // Fed by the interaction route and the progress listeners below; inert until the race starts it.
2259
+ // On only for a finite value in (0, MAX_TIMER_MS]: 0 would abort at once, and Infinity or
2260
+ // anything above a timer's range overflows to 1ms. Anything else means no idle limit.
2261
+ const idle = isIdleLimit(idleTimeoutMs) ? new IdleClock(idleTimeoutMs) : undefined;
2262
+ const noteIdle = () => idle === null || idle === void 0 ? void 0 : idle.touch();
2257
2263
  // Exclude the current in-flight assistant message (the one with tool calls that
2258
2264
  // triggered this invocation) — it has unresolved tool calls that would confuse
2259
2265
  // the sub-agent into thinking it needs to handle tools it doesn't own. Found by its
@@ -2306,7 +2312,13 @@ export class ChatDriver extends EventTarget {
2306
2312
  // parent's (ultimately the root's) history and resolve via the same
2307
2313
  // pending map the main UI is wired to. Recurses naturally for nested
2308
2314
  // sub-agents.
2309
- child.setHostInteractionRequester((componentName, data, opts, onOpened, ownerPath, onSettled) => this.requestInteraction(componentName, data, opts, onOpened, ownerPath, onSettled),
2315
+ child.setHostInteractionRequester((componentName, data, opts, onOpened, ownerPath, onSettled) => {
2316
+ const settled = this.requestInteraction(componentName, data, opts, onOpened, ownerPath, onSettled);
2317
+ // Any open interaction pauses the idle clock until it settles (answered, timed out or
2318
+ // cancelled): a widget waiting on the person, doing its own work or held by an
2319
+ // interceptor is not the sub-agent stalling. `timeoutMs` bounds that work.
2320
+ return idle ? idle.parkWhile(settled) : settled;
2321
+ },
2310
2322
  // An outcome goes where its interaction went.
2311
2323
  (interactionId, outcome) => this.recordInteractionOutcome(interactionId, outcome));
2312
2324
  // The same route for a refusal the child absorbs, so the user sees it in the root transcript.
@@ -2315,6 +2327,8 @@ export class ChatDriver extends EventTarget {
2315
2327
  // driver's, scoped to this driver's flow, with the child's agent added to the owner path.
2316
2328
  child.capabilityParent = this;
2317
2329
  const forwardTrace = (e) => {
2330
+ // Each completed model call or tool-loop step changes the child's history: that is progress.
2331
+ noteIdle();
2318
2332
  this.dispatchEvent(new CustomEvent('sub-agent-history-updated', {
2319
2333
  detail: { agentName: subConfig.name, history: e.detail },
2320
2334
  }));
@@ -2328,6 +2342,9 @@ export class ChatDriver extends EventTarget {
2328
2342
  };
2329
2343
  child.addEventListener('history-updated', forwardTrace);
2330
2344
  child.addEventListener('provider-changed', forwardProviderChanged);
2345
+ // A sub-agent of the child's own is the child making progress, while the child itself waits
2346
+ // on the tool call that delegated to it.
2347
+ child.addEventListener('sub-agent-history-updated', noteIdle);
2331
2348
  const chatInputDuringExecution = options === null || options === void 0 ? void 0 : options.chatInputDuringExecution;
2332
2349
  const lifecycleDetail = { name, invocationId, chatInputDuringExecution };
2333
2350
  this.dispatchEvent(new CustomEvent('sub-agent-start', { detail: lifecycleDetail }));
@@ -2338,17 +2355,21 @@ export class ChatDriver extends EventTarget {
2338
2355
  let timedOut = false;
2339
2356
  const runPromise = child.sendMessage(task !== null && task !== void 0 ? task : '');
2340
2357
  try {
2341
- if (timeoutMs == null) {
2358
+ if (timeoutMs == null && !idle) {
2342
2359
  yield runPromise;
2343
2360
  }
2344
2361
  else {
2345
- // Race the run against the deadline. On timeout, abort the child (which
2362
+ // Race the run against the deadline (`timeoutMs`, the overall cap) and the idle limit
2363
+ // (`idleTimeoutMs`, no progress for that long). On either, abort the child (which
2346
2364
  // cancels its in-flight provider request) and let the aborted run settle
2347
2365
  // before we tear down and return the timeout outcome.
2348
2366
  let timeoutHandle;
2349
2367
  try {
2350
2368
  const timeoutSignal = new Promise((resolveTimeout) => {
2351
- timeoutHandle = setTimeout(() => resolveTimeout('timeout'), timeoutMs);
2369
+ if (timeoutMs != null) {
2370
+ timeoutHandle = setTimeout(() => resolveTimeout('timeout'), timeoutMs);
2371
+ }
2372
+ idle === null || idle === void 0 ? void 0 : idle.start(() => resolveTimeout('timeout'));
2352
2373
  });
2353
2374
  const winner = yield Promise.race([
2354
2375
  runPromise.then(() => 'done'),
@@ -2356,6 +2377,8 @@ export class ChatDriver extends EventTarget {
2356
2377
  ]);
2357
2378
  if (winner === 'timeout') {
2358
2379
  timedOut = true;
2380
+ // Keeps a late progress event (the aborted run settling) from re-arming the clock.
2381
+ idle === null || idle === void 0 ? void 0 : idle.stop();
2359
2382
  child.dispose();
2360
2383
  // The sub-agent may be parked awaiting a user interaction, which is
2361
2384
  // routed up to this driver and parked in *this* pending map (widgets
@@ -2364,12 +2387,15 @@ export class ChatDriver extends EventTarget {
2364
2387
  // interaction to close the widget and unblock the child. Without this,
2365
2388
  // `await runPromise` below would hang forever and the timeout would
2366
2389
  // never complete (or record `subagent.failed`).
2367
- this.interactions.cancelAll(`Sub-agent "${name}" timed out after ${timeoutMs}ms.`);
2390
+ this.interactions.cancelAll((idle === null || idle === void 0 ? void 0 : idle.expired)
2391
+ ? `Sub-agent "${name}" made no progress for ${idleTimeoutMs}ms.`
2392
+ : `Sub-agent "${name}" timed out after ${timeoutMs}ms.`);
2368
2393
  yield runPromise.catch(() => undefined);
2369
2394
  }
2370
2395
  }
2371
2396
  finally {
2372
- // Always clear the timer — even if the race rejects — so it never leaks.
2397
+ // Always clear the timers — even if the race rejects — so they never leak.
2398
+ idle === null || idle === void 0 ? void 0 : idle.stop();
2373
2399
  if (timeoutHandle)
2374
2400
  clearTimeout(timeoutHandle);
2375
2401
  }
@@ -2379,6 +2405,7 @@ export class ChatDriver extends EventTarget {
2379
2405
  this.lifecycleController.signal.removeEventListener('abort', disposeChild);
2380
2406
  child.removeEventListener('history-updated', forwardTrace);
2381
2407
  child.removeEventListener('provider-changed', forwardProviderChanged);
2408
+ child.removeEventListener('sub-agent-history-updated', noteIdle);
2382
2409
  // Tear the child down on every exit path, not just timeout/parent-abort.
2383
2410
  // A child that completes normally is otherwise never disposed, so its
2384
2411
  // provider-registry subscription (wired in the ChatDriver constructor)
@@ -2415,7 +2442,7 @@ export class ChatDriver extends EventTarget {
2415
2442
  // Same failure shape as any other non-completion — the parent handler
2416
2443
  // recovers on its existing `{ ok: false }` branch. Recorded under THIS
2417
2444
  // (parent) session so it lands on the user-visible debug-log timeline.
2418
- recordMetaEvent(this.sessionKey, 'subagent.failed', { agent: name, reason: 'timeout' });
2445
+ recordMetaEvent(this.sessionKey, 'subagent.failed', Object.assign({ agent: name, reason: 'timeout' }, ((idle === null || idle === void 0 ? void 0 : idle.expired) && { cause: 'idle' })));
2419
2446
  return { outcome: { ok: false, reason: 'timeout' }, trace };
2420
2447
  }
2421
2448
  const completion = child.getSubAgentCompletion();
@@ -0,0 +1,56 @@
1
+ /** The most a timer takes: above this `setTimeout` overflows and fires after 1ms. */
2
+ const MAX_TIMER_MS = 2147483647;
3
+ /** Whether `idleTimeoutMs` switches the idle limit on: a finite number in (0, MAX_TIMER_MS]. */
4
+ export const isIdleLimit = (ms) => typeof ms === 'number' && Number.isFinite(ms) && ms > 0 && ms <= MAX_TIMER_MS;
5
+ /**
6
+ * The idle clock behind `requestSubAgent`'s `idleTimeoutMs`: expires once `ms` pass with no
7
+ * {@link IdleClock.touch}, and stands still while the sub-agent is parked on something that is not
8
+ * its own work (a user interaction).
9
+ */
10
+ export class IdleClock {
11
+ constructor(ms) {
12
+ this.ms = ms;
13
+ /** True once the clock ran out (as opposed to being stopped). */
14
+ this.expired = false;
15
+ this.stopped = false;
16
+ this.parked = 0;
17
+ }
18
+ /** Starts the clock; `onExpire` runs once if it ever runs out. */
19
+ start(onExpire) {
20
+ this.onExpire = onExpire;
21
+ this.touch();
22
+ }
23
+ /** Progress was made: restart the clock in full (a no-op before `start`, after `stop`, or parked). */
24
+ touch() {
25
+ if (this.handle)
26
+ clearTimeout(this.handle);
27
+ this.handle = undefined;
28
+ if (!this.onExpire || this.stopped || this.parked > 0)
29
+ return;
30
+ this.handle = setTimeout(() => {
31
+ var _a;
32
+ this.expired = true;
33
+ this.stop();
34
+ (_a = this.onExpire) === null || _a === void 0 ? void 0 : _a.call(this);
35
+ }, this.ms);
36
+ }
37
+ /**
38
+ * Pauses the clock until `waiting` settles, then restarts it in full. Returns a promise that
39
+ * settles the same way `waiting` does.
40
+ */
41
+ parkWhile(waiting) {
42
+ this.parked += 1;
43
+ this.touch();
44
+ return waiting.finally(() => {
45
+ this.parked -= 1;
46
+ this.touch();
47
+ });
48
+ }
49
+ /** Clears the timer for good, so a late `touch` (an aborted run settling) cannot re-arm it. */
50
+ stop() {
51
+ this.stopped = true;
52
+ if (this.handle)
53
+ clearTimeout(this.handle);
54
+ this.handle = undefined;
55
+ }
56
+ }
@@ -269,7 +269,7 @@ export const DEBUG_LOG_README = [
269
269
  "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.",
270
270
  "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'.",
271
271
  "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.",
272
- "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), and absent too when it settled by itself other than through the hold of a claimant — a widget registered resolvesItself (one that does its work and settles on its own, asking the person nothing, such as a generation run), or one outcome its controller said settled itself (ctx.resolve with resolvedItself, such as a generation phase that failed outright before its review gate ever asked anything) — which then carries detail.resolvedItself: true instead, as the interaction message does — nobody answered it, and the platform cannot tell it finishing from the person interrupting it (a Skip), so only the result of the widget itself can say which; the same value is stamped on the interaction message as answeredBy and on the result the asking tool handler receives (absent there in the same cases), 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; detail.edits, present only when non-zero, counts the editing actions a claimant ran on the widget before it was settled, whoever settled it, and those edits are stamped on the interaction message as edits, each with by, action, choice and args when it had some, in the order they ran, while a decidedOnUsersBehalf record carries their choice texts as edits, and when the person settled it after such edits the tool result carries an editedOnUsersBehalf record instead — the framing and those choice texts — so the model knows the widget was changed on the user behalf before the user answered, and that the user then confirmed it by finishing it), 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; detail.late: true is an interceptor that declined it when it opened claiming it afterwards, such as the autopilot resumed while it was open; 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), autopilot.* (the autopilot, a decorator that answers interactions on behalf of the user — autopilot.claimed / autopilot.declined say whether it took each interaction and, for a decline, detail.reason: paused, other-flow, no-autopilot, unavailable, userOnly, policy or no-controller; one declined as paused that is still open when the person resumes the autopilot is looked at again, and the autopilot.claimed or autopilot.declined recorded for it then carries detail.onResume: true (a decline then can also be claimed-elsewhere, another interceptor having claimed it first); a restored mode looks at nothing; autopilot.decision-sent is what it was sent (detail.chars; detail.nothingEnabled: true when every action on the widget was unavailable — a gate whose controller said it was asking, such as a failed build the autopilot may not cancel — so it could only hand it back, which it may then do even after the person asked it to decide it itself; a widget whose controller says it is working (ctx.setWorking) is never sent a decision until it says it is asking, even when an action is enabled or the person resumes the autopilot); autopilot.acted is what it did (detail.action, detail.note, detail.finished); autopilot.handed-back is a decision it gave to the person (detail.reason and detail.trigger: model, no-decision or error); autopilot.paused / autopilot.resumed are mode changes (detail.scope, detail.trigger, detail.decideYourself when the person resumed during a hand-back; detail.trigger is restored when the mode came back with the session after a reload, applied once its flow re-activated, which starts nothing by itself); autopilot.carried is the mode, running or paused, going with the task to the agent that took it over, rather than ending with the flow as on any other change of flow owner: to the target of a hand-off, or back to its caller on the hand-back (detail.from, detail.to, detail.mode); a pause the person chose goes with it, and Stop and Clear still end it; a mode restored for the target of a hand-off applies to its caller when the reload hands back; autopilot.error is the wrapper itself failing; autopilot.refinement counts a refining action against its step — a written answer (reply) or a widget action declared refines, such as a regenerate with instructions, counted together (detail.action, detail.stepKey, detail.count, detail.limitReached, after which every refining action is withdrawn for that step: not listed, and refused; the decision and every relisting of its actions say how many are left at the step, as a line Refinements left at this step: N, wherever the widget has a refining action); autopilot.handback-presented is the turn-level hand-back, shown when a working turn ended needing the person with no widget to hand over (detail.why: max-iterations, context-exhausted, failure or question; detail.options; detail.choice once answered); autopilot.catch-up is the autopilot being given the whole visible transcript at once (detail.why: first, for its first decision in a flow or after a reload; size, when its own history passed its budget and was rebuilt short — detail.ownChars; or compacted, when a compaction removed the last message it had seen, so it reads the summary and everything since, short; in each, what it had sent on the user behalf is included and labelled as its own, since its own history does not hold it); autopilot.cost-dropped is autopilot spend that no message carries, so it is NOT in the session total (detail.costUsd and detail.why: handed-back, aborted or stale for a written question it answered that no reply was sent for — stale when a pause, a resume, a new turn or the end of its flow came before the answer landed, which then went nowhere — or no-recorder when the driver had no way to book a decision to its interaction); a hand-back trigger can also be budget (the decision passed its spend cap), watchdog (its work went quiet: no ready surface and no heartbeat, or its own decision stalled with no model call landing, which stops that decision) or detached (the autopilot was removed while it held the interaction, which went to the person with no reason shown). To debug one autopilot decision, follow its interactionId: interaction.requested (heldBy), autopilot.claimed, autopilot.decision-sent, autopilot.acted or autopilot.handed-back, interaction.invoked, interaction.resolved (answeredBy), then the next turn of the working agent), interaction.invoked (a claimant ran one of the actions the widget itself exposes, through its hold, the same code the button runs — detail.claimant, detail.action (an option id, select or reply) and detail.finished, whether that settled the interaction, and when it did not, the run is recorded as an edit; the choice and narration it recorded reach the result of the tool that asked as decidedOnUsersBehalf; the person's own programmatic action, from a host with no DOM to click, carries detail.by: user in place of detail.claimant, and is not recorded as an edit nor as a decision on their behalf, so what it settles is answered by user), interaction.step (a long action run as named steps through runSteps, which survive a reload — detail.step and detail.outcome: started, done, skipped when the step was already done before a reload, or resumed when it started before a reload and runs again with what it saved part-way, such as a job id it re-attaches to), interaction.checkpoint (the checkpoints a conversation keeps for its long actions: the one in flight, and each one a reload cut, held apart until a request of its own widget type takes it over, so a resumed flow that opens other long widgets first, which save their own, loses nothing — detail.action: resumed when a reload cut the work and a request of the same widget type that the registration sameWork agrees is the same work took it over, refused when sameWork said a new request is different work (detail.saved is the identity it kept; detail.kept: true, since it stays for a later request of that type, and is offered to every one until one agrees) or when runSteps found the handed-over checkpoint malformed and started fresh (detail.reason, detail.saved), or cleared when its flow ended, once per checkpoint, with detail.cut: true for one a reload cut that nothing took over), context.updated/threshold-crossed (token + cost), headless.attached (a HeadlessSession attached, for a host that drives the assistant with no screen — detail.label, what the host called itself, when it gave one) and headless.raw-resolved (that host settled an interaction raw, bypassing the widget's own actions: detail.interactionId and detail.component; the result went to the tool as given, so check what the widget would have enforced), 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.",
272
+ "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, and for timeout detail.cause: 'idle' when it was the sub-agent making no progress for `idleTimeoutMs` rather than the overall `timeoutMs` (absent for the latter); 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), and absent too when it settled by itself other than through the hold of a claimant — a widget registered resolvesItself (one that does its work and settles on its own, asking the person nothing, such as a generation run), or one outcome its controller said settled itself (ctx.resolve with resolvedItself, such as a generation phase that failed outright before its review gate ever asked anything) — which then carries detail.resolvedItself: true instead, as the interaction message does — nobody answered it, and the platform cannot tell it finishing from the person interrupting it (a Skip), so only the result of the widget itself can say which; the same value is stamped on the interaction message as answeredBy and on the result the asking tool handler receives (absent there in the same cases), 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; detail.edits, present only when non-zero, counts the editing actions a claimant ran on the widget before it was settled, whoever settled it, and those edits are stamped on the interaction message as edits, each with by, action, choice and args when it had some, in the order they ran, while a decidedOnUsersBehalf record carries their choice texts as edits, and when the person settled it after such edits the tool result carries an editedOnUsersBehalf record instead — the framing and those choice texts — so the model knows the widget was changed on the user behalf before the user answered, and that the user then confirmed it by finishing it), 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; detail.late: true is an interceptor that declined it when it opened claiming it afterwards, such as the autopilot resumed while it was open; 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), autopilot.* (the autopilot, a decorator that answers interactions on behalf of the user — autopilot.claimed / autopilot.declined say whether it took each interaction and, for a decline, detail.reason: paused, other-flow, no-autopilot, unavailable, userOnly, policy or no-controller; one declined as paused that is still open when the person resumes the autopilot is looked at again, and the autopilot.claimed or autopilot.declined recorded for it then carries detail.onResume: true (a decline then can also be claimed-elsewhere, another interceptor having claimed it first); a restored mode looks at nothing; autopilot.decision-sent is what it was sent (detail.chars; detail.nothingEnabled: true when every action on the widget was unavailable — a gate whose controller said it was asking, such as a failed build the autopilot may not cancel — so it could only hand it back, which it may then do even after the person asked it to decide it itself; a widget whose controller says it is working (ctx.setWorking) is never sent a decision until it says it is asking, even when an action is enabled or the person resumes the autopilot); autopilot.acted is what it did (detail.action, detail.note, detail.finished); autopilot.handed-back is a decision it gave to the person (detail.reason and detail.trigger: model, no-decision or error); autopilot.paused / autopilot.resumed are mode changes (detail.scope, detail.trigger, detail.decideYourself when the person resumed during a hand-back; detail.trigger is restored when the mode came back with the session after a reload, applied once its flow re-activated, which starts nothing by itself); autopilot.carried is the mode, running or paused, going with the task to the agent that took it over, rather than ending with the flow as on any other change of flow owner: to the target of a hand-off, or back to its caller on the hand-back (detail.from, detail.to, detail.mode); a pause the person chose goes with it, and Stop and Clear still end it; a mode restored for the target of a hand-off applies to its caller when the reload hands back; autopilot.error is the wrapper itself failing; autopilot.refinement counts a refining action against its step — a written answer (reply) or a widget action declared refines, such as a regenerate with instructions, counted together (detail.action, detail.stepKey, detail.count, detail.limitReached, after which every refining action is withdrawn for that step: not listed, and refused; the decision and every relisting of its actions say how many are left at the step, as a line Refinements left at this step: N, wherever the widget has a refining action); autopilot.handback-presented is the turn-level hand-back, shown when a working turn ended needing the person with no widget to hand over (detail.why: max-iterations, context-exhausted, failure or question; detail.options; detail.choice once answered); autopilot.catch-up is the autopilot being given the whole visible transcript at once (detail.why: first, for its first decision in a flow or after a reload; size, when its own history passed its budget and was rebuilt short — detail.ownChars; or compacted, when a compaction removed the last message it had seen, so it reads the summary and everything since, short; in each, what it had sent on the user behalf is included and labelled as its own, since its own history does not hold it); autopilot.cost-dropped is autopilot spend that no message carries, so it is NOT in the session total (detail.costUsd and detail.why: handed-back, aborted or stale for a written question it answered that no reply was sent for — stale when a pause, a resume, a new turn or the end of its flow came before the answer landed, which then went nowhere — or no-recorder when the driver had no way to book a decision to its interaction); a hand-back trigger can also be budget (the decision passed its spend cap), watchdog (its work went quiet: no ready surface and no heartbeat, or its own decision stalled with no model call landing, which stops that decision) or detached (the autopilot was removed while it held the interaction, which went to the person with no reason shown). To debug one autopilot decision, follow its interactionId: interaction.requested (heldBy), autopilot.claimed, autopilot.decision-sent, autopilot.acted or autopilot.handed-back, interaction.invoked, interaction.resolved (answeredBy), then the next turn of the working agent), interaction.invoked (a claimant ran one of the actions the widget itself exposes, through its hold, the same code the button runs — detail.claimant, detail.action (an option id, select or reply) and detail.finished, whether that settled the interaction, and when it did not, the run is recorded as an edit; the choice and narration it recorded reach the result of the tool that asked as decidedOnUsersBehalf; the person's own programmatic action, from a host with no DOM to click, carries detail.by: user in place of detail.claimant, and is not recorded as an edit nor as a decision on their behalf, so what it settles is answered by user), interaction.step (a long action run as named steps through runSteps, which survive a reload — detail.step and detail.outcome: started, done, skipped when the step was already done before a reload, or resumed when it started before a reload and runs again with what it saved part-way, such as a job id it re-attaches to), interaction.checkpoint (the checkpoints a conversation keeps for its long actions: the one in flight, and each one a reload cut, held apart until a request of its own widget type takes it over, so a resumed flow that opens other long widgets first, which save their own, loses nothing — detail.action: resumed when a reload cut the work and a request of the same widget type that the registration sameWork agrees is the same work took it over, refused when sameWork said a new request is different work (detail.saved is the identity it kept; detail.kept: true, since it stays for a later request of that type, and is offered to every one until one agrees) or when runSteps found the handed-over checkpoint malformed and started fresh (detail.reason, detail.saved), or cleared when its flow ended, once per checkpoint, with detail.cut: true for one a reload cut that nothing took over), context.updated/threshold-crossed (token + cost), headless.attached (a HeadlessSession attached, for a host that drives the assistant with no screen — detail.label, what the host called itself, when it gave one) and headless.raw-resolved (that host settled an interaction raw, bypassing the widget's own actions: detail.interactionId and detail.component; the result went to the tool as given, so check what the widget would have enforced), 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.",
273
273
  '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.',
274
274
  "`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.",
275
275
  '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.',
package/docs/sub_agent.md CHANGED
@@ -105,9 +105,39 @@ interface SubAgentRequestOptions {
105
105
  * part of its context.
106
106
  */
107
107
  context?: Record<string, unknown>;
108
+
109
+ /**
110
+ * Overall cap, in ms, on the whole run. When it passes the run is aborted and
111
+ * `requestSubAgent` resolves with `{ ok: false, reason: 'timeout' }`.
112
+ */
113
+ timeoutMs?: number;
114
+
115
+ /**
116
+ * Idle limit, in ms: how long the sub-agent may go without making progress.
117
+ * The clock restarts each time it completes a model call or tool-loop step, so
118
+ * a long run that keeps moving is not cut off. On expiry the outcome is the
119
+ * same `{ ok: false, reason: 'timeout' }` as `timeoutMs`. Either option may be
120
+ * set alone, or both together (`timeoutMs` is then the backstop).
121
+ */
122
+ idleTimeoutMs?: number;
108
123
  }
109
124
  ```
110
125
 
126
+ `idleTimeoutMs` sees progress only at step boundaries — nothing finer (a streamed
127
+ delta, a thinking chunk) reaches the driver — so set it above the slowest single
128
+ model call or tool call the sub-agent makes.
129
+
130
+ The idle limit is on only for a finite number above 0 and up to 2147483647 (the
131
+ most a timer takes). Anything else (0, a negative, NaN, `Infinity`, or a larger
132
+ number) means no idle limit, as if unset.
133
+
134
+ The idle clock is paused while **any** interaction the sub-agent opened is open,
135
+ and restarts in full when it settles. That is not only a widget waiting on the
136
+ person: it also covers a widget that does its own work (one registered
137
+ `resolvesItself`, or one under `ctx.setWorking(true)`) and one an interceptor such
138
+ as an autopilot holds. Nothing bounds that work but `timeoutMs`, so set it as
139
+ well when a widget's own work could stall.
140
+
111
141
  ---
112
142
 
113
143
  ## Returning structured results: `completeSubAgent`
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.92.0",
4
+ "version": "15.93.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",
@@ -102,31 +102,31 @@
102
102
  }
103
103
  },
104
104
  "devDependencies": {
105
- "@genesislcap/foundation-comms": "15.92.0",
106
- "@genesislcap/foundation-testing": "15.92.0",
107
- "@genesislcap/genx": "15.92.0",
108
- "@genesislcap/ts-builder": "15.92.0",
109
- "@genesislcap/uvu-playwright-builder": "15.92.0",
110
- "@genesislcap/vite-builder": "15.92.0",
111
- "@genesislcap/webpack-builder": "15.92.0",
105
+ "@genesislcap/foundation-comms": "15.93.0",
106
+ "@genesislcap/foundation-testing": "15.93.0",
107
+ "@genesislcap/genx": "15.93.0",
108
+ "@genesislcap/ts-builder": "15.93.0",
109
+ "@genesislcap/uvu-playwright-builder": "15.93.0",
110
+ "@genesislcap/vite-builder": "15.93.0",
111
+ "@genesislcap/webpack-builder": "15.93.0",
112
112
  "@types/dompurify": "^3.0.5",
113
113
  "@types/marked": "^5.0.2",
114
114
  "esbuild": "0.25.12"
115
115
  },
116
116
  "dependencies": {
117
- "@genesislcap/foundation-ai": "15.92.0",
118
- "@genesislcap/foundation-logger": "15.92.0",
119
- "@genesislcap/foundation-notifications": "15.92.0",
120
- "@genesislcap/foundation-redux": "15.92.0",
121
- "@genesislcap/foundation-ui": "15.92.0",
122
- "@genesislcap/foundation-utils": "15.92.0",
123
- "@genesislcap/rapid-design-system": "15.92.0",
124
- "@genesislcap/web-core": "15.92.0",
117
+ "@genesislcap/foundation-ai": "15.93.0",
118
+ "@genesislcap/foundation-logger": "15.93.0",
119
+ "@genesislcap/foundation-notifications": "15.93.0",
120
+ "@genesislcap/foundation-redux": "15.93.0",
121
+ "@genesislcap/foundation-ui": "15.93.0",
122
+ "@genesislcap/foundation-utils": "15.93.0",
123
+ "@genesislcap/rapid-design-system": "15.93.0",
124
+ "@genesislcap/web-core": "15.93.0",
125
125
  "dompurify": "^3.3.1",
126
126
  "marked": "^17.0.3"
127
127
  },
128
128
  "peerDependencies": {
129
- "@genesislcap/foundation-comms": "15.92.0"
129
+ "@genesislcap/foundation-comms": "15.93.0"
130
130
  },
131
131
  "peerDependenciesMeta": {
132
132
  "@genesislcap/foundation-comms": {