@genesislcap/ai-assistant 15.41.0 → 15.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1230,211 +1230,6 @@
1230
1230
  "declarations": [],
1231
1231
  "exports": []
1232
1232
  },
1233
- {
1234
- "kind": "javascript-module",
1235
- "path": "src/config/config.ts",
1236
- "declarations": [
1237
- {
1238
- "kind": "function",
1239
- "name": "defineAgent",
1240
- "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```"
1241
- }
1242
- ],
1243
- "exports": [
1244
- {
1245
- "kind": "js",
1246
- "name": "CachePolicy",
1247
- "declaration": {
1248
- "name": "CachePolicy",
1249
- "module": "src/config/config.ts"
1250
- }
1251
- },
1252
- {
1253
- "kind": "js",
1254
- "name": "ChatFallback",
1255
- "declaration": {
1256
- "name": "ChatFallback",
1257
- "module": "src/config/config.ts"
1258
- }
1259
- },
1260
- {
1261
- "kind": "js",
1262
- "name": "ChatInputDuringExecutionMode",
1263
- "declaration": {
1264
- "name": "ChatInputDuringExecutionMode",
1265
- "module": "src/config/config.ts"
1266
- }
1267
- },
1268
- {
1269
- "kind": "js",
1270
- "name": "ChatThinkingPolicy",
1271
- "declaration": {
1272
- "name": "ChatThinkingPolicy",
1273
- "module": "src/config/config.ts"
1274
- }
1275
- },
1276
- {
1277
- "kind": "js",
1278
- "name": "ChatToolChoice",
1279
- "declaration": {
1280
- "name": "ChatToolChoice",
1281
- "module": "src/config/config.ts"
1282
- }
1283
- },
1284
- {
1285
- "kind": "js",
1286
- "name": "defineAgent",
1287
- "declaration": {
1288
- "name": "defineAgent",
1289
- "module": "src/config/config.ts"
1290
- }
1291
- }
1292
- ]
1293
- },
1294
- {
1295
- "kind": "javascript-module",
1296
- "path": "src/config/define-stateful-agent.ts",
1297
- "declarations": [
1298
- {
1299
- "kind": "function",
1300
- "name": "restoreMachine",
1301
- "return": {
1302
- "type": {
1303
- "text": "void"
1304
- }
1305
- },
1306
- "parameters": [
1307
- {
1308
- "name": "machine",
1309
- "type": {
1310
- "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
1311
- },
1312
- "description": "the machine to restore (already constructed/started)."
1313
- },
1314
- {
1315
- "name": "restored",
1316
- "type": {
1317
- "text": "unknown"
1318
- },
1319
- "description": "the agent's serialized image (`ctx.restored` in `init`)."
1320
- },
1321
- {
1322
- "name": "key",
1323
- "default": "'machine'",
1324
- "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
1325
- }
1326
- ],
1327
- "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."
1328
- },
1329
- {
1330
- "kind": "function",
1331
- "name": "defineStatefulAgent",
1332
- "return": {
1333
- "type": {
1334
- "text": "AgentConfig"
1335
- }
1336
- },
1337
- "parameters": [
1338
- {
1339
- "name": "opts",
1340
- "type": {
1341
- "text": "StatefulAgentInit<S>"
1342
- }
1343
- }
1344
- ],
1345
- "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."
1346
- }
1347
- ],
1348
- "exports": [
1349
- {
1350
- "kind": "js",
1351
- "name": "restoreMachine",
1352
- "declaration": {
1353
- "name": "restoreMachine",
1354
- "module": "src/config/define-stateful-agent.ts"
1355
- }
1356
- },
1357
- {
1358
- "kind": "js",
1359
- "name": "defineStatefulAgent",
1360
- "declaration": {
1361
- "name": "defineStatefulAgent",
1362
- "module": "src/config/define-stateful-agent.ts"
1363
- }
1364
- }
1365
- ]
1366
- },
1367
- {
1368
- "kind": "javascript-module",
1369
- "path": "src/config/fallback-agents.ts",
1370
- "declarations": [
1371
- {
1372
- "kind": "variable",
1373
- "name": "friendlyFallbackAgent",
1374
- "type": {
1375
- "text": "FallbackAgentConfig"
1376
- },
1377
- "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}",
1378
- "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."
1379
- },
1380
- {
1381
- "kind": "variable",
1382
- "name": "strictFallbackAgent",
1383
- "type": {
1384
- "text": "FallbackAgentConfig"
1385
- },
1386
- "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}",
1387
- "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."
1388
- }
1389
- ],
1390
- "exports": [
1391
- {
1392
- "kind": "js",
1393
- "name": "friendlyFallbackAgent",
1394
- "declaration": {
1395
- "name": "friendlyFallbackAgent",
1396
- "module": "src/config/fallback-agents.ts"
1397
- }
1398
- },
1399
- {
1400
- "kind": "js",
1401
- "name": "strictFallbackAgent",
1402
- "declaration": {
1403
- "name": "strictFallbackAgent",
1404
- "module": "src/config/fallback-agents.ts"
1405
- }
1406
- }
1407
- ]
1408
- },
1409
- {
1410
- "kind": "javascript-module",
1411
- "path": "src/config/index.ts",
1412
- "declarations": [],
1413
- "exports": [
1414
- {
1415
- "kind": "js",
1416
- "name": "*",
1417
- "declaration": {
1418
- "name": "*",
1419
- "package": "./config"
1420
- }
1421
- },
1422
- {
1423
- "kind": "js",
1424
- "name": "*",
1425
- "declaration": {
1426
- "name": "*",
1427
- "package": "./fallback-agents"
1428
- }
1429
- }
1430
- ]
1431
- },
1432
- {
1433
- "kind": "javascript-module",
1434
- "path": "src/config/validate-providers.ts",
1435
- "declarations": [],
1436
- "exports": []
1437
- },
1438
1233
  {
1439
1234
  "kind": "javascript-module",
1440
1235
  "path": "src/components/flowing-waves-indicator.ts",
@@ -1961,64 +1756,269 @@
1961
1756
  },
1962
1757
  {
1963
1758
  "kind": "javascript-module",
1964
- "path": "src/genesis/calendar.ts",
1965
- "declarations": [],
1966
- "exports": []
1967
- },
1968
- {
1969
- "kind": "javascript-module",
1970
- "path": "src/genesis/config.ts",
1759
+ "path": "src/config/config.ts",
1971
1760
  "declarations": [
1972
- {
1973
- "kind": "variable",
1974
- "name": "DEFAULT_MAX_ROWS",
1975
- "type": {
1976
- "text": "number"
1977
- },
1978
- "default": "50",
1979
- "description": "The default read cap, and the ceiling the config may raise it to."
1980
- },
1981
- {
1982
- "kind": "variable",
1983
- "name": "MAX_ROWS_CEILING",
1984
- "type": {
1985
- "text": "number"
1986
- },
1987
- "default": "1000"
1988
- },
1989
1761
  {
1990
1762
  "kind": "function",
1991
- "name": "toolNameOf",
1992
- "return": {
1993
- "type": {
1994
- "text": "string"
1995
- }
1996
- },
1997
- "parameters": [
1998
- {
1999
- "name": "resourceName",
2000
- "type": {
2001
- "text": "string"
2002
- }
2003
- }
2004
- ],
2005
- "description": "The model-facing tool name for a resource. Deterministic and collision-free (resource names\nare unique), and trivially mapped back to the resource in a debug log. What the tool is FOR\nreaches the model through its description, not its name."
1763
+ "name": "defineAgent",
1764
+ "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```"
2006
1765
  }
2007
1766
  ],
2008
1767
  "exports": [
2009
1768
  {
2010
1769
  "kind": "js",
2011
- "name": "DEFAULT_MAX_ROWS",
1770
+ "name": "CachePolicy",
2012
1771
  "declaration": {
2013
- "name": "DEFAULT_MAX_ROWS",
2014
- "module": "src/genesis/config.ts"
1772
+ "name": "CachePolicy",
1773
+ "module": "src/config/config.ts"
2015
1774
  }
2016
1775
  },
2017
1776
  {
2018
1777
  "kind": "js",
2019
- "name": "MAX_ROWS_CEILING",
1778
+ "name": "ChatFallback",
2020
1779
  "declaration": {
2021
- "name": "MAX_ROWS_CEILING",
1780
+ "name": "ChatFallback",
1781
+ "module": "src/config/config.ts"
1782
+ }
1783
+ },
1784
+ {
1785
+ "kind": "js",
1786
+ "name": "ChatInputDuringExecutionMode",
1787
+ "declaration": {
1788
+ "name": "ChatInputDuringExecutionMode",
1789
+ "module": "src/config/config.ts"
1790
+ }
1791
+ },
1792
+ {
1793
+ "kind": "js",
1794
+ "name": "ChatThinkingPolicy",
1795
+ "declaration": {
1796
+ "name": "ChatThinkingPolicy",
1797
+ "module": "src/config/config.ts"
1798
+ }
1799
+ },
1800
+ {
1801
+ "kind": "js",
1802
+ "name": "ChatToolChoice",
1803
+ "declaration": {
1804
+ "name": "ChatToolChoice",
1805
+ "module": "src/config/config.ts"
1806
+ }
1807
+ },
1808
+ {
1809
+ "kind": "js",
1810
+ "name": "defineAgent",
1811
+ "declaration": {
1812
+ "name": "defineAgent",
1813
+ "module": "src/config/config.ts"
1814
+ }
1815
+ }
1816
+ ]
1817
+ },
1818
+ {
1819
+ "kind": "javascript-module",
1820
+ "path": "src/config/define-stateful-agent.ts",
1821
+ "declarations": [
1822
+ {
1823
+ "kind": "function",
1824
+ "name": "restoreMachine",
1825
+ "return": {
1826
+ "type": {
1827
+ "text": "void"
1828
+ }
1829
+ },
1830
+ "parameters": [
1831
+ {
1832
+ "name": "machine",
1833
+ "type": {
1834
+ "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
1835
+ },
1836
+ "description": "the machine to restore (already constructed/started)."
1837
+ },
1838
+ {
1839
+ "name": "restored",
1840
+ "type": {
1841
+ "text": "unknown"
1842
+ },
1843
+ "description": "the agent's serialized image (`ctx.restored` in `init`)."
1844
+ },
1845
+ {
1846
+ "name": "key",
1847
+ "default": "'machine'",
1848
+ "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
1849
+ }
1850
+ ],
1851
+ "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."
1852
+ },
1853
+ {
1854
+ "kind": "function",
1855
+ "name": "defineStatefulAgent",
1856
+ "return": {
1857
+ "type": {
1858
+ "text": "AgentConfig"
1859
+ }
1860
+ },
1861
+ "parameters": [
1862
+ {
1863
+ "name": "opts",
1864
+ "type": {
1865
+ "text": "StatefulAgentInit<S>"
1866
+ }
1867
+ }
1868
+ ],
1869
+ "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."
1870
+ }
1871
+ ],
1872
+ "exports": [
1873
+ {
1874
+ "kind": "js",
1875
+ "name": "restoreMachine",
1876
+ "declaration": {
1877
+ "name": "restoreMachine",
1878
+ "module": "src/config/define-stateful-agent.ts"
1879
+ }
1880
+ },
1881
+ {
1882
+ "kind": "js",
1883
+ "name": "defineStatefulAgent",
1884
+ "declaration": {
1885
+ "name": "defineStatefulAgent",
1886
+ "module": "src/config/define-stateful-agent.ts"
1887
+ }
1888
+ }
1889
+ ]
1890
+ },
1891
+ {
1892
+ "kind": "javascript-module",
1893
+ "path": "src/config/fallback-agents.ts",
1894
+ "declarations": [
1895
+ {
1896
+ "kind": "variable",
1897
+ "name": "friendlyFallbackAgent",
1898
+ "type": {
1899
+ "text": "FallbackAgentConfig"
1900
+ },
1901
+ "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}",
1902
+ "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."
1903
+ },
1904
+ {
1905
+ "kind": "variable",
1906
+ "name": "strictFallbackAgent",
1907
+ "type": {
1908
+ "text": "FallbackAgentConfig"
1909
+ },
1910
+ "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}",
1911
+ "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."
1912
+ }
1913
+ ],
1914
+ "exports": [
1915
+ {
1916
+ "kind": "js",
1917
+ "name": "friendlyFallbackAgent",
1918
+ "declaration": {
1919
+ "name": "friendlyFallbackAgent",
1920
+ "module": "src/config/fallback-agents.ts"
1921
+ }
1922
+ },
1923
+ {
1924
+ "kind": "js",
1925
+ "name": "strictFallbackAgent",
1926
+ "declaration": {
1927
+ "name": "strictFallbackAgent",
1928
+ "module": "src/config/fallback-agents.ts"
1929
+ }
1930
+ }
1931
+ ]
1932
+ },
1933
+ {
1934
+ "kind": "javascript-module",
1935
+ "path": "src/config/index.ts",
1936
+ "declarations": [],
1937
+ "exports": [
1938
+ {
1939
+ "kind": "js",
1940
+ "name": "*",
1941
+ "declaration": {
1942
+ "name": "*",
1943
+ "package": "./config"
1944
+ }
1945
+ },
1946
+ {
1947
+ "kind": "js",
1948
+ "name": "*",
1949
+ "declaration": {
1950
+ "name": "*",
1951
+ "package": "./fallback-agents"
1952
+ }
1953
+ }
1954
+ ]
1955
+ },
1956
+ {
1957
+ "kind": "javascript-module",
1958
+ "path": "src/config/validate-providers.ts",
1959
+ "declarations": [],
1960
+ "exports": []
1961
+ },
1962
+ {
1963
+ "kind": "javascript-module",
1964
+ "path": "src/genesis/calendar.ts",
1965
+ "declarations": [],
1966
+ "exports": []
1967
+ },
1968
+ {
1969
+ "kind": "javascript-module",
1970
+ "path": "src/genesis/config.ts",
1971
+ "declarations": [
1972
+ {
1973
+ "kind": "variable",
1974
+ "name": "DEFAULT_MAX_ROWS",
1975
+ "type": {
1976
+ "text": "number"
1977
+ },
1978
+ "default": "50",
1979
+ "description": "The default read cap, and the ceiling the config may raise it to."
1980
+ },
1981
+ {
1982
+ "kind": "variable",
1983
+ "name": "MAX_ROWS_CEILING",
1984
+ "type": {
1985
+ "text": "number"
1986
+ },
1987
+ "default": "1000"
1988
+ },
1989
+ {
1990
+ "kind": "function",
1991
+ "name": "toolNameOf",
1992
+ "return": {
1993
+ "type": {
1994
+ "text": "string"
1995
+ }
1996
+ },
1997
+ "parameters": [
1998
+ {
1999
+ "name": "resourceName",
2000
+ "type": {
2001
+ "text": "string"
2002
+ }
2003
+ }
2004
+ ],
2005
+ "description": "The model-facing tool name for a resource. Deterministic and collision-free (resource names\nare unique), and trivially mapped back to the resource in a debug log. What the tool is FOR\nreaches the model through its description, not its name."
2006
+ }
2007
+ ],
2008
+ "exports": [
2009
+ {
2010
+ "kind": "js",
2011
+ "name": "DEFAULT_MAX_ROWS",
2012
+ "declaration": {
2013
+ "name": "DEFAULT_MAX_ROWS",
2014
+ "module": "src/genesis/config.ts"
2015
+ }
2016
+ },
2017
+ {
2018
+ "kind": "js",
2019
+ "name": "MAX_ROWS_CEILING",
2020
+ "declaration": {
2021
+ "name": "MAX_ROWS_CEILING",
2022
2022
  "module": "src/genesis/config.ts"
2023
2023
  }
2024
2024
  },
@@ -6312,143 +6312,407 @@
6312
6312
  },
6313
6313
  {
6314
6314
  "kind": "javascript-module",
6315
- "path": "src/state/ai-assistant-slice.ts",
6315
+ "path": "src/provider/ai-provider-switcher.ts",
6316
6316
  "declarations": [
6317
- {
6318
- "kind": "function",
6319
- "name": "createDefaultSessionState",
6320
- "return": {
6321
- "type": {
6322
- "text": "AiAssistantSessionState"
6323
- }
6324
- },
6325
- "description": "Build a fresh default session state. A factory (not just a shared const) so\neach call returns independent collections — `resetSession` can hand back a\nclean slate without aliasing the initial state's arrays."
6326
- },
6327
6317
  {
6328
6318
  "kind": "variable",
6329
- "name": "defaultSessionState",
6330
- "type": {
6331
- "text": "AiAssistantSessionState"
6332
- }
6333
- },
6334
- {
6335
- "kind": "variable",
6336
- "name": "aiAssistantSlice"
6319
+ "name": "AIProviderSwitcher",
6320
+ "description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
6337
6321
  }
6338
6322
  ],
6339
6323
  "exports": [
6340
6324
  {
6341
6325
  "kind": "js",
6342
- "name": "createDefaultSessionState",
6326
+ "name": "AIProviderSwitcher",
6343
6327
  "declaration": {
6344
- "name": "createDefaultSessionState",
6345
- "module": "src/state/ai-assistant-slice.ts"
6328
+ "name": "AIProviderSwitcher",
6329
+ "module": "src/provider/ai-provider-switcher.ts"
6346
6330
  }
6347
- },
6331
+ }
6332
+ ]
6333
+ },
6334
+ {
6335
+ "kind": "javascript-module",
6336
+ "path": "src/provider/assistant-app-settings.ts",
6337
+ "declarations": [
6348
6338
  {
6349
- "kind": "js",
6350
- "name": "defaultSessionState",
6351
- "declaration": {
6352
- "name": "defaultSessionState",
6353
- "module": "src/state/ai-assistant-slice.ts"
6354
- }
6355
- },
6339
+ "kind": "variable",
6340
+ "name": "AssistantAppSettingsProvider",
6341
+ "description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
6342
+ }
6343
+ ],
6344
+ "exports": [
6356
6345
  {
6357
6346
  "kind": "js",
6358
- "name": "aiAssistantSlice",
6347
+ "name": "AssistantAppSettingsProvider",
6359
6348
  "declaration": {
6360
- "name": "aiAssistantSlice",
6361
- "module": "src/state/ai-assistant-slice.ts"
6349
+ "name": "AssistantAppSettingsProvider",
6350
+ "module": "src/provider/assistant-app-settings.ts"
6362
6351
  }
6363
6352
  }
6364
6353
  ]
6365
6354
  },
6366
6355
  {
6367
6356
  "kind": "javascript-module",
6368
- "path": "src/state/debug-event-log.ts",
6357
+ "path": "src/provider/tiered-provider-switcher.ts",
6369
6358
  "declarations": [
6370
6359
  {
6371
- "kind": "variable",
6372
- "name": "META_EVENT_IMPORTANCE",
6373
- "type": {
6374
- "text": "Record<MetaEventType, MetaEventImportance>"
6375
- },
6376
- "default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
6377
- "description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
6378
- },
6379
- {
6380
- "kind": "function",
6381
- "name": "recordMetaEvent",
6382
- "return": {
6383
- "type": {
6384
- "text": "void"
6385
- }
6386
- },
6387
- "parameters": [
6360
+ "kind": "class",
6361
+ "description": "Which cloud vendor backs the tier-shaped provider registry, plus the means to move it at\nruntime (GENC-1610).",
6362
+ "name": "TieredAIProviderSwitcher",
6363
+ "members": [
6388
6364
  {
6389
- "name": "key",
6365
+ "kind": "field",
6366
+ "name": "vendors",
6390
6367
  "type": {
6391
- "text": "string"
6392
- }
6368
+ "text": "readonly AITierVendor[]"
6369
+ },
6370
+ "readonly": true
6393
6371
  },
6394
6372
  {
6395
- "name": "type",
6373
+ "kind": "field",
6374
+ "name": "options",
6396
6375
  "type": {
6397
- "text": "MetaEventType"
6398
- }
6376
+ "text": "TieredAIProviderSwitcherOptions"
6377
+ },
6378
+ "privacy": "private",
6379
+ "readonly": true,
6380
+ "default": "options"
6399
6381
  },
6400
6382
  {
6401
- "name": "detail",
6402
- "optional": true,
6383
+ "kind": "field",
6384
+ "name": "defaultTier",
6403
6385
  "type": {
6404
- "text": "Record<string, unknown>"
6405
- }
6406
- }
6407
- ],
6408
- "description": "Append a meta event to the timeline for `key`. Once the buffer exceeds\nDEFAULT_MAX_META_EVENTS, evicts the oldest *non-`high`* event;\n`high`-importance events are never evicted. An empty `key` is bucketed under\n`''`, matching how drivers/stores handle an absent session identity, so\ncallers never need to guard."
6409
- },
6410
- {
6411
- "kind": "function",
6412
- "name": "recordTurnError",
6413
- "return": {
6414
- "type": {
6415
- "text": "void"
6416
- }
6417
- },
6418
- "parameters": [
6386
+ "text": "AITierId"
6387
+ },
6388
+ "privacy": "private",
6389
+ "readonly": true
6390
+ },
6419
6391
  {
6420
- "name": "key",
6392
+ "kind": "field",
6393
+ "name": "registry",
6421
6394
  "type": {
6422
- "text": "string"
6423
- }
6395
+ "text": "MutableAIProviderRegistry"
6396
+ },
6397
+ "privacy": "private",
6398
+ "readonly": true
6424
6399
  },
6425
6400
  {
6426
- "name": "reason",
6401
+ "kind": "field",
6402
+ "name": "listeners",
6403
+ "privacy": "private",
6404
+ "readonly": true,
6405
+ "default": "new Set<(vendor: AITierVendor) => void>()"
6406
+ },
6407
+ {
6408
+ "kind": "field",
6409
+ "name": "_vendor",
6427
6410
  "type": {
6428
- "text": "TurnFailureReason"
6429
- }
6411
+ "text": "AITierVendor"
6412
+ },
6413
+ "privacy": "private"
6430
6414
  },
6431
6415
  {
6432
- "name": "detail",
6433
- "optional": true,
6416
+ "kind": "field",
6417
+ "name": "vendor",
6434
6418
  "type": {
6435
- "text": "Record<string, unknown>"
6436
- }
6419
+ "text": "AITierVendor"
6420
+ },
6421
+ "readonly": true
6422
+ },
6423
+ {
6424
+ "kind": "method",
6425
+ "name": "switchTo",
6426
+ "return": {
6427
+ "type": {
6428
+ "text": "void"
6429
+ }
6430
+ },
6431
+ "parameters": [
6432
+ {
6433
+ "name": "vendor",
6434
+ "type": {
6435
+ "text": "string"
6436
+ }
6437
+ }
6438
+ ],
6439
+ "description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
6440
+ },
6441
+ {
6442
+ "kind": "method",
6443
+ "name": "adoptPersistedVendor",
6444
+ "return": {
6445
+ "type": {
6446
+ "text": "void"
6447
+ }
6448
+ },
6449
+ "parameters": [
6450
+ {
6451
+ "name": "vendor",
6452
+ "type": {
6453
+ "text": "string"
6454
+ }
6455
+ }
6456
+ ],
6457
+ "description": "Adopt a vendor the app read back from its own store — the same registry move as\nTieredAIProviderSwitcher.switchTo, without the `onSwitch` callback, because this\nvalue came FROM the store and writing it back would be a pointless round-trip on load.\n\nExists because registration has to stay synchronous: an element that connects before the\ntoken is registered caches the platform's no-op fallback, so an app cannot await its\nstored preference before constructing this. It boots on `initialVendor` and adopts the\nstored one a moment later, through a registry that is mutable and held by reference."
6458
+ },
6459
+ {
6460
+ "kind": "method",
6461
+ "name": "subscribe",
6462
+ "return": {
6463
+ "type": {
6464
+ "text": "() => void"
6465
+ }
6466
+ },
6467
+ "parameters": [
6468
+ {
6469
+ "name": "listener",
6470
+ "type": {
6471
+ "text": "(vendor: string) => void"
6472
+ }
6473
+ }
6474
+ ]
6475
+ },
6476
+ {
6477
+ "kind": "method",
6478
+ "name": "apply",
6479
+ "privacy": "private",
6480
+ "return": {
6481
+ "type": {
6482
+ "text": "void"
6483
+ }
6484
+ },
6485
+ "parameters": [
6486
+ {
6487
+ "name": "vendor",
6488
+ "type": {
6489
+ "text": "AITierVendor"
6490
+ }
6491
+ }
6492
+ ],
6493
+ "description": "The registry move both entry points share, and nothing else."
6494
+ },
6495
+ {
6496
+ "kind": "method",
6497
+ "name": "build",
6498
+ "privacy": "private",
6499
+ "return": {
6500
+ "type": {
6501
+ "text": "Record<string, AIProvider>"
6502
+ }
6503
+ },
6504
+ "parameters": [
6505
+ {
6506
+ "name": "vendor",
6507
+ "type": {
6508
+ "text": "AITierVendor"
6509
+ }
6510
+ }
6511
+ ]
6512
+ },
6513
+ {
6514
+ "kind": "method",
6515
+ "name": "isKnownVendor",
6516
+ "privacy": "private",
6517
+ "return": {
6518
+ "type": {
6519
+ "text": "vendor is AITierVendor"
6520
+ }
6521
+ },
6522
+ "parameters": [
6523
+ {
6524
+ "name": "vendor",
6525
+ "type": {
6526
+ "text": "string"
6527
+ }
6528
+ }
6529
+ ]
6437
6530
  }
6438
- ],
6439
- "description": "Record a turn-ending failure (`turn.error`, importance `high`). The `reason`\nis typed so the high-importance triage surface stays consistent; pass any\ndiagnostic specifics (attempt counts, offending tool names, etc.) in `detail`."
6531
+ ]
6440
6532
  },
6441
6533
  {
6442
6534
  "kind": "function",
6443
- "name": "recordTurnRetry",
6535
+ "name": "registerTieredAIProviders",
6444
6536
  "return": {
6445
6537
  "type": {
6446
- "text": "void"
6538
+ "text": "TieredAIProviderSwitcher"
6447
6539
  }
6448
6540
  },
6449
6541
  "parameters": [
6450
6542
  {
6451
- "name": "key",
6543
+ "name": "container",
6544
+ "type": {
6545
+ "text": "Container"
6546
+ }
6547
+ },
6548
+ {
6549
+ "name": "options",
6550
+ "type": {
6551
+ "text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
6552
+ }
6553
+ }
6554
+ ],
6555
+ "description": "Build a TieredAIProviderSwitcher — which registers the tier-shaped provider\nregistry — and put it on the (AIProviderSwitcher:variable) token. Call once at app\nbootstrap."
6556
+ }
6557
+ ],
6558
+ "exports": [
6559
+ {
6560
+ "kind": "js",
6561
+ "name": "TieredAIProviderSwitcher",
6562
+ "declaration": {
6563
+ "name": "TieredAIProviderSwitcher",
6564
+ "module": "src/provider/tiered-provider-switcher.ts"
6565
+ }
6566
+ },
6567
+ {
6568
+ "kind": "js",
6569
+ "name": "registerTieredAIProviders",
6570
+ "declaration": {
6571
+ "name": "registerTieredAIProviders",
6572
+ "module": "src/provider/tiered-provider-switcher.ts"
6573
+ }
6574
+ }
6575
+ ]
6576
+ },
6577
+ {
6578
+ "kind": "javascript-module",
6579
+ "path": "src/state/ai-assistant-slice.ts",
6580
+ "declarations": [
6581
+ {
6582
+ "kind": "function",
6583
+ "name": "createDefaultSessionState",
6584
+ "return": {
6585
+ "type": {
6586
+ "text": "AiAssistantSessionState"
6587
+ }
6588
+ },
6589
+ "description": "Build a fresh default session state. A factory (not just a shared const) so\neach call returns independent collections — `resetSession` can hand back a\nclean slate without aliasing the initial state's arrays."
6590
+ },
6591
+ {
6592
+ "kind": "variable",
6593
+ "name": "defaultSessionState",
6594
+ "type": {
6595
+ "text": "AiAssistantSessionState"
6596
+ }
6597
+ },
6598
+ {
6599
+ "kind": "variable",
6600
+ "name": "aiAssistantSlice"
6601
+ }
6602
+ ],
6603
+ "exports": [
6604
+ {
6605
+ "kind": "js",
6606
+ "name": "createDefaultSessionState",
6607
+ "declaration": {
6608
+ "name": "createDefaultSessionState",
6609
+ "module": "src/state/ai-assistant-slice.ts"
6610
+ }
6611
+ },
6612
+ {
6613
+ "kind": "js",
6614
+ "name": "defaultSessionState",
6615
+ "declaration": {
6616
+ "name": "defaultSessionState",
6617
+ "module": "src/state/ai-assistant-slice.ts"
6618
+ }
6619
+ },
6620
+ {
6621
+ "kind": "js",
6622
+ "name": "aiAssistantSlice",
6623
+ "declaration": {
6624
+ "name": "aiAssistantSlice",
6625
+ "module": "src/state/ai-assistant-slice.ts"
6626
+ }
6627
+ }
6628
+ ]
6629
+ },
6630
+ {
6631
+ "kind": "javascript-module",
6632
+ "path": "src/state/debug-event-log.ts",
6633
+ "declarations": [
6634
+ {
6635
+ "kind": "variable",
6636
+ "name": "META_EVENT_IMPORTANCE",
6637
+ "type": {
6638
+ "text": "Record<MetaEventType, MetaEventImportance>"
6639
+ },
6640
+ "default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
6641
+ "description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
6642
+ },
6643
+ {
6644
+ "kind": "function",
6645
+ "name": "recordMetaEvent",
6646
+ "return": {
6647
+ "type": {
6648
+ "text": "void"
6649
+ }
6650
+ },
6651
+ "parameters": [
6652
+ {
6653
+ "name": "key",
6654
+ "type": {
6655
+ "text": "string"
6656
+ }
6657
+ },
6658
+ {
6659
+ "name": "type",
6660
+ "type": {
6661
+ "text": "MetaEventType"
6662
+ }
6663
+ },
6664
+ {
6665
+ "name": "detail",
6666
+ "optional": true,
6667
+ "type": {
6668
+ "text": "Record<string, unknown>"
6669
+ }
6670
+ }
6671
+ ],
6672
+ "description": "Append a meta event to the timeline for `key`. Once the buffer exceeds\nDEFAULT_MAX_META_EVENTS, evicts the oldest *non-`high`* event;\n`high`-importance events are never evicted. An empty `key` is bucketed under\n`''`, matching how drivers/stores handle an absent session identity, so\ncallers never need to guard."
6673
+ },
6674
+ {
6675
+ "kind": "function",
6676
+ "name": "recordTurnError",
6677
+ "return": {
6678
+ "type": {
6679
+ "text": "void"
6680
+ }
6681
+ },
6682
+ "parameters": [
6683
+ {
6684
+ "name": "key",
6685
+ "type": {
6686
+ "text": "string"
6687
+ }
6688
+ },
6689
+ {
6690
+ "name": "reason",
6691
+ "type": {
6692
+ "text": "TurnFailureReason"
6693
+ }
6694
+ },
6695
+ {
6696
+ "name": "detail",
6697
+ "optional": true,
6698
+ "type": {
6699
+ "text": "Record<string, unknown>"
6700
+ }
6701
+ }
6702
+ ],
6703
+ "description": "Record a turn-ending failure (`turn.error`, importance `high`). The `reason`\nis typed so the high-importance triage surface stays consistent; pass any\ndiagnostic specifics (attempt counts, offending tool names, etc.) in `detail`."
6704
+ },
6705
+ {
6706
+ "kind": "function",
6707
+ "name": "recordTurnRetry",
6708
+ "return": {
6709
+ "type": {
6710
+ "text": "void"
6711
+ }
6712
+ },
6713
+ "parameters": [
6714
+ {
6715
+ "name": "key",
6452
6716
  "type": {
6453
6717
  "text": "string"
6454
6718
  }
@@ -6853,270 +7117,6 @@
6853
7117
  }
6854
7118
  ]
6855
7119
  },
6856
- {
6857
- "kind": "javascript-module",
6858
- "path": "src/provider/ai-provider-switcher.ts",
6859
- "declarations": [
6860
- {
6861
- "kind": "variable",
6862
- "name": "AIProviderSwitcher",
6863
- "description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
6864
- }
6865
- ],
6866
- "exports": [
6867
- {
6868
- "kind": "js",
6869
- "name": "AIProviderSwitcher",
6870
- "declaration": {
6871
- "name": "AIProviderSwitcher",
6872
- "module": "src/provider/ai-provider-switcher.ts"
6873
- }
6874
- }
6875
- ]
6876
- },
6877
- {
6878
- "kind": "javascript-module",
6879
- "path": "src/provider/assistant-app-settings.ts",
6880
- "declarations": [
6881
- {
6882
- "kind": "variable",
6883
- "name": "AssistantAppSettingsProvider",
6884
- "description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
6885
- }
6886
- ],
6887
- "exports": [
6888
- {
6889
- "kind": "js",
6890
- "name": "AssistantAppSettingsProvider",
6891
- "declaration": {
6892
- "name": "AssistantAppSettingsProvider",
6893
- "module": "src/provider/assistant-app-settings.ts"
6894
- }
6895
- }
6896
- ]
6897
- },
6898
- {
6899
- "kind": "javascript-module",
6900
- "path": "src/provider/tiered-provider-switcher.ts",
6901
- "declarations": [
6902
- {
6903
- "kind": "class",
6904
- "description": "Which cloud vendor backs the tier-shaped provider registry, plus the means to move it at\nruntime (GENC-1610).",
6905
- "name": "TieredAIProviderSwitcher",
6906
- "members": [
6907
- {
6908
- "kind": "field",
6909
- "name": "vendors",
6910
- "type": {
6911
- "text": "readonly AITierVendor[]"
6912
- },
6913
- "readonly": true
6914
- },
6915
- {
6916
- "kind": "field",
6917
- "name": "options",
6918
- "type": {
6919
- "text": "TieredAIProviderSwitcherOptions"
6920
- },
6921
- "privacy": "private",
6922
- "readonly": true,
6923
- "default": "options"
6924
- },
6925
- {
6926
- "kind": "field",
6927
- "name": "defaultTier",
6928
- "type": {
6929
- "text": "AITierId"
6930
- },
6931
- "privacy": "private",
6932
- "readonly": true
6933
- },
6934
- {
6935
- "kind": "field",
6936
- "name": "registry",
6937
- "type": {
6938
- "text": "MutableAIProviderRegistry"
6939
- },
6940
- "privacy": "private",
6941
- "readonly": true
6942
- },
6943
- {
6944
- "kind": "field",
6945
- "name": "listeners",
6946
- "privacy": "private",
6947
- "readonly": true,
6948
- "default": "new Set<(vendor: AITierVendor) => void>()"
6949
- },
6950
- {
6951
- "kind": "field",
6952
- "name": "_vendor",
6953
- "type": {
6954
- "text": "AITierVendor"
6955
- },
6956
- "privacy": "private"
6957
- },
6958
- {
6959
- "kind": "field",
6960
- "name": "vendor",
6961
- "type": {
6962
- "text": "AITierVendor"
6963
- },
6964
- "readonly": true
6965
- },
6966
- {
6967
- "kind": "method",
6968
- "name": "switchTo",
6969
- "return": {
6970
- "type": {
6971
- "text": "void"
6972
- }
6973
- },
6974
- "parameters": [
6975
- {
6976
- "name": "vendor",
6977
- "type": {
6978
- "text": "string"
6979
- }
6980
- }
6981
- ],
6982
- "description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
6983
- },
6984
- {
6985
- "kind": "method",
6986
- "name": "adoptPersistedVendor",
6987
- "return": {
6988
- "type": {
6989
- "text": "void"
6990
- }
6991
- },
6992
- "parameters": [
6993
- {
6994
- "name": "vendor",
6995
- "type": {
6996
- "text": "string"
6997
- }
6998
- }
6999
- ],
7000
- "description": "Adopt a vendor the app read back from its own store — the same registry move as\nTieredAIProviderSwitcher.switchTo, without the `onSwitch` callback, because this\nvalue came FROM the store and writing it back would be a pointless round-trip on load.\n\nExists because registration has to stay synchronous: an element that connects before the\ntoken is registered caches the platform's no-op fallback, so an app cannot await its\nstored preference before constructing this. It boots on `initialVendor` and adopts the\nstored one a moment later, through a registry that is mutable and held by reference."
7001
- },
7002
- {
7003
- "kind": "method",
7004
- "name": "subscribe",
7005
- "return": {
7006
- "type": {
7007
- "text": "() => void"
7008
- }
7009
- },
7010
- "parameters": [
7011
- {
7012
- "name": "listener",
7013
- "type": {
7014
- "text": "(vendor: string) => void"
7015
- }
7016
- }
7017
- ]
7018
- },
7019
- {
7020
- "kind": "method",
7021
- "name": "apply",
7022
- "privacy": "private",
7023
- "return": {
7024
- "type": {
7025
- "text": "void"
7026
- }
7027
- },
7028
- "parameters": [
7029
- {
7030
- "name": "vendor",
7031
- "type": {
7032
- "text": "AITierVendor"
7033
- }
7034
- }
7035
- ],
7036
- "description": "The registry move both entry points share, and nothing else."
7037
- },
7038
- {
7039
- "kind": "method",
7040
- "name": "build",
7041
- "privacy": "private",
7042
- "return": {
7043
- "type": {
7044
- "text": "Record<string, AIProvider>"
7045
- }
7046
- },
7047
- "parameters": [
7048
- {
7049
- "name": "vendor",
7050
- "type": {
7051
- "text": "AITierVendor"
7052
- }
7053
- }
7054
- ]
7055
- },
7056
- {
7057
- "kind": "method",
7058
- "name": "isKnownVendor",
7059
- "privacy": "private",
7060
- "return": {
7061
- "type": {
7062
- "text": "vendor is AITierVendor"
7063
- }
7064
- },
7065
- "parameters": [
7066
- {
7067
- "name": "vendor",
7068
- "type": {
7069
- "text": "string"
7070
- }
7071
- }
7072
- ]
7073
- }
7074
- ]
7075
- },
7076
- {
7077
- "kind": "function",
7078
- "name": "registerTieredAIProviders",
7079
- "return": {
7080
- "type": {
7081
- "text": "TieredAIProviderSwitcher"
7082
- }
7083
- },
7084
- "parameters": [
7085
- {
7086
- "name": "container",
7087
- "type": {
7088
- "text": "Container"
7089
- }
7090
- },
7091
- {
7092
- "name": "options",
7093
- "type": {
7094
- "text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
7095
- }
7096
- }
7097
- ],
7098
- "description": "Build a TieredAIProviderSwitcher — which registers the tier-shaped provider\nregistry — and put it on the (AIProviderSwitcher:variable) token. Call once at app\nbootstrap."
7099
- }
7100
- ],
7101
- "exports": [
7102
- {
7103
- "kind": "js",
7104
- "name": "TieredAIProviderSwitcher",
7105
- "declaration": {
7106
- "name": "TieredAIProviderSwitcher",
7107
- "module": "src/provider/tiered-provider-switcher.ts"
7108
- }
7109
- },
7110
- {
7111
- "kind": "js",
7112
- "name": "registerTieredAIProviders",
7113
- "declaration": {
7114
- "name": "registerTieredAIProviders",
7115
- "module": "src/provider/tiered-provider-switcher.ts"
7116
- }
7117
- }
7118
- ]
7119
- },
7120
7120
  {
7121
7121
  "kind": "javascript-module",
7122
7122
  "path": "src/styles/ai-colours.ts",