@genesislcap/ai-assistant 15.77.0 → 15.78.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +796 -7
- package/dist/ai-assistant.d.ts +305 -12
- 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 +1230 -468
- 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/config/config.d.ts +2 -2
- package/dist/dts/config/define-stateful-agent.d.ts +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 +79 -6
- 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 +12 -5
- 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/persistence/session-persister.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts +19 -6
- package/dist/dts/state/persistence/session-snapshot.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/attachment-note.d.ts +18 -0
- package/dist/dts/utils/attachment-note.d.ts.map +1 -0
- 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 +217 -27
- package/dist/esm/main/main.template.js +2 -2
- 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/state/persistence/session-persister.js +24 -21
- package/dist/esm/state/persistence/session-snapshot.js +20 -7
- package/dist/esm/utils/attachment-note.js +19 -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/docs/styling.md +1 -1
- package/package.json +17 -17
- package/sandbox/fixtures.ts +3 -3
|
@@ -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",
|
|
@@ -4078,148 +4159,379 @@
|
|
|
4078
4159
|
},
|
|
4079
4160
|
{
|
|
4080
4161
|
"kind": "javascript-module",
|
|
4081
|
-
"path": "src/
|
|
4162
|
+
"path": "src/config/config.ts",
|
|
4082
4163
|
"declarations": [
|
|
4083
4164
|
{
|
|
4084
|
-
"kind": "
|
|
4085
|
-
"
|
|
4086
|
-
"
|
|
4087
|
-
"members": [
|
|
4088
|
-
{
|
|
4089
|
-
"kind": "field",
|
|
4090
|
-
"name": "startTime",
|
|
4091
|
-
"type": {
|
|
4092
|
-
"text": "number | undefined"
|
|
4093
|
-
},
|
|
4094
|
-
"privacy": "private"
|
|
4095
|
-
},
|
|
4096
|
-
{
|
|
4097
|
-
"kind": "field",
|
|
4098
|
-
"name": "animFrame",
|
|
4099
|
-
"type": {
|
|
4100
|
-
"text": "number | undefined"
|
|
4101
|
-
},
|
|
4102
|
-
"privacy": "private"
|
|
4103
|
-
},
|
|
4104
|
-
{
|
|
4105
|
-
"kind": "field",
|
|
4106
|
-
"name": "bandPaths",
|
|
4107
|
-
"type": {
|
|
4108
|
-
"text": "SVGPathElement[] | undefined"
|
|
4109
|
-
},
|
|
4110
|
-
"privacy": "private"
|
|
4111
|
-
},
|
|
4112
|
-
{
|
|
4113
|
-
"kind": "method",
|
|
4114
|
-
"name": "tick",
|
|
4115
|
-
"privacy": "private",
|
|
4116
|
-
"parameters": [
|
|
4117
|
-
{
|
|
4118
|
-
"name": "now",
|
|
4119
|
-
"optional": true,
|
|
4120
|
-
"type": {
|
|
4121
|
-
"text": "number"
|
|
4122
|
-
}
|
|
4123
|
-
}
|
|
4124
|
-
]
|
|
4125
|
-
},
|
|
4126
|
-
{
|
|
4127
|
-
"kind": "method",
|
|
4128
|
-
"name": "buildBand",
|
|
4129
|
-
"privacy": "private",
|
|
4130
|
-
"static": true,
|
|
4131
|
-
"return": {
|
|
4132
|
-
"type": {
|
|
4133
|
-
"text": "string"
|
|
4134
|
-
}
|
|
4135
|
-
},
|
|
4136
|
-
"parameters": [
|
|
4137
|
-
{
|
|
4138
|
-
"name": "cfg",
|
|
4139
|
-
"type": {
|
|
4140
|
-
"text": "BandConfig"
|
|
4141
|
-
}
|
|
4142
|
-
},
|
|
4143
|
-
{
|
|
4144
|
-
"name": "frame",
|
|
4145
|
-
"type": {
|
|
4146
|
-
"text": "number"
|
|
4147
|
-
}
|
|
4148
|
-
}
|
|
4149
|
-
],
|
|
4150
|
-
"description": "Trace one band for the given frame: a baseline-plus-harmonics half-thickness\nprofile, clamped at 0 (so the band pinches to nothing between bumps) and\ntapered to 0 at both ends."
|
|
4151
|
-
}
|
|
4152
|
-
],
|
|
4153
|
-
"superclass": {
|
|
4154
|
-
"name": "GenesisElement",
|
|
4155
|
-
"package": "@genesislcap/web-core"
|
|
4156
|
-
},
|
|
4157
|
-
"tagName": "ai-flowing-waves-indicator",
|
|
4158
|
-
"customElement": true
|
|
4165
|
+
"kind": "function",
|
|
4166
|
+
"name": "defineAgent",
|
|
4167
|
+
"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```"
|
|
4159
4168
|
}
|
|
4160
4169
|
],
|
|
4161
4170
|
"exports": [
|
|
4162
4171
|
{
|
|
4163
4172
|
"kind": "js",
|
|
4164
|
-
"name": "
|
|
4173
|
+
"name": "CachePolicy",
|
|
4165
4174
|
"declaration": {
|
|
4166
|
-
"name": "
|
|
4167
|
-
"module": "src/
|
|
4175
|
+
"name": "CachePolicy",
|
|
4176
|
+
"module": "src/config/config.ts"
|
|
4168
4177
|
}
|
|
4169
4178
|
},
|
|
4170
4179
|
{
|
|
4171
|
-
"kind": "
|
|
4172
|
-
"name": "
|
|
4180
|
+
"kind": "js",
|
|
4181
|
+
"name": "ChatFallback",
|
|
4173
4182
|
"declaration": {
|
|
4174
|
-
"name": "
|
|
4175
|
-
"module": "src/
|
|
4183
|
+
"name": "ChatFallback",
|
|
4184
|
+
"module": "src/config/config.ts"
|
|
4185
|
+
}
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
"kind": "js",
|
|
4189
|
+
"name": "ChatInputDuringExecutionMode",
|
|
4190
|
+
"declaration": {
|
|
4191
|
+
"name": "ChatInputDuringExecutionMode",
|
|
4192
|
+
"module": "src/config/config.ts"
|
|
4193
|
+
}
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
"kind": "js",
|
|
4197
|
+
"name": "ChatThinkingPolicy",
|
|
4198
|
+
"declaration": {
|
|
4199
|
+
"name": "ChatThinkingPolicy",
|
|
4200
|
+
"module": "src/config/config.ts"
|
|
4201
|
+
}
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"kind": "js",
|
|
4205
|
+
"name": "ChatToolChoice",
|
|
4206
|
+
"declaration": {
|
|
4207
|
+
"name": "ChatToolChoice",
|
|
4208
|
+
"module": "src/config/config.ts"
|
|
4209
|
+
}
|
|
4210
|
+
},
|
|
4211
|
+
{
|
|
4212
|
+
"kind": "js",
|
|
4213
|
+
"name": "defineAgent",
|
|
4214
|
+
"declaration": {
|
|
4215
|
+
"name": "defineAgent",
|
|
4216
|
+
"module": "src/config/config.ts"
|
|
4176
4217
|
}
|
|
4177
4218
|
}
|
|
4178
4219
|
]
|
|
4179
4220
|
},
|
|
4180
4221
|
{
|
|
4181
4222
|
"kind": "javascript-module",
|
|
4182
|
-
"path": "src/
|
|
4223
|
+
"path": "src/config/define-stateful-agent.ts",
|
|
4183
4224
|
"declarations": [
|
|
4184
4225
|
{
|
|
4185
|
-
"kind": "
|
|
4186
|
-
"
|
|
4187
|
-
"
|
|
4188
|
-
|
|
4226
|
+
"kind": "function",
|
|
4227
|
+
"name": "restoreMachine",
|
|
4228
|
+
"return": {
|
|
4229
|
+
"type": {
|
|
4230
|
+
"text": "void"
|
|
4231
|
+
}
|
|
4232
|
+
},
|
|
4233
|
+
"parameters": [
|
|
4189
4234
|
{
|
|
4190
|
-
"
|
|
4191
|
-
"name": "active",
|
|
4235
|
+
"name": "machine",
|
|
4192
4236
|
"type": {
|
|
4193
|
-
"text": "
|
|
4237
|
+
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
4194
4238
|
},
|
|
4195
|
-
"
|
|
4239
|
+
"description": "the machine to restore (already constructed/started)."
|
|
4196
4240
|
},
|
|
4197
4241
|
{
|
|
4198
|
-
"
|
|
4199
|
-
"name": "speed",
|
|
4242
|
+
"name": "restored",
|
|
4200
4243
|
"type": {
|
|
4201
|
-
"text": "
|
|
4244
|
+
"text": "unknown"
|
|
4202
4245
|
},
|
|
4203
|
-
"
|
|
4204
|
-
"description": "Rotation speed in degrees per frame. Default: 1.5 (≈ 4 s per full revolution at 60 fps)."
|
|
4246
|
+
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
4205
4247
|
},
|
|
4206
4248
|
{
|
|
4207
|
-
"
|
|
4208
|
-
"
|
|
4209
|
-
"
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4249
|
+
"name": "key",
|
|
4250
|
+
"default": "'machine'",
|
|
4251
|
+
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
4252
|
+
}
|
|
4253
|
+
],
|
|
4254
|
+
"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."
|
|
4255
|
+
},
|
|
4256
|
+
{
|
|
4257
|
+
"kind": "function",
|
|
4258
|
+
"name": "defineStatefulAgent",
|
|
4259
|
+
"return": {
|
|
4260
|
+
"type": {
|
|
4261
|
+
"text": "AgentConfig"
|
|
4262
|
+
}
|
|
4263
|
+
},
|
|
4264
|
+
"parameters": [
|
|
4215
4265
|
{
|
|
4216
|
-
"
|
|
4217
|
-
"name": "borderSize",
|
|
4266
|
+
"name": "opts",
|
|
4218
4267
|
"type": {
|
|
4219
|
-
"text": "
|
|
4220
|
-
}
|
|
4221
|
-
|
|
4222
|
-
|
|
4268
|
+
"text": "StatefulAgentInit<S>"
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
],
|
|
4272
|
+
"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."
|
|
4273
|
+
},
|
|
4274
|
+
{
|
|
4275
|
+
"kind": "function",
|
|
4276
|
+
"name": "defineAutopilot",
|
|
4277
|
+
"return": {
|
|
4278
|
+
"type": {
|
|
4279
|
+
"text": "AutopilotConfig<S>"
|
|
4280
|
+
}
|
|
4281
|
+
},
|
|
4282
|
+
"parameters": [
|
|
4283
|
+
{
|
|
4284
|
+
"name": "config",
|
|
4285
|
+
"type": {
|
|
4286
|
+
"text": "AutopilotConfig<S>"
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
],
|
|
4290
|
+
"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."
|
|
4291
|
+
}
|
|
4292
|
+
],
|
|
4293
|
+
"exports": [
|
|
4294
|
+
{
|
|
4295
|
+
"kind": "js",
|
|
4296
|
+
"name": "restoreMachine",
|
|
4297
|
+
"declaration": {
|
|
4298
|
+
"name": "restoreMachine",
|
|
4299
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
4300
|
+
}
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
"kind": "js",
|
|
4304
|
+
"name": "defineStatefulAgent",
|
|
4305
|
+
"declaration": {
|
|
4306
|
+
"name": "defineStatefulAgent",
|
|
4307
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
4308
|
+
}
|
|
4309
|
+
},
|
|
4310
|
+
{
|
|
4311
|
+
"kind": "js",
|
|
4312
|
+
"name": "defineAutopilot",
|
|
4313
|
+
"declaration": {
|
|
4314
|
+
"name": "defineAutopilot",
|
|
4315
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
]
|
|
4319
|
+
},
|
|
4320
|
+
{
|
|
4321
|
+
"kind": "javascript-module",
|
|
4322
|
+
"path": "src/config/fallback-agents.ts",
|
|
4323
|
+
"declarations": [
|
|
4324
|
+
{
|
|
4325
|
+
"kind": "variable",
|
|
4326
|
+
"name": "friendlyFallbackAgent",
|
|
4327
|
+
"type": {
|
|
4328
|
+
"text": "FallbackAgentConfig"
|
|
4329
|
+
},
|
|
4330
|
+
"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}",
|
|
4331
|
+
"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."
|
|
4332
|
+
},
|
|
4333
|
+
{
|
|
4334
|
+
"kind": "variable",
|
|
4335
|
+
"name": "strictFallbackAgent",
|
|
4336
|
+
"type": {
|
|
4337
|
+
"text": "FallbackAgentConfig"
|
|
4338
|
+
},
|
|
4339
|
+
"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}",
|
|
4340
|
+
"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."
|
|
4341
|
+
}
|
|
4342
|
+
],
|
|
4343
|
+
"exports": [
|
|
4344
|
+
{
|
|
4345
|
+
"kind": "js",
|
|
4346
|
+
"name": "friendlyFallbackAgent",
|
|
4347
|
+
"declaration": {
|
|
4348
|
+
"name": "friendlyFallbackAgent",
|
|
4349
|
+
"module": "src/config/fallback-agents.ts"
|
|
4350
|
+
}
|
|
4351
|
+
},
|
|
4352
|
+
{
|
|
4353
|
+
"kind": "js",
|
|
4354
|
+
"name": "strictFallbackAgent",
|
|
4355
|
+
"declaration": {
|
|
4356
|
+
"name": "strictFallbackAgent",
|
|
4357
|
+
"module": "src/config/fallback-agents.ts"
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4360
|
+
]
|
|
4361
|
+
},
|
|
4362
|
+
{
|
|
4363
|
+
"kind": "javascript-module",
|
|
4364
|
+
"path": "src/config/index.ts",
|
|
4365
|
+
"declarations": [],
|
|
4366
|
+
"exports": [
|
|
4367
|
+
{
|
|
4368
|
+
"kind": "js",
|
|
4369
|
+
"name": "*",
|
|
4370
|
+
"declaration": {
|
|
4371
|
+
"name": "*",
|
|
4372
|
+
"package": "./config"
|
|
4373
|
+
}
|
|
4374
|
+
},
|
|
4375
|
+
{
|
|
4376
|
+
"kind": "js",
|
|
4377
|
+
"name": "*",
|
|
4378
|
+
"declaration": {
|
|
4379
|
+
"name": "*",
|
|
4380
|
+
"package": "./fallback-agents"
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
]
|
|
4384
|
+
},
|
|
4385
|
+
{
|
|
4386
|
+
"kind": "javascript-module",
|
|
4387
|
+
"path": "src/config/validate-providers.ts",
|
|
4388
|
+
"declarations": [],
|
|
4389
|
+
"exports": []
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
"kind": "javascript-module",
|
|
4393
|
+
"path": "src/components/flowing-waves-indicator.ts",
|
|
4394
|
+
"declarations": [
|
|
4395
|
+
{
|
|
4396
|
+
"kind": "class",
|
|
4397
|
+
"description": "Animated \"flowing waves\" loading indicator — coloured organic waves (in the\nfour brand colours) whose bumps swell, shrink, merge and split across a line,\ntapering to nothing at both ends. Where the colours overlap they blend\nadditively toward white.\n\nVisual sibling of the dots loading indicator; interchangeable with the other\nloading styles for the \"assistant is working\" state.",
|
|
4398
|
+
"name": "AiFlowingWavesIndicator",
|
|
4399
|
+
"members": [
|
|
4400
|
+
{
|
|
4401
|
+
"kind": "field",
|
|
4402
|
+
"name": "startTime",
|
|
4403
|
+
"type": {
|
|
4404
|
+
"text": "number | undefined"
|
|
4405
|
+
},
|
|
4406
|
+
"privacy": "private"
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
"kind": "field",
|
|
4410
|
+
"name": "animFrame",
|
|
4411
|
+
"type": {
|
|
4412
|
+
"text": "number | undefined"
|
|
4413
|
+
},
|
|
4414
|
+
"privacy": "private"
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
"kind": "field",
|
|
4418
|
+
"name": "bandPaths",
|
|
4419
|
+
"type": {
|
|
4420
|
+
"text": "SVGPathElement[] | undefined"
|
|
4421
|
+
},
|
|
4422
|
+
"privacy": "private"
|
|
4423
|
+
},
|
|
4424
|
+
{
|
|
4425
|
+
"kind": "method",
|
|
4426
|
+
"name": "tick",
|
|
4427
|
+
"privacy": "private",
|
|
4428
|
+
"parameters": [
|
|
4429
|
+
{
|
|
4430
|
+
"name": "now",
|
|
4431
|
+
"optional": true,
|
|
4432
|
+
"type": {
|
|
4433
|
+
"text": "number"
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4436
|
+
]
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"kind": "method",
|
|
4440
|
+
"name": "buildBand",
|
|
4441
|
+
"privacy": "private",
|
|
4442
|
+
"static": true,
|
|
4443
|
+
"return": {
|
|
4444
|
+
"type": {
|
|
4445
|
+
"text": "string"
|
|
4446
|
+
}
|
|
4447
|
+
},
|
|
4448
|
+
"parameters": [
|
|
4449
|
+
{
|
|
4450
|
+
"name": "cfg",
|
|
4451
|
+
"type": {
|
|
4452
|
+
"text": "BandConfig"
|
|
4453
|
+
}
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
"name": "frame",
|
|
4457
|
+
"type": {
|
|
4458
|
+
"text": "number"
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
],
|
|
4462
|
+
"description": "Trace one band for the given frame: a baseline-plus-harmonics half-thickness\nprofile, clamped at 0 (so the band pinches to nothing between bumps) and\ntapered to 0 at both ends."
|
|
4463
|
+
}
|
|
4464
|
+
],
|
|
4465
|
+
"superclass": {
|
|
4466
|
+
"name": "GenesisElement",
|
|
4467
|
+
"package": "@genesislcap/web-core"
|
|
4468
|
+
},
|
|
4469
|
+
"tagName": "ai-flowing-waves-indicator",
|
|
4470
|
+
"customElement": true
|
|
4471
|
+
}
|
|
4472
|
+
],
|
|
4473
|
+
"exports": [
|
|
4474
|
+
{
|
|
4475
|
+
"kind": "js",
|
|
4476
|
+
"name": "AiFlowingWavesIndicator",
|
|
4477
|
+
"declaration": {
|
|
4478
|
+
"name": "AiFlowingWavesIndicator",
|
|
4479
|
+
"module": "src/components/flowing-waves-indicator.ts"
|
|
4480
|
+
}
|
|
4481
|
+
},
|
|
4482
|
+
{
|
|
4483
|
+
"kind": "custom-element-definition",
|
|
4484
|
+
"name": "ai-flowing-waves-indicator",
|
|
4485
|
+
"declaration": {
|
|
4486
|
+
"name": "AiFlowingWavesIndicator",
|
|
4487
|
+
"module": "src/components/flowing-waves-indicator.ts"
|
|
4488
|
+
}
|
|
4489
|
+
}
|
|
4490
|
+
]
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
"kind": "javascript-module",
|
|
4494
|
+
"path": "src/components/halo-overlay.ts",
|
|
4495
|
+
"declarations": [
|
|
4496
|
+
{
|
|
4497
|
+
"kind": "class",
|
|
4498
|
+
"description": "Animated halo overlay — rotating conic-gradient border with an inward glow.\n\nDrop inside any `position: relative; overflow: hidden` container and toggle\nthe `active` attribute to show/hide the effect.",
|
|
4499
|
+
"name": "AiHaloOverlay",
|
|
4500
|
+
"members": [
|
|
4501
|
+
{
|
|
4502
|
+
"kind": "field",
|
|
4503
|
+
"name": "active",
|
|
4504
|
+
"type": {
|
|
4505
|
+
"text": "boolean"
|
|
4506
|
+
},
|
|
4507
|
+
"default": "false"
|
|
4508
|
+
},
|
|
4509
|
+
{
|
|
4510
|
+
"kind": "field",
|
|
4511
|
+
"name": "speed",
|
|
4512
|
+
"type": {
|
|
4513
|
+
"text": "number"
|
|
4514
|
+
},
|
|
4515
|
+
"default": "1.5",
|
|
4516
|
+
"description": "Rotation speed in degrees per frame. Default: 1.5 (≈ 4 s per full revolution at 60 fps)."
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
"kind": "field",
|
|
4520
|
+
"name": "direction",
|
|
4521
|
+
"type": {
|
|
4522
|
+
"text": "'cw' | 'ccw'"
|
|
4523
|
+
},
|
|
4524
|
+
"default": "'cw'",
|
|
4525
|
+
"description": "Rotation direction. Default: 'cw' (clockwise)."
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
"kind": "field",
|
|
4529
|
+
"name": "borderSize",
|
|
4530
|
+
"type": {
|
|
4531
|
+
"text": "number"
|
|
4532
|
+
},
|
|
4533
|
+
"default": "3",
|
|
4534
|
+
"description": "Border thickness in px. Default: 3."
|
|
4223
4535
|
},
|
|
4224
4536
|
{
|
|
4225
4537
|
"kind": "field",
|
|
@@ -4546,291 +4858,60 @@
|
|
|
4546
4858
|
"parameters": [
|
|
4547
4859
|
{
|
|
4548
4860
|
"name": "cfg",
|
|
4549
|
-
"type": {
|
|
4550
|
-
"text": "WaveConfig"
|
|
4551
|
-
}
|
|
4552
|
-
},
|
|
4553
|
-
{
|
|
4554
|
-
"name": "frame",
|
|
4555
|
-
"type": {
|
|
4556
|
-
"text": "number"
|
|
4557
|
-
}
|
|
4558
|
-
}
|
|
4559
|
-
],
|
|
4560
|
-
"description": "Trace one wave's polyline `d` attribute for the given frame."
|
|
4561
|
-
}
|
|
4562
|
-
],
|
|
4563
|
-
"attributes": [
|
|
4564
|
-
{
|
|
4565
|
-
"type": {
|
|
4566
|
-
"text": "number"
|
|
4567
|
-
},
|
|
4568
|
-
"default": "WAVES_DEFAULT_SIZE",
|
|
4569
|
-
"description": "Diameter of the circular window in px. Default: 56.",
|
|
4570
|
-
"resolveInitializer": {
|
|
4571
|
-
"module": "src/components/waves-indicator.ts"
|
|
4572
|
-
},
|
|
4573
|
-
"fieldName": "size"
|
|
4574
|
-
}
|
|
4575
|
-
],
|
|
4576
|
-
"superclass": {
|
|
4577
|
-
"name": "GenesisElement",
|
|
4578
|
-
"package": "@genesislcap/web-core"
|
|
4579
|
-
},
|
|
4580
|
-
"tagName": "ai-waves-indicator",
|
|
4581
|
-
"customElement": true
|
|
4582
|
-
}
|
|
4583
|
-
],
|
|
4584
|
-
"exports": [
|
|
4585
|
-
{
|
|
4586
|
-
"kind": "js",
|
|
4587
|
-
"name": "AiWavesIndicator",
|
|
4588
|
-
"declaration": {
|
|
4589
|
-
"name": "AiWavesIndicator",
|
|
4590
|
-
"module": "src/components/waves-indicator.ts"
|
|
4591
|
-
}
|
|
4592
|
-
},
|
|
4593
|
-
{
|
|
4594
|
-
"kind": "custom-element-definition",
|
|
4595
|
-
"name": "ai-waves-indicator",
|
|
4596
|
-
"declaration": {
|
|
4597
|
-
"name": "AiWavesIndicator",
|
|
4598
|
-
"module": "src/components/waves-indicator.ts"
|
|
4599
|
-
}
|
|
4600
|
-
}
|
|
4601
|
-
]
|
|
4602
|
-
},
|
|
4603
|
-
{
|
|
4604
|
-
"kind": "javascript-module",
|
|
4605
|
-
"path": "src/config/config.ts",
|
|
4606
|
-
"declarations": [
|
|
4607
|
-
{
|
|
4608
|
-
"kind": "function",
|
|
4609
|
-
"name": "defineAgent",
|
|
4610
|
-
"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```"
|
|
4611
|
-
}
|
|
4612
|
-
],
|
|
4613
|
-
"exports": [
|
|
4614
|
-
{
|
|
4615
|
-
"kind": "js",
|
|
4616
|
-
"name": "CachePolicy",
|
|
4617
|
-
"declaration": {
|
|
4618
|
-
"name": "CachePolicy",
|
|
4619
|
-
"module": "src/config/config.ts"
|
|
4620
|
-
}
|
|
4621
|
-
},
|
|
4622
|
-
{
|
|
4623
|
-
"kind": "js",
|
|
4624
|
-
"name": "ChatFallback",
|
|
4625
|
-
"declaration": {
|
|
4626
|
-
"name": "ChatFallback",
|
|
4627
|
-
"module": "src/config/config.ts"
|
|
4628
|
-
}
|
|
4629
|
-
},
|
|
4630
|
-
{
|
|
4631
|
-
"kind": "js",
|
|
4632
|
-
"name": "ChatInputDuringExecutionMode",
|
|
4633
|
-
"declaration": {
|
|
4634
|
-
"name": "ChatInputDuringExecutionMode",
|
|
4635
|
-
"module": "src/config/config.ts"
|
|
4636
|
-
}
|
|
4637
|
-
},
|
|
4638
|
-
{
|
|
4639
|
-
"kind": "js",
|
|
4640
|
-
"name": "ChatThinkingPolicy",
|
|
4641
|
-
"declaration": {
|
|
4642
|
-
"name": "ChatThinkingPolicy",
|
|
4643
|
-
"module": "src/config/config.ts"
|
|
4644
|
-
}
|
|
4645
|
-
},
|
|
4646
|
-
{
|
|
4647
|
-
"kind": "js",
|
|
4648
|
-
"name": "ChatToolChoice",
|
|
4649
|
-
"declaration": {
|
|
4650
|
-
"name": "ChatToolChoice",
|
|
4651
|
-
"module": "src/config/config.ts"
|
|
4652
|
-
}
|
|
4653
|
-
},
|
|
4654
|
-
{
|
|
4655
|
-
"kind": "js",
|
|
4656
|
-
"name": "defineAgent",
|
|
4657
|
-
"declaration": {
|
|
4658
|
-
"name": "defineAgent",
|
|
4659
|
-
"module": "src/config/config.ts"
|
|
4660
|
-
}
|
|
4661
|
-
}
|
|
4662
|
-
]
|
|
4663
|
-
},
|
|
4664
|
-
{
|
|
4665
|
-
"kind": "javascript-module",
|
|
4666
|
-
"path": "src/config/define-stateful-agent.ts",
|
|
4667
|
-
"declarations": [
|
|
4668
|
-
{
|
|
4669
|
-
"kind": "function",
|
|
4670
|
-
"name": "restoreMachine",
|
|
4671
|
-
"return": {
|
|
4672
|
-
"type": {
|
|
4673
|
-
"text": "void"
|
|
4674
|
-
}
|
|
4675
|
-
},
|
|
4676
|
-
"parameters": [
|
|
4677
|
-
{
|
|
4678
|
-
"name": "machine",
|
|
4679
|
-
"type": {
|
|
4680
|
-
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
4681
|
-
},
|
|
4682
|
-
"description": "the machine to restore (already constructed/started)."
|
|
4683
|
-
},
|
|
4684
|
-
{
|
|
4685
|
-
"name": "restored",
|
|
4686
|
-
"type": {
|
|
4687
|
-
"text": "unknown"
|
|
4688
|
-
},
|
|
4689
|
-
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
4690
|
-
},
|
|
4691
|
-
{
|
|
4692
|
-
"name": "key",
|
|
4693
|
-
"default": "'machine'",
|
|
4694
|
-
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
4695
|
-
}
|
|
4696
|
-
],
|
|
4697
|
-
"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."
|
|
4698
|
-
},
|
|
4699
|
-
{
|
|
4700
|
-
"kind": "function",
|
|
4701
|
-
"name": "defineStatefulAgent",
|
|
4702
|
-
"return": {
|
|
4703
|
-
"type": {
|
|
4704
|
-
"text": "AgentConfig"
|
|
4705
|
-
}
|
|
4706
|
-
},
|
|
4707
|
-
"parameters": [
|
|
4708
|
-
{
|
|
4709
|
-
"name": "opts",
|
|
4710
|
-
"type": {
|
|
4711
|
-
"text": "StatefulAgentInit<S>"
|
|
4712
|
-
}
|
|
4713
|
-
}
|
|
4714
|
-
],
|
|
4715
|
-
"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."
|
|
4716
|
-
},
|
|
4717
|
-
{
|
|
4718
|
-
"kind": "function",
|
|
4719
|
-
"name": "defineAutopilot",
|
|
4720
|
-
"return": {
|
|
4721
|
-
"type": {
|
|
4722
|
-
"text": "AutopilotConfig<S>"
|
|
4723
|
-
}
|
|
4724
|
-
},
|
|
4725
|
-
"parameters": [
|
|
4726
|
-
{
|
|
4727
|
-
"name": "config",
|
|
4728
|
-
"type": {
|
|
4729
|
-
"text": "AutopilotConfig<S>"
|
|
4730
|
-
}
|
|
4731
|
-
}
|
|
4732
|
-
],
|
|
4733
|
-
"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."
|
|
4734
|
-
}
|
|
4735
|
-
],
|
|
4736
|
-
"exports": [
|
|
4737
|
-
{
|
|
4738
|
-
"kind": "js",
|
|
4739
|
-
"name": "restoreMachine",
|
|
4740
|
-
"declaration": {
|
|
4741
|
-
"name": "restoreMachine",
|
|
4742
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
4743
|
-
}
|
|
4744
|
-
},
|
|
4745
|
-
{
|
|
4746
|
-
"kind": "js",
|
|
4747
|
-
"name": "defineStatefulAgent",
|
|
4748
|
-
"declaration": {
|
|
4749
|
-
"name": "defineStatefulAgent",
|
|
4750
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
4751
|
-
}
|
|
4752
|
-
},
|
|
4753
|
-
{
|
|
4754
|
-
"kind": "js",
|
|
4755
|
-
"name": "defineAutopilot",
|
|
4756
|
-
"declaration": {
|
|
4757
|
-
"name": "defineAutopilot",
|
|
4758
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
4759
|
-
}
|
|
4760
|
-
}
|
|
4761
|
-
]
|
|
4762
|
-
},
|
|
4763
|
-
{
|
|
4764
|
-
"kind": "javascript-module",
|
|
4765
|
-
"path": "src/config/fallback-agents.ts",
|
|
4766
|
-
"declarations": [
|
|
4767
|
-
{
|
|
4768
|
-
"kind": "variable",
|
|
4769
|
-
"name": "friendlyFallbackAgent",
|
|
4770
|
-
"type": {
|
|
4771
|
-
"text": "FallbackAgentConfig"
|
|
4772
|
-
},
|
|
4773
|
-
"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}",
|
|
4774
|
-
"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."
|
|
4775
|
-
},
|
|
4776
|
-
{
|
|
4777
|
-
"kind": "variable",
|
|
4778
|
-
"name": "strictFallbackAgent",
|
|
4779
|
-
"type": {
|
|
4780
|
-
"text": "FallbackAgentConfig"
|
|
4861
|
+
"type": {
|
|
4862
|
+
"text": "WaveConfig"
|
|
4863
|
+
}
|
|
4864
|
+
},
|
|
4865
|
+
{
|
|
4866
|
+
"name": "frame",
|
|
4867
|
+
"type": {
|
|
4868
|
+
"text": "number"
|
|
4869
|
+
}
|
|
4870
|
+
}
|
|
4871
|
+
],
|
|
4872
|
+
"description": "Trace one wave's polyline `d` attribute for the given frame."
|
|
4873
|
+
}
|
|
4874
|
+
],
|
|
4875
|
+
"attributes": [
|
|
4876
|
+
{
|
|
4877
|
+
"type": {
|
|
4878
|
+
"text": "number"
|
|
4879
|
+
},
|
|
4880
|
+
"default": "WAVES_DEFAULT_SIZE",
|
|
4881
|
+
"description": "Diameter of the circular window in px. Default: 56.",
|
|
4882
|
+
"resolveInitializer": {
|
|
4883
|
+
"module": "src/components/waves-indicator.ts"
|
|
4884
|
+
},
|
|
4885
|
+
"fieldName": "size"
|
|
4886
|
+
}
|
|
4887
|
+
],
|
|
4888
|
+
"superclass": {
|
|
4889
|
+
"name": "GenesisElement",
|
|
4890
|
+
"package": "@genesislcap/web-core"
|
|
4781
4891
|
},
|
|
4782
|
-
"
|
|
4783
|
-
"
|
|
4892
|
+
"tagName": "ai-waves-indicator",
|
|
4893
|
+
"customElement": true
|
|
4784
4894
|
}
|
|
4785
4895
|
],
|
|
4786
4896
|
"exports": [
|
|
4787
4897
|
{
|
|
4788
4898
|
"kind": "js",
|
|
4789
|
-
"name": "
|
|
4790
|
-
"declaration": {
|
|
4791
|
-
"name": "friendlyFallbackAgent",
|
|
4792
|
-
"module": "src/config/fallback-agents.ts"
|
|
4793
|
-
}
|
|
4794
|
-
},
|
|
4795
|
-
{
|
|
4796
|
-
"kind": "js",
|
|
4797
|
-
"name": "strictFallbackAgent",
|
|
4798
|
-
"declaration": {
|
|
4799
|
-
"name": "strictFallbackAgent",
|
|
4800
|
-
"module": "src/config/fallback-agents.ts"
|
|
4801
|
-
}
|
|
4802
|
-
}
|
|
4803
|
-
]
|
|
4804
|
-
},
|
|
4805
|
-
{
|
|
4806
|
-
"kind": "javascript-module",
|
|
4807
|
-
"path": "src/config/index.ts",
|
|
4808
|
-
"declarations": [],
|
|
4809
|
-
"exports": [
|
|
4810
|
-
{
|
|
4811
|
-
"kind": "js",
|
|
4812
|
-
"name": "*",
|
|
4899
|
+
"name": "AiWavesIndicator",
|
|
4813
4900
|
"declaration": {
|
|
4814
|
-
"name": "
|
|
4815
|
-
"
|
|
4901
|
+
"name": "AiWavesIndicator",
|
|
4902
|
+
"module": "src/components/waves-indicator.ts"
|
|
4816
4903
|
}
|
|
4817
4904
|
},
|
|
4818
4905
|
{
|
|
4819
|
-
"kind": "
|
|
4820
|
-
"name": "
|
|
4906
|
+
"kind": "custom-element-definition",
|
|
4907
|
+
"name": "ai-waves-indicator",
|
|
4821
4908
|
"declaration": {
|
|
4822
|
-
"name": "
|
|
4823
|
-
"
|
|
4909
|
+
"name": "AiWavesIndicator",
|
|
4910
|
+
"module": "src/components/waves-indicator.ts"
|
|
4824
4911
|
}
|
|
4825
4912
|
}
|
|
4826
4913
|
]
|
|
4827
4914
|
},
|
|
4828
|
-
{
|
|
4829
|
-
"kind": "javascript-module",
|
|
4830
|
-
"path": "src/config/validate-providers.ts",
|
|
4831
|
-
"declarations": [],
|
|
4832
|
-
"exports": []
|
|
4833
|
-
},
|
|
4834
4915
|
{
|
|
4835
4916
|
"kind": "javascript-module",
|
|
4836
4917
|
"path": "src/genesis/calendar.ts",
|
|
@@ -5934,83 +6015,257 @@
|
|
|
5934
6015
|
"exports": [
|
|
5935
6016
|
{
|
|
5936
6017
|
"kind": "js",
|
|
5937
|
-
"name": "buildEventPayload",
|
|
6018
|
+
"name": "buildEventPayload",
|
|
6019
|
+
"declaration": {
|
|
6020
|
+
"name": "buildEventPayload",
|
|
6021
|
+
"module": "src/genesis/write-payload.ts"
|
|
6022
|
+
}
|
|
6023
|
+
}
|
|
6024
|
+
]
|
|
6025
|
+
},
|
|
6026
|
+
{
|
|
6027
|
+
"kind": "javascript-module",
|
|
6028
|
+
"path": "src/genesis/write-plan.ts",
|
|
6029
|
+
"declarations": [
|
|
6030
|
+
{
|
|
6031
|
+
"kind": "variable",
|
|
6032
|
+
"name": "MAX_WRITE_ROWS",
|
|
6033
|
+
"type": {
|
|
6034
|
+
"text": "number"
|
|
6035
|
+
},
|
|
6036
|
+
"default": "25",
|
|
6037
|
+
"description": "A batch a person can actually read before approving it."
|
|
6038
|
+
}
|
|
6039
|
+
],
|
|
6040
|
+
"exports": [
|
|
6041
|
+
{
|
|
6042
|
+
"kind": "js",
|
|
6043
|
+
"name": "MAX_WRITE_ROWS",
|
|
6044
|
+
"declaration": {
|
|
6045
|
+
"name": "MAX_WRITE_ROWS",
|
|
6046
|
+
"module": "src/genesis/write-plan.ts"
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
]
|
|
6050
|
+
},
|
|
6051
|
+
{
|
|
6052
|
+
"kind": "javascript-module",
|
|
6053
|
+
"path": "src/genesis/write-tools.ts",
|
|
6054
|
+
"declarations": [
|
|
6055
|
+
{
|
|
6056
|
+
"kind": "function",
|
|
6057
|
+
"name": "createGenesisWriteTools",
|
|
6058
|
+
"return": {
|
|
6059
|
+
"type": {
|
|
6060
|
+
"text": "{\n toolDefinitions: () => Promise<ChatToolDefinition[]>;\n toolHandlers: ChatToolHandlers;\n /**\n * The events that can get a write tool, as far as the config can tell: an event refused for its\n * op, its rowSources entry or a malformed references, or a modify or delete with no row source,\n * is not among them. Their metadata, read when the tools are first listed, can still withhold one.\n */\n writableEvents: readonly string[];\n}"
|
|
6061
|
+
}
|
|
6062
|
+
},
|
|
6063
|
+
"parameters": [
|
|
6064
|
+
{
|
|
6065
|
+
"name": "resources",
|
|
6066
|
+
"type": {
|
|
6067
|
+
"text": "readonly GenesisAiResource[]"
|
|
6068
|
+
}
|
|
6069
|
+
},
|
|
6070
|
+
{
|
|
6071
|
+
"name": "options",
|
|
6072
|
+
"default": "{}",
|
|
6073
|
+
"type": {
|
|
6074
|
+
"text": "GenesisWriteToolsOptions"
|
|
6075
|
+
}
|
|
6076
|
+
}
|
|
6077
|
+
],
|
|
6078
|
+
"description": "Builds the assistant's write tools from an app's event resources."
|
|
6079
|
+
}
|
|
6080
|
+
],
|
|
6081
|
+
"exports": [
|
|
6082
|
+
{
|
|
6083
|
+
"kind": "js",
|
|
6084
|
+
"name": "createGenesisWriteTools",
|
|
6085
|
+
"declaration": {
|
|
6086
|
+
"name": "createGenesisWriteTools",
|
|
6087
|
+
"module": "src/genesis/write-tools.ts"
|
|
6088
|
+
}
|
|
6089
|
+
}
|
|
6090
|
+
]
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
"kind": "javascript-module",
|
|
6094
|
+
"path": "src/genesis/write-turn.ts",
|
|
6095
|
+
"declarations": [],
|
|
6096
|
+
"exports": []
|
|
6097
|
+
},
|
|
6098
|
+
{
|
|
6099
|
+
"kind": "javascript-module",
|
|
6100
|
+
"path": "src/notifications/agent-notifications.ts",
|
|
6101
|
+
"declarations": [
|
|
6102
|
+
{
|
|
6103
|
+
"kind": "variable",
|
|
6104
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
6105
|
+
"type": {
|
|
6106
|
+
"text": "string"
|
|
6107
|
+
},
|
|
6108
|
+
"default": "'The assistant is ready for your next input'",
|
|
6109
|
+
"description": "The notification's text when neither the app nor the widget gives one."
|
|
6110
|
+
},
|
|
6111
|
+
{
|
|
6112
|
+
"kind": "function",
|
|
6113
|
+
"name": "agentNotificationPermission",
|
|
6114
|
+
"return": {
|
|
6115
|
+
"type": {
|
|
6116
|
+
"text": "AgentNotificationPermission"
|
|
6117
|
+
}
|
|
6118
|
+
},
|
|
6119
|
+
"description": "Whether this page may show notifications. Safe to call anywhere, including Node."
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
"kind": "function",
|
|
6123
|
+
"name": "requestAgentNotificationPermission",
|
|
6124
|
+
"return": {
|
|
6125
|
+
"type": {
|
|
6126
|
+
"text": "Promise<AgentNotificationPermission>"
|
|
6127
|
+
}
|
|
6128
|
+
},
|
|
6129
|
+
"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."
|
|
6130
|
+
}
|
|
6131
|
+
],
|
|
6132
|
+
"exports": [
|
|
6133
|
+
{
|
|
6134
|
+
"kind": "js",
|
|
6135
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
6136
|
+
"declaration": {
|
|
6137
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
6138
|
+
"module": "src/notifications/agent-notifications.ts"
|
|
6139
|
+
}
|
|
6140
|
+
},
|
|
6141
|
+
{
|
|
6142
|
+
"kind": "js",
|
|
6143
|
+
"name": "agentNotificationPermission",
|
|
6144
|
+
"declaration": {
|
|
6145
|
+
"name": "agentNotificationPermission",
|
|
6146
|
+
"module": "src/notifications/agent-notifications.ts"
|
|
6147
|
+
}
|
|
6148
|
+
},
|
|
6149
|
+
{
|
|
6150
|
+
"kind": "js",
|
|
6151
|
+
"name": "requestAgentNotificationPermission",
|
|
6152
|
+
"declaration": {
|
|
6153
|
+
"name": "requestAgentNotificationPermission",
|
|
6154
|
+
"module": "src/notifications/agent-notifications.ts"
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
6157
|
+
]
|
|
6158
|
+
},
|
|
6159
|
+
{
|
|
6160
|
+
"kind": "javascript-module",
|
|
6161
|
+
"path": "src/notifications/agent-notifier.ts",
|
|
6162
|
+
"declarations": [],
|
|
6163
|
+
"exports": []
|
|
6164
|
+
},
|
|
6165
|
+
{
|
|
6166
|
+
"kind": "javascript-module",
|
|
6167
|
+
"path": "src/notifications/index.ts",
|
|
6168
|
+
"declarations": [],
|
|
6169
|
+
"exports": [
|
|
6170
|
+
{
|
|
6171
|
+
"kind": "js",
|
|
6172
|
+
"name": "agentNotificationPermission",
|
|
6173
|
+
"declaration": {
|
|
6174
|
+
"name": "agentNotificationPermission",
|
|
6175
|
+
"module": "./agent-notifications"
|
|
6176
|
+
}
|
|
6177
|
+
},
|
|
6178
|
+
{
|
|
6179
|
+
"kind": "js",
|
|
6180
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
6181
|
+
"declaration": {
|
|
6182
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
6183
|
+
"module": "./agent-notifications"
|
|
6184
|
+
}
|
|
6185
|
+
},
|
|
6186
|
+
{
|
|
6187
|
+
"kind": "js",
|
|
6188
|
+
"name": "requestAgentNotificationPermission",
|
|
6189
|
+
"declaration": {
|
|
6190
|
+
"name": "requestAgentNotificationPermission",
|
|
6191
|
+
"module": "./agent-notifications"
|
|
6192
|
+
}
|
|
6193
|
+
},
|
|
6194
|
+
{
|
|
6195
|
+
"kind": "js",
|
|
6196
|
+
"name": "type",
|
|
6197
|
+
"declaration": {
|
|
6198
|
+
"name": "type",
|
|
6199
|
+
"module": "./agent-notifications"
|
|
6200
|
+
}
|
|
6201
|
+
},
|
|
6202
|
+
{
|
|
6203
|
+
"kind": "js",
|
|
6204
|
+
"name": "AgentAttentionDetail",
|
|
6205
|
+
"declaration": {
|
|
6206
|
+
"name": "AgentAttentionDetail",
|
|
6207
|
+
"module": "./agent-notifications"
|
|
6208
|
+
}
|
|
6209
|
+
},
|
|
6210
|
+
{
|
|
6211
|
+
"kind": "js",
|
|
6212
|
+
"name": "type",
|
|
6213
|
+
"declaration": {
|
|
6214
|
+
"name": "type",
|
|
6215
|
+
"module": "./agent-notifications"
|
|
6216
|
+
}
|
|
6217
|
+
},
|
|
6218
|
+
{
|
|
6219
|
+
"kind": "js",
|
|
6220
|
+
"name": "AgentAttentionKind",
|
|
6221
|
+
"declaration": {
|
|
6222
|
+
"name": "AgentAttentionKind",
|
|
6223
|
+
"module": "./agent-notifications"
|
|
6224
|
+
}
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"kind": "js",
|
|
6228
|
+
"name": "type",
|
|
6229
|
+
"declaration": {
|
|
6230
|
+
"name": "type",
|
|
6231
|
+
"module": "./agent-notifications"
|
|
6232
|
+
}
|
|
6233
|
+
},
|
|
6234
|
+
{
|
|
6235
|
+
"kind": "js",
|
|
6236
|
+
"name": "AgentNotificationLevel",
|
|
5938
6237
|
"declaration": {
|
|
5939
|
-
"name": "
|
|
5940
|
-
"module": "
|
|
6238
|
+
"name": "AgentNotificationLevel",
|
|
6239
|
+
"module": "./agent-notifications"
|
|
5941
6240
|
}
|
|
5942
|
-
}
|
|
5943
|
-
]
|
|
5944
|
-
},
|
|
5945
|
-
{
|
|
5946
|
-
"kind": "javascript-module",
|
|
5947
|
-
"path": "src/genesis/write-plan.ts",
|
|
5948
|
-
"declarations": [
|
|
5949
|
-
{
|
|
5950
|
-
"kind": "variable",
|
|
5951
|
-
"name": "MAX_WRITE_ROWS",
|
|
5952
|
-
"type": {
|
|
5953
|
-
"text": "number"
|
|
5954
|
-
},
|
|
5955
|
-
"default": "25",
|
|
5956
|
-
"description": "A batch a person can actually read before approving it."
|
|
5957
|
-
}
|
|
5958
|
-
],
|
|
5959
|
-
"exports": [
|
|
6241
|
+
},
|
|
5960
6242
|
{
|
|
5961
6243
|
"kind": "js",
|
|
5962
|
-
"name": "
|
|
6244
|
+
"name": "type",
|
|
5963
6245
|
"declaration": {
|
|
5964
|
-
"name": "
|
|
5965
|
-
"module": "
|
|
6246
|
+
"name": "type",
|
|
6247
|
+
"module": "./agent-notifications"
|
|
5966
6248
|
}
|
|
5967
|
-
}
|
|
5968
|
-
]
|
|
5969
|
-
},
|
|
5970
|
-
{
|
|
5971
|
-
"kind": "javascript-module",
|
|
5972
|
-
"path": "src/genesis/write-tools.ts",
|
|
5973
|
-
"declarations": [
|
|
5974
|
-
{
|
|
5975
|
-
"kind": "function",
|
|
5976
|
-
"name": "createGenesisWriteTools",
|
|
5977
|
-
"return": {
|
|
5978
|
-
"type": {
|
|
5979
|
-
"text": "{\n toolDefinitions: () => Promise<ChatToolDefinition[]>;\n toolHandlers: ChatToolHandlers;\n /**\n * The events that can get a write tool, as far as the config can tell: an event refused for its\n * op, its rowSources entry or a malformed references, or a modify or delete with no row source,\n * is not among them. Their metadata, read when the tools are first listed, can still withhold one.\n */\n writableEvents: readonly string[];\n}"
|
|
5980
|
-
}
|
|
5981
|
-
},
|
|
5982
|
-
"parameters": [
|
|
5983
|
-
{
|
|
5984
|
-
"name": "resources",
|
|
5985
|
-
"type": {
|
|
5986
|
-
"text": "readonly GenesisAiResource[]"
|
|
5987
|
-
}
|
|
5988
|
-
},
|
|
5989
|
-
{
|
|
5990
|
-
"name": "options",
|
|
5991
|
-
"default": "{}",
|
|
5992
|
-
"type": {
|
|
5993
|
-
"text": "GenesisWriteToolsOptions"
|
|
5994
|
-
}
|
|
5995
|
-
}
|
|
5996
|
-
],
|
|
5997
|
-
"description": "Builds the assistant's write tools from an app's event resources."
|
|
5998
|
-
}
|
|
5999
|
-
],
|
|
6000
|
-
"exports": [
|
|
6249
|
+
},
|
|
6001
6250
|
{
|
|
6002
6251
|
"kind": "js",
|
|
6003
|
-
"name": "
|
|
6252
|
+
"name": "AgentNotificationPermission",
|
|
6004
6253
|
"declaration": {
|
|
6005
|
-
"name": "
|
|
6006
|
-
"module": "
|
|
6254
|
+
"name": "AgentNotificationPermission",
|
|
6255
|
+
"module": "./agent-notifications"
|
|
6007
6256
|
}
|
|
6008
6257
|
}
|
|
6009
6258
|
]
|
|
6010
6259
|
},
|
|
6011
6260
|
{
|
|
6012
6261
|
"kind": "javascript-module",
|
|
6013
|
-
"path": "src/
|
|
6262
|
+
"path": "src/notifications/notification-level-picker.template.ts",
|
|
6263
|
+
"declarations": [],
|
|
6264
|
+
"exports": []
|
|
6265
|
+
},
|
|
6266
|
+
{
|
|
6267
|
+
"kind": "javascript-module",
|
|
6268
|
+
"path": "src/notifications/notification-settings.ts",
|
|
6014
6269
|
"declarations": [],
|
|
6015
6270
|
"exports": []
|
|
6016
6271
|
},
|
|
@@ -6593,6 +6848,116 @@
|
|
|
6593
6848
|
},
|
|
6594
6849
|
"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
6850
|
},
|
|
6851
|
+
{
|
|
6852
|
+
"kind": "field",
|
|
6853
|
+
"name": "notificationLevel",
|
|
6854
|
+
"type": {
|
|
6855
|
+
"text": "AgentNotificationLevel"
|
|
6856
|
+
},
|
|
6857
|
+
"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."
|
|
6858
|
+
},
|
|
6859
|
+
{
|
|
6860
|
+
"kind": "field",
|
|
6861
|
+
"name": "effectiveNotificationLevel",
|
|
6862
|
+
"type": {
|
|
6863
|
+
"text": "AgentNotificationLevel"
|
|
6864
|
+
},
|
|
6865
|
+
"description": "The level that applies: the person's choice, as `'off'` when the app no longer offers it.\nWhat the settings picker shows. @internal",
|
|
6866
|
+
"readonly": true
|
|
6867
|
+
},
|
|
6868
|
+
{
|
|
6869
|
+
"kind": "field",
|
|
6870
|
+
"name": "notificationPermission",
|
|
6871
|
+
"type": {
|
|
6872
|
+
"text": "AgentNotificationPermission"
|
|
6873
|
+
},
|
|
6874
|
+
"default": "'unsupported'",
|
|
6875
|
+
"description": "The browser's notification permission, followed while connected. @internal"
|
|
6876
|
+
},
|
|
6877
|
+
{
|
|
6878
|
+
"kind": "field",
|
|
6879
|
+
"name": "notificationPickerRevision",
|
|
6880
|
+
"type": {
|
|
6881
|
+
"text": "number"
|
|
6882
|
+
},
|
|
6883
|
+
"default": "0",
|
|
6884
|
+
"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"
|
|
6885
|
+
},
|
|
6886
|
+
{
|
|
6887
|
+
"kind": "field",
|
|
6888
|
+
"name": "notificationSettingVisible",
|
|
6889
|
+
"type": {
|
|
6890
|
+
"text": "boolean"
|
|
6891
|
+
},
|
|
6892
|
+
"description": "Whether the settings row shows: offered by the app, and possible in this browser. @internal",
|
|
6893
|
+
"readonly": true
|
|
6894
|
+
},
|
|
6895
|
+
{
|
|
6896
|
+
"kind": "field",
|
|
6897
|
+
"name": "notificationAutopilotOffered",
|
|
6898
|
+
"type": {
|
|
6899
|
+
"text": "boolean"
|
|
6900
|
+
},
|
|
6901
|
+
"description": "Whether the settings picker offers the `'autopilot'` level. @internal",
|
|
6902
|
+
"readonly": true
|
|
6903
|
+
},
|
|
6904
|
+
{
|
|
6905
|
+
"kind": "field",
|
|
6906
|
+
"name": "notificationPermissionHint",
|
|
6907
|
+
"type": {
|
|
6908
|
+
"text": "string"
|
|
6909
|
+
},
|
|
6910
|
+
"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",
|
|
6911
|
+
"readonly": true
|
|
6912
|
+
},
|
|
6913
|
+
{
|
|
6914
|
+
"kind": "method",
|
|
6915
|
+
"name": "chooseNotificationLevel",
|
|
6916
|
+
"return": {
|
|
6917
|
+
"type": {
|
|
6918
|
+
"text": "Promise<void>"
|
|
6919
|
+
}
|
|
6920
|
+
},
|
|
6921
|
+
"parameters": [
|
|
6922
|
+
{
|
|
6923
|
+
"name": "level",
|
|
6924
|
+
"type": {
|
|
6925
|
+
"text": "AgentNotificationLevel"
|
|
6926
|
+
}
|
|
6927
|
+
}
|
|
6928
|
+
],
|
|
6929
|
+
"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"
|
|
6930
|
+
},
|
|
6931
|
+
{
|
|
6932
|
+
"kind": "method",
|
|
6933
|
+
"name": "wireNotifications",
|
|
6934
|
+
"privacy": "private",
|
|
6935
|
+
"return": {
|
|
6936
|
+
"type": {
|
|
6937
|
+
"text": "void"
|
|
6938
|
+
}
|
|
6939
|
+
},
|
|
6940
|
+
"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`)."
|
|
6941
|
+
},
|
|
6942
|
+
{
|
|
6943
|
+
"kind": "method",
|
|
6944
|
+
"name": "onAgentAttention",
|
|
6945
|
+
"privacy": "private",
|
|
6946
|
+
"return": {
|
|
6947
|
+
"type": {
|
|
6948
|
+
"text": "void"
|
|
6949
|
+
}
|
|
6950
|
+
},
|
|
6951
|
+
"parameters": [
|
|
6952
|
+
{
|
|
6953
|
+
"name": "detail",
|
|
6954
|
+
"type": {
|
|
6955
|
+
"text": "AgentAttentionDetail"
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
],
|
|
6959
|
+
"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)."
|
|
6960
|
+
},
|
|
6596
6961
|
{
|
|
6597
6962
|
"kind": "field",
|
|
6598
6963
|
"name": "timestampClock",
|
|
@@ -7507,6 +7872,15 @@
|
|
|
7507
7872
|
"privacy": "private",
|
|
7508
7873
|
"description": "Unsubscribe handle for the `tool-loop-end` budget latch (GENC-1464)."
|
|
7509
7874
|
},
|
|
7875
|
+
{
|
|
7876
|
+
"kind": "field",
|
|
7877
|
+
"name": "_unwireNotifications",
|
|
7878
|
+
"type": {
|
|
7879
|
+
"text": "() => void | undefined"
|
|
7880
|
+
},
|
|
7881
|
+
"privacy": "private",
|
|
7882
|
+
"description": "Undoes `wireNotifications`; balanced like `_unsubBudgetLatch`, re-wired per connect."
|
|
7883
|
+
},
|
|
7510
7884
|
{
|
|
7511
7885
|
"kind": "field",
|
|
7512
7886
|
"name": "unsubProviderRegistry",
|
|
@@ -7915,7 +8289,7 @@
|
|
|
7915
8289
|
"text": "void"
|
|
7916
8290
|
}
|
|
7917
8291
|
},
|
|
7918
|
-
"description": "Follow the autopilot host's state, publishing the \"needs you\" signal for the bubble."
|
|
8292
|
+
"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
8293
|
},
|
|
7920
8294
|
{
|
|
7921
8295
|
"kind": "method",
|
|
@@ -9060,6 +9434,16 @@
|
|
|
9060
9434
|
"description": "The pin is locked when a stateful flow is mid-stream — i.e. some agent's\n`onActivate` has fired and it owns live state, and it hasn't yet called\n`releaseAgent`. Derives directly from `flowOwnerAgentName`, the\nsingle source of truth the orchestrator writes on activation and clears\non release. Until the user sends their first message, a freshly pinned\nstateful agent is not yet active and the picker should remain free; the\nuser might change their mind and unpin without anything to clean up.",
|
|
9061
9435
|
"readonly": true
|
|
9062
9436
|
},
|
|
9437
|
+
{
|
|
9438
|
+
"kind": "field",
|
|
9439
|
+
"name": "flowOwnerLabel",
|
|
9440
|
+
"type": {
|
|
9441
|
+
"text": "string | null"
|
|
9442
|
+
},
|
|
9443
|
+
"privacy": "private",
|
|
9444
|
+
"description": "The agent holding the flow lock, by its `displayName` when that is a plain string (the\nfunction form needs the agent's state, so it falls back to `name`, as the driver does).",
|
|
9445
|
+
"readonly": true
|
|
9446
|
+
},
|
|
9063
9447
|
{
|
|
9064
9448
|
"kind": "field",
|
|
9065
9449
|
"name": "agentToggleTitle",
|
|
@@ -9069,13 +9453,59 @@
|
|
|
9069
9453
|
"description": "Tooltip shown on the picker toggle button.",
|
|
9070
9454
|
"readonly": true
|
|
9071
9455
|
},
|
|
9456
|
+
{
|
|
9457
|
+
"kind": "field",
|
|
9458
|
+
"name": "chipAgentName",
|
|
9459
|
+
"type": {
|
|
9460
|
+
"text": "string | null"
|
|
9461
|
+
},
|
|
9462
|
+
"privacy": "private",
|
|
9463
|
+
"description": "The agent the chip shows: the flow owner while it holds the picker, else the pin.",
|
|
9464
|
+
"readonly": true
|
|
9465
|
+
},
|
|
9072
9466
|
{
|
|
9073
9467
|
"kind": "field",
|
|
9074
9468
|
"name": "pinnedAgentColour",
|
|
9075
9469
|
"type": {
|
|
9076
9470
|
"text": "string | undefined"
|
|
9077
9471
|
},
|
|
9078
|
-
"description": "
|
|
9472
|
+
"description": "The pinned agent's colour. Picked from the brand palette by agent position\n(modulo the palette length), so each agent gets a consistent colour across\nrenders. `undefined` when nothing is pinned, the agent isn't in the current\narray, or the host has opted out via `chatConfig.picker.disablePinColours`.\nKept for hosts; the chip's glyph uses\nFoundationAiAssistant.agentButtonColour, which follows the flow\nowner while it holds the picker.",
|
|
9473
|
+
"readonly": true
|
|
9474
|
+
},
|
|
9475
|
+
{
|
|
9476
|
+
"kind": "field",
|
|
9477
|
+
"name": "agentButtonColour",
|
|
9478
|
+
"type": {
|
|
9479
|
+
"text": "string | undefined"
|
|
9480
|
+
},
|
|
9481
|
+
"description": "The chip's glyph colour: the pin's tint, for the agent the chip shows.",
|
|
9482
|
+
"readonly": true
|
|
9483
|
+
},
|
|
9484
|
+
{
|
|
9485
|
+
"kind": "method",
|
|
9486
|
+
"name": "agentColour",
|
|
9487
|
+
"privacy": "private",
|
|
9488
|
+
"return": {
|
|
9489
|
+
"type": {
|
|
9490
|
+
"text": "string | undefined"
|
|
9491
|
+
}
|
|
9492
|
+
},
|
|
9493
|
+
"parameters": [
|
|
9494
|
+
{
|
|
9495
|
+
"name": "name",
|
|
9496
|
+
"type": {
|
|
9497
|
+
"text": "string | null"
|
|
9498
|
+
}
|
|
9499
|
+
}
|
|
9500
|
+
]
|
|
9501
|
+
},
|
|
9502
|
+
{
|
|
9503
|
+
"kind": "field",
|
|
9504
|
+
"name": "agentButtonGlyph",
|
|
9505
|
+
"type": {
|
|
9506
|
+
"text": "'sitemap' | 'thumbtack'"
|
|
9507
|
+
},
|
|
9508
|
+
"description": "The chip's icon: orchestration's, or the pin for one agent getting every message.",
|
|
9079
9509
|
"readonly": true
|
|
9080
9510
|
},
|
|
9081
9511
|
{
|
|
@@ -9084,7 +9514,7 @@
|
|
|
9084
9514
|
"type": {
|
|
9085
9515
|
"text": "string"
|
|
9086
9516
|
},
|
|
9087
|
-
"description": "Label beside the composer's agent glyph: the orchestration label (`Orchestration` unless the\nhost renames it) while the orchestrator is routing, otherwise the pinned agent's name. The name is NOT shortened here —\nthe button truncates with an ellipsis in CSS, so the full name stays\navailable to a screen reader and to the `title` tooltip.",
|
|
9517
|
+
"description": "Label beside the composer's agent glyph: the orchestration label (`Orchestration` unless the\nhost renames it) while the orchestrator is routing, otherwise the pinned agent's name. The name is NOT shortened here —\nthe button truncates with an ellipsis in CSS, so the full name stays\navailable to a screen reader and to the `title` tooltip.\n\nWhile a flow holds the picker, the flow owner is named instead: it gets every message.",
|
|
9088
9518
|
"readonly": true
|
|
9089
9519
|
},
|
|
9090
9520
|
{
|
|
@@ -9120,7 +9550,7 @@
|
|
|
9120
9550
|
"type": {
|
|
9121
9551
|
"text": "string"
|
|
9122
9552
|
},
|
|
9123
|
-
"description": "Placeholder shown in the chat input. Substitutes the pinned agent's name\nwhen one is selected so the user has a clearer signal of where their\nmessage will go; otherwise falls back to the host-provided placeholder.",
|
|
9553
|
+
"description": "Placeholder shown in the chat input. Substitutes the pinned agent's name\nwhen one is selected so the user has a clearer signal of where their\nmessage will go; otherwise falls back to the host-provided placeholder.\nWhile a flow holds the picker and the chip is shown, it names the flow\nowner, as the chip does.",
|
|
9124
9554
|
"readonly": true
|
|
9125
9555
|
},
|
|
9126
9556
|
{
|
|
@@ -11538,7 +11968,78 @@
|
|
|
11538
11968
|
"declarations": [
|
|
11539
11969
|
{
|
|
11540
11970
|
"kind": "function",
|
|
11541
|
-
"name": "agentsKey",
|
|
11971
|
+
"name": "agentsKey",
|
|
11972
|
+
"return": {
|
|
11973
|
+
"type": {
|
|
11974
|
+
"text": "string"
|
|
11975
|
+
}
|
|
11976
|
+
},
|
|
11977
|
+
"parameters": [
|
|
11978
|
+
{
|
|
11979
|
+
"name": "agents",
|
|
11980
|
+
"optional": true,
|
|
11981
|
+
"type": {
|
|
11982
|
+
"text": "AgentConfig[]"
|
|
11983
|
+
}
|
|
11984
|
+
}
|
|
11985
|
+
],
|
|
11986
|
+
"description": "A stable fingerprint for an agents array, compared against the installed driver's to decide\nwhether an `agents` change needs the driver rebuilt.\n\nSo it must change when the driver's tool surface would, and not otherwise: handler key order is\nsorted out, agent order is significant."
|
|
11987
|
+
}
|
|
11988
|
+
],
|
|
11989
|
+
"exports": [
|
|
11990
|
+
{
|
|
11991
|
+
"kind": "js",
|
|
11992
|
+
"name": "agentsKey",
|
|
11993
|
+
"declaration": {
|
|
11994
|
+
"name": "agentsKey",
|
|
11995
|
+
"module": "src/utils/agents-key.ts"
|
|
11996
|
+
}
|
|
11997
|
+
}
|
|
11998
|
+
]
|
|
11999
|
+
},
|
|
12000
|
+
{
|
|
12001
|
+
"kind": "javascript-module",
|
|
12002
|
+
"path": "src/utils/animated-panel-toggle.ts",
|
|
12003
|
+
"declarations": [],
|
|
12004
|
+
"exports": []
|
|
12005
|
+
},
|
|
12006
|
+
{
|
|
12007
|
+
"kind": "javascript-module",
|
|
12008
|
+
"path": "src/utils/animation-exclusivity.ts",
|
|
12009
|
+
"declarations": [],
|
|
12010
|
+
"exports": []
|
|
12011
|
+
},
|
|
12012
|
+
{
|
|
12013
|
+
"kind": "javascript-module",
|
|
12014
|
+
"path": "src/utils/attachment-note.ts",
|
|
12015
|
+
"declarations": [
|
|
12016
|
+
{
|
|
12017
|
+
"kind": "function",
|
|
12018
|
+
"name": "withAttachmentNote",
|
|
12019
|
+
"return": {
|
|
12020
|
+
"type": {
|
|
12021
|
+
"text": "string"
|
|
12022
|
+
}
|
|
12023
|
+
},
|
|
12024
|
+
"parameters": [
|
|
12025
|
+
{
|
|
12026
|
+
"name": "typed",
|
|
12027
|
+
"type": {
|
|
12028
|
+
"text": "string"
|
|
12029
|
+
}
|
|
12030
|
+
},
|
|
12031
|
+
{
|
|
12032
|
+
"name": "files",
|
|
12033
|
+
"type": {
|
|
12034
|
+
"text": "Files"
|
|
12035
|
+
}
|
|
12036
|
+
}
|
|
12037
|
+
],
|
|
12038
|
+
"description": "What a message sent with `files` is stored and shown as: the typed text, then the line."
|
|
12039
|
+
},
|
|
12040
|
+
{
|
|
12041
|
+
"kind": "function",
|
|
12042
|
+
"name": "withoutAttachmentNote",
|
|
11542
12043
|
"return": {
|
|
11543
12044
|
"type": {
|
|
11544
12045
|
"text": "string"
|
|
@@ -11546,39 +12047,40 @@
|
|
|
11546
12047
|
},
|
|
11547
12048
|
"parameters": [
|
|
11548
12049
|
{
|
|
11549
|
-
"name": "
|
|
11550
|
-
"optional": true,
|
|
12050
|
+
"name": "text",
|
|
11551
12051
|
"type": {
|
|
11552
|
-
"text": "
|
|
12052
|
+
"text": "string"
|
|
12053
|
+
}
|
|
12054
|
+
},
|
|
12055
|
+
{
|
|
12056
|
+
"name": "files",
|
|
12057
|
+
"type": {
|
|
12058
|
+
"text": "Files"
|
|
11553
12059
|
}
|
|
11554
12060
|
}
|
|
11555
12061
|
],
|
|
11556
|
-
"description": "
|
|
12062
|
+
"description": "The typed text of a message stored with `files`. Takes off only the line those files add, so\nnothing the user typed is cut."
|
|
11557
12063
|
}
|
|
11558
12064
|
],
|
|
11559
12065
|
"exports": [
|
|
11560
12066
|
{
|
|
11561
12067
|
"kind": "js",
|
|
11562
|
-
"name": "
|
|
12068
|
+
"name": "withAttachmentNote",
|
|
11563
12069
|
"declaration": {
|
|
11564
|
-
"name": "
|
|
11565
|
-
"module": "src/utils/
|
|
12070
|
+
"name": "withAttachmentNote",
|
|
12071
|
+
"module": "src/utils/attachment-note.ts"
|
|
12072
|
+
}
|
|
12073
|
+
},
|
|
12074
|
+
{
|
|
12075
|
+
"kind": "js",
|
|
12076
|
+
"name": "withoutAttachmentNote",
|
|
12077
|
+
"declaration": {
|
|
12078
|
+
"name": "withoutAttachmentNote",
|
|
12079
|
+
"module": "src/utils/attachment-note.ts"
|
|
11566
12080
|
}
|
|
11567
12081
|
}
|
|
11568
12082
|
]
|
|
11569
12083
|
},
|
|
11570
|
-
{
|
|
11571
|
-
"kind": "javascript-module",
|
|
11572
|
-
"path": "src/utils/animated-panel-toggle.ts",
|
|
11573
|
-
"declarations": [],
|
|
11574
|
-
"exports": []
|
|
11575
|
-
},
|
|
11576
|
-
{
|
|
11577
|
-
"kind": "javascript-module",
|
|
11578
|
-
"path": "src/utils/animation-exclusivity.ts",
|
|
11579
|
-
"declarations": [],
|
|
11580
|
-
"exports": []
|
|
11581
|
-
},
|
|
11582
12084
|
{
|
|
11583
12085
|
"kind": "javascript-module",
|
|
11584
12086
|
"path": "src/utils/banked-usage-baselines.ts",
|
|
@@ -15941,6 +16443,17 @@
|
|
|
15941
16443
|
},
|
|
15942
16444
|
"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
16445
|
},
|
|
16446
|
+
{
|
|
16447
|
+
"kind": "method",
|
|
16448
|
+
"name": "openDialog",
|
|
16449
|
+
"privacy": "private",
|
|
16450
|
+
"return": {
|
|
16451
|
+
"type": {
|
|
16452
|
+
"text": "void"
|
|
16453
|
+
}
|
|
16454
|
+
},
|
|
16455
|
+
"description": "Open the dialog beside the orb."
|
|
16456
|
+
},
|
|
15944
16457
|
{
|
|
15945
16458
|
"kind": "method",
|
|
15946
16459
|
"name": "showWaitingIfBadged",
|
|
@@ -20454,6 +20967,255 @@
|
|
|
20454
20967
|
}
|
|
20455
20968
|
]
|
|
20456
20969
|
},
|
|
20970
|
+
{
|
|
20971
|
+
"kind": "javascript-module",
|
|
20972
|
+
"path": "src/components/notification-level/index.ts",
|
|
20973
|
+
"declarations": [],
|
|
20974
|
+
"exports": [
|
|
20975
|
+
{
|
|
20976
|
+
"kind": "js",
|
|
20977
|
+
"name": "*",
|
|
20978
|
+
"declaration": {
|
|
20979
|
+
"name": "*",
|
|
20980
|
+
"package": "./notification-level"
|
|
20981
|
+
}
|
|
20982
|
+
}
|
|
20983
|
+
]
|
|
20984
|
+
},
|
|
20985
|
+
{
|
|
20986
|
+
"kind": "javascript-module",
|
|
20987
|
+
"path": "src/components/notification-level/notification-level.styles.ts",
|
|
20988
|
+
"declarations": [
|
|
20989
|
+
{
|
|
20990
|
+
"kind": "variable",
|
|
20991
|
+
"name": "styles",
|
|
20992
|
+
"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`",
|
|
20993
|
+
"description": "The picker and its hint, laid out like the assistant's own settings row."
|
|
20994
|
+
}
|
|
20995
|
+
],
|
|
20996
|
+
"exports": [
|
|
20997
|
+
{
|
|
20998
|
+
"kind": "js",
|
|
20999
|
+
"name": "styles",
|
|
21000
|
+
"declaration": {
|
|
21001
|
+
"name": "styles",
|
|
21002
|
+
"module": "src/components/notification-level/notification-level.styles.ts"
|
|
21003
|
+
}
|
|
21004
|
+
}
|
|
21005
|
+
]
|
|
21006
|
+
},
|
|
21007
|
+
{
|
|
21008
|
+
"kind": "javascript-module",
|
|
21009
|
+
"path": "src/components/notification-level/notification-level.template.ts",
|
|
21010
|
+
"declarations": [
|
|
21011
|
+
{
|
|
21012
|
+
"kind": "function",
|
|
21013
|
+
"name": "AiNotificationLevelTemplate",
|
|
21014
|
+
"return": {
|
|
21015
|
+
"type": {
|
|
21016
|
+
"text": "ViewTemplate<AiNotificationLevel>"
|
|
21017
|
+
}
|
|
21018
|
+
},
|
|
21019
|
+
"parameters": [
|
|
21020
|
+
{
|
|
21021
|
+
"name": "designSystemPrefix",
|
|
21022
|
+
"type": {
|
|
21023
|
+
"text": "string"
|
|
21024
|
+
}
|
|
21025
|
+
}
|
|
21026
|
+
],
|
|
21027
|
+
"description": "The shared picker, then the permission hint while there is one. Nothing while not offered."
|
|
21028
|
+
}
|
|
21029
|
+
],
|
|
21030
|
+
"exports": [
|
|
21031
|
+
{
|
|
21032
|
+
"kind": "js",
|
|
21033
|
+
"name": "AiNotificationLevelTemplate",
|
|
21034
|
+
"declaration": {
|
|
21035
|
+
"name": "AiNotificationLevelTemplate",
|
|
21036
|
+
"module": "src/components/notification-level/notification-level.template.ts"
|
|
21037
|
+
}
|
|
21038
|
+
}
|
|
21039
|
+
]
|
|
21040
|
+
},
|
|
21041
|
+
{
|
|
21042
|
+
"kind": "javascript-module",
|
|
21043
|
+
"path": "src/components/notification-level/notification-level.ts",
|
|
21044
|
+
"declarations": [
|
|
21045
|
+
{
|
|
21046
|
+
"kind": "class",
|
|
21047
|
+
"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```",
|
|
21048
|
+
"name": "AiNotificationLevel",
|
|
21049
|
+
"members": [
|
|
21050
|
+
{
|
|
21051
|
+
"kind": "field",
|
|
21052
|
+
"name": "sessionKey",
|
|
21053
|
+
"type": {
|
|
21054
|
+
"text": "string | undefined"
|
|
21055
|
+
},
|
|
21056
|
+
"description": "The session whose level this picks: the assistant's `session-key` (or state key)."
|
|
21057
|
+
},
|
|
21058
|
+
{
|
|
21059
|
+
"kind": "field",
|
|
21060
|
+
"name": "designSystemPrefix",
|
|
21061
|
+
"type": {
|
|
21062
|
+
"text": "string"
|
|
21063
|
+
},
|
|
21064
|
+
"default": "'rapid'"
|
|
21065
|
+
},
|
|
21066
|
+
{
|
|
21067
|
+
"kind": "field",
|
|
21068
|
+
"name": "notificationPermission",
|
|
21069
|
+
"type": {
|
|
21070
|
+
"text": "AgentNotificationPermission"
|
|
21071
|
+
},
|
|
21072
|
+
"default": "'unsupported'",
|
|
21073
|
+
"description": "The browser's notification permission, followed while connected. @internal"
|
|
21074
|
+
},
|
|
21075
|
+
{
|
|
21076
|
+
"kind": "field",
|
|
21077
|
+
"name": "notificationPickerRevision",
|
|
21078
|
+
"type": {
|
|
21079
|
+
"text": "number"
|
|
21080
|
+
},
|
|
21081
|
+
"default": "0",
|
|
21082
|
+
"description": "See `NotificationLevelPickerSource`. @internal"
|
|
21083
|
+
},
|
|
21084
|
+
{
|
|
21085
|
+
"kind": "field",
|
|
21086
|
+
"name": "settingsRevision",
|
|
21087
|
+
"type": {
|
|
21088
|
+
"text": "number"
|
|
21089
|
+
},
|
|
21090
|
+
"default": "0",
|
|
21091
|
+
"description": "Bumped whenever the session's settings may have changed, so the getters re-read. @internal"
|
|
21092
|
+
},
|
|
21093
|
+
{
|
|
21094
|
+
"kind": "field",
|
|
21095
|
+
"name": "unwire",
|
|
21096
|
+
"type": {
|
|
21097
|
+
"text": "() => void | undefined"
|
|
21098
|
+
},
|
|
21099
|
+
"privacy": "private"
|
|
21100
|
+
},
|
|
21101
|
+
{
|
|
21102
|
+
"kind": "method",
|
|
21103
|
+
"name": "sessionKeyChanged",
|
|
21104
|
+
"return": {
|
|
21105
|
+
"type": {
|
|
21106
|
+
"text": "void"
|
|
21107
|
+
}
|
|
21108
|
+
}
|
|
21109
|
+
},
|
|
21110
|
+
{
|
|
21111
|
+
"kind": "field",
|
|
21112
|
+
"name": "host",
|
|
21113
|
+
"type": {
|
|
21114
|
+
"text": "NotificationSettingsHost | undefined"
|
|
21115
|
+
},
|
|
21116
|
+
"privacy": "private",
|
|
21117
|
+
"readonly": true
|
|
21118
|
+
},
|
|
21119
|
+
{
|
|
21120
|
+
"kind": "field",
|
|
21121
|
+
"name": "offered",
|
|
21122
|
+
"type": {
|
|
21123
|
+
"text": "boolean"
|
|
21124
|
+
},
|
|
21125
|
+
"description": "Whether to render: a connected assistant holds the session, offers it, and the browser can. @internal",
|
|
21126
|
+
"readonly": true
|
|
21127
|
+
},
|
|
21128
|
+
{
|
|
21129
|
+
"kind": "field",
|
|
21130
|
+
"name": "effectiveNotificationLevel",
|
|
21131
|
+
"type": {
|
|
21132
|
+
"text": "AgentNotificationLevel"
|
|
21133
|
+
},
|
|
21134
|
+
"description": "See `NotificationLevelPickerSource`. @internal",
|
|
21135
|
+
"readonly": true
|
|
21136
|
+
},
|
|
21137
|
+
{
|
|
21138
|
+
"kind": "field",
|
|
21139
|
+
"name": "notificationAutopilotOffered",
|
|
21140
|
+
"type": {
|
|
21141
|
+
"text": "boolean"
|
|
21142
|
+
},
|
|
21143
|
+
"description": "See `NotificationLevelPickerSource`. @internal",
|
|
21144
|
+
"readonly": true
|
|
21145
|
+
},
|
|
21146
|
+
{
|
|
21147
|
+
"kind": "field",
|
|
21148
|
+
"name": "permissionHint",
|
|
21149
|
+
"type": {
|
|
21150
|
+
"text": "string"
|
|
21151
|
+
},
|
|
21152
|
+
"description": "The hint under the picker when the browser will not show notifications. @internal",
|
|
21153
|
+
"readonly": true
|
|
21154
|
+
},
|
|
21155
|
+
{
|
|
21156
|
+
"kind": "method",
|
|
21157
|
+
"name": "chooseNotificationLevel",
|
|
21158
|
+
"return": {
|
|
21159
|
+
"type": {
|
|
21160
|
+
"text": "Promise<void>"
|
|
21161
|
+
}
|
|
21162
|
+
},
|
|
21163
|
+
"parameters": [
|
|
21164
|
+
{
|
|
21165
|
+
"name": "level",
|
|
21166
|
+
"type": {
|
|
21167
|
+
"text": "AgentNotificationLevel"
|
|
21168
|
+
}
|
|
21169
|
+
}
|
|
21170
|
+
],
|
|
21171
|
+
"description": "See `NotificationLevelPickerSource`. @internal"
|
|
21172
|
+
}
|
|
21173
|
+
],
|
|
21174
|
+
"attributes": [
|
|
21175
|
+
{
|
|
21176
|
+
"name": "session-key",
|
|
21177
|
+
"type": {
|
|
21178
|
+
"text": "string | undefined"
|
|
21179
|
+
},
|
|
21180
|
+
"description": "The session whose level this picks: the assistant's `session-key` (or state key).",
|
|
21181
|
+
"fieldName": "sessionKey"
|
|
21182
|
+
},
|
|
21183
|
+
{
|
|
21184
|
+
"name": "design-system-prefix",
|
|
21185
|
+
"type": {
|
|
21186
|
+
"text": "string"
|
|
21187
|
+
},
|
|
21188
|
+
"default": "'rapid'",
|
|
21189
|
+
"fieldName": "designSystemPrefix"
|
|
21190
|
+
}
|
|
21191
|
+
],
|
|
21192
|
+
"superclass": {
|
|
21193
|
+
"name": "GenesisElement",
|
|
21194
|
+
"package": "@genesislcap/web-core"
|
|
21195
|
+
},
|
|
21196
|
+
"tagName": "foundation-ai-notification-level",
|
|
21197
|
+
"customElement": true
|
|
21198
|
+
}
|
|
21199
|
+
],
|
|
21200
|
+
"exports": [
|
|
21201
|
+
{
|
|
21202
|
+
"kind": "js",
|
|
21203
|
+
"name": "AiNotificationLevel",
|
|
21204
|
+
"declaration": {
|
|
21205
|
+
"name": "AiNotificationLevel",
|
|
21206
|
+
"module": "src/components/notification-level/notification-level.ts"
|
|
21207
|
+
}
|
|
21208
|
+
},
|
|
21209
|
+
{
|
|
21210
|
+
"kind": "custom-element-definition",
|
|
21211
|
+
"name": "foundation-ai-notification-level",
|
|
21212
|
+
"declaration": {
|
|
21213
|
+
"name": "AiNotificationLevel",
|
|
21214
|
+
"module": "src/components/notification-level/notification-level.ts"
|
|
21215
|
+
}
|
|
21216
|
+
}
|
|
21217
|
+
]
|
|
21218
|
+
},
|
|
20457
21219
|
{
|
|
20458
21220
|
"kind": "javascript-module",
|
|
20459
21221
|
"path": "src/components/orchestrating-driver/index.ts",
|
|
@@ -21997,7 +22759,7 @@
|
|
|
21997
22759
|
{
|
|
21998
22760
|
"kind": "variable",
|
|
21999
22761
|
"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`",
|
|
22762
|
+
"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
22763
|
"description": "Styles for the assistant settings modal (tabs, sections, toggles, cost summary)."
|
|
22002
22764
|
}
|
|
22003
22765
|
],
|