@genesislcap/ai-assistant 15.46.2 → 15.46.3-FUI-0-form-export.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +600 -600
  2. package/package.json +17 -17
@@ -1754,6 +1754,211 @@
1754
1754
  }
1755
1755
  ]
1756
1756
  },
1757
+ {
1758
+ "kind": "javascript-module",
1759
+ "path": "src/config/config.ts",
1760
+ "declarations": [
1761
+ {
1762
+ "kind": "function",
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```"
1765
+ }
1766
+ ],
1767
+ "exports": [
1768
+ {
1769
+ "kind": "js",
1770
+ "name": "CachePolicy",
1771
+ "declaration": {
1772
+ "name": "CachePolicy",
1773
+ "module": "src/config/config.ts"
1774
+ }
1775
+ },
1776
+ {
1777
+ "kind": "js",
1778
+ "name": "ChatFallback",
1779
+ "declaration": {
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
+ },
1757
1962
  {
1758
1963
  "kind": "javascript-module",
1759
1964
  "path": "src/genesis/calendar.ts",
@@ -2656,253 +2861,48 @@
2656
2861
  },
2657
2862
  {
2658
2863
  "kind": "javascript-module",
2659
- "path": "src/config/config.ts",
2660
- "declarations": [
2661
- {
2662
- "kind": "function",
2663
- "name": "defineAgent",
2664
- "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```"
2665
- }
2666
- ],
2864
+ "path": "src/main/attachment-controller.ts",
2865
+ "declarations": [],
2866
+ "exports": []
2867
+ },
2868
+ {
2869
+ "kind": "javascript-module",
2870
+ "path": "src/main/budget-controller.ts",
2871
+ "declarations": [],
2872
+ "exports": []
2873
+ },
2874
+ {
2875
+ "kind": "javascript-module",
2876
+ "path": "src/main/composer-menu-controller.ts",
2877
+ "declarations": [],
2878
+ "exports": []
2879
+ },
2880
+ {
2881
+ "kind": "javascript-module",
2882
+ "path": "src/main/composer-resize-controller.ts",
2883
+ "declarations": [],
2884
+ "exports": []
2885
+ },
2886
+ {
2887
+ "kind": "javascript-module",
2888
+ "path": "src/main/context-gate-controller.ts",
2889
+ "declarations": [],
2890
+ "exports": []
2891
+ },
2892
+ {
2893
+ "kind": "javascript-module",
2894
+ "path": "src/main/cost-ledger-controller.ts",
2895
+ "declarations": [],
2896
+ "exports": []
2897
+ },
2898
+ {
2899
+ "kind": "javascript-module",
2900
+ "path": "src/main/index.ts",
2901
+ "declarations": [],
2667
2902
  "exports": [
2668
2903
  {
2669
2904
  "kind": "js",
2670
- "name": "CachePolicy",
2671
- "declaration": {
2672
- "name": "CachePolicy",
2673
- "module": "src/config/config.ts"
2674
- }
2675
- },
2676
- {
2677
- "kind": "js",
2678
- "name": "ChatFallback",
2679
- "declaration": {
2680
- "name": "ChatFallback",
2681
- "module": "src/config/config.ts"
2682
- }
2683
- },
2684
- {
2685
- "kind": "js",
2686
- "name": "ChatInputDuringExecutionMode",
2687
- "declaration": {
2688
- "name": "ChatInputDuringExecutionMode",
2689
- "module": "src/config/config.ts"
2690
- }
2691
- },
2692
- {
2693
- "kind": "js",
2694
- "name": "ChatThinkingPolicy",
2695
- "declaration": {
2696
- "name": "ChatThinkingPolicy",
2697
- "module": "src/config/config.ts"
2698
- }
2699
- },
2700
- {
2701
- "kind": "js",
2702
- "name": "ChatToolChoice",
2703
- "declaration": {
2704
- "name": "ChatToolChoice",
2705
- "module": "src/config/config.ts"
2706
- }
2707
- },
2708
- {
2709
- "kind": "js",
2710
- "name": "defineAgent",
2711
- "declaration": {
2712
- "name": "defineAgent",
2713
- "module": "src/config/config.ts"
2714
- }
2715
- }
2716
- ]
2717
- },
2718
- {
2719
- "kind": "javascript-module",
2720
- "path": "src/config/define-stateful-agent.ts",
2721
- "declarations": [
2722
- {
2723
- "kind": "function",
2724
- "name": "restoreMachine",
2725
- "return": {
2726
- "type": {
2727
- "text": "void"
2728
- }
2729
- },
2730
- "parameters": [
2731
- {
2732
- "name": "machine",
2733
- "type": {
2734
- "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
2735
- },
2736
- "description": "the machine to restore (already constructed/started)."
2737
- },
2738
- {
2739
- "name": "restored",
2740
- "type": {
2741
- "text": "unknown"
2742
- },
2743
- "description": "the agent's serialized image (`ctx.restored` in `init`)."
2744
- },
2745
- {
2746
- "name": "key",
2747
- "default": "'machine'",
2748
- "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
2749
- }
2750
- ],
2751
- "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."
2752
- },
2753
- {
2754
- "kind": "function",
2755
- "name": "defineStatefulAgent",
2756
- "return": {
2757
- "type": {
2758
- "text": "AgentConfig"
2759
- }
2760
- },
2761
- "parameters": [
2762
- {
2763
- "name": "opts",
2764
- "type": {
2765
- "text": "StatefulAgentInit<S>"
2766
- }
2767
- }
2768
- ],
2769
- "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."
2770
- }
2771
- ],
2772
- "exports": [
2773
- {
2774
- "kind": "js",
2775
- "name": "restoreMachine",
2776
- "declaration": {
2777
- "name": "restoreMachine",
2778
- "module": "src/config/define-stateful-agent.ts"
2779
- }
2780
- },
2781
- {
2782
- "kind": "js",
2783
- "name": "defineStatefulAgent",
2784
- "declaration": {
2785
- "name": "defineStatefulAgent",
2786
- "module": "src/config/define-stateful-agent.ts"
2787
- }
2788
- }
2789
- ]
2790
- },
2791
- {
2792
- "kind": "javascript-module",
2793
- "path": "src/config/fallback-agents.ts",
2794
- "declarations": [
2795
- {
2796
- "kind": "variable",
2797
- "name": "friendlyFallbackAgent",
2798
- "type": {
2799
- "text": "FallbackAgentConfig"
2800
- },
2801
- "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}",
2802
- "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."
2803
- },
2804
- {
2805
- "kind": "variable",
2806
- "name": "strictFallbackAgent",
2807
- "type": {
2808
- "text": "FallbackAgentConfig"
2809
- },
2810
- "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}",
2811
- "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."
2812
- }
2813
- ],
2814
- "exports": [
2815
- {
2816
- "kind": "js",
2817
- "name": "friendlyFallbackAgent",
2818
- "declaration": {
2819
- "name": "friendlyFallbackAgent",
2820
- "module": "src/config/fallback-agents.ts"
2821
- }
2822
- },
2823
- {
2824
- "kind": "js",
2825
- "name": "strictFallbackAgent",
2826
- "declaration": {
2827
- "name": "strictFallbackAgent",
2828
- "module": "src/config/fallback-agents.ts"
2829
- }
2830
- }
2831
- ]
2832
- },
2833
- {
2834
- "kind": "javascript-module",
2835
- "path": "src/config/index.ts",
2836
- "declarations": [],
2837
- "exports": [
2838
- {
2839
- "kind": "js",
2840
- "name": "*",
2841
- "declaration": {
2842
- "name": "*",
2843
- "package": "./config"
2844
- }
2845
- },
2846
- {
2847
- "kind": "js",
2848
- "name": "*",
2849
- "declaration": {
2850
- "name": "*",
2851
- "package": "./fallback-agents"
2852
- }
2853
- }
2854
- ]
2855
- },
2856
- {
2857
- "kind": "javascript-module",
2858
- "path": "src/config/validate-providers.ts",
2859
- "declarations": [],
2860
- "exports": []
2861
- },
2862
- {
2863
- "kind": "javascript-module",
2864
- "path": "src/main/attachment-controller.ts",
2865
- "declarations": [],
2866
- "exports": []
2867
- },
2868
- {
2869
- "kind": "javascript-module",
2870
- "path": "src/main/budget-controller.ts",
2871
- "declarations": [],
2872
- "exports": []
2873
- },
2874
- {
2875
- "kind": "javascript-module",
2876
- "path": "src/main/composer-menu-controller.ts",
2877
- "declarations": [],
2878
- "exports": []
2879
- },
2880
- {
2881
- "kind": "javascript-module",
2882
- "path": "src/main/composer-resize-controller.ts",
2883
- "declarations": [],
2884
- "exports": []
2885
- },
2886
- {
2887
- "kind": "javascript-module",
2888
- "path": "src/main/context-gate-controller.ts",
2889
- "declarations": [],
2890
- "exports": []
2891
- },
2892
- {
2893
- "kind": "javascript-module",
2894
- "path": "src/main/cost-ledger-controller.ts",
2895
- "declarations": [],
2896
- "exports": []
2897
- },
2898
- {
2899
- "kind": "javascript-module",
2900
- "path": "src/main/index.ts",
2901
- "declarations": [],
2902
- "exports": [
2903
- {
2904
- "kind": "js",
2905
- "name": "*",
2905
+ "name": "*",
2906
2906
  "declaration": {
2907
2907
  "name": "*",
2908
2908
  "package": "./main.template"
@@ -6410,415 +6410,151 @@
6410
6410
  },
6411
6411
  {
6412
6412
  "kind": "javascript-module",
6413
- "path": "src/provider/ai-provider-switcher.ts",
6413
+ "path": "src/state/ai-assistant-slice.ts",
6414
6414
  "declarations": [
6415
+ {
6416
+ "kind": "function",
6417
+ "name": "createDefaultSessionState",
6418
+ "return": {
6419
+ "type": {
6420
+ "text": "AiAssistantSessionState"
6421
+ }
6422
+ },
6423
+ "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."
6424
+ },
6415
6425
  {
6416
6426
  "kind": "variable",
6417
- "name": "AIProviderSwitcher",
6418
- "description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
6427
+ "name": "defaultSessionState",
6428
+ "type": {
6429
+ "text": "AiAssistantSessionState"
6430
+ }
6431
+ },
6432
+ {
6433
+ "kind": "variable",
6434
+ "name": "aiAssistantSlice"
6419
6435
  }
6420
6436
  ],
6421
6437
  "exports": [
6422
6438
  {
6423
6439
  "kind": "js",
6424
- "name": "AIProviderSwitcher",
6440
+ "name": "createDefaultSessionState",
6425
6441
  "declaration": {
6426
- "name": "AIProviderSwitcher",
6427
- "module": "src/provider/ai-provider-switcher.ts"
6442
+ "name": "createDefaultSessionState",
6443
+ "module": "src/state/ai-assistant-slice.ts"
6428
6444
  }
6429
- }
6430
- ]
6431
- },
6432
- {
6433
- "kind": "javascript-module",
6434
- "path": "src/provider/assistant-app-settings.ts",
6435
- "declarations": [
6445
+ },
6436
6446
  {
6437
- "kind": "variable",
6438
- "name": "AssistantAppSettingsProvider",
6439
- "description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
6440
- }
6441
- ],
6442
- "exports": [
6447
+ "kind": "js",
6448
+ "name": "defaultSessionState",
6449
+ "declaration": {
6450
+ "name": "defaultSessionState",
6451
+ "module": "src/state/ai-assistant-slice.ts"
6452
+ }
6453
+ },
6443
6454
  {
6444
6455
  "kind": "js",
6445
- "name": "AssistantAppSettingsProvider",
6456
+ "name": "aiAssistantSlice",
6446
6457
  "declaration": {
6447
- "name": "AssistantAppSettingsProvider",
6448
- "module": "src/provider/assistant-app-settings.ts"
6458
+ "name": "aiAssistantSlice",
6459
+ "module": "src/state/ai-assistant-slice.ts"
6449
6460
  }
6450
6461
  }
6451
6462
  ]
6452
6463
  },
6453
6464
  {
6454
6465
  "kind": "javascript-module",
6455
- "path": "src/provider/tiered-provider-switcher.ts",
6466
+ "path": "src/state/debug-event-log.ts",
6456
6467
  "declarations": [
6457
6468
  {
6458
- "kind": "class",
6459
- "description": "Which cloud vendor backs the tier-shaped provider registry, plus the means to move it at\nruntime (GENC-1610).",
6460
- "name": "TieredAIProviderSwitcher",
6461
- "members": [
6469
+ "kind": "variable",
6470
+ "name": "META_EVENT_IMPORTANCE",
6471
+ "type": {
6472
+ "text": "Record<MetaEventType, MetaEventImportance>"
6473
+ },
6474
+ "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 // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n '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}",
6475
+ "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."
6476
+ },
6477
+ {
6478
+ "kind": "function",
6479
+ "name": "recordMetaEvent",
6480
+ "return": {
6481
+ "type": {
6482
+ "text": "void"
6483
+ }
6484
+ },
6485
+ "parameters": [
6462
6486
  {
6463
- "kind": "field",
6464
- "name": "vendors",
6487
+ "name": "key",
6465
6488
  "type": {
6466
- "text": "readonly AITierVendor[]"
6467
- },
6468
- "readonly": true
6489
+ "text": "string"
6490
+ }
6469
6491
  },
6470
6492
  {
6471
- "kind": "field",
6472
- "name": "options",
6493
+ "name": "type",
6473
6494
  "type": {
6474
- "text": "TieredAIProviderSwitcherOptions"
6475
- },
6476
- "privacy": "private",
6477
- "readonly": true,
6478
- "default": "options"
6495
+ "text": "MetaEventType"
6496
+ }
6479
6497
  },
6480
6498
  {
6481
- "kind": "field",
6482
- "name": "defaultTier",
6499
+ "name": "detail",
6500
+ "optional": true,
6483
6501
  "type": {
6484
- "text": "AITierId"
6485
- },
6486
- "privacy": "private",
6487
- "readonly": true
6488
- },
6502
+ "text": "Record<string, unknown>"
6503
+ }
6504
+ }
6505
+ ],
6506
+ "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."
6507
+ },
6508
+ {
6509
+ "kind": "function",
6510
+ "name": "recordTurnError",
6511
+ "return": {
6512
+ "type": {
6513
+ "text": "void"
6514
+ }
6515
+ },
6516
+ "parameters": [
6489
6517
  {
6490
- "kind": "field",
6491
- "name": "registry",
6518
+ "name": "key",
6492
6519
  "type": {
6493
- "text": "MutableAIProviderRegistry"
6494
- },
6495
- "privacy": "private",
6496
- "readonly": true
6497
- },
6498
- {
6499
- "kind": "field",
6500
- "name": "listeners",
6501
- "privacy": "private",
6502
- "readonly": true,
6503
- "default": "new Set<(vendor: AITierVendor) => void>()"
6520
+ "text": "string"
6521
+ }
6504
6522
  },
6505
6523
  {
6506
- "kind": "field",
6507
- "name": "_vendor",
6524
+ "name": "reason",
6508
6525
  "type": {
6509
- "text": "AITierVendor"
6510
- },
6511
- "privacy": "private"
6526
+ "text": "TurnFailureReason"
6527
+ }
6512
6528
  },
6513
6529
  {
6514
- "kind": "field",
6515
- "name": "vendor",
6530
+ "name": "detail",
6531
+ "optional": true,
6516
6532
  "type": {
6517
- "text": "AITierVendor"
6518
- },
6519
- "readonly": true
6520
- },
6521
- {
6522
- "kind": "method",
6523
- "name": "switchTo",
6524
- "return": {
6525
- "type": {
6526
- "text": "void"
6527
- }
6528
- },
6529
- "parameters": [
6530
- {
6531
- "name": "vendor",
6532
- "type": {
6533
- "text": "string"
6534
- }
6535
- }
6536
- ],
6537
- "description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
6538
- },
6539
- {
6540
- "kind": "method",
6541
- "name": "adoptPersistedVendor",
6542
- "return": {
6543
- "type": {
6544
- "text": "void"
6545
- }
6546
- },
6547
- "parameters": [
6548
- {
6549
- "name": "vendor",
6550
- "type": {
6551
- "text": "string"
6552
- }
6553
- }
6554
- ],
6555
- "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."
6556
- },
6557
- {
6558
- "kind": "method",
6559
- "name": "subscribe",
6560
- "return": {
6561
- "type": {
6562
- "text": "() => void"
6563
- }
6564
- },
6565
- "parameters": [
6566
- {
6567
- "name": "listener",
6568
- "type": {
6569
- "text": "(vendor: string) => void"
6570
- }
6571
- }
6572
- ]
6573
- },
6574
- {
6575
- "kind": "method",
6576
- "name": "apply",
6577
- "privacy": "private",
6578
- "return": {
6579
- "type": {
6580
- "text": "void"
6581
- }
6582
- },
6583
- "parameters": [
6584
- {
6585
- "name": "vendor",
6586
- "type": {
6587
- "text": "AITierVendor"
6588
- }
6589
- }
6590
- ],
6591
- "description": "The registry move both entry points share, and nothing else."
6592
- },
6593
- {
6594
- "kind": "method",
6595
- "name": "build",
6596
- "privacy": "private",
6597
- "return": {
6598
- "type": {
6599
- "text": "Record<string, AIProvider>"
6600
- }
6601
- },
6602
- "parameters": [
6603
- {
6604
- "name": "vendor",
6605
- "type": {
6606
- "text": "AITierVendor"
6607
- }
6608
- }
6609
- ]
6610
- },
6611
- {
6612
- "kind": "method",
6613
- "name": "isKnownVendor",
6614
- "privacy": "private",
6615
- "return": {
6616
- "type": {
6617
- "text": "vendor is AITierVendor"
6618
- }
6619
- },
6620
- "parameters": [
6621
- {
6622
- "name": "vendor",
6623
- "type": {
6624
- "text": "string"
6625
- }
6626
- }
6627
- ]
6533
+ "text": "Record<string, unknown>"
6534
+ }
6628
6535
  }
6629
- ]
6536
+ ],
6537
+ "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`."
6630
6538
  },
6631
6539
  {
6632
6540
  "kind": "function",
6633
- "name": "registerTieredAIProviders",
6541
+ "name": "recordTurnRetry",
6634
6542
  "return": {
6635
6543
  "type": {
6636
- "text": "TieredAIProviderSwitcher"
6544
+ "text": "void"
6637
6545
  }
6638
6546
  },
6639
6547
  "parameters": [
6640
6548
  {
6641
- "name": "container",
6549
+ "name": "key",
6642
6550
  "type": {
6643
- "text": "Container"
6551
+ "text": "string"
6644
6552
  }
6645
6553
  },
6646
6554
  {
6647
- "name": "options",
6555
+ "name": "reason",
6648
6556
  "type": {
6649
- "text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
6650
- }
6651
- }
6652
- ],
6653
- "description": "Build a TieredAIProviderSwitcher — which registers the tier-shaped provider\nregistry — and put it on the (AIProviderSwitcher:variable) token. Call once at app\nbootstrap."
6654
- }
6655
- ],
6656
- "exports": [
6657
- {
6658
- "kind": "js",
6659
- "name": "TieredAIProviderSwitcher",
6660
- "declaration": {
6661
- "name": "TieredAIProviderSwitcher",
6662
- "module": "src/provider/tiered-provider-switcher.ts"
6663
- }
6664
- },
6665
- {
6666
- "kind": "js",
6667
- "name": "registerTieredAIProviders",
6668
- "declaration": {
6669
- "name": "registerTieredAIProviders",
6670
- "module": "src/provider/tiered-provider-switcher.ts"
6671
- }
6672
- }
6673
- ]
6674
- },
6675
- {
6676
- "kind": "javascript-module",
6677
- "path": "src/state/ai-assistant-slice.ts",
6678
- "declarations": [
6679
- {
6680
- "kind": "function",
6681
- "name": "createDefaultSessionState",
6682
- "return": {
6683
- "type": {
6684
- "text": "AiAssistantSessionState"
6685
- }
6686
- },
6687
- "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."
6688
- },
6689
- {
6690
- "kind": "variable",
6691
- "name": "defaultSessionState",
6692
- "type": {
6693
- "text": "AiAssistantSessionState"
6694
- }
6695
- },
6696
- {
6697
- "kind": "variable",
6698
- "name": "aiAssistantSlice"
6699
- }
6700
- ],
6701
- "exports": [
6702
- {
6703
- "kind": "js",
6704
- "name": "createDefaultSessionState",
6705
- "declaration": {
6706
- "name": "createDefaultSessionState",
6707
- "module": "src/state/ai-assistant-slice.ts"
6708
- }
6709
- },
6710
- {
6711
- "kind": "js",
6712
- "name": "defaultSessionState",
6713
- "declaration": {
6714
- "name": "defaultSessionState",
6715
- "module": "src/state/ai-assistant-slice.ts"
6716
- }
6717
- },
6718
- {
6719
- "kind": "js",
6720
- "name": "aiAssistantSlice",
6721
- "declaration": {
6722
- "name": "aiAssistantSlice",
6723
- "module": "src/state/ai-assistant-slice.ts"
6724
- }
6725
- }
6726
- ]
6727
- },
6728
- {
6729
- "kind": "javascript-module",
6730
- "path": "src/state/debug-event-log.ts",
6731
- "declarations": [
6732
- {
6733
- "kind": "variable",
6734
- "name": "META_EVENT_IMPORTANCE",
6735
- "type": {
6736
- "text": "Record<MetaEventType, MetaEventImportance>"
6737
- },
6738
- "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 // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n '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}",
6739
- "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."
6740
- },
6741
- {
6742
- "kind": "function",
6743
- "name": "recordMetaEvent",
6744
- "return": {
6745
- "type": {
6746
- "text": "void"
6747
- }
6748
- },
6749
- "parameters": [
6750
- {
6751
- "name": "key",
6752
- "type": {
6753
- "text": "string"
6754
- }
6755
- },
6756
- {
6757
- "name": "type",
6758
- "type": {
6759
- "text": "MetaEventType"
6760
- }
6761
- },
6762
- {
6763
- "name": "detail",
6764
- "optional": true,
6765
- "type": {
6766
- "text": "Record<string, unknown>"
6767
- }
6768
- }
6769
- ],
6770
- "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."
6771
- },
6772
- {
6773
- "kind": "function",
6774
- "name": "recordTurnError",
6775
- "return": {
6776
- "type": {
6777
- "text": "void"
6778
- }
6779
- },
6780
- "parameters": [
6781
- {
6782
- "name": "key",
6783
- "type": {
6784
- "text": "string"
6785
- }
6786
- },
6787
- {
6788
- "name": "reason",
6789
- "type": {
6790
- "text": "TurnFailureReason"
6791
- }
6792
- },
6793
- {
6794
- "name": "detail",
6795
- "optional": true,
6796
- "type": {
6797
- "text": "Record<string, unknown>"
6798
- }
6799
- }
6800
- ],
6801
- "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`."
6802
- },
6803
- {
6804
- "kind": "function",
6805
- "name": "recordTurnRetry",
6806
- "return": {
6807
- "type": {
6808
- "text": "void"
6809
- }
6810
- },
6811
- "parameters": [
6812
- {
6813
- "name": "key",
6814
- "type": {
6815
- "text": "string"
6816
- }
6817
- },
6818
- {
6819
- "name": "reason",
6820
- "type": {
6821
- "text": "TurnFailureReason"
6557
+ "text": "TurnFailureReason"
6822
6558
  }
6823
6559
  },
6824
6560
  {
@@ -7215,6 +6951,270 @@
7215
6951
  }
7216
6952
  ]
7217
6953
  },
6954
+ {
6955
+ "kind": "javascript-module",
6956
+ "path": "src/provider/ai-provider-switcher.ts",
6957
+ "declarations": [
6958
+ {
6959
+ "kind": "variable",
6960
+ "name": "AIProviderSwitcher",
6961
+ "description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
6962
+ }
6963
+ ],
6964
+ "exports": [
6965
+ {
6966
+ "kind": "js",
6967
+ "name": "AIProviderSwitcher",
6968
+ "declaration": {
6969
+ "name": "AIProviderSwitcher",
6970
+ "module": "src/provider/ai-provider-switcher.ts"
6971
+ }
6972
+ }
6973
+ ]
6974
+ },
6975
+ {
6976
+ "kind": "javascript-module",
6977
+ "path": "src/provider/assistant-app-settings.ts",
6978
+ "declarations": [
6979
+ {
6980
+ "kind": "variable",
6981
+ "name": "AssistantAppSettingsProvider",
6982
+ "description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
6983
+ }
6984
+ ],
6985
+ "exports": [
6986
+ {
6987
+ "kind": "js",
6988
+ "name": "AssistantAppSettingsProvider",
6989
+ "declaration": {
6990
+ "name": "AssistantAppSettingsProvider",
6991
+ "module": "src/provider/assistant-app-settings.ts"
6992
+ }
6993
+ }
6994
+ ]
6995
+ },
6996
+ {
6997
+ "kind": "javascript-module",
6998
+ "path": "src/provider/tiered-provider-switcher.ts",
6999
+ "declarations": [
7000
+ {
7001
+ "kind": "class",
7002
+ "description": "Which cloud vendor backs the tier-shaped provider registry, plus the means to move it at\nruntime (GENC-1610).",
7003
+ "name": "TieredAIProviderSwitcher",
7004
+ "members": [
7005
+ {
7006
+ "kind": "field",
7007
+ "name": "vendors",
7008
+ "type": {
7009
+ "text": "readonly AITierVendor[]"
7010
+ },
7011
+ "readonly": true
7012
+ },
7013
+ {
7014
+ "kind": "field",
7015
+ "name": "options",
7016
+ "type": {
7017
+ "text": "TieredAIProviderSwitcherOptions"
7018
+ },
7019
+ "privacy": "private",
7020
+ "readonly": true,
7021
+ "default": "options"
7022
+ },
7023
+ {
7024
+ "kind": "field",
7025
+ "name": "defaultTier",
7026
+ "type": {
7027
+ "text": "AITierId"
7028
+ },
7029
+ "privacy": "private",
7030
+ "readonly": true
7031
+ },
7032
+ {
7033
+ "kind": "field",
7034
+ "name": "registry",
7035
+ "type": {
7036
+ "text": "MutableAIProviderRegistry"
7037
+ },
7038
+ "privacy": "private",
7039
+ "readonly": true
7040
+ },
7041
+ {
7042
+ "kind": "field",
7043
+ "name": "listeners",
7044
+ "privacy": "private",
7045
+ "readonly": true,
7046
+ "default": "new Set<(vendor: AITierVendor) => void>()"
7047
+ },
7048
+ {
7049
+ "kind": "field",
7050
+ "name": "_vendor",
7051
+ "type": {
7052
+ "text": "AITierVendor"
7053
+ },
7054
+ "privacy": "private"
7055
+ },
7056
+ {
7057
+ "kind": "field",
7058
+ "name": "vendor",
7059
+ "type": {
7060
+ "text": "AITierVendor"
7061
+ },
7062
+ "readonly": true
7063
+ },
7064
+ {
7065
+ "kind": "method",
7066
+ "name": "switchTo",
7067
+ "return": {
7068
+ "type": {
7069
+ "text": "void"
7070
+ }
7071
+ },
7072
+ "parameters": [
7073
+ {
7074
+ "name": "vendor",
7075
+ "type": {
7076
+ "text": "string"
7077
+ }
7078
+ }
7079
+ ],
7080
+ "description": "A user-driven switch: move the registry, then tell the app so it can persist the choice.\nAn unknown vendor is ignored."
7081
+ },
7082
+ {
7083
+ "kind": "method",
7084
+ "name": "adoptPersistedVendor",
7085
+ "return": {
7086
+ "type": {
7087
+ "text": "void"
7088
+ }
7089
+ },
7090
+ "parameters": [
7091
+ {
7092
+ "name": "vendor",
7093
+ "type": {
7094
+ "text": "string"
7095
+ }
7096
+ }
7097
+ ],
7098
+ "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."
7099
+ },
7100
+ {
7101
+ "kind": "method",
7102
+ "name": "subscribe",
7103
+ "return": {
7104
+ "type": {
7105
+ "text": "() => void"
7106
+ }
7107
+ },
7108
+ "parameters": [
7109
+ {
7110
+ "name": "listener",
7111
+ "type": {
7112
+ "text": "(vendor: string) => void"
7113
+ }
7114
+ }
7115
+ ]
7116
+ },
7117
+ {
7118
+ "kind": "method",
7119
+ "name": "apply",
7120
+ "privacy": "private",
7121
+ "return": {
7122
+ "type": {
7123
+ "text": "void"
7124
+ }
7125
+ },
7126
+ "parameters": [
7127
+ {
7128
+ "name": "vendor",
7129
+ "type": {
7130
+ "text": "AITierVendor"
7131
+ }
7132
+ }
7133
+ ],
7134
+ "description": "The registry move both entry points share, and nothing else."
7135
+ },
7136
+ {
7137
+ "kind": "method",
7138
+ "name": "build",
7139
+ "privacy": "private",
7140
+ "return": {
7141
+ "type": {
7142
+ "text": "Record<string, AIProvider>"
7143
+ }
7144
+ },
7145
+ "parameters": [
7146
+ {
7147
+ "name": "vendor",
7148
+ "type": {
7149
+ "text": "AITierVendor"
7150
+ }
7151
+ }
7152
+ ]
7153
+ },
7154
+ {
7155
+ "kind": "method",
7156
+ "name": "isKnownVendor",
7157
+ "privacy": "private",
7158
+ "return": {
7159
+ "type": {
7160
+ "text": "vendor is AITierVendor"
7161
+ }
7162
+ },
7163
+ "parameters": [
7164
+ {
7165
+ "name": "vendor",
7166
+ "type": {
7167
+ "text": "string"
7168
+ }
7169
+ }
7170
+ ]
7171
+ }
7172
+ ]
7173
+ },
7174
+ {
7175
+ "kind": "function",
7176
+ "name": "registerTieredAIProviders",
7177
+ "return": {
7178
+ "type": {
7179
+ "text": "TieredAIProviderSwitcher"
7180
+ }
7181
+ },
7182
+ "parameters": [
7183
+ {
7184
+ "name": "container",
7185
+ "type": {
7186
+ "text": "Container"
7187
+ }
7188
+ },
7189
+ {
7190
+ "name": "options",
7191
+ "type": {
7192
+ "text": "Omit<TieredAIProviderSwitcherOptions, 'container'>"
7193
+ }
7194
+ }
7195
+ ],
7196
+ "description": "Build a TieredAIProviderSwitcher — which registers the tier-shaped provider\nregistry — and put it on the (AIProviderSwitcher:variable) token. Call once at app\nbootstrap."
7197
+ }
7198
+ ],
7199
+ "exports": [
7200
+ {
7201
+ "kind": "js",
7202
+ "name": "TieredAIProviderSwitcher",
7203
+ "declaration": {
7204
+ "name": "TieredAIProviderSwitcher",
7205
+ "module": "src/provider/tiered-provider-switcher.ts"
7206
+ }
7207
+ },
7208
+ {
7209
+ "kind": "js",
7210
+ "name": "registerTieredAIProviders",
7211
+ "declaration": {
7212
+ "name": "registerTieredAIProviders",
7213
+ "module": "src/provider/tiered-provider-switcher.ts"
7214
+ }
7215
+ }
7216
+ ]
7217
+ },
7218
7218
  {
7219
7219
  "kind": "javascript-module",
7220
7220
  "path": "src/styles/ai-colours.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/ai-assistant",
3
3
  "description": "Genesis AI Assistant micro-frontend",
4
- "version": "15.46.2",
4
+ "version": "15.46.3-FUI-0-form-export.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/ai-assistant.d.ts",
@@ -92,31 +92,31 @@
92
92
  }
93
93
  },
94
94
  "devDependencies": {
95
- "@genesislcap/foundation-comms": "15.46.2",
96
- "@genesislcap/foundation-testing": "15.46.2",
97
- "@genesislcap/genx": "15.46.2",
98
- "@genesislcap/ts-builder": "15.46.2",
99
- "@genesislcap/uvu-playwright-builder": "15.46.2",
100
- "@genesislcap/vite-builder": "15.46.2",
101
- "@genesislcap/webpack-builder": "15.46.2",
95
+ "@genesislcap/foundation-comms": "15.46.3-FUI-0-form-export.1",
96
+ "@genesislcap/foundation-testing": "15.46.3-FUI-0-form-export.1",
97
+ "@genesislcap/genx": "15.46.3-FUI-0-form-export.1",
98
+ "@genesislcap/ts-builder": "15.46.3-FUI-0-form-export.1",
99
+ "@genesislcap/uvu-playwright-builder": "15.46.3-FUI-0-form-export.1",
100
+ "@genesislcap/vite-builder": "15.46.3-FUI-0-form-export.1",
101
+ "@genesislcap/webpack-builder": "15.46.3-FUI-0-form-export.1",
102
102
  "@types/dompurify": "^3.0.5",
103
103
  "@types/marked": "^5.0.2",
104
104
  "esbuild": "0.25.12"
105
105
  },
106
106
  "dependencies": {
107
- "@genesislcap/foundation-ai": "15.46.2",
108
- "@genesislcap/foundation-logger": "15.46.2",
109
- "@genesislcap/foundation-notifications": "15.46.2",
110
- "@genesislcap/foundation-redux": "15.46.2",
111
- "@genesislcap/foundation-ui": "15.46.2",
112
- "@genesislcap/foundation-utils": "15.46.2",
113
- "@genesislcap/rapid-design-system": "15.46.2",
114
- "@genesislcap/web-core": "15.46.2",
107
+ "@genesislcap/foundation-ai": "15.46.3-FUI-0-form-export.1",
108
+ "@genesislcap/foundation-logger": "15.46.3-FUI-0-form-export.1",
109
+ "@genesislcap/foundation-notifications": "15.46.3-FUI-0-form-export.1",
110
+ "@genesislcap/foundation-redux": "15.46.3-FUI-0-form-export.1",
111
+ "@genesislcap/foundation-ui": "15.46.3-FUI-0-form-export.1",
112
+ "@genesislcap/foundation-utils": "15.46.3-FUI-0-form-export.1",
113
+ "@genesislcap/rapid-design-system": "15.46.3-FUI-0-form-export.1",
114
+ "@genesislcap/web-core": "15.46.3-FUI-0-form-export.1",
115
115
  "dompurify": "^3.3.1",
116
116
  "marked": "^17.0.3"
117
117
  },
118
118
  "peerDependencies": {
119
- "@genesislcap/foundation-comms": "^15.46.2"
119
+ "@genesislcap/foundation-comms": "^15.46.3-FUI-0-form-export.1"
120
120
  },
121
121
  "peerDependenciesMeta": {
122
122
  "@genesislcap/foundation-comms": {