@genesislcap/ai-assistant 15.76.1-alpha-aff9783af4.0 → 15.78.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 +753 -24
- package/dist/ai-assistant.d.ts +273 -3
- package/dist/chat-driver.cjs +28 -1
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +28 -1
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +900 -266
- package/dist/dts/autopilot/autopilot-driver.d.ts +28 -0
- package/dist/dts/autopilot/autopilot-driver.d.ts.map +1 -1
- package/dist/dts/channel/ai-activity-channel.d.ts +20 -2
- package/dist/dts/channel/ai-activity-channel.d.ts.map +1 -1
- package/dist/dts/components/chat-bubble/chat-bubble.d.ts +2 -0
- package/dist/dts/components/chat-bubble/chat-bubble.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/interaction-controller.d.ts.map +1 -1
- package/dist/dts/components/notification-level/index.d.ts +2 -0
- package/dist/dts/components/notification-level/index.d.ts.map +1 -0
- package/dist/dts/components/notification-level/notification-level.d.ts +51 -0
- package/dist/dts/components/notification-level/notification-level.d.ts.map +1 -0
- package/dist/dts/components/notification-level/notification-level.styles.d.ts +3 -0
- package/dist/dts/components/notification-level/notification-level.styles.d.ts.map +1 -0
- package/dist/dts/components/notification-level/notification-level.template.d.ts +5 -0
- package/dist/dts/components/notification-level/notification-level.template.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +56 -1
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/notifications/agent-notifications.d.ts +139 -0
- package/dist/dts/notifications/agent-notifications.d.ts.map +1 -0
- package/dist/dts/notifications/agent-notifier.d.ts +58 -0
- package/dist/dts/notifications/agent-notifier.d.ts.map +1 -0
- package/dist/dts/notifications/index.d.ts +2 -0
- package/dist/dts/notifications/index.d.ts.map +1 -0
- package/dist/dts/notifications/notification-level-picker.template.d.ts +31 -0
- package/dist/dts/notifications/notification-level-picker.template.d.ts.map +1 -0
- package/dist/dts/notifications/notification-settings.d.ts +42 -0
- package/dist/dts/notifications/notification-settings.d.ts.map +1 -0
- package/dist/dts/react.d.ts +10 -0
- package/dist/dts/state/ai-assistant-slice.d.ts +8 -0
- package/dist/dts/state/ai-assistant-slice.d.ts.map +1 -1
- package/dist/dts/state/interaction-context.d.ts +13 -0
- package/dist/dts/state/interaction-context.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-persistence-provider.d.ts +5 -0
- package/dist/dts/state/persistence/session-persistence-provider.d.ts.map +1 -1
- package/dist/dts/state/session-store.d.ts +1 -0
- package/dist/dts/state/session-store.d.ts.map +1 -1
- package/dist/dts/types/interaction-context.d.ts +23 -0
- package/dist/dts/types/interaction-context.d.ts.map +1 -1
- package/dist/dts/utils/resolve-preference-baseline.d.ts +3 -0
- package/dist/dts/utils/resolve-preference-baseline.d.ts.map +1 -1
- package/dist/esm/autopilot/autopilot-driver.js +66 -3
- package/dist/esm/components/chat-bubble/chat-bubble.js +17 -3
- package/dist/esm/components/chat-driver/interaction-controller.js +5 -0
- package/dist/esm/components/notification-level/index.js +1 -0
- package/dist/esm/components/notification-level/notification-level.js +124 -0
- package/dist/esm/components/notification-level/notification-level.styles.js +20 -0
- package/dist/esm/components/notification-level/notification-level.template.js +11 -0
- package/dist/esm/components/settings-modal/settings-modal.styles.js +6 -0
- package/dist/esm/components/settings-modal/settings-modal.template.js +10 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/main/main.js +159 -12
- package/dist/esm/notifications/agent-notifications.js +172 -0
- package/dist/esm/notifications/agent-notifier.js +86 -0
- package/dist/esm/notifications/index.js +1 -0
- package/dist/esm/notifications/notification-level-picker.template.js +49 -0
- package/dist/esm/notifications/notification-settings.js +42 -0
- package/dist/esm/state/ai-assistant-slice.js +5 -0
- package/dist/esm/state/interaction-context.js +27 -0
- package/dist/esm/utils/resolve-preference-baseline.js +9 -0
- package/dist/react.cjs +7 -0
- package/dist/react.mjs +6 -0
- package/docs/notifications.md +169 -0
- package/package.json +17 -17
|
@@ -798,6 +798,14 @@
|
|
|
798
798
|
"package": "./components/popout-manager"
|
|
799
799
|
}
|
|
800
800
|
},
|
|
801
|
+
{
|
|
802
|
+
"kind": "js",
|
|
803
|
+
"name": "*",
|
|
804
|
+
"declaration": {
|
|
805
|
+
"name": "*",
|
|
806
|
+
"package": "./components/notification-level"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
801
809
|
{
|
|
802
810
|
"kind": "js",
|
|
803
811
|
"name": "*",
|
|
@@ -814,6 +822,14 @@
|
|
|
814
822
|
"package": "./channel/ai-activity-bus"
|
|
815
823
|
}
|
|
816
824
|
},
|
|
825
|
+
{
|
|
826
|
+
"kind": "js",
|
|
827
|
+
"name": "*",
|
|
828
|
+
"declaration": {
|
|
829
|
+
"name": "*",
|
|
830
|
+
"package": "./notifications"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
817
833
|
{
|
|
818
834
|
"kind": "js",
|
|
819
835
|
"name": "*",
|
|
@@ -1365,6 +1381,15 @@
|
|
|
1365
1381
|
"privacy": "private",
|
|
1366
1382
|
"readonly": true
|
|
1367
1383
|
},
|
|
1384
|
+
{
|
|
1385
|
+
"kind": "field",
|
|
1386
|
+
"name": "activityBus",
|
|
1387
|
+
"type": {
|
|
1388
|
+
"text": "ActivityBus"
|
|
1389
|
+
},
|
|
1390
|
+
"privacy": "private",
|
|
1391
|
+
"readonly": true
|
|
1392
|
+
},
|
|
1368
1393
|
{
|
|
1369
1394
|
"kind": "field",
|
|
1370
1395
|
"name": "listeners",
|
|
@@ -1501,6 +1526,25 @@
|
|
|
1501
1526
|
"default": "0",
|
|
1502
1527
|
"description": "Written questions being answered right now; see `working`."
|
|
1503
1528
|
},
|
|
1529
|
+
{
|
|
1530
|
+
"kind": "field",
|
|
1531
|
+
"name": "ranSinceStop",
|
|
1532
|
+
"type": {
|
|
1533
|
+
"text": "boolean"
|
|
1534
|
+
},
|
|
1535
|
+
"privacy": "private",
|
|
1536
|
+
"default": "false",
|
|
1537
|
+
"description": "Whether the autopilot has been running, and working, since it last stopped or was paused: so\ngoing idle now is a stop to report. Outlives its flow ending, so a turn still running then is\nwaited out. See `watchForStop`."
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"kind": "field",
|
|
1541
|
+
"name": "stopCheck",
|
|
1542
|
+
"type": {
|
|
1543
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
1544
|
+
},
|
|
1545
|
+
"privacy": "private",
|
|
1546
|
+
"description": "The check that confirms the autopilot stopped, once it looked like it had."
|
|
1547
|
+
},
|
|
1504
1548
|
{
|
|
1505
1549
|
"kind": "field",
|
|
1506
1550
|
"name": "state",
|
|
@@ -2304,6 +2348,43 @@
|
|
|
2304
2348
|
}
|
|
2305
2349
|
]
|
|
2306
2350
|
},
|
|
2351
|
+
{
|
|
2352
|
+
"kind": "method",
|
|
2353
|
+
"name": "attention",
|
|
2354
|
+
"privacy": "private",
|
|
2355
|
+
"return": {
|
|
2356
|
+
"type": {
|
|
2357
|
+
"text": "void"
|
|
2358
|
+
}
|
|
2359
|
+
},
|
|
2360
|
+
"parameters": [
|
|
2361
|
+
{
|
|
2362
|
+
"name": "kind",
|
|
2363
|
+
"type": {
|
|
2364
|
+
"text": "AgentAttentionKind"
|
|
2365
|
+
}
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"name": "interactionId",
|
|
2369
|
+
"optional": true,
|
|
2370
|
+
"type": {
|
|
2371
|
+
"text": "string"
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
],
|
|
2375
|
+
"description": "Report that something needs the person, for the assistant to notify them (GENC-1676)."
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"kind": "method",
|
|
2379
|
+
"name": "watchForStop",
|
|
2380
|
+
"privacy": "private",
|
|
2381
|
+
"return": {
|
|
2382
|
+
"type": {
|
|
2383
|
+
"text": "void"
|
|
2384
|
+
}
|
|
2385
|
+
},
|
|
2386
|
+
"description": "Report the autopilot stopping work on its own (GENC-1676): after running and working, nothing\nis happening and nothing waits on the person — the turn ended with nothing for it to answer,\nhit a wall such as the budget, or its flow ended. A flow that ends mid-turn is reported once\nthe turn ends, not while the assistant is still writing. A pause by the person is not a stop,\nand a hand-back reports itself.\n\nConfirmed a task later, because one state change can briefly look like a stop on the way to\nsomething else (a turn ending just before the next starts)."
|
|
2387
|
+
},
|
|
2307
2388
|
{
|
|
2308
2389
|
"kind": "method",
|
|
2309
2390
|
"name": "notify",
|
|
@@ -4076,237 +4157,6 @@
|
|
|
4076
4157
|
}
|
|
4077
4158
|
]
|
|
4078
4159
|
},
|
|
4079
|
-
{
|
|
4080
|
-
"kind": "javascript-module",
|
|
4081
|
-
"path": "src/config/config.ts",
|
|
4082
|
-
"declarations": [
|
|
4083
|
-
{
|
|
4084
|
-
"kind": "function",
|
|
4085
|
-
"name": "defineAgent",
|
|
4086
|
-
"description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
|
|
4087
|
-
}
|
|
4088
|
-
],
|
|
4089
|
-
"exports": [
|
|
4090
|
-
{
|
|
4091
|
-
"kind": "js",
|
|
4092
|
-
"name": "CachePolicy",
|
|
4093
|
-
"declaration": {
|
|
4094
|
-
"name": "CachePolicy",
|
|
4095
|
-
"module": "src/config/config.ts"
|
|
4096
|
-
}
|
|
4097
|
-
},
|
|
4098
|
-
{
|
|
4099
|
-
"kind": "js",
|
|
4100
|
-
"name": "ChatFallback",
|
|
4101
|
-
"declaration": {
|
|
4102
|
-
"name": "ChatFallback",
|
|
4103
|
-
"module": "src/config/config.ts"
|
|
4104
|
-
}
|
|
4105
|
-
},
|
|
4106
|
-
{
|
|
4107
|
-
"kind": "js",
|
|
4108
|
-
"name": "ChatInputDuringExecutionMode",
|
|
4109
|
-
"declaration": {
|
|
4110
|
-
"name": "ChatInputDuringExecutionMode",
|
|
4111
|
-
"module": "src/config/config.ts"
|
|
4112
|
-
}
|
|
4113
|
-
},
|
|
4114
|
-
{
|
|
4115
|
-
"kind": "js",
|
|
4116
|
-
"name": "ChatThinkingPolicy",
|
|
4117
|
-
"declaration": {
|
|
4118
|
-
"name": "ChatThinkingPolicy",
|
|
4119
|
-
"module": "src/config/config.ts"
|
|
4120
|
-
}
|
|
4121
|
-
},
|
|
4122
|
-
{
|
|
4123
|
-
"kind": "js",
|
|
4124
|
-
"name": "ChatToolChoice",
|
|
4125
|
-
"declaration": {
|
|
4126
|
-
"name": "ChatToolChoice",
|
|
4127
|
-
"module": "src/config/config.ts"
|
|
4128
|
-
}
|
|
4129
|
-
},
|
|
4130
|
-
{
|
|
4131
|
-
"kind": "js",
|
|
4132
|
-
"name": "defineAgent",
|
|
4133
|
-
"declaration": {
|
|
4134
|
-
"name": "defineAgent",
|
|
4135
|
-
"module": "src/config/config.ts"
|
|
4136
|
-
}
|
|
4137
|
-
}
|
|
4138
|
-
]
|
|
4139
|
-
},
|
|
4140
|
-
{
|
|
4141
|
-
"kind": "javascript-module",
|
|
4142
|
-
"path": "src/config/define-stateful-agent.ts",
|
|
4143
|
-
"declarations": [
|
|
4144
|
-
{
|
|
4145
|
-
"kind": "function",
|
|
4146
|
-
"name": "restoreMachine",
|
|
4147
|
-
"return": {
|
|
4148
|
-
"type": {
|
|
4149
|
-
"text": "void"
|
|
4150
|
-
}
|
|
4151
|
-
},
|
|
4152
|
-
"parameters": [
|
|
4153
|
-
{
|
|
4154
|
-
"name": "machine",
|
|
4155
|
-
"type": {
|
|
4156
|
-
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
4157
|
-
},
|
|
4158
|
-
"description": "the machine to restore (already constructed/started)."
|
|
4159
|
-
},
|
|
4160
|
-
{
|
|
4161
|
-
"name": "restored",
|
|
4162
|
-
"type": {
|
|
4163
|
-
"text": "unknown"
|
|
4164
|
-
},
|
|
4165
|
-
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
4166
|
-
},
|
|
4167
|
-
{
|
|
4168
|
-
"name": "key",
|
|
4169
|
-
"default": "'machine'",
|
|
4170
|
-
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
4171
|
-
}
|
|
4172
|
-
],
|
|
4173
|
-
"description": "Restore a foundation-state-machine instance from a snapshot produced by the\ndefault serializer (or `machine.getPersistedSnapshot()`). Call inside a\nstateful agent's `init` to resume the machine in its exact prior place:\n\n```ts\ninit: ({ restored }) => {\n const machine = new MyMachine();\n restoreMachine(machine, restored); // resume, or no-op on a fresh start\n return { machine };\n}\n```\n\nNo-ops when there is nothing to restore (a fresh session), leaving the\nfreshly-constructed machine in its initial state."
|
|
4174
|
-
},
|
|
4175
|
-
{
|
|
4176
|
-
"kind": "function",
|
|
4177
|
-
"name": "defineStatefulAgent",
|
|
4178
|
-
"return": {
|
|
4179
|
-
"type": {
|
|
4180
|
-
"text": "AgentConfig"
|
|
4181
|
-
}
|
|
4182
|
-
},
|
|
4183
|
-
"parameters": [
|
|
4184
|
-
{
|
|
4185
|
-
"name": "opts",
|
|
4186
|
-
"type": {
|
|
4187
|
-
"text": "StatefulAgentInit<S>"
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
|
-
],
|
|
4191
|
-
"description": "Build an `AgentConfig` whose `systemPrompt`, `toolDefinitions`, and tool\nhandlers all close over a long-lived state object created on activation.\n\nThe framework wires the lifecycle: `init` on `onActivate`, `dispose` on\n`onDeactivate`. State is held inside the helper's closure — never exposed on\nthe resulting `AgentConfig` — so the redux serializer doesn't see it."
|
|
4192
|
-
},
|
|
4193
|
-
{
|
|
4194
|
-
"kind": "function",
|
|
4195
|
-
"name": "defineAutopilot",
|
|
4196
|
-
"return": {
|
|
4197
|
-
"type": {
|
|
4198
|
-
"text": "AutopilotConfig<S>"
|
|
4199
|
-
}
|
|
4200
|
-
},
|
|
4201
|
-
"parameters": [
|
|
4202
|
-
{
|
|
4203
|
-
"name": "config",
|
|
4204
|
-
"type": {
|
|
4205
|
-
"text": "AutopilotConfig<S>"
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
],
|
|
4209
|
-
"description": "Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function\nthat exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s\n`autopilot` option."
|
|
4210
|
-
}
|
|
4211
|
-
],
|
|
4212
|
-
"exports": [
|
|
4213
|
-
{
|
|
4214
|
-
"kind": "js",
|
|
4215
|
-
"name": "restoreMachine",
|
|
4216
|
-
"declaration": {
|
|
4217
|
-
"name": "restoreMachine",
|
|
4218
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
4219
|
-
}
|
|
4220
|
-
},
|
|
4221
|
-
{
|
|
4222
|
-
"kind": "js",
|
|
4223
|
-
"name": "defineStatefulAgent",
|
|
4224
|
-
"declaration": {
|
|
4225
|
-
"name": "defineStatefulAgent",
|
|
4226
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
4227
|
-
}
|
|
4228
|
-
},
|
|
4229
|
-
{
|
|
4230
|
-
"kind": "js",
|
|
4231
|
-
"name": "defineAutopilot",
|
|
4232
|
-
"declaration": {
|
|
4233
|
-
"name": "defineAutopilot",
|
|
4234
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
4235
|
-
}
|
|
4236
|
-
}
|
|
4237
|
-
]
|
|
4238
|
-
},
|
|
4239
|
-
{
|
|
4240
|
-
"kind": "javascript-module",
|
|
4241
|
-
"path": "src/config/fallback-agents.ts",
|
|
4242
|
-
"declarations": [
|
|
4243
|
-
{
|
|
4244
|
-
"kind": "variable",
|
|
4245
|
-
"name": "friendlyFallbackAgent",
|
|
4246
|
-
"type": {
|
|
4247
|
-
"text": "FallbackAgentConfig"
|
|
4248
|
-
},
|
|
4249
|
-
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a warm, friendly assistant. For general conversation like \"Hi\" or \"How are you\", you can have a friendly chat. For anything more complex, you cannot directly help, but you can explain what specialists are available. The available specialists are:\\n\\n{{agents}}\\n\\nPolitely let the user know what you can help with and invite them to rephrase their request if it is outside your scope.`,\n}",
|
|
4250
|
-
"description": "A warm, conversational fallback agent. Acknowledges it can't help directly,\nexplains what the available specialists can do, and invites the user to retry.\n\nThe system prompt is generated at runtime by `OrchestratingDriver` from the\nspecialist list — no manual authoring required."
|
|
4251
|
-
},
|
|
4252
|
-
{
|
|
4253
|
-
"kind": "variable",
|
|
4254
|
-
"name": "strictFallbackAgent",
|
|
4255
|
-
"type": {
|
|
4256
|
-
"text": "FallbackAgentConfig"
|
|
4257
|
-
},
|
|
4258
|
-
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. The available specialists are: {{agents}}.\n\n{{unroutable}}\n\nAnswer in a single short sentence. Do not elaborate.`,\n}",
|
|
4259
|
-
"description": "A brief, professional fallback agent. States what is available without\nelaboration. The `{{agents}}` placeholder is replaced at runtime by\n`OrchestratingDriver` with the generated specialist list.\n\nThe `{{unroutable}}` placeholder positions `UNROUTABLE_INSTRUCTION` — the framework's\ninstruction for a substantive request no specialist covers, which is otherwise APPENDED to a\nstring-form prompt. Positioned rather than appended for one reason: this preset's whole point is\nbrevity, and appended text would be the last thing the model reads. Putting the block above the\nbrevity rule leaves \"a single short sentence\" with the recency, so the two compose instead of\ncompeting. A prompt whose tone rules matter should do the same."
|
|
4260
|
-
}
|
|
4261
|
-
],
|
|
4262
|
-
"exports": [
|
|
4263
|
-
{
|
|
4264
|
-
"kind": "js",
|
|
4265
|
-
"name": "friendlyFallbackAgent",
|
|
4266
|
-
"declaration": {
|
|
4267
|
-
"name": "friendlyFallbackAgent",
|
|
4268
|
-
"module": "src/config/fallback-agents.ts"
|
|
4269
|
-
}
|
|
4270
|
-
},
|
|
4271
|
-
{
|
|
4272
|
-
"kind": "js",
|
|
4273
|
-
"name": "strictFallbackAgent",
|
|
4274
|
-
"declaration": {
|
|
4275
|
-
"name": "strictFallbackAgent",
|
|
4276
|
-
"module": "src/config/fallback-agents.ts"
|
|
4277
|
-
}
|
|
4278
|
-
}
|
|
4279
|
-
]
|
|
4280
|
-
},
|
|
4281
|
-
{
|
|
4282
|
-
"kind": "javascript-module",
|
|
4283
|
-
"path": "src/config/index.ts",
|
|
4284
|
-
"declarations": [],
|
|
4285
|
-
"exports": [
|
|
4286
|
-
{
|
|
4287
|
-
"kind": "js",
|
|
4288
|
-
"name": "*",
|
|
4289
|
-
"declaration": {
|
|
4290
|
-
"name": "*",
|
|
4291
|
-
"package": "./config"
|
|
4292
|
-
}
|
|
4293
|
-
},
|
|
4294
|
-
{
|
|
4295
|
-
"kind": "js",
|
|
4296
|
-
"name": "*",
|
|
4297
|
-
"declaration": {
|
|
4298
|
-
"name": "*",
|
|
4299
|
-
"package": "./fallback-agents"
|
|
4300
|
-
}
|
|
4301
|
-
}
|
|
4302
|
-
]
|
|
4303
|
-
},
|
|
4304
|
-
{
|
|
4305
|
-
"kind": "javascript-module",
|
|
4306
|
-
"path": "src/config/validate-providers.ts",
|
|
4307
|
-
"declarations": [],
|
|
4308
|
-
"exports": []
|
|
4309
|
-
},
|
|
4310
4160
|
{
|
|
4311
4161
|
"kind": "javascript-module",
|
|
4312
4162
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -4811,26 +4661,257 @@
|
|
|
4811
4661
|
"tagName": "ai-waves-indicator",
|
|
4812
4662
|
"customElement": true
|
|
4813
4663
|
}
|
|
4814
|
-
],
|
|
4664
|
+
],
|
|
4665
|
+
"exports": [
|
|
4666
|
+
{
|
|
4667
|
+
"kind": "js",
|
|
4668
|
+
"name": "AiWavesIndicator",
|
|
4669
|
+
"declaration": {
|
|
4670
|
+
"name": "AiWavesIndicator",
|
|
4671
|
+
"module": "src/components/waves-indicator.ts"
|
|
4672
|
+
}
|
|
4673
|
+
},
|
|
4674
|
+
{
|
|
4675
|
+
"kind": "custom-element-definition",
|
|
4676
|
+
"name": "ai-waves-indicator",
|
|
4677
|
+
"declaration": {
|
|
4678
|
+
"name": "AiWavesIndicator",
|
|
4679
|
+
"module": "src/components/waves-indicator.ts"
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
]
|
|
4683
|
+
},
|
|
4684
|
+
{
|
|
4685
|
+
"kind": "javascript-module",
|
|
4686
|
+
"path": "src/config/config.ts",
|
|
4687
|
+
"declarations": [
|
|
4688
|
+
{
|
|
4689
|
+
"kind": "function",
|
|
4690
|
+
"name": "defineAgent",
|
|
4691
|
+
"description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
|
|
4692
|
+
}
|
|
4693
|
+
],
|
|
4694
|
+
"exports": [
|
|
4695
|
+
{
|
|
4696
|
+
"kind": "js",
|
|
4697
|
+
"name": "CachePolicy",
|
|
4698
|
+
"declaration": {
|
|
4699
|
+
"name": "CachePolicy",
|
|
4700
|
+
"module": "src/config/config.ts"
|
|
4701
|
+
}
|
|
4702
|
+
},
|
|
4703
|
+
{
|
|
4704
|
+
"kind": "js",
|
|
4705
|
+
"name": "ChatFallback",
|
|
4706
|
+
"declaration": {
|
|
4707
|
+
"name": "ChatFallback",
|
|
4708
|
+
"module": "src/config/config.ts"
|
|
4709
|
+
}
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
"kind": "js",
|
|
4713
|
+
"name": "ChatInputDuringExecutionMode",
|
|
4714
|
+
"declaration": {
|
|
4715
|
+
"name": "ChatInputDuringExecutionMode",
|
|
4716
|
+
"module": "src/config/config.ts"
|
|
4717
|
+
}
|
|
4718
|
+
},
|
|
4719
|
+
{
|
|
4720
|
+
"kind": "js",
|
|
4721
|
+
"name": "ChatThinkingPolicy",
|
|
4722
|
+
"declaration": {
|
|
4723
|
+
"name": "ChatThinkingPolicy",
|
|
4724
|
+
"module": "src/config/config.ts"
|
|
4725
|
+
}
|
|
4726
|
+
},
|
|
4727
|
+
{
|
|
4728
|
+
"kind": "js",
|
|
4729
|
+
"name": "ChatToolChoice",
|
|
4730
|
+
"declaration": {
|
|
4731
|
+
"name": "ChatToolChoice",
|
|
4732
|
+
"module": "src/config/config.ts"
|
|
4733
|
+
}
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"kind": "js",
|
|
4737
|
+
"name": "defineAgent",
|
|
4738
|
+
"declaration": {
|
|
4739
|
+
"name": "defineAgent",
|
|
4740
|
+
"module": "src/config/config.ts"
|
|
4741
|
+
}
|
|
4742
|
+
}
|
|
4743
|
+
]
|
|
4744
|
+
},
|
|
4745
|
+
{
|
|
4746
|
+
"kind": "javascript-module",
|
|
4747
|
+
"path": "src/config/define-stateful-agent.ts",
|
|
4748
|
+
"declarations": [
|
|
4749
|
+
{
|
|
4750
|
+
"kind": "function",
|
|
4751
|
+
"name": "restoreMachine",
|
|
4752
|
+
"return": {
|
|
4753
|
+
"type": {
|
|
4754
|
+
"text": "void"
|
|
4755
|
+
}
|
|
4756
|
+
},
|
|
4757
|
+
"parameters": [
|
|
4758
|
+
{
|
|
4759
|
+
"name": "machine",
|
|
4760
|
+
"type": {
|
|
4761
|
+
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
4762
|
+
},
|
|
4763
|
+
"description": "the machine to restore (already constructed/started)."
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
"name": "restored",
|
|
4767
|
+
"type": {
|
|
4768
|
+
"text": "unknown"
|
|
4769
|
+
},
|
|
4770
|
+
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
4771
|
+
},
|
|
4772
|
+
{
|
|
4773
|
+
"name": "key",
|
|
4774
|
+
"default": "'machine'",
|
|
4775
|
+
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
4776
|
+
}
|
|
4777
|
+
],
|
|
4778
|
+
"description": "Restore a foundation-state-machine instance from a snapshot produced by the\ndefault serializer (or `machine.getPersistedSnapshot()`). Call inside a\nstateful agent's `init` to resume the machine in its exact prior place:\n\n```ts\ninit: ({ restored }) => {\n const machine = new MyMachine();\n restoreMachine(machine, restored); // resume, or no-op on a fresh start\n return { machine };\n}\n```\n\nNo-ops when there is nothing to restore (a fresh session), leaving the\nfreshly-constructed machine in its initial state."
|
|
4779
|
+
},
|
|
4780
|
+
{
|
|
4781
|
+
"kind": "function",
|
|
4782
|
+
"name": "defineStatefulAgent",
|
|
4783
|
+
"return": {
|
|
4784
|
+
"type": {
|
|
4785
|
+
"text": "AgentConfig"
|
|
4786
|
+
}
|
|
4787
|
+
},
|
|
4788
|
+
"parameters": [
|
|
4789
|
+
{
|
|
4790
|
+
"name": "opts",
|
|
4791
|
+
"type": {
|
|
4792
|
+
"text": "StatefulAgentInit<S>"
|
|
4793
|
+
}
|
|
4794
|
+
}
|
|
4795
|
+
],
|
|
4796
|
+
"description": "Build an `AgentConfig` whose `systemPrompt`, `toolDefinitions`, and tool\nhandlers all close over a long-lived state object created on activation.\n\nThe framework wires the lifecycle: `init` on `onActivate`, `dispose` on\n`onDeactivate`. State is held inside the helper's closure — never exposed on\nthe resulting `AgentConfig` — so the redux serializer doesn't see it."
|
|
4797
|
+
},
|
|
4798
|
+
{
|
|
4799
|
+
"kind": "function",
|
|
4800
|
+
"name": "defineAutopilot",
|
|
4801
|
+
"return": {
|
|
4802
|
+
"type": {
|
|
4803
|
+
"text": "AutopilotConfig<S>"
|
|
4804
|
+
}
|
|
4805
|
+
},
|
|
4806
|
+
"parameters": [
|
|
4807
|
+
{
|
|
4808
|
+
"name": "config",
|
|
4809
|
+
"type": {
|
|
4810
|
+
"text": "AutopilotConfig<S>"
|
|
4811
|
+
}
|
|
4812
|
+
}
|
|
4813
|
+
],
|
|
4814
|
+
"description": "Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function\nthat exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s\n`autopilot` option."
|
|
4815
|
+
}
|
|
4816
|
+
],
|
|
4817
|
+
"exports": [
|
|
4818
|
+
{
|
|
4819
|
+
"kind": "js",
|
|
4820
|
+
"name": "restoreMachine",
|
|
4821
|
+
"declaration": {
|
|
4822
|
+
"name": "restoreMachine",
|
|
4823
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
4824
|
+
}
|
|
4825
|
+
},
|
|
4826
|
+
{
|
|
4827
|
+
"kind": "js",
|
|
4828
|
+
"name": "defineStatefulAgent",
|
|
4829
|
+
"declaration": {
|
|
4830
|
+
"name": "defineStatefulAgent",
|
|
4831
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
4832
|
+
}
|
|
4833
|
+
},
|
|
4834
|
+
{
|
|
4835
|
+
"kind": "js",
|
|
4836
|
+
"name": "defineAutopilot",
|
|
4837
|
+
"declaration": {
|
|
4838
|
+
"name": "defineAutopilot",
|
|
4839
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
]
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
"kind": "javascript-module",
|
|
4846
|
+
"path": "src/config/fallback-agents.ts",
|
|
4847
|
+
"declarations": [
|
|
4848
|
+
{
|
|
4849
|
+
"kind": "variable",
|
|
4850
|
+
"name": "friendlyFallbackAgent",
|
|
4851
|
+
"type": {
|
|
4852
|
+
"text": "FallbackAgentConfig"
|
|
4853
|
+
},
|
|
4854
|
+
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a warm, friendly assistant. For general conversation like \"Hi\" or \"How are you\", you can have a friendly chat. For anything more complex, you cannot directly help, but you can explain what specialists are available. The available specialists are:\\n\\n{{agents}}\\n\\nPolitely let the user know what you can help with and invite them to rephrase their request if it is outside your scope.`,\n}",
|
|
4855
|
+
"description": "A warm, conversational fallback agent. Acknowledges it can't help directly,\nexplains what the available specialists can do, and invites the user to retry.\n\nThe system prompt is generated at runtime by `OrchestratingDriver` from the\nspecialist list — no manual authoring required."
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
"kind": "variable",
|
|
4859
|
+
"name": "strictFallbackAgent",
|
|
4860
|
+
"type": {
|
|
4861
|
+
"text": "FallbackAgentConfig"
|
|
4862
|
+
},
|
|
4863
|
+
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. The available specialists are: {{agents}}.\n\n{{unroutable}}\n\nAnswer in a single short sentence. Do not elaborate.`,\n}",
|
|
4864
|
+
"description": "A brief, professional fallback agent. States what is available without\nelaboration. The `{{agents}}` placeholder is replaced at runtime by\n`OrchestratingDriver` with the generated specialist list.\n\nThe `{{unroutable}}` placeholder positions `UNROUTABLE_INSTRUCTION` — the framework's\ninstruction for a substantive request no specialist covers, which is otherwise APPENDED to a\nstring-form prompt. Positioned rather than appended for one reason: this preset's whole point is\nbrevity, and appended text would be the last thing the model reads. Putting the block above the\nbrevity rule leaves \"a single short sentence\" with the recency, so the two compose instead of\ncompeting. A prompt whose tone rules matter should do the same."
|
|
4865
|
+
}
|
|
4866
|
+
],
|
|
4867
|
+
"exports": [
|
|
4868
|
+
{
|
|
4869
|
+
"kind": "js",
|
|
4870
|
+
"name": "friendlyFallbackAgent",
|
|
4871
|
+
"declaration": {
|
|
4872
|
+
"name": "friendlyFallbackAgent",
|
|
4873
|
+
"module": "src/config/fallback-agents.ts"
|
|
4874
|
+
}
|
|
4875
|
+
},
|
|
4876
|
+
{
|
|
4877
|
+
"kind": "js",
|
|
4878
|
+
"name": "strictFallbackAgent",
|
|
4879
|
+
"declaration": {
|
|
4880
|
+
"name": "strictFallbackAgent",
|
|
4881
|
+
"module": "src/config/fallback-agents.ts"
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
]
|
|
4885
|
+
},
|
|
4886
|
+
{
|
|
4887
|
+
"kind": "javascript-module",
|
|
4888
|
+
"path": "src/config/index.ts",
|
|
4889
|
+
"declarations": [],
|
|
4815
4890
|
"exports": [
|
|
4816
4891
|
{
|
|
4817
4892
|
"kind": "js",
|
|
4818
|
-
"name": "
|
|
4893
|
+
"name": "*",
|
|
4819
4894
|
"declaration": {
|
|
4820
|
-
"name": "
|
|
4821
|
-
"
|
|
4895
|
+
"name": "*",
|
|
4896
|
+
"package": "./config"
|
|
4822
4897
|
}
|
|
4823
4898
|
},
|
|
4824
4899
|
{
|
|
4825
|
-
"kind": "
|
|
4826
|
-
"name": "
|
|
4900
|
+
"kind": "js",
|
|
4901
|
+
"name": "*",
|
|
4827
4902
|
"declaration": {
|
|
4828
|
-
"name": "
|
|
4829
|
-
"
|
|
4903
|
+
"name": "*",
|
|
4904
|
+
"package": "./fallback-agents"
|
|
4830
4905
|
}
|
|
4831
4906
|
}
|
|
4832
4907
|
]
|
|
4833
4908
|
},
|
|
4909
|
+
{
|
|
4910
|
+
"kind": "javascript-module",
|
|
4911
|
+
"path": "src/config/validate-providers.ts",
|
|
4912
|
+
"declarations": [],
|
|
4913
|
+
"exports": []
|
|
4914
|
+
},
|
|
4834
4915
|
{
|
|
4835
4916
|
"kind": "javascript-module",
|
|
4836
4917
|
"path": "src/genesis/calendar.ts",
|
|
@@ -6593,6 +6674,116 @@
|
|
|
6593
6674
|
},
|
|
6594
6675
|
"description": "When each message shows its timestamp — `'off'`, `'hover'` or `'always'` (default).\n\nFalls back to `DEFAULT_TIMESTAMP_DISPLAY` rather than `'off'` when there is no\nstore yet: this preference defaults ON, so the pre-store render must match the state\nthe baseline is about to resolve to, or timestamps would visibly pop in on connect."
|
|
6595
6676
|
},
|
|
6677
|
+
{
|
|
6678
|
+
"kind": "field",
|
|
6679
|
+
"name": "notificationLevel",
|
|
6680
|
+
"type": {
|
|
6681
|
+
"text": "AgentNotificationLevel"
|
|
6682
|
+
},
|
|
6683
|
+
"description": "The person's agent notification level (GENC-1676): `'off'` (always the default),\n`'autopilot'` or `'needs-input'`. Saved with the other settings.\n\nAn app may set it, e.g. after its own \"Notify me\" invitation, once the person granted\npermission through `requestAgentNotificationPermission`. Ignored when the app does not offer\nthe level (`chatConfig.ui.notifications`), and before the assistant has a session."
|
|
6684
|
+
},
|
|
6685
|
+
{
|
|
6686
|
+
"kind": "field",
|
|
6687
|
+
"name": "effectiveNotificationLevel",
|
|
6688
|
+
"type": {
|
|
6689
|
+
"text": "AgentNotificationLevel"
|
|
6690
|
+
},
|
|
6691
|
+
"description": "The level that applies: the person's choice, as `'off'` when the app no longer offers it.\nWhat the settings picker shows. @internal",
|
|
6692
|
+
"readonly": true
|
|
6693
|
+
},
|
|
6694
|
+
{
|
|
6695
|
+
"kind": "field",
|
|
6696
|
+
"name": "notificationPermission",
|
|
6697
|
+
"type": {
|
|
6698
|
+
"text": "AgentNotificationPermission"
|
|
6699
|
+
},
|
|
6700
|
+
"default": "'unsupported'",
|
|
6701
|
+
"description": "The browser's notification permission, followed while connected. @internal"
|
|
6702
|
+
},
|
|
6703
|
+
{
|
|
6704
|
+
"kind": "field",
|
|
6705
|
+
"name": "notificationPickerRevision",
|
|
6706
|
+
"type": {
|
|
6707
|
+
"text": "number"
|
|
6708
|
+
},
|
|
6709
|
+
"default": "0",
|
|
6710
|
+
"description": "Bumped to make the settings picker re-read its value when a choice did not take (permission\nrefused), since the stored level, and so its binding, did not change. @internal"
|
|
6711
|
+
},
|
|
6712
|
+
{
|
|
6713
|
+
"kind": "field",
|
|
6714
|
+
"name": "notificationSettingVisible",
|
|
6715
|
+
"type": {
|
|
6716
|
+
"text": "boolean"
|
|
6717
|
+
},
|
|
6718
|
+
"description": "Whether the settings row shows: offered by the app, and possible in this browser. @internal",
|
|
6719
|
+
"readonly": true
|
|
6720
|
+
},
|
|
6721
|
+
{
|
|
6722
|
+
"kind": "field",
|
|
6723
|
+
"name": "notificationAutopilotOffered",
|
|
6724
|
+
"type": {
|
|
6725
|
+
"text": "boolean"
|
|
6726
|
+
},
|
|
6727
|
+
"description": "Whether the settings picker offers the `'autopilot'` level. @internal",
|
|
6728
|
+
"readonly": true
|
|
6729
|
+
},
|
|
6730
|
+
{
|
|
6731
|
+
"kind": "field",
|
|
6732
|
+
"name": "notificationPermissionHint",
|
|
6733
|
+
"type": {
|
|
6734
|
+
"text": "string"
|
|
6735
|
+
},
|
|
6736
|
+
"description": "The hint under the settings row when the browser will not show notifications. A block shows\neven at Off: otherwise a person picking a level would see it snap back with no reason given,\nsince a browser that has blocked them never asks again. @internal",
|
|
6737
|
+
"readonly": true
|
|
6738
|
+
},
|
|
6739
|
+
{
|
|
6740
|
+
"kind": "method",
|
|
6741
|
+
"name": "chooseNotificationLevel",
|
|
6742
|
+
"return": {
|
|
6743
|
+
"type": {
|
|
6744
|
+
"text": "Promise<void>"
|
|
6745
|
+
}
|
|
6746
|
+
},
|
|
6747
|
+
"parameters": [
|
|
6748
|
+
{
|
|
6749
|
+
"name": "level",
|
|
6750
|
+
"type": {
|
|
6751
|
+
"text": "AgentNotificationLevel"
|
|
6752
|
+
}
|
|
6753
|
+
}
|
|
6754
|
+
],
|
|
6755
|
+
"description": "The person chose a level in settings (GENC-1676). Turning notifications on asks the browser for\npermission first — this runs inside their click, which the browser requires — and keeps the\nold level if they refuse. @internal"
|
|
6756
|
+
},
|
|
6757
|
+
{
|
|
6758
|
+
"kind": "method",
|
|
6759
|
+
"name": "wireNotifications",
|
|
6760
|
+
"privacy": "private",
|
|
6761
|
+
"return": {
|
|
6762
|
+
"type": {
|
|
6763
|
+
"text": "void"
|
|
6764
|
+
}
|
|
6765
|
+
},
|
|
6766
|
+
"description": "Notifications, for this connect (GENC-1676): turn this session's `agent-attention` into\nbrowser notifications, follow the browser's permission, and lend this session's settings to\npickers outside this element (`foundation-ai-notification-level`)."
|
|
6767
|
+
},
|
|
6768
|
+
{
|
|
6769
|
+
"kind": "method",
|
|
6770
|
+
"name": "onAgentAttention",
|
|
6771
|
+
"privacy": "private",
|
|
6772
|
+
"return": {
|
|
6773
|
+
"type": {
|
|
6774
|
+
"text": "void"
|
|
6775
|
+
}
|
|
6776
|
+
},
|
|
6777
|
+
"parameters": [
|
|
6778
|
+
{
|
|
6779
|
+
"name": "detail",
|
|
6780
|
+
"type": {
|
|
6781
|
+
"text": "AgentAttentionDetail"
|
|
6782
|
+
}
|
|
6783
|
+
}
|
|
6784
|
+
],
|
|
6785
|
+
"description": "Turn an `agent-attention` event for this session into a browser notification, if the\nperson's level covers it and they are not looking (GENC-1676)."
|
|
6786
|
+
},
|
|
6596
6787
|
{
|
|
6597
6788
|
"kind": "field",
|
|
6598
6789
|
"name": "timestampClock",
|
|
@@ -7507,6 +7698,15 @@
|
|
|
7507
7698
|
"privacy": "private",
|
|
7508
7699
|
"description": "Unsubscribe handle for the `tool-loop-end` budget latch (GENC-1464)."
|
|
7509
7700
|
},
|
|
7701
|
+
{
|
|
7702
|
+
"kind": "field",
|
|
7703
|
+
"name": "_unwireNotifications",
|
|
7704
|
+
"type": {
|
|
7705
|
+
"text": "() => void | undefined"
|
|
7706
|
+
},
|
|
7707
|
+
"privacy": "private",
|
|
7708
|
+
"description": "Undoes `wireNotifications`; balanced like `_unsubBudgetLatch`, re-wired per connect."
|
|
7709
|
+
},
|
|
7510
7710
|
{
|
|
7511
7711
|
"kind": "field",
|
|
7512
7712
|
"name": "unsubProviderRegistry",
|
|
@@ -7915,7 +8115,7 @@
|
|
|
7915
8115
|
"text": "void"
|
|
7916
8116
|
}
|
|
7917
8117
|
},
|
|
7918
|
-
"description": "Follow the autopilot host's state, publishing the \"needs you\" signal for the bubble."
|
|
8118
|
+
"description": "Follow the autopilot host's state, publishing the \"needs you\" signal for the bubble, and bring\nwhat waits on the person into view when asked."
|
|
7919
8119
|
},
|
|
7920
8120
|
{
|
|
7921
8121
|
"kind": "method",
|
|
@@ -9975,62 +10175,236 @@
|
|
|
9975
10175
|
"description": "Registry of all available animations with their display metadata.\nAdding an entry here automatically extends the AiAssistantAnimation type."
|
|
9976
10176
|
},
|
|
9977
10177
|
{
|
|
9978
|
-
"kind": "variable",
|
|
9979
|
-
"name": "satisfies",
|
|
9980
|
-
"description": "Registry of all available animations with their display metadata.\nAdding an entry here automatically extends the AiAssistantAnimation type."
|
|
10178
|
+
"kind": "variable",
|
|
10179
|
+
"name": "satisfies",
|
|
10180
|
+
"description": "Registry of all available animations with their display metadata.\nAdding an entry here automatically extends the AiAssistantAnimation type."
|
|
10181
|
+
},
|
|
10182
|
+
{
|
|
10183
|
+
"kind": "variable",
|
|
10184
|
+
"name": "Record",
|
|
10185
|
+
"description": "Registry of all available animations with their display metadata.\nAdding an entry here automatically extends the AiAssistantAnimation type."
|
|
10186
|
+
}
|
|
10187
|
+
],
|
|
10188
|
+
"exports": [
|
|
10189
|
+
{
|
|
10190
|
+
"kind": "js",
|
|
10191
|
+
"name": "AgentPickerMode",
|
|
10192
|
+
"declaration": {
|
|
10193
|
+
"name": "AgentPickerMode",
|
|
10194
|
+
"package": "@genesislcap/foundation-ai"
|
|
10195
|
+
}
|
|
10196
|
+
},
|
|
10197
|
+
{
|
|
10198
|
+
"kind": "js",
|
|
10199
|
+
"name": "AiAssistantEvent",
|
|
10200
|
+
"declaration": {
|
|
10201
|
+
"name": "AiAssistantEvent",
|
|
10202
|
+
"module": "src/main/main.types.ts"
|
|
10203
|
+
}
|
|
10204
|
+
},
|
|
10205
|
+
{
|
|
10206
|
+
"kind": "js",
|
|
10207
|
+
"name": "ANIMATION_DEFS",
|
|
10208
|
+
"declaration": {
|
|
10209
|
+
"name": "ANIMATION_DEFS",
|
|
10210
|
+
"module": "src/main/main.types.ts"
|
|
10211
|
+
}
|
|
10212
|
+
},
|
|
10213
|
+
{
|
|
10214
|
+
"kind": "js",
|
|
10215
|
+
"name": "satisfies",
|
|
10216
|
+
"declaration": {
|
|
10217
|
+
"name": "satisfies",
|
|
10218
|
+
"module": "src/main/main.types.ts"
|
|
10219
|
+
}
|
|
10220
|
+
},
|
|
10221
|
+
{
|
|
10222
|
+
"kind": "js",
|
|
10223
|
+
"name": "Record",
|
|
10224
|
+
"declaration": {
|
|
10225
|
+
"name": "Record",
|
|
10226
|
+
"module": "src/main/main.types.ts"
|
|
10227
|
+
}
|
|
10228
|
+
}
|
|
10229
|
+
]
|
|
10230
|
+
},
|
|
10231
|
+
{
|
|
10232
|
+
"kind": "javascript-module",
|
|
10233
|
+
"path": "src/main/meta-snapshot.ts",
|
|
10234
|
+
"declarations": [],
|
|
10235
|
+
"exports": []
|
|
10236
|
+
},
|
|
10237
|
+
{
|
|
10238
|
+
"kind": "javascript-module",
|
|
10239
|
+
"path": "src/notifications/agent-notifications.ts",
|
|
10240
|
+
"declarations": [
|
|
10241
|
+
{
|
|
10242
|
+
"kind": "variable",
|
|
10243
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
10244
|
+
"type": {
|
|
10245
|
+
"text": "string"
|
|
10246
|
+
},
|
|
10247
|
+
"default": "'The assistant is ready for your next input'",
|
|
10248
|
+
"description": "The notification's text when neither the app nor the widget gives one."
|
|
10249
|
+
},
|
|
10250
|
+
{
|
|
10251
|
+
"kind": "function",
|
|
10252
|
+
"name": "agentNotificationPermission",
|
|
10253
|
+
"return": {
|
|
10254
|
+
"type": {
|
|
10255
|
+
"text": "AgentNotificationPermission"
|
|
10256
|
+
}
|
|
10257
|
+
},
|
|
10258
|
+
"description": "Whether this page may show notifications. Safe to call anywhere, including Node."
|
|
10259
|
+
},
|
|
10260
|
+
{
|
|
10261
|
+
"kind": "function",
|
|
10262
|
+
"name": "requestAgentNotificationPermission",
|
|
10263
|
+
"return": {
|
|
10264
|
+
"type": {
|
|
10265
|
+
"text": "Promise<AgentNotificationPermission>"
|
|
10266
|
+
}
|
|
10267
|
+
},
|
|
10268
|
+
"description": "Ask the person for permission to show notifications, and resolve to the result. Call it from a\nclick or key handler: browsers ignore or refuse a request that does not come from the person.\nResolves straight away when permission is already decided or unsupported, since a browser only\never asks once."
|
|
10269
|
+
}
|
|
10270
|
+
],
|
|
10271
|
+
"exports": [
|
|
10272
|
+
{
|
|
10273
|
+
"kind": "js",
|
|
10274
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
10275
|
+
"declaration": {
|
|
10276
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
10277
|
+
"module": "src/notifications/agent-notifications.ts"
|
|
10278
|
+
}
|
|
10279
|
+
},
|
|
10280
|
+
{
|
|
10281
|
+
"kind": "js",
|
|
10282
|
+
"name": "agentNotificationPermission",
|
|
10283
|
+
"declaration": {
|
|
10284
|
+
"name": "agentNotificationPermission",
|
|
10285
|
+
"module": "src/notifications/agent-notifications.ts"
|
|
10286
|
+
}
|
|
10287
|
+
},
|
|
10288
|
+
{
|
|
10289
|
+
"kind": "js",
|
|
10290
|
+
"name": "requestAgentNotificationPermission",
|
|
10291
|
+
"declaration": {
|
|
10292
|
+
"name": "requestAgentNotificationPermission",
|
|
10293
|
+
"module": "src/notifications/agent-notifications.ts"
|
|
10294
|
+
}
|
|
10295
|
+
}
|
|
10296
|
+
]
|
|
10297
|
+
},
|
|
10298
|
+
{
|
|
10299
|
+
"kind": "javascript-module",
|
|
10300
|
+
"path": "src/notifications/agent-notifier.ts",
|
|
10301
|
+
"declarations": [],
|
|
10302
|
+
"exports": []
|
|
10303
|
+
},
|
|
10304
|
+
{
|
|
10305
|
+
"kind": "javascript-module",
|
|
10306
|
+
"path": "src/notifications/index.ts",
|
|
10307
|
+
"declarations": [],
|
|
10308
|
+
"exports": [
|
|
10309
|
+
{
|
|
10310
|
+
"kind": "js",
|
|
10311
|
+
"name": "agentNotificationPermission",
|
|
10312
|
+
"declaration": {
|
|
10313
|
+
"name": "agentNotificationPermission",
|
|
10314
|
+
"module": "./agent-notifications"
|
|
10315
|
+
}
|
|
10316
|
+
},
|
|
10317
|
+
{
|
|
10318
|
+
"kind": "js",
|
|
10319
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
10320
|
+
"declaration": {
|
|
10321
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
10322
|
+
"module": "./agent-notifications"
|
|
10323
|
+
}
|
|
10324
|
+
},
|
|
10325
|
+
{
|
|
10326
|
+
"kind": "js",
|
|
10327
|
+
"name": "requestAgentNotificationPermission",
|
|
10328
|
+
"declaration": {
|
|
10329
|
+
"name": "requestAgentNotificationPermission",
|
|
10330
|
+
"module": "./agent-notifications"
|
|
10331
|
+
}
|
|
10332
|
+
},
|
|
10333
|
+
{
|
|
10334
|
+
"kind": "js",
|
|
10335
|
+
"name": "type",
|
|
10336
|
+
"declaration": {
|
|
10337
|
+
"name": "type",
|
|
10338
|
+
"module": "./agent-notifications"
|
|
10339
|
+
}
|
|
10340
|
+
},
|
|
10341
|
+
{
|
|
10342
|
+
"kind": "js",
|
|
10343
|
+
"name": "AgentAttentionDetail",
|
|
10344
|
+
"declaration": {
|
|
10345
|
+
"name": "AgentAttentionDetail",
|
|
10346
|
+
"module": "./agent-notifications"
|
|
10347
|
+
}
|
|
9981
10348
|
},
|
|
9982
10349
|
{
|
|
9983
|
-
"kind": "
|
|
9984
|
-
"name": "
|
|
9985
|
-
"
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
10350
|
+
"kind": "js",
|
|
10351
|
+
"name": "type",
|
|
10352
|
+
"declaration": {
|
|
10353
|
+
"name": "type",
|
|
10354
|
+
"module": "./agent-notifications"
|
|
10355
|
+
}
|
|
10356
|
+
},
|
|
9989
10357
|
{
|
|
9990
10358
|
"kind": "js",
|
|
9991
|
-
"name": "
|
|
10359
|
+
"name": "AgentAttentionKind",
|
|
9992
10360
|
"declaration": {
|
|
9993
|
-
"name": "
|
|
9994
|
-
"
|
|
10361
|
+
"name": "AgentAttentionKind",
|
|
10362
|
+
"module": "./agent-notifications"
|
|
9995
10363
|
}
|
|
9996
10364
|
},
|
|
9997
10365
|
{
|
|
9998
10366
|
"kind": "js",
|
|
9999
|
-
"name": "
|
|
10367
|
+
"name": "type",
|
|
10000
10368
|
"declaration": {
|
|
10001
|
-
"name": "
|
|
10002
|
-
"module": "
|
|
10369
|
+
"name": "type",
|
|
10370
|
+
"module": "./agent-notifications"
|
|
10003
10371
|
}
|
|
10004
10372
|
},
|
|
10005
10373
|
{
|
|
10006
10374
|
"kind": "js",
|
|
10007
|
-
"name": "
|
|
10375
|
+
"name": "AgentNotificationLevel",
|
|
10008
10376
|
"declaration": {
|
|
10009
|
-
"name": "
|
|
10010
|
-
"module": "
|
|
10377
|
+
"name": "AgentNotificationLevel",
|
|
10378
|
+
"module": "./agent-notifications"
|
|
10011
10379
|
}
|
|
10012
10380
|
},
|
|
10013
10381
|
{
|
|
10014
10382
|
"kind": "js",
|
|
10015
|
-
"name": "
|
|
10383
|
+
"name": "type",
|
|
10016
10384
|
"declaration": {
|
|
10017
|
-
"name": "
|
|
10018
|
-
"module": "
|
|
10385
|
+
"name": "type",
|
|
10386
|
+
"module": "./agent-notifications"
|
|
10019
10387
|
}
|
|
10020
10388
|
},
|
|
10021
10389
|
{
|
|
10022
10390
|
"kind": "js",
|
|
10023
|
-
"name": "
|
|
10391
|
+
"name": "AgentNotificationPermission",
|
|
10024
10392
|
"declaration": {
|
|
10025
|
-
"name": "
|
|
10026
|
-
"module": "
|
|
10393
|
+
"name": "AgentNotificationPermission",
|
|
10394
|
+
"module": "./agent-notifications"
|
|
10027
10395
|
}
|
|
10028
10396
|
}
|
|
10029
10397
|
]
|
|
10030
10398
|
},
|
|
10031
10399
|
{
|
|
10032
10400
|
"kind": "javascript-module",
|
|
10033
|
-
"path": "src/
|
|
10401
|
+
"path": "src/notifications/notification-level-picker.template.ts",
|
|
10402
|
+
"declarations": [],
|
|
10403
|
+
"exports": []
|
|
10404
|
+
},
|
|
10405
|
+
{
|
|
10406
|
+
"kind": "javascript-module",
|
|
10407
|
+
"path": "src/notifications/notification-settings.ts",
|
|
10034
10408
|
"declarations": [],
|
|
10035
10409
|
"exports": []
|
|
10036
10410
|
},
|
|
@@ -15941,6 +16315,17 @@
|
|
|
15941
16315
|
},
|
|
15942
16316
|
"description": "The session of the assistant this bubble holds, when it can tell: the key the assistant\npublishes under, read from the assistant in the bubble's light DOM — whether or not the dialog\n(and with it the slot) is rendered, since the badge shows while it is not."
|
|
15943
16317
|
},
|
|
16318
|
+
{
|
|
16319
|
+
"kind": "method",
|
|
16320
|
+
"name": "openDialog",
|
|
16321
|
+
"privacy": "private",
|
|
16322
|
+
"return": {
|
|
16323
|
+
"type": {
|
|
16324
|
+
"text": "void"
|
|
16325
|
+
}
|
|
16326
|
+
},
|
|
16327
|
+
"description": "Open the dialog beside the orb."
|
|
16328
|
+
},
|
|
15944
16329
|
{
|
|
15945
16330
|
"kind": "method",
|
|
15946
16331
|
"name": "showWaitingIfBadged",
|
|
@@ -20454,6 +20839,255 @@
|
|
|
20454
20839
|
}
|
|
20455
20840
|
]
|
|
20456
20841
|
},
|
|
20842
|
+
{
|
|
20843
|
+
"kind": "javascript-module",
|
|
20844
|
+
"path": "src/components/notification-level/index.ts",
|
|
20845
|
+
"declarations": [],
|
|
20846
|
+
"exports": [
|
|
20847
|
+
{
|
|
20848
|
+
"kind": "js",
|
|
20849
|
+
"name": "*",
|
|
20850
|
+
"declaration": {
|
|
20851
|
+
"name": "*",
|
|
20852
|
+
"package": "./notification-level"
|
|
20853
|
+
}
|
|
20854
|
+
}
|
|
20855
|
+
]
|
|
20856
|
+
},
|
|
20857
|
+
{
|
|
20858
|
+
"kind": "javascript-module",
|
|
20859
|
+
"path": "src/components/notification-level/notification-level.styles.ts",
|
|
20860
|
+
"declarations": [
|
|
20861
|
+
{
|
|
20862
|
+
"kind": "variable",
|
|
20863
|
+
"name": "styles",
|
|
20864
|
+
"default": "css`\n :host {\n display: inline-flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 1px);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .hint {\n font-size: 12px;\n color: var(--neutral-foreground-hint);\n line-height: 1.4;\n font-style: italic;\n }\n`",
|
|
20865
|
+
"description": "The picker and its hint, laid out like the assistant's own settings row."
|
|
20866
|
+
}
|
|
20867
|
+
],
|
|
20868
|
+
"exports": [
|
|
20869
|
+
{
|
|
20870
|
+
"kind": "js",
|
|
20871
|
+
"name": "styles",
|
|
20872
|
+
"declaration": {
|
|
20873
|
+
"name": "styles",
|
|
20874
|
+
"module": "src/components/notification-level/notification-level.styles.ts"
|
|
20875
|
+
}
|
|
20876
|
+
}
|
|
20877
|
+
]
|
|
20878
|
+
},
|
|
20879
|
+
{
|
|
20880
|
+
"kind": "javascript-module",
|
|
20881
|
+
"path": "src/components/notification-level/notification-level.template.ts",
|
|
20882
|
+
"declarations": [
|
|
20883
|
+
{
|
|
20884
|
+
"kind": "function",
|
|
20885
|
+
"name": "AiNotificationLevelTemplate",
|
|
20886
|
+
"return": {
|
|
20887
|
+
"type": {
|
|
20888
|
+
"text": "ViewTemplate<AiNotificationLevel>"
|
|
20889
|
+
}
|
|
20890
|
+
},
|
|
20891
|
+
"parameters": [
|
|
20892
|
+
{
|
|
20893
|
+
"name": "designSystemPrefix",
|
|
20894
|
+
"type": {
|
|
20895
|
+
"text": "string"
|
|
20896
|
+
}
|
|
20897
|
+
}
|
|
20898
|
+
],
|
|
20899
|
+
"description": "The shared picker, then the permission hint while there is one. Nothing while not offered."
|
|
20900
|
+
}
|
|
20901
|
+
],
|
|
20902
|
+
"exports": [
|
|
20903
|
+
{
|
|
20904
|
+
"kind": "js",
|
|
20905
|
+
"name": "AiNotificationLevelTemplate",
|
|
20906
|
+
"declaration": {
|
|
20907
|
+
"name": "AiNotificationLevelTemplate",
|
|
20908
|
+
"module": "src/components/notification-level/notification-level.template.ts"
|
|
20909
|
+
}
|
|
20910
|
+
}
|
|
20911
|
+
]
|
|
20912
|
+
},
|
|
20913
|
+
{
|
|
20914
|
+
"kind": "javascript-module",
|
|
20915
|
+
"path": "src/components/notification-level/notification-level.ts",
|
|
20916
|
+
"declarations": [
|
|
20917
|
+
{
|
|
20918
|
+
"kind": "class",
|
|
20919
|
+
"description": "The agent notification level picker on its own (GENC-1676), for an app or a widget's view to\nplace wherever it invites the person to switch notifications on. The same control as the\nassistant's settings row, and the same behaviour: picking a level asks the browser for\npermission inside the click and snaps back if refused, the hint says when the browser blocks\nnotifications, and the Autopilot level shows only when the app offers it.\n\nIt works on the session in `session-key`, through the connected assistant that holds it, so\nthe level is checked and saved as a settings change is. It renders nothing while no connected\nassistant holds that session, while the app turns notifications off, or where the browser has\nno notifications.\n\nIn a widget, pass the interaction's session:\n\n```html\n<foundation-ai-notification-level session-key=\"${(x) => x.interactionContext.sessionKey}\">\n</foundation-ai-notification-level>\n```",
|
|
20920
|
+
"name": "AiNotificationLevel",
|
|
20921
|
+
"members": [
|
|
20922
|
+
{
|
|
20923
|
+
"kind": "field",
|
|
20924
|
+
"name": "sessionKey",
|
|
20925
|
+
"type": {
|
|
20926
|
+
"text": "string | undefined"
|
|
20927
|
+
},
|
|
20928
|
+
"description": "The session whose level this picks: the assistant's `session-key` (or state key)."
|
|
20929
|
+
},
|
|
20930
|
+
{
|
|
20931
|
+
"kind": "field",
|
|
20932
|
+
"name": "designSystemPrefix",
|
|
20933
|
+
"type": {
|
|
20934
|
+
"text": "string"
|
|
20935
|
+
},
|
|
20936
|
+
"default": "'rapid'"
|
|
20937
|
+
},
|
|
20938
|
+
{
|
|
20939
|
+
"kind": "field",
|
|
20940
|
+
"name": "notificationPermission",
|
|
20941
|
+
"type": {
|
|
20942
|
+
"text": "AgentNotificationPermission"
|
|
20943
|
+
},
|
|
20944
|
+
"default": "'unsupported'",
|
|
20945
|
+
"description": "The browser's notification permission, followed while connected. @internal"
|
|
20946
|
+
},
|
|
20947
|
+
{
|
|
20948
|
+
"kind": "field",
|
|
20949
|
+
"name": "notificationPickerRevision",
|
|
20950
|
+
"type": {
|
|
20951
|
+
"text": "number"
|
|
20952
|
+
},
|
|
20953
|
+
"default": "0",
|
|
20954
|
+
"description": "See `NotificationLevelPickerSource`. @internal"
|
|
20955
|
+
},
|
|
20956
|
+
{
|
|
20957
|
+
"kind": "field",
|
|
20958
|
+
"name": "settingsRevision",
|
|
20959
|
+
"type": {
|
|
20960
|
+
"text": "number"
|
|
20961
|
+
},
|
|
20962
|
+
"default": "0",
|
|
20963
|
+
"description": "Bumped whenever the session's settings may have changed, so the getters re-read. @internal"
|
|
20964
|
+
},
|
|
20965
|
+
{
|
|
20966
|
+
"kind": "field",
|
|
20967
|
+
"name": "unwire",
|
|
20968
|
+
"type": {
|
|
20969
|
+
"text": "() => void | undefined"
|
|
20970
|
+
},
|
|
20971
|
+
"privacy": "private"
|
|
20972
|
+
},
|
|
20973
|
+
{
|
|
20974
|
+
"kind": "method",
|
|
20975
|
+
"name": "sessionKeyChanged",
|
|
20976
|
+
"return": {
|
|
20977
|
+
"type": {
|
|
20978
|
+
"text": "void"
|
|
20979
|
+
}
|
|
20980
|
+
}
|
|
20981
|
+
},
|
|
20982
|
+
{
|
|
20983
|
+
"kind": "field",
|
|
20984
|
+
"name": "host",
|
|
20985
|
+
"type": {
|
|
20986
|
+
"text": "NotificationSettingsHost | undefined"
|
|
20987
|
+
},
|
|
20988
|
+
"privacy": "private",
|
|
20989
|
+
"readonly": true
|
|
20990
|
+
},
|
|
20991
|
+
{
|
|
20992
|
+
"kind": "field",
|
|
20993
|
+
"name": "offered",
|
|
20994
|
+
"type": {
|
|
20995
|
+
"text": "boolean"
|
|
20996
|
+
},
|
|
20997
|
+
"description": "Whether to render: a connected assistant holds the session, offers it, and the browser can. @internal",
|
|
20998
|
+
"readonly": true
|
|
20999
|
+
},
|
|
21000
|
+
{
|
|
21001
|
+
"kind": "field",
|
|
21002
|
+
"name": "effectiveNotificationLevel",
|
|
21003
|
+
"type": {
|
|
21004
|
+
"text": "AgentNotificationLevel"
|
|
21005
|
+
},
|
|
21006
|
+
"description": "See `NotificationLevelPickerSource`. @internal",
|
|
21007
|
+
"readonly": true
|
|
21008
|
+
},
|
|
21009
|
+
{
|
|
21010
|
+
"kind": "field",
|
|
21011
|
+
"name": "notificationAutopilotOffered",
|
|
21012
|
+
"type": {
|
|
21013
|
+
"text": "boolean"
|
|
21014
|
+
},
|
|
21015
|
+
"description": "See `NotificationLevelPickerSource`. @internal",
|
|
21016
|
+
"readonly": true
|
|
21017
|
+
},
|
|
21018
|
+
{
|
|
21019
|
+
"kind": "field",
|
|
21020
|
+
"name": "permissionHint",
|
|
21021
|
+
"type": {
|
|
21022
|
+
"text": "string"
|
|
21023
|
+
},
|
|
21024
|
+
"description": "The hint under the picker when the browser will not show notifications. @internal",
|
|
21025
|
+
"readonly": true
|
|
21026
|
+
},
|
|
21027
|
+
{
|
|
21028
|
+
"kind": "method",
|
|
21029
|
+
"name": "chooseNotificationLevel",
|
|
21030
|
+
"return": {
|
|
21031
|
+
"type": {
|
|
21032
|
+
"text": "Promise<void>"
|
|
21033
|
+
}
|
|
21034
|
+
},
|
|
21035
|
+
"parameters": [
|
|
21036
|
+
{
|
|
21037
|
+
"name": "level",
|
|
21038
|
+
"type": {
|
|
21039
|
+
"text": "AgentNotificationLevel"
|
|
21040
|
+
}
|
|
21041
|
+
}
|
|
21042
|
+
],
|
|
21043
|
+
"description": "See `NotificationLevelPickerSource`. @internal"
|
|
21044
|
+
}
|
|
21045
|
+
],
|
|
21046
|
+
"attributes": [
|
|
21047
|
+
{
|
|
21048
|
+
"name": "session-key",
|
|
21049
|
+
"type": {
|
|
21050
|
+
"text": "string | undefined"
|
|
21051
|
+
},
|
|
21052
|
+
"description": "The session whose level this picks: the assistant's `session-key` (or state key).",
|
|
21053
|
+
"fieldName": "sessionKey"
|
|
21054
|
+
},
|
|
21055
|
+
{
|
|
21056
|
+
"name": "design-system-prefix",
|
|
21057
|
+
"type": {
|
|
21058
|
+
"text": "string"
|
|
21059
|
+
},
|
|
21060
|
+
"default": "'rapid'",
|
|
21061
|
+
"fieldName": "designSystemPrefix"
|
|
21062
|
+
}
|
|
21063
|
+
],
|
|
21064
|
+
"superclass": {
|
|
21065
|
+
"name": "GenesisElement",
|
|
21066
|
+
"package": "@genesislcap/web-core"
|
|
21067
|
+
},
|
|
21068
|
+
"tagName": "foundation-ai-notification-level",
|
|
21069
|
+
"customElement": true
|
|
21070
|
+
}
|
|
21071
|
+
],
|
|
21072
|
+
"exports": [
|
|
21073
|
+
{
|
|
21074
|
+
"kind": "js",
|
|
21075
|
+
"name": "AiNotificationLevel",
|
|
21076
|
+
"declaration": {
|
|
21077
|
+
"name": "AiNotificationLevel",
|
|
21078
|
+
"module": "src/components/notification-level/notification-level.ts"
|
|
21079
|
+
}
|
|
21080
|
+
},
|
|
21081
|
+
{
|
|
21082
|
+
"kind": "custom-element-definition",
|
|
21083
|
+
"name": "foundation-ai-notification-level",
|
|
21084
|
+
"declaration": {
|
|
21085
|
+
"name": "AiNotificationLevel",
|
|
21086
|
+
"module": "src/components/notification-level/notification-level.ts"
|
|
21087
|
+
}
|
|
21088
|
+
}
|
|
21089
|
+
]
|
|
21090
|
+
},
|
|
20457
21091
|
{
|
|
20458
21092
|
"kind": "javascript-module",
|
|
20459
21093
|
"path": "src/components/orchestrating-driver/index.ts",
|
|
@@ -21997,7 +22631,7 @@
|
|
|
21997
22631
|
{
|
|
21998
22632
|
"kind": "variable",
|
|
21999
22633
|
"name": "settingsModalStyles",
|
|
22000
|
-
"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 /*\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`",
|
|
22634
|
+
"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`",
|
|
22001
22635
|
"description": "Styles for the assistant settings modal (tabs, sections, toggles, cost summary)."
|
|
22002
22636
|
}
|
|
22003
22637
|
],
|