@genesislcap/ai-assistant 15.46.0-canary.17 → 15.46.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/custom-elements.json +469 -469
- package/package.json +17 -17
|
@@ -1754,211 +1754,6 @@
|
|
|
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
|
-
},
|
|
1962
1757
|
{
|
|
1963
1758
|
"kind": "javascript-module",
|
|
1964
1759
|
"path": "src/genesis/calendar.ts",
|
|
@@ -2804,58 +2599,263 @@
|
|
|
2804
2599
|
"exports": [
|
|
2805
2600
|
{
|
|
2806
2601
|
"kind": "js",
|
|
2807
|
-
"name": "MAX_WRITE_ROWS",
|
|
2602
|
+
"name": "MAX_WRITE_ROWS",
|
|
2603
|
+
"declaration": {
|
|
2604
|
+
"name": "MAX_WRITE_ROWS",
|
|
2605
|
+
"module": "src/genesis/write-plan.ts"
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
]
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"kind": "javascript-module",
|
|
2612
|
+
"path": "src/genesis/write-tools.ts",
|
|
2613
|
+
"declarations": [
|
|
2614
|
+
{
|
|
2615
|
+
"kind": "function",
|
|
2616
|
+
"name": "createGenesisWriteTools",
|
|
2617
|
+
"return": {
|
|
2618
|
+
"type": {
|
|
2619
|
+
"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 or its rowSources entry, or a modify or delete with no row source, is not among them. Their\n * metadata, read when the tools are first listed, can still withhold one.\n */\n writableEvents: readonly string[];\n}"
|
|
2620
|
+
}
|
|
2621
|
+
},
|
|
2622
|
+
"parameters": [
|
|
2623
|
+
{
|
|
2624
|
+
"name": "resources",
|
|
2625
|
+
"type": {
|
|
2626
|
+
"text": "readonly GenesisAiResource[]"
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
"name": "options",
|
|
2631
|
+
"default": "{}",
|
|
2632
|
+
"type": {
|
|
2633
|
+
"text": "GenesisWriteToolsOptions"
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
],
|
|
2637
|
+
"description": "Builds the assistant's write tools from an app's event resources."
|
|
2638
|
+
}
|
|
2639
|
+
],
|
|
2640
|
+
"exports": [
|
|
2641
|
+
{
|
|
2642
|
+
"kind": "js",
|
|
2643
|
+
"name": "createGenesisWriteTools",
|
|
2644
|
+
"declaration": {
|
|
2645
|
+
"name": "createGenesisWriteTools",
|
|
2646
|
+
"module": "src/genesis/write-tools.ts"
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
]
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"kind": "javascript-module",
|
|
2653
|
+
"path": "src/genesis/write-turn.ts",
|
|
2654
|
+
"declarations": [],
|
|
2655
|
+
"exports": []
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
"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
|
+
],
|
|
2667
|
+
"exports": [
|
|
2668
|
+
{
|
|
2669
|
+
"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",
|
|
2808
2826
|
"declaration": {
|
|
2809
|
-
"name": "
|
|
2810
|
-
"module": "src/
|
|
2827
|
+
"name": "strictFallbackAgent",
|
|
2828
|
+
"module": "src/config/fallback-agents.ts"
|
|
2811
2829
|
}
|
|
2812
2830
|
}
|
|
2813
2831
|
]
|
|
2814
2832
|
},
|
|
2815
2833
|
{
|
|
2816
2834
|
"kind": "javascript-module",
|
|
2817
|
-
"path": "src/
|
|
2818
|
-
"declarations": [
|
|
2819
|
-
{
|
|
2820
|
-
"kind": "function",
|
|
2821
|
-
"name": "createGenesisWriteTools",
|
|
2822
|
-
"return": {
|
|
2823
|
-
"type": {
|
|
2824
|
-
"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 or its rowSources entry, or a modify or delete with no row source, is not among them. Their\n * metadata, read when the tools are first listed, can still withhold one.\n */\n writableEvents: readonly string[];\n}"
|
|
2825
|
-
}
|
|
2826
|
-
},
|
|
2827
|
-
"parameters": [
|
|
2828
|
-
{
|
|
2829
|
-
"name": "resources",
|
|
2830
|
-
"type": {
|
|
2831
|
-
"text": "readonly GenesisAiResource[]"
|
|
2832
|
-
}
|
|
2833
|
-
},
|
|
2834
|
-
{
|
|
2835
|
-
"name": "options",
|
|
2836
|
-
"default": "{}",
|
|
2837
|
-
"type": {
|
|
2838
|
-
"text": "GenesisWriteToolsOptions"
|
|
2839
|
-
}
|
|
2840
|
-
}
|
|
2841
|
-
],
|
|
2842
|
-
"description": "Builds the assistant's write tools from an app's event resources."
|
|
2843
|
-
}
|
|
2844
|
-
],
|
|
2835
|
+
"path": "src/config/index.ts",
|
|
2836
|
+
"declarations": [],
|
|
2845
2837
|
"exports": [
|
|
2846
2838
|
{
|
|
2847
2839
|
"kind": "js",
|
|
2848
|
-
"name": "
|
|
2840
|
+
"name": "*",
|
|
2849
2841
|
"declaration": {
|
|
2850
|
-
"name": "
|
|
2851
|
-
"
|
|
2842
|
+
"name": "*",
|
|
2843
|
+
"package": "./config"
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
"kind": "js",
|
|
2848
|
+
"name": "*",
|
|
2849
|
+
"declaration": {
|
|
2850
|
+
"name": "*",
|
|
2851
|
+
"package": "./fallback-agents"
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
]
|
|
2855
2855
|
},
|
|
2856
2856
|
{
|
|
2857
2857
|
"kind": "javascript-module",
|
|
2858
|
-
"path": "src/
|
|
2858
|
+
"path": "src/config/validate-providers.ts",
|
|
2859
2859
|
"declarations": [],
|
|
2860
2860
|
"exports": []
|
|
2861
2861
|
},
|
|
@@ -10974,32 +10974,236 @@
|
|
|
10974
10974
|
"name": "GenesisElement",
|
|
10975
10975
|
"package": "@genesislcap/web-core"
|
|
10976
10976
|
},
|
|
10977
|
-
"tagName": "foundation-ai-chat-bubble",
|
|
10977
|
+
"tagName": "foundation-ai-chat-bubble",
|
|
10978
|
+
"customElement": true
|
|
10979
|
+
}
|
|
10980
|
+
],
|
|
10981
|
+
"exports": [
|
|
10982
|
+
{
|
|
10983
|
+
"kind": "js",
|
|
10984
|
+
"name": "AiChatBubble",
|
|
10985
|
+
"declaration": {
|
|
10986
|
+
"name": "AiChatBubble",
|
|
10987
|
+
"module": "src/components/chat-bubble/chat-bubble.ts"
|
|
10988
|
+
}
|
|
10989
|
+
},
|
|
10990
|
+
{
|
|
10991
|
+
"kind": "custom-element-definition",
|
|
10992
|
+
"name": "foundation-ai-chat-bubble",
|
|
10993
|
+
"declaration": {
|
|
10994
|
+
"name": "AiChatBubble",
|
|
10995
|
+
"module": "src/components/chat-bubble/chat-bubble.ts"
|
|
10996
|
+
}
|
|
10997
|
+
}
|
|
10998
|
+
]
|
|
10999
|
+
},
|
|
11000
|
+
{
|
|
11001
|
+
"kind": "javascript-module",
|
|
11002
|
+
"path": "src/components/chat-bubble/index.ts",
|
|
11003
|
+
"declarations": [],
|
|
11004
|
+
"exports": [
|
|
11005
|
+
{
|
|
11006
|
+
"kind": "js",
|
|
11007
|
+
"name": "*",
|
|
11008
|
+
"declaration": {
|
|
11009
|
+
"name": "*",
|
|
11010
|
+
"package": "./chat-bubble"
|
|
11011
|
+
}
|
|
11012
|
+
}
|
|
11013
|
+
]
|
|
11014
|
+
},
|
|
11015
|
+
{
|
|
11016
|
+
"kind": "javascript-module",
|
|
11017
|
+
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts",
|
|
11018
|
+
"declarations": [
|
|
11019
|
+
{
|
|
11020
|
+
"kind": "variable",
|
|
11021
|
+
"name": "AiChatInteractionWrapperStyles",
|
|
11022
|
+
"default": "css`\n :host {\n display: block;\n }\n`"
|
|
11023
|
+
}
|
|
11024
|
+
],
|
|
11025
|
+
"exports": [
|
|
11026
|
+
{
|
|
11027
|
+
"kind": "js",
|
|
11028
|
+
"name": "AiChatInteractionWrapperStyles",
|
|
11029
|
+
"declaration": {
|
|
11030
|
+
"name": "AiChatInteractionWrapperStyles",
|
|
11031
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts"
|
|
11032
|
+
}
|
|
11033
|
+
}
|
|
11034
|
+
]
|
|
11035
|
+
},
|
|
11036
|
+
{
|
|
11037
|
+
"kind": "javascript-module",
|
|
11038
|
+
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts",
|
|
11039
|
+
"declarations": [
|
|
11040
|
+
{
|
|
11041
|
+
"kind": "variable",
|
|
11042
|
+
"name": "AiChatInteractionWrapperTemplate",
|
|
11043
|
+
"default": "html<AiChatInteractionWrapper>`\n <div ${ref('container')} class=\"container\" part=\"container\"></div>\n`"
|
|
11044
|
+
}
|
|
11045
|
+
],
|
|
11046
|
+
"exports": [
|
|
11047
|
+
{
|
|
11048
|
+
"kind": "js",
|
|
11049
|
+
"name": "AiChatInteractionWrapperTemplate",
|
|
11050
|
+
"declaration": {
|
|
11051
|
+
"name": "AiChatInteractionWrapperTemplate",
|
|
11052
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts"
|
|
11053
|
+
}
|
|
11054
|
+
}
|
|
11055
|
+
]
|
|
11056
|
+
},
|
|
11057
|
+
{
|
|
11058
|
+
"kind": "javascript-module",
|
|
11059
|
+
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts",
|
|
11060
|
+
"declarations": [
|
|
11061
|
+
{
|
|
11062
|
+
"kind": "class",
|
|
11063
|
+
"description": "Hosts an interactive AI chat sub-component by tag name.",
|
|
11064
|
+
"name": "AiChatInteractionWrapper",
|
|
11065
|
+
"members": [
|
|
11066
|
+
{
|
|
11067
|
+
"kind": "field",
|
|
11068
|
+
"name": "resolved",
|
|
11069
|
+
"type": {
|
|
11070
|
+
"text": "InteractionResult<unknown> | undefined"
|
|
11071
|
+
},
|
|
11072
|
+
"default": "undefined",
|
|
11073
|
+
"description": "The resolved result once the interaction has completed. Forwarded to the rendered component. @internal"
|
|
11074
|
+
},
|
|
11075
|
+
{
|
|
11076
|
+
"kind": "field",
|
|
11077
|
+
"name": "outcome",
|
|
11078
|
+
"type": {
|
|
11079
|
+
"text": "unknown"
|
|
11080
|
+
},
|
|
11081
|
+
"default": "undefined",
|
|
11082
|
+
"description": "See `AiChatInteraction`'s resolved `outcome`: recorded after the answer, by the tool."
|
|
11083
|
+
},
|
|
11084
|
+
{
|
|
11085
|
+
"kind": "field",
|
|
11086
|
+
"name": "_resizeObserver",
|
|
11087
|
+
"type": {
|
|
11088
|
+
"text": "ResizeObserver | undefined"
|
|
11089
|
+
},
|
|
11090
|
+
"privacy": "private",
|
|
11091
|
+
"description": "Observes the rendered widget for mid-lifecycle size changes — see observeWidgetResize."
|
|
11092
|
+
},
|
|
11093
|
+
{
|
|
11094
|
+
"kind": "method",
|
|
11095
|
+
"name": "componentNameChanged"
|
|
11096
|
+
},
|
|
11097
|
+
{
|
|
11098
|
+
"kind": "method",
|
|
11099
|
+
"name": "interactionIdChanged",
|
|
11100
|
+
"description": "Re-render the hosted widget when the interaction identity changes. This\nensures widgets don't go stale with them being rendered with `recycle: true`\nwhen messages are dynamically filtered, showing/hiding thinking/tool calls\n\n`interactionId` is a per-interaction UUID, so it changes exactly when the\nhosted interaction does. Property bindings apply in template order\n(componentName, data, interactionId), so `data` is already rebound by the\ntime this fires and the fresh widget is built with the correct data."
|
|
11101
|
+
},
|
|
11102
|
+
{
|
|
11103
|
+
"kind": "method",
|
|
11104
|
+
"name": "resolvedChanged"
|
|
11105
|
+
},
|
|
11106
|
+
{
|
|
11107
|
+
"kind": "method",
|
|
11108
|
+
"name": "outcomeChanged",
|
|
11109
|
+
"description": "An outcome recorded after the answer reaches a widget already showing that answer."
|
|
11110
|
+
},
|
|
11111
|
+
{
|
|
11112
|
+
"kind": "method",
|
|
11113
|
+
"name": "resolvedInteraction",
|
|
11114
|
+
"privacy": "private",
|
|
11115
|
+
"return": {
|
|
11116
|
+
"type": {
|
|
11117
|
+
"text": "AiChatInteraction"
|
|
11118
|
+
}
|
|
11119
|
+
},
|
|
11120
|
+
"description": "The resolved descriptor, with the outcome when one has been recorded."
|
|
11121
|
+
},
|
|
11122
|
+
{
|
|
11123
|
+
"kind": "method",
|
|
11124
|
+
"name": "observeWidgetResize",
|
|
11125
|
+
"privacy": "private",
|
|
11126
|
+
"parameters": [
|
|
11127
|
+
{
|
|
11128
|
+
"name": "element",
|
|
11129
|
+
"type": {
|
|
11130
|
+
"text": "Element"
|
|
11131
|
+
}
|
|
11132
|
+
}
|
|
11133
|
+
],
|
|
11134
|
+
"description": "Watch the rendered widget element for box-size changes. When the widget\ngrows or shrinks mid-lifecycle (e.g. expanding a \"More info\" panel,\nappending an SSE status row, revealing generated code), bubble a\n`request-scroll-to-bottom` event so `FoundationAiAssistant` re-snaps to\nthe bottom. `scrollToBottom` respects `_userScrolledAway`, so a user\nreading old messages is not yanked back.\n\nThe first ResizeObserver callback fires synchronously with the initial\nsize when `observe()` is called; we skip it so freshly-rendered widgets\ndon't double up with the existing `handleMessagesUpdate` auto-scroll for\nnew messages."
|
|
11135
|
+
},
|
|
11136
|
+
{
|
|
11137
|
+
"kind": "method",
|
|
11138
|
+
"name": "renderComponent",
|
|
11139
|
+
"privacy": "private"
|
|
11140
|
+
},
|
|
11141
|
+
{
|
|
11142
|
+
"kind": "method",
|
|
11143
|
+
"name": "buildInteraction",
|
|
11144
|
+
"privacy": "private",
|
|
11145
|
+
"return": {
|
|
11146
|
+
"type": {
|
|
11147
|
+
"text": "AiChatInteraction"
|
|
11148
|
+
}
|
|
11149
|
+
},
|
|
11150
|
+
"parameters": [
|
|
11151
|
+
{
|
|
11152
|
+
"name": "host",
|
|
11153
|
+
"type": {
|
|
11154
|
+
"text": "InteractionHost | null"
|
|
11155
|
+
}
|
|
11156
|
+
}
|
|
11157
|
+
],
|
|
11158
|
+
"description": "Project the wrapper's current `data`/`resolved`/`interactionId` into the\ndiscriminated AiChatInteraction the widget consumes (GENC-1390)."
|
|
11159
|
+
}
|
|
11160
|
+
],
|
|
11161
|
+
"events": [
|
|
11162
|
+
{
|
|
11163
|
+
"name": "request-scroll-to-bottom",
|
|
11164
|
+
"type": {
|
|
11165
|
+
"text": "CustomEvent"
|
|
11166
|
+
}
|
|
11167
|
+
},
|
|
11168
|
+
{
|
|
11169
|
+
"description": "Fired when the interaction finishes. detail: `InteractionCompletedEventDetail`",
|
|
11170
|
+
"name": "interaction-completed"
|
|
11171
|
+
},
|
|
11172
|
+
{
|
|
11173
|
+
"description": "Fired when a widget spends money AFTER resolving. detail: `InteractionCostEventDetail`",
|
|
11174
|
+
"name": "interaction-cost"
|
|
11175
|
+
}
|
|
11176
|
+
],
|
|
11177
|
+
"superclass": {
|
|
11178
|
+
"name": "GenesisElement",
|
|
11179
|
+
"package": "@genesislcap/web-core"
|
|
11180
|
+
},
|
|
11181
|
+
"tagName": "ai-chat-interaction-wrapper",
|
|
10978
11182
|
"customElement": true
|
|
10979
11183
|
}
|
|
10980
11184
|
],
|
|
10981
11185
|
"exports": [
|
|
10982
11186
|
{
|
|
10983
11187
|
"kind": "js",
|
|
10984
|
-
"name": "
|
|
11188
|
+
"name": "AiChatInteractionWrapper",
|
|
10985
11189
|
"declaration": {
|
|
10986
|
-
"name": "
|
|
10987
|
-
"module": "src/components/chat-
|
|
11190
|
+
"name": "AiChatInteractionWrapper",
|
|
11191
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
10988
11192
|
}
|
|
10989
11193
|
},
|
|
10990
11194
|
{
|
|
10991
11195
|
"kind": "custom-element-definition",
|
|
10992
|
-
"name": "
|
|
11196
|
+
"name": "ai-chat-interaction-wrapper",
|
|
10993
11197
|
"declaration": {
|
|
10994
|
-
"name": "
|
|
10995
|
-
"module": "src/components/chat-
|
|
11198
|
+
"name": "AiChatInteractionWrapper",
|
|
11199
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
10996
11200
|
}
|
|
10997
11201
|
}
|
|
10998
11202
|
]
|
|
10999
11203
|
},
|
|
11000
11204
|
{
|
|
11001
11205
|
"kind": "javascript-module",
|
|
11002
|
-
"path": "src/components/chat-
|
|
11206
|
+
"path": "src/components/chat-interaction-wrapper/index.ts",
|
|
11003
11207
|
"declarations": [],
|
|
11004
11208
|
"exports": [
|
|
11005
11209
|
{
|
|
@@ -11007,7 +11211,23 @@
|
|
|
11007
11211
|
"name": "*",
|
|
11008
11212
|
"declaration": {
|
|
11009
11213
|
"name": "*",
|
|
11010
|
-
"package": "./chat-
|
|
11214
|
+
"package": "./chat-interaction-wrapper"
|
|
11215
|
+
}
|
|
11216
|
+
},
|
|
11217
|
+
{
|
|
11218
|
+
"kind": "js",
|
|
11219
|
+
"name": "*",
|
|
11220
|
+
"declaration": {
|
|
11221
|
+
"name": "*",
|
|
11222
|
+
"package": "./chat-interaction-wrapper.styles"
|
|
11223
|
+
}
|
|
11224
|
+
},
|
|
11225
|
+
{
|
|
11226
|
+
"kind": "js",
|
|
11227
|
+
"name": "*",
|
|
11228
|
+
"declaration": {
|
|
11229
|
+
"name": "*",
|
|
11230
|
+
"package": "./chat-interaction-wrapper.template"
|
|
11011
11231
|
}
|
|
11012
11232
|
}
|
|
11013
11233
|
]
|
|
@@ -14080,226 +14300,6 @@
|
|
|
14080
14300
|
}
|
|
14081
14301
|
]
|
|
14082
14302
|
},
|
|
14083
|
-
{
|
|
14084
|
-
"kind": "javascript-module",
|
|
14085
|
-
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts",
|
|
14086
|
-
"declarations": [
|
|
14087
|
-
{
|
|
14088
|
-
"kind": "variable",
|
|
14089
|
-
"name": "AiChatInteractionWrapperStyles",
|
|
14090
|
-
"default": "css`\n :host {\n display: block;\n }\n`"
|
|
14091
|
-
}
|
|
14092
|
-
],
|
|
14093
|
-
"exports": [
|
|
14094
|
-
{
|
|
14095
|
-
"kind": "js",
|
|
14096
|
-
"name": "AiChatInteractionWrapperStyles",
|
|
14097
|
-
"declaration": {
|
|
14098
|
-
"name": "AiChatInteractionWrapperStyles",
|
|
14099
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts"
|
|
14100
|
-
}
|
|
14101
|
-
}
|
|
14102
|
-
]
|
|
14103
|
-
},
|
|
14104
|
-
{
|
|
14105
|
-
"kind": "javascript-module",
|
|
14106
|
-
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts",
|
|
14107
|
-
"declarations": [
|
|
14108
|
-
{
|
|
14109
|
-
"kind": "variable",
|
|
14110
|
-
"name": "AiChatInteractionWrapperTemplate",
|
|
14111
|
-
"default": "html<AiChatInteractionWrapper>`\n <div ${ref('container')} class=\"container\" part=\"container\"></div>\n`"
|
|
14112
|
-
}
|
|
14113
|
-
],
|
|
14114
|
-
"exports": [
|
|
14115
|
-
{
|
|
14116
|
-
"kind": "js",
|
|
14117
|
-
"name": "AiChatInteractionWrapperTemplate",
|
|
14118
|
-
"declaration": {
|
|
14119
|
-
"name": "AiChatInteractionWrapperTemplate",
|
|
14120
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts"
|
|
14121
|
-
}
|
|
14122
|
-
}
|
|
14123
|
-
]
|
|
14124
|
-
},
|
|
14125
|
-
{
|
|
14126
|
-
"kind": "javascript-module",
|
|
14127
|
-
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts",
|
|
14128
|
-
"declarations": [
|
|
14129
|
-
{
|
|
14130
|
-
"kind": "class",
|
|
14131
|
-
"description": "Hosts an interactive AI chat sub-component by tag name.",
|
|
14132
|
-
"name": "AiChatInteractionWrapper",
|
|
14133
|
-
"members": [
|
|
14134
|
-
{
|
|
14135
|
-
"kind": "field",
|
|
14136
|
-
"name": "resolved",
|
|
14137
|
-
"type": {
|
|
14138
|
-
"text": "InteractionResult<unknown> | undefined"
|
|
14139
|
-
},
|
|
14140
|
-
"default": "undefined",
|
|
14141
|
-
"description": "The resolved result once the interaction has completed. Forwarded to the rendered component. @internal"
|
|
14142
|
-
},
|
|
14143
|
-
{
|
|
14144
|
-
"kind": "field",
|
|
14145
|
-
"name": "outcome",
|
|
14146
|
-
"type": {
|
|
14147
|
-
"text": "unknown"
|
|
14148
|
-
},
|
|
14149
|
-
"default": "undefined",
|
|
14150
|
-
"description": "See `AiChatInteraction`'s resolved `outcome`: recorded after the answer, by the tool."
|
|
14151
|
-
},
|
|
14152
|
-
{
|
|
14153
|
-
"kind": "field",
|
|
14154
|
-
"name": "_resizeObserver",
|
|
14155
|
-
"type": {
|
|
14156
|
-
"text": "ResizeObserver | undefined"
|
|
14157
|
-
},
|
|
14158
|
-
"privacy": "private",
|
|
14159
|
-
"description": "Observes the rendered widget for mid-lifecycle size changes — see observeWidgetResize."
|
|
14160
|
-
},
|
|
14161
|
-
{
|
|
14162
|
-
"kind": "method",
|
|
14163
|
-
"name": "componentNameChanged"
|
|
14164
|
-
},
|
|
14165
|
-
{
|
|
14166
|
-
"kind": "method",
|
|
14167
|
-
"name": "interactionIdChanged",
|
|
14168
|
-
"description": "Re-render the hosted widget when the interaction identity changes. This\nensures widgets don't go stale with them being rendered with `recycle: true`\nwhen messages are dynamically filtered, showing/hiding thinking/tool calls\n\n`interactionId` is a per-interaction UUID, so it changes exactly when the\nhosted interaction does. Property bindings apply in template order\n(componentName, data, interactionId), so `data` is already rebound by the\ntime this fires and the fresh widget is built with the correct data."
|
|
14169
|
-
},
|
|
14170
|
-
{
|
|
14171
|
-
"kind": "method",
|
|
14172
|
-
"name": "resolvedChanged"
|
|
14173
|
-
},
|
|
14174
|
-
{
|
|
14175
|
-
"kind": "method",
|
|
14176
|
-
"name": "outcomeChanged",
|
|
14177
|
-
"description": "An outcome recorded after the answer reaches a widget already showing that answer."
|
|
14178
|
-
},
|
|
14179
|
-
{
|
|
14180
|
-
"kind": "method",
|
|
14181
|
-
"name": "resolvedInteraction",
|
|
14182
|
-
"privacy": "private",
|
|
14183
|
-
"return": {
|
|
14184
|
-
"type": {
|
|
14185
|
-
"text": "AiChatInteraction"
|
|
14186
|
-
}
|
|
14187
|
-
},
|
|
14188
|
-
"description": "The resolved descriptor, with the outcome when one has been recorded."
|
|
14189
|
-
},
|
|
14190
|
-
{
|
|
14191
|
-
"kind": "method",
|
|
14192
|
-
"name": "observeWidgetResize",
|
|
14193
|
-
"privacy": "private",
|
|
14194
|
-
"parameters": [
|
|
14195
|
-
{
|
|
14196
|
-
"name": "element",
|
|
14197
|
-
"type": {
|
|
14198
|
-
"text": "Element"
|
|
14199
|
-
}
|
|
14200
|
-
}
|
|
14201
|
-
],
|
|
14202
|
-
"description": "Watch the rendered widget element for box-size changes. When the widget\ngrows or shrinks mid-lifecycle (e.g. expanding a \"More info\" panel,\nappending an SSE status row, revealing generated code), bubble a\n`request-scroll-to-bottom` event so `FoundationAiAssistant` re-snaps to\nthe bottom. `scrollToBottom` respects `_userScrolledAway`, so a user\nreading old messages is not yanked back.\n\nThe first ResizeObserver callback fires synchronously with the initial\nsize when `observe()` is called; we skip it so freshly-rendered widgets\ndon't double up with the existing `handleMessagesUpdate` auto-scroll for\nnew messages."
|
|
14203
|
-
},
|
|
14204
|
-
{
|
|
14205
|
-
"kind": "method",
|
|
14206
|
-
"name": "renderComponent",
|
|
14207
|
-
"privacy": "private"
|
|
14208
|
-
},
|
|
14209
|
-
{
|
|
14210
|
-
"kind": "method",
|
|
14211
|
-
"name": "buildInteraction",
|
|
14212
|
-
"privacy": "private",
|
|
14213
|
-
"return": {
|
|
14214
|
-
"type": {
|
|
14215
|
-
"text": "AiChatInteraction"
|
|
14216
|
-
}
|
|
14217
|
-
},
|
|
14218
|
-
"parameters": [
|
|
14219
|
-
{
|
|
14220
|
-
"name": "host",
|
|
14221
|
-
"type": {
|
|
14222
|
-
"text": "InteractionHost | null"
|
|
14223
|
-
}
|
|
14224
|
-
}
|
|
14225
|
-
],
|
|
14226
|
-
"description": "Project the wrapper's current `data`/`resolved`/`interactionId` into the\ndiscriminated AiChatInteraction the widget consumes (GENC-1390)."
|
|
14227
|
-
}
|
|
14228
|
-
],
|
|
14229
|
-
"events": [
|
|
14230
|
-
{
|
|
14231
|
-
"name": "request-scroll-to-bottom",
|
|
14232
|
-
"type": {
|
|
14233
|
-
"text": "CustomEvent"
|
|
14234
|
-
}
|
|
14235
|
-
},
|
|
14236
|
-
{
|
|
14237
|
-
"description": "Fired when the interaction finishes. detail: `InteractionCompletedEventDetail`",
|
|
14238
|
-
"name": "interaction-completed"
|
|
14239
|
-
},
|
|
14240
|
-
{
|
|
14241
|
-
"description": "Fired when a widget spends money AFTER resolving. detail: `InteractionCostEventDetail`",
|
|
14242
|
-
"name": "interaction-cost"
|
|
14243
|
-
}
|
|
14244
|
-
],
|
|
14245
|
-
"superclass": {
|
|
14246
|
-
"name": "GenesisElement",
|
|
14247
|
-
"package": "@genesislcap/web-core"
|
|
14248
|
-
},
|
|
14249
|
-
"tagName": "ai-chat-interaction-wrapper",
|
|
14250
|
-
"customElement": true
|
|
14251
|
-
}
|
|
14252
|
-
],
|
|
14253
|
-
"exports": [
|
|
14254
|
-
{
|
|
14255
|
-
"kind": "js",
|
|
14256
|
-
"name": "AiChatInteractionWrapper",
|
|
14257
|
-
"declaration": {
|
|
14258
|
-
"name": "AiChatInteractionWrapper",
|
|
14259
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
14260
|
-
}
|
|
14261
|
-
},
|
|
14262
|
-
{
|
|
14263
|
-
"kind": "custom-element-definition",
|
|
14264
|
-
"name": "ai-chat-interaction-wrapper",
|
|
14265
|
-
"declaration": {
|
|
14266
|
-
"name": "AiChatInteractionWrapper",
|
|
14267
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
14268
|
-
}
|
|
14269
|
-
}
|
|
14270
|
-
]
|
|
14271
|
-
},
|
|
14272
|
-
{
|
|
14273
|
-
"kind": "javascript-module",
|
|
14274
|
-
"path": "src/components/chat-interaction-wrapper/index.ts",
|
|
14275
|
-
"declarations": [],
|
|
14276
|
-
"exports": [
|
|
14277
|
-
{
|
|
14278
|
-
"kind": "js",
|
|
14279
|
-
"name": "*",
|
|
14280
|
-
"declaration": {
|
|
14281
|
-
"name": "*",
|
|
14282
|
-
"package": "./chat-interaction-wrapper"
|
|
14283
|
-
}
|
|
14284
|
-
},
|
|
14285
|
-
{
|
|
14286
|
-
"kind": "js",
|
|
14287
|
-
"name": "*",
|
|
14288
|
-
"declaration": {
|
|
14289
|
-
"name": "*",
|
|
14290
|
-
"package": "./chat-interaction-wrapper.styles"
|
|
14291
|
-
}
|
|
14292
|
-
},
|
|
14293
|
-
{
|
|
14294
|
-
"kind": "js",
|
|
14295
|
-
"name": "*",
|
|
14296
|
-
"declaration": {
|
|
14297
|
-
"name": "*",
|
|
14298
|
-
"package": "./chat-interaction-wrapper.template"
|
|
14299
|
-
}
|
|
14300
|
-
}
|
|
14301
|
-
]
|
|
14302
|
-
},
|
|
14303
14303
|
{
|
|
14304
14304
|
"kind": "javascript-module",
|
|
14305
14305
|
"path": "src/components/chat-markdown/chat-markdown.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.
|
|
4
|
+
"version": "15.46.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.
|
|
96
|
-
"@genesislcap/foundation-testing": "15.46.
|
|
97
|
-
"@genesislcap/genx": "15.46.
|
|
98
|
-
"@genesislcap/ts-builder": "15.46.
|
|
99
|
-
"@genesislcap/uvu-playwright-builder": "15.46.
|
|
100
|
-
"@genesislcap/vite-builder": "15.46.
|
|
101
|
-
"@genesislcap/webpack-builder": "15.46.
|
|
95
|
+
"@genesislcap/foundation-comms": "15.46.1",
|
|
96
|
+
"@genesislcap/foundation-testing": "15.46.1",
|
|
97
|
+
"@genesislcap/genx": "15.46.1",
|
|
98
|
+
"@genesislcap/ts-builder": "15.46.1",
|
|
99
|
+
"@genesislcap/uvu-playwright-builder": "15.46.1",
|
|
100
|
+
"@genesislcap/vite-builder": "15.46.1",
|
|
101
|
+
"@genesislcap/webpack-builder": "15.46.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.
|
|
108
|
-
"@genesislcap/foundation-logger": "15.46.
|
|
109
|
-
"@genesislcap/foundation-notifications": "15.46.
|
|
110
|
-
"@genesislcap/foundation-redux": "15.46.
|
|
111
|
-
"@genesislcap/foundation-ui": "15.46.
|
|
112
|
-
"@genesislcap/foundation-utils": "15.46.
|
|
113
|
-
"@genesislcap/rapid-design-system": "15.46.
|
|
114
|
-
"@genesislcap/web-core": "15.46.
|
|
107
|
+
"@genesislcap/foundation-ai": "15.46.1",
|
|
108
|
+
"@genesislcap/foundation-logger": "15.46.1",
|
|
109
|
+
"@genesislcap/foundation-notifications": "15.46.1",
|
|
110
|
+
"@genesislcap/foundation-redux": "15.46.1",
|
|
111
|
+
"@genesislcap/foundation-ui": "15.46.1",
|
|
112
|
+
"@genesislcap/foundation-utils": "15.46.1",
|
|
113
|
+
"@genesislcap/rapid-design-system": "15.46.1",
|
|
114
|
+
"@genesislcap/web-core": "15.46.1",
|
|
115
115
|
"dompurify": "^3.3.1",
|
|
116
116
|
"marked": "^17.0.3"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
|
-
"@genesislcap/foundation-comms": "^15.46.
|
|
119
|
+
"@genesislcap/foundation-comms": "^15.46.1"
|
|
120
120
|
},
|
|
121
121
|
"peerDependenciesMeta": {
|
|
122
122
|
"@genesislcap/foundation-comms": {
|