@genesislcap/ai-assistant 15.13.0 → 15.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +407 -407
  2. package/package.json +17 -17
@@ -4676,6 +4676,48 @@
4676
4676
  }
4677
4677
  ]
4678
4678
  },
4679
+ {
4680
+ "kind": "javascript-module",
4681
+ "path": "src/provider/ai-provider-switcher.ts",
4682
+ "declarations": [
4683
+ {
4684
+ "kind": "variable",
4685
+ "name": "AIProviderSwitcher",
4686
+ "description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
4687
+ }
4688
+ ],
4689
+ "exports": [
4690
+ {
4691
+ "kind": "js",
4692
+ "name": "AIProviderSwitcher",
4693
+ "declaration": {
4694
+ "name": "AIProviderSwitcher",
4695
+ "module": "src/provider/ai-provider-switcher.ts"
4696
+ }
4697
+ }
4698
+ ]
4699
+ },
4700
+ {
4701
+ "kind": "javascript-module",
4702
+ "path": "src/provider/assistant-app-settings.ts",
4703
+ "declarations": [
4704
+ {
4705
+ "kind": "variable",
4706
+ "name": "AssistantAppSettingsProvider",
4707
+ "description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
4708
+ }
4709
+ ],
4710
+ "exports": [
4711
+ {
4712
+ "kind": "js",
4713
+ "name": "AssistantAppSettingsProvider",
4714
+ "declaration": {
4715
+ "name": "AssistantAppSettingsProvider",
4716
+ "module": "src/provider/assistant-app-settings.ts"
4717
+ }
4718
+ }
4719
+ ]
4720
+ },
4679
4721
  {
4680
4722
  "kind": "javascript-module",
4681
4723
  "path": "src/state/ai-assistant-slice.ts",
@@ -5414,48 +5456,6 @@
5414
5456
  "declarations": [],
5415
5457
  "exports": []
5416
5458
  },
5417
- {
5418
- "kind": "javascript-module",
5419
- "path": "src/provider/ai-provider-switcher.ts",
5420
- "declarations": [
5421
- {
5422
- "kind": "variable",
5423
- "name": "AIProviderSwitcher",
5424
- "description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
5425
- }
5426
- ],
5427
- "exports": [
5428
- {
5429
- "kind": "js",
5430
- "name": "AIProviderSwitcher",
5431
- "declaration": {
5432
- "name": "AIProviderSwitcher",
5433
- "module": "src/provider/ai-provider-switcher.ts"
5434
- }
5435
- }
5436
- ]
5437
- },
5438
- {
5439
- "kind": "javascript-module",
5440
- "path": "src/provider/assistant-app-settings.ts",
5441
- "declarations": [
5442
- {
5443
- "kind": "variable",
5444
- "name": "AssistantAppSettingsProvider",
5445
- "description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
5446
- }
5447
- ],
5448
- "exports": [
5449
- {
5450
- "kind": "js",
5451
- "name": "AssistantAppSettingsProvider",
5452
- "declaration": {
5453
- "name": "AssistantAppSettingsProvider",
5454
- "module": "src/provider/assistant-app-settings.ts"
5455
- }
5456
- }
5457
- ]
5458
- },
5459
5459
  {
5460
5460
  "kind": "javascript-module",
5461
5461
  "path": "src/types/ai-chat-widget.ts",
@@ -10231,171 +10231,390 @@
10231
10231
  },
10232
10232
  {
10233
10233
  "kind": "javascript-module",
10234
- "path": "src/components/settings-modal/index.ts",
10234
+ "path": "src/components/popout-manager/index.ts",
10235
10235
  "declarations": [],
10236
10236
  "exports": [
10237
10237
  {
10238
10238
  "kind": "js",
10239
- "name": "SettingsModalTemplate",
10240
- "declaration": {
10241
- "name": "SettingsModalTemplate",
10242
- "module": "./settings-modal.template"
10243
- }
10244
- },
10245
- {
10246
- "kind": "js",
10247
- "name": "type",
10248
- "declaration": {
10249
- "name": "type",
10250
- "module": "./settings-modal.template"
10251
- }
10252
- },
10253
- {
10254
- "kind": "js",
10255
- "name": "SettingsModalTab",
10256
- "declaration": {
10257
- "name": "SettingsModalTab",
10258
- "module": "./settings-modal.template"
10259
- }
10260
- },
10261
- {
10262
- "kind": "js",
10263
- "name": "settingsModalStyles",
10264
- "declaration": {
10265
- "name": "settingsModalStyles",
10266
- "module": "./settings-modal.styles"
10267
- }
10268
- }
10269
- ]
10270
- },
10271
- {
10272
- "kind": "javascript-module",
10273
- "path": "src/components/settings-modal/settings-modal.styles.ts",
10274
- "declarations": [
10275
- {
10276
- "kind": "variable",
10277
- "name": "settingsModalStyles",
10278
- "default": "css`\n /*\n * Section headings come from the shared fragment the package also exports, so a host titling\n * its own slotted section applies the same rule rather than a copy of it.\n */\n ${assistantSettingsSectionTitleStyles}\n\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n .settings-modal {\n --ai-tier-badge-bg-mix: 14%;\n --ai-tier-badge-text-lighten: 18%;\n }\n\n .settings-modal::part(dialog) {\n max-width: 620px;\n width: calc(100vw - 48px);\n max-height: calc(100vh - 48px);\n padding: 0;\n }\n\n .settings-modal::part(content) {\n display: flex;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n width: 100%;\n }\n\n .settings-modal::part(top) {\n padding: calc(var(--design-unit) * 4px) calc(var(--design-unit) * 5px);\n border-bottom: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-modal::part(bottom) {\n padding: calc(var(--design-unit) * 4px) calc(var(--design-unit) * 5px);\n border-top: 1px solid var(--neutral-stroke-rest);\n border-bottom-left-radius: var(--card-border-radius, calc(var(--control-corner-radius) * 1px));\n border-bottom-right-radius: var(--card-border-radius, calc(var(--control-corner-radius) * 1px));\n background-color: var(--neutral-layer-2);\n }\n\n .settings-modal-header {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .settings-modal-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n color: var(--neutral-foreground-rest);\n }\n\n .settings-modal-content {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1 1 auto;\n }\n\n .settings-modal-tabs::part(tablist) {\n border-bottom: 0;\n padding: 0 calc(var(--design-unit) * 5px);\n column-gap: calc(var(--design-unit) * 5px);\n }\n\n .settings-modal-tabs::part(activeIndicator) {\n height: 2px;\n }\n\n .settings-modal-tab {\n padding: 0;\n font-weight: 600;\n gap: 6px;\n }\n\n .settings-modal-tab[aria-selected='true'] {\n color: var(--neutral-foreground-rest);\n }\n\n .settings-modal-tabs::part(tabpanel) {\n border-top: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-modal-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1 1 auto;\n padding: 0;\n border-radius: 0;\n }\n\n .settings-modal-tab-panel[hidden] {\n display: none !important;\n }\n\n .settings-modal-body {\n overflow-y: auto;\n padding: 0 calc(var(--design-unit) * 5px) calc(var(--design-unit) * 2px);\n max-height: min(60vh, 520px);\n }\n\n .settings-modal-section {\n padding: calc(var(--design-unit) * 5px) 0;\n border-bottom: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-modal-section:last-child {\n border-bottom: none;\n }\n\n /*\n * Only the spacing. Everything else about this heading comes from the exported fragment\n * above, which the assistant and its hosts share; margin is deliberately not in there,\n * since the gap below a heading depends on the layout around it.\n */\n .ai-settings-section-title {\n margin: 0 0 calc(var(--design-unit) * 3px);\n }\n\n .settings-modal-section-note {\n margin: calc(var(--design-unit) * -2px) 0 calc(var(--design-unit) * 3px);\n font-size: 12px;\n line-height: 1.5;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-modal-section-body {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 4px);\n }\n\n .settings-toggle-row {\n display: flex;\n align-items: flex-start;\n gap: calc(var(--design-unit) * 3px);\n padding: 0 0 calc(var(--design-unit) * 4px) 0;\n border-bottom: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-toggle-row:last-child {\n border-bottom: none;\n padding-bottom: calc(var(--design-unit) * 1px);\n }\n\n .settings-toggle-row.is-stacked {\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n }\n\n /*\n * For rows whose control is a button rather than a switch. The base row top-aligns, which suits\n * a switch (it lands level with the title), but a button is tall enough that top-aligning leaves\n * it above the title-plus-description block it acts on.\n */\n .settings-toggle-row.is-centered {\n align-items: center;\n }\n\n .settings-animation-list {\n display: flex;\n flex-direction: column;\n width: 100%;\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.2px);\n padding: calc(var(--design-unit) * 2px);\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-animation-list .settings-toggle-row {\n border: 0;\n }\n\n .settings-animation-category {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 4px);\n }\n\n .settings-animation-category-label {\n font-weight: 600;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-toggle-row + .settings-animation-category-label {\n border-top: 1px solid var(--neutral-stroke-rest);\n padding-top: calc(var(--design-unit) * 2px);\n }\n\n .settings-animation-option {\n padding: 0;\n margin: 0;\n }\n\n .settings-animation-option:last-child {\n border-bottom: none;\n padding-bottom: calc(var(--design-unit) * 2px);\n }\n\n .settings-toggle-text {\n flex: 1;\n min-width: 0;\n }\n\n .settings-toggle-title {\n font-size: 14px;\n font-weight: 500;\n color: var(--neutral-foreground-rest);\n }\n\n .settings-toggle-desc {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n line-height: 1.5;\n max-width: 92%;\n }\n\n .settings-toggle-control {\n flex: 0 0 auto;\n min-width: 0;\n }\n\n .settings-toggle-control-wide {\n width: 100%;\n max-width: 280px;\n }\n\n .settings-toggle-row.is-stacked .settings-toggle-desc {\n max-width: none;\n }\n\n .settings-toggle-row.is-stacked .settings-toggle-control-wide {\n width: 100%;\n max-width: none;\n }\n\n /*\n * Sub-heading over the provider toggle group. Unlike the section headings it sits INSIDE\n * .settings-modal-section-body, so the parent's 4-unit flex gap already separates it from the\n * first toggle — and flex does not collapse margins, so the shared rule's 3-unit margin-bottom\n * would add to that gap rather than replace it, leaving the label adrift from the rows it\n * names. Zero the margin and pull back 2 of the 4 gap units, expressed in the same token so it\n * tracks if that gap changes.\n */\n .settings-app-toggles-title {\n margin: 0 0 calc(var(--design-unit) * -2px);\n }\n\n .settings-app-toggle-block {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 1px);\n }\n\n .settings-toggle-hint {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n line-height: 1.4;\n padding-left: calc(var(--design-unit) * 1px);\n font-style: italic;\n }\n\n /*\n * The budget meter (GENC-1464) is the context indicator's money sibling and\n * shares its row anatomy 1:1, so the budget classes JOIN these rules rather\n * than restating them — one place to restyle the header/label/figures shape,\n * and the two indicators cannot drift apart. Design-system tokens only, and\n * unfallbacked: every token here ships a DS default, so a var(--x, y)\n * fallback would be dead code that hides a broken token name (#2411/#2436\n * review rule, pinned by settings-modal.styles.test.ts).\n */\n .settings-context-header,\n .settings-budget-header {\n display: flex;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n font-size: 12px;\n }\n\n .settings-context-label,\n .settings-budget-label {\n color: var(--neutral-foreground-hint);\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n }\n\n .settings-context-tokens,\n .settings-budget-figures {\n color: var(--neutral-foreground-rest);\n }\n\n /* Freshness footer (GENC-1464): refresh button + label under the vendor\n rows, left-aligned — a footnote to the figures above it. The button's\n inline padding is pinned and cancelled by the container margin so the\n ICON GLYPH (not the button box) sits flush with the budget labels'\n left edge, whatever the density tokens say. */\n .settings-budget-toolbar {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 4px;\n margin-inline-start: -4px;\n }\n\n .settings-budget-refresh::part(control) {\n padding-inline: 4px;\n }\n\n .settings-budget-updated {\n color: var(--neutral-foreground-hint);\n font-size: 11px;\n }\n\n /*\n * ONE rhythm for every meter row. The outer wrapper holds the context\n * indicator and the budget meter; the inner one holds the budget meter's\n * vendor rows — and both gap by the same 2 units (half the section body's 4)\n * so that visually identical meter rows are evenly spaced whatever mix of\n * them is on screen. Without the wrapper the context row inherits the body's\n * 4-unit gap while the vendor rows keep 2, and three identical-looking rows\n * read as an uneven 4/2/2. The wrapper renders only when at least one meter\n * does — see settingsUsageMetersTemplate for why an always-on one would cost\n * a stray gap.\n */\n .settings-usage-meters,\n .settings-budget-usage {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-current-build,\n .settings-lifetime-usage {\n background: var(--neutral-layer-2);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n padding: calc(var(--design-unit) * 4px);\n margin: calc(var(--design-unit) * 3px) 0;\n }\n\n /*\n * Deliberately quieter than the live block: no pulsing badge and no accent, so the eye lands\n * on what is being built now — which is why that block leads the tab and this one follows,\n * under the history heading whose rows it totals.\n */\n .settings-lifetime-usage-top {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 3px);\n }\n\n .settings-lifetime-label {\n font-size: 10px;\n line-height: 1;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-current-build-top {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 3px);\n }\n\n /*\n * Optically centring these 10px caps against the 14px project name beside them. Flex offers\n * only two alignments and neither lands it, because a box centre and a text baseline are\n * different lines:\n * - align-items: center sits the badge baseline about 1.2px high\n * - align-items: baseline matches baselines, but the caps then read as bottom-aligned\n * against the name's ascenders, so the badge looks low\n * The eye wants the midpoint, so: centre the boxes, then translate down by the ~1px of\n * overshoot. This is a nudge, but it corrects a fixed relationship between two font sizes\n * rather than some neighbouring element's layout, so unlike a margin tuned to a sibling it\n * cannot rot when that sibling changes. In em, so it tracks the badge text.\n *\n * display: block, not inline-flex: a flex container has no text baseline of its own and\n * synthesizes one from its first child, which here is the dot, an empty span. As a block box\n * the badge takes the baseline of its first line, i.e. the text.\n */\n .settings-live-badge {\n display: block;\n font-size: 10px;\n line-height: 1;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--accent-fill-rest);\n white-space: nowrap;\n transform: translateY(0.1em);\n }\n\n .settings-live-dot {\n display: inline-block;\n width: 7px;\n height: 7px;\n\n /* Replaces the flex gap the badge no longer has. */\n margin-right: calc(var(--design-unit) * 1px);\n\n /* Centres the dot on the text beside it without disturbing that text's baseline. */\n vertical-align: middle;\n border-radius: 50%;\n background: var(--accent-fill-rest);\n animation: settings-live-pulse 1.6s ease-out infinite;\n }\n\n @keyframes settings-live-pulse {\n 0% {\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-fill-rest) 55%, transparent);\n }\n\n 70% {\n box-shadow: 0 0 0 7px transparent;\n }\n\n 100% {\n box-shadow: 0 0 0 0 transparent;\n }\n }\n\n .settings-current-build-name {\n font-size: 14px;\n line-height: 1;\n font-weight: 600;\n }\n\n /*\n * Cost and the token buckets side by side: one number in its own box, the four buckets\n * sharing the box next to it. Stretch, so the two are the same height however tall the 22px\n * cost value makes the left one.\n */\n .settings-usage-row {\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n gap: calc(var(--design-unit) * 3px);\n margin-bottom: calc(var(--design-unit) * 3px);\n }\n\n .settings-usage-row-tokens {\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n }\n\n .settings-build-stat {\n min-width: 0;\n background: var(--neutral-layer-1);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 3px);\n }\n\n .settings-build-stat-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-build-stat-value {\n font-size: 22px;\n font-weight: 700;\n margin-top: calc(var(--design-unit) * 1px);\n color: var(--neutral-foreground-rest);\n }\n\n .settings-build-stat-value .prefix,\n .settings-build-stat-value .suffix {\n color: var(--accent-fill-rest);\n }\n\n /*\n * Per-bucket token split, beneath the headline cost. Small paired label/value cells\n * rather than four more stat cards: they are the detail behind the cost above, so they\n * have to read as subordinate to it rather than compete with it. The four buckets ARE\n * the token figure now — there is no merged total anywhere for them to break down.\n */\n .settings-token-breakdown {\n display: flex;\n flex-direction: column;\n\n /*\n * Tight against the buckets below. One design unit rather than two, because each bucket\n * separates its own label from its value by only 2px — at two units the title sat four\n * times further from the bucket labels than they sit from their own numbers, which read\n * as a gap between unrelated blocks instead of a heading over its content.\n */\n gap: calc(var(--design-unit) * 1px);\n margin-bottom: calc(var(--design-unit) * 3px);\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);\n background: var(--neutral-layer-1);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n /*\n * Titles the box, because nothing else in it named the unit. Same styling and position as\n * the cost box's label, so two boxes sitting side by side are titled the same way; the\n * hierarchy against the bucket labels comes from position, not a second type size.\n */\n .settings-token-breakdown-label {\n font-size: 10px;\n line-height: 1;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-token-buckets {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 4px);\n }\n\n .settings-token-bucket {\n display: flex;\n\n /*\n * min-content (not 0) so a bucket cannot be shrunk narrower than its own unbreakable label.\n * With the label set to nowrap, a zero minimum would overflow it into the next column instead\n * of wrapping — so the container's flex-wrap takes over and moves a bucket to a second row,\n * which is the degradation we want when the modal is dragged narrow.\n */\n min-width: min-content;\n flex-direction: column;\n gap: 2px;\n }\n\n .settings-token-bucket-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n\n /*\n * One line, always. The rate marker is a separate inline box after collapsible whitespace, so\n * a wrappable label gives it a break opportunity of its own — in a narrow column it orphaned\n * onto line 2, which also pushed that bucket's value a line below the other three and broke\n * the row of figures. nowrap removes every break opportunity in the label, the space before\n * the marker included, so no glue character is needed.\n */\n white-space: nowrap;\n }\n\n .settings-token-bucket-value {\n font-size: 13px;\n font-weight: 600;\n color: var(--neutral-foreground-rest);\n }\n\n /*\n * The price-direction marker on a cache bucket's label — down for reads (a fraction of the\n * uncached input rate), up for writes (a premium over it). Three tiers, so a bucket with no\n * marker is the reference rate rather than an unlabelled fourth case.\n *\n * Carried by the label rather than the value, which is what this used to do: cache reads are\n * usually the largest bucket by a wide margin in an agentic session, so the value was muted to\n * stop the biggest number reading as the dominant cost driver. That priced the treatment to the\n * wrong thing — a dimmed 0 (every Gemini cache write) looked disabled next to a normal 0, and a\n * rate is a property of the bucket, not of this turn's figure.\n *\n * Sized down and nudged up rather than tinted: the label is already the hint colour, so a\n * dimmer marker would vanish and a brighter one would out-shout the word it qualifies.\n */\n .settings-token-bucket-rate {\n font-size: 8px;\n line-height: 1;\n vertical-align: 0.15em;\n letter-spacing: 0;\n }\n\n /*\n * Usage-row overrides. Placed after the base rules they refine rather than up beside\n * .settings-usage-row itself, because stylelint's no-descending-specificity rejects a\n * compound selector appearing before the plain one it overrides.\n */\n\n /* Sized by its content; the buckets take the rest, since four cells need the width. */\n .settings-usage-row > .settings-build-stat {\n flex: 0 1 auto;\n }\n\n .settings-usage-row .settings-token-breakdown {\n flex: 1 1 auto;\n\n /* The row owns the spacing now; this centres the column against the taller cost box. */\n justify-content: center;\n margin-bottom: 0;\n }\n\n /*\n * Basis auto, not 0: a zero basis splits the row into four equal columns, so CACHE WRITE is\n * squeezed exactly as hard as INPUT despite being twice the label. Sizing from content gives the\n * long labels the room their text needs and lets the short ones concede it, which is what makes\n * white-space: nowrap above safe — every column starts at least as wide as its own content,\n * then shares the slack. Still grows and shrinks, so the four stay flush edge to edge.\n */\n .settings-usage-row .settings-token-bucket {\n flex: 1 1 auto;\n }\n\n .settings-model-tags {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-model-tag {\n font-size: 11px;\n font-weight: 600;\n padding: 3px 9px;\n border-radius: 20px;\n font-family: ui-monospace, monospace;\n border: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-model-tag,\n .settings-cost-history-icon {\n --model-tag-color: var(--neutral-foreground-rest);\n\n background: color-mix(\n in srgb,\n var(--model-tag-color) var(--ai-tier-badge-bg-mix),\n var(--neutral-layer-1)\n );\n border-color: color-mix(in srgb, var(--model-tag-color) 20%, var(--neutral-layer-1));\n color: color-mix(in srgb, var(--model-tag-color), white var(--ai-tier-badge-text-lighten));\n }\n\n .settings-cost-history-title {\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: var(--neutral-foreground-hint);\n font-weight: 600;\n margin: calc(var(--design-unit) * 4px) 0 calc(var(--design-unit) * 2px);\n }\n\n /*\n * The heading labels the lifetime card as well as the rows, so the card gives up its own top\n * margin and the gap becomes the heading's alone. Adjacent siblings collapse to the LARGER of\n * the two margins, so leaving both would space the caps 3 units off the block they label while\n * the rows below sit at 2 — reading as though the heading belonged to neither.\n */\n .settings-cost-history-title + .settings-lifetime-usage {\n margin-top: 0;\n }\n\n .settings-cost-history {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n padding-bottom: calc(var(--design-unit) * 2px);\n }\n\n .settings-cost-history-icon {\n flex: 0 0 auto;\n width: 36px;\n height: 36px;\n border-radius: calc(var(--control-corner-radius) * 1px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n font-weight: 700;\n border: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-cost-history-row {\n display: flex;\n flex-direction: column;\n background: var(--neutral-layer-1);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n padding: calc(var(--design-unit) * 4px);\n }\n\n .settings-cost-history-row-content {\n display: flex;\n align-items: flex-start;\n gap: calc(var(--design-unit) * 2px);\n }\n\n /*\n * All of these carry a ?hidden binding, and all declare display: flex — which silently beat the\n * UA [hidden] { display: none } rule, because author-origin declarations outrank user-agent\n * origin whatever the specificity. Without this, showTokens: false still rendered the full\n * breakdown in the lifetime block, the live block and every history row, and an empty row list\n * still occupied its padding under the lifetime total. Sibling elements that hide correctly do\n * so only by declaring no display at all. Same treatment as .settings-modal-tab-panel[hidden]\n * near the top of this file.\n */\n .settings-usage-row-tokens[hidden],\n .settings-cost-history[hidden],\n .settings-cost-history-row-content[hidden] {\n display: none !important;\n }\n\n /*\n * The buckets inside a history row drop the panel treatment they carry in the summary\n * blocks — the row is already a bordered card, and a second box inside it reads as a\n * nested panel. The adjacent-sibling rule above supplies the separator instead.\n */\n .settings-cost-history-row-breakdown .settings-token-breakdown {\n flex: 1 1 auto;\n margin-bottom: 0;\n padding: 0;\n background: none;\n border: none;\n }\n\n .settings-cost-history-row-content + .settings-cost-history-row-content {\n border-top: 1px solid var(--neutral-stroke-rest);\n margin-top: calc(var(--design-unit) * 2px);\n padding-top: calc(var(--design-unit) * 2px);\n }\n\n .settings-cost-history-row-body {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n justify-content: space-between;\n }\n\n /*\n * Holds the cost and the delete button as one centred pair. The button used to be a sibling\n * of the whole row body, kept in place by a -2px nudge tuned for when the metrics column had\n * two lines (cost plus a merged token total). Dropping that second line left the nudge\n * compensating for nothing. Centring the two against each other needs no magic number and\n * cannot drift again if the metrics content changes.\n *\n * NB this rule previously set align-items with no display:flex, so it had no effect at all.\n */\n .settings-cost-history-row-right {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 1px);\n flex: 0 0 auto;\n }\n\n .settings-cost-history-row-cost,\n .settings-cost-history-row-title {\n font-size: 14px;\n font-weight: 600;\n color: var(--neutral-foreground-rest);\n min-width: 0;\n }\n\n .settings-cost-history-row-metrics {\n display: flex;\n flex-direction: column;\n flex: 0 0 auto;\n font-size: 13px;\n font-family: ui-monospace, monospace;\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .settings-cost-history-row-date {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-cost-history-delete {\n flex: 0 0 auto;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-cost-history-delete:hover {\n color: var(--error-color);\n }\n\n .settings-cost-history ::slotted(*) {\n display: block;\n }\n\n .settings-modal-footer {\n width: 100%;\n }\n\n .settings-done-button {\n margin-left: auto;\n }\n\n .settings-modal-footer-actions {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 2px);\n width: 100%;\n }\n\n .settings-disclaimer {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n max-width: 60%;\n line-height: 1.4;\n }\n\n /*\n * Inline spinner shown in the \"Download agent log\" button while the log builds\n * (GENC-1351 §5.8) — the lifetime-stitch path is an async provider round-trip.\n * Sized to the button label and tinted with currentColor so it tracks the\n * button's text colour in every appearance / theme.\n */\n [part='download-button'] .download-spinner {\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-right: calc(var(--design-unit) * 1px);\n vertical-align: -1px;\n border: 2px solid currentColor;\n border-right-color: transparent;\n border-radius: 50%;\n animation: download-spin 0.6s linear infinite;\n }\n\n @keyframes download-spin {\n to {\n transform: rotate(360deg);\n }\n }\n`",
10279
- "description": "Styles for the assistant settings modal (tabs, sections, toggles, cost summary)."
10280
- }
10281
- ],
10282
- "exports": [
10283
- {
10284
- "kind": "js",
10285
- "name": "settingsModalStyles",
10239
+ "name": "*",
10286
10240
  "declaration": {
10287
- "name": "settingsModalStyles",
10288
- "module": "src/components/settings-modal/settings-modal.styles.ts"
10241
+ "name": "*",
10242
+ "package": "./popout-manager"
10289
10243
  }
10290
10244
  }
10291
10245
  ]
10292
10246
  },
10293
10247
  {
10294
10248
  "kind": "javascript-module",
10295
- "path": "src/components/settings-modal/settings-modal.template.ts",
10249
+ "path": "src/components/popout-manager/popout-manager.ts",
10296
10250
  "declarations": [
10297
10251
  {
10298
- "kind": "function",
10299
- "name": "SettingsModalTemplate",
10300
- "return": {
10301
- "type": {
10302
- "text": "ViewTemplate<FoundationAiAssistant>"
10303
- }
10304
- },
10305
- "parameters": [
10252
+ "kind": "class",
10253
+ "description": "App-shell component that owns the pop-out/pop-in lifecycle for the AI assistant bubble.",
10254
+ "name": "FoundationAiPopoutManager",
10255
+ "members": [
10306
10256
  {
10307
- "name": "designSystemPrefix",
10257
+ "kind": "field",
10258
+ "name": "canDock",
10308
10259
  "type": {
10309
- "text": "string"
10310
- }
10311
- }
10312
- ],
10313
- "description": "Modal shell for assistant settings — Configuration and Usage tabs, section slots for\napp-specific UI, and built-in chat-bot toggles."
10314
- }
10315
- ],
10316
- "exports": [
10317
- {
10318
- "kind": "js",
10319
- "name": "SettingsModalTemplate",
10320
- "declaration": {
10321
- "name": "SettingsModalTemplate",
10322
- "module": "src/components/settings-modal/settings-modal.template.ts"
10323
- }
10324
- }
10325
- ]
10326
- },
10327
- {
10328
- "kind": "javascript-module",
10329
- "path": "src/state/persistence/build-timeline-entries.ts",
10330
- "declarations": [
10331
- {
10332
- "kind": "function",
10333
- "name": "buildTimelineEntries",
10334
- "return": {
10335
- "type": {
10336
- "text": "DiagnosticEntry[]"
10337
- }
10338
- },
10339
- "parameters": [
10260
+ "text": "boolean"
10261
+ },
10262
+ "default": "false",
10263
+ "description": "True when a dock provider is registered — controls expand button visibility."
10264
+ },
10340
10265
  {
10341
- "name": "input",
10266
+ "kind": "field",
10267
+ "name": "assistantEl",
10342
10268
  "type": {
10343
- "text": "{\n turnSnapshots: readonly TurnSnapshotLike[];\n messages: readonly ChatMessage[];\n metaEvents: readonly MetaEvent[];\n}"
10344
- }
10345
- }
10346
- ],
10347
- "description": "Build the `message` / `turn` / `event` timeline entries from a driver's pull surfaces\n(`getRawHistory()` / `getTurnSnapshots()` / `getMetaEvents(sessionKey)`). Order within the array\nis message turn event; the caller (`assembleDebugLog`) sorts the whole timeline by timestamp,\nso this ordering only sets the co-timestamp tie-break. Pure."
10348
- }
10349
- ],
10350
- "exports": [
10351
- {
10352
- "kind": "js",
10353
- "name": "buildTimelineEntries",
10354
- "declaration": {
10355
- "name": "buildTimelineEntries",
10356
- "module": "src/state/persistence/build-timeline-entries.ts"
10357
- }
10358
- }
10359
- ]
10360
- },
10361
- {
10362
- "kind": "javascript-module",
10363
- "path": "src/state/persistence/diagnostics-cursors.ts",
10364
- "declarations": [
10365
- {
10366
- "kind": "function",
10367
- "name": "getDiagnosticsCursors",
10368
- "return": {
10369
- "type": {
10370
- "text": "DiagnosticsCursors"
10371
- }
10372
- },
10373
- "parameters": [
10269
+ "text": "HTMLElement | null"
10270
+ },
10271
+ "privacy": "private",
10272
+ "default": "null",
10273
+ "description": "The single assistant element. Captured while it's in the bubble slot and held\nacross the move (it's the same instance whether docked or in the bubble), so\npop-in can re-home it even though it's no longer a child of this manager."
10274
+ },
10374
10275
  {
10375
- "name": "key",
10276
+ "kind": "field",
10277
+ "name": "dockProvider",
10376
10278
  "type": {
10377
- "text": "string"
10378
- }
10379
- }
10380
- ],
10381
- "description": "The shared cursors for `key`, created (empty) on first access. @internal"
10382
- },
10383
- {
10384
- "kind": "function",
10385
- "name": "clearDiagnosticsCursorRegistry",
10386
- "return": {
10387
- "type": {
10388
- "text": "void"
10389
- }
10390
- },
10391
- "description": "Drop all cursors — test isolation only. @internal"
10392
- }
10393
- ],
10394
- "exports": [
10395
- {
10396
- "kind": "js",
10397
- "name": "getDiagnosticsCursors",
10398
- "declaration": {
10279
+ "text": "AiDockProvider | null"
10280
+ },
10281
+ "privacy": "private",
10282
+ "default": "null"
10283
+ },
10284
+ {
10285
+ "kind": "field",
10286
+ "name": "isDocked",
10287
+ "type": {
10288
+ "text": "boolean"
10289
+ },
10290
+ "privacy": "private",
10291
+ "default": "false"
10292
+ },
10293
+ {
10294
+ "kind": "field",
10295
+ "name": "unsubBus",
10296
+ "type": {
10297
+ "text": "() => void | undefined"
10298
+ },
10299
+ "privacy": "private"
10300
+ },
10301
+ {
10302
+ "kind": "method",
10303
+ "name": "findAssistant",
10304
+ "privacy": "private",
10305
+ "return": {
10306
+ "type": {
10307
+ "text": "HTMLElement | null"
10308
+ }
10309
+ },
10310
+ "description": "Locate the assistant element currently slotted into the bubble."
10311
+ },
10312
+ {
10313
+ "kind": "method",
10314
+ "name": "adoptAssistant",
10315
+ "return": {
10316
+ "type": {
10317
+ "text": "void"
10318
+ }
10319
+ },
10320
+ "parameters": [
10321
+ {
10322
+ "name": "el",
10323
+ "type": {
10324
+ "text": "HTMLElement"
10325
+ }
10326
+ },
10327
+ {
10328
+ "name": "docked",
10329
+ "type": {
10330
+ "text": "boolean"
10331
+ }
10332
+ }
10333
+ ],
10334
+ "description": "Register an externally-created assistant element and its docked state. For\nsingle-element hosts that create the assistant directly in a layout pane (rather\nthan statically in the bubble), so the manager tracks the one element, whether it's\ncurrently docked (for pop-in re-homing), reflects the right `popout-mode` on it\n(drives the header button), and hides the empty bubble."
10335
+ },
10336
+ {
10337
+ "kind": "method",
10338
+ "name": "syncBubbleVisibility",
10339
+ "privacy": "private",
10340
+ "return": {
10341
+ "type": {
10342
+ "text": "void"
10343
+ }
10344
+ },
10345
+ "description": "Hide the floating bubble unless it currently contains the assistant."
10346
+ },
10347
+ {
10348
+ "kind": "method",
10349
+ "name": "canDockChanged"
10350
+ },
10351
+ {
10352
+ "kind": "method",
10353
+ "name": "registerDockProvider",
10354
+ "return": {
10355
+ "type": {
10356
+ "text": "void"
10357
+ }
10358
+ },
10359
+ "parameters": [
10360
+ {
10361
+ "name": "provider",
10362
+ "type": {
10363
+ "text": "AiDockProvider"
10364
+ }
10365
+ }
10366
+ ]
10367
+ },
10368
+ {
10369
+ "kind": "method",
10370
+ "name": "deregisterDockProvider",
10371
+ "return": {
10372
+ "type": {
10373
+ "text": "void"
10374
+ }
10375
+ }
10376
+ },
10377
+ {
10378
+ "kind": "method",
10379
+ "name": "collapseIfDocked",
10380
+ "return": {
10381
+ "type": {
10382
+ "text": "Promise<void>"
10383
+ }
10384
+ },
10385
+ "description": "If the assistant is currently docked, collapses it back into the bubble.\nAwait this in `onBeforeNavButtonClick` to ensure cleanup before navigation."
10386
+ }
10387
+ ],
10388
+ "superclass": {
10389
+ "name": "GenesisElement",
10390
+ "package": "@genesislcap/web-core"
10391
+ },
10392
+ "tagName": "foundation-ai-popout-manager",
10393
+ "customElement": true
10394
+ },
10395
+ {
10396
+ "kind": "function",
10397
+ "name": "isAiAssistantDocked",
10398
+ "return": {
10399
+ "type": {
10400
+ "text": "boolean"
10401
+ }
10402
+ },
10403
+ "description": "True when the assistant is active in the layout panel (docked) rather than the bubble."
10404
+ },
10405
+ {
10406
+ "kind": "function",
10407
+ "name": "getAiPopoutManager",
10408
+ "return": {
10409
+ "type": {
10410
+ "text": "FoundationAiPopoutManager | undefined"
10411
+ }
10412
+ },
10413
+ "description": "Returns the active `FoundationAiPopoutManager` instance, or `undefined` if none is mounted.\nImport this in pages to call `registerDockProvider` / `deregisterDockProvider`."
10414
+ }
10415
+ ],
10416
+ "exports": [
10417
+ {
10418
+ "kind": "js",
10419
+ "name": "FoundationAiPopoutManager",
10420
+ "declaration": {
10421
+ "name": "FoundationAiPopoutManager",
10422
+ "module": "src/components/popout-manager/popout-manager.ts"
10423
+ }
10424
+ },
10425
+ {
10426
+ "kind": "custom-element-definition",
10427
+ "name": "foundation-ai-popout-manager",
10428
+ "declaration": {
10429
+ "name": "FoundationAiPopoutManager",
10430
+ "module": "src/components/popout-manager/popout-manager.ts"
10431
+ }
10432
+ },
10433
+ {
10434
+ "kind": "js",
10435
+ "name": "isAiAssistantDocked",
10436
+ "declaration": {
10437
+ "name": "isAiAssistantDocked",
10438
+ "module": "src/components/popout-manager/popout-manager.ts"
10439
+ }
10440
+ },
10441
+ {
10442
+ "kind": "js",
10443
+ "name": "getAiPopoutManager",
10444
+ "declaration": {
10445
+ "name": "getAiPopoutManager",
10446
+ "module": "src/components/popout-manager/popout-manager.ts"
10447
+ }
10448
+ }
10449
+ ]
10450
+ },
10451
+ {
10452
+ "kind": "javascript-module",
10453
+ "path": "src/components/settings-modal/index.ts",
10454
+ "declarations": [],
10455
+ "exports": [
10456
+ {
10457
+ "kind": "js",
10458
+ "name": "SettingsModalTemplate",
10459
+ "declaration": {
10460
+ "name": "SettingsModalTemplate",
10461
+ "module": "./settings-modal.template"
10462
+ }
10463
+ },
10464
+ {
10465
+ "kind": "js",
10466
+ "name": "type",
10467
+ "declaration": {
10468
+ "name": "type",
10469
+ "module": "./settings-modal.template"
10470
+ }
10471
+ },
10472
+ {
10473
+ "kind": "js",
10474
+ "name": "SettingsModalTab",
10475
+ "declaration": {
10476
+ "name": "SettingsModalTab",
10477
+ "module": "./settings-modal.template"
10478
+ }
10479
+ },
10480
+ {
10481
+ "kind": "js",
10482
+ "name": "settingsModalStyles",
10483
+ "declaration": {
10484
+ "name": "settingsModalStyles",
10485
+ "module": "./settings-modal.styles"
10486
+ }
10487
+ }
10488
+ ]
10489
+ },
10490
+ {
10491
+ "kind": "javascript-module",
10492
+ "path": "src/components/settings-modal/settings-modal.styles.ts",
10493
+ "declarations": [
10494
+ {
10495
+ "kind": "variable",
10496
+ "name": "settingsModalStyles",
10497
+ "default": "css`\n /*\n * Section headings come from the shared fragment the package also exports, so a host titling\n * its own slotted section applies the same rule rather than a copy of it.\n */\n ${assistantSettingsSectionTitleStyles}\n\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n .settings-modal {\n --ai-tier-badge-bg-mix: 14%;\n --ai-tier-badge-text-lighten: 18%;\n }\n\n .settings-modal::part(dialog) {\n max-width: 620px;\n width: calc(100vw - 48px);\n max-height: calc(100vh - 48px);\n padding: 0;\n }\n\n .settings-modal::part(content) {\n display: flex;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n width: 100%;\n }\n\n .settings-modal::part(top) {\n padding: calc(var(--design-unit) * 4px) calc(var(--design-unit) * 5px);\n border-bottom: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-modal::part(bottom) {\n padding: calc(var(--design-unit) * 4px) calc(var(--design-unit) * 5px);\n border-top: 1px solid var(--neutral-stroke-rest);\n border-bottom-left-radius: var(--card-border-radius, calc(var(--control-corner-radius) * 1px));\n border-bottom-right-radius: var(--card-border-radius, calc(var(--control-corner-radius) * 1px));\n background-color: var(--neutral-layer-2);\n }\n\n .settings-modal-header {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .settings-modal-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n color: var(--neutral-foreground-rest);\n }\n\n .settings-modal-content {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1 1 auto;\n }\n\n .settings-modal-tabs::part(tablist) {\n border-bottom: 0;\n padding: 0 calc(var(--design-unit) * 5px);\n column-gap: calc(var(--design-unit) * 5px);\n }\n\n .settings-modal-tabs::part(activeIndicator) {\n height: 2px;\n }\n\n .settings-modal-tab {\n padding: 0;\n font-weight: 600;\n gap: 6px;\n }\n\n .settings-modal-tab[aria-selected='true'] {\n color: var(--neutral-foreground-rest);\n }\n\n .settings-modal-tabs::part(tabpanel) {\n border-top: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-modal-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1 1 auto;\n padding: 0;\n border-radius: 0;\n }\n\n .settings-modal-tab-panel[hidden] {\n display: none !important;\n }\n\n .settings-modal-body {\n overflow-y: auto;\n padding: 0 calc(var(--design-unit) * 5px) calc(var(--design-unit) * 2px);\n max-height: min(60vh, 520px);\n }\n\n .settings-modal-section {\n padding: calc(var(--design-unit) * 5px) 0;\n border-bottom: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-modal-section:last-child {\n border-bottom: none;\n }\n\n /*\n * Only the spacing. Everything else about this heading comes from the exported fragment\n * above, which the assistant and its hosts share; margin is deliberately not in there,\n * since the gap below a heading depends on the layout around it.\n */\n .ai-settings-section-title {\n margin: 0 0 calc(var(--design-unit) * 3px);\n }\n\n .settings-modal-section-note {\n margin: calc(var(--design-unit) * -2px) 0 calc(var(--design-unit) * 3px);\n font-size: 12px;\n line-height: 1.5;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-modal-section-body {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 4px);\n }\n\n .settings-toggle-row {\n display: flex;\n align-items: flex-start;\n gap: calc(var(--design-unit) * 3px);\n padding: 0 0 calc(var(--design-unit) * 4px) 0;\n border-bottom: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-toggle-row:last-child {\n border-bottom: none;\n padding-bottom: calc(var(--design-unit) * 1px);\n }\n\n .settings-toggle-row.is-stacked {\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n }\n\n /*\n * For rows whose control is a button rather than a switch. The base row top-aligns, which suits\n * a switch (it lands level with the title), but a button is tall enough that top-aligning leaves\n * it above the title-plus-description block it acts on.\n */\n .settings-toggle-row.is-centered {\n align-items: center;\n }\n\n .settings-animation-list {\n display: flex;\n flex-direction: column;\n width: 100%;\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.2px);\n padding: calc(var(--design-unit) * 2px);\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-animation-list .settings-toggle-row {\n border: 0;\n }\n\n .settings-animation-category {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 4px);\n }\n\n .settings-animation-category-label {\n font-weight: 600;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-toggle-row + .settings-animation-category-label {\n border-top: 1px solid var(--neutral-stroke-rest);\n padding-top: calc(var(--design-unit) * 2px);\n }\n\n .settings-animation-option {\n padding: 0;\n margin: 0;\n }\n\n .settings-animation-option:last-child {\n border-bottom: none;\n padding-bottom: calc(var(--design-unit) * 2px);\n }\n\n .settings-toggle-text {\n flex: 1;\n min-width: 0;\n }\n\n .settings-toggle-title {\n font-size: 14px;\n font-weight: 500;\n color: var(--neutral-foreground-rest);\n }\n\n .settings-toggle-desc {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n line-height: 1.5;\n max-width: 92%;\n }\n\n .settings-toggle-control {\n flex: 0 0 auto;\n min-width: 0;\n }\n\n .settings-toggle-control-wide {\n width: 100%;\n max-width: 280px;\n }\n\n .settings-toggle-row.is-stacked .settings-toggle-desc {\n max-width: none;\n }\n\n .settings-toggle-row.is-stacked .settings-toggle-control-wide {\n width: 100%;\n max-width: none;\n }\n\n /*\n * Sub-heading over the provider toggle group. Unlike the section headings it sits INSIDE\n * .settings-modal-section-body, so the parent's 4-unit flex gap already separates it from the\n * first toggle — and flex does not collapse margins, so the shared rule's 3-unit margin-bottom\n * would add to that gap rather than replace it, leaving the label adrift from the rows it\n * names. Zero the margin and pull back 2 of the 4 gap units, expressed in the same token so it\n * tracks if that gap changes.\n */\n .settings-app-toggles-title {\n margin: 0 0 calc(var(--design-unit) * -2px);\n }\n\n .settings-app-toggle-block {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 1px);\n }\n\n .settings-toggle-hint {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n line-height: 1.4;\n padding-left: calc(var(--design-unit) * 1px);\n font-style: italic;\n }\n\n /*\n * The budget meter (GENC-1464) is the context indicator's money sibling and\n * shares its row anatomy 1:1, so the budget classes JOIN these rules rather\n * than restating them — one place to restyle the header/label/figures shape,\n * and the two indicators cannot drift apart. Design-system tokens only, and\n * unfallbacked: every token here ships a DS default, so a var(--x, y)\n * fallback would be dead code that hides a broken token name (#2411/#2436\n * review rule, pinned by settings-modal.styles.test.ts).\n */\n .settings-context-header,\n .settings-budget-header {\n display: flex;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n font-size: 12px;\n }\n\n .settings-context-label,\n .settings-budget-label {\n color: var(--neutral-foreground-hint);\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n }\n\n .settings-context-tokens,\n .settings-budget-figures {\n color: var(--neutral-foreground-rest);\n }\n\n /* Freshness footer (GENC-1464): refresh button + label under the vendor\n rows, left-aligned — a footnote to the figures above it. The button's\n inline padding is pinned and cancelled by the container margin so the\n ICON GLYPH (not the button box) sits flush with the budget labels'\n left edge, whatever the density tokens say. */\n .settings-budget-toolbar {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 4px;\n margin-inline-start: -4px;\n }\n\n .settings-budget-refresh::part(control) {\n padding-inline: 4px;\n }\n\n .settings-budget-updated {\n color: var(--neutral-foreground-hint);\n font-size: 11px;\n }\n\n /*\n * ONE rhythm for every meter row. The outer wrapper holds the context\n * indicator and the budget meter; the inner one holds the budget meter's\n * vendor rows — and both gap by the same 2 units (half the section body's 4)\n * so that visually identical meter rows are evenly spaced whatever mix of\n * them is on screen. Without the wrapper the context row inherits the body's\n * 4-unit gap while the vendor rows keep 2, and three identical-looking rows\n * read as an uneven 4/2/2. The wrapper renders only when at least one meter\n * does — see settingsUsageMetersTemplate for why an always-on one would cost\n * a stray gap.\n */\n .settings-usage-meters,\n .settings-budget-usage {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-current-build,\n .settings-lifetime-usage {\n background: var(--neutral-layer-2);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n padding: calc(var(--design-unit) * 4px);\n margin: calc(var(--design-unit) * 3px) 0;\n }\n\n /*\n * Deliberately quieter than the live block: no pulsing badge and no accent, so the eye lands\n * on what is being built now — which is why that block leads the tab and this one follows,\n * under the history heading whose rows it totals.\n */\n .settings-lifetime-usage-top {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 3px);\n }\n\n .settings-lifetime-label {\n font-size: 10px;\n line-height: 1;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-current-build-top {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 3px);\n }\n\n /*\n * Optically centring these 10px caps against the 14px project name beside them. Flex offers\n * only two alignments and neither lands it, because a box centre and a text baseline are\n * different lines:\n * - align-items: center sits the badge baseline about 1.2px high\n * - align-items: baseline matches baselines, but the caps then read as bottom-aligned\n * against the name's ascenders, so the badge looks low\n * The eye wants the midpoint, so: centre the boxes, then translate down by the ~1px of\n * overshoot. This is a nudge, but it corrects a fixed relationship between two font sizes\n * rather than some neighbouring element's layout, so unlike a margin tuned to a sibling it\n * cannot rot when that sibling changes. In em, so it tracks the badge text.\n *\n * display: block, not inline-flex: a flex container has no text baseline of its own and\n * synthesizes one from its first child, which here is the dot, an empty span. As a block box\n * the badge takes the baseline of its first line, i.e. the text.\n */\n .settings-live-badge {\n display: block;\n font-size: 10px;\n line-height: 1;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--accent-fill-rest);\n white-space: nowrap;\n transform: translateY(0.1em);\n }\n\n .settings-live-dot {\n display: inline-block;\n width: 7px;\n height: 7px;\n\n /* Replaces the flex gap the badge no longer has. */\n margin-right: calc(var(--design-unit) * 1px);\n\n /* Centres the dot on the text beside it without disturbing that text's baseline. */\n vertical-align: middle;\n border-radius: 50%;\n background: var(--accent-fill-rest);\n animation: settings-live-pulse 1.6s ease-out infinite;\n }\n\n @keyframes settings-live-pulse {\n 0% {\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-fill-rest) 55%, transparent);\n }\n\n 70% {\n box-shadow: 0 0 0 7px transparent;\n }\n\n 100% {\n box-shadow: 0 0 0 0 transparent;\n }\n }\n\n .settings-current-build-name {\n font-size: 14px;\n line-height: 1;\n font-weight: 600;\n }\n\n /*\n * Cost and the token buckets side by side: one number in its own box, the four buckets\n * sharing the box next to it. Stretch, so the two are the same height however tall the 22px\n * cost value makes the left one.\n */\n .settings-usage-row {\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n gap: calc(var(--design-unit) * 3px);\n margin-bottom: calc(var(--design-unit) * 3px);\n }\n\n .settings-usage-row-tokens {\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n }\n\n .settings-build-stat {\n min-width: 0;\n background: var(--neutral-layer-1);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 3px);\n }\n\n .settings-build-stat-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-build-stat-value {\n font-size: 22px;\n font-weight: 700;\n margin-top: calc(var(--design-unit) * 1px);\n color: var(--neutral-foreground-rest);\n }\n\n .settings-build-stat-value .prefix,\n .settings-build-stat-value .suffix {\n color: var(--accent-fill-rest);\n }\n\n /*\n * Per-bucket token split, beneath the headline cost. Small paired label/value cells\n * rather than four more stat cards: they are the detail behind the cost above, so they\n * have to read as subordinate to it rather than compete with it. The four buckets ARE\n * the token figure now — there is no merged total anywhere for them to break down.\n */\n .settings-token-breakdown {\n display: flex;\n flex-direction: column;\n\n /*\n * Tight against the buckets below. One design unit rather than two, because each bucket\n * separates its own label from its value by only 2px — at two units the title sat four\n * times further from the bucket labels than they sit from their own numbers, which read\n * as a gap between unrelated blocks instead of a heading over its content.\n */\n gap: calc(var(--design-unit) * 1px);\n margin-bottom: calc(var(--design-unit) * 3px);\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);\n background: var(--neutral-layer-1);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n /*\n * Titles the box, because nothing else in it named the unit. Same styling and position as\n * the cost box's label, so two boxes sitting side by side are titled the same way; the\n * hierarchy against the bucket labels comes from position, not a second type size.\n */\n .settings-token-breakdown-label {\n font-size: 10px;\n line-height: 1;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-token-buckets {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 4px);\n }\n\n .settings-token-bucket {\n display: flex;\n\n /*\n * min-content (not 0) so a bucket cannot be shrunk narrower than its own unbreakable label.\n * With the label set to nowrap, a zero minimum would overflow it into the next column instead\n * of wrapping — so the container's flex-wrap takes over and moves a bucket to a second row,\n * which is the degradation we want when the modal is dragged narrow.\n */\n min-width: min-content;\n flex-direction: column;\n gap: 2px;\n }\n\n .settings-token-bucket-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--neutral-foreground-hint);\n\n /*\n * One line, always. The rate marker is a separate inline box after collapsible whitespace, so\n * a wrappable label gives it a break opportunity of its own — in a narrow column it orphaned\n * onto line 2, which also pushed that bucket's value a line below the other three and broke\n * the row of figures. nowrap removes every break opportunity in the label, the space before\n * the marker included, so no glue character is needed.\n */\n white-space: nowrap;\n }\n\n .settings-token-bucket-value {\n font-size: 13px;\n font-weight: 600;\n color: var(--neutral-foreground-rest);\n }\n\n /*\n * The price-direction marker on a cache bucket's label — down for reads (a fraction of the\n * uncached input rate), up for writes (a premium over it). Three tiers, so a bucket with no\n * marker is the reference rate rather than an unlabelled fourth case.\n *\n * Carried by the label rather than the value, which is what this used to do: cache reads are\n * usually the largest bucket by a wide margin in an agentic session, so the value was muted to\n * stop the biggest number reading as the dominant cost driver. That priced the treatment to the\n * wrong thing — a dimmed 0 (every Gemini cache write) looked disabled next to a normal 0, and a\n * rate is a property of the bucket, not of this turn's figure.\n *\n * Sized down and nudged up rather than tinted: the label is already the hint colour, so a\n * dimmer marker would vanish and a brighter one would out-shout the word it qualifies.\n */\n .settings-token-bucket-rate {\n font-size: 8px;\n line-height: 1;\n vertical-align: 0.15em;\n letter-spacing: 0;\n }\n\n /*\n * Usage-row overrides. Placed after the base rules they refine rather than up beside\n * .settings-usage-row itself, because stylelint's no-descending-specificity rejects a\n * compound selector appearing before the plain one it overrides.\n */\n\n /* Sized by its content; the buckets take the rest, since four cells need the width. */\n .settings-usage-row > .settings-build-stat {\n flex: 0 1 auto;\n }\n\n .settings-usage-row .settings-token-breakdown {\n flex: 1 1 auto;\n\n /* The row owns the spacing now; this centres the column against the taller cost box. */\n justify-content: center;\n margin-bottom: 0;\n }\n\n /*\n * Basis auto, not 0: a zero basis splits the row into four equal columns, so CACHE WRITE is\n * squeezed exactly as hard as INPUT despite being twice the label. Sizing from content gives the\n * long labels the room their text needs and lets the short ones concede it, which is what makes\n * white-space: nowrap above safe — every column starts at least as wide as its own content,\n * then shares the slack. Still grows and shrinks, so the four stay flush edge to edge.\n */\n .settings-usage-row .settings-token-bucket {\n flex: 1 1 auto;\n }\n\n .settings-model-tags {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-model-tag {\n font-size: 11px;\n font-weight: 600;\n padding: 3px 9px;\n border-radius: 20px;\n font-family: ui-monospace, monospace;\n border: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-model-tag,\n .settings-cost-history-icon {\n --model-tag-color: var(--neutral-foreground-rest);\n\n background: color-mix(\n in srgb,\n var(--model-tag-color) var(--ai-tier-badge-bg-mix),\n var(--neutral-layer-1)\n );\n border-color: color-mix(in srgb, var(--model-tag-color) 20%, var(--neutral-layer-1));\n color: color-mix(in srgb, var(--model-tag-color), white var(--ai-tier-badge-text-lighten));\n }\n\n .settings-cost-history-title {\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: var(--neutral-foreground-hint);\n font-weight: 600;\n margin: calc(var(--design-unit) * 4px) 0 calc(var(--design-unit) * 2px);\n }\n\n /*\n * The heading labels the lifetime card as well as the rows, so the card gives up its own top\n * margin and the gap becomes the heading's alone. Adjacent siblings collapse to the LARGER of\n * the two margins, so leaving both would space the caps 3 units off the block they label while\n * the rows below sit at 2 — reading as though the heading belonged to neither.\n */\n .settings-cost-history-title + .settings-lifetime-usage {\n margin-top: 0;\n }\n\n .settings-cost-history {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n padding-bottom: calc(var(--design-unit) * 2px);\n }\n\n .settings-cost-history-icon {\n flex: 0 0 auto;\n width: 36px;\n height: 36px;\n border-radius: calc(var(--control-corner-radius) * 1px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n font-weight: 700;\n border: 1px solid var(--neutral-stroke-rest);\n }\n\n .settings-cost-history-row {\n display: flex;\n flex-direction: column;\n background: var(--neutral-layer-1);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius) * 1.5px);\n padding: calc(var(--design-unit) * 4px);\n }\n\n .settings-cost-history-row-content {\n display: flex;\n align-items: flex-start;\n gap: calc(var(--design-unit) * 2px);\n }\n\n /*\n * All of these carry a ?hidden binding, and all declare display: flex — which silently beat the\n * UA [hidden] { display: none } rule, because author-origin declarations outrank user-agent\n * origin whatever the specificity. Without this, showTokens: false still rendered the full\n * breakdown in the lifetime block, the live block and every history row, and an empty row list\n * still occupied its padding under the lifetime total. Sibling elements that hide correctly do\n * so only by declaring no display at all. Same treatment as .settings-modal-tab-panel[hidden]\n * near the top of this file.\n */\n .settings-usage-row-tokens[hidden],\n .settings-cost-history[hidden],\n .settings-cost-history-row-content[hidden] {\n display: none !important;\n }\n\n /*\n * The buckets inside a history row drop the panel treatment they carry in the summary\n * blocks — the row is already a bordered card, and a second box inside it reads as a\n * nested panel. The adjacent-sibling rule above supplies the separator instead.\n */\n .settings-cost-history-row-breakdown .settings-token-breakdown {\n flex: 1 1 auto;\n margin-bottom: 0;\n padding: 0;\n background: none;\n border: none;\n }\n\n .settings-cost-history-row-content + .settings-cost-history-row-content {\n border-top: 1px solid var(--neutral-stroke-rest);\n margin-top: calc(var(--design-unit) * 2px);\n padding-top: calc(var(--design-unit) * 2px);\n }\n\n .settings-cost-history-row-body {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n justify-content: space-between;\n }\n\n /*\n * Holds the cost and the delete button as one centred pair. The button used to be a sibling\n * of the whole row body, kept in place by a -2px nudge tuned for when the metrics column had\n * two lines (cost plus a merged token total). Dropping that second line left the nudge\n * compensating for nothing. Centring the two against each other needs no magic number and\n * cannot drift again if the metrics content changes.\n *\n * NB this rule previously set align-items with no display:flex, so it had no effect at all.\n */\n .settings-cost-history-row-right {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 1px);\n flex: 0 0 auto;\n }\n\n .settings-cost-history-row-cost,\n .settings-cost-history-row-title {\n font-size: 14px;\n font-weight: 600;\n color: var(--neutral-foreground-rest);\n min-width: 0;\n }\n\n .settings-cost-history-row-metrics {\n display: flex;\n flex-direction: column;\n flex: 0 0 auto;\n font-size: 13px;\n font-family: ui-monospace, monospace;\n color: var(--neutral-foreground-rest);\n white-space: nowrap;\n }\n\n .settings-cost-history-row-date {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-cost-history-delete {\n flex: 0 0 auto;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-cost-history-delete:hover {\n color: var(--error-color);\n }\n\n .settings-cost-history ::slotted(*) {\n display: block;\n }\n\n .settings-modal-footer {\n width: 100%;\n }\n\n .settings-done-button {\n margin-left: auto;\n }\n\n .settings-modal-footer-actions {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 2px);\n width: 100%;\n }\n\n .settings-disclaimer {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n max-width: 60%;\n line-height: 1.4;\n }\n\n /*\n * Inline spinner shown in the \"Download agent log\" button while the log builds\n * (GENC-1351 §5.8) — the lifetime-stitch path is an async provider round-trip.\n * Sized to the button label and tinted with currentColor so it tracks the\n * button's text colour in every appearance / theme.\n */\n [part='download-button'] .download-spinner {\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-right: calc(var(--design-unit) * 1px);\n vertical-align: -1px;\n border: 2px solid currentColor;\n border-right-color: transparent;\n border-radius: 50%;\n animation: download-spin 0.6s linear infinite;\n }\n\n @keyframes download-spin {\n to {\n transform: rotate(360deg);\n }\n }\n`",
10498
+ "description": "Styles for the assistant settings modal (tabs, sections, toggles, cost summary)."
10499
+ }
10500
+ ],
10501
+ "exports": [
10502
+ {
10503
+ "kind": "js",
10504
+ "name": "settingsModalStyles",
10505
+ "declaration": {
10506
+ "name": "settingsModalStyles",
10507
+ "module": "src/components/settings-modal/settings-modal.styles.ts"
10508
+ }
10509
+ }
10510
+ ]
10511
+ },
10512
+ {
10513
+ "kind": "javascript-module",
10514
+ "path": "src/components/settings-modal/settings-modal.template.ts",
10515
+ "declarations": [
10516
+ {
10517
+ "kind": "function",
10518
+ "name": "SettingsModalTemplate",
10519
+ "return": {
10520
+ "type": {
10521
+ "text": "ViewTemplate<FoundationAiAssistant>"
10522
+ }
10523
+ },
10524
+ "parameters": [
10525
+ {
10526
+ "name": "designSystemPrefix",
10527
+ "type": {
10528
+ "text": "string"
10529
+ }
10530
+ }
10531
+ ],
10532
+ "description": "Modal shell for assistant settings — Configuration and Usage tabs, section slots for\napp-specific UI, and built-in chat-bot toggles."
10533
+ }
10534
+ ],
10535
+ "exports": [
10536
+ {
10537
+ "kind": "js",
10538
+ "name": "SettingsModalTemplate",
10539
+ "declaration": {
10540
+ "name": "SettingsModalTemplate",
10541
+ "module": "src/components/settings-modal/settings-modal.template.ts"
10542
+ }
10543
+ }
10544
+ ]
10545
+ },
10546
+ {
10547
+ "kind": "javascript-module",
10548
+ "path": "src/state/persistence/build-timeline-entries.ts",
10549
+ "declarations": [
10550
+ {
10551
+ "kind": "function",
10552
+ "name": "buildTimelineEntries",
10553
+ "return": {
10554
+ "type": {
10555
+ "text": "DiagnosticEntry[]"
10556
+ }
10557
+ },
10558
+ "parameters": [
10559
+ {
10560
+ "name": "input",
10561
+ "type": {
10562
+ "text": "{\n turnSnapshots: readonly TurnSnapshotLike[];\n messages: readonly ChatMessage[];\n metaEvents: readonly MetaEvent[];\n}"
10563
+ }
10564
+ }
10565
+ ],
10566
+ "description": "Build the `message` / `turn` / `event` timeline entries from a driver's pull surfaces\n(`getRawHistory()` / `getTurnSnapshots()` / `getMetaEvents(sessionKey)`). Order within the array\nis message → turn → event; the caller (`assembleDebugLog`) sorts the whole timeline by timestamp,\nso this ordering only sets the co-timestamp tie-break. Pure."
10567
+ }
10568
+ ],
10569
+ "exports": [
10570
+ {
10571
+ "kind": "js",
10572
+ "name": "buildTimelineEntries",
10573
+ "declaration": {
10574
+ "name": "buildTimelineEntries",
10575
+ "module": "src/state/persistence/build-timeline-entries.ts"
10576
+ }
10577
+ }
10578
+ ]
10579
+ },
10580
+ {
10581
+ "kind": "javascript-module",
10582
+ "path": "src/state/persistence/diagnostics-cursors.ts",
10583
+ "declarations": [
10584
+ {
10585
+ "kind": "function",
10586
+ "name": "getDiagnosticsCursors",
10587
+ "return": {
10588
+ "type": {
10589
+ "text": "DiagnosticsCursors"
10590
+ }
10591
+ },
10592
+ "parameters": [
10593
+ {
10594
+ "name": "key",
10595
+ "type": {
10596
+ "text": "string"
10597
+ }
10598
+ }
10599
+ ],
10600
+ "description": "The shared cursors for `key`, created (empty) on first access. @internal"
10601
+ },
10602
+ {
10603
+ "kind": "function",
10604
+ "name": "clearDiagnosticsCursorRegistry",
10605
+ "return": {
10606
+ "type": {
10607
+ "text": "void"
10608
+ }
10609
+ },
10610
+ "description": "Drop all cursors — test isolation only. @internal"
10611
+ }
10612
+ ],
10613
+ "exports": [
10614
+ {
10615
+ "kind": "js",
10616
+ "name": "getDiagnosticsCursors",
10617
+ "declaration": {
10399
10618
  "name": "getDiagnosticsCursors",
10400
10619
  "module": "src/state/persistence/diagnostics-cursors.ts"
10401
10620
  }
@@ -10909,225 +11128,6 @@
10909
11128
  }
10910
11129
  }
10911
11130
  ]
10912
- },
10913
- {
10914
- "kind": "javascript-module",
10915
- "path": "src/components/popout-manager/index.ts",
10916
- "declarations": [],
10917
- "exports": [
10918
- {
10919
- "kind": "js",
10920
- "name": "*",
10921
- "declaration": {
10922
- "name": "*",
10923
- "package": "./popout-manager"
10924
- }
10925
- }
10926
- ]
10927
- },
10928
- {
10929
- "kind": "javascript-module",
10930
- "path": "src/components/popout-manager/popout-manager.ts",
10931
- "declarations": [
10932
- {
10933
- "kind": "class",
10934
- "description": "App-shell component that owns the pop-out/pop-in lifecycle for the AI assistant bubble.",
10935
- "name": "FoundationAiPopoutManager",
10936
- "members": [
10937
- {
10938
- "kind": "field",
10939
- "name": "canDock",
10940
- "type": {
10941
- "text": "boolean"
10942
- },
10943
- "default": "false",
10944
- "description": "True when a dock provider is registered — controls expand button visibility."
10945
- },
10946
- {
10947
- "kind": "field",
10948
- "name": "assistantEl",
10949
- "type": {
10950
- "text": "HTMLElement | null"
10951
- },
10952
- "privacy": "private",
10953
- "default": "null",
10954
- "description": "The single assistant element. Captured while it's in the bubble slot and held\nacross the move (it's the same instance whether docked or in the bubble), so\npop-in can re-home it even though it's no longer a child of this manager."
10955
- },
10956
- {
10957
- "kind": "field",
10958
- "name": "dockProvider",
10959
- "type": {
10960
- "text": "AiDockProvider | null"
10961
- },
10962
- "privacy": "private",
10963
- "default": "null"
10964
- },
10965
- {
10966
- "kind": "field",
10967
- "name": "isDocked",
10968
- "type": {
10969
- "text": "boolean"
10970
- },
10971
- "privacy": "private",
10972
- "default": "false"
10973
- },
10974
- {
10975
- "kind": "field",
10976
- "name": "unsubBus",
10977
- "type": {
10978
- "text": "() => void | undefined"
10979
- },
10980
- "privacy": "private"
10981
- },
10982
- {
10983
- "kind": "method",
10984
- "name": "findAssistant",
10985
- "privacy": "private",
10986
- "return": {
10987
- "type": {
10988
- "text": "HTMLElement | null"
10989
- }
10990
- },
10991
- "description": "Locate the assistant element currently slotted into the bubble."
10992
- },
10993
- {
10994
- "kind": "method",
10995
- "name": "adoptAssistant",
10996
- "return": {
10997
- "type": {
10998
- "text": "void"
10999
- }
11000
- },
11001
- "parameters": [
11002
- {
11003
- "name": "el",
11004
- "type": {
11005
- "text": "HTMLElement"
11006
- }
11007
- },
11008
- {
11009
- "name": "docked",
11010
- "type": {
11011
- "text": "boolean"
11012
- }
11013
- }
11014
- ],
11015
- "description": "Register an externally-created assistant element and its docked state. For\nsingle-element hosts that create the assistant directly in a layout pane (rather\nthan statically in the bubble), so the manager tracks the one element, whether it's\ncurrently docked (for pop-in re-homing), reflects the right `popout-mode` on it\n(drives the header button), and hides the empty bubble."
11016
- },
11017
- {
11018
- "kind": "method",
11019
- "name": "syncBubbleVisibility",
11020
- "privacy": "private",
11021
- "return": {
11022
- "type": {
11023
- "text": "void"
11024
- }
11025
- },
11026
- "description": "Hide the floating bubble unless it currently contains the assistant."
11027
- },
11028
- {
11029
- "kind": "method",
11030
- "name": "canDockChanged"
11031
- },
11032
- {
11033
- "kind": "method",
11034
- "name": "registerDockProvider",
11035
- "return": {
11036
- "type": {
11037
- "text": "void"
11038
- }
11039
- },
11040
- "parameters": [
11041
- {
11042
- "name": "provider",
11043
- "type": {
11044
- "text": "AiDockProvider"
11045
- }
11046
- }
11047
- ]
11048
- },
11049
- {
11050
- "kind": "method",
11051
- "name": "deregisterDockProvider",
11052
- "return": {
11053
- "type": {
11054
- "text": "void"
11055
- }
11056
- }
11057
- },
11058
- {
11059
- "kind": "method",
11060
- "name": "collapseIfDocked",
11061
- "return": {
11062
- "type": {
11063
- "text": "Promise<void>"
11064
- }
11065
- },
11066
- "description": "If the assistant is currently docked, collapses it back into the bubble.\nAwait this in `onBeforeNavButtonClick` to ensure cleanup before navigation."
11067
- }
11068
- ],
11069
- "superclass": {
11070
- "name": "GenesisElement",
11071
- "package": "@genesislcap/web-core"
11072
- },
11073
- "tagName": "foundation-ai-popout-manager",
11074
- "customElement": true
11075
- },
11076
- {
11077
- "kind": "function",
11078
- "name": "isAiAssistantDocked",
11079
- "return": {
11080
- "type": {
11081
- "text": "boolean"
11082
- }
11083
- },
11084
- "description": "True when the assistant is active in the layout panel (docked) rather than the bubble."
11085
- },
11086
- {
11087
- "kind": "function",
11088
- "name": "getAiPopoutManager",
11089
- "return": {
11090
- "type": {
11091
- "text": "FoundationAiPopoutManager | undefined"
11092
- }
11093
- },
11094
- "description": "Returns the active `FoundationAiPopoutManager` instance, or `undefined` if none is mounted.\nImport this in pages to call `registerDockProvider` / `deregisterDockProvider`."
11095
- }
11096
- ],
11097
- "exports": [
11098
- {
11099
- "kind": "js",
11100
- "name": "FoundationAiPopoutManager",
11101
- "declaration": {
11102
- "name": "FoundationAiPopoutManager",
11103
- "module": "src/components/popout-manager/popout-manager.ts"
11104
- }
11105
- },
11106
- {
11107
- "kind": "custom-element-definition",
11108
- "name": "foundation-ai-popout-manager",
11109
- "declaration": {
11110
- "name": "FoundationAiPopoutManager",
11111
- "module": "src/components/popout-manager/popout-manager.ts"
11112
- }
11113
- },
11114
- {
11115
- "kind": "js",
11116
- "name": "isAiAssistantDocked",
11117
- "declaration": {
11118
- "name": "isAiAssistantDocked",
11119
- "module": "src/components/popout-manager/popout-manager.ts"
11120
- }
11121
- },
11122
- {
11123
- "kind": "js",
11124
- "name": "getAiPopoutManager",
11125
- "declaration": {
11126
- "name": "getAiPopoutManager",
11127
- "module": "src/components/popout-manager/popout-manager.ts"
11128
- }
11129
- }
11130
- ]
11131
11131
  }
11132
11132
  ]
11133
11133
  }
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.13.0",
4
+ "version": "15.13.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/ai-assistant.d.ts",
@@ -73,26 +73,26 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@genesislcap/foundation-testing": "15.13.0",
77
- "@genesislcap/genx": "15.13.0",
78
- "@genesislcap/rollup-builder": "15.13.0",
79
- "@genesislcap/ts-builder": "15.13.0",
80
- "@genesislcap/uvu-playwright-builder": "15.13.0",
81
- "@genesislcap/vite-builder": "15.13.0",
82
- "@genesislcap/webpack-builder": "15.13.0",
76
+ "@genesislcap/foundation-testing": "15.13.1",
77
+ "@genesislcap/genx": "15.13.1",
78
+ "@genesislcap/rollup-builder": "15.13.1",
79
+ "@genesislcap/ts-builder": "15.13.1",
80
+ "@genesislcap/uvu-playwright-builder": "15.13.1",
81
+ "@genesislcap/vite-builder": "15.13.1",
82
+ "@genesislcap/webpack-builder": "15.13.1",
83
83
  "@types/dompurify": "^3.0.5",
84
84
  "@types/marked": "^5.0.2",
85
85
  "esbuild": "0.25.12"
86
86
  },
87
87
  "dependencies": {
88
- "@genesislcap/foundation-ai": "15.13.0",
89
- "@genesislcap/foundation-logger": "15.13.0",
90
- "@genesislcap/foundation-notifications": "15.13.0",
91
- "@genesislcap/foundation-redux": "15.13.0",
92
- "@genesislcap/foundation-ui": "15.13.0",
93
- "@genesislcap/foundation-utils": "15.13.0",
94
- "@genesislcap/rapid-design-system": "15.13.0",
95
- "@genesislcap/web-core": "15.13.0",
88
+ "@genesislcap/foundation-ai": "15.13.1",
89
+ "@genesislcap/foundation-logger": "15.13.1",
90
+ "@genesislcap/foundation-notifications": "15.13.1",
91
+ "@genesislcap/foundation-redux": "15.13.1",
92
+ "@genesislcap/foundation-ui": "15.13.1",
93
+ "@genesislcap/foundation-utils": "15.13.1",
94
+ "@genesislcap/rapid-design-system": "15.13.1",
95
+ "@genesislcap/web-core": "15.13.1",
96
96
  "dompurify": "^3.3.1",
97
97
  "marked": "^17.0.3"
98
98
  },
@@ -105,5 +105,5 @@
105
105
  "access": "public"
106
106
  },
107
107
  "customElements": "dist/custom-elements.json",
108
- "gitHead": "719ab9df50445af3dabf8f6fb9966d004e5ae524"
108
+ "gitHead": "4ac0cfb22051b17da81586baf5166c9b605fae10"
109
109
  }