@genesislcap/ai-assistant 15.107.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 +69 -18
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +69 -18
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +787 -578
- package/dist/dts/chat-driver-node.d.ts +1 -1
- package/dist/dts/chat-driver-node.d.ts.map +1 -1
- 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/config.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/config.js +1 -1
- package/dist/esm/genesis/consumes.js +1 -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/dist/genesis-consumes.cjs +1 -1
- package/dist/genesis-consumes.cjs.map +2 -2
- package/dist/genesis-consumes.mjs +1 -1
- package/dist/genesis-consumes.mjs.map +2 -2
- package/docs/genesis.md +37 -3
- package/package.json +17 -17
- package/scripts/smoke-genesis-consumes-node.mjs +1 -1
|
@@ -623,6 +623,14 @@
|
|
|
623
623
|
"package": "@genesislcap/foundation-ai"
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
|
+
{
|
|
627
|
+
"kind": "js",
|
|
628
|
+
"name": "OpenAITierConfig",
|
|
629
|
+
"declaration": {
|
|
630
|
+
"name": "OpenAITierConfig",
|
|
631
|
+
"package": "@genesislcap/foundation-ai"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
626
634
|
{
|
|
627
635
|
"kind": "js",
|
|
628
636
|
"name": "AnthropicUsageRecord",
|
|
@@ -846,6 +854,22 @@
|
|
|
846
854
|
"package": "./main/main.template"
|
|
847
855
|
}
|
|
848
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
|
+
},
|
|
849
873
|
{
|
|
850
874
|
"kind": "js",
|
|
851
875
|
"name": "*",
|
|
@@ -7121,6 +7145,18 @@
|
|
|
7121
7145
|
"declarations": [],
|
|
7122
7146
|
"exports": []
|
|
7123
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
|
+
},
|
|
7124
7160
|
{
|
|
7125
7161
|
"kind": "javascript-module",
|
|
7126
7162
|
"path": "src/genesis/write-commit.ts",
|
|
@@ -9256,15 +9292,23 @@
|
|
|
9256
9292
|
"name": "budget",
|
|
9257
9293
|
"privacy": "private",
|
|
9258
9294
|
"readonly": true,
|
|
9259
|
-
"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 })",
|
|
9260
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."
|
|
9261
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
|
+
},
|
|
9262
9306
|
{
|
|
9263
9307
|
"kind": "field",
|
|
9264
9308
|
"name": "settings",
|
|
9265
9309
|
"privacy": "private",
|
|
9266
9310
|
"readonly": true,
|
|
9267
|
-
"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 })",
|
|
9268
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`."
|
|
9269
9313
|
},
|
|
9270
9314
|
{
|
|
@@ -9274,6 +9318,14 @@
|
|
|
9274
9318
|
"text": "AIProviderRegistry"
|
|
9275
9319
|
}
|
|
9276
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
|
+
},
|
|
9277
9329
|
{
|
|
9278
9330
|
"kind": "field",
|
|
9279
9331
|
"name": "appSettingsProvider",
|
|
@@ -11906,6 +11958,52 @@
|
|
|
11906
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.",
|
|
11907
11959
|
"readonly": true
|
|
11908
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
|
+
},
|
|
11909
12007
|
{
|
|
11910
12008
|
"kind": "field",
|
|
11911
12009
|
"name": "settingsContextUsageVisible",
|
|
@@ -13346,6 +13444,40 @@
|
|
|
13346
13444
|
"declarations": [],
|
|
13347
13445
|
"exports": []
|
|
13348
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
|
+
},
|
|
13349
13481
|
{
|
|
13350
13482
|
"kind": "javascript-module",
|
|
13351
13483
|
"path": "src/notifications/agent-notifications.ts",
|
|
@@ -13522,337 +13654,135 @@
|
|
|
13522
13654
|
},
|
|
13523
13655
|
{
|
|
13524
13656
|
"kind": "javascript-module",
|
|
13525
|
-
"path": "src/
|
|
13657
|
+
"path": "src/state/ai-assistant-slice.ts",
|
|
13526
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
|
+
},
|
|
13527
13669
|
{
|
|
13528
13670
|
"kind": "variable",
|
|
13529
|
-
"name": "
|
|
13530
|
-
"
|
|
13671
|
+
"name": "defaultSessionState",
|
|
13672
|
+
"type": {
|
|
13673
|
+
"text": "AiAssistantSessionState"
|
|
13674
|
+
}
|
|
13675
|
+
},
|
|
13676
|
+
{
|
|
13677
|
+
"kind": "variable",
|
|
13678
|
+
"name": "aiAssistantSlice"
|
|
13531
13679
|
}
|
|
13532
13680
|
],
|
|
13533
13681
|
"exports": [
|
|
13534
13682
|
{
|
|
13535
13683
|
"kind": "js",
|
|
13536
|
-
"name": "
|
|
13684
|
+
"name": "createDefaultSessionState",
|
|
13537
13685
|
"declaration": {
|
|
13538
|
-
"name": "
|
|
13539
|
-
"module": "src/
|
|
13686
|
+
"name": "createDefaultSessionState",
|
|
13687
|
+
"module": "src/state/ai-assistant-slice.ts"
|
|
13540
13688
|
}
|
|
13541
|
-
}
|
|
13542
|
-
]
|
|
13543
|
-
},
|
|
13544
|
-
{
|
|
13545
|
-
"kind": "javascript-module",
|
|
13546
|
-
"path": "src/provider/assistant-app-settings.ts",
|
|
13547
|
-
"declarations": [
|
|
13689
|
+
},
|
|
13548
13690
|
{
|
|
13549
|
-
"kind": "
|
|
13550
|
-
"name": "
|
|
13551
|
-
"
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13691
|
+
"kind": "js",
|
|
13692
|
+
"name": "defaultSessionState",
|
|
13693
|
+
"declaration": {
|
|
13694
|
+
"name": "defaultSessionState",
|
|
13695
|
+
"module": "src/state/ai-assistant-slice.ts"
|
|
13696
|
+
}
|
|
13697
|
+
},
|
|
13555
13698
|
{
|
|
13556
13699
|
"kind": "js",
|
|
13557
|
-
"name": "
|
|
13700
|
+
"name": "aiAssistantSlice",
|
|
13558
13701
|
"declaration": {
|
|
13559
|
-
"name": "
|
|
13560
|
-
"module": "src/
|
|
13702
|
+
"name": "aiAssistantSlice",
|
|
13703
|
+
"module": "src/state/ai-assistant-slice.ts"
|
|
13561
13704
|
}
|
|
13562
13705
|
}
|
|
13563
13706
|
]
|
|
13564
13707
|
},
|
|
13565
13708
|
{
|
|
13566
13709
|
"kind": "javascript-module",
|
|
13567
|
-
"path": "src/
|
|
13710
|
+
"path": "src/state/debug-event-log.ts",
|
|
13568
13711
|
"declarations": [
|
|
13569
13712
|
{
|
|
13570
|
-
"kind": "
|
|
13571
|
-
"
|
|
13572
|
-
"
|
|
13573
|
-
|
|
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": [
|
|
13574
13730
|
{
|
|
13575
|
-
"
|
|
13576
|
-
"name": "vendors",
|
|
13731
|
+
"name": "key",
|
|
13577
13732
|
"type": {
|
|
13578
|
-
"text": "
|
|
13579
|
-
}
|
|
13580
|
-
"readonly": true
|
|
13733
|
+
"text": "string"
|
|
13734
|
+
}
|
|
13581
13735
|
},
|
|
13582
13736
|
{
|
|
13583
|
-
"
|
|
13584
|
-
"name": "options",
|
|
13737
|
+
"name": "type",
|
|
13585
13738
|
"type": {
|
|
13586
|
-
"text": "
|
|
13587
|
-
}
|
|
13588
|
-
"privacy": "private",
|
|
13589
|
-
"readonly": true,
|
|
13590
|
-
"default": "options"
|
|
13739
|
+
"text": "MetaEventType"
|
|
13740
|
+
}
|
|
13591
13741
|
},
|
|
13592
13742
|
{
|
|
13593
|
-
"
|
|
13594
|
-
"
|
|
13743
|
+
"name": "detail",
|
|
13744
|
+
"optional": true,
|
|
13595
13745
|
"type": {
|
|
13596
|
-
"text": "
|
|
13597
|
-
}
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
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": [
|
|
13601
13761
|
{
|
|
13602
|
-
"
|
|
13603
|
-
"name": "registry",
|
|
13762
|
+
"name": "key",
|
|
13604
13763
|
"type": {
|
|
13605
|
-
"text": "
|
|
13606
|
-
}
|
|
13607
|
-
"privacy": "private",
|
|
13608
|
-
"readonly": true
|
|
13609
|
-
},
|
|
13610
|
-
{
|
|
13611
|
-
"kind": "field",
|
|
13612
|
-
"name": "listeners",
|
|
13613
|
-
"privacy": "private",
|
|
13614
|
-
"readonly": true,
|
|
13615
|
-
"default": "new Set<(vendor: AITierVendor) => void>()"
|
|
13764
|
+
"text": "string"
|
|
13765
|
+
}
|
|
13616
13766
|
},
|
|
13617
13767
|
{
|
|
13618
|
-
"
|
|
13619
|
-
"name": "_vendor",
|
|
13768
|
+
"name": "reason",
|
|
13620
13769
|
"type": {
|
|
13621
|
-
"text": "
|
|
13622
|
-
}
|
|
13623
|
-
"privacy": "private"
|
|
13770
|
+
"text": "TurnFailureReason"
|
|
13771
|
+
}
|
|
13624
13772
|
},
|
|
13625
13773
|
{
|
|
13626
|
-
"
|
|
13627
|
-
"
|
|
13774
|
+
"name": "detail",
|
|
13775
|
+
"optional": true,
|
|
13628
13776
|
"type": {
|
|
13629
|
-
"text": "
|
|
13630
|
-
},
|
|
13631
|
-
"readonly": true
|
|
13632
|
-
},
|
|
13633
|
-
{
|
|
13634
|
-
"kind": "method",
|
|
13635
|
-
"name": "switchTo",
|
|
13636
|
-
"return": {
|
|
13637
|
-
"type": {
|
|
13638
|
-
"text": "void"
|
|
13639
|
-
}
|
|
13640
|
-
},
|
|
13641
|
-
"parameters": [
|
|
13642
|
-
{
|
|
13643
|
-
"name": "vendor",
|
|
13644
|
-
"type": {
|
|
13645
|
-
"text": "string"
|
|
13646
|
-
}
|
|
13647
|
-
}
|
|
13648
|
-
],
|
|
13649
|
-
"description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
|
|
13650
|
-
},
|
|
13651
|
-
{
|
|
13652
|
-
"kind": "method",
|
|
13653
|
-
"name": "adoptPersistedVendor",
|
|
13654
|
-
"return": {
|
|
13655
|
-
"type": {
|
|
13656
|
-
"text": "void"
|
|
13657
|
-
}
|
|
13658
|
-
},
|
|
13659
|
-
"parameters": [
|
|
13660
|
-
{
|
|
13661
|
-
"name": "vendor",
|
|
13662
|
-
"type": {
|
|
13663
|
-
"text": "string"
|
|
13664
|
-
}
|
|
13665
|
-
}
|
|
13666
|
-
],
|
|
13667
|
-
"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."
|
|
13668
|
-
},
|
|
13669
|
-
{
|
|
13670
|
-
"kind": "method",
|
|
13671
|
-
"name": "subscribe",
|
|
13672
|
-
"return": {
|
|
13673
|
-
"type": {
|
|
13674
|
-
"text": "() => void"
|
|
13675
|
-
}
|
|
13676
|
-
},
|
|
13677
|
-
"parameters": [
|
|
13678
|
-
{
|
|
13679
|
-
"name": "listener",
|
|
13680
|
-
"type": {
|
|
13681
|
-
"text": "(vendor: string) => void"
|
|
13682
|
-
}
|
|
13683
|
-
}
|
|
13684
|
-
]
|
|
13685
|
-
},
|
|
13686
|
-
{
|
|
13687
|
-
"kind": "method",
|
|
13688
|
-
"name": "apply",
|
|
13689
|
-
"privacy": "private",
|
|
13690
|
-
"return": {
|
|
13691
|
-
"type": {
|
|
13692
|
-
"text": "void"
|
|
13693
|
-
}
|
|
13694
|
-
},
|
|
13695
|
-
"parameters": [
|
|
13696
|
-
{
|
|
13697
|
-
"name": "vendor",
|
|
13698
|
-
"type": {
|
|
13699
|
-
"text": "AITierVendor"
|
|
13700
|
-
}
|
|
13701
|
-
}
|
|
13702
|
-
],
|
|
13703
|
-
"description": "The registry move both entry points share, and nothing else."
|
|
13704
|
-
},
|
|
13705
|
-
{
|
|
13706
|
-
"kind": "method",
|
|
13707
|
-
"name": "build",
|
|
13708
|
-
"privacy": "private",
|
|
13709
|
-
"return": {
|
|
13710
|
-
"type": {
|
|
13711
|
-
"text": "Record<string, AIProvider>"
|
|
13712
|
-
}
|
|
13713
|
-
},
|
|
13714
|
-
"parameters": [
|
|
13715
|
-
{
|
|
13716
|
-
"name": "vendor",
|
|
13717
|
-
"type": {
|
|
13718
|
-
"text": "AITierVendor"
|
|
13719
|
-
}
|
|
13720
|
-
}
|
|
13721
|
-
]
|
|
13722
|
-
},
|
|
13723
|
-
{
|
|
13724
|
-
"kind": "method",
|
|
13725
|
-
"name": "isKnownVendor",
|
|
13726
|
-
"privacy": "private",
|
|
13727
|
-
"return": {
|
|
13728
|
-
"type": {
|
|
13729
|
-
"text": "vendor is AITierVendor"
|
|
13730
|
-
}
|
|
13731
|
-
},
|
|
13732
|
-
"parameters": [
|
|
13733
|
-
{
|
|
13734
|
-
"name": "vendor",
|
|
13735
|
-
"type": {
|
|
13736
|
-
"text": "string"
|
|
13737
|
-
}
|
|
13738
|
-
}
|
|
13739
|
-
]
|
|
13740
|
-
}
|
|
13741
|
-
]
|
|
13742
|
-
},
|
|
13743
|
-
{
|
|
13744
|
-
"kind": "function",
|
|
13745
|
-
"name": "registerTieredAIProviders",
|
|
13746
|
-
"return": {
|
|
13747
|
-
"type": {
|
|
13748
|
-
"text": "TieredAIProviderSwitcher"
|
|
13749
|
-
}
|
|
13750
|
-
},
|
|
13751
|
-
"parameters": [
|
|
13752
|
-
{
|
|
13753
|
-
"name": "container",
|
|
13754
|
-
"type": {
|
|
13755
|
-
"text": "Container"
|
|
13756
|
-
}
|
|
13757
|
-
},
|
|
13758
|
-
{
|
|
13759
|
-
"name": "options",
|
|
13760
|
-
"type": {
|
|
13761
|
-
"text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
|
|
13777
|
+
"text": "Record<string, unknown>"
|
|
13762
13778
|
}
|
|
13763
13779
|
}
|
|
13764
13780
|
],
|
|
13765
|
-
"description": "
|
|
13766
|
-
}
|
|
13767
|
-
],
|
|
13768
|
-
"exports": [
|
|
13769
|
-
{
|
|
13770
|
-
"kind": "js",
|
|
13771
|
-
"name": "TieredAIProviderSwitcher",
|
|
13772
|
-
"declaration": {
|
|
13773
|
-
"name": "TieredAIProviderSwitcher",
|
|
13774
|
-
"module": "src/provider/tiered-provider-switcher.ts"
|
|
13775
|
-
}
|
|
13776
|
-
},
|
|
13777
|
-
{
|
|
13778
|
-
"kind": "js",
|
|
13779
|
-
"name": "registerTieredAIProviders",
|
|
13780
|
-
"declaration": {
|
|
13781
|
-
"name": "registerTieredAIProviders",
|
|
13782
|
-
"module": "src/provider/tiered-provider-switcher.ts"
|
|
13783
|
-
}
|
|
13784
|
-
}
|
|
13785
|
-
]
|
|
13786
|
-
},
|
|
13787
|
-
{
|
|
13788
|
-
"kind": "javascript-module",
|
|
13789
|
-
"path": "src/state/ai-assistant-slice.ts",
|
|
13790
|
-
"declarations": [
|
|
13791
|
-
{
|
|
13792
|
-
"kind": "function",
|
|
13793
|
-
"name": "createDefaultSessionState",
|
|
13794
|
-
"return": {
|
|
13795
|
-
"type": {
|
|
13796
|
-
"text": "AiAssistantSessionState"
|
|
13797
|
-
}
|
|
13798
|
-
},
|
|
13799
|
-
"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."
|
|
13800
|
-
},
|
|
13801
|
-
{
|
|
13802
|
-
"kind": "variable",
|
|
13803
|
-
"name": "defaultSessionState",
|
|
13804
|
-
"type": {
|
|
13805
|
-
"text": "AiAssistantSessionState"
|
|
13806
|
-
}
|
|
13807
|
-
},
|
|
13808
|
-
{
|
|
13809
|
-
"kind": "variable",
|
|
13810
|
-
"name": "aiAssistantSlice"
|
|
13811
|
-
}
|
|
13812
|
-
],
|
|
13813
|
-
"exports": [
|
|
13814
|
-
{
|
|
13815
|
-
"kind": "js",
|
|
13816
|
-
"name": "createDefaultSessionState",
|
|
13817
|
-
"declaration": {
|
|
13818
|
-
"name": "createDefaultSessionState",
|
|
13819
|
-
"module": "src/state/ai-assistant-slice.ts"
|
|
13820
|
-
}
|
|
13821
|
-
},
|
|
13822
|
-
{
|
|
13823
|
-
"kind": "js",
|
|
13824
|
-
"name": "defaultSessionState",
|
|
13825
|
-
"declaration": {
|
|
13826
|
-
"name": "defaultSessionState",
|
|
13827
|
-
"module": "src/state/ai-assistant-slice.ts"
|
|
13828
|
-
}
|
|
13829
|
-
},
|
|
13830
|
-
{
|
|
13831
|
-
"kind": "js",
|
|
13832
|
-
"name": "aiAssistantSlice",
|
|
13833
|
-
"declaration": {
|
|
13834
|
-
"name": "aiAssistantSlice",
|
|
13835
|
-
"module": "src/state/ai-assistant-slice.ts"
|
|
13836
|
-
}
|
|
13837
|
-
}
|
|
13838
|
-
]
|
|
13839
|
-
},
|
|
13840
|
-
{
|
|
13841
|
-
"kind": "javascript-module",
|
|
13842
|
-
"path": "src/state/debug-event-log.ts",
|
|
13843
|
-
"declarations": [
|
|
13844
|
-
{
|
|
13845
|
-
"kind": "variable",
|
|
13846
|
-
"name": "META_EVENT_IMPORTANCE",
|
|
13847
|
-
"type": {
|
|
13848
|
-
"text": "Record<MetaEventType, MetaEventImportance>"
|
|
13849
|
-
},
|
|
13850
|
-
"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}",
|
|
13851
|
-
"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`."
|
|
13852
13782
|
},
|
|
13853
13783
|
{
|
|
13854
13784
|
"kind": "function",
|
|
13855
|
-
"name": "
|
|
13785
|
+
"name": "recordTurnRetry",
|
|
13856
13786
|
"return": {
|
|
13857
13787
|
"type": {
|
|
13858
13788
|
"text": "void"
|
|
@@ -13866,9 +13796,9 @@
|
|
|
13866
13796
|
}
|
|
13867
13797
|
},
|
|
13868
13798
|
{
|
|
13869
|
-
"name": "
|
|
13799
|
+
"name": "reason",
|
|
13870
13800
|
"type": {
|
|
13871
|
-
"text": "
|
|
13801
|
+
"text": "TurnFailureReason"
|
|
13872
13802
|
}
|
|
13873
13803
|
},
|
|
13874
13804
|
{
|
|
@@ -13879,14 +13809,14 @@
|
|
|
13879
13809
|
}
|
|
13880
13810
|
}
|
|
13881
13811
|
],
|
|
13882
|
-
"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."
|
|
13883
13813
|
},
|
|
13884
13814
|
{
|
|
13885
13815
|
"kind": "function",
|
|
13886
|
-
"name": "
|
|
13816
|
+
"name": "getMetaEvents",
|
|
13887
13817
|
"return": {
|
|
13888
13818
|
"type": {
|
|
13889
|
-
"text": "
|
|
13819
|
+
"text": "ReadonlyArray<MetaEvent>"
|
|
13890
13820
|
}
|
|
13891
13821
|
},
|
|
13892
13822
|
"parameters": [
|
|
@@ -13895,99 +13825,37 @@
|
|
|
13895
13825
|
"type": {
|
|
13896
13826
|
"text": "string"
|
|
13897
13827
|
}
|
|
13898
|
-
}
|
|
13828
|
+
}
|
|
13829
|
+
],
|
|
13830
|
+
"description": "Returns the meta-event timeline for `key`, or an empty array if none recorded."
|
|
13831
|
+
},
|
|
13832
|
+
{
|
|
13833
|
+
"kind": "function",
|
|
13834
|
+
"name": "mergeMetaEvents",
|
|
13835
|
+
"return": {
|
|
13836
|
+
"type": {
|
|
13837
|
+
"text": "void"
|
|
13838
|
+
}
|
|
13839
|
+
},
|
|
13840
|
+
"parameters": [
|
|
13899
13841
|
{
|
|
13900
|
-
"name": "
|
|
13842
|
+
"name": "targetKey",
|
|
13901
13843
|
"type": {
|
|
13902
|
-
"text": "
|
|
13844
|
+
"text": "string"
|
|
13903
13845
|
}
|
|
13904
13846
|
},
|
|
13905
13847
|
{
|
|
13906
|
-
"name": "
|
|
13907
|
-
"optional": true,
|
|
13848
|
+
"name": "events",
|
|
13908
13849
|
"type": {
|
|
13909
|
-
"text": "
|
|
13850
|
+
"text": "readonly MetaEvent[]"
|
|
13910
13851
|
}
|
|
13911
13852
|
}
|
|
13912
13853
|
],
|
|
13913
|
-
"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."
|
|
13914
13855
|
},
|
|
13915
13856
|
{
|
|
13916
13857
|
"kind": "function",
|
|
13917
|
-
"name": "
|
|
13918
|
-
"return": {
|
|
13919
|
-
"type": {
|
|
13920
|
-
"text": "void"
|
|
13921
|
-
}
|
|
13922
|
-
},
|
|
13923
|
-
"parameters": [
|
|
13924
|
-
{
|
|
13925
|
-
"name": "key",
|
|
13926
|
-
"type": {
|
|
13927
|
-
"text": "string"
|
|
13928
|
-
}
|
|
13929
|
-
},
|
|
13930
|
-
{
|
|
13931
|
-
"name": "reason",
|
|
13932
|
-
"type": {
|
|
13933
|
-
"text": "TurnFailureReason"
|
|
13934
|
-
}
|
|
13935
|
-
},
|
|
13936
|
-
{
|
|
13937
|
-
"name": "detail",
|
|
13938
|
-
"optional": true,
|
|
13939
|
-
"type": {
|
|
13940
|
-
"text": "Record<string, unknown>"
|
|
13941
|
-
}
|
|
13942
|
-
}
|
|
13943
|
-
],
|
|
13944
|
-
"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."
|
|
13945
|
-
},
|
|
13946
|
-
{
|
|
13947
|
-
"kind": "function",
|
|
13948
|
-
"name": "getMetaEvents",
|
|
13949
|
-
"return": {
|
|
13950
|
-
"type": {
|
|
13951
|
-
"text": "ReadonlyArray<MetaEvent>"
|
|
13952
|
-
}
|
|
13953
|
-
},
|
|
13954
|
-
"parameters": [
|
|
13955
|
-
{
|
|
13956
|
-
"name": "key",
|
|
13957
|
-
"type": {
|
|
13958
|
-
"text": "string"
|
|
13959
|
-
}
|
|
13960
|
-
}
|
|
13961
|
-
],
|
|
13962
|
-
"description": "Returns the meta-event timeline for `key`, or an empty array if none recorded."
|
|
13963
|
-
},
|
|
13964
|
-
{
|
|
13965
|
-
"kind": "function",
|
|
13966
|
-
"name": "mergeMetaEvents",
|
|
13967
|
-
"return": {
|
|
13968
|
-
"type": {
|
|
13969
|
-
"text": "void"
|
|
13970
|
-
}
|
|
13971
|
-
},
|
|
13972
|
-
"parameters": [
|
|
13973
|
-
{
|
|
13974
|
-
"name": "targetKey",
|
|
13975
|
-
"type": {
|
|
13976
|
-
"text": "string"
|
|
13977
|
-
}
|
|
13978
|
-
},
|
|
13979
|
-
{
|
|
13980
|
-
"name": "events",
|
|
13981
|
-
"type": {
|
|
13982
|
-
"text": "readonly MetaEvent[]"
|
|
13983
|
-
}
|
|
13984
|
-
}
|
|
13985
|
-
],
|
|
13986
|
-
"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."
|
|
13987
|
-
},
|
|
13988
|
-
{
|
|
13989
|
-
"kind": "function",
|
|
13990
|
-
"name": "clearSession",
|
|
13858
|
+
"name": "clearSession",
|
|
13991
13859
|
"return": {
|
|
13992
13860
|
"type": {
|
|
13993
13861
|
"text": "void"
|
|
@@ -14629,236 +14497,553 @@
|
|
|
14629
14497
|
},
|
|
14630
14498
|
"parameters": [
|
|
14631
14499
|
{
|
|
14632
|
-
"name": "key",
|
|
14633
|
-
"type": {
|
|
14634
|
-
"text": "string"
|
|
14635
|
-
}
|
|
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
|
+
]
|
|
14636
15004
|
}
|
|
14637
|
-
]
|
|
14638
|
-
"description": "Deletes the session store for the given key."
|
|
14639
|
-
}
|
|
14640
|
-
],
|
|
14641
|
-
"exports": [
|
|
14642
|
-
{
|
|
14643
|
-
"kind": "js",
|
|
14644
|
-
"name": "getSessionStore",
|
|
14645
|
-
"declaration": {
|
|
14646
|
-
"name": "getSessionStore",
|
|
14647
|
-
"module": "src/state/session-store.ts"
|
|
14648
|
-
}
|
|
14649
|
-
},
|
|
14650
|
-
{
|
|
14651
|
-
"kind": "js",
|
|
14652
|
-
"name": "hasSessionStore",
|
|
14653
|
-
"declaration": {
|
|
14654
|
-
"name": "hasSessionStore",
|
|
14655
|
-
"module": "src/state/session-store.ts"
|
|
14656
|
-
}
|
|
14657
|
-
},
|
|
14658
|
-
{
|
|
14659
|
-
"kind": "js",
|
|
14660
|
-
"name": "deleteSessionStore",
|
|
14661
|
-
"declaration": {
|
|
14662
|
-
"name": "deleteSessionStore",
|
|
14663
|
-
"module": "src/state/session-store.ts"
|
|
14664
|
-
}
|
|
14665
|
-
},
|
|
14666
|
-
{
|
|
14667
|
-
"kind": "js",
|
|
14668
|
-
"name": "SessionStoreReturn",
|
|
14669
|
-
"declaration": {
|
|
14670
|
-
"name": "SessionStoreReturn",
|
|
14671
|
-
"module": "src/state/session-store.ts"
|
|
14672
|
-
}
|
|
15005
|
+
]
|
|
14673
15006
|
},
|
|
14674
|
-
{
|
|
14675
|
-
"kind": "js",
|
|
14676
|
-
"name": "AiAssistantSessionState",
|
|
14677
|
-
"declaration": {
|
|
14678
|
-
"name": "AiAssistantSessionState",
|
|
14679
|
-
"module": "src/state/session-store.ts"
|
|
14680
|
-
}
|
|
14681
|
-
}
|
|
14682
|
-
]
|
|
14683
|
-
},
|
|
14684
|
-
{
|
|
14685
|
-
"kind": "javascript-module",
|
|
14686
|
-
"path": "src/state/test-interaction-context.ts",
|
|
14687
|
-
"declarations": [
|
|
14688
15007
|
{
|
|
14689
15008
|
"kind": "function",
|
|
14690
|
-
"name": "
|
|
15009
|
+
"name": "registerTieredAIProviders",
|
|
14691
15010
|
"return": {
|
|
14692
15011
|
"type": {
|
|
14693
|
-
"text": "
|
|
15012
|
+
"text": "TieredAIProviderSwitcher"
|
|
14694
15013
|
}
|
|
14695
15014
|
},
|
|
14696
15015
|
"parameters": [
|
|
14697
15016
|
{
|
|
14698
|
-
"name": "
|
|
14699
|
-
"default": "{}",
|
|
15017
|
+
"name": "container",
|
|
14700
15018
|
"type": {
|
|
14701
|
-
"text": "
|
|
15019
|
+
"text": "Container"
|
|
14702
15020
|
}
|
|
14703
|
-
}
|
|
14704
|
-
],
|
|
14705
|
-
"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."
|
|
14706
|
-
}
|
|
14707
|
-
],
|
|
14708
|
-
"exports": [
|
|
14709
|
-
{
|
|
14710
|
-
"kind": "js",
|
|
14711
|
-
"name": "createTestInteractionContext",
|
|
14712
|
-
"declaration": {
|
|
14713
|
-
"name": "createTestInteractionContext",
|
|
14714
|
-
"module": "src/state/test-interaction-context.ts"
|
|
14715
|
-
}
|
|
14716
|
-
}
|
|
14717
|
-
]
|
|
14718
|
-
},
|
|
14719
|
-
{
|
|
14720
|
-
"kind": "javascript-module",
|
|
14721
|
-
"path": "src/styles/ai-colours.ts",
|
|
14722
|
-
"declarations": [
|
|
14723
|
-
{
|
|
14724
|
-
"kind": "variable",
|
|
14725
|
-
"name": "AI_COLOUR_AMBER",
|
|
14726
|
-
"type": {
|
|
14727
|
-
"text": "string"
|
|
14728
|
-
},
|
|
14729
|
-
"default": "'#feb60a'",
|
|
14730
|
-
"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."
|
|
14731
|
-
},
|
|
14732
|
-
{
|
|
14733
|
-
"kind": "variable",
|
|
14734
|
-
"name": "AI_COLOUR_PINK",
|
|
14735
|
-
"type": {
|
|
14736
|
-
"text": "string"
|
|
14737
|
-
},
|
|
14738
|
-
"default": "'#ff0062'"
|
|
14739
|
-
},
|
|
14740
|
-
{
|
|
14741
|
-
"kind": "variable",
|
|
14742
|
-
"name": "AI_COLOUR_CYAN",
|
|
14743
|
-
"type": {
|
|
14744
|
-
"text": "string"
|
|
14745
|
-
},
|
|
14746
|
-
"default": "'#00dbf9'"
|
|
14747
|
-
},
|
|
14748
|
-
{
|
|
14749
|
-
"kind": "variable",
|
|
14750
|
-
"name": "AI_COLOUR_VIOLET",
|
|
14751
|
-
"type": {
|
|
14752
|
-
"text": "string"
|
|
14753
|
-
},
|
|
14754
|
-
"default": "'#da00f7'"
|
|
14755
|
-
},
|
|
14756
|
-
{
|
|
14757
|
-
"kind": "variable",
|
|
14758
|
-
"name": "PIN_COLOURS",
|
|
14759
|
-
"type": {
|
|
14760
|
-
"text": "[\n AI_COLOUR_AMBER,\n AI_COLOUR_PINK,\n AI_COLOUR_CYAN,\n AI_COLOUR_VIOLET,\n]"
|
|
14761
|
-
},
|
|
14762
|
-
"default": "[\n AI_COLOUR_AMBER,\n AI_COLOUR_PINK,\n AI_COLOUR_CYAN,\n AI_COLOUR_VIOLET,\n]",
|
|
14763
|
-
"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."
|
|
14764
|
-
},
|
|
14765
|
-
{
|
|
14766
|
-
"kind": "function",
|
|
14767
|
-
"name": "pinColourAt",
|
|
14768
|
-
"return": {
|
|
14769
|
-
"type": {
|
|
14770
|
-
"text": "string | undefined"
|
|
14771
|
-
}
|
|
14772
|
-
},
|
|
14773
|
-
"parameters": [
|
|
15021
|
+
},
|
|
14774
15022
|
{
|
|
14775
|
-
"name": "
|
|
15023
|
+
"name": "options",
|
|
14776
15024
|
"type": {
|
|
14777
|
-
"text": "
|
|
15025
|
+
"text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
|
|
14778
15026
|
}
|
|
14779
15027
|
}
|
|
14780
15028
|
],
|
|
14781
|
-
"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."
|
|
14782
15030
|
}
|
|
14783
15031
|
],
|
|
14784
15032
|
"exports": [
|
|
14785
15033
|
{
|
|
14786
15034
|
"kind": "js",
|
|
14787
|
-
"name": "
|
|
14788
|
-
"declaration": {
|
|
14789
|
-
"name": "AI_COLOUR_AMBER",
|
|
14790
|
-
"module": "src/styles/ai-colours.ts"
|
|
14791
|
-
}
|
|
14792
|
-
},
|
|
14793
|
-
{
|
|
14794
|
-
"kind": "js",
|
|
14795
|
-
"name": "AI_COLOUR_PINK",
|
|
14796
|
-
"declaration": {
|
|
14797
|
-
"name": "AI_COLOUR_PINK",
|
|
14798
|
-
"module": "src/styles/ai-colours.ts"
|
|
14799
|
-
}
|
|
14800
|
-
},
|
|
14801
|
-
{
|
|
14802
|
-
"kind": "js",
|
|
14803
|
-
"name": "AI_COLOUR_CYAN",
|
|
14804
|
-
"declaration": {
|
|
14805
|
-
"name": "AI_COLOUR_CYAN",
|
|
14806
|
-
"module": "src/styles/ai-colours.ts"
|
|
14807
|
-
}
|
|
14808
|
-
},
|
|
14809
|
-
{
|
|
14810
|
-
"kind": "js",
|
|
14811
|
-
"name": "AI_COLOUR_VIOLET",
|
|
14812
|
-
"declaration": {
|
|
14813
|
-
"name": "AI_COLOUR_VIOLET",
|
|
14814
|
-
"module": "src/styles/ai-colours.ts"
|
|
14815
|
-
}
|
|
14816
|
-
},
|
|
14817
|
-
{
|
|
14818
|
-
"kind": "js",
|
|
14819
|
-
"name": "PIN_COLOURS",
|
|
15035
|
+
"name": "TieredAIProviderSwitcher",
|
|
14820
15036
|
"declaration": {
|
|
14821
|
-
"name": "
|
|
14822
|
-
"module": "src/
|
|
15037
|
+
"name": "TieredAIProviderSwitcher",
|
|
15038
|
+
"module": "src/provider/tiered-provider-switcher.ts"
|
|
14823
15039
|
}
|
|
14824
15040
|
},
|
|
14825
15041
|
{
|
|
14826
15042
|
"kind": "js",
|
|
14827
|
-
"name": "
|
|
14828
|
-
"declaration": {
|
|
14829
|
-
"name": "pinColourAt",
|
|
14830
|
-
"module": "src/styles/ai-colours.ts"
|
|
14831
|
-
}
|
|
14832
|
-
}
|
|
14833
|
-
]
|
|
14834
|
-
},
|
|
14835
|
-
{
|
|
14836
|
-
"kind": "javascript-module",
|
|
14837
|
-
"path": "src/styles/menu.ts",
|
|
14838
|
-
"declarations": [],
|
|
14839
|
-
"exports": []
|
|
14840
|
-
},
|
|
14841
|
-
{
|
|
14842
|
-
"kind": "javascript-module",
|
|
14843
|
-
"path": "src/styles/settings-section.ts",
|
|
14844
|
-
"declarations": [
|
|
14845
|
-
{
|
|
14846
|
-
"kind": "variable",
|
|
14847
|
-
"name": "assistantSettingsSectionTitleStyles",
|
|
14848
|
-
"type": {
|
|
14849
|
-
"text": "ElementStyles"
|
|
14850
|
-
},
|
|
14851
|
-
"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`",
|
|
14852
|
-
"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."
|
|
14853
|
-
}
|
|
14854
|
-
],
|
|
14855
|
-
"exports": [
|
|
14856
|
-
{
|
|
14857
|
-
"kind": "js",
|
|
14858
|
-
"name": "assistantSettingsSectionTitleStyles",
|
|
15043
|
+
"name": "registerTieredAIProviders",
|
|
14859
15044
|
"declaration": {
|
|
14860
|
-
"name": "
|
|
14861
|
-
"module": "src/
|
|
15045
|
+
"name": "registerTieredAIProviders",
|
|
15046
|
+
"module": "src/provider/tiered-provider-switcher.ts"
|
|
14862
15047
|
}
|
|
14863
15048
|
}
|
|
14864
15049
|
]
|
|
@@ -21155,6 +21340,17 @@
|
|
|
21155
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.",
|
|
21156
21341
|
"default": "budgetExhaustedMessage"
|
|
21157
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
|
+
},
|
|
21158
21354
|
{
|
|
21159
21355
|
"kind": "field",
|
|
21160
21356
|
"name": "providerRefusedMessageOverride",
|
|
@@ -27617,7 +27813,7 @@
|
|
|
27617
27813
|
{
|
|
27618
27814
|
"kind": "variable",
|
|
27619
27815
|
"name": "settingsModalStyles",
|
|
27620
|
-
"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`",
|
|
27621
27817
|
"description": "Styles for the assistant settings modal (tabs, sections, toggles, cost summary)."
|
|
27622
27818
|
}
|
|
27623
27819
|
],
|
|
@@ -27683,6 +27879,11 @@
|
|
|
27683
27879
|
}
|
|
27684
27880
|
]
|
|
27685
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
|
+
},
|
|
27686
27887
|
{
|
|
27687
27888
|
"kind": "function",
|
|
27688
27889
|
"name": "SettingsModalTemplate",
|
|
@@ -27719,6 +27920,14 @@
|
|
|
27719
27920
|
"module": "src/components/settings-modal/settings-modal.template.ts"
|
|
27720
27921
|
}
|
|
27721
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
|
+
},
|
|
27722
27931
|
{
|
|
27723
27932
|
"kind": "js",
|
|
27724
27933
|
"name": "SettingsModalTemplate",
|