@genesislcap/ai-assistant 15.108.0 → 15.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +410 -4
- package/dist/ai-assistant.d.ts +121 -2
- package/dist/chat-driver.cjs +33 -15
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +33 -15
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +767 -566
- package/dist/dts/components/chat-driver/chat-driver.d.ts +9 -0
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +2 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/components/settings-modal/settings-modal.d.ts +2 -0
- package/dist/dts/components/settings-modal/settings-modal.d.ts.map +1 -1
- package/dist/dts/components/settings-modal/settings-modal.styles.d.ts.map +1 -1
- package/dist/dts/components/settings-modal/settings-modal.template.d.ts +1 -0
- package/dist/dts/components/settings-modal/settings-modal.template.d.ts.map +1 -1
- package/dist/dts/genesis/register-genesis-assistant.d.ts +24 -0
- package/dist/dts/genesis/register-genesis-assistant.d.ts.map +1 -1
- package/dist/dts/genesis/types.d.ts +8 -2
- package/dist/dts/genesis/types.d.ts.map +1 -1
- package/dist/dts/genesis/vendor-follower.d.ts +86 -0
- package/dist/dts/genesis/vendor-follower.d.ts.map +1 -0
- package/dist/dts/genesis/vendor-pick.d.ts +36 -0
- package/dist/dts/genesis/vendor-pick.d.ts.map +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/budget-controller.d.ts +6 -0
- package/dist/dts/main/budget-controller.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +30 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/vendor-picker-controller.d.ts +89 -0
- package/dist/dts/main/vendor-picker-controller.d.ts.map +1 -0
- package/dist/dts/provider/ai-provider-switcher.d.ts +22 -1
- package/dist/dts/provider/ai-provider-switcher.d.ts.map +1 -1
- package/dist/dts/provider/tiered-provider-switcher.d.ts +39 -2
- package/dist/dts/provider/tiered-provider-switcher.d.ts.map +1 -1
- package/dist/esm/chat-driver-node.js +1 -1
- package/dist/esm/components/chat-driver/chat-driver.js +3 -2
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +1 -0
- package/dist/esm/components/settings-modal/settings-modal.js +4 -1
- package/dist/esm/components/settings-modal/settings-modal.styles.js +59 -0
- package/dist/esm/components/settings-modal/settings-modal.template.js +54 -1
- package/dist/esm/genesis/register-genesis-assistant.js +72 -7
- package/dist/esm/genesis/vendor-follower.js +149 -0
- package/dist/esm/genesis/vendor-pick.js +67 -0
- package/dist/esm/main/budget-controller.js +11 -9
- package/dist/esm/main/main.js +57 -0
- package/dist/esm/main/vendor-picker-controller.js +141 -0
- package/dist/esm/provider/tiered-provider-switcher.js +54 -1
- package/docs/genesis.md +35 -1
- package/package.json +17 -17
|
@@ -854,6 +854,22 @@
|
|
|
854
854
|
"package": "./main/main.template"
|
|
855
855
|
}
|
|
856
856
|
},
|
|
857
|
+
{
|
|
858
|
+
"kind": "js",
|
|
859
|
+
"name": "VendorPickerOption",
|
|
860
|
+
"declaration": {
|
|
861
|
+
"name": "VendorPickerOption",
|
|
862
|
+
"module": "./main/vendor-picker-controller"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"kind": "js",
|
|
867
|
+
"name": "VendorSelectedElsewhere",
|
|
868
|
+
"declaration": {
|
|
869
|
+
"name": "VendorSelectedElsewhere",
|
|
870
|
+
"module": "./main/vendor-picker-controller"
|
|
871
|
+
}
|
|
872
|
+
},
|
|
857
873
|
{
|
|
858
874
|
"kind": "js",
|
|
859
875
|
"name": "*",
|
|
@@ -7129,6 +7145,18 @@
|
|
|
7129
7145
|
"declarations": [],
|
|
7130
7146
|
"exports": []
|
|
7131
7147
|
},
|
|
7148
|
+
{
|
|
7149
|
+
"kind": "javascript-module",
|
|
7150
|
+
"path": "src/genesis/vendor-follower.ts",
|
|
7151
|
+
"declarations": [],
|
|
7152
|
+
"exports": []
|
|
7153
|
+
},
|
|
7154
|
+
{
|
|
7155
|
+
"kind": "javascript-module",
|
|
7156
|
+
"path": "src/genesis/vendor-pick.ts",
|
|
7157
|
+
"declarations": [],
|
|
7158
|
+
"exports": []
|
|
7159
|
+
},
|
|
7132
7160
|
{
|
|
7133
7161
|
"kind": "javascript-module",
|
|
7134
7162
|
"path": "src/genesis/write-commit.ts",
|
|
@@ -9264,15 +9292,23 @@
|
|
|
9264
9292
|
"name": "budget",
|
|
9265
9293
|
"privacy": "private",
|
|
9266
9294
|
"readonly": true,
|
|
9267
|
-
"default": "new BudgetController({\n sessionRef: () => this._sessionRef,\n providerStatuses: () => this.providerStatuses,\n providerRegistry: () => this.providerRegistry,\n chatConfig: () => this.chatConfig,\n })",
|
|
9295
|
+
"default": "new BudgetController({\n sessionRef: () => this._sessionRef,\n providerStatuses: () => this.providerStatuses,\n providerRegistry: () => this.providerRegistry,\n chatConfig: () => this.chatConfig,\n vendorSwitchPlace: () => this.vendorPicker.switchPlace,\n })",
|
|
9268
9296
|
"description": "The AI-spend budget: vendor walls, the derived composer lock, the banner copy\nand the settings meter (GENC-1464).\n\nTakes the session store itself rather than a callback per field — see\n`BudgetDeps` for why this one differs from its siblings."
|
|
9269
9297
|
},
|
|
9298
|
+
{
|
|
9299
|
+
"kind": "field",
|
|
9300
|
+
"name": "vendorPicker",
|
|
9301
|
+
"privacy": "private",
|
|
9302
|
+
"readonly": true,
|
|
9303
|
+
"default": "new VendorPickerController({\n switcher: () => this.providerSwitcher,\n computing: () => this.busy && !this.hasActivePendingInteraction,\n hostControl: () => this.settings.modelSlotted.length > 0,\n })",
|
|
9304
|
+
"description": "The vendor control in the settings' AI model section, shown only when the registered\nswitcher asks for one through its `vendorChoice`."
|
|
9305
|
+
},
|
|
9270
9306
|
{
|
|
9271
9307
|
"kind": "field",
|
|
9272
9308
|
"name": "settings",
|
|
9273
9309
|
"privacy": "private",
|
|
9274
9310
|
"readonly": true,
|
|
9275
|
-
"default": "new SettingsModalController({\n chatConfig: () => this.chatConfig,\n contextTokens: () => this.contextTokens,\n contextLimit: () => this.contextLimit,\n budgetUsageVisible: () => this.budget.settingsUsageVisible,\n costConfig: () => this.costLedger.config,\n costHistoryLength: () => this.costLedger.history.length,\n liveCostSessionTitle: () => this.costLedger.liveTitle,\n providerStatusCount: () => this.providerStatuses.length,\n sessionRef: () => this._sessionRef,\n stateKey: () => this.getStateKey(),\n popoutMode: () => this.popoutMode,\n headerTitle: () => this.headerTitle,\n appSettingsProvider: () => this.appSettingsProvider,\n modal: () => this.settingsModal,\n tabsEl: () => this.settingsTabsEl,\n requestBudgetRefresh: () => this.requestBudgetRefresh(),\n logMeta: (type, detail) => this.logMeta(type, detail),\n })",
|
|
9311
|
+
"default": "new SettingsModalController({\n chatConfig: () => this.chatConfig,\n contextTokens: () => this.contextTokens,\n contextLimit: () => this.contextLimit,\n budgetUsageVisible: () => this.budget.settingsUsageVisible,\n vendorPickerVisible: () => this.vendorPicker.visible,\n costConfig: () => this.costLedger.config,\n costHistoryLength: () => this.costLedger.history.length,\n liveCostSessionTitle: () => this.costLedger.liveTitle,\n providerStatusCount: () => this.providerStatuses.length,\n sessionRef: () => this._sessionRef,\n stateKey: () => this.getStateKey(),\n popoutMode: () => this.popoutMode,\n headerTitle: () => this.headerTitle,\n appSettingsProvider: () => this.appSettingsProvider,\n modal: () => this.settingsModal,\n tabsEl: () => this.settingsTabsEl,\n requestBudgetRefresh: () => this.requestBudgetRefresh(),\n logMeta: (type, detail) => this.logMeta(type, detail),\n })",
|
|
9276
9312
|
"description": "The settings modal (`docs/code-health.md` §3). Reaches the two design-system\nrefs through callbacks, because the template writes them by name — see\n`SettingsModalDeps`."
|
|
9277
9313
|
},
|
|
9278
9314
|
{
|
|
@@ -9282,6 +9318,14 @@
|
|
|
9282
9318
|
"text": "AIProviderRegistry"
|
|
9283
9319
|
}
|
|
9284
9320
|
},
|
|
9321
|
+
{
|
|
9322
|
+
"kind": "field",
|
|
9323
|
+
"name": "providerSwitcher",
|
|
9324
|
+
"type": {
|
|
9325
|
+
"text": "AIProviderSwitcher"
|
|
9326
|
+
},
|
|
9327
|
+
"description": "The app's vendor switcher; the platform's no-op one when it registered none."
|
|
9328
|
+
},
|
|
9285
9329
|
{
|
|
9286
9330
|
"kind": "field",
|
|
9287
9331
|
"name": "appSettingsProvider",
|
|
@@ -11914,6 +11958,52 @@
|
|
|
11914
11958
|
"description": "The settings modal's derived surface. Every member below delegates to\n`SettingsModalController` — the names are this element's public API and the\n943-line template's bindings, so they stay put while the logic moves into the\n`settings-modal.ts` that folder never had (`docs/code-health.md` §3).\n\nNone carries `@volatile`: the decorators live on the controller's getters, and\nthey reach the binding observer from there — see `docs/code-health.md` §11.4.",
|
|
11915
11959
|
"readonly": true
|
|
11916
11960
|
},
|
|
11961
|
+
{
|
|
11962
|
+
"kind": "field",
|
|
11963
|
+
"name": "settingsVendorPickerDisabled",
|
|
11964
|
+
"type": {
|
|
11965
|
+
"text": "boolean"
|
|
11966
|
+
},
|
|
11967
|
+
"description": "Whether the cards are disabled: a turn is computing. @internal",
|
|
11968
|
+
"readonly": true
|
|
11969
|
+
},
|
|
11970
|
+
{
|
|
11971
|
+
"kind": "field",
|
|
11972
|
+
"name": "settingsVendorSelectedElsewhere",
|
|
11973
|
+
"type": {
|
|
11974
|
+
"text": "VendorSelectedElsewhere | undefined"
|
|
11975
|
+
},
|
|
11976
|
+
"description": "The active vendor read-only, when the switcher says it is chosen elsewhere. @internal",
|
|
11977
|
+
"readonly": true
|
|
11978
|
+
},
|
|
11979
|
+
{
|
|
11980
|
+
"kind": "method",
|
|
11981
|
+
"name": "selectSettingsVendor",
|
|
11982
|
+
"return": {
|
|
11983
|
+
"type": {
|
|
11984
|
+
"text": "void"
|
|
11985
|
+
}
|
|
11986
|
+
},
|
|
11987
|
+
"parameters": [
|
|
11988
|
+
{
|
|
11989
|
+
"name": "vendor",
|
|
11990
|
+
"type": {
|
|
11991
|
+
"text": "string"
|
|
11992
|
+
}
|
|
11993
|
+
}
|
|
11994
|
+
],
|
|
11995
|
+
"description": "A vendor card was picked. @internal"
|
|
11996
|
+
},
|
|
11997
|
+
{
|
|
11998
|
+
"kind": "field",
|
|
11999
|
+
"name": "transcriptVendorSwitchPlace",
|
|
12000
|
+
"type": {
|
|
12001
|
+
"text": "string | undefined"
|
|
12002
|
+
},
|
|
12003
|
+
"privacy": "private",
|
|
12004
|
+
"description": "Where the transcript's budget bubble tells the user to switch vendor, when that is outside\nthe app (Genesis Create's preview). The driver is built once, and this does not change after\nregistration; the default, \"in Settings\", is the in-app picker's.",
|
|
12005
|
+
"readonly": true
|
|
12006
|
+
},
|
|
11917
12007
|
{
|
|
11918
12008
|
"kind": "field",
|
|
11919
12009
|
"name": "settingsContextUsageVisible",
|
|
@@ -13354,6 +13444,40 @@
|
|
|
13354
13444
|
"declarations": [],
|
|
13355
13445
|
"exports": []
|
|
13356
13446
|
},
|
|
13447
|
+
{
|
|
13448
|
+
"kind": "javascript-module",
|
|
13449
|
+
"path": "src/main/vendor-picker-controller.ts",
|
|
13450
|
+
"declarations": [
|
|
13451
|
+
{
|
|
13452
|
+
"kind": "function",
|
|
13453
|
+
"name": "vendorLabel",
|
|
13454
|
+
"return": {
|
|
13455
|
+
"type": {
|
|
13456
|
+
"text": "string"
|
|
13457
|
+
}
|
|
13458
|
+
},
|
|
13459
|
+
"parameters": [
|
|
13460
|
+
{
|
|
13461
|
+
"name": "vendor",
|
|
13462
|
+
"type": {
|
|
13463
|
+
"text": "string"
|
|
13464
|
+
}
|
|
13465
|
+
}
|
|
13466
|
+
],
|
|
13467
|
+
"description": "What a vendor is called in the settings: the platform's label, else the vendor id."
|
|
13468
|
+
}
|
|
13469
|
+
],
|
|
13470
|
+
"exports": [
|
|
13471
|
+
{
|
|
13472
|
+
"kind": "js",
|
|
13473
|
+
"name": "vendorLabel",
|
|
13474
|
+
"declaration": {
|
|
13475
|
+
"name": "vendorLabel",
|
|
13476
|
+
"module": "src/main/vendor-picker-controller.ts"
|
|
13477
|
+
}
|
|
13478
|
+
}
|
|
13479
|
+
]
|
|
13480
|
+
},
|
|
13357
13481
|
{
|
|
13358
13482
|
"kind": "javascript-module",
|
|
13359
13483
|
"path": "src/notifications/agent-notifications.ts",
|
|
@@ -13530,337 +13654,135 @@
|
|
|
13530
13654
|
},
|
|
13531
13655
|
{
|
|
13532
13656
|
"kind": "javascript-module",
|
|
13533
|
-
"path": "src/
|
|
13657
|
+
"path": "src/state/ai-assistant-slice.ts",
|
|
13534
13658
|
"declarations": [
|
|
13659
|
+
{
|
|
13660
|
+
"kind": "function",
|
|
13661
|
+
"name": "createDefaultSessionState",
|
|
13662
|
+
"return": {
|
|
13663
|
+
"type": {
|
|
13664
|
+
"text": "AiAssistantSessionState"
|
|
13665
|
+
}
|
|
13666
|
+
},
|
|
13667
|
+
"description": "Build a fresh default session state. A factory (not just a shared const) so\neach call returns independent collections — `resetSession` can hand back a\nclean slate without aliasing the initial state's arrays."
|
|
13668
|
+
},
|
|
13535
13669
|
{
|
|
13536
13670
|
"kind": "variable",
|
|
13537
|
-
"name": "
|
|
13538
|
-
"
|
|
13671
|
+
"name": "defaultSessionState",
|
|
13672
|
+
"type": {
|
|
13673
|
+
"text": "AiAssistantSessionState"
|
|
13674
|
+
}
|
|
13675
|
+
},
|
|
13676
|
+
{
|
|
13677
|
+
"kind": "variable",
|
|
13678
|
+
"name": "aiAssistantSlice"
|
|
13539
13679
|
}
|
|
13540
13680
|
],
|
|
13541
13681
|
"exports": [
|
|
13542
13682
|
{
|
|
13543
13683
|
"kind": "js",
|
|
13544
|
-
"name": "
|
|
13684
|
+
"name": "createDefaultSessionState",
|
|
13545
13685
|
"declaration": {
|
|
13546
|
-
"name": "
|
|
13547
|
-
"module": "src/
|
|
13686
|
+
"name": "createDefaultSessionState",
|
|
13687
|
+
"module": "src/state/ai-assistant-slice.ts"
|
|
13548
13688
|
}
|
|
13549
|
-
}
|
|
13550
|
-
]
|
|
13551
|
-
},
|
|
13552
|
-
{
|
|
13553
|
-
"kind": "javascript-module",
|
|
13554
|
-
"path": "src/provider/assistant-app-settings.ts",
|
|
13555
|
-
"declarations": [
|
|
13689
|
+
},
|
|
13556
13690
|
{
|
|
13557
|
-
"kind": "
|
|
13558
|
-
"name": "
|
|
13559
|
-
"
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13691
|
+
"kind": "js",
|
|
13692
|
+
"name": "defaultSessionState",
|
|
13693
|
+
"declaration": {
|
|
13694
|
+
"name": "defaultSessionState",
|
|
13695
|
+
"module": "src/state/ai-assistant-slice.ts"
|
|
13696
|
+
}
|
|
13697
|
+
},
|
|
13563
13698
|
{
|
|
13564
13699
|
"kind": "js",
|
|
13565
|
-
"name": "
|
|
13700
|
+
"name": "aiAssistantSlice",
|
|
13566
13701
|
"declaration": {
|
|
13567
|
-
"name": "
|
|
13568
|
-
"module": "src/
|
|
13702
|
+
"name": "aiAssistantSlice",
|
|
13703
|
+
"module": "src/state/ai-assistant-slice.ts"
|
|
13569
13704
|
}
|
|
13570
13705
|
}
|
|
13571
13706
|
]
|
|
13572
13707
|
},
|
|
13573
13708
|
{
|
|
13574
13709
|
"kind": "javascript-module",
|
|
13575
|
-
"path": "src/
|
|
13710
|
+
"path": "src/state/debug-event-log.ts",
|
|
13576
13711
|
"declarations": [
|
|
13577
13712
|
{
|
|
13578
|
-
"kind": "
|
|
13579
|
-
"
|
|
13580
|
-
"
|
|
13581
|
-
|
|
13713
|
+
"kind": "variable",
|
|
13714
|
+
"name": "META_EVENT_IMPORTANCE",
|
|
13715
|
+
"type": {
|
|
13716
|
+
"text": "Record<MetaEventType, MetaEventImportance>"
|
|
13717
|
+
},
|
|
13718
|
+
"default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'turn.finish-guard': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n // A long action's step starting, finishing, or skipped on resume because it was already done.\n 'interaction.step': 'low',\n // A cut checkpoint taken over after a reload, refused (by sameWork, and kept for a later request;\n // or as malformed), or dropped at flow end, as is the live one.\n 'interaction.checkpoint': 'normal',\n // A claimant handing a pending interaction to the person, or taking it back.\n 'interaction.held': 'normal',\n // A claim on a `userOnly` interaction, refused. Expected when an interceptor claims broadly.\n 'interaction.claim-refused': 'low',\n // A claimant ran one of the surface's actions: what it did, and whether that settled it.\n 'interaction.invoked': 'normal',\n 'autopilot.claimed': 'normal',\n // One per interaction the autopilot does not take, so frequent and mostly expected.\n 'autopilot.declined': 'low',\n 'autopilot.decision-sent': 'low',\n 'autopilot.acted': 'normal',\n 'autopilot.handed-back': 'normal',\n 'autopilot.paused': 'normal',\n 'autopilot.resumed': 'normal',\n // The mode went with the task across a hand-off or its hand-back, rather than ending with the flow.\n 'autopilot.carried': 'normal',\n // The wrapper itself failed: the journey stops being automatic without anyone choosing that.\n 'autopilot.error': 'high',\n // A written answer counted against the step's limit; reaching it withdraws `reply`.\n 'autopilot.refinement': 'normal',\n // The autopilot showed its own widget because a working turn ended needing the person.\n 'autopilot.handback-presented': 'normal',\n // The autopilot was given the whole visible transcript: its first decision, a rebuild, or after\n // a compaction removed the last message it saw.\n 'autopilot.catch-up': 'normal',\n // Autopilot spend that reached no message, so it is missing from the session total.\n 'autopilot.cost-dropped': 'high',\n // A headless session attached to the driver: from here a host with no screen is the person.\n 'headless.attached': 'normal',\n // The host settled an interaction raw, without the widget's own actions: its result went to the\n // tool as given, unchecked by anything the widget would have enforced.\n 'headless.raw-resolved': 'normal',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n // Whether a restored flow will be re-activated and resumed (GENC-1662), and how much the trim cut.\n 'persistence.resume-planned': 'normal',\n // A planned resume that did not run, and why (GENC-1662) — the divider was put back to plain.\n 'persistence.resume-withdrawn': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
|
|
13719
|
+
"description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
|
|
13720
|
+
},
|
|
13721
|
+
{
|
|
13722
|
+
"kind": "function",
|
|
13723
|
+
"name": "recordMetaEvent",
|
|
13724
|
+
"return": {
|
|
13725
|
+
"type": {
|
|
13726
|
+
"text": "void"
|
|
13727
|
+
}
|
|
13728
|
+
},
|
|
13729
|
+
"parameters": [
|
|
13582
13730
|
{
|
|
13583
|
-
"
|
|
13584
|
-
"name": "vendors",
|
|
13731
|
+
"name": "key",
|
|
13585
13732
|
"type": {
|
|
13586
|
-
"text": "
|
|
13587
|
-
}
|
|
13588
|
-
"readonly": true
|
|
13733
|
+
"text": "string"
|
|
13734
|
+
}
|
|
13589
13735
|
},
|
|
13590
13736
|
{
|
|
13591
|
-
"
|
|
13592
|
-
"name": "options",
|
|
13737
|
+
"name": "type",
|
|
13593
13738
|
"type": {
|
|
13594
|
-
"text": "
|
|
13595
|
-
}
|
|
13596
|
-
"privacy": "private",
|
|
13597
|
-
"readonly": true,
|
|
13598
|
-
"default": "options"
|
|
13739
|
+
"text": "MetaEventType"
|
|
13740
|
+
}
|
|
13599
13741
|
},
|
|
13600
13742
|
{
|
|
13601
|
-
"
|
|
13602
|
-
"
|
|
13743
|
+
"name": "detail",
|
|
13744
|
+
"optional": true,
|
|
13603
13745
|
"type": {
|
|
13604
|
-
"text": "
|
|
13605
|
-
}
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13746
|
+
"text": "Record<string, unknown>"
|
|
13747
|
+
}
|
|
13748
|
+
}
|
|
13749
|
+
],
|
|
13750
|
+
"description": "Append a meta event to the timeline for `key`. Once the buffer exceeds\nDEFAULT_MAX_META_EVENTS, evicts the oldest *non-`high`* event;\n`high`-importance events are never evicted. An empty `key` is bucketed under\n`''`, matching how drivers/stores handle an absent session identity, so\ncallers never need to guard."
|
|
13751
|
+
},
|
|
13752
|
+
{
|
|
13753
|
+
"kind": "function",
|
|
13754
|
+
"name": "recordTurnError",
|
|
13755
|
+
"return": {
|
|
13756
|
+
"type": {
|
|
13757
|
+
"text": "void"
|
|
13758
|
+
}
|
|
13759
|
+
},
|
|
13760
|
+
"parameters": [
|
|
13609
13761
|
{
|
|
13610
|
-
"
|
|
13611
|
-
"name": "registry",
|
|
13762
|
+
"name": "key",
|
|
13612
13763
|
"type": {
|
|
13613
|
-
"text": "
|
|
13614
|
-
}
|
|
13615
|
-
"privacy": "private",
|
|
13616
|
-
"readonly": true
|
|
13617
|
-
},
|
|
13618
|
-
{
|
|
13619
|
-
"kind": "field",
|
|
13620
|
-
"name": "listeners",
|
|
13621
|
-
"privacy": "private",
|
|
13622
|
-
"readonly": true,
|
|
13623
|
-
"default": "new Set<(vendor: AITierVendor) => void>()"
|
|
13764
|
+
"text": "string"
|
|
13765
|
+
}
|
|
13624
13766
|
},
|
|
13625
13767
|
{
|
|
13626
|
-
"
|
|
13627
|
-
"name": "_vendor",
|
|
13768
|
+
"name": "reason",
|
|
13628
13769
|
"type": {
|
|
13629
|
-
"text": "
|
|
13630
|
-
}
|
|
13631
|
-
"privacy": "private"
|
|
13770
|
+
"text": "TurnFailureReason"
|
|
13771
|
+
}
|
|
13632
13772
|
},
|
|
13633
13773
|
{
|
|
13634
|
-
"
|
|
13635
|
-
"
|
|
13774
|
+
"name": "detail",
|
|
13775
|
+
"optional": true,
|
|
13636
13776
|
"type": {
|
|
13637
|
-
"text": "
|
|
13638
|
-
},
|
|
13639
|
-
"readonly": true
|
|
13640
|
-
},
|
|
13641
|
-
{
|
|
13642
|
-
"kind": "method",
|
|
13643
|
-
"name": "switchTo",
|
|
13644
|
-
"return": {
|
|
13645
|
-
"type": {
|
|
13646
|
-
"text": "void"
|
|
13647
|
-
}
|
|
13648
|
-
},
|
|
13649
|
-
"parameters": [
|
|
13650
|
-
{
|
|
13651
|
-
"name": "vendor",
|
|
13652
|
-
"type": {
|
|
13653
|
-
"text": "string"
|
|
13654
|
-
}
|
|
13655
|
-
}
|
|
13656
|
-
],
|
|
13657
|
-
"description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
|
|
13658
|
-
},
|
|
13659
|
-
{
|
|
13660
|
-
"kind": "method",
|
|
13661
|
-
"name": "adoptPersistedVendor",
|
|
13662
|
-
"return": {
|
|
13663
|
-
"type": {
|
|
13664
|
-
"text": "void"
|
|
13665
|
-
}
|
|
13666
|
-
},
|
|
13667
|
-
"parameters": [
|
|
13668
|
-
{
|
|
13669
|
-
"name": "vendor",
|
|
13670
|
-
"type": {
|
|
13671
|
-
"text": "string"
|
|
13672
|
-
}
|
|
13673
|
-
}
|
|
13674
|
-
],
|
|
13675
|
-
"description": "Adopt a vendor the app read back from its own store — the same registry move as\nTieredAIProviderSwitcher.switchTo, without the `onSwitch` callback, because this\nvalue came FROM the store and writing it back would be a pointless round-trip on load.\n\nExists because registration has to stay synchronous: an element that connects before the\ntoken is registered caches the platform's no-op fallback, so an app cannot await its\nstored preference before constructing this. It boots on `initialVendor` and adopts the\nstored one a moment later, through a registry that is mutable and held by reference."
|
|
13676
|
-
},
|
|
13677
|
-
{
|
|
13678
|
-
"kind": "method",
|
|
13679
|
-
"name": "subscribe",
|
|
13680
|
-
"return": {
|
|
13681
|
-
"type": {
|
|
13682
|
-
"text": "() => void"
|
|
13683
|
-
}
|
|
13684
|
-
},
|
|
13685
|
-
"parameters": [
|
|
13686
|
-
{
|
|
13687
|
-
"name": "listener",
|
|
13688
|
-
"type": {
|
|
13689
|
-
"text": "(vendor: string) => void"
|
|
13690
|
-
}
|
|
13691
|
-
}
|
|
13692
|
-
]
|
|
13693
|
-
},
|
|
13694
|
-
{
|
|
13695
|
-
"kind": "method",
|
|
13696
|
-
"name": "apply",
|
|
13697
|
-
"privacy": "private",
|
|
13698
|
-
"return": {
|
|
13699
|
-
"type": {
|
|
13700
|
-
"text": "void"
|
|
13701
|
-
}
|
|
13702
|
-
},
|
|
13703
|
-
"parameters": [
|
|
13704
|
-
{
|
|
13705
|
-
"name": "vendor",
|
|
13706
|
-
"type": {
|
|
13707
|
-
"text": "AITierVendor"
|
|
13708
|
-
}
|
|
13709
|
-
}
|
|
13710
|
-
],
|
|
13711
|
-
"description": "The registry move both entry points share, and nothing else."
|
|
13712
|
-
},
|
|
13713
|
-
{
|
|
13714
|
-
"kind": "method",
|
|
13715
|
-
"name": "build",
|
|
13716
|
-
"privacy": "private",
|
|
13717
|
-
"return": {
|
|
13718
|
-
"type": {
|
|
13719
|
-
"text": "Record<string, AIProvider>"
|
|
13720
|
-
}
|
|
13721
|
-
},
|
|
13722
|
-
"parameters": [
|
|
13723
|
-
{
|
|
13724
|
-
"name": "vendor",
|
|
13725
|
-
"type": {
|
|
13726
|
-
"text": "AITierVendor"
|
|
13727
|
-
}
|
|
13728
|
-
}
|
|
13729
|
-
]
|
|
13730
|
-
},
|
|
13731
|
-
{
|
|
13732
|
-
"kind": "method",
|
|
13733
|
-
"name": "isKnownVendor",
|
|
13734
|
-
"privacy": "private",
|
|
13735
|
-
"return": {
|
|
13736
|
-
"type": {
|
|
13737
|
-
"text": "vendor is AITierVendor"
|
|
13738
|
-
}
|
|
13739
|
-
},
|
|
13740
|
-
"parameters": [
|
|
13741
|
-
{
|
|
13742
|
-
"name": "vendor",
|
|
13743
|
-
"type": {
|
|
13744
|
-
"text": "string"
|
|
13745
|
-
}
|
|
13746
|
-
}
|
|
13747
|
-
]
|
|
13748
|
-
}
|
|
13749
|
-
]
|
|
13750
|
-
},
|
|
13751
|
-
{
|
|
13752
|
-
"kind": "function",
|
|
13753
|
-
"name": "registerTieredAIProviders",
|
|
13754
|
-
"return": {
|
|
13755
|
-
"type": {
|
|
13756
|
-
"text": "TieredAIProviderSwitcher"
|
|
13757
|
-
}
|
|
13758
|
-
},
|
|
13759
|
-
"parameters": [
|
|
13760
|
-
{
|
|
13761
|
-
"name": "container",
|
|
13762
|
-
"type": {
|
|
13763
|
-
"text": "Container"
|
|
13764
|
-
}
|
|
13765
|
-
},
|
|
13766
|
-
{
|
|
13767
|
-
"name": "options",
|
|
13768
|
-
"type": {
|
|
13769
|
-
"text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
|
|
13777
|
+
"text": "Record<string, unknown>"
|
|
13770
13778
|
}
|
|
13771
13779
|
}
|
|
13772
13780
|
],
|
|
13773
|
-
"description": "
|
|
13774
|
-
}
|
|
13775
|
-
],
|
|
13776
|
-
"exports": [
|
|
13777
|
-
{
|
|
13778
|
-
"kind": "js",
|
|
13779
|
-
"name": "TieredAIProviderSwitcher",
|
|
13780
|
-
"declaration": {
|
|
13781
|
-
"name": "TieredAIProviderSwitcher",
|
|
13782
|
-
"module": "src/provider/tiered-provider-switcher.ts"
|
|
13783
|
-
}
|
|
13784
|
-
},
|
|
13785
|
-
{
|
|
13786
|
-
"kind": "js",
|
|
13787
|
-
"name": "registerTieredAIProviders",
|
|
13788
|
-
"declaration": {
|
|
13789
|
-
"name": "registerTieredAIProviders",
|
|
13790
|
-
"module": "src/provider/tiered-provider-switcher.ts"
|
|
13791
|
-
}
|
|
13792
|
-
}
|
|
13793
|
-
]
|
|
13794
|
-
},
|
|
13795
|
-
{
|
|
13796
|
-
"kind": "javascript-module",
|
|
13797
|
-
"path": "src/state/ai-assistant-slice.ts",
|
|
13798
|
-
"declarations": [
|
|
13799
|
-
{
|
|
13800
|
-
"kind": "function",
|
|
13801
|
-
"name": "createDefaultSessionState",
|
|
13802
|
-
"return": {
|
|
13803
|
-
"type": {
|
|
13804
|
-
"text": "AiAssistantSessionState"
|
|
13805
|
-
}
|
|
13806
|
-
},
|
|
13807
|
-
"description": "Build a fresh default session state. A factory (not just a shared const) so\neach call returns independent collections — `resetSession` can hand back a\nclean slate without aliasing the initial state's arrays."
|
|
13808
|
-
},
|
|
13809
|
-
{
|
|
13810
|
-
"kind": "variable",
|
|
13811
|
-
"name": "defaultSessionState",
|
|
13812
|
-
"type": {
|
|
13813
|
-
"text": "AiAssistantSessionState"
|
|
13814
|
-
}
|
|
13815
|
-
},
|
|
13816
|
-
{
|
|
13817
|
-
"kind": "variable",
|
|
13818
|
-
"name": "aiAssistantSlice"
|
|
13819
|
-
}
|
|
13820
|
-
],
|
|
13821
|
-
"exports": [
|
|
13822
|
-
{
|
|
13823
|
-
"kind": "js",
|
|
13824
|
-
"name": "createDefaultSessionState",
|
|
13825
|
-
"declaration": {
|
|
13826
|
-
"name": "createDefaultSessionState",
|
|
13827
|
-
"module": "src/state/ai-assistant-slice.ts"
|
|
13828
|
-
}
|
|
13829
|
-
},
|
|
13830
|
-
{
|
|
13831
|
-
"kind": "js",
|
|
13832
|
-
"name": "defaultSessionState",
|
|
13833
|
-
"declaration": {
|
|
13834
|
-
"name": "defaultSessionState",
|
|
13835
|
-
"module": "src/state/ai-assistant-slice.ts"
|
|
13836
|
-
}
|
|
13837
|
-
},
|
|
13838
|
-
{
|
|
13839
|
-
"kind": "js",
|
|
13840
|
-
"name": "aiAssistantSlice",
|
|
13841
|
-
"declaration": {
|
|
13842
|
-
"name": "aiAssistantSlice",
|
|
13843
|
-
"module": "src/state/ai-assistant-slice.ts"
|
|
13844
|
-
}
|
|
13845
|
-
}
|
|
13846
|
-
]
|
|
13847
|
-
},
|
|
13848
|
-
{
|
|
13849
|
-
"kind": "javascript-module",
|
|
13850
|
-
"path": "src/state/debug-event-log.ts",
|
|
13851
|
-
"declarations": [
|
|
13852
|
-
{
|
|
13853
|
-
"kind": "variable",
|
|
13854
|
-
"name": "META_EVENT_IMPORTANCE",
|
|
13855
|
-
"type": {
|
|
13856
|
-
"text": "Record<MetaEventType, MetaEventImportance>"
|
|
13857
|
-
},
|
|
13858
|
-
"default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'turn.finish-guard': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n // A long action's step starting, finishing, or skipped on resume because it was already done.\n 'interaction.step': 'low',\n // A cut checkpoint taken over after a reload, refused (by sameWork, and kept for a later request;\n // or as malformed), or dropped at flow end, as is the live one.\n 'interaction.checkpoint': 'normal',\n // A claimant handing a pending interaction to the person, or taking it back.\n 'interaction.held': 'normal',\n // A claim on a `userOnly` interaction, refused. Expected when an interceptor claims broadly.\n 'interaction.claim-refused': 'low',\n // A claimant ran one of the surface's actions: what it did, and whether that settled it.\n 'interaction.invoked': 'normal',\n 'autopilot.claimed': 'normal',\n // One per interaction the autopilot does not take, so frequent and mostly expected.\n 'autopilot.declined': 'low',\n 'autopilot.decision-sent': 'low',\n 'autopilot.acted': 'normal',\n 'autopilot.handed-back': 'normal',\n 'autopilot.paused': 'normal',\n 'autopilot.resumed': 'normal',\n // The mode went with the task across a hand-off or its hand-back, rather than ending with the flow.\n 'autopilot.carried': 'normal',\n // The wrapper itself failed: the journey stops being automatic without anyone choosing that.\n 'autopilot.error': 'high',\n // A written answer counted against the step's limit; reaching it withdraws `reply`.\n 'autopilot.refinement': 'normal',\n // The autopilot showed its own widget because a working turn ended needing the person.\n 'autopilot.handback-presented': 'normal',\n // The autopilot was given the whole visible transcript: its first decision, a rebuild, or after\n // a compaction removed the last message it saw.\n 'autopilot.catch-up': 'normal',\n // Autopilot spend that reached no message, so it is missing from the session total.\n 'autopilot.cost-dropped': 'high',\n // A headless session attached to the driver: from here a host with no screen is the person.\n 'headless.attached': 'normal',\n // The host settled an interaction raw, without the widget's own actions: its result went to the\n // tool as given, unchecked by anything the widget would have enforced.\n 'headless.raw-resolved': 'normal',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n // Whether a restored flow will be re-activated and resumed (GENC-1662), and how much the trim cut.\n 'persistence.resume-planned': 'normal',\n // A planned resume that did not run, and why (GENC-1662) — the divider was put back to plain.\n 'persistence.resume-withdrawn': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
|
|
13859
|
-
"description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
|
|
13781
|
+
"description": "Record a turn-ending failure (`turn.error`, importance `high`). The `reason`\nis typed so the high-importance triage surface stays consistent; pass any\ndiagnostic specifics (attempt counts, offending tool names, etc.) in `detail`."
|
|
13860
13782
|
},
|
|
13861
13783
|
{
|
|
13862
13784
|
"kind": "function",
|
|
13863
|
-
"name": "
|
|
13785
|
+
"name": "recordTurnRetry",
|
|
13864
13786
|
"return": {
|
|
13865
13787
|
"type": {
|
|
13866
13788
|
"text": "void"
|
|
@@ -13874,9 +13796,9 @@
|
|
|
13874
13796
|
}
|
|
13875
13797
|
},
|
|
13876
13798
|
{
|
|
13877
|
-
"name": "
|
|
13799
|
+
"name": "reason",
|
|
13878
13800
|
"type": {
|
|
13879
|
-
"text": "
|
|
13801
|
+
"text": "TurnFailureReason"
|
|
13880
13802
|
}
|
|
13881
13803
|
},
|
|
13882
13804
|
{
|
|
@@ -13887,14 +13809,14 @@
|
|
|
13887
13809
|
}
|
|
13888
13810
|
}
|
|
13889
13811
|
],
|
|
13890
|
-
"description": "
|
|
13812
|
+
"description": "Record a recoverable retry *within* a turn (`turn.retry`, importance `normal`)\n— e.g. one malformed/empty attempt that will be retried, as distinct from the\nfinal attempt that bails out as a `turn.error`. Include `attempt`/`maxAttempts`\nin `detail` so the timeline shows which try this was."
|
|
13891
13813
|
},
|
|
13892
13814
|
{
|
|
13893
13815
|
"kind": "function",
|
|
13894
|
-
"name": "
|
|
13816
|
+
"name": "getMetaEvents",
|
|
13895
13817
|
"return": {
|
|
13896
13818
|
"type": {
|
|
13897
|
-
"text": "
|
|
13819
|
+
"text": "ReadonlyArray<MetaEvent>"
|
|
13898
13820
|
}
|
|
13899
13821
|
},
|
|
13900
13822
|
"parameters": [
|
|
@@ -13903,26 +13825,13 @@
|
|
|
13903
13825
|
"type": {
|
|
13904
13826
|
"text": "string"
|
|
13905
13827
|
}
|
|
13906
|
-
},
|
|
13907
|
-
{
|
|
13908
|
-
"name": "reason",
|
|
13909
|
-
"type": {
|
|
13910
|
-
"text": "TurnFailureReason"
|
|
13911
|
-
}
|
|
13912
|
-
},
|
|
13913
|
-
{
|
|
13914
|
-
"name": "detail",
|
|
13915
|
-
"optional": true,
|
|
13916
|
-
"type": {
|
|
13917
|
-
"text": "Record<string, unknown>"
|
|
13918
|
-
}
|
|
13919
13828
|
}
|
|
13920
13829
|
],
|
|
13921
|
-
"description": "
|
|
13830
|
+
"description": "Returns the meta-event timeline for `key`, or an empty array if none recorded."
|
|
13922
13831
|
},
|
|
13923
13832
|
{
|
|
13924
13833
|
"kind": "function",
|
|
13925
|
-
"name": "
|
|
13834
|
+
"name": "mergeMetaEvents",
|
|
13926
13835
|
"return": {
|
|
13927
13836
|
"type": {
|
|
13928
13837
|
"text": "void"
|
|
@@ -13930,72 +13839,23 @@
|
|
|
13930
13839
|
},
|
|
13931
13840
|
"parameters": [
|
|
13932
13841
|
{
|
|
13933
|
-
"name": "
|
|
13842
|
+
"name": "targetKey",
|
|
13934
13843
|
"type": {
|
|
13935
13844
|
"text": "string"
|
|
13936
13845
|
}
|
|
13937
13846
|
},
|
|
13938
13847
|
{
|
|
13939
|
-
"name": "
|
|
13940
|
-
"type": {
|
|
13941
|
-
"text": "TurnFailureReason"
|
|
13942
|
-
}
|
|
13943
|
-
},
|
|
13944
|
-
{
|
|
13945
|
-
"name": "detail",
|
|
13946
|
-
"optional": true,
|
|
13848
|
+
"name": "events",
|
|
13947
13849
|
"type": {
|
|
13948
|
-
"text": "
|
|
13850
|
+
"text": "readonly MetaEvent[]"
|
|
13949
13851
|
}
|
|
13950
13852
|
}
|
|
13951
13853
|
],
|
|
13952
|
-
"description": "
|
|
13854
|
+
"description": "Merge pre-built meta events into the timeline for `targetKey`, **preserving each\nevent's original `timestamp`** (so it interleaves chronologically on export)\nwhile re-indexing onto the target buffer's monotonic counter. Used to fold a\nsub-agent's harvested events into the parent session — see\n`ChatDriver.invokeSubAgent`. Unlike recordMetaEvent it does not stamp a\nfresh timestamp; the same non-`high` eviction policy is applied once after the\nbatch so the buffer stays bounded."
|
|
13953
13855
|
},
|
|
13954
13856
|
{
|
|
13955
13857
|
"kind": "function",
|
|
13956
|
-
"name": "
|
|
13957
|
-
"return": {
|
|
13958
|
-
"type": {
|
|
13959
|
-
"text": "ReadonlyArray<MetaEvent>"
|
|
13960
|
-
}
|
|
13961
|
-
},
|
|
13962
|
-
"parameters": [
|
|
13963
|
-
{
|
|
13964
|
-
"name": "key",
|
|
13965
|
-
"type": {
|
|
13966
|
-
"text": "string"
|
|
13967
|
-
}
|
|
13968
|
-
}
|
|
13969
|
-
],
|
|
13970
|
-
"description": "Returns the meta-event timeline for `key`, or an empty array if none recorded."
|
|
13971
|
-
},
|
|
13972
|
-
{
|
|
13973
|
-
"kind": "function",
|
|
13974
|
-
"name": "mergeMetaEvents",
|
|
13975
|
-
"return": {
|
|
13976
|
-
"type": {
|
|
13977
|
-
"text": "void"
|
|
13978
|
-
}
|
|
13979
|
-
},
|
|
13980
|
-
"parameters": [
|
|
13981
|
-
{
|
|
13982
|
-
"name": "targetKey",
|
|
13983
|
-
"type": {
|
|
13984
|
-
"text": "string"
|
|
13985
|
-
}
|
|
13986
|
-
},
|
|
13987
|
-
{
|
|
13988
|
-
"name": "events",
|
|
13989
|
-
"type": {
|
|
13990
|
-
"text": "readonly MetaEvent[]"
|
|
13991
|
-
}
|
|
13992
|
-
}
|
|
13993
|
-
],
|
|
13994
|
-
"description": "Merge pre-built meta events into the timeline for `targetKey`, **preserving each\nevent's original `timestamp`** (so it interleaves chronologically on export)\nwhile re-indexing onto the target buffer's monotonic counter. Used to fold a\nsub-agent's harvested events into the parent session — see\n`ChatDriver.invokeSubAgent`. Unlike recordMetaEvent it does not stamp a\nfresh timestamp; the same non-`high` eviction policy is applied once after the\nbatch so the buffer stays bounded."
|
|
13995
|
-
},
|
|
13996
|
-
{
|
|
13997
|
-
"kind": "function",
|
|
13998
|
-
"name": "clearSession",
|
|
13858
|
+
"name": "clearSession",
|
|
13999
13859
|
"return": {
|
|
14000
13860
|
"type": {
|
|
14001
13861
|
"text": "void"
|
|
@@ -14637,236 +14497,553 @@
|
|
|
14637
14497
|
},
|
|
14638
14498
|
"parameters": [
|
|
14639
14499
|
{
|
|
14640
|
-
"name": "key",
|
|
14641
|
-
"type": {
|
|
14642
|
-
"text": "string"
|
|
14643
|
-
}
|
|
14500
|
+
"name": "key",
|
|
14501
|
+
"type": {
|
|
14502
|
+
"text": "string"
|
|
14503
|
+
}
|
|
14504
|
+
}
|
|
14505
|
+
],
|
|
14506
|
+
"description": "Deletes the session store for the given key."
|
|
14507
|
+
}
|
|
14508
|
+
],
|
|
14509
|
+
"exports": [
|
|
14510
|
+
{
|
|
14511
|
+
"kind": "js",
|
|
14512
|
+
"name": "getSessionStore",
|
|
14513
|
+
"declaration": {
|
|
14514
|
+
"name": "getSessionStore",
|
|
14515
|
+
"module": "src/state/session-store.ts"
|
|
14516
|
+
}
|
|
14517
|
+
},
|
|
14518
|
+
{
|
|
14519
|
+
"kind": "js",
|
|
14520
|
+
"name": "hasSessionStore",
|
|
14521
|
+
"declaration": {
|
|
14522
|
+
"name": "hasSessionStore",
|
|
14523
|
+
"module": "src/state/session-store.ts"
|
|
14524
|
+
}
|
|
14525
|
+
},
|
|
14526
|
+
{
|
|
14527
|
+
"kind": "js",
|
|
14528
|
+
"name": "deleteSessionStore",
|
|
14529
|
+
"declaration": {
|
|
14530
|
+
"name": "deleteSessionStore",
|
|
14531
|
+
"module": "src/state/session-store.ts"
|
|
14532
|
+
}
|
|
14533
|
+
},
|
|
14534
|
+
{
|
|
14535
|
+
"kind": "js",
|
|
14536
|
+
"name": "SessionStoreReturn",
|
|
14537
|
+
"declaration": {
|
|
14538
|
+
"name": "SessionStoreReturn",
|
|
14539
|
+
"module": "src/state/session-store.ts"
|
|
14540
|
+
}
|
|
14541
|
+
},
|
|
14542
|
+
{
|
|
14543
|
+
"kind": "js",
|
|
14544
|
+
"name": "AiAssistantSessionState",
|
|
14545
|
+
"declaration": {
|
|
14546
|
+
"name": "AiAssistantSessionState",
|
|
14547
|
+
"module": "src/state/session-store.ts"
|
|
14548
|
+
}
|
|
14549
|
+
}
|
|
14550
|
+
]
|
|
14551
|
+
},
|
|
14552
|
+
{
|
|
14553
|
+
"kind": "javascript-module",
|
|
14554
|
+
"path": "src/state/test-interaction-context.ts",
|
|
14555
|
+
"declarations": [
|
|
14556
|
+
{
|
|
14557
|
+
"kind": "function",
|
|
14558
|
+
"name": "createTestInteractionContext",
|
|
14559
|
+
"return": {
|
|
14560
|
+
"type": {
|
|
14561
|
+
"text": "TestInteractionContext<TController, TResult>"
|
|
14562
|
+
}
|
|
14563
|
+
},
|
|
14564
|
+
"parameters": [
|
|
14565
|
+
{
|
|
14566
|
+
"name": "options",
|
|
14567
|
+
"default": "{}",
|
|
14568
|
+
"type": {
|
|
14569
|
+
"text": "{\n /** Defaults to `'test-interaction'`. */\n readonly interactionId?: string;\n /** The `data` handed to `controller`. */\n readonly data?: unknown;\n /** Build the controller as the platform would, and install it as `context.controller`. */\n readonly controller?: InteractionControllerFactory<TController>;\n /** A checkpoint the platform handed over, as after a reload (`ctx.checkpoint`). */\n readonly checkpoint?: unknown;\n }"
|
|
14570
|
+
}
|
|
14571
|
+
}
|
|
14572
|
+
],
|
|
14573
|
+
"description": "Build a real interaction context for a controller test (GENC-1660), so the test exercises the\nplatform's own context — its `state`, `once`, `notify`, surfaces and their checks — rather than a\nhand-built fake that can drift from it. Nothing renders, nothing is persisted, and no driver is\ninvolved: resolving records the result, and the interaction is disposed as it would be."
|
|
14574
|
+
}
|
|
14575
|
+
],
|
|
14576
|
+
"exports": [
|
|
14577
|
+
{
|
|
14578
|
+
"kind": "js",
|
|
14579
|
+
"name": "createTestInteractionContext",
|
|
14580
|
+
"declaration": {
|
|
14581
|
+
"name": "createTestInteractionContext",
|
|
14582
|
+
"module": "src/state/test-interaction-context.ts"
|
|
14583
|
+
}
|
|
14584
|
+
}
|
|
14585
|
+
]
|
|
14586
|
+
},
|
|
14587
|
+
{
|
|
14588
|
+
"kind": "javascript-module",
|
|
14589
|
+
"path": "src/styles/ai-colours.ts",
|
|
14590
|
+
"declarations": [
|
|
14591
|
+
{
|
|
14592
|
+
"kind": "variable",
|
|
14593
|
+
"name": "AI_COLOUR_AMBER",
|
|
14594
|
+
"type": {
|
|
14595
|
+
"text": "string"
|
|
14596
|
+
},
|
|
14597
|
+
"default": "'#feb60a'",
|
|
14598
|
+
"description": "Shared brand colours used across the AI animation effects\n(halo overlay border/glow and loading dot indicators).\nDefined once here so both stay in sync."
|
|
14599
|
+
},
|
|
14600
|
+
{
|
|
14601
|
+
"kind": "variable",
|
|
14602
|
+
"name": "AI_COLOUR_PINK",
|
|
14603
|
+
"type": {
|
|
14604
|
+
"text": "string"
|
|
14605
|
+
},
|
|
14606
|
+
"default": "'#ff0062'"
|
|
14607
|
+
},
|
|
14608
|
+
{
|
|
14609
|
+
"kind": "variable",
|
|
14610
|
+
"name": "AI_COLOUR_CYAN",
|
|
14611
|
+
"type": {
|
|
14612
|
+
"text": "string"
|
|
14613
|
+
},
|
|
14614
|
+
"default": "'#00dbf9'"
|
|
14615
|
+
},
|
|
14616
|
+
{
|
|
14617
|
+
"kind": "variable",
|
|
14618
|
+
"name": "AI_COLOUR_VIOLET",
|
|
14619
|
+
"type": {
|
|
14620
|
+
"text": "string"
|
|
14621
|
+
},
|
|
14622
|
+
"default": "'#da00f7'"
|
|
14623
|
+
},
|
|
14624
|
+
{
|
|
14625
|
+
"kind": "variable",
|
|
14626
|
+
"name": "PIN_COLOURS",
|
|
14627
|
+
"type": {
|
|
14628
|
+
"text": "[\n AI_COLOUR_AMBER,\n AI_COLOUR_PINK,\n AI_COLOUR_CYAN,\n AI_COLOUR_VIOLET,\n]"
|
|
14629
|
+
},
|
|
14630
|
+
"default": "[\n AI_COLOUR_AMBER,\n AI_COLOUR_PINK,\n AI_COLOUR_CYAN,\n AI_COLOUR_VIOLET,\n]",
|
|
14631
|
+
"description": "Pin tint palette, cycled by an agent's position in the assistant's `agents`\narray. Lives here beside the other brand colours because two components need\nit: the composer's agent button tints its pin with the ACTIVE agent's colour,\nand the picker menu tints every row's dot — and those two have to agree, so\nthey read the same list and index it the same way."
|
|
14632
|
+
},
|
|
14633
|
+
{
|
|
14634
|
+
"kind": "function",
|
|
14635
|
+
"name": "pinColourAt",
|
|
14636
|
+
"return": {
|
|
14637
|
+
"type": {
|
|
14638
|
+
"text": "string | undefined"
|
|
14639
|
+
}
|
|
14640
|
+
},
|
|
14641
|
+
"parameters": [
|
|
14642
|
+
{
|
|
14643
|
+
"name": "index",
|
|
14644
|
+
"type": {
|
|
14645
|
+
"text": "number"
|
|
14646
|
+
}
|
|
14647
|
+
}
|
|
14648
|
+
],
|
|
14649
|
+
"description": "The tint for the agent at `index` in the full agents array, or `undefined`\nwhen the index is out of range (an unknown or stale agent name)."
|
|
14650
|
+
}
|
|
14651
|
+
],
|
|
14652
|
+
"exports": [
|
|
14653
|
+
{
|
|
14654
|
+
"kind": "js",
|
|
14655
|
+
"name": "AI_COLOUR_AMBER",
|
|
14656
|
+
"declaration": {
|
|
14657
|
+
"name": "AI_COLOUR_AMBER",
|
|
14658
|
+
"module": "src/styles/ai-colours.ts"
|
|
14659
|
+
}
|
|
14660
|
+
},
|
|
14661
|
+
{
|
|
14662
|
+
"kind": "js",
|
|
14663
|
+
"name": "AI_COLOUR_PINK",
|
|
14664
|
+
"declaration": {
|
|
14665
|
+
"name": "AI_COLOUR_PINK",
|
|
14666
|
+
"module": "src/styles/ai-colours.ts"
|
|
14667
|
+
}
|
|
14668
|
+
},
|
|
14669
|
+
{
|
|
14670
|
+
"kind": "js",
|
|
14671
|
+
"name": "AI_COLOUR_CYAN",
|
|
14672
|
+
"declaration": {
|
|
14673
|
+
"name": "AI_COLOUR_CYAN",
|
|
14674
|
+
"module": "src/styles/ai-colours.ts"
|
|
14675
|
+
}
|
|
14676
|
+
},
|
|
14677
|
+
{
|
|
14678
|
+
"kind": "js",
|
|
14679
|
+
"name": "AI_COLOUR_VIOLET",
|
|
14680
|
+
"declaration": {
|
|
14681
|
+
"name": "AI_COLOUR_VIOLET",
|
|
14682
|
+
"module": "src/styles/ai-colours.ts"
|
|
14683
|
+
}
|
|
14684
|
+
},
|
|
14685
|
+
{
|
|
14686
|
+
"kind": "js",
|
|
14687
|
+
"name": "PIN_COLOURS",
|
|
14688
|
+
"declaration": {
|
|
14689
|
+
"name": "PIN_COLOURS",
|
|
14690
|
+
"module": "src/styles/ai-colours.ts"
|
|
14691
|
+
}
|
|
14692
|
+
},
|
|
14693
|
+
{
|
|
14694
|
+
"kind": "js",
|
|
14695
|
+
"name": "pinColourAt",
|
|
14696
|
+
"declaration": {
|
|
14697
|
+
"name": "pinColourAt",
|
|
14698
|
+
"module": "src/styles/ai-colours.ts"
|
|
14699
|
+
}
|
|
14700
|
+
}
|
|
14701
|
+
]
|
|
14702
|
+
},
|
|
14703
|
+
{
|
|
14704
|
+
"kind": "javascript-module",
|
|
14705
|
+
"path": "src/styles/menu.ts",
|
|
14706
|
+
"declarations": [],
|
|
14707
|
+
"exports": []
|
|
14708
|
+
},
|
|
14709
|
+
{
|
|
14710
|
+
"kind": "javascript-module",
|
|
14711
|
+
"path": "src/styles/settings-section.ts",
|
|
14712
|
+
"declarations": [
|
|
14713
|
+
{
|
|
14714
|
+
"kind": "variable",
|
|
14715
|
+
"name": "assistantSettingsSectionTitleStyles",
|
|
14716
|
+
"type": {
|
|
14717
|
+
"text": "ElementStyles"
|
|
14718
|
+
},
|
|
14719
|
+
"default": "css`\n .ai-settings-section-title {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--neutral-foreground-hint);\n }\n`",
|
|
14720
|
+
"description": "Heading style for a settings-modal section, published so a host can title its own section.\n\nThe assistant renders no heading for the `settings-app` slot — no text and no icon — because\nonly the host knows what that section is. The consequence is that a host supplying one has to\nreproduce the styling of the built-in headings beside it, and a copied rule drifts the moment\neither side changes. So the declarations live here, are applied by the assistant's own\nheadings, and are exported for the host to apply to its.\n\nCompose it into a component's styles and put `ai-settings-section-title` on the heading:\n\n```ts\nimport { assistantSettingsSectionTitleStyles } from '@genesislcap/ai-assistant';\n\nconst styles = css`\n ${assistantSettingsSectionTitleStyles}\n :host { display: block; }\n`;\n```\n\nCarries no margin on purpose: spacing belongs to the surrounding layout, which differs\nbetween the assistant's own sections and a slotted one, and is the single declaration hosts\nhad to diverge on when they copied this rule."
|
|
14721
|
+
}
|
|
14722
|
+
],
|
|
14723
|
+
"exports": [
|
|
14724
|
+
{
|
|
14725
|
+
"kind": "js",
|
|
14726
|
+
"name": "assistantSettingsSectionTitleStyles",
|
|
14727
|
+
"declaration": {
|
|
14728
|
+
"name": "assistantSettingsSectionTitleStyles",
|
|
14729
|
+
"module": "src/styles/settings-section.ts"
|
|
14730
|
+
}
|
|
14731
|
+
}
|
|
14732
|
+
]
|
|
14733
|
+
},
|
|
14734
|
+
{
|
|
14735
|
+
"kind": "javascript-module",
|
|
14736
|
+
"path": "src/provider/ai-provider-switcher.ts",
|
|
14737
|
+
"declarations": [
|
|
14738
|
+
{
|
|
14739
|
+
"kind": "variable",
|
|
14740
|
+
"name": "AIProviderSwitcher",
|
|
14741
|
+
"description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
|
|
14742
|
+
}
|
|
14743
|
+
],
|
|
14744
|
+
"exports": [
|
|
14745
|
+
{
|
|
14746
|
+
"kind": "js",
|
|
14747
|
+
"name": "AIProviderSwitcher",
|
|
14748
|
+
"declaration": {
|
|
14749
|
+
"name": "AIProviderSwitcher",
|
|
14750
|
+
"module": "src/provider/ai-provider-switcher.ts"
|
|
14751
|
+
}
|
|
14752
|
+
}
|
|
14753
|
+
]
|
|
14754
|
+
},
|
|
14755
|
+
{
|
|
14756
|
+
"kind": "javascript-module",
|
|
14757
|
+
"path": "src/provider/assistant-app-settings.ts",
|
|
14758
|
+
"declarations": [
|
|
14759
|
+
{
|
|
14760
|
+
"kind": "variable",
|
|
14761
|
+
"name": "AssistantAppSettingsProvider",
|
|
14762
|
+
"description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
|
|
14763
|
+
}
|
|
14764
|
+
],
|
|
14765
|
+
"exports": [
|
|
14766
|
+
{
|
|
14767
|
+
"kind": "js",
|
|
14768
|
+
"name": "AssistantAppSettingsProvider",
|
|
14769
|
+
"declaration": {
|
|
14770
|
+
"name": "AssistantAppSettingsProvider",
|
|
14771
|
+
"module": "src/provider/assistant-app-settings.ts"
|
|
14772
|
+
}
|
|
14773
|
+
}
|
|
14774
|
+
]
|
|
14775
|
+
},
|
|
14776
|
+
{
|
|
14777
|
+
"kind": "javascript-module",
|
|
14778
|
+
"path": "src/provider/tiered-provider-switcher.ts",
|
|
14779
|
+
"declarations": [
|
|
14780
|
+
{
|
|
14781
|
+
"kind": "class",
|
|
14782
|
+
"description": "Which cloud vendor backs the tier-shaped provider registry, plus the means to move it at\nruntime (GENC-1610).",
|
|
14783
|
+
"name": "TieredAIProviderSwitcher",
|
|
14784
|
+
"members": [
|
|
14785
|
+
{
|
|
14786
|
+
"kind": "field",
|
|
14787
|
+
"name": "builtVendors",
|
|
14788
|
+
"type": {
|
|
14789
|
+
"text": "readonly AITierVendor[]"
|
|
14790
|
+
},
|
|
14791
|
+
"privacy": "private",
|
|
14792
|
+
"readonly": true,
|
|
14793
|
+
"description": "The vendors it was constructed with: TieredAIProviderSwitcher.setAvailableVendors\nchooses among these and never adds one."
|
|
14794
|
+
},
|
|
14795
|
+
{
|
|
14796
|
+
"kind": "field",
|
|
14797
|
+
"name": "_vendors",
|
|
14798
|
+
"type": {
|
|
14799
|
+
"text": "readonly AITierVendor[]"
|
|
14800
|
+
},
|
|
14801
|
+
"privacy": "private"
|
|
14802
|
+
},
|
|
14803
|
+
{
|
|
14804
|
+
"kind": "field",
|
|
14805
|
+
"name": "options",
|
|
14806
|
+
"type": {
|
|
14807
|
+
"text": "TieredAIProviderSwitcherOptions"
|
|
14808
|
+
},
|
|
14809
|
+
"privacy": "private",
|
|
14810
|
+
"readonly": true,
|
|
14811
|
+
"default": "options"
|
|
14812
|
+
},
|
|
14813
|
+
{
|
|
14814
|
+
"kind": "field",
|
|
14815
|
+
"name": "defaultTier",
|
|
14816
|
+
"type": {
|
|
14817
|
+
"text": "AITierId"
|
|
14818
|
+
},
|
|
14819
|
+
"privacy": "private",
|
|
14820
|
+
"readonly": true
|
|
14821
|
+
},
|
|
14822
|
+
{
|
|
14823
|
+
"kind": "field",
|
|
14824
|
+
"name": "registry",
|
|
14825
|
+
"type": {
|
|
14826
|
+
"text": "MutableAIProviderRegistry"
|
|
14827
|
+
},
|
|
14828
|
+
"privacy": "private",
|
|
14829
|
+
"readonly": true
|
|
14830
|
+
},
|
|
14831
|
+
{
|
|
14832
|
+
"kind": "field",
|
|
14833
|
+
"name": "listeners",
|
|
14834
|
+
"privacy": "private",
|
|
14835
|
+
"readonly": true,
|
|
14836
|
+
"default": "new Set<(vendor: AITierVendor) => void>()"
|
|
14837
|
+
},
|
|
14838
|
+
{
|
|
14839
|
+
"kind": "field",
|
|
14840
|
+
"name": "_vendor",
|
|
14841
|
+
"type": {
|
|
14842
|
+
"text": "AITierVendor"
|
|
14843
|
+
},
|
|
14844
|
+
"privacy": "private"
|
|
14845
|
+
},
|
|
14846
|
+
{
|
|
14847
|
+
"kind": "field",
|
|
14848
|
+
"name": "vendorChoice",
|
|
14849
|
+
"type": {
|
|
14850
|
+
"text": "AIVendorChoice | undefined"
|
|
14851
|
+
},
|
|
14852
|
+
"readonly": true,
|
|
14853
|
+
"description": "Who chooses the vendor, as the options said."
|
|
14854
|
+
},
|
|
14855
|
+
{
|
|
14856
|
+
"kind": "field",
|
|
14857
|
+
"name": "vendor",
|
|
14858
|
+
"type": {
|
|
14859
|
+
"text": "AITierVendor"
|
|
14860
|
+
},
|
|
14861
|
+
"readonly": true
|
|
14862
|
+
},
|
|
14863
|
+
{
|
|
14864
|
+
"kind": "field",
|
|
14865
|
+
"name": "vendors",
|
|
14866
|
+
"type": {
|
|
14867
|
+
"text": "readonly AITierVendor[]"
|
|
14868
|
+
},
|
|
14869
|
+
"description": "The vendors it can switch between now: `vendors` as constructed, unless\nTieredAIProviderSwitcher.setAvailableVendors has narrowed them since.",
|
|
14870
|
+
"readonly": true
|
|
14871
|
+
},
|
|
14872
|
+
{
|
|
14873
|
+
"kind": "method",
|
|
14874
|
+
"name": "setAvailableVendors",
|
|
14875
|
+
"return": {
|
|
14876
|
+
"type": {
|
|
14877
|
+
"text": "void"
|
|
14878
|
+
}
|
|
14879
|
+
},
|
|
14880
|
+
"parameters": [
|
|
14881
|
+
{
|
|
14882
|
+
"name": "vendors",
|
|
14883
|
+
"type": {
|
|
14884
|
+
"text": "readonly string[]"
|
|
14885
|
+
}
|
|
14886
|
+
},
|
|
14887
|
+
{
|
|
14888
|
+
"name": "active",
|
|
14889
|
+
"optional": true,
|
|
14890
|
+
"type": {
|
|
14891
|
+
"text": "string"
|
|
14892
|
+
}
|
|
14893
|
+
}
|
|
14894
|
+
],
|
|
14895
|
+
"description": "Change which vendors are available, within the ones it was constructed with, and optionally\nwhich one is active — in one registry rebuild."
|
|
14896
|
+
},
|
|
14897
|
+
{
|
|
14898
|
+
"kind": "method",
|
|
14899
|
+
"name": "switchTo",
|
|
14900
|
+
"return": {
|
|
14901
|
+
"type": {
|
|
14902
|
+
"text": "void"
|
|
14903
|
+
}
|
|
14904
|
+
},
|
|
14905
|
+
"parameters": [
|
|
14906
|
+
{
|
|
14907
|
+
"name": "vendor",
|
|
14908
|
+
"type": {
|
|
14909
|
+
"text": "string"
|
|
14910
|
+
}
|
|
14911
|
+
}
|
|
14912
|
+
],
|
|
14913
|
+
"description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
|
|
14914
|
+
},
|
|
14915
|
+
{
|
|
14916
|
+
"kind": "method",
|
|
14917
|
+
"name": "adoptPersistedVendor",
|
|
14918
|
+
"return": {
|
|
14919
|
+
"type": {
|
|
14920
|
+
"text": "void"
|
|
14921
|
+
}
|
|
14922
|
+
},
|
|
14923
|
+
"parameters": [
|
|
14924
|
+
{
|
|
14925
|
+
"name": "vendor",
|
|
14926
|
+
"type": {
|
|
14927
|
+
"text": "string"
|
|
14928
|
+
}
|
|
14929
|
+
}
|
|
14930
|
+
],
|
|
14931
|
+
"description": "Adopt a vendor the app read back from its own store — the same registry move as\nTieredAIProviderSwitcher.switchTo, without the `onSwitch` callback, because this\nvalue came FROM the store and writing it back would be a pointless round-trip on load.\n\nExists because registration has to stay synchronous: an element that connects before the\ntoken is registered caches the platform's no-op fallback, so an app cannot await its\nstored preference before constructing this. It boots on `initialVendor` and adopts the\nstored one a moment later, through a registry that is mutable and held by reference."
|
|
14932
|
+
},
|
|
14933
|
+
{
|
|
14934
|
+
"kind": "method",
|
|
14935
|
+
"name": "subscribe",
|
|
14936
|
+
"return": {
|
|
14937
|
+
"type": {
|
|
14938
|
+
"text": "() => void"
|
|
14939
|
+
}
|
|
14940
|
+
},
|
|
14941
|
+
"parameters": [
|
|
14942
|
+
{
|
|
14943
|
+
"name": "listener",
|
|
14944
|
+
"type": {
|
|
14945
|
+
"text": "(vendor: string) => void"
|
|
14946
|
+
}
|
|
14947
|
+
}
|
|
14948
|
+
]
|
|
14949
|
+
},
|
|
14950
|
+
{
|
|
14951
|
+
"kind": "method",
|
|
14952
|
+
"name": "apply",
|
|
14953
|
+
"privacy": "private",
|
|
14954
|
+
"return": {
|
|
14955
|
+
"type": {
|
|
14956
|
+
"text": "void"
|
|
14957
|
+
}
|
|
14958
|
+
},
|
|
14959
|
+
"parameters": [
|
|
14960
|
+
{
|
|
14961
|
+
"name": "vendor",
|
|
14962
|
+
"type": {
|
|
14963
|
+
"text": "AITierVendor"
|
|
14964
|
+
}
|
|
14965
|
+
}
|
|
14966
|
+
],
|
|
14967
|
+
"description": "The registry move both entry points share, and nothing else."
|
|
14968
|
+
},
|
|
14969
|
+
{
|
|
14970
|
+
"kind": "method",
|
|
14971
|
+
"name": "build",
|
|
14972
|
+
"privacy": "private",
|
|
14973
|
+
"return": {
|
|
14974
|
+
"type": {
|
|
14975
|
+
"text": "Record<string, AIProvider>"
|
|
14976
|
+
}
|
|
14977
|
+
},
|
|
14978
|
+
"parameters": [
|
|
14979
|
+
{
|
|
14980
|
+
"name": "vendor",
|
|
14981
|
+
"type": {
|
|
14982
|
+
"text": "AITierVendor"
|
|
14983
|
+
}
|
|
14984
|
+
}
|
|
14985
|
+
]
|
|
14986
|
+
},
|
|
14987
|
+
{
|
|
14988
|
+
"kind": "method",
|
|
14989
|
+
"name": "isKnownVendor",
|
|
14990
|
+
"privacy": "private",
|
|
14991
|
+
"return": {
|
|
14992
|
+
"type": {
|
|
14993
|
+
"text": "vendor is AITierVendor"
|
|
14994
|
+
}
|
|
14995
|
+
},
|
|
14996
|
+
"parameters": [
|
|
14997
|
+
{
|
|
14998
|
+
"name": "vendor",
|
|
14999
|
+
"type": {
|
|
15000
|
+
"text": "string"
|
|
15001
|
+
}
|
|
15002
|
+
}
|
|
15003
|
+
]
|
|
14644
15004
|
}
|
|
14645
|
-
]
|
|
14646
|
-
"description": "Deletes the session store for the given key."
|
|
14647
|
-
}
|
|
14648
|
-
],
|
|
14649
|
-
"exports": [
|
|
14650
|
-
{
|
|
14651
|
-
"kind": "js",
|
|
14652
|
-
"name": "getSessionStore",
|
|
14653
|
-
"declaration": {
|
|
14654
|
-
"name": "getSessionStore",
|
|
14655
|
-
"module": "src/state/session-store.ts"
|
|
14656
|
-
}
|
|
14657
|
-
},
|
|
14658
|
-
{
|
|
14659
|
-
"kind": "js",
|
|
14660
|
-
"name": "hasSessionStore",
|
|
14661
|
-
"declaration": {
|
|
14662
|
-
"name": "hasSessionStore",
|
|
14663
|
-
"module": "src/state/session-store.ts"
|
|
14664
|
-
}
|
|
14665
|
-
},
|
|
14666
|
-
{
|
|
14667
|
-
"kind": "js",
|
|
14668
|
-
"name": "deleteSessionStore",
|
|
14669
|
-
"declaration": {
|
|
14670
|
-
"name": "deleteSessionStore",
|
|
14671
|
-
"module": "src/state/session-store.ts"
|
|
14672
|
-
}
|
|
14673
|
-
},
|
|
14674
|
-
{
|
|
14675
|
-
"kind": "js",
|
|
14676
|
-
"name": "SessionStoreReturn",
|
|
14677
|
-
"declaration": {
|
|
14678
|
-
"name": "SessionStoreReturn",
|
|
14679
|
-
"module": "src/state/session-store.ts"
|
|
14680
|
-
}
|
|
15005
|
+
]
|
|
14681
15006
|
},
|
|
14682
|
-
{
|
|
14683
|
-
"kind": "js",
|
|
14684
|
-
"name": "AiAssistantSessionState",
|
|
14685
|
-
"declaration": {
|
|
14686
|
-
"name": "AiAssistantSessionState",
|
|
14687
|
-
"module": "src/state/session-store.ts"
|
|
14688
|
-
}
|
|
14689
|
-
}
|
|
14690
|
-
]
|
|
14691
|
-
},
|
|
14692
|
-
{
|
|
14693
|
-
"kind": "javascript-module",
|
|
14694
|
-
"path": "src/state/test-interaction-context.ts",
|
|
14695
|
-
"declarations": [
|
|
14696
15007
|
{
|
|
14697
15008
|
"kind": "function",
|
|
14698
|
-
"name": "
|
|
15009
|
+
"name": "registerTieredAIProviders",
|
|
14699
15010
|
"return": {
|
|
14700
15011
|
"type": {
|
|
14701
|
-
"text": "
|
|
15012
|
+
"text": "TieredAIProviderSwitcher"
|
|
14702
15013
|
}
|
|
14703
15014
|
},
|
|
14704
15015
|
"parameters": [
|
|
14705
15016
|
{
|
|
14706
|
-
"name": "
|
|
14707
|
-
"default": "{}",
|
|
15017
|
+
"name": "container",
|
|
14708
15018
|
"type": {
|
|
14709
|
-
"text": "
|
|
15019
|
+
"text": "Container"
|
|
14710
15020
|
}
|
|
14711
|
-
}
|
|
14712
|
-
],
|
|
14713
|
-
"description": "Build a real interaction context for a controller test (GENC-1660), so the test exercises the\nplatform's own context — its `state`, `once`, `notify`, surfaces and their checks — rather than a\nhand-built fake that can drift from it. Nothing renders, nothing is persisted, and no driver is\ninvolved: resolving records the result, and the interaction is disposed as it would be."
|
|
14714
|
-
}
|
|
14715
|
-
],
|
|
14716
|
-
"exports": [
|
|
14717
|
-
{
|
|
14718
|
-
"kind": "js",
|
|
14719
|
-
"name": "createTestInteractionContext",
|
|
14720
|
-
"declaration": {
|
|
14721
|
-
"name": "createTestInteractionContext",
|
|
14722
|
-
"module": "src/state/test-interaction-context.ts"
|
|
14723
|
-
}
|
|
14724
|
-
}
|
|
14725
|
-
]
|
|
14726
|
-
},
|
|
14727
|
-
{
|
|
14728
|
-
"kind": "javascript-module",
|
|
14729
|
-
"path": "src/styles/ai-colours.ts",
|
|
14730
|
-
"declarations": [
|
|
14731
|
-
{
|
|
14732
|
-
"kind": "variable",
|
|
14733
|
-
"name": "AI_COLOUR_AMBER",
|
|
14734
|
-
"type": {
|
|
14735
|
-
"text": "string"
|
|
14736
|
-
},
|
|
14737
|
-
"default": "'#feb60a'",
|
|
14738
|
-
"description": "Shared brand colours used across the AI animation effects\n(halo overlay border/glow and loading dot indicators).\nDefined once here so both stay in sync."
|
|
14739
|
-
},
|
|
14740
|
-
{
|
|
14741
|
-
"kind": "variable",
|
|
14742
|
-
"name": "AI_COLOUR_PINK",
|
|
14743
|
-
"type": {
|
|
14744
|
-
"text": "string"
|
|
14745
|
-
},
|
|
14746
|
-
"default": "'#ff0062'"
|
|
14747
|
-
},
|
|
14748
|
-
{
|
|
14749
|
-
"kind": "variable",
|
|
14750
|
-
"name": "AI_COLOUR_CYAN",
|
|
14751
|
-
"type": {
|
|
14752
|
-
"text": "string"
|
|
14753
|
-
},
|
|
14754
|
-
"default": "'#00dbf9'"
|
|
14755
|
-
},
|
|
14756
|
-
{
|
|
14757
|
-
"kind": "variable",
|
|
14758
|
-
"name": "AI_COLOUR_VIOLET",
|
|
14759
|
-
"type": {
|
|
14760
|
-
"text": "string"
|
|
14761
|
-
},
|
|
14762
|
-
"default": "'#da00f7'"
|
|
14763
|
-
},
|
|
14764
|
-
{
|
|
14765
|
-
"kind": "variable",
|
|
14766
|
-
"name": "PIN_COLOURS",
|
|
14767
|
-
"type": {
|
|
14768
|
-
"text": "[\n AI_COLOUR_AMBER,\n AI_COLOUR_PINK,\n AI_COLOUR_CYAN,\n AI_COLOUR_VIOLET,\n]"
|
|
14769
|
-
},
|
|
14770
|
-
"default": "[\n AI_COLOUR_AMBER,\n AI_COLOUR_PINK,\n AI_COLOUR_CYAN,\n AI_COLOUR_VIOLET,\n]",
|
|
14771
|
-
"description": "Pin tint palette, cycled by an agent's position in the assistant's `agents`\narray. Lives here beside the other brand colours because two components need\nit: the composer's agent button tints its pin with the ACTIVE agent's colour,\nand the picker menu tints every row's dot — and those two have to agree, so\nthey read the same list and index it the same way."
|
|
14772
|
-
},
|
|
14773
|
-
{
|
|
14774
|
-
"kind": "function",
|
|
14775
|
-
"name": "pinColourAt",
|
|
14776
|
-
"return": {
|
|
14777
|
-
"type": {
|
|
14778
|
-
"text": "string | undefined"
|
|
14779
|
-
}
|
|
14780
|
-
},
|
|
14781
|
-
"parameters": [
|
|
15021
|
+
},
|
|
14782
15022
|
{
|
|
14783
|
-
"name": "
|
|
15023
|
+
"name": "options",
|
|
14784
15024
|
"type": {
|
|
14785
|
-
"text": "
|
|
15025
|
+
"text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
|
|
14786
15026
|
}
|
|
14787
15027
|
}
|
|
14788
15028
|
],
|
|
14789
|
-
"description": "
|
|
15029
|
+
"description": "Build a TieredAIProviderSwitcher — which registers the tier-shaped provider\nregistry — and put it on the (AIProviderSwitcher:variable) token. Call once at app\nbootstrap."
|
|
14790
15030
|
}
|
|
14791
15031
|
],
|
|
14792
15032
|
"exports": [
|
|
14793
15033
|
{
|
|
14794
15034
|
"kind": "js",
|
|
14795
|
-
"name": "
|
|
14796
|
-
"declaration": {
|
|
14797
|
-
"name": "AI_COLOUR_AMBER",
|
|
14798
|
-
"module": "src/styles/ai-colours.ts"
|
|
14799
|
-
}
|
|
14800
|
-
},
|
|
14801
|
-
{
|
|
14802
|
-
"kind": "js",
|
|
14803
|
-
"name": "AI_COLOUR_PINK",
|
|
14804
|
-
"declaration": {
|
|
14805
|
-
"name": "AI_COLOUR_PINK",
|
|
14806
|
-
"module": "src/styles/ai-colours.ts"
|
|
14807
|
-
}
|
|
14808
|
-
},
|
|
14809
|
-
{
|
|
14810
|
-
"kind": "js",
|
|
14811
|
-
"name": "AI_COLOUR_CYAN",
|
|
14812
|
-
"declaration": {
|
|
14813
|
-
"name": "AI_COLOUR_CYAN",
|
|
14814
|
-
"module": "src/styles/ai-colours.ts"
|
|
14815
|
-
}
|
|
14816
|
-
},
|
|
14817
|
-
{
|
|
14818
|
-
"kind": "js",
|
|
14819
|
-
"name": "AI_COLOUR_VIOLET",
|
|
14820
|
-
"declaration": {
|
|
14821
|
-
"name": "AI_COLOUR_VIOLET",
|
|
14822
|
-
"module": "src/styles/ai-colours.ts"
|
|
14823
|
-
}
|
|
14824
|
-
},
|
|
14825
|
-
{
|
|
14826
|
-
"kind": "js",
|
|
14827
|
-
"name": "PIN_COLOURS",
|
|
15035
|
+
"name": "TieredAIProviderSwitcher",
|
|
14828
15036
|
"declaration": {
|
|
14829
|
-
"name": "
|
|
14830
|
-
"module": "src/
|
|
15037
|
+
"name": "TieredAIProviderSwitcher",
|
|
15038
|
+
"module": "src/provider/tiered-provider-switcher.ts"
|
|
14831
15039
|
}
|
|
14832
15040
|
},
|
|
14833
15041
|
{
|
|
14834
15042
|
"kind": "js",
|
|
14835
|
-
"name": "
|
|
14836
|
-
"declaration": {
|
|
14837
|
-
"name": "pinColourAt",
|
|
14838
|
-
"module": "src/styles/ai-colours.ts"
|
|
14839
|
-
}
|
|
14840
|
-
}
|
|
14841
|
-
]
|
|
14842
|
-
},
|
|
14843
|
-
{
|
|
14844
|
-
"kind": "javascript-module",
|
|
14845
|
-
"path": "src/styles/menu.ts",
|
|
14846
|
-
"declarations": [],
|
|
14847
|
-
"exports": []
|
|
14848
|
-
},
|
|
14849
|
-
{
|
|
14850
|
-
"kind": "javascript-module",
|
|
14851
|
-
"path": "src/styles/settings-section.ts",
|
|
14852
|
-
"declarations": [
|
|
14853
|
-
{
|
|
14854
|
-
"kind": "variable",
|
|
14855
|
-
"name": "assistantSettingsSectionTitleStyles",
|
|
14856
|
-
"type": {
|
|
14857
|
-
"text": "ElementStyles"
|
|
14858
|
-
},
|
|
14859
|
-
"default": "css`\n .ai-settings-section-title {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--neutral-foreground-hint);\n }\n`",
|
|
14860
|
-
"description": "Heading style for a settings-modal section, published so a host can title its own section.\n\nThe assistant renders no heading for the `settings-app` slot — no text and no icon — because\nonly the host knows what that section is. The consequence is that a host supplying one has to\nreproduce the styling of the built-in headings beside it, and a copied rule drifts the moment\neither side changes. So the declarations live here, are applied by the assistant's own\nheadings, and are exported for the host to apply to its.\n\nCompose it into a component's styles and put `ai-settings-section-title` on the heading:\n\n```ts\nimport { assistantSettingsSectionTitleStyles } from '@genesislcap/ai-assistant';\n\nconst styles = css`\n ${assistantSettingsSectionTitleStyles}\n :host { display: block; }\n`;\n```\n\nCarries no margin on purpose: spacing belongs to the surrounding layout, which differs\nbetween the assistant's own sections and a slotted one, and is the single declaration hosts\nhad to diverge on when they copied this rule."
|
|
14861
|
-
}
|
|
14862
|
-
],
|
|
14863
|
-
"exports": [
|
|
14864
|
-
{
|
|
14865
|
-
"kind": "js",
|
|
14866
|
-
"name": "assistantSettingsSectionTitleStyles",
|
|
15043
|
+
"name": "registerTieredAIProviders",
|
|
14867
15044
|
"declaration": {
|
|
14868
|
-
"name": "
|
|
14869
|
-
"module": "src/
|
|
15045
|
+
"name": "registerTieredAIProviders",
|
|
15046
|
+
"module": "src/provider/tiered-provider-switcher.ts"
|
|
14870
15047
|
}
|
|
14871
15048
|
}
|
|
14872
15049
|
]
|
|
@@ -21163,6 +21340,17 @@
|
|
|
21163
21340
|
"description": "Host override for the budget-wall transcript copy, used verbatim — see\n`ChatDriverConfig.budgetExhaustedMessage`. `undefined` means no override,\nand the bubble is composed per wall by ChatDriver.budgetExhaustedBubble.",
|
|
21164
21341
|
"default": "budgetExhaustedMessage"
|
|
21165
21342
|
},
|
|
21343
|
+
{
|
|
21344
|
+
"kind": "field",
|
|
21345
|
+
"name": "vendorSwitchPlace",
|
|
21346
|
+
"type": {
|
|
21347
|
+
"text": "string"
|
|
21348
|
+
},
|
|
21349
|
+
"privacy": "private",
|
|
21350
|
+
"readonly": true,
|
|
21351
|
+
"description": "See `ChatDriverConfig.vendorSwitchPlace`.",
|
|
21352
|
+
"default": "vendorSwitchPlace"
|
|
21353
|
+
},
|
|
21166
21354
|
{
|
|
21167
21355
|
"kind": "field",
|
|
21168
21356
|
"name": "providerRefusedMessageOverride",
|
|
@@ -27625,7 +27813,7 @@
|
|
|
27625
27813
|
{
|
|
27626
27814
|
"kind": "variable",
|
|
27627
27815
|
"name": "settingsModalStyles",
|
|
27628
|
-
"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);\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 /* A row's own hint, under its description: lined up with it, not indented. */\n .settings-toggle-text .settings-toggle-hint {\n padding-left: 0;\n margin-top: calc(var(--design-unit) * 1px);\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 /*\n * Stacked budget bar (NEW-15): only drawn when the host broke a vendor's spend down.\n * Sized off the design system's progress element rather than a figure of its own, so the\n * segmented row and the plain one line up in the same meter — a vendor with a breakdown\n * and one without sit next to each other.\n *\n * The pieces are tones of ONE accent, not a palette: the assistant is themed by whatever\n * design system hosts it, so inventing chart colours here would collide with every one of\n * them. Tone is positional and carries no meaning on its own, which is why the legend\n * below is part of the drawing rather than an optional extra.\n */\n .settings-budget-stack {\n display: flex;\n overflow: hidden;\n width: 100%;\n\n /* The design system's own progress metrics, so a segmented row and a plain one are the\n same bar at the same height with the same rhythm around them. */\n height: calc(var(--design-unit) * 2px);\n margin: calc(var(--design-unit) * 1px) 0;\n border-radius: calc(var(--design-unit) * 1px);\n background: var(--neutral-fill-rest);\n }\n\n .settings-budget-segment {\n height: 100%;\n\n /* The fill colour the progress element's determinate bar uses, not the button accent. */\n background: var(--accent-foreground-rest);\n\n /*\n * Set per piece by the template. Unfallbacked like every token here: an unset custom\n * property makes the declaration invalid at computed-value time, which lands on opacity's\n * initial value of 1 — the same thing a fallback would say, without a second copy of it.\n */\n opacity: var(--segment-tone);\n }\n\n /*\n * A hairline in the track colour between adjacent pieces, so every boundary is visible even\n * where two pieces share a tone (from the fourth named segment on, the tones bottom out at a\n * floor and repeat). Drawn as a border, not a flex gap: with border-box sizing the hairline comes out of\n * the piece's own width, so the pieces still add up to what the arithmetic gave them.\n */\n .settings-budget-segment + .settings-budget-segment {\n border-left: 1px solid var(--neutral-fill-rest);\n }\n\n .settings-budget-legend {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n margin-top: calc(var(--design-unit) * 1.5px);\n font-size: 11px;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-budget-legend-item {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n }\n\n .settings-budget-swatch {\n width: 8px;\n height: 8px;\n border-radius: 2px;\n background: var(--accent-foreground-rest);\n opacity: var(--segment-tone);\n }\n\n .settings-budget-legend-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 /* The agent-log row's two actions (Download / Send) side by side. */\n .agent-log-actions {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n /*\n * Row + compose box. The row is normally the section's last child (no divider); inside\n * the wrapper it is only the last child while the box is closed, so drop the divider\n * explicitly and let the box supply its own spacing beneath the row.\n */\n .agent-log-block {\n display: flex;\n flex-direction: column;\n }\n\n .agent-log-block .settings-toggle-row {\n border-bottom: none;\n padding-bottom: calc(var(--design-unit) * 1px);\n }\n\n .agent-log-compose {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n margin-top: calc(var(--design-unit) * 2px);\n }\n\n .agent-log-note {\n width: 100%;\n }\n\n .agent-log-note::part(control) {\n width: 100%;\n box-sizing: border-box;\n font-size: 13px;\n line-height: 1.5;\n }\n\n .agent-log-compose-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 3px);\n }\n\n /* Counter / validation / failure line. Hint-coloured until it carries an error. */\n .agent-log-compose-hint {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n min-width: 0;\n }\n\n /*\n * Failure state without leaning on --error-color: rapid's fixed brand red is 3.02:1 on a\n * light surface, under AA for 12px text, and the failure line is the one that most needs\n * reading. The contrast-adaptive foreground plus weight carries it; the text itself also\n * changes, so colour was never the only channel.\n */\n .agent-log-compose-hint.is-error {\n color: var(--neutral-foreground-rest);\n font-weight: 600;\n }\n\n /* Screen-reader-only live region for submission outcomes (same recipe as main.styles). */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /*\n * Inline spinner shown in the agent-log buttons (Download / Send) while the log\n * builds (GENC-1351 §5.8) — the lifetime-stitch path is an async provider\n * round-trip. Sized to the button label and tinted with currentColor so it tracks\n * the button's text colour in every appearance / theme.\n */\n [part='download-button'] .download-spinner,\n [part='submit-log-button'] .download-spinner,\n [part='agent-log-send-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`",
|
|
27816
|
+
"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);\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 /* A row's own hint, under its description: lined up with it, not indented. */\n .settings-toggle-text .settings-toggle-hint {\n padding-left: 0;\n margin-top: calc(var(--design-unit) * 1px);\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 /*\n * Stacked budget bar (NEW-15): only drawn when the host broke a vendor's spend down.\n * Sized off the design system's progress element rather than a figure of its own, so the\n * segmented row and the plain one line up in the same meter — a vendor with a breakdown\n * and one without sit next to each other.\n *\n * The pieces are tones of ONE accent, not a palette: the assistant is themed by whatever\n * design system hosts it, so inventing chart colours here would collide with every one of\n * them. Tone is positional and carries no meaning on its own, which is why the legend\n * below is part of the drawing rather than an optional extra.\n */\n .settings-budget-stack {\n display: flex;\n overflow: hidden;\n width: 100%;\n\n /* The design system's own progress metrics, so a segmented row and a plain one are the\n same bar at the same height with the same rhythm around them. */\n height: calc(var(--design-unit) * 2px);\n margin: calc(var(--design-unit) * 1px) 0;\n border-radius: calc(var(--design-unit) * 1px);\n background: var(--neutral-fill-rest);\n }\n\n .settings-budget-segment {\n height: 100%;\n\n /* The fill colour the progress element's determinate bar uses, not the button accent. */\n background: var(--accent-foreground-rest);\n\n /*\n * Set per piece by the template. Unfallbacked like every token here: an unset custom\n * property makes the declaration invalid at computed-value time, which lands on opacity's\n * initial value of 1 — the same thing a fallback would say, without a second copy of it.\n */\n opacity: var(--segment-tone);\n }\n\n /*\n * A hairline in the track colour between adjacent pieces, so every boundary is visible even\n * where two pieces share a tone (from the fourth named segment on, the tones bottom out at a\n * floor and repeat). Drawn as a border, not a flex gap: with border-box sizing the hairline comes out of\n * the piece's own width, so the pieces still add up to what the arithmetic gave them.\n */\n .settings-budget-segment + .settings-budget-segment {\n border-left: 1px solid var(--neutral-fill-rest);\n }\n\n .settings-budget-legend {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 2px);\n margin-top: calc(var(--design-unit) * 1.5px);\n font-size: 11px;\n color: var(--neutral-foreground-hint);\n }\n\n .settings-budget-legend-item {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n }\n\n .settings-budget-swatch {\n width: 8px;\n height: 8px;\n border-radius: 2px;\n background: var(--accent-foreground-rest);\n opacity: var(--segment-tone);\n }\n\n .settings-budget-legend-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 /* The vendor picker: one card per vendor, a native radio in each. */\n .settings-vendor-picker {\n margin: 0;\n padding: 0;\n border: none;\n min-width: 0;\n }\n\n .settings-vendor-legend {\n padding: 0;\n margin-bottom: calc(var(--design-unit) * 2px);\n font-weight: 600;\n }\n\n .settings-vendor-cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: calc(var(--design-unit) * 2px);\n }\n\n .settings-vendor-card {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 3px);\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 cursor: pointer;\n }\n\n .settings-vendor-card:hover {\n border-color: var(--neutral-stroke-hover);\n }\n\n .settings-vendor-card.is-selected {\n border-color: var(--accent-fill-rest);\n }\n\n .settings-vendor-card:focus-within {\n outline: calc(var(--focus-stroke-width) * 1px) solid var(--focus-stroke-outer);\n outline-offset: 1px;\n }\n\n .settings-vendor-picker:disabled .settings-vendor-card {\n cursor: not-allowed;\n opacity: 0.6;\n }\n\n .settings-vendor-card input {\n margin: 0;\n accent-color: var(--accent-fill-rest);\n }\n\n .settings-vendor-elsewhere {\n margin: 0;\n color: var(--neutral-foreground-hint);\n }\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 /* The agent-log row's two actions (Download / Send) side by side. */\n .agent-log-actions {\n display: flex;\n align-items: center;\n gap: calc(var(--design-unit) * 2px);\n }\n\n /*\n * Row + compose box. The row is normally the section's last child (no divider); inside\n * the wrapper it is only the last child while the box is closed, so drop the divider\n * explicitly and let the box supply its own spacing beneath the row.\n */\n .agent-log-block {\n display: flex;\n flex-direction: column;\n }\n\n .agent-log-block .settings-toggle-row {\n border-bottom: none;\n padding-bottom: calc(var(--design-unit) * 1px);\n }\n\n .agent-log-compose {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 2px);\n margin-top: calc(var(--design-unit) * 2px);\n }\n\n .agent-log-note {\n width: 100%;\n }\n\n .agent-log-note::part(control) {\n width: 100%;\n box-sizing: border-box;\n font-size: 13px;\n line-height: 1.5;\n }\n\n .agent-log-compose-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 3px);\n }\n\n /* Counter / validation / failure line. Hint-coloured until it carries an error. */\n .agent-log-compose-hint {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n min-width: 0;\n }\n\n /*\n * Failure state without leaning on --error-color: rapid's fixed brand red is 3.02:1 on a\n * light surface, under AA for 12px text, and the failure line is the one that most needs\n * reading. The contrast-adaptive foreground plus weight carries it; the text itself also\n * changes, so colour was never the only channel.\n */\n .agent-log-compose-hint.is-error {\n color: var(--neutral-foreground-rest);\n font-weight: 600;\n }\n\n /* Screen-reader-only live region for submission outcomes (same recipe as main.styles). */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /*\n * Inline spinner shown in the agent-log buttons (Download / Send) while the log\n * builds (GENC-1351 §5.8) — the lifetime-stitch path is an async provider\n * round-trip. Sized to the button label and tinted with currentColor so it tracks\n * the button's text colour in every appearance / theme.\n */\n [part='download-button'] .download-spinner,\n [part='submit-log-button'] .download-spinner,\n [part='agent-log-send-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`",
|
|
27629
27817
|
"description": "Styles for the assistant settings modal (tabs, sections, toggles, cost summary)."
|
|
27630
27818
|
}
|
|
27631
27819
|
],
|
|
@@ -27691,6 +27879,11 @@
|
|
|
27691
27879
|
}
|
|
27692
27880
|
]
|
|
27693
27881
|
},
|
|
27882
|
+
{
|
|
27883
|
+
"kind": "variable",
|
|
27884
|
+
"name": "settingsVendorTemplate",
|
|
27885
|
+
"default": "html<FoundationAiAssistant>`\n ${when(\n (x) => x.settingsVendorPickerVisible,\n html<FoundationAiAssistant>`\n <fieldset\n class=\"settings-vendor-picker\"\n part=\"settings-vendor-picker\"\n ?disabled=${(x) => x.settingsVendorPickerDisabled}\n >\n <legend class=\"settings-vendor-legend\">AI vendor</legend>\n <div class=\"settings-vendor-cards\">\n ${repeat(\n (x) => x.settingsVendorOptions,\n html<VendorPickerOption, FoundationAiAssistant>`\n <label\n class=\"settings-vendor-card ${(o) => (o.checked ? 'is-selected' : '')}\"\n part=\"settings-vendor-card\"\n >\n <input\n type=\"radio\"\n name=\"settings-ai-vendor\"\n value=${(o) => o.vendor}\n :checked=${(o) => o.checked}\n @change=${(o, c) => c.parent.selectSettingsVendor(o.vendor)}\n />\n <span class=\"settings-vendor-card-label\">${(o) => o.label}</span>\n </label>\n `,\n )}\n </div>\n </fieldset>\n `,\n )}\n ${when(\n (x) => x.settingsVendorSelectedElsewhere,\n html<FoundationAiAssistant>`\n <p class=\"settings-vendor-elsewhere\" part=\"settings-vendor-elsewhere\">\n ${(x) => vendorElsewhereLine(x.settingsVendorSelectedElsewhere)}\n </p>\n `,\n )}\n`"
|
|
27886
|
+
},
|
|
27694
27887
|
{
|
|
27695
27888
|
"kind": "function",
|
|
27696
27889
|
"name": "SettingsModalTemplate",
|
|
@@ -27727,6 +27920,14 @@
|
|
|
27727
27920
|
"module": "src/components/settings-modal/settings-modal.template.ts"
|
|
27728
27921
|
}
|
|
27729
27922
|
},
|
|
27923
|
+
{
|
|
27924
|
+
"kind": "js",
|
|
27925
|
+
"name": "settingsVendorTemplate",
|
|
27926
|
+
"declaration": {
|
|
27927
|
+
"name": "settingsVendorTemplate",
|
|
27928
|
+
"module": "src/components/settings-modal/settings-modal.template.ts"
|
|
27929
|
+
}
|
|
27930
|
+
},
|
|
27730
27931
|
{
|
|
27731
27932
|
"kind": "js",
|
|
27732
27933
|
"name": "SettingsModalTemplate",
|