@genesislcap/ai-assistant 15.109.1 → 15.109.2
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 +525 -525
- package/package.json +17 -17
|
@@ -1586,418 +1586,137 @@
|
|
|
1586
1586
|
},
|
|
1587
1587
|
{
|
|
1588
1588
|
"kind": "javascript-module",
|
|
1589
|
-
"path": "src/
|
|
1589
|
+
"path": "src/autopilot/autopilot-driver.ts",
|
|
1590
1590
|
"declarations": [
|
|
1591
1591
|
{
|
|
1592
1592
|
"kind": "variable",
|
|
1593
|
-
"name": "
|
|
1593
|
+
"name": "AUTOPILOT_CLAIMANT",
|
|
1594
1594
|
"type": {
|
|
1595
|
-
"text": "
|
|
1595
|
+
"text": "string"
|
|
1596
1596
|
},
|
|
1597
|
-
"default": "
|
|
1598
|
-
"description": "
|
|
1597
|
+
"default": "'autopilot'",
|
|
1598
|
+
"description": "The holder id the autopilot claims interactions as."
|
|
1599
1599
|
},
|
|
1600
1600
|
{
|
|
1601
1601
|
"kind": "class",
|
|
1602
|
-
"description": "
|
|
1603
|
-
"name": "
|
|
1602
|
+
"description": "Autopilot (GENC-1660): a driver decorator that answers the questions a working agent asks the\nuser, on their behalf, grounded in the agent's autopilot config (for bootstrap, the brief).\n\nNeither side calls the other. The working agent asks as it always does; this driver claims the\ninteractions its policy allows, while it is running for that flow, and answers each in one short\nturn on the flow's `AutopilotSession`. It plugs in only through the generic extension points\n— an interaction interceptor, a handler capability and the flow lifecycle — so the core knows\nnothing about it, and it wraps any `AiDriver`.",
|
|
1603
|
+
"name": "AutopilotDriver",
|
|
1604
1604
|
"members": [
|
|
1605
1605
|
{
|
|
1606
1606
|
"kind": "field",
|
|
1607
|
-
"name": "
|
|
1607
|
+
"name": "agents",
|
|
1608
|
+
"type": {
|
|
1609
|
+
"text": "readonly AgentConfig[]"
|
|
1610
|
+
},
|
|
1608
1611
|
"privacy": "private",
|
|
1609
|
-
"readonly": true
|
|
1610
|
-
"default": "new Map<string, Set<AnyHandler>>()"
|
|
1612
|
+
"readonly": true
|
|
1611
1613
|
},
|
|
1612
1614
|
{
|
|
1613
1615
|
"kind": "field",
|
|
1614
|
-
"name": "
|
|
1616
|
+
"name": "providerRegistry",
|
|
1615
1617
|
"type": {
|
|
1616
|
-
"text": "
|
|
1618
|
+
"text": "AIProviderRegistry"
|
|
1617
1619
|
},
|
|
1618
1620
|
"privacy": "private",
|
|
1619
|
-
"readonly": true
|
|
1620
|
-
"default": "new Set(config?.crossTabEvents ?? [])"
|
|
1621
|
+
"readonly": true
|
|
1621
1622
|
},
|
|
1622
1623
|
{
|
|
1623
1624
|
"kind": "field",
|
|
1624
|
-
"name": "
|
|
1625
|
+
"name": "sessionKey",
|
|
1625
1626
|
"type": {
|
|
1626
|
-
"text": "
|
|
1627
|
+
"text": "string"
|
|
1627
1628
|
},
|
|
1628
1629
|
"privacy": "private",
|
|
1629
1630
|
"readonly": true
|
|
1630
1631
|
},
|
|
1631
1632
|
{
|
|
1632
1633
|
"kind": "field",
|
|
1633
|
-
"name": "
|
|
1634
|
+
"name": "activityBus",
|
|
1634
1635
|
"type": {
|
|
1635
|
-
"text": "
|
|
1636
|
+
"text": "ActivityBus"
|
|
1636
1637
|
},
|
|
1637
|
-
"privacy": "private"
|
|
1638
|
+
"privacy": "private",
|
|
1639
|
+
"readonly": true
|
|
1638
1640
|
},
|
|
1639
1641
|
{
|
|
1640
1642
|
"kind": "field",
|
|
1641
|
-
"name": "
|
|
1642
|
-
"type": {
|
|
1643
|
-
"text": "boolean"
|
|
1644
|
-
},
|
|
1643
|
+
"name": "listeners",
|
|
1645
1644
|
"privacy": "private",
|
|
1646
|
-
"
|
|
1645
|
+
"readonly": true,
|
|
1646
|
+
"default": "new Set<() => void>()"
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
|
-
"kind": "
|
|
1650
|
-
"name": "
|
|
1649
|
+
"kind": "field",
|
|
1650
|
+
"name": "sessions",
|
|
1651
1651
|
"privacy": "private",
|
|
1652
|
-
"
|
|
1653
|
-
|
|
1654
|
-
"text": "void"
|
|
1655
|
-
}
|
|
1656
|
-
},
|
|
1657
|
-
"description": "Lazily open the cross-tab `BroadcastChannel` on first use. Deferred (rather than\ncreated in the constructor) so that importing this module, or constructing the bus\noff-browser (Node, tests, headless server), never opens a live channel or reads\n`sessionStorage` — both would keep a Node event loop alive and hang the process.\nCross-tab forwarding is inherently browser-only, so channel creation is gated on a\nbrowser environment; elsewhere the bus stays purely in-process."
|
|
1652
|
+
"readonly": true,
|
|
1653
|
+
"default": "new Map<string, AutopilotSession>()"
|
|
1658
1654
|
},
|
|
1659
1655
|
{
|
|
1660
|
-
"kind": "
|
|
1661
|
-
"name": "
|
|
1662
|
-
"
|
|
1663
|
-
"
|
|
1664
|
-
"text": "() => void"
|
|
1665
|
-
}
|
|
1656
|
+
"kind": "field",
|
|
1657
|
+
"name": "onFor",
|
|
1658
|
+
"type": {
|
|
1659
|
+
"text": "string | null"
|
|
1666
1660
|
},
|
|
1667
|
-
"
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
"type": {
|
|
1671
|
-
"text": "K"
|
|
1672
|
-
}
|
|
1673
|
-
},
|
|
1674
|
-
{
|
|
1675
|
-
"name": "handler",
|
|
1676
|
-
"type": {
|
|
1677
|
-
"text": "(detail: AgenticActivityEvents[K]) => void"
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
],
|
|
1681
|
-
"description": "Subscribe to an event. Returns an unsubscribe function — call it in\n`disconnectedCallback` to avoid memory leaks."
|
|
1661
|
+
"privacy": "private",
|
|
1662
|
+
"default": "null",
|
|
1663
|
+
"description": "The flow the mode applies to: set when it is first switched, cleared when that flow ends."
|
|
1682
1664
|
},
|
|
1683
1665
|
{
|
|
1684
|
-
"kind": "
|
|
1685
|
-
"name": "
|
|
1686
|
-
"
|
|
1687
|
-
"
|
|
1688
|
-
"text": "void"
|
|
1689
|
-
}
|
|
1666
|
+
"kind": "field",
|
|
1667
|
+
"name": "mode",
|
|
1668
|
+
"type": {
|
|
1669
|
+
"text": "'paused' | 'running'"
|
|
1690
1670
|
},
|
|
1691
|
-
"
|
|
1692
|
-
|
|
1693
|
-
"name": "type",
|
|
1694
|
-
"type": {
|
|
1695
|
-
"text": "K"
|
|
1696
|
-
}
|
|
1697
|
-
},
|
|
1698
|
-
{
|
|
1699
|
-
"name": "detail",
|
|
1700
|
-
"type": {
|
|
1701
|
-
"text": "AgenticActivityEvents[K]"
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
],
|
|
1705
|
-
"description": "Publish an event to all local subscribers and, if configured, to other tabs\nvia BroadcastChannel."
|
|
1671
|
+
"privacy": "private",
|
|
1672
|
+
"default": "'paused'"
|
|
1706
1673
|
},
|
|
1707
1674
|
{
|
|
1708
|
-
"kind": "
|
|
1709
|
-
"name": "
|
|
1710
|
-
"
|
|
1711
|
-
"
|
|
1712
|
-
"text": "void"
|
|
1713
|
-
}
|
|
1675
|
+
"kind": "field",
|
|
1676
|
+
"name": "pauseState",
|
|
1677
|
+
"type": {
|
|
1678
|
+
"text": "AutopilotHostState['pause'] | undefined"
|
|
1714
1679
|
},
|
|
1715
|
-
"
|
|
1716
|
-
{
|
|
1717
|
-
"name": "type",
|
|
1718
|
-
"type": {
|
|
1719
|
-
"text": "keyof AgenticActivityEvents"
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
],
|
|
1723
|
-
"description": "Add an event type to the cross-tab forwarding set at runtime.\nMust be called before the first AgenticActivityBus.publish of that event type."
|
|
1680
|
+
"privacy": "private"
|
|
1724
1681
|
},
|
|
1725
1682
|
{
|
|
1726
|
-
"kind": "
|
|
1727
|
-
"name": "
|
|
1728
|
-
"
|
|
1729
|
-
"
|
|
1730
|
-
"text": "void"
|
|
1731
|
-
}
|
|
1683
|
+
"kind": "field",
|
|
1684
|
+
"name": "held",
|
|
1685
|
+
"type": {
|
|
1686
|
+
"text": "Held | undefined"
|
|
1732
1687
|
},
|
|
1733
|
-
"
|
|
1688
|
+
"privacy": "private"
|
|
1734
1689
|
},
|
|
1735
1690
|
{
|
|
1736
|
-
"kind": "
|
|
1737
|
-
"name": "
|
|
1691
|
+
"kind": "field",
|
|
1692
|
+
"name": "open",
|
|
1693
|
+
"type": {
|
|
1694
|
+
"text": "InteractionOpened | undefined"
|
|
1695
|
+
},
|
|
1738
1696
|
"privacy": "private",
|
|
1739
|
-
"
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1697
|
+
"description": "The interaction open right now, whoever holds it: claimed or not, it was offered here first.\n`held` covers only what the autopilot claimed, so this is how the status knows that the working\nagent is parked on a question left with the person (see `waitingOnUser`)."
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "field",
|
|
1701
|
+
"name": "declinedWhilePaused",
|
|
1702
|
+
"type": {
|
|
1703
|
+
"text": "InteractionOpened | undefined"
|
|
1743
1704
|
},
|
|
1744
|
-
"
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
"type": {
|
|
1748
|
-
"text": "string"
|
|
1749
|
-
}
|
|
1750
|
-
},
|
|
1751
|
-
{
|
|
1752
|
-
"name": "detail",
|
|
1753
|
-
"type": {
|
|
1754
|
-
"text": "unknown"
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
]
|
|
1758
|
-
}
|
|
1759
|
-
]
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
"kind": "variable",
|
|
1763
|
-
"name": "agenticActivityBus",
|
|
1764
|
-
"default": "new AgenticActivityBus({\n crossTabEvents: ['halo-start', 'halo-stop', 'tool-loop-start', 'tool-loop-end'],\n // Lazy: the tab-scoped name (and its `sessionStorage` read) is computed on first\n // cross-tab use in a browser, not at module-eval — so importing this module is\n // side-effect-free and Node/test-safe.\n channelNameFactory: () => getTabScopedChannelName('foundation-ai-activity'),\n})",
|
|
1765
|
-
"description": "Pre-instantiated singleton event bus for AI assistant activity.\n\n- `halo-start` / `halo-stop` are forwarded via a tab-scoped `BroadcastChannel` so that\n popout windows opened from this tab show halo animations, while remaining isolated from\n unrelated tabs on the same origin (tab-scoped channel name).\n- `tool-loop-start` / `tool-loop-end` are cross-tab for the same reason: they describe the\n assistant's lifecycle (a turn beginning / ending), and the most common subscribers\n (workspace transitions, post-turn deferred recomputation, UI gates tied to the assistant\n being idle) need the event regardless of whether the user is interacting with the chat\n in the main tab or a popout window. Tab-local-only telemetry can subscribe and filter.\n- `chat-popout` / `chat-popin` are in-memory only — they must only affect the tab where the\n user clicked."
|
|
1766
|
-
}
|
|
1767
|
-
],
|
|
1768
|
-
"exports": [
|
|
1769
|
-
{
|
|
1770
|
-
"kind": "js",
|
|
1771
|
-
"name": "NOOP_ACTIVITY_BUS",
|
|
1772
|
-
"declaration": {
|
|
1773
|
-
"name": "NOOP_ACTIVITY_BUS",
|
|
1774
|
-
"module": "src/channel/ai-activity-bus.ts"
|
|
1775
|
-
}
|
|
1776
|
-
},
|
|
1777
|
-
{
|
|
1778
|
-
"kind": "js",
|
|
1779
|
-
"name": "AgenticActivityBus",
|
|
1780
|
-
"declaration": {
|
|
1781
|
-
"name": "AgenticActivityBus",
|
|
1782
|
-
"module": "src/channel/ai-activity-bus.ts"
|
|
1783
|
-
}
|
|
1784
|
-
},
|
|
1785
|
-
{
|
|
1786
|
-
"kind": "js",
|
|
1787
|
-
"name": "agenticActivityBus",
|
|
1788
|
-
"declaration": {
|
|
1789
|
-
"name": "agenticActivityBus",
|
|
1790
|
-
"module": "src/channel/ai-activity-bus.ts"
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
]
|
|
1794
|
-
},
|
|
1795
|
-
{
|
|
1796
|
-
"kind": "javascript-module",
|
|
1797
|
-
"path": "src/channel/ai-activity-channel.ts",
|
|
1798
|
-
"declarations": [],
|
|
1799
|
-
"exports": []
|
|
1800
|
-
},
|
|
1801
|
-
{
|
|
1802
|
-
"kind": "javascript-module",
|
|
1803
|
-
"path": "src/channel/autopilot-needs-user.ts",
|
|
1804
|
-
"declarations": [
|
|
1805
|
-
{
|
|
1806
|
-
"kind": "function",
|
|
1807
|
-
"name": "setAutopilotNeedsUser",
|
|
1808
|
-
"return": {
|
|
1809
|
-
"type": {
|
|
1810
|
-
"text": "void"
|
|
1811
|
-
}
|
|
1812
|
-
},
|
|
1813
|
-
"parameters": [
|
|
1705
|
+
"privacy": "private",
|
|
1706
|
+
"description": "The open interaction, when the autopilot declined it only for being paused as it opened: a live\nResume may still take it (see `takeOpenOnResume`). Cleared when it is taken or settles."
|
|
1707
|
+
},
|
|
1814
1708
|
{
|
|
1815
|
-
"
|
|
1709
|
+
"kind": "field",
|
|
1710
|
+
"name": "refinements",
|
|
1816
1711
|
"type": {
|
|
1817
|
-
"text": "string"
|
|
1818
|
-
}
|
|
1712
|
+
"text": "{ key: string; count: number } | undefined"
|
|
1713
|
+
},
|
|
1714
|
+
"privacy": "private",
|
|
1715
|
+
"description": "Refining actions taken on the current step (written answers among them), for the limit."
|
|
1819
1716
|
},
|
|
1820
1717
|
{
|
|
1821
|
-
"
|
|
1822
|
-
"
|
|
1823
|
-
"text": "boolean"
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
],
|
|
1827
|
-
"description": "Set it for one session, announcing `autopilot-needs-user` when it changes."
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
"kind": "function",
|
|
1831
|
-
"name": "autopilotNeedsUser",
|
|
1832
|
-
"return": {
|
|
1833
|
-
"type": {
|
|
1834
|
-
"text": "boolean"
|
|
1835
|
-
}
|
|
1836
|
-
},
|
|
1837
|
-
"parameters": [
|
|
1838
|
-
{
|
|
1839
|
-
"name": "sessionKey",
|
|
1840
|
-
"optional": true,
|
|
1841
|
-
"type": {
|
|
1842
|
-
"text": "string"
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
],
|
|
1846
|
-
"description": "Whether a session has something waiting on the person — or, without a key (a bubble that cannot\ntell which assistant it holds), whether any session has."
|
|
1847
|
-
}
|
|
1848
|
-
],
|
|
1849
|
-
"exports": [
|
|
1850
|
-
{
|
|
1851
|
-
"kind": "js",
|
|
1852
|
-
"name": "setAutopilotNeedsUser",
|
|
1853
|
-
"declaration": {
|
|
1854
|
-
"name": "setAutopilotNeedsUser",
|
|
1855
|
-
"module": "src/channel/autopilot-needs-user.ts"
|
|
1856
|
-
}
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
"kind": "js",
|
|
1860
|
-
"name": "autopilotNeedsUser",
|
|
1861
|
-
"declaration": {
|
|
1862
|
-
"name": "autopilotNeedsUser",
|
|
1863
|
-
"module": "src/channel/autopilot-needs-user.ts"
|
|
1864
|
-
}
|
|
1865
|
-
}
|
|
1866
|
-
]
|
|
1867
|
-
},
|
|
1868
|
-
{
|
|
1869
|
-
"kind": "javascript-module",
|
|
1870
|
-
"path": "src/autopilot/autopilot-driver.ts",
|
|
1871
|
-
"declarations": [
|
|
1872
|
-
{
|
|
1873
|
-
"kind": "variable",
|
|
1874
|
-
"name": "AUTOPILOT_CLAIMANT",
|
|
1875
|
-
"type": {
|
|
1876
|
-
"text": "string"
|
|
1877
|
-
},
|
|
1878
|
-
"default": "'autopilot'",
|
|
1879
|
-
"description": "The holder id the autopilot claims interactions as."
|
|
1880
|
-
},
|
|
1881
|
-
{
|
|
1882
|
-
"kind": "class",
|
|
1883
|
-
"description": "Autopilot (GENC-1660): a driver decorator that answers the questions a working agent asks the\nuser, on their behalf, grounded in the agent's autopilot config (for bootstrap, the brief).\n\nNeither side calls the other. The working agent asks as it always does; this driver claims the\ninteractions its policy allows, while it is running for that flow, and answers each in one short\nturn on the flow's `AutopilotSession`. It plugs in only through the generic extension points\n— an interaction interceptor, a handler capability and the flow lifecycle — so the core knows\nnothing about it, and it wraps any `AiDriver`.",
|
|
1884
|
-
"name": "AutopilotDriver",
|
|
1885
|
-
"members": [
|
|
1886
|
-
{
|
|
1887
|
-
"kind": "field",
|
|
1888
|
-
"name": "agents",
|
|
1889
|
-
"type": {
|
|
1890
|
-
"text": "readonly AgentConfig[]"
|
|
1891
|
-
},
|
|
1892
|
-
"privacy": "private",
|
|
1893
|
-
"readonly": true
|
|
1894
|
-
},
|
|
1895
|
-
{
|
|
1896
|
-
"kind": "field",
|
|
1897
|
-
"name": "providerRegistry",
|
|
1898
|
-
"type": {
|
|
1899
|
-
"text": "AIProviderRegistry"
|
|
1900
|
-
},
|
|
1901
|
-
"privacy": "private",
|
|
1902
|
-
"readonly": true
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
"kind": "field",
|
|
1906
|
-
"name": "sessionKey",
|
|
1907
|
-
"type": {
|
|
1908
|
-
"text": "string"
|
|
1909
|
-
},
|
|
1910
|
-
"privacy": "private",
|
|
1911
|
-
"readonly": true
|
|
1912
|
-
},
|
|
1913
|
-
{
|
|
1914
|
-
"kind": "field",
|
|
1915
|
-
"name": "activityBus",
|
|
1916
|
-
"type": {
|
|
1917
|
-
"text": "ActivityBus"
|
|
1918
|
-
},
|
|
1919
|
-
"privacy": "private",
|
|
1920
|
-
"readonly": true
|
|
1921
|
-
},
|
|
1922
|
-
{
|
|
1923
|
-
"kind": "field",
|
|
1924
|
-
"name": "listeners",
|
|
1925
|
-
"privacy": "private",
|
|
1926
|
-
"readonly": true,
|
|
1927
|
-
"default": "new Set<() => void>()"
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
"kind": "field",
|
|
1931
|
-
"name": "sessions",
|
|
1932
|
-
"privacy": "private",
|
|
1933
|
-
"readonly": true,
|
|
1934
|
-
"default": "new Map<string, AutopilotSession>()"
|
|
1935
|
-
},
|
|
1936
|
-
{
|
|
1937
|
-
"kind": "field",
|
|
1938
|
-
"name": "onFor",
|
|
1939
|
-
"type": {
|
|
1940
|
-
"text": "string | null"
|
|
1941
|
-
},
|
|
1942
|
-
"privacy": "private",
|
|
1943
|
-
"default": "null",
|
|
1944
|
-
"description": "The flow the mode applies to: set when it is first switched, cleared when that flow ends."
|
|
1945
|
-
},
|
|
1946
|
-
{
|
|
1947
|
-
"kind": "field",
|
|
1948
|
-
"name": "mode",
|
|
1949
|
-
"type": {
|
|
1950
|
-
"text": "'paused' | 'running'"
|
|
1951
|
-
},
|
|
1952
|
-
"privacy": "private",
|
|
1953
|
-
"default": "'paused'"
|
|
1954
|
-
},
|
|
1955
|
-
{
|
|
1956
|
-
"kind": "field",
|
|
1957
|
-
"name": "pauseState",
|
|
1958
|
-
"type": {
|
|
1959
|
-
"text": "AutopilotHostState['pause'] | undefined"
|
|
1960
|
-
},
|
|
1961
|
-
"privacy": "private"
|
|
1962
|
-
},
|
|
1963
|
-
{
|
|
1964
|
-
"kind": "field",
|
|
1965
|
-
"name": "held",
|
|
1966
|
-
"type": {
|
|
1967
|
-
"text": "Held | undefined"
|
|
1968
|
-
},
|
|
1969
|
-
"privacy": "private"
|
|
1970
|
-
},
|
|
1971
|
-
{
|
|
1972
|
-
"kind": "field",
|
|
1973
|
-
"name": "open",
|
|
1974
|
-
"type": {
|
|
1975
|
-
"text": "InteractionOpened | undefined"
|
|
1976
|
-
},
|
|
1977
|
-
"privacy": "private",
|
|
1978
|
-
"description": "The interaction open right now, whoever holds it: claimed or not, it was offered here first.\n`held` covers only what the autopilot claimed, so this is how the status knows that the working\nagent is parked on a question left with the person (see `waitingOnUser`)."
|
|
1979
|
-
},
|
|
1980
|
-
{
|
|
1981
|
-
"kind": "field",
|
|
1982
|
-
"name": "declinedWhilePaused",
|
|
1983
|
-
"type": {
|
|
1984
|
-
"text": "InteractionOpened | undefined"
|
|
1985
|
-
},
|
|
1986
|
-
"privacy": "private",
|
|
1987
|
-
"description": "The open interaction, when the autopilot declined it only for being paused as it opened: a live\nResume may still take it (see `takeOpenOnResume`). Cleared when it is taken or settles."
|
|
1988
|
-
},
|
|
1989
|
-
{
|
|
1990
|
-
"kind": "field",
|
|
1991
|
-
"name": "refinements",
|
|
1992
|
-
"type": {
|
|
1993
|
-
"text": "{ key: string; count: number } | undefined"
|
|
1994
|
-
},
|
|
1995
|
-
"privacy": "private",
|
|
1996
|
-
"description": "Refining actions taken on the current step (written answers among them), for the limit."
|
|
1997
|
-
},
|
|
1998
|
-
{
|
|
1999
|
-
"kind": "field",
|
|
2000
|
-
"name": "watchdog",
|
|
1718
|
+
"kind": "field",
|
|
1719
|
+
"name": "watchdog",
|
|
2001
1720
|
"type": {
|
|
2002
1721
|
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
2003
1722
|
},
|
|
@@ -5344,235 +5063,285 @@
|
|
|
5344
5063
|
},
|
|
5345
5064
|
{
|
|
5346
5065
|
"kind": "javascript-module",
|
|
5347
|
-
"path": "src/
|
|
5066
|
+
"path": "src/channel/ai-activity-bus.ts",
|
|
5348
5067
|
"declarations": [
|
|
5349
5068
|
{
|
|
5350
|
-
"kind": "
|
|
5351
|
-
"name": "
|
|
5352
|
-
"
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
"kind": "js",
|
|
5358
|
-
"name": "CachePolicy",
|
|
5359
|
-
"declaration": {
|
|
5360
|
-
"name": "CachePolicy",
|
|
5361
|
-
"module": "src/config/config.ts"
|
|
5362
|
-
}
|
|
5363
|
-
},
|
|
5364
|
-
{
|
|
5365
|
-
"kind": "js",
|
|
5366
|
-
"name": "ChatFallback",
|
|
5367
|
-
"declaration": {
|
|
5368
|
-
"name": "ChatFallback",
|
|
5369
|
-
"module": "src/config/config.ts"
|
|
5370
|
-
}
|
|
5371
|
-
},
|
|
5372
|
-
{
|
|
5373
|
-
"kind": "js",
|
|
5374
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5375
|
-
"declaration": {
|
|
5376
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5377
|
-
"module": "src/config/config.ts"
|
|
5378
|
-
}
|
|
5379
|
-
},
|
|
5380
|
-
{
|
|
5381
|
-
"kind": "js",
|
|
5382
|
-
"name": "ChatThinkingPolicy",
|
|
5383
|
-
"declaration": {
|
|
5384
|
-
"name": "ChatThinkingPolicy",
|
|
5385
|
-
"module": "src/config/config.ts"
|
|
5386
|
-
}
|
|
5387
|
-
},
|
|
5388
|
-
{
|
|
5389
|
-
"kind": "js",
|
|
5390
|
-
"name": "ChatToolChoice",
|
|
5391
|
-
"declaration": {
|
|
5392
|
-
"name": "ChatToolChoice",
|
|
5393
|
-
"module": "src/config/config.ts"
|
|
5394
|
-
}
|
|
5069
|
+
"kind": "variable",
|
|
5070
|
+
"name": "NOOP_ACTIVITY_BUS",
|
|
5071
|
+
"type": {
|
|
5072
|
+
"text": "ActivityBus"
|
|
5073
|
+
},
|
|
5074
|
+
"default": "{ publish: () => {} }",
|
|
5075
|
+
"description": "No-op ActivityBus. The default when no bus is injected (Node, tests, headless\nserver use) — publishing goes nowhere and nothing is left open to tear down."
|
|
5395
5076
|
},
|
|
5396
5077
|
{
|
|
5397
|
-
"kind": "
|
|
5398
|
-
"
|
|
5399
|
-
"
|
|
5400
|
-
|
|
5401
|
-
"module": "src/config/config.ts"
|
|
5402
|
-
}
|
|
5403
|
-
}
|
|
5404
|
-
]
|
|
5405
|
-
},
|
|
5406
|
-
{
|
|
5407
|
-
"kind": "javascript-module",
|
|
5408
|
-
"path": "src/config/define-stateful-agent.ts",
|
|
5409
|
-
"declarations": [
|
|
5410
|
-
{
|
|
5411
|
-
"kind": "function",
|
|
5412
|
-
"name": "restoreMachine",
|
|
5413
|
-
"return": {
|
|
5414
|
-
"type": {
|
|
5415
|
-
"text": "void"
|
|
5416
|
-
}
|
|
5417
|
-
},
|
|
5418
|
-
"parameters": [
|
|
5078
|
+
"kind": "class",
|
|
5079
|
+
"description": "Typed in-process event bus for AI assistant activity events.\n\nDispatches events synchronously to all local subscribers in the same JS module instance\n(i.e. the same browser tab). Events listed in `crossTabEvents` are additionally forwarded\nvia a shared `BroadcastChannel` so that other tabs on the same origin receive them.",
|
|
5080
|
+
"name": "AgenticActivityBus",
|
|
5081
|
+
"members": [
|
|
5419
5082
|
{
|
|
5420
|
-
"
|
|
5421
|
-
"
|
|
5422
|
-
|
|
5083
|
+
"kind": "field",
|
|
5084
|
+
"name": "subscribers",
|
|
5085
|
+
"privacy": "private",
|
|
5086
|
+
"readonly": true,
|
|
5087
|
+
"default": "new Map<string, Set<AnyHandler>>()"
|
|
5088
|
+
},
|
|
5089
|
+
{
|
|
5090
|
+
"kind": "field",
|
|
5091
|
+
"name": "crossTabEvents",
|
|
5092
|
+
"type": {
|
|
5093
|
+
"text": "Set<string>"
|
|
5423
5094
|
},
|
|
5424
|
-
"
|
|
5095
|
+
"privacy": "private",
|
|
5096
|
+
"readonly": true,
|
|
5097
|
+
"default": "new Set(config?.crossTabEvents ?? [])"
|
|
5425
5098
|
},
|
|
5426
5099
|
{
|
|
5427
|
-
"
|
|
5100
|
+
"kind": "field",
|
|
5101
|
+
"name": "channelNameFactory",
|
|
5428
5102
|
"type": {
|
|
5429
|
-
"text": "
|
|
5103
|
+
"text": "() => string | undefined"
|
|
5430
5104
|
},
|
|
5431
|
-
"
|
|
5105
|
+
"privacy": "private",
|
|
5106
|
+
"readonly": true
|
|
5432
5107
|
},
|
|
5433
5108
|
{
|
|
5434
|
-
"
|
|
5435
|
-
"
|
|
5436
|
-
"
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
{
|
|
5442
|
-
"kind": "function",
|
|
5443
|
-
"name": "defineStatefulAgent",
|
|
5444
|
-
"return": {
|
|
5445
|
-
"type": {
|
|
5446
|
-
"text": "AgentConfig"
|
|
5447
|
-
}
|
|
5448
|
-
},
|
|
5449
|
-
"parameters": [
|
|
5109
|
+
"kind": "field",
|
|
5110
|
+
"name": "channel",
|
|
5111
|
+
"type": {
|
|
5112
|
+
"text": "BroadcastChannel | undefined"
|
|
5113
|
+
},
|
|
5114
|
+
"privacy": "private"
|
|
5115
|
+
},
|
|
5450
5116
|
{
|
|
5451
|
-
"
|
|
5117
|
+
"kind": "field",
|
|
5118
|
+
"name": "channelInitialised",
|
|
5452
5119
|
"type": {
|
|
5453
|
-
"text": "
|
|
5454
|
-
}
|
|
5120
|
+
"text": "boolean"
|
|
5121
|
+
},
|
|
5122
|
+
"privacy": "private",
|
|
5123
|
+
"default": "false"
|
|
5124
|
+
},
|
|
5125
|
+
{
|
|
5126
|
+
"kind": "method",
|
|
5127
|
+
"name": "ensureChannel",
|
|
5128
|
+
"privacy": "private",
|
|
5129
|
+
"return": {
|
|
5130
|
+
"type": {
|
|
5131
|
+
"text": "void"
|
|
5132
|
+
}
|
|
5133
|
+
},
|
|
5134
|
+
"description": "Lazily open the cross-tab `BroadcastChannel` on first use. Deferred (rather than\ncreated in the constructor) so that importing this module, or constructing the bus\noff-browser (Node, tests, headless server), never opens a live channel or reads\n`sessionStorage` — both would keep a Node event loop alive and hang the process.\nCross-tab forwarding is inherently browser-only, so channel creation is gated on a\nbrowser environment; elsewhere the bus stays purely in-process."
|
|
5135
|
+
},
|
|
5136
|
+
{
|
|
5137
|
+
"kind": "method",
|
|
5138
|
+
"name": "subscribe",
|
|
5139
|
+
"return": {
|
|
5140
|
+
"type": {
|
|
5141
|
+
"text": "() => void"
|
|
5142
|
+
}
|
|
5143
|
+
},
|
|
5144
|
+
"parameters": [
|
|
5145
|
+
{
|
|
5146
|
+
"name": "type",
|
|
5147
|
+
"type": {
|
|
5148
|
+
"text": "K"
|
|
5149
|
+
}
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
"name": "handler",
|
|
5153
|
+
"type": {
|
|
5154
|
+
"text": "(detail: AgenticActivityEvents[K]) => void"
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
],
|
|
5158
|
+
"description": "Subscribe to an event. Returns an unsubscribe function — call it in\n`disconnectedCallback` to avoid memory leaks."
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"kind": "method",
|
|
5162
|
+
"name": "publish",
|
|
5163
|
+
"return": {
|
|
5164
|
+
"type": {
|
|
5165
|
+
"text": "void"
|
|
5166
|
+
}
|
|
5167
|
+
},
|
|
5168
|
+
"parameters": [
|
|
5169
|
+
{
|
|
5170
|
+
"name": "type",
|
|
5171
|
+
"type": {
|
|
5172
|
+
"text": "K"
|
|
5173
|
+
}
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"name": "detail",
|
|
5177
|
+
"type": {
|
|
5178
|
+
"text": "AgenticActivityEvents[K]"
|
|
5179
|
+
}
|
|
5180
|
+
}
|
|
5181
|
+
],
|
|
5182
|
+
"description": "Publish an event to all local subscribers and, if configured, to other tabs\nvia BroadcastChannel."
|
|
5183
|
+
},
|
|
5184
|
+
{
|
|
5185
|
+
"kind": "method",
|
|
5186
|
+
"name": "addCrossTabEvent",
|
|
5187
|
+
"return": {
|
|
5188
|
+
"type": {
|
|
5189
|
+
"text": "void"
|
|
5190
|
+
}
|
|
5191
|
+
},
|
|
5192
|
+
"parameters": [
|
|
5193
|
+
{
|
|
5194
|
+
"name": "type",
|
|
5195
|
+
"type": {
|
|
5196
|
+
"text": "keyof AgenticActivityEvents"
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
],
|
|
5200
|
+
"description": "Add an event type to the cross-tab forwarding set at runtime.\nMust be called before the first AgenticActivityBus.publish of that event type."
|
|
5201
|
+
},
|
|
5202
|
+
{
|
|
5203
|
+
"kind": "method",
|
|
5204
|
+
"name": "close",
|
|
5205
|
+
"return": {
|
|
5206
|
+
"type": {
|
|
5207
|
+
"text": "void"
|
|
5208
|
+
}
|
|
5209
|
+
},
|
|
5210
|
+
"description": "Close the underlying BroadcastChannel. Call once on application teardown if needed."
|
|
5211
|
+
},
|
|
5212
|
+
{
|
|
5213
|
+
"kind": "method",
|
|
5214
|
+
"name": "notifyLocal",
|
|
5215
|
+
"privacy": "private",
|
|
5216
|
+
"return": {
|
|
5217
|
+
"type": {
|
|
5218
|
+
"text": "void"
|
|
5219
|
+
}
|
|
5220
|
+
},
|
|
5221
|
+
"parameters": [
|
|
5222
|
+
{
|
|
5223
|
+
"name": "type",
|
|
5224
|
+
"type": {
|
|
5225
|
+
"text": "string"
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
{
|
|
5229
|
+
"name": "detail",
|
|
5230
|
+
"type": {
|
|
5231
|
+
"text": "unknown"
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
]
|
|
5455
5235
|
}
|
|
5456
|
-
]
|
|
5457
|
-
"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."
|
|
5236
|
+
]
|
|
5458
5237
|
},
|
|
5459
5238
|
{
|
|
5460
|
-
"kind": "
|
|
5461
|
-
"name": "
|
|
5462
|
-
"
|
|
5463
|
-
|
|
5464
|
-
"text": "AutopilotConfig<S>"
|
|
5465
|
-
}
|
|
5466
|
-
},
|
|
5467
|
-
"parameters": [
|
|
5468
|
-
{
|
|
5469
|
-
"name": "config",
|
|
5470
|
-
"type": {
|
|
5471
|
-
"text": "AutopilotConfig<S>"
|
|
5472
|
-
}
|
|
5473
|
-
}
|
|
5474
|
-
],
|
|
5475
|
-
"description": "Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function\nthat exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s\n`autopilot` option."
|
|
5239
|
+
"kind": "variable",
|
|
5240
|
+
"name": "agenticActivityBus",
|
|
5241
|
+
"default": "new AgenticActivityBus({\n crossTabEvents: ['halo-start', 'halo-stop', 'tool-loop-start', 'tool-loop-end'],\n // Lazy: the tab-scoped name (and its `sessionStorage` read) is computed on first\n // cross-tab use in a browser, not at module-eval — so importing this module is\n // side-effect-free and Node/test-safe.\n channelNameFactory: () => getTabScopedChannelName('foundation-ai-activity'),\n})",
|
|
5242
|
+
"description": "Pre-instantiated singleton event bus for AI assistant activity.\n\n- `halo-start` / `halo-stop` are forwarded via a tab-scoped `BroadcastChannel` so that\n popout windows opened from this tab show halo animations, while remaining isolated from\n unrelated tabs on the same origin (tab-scoped channel name).\n- `tool-loop-start` / `tool-loop-end` are cross-tab for the same reason: they describe the\n assistant's lifecycle (a turn beginning / ending), and the most common subscribers\n (workspace transitions, post-turn deferred recomputation, UI gates tied to the assistant\n being idle) need the event regardless of whether the user is interacting with the chat\n in the main tab or a popout window. Tab-local-only telemetry can subscribe and filter.\n- `chat-popout` / `chat-popin` are in-memory only — they must only affect the tab where the\n user clicked."
|
|
5476
5243
|
}
|
|
5477
5244
|
],
|
|
5478
5245
|
"exports": [
|
|
5479
5246
|
{
|
|
5480
5247
|
"kind": "js",
|
|
5481
|
-
"name": "
|
|
5248
|
+
"name": "NOOP_ACTIVITY_BUS",
|
|
5482
5249
|
"declaration": {
|
|
5483
|
-
"name": "
|
|
5484
|
-
"module": "src/
|
|
5250
|
+
"name": "NOOP_ACTIVITY_BUS",
|
|
5251
|
+
"module": "src/channel/ai-activity-bus.ts"
|
|
5485
5252
|
}
|
|
5486
5253
|
},
|
|
5487
5254
|
{
|
|
5488
5255
|
"kind": "js",
|
|
5489
|
-
"name": "
|
|
5256
|
+
"name": "AgenticActivityBus",
|
|
5490
5257
|
"declaration": {
|
|
5491
|
-
"name": "
|
|
5492
|
-
"module": "src/
|
|
5258
|
+
"name": "AgenticActivityBus",
|
|
5259
|
+
"module": "src/channel/ai-activity-bus.ts"
|
|
5493
5260
|
}
|
|
5494
5261
|
},
|
|
5495
5262
|
{
|
|
5496
5263
|
"kind": "js",
|
|
5497
|
-
"name": "
|
|
5264
|
+
"name": "agenticActivityBus",
|
|
5498
5265
|
"declaration": {
|
|
5499
|
-
"name": "
|
|
5500
|
-
"module": "src/
|
|
5266
|
+
"name": "agenticActivityBus",
|
|
5267
|
+
"module": "src/channel/ai-activity-bus.ts"
|
|
5501
5268
|
}
|
|
5502
5269
|
}
|
|
5503
5270
|
]
|
|
5504
5271
|
},
|
|
5505
5272
|
{
|
|
5506
5273
|
"kind": "javascript-module",
|
|
5507
|
-
"path": "src/
|
|
5274
|
+
"path": "src/channel/ai-activity-channel.ts",
|
|
5275
|
+
"declarations": [],
|
|
5276
|
+
"exports": []
|
|
5277
|
+
},
|
|
5278
|
+
{
|
|
5279
|
+
"kind": "javascript-module",
|
|
5280
|
+
"path": "src/channel/autopilot-needs-user.ts",
|
|
5508
5281
|
"declarations": [
|
|
5509
5282
|
{
|
|
5510
|
-
"kind": "
|
|
5511
|
-
"name": "
|
|
5512
|
-
"
|
|
5513
|
-
"
|
|
5283
|
+
"kind": "function",
|
|
5284
|
+
"name": "setAutopilotNeedsUser",
|
|
5285
|
+
"return": {
|
|
5286
|
+
"type": {
|
|
5287
|
+
"text": "void"
|
|
5288
|
+
}
|
|
5514
5289
|
},
|
|
5515
|
-
"
|
|
5516
|
-
|
|
5290
|
+
"parameters": [
|
|
5291
|
+
{
|
|
5292
|
+
"name": "sessionKey",
|
|
5293
|
+
"type": {
|
|
5294
|
+
"text": "string"
|
|
5295
|
+
}
|
|
5296
|
+
},
|
|
5297
|
+
{
|
|
5298
|
+
"name": "needsUser",
|
|
5299
|
+
"type": {
|
|
5300
|
+
"text": "boolean"
|
|
5301
|
+
}
|
|
5302
|
+
}
|
|
5303
|
+
],
|
|
5304
|
+
"description": "Set it for one session, announcing `autopilot-needs-user` when it changes."
|
|
5517
5305
|
},
|
|
5518
5306
|
{
|
|
5519
|
-
"kind": "
|
|
5520
|
-
"name": "
|
|
5521
|
-
"
|
|
5522
|
-
"
|
|
5307
|
+
"kind": "function",
|
|
5308
|
+
"name": "autopilotNeedsUser",
|
|
5309
|
+
"return": {
|
|
5310
|
+
"type": {
|
|
5311
|
+
"text": "boolean"
|
|
5312
|
+
}
|
|
5523
5313
|
},
|
|
5524
|
-
"
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
"module": "src/config/fallback-agents.ts"
|
|
5535
|
-
}
|
|
5536
|
-
},
|
|
5537
|
-
{
|
|
5538
|
-
"kind": "js",
|
|
5539
|
-
"name": "strictFallbackAgent",
|
|
5540
|
-
"declaration": {
|
|
5541
|
-
"name": "strictFallbackAgent",
|
|
5542
|
-
"module": "src/config/fallback-agents.ts"
|
|
5543
|
-
}
|
|
5314
|
+
"parameters": [
|
|
5315
|
+
{
|
|
5316
|
+
"name": "sessionKey",
|
|
5317
|
+
"optional": true,
|
|
5318
|
+
"type": {
|
|
5319
|
+
"text": "string"
|
|
5320
|
+
}
|
|
5321
|
+
}
|
|
5322
|
+
],
|
|
5323
|
+
"description": "Whether a session has something waiting on the person — or, without a key (a bubble that cannot\ntell which assistant it holds), whether any session has."
|
|
5544
5324
|
}
|
|
5545
|
-
]
|
|
5546
|
-
},
|
|
5547
|
-
{
|
|
5548
|
-
"kind": "javascript-module",
|
|
5549
|
-
"path": "src/config/index.ts",
|
|
5550
|
-
"declarations": [],
|
|
5325
|
+
],
|
|
5551
5326
|
"exports": [
|
|
5552
5327
|
{
|
|
5553
5328
|
"kind": "js",
|
|
5554
|
-
"name": "
|
|
5329
|
+
"name": "setAutopilotNeedsUser",
|
|
5555
5330
|
"declaration": {
|
|
5556
|
-
"name": "
|
|
5557
|
-
"
|
|
5331
|
+
"name": "setAutopilotNeedsUser",
|
|
5332
|
+
"module": "src/channel/autopilot-needs-user.ts"
|
|
5558
5333
|
}
|
|
5559
5334
|
},
|
|
5560
5335
|
{
|
|
5561
5336
|
"kind": "js",
|
|
5562
|
-
"name": "
|
|
5337
|
+
"name": "autopilotNeedsUser",
|
|
5563
5338
|
"declaration": {
|
|
5564
|
-
"name": "
|
|
5565
|
-
"
|
|
5339
|
+
"name": "autopilotNeedsUser",
|
|
5340
|
+
"module": "src/channel/autopilot-needs-user.ts"
|
|
5566
5341
|
}
|
|
5567
5342
|
}
|
|
5568
5343
|
]
|
|
5569
5344
|
},
|
|
5570
|
-
{
|
|
5571
|
-
"kind": "javascript-module",
|
|
5572
|
-
"path": "src/config/validate-providers.ts",
|
|
5573
|
-
"declarations": [],
|
|
5574
|
-
"exports": []
|
|
5575
|
-
},
|
|
5576
5345
|
{
|
|
5577
5346
|
"kind": "javascript-module",
|
|
5578
5347
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -6097,6 +5866,237 @@
|
|
|
6097
5866
|
}
|
|
6098
5867
|
]
|
|
6099
5868
|
},
|
|
5869
|
+
{
|
|
5870
|
+
"kind": "javascript-module",
|
|
5871
|
+
"path": "src/config/config.ts",
|
|
5872
|
+
"declarations": [
|
|
5873
|
+
{
|
|
5874
|
+
"kind": "function",
|
|
5875
|
+
"name": "defineAgent",
|
|
5876
|
+
"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```"
|
|
5877
|
+
}
|
|
5878
|
+
],
|
|
5879
|
+
"exports": [
|
|
5880
|
+
{
|
|
5881
|
+
"kind": "js",
|
|
5882
|
+
"name": "CachePolicy",
|
|
5883
|
+
"declaration": {
|
|
5884
|
+
"name": "CachePolicy",
|
|
5885
|
+
"module": "src/config/config.ts"
|
|
5886
|
+
}
|
|
5887
|
+
},
|
|
5888
|
+
{
|
|
5889
|
+
"kind": "js",
|
|
5890
|
+
"name": "ChatFallback",
|
|
5891
|
+
"declaration": {
|
|
5892
|
+
"name": "ChatFallback",
|
|
5893
|
+
"module": "src/config/config.ts"
|
|
5894
|
+
}
|
|
5895
|
+
},
|
|
5896
|
+
{
|
|
5897
|
+
"kind": "js",
|
|
5898
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5899
|
+
"declaration": {
|
|
5900
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5901
|
+
"module": "src/config/config.ts"
|
|
5902
|
+
}
|
|
5903
|
+
},
|
|
5904
|
+
{
|
|
5905
|
+
"kind": "js",
|
|
5906
|
+
"name": "ChatThinkingPolicy",
|
|
5907
|
+
"declaration": {
|
|
5908
|
+
"name": "ChatThinkingPolicy",
|
|
5909
|
+
"module": "src/config/config.ts"
|
|
5910
|
+
}
|
|
5911
|
+
},
|
|
5912
|
+
{
|
|
5913
|
+
"kind": "js",
|
|
5914
|
+
"name": "ChatToolChoice",
|
|
5915
|
+
"declaration": {
|
|
5916
|
+
"name": "ChatToolChoice",
|
|
5917
|
+
"module": "src/config/config.ts"
|
|
5918
|
+
}
|
|
5919
|
+
},
|
|
5920
|
+
{
|
|
5921
|
+
"kind": "js",
|
|
5922
|
+
"name": "defineAgent",
|
|
5923
|
+
"declaration": {
|
|
5924
|
+
"name": "defineAgent",
|
|
5925
|
+
"module": "src/config/config.ts"
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5928
|
+
]
|
|
5929
|
+
},
|
|
5930
|
+
{
|
|
5931
|
+
"kind": "javascript-module",
|
|
5932
|
+
"path": "src/config/define-stateful-agent.ts",
|
|
5933
|
+
"declarations": [
|
|
5934
|
+
{
|
|
5935
|
+
"kind": "function",
|
|
5936
|
+
"name": "restoreMachine",
|
|
5937
|
+
"return": {
|
|
5938
|
+
"type": {
|
|
5939
|
+
"text": "void"
|
|
5940
|
+
}
|
|
5941
|
+
},
|
|
5942
|
+
"parameters": [
|
|
5943
|
+
{
|
|
5944
|
+
"name": "machine",
|
|
5945
|
+
"type": {
|
|
5946
|
+
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5947
|
+
},
|
|
5948
|
+
"description": "the machine to restore (already constructed/started)."
|
|
5949
|
+
},
|
|
5950
|
+
{
|
|
5951
|
+
"name": "restored",
|
|
5952
|
+
"type": {
|
|
5953
|
+
"text": "unknown"
|
|
5954
|
+
},
|
|
5955
|
+
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5956
|
+
},
|
|
5957
|
+
{
|
|
5958
|
+
"name": "key",
|
|
5959
|
+
"default": "'machine'",
|
|
5960
|
+
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
5961
|
+
}
|
|
5962
|
+
],
|
|
5963
|
+
"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."
|
|
5964
|
+
},
|
|
5965
|
+
{
|
|
5966
|
+
"kind": "function",
|
|
5967
|
+
"name": "defineStatefulAgent",
|
|
5968
|
+
"return": {
|
|
5969
|
+
"type": {
|
|
5970
|
+
"text": "AgentConfig"
|
|
5971
|
+
}
|
|
5972
|
+
},
|
|
5973
|
+
"parameters": [
|
|
5974
|
+
{
|
|
5975
|
+
"name": "opts",
|
|
5976
|
+
"type": {
|
|
5977
|
+
"text": "StatefulAgentInit<S>"
|
|
5978
|
+
}
|
|
5979
|
+
}
|
|
5980
|
+
],
|
|
5981
|
+
"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."
|
|
5982
|
+
},
|
|
5983
|
+
{
|
|
5984
|
+
"kind": "function",
|
|
5985
|
+
"name": "defineAutopilot",
|
|
5986
|
+
"return": {
|
|
5987
|
+
"type": {
|
|
5988
|
+
"text": "AutopilotConfig<S>"
|
|
5989
|
+
}
|
|
5990
|
+
},
|
|
5991
|
+
"parameters": [
|
|
5992
|
+
{
|
|
5993
|
+
"name": "config",
|
|
5994
|
+
"type": {
|
|
5995
|
+
"text": "AutopilotConfig<S>"
|
|
5996
|
+
}
|
|
5997
|
+
}
|
|
5998
|
+
],
|
|
5999
|
+
"description": "Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function\nthat exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s\n`autopilot` option."
|
|
6000
|
+
}
|
|
6001
|
+
],
|
|
6002
|
+
"exports": [
|
|
6003
|
+
{
|
|
6004
|
+
"kind": "js",
|
|
6005
|
+
"name": "restoreMachine",
|
|
6006
|
+
"declaration": {
|
|
6007
|
+
"name": "restoreMachine",
|
|
6008
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
6009
|
+
}
|
|
6010
|
+
},
|
|
6011
|
+
{
|
|
6012
|
+
"kind": "js",
|
|
6013
|
+
"name": "defineStatefulAgent",
|
|
6014
|
+
"declaration": {
|
|
6015
|
+
"name": "defineStatefulAgent",
|
|
6016
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
6017
|
+
}
|
|
6018
|
+
},
|
|
6019
|
+
{
|
|
6020
|
+
"kind": "js",
|
|
6021
|
+
"name": "defineAutopilot",
|
|
6022
|
+
"declaration": {
|
|
6023
|
+
"name": "defineAutopilot",
|
|
6024
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
6025
|
+
}
|
|
6026
|
+
}
|
|
6027
|
+
]
|
|
6028
|
+
},
|
|
6029
|
+
{
|
|
6030
|
+
"kind": "javascript-module",
|
|
6031
|
+
"path": "src/config/fallback-agents.ts",
|
|
6032
|
+
"declarations": [
|
|
6033
|
+
{
|
|
6034
|
+
"kind": "variable",
|
|
6035
|
+
"name": "friendlyFallbackAgent",
|
|
6036
|
+
"type": {
|
|
6037
|
+
"text": "FallbackAgentConfig"
|
|
6038
|
+
},
|
|
6039
|
+
"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}",
|
|
6040
|
+
"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."
|
|
6041
|
+
},
|
|
6042
|
+
{
|
|
6043
|
+
"kind": "variable",
|
|
6044
|
+
"name": "strictFallbackAgent",
|
|
6045
|
+
"type": {
|
|
6046
|
+
"text": "FallbackAgentConfig"
|
|
6047
|
+
},
|
|
6048
|
+
"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}",
|
|
6049
|
+
"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."
|
|
6050
|
+
}
|
|
6051
|
+
],
|
|
6052
|
+
"exports": [
|
|
6053
|
+
{
|
|
6054
|
+
"kind": "js",
|
|
6055
|
+
"name": "friendlyFallbackAgent",
|
|
6056
|
+
"declaration": {
|
|
6057
|
+
"name": "friendlyFallbackAgent",
|
|
6058
|
+
"module": "src/config/fallback-agents.ts"
|
|
6059
|
+
}
|
|
6060
|
+
},
|
|
6061
|
+
{
|
|
6062
|
+
"kind": "js",
|
|
6063
|
+
"name": "strictFallbackAgent",
|
|
6064
|
+
"declaration": {
|
|
6065
|
+
"name": "strictFallbackAgent",
|
|
6066
|
+
"module": "src/config/fallback-agents.ts"
|
|
6067
|
+
}
|
|
6068
|
+
}
|
|
6069
|
+
]
|
|
6070
|
+
},
|
|
6071
|
+
{
|
|
6072
|
+
"kind": "javascript-module",
|
|
6073
|
+
"path": "src/config/index.ts",
|
|
6074
|
+
"declarations": [],
|
|
6075
|
+
"exports": [
|
|
6076
|
+
{
|
|
6077
|
+
"kind": "js",
|
|
6078
|
+
"name": "*",
|
|
6079
|
+
"declaration": {
|
|
6080
|
+
"name": "*",
|
|
6081
|
+
"package": "./config"
|
|
6082
|
+
}
|
|
6083
|
+
},
|
|
6084
|
+
{
|
|
6085
|
+
"kind": "js",
|
|
6086
|
+
"name": "*",
|
|
6087
|
+
"declaration": {
|
|
6088
|
+
"name": "*",
|
|
6089
|
+
"package": "./fallback-agents"
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
]
|
|
6093
|
+
},
|
|
6094
|
+
{
|
|
6095
|
+
"kind": "javascript-module",
|
|
6096
|
+
"path": "src/config/validate-providers.ts",
|
|
6097
|
+
"declarations": [],
|
|
6098
|
+
"exports": []
|
|
6099
|
+
},
|
|
6100
6100
|
{
|
|
6101
6101
|
"kind": "javascript-module",
|
|
6102
6102
|
"path": "src/genesis/calendar.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.109.
|
|
4
|
+
"version": "15.109.2",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -102,31 +102,31 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@genesislcap/foundation-comms": "15.109.
|
|
106
|
-
"@genesislcap/foundation-testing": "15.109.
|
|
107
|
-
"@genesislcap/genx": "15.109.
|
|
108
|
-
"@genesislcap/ts-builder": "15.109.
|
|
109
|
-
"@genesislcap/uvu-playwright-builder": "15.109.
|
|
110
|
-
"@genesislcap/vite-builder": "15.109.
|
|
111
|
-
"@genesislcap/webpack-builder": "15.109.
|
|
105
|
+
"@genesislcap/foundation-comms": "15.109.2",
|
|
106
|
+
"@genesislcap/foundation-testing": "15.109.2",
|
|
107
|
+
"@genesislcap/genx": "15.109.2",
|
|
108
|
+
"@genesislcap/ts-builder": "15.109.2",
|
|
109
|
+
"@genesislcap/uvu-playwright-builder": "15.109.2",
|
|
110
|
+
"@genesislcap/vite-builder": "15.109.2",
|
|
111
|
+
"@genesislcap/webpack-builder": "15.109.2",
|
|
112
112
|
"@types/dompurify": "^3.0.5",
|
|
113
113
|
"@types/marked": "^5.0.2",
|
|
114
114
|
"esbuild": "0.25.12"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
|
-
"@genesislcap/foundation-ai": "15.109.
|
|
118
|
-
"@genesislcap/foundation-logger": "15.109.
|
|
119
|
-
"@genesislcap/foundation-notifications": "15.109.
|
|
120
|
-
"@genesislcap/foundation-redux": "15.109.
|
|
121
|
-
"@genesislcap/foundation-ui": "15.109.
|
|
122
|
-
"@genesislcap/foundation-utils": "15.109.
|
|
123
|
-
"@genesislcap/rapid-design-system": "15.109.
|
|
124
|
-
"@genesislcap/web-core": "15.109.
|
|
117
|
+
"@genesislcap/foundation-ai": "15.109.2",
|
|
118
|
+
"@genesislcap/foundation-logger": "15.109.2",
|
|
119
|
+
"@genesislcap/foundation-notifications": "15.109.2",
|
|
120
|
+
"@genesislcap/foundation-redux": "15.109.2",
|
|
121
|
+
"@genesislcap/foundation-ui": "15.109.2",
|
|
122
|
+
"@genesislcap/foundation-utils": "15.109.2",
|
|
123
|
+
"@genesislcap/rapid-design-system": "15.109.2",
|
|
124
|
+
"@genesislcap/web-core": "15.109.2",
|
|
125
125
|
"dompurify": "^3.3.1",
|
|
126
126
|
"marked": "^17.0.3"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@genesislcap/foundation-comms": "15.109.
|
|
129
|
+
"@genesislcap/foundation-comms": "15.109.2"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@genesislcap/foundation-comms": {
|