@genesislcap/ai-assistant 15.99.0 → 15.99.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 +957 -957
  2. package/package.json +17 -17
@@ -18756,724 +18756,794 @@
18756
18756
  },
18757
18757
  {
18758
18758
  "kind": "javascript-module",
18759
- "path": "src/components/ai-driver/ai-driver.ts",
18759
+ "path": "src/components/chat-bubble/chat-bubble.styles.ts",
18760
18760
  "declarations": [
18761
18761
  {
18762
18762
  "kind": "variable",
18763
- "name": "AI_DRIVER_EVENT_TYPES",
18764
- "description": "The event types in AiDriverEventMap, as a runtime list. Built from a record keyed by the\nmap, so adding an event to the map without adding it here is a compile error."
18763
+ "name": "styles",
18764
+ "default": "css`\n :host {\n position: fixed;\n inset: 0;\n pointer-events: none;\n z-index: 9999;\n overflow: visible;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .bubble {\n position: absolute;\n width: 62px;\n height: 62px;\n border-radius: 50%;\n cursor: grab;\n pointer-events: all;\n overflow: visible;\n display: flex;\n align-items: center;\n justify-content: center;\n user-select: none;\n transition:\n transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),\n box-shadow 0.25s ease;\n background: linear-gradient(135deg, #0e1628 0%, #192340 100%);\n box-shadow: 0 4px 20px rgb(0 0 0 / 45%);\n border: 2px solid rgb(255 255 255 / 15%);\n color: white;\n }\n\n .bubble img {\n width: 62px;\n height: 62px;\n border-radius: 50%;\n object-fit: cover;\n pointer-events: none;\n box-shadow: 0 4px 20px rgb(0 0 0 / 45%);\n border: 2px solid rgb(255 255 255 / 15%);\n }\n\n .bubble svg {\n pointer-events: none;\n }\n\n .bubble:hover,\n .bubble.hovered {\n transform: scale(1.18);\n }\n\n .bubble:hover img,\n .bubble.hovered img {\n box-shadow:\n 0 6px 32px rgb(0 100 255 / 55%),\n 0 0 0 3px rgb(0 120 255 / 35%);\n }\n\n .bubble:active {\n cursor: grabbing;\n }\n\n .tooltip {\n position: absolute;\n bottom: calc(100% + 10px);\n background: linear-gradient(135deg, #0078ff 0%, #0050d0 100%);\n color: #fff;\n font-size: 0.78em;\n font-weight: 600;\n letter-spacing: 0.03em;\n white-space: nowrap;\n padding: 5px 10px;\n border-radius: 8px;\n box-shadow: 0 4px 14px rgb(0 120 255 / 45%);\n pointer-events: none;\n opacity: 0%;\n translate: 0 4px;\n transition:\n opacity 0.18s ease,\n translate 0.18s ease;\n }\n\n .tooltip::after {\n content: '';\n position: absolute;\n top: 100%;\n left: var(--arrow-left, 50%);\n transform: translateX(-50%);\n border: 5px solid transparent;\n border-top-color: #0050d0;\n }\n\n .bubble:hover .tooltip,\n .bubble.hovered .tooltip {\n opacity: 100%;\n translate: 0 0;\n }\n\n /* The autopilot waits on the person (GENC-1660): a dot on the orb, which opening the chat answers. */\n .needs-you-badge {\n position: absolute;\n top: 2px;\n right: 2px;\n width: 14px;\n height: 14px;\n border: 2px solid var(--neutral-layer-1, #fff);\n border-radius: 50%;\n background: var(--accent-fill-rest, rgb(0 120 255));\n pointer-events: none;\n }\n\n /* The badge's live region: out of paint and flow, kept in the accessibility tree. */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n .pulse-ring {\n position: absolute;\n width: 62px;\n height: 62px;\n border-radius: 50%;\n border: 2px solid rgb(0 120 255 / 50%);\n animation: pulse 2.5s ease-out infinite;\n pointer-events: none;\n }\n\n @keyframes pulse {\n 0% {\n transform: scale(1);\n opacity: 70%;\n }\n\n 70% {\n transform: scale(1.5);\n opacity: 0%;\n }\n\n 100% {\n transform: scale(1.5);\n opacity: 0%;\n }\n }\n\n .dialog {\n position: absolute;\n box-sizing: border-box;\n width: 400px;\n height: 520px;\n min-width: 300px;\n min-height: 300px;\n max-width: 50vw;\n max-height: calc(100vh - 40px);\n background: var(--neutral-layer-1);\n border-radius: 14px;\n box-shadow:\n 0 12px 50px rgb(0 0 0 / 55%),\n 0 0 0 1px rgb(255 255 255 / 6%);\n pointer-events: all;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n resize: both;\n border: 1px solid var(--neutral-stroke-rest);\n animation: dialog-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);\n }\n\n @keyframes dialog-in {\n from {\n opacity: 0%;\n transform: scale(0.85) translateY(12px);\n }\n\n to {\n opacity: 100%;\n transform: scale(1) translateY(0);\n }\n }\n\n @keyframes dialog-out {\n from {\n opacity: 100%;\n transform: scale(1) translateY(0);\n }\n\n to {\n opacity: 0%;\n transform: scale(0.85) translateY(12px);\n }\n }\n\n .dialog.closing {\n animation: dialog-out 0.2s cubic-bezier(0.4, 0, 0.6, 1) forwards;\n }\n\n .dialog-content {\n flex: 1;\n overflow: hidden;\n display: flex;\n min-height: 0;\n }\n\n .dialog-content ::slotted(*) {\n display: flex;\n flex: 1;\n width: 100%;\n min-height: 0;\n }\n`"
18765
18765
  }
18766
18766
  ],
18767
18767
  "exports": [
18768
18768
  {
18769
18769
  "kind": "js",
18770
- "name": "AI_DRIVER_EVENT_TYPES",
18770
+ "name": "styles",
18771
18771
  "declaration": {
18772
- "name": "AI_DRIVER_EVENT_TYPES",
18773
- "module": "src/components/ai-driver/ai-driver.ts"
18772
+ "name": "styles",
18773
+ "module": "src/components/chat-bubble/chat-bubble.styles.ts"
18774
18774
  }
18775
18775
  }
18776
18776
  ]
18777
18777
  },
18778
18778
  {
18779
18779
  "kind": "javascript-module",
18780
- "path": "src/components/ai-driver/base-driver-decorator.ts",
18780
+ "path": "src/components/chat-bubble/chat-bubble.template.ts",
18781
+ "declarations": [
18782
+ {
18783
+ "kind": "function",
18784
+ "name": "AiChatBubbleTemplate",
18785
+ "return": {
18786
+ "type": {
18787
+ "text": "ViewTemplate<AiChatBubble>"
18788
+ }
18789
+ }
18790
+ }
18791
+ ],
18792
+ "exports": [
18793
+ {
18794
+ "kind": "js",
18795
+ "name": "AiChatBubbleTemplate",
18796
+ "declaration": {
18797
+ "name": "AiChatBubbleTemplate",
18798
+ "module": "src/components/chat-bubble/chat-bubble.template.ts"
18799
+ }
18800
+ }
18801
+ ]
18802
+ },
18803
+ {
18804
+ "kind": "javascript-module",
18805
+ "path": "src/components/chat-bubble/chat-bubble.ts",
18781
18806
  "declarations": [
18782
18807
  {
18783
18808
  "kind": "class",
18784
- "description": "The base of every driver decorator (GENC-1660): an AiDriver that wraps another and\npasses every member, and every event in AiDriverEventMap, through to it.\n\nA decorator extends this and overrides only what it changes, so decorators stack in any order\nand a member or event added to `AiDriver` reaches the host through every layer by default.\n`OrchestratingDriver` is one; it used to forward by hand, and twice a member it did not forward\nsilently did nothing for every multi-agent host (`recordExternalCost`, then\n`getHistoryForPersistence`).\n\nAbstract with no abstract members, so it cannot be constructed on its own: a decorator that\nchanges nothing is not one.\n\nOptional `AiDriver` members are implemented here unconditionally, as a forward that falls back\nto the \"not supported\" answer when the inner driver lacks them. A host that feature-detects with\n`?.` therefore always finds them, and gets the same answer it would from the inner driver.",
18785
- "name": "BaseDriverDecorator",
18809
+ "description": "Floating chat bubble component that provides a draggable orb and dialog panel\nfor embedding an AI assistant without a full-page layout.",
18810
+ "name": "AiChatBubble",
18786
18811
  "members": [
18787
18812
  {
18788
18813
  "kind": "field",
18789
- "name": "detachers",
18814
+ "name": "title",
18790
18815
  "type": {
18791
- "text": "Array<() => void>"
18816
+ "text": "string"
18792
18817
  },
18793
- "privacy": "private",
18794
- "readonly": true,
18795
- "default": "[]",
18796
- "description": "Undoes this layer's hold on its inner driver; see BaseDriverDecorator.detach."
18818
+ "default": "'AI Assistant'"
18797
18819
  },
18798
18820
  {
18799
- "kind": "method",
18800
- "name": "detach",
18801
- "return": {
18802
- "type": {
18803
- "text": "void"
18804
- }
18805
- },
18806
- "description": "Let go of the inner driver WITHOUT disposing it: stop forwarding its events, and undo whatever\na subclass registered through BaseDriverDecorator.onDetach (its interceptors, its\ncapabilities, its own listeners). For dropping or replacing a decorator while the driver it\nwrapped lives on — otherwise the old layer keeps re-dispatching every event and is never\ncollected. Idempotent. `dispose()` detaches too."
18821
+ "kind": "field",
18822
+ "name": "imageSrc",
18823
+ "type": {
18824
+ "text": "string | undefined"
18825
+ }
18807
18826
  },
18808
18827
  {
18809
- "kind": "method",
18810
- "name": "onDetach",
18811
- "privacy": "protected",
18812
- "return": {
18813
- "type": {
18814
- "text": "void"
18815
- }
18828
+ "kind": "field",
18829
+ "name": "designSystemPrefix",
18830
+ "type": {
18831
+ "text": "string"
18816
18832
  },
18817
- "parameters": [
18818
- {
18819
- "name": "undo",
18820
- "type": {
18821
- "text": "() => void"
18822
- }
18823
- }
18824
- ],
18825
- "description": "Register something BaseDriverDecorator.detach must undo."
18833
+ "default": "'rapid'"
18826
18834
  },
18827
18835
  {
18828
- "kind": "method",
18829
- "name": "sendMessage",
18830
- "return": {
18831
- "type": {
18832
- "text": "Promise<ChatDriverResult>"
18833
- }
18836
+ "kind": "field",
18837
+ "name": "needsInputLabel",
18838
+ "type": {
18839
+ "text": "string"
18834
18840
  },
18835
- "parameters": [
18836
- {
18837
- "name": "input",
18838
- "type": {
18839
- "text": "string"
18840
- }
18841
- },
18842
- {
18843
- "name": "attachments",
18844
- "optional": true,
18845
- "type": {
18846
- "text": "ChatAttachment[]"
18847
- }
18848
- },
18849
- {
18850
- "name": "options",
18851
- "optional": true,
18852
- "type": {
18853
- "text": "SendMessageOptions"
18854
- }
18855
- }
18856
- ]
18841
+ "default": "'The assistant needs your input'",
18842
+ "description": "What the \"needs you\" badge on the orb says — its tooltip, and what a screen reader announces\nwhen it appears (GENC-1660 §4.10). The bubble cannot read the autopilot's own wording, so a host\nthat renames or localises the autopilot sets this too."
18857
18843
  },
18858
18844
  {
18859
- "kind": "method",
18860
- "name": "continueFromHistory",
18861
- "return": {
18862
- "type": {
18863
- "text": "Promise<ChatDriverResult>"
18864
- }
18845
+ "kind": "field",
18846
+ "name": "bubbleLeft",
18847
+ "type": {
18848
+ "text": "number"
18865
18849
  },
18866
- "parameters": [
18867
- {
18868
- "name": "transientPrimer",
18869
- "optional": true,
18870
- "type": {
18871
- "text": "ChatMessage[]"
18872
- }
18873
- },
18874
- {
18875
- "name": "options",
18876
- "optional": true,
18877
- "type": {
18878
- "text": "ContinueFromHistoryOptions"
18879
- }
18880
- }
18881
- ]
18850
+ "default": "0",
18851
+ "description": "Current left position of the bubble orb (px from viewport left). @internal"
18882
18852
  },
18883
18853
  {
18884
- "kind": "method",
18885
- "name": "resolveInteraction",
18886
- "return": {
18887
- "type": {
18888
- "text": "void"
18889
- }
18854
+ "kind": "field",
18855
+ "name": "bubbleTop",
18856
+ "type": {
18857
+ "text": "number"
18890
18858
  },
18891
- "parameters": [
18892
- {
18893
- "name": "interactionId",
18894
- "type": {
18895
- "text": "string"
18896
- }
18897
- },
18898
- {
18899
- "name": "result",
18900
- "type": {
18901
- "text": "unknown"
18902
- }
18903
- }
18904
- ]
18859
+ "default": "0",
18860
+ "description": "Current top position of the bubble orb (px from viewport top). @internal"
18905
18861
  },
18906
18862
  {
18907
- "kind": "method",
18908
- "name": "recordExternalCost",
18909
- "return": {
18910
- "type": {
18911
- "text": "boolean"
18912
- }
18863
+ "kind": "field",
18864
+ "name": "dialogLeft",
18865
+ "type": {
18866
+ "text": "number"
18913
18867
  },
18914
- "parameters": [
18915
- {
18916
- "name": "interactionId",
18917
- "type": {
18918
- "text": "string"
18919
- }
18920
- },
18921
- {
18922
- "name": "costUsd",
18923
- "type": {
18924
- "text": "number"
18925
- }
18926
- }
18927
- ]
18868
+ "default": "0",
18869
+ "description": "Current left position of the dialog panel (px from viewport left). @internal"
18928
18870
  },
18929
18871
  {
18930
- "kind": "method",
18931
- "name": "getInteractionContext",
18932
- "return": {
18933
- "type": {
18934
- "text": "InteractionContext | undefined"
18935
- }
18872
+ "kind": "field",
18873
+ "name": "dialogTop",
18874
+ "type": {
18875
+ "text": "number"
18936
18876
  },
18937
- "parameters": [
18938
- {
18939
- "name": "interactionId",
18940
- "type": {
18941
- "text": "string"
18942
- }
18943
- }
18944
- ]
18877
+ "default": "0",
18878
+ "description": "Current top position of the dialog panel (px from viewport top). @internal"
18945
18879
  },
18946
18880
  {
18947
- "kind": "method",
18948
- "name": "loadHistory",
18949
- "return": {
18950
- "type": {
18951
- "text": "void"
18952
- }
18881
+ "kind": "field",
18882
+ "name": "dialogWidth",
18883
+ "type": {
18884
+ "text": "number"
18953
18885
  },
18954
- "parameters": [
18955
- {
18956
- "name": "messages",
18957
- "type": {
18958
- "text": "ChatMessage[]"
18959
- }
18960
- }
18961
- ]
18886
+ "default": "400",
18887
+ "description": "Current rendered width of the dialog panel (px). @internal"
18962
18888
  },
18963
18889
  {
18964
- "kind": "method",
18965
- "name": "primeRestoredAgentState",
18966
- "return": {
18967
- "type": {
18968
- "text": "void"
18969
- }
18890
+ "kind": "field",
18891
+ "name": "dialogHeight",
18892
+ "type": {
18893
+ "text": "number"
18970
18894
  },
18971
- "parameters": [
18972
- {
18973
- "name": "snapshots",
18974
- "type": {
18975
- "text": "Record<string, unknown>"
18976
- }
18977
- }
18978
- ]
18895
+ "default": "520",
18896
+ "description": "Current rendered height of the dialog panel (px). @internal"
18979
18897
  },
18980
18898
  {
18981
- "kind": "method",
18982
- "name": "canRestoreFlowOwner",
18983
- "return": {
18984
- "type": {
18985
- "text": "boolean"
18986
- }
18899
+ "kind": "field",
18900
+ "name": "dialogOpen",
18901
+ "type": {
18902
+ "text": "boolean"
18987
18903
  },
18988
- "parameters": [
18989
- {
18990
- "name": "agentName",
18991
- "type": {
18992
- "text": "string"
18993
- }
18994
- }
18995
- ]
18904
+ "default": "false",
18905
+ "description": "Whether the dialog panel is currently open. @internal"
18996
18906
  },
18997
18907
  {
18998
- "kind": "method",
18999
- "name": "canResumeRestoredFlow",
19000
- "return": {
19001
- "type": {
19002
- "text": "boolean"
19003
- }
18908
+ "kind": "field",
18909
+ "name": "hovered",
18910
+ "type": {
18911
+ "text": "boolean"
19004
18912
  },
19005
- "parameters": [
19006
- {
19007
- "name": "agentName",
19008
- "type": {
19009
- "text": "string"
19010
- }
19011
- }
19012
- ]
18913
+ "default": "false",
18914
+ "description": "Whether the bubble orb is currently hovered. @internal"
19013
18915
  },
19014
18916
  {
19015
- "kind": "method",
19016
- "name": "resumeRestoredFlow",
19017
- "return": {
19018
- "type": {
19019
- "text": "Promise<ChatDriverResult | undefined>"
19020
- }
18917
+ "kind": "field",
18918
+ "name": "needsUser",
18919
+ "type": {
18920
+ "text": "boolean"
18921
+ },
18922
+ "default": "false",
18923
+ "description": "Whether the autopilot waits on the person (GENC-1660 §4.10): a hand-back the closed chat would\notherwise hide. Shown as a badge on the orb; opening the chat shows what it waits on. @internal"
18924
+ },
18925
+ {
18926
+ "kind": "field",
18927
+ "name": "unsubBus",
18928
+ "type": {
18929
+ "text": "() => void | undefined"
18930
+ },
18931
+ "privacy": "private"
18932
+ },
18933
+ {
18934
+ "kind": "field",
18935
+ "name": "closableAssistant",
18936
+ "type": {
18937
+ "text": "Element | undefined"
18938
+ },
18939
+ "privacy": "private",
18940
+ "description": "The assistant whose header Close button this bubble turned on, and listens to."
18941
+ },
18942
+ {
18943
+ "kind": "field",
18944
+ "name": "resizeObserver",
18945
+ "type": {
18946
+ "text": "ResizeObserver | undefined"
18947
+ },
18948
+ "privacy": "private"
18949
+ },
18950
+ {
18951
+ "kind": "field",
18952
+ "name": "dragging",
18953
+ "type": {
18954
+ "text": "boolean"
18955
+ },
18956
+ "privacy": "private",
18957
+ "default": "false"
18958
+ },
18959
+ {
18960
+ "kind": "field",
18961
+ "name": "dragTarget",
18962
+ "type": {
18963
+ "text": "'bubble' | 'dialog' | null"
18964
+ },
18965
+ "privacy": "private",
18966
+ "default": "null"
18967
+ },
18968
+ {
18969
+ "kind": "field",
18970
+ "name": "startMouseX",
18971
+ "type": {
18972
+ "text": "number"
18973
+ },
18974
+ "privacy": "private",
18975
+ "default": "0"
18976
+ },
18977
+ {
18978
+ "kind": "field",
18979
+ "name": "startMouseY",
18980
+ "type": {
18981
+ "text": "number"
18982
+ },
18983
+ "privacy": "private",
18984
+ "default": "0"
18985
+ },
18986
+ {
18987
+ "kind": "field",
18988
+ "name": "startElemLeft",
18989
+ "type": {
18990
+ "text": "number"
18991
+ },
18992
+ "privacy": "private",
18993
+ "default": "0"
18994
+ },
18995
+ {
18996
+ "kind": "field",
18997
+ "name": "startElemTop",
18998
+ "type": {
18999
+ "text": "number"
19000
+ },
19001
+ "privacy": "private",
19002
+ "default": "0"
19003
+ },
19004
+ {
19005
+ "kind": "field",
19006
+ "name": "hasDragged",
19007
+ "type": {
19008
+ "text": "boolean"
19009
+ },
19010
+ "privacy": "private",
19011
+ "default": "false"
19012
+ },
19013
+ {
19014
+ "kind": "field",
19015
+ "name": "latestMouseX",
19016
+ "type": {
19017
+ "text": "number"
19018
+ },
19019
+ "privacy": "private",
19020
+ "default": "0"
19021
+ },
19022
+ {
19023
+ "kind": "field",
19024
+ "name": "latestMouseY",
19025
+ "type": {
19026
+ "text": "number"
19021
19027
  },
19028
+ "privacy": "private",
19029
+ "default": "0"
19030
+ },
19031
+ {
19032
+ "kind": "field",
19033
+ "name": "rafHandle",
19034
+ "type": {
19035
+ "text": "number | undefined"
19036
+ },
19037
+ "privacy": "private"
19038
+ },
19039
+ {
19040
+ "kind": "field",
19041
+ "name": "closeAbort",
19042
+ "type": {
19043
+ "text": "AbortController | undefined"
19044
+ },
19045
+ "privacy": "private"
19046
+ },
19047
+ {
19048
+ "kind": "method",
19049
+ "name": "onBubbleMouseEnter"
19050
+ },
19051
+ {
19052
+ "kind": "method",
19053
+ "name": "onBubbleMouseLeave"
19054
+ },
19055
+ {
19056
+ "kind": "method",
19057
+ "name": "dialogOpenChanged",
19022
19058
  "parameters": [
19023
19059
  {
19024
- "name": "resumeNote",
19025
- "optional": true,
19060
+ "name": "_",
19026
19061
  "type": {
19027
- "text": "string"
19062
+ "text": "boolean"
19028
19063
  }
19029
19064
  },
19030
19065
  {
19031
- "name": "agent",
19032
- "optional": true,
19066
+ "name": "next",
19033
19067
  "type": {
19034
- "text": "AgentConfig"
19068
+ "text": "boolean"
19035
19069
  }
19036
19070
  }
19037
19071
  ]
19038
19072
  },
19039
19073
  {
19040
19074
  "kind": "method",
19041
- "name": "getRawHistory",
19075
+ "name": "assistantSessionKey",
19076
+ "privacy": "private",
19042
19077
  "return": {
19043
19078
  "type": {
19044
- "text": "readonly ChatMessage[]"
19079
+ "text": "string | undefined"
19045
19080
  }
19046
- }
19081
+ },
19082
+ "description": "The session of the assistant this bubble holds, when it can tell: the key the assistant\npublishes under, read from the assistant in the bubble's light DOM — whether or not the dialog\n(and with it the slot) is rendered, since the badge shows while it is not."
19047
19083
  },
19048
19084
  {
19049
19085
  "kind": "method",
19050
- "name": "getHistoryForPersistence",
19086
+ "name": "openDialog",
19087
+ "privacy": "private",
19051
19088
  "return": {
19052
19089
  "type": {
19053
- "text": "ChatMessage[]"
19090
+ "text": "void"
19054
19091
  }
19055
- }
19092
+ },
19093
+ "description": "Open the dialog beside the orb."
19056
19094
  },
19057
19095
  {
19058
19096
  "kind": "method",
19059
- "name": "getCondensePoliciesForPersistence",
19097
+ "name": "showWaitingIfBadged",
19098
+ "privacy": "private",
19060
19099
  "return": {
19061
19100
  "type": {
19062
- "text": "PersistedCondensePolicy[]"
19101
+ "text": "void"
19063
19102
  }
19064
19103
  },
19065
- "parameters": [
19066
- {
19067
- "name": "messages",
19068
- "type": {
19069
- "text": "readonly ChatMessage[]"
19070
- }
19071
- }
19072
- ]
19104
+ "description": "Opened from the badge: take the person to what is waiting on them (GENC-1660)."
19073
19105
  },
19074
19106
  {
19075
19107
  "kind": "method",
19076
- "name": "restoreCondensePolicies",
19108
+ "name": "refreshNeedsUser",
19109
+ "privacy": "private",
19077
19110
  "return": {
19078
19111
  "type": {
19079
- "text": "{\n restored: number;\n awaitingReactivation: number;\n }"
19112
+ "text": "void"
19080
19113
  }
19081
19114
  },
19115
+ "description": "Badge only for this bubble's own assistant (GENC-1660)."
19116
+ },
19117
+ {
19118
+ "kind": "method",
19119
+ "name": "dialogContentChanged",
19082
19120
  "parameters": [
19083
19121
  {
19084
- "name": "entries",
19122
+ "name": "_",
19085
19123
  "type": {
19086
- "text": "readonly unknown[] | undefined"
19124
+ "text": "HTMLElement[]"
19125
+ }
19126
+ },
19127
+ {
19128
+ "name": "next",
19129
+ "type": {
19130
+ "text": "HTMLElement[]"
19087
19131
  }
19088
19132
  }
19089
19133
  ]
19090
19134
  },
19091
19135
  {
19092
19136
  "kind": "method",
19093
- "name": "getHandOffStack",
19137
+ "name": "findAssistant",
19138
+ "privacy": "private",
19094
19139
  "return": {
19095
19140
  "type": {
19096
- "text": "HandOffFrame[]"
19097
- }
19098
- }
19099
- },
19100
- {
19101
- "kind": "method",
19102
- "name": "restoreHandOffStack",
19103
- "return": {
19104
- "type": {
19105
- "text": "{ resume?: { agent: string; note: string }; droppedLocks?: string[] }"
19141
+ "text": "Element | null"
19106
19142
  }
19107
19143
  },
19108
19144
  "parameters": [
19109
19145
  {
19110
- "name": "saved",
19111
- "type": {
19112
- "text": "unknown"
19113
- }
19114
- },
19115
- {
19116
- "name": "savedStates",
19117
- "type": {
19118
- "text": "Record<string, unknown>"
19119
- }
19120
- },
19121
- {
19122
- "name": "interrupted",
19146
+ "name": "nodes",
19147
+ "optional": true,
19123
19148
  "type": {
19124
- "text": "boolean"
19149
+ "text": "HTMLElement[]"
19125
19150
  }
19126
19151
  }
19127
19152
  ]
19128
19153
  },
19129
19154
  {
19130
19155
  "kind": "method",
19131
- "name": "unwindHandOffs",
19132
- "return": {
19133
- "type": {
19134
- "text": "Promise<void>"
19135
- }
19136
- },
19156
+ "name": "showCloseButton",
19157
+ "privacy": "private",
19137
19158
  "parameters": [
19138
19159
  {
19139
- "name": "kind",
19160
+ "name": "assistant",
19140
19161
  "type": {
19141
- "text": "Extract<HandOffOutcomeKind, 'cleared' | 'state-lost'>"
19162
+ "text": "Element"
19142
19163
  }
19143
19164
  }
19144
- ]
19145
- },
19146
- {
19147
- "kind": "method",
19148
- "name": "serializeWaitingCallers",
19149
- "return": {
19150
- "type": {
19151
- "text": "Record<string, unknown>"
19152
- }
19153
- }
19154
- },
19155
- {
19156
- "kind": "method",
19157
- "name": "getWaitingCallers",
19158
- "return": {
19159
- "type": {
19160
- "text": "AgentConfig[]"
19161
- }
19162
- }
19165
+ ],
19166
+ "description": "The Close button is the assistant's own, rendered in its header beside the cog. It used to be\na design-system button injected into the assistant's light DOM, where the assistant's styles\ncould reach its host but not the padded control inside it, so it sat narrower than the cog\nand off its centre line, and every host carried a shim to square it up."
19163
19167
  },
19164
19168
  {
19165
19169
  "kind": "method",
19166
- "name": "getHandOffData",
19167
- "return": {
19168
- "type": {
19169
- "text": "Record<string, unknown>"
19170
- }
19171
- }
19170
+ "name": "removeCloseButton",
19171
+ "privacy": "private"
19172
19172
  },
19173
19173
  {
19174
19174
  "kind": "method",
19175
- "name": "restoreHandOffData",
19176
- "return": {
19177
- "type": {
19178
- "text": "void"
19179
- }
19180
- },
19175
+ "name": "onBubbleMouseDown",
19181
19176
  "parameters": [
19182
19177
  {
19183
- "name": "saved",
19184
- "type": {
19185
- "text": "unknown"
19186
- }
19187
- },
19188
- {
19189
- "name": "interrupted",
19178
+ "name": "e",
19190
19179
  "type": {
19191
- "text": "boolean"
19180
+ "text": "MouseEvent"
19192
19181
  }
19193
19182
  }
19194
19183
  ]
19195
19184
  },
19196
19185
  {
19197
19186
  "kind": "method",
19198
- "name": "getActiveAgent",
19199
- "return": {
19200
- "type": {
19201
- "text": "AgentConfig | undefined"
19202
- }
19203
- }
19204
- },
19205
- {
19206
- "kind": "method",
19207
- "name": "setPinnedAgent",
19208
- "return": {
19209
- "type": {
19210
- "text": "void"
19211
- }
19212
- },
19187
+ "name": "onDialogHeaderMouseDown",
19213
19188
  "parameters": [
19214
19189
  {
19215
- "name": "name",
19190
+ "name": "e",
19216
19191
  "type": {
19217
- "text": "string | null"
19192
+ "text": "CustomEvent<{ clientX: number; clientY: number }>"
19218
19193
  }
19219
19194
  }
19220
19195
  ]
19221
19196
  },
19222
19197
  {
19223
- "kind": "method",
19224
- "name": "setFlowOwner",
19225
- "return": {
19226
- "type": {
19227
- "text": "void"
19228
- }
19229
- },
19230
- "parameters": [
19231
- {
19232
- "name": "name",
19233
- "type": {
19234
- "text": "string | null"
19235
- }
19236
- }
19237
- ]
19198
+ "kind": "field",
19199
+ "name": "onCloseBtnClick",
19200
+ "privacy": "private",
19201
+ "readonly": true
19238
19202
  },
19239
19203
  {
19240
19204
  "kind": "method",
19241
- "name": "getFlowOwner",
19242
- "return": {
19243
- "type": {
19244
- "text": "string | null"
19245
- }
19246
- }
19205
+ "name": "cancelClose",
19206
+ "privacy": "private"
19247
19207
  },
19248
19208
  {
19249
19209
  "kind": "method",
19250
- "name": "getInteractionCheckpoints",
19251
- "return": {
19252
- "type": {
19253
- "text": "readonly PersistedInteractionCheckpoint[]"
19254
- }
19255
- }
19210
+ "name": "startCloseDialog",
19211
+ "privacy": "private"
19256
19212
  },
19257
19213
  {
19258
- "kind": "method",
19259
- "name": "restoreInteractionCheckpoints",
19260
- "return": {
19261
- "type": {
19262
- "text": "void"
19263
- }
19264
- },
19265
- "parameters": [
19266
- {
19267
- "name": "saved",
19268
- "type": {
19269
- "text": "readonly PersistedInteractionCheckpoint[]"
19270
- }
19271
- }
19272
- ]
19214
+ "kind": "field",
19215
+ "name": "onDocMouseMove",
19216
+ "privacy": "private"
19217
+ },
19218
+ {
19219
+ "kind": "field",
19220
+ "name": "applyDragFrame",
19221
+ "privacy": "private"
19222
+ },
19223
+ {
19224
+ "kind": "field",
19225
+ "name": "onDocMouseUp",
19226
+ "privacy": "private"
19273
19227
  },
19274
19228
  {
19275
19229
  "kind": "method",
19276
- "name": "getInteractionCheckpoint",
19277
- "return": {
19278
- "type": {
19279
- "text": "PersistedInteractionCheckpoint | undefined"
19280
- }
19281
- }
19230
+ "name": "onPopout"
19282
19231
  },
19283
19232
  {
19284
19233
  "kind": "method",
19285
- "name": "restoreInteractionCheckpoint",
19286
- "return": {
19287
- "type": {
19288
- "text": "void"
19289
- }
19234
+ "name": "onCloseDialog"
19235
+ },
19236
+ {
19237
+ "kind": "field",
19238
+ "name": "tooltipStyle",
19239
+ "type": {
19240
+ "text": "string"
19290
19241
  },
19291
- "parameters": [
19292
- {
19293
- "name": "saved",
19294
- "type": {
19295
- "text": "PersistedInteractionCheckpoint | undefined"
19296
- }
19297
- }
19298
- ]
19242
+ "readonly": true
19243
+ }
19244
+ ],
19245
+ "attributes": [
19246
+ {
19247
+ "name": "title",
19248
+ "type": {
19249
+ "text": "string"
19250
+ },
19251
+ "default": "'AI Assistant'",
19252
+ "fieldName": "title"
19299
19253
  },
19300
19254
  {
19301
- "kind": "method",
19302
- "name": "addInteractionInterceptor",
19303
- "return": {
19304
- "type": {
19305
- "text": "() => void"
19306
- }
19255
+ "name": "image-src",
19256
+ "type": {
19257
+ "text": "string | undefined"
19307
19258
  },
19308
- "parameters": [
19309
- {
19310
- "name": "interceptor",
19311
- "type": {
19312
- "text": "InteractionInterceptor"
19313
- }
19314
- }
19315
- ],
19316
- "description": "Forwarded, so an interceptor installed on any layer lands on the driver that opens the\ninteractions. A decorator that answers interactions installs its own on `this.inner`."
19259
+ "fieldName": "imageSrc"
19317
19260
  },
19318
19261
  {
19319
- "kind": "method",
19320
- "name": "invokeAsUser",
19321
- "return": {
19322
- "type": {
19323
- "text": "Promise<InvokeResult>"
19324
- }
19262
+ "name": "design-system-prefix",
19263
+ "type": {
19264
+ "text": "string"
19325
19265
  },
19326
- "parameters": [
19327
- {
19328
- "name": "interactionId",
19329
- "type": {
19330
- "text": "string"
19331
- }
19332
- },
19333
- {
19334
- "name": "action",
19335
- "type": {
19336
- "text": "string"
19337
- }
19338
- },
19339
- {
19340
- "name": "args",
19341
- "optional": true,
19342
- "type": {
19343
- "text": "unknown"
19344
- }
19345
- }
19346
- ],
19347
- "description": "Forwarded: the interaction belongs to the driver that opened it. An inner driver that cannot\nrun actions answers as if the interaction had ended."
19266
+ "default": "'rapid'",
19267
+ "fieldName": "designSystemPrefix"
19268
+ },
19269
+ {
19270
+ "name": "needs-input-label",
19271
+ "type": {
19272
+ "text": "string"
19273
+ },
19274
+ "default": "'The assistant needs your input'",
19275
+ "description": "What the \"needs you\" badge on the orb says — its tooltip, and what a screen reader announces\nwhen it appears (GENC-1660 §4.10). The bubble cannot read the autopilot's own wording, so a host\nthat renames or localises the autopilot sets this too.",
19276
+ "fieldName": "needsInputLabel"
19277
+ }
19278
+ ],
19279
+ "superclass": {
19280
+ "name": "GenesisElement",
19281
+ "package": "@genesislcap/web-core"
19282
+ },
19283
+ "tagName": "foundation-ai-chat-bubble",
19284
+ "customElement": true
19285
+ }
19286
+ ],
19287
+ "exports": [
19288
+ {
19289
+ "kind": "js",
19290
+ "name": "AiChatBubble",
19291
+ "declaration": {
19292
+ "name": "AiChatBubble",
19293
+ "module": "src/components/chat-bubble/chat-bubble.ts"
19294
+ }
19295
+ },
19296
+ {
19297
+ "kind": "custom-element-definition",
19298
+ "name": "foundation-ai-chat-bubble",
19299
+ "declaration": {
19300
+ "name": "AiChatBubble",
19301
+ "module": "src/components/chat-bubble/chat-bubble.ts"
19302
+ }
19303
+ }
19304
+ ]
19305
+ },
19306
+ {
19307
+ "kind": "javascript-module",
19308
+ "path": "src/components/chat-bubble/index.ts",
19309
+ "declarations": [],
19310
+ "exports": [
19311
+ {
19312
+ "kind": "js",
19313
+ "name": "*",
19314
+ "declaration": {
19315
+ "name": "*",
19316
+ "package": "./chat-bubble"
19317
+ }
19318
+ }
19319
+ ]
19320
+ },
19321
+ {
19322
+ "kind": "javascript-module",
19323
+ "path": "src/components/ai-driver/ai-driver.ts",
19324
+ "declarations": [
19325
+ {
19326
+ "kind": "variable",
19327
+ "name": "AI_DRIVER_EVENT_TYPES",
19328
+ "description": "The event types in AiDriverEventMap, as a runtime list. Built from a record keyed by the\nmap, so adding an event to the map without adding it here is a compile error."
19329
+ }
19330
+ ],
19331
+ "exports": [
19332
+ {
19333
+ "kind": "js",
19334
+ "name": "AI_DRIVER_EVENT_TYPES",
19335
+ "declaration": {
19336
+ "name": "AI_DRIVER_EVENT_TYPES",
19337
+ "module": "src/components/ai-driver/ai-driver.ts"
19338
+ }
19339
+ }
19340
+ ]
19341
+ },
19342
+ {
19343
+ "kind": "javascript-module",
19344
+ "path": "src/components/ai-driver/base-driver-decorator.ts",
19345
+ "declarations": [
19346
+ {
19347
+ "kind": "class",
19348
+ "description": "The base of every driver decorator (GENC-1660): an AiDriver that wraps another and\npasses every member, and every event in AiDriverEventMap, through to it.\n\nA decorator extends this and overrides only what it changes, so decorators stack in any order\nand a member or event added to `AiDriver` reaches the host through every layer by default.\n`OrchestratingDriver` is one; it used to forward by hand, and twice a member it did not forward\nsilently did nothing for every multi-agent host (`recordExternalCost`, then\n`getHistoryForPersistence`).\n\nAbstract with no abstract members, so it cannot be constructed on its own: a decorator that\nchanges nothing is not one.\n\nOptional `AiDriver` members are implemented here unconditionally, as a forward that falls back\nto the \"not supported\" answer when the inner driver lacks them. A host that feature-detects with\n`?.` therefore always finds them, and gets the same answer it would from the inner driver.",
19349
+ "name": "BaseDriverDecorator",
19350
+ "members": [
19351
+ {
19352
+ "kind": "field",
19353
+ "name": "detachers",
19354
+ "type": {
19355
+ "text": "Array<() => void>"
19356
+ },
19357
+ "privacy": "private",
19358
+ "readonly": true,
19359
+ "default": "[]",
19360
+ "description": "Undoes this layer's hold on its inner driver; see BaseDriverDecorator.detach."
19348
19361
  },
19349
19362
  {
19350
19363
  "kind": "method",
19351
- "name": "presentInteraction",
19364
+ "name": "detach",
19352
19365
  "return": {
19353
19366
  "type": {
19354
- "text": "Promise<T>"
19367
+ "text": "void"
19368
+ }
19369
+ },
19370
+ "description": "Let go of the inner driver WITHOUT disposing it: stop forwarding its events, and undo whatever\na subclass registered through BaseDriverDecorator.onDetach (its interceptors, its\ncapabilities, its own listeners). For dropping or replacing a decorator while the driver it\nwrapped lives on — otherwise the old layer keeps re-dispatching every event and is never\ncollected. Idempotent. `dispose()` detaches too."
19371
+ },
19372
+ {
19373
+ "kind": "method",
19374
+ "name": "onDetach",
19375
+ "privacy": "protected",
19376
+ "return": {
19377
+ "type": {
19378
+ "text": "void"
19355
19379
  }
19356
19380
  },
19357
19381
  "parameters": [
19358
19382
  {
19359
- "name": "componentName",
19383
+ "name": "undo",
19384
+ "type": {
19385
+ "text": "() => void"
19386
+ }
19387
+ }
19388
+ ],
19389
+ "description": "Register something BaseDriverDecorator.detach must undo."
19390
+ },
19391
+ {
19392
+ "kind": "method",
19393
+ "name": "sendMessage",
19394
+ "return": {
19395
+ "type": {
19396
+ "text": "Promise<ChatDriverResult>"
19397
+ }
19398
+ },
19399
+ "parameters": [
19400
+ {
19401
+ "name": "input",
19360
19402
  "type": {
19361
19403
  "text": "string"
19362
19404
  }
19363
19405
  },
19364
19406
  {
19365
- "name": "data",
19407
+ "name": "attachments",
19408
+ "optional": true,
19366
19409
  "type": {
19367
- "text": "unknown"
19410
+ "text": "ChatAttachment[]"
19368
19411
  }
19369
19412
  },
19370
19413
  {
19371
19414
  "name": "options",
19372
19415
  "optional": true,
19373
19416
  "type": {
19374
- "text": "InteractionRequestOptions"
19417
+ "text": "SendMessageOptions"
19375
19418
  }
19376
19419
  }
19377
19420
  ]
19378
19421
  },
19379
19422
  {
19380
19423
  "kind": "method",
19381
- "name": "provideHandlerCapability",
19424
+ "name": "continueFromHistory",
19382
19425
  "return": {
19383
19426
  "type": {
19384
- "text": "() => void"
19427
+ "text": "Promise<ChatDriverResult>"
19385
19428
  }
19386
19429
  },
19387
19430
  "parameters": [
19388
19431
  {
19389
- "name": "name",
19432
+ "name": "transientPrimer",
19433
+ "optional": true,
19390
19434
  "type": {
19391
- "text": "string"
19435
+ "text": "ChatMessage[]"
19392
19436
  }
19393
19437
  },
19394
19438
  {
19395
- "name": "factory",
19439
+ "name": "options",
19440
+ "optional": true,
19396
19441
  "type": {
19397
- "text": "HandlerCapabilityFactory"
19442
+ "text": "ContinueFromHistoryOptions"
19398
19443
  }
19399
19444
  }
19400
19445
  ]
19401
19446
  },
19402
19447
  {
19403
19448
  "kind": "method",
19404
- "name": "getContextReserve",
19449
+ "name": "resolveInteraction",
19405
19450
  "return": {
19406
19451
  "type": {
19407
- "text": "ContextReserveResolution | undefined"
19452
+ "text": "void"
19408
19453
  }
19409
- }
19454
+ },
19455
+ "parameters": [
19456
+ {
19457
+ "name": "interactionId",
19458
+ "type": {
19459
+ "text": "string"
19460
+ }
19461
+ },
19462
+ {
19463
+ "name": "result",
19464
+ "type": {
19465
+ "text": "unknown"
19466
+ }
19467
+ }
19468
+ ]
19410
19469
  },
19411
19470
  {
19412
19471
  "kind": "method",
19413
- "name": "getPreambleTokens",
19472
+ "name": "recordExternalCost",
19414
19473
  "return": {
19415
19474
  "type": {
19416
- "text": "number | undefined"
19475
+ "text": "boolean"
19417
19476
  }
19418
- }
19477
+ },
19478
+ "parameters": [
19479
+ {
19480
+ "name": "interactionId",
19481
+ "type": {
19482
+ "text": "string"
19483
+ }
19484
+ },
19485
+ {
19486
+ "name": "costUsd",
19487
+ "type": {
19488
+ "text": "number"
19489
+ }
19490
+ }
19491
+ ]
19419
19492
  },
19420
19493
  {
19421
19494
  "kind": "method",
19422
- "name": "setContextGuard",
19495
+ "name": "getInteractionContext",
19423
19496
  "return": {
19424
19497
  "type": {
19425
- "text": "void"
19498
+ "text": "InteractionContext | undefined"
19426
19499
  }
19427
19500
  },
19428
19501
  "parameters": [
19429
19502
  {
19430
- "name": "policy",
19431
- "optional": true,
19503
+ "name": "interactionId",
19432
19504
  "type": {
19433
- "text": "ContextGuardPolicy"
19505
+ "text": "string"
19434
19506
  }
19435
19507
  }
19436
19508
  ]
19437
19509
  },
19438
19510
  {
19439
19511
  "kind": "method",
19440
- "name": "compact",
19512
+ "name": "loadHistory",
19441
19513
  "return": {
19442
19514
  "type": {
19443
- "text": "Promise<ChatMessage | null>"
19515
+ "text": "void"
19444
19516
  }
19445
19517
  },
19446
19518
  "parameters": [
19447
19519
  {
19448
- "name": "options",
19449
- "optional": true,
19520
+ "name": "messages",
19450
19521
  "type": {
19451
- "text": "CompactionPlanOptions"
19522
+ "text": "ChatMessage[]"
19452
19523
  }
19453
19524
  }
19454
19525
  ]
19455
19526
  },
19456
19527
  {
19457
19528
  "kind": "method",
19458
- "name": "getCompactionPlan",
19529
+ "name": "primeRestoredAgentState",
19459
19530
  "return": {
19460
19531
  "type": {
19461
- "text": "CompactionProjection | null"
19532
+ "text": "void"
19462
19533
  }
19463
19534
  },
19464
19535
  "parameters": [
19465
19536
  {
19466
- "name": "options",
19467
- "optional": true,
19537
+ "name": "snapshots",
19468
19538
  "type": {
19469
- "text": "CompactionPlanOptions"
19539
+ "text": "Record<string, unknown>"
19470
19540
  }
19471
19541
  }
19472
19542
  ]
19473
19543
  },
19474
19544
  {
19475
19545
  "kind": "method",
19476
- "name": "canCompact",
19546
+ "name": "canRestoreFlowOwner",
19477
19547
  "return": {
19478
19548
  "type": {
19479
19549
  "text": "boolean"
@@ -19481,732 +19551,662 @@
19481
19551
  },
19482
19552
  "parameters": [
19483
19553
  {
19484
- "name": "options",
19485
- "optional": true,
19554
+ "name": "agentName",
19486
19555
  "type": {
19487
- "text": "CompactionPlanOptions"
19556
+ "text": "string"
19488
19557
  }
19489
19558
  }
19490
19559
  ]
19491
19560
  },
19492
19561
  {
19493
19562
  "kind": "method",
19494
- "name": "isBusy",
19563
+ "name": "canResumeRestoredFlow",
19495
19564
  "return": {
19496
19565
  "type": {
19497
19566
  "text": "boolean"
19498
19567
  }
19499
- }
19568
+ },
19569
+ "parameters": [
19570
+ {
19571
+ "name": "agentName",
19572
+ "type": {
19573
+ "text": "string"
19574
+ }
19575
+ }
19576
+ ]
19500
19577
  },
19501
19578
  {
19502
19579
  "kind": "method",
19503
- "name": "getSuggestions",
19580
+ "name": "resumeRestoredFlow",
19504
19581
  "return": {
19505
19582
  "type": {
19506
- "text": "Promise<string[]>"
19583
+ "text": "Promise<ChatDriverResult | undefined>"
19507
19584
  }
19508
19585
  },
19509
19586
  "parameters": [
19510
19587
  {
19511
- "name": "history",
19512
- "type": {
19513
- "text": "ChatMessage[]"
19514
- }
19515
- },
19516
- {
19517
- "name": "prompt",
19588
+ "name": "resumeNote",
19589
+ "optional": true,
19518
19590
  "type": {
19519
19591
  "text": "string"
19520
19592
  }
19521
19593
  },
19522
19594
  {
19523
- "name": "count",
19524
- "type": {
19525
- "text": "number"
19526
- }
19527
- },
19528
- {
19529
- "name": "allAgentInfo",
19595
+ "name": "agent",
19530
19596
  "optional": true,
19531
19597
  "type": {
19532
- "text": "AllAgentSummary[]"
19598
+ "text": "AgentConfig"
19533
19599
  }
19534
19600
  }
19535
19601
  ]
19536
19602
  },
19537
19603
  {
19538
19604
  "kind": "method",
19539
- "name": "getTurnSnapshots",
19605
+ "name": "getRawHistory",
19540
19606
  "return": {
19541
19607
  "type": {
19542
- "text": "ReadonlyArray<TurnSnapshot>"
19608
+ "text": "readonly ChatMessage[]"
19543
19609
  }
19544
19610
  }
19545
19611
  },
19546
19612
  {
19547
19613
  "kind": "method",
19548
- "name": "getExternalDiagnostics",
19614
+ "name": "getHistoryForPersistence",
19549
19615
  "return": {
19550
19616
  "type": {
19551
- "text": "ReadonlyArray<DiagnosticEntry>"
19617
+ "text": "ChatMessage[]"
19552
19618
  }
19553
- },
19554
- "description": "The inner driver's entries. Diagnostics compose down the stack: a decorator with entries of\nits own overrides this and appends them to `super.getExternalDiagnostics()`."
19619
+ }
19555
19620
  },
19556
19621
  {
19557
19622
  "kind": "method",
19558
- "name": "getActiveProviderName",
19623
+ "name": "getCondensePoliciesForPersistence",
19559
19624
  "return": {
19560
19625
  "type": {
19561
- "text": "string"
19626
+ "text": "PersistedCondensePolicy[]"
19562
19627
  }
19563
- }
19628
+ },
19629
+ "parameters": [
19630
+ {
19631
+ "name": "messages",
19632
+ "type": {
19633
+ "text": "readonly ChatMessage[]"
19634
+ }
19635
+ }
19636
+ ]
19564
19637
  },
19565
19638
  {
19566
19639
  "kind": "method",
19567
- "name": "dispose",
19640
+ "name": "restoreCondensePolicies",
19568
19641
  "return": {
19569
19642
  "type": {
19570
- "text": "void | Promise<void>"
19643
+ "text": "{\n restored: number;\n awaitingReactivation: number;\n }"
19571
19644
  }
19572
- }
19645
+ },
19646
+ "parameters": [
19647
+ {
19648
+ "name": "entries",
19649
+ "type": {
19650
+ "text": "readonly unknown[] | undefined"
19651
+ }
19652
+ }
19653
+ ]
19573
19654
  },
19574
19655
  {
19575
19656
  "kind": "method",
19576
- "name": "cancel",
19657
+ "name": "getHandOffStack",
19577
19658
  "return": {
19578
19659
  "type": {
19579
- "text": "void"
19660
+ "text": "HandOffFrame[]"
19580
19661
  }
19581
19662
  }
19582
- }
19583
- ],
19584
- "superclass": {
19585
- "name": "EventTarget",
19586
- "module": "src/components/ai-driver/base-driver-decorator.ts"
19587
- }
19588
- }
19589
- ],
19590
- "exports": [
19591
- {
19592
- "kind": "js",
19593
- "name": "BaseDriverDecorator",
19594
- "declaration": {
19595
- "name": "BaseDriverDecorator",
19596
- "module": "src/components/ai-driver/base-driver-decorator.ts"
19597
- }
19598
- }
19599
- ]
19600
- },
19601
- {
19602
- "kind": "javascript-module",
19603
- "path": "src/components/ai-driver/index.ts",
19604
- "declarations": [],
19605
- "exports": [
19606
- {
19607
- "kind": "js",
19608
- "name": "AiDriver",
19609
- "declaration": {
19610
- "name": "AiDriver",
19611
- "module": "./ai-driver"
19612
- }
19613
- },
19614
- {
19615
- "kind": "js",
19616
- "name": "AiDriverEventMap",
19617
- "declaration": {
19618
- "name": "AiDriverEventMap",
19619
- "module": "./ai-driver"
19620
- }
19621
- },
19622
- {
19623
- "kind": "js",
19624
- "name": "AI_DRIVER_EVENT_TYPES",
19625
- "declaration": {
19626
- "name": "AI_DRIVER_EVENT_TYPES",
19627
- "module": "./ai-driver"
19628
- }
19629
- },
19630
- {
19631
- "kind": "js",
19632
- "name": "BaseDriverDecorator",
19633
- "declaration": {
19634
- "name": "BaseDriverDecorator",
19635
- "module": "./base-driver-decorator"
19636
- }
19637
- }
19638
- ]
19639
- },
19640
- {
19641
- "kind": "javascript-module",
19642
- "path": "src/components/ai-driver/stub-driver.ts",
19643
- "declarations": [],
19644
- "exports": []
19645
- },
19646
- {
19647
- "kind": "javascript-module",
19648
- "path": "src/components/chat-bubble/chat-bubble.styles.ts",
19649
- "declarations": [
19650
- {
19651
- "kind": "variable",
19652
- "name": "styles",
19653
- "default": "css`\n :host {\n position: fixed;\n inset: 0;\n pointer-events: none;\n z-index: 9999;\n overflow: visible;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .bubble {\n position: absolute;\n width: 62px;\n height: 62px;\n border-radius: 50%;\n cursor: grab;\n pointer-events: all;\n overflow: visible;\n display: flex;\n align-items: center;\n justify-content: center;\n user-select: none;\n transition:\n transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),\n box-shadow 0.25s ease;\n background: linear-gradient(135deg, #0e1628 0%, #192340 100%);\n box-shadow: 0 4px 20px rgb(0 0 0 / 45%);\n border: 2px solid rgb(255 255 255 / 15%);\n color: white;\n }\n\n .bubble img {\n width: 62px;\n height: 62px;\n border-radius: 50%;\n object-fit: cover;\n pointer-events: none;\n box-shadow: 0 4px 20px rgb(0 0 0 / 45%);\n border: 2px solid rgb(255 255 255 / 15%);\n }\n\n .bubble svg {\n pointer-events: none;\n }\n\n .bubble:hover,\n .bubble.hovered {\n transform: scale(1.18);\n }\n\n .bubble:hover img,\n .bubble.hovered img {\n box-shadow:\n 0 6px 32px rgb(0 100 255 / 55%),\n 0 0 0 3px rgb(0 120 255 / 35%);\n }\n\n .bubble:active {\n cursor: grabbing;\n }\n\n .tooltip {\n position: absolute;\n bottom: calc(100% + 10px);\n background: linear-gradient(135deg, #0078ff 0%, #0050d0 100%);\n color: #fff;\n font-size: 0.78em;\n font-weight: 600;\n letter-spacing: 0.03em;\n white-space: nowrap;\n padding: 5px 10px;\n border-radius: 8px;\n box-shadow: 0 4px 14px rgb(0 120 255 / 45%);\n pointer-events: none;\n opacity: 0%;\n translate: 0 4px;\n transition:\n opacity 0.18s ease,\n translate 0.18s ease;\n }\n\n .tooltip::after {\n content: '';\n position: absolute;\n top: 100%;\n left: var(--arrow-left, 50%);\n transform: translateX(-50%);\n border: 5px solid transparent;\n border-top-color: #0050d0;\n }\n\n .bubble:hover .tooltip,\n .bubble.hovered .tooltip {\n opacity: 100%;\n translate: 0 0;\n }\n\n /* The autopilot waits on the person (GENC-1660): a dot on the orb, which opening the chat answers. */\n .needs-you-badge {\n position: absolute;\n top: 2px;\n right: 2px;\n width: 14px;\n height: 14px;\n border: 2px solid var(--neutral-layer-1, #fff);\n border-radius: 50%;\n background: var(--accent-fill-rest, rgb(0 120 255));\n pointer-events: none;\n }\n\n /* The badge's live region: out of paint and flow, kept in the accessibility tree. */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n .pulse-ring {\n position: absolute;\n width: 62px;\n height: 62px;\n border-radius: 50%;\n border: 2px solid rgb(0 120 255 / 50%);\n animation: pulse 2.5s ease-out infinite;\n pointer-events: none;\n }\n\n @keyframes pulse {\n 0% {\n transform: scale(1);\n opacity: 70%;\n }\n\n 70% {\n transform: scale(1.5);\n opacity: 0%;\n }\n\n 100% {\n transform: scale(1.5);\n opacity: 0%;\n }\n }\n\n .dialog {\n position: absolute;\n box-sizing: border-box;\n width: 400px;\n height: 520px;\n min-width: 300px;\n min-height: 300px;\n max-width: 50vw;\n max-height: calc(100vh - 40px);\n background: var(--neutral-layer-1);\n border-radius: 14px;\n box-shadow:\n 0 12px 50px rgb(0 0 0 / 55%),\n 0 0 0 1px rgb(255 255 255 / 6%);\n pointer-events: all;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n resize: both;\n border: 1px solid var(--neutral-stroke-rest);\n animation: dialog-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);\n }\n\n @keyframes dialog-in {\n from {\n opacity: 0%;\n transform: scale(0.85) translateY(12px);\n }\n\n to {\n opacity: 100%;\n transform: scale(1) translateY(0);\n }\n }\n\n @keyframes dialog-out {\n from {\n opacity: 100%;\n transform: scale(1) translateY(0);\n }\n\n to {\n opacity: 0%;\n transform: scale(0.85) translateY(12px);\n }\n }\n\n .dialog.closing {\n animation: dialog-out 0.2s cubic-bezier(0.4, 0, 0.6, 1) forwards;\n }\n\n .dialog-content {\n flex: 1;\n overflow: hidden;\n display: flex;\n min-height: 0;\n }\n\n .dialog-content ::slotted(*) {\n display: flex;\n flex: 1;\n width: 100%;\n min-height: 0;\n }\n`"
19654
- }
19655
- ],
19656
- "exports": [
19657
- {
19658
- "kind": "js",
19659
- "name": "styles",
19660
- "declaration": {
19661
- "name": "styles",
19662
- "module": "src/components/chat-bubble/chat-bubble.styles.ts"
19663
- }
19664
- }
19665
- ]
19666
- },
19667
- {
19668
- "kind": "javascript-module",
19669
- "path": "src/components/chat-bubble/chat-bubble.template.ts",
19670
- "declarations": [
19671
- {
19672
- "kind": "function",
19673
- "name": "AiChatBubbleTemplate",
19674
- "return": {
19675
- "type": {
19676
- "text": "ViewTemplate<AiChatBubble>"
19677
- }
19678
- }
19679
- }
19680
- ],
19681
- "exports": [
19682
- {
19683
- "kind": "js",
19684
- "name": "AiChatBubbleTemplate",
19685
- "declaration": {
19686
- "name": "AiChatBubbleTemplate",
19687
- "module": "src/components/chat-bubble/chat-bubble.template.ts"
19688
- }
19689
- }
19690
- ]
19691
- },
19692
- {
19693
- "kind": "javascript-module",
19694
- "path": "src/components/chat-bubble/chat-bubble.ts",
19695
- "declarations": [
19696
- {
19697
- "kind": "class",
19698
- "description": "Floating chat bubble component that provides a draggable orb and dialog panel\nfor embedding an AI assistant without a full-page layout.",
19699
- "name": "AiChatBubble",
19700
- "members": [
19701
- {
19702
- "kind": "field",
19703
- "name": "title",
19704
- "type": {
19705
- "text": "string"
19706
- },
19707
- "default": "'AI Assistant'"
19708
- },
19709
- {
19710
- "kind": "field",
19711
- "name": "imageSrc",
19712
- "type": {
19713
- "text": "string | undefined"
19714
- }
19715
- },
19716
- {
19717
- "kind": "field",
19718
- "name": "designSystemPrefix",
19719
- "type": {
19720
- "text": "string"
19721
- },
19722
- "default": "'rapid'"
19723
- },
19724
- {
19725
- "kind": "field",
19726
- "name": "needsInputLabel",
19727
- "type": {
19728
- "text": "string"
19729
- },
19730
- "default": "'The assistant needs your input'",
19731
- "description": "What the \"needs you\" badge on the orb says — its tooltip, and what a screen reader announces\nwhen it appears (GENC-1660 §4.10). The bubble cannot read the autopilot's own wording, so a host\nthat renames or localises the autopilot sets this too."
19732
- },
19733
- {
19734
- "kind": "field",
19735
- "name": "bubbleLeft",
19736
- "type": {
19737
- "text": "number"
19738
- },
19739
- "default": "0",
19740
- "description": "Current left position of the bubble orb (px from viewport left). @internal"
19741
- },
19742
- {
19743
- "kind": "field",
19744
- "name": "bubbleTop",
19745
- "type": {
19746
- "text": "number"
19747
- },
19748
- "default": "0",
19749
- "description": "Current top position of the bubble orb (px from viewport top). @internal"
19750
19663
  },
19751
19664
  {
19752
- "kind": "field",
19753
- "name": "dialogLeft",
19754
- "type": {
19755
- "text": "number"
19756
- },
19757
- "default": "0",
19758
- "description": "Current left position of the dialog panel (px from viewport left). @internal"
19759
- },
19760
- {
19761
- "kind": "field",
19762
- "name": "dialogTop",
19763
- "type": {
19764
- "text": "number"
19765
- },
19766
- "default": "0",
19767
- "description": "Current top position of the dialog panel (px from viewport top). @internal"
19768
- },
19769
- {
19770
- "kind": "field",
19771
- "name": "dialogWidth",
19772
- "type": {
19773
- "text": "number"
19774
- },
19775
- "default": "400",
19776
- "description": "Current rendered width of the dialog panel (px). @internal"
19777
- },
19778
- {
19779
- "kind": "field",
19780
- "name": "dialogHeight",
19781
- "type": {
19782
- "text": "number"
19783
- },
19784
- "default": "520",
19785
- "description": "Current rendered height of the dialog panel (px). @internal"
19786
- },
19787
- {
19788
- "kind": "field",
19789
- "name": "dialogOpen",
19790
- "type": {
19791
- "text": "boolean"
19792
- },
19793
- "default": "false",
19794
- "description": "Whether the dialog panel is currently open. @internal"
19795
- },
19796
- {
19797
- "kind": "field",
19798
- "name": "hovered",
19799
- "type": {
19800
- "text": "boolean"
19801
- },
19802
- "default": "false",
19803
- "description": "Whether the bubble orb is currently hovered. @internal"
19804
- },
19805
- {
19806
- "kind": "field",
19807
- "name": "needsUser",
19808
- "type": {
19809
- "text": "boolean"
19810
- },
19811
- "default": "false",
19812
- "description": "Whether the autopilot waits on the person (GENC-1660 §4.10): a hand-back the closed chat would\notherwise hide. Shown as a badge on the orb; opening the chat shows what it waits on. @internal"
19813
- },
19814
- {
19815
- "kind": "field",
19816
- "name": "unsubBus",
19817
- "type": {
19818
- "text": "() => void | undefined"
19665
+ "kind": "method",
19666
+ "name": "restoreHandOffStack",
19667
+ "return": {
19668
+ "type": {
19669
+ "text": "{ resume?: { agent: string; note: string }; droppedLocks?: string[] }"
19670
+ }
19819
19671
  },
19820
- "privacy": "private"
19672
+ "parameters": [
19673
+ {
19674
+ "name": "saved",
19675
+ "type": {
19676
+ "text": "unknown"
19677
+ }
19678
+ },
19679
+ {
19680
+ "name": "savedStates",
19681
+ "type": {
19682
+ "text": "Record<string, unknown>"
19683
+ }
19684
+ },
19685
+ {
19686
+ "name": "interrupted",
19687
+ "type": {
19688
+ "text": "boolean"
19689
+ }
19690
+ }
19691
+ ]
19821
19692
  },
19822
19693
  {
19823
- "kind": "field",
19824
- "name": "closableAssistant",
19825
- "type": {
19826
- "text": "Element | undefined"
19694
+ "kind": "method",
19695
+ "name": "unwindHandOffs",
19696
+ "return": {
19697
+ "type": {
19698
+ "text": "Promise<void>"
19699
+ }
19827
19700
  },
19828
- "privacy": "private",
19829
- "description": "The assistant whose header Close button this bubble turned on, and listens to."
19701
+ "parameters": [
19702
+ {
19703
+ "name": "kind",
19704
+ "type": {
19705
+ "text": "Extract<HandOffOutcomeKind, 'cleared' | 'state-lost'>"
19706
+ }
19707
+ }
19708
+ ]
19830
19709
  },
19831
19710
  {
19832
- "kind": "field",
19833
- "name": "resizeObserver",
19834
- "type": {
19835
- "text": "ResizeObserver | undefined"
19836
- },
19837
- "privacy": "private"
19711
+ "kind": "method",
19712
+ "name": "serializeWaitingCallers",
19713
+ "return": {
19714
+ "type": {
19715
+ "text": "Record<string, unknown>"
19716
+ }
19717
+ }
19838
19718
  },
19839
19719
  {
19840
- "kind": "field",
19841
- "name": "dragging",
19842
- "type": {
19843
- "text": "boolean"
19844
- },
19845
- "privacy": "private",
19846
- "default": "false"
19720
+ "kind": "method",
19721
+ "name": "getWaitingCallers",
19722
+ "return": {
19723
+ "type": {
19724
+ "text": "AgentConfig[]"
19725
+ }
19726
+ }
19847
19727
  },
19848
19728
  {
19849
- "kind": "field",
19850
- "name": "dragTarget",
19851
- "type": {
19852
- "text": "'bubble' | 'dialog' | null"
19853
- },
19854
- "privacy": "private",
19855
- "default": "null"
19729
+ "kind": "method",
19730
+ "name": "getHandOffData",
19731
+ "return": {
19732
+ "type": {
19733
+ "text": "Record<string, unknown>"
19734
+ }
19735
+ }
19856
19736
  },
19857
19737
  {
19858
- "kind": "field",
19859
- "name": "startMouseX",
19860
- "type": {
19861
- "text": "number"
19738
+ "kind": "method",
19739
+ "name": "restoreHandOffData",
19740
+ "return": {
19741
+ "type": {
19742
+ "text": "void"
19743
+ }
19862
19744
  },
19863
- "privacy": "private",
19864
- "default": "0"
19745
+ "parameters": [
19746
+ {
19747
+ "name": "saved",
19748
+ "type": {
19749
+ "text": "unknown"
19750
+ }
19751
+ },
19752
+ {
19753
+ "name": "interrupted",
19754
+ "type": {
19755
+ "text": "boolean"
19756
+ }
19757
+ }
19758
+ ]
19865
19759
  },
19866
19760
  {
19867
- "kind": "field",
19868
- "name": "startMouseY",
19869
- "type": {
19870
- "text": "number"
19871
- },
19872
- "privacy": "private",
19873
- "default": "0"
19761
+ "kind": "method",
19762
+ "name": "getActiveAgent",
19763
+ "return": {
19764
+ "type": {
19765
+ "text": "AgentConfig | undefined"
19766
+ }
19767
+ }
19874
19768
  },
19875
19769
  {
19876
- "kind": "field",
19877
- "name": "startElemLeft",
19878
- "type": {
19879
- "text": "number"
19770
+ "kind": "method",
19771
+ "name": "setPinnedAgent",
19772
+ "return": {
19773
+ "type": {
19774
+ "text": "void"
19775
+ }
19880
19776
  },
19881
- "privacy": "private",
19882
- "default": "0"
19777
+ "parameters": [
19778
+ {
19779
+ "name": "name",
19780
+ "type": {
19781
+ "text": "string | null"
19782
+ }
19783
+ }
19784
+ ]
19883
19785
  },
19884
19786
  {
19885
- "kind": "field",
19886
- "name": "startElemTop",
19887
- "type": {
19888
- "text": "number"
19787
+ "kind": "method",
19788
+ "name": "setFlowOwner",
19789
+ "return": {
19790
+ "type": {
19791
+ "text": "void"
19792
+ }
19889
19793
  },
19890
- "privacy": "private",
19891
- "default": "0"
19794
+ "parameters": [
19795
+ {
19796
+ "name": "name",
19797
+ "type": {
19798
+ "text": "string | null"
19799
+ }
19800
+ }
19801
+ ]
19892
19802
  },
19893
19803
  {
19894
- "kind": "field",
19895
- "name": "hasDragged",
19896
- "type": {
19897
- "text": "boolean"
19898
- },
19899
- "privacy": "private",
19900
- "default": "false"
19804
+ "kind": "method",
19805
+ "name": "getFlowOwner",
19806
+ "return": {
19807
+ "type": {
19808
+ "text": "string | null"
19809
+ }
19810
+ }
19901
19811
  },
19902
19812
  {
19903
- "kind": "field",
19904
- "name": "latestMouseX",
19905
- "type": {
19906
- "text": "number"
19907
- },
19908
- "privacy": "private",
19909
- "default": "0"
19813
+ "kind": "method",
19814
+ "name": "getInteractionCheckpoints",
19815
+ "return": {
19816
+ "type": {
19817
+ "text": "readonly PersistedInteractionCheckpoint[]"
19818
+ }
19819
+ }
19910
19820
  },
19911
19821
  {
19912
- "kind": "field",
19913
- "name": "latestMouseY",
19914
- "type": {
19915
- "text": "number"
19822
+ "kind": "method",
19823
+ "name": "restoreInteractionCheckpoints",
19824
+ "return": {
19825
+ "type": {
19826
+ "text": "void"
19827
+ }
19916
19828
  },
19917
- "privacy": "private",
19918
- "default": "0"
19829
+ "parameters": [
19830
+ {
19831
+ "name": "saved",
19832
+ "type": {
19833
+ "text": "readonly PersistedInteractionCheckpoint[]"
19834
+ }
19835
+ }
19836
+ ]
19919
19837
  },
19920
19838
  {
19921
- "kind": "field",
19922
- "name": "rafHandle",
19923
- "type": {
19924
- "text": "number | undefined"
19925
- },
19926
- "privacy": "private"
19839
+ "kind": "method",
19840
+ "name": "getInteractionCheckpoint",
19841
+ "return": {
19842
+ "type": {
19843
+ "text": "PersistedInteractionCheckpoint | undefined"
19844
+ }
19845
+ }
19927
19846
  },
19928
19847
  {
19929
- "kind": "field",
19930
- "name": "closeAbort",
19931
- "type": {
19932
- "text": "AbortController | undefined"
19848
+ "kind": "method",
19849
+ "name": "restoreInteractionCheckpoint",
19850
+ "return": {
19851
+ "type": {
19852
+ "text": "void"
19853
+ }
19933
19854
  },
19934
- "privacy": "private"
19855
+ "parameters": [
19856
+ {
19857
+ "name": "saved",
19858
+ "type": {
19859
+ "text": "PersistedInteractionCheckpoint | undefined"
19860
+ }
19861
+ }
19862
+ ]
19935
19863
  },
19936
19864
  {
19937
19865
  "kind": "method",
19938
- "name": "onBubbleMouseEnter"
19866
+ "name": "addInteractionInterceptor",
19867
+ "return": {
19868
+ "type": {
19869
+ "text": "() => void"
19870
+ }
19871
+ },
19872
+ "parameters": [
19873
+ {
19874
+ "name": "interceptor",
19875
+ "type": {
19876
+ "text": "InteractionInterceptor"
19877
+ }
19878
+ }
19879
+ ],
19880
+ "description": "Forwarded, so an interceptor installed on any layer lands on the driver that opens the\ninteractions. A decorator that answers interactions installs its own on `this.inner`."
19939
19881
  },
19940
19882
  {
19941
19883
  "kind": "method",
19942
- "name": "onBubbleMouseLeave"
19884
+ "name": "invokeAsUser",
19885
+ "return": {
19886
+ "type": {
19887
+ "text": "Promise<InvokeResult>"
19888
+ }
19889
+ },
19890
+ "parameters": [
19891
+ {
19892
+ "name": "interactionId",
19893
+ "type": {
19894
+ "text": "string"
19895
+ }
19896
+ },
19897
+ {
19898
+ "name": "action",
19899
+ "type": {
19900
+ "text": "string"
19901
+ }
19902
+ },
19903
+ {
19904
+ "name": "args",
19905
+ "optional": true,
19906
+ "type": {
19907
+ "text": "unknown"
19908
+ }
19909
+ }
19910
+ ],
19911
+ "description": "Forwarded: the interaction belongs to the driver that opened it. An inner driver that cannot\nrun actions answers as if the interaction had ended."
19943
19912
  },
19944
19913
  {
19945
19914
  "kind": "method",
19946
- "name": "dialogOpenChanged",
19915
+ "name": "presentInteraction",
19916
+ "return": {
19917
+ "type": {
19918
+ "text": "Promise<T>"
19919
+ }
19920
+ },
19947
19921
  "parameters": [
19948
19922
  {
19949
- "name": "_",
19923
+ "name": "componentName",
19950
19924
  "type": {
19951
- "text": "boolean"
19925
+ "text": "string"
19952
19926
  }
19953
19927
  },
19954
19928
  {
19955
- "name": "next",
19929
+ "name": "data",
19956
19930
  "type": {
19957
- "text": "boolean"
19931
+ "text": "unknown"
19932
+ }
19933
+ },
19934
+ {
19935
+ "name": "options",
19936
+ "optional": true,
19937
+ "type": {
19938
+ "text": "InteractionRequestOptions"
19958
19939
  }
19959
19940
  }
19960
19941
  ]
19961
19942
  },
19962
19943
  {
19963
19944
  "kind": "method",
19964
- "name": "assistantSessionKey",
19965
- "privacy": "private",
19945
+ "name": "provideHandlerCapability",
19966
19946
  "return": {
19967
19947
  "type": {
19968
- "text": "string | undefined"
19948
+ "text": "() => void"
19969
19949
  }
19970
19950
  },
19971
- "description": "The session of the assistant this bubble holds, when it can tell: the key the assistant\npublishes under, read from the assistant in the bubble's light DOM — whether or not the dialog\n(and with it the slot) is rendered, since the badge shows while it is not."
19951
+ "parameters": [
19952
+ {
19953
+ "name": "name",
19954
+ "type": {
19955
+ "text": "string"
19956
+ }
19957
+ },
19958
+ {
19959
+ "name": "factory",
19960
+ "type": {
19961
+ "text": "HandlerCapabilityFactory"
19962
+ }
19963
+ }
19964
+ ]
19972
19965
  },
19973
19966
  {
19974
19967
  "kind": "method",
19975
- "name": "openDialog",
19976
- "privacy": "private",
19968
+ "name": "getContextReserve",
19977
19969
  "return": {
19978
19970
  "type": {
19979
- "text": "void"
19971
+ "text": "ContextReserveResolution | undefined"
19980
19972
  }
19981
- },
19982
- "description": "Open the dialog beside the orb."
19973
+ }
19983
19974
  },
19984
19975
  {
19985
19976
  "kind": "method",
19986
- "name": "showWaitingIfBadged",
19987
- "privacy": "private",
19977
+ "name": "getPreambleTokens",
19988
19978
  "return": {
19989
19979
  "type": {
19990
- "text": "void"
19980
+ "text": "number | undefined"
19991
19981
  }
19992
- },
19993
- "description": "Opened from the badge: take the person to what is waiting on them (GENC-1660)."
19982
+ }
19994
19983
  },
19995
19984
  {
19996
19985
  "kind": "method",
19997
- "name": "refreshNeedsUser",
19998
- "privacy": "private",
19986
+ "name": "setContextGuard",
19999
19987
  "return": {
20000
19988
  "type": {
20001
19989
  "text": "void"
20002
19990
  }
20003
19991
  },
20004
- "description": "Badge only for this bubble's own assistant (GENC-1660)."
20005
- },
20006
- {
20007
- "kind": "method",
20008
- "name": "dialogContentChanged",
20009
19992
  "parameters": [
20010
19993
  {
20011
- "name": "_",
20012
- "type": {
20013
- "text": "HTMLElement[]"
20014
- }
20015
- },
20016
- {
20017
- "name": "next",
19994
+ "name": "policy",
19995
+ "optional": true,
20018
19996
  "type": {
20019
- "text": "HTMLElement[]"
19997
+ "text": "ContextGuardPolicy"
20020
19998
  }
20021
19999
  }
20022
20000
  ]
20023
20001
  },
20024
20002
  {
20025
20003
  "kind": "method",
20026
- "name": "findAssistant",
20027
- "privacy": "private",
20004
+ "name": "compact",
20028
20005
  "return": {
20029
20006
  "type": {
20030
- "text": "Element | null"
20007
+ "text": "Promise<ChatMessage | null>"
20031
20008
  }
20032
20009
  },
20033
20010
  "parameters": [
20034
20011
  {
20035
- "name": "nodes",
20012
+ "name": "options",
20036
20013
  "optional": true,
20037
20014
  "type": {
20038
- "text": "HTMLElement[]"
20015
+ "text": "CompactionPlanOptions"
20039
20016
  }
20040
20017
  }
20041
20018
  ]
20042
20019
  },
20043
20020
  {
20044
20021
  "kind": "method",
20045
- "name": "showCloseButton",
20046
- "privacy": "private",
20022
+ "name": "getCompactionPlan",
20023
+ "return": {
20024
+ "type": {
20025
+ "text": "CompactionProjection | null"
20026
+ }
20027
+ },
20047
20028
  "parameters": [
20048
20029
  {
20049
- "name": "assistant",
20030
+ "name": "options",
20031
+ "optional": true,
20050
20032
  "type": {
20051
- "text": "Element"
20033
+ "text": "CompactionPlanOptions"
20052
20034
  }
20053
20035
  }
20054
- ],
20055
- "description": "The Close button is the assistant's own, rendered in its header beside the cog. It used to be\na design-system button injected into the assistant's light DOM, where the assistant's styles\ncould reach its host but not the padded control inside it, so it sat narrower than the cog\nand off its centre line, and every host carried a shim to square it up."
20056
- },
20057
- {
20058
- "kind": "method",
20059
- "name": "removeCloseButton",
20060
- "privacy": "private"
20036
+ ]
20061
20037
  },
20062
20038
  {
20063
20039
  "kind": "method",
20064
- "name": "onBubbleMouseDown",
20040
+ "name": "canCompact",
20041
+ "return": {
20042
+ "type": {
20043
+ "text": "boolean"
20044
+ }
20045
+ },
20065
20046
  "parameters": [
20066
20047
  {
20067
- "name": "e",
20048
+ "name": "options",
20049
+ "optional": true,
20068
20050
  "type": {
20069
- "text": "MouseEvent"
20051
+ "text": "CompactionPlanOptions"
20070
20052
  }
20071
20053
  }
20072
20054
  ]
20073
20055
  },
20074
20056
  {
20075
20057
  "kind": "method",
20076
- "name": "onDialogHeaderMouseDown",
20058
+ "name": "isBusy",
20059
+ "return": {
20060
+ "type": {
20061
+ "text": "boolean"
20062
+ }
20063
+ }
20064
+ },
20065
+ {
20066
+ "kind": "method",
20067
+ "name": "getSuggestions",
20068
+ "return": {
20069
+ "type": {
20070
+ "text": "Promise<string[]>"
20071
+ }
20072
+ },
20077
20073
  "parameters": [
20078
20074
  {
20079
- "name": "e",
20075
+ "name": "history",
20080
20076
  "type": {
20081
- "text": "CustomEvent<{ clientX: number; clientY: number }>"
20077
+ "text": "ChatMessage[]"
20078
+ }
20079
+ },
20080
+ {
20081
+ "name": "prompt",
20082
+ "type": {
20083
+ "text": "string"
20084
+ }
20085
+ },
20086
+ {
20087
+ "name": "count",
20088
+ "type": {
20089
+ "text": "number"
20090
+ }
20091
+ },
20092
+ {
20093
+ "name": "allAgentInfo",
20094
+ "optional": true,
20095
+ "type": {
20096
+ "text": "AllAgentSummary[]"
20082
20097
  }
20083
20098
  }
20084
20099
  ]
20085
20100
  },
20086
- {
20087
- "kind": "field",
20088
- "name": "onCloseBtnClick",
20089
- "privacy": "private",
20090
- "readonly": true
20091
- },
20092
20101
  {
20093
20102
  "kind": "method",
20094
- "name": "cancelClose",
20095
- "privacy": "private"
20103
+ "name": "getTurnSnapshots",
20104
+ "return": {
20105
+ "type": {
20106
+ "text": "ReadonlyArray<TurnSnapshot>"
20107
+ }
20108
+ }
20096
20109
  },
20097
20110
  {
20098
20111
  "kind": "method",
20099
- "name": "startCloseDialog",
20100
- "privacy": "private"
20101
- },
20102
- {
20103
- "kind": "field",
20104
- "name": "onDocMouseMove",
20105
- "privacy": "private"
20106
- },
20107
- {
20108
- "kind": "field",
20109
- "name": "applyDragFrame",
20110
- "privacy": "private"
20111
- },
20112
- {
20113
- "kind": "field",
20114
- "name": "onDocMouseUp",
20115
- "privacy": "private"
20112
+ "name": "getExternalDiagnostics",
20113
+ "return": {
20114
+ "type": {
20115
+ "text": "ReadonlyArray<DiagnosticEntry>"
20116
+ }
20117
+ },
20118
+ "description": "The inner driver's entries. Diagnostics compose down the stack: a decorator with entries of\nits own overrides this and appends them to `super.getExternalDiagnostics()`."
20116
20119
  },
20117
20120
  {
20118
20121
  "kind": "method",
20119
- "name": "onPopout"
20122
+ "name": "getActiveProviderName",
20123
+ "return": {
20124
+ "type": {
20125
+ "text": "string"
20126
+ }
20127
+ }
20120
20128
  },
20121
20129
  {
20122
20130
  "kind": "method",
20123
- "name": "onCloseDialog"
20124
- },
20125
- {
20126
- "kind": "field",
20127
- "name": "tooltipStyle",
20128
- "type": {
20129
- "text": "string"
20130
- },
20131
- "readonly": true
20132
- }
20133
- ],
20134
- "attributes": [
20135
- {
20136
- "name": "title",
20137
- "type": {
20138
- "text": "string"
20139
- },
20140
- "default": "'AI Assistant'",
20141
- "fieldName": "title"
20142
- },
20143
- {
20144
- "name": "image-src",
20145
- "type": {
20146
- "text": "string | undefined"
20147
- },
20148
- "fieldName": "imageSrc"
20149
- },
20150
- {
20151
- "name": "design-system-prefix",
20152
- "type": {
20153
- "text": "string"
20154
- },
20155
- "default": "'rapid'",
20156
- "fieldName": "designSystemPrefix"
20131
+ "name": "dispose",
20132
+ "return": {
20133
+ "type": {
20134
+ "text": "void | Promise<void>"
20135
+ }
20136
+ }
20157
20137
  },
20158
20138
  {
20159
- "name": "needs-input-label",
20160
- "type": {
20161
- "text": "string"
20162
- },
20163
- "default": "'The assistant needs your input'",
20164
- "description": "What the \"needs you\" badge on the orb says — its tooltip, and what a screen reader announces\nwhen it appears (GENC-1660 §4.10). The bubble cannot read the autopilot's own wording, so a host\nthat renames or localises the autopilot sets this too.",
20165
- "fieldName": "needsInputLabel"
20139
+ "kind": "method",
20140
+ "name": "cancel",
20141
+ "return": {
20142
+ "type": {
20143
+ "text": "void"
20144
+ }
20145
+ }
20166
20146
  }
20167
20147
  ],
20168
20148
  "superclass": {
20169
- "name": "GenesisElement",
20170
- "package": "@genesislcap/web-core"
20171
- },
20172
- "tagName": "foundation-ai-chat-bubble",
20173
- "customElement": true
20149
+ "name": "EventTarget",
20150
+ "module": "src/components/ai-driver/base-driver-decorator.ts"
20151
+ }
20174
20152
  }
20175
20153
  ],
20176
20154
  "exports": [
20177
20155
  {
20178
20156
  "kind": "js",
20179
- "name": "AiChatBubble",
20180
- "declaration": {
20181
- "name": "AiChatBubble",
20182
- "module": "src/components/chat-bubble/chat-bubble.ts"
20183
- }
20184
- },
20185
- {
20186
- "kind": "custom-element-definition",
20187
- "name": "foundation-ai-chat-bubble",
20157
+ "name": "BaseDriverDecorator",
20188
20158
  "declaration": {
20189
- "name": "AiChatBubble",
20190
- "module": "src/components/chat-bubble/chat-bubble.ts"
20159
+ "name": "BaseDriverDecorator",
20160
+ "module": "src/components/ai-driver/base-driver-decorator.ts"
20191
20161
  }
20192
20162
  }
20193
20163
  ]
20194
20164
  },
20195
20165
  {
20196
20166
  "kind": "javascript-module",
20197
- "path": "src/components/chat-bubble/index.ts",
20167
+ "path": "src/components/ai-driver/index.ts",
20198
20168
  "declarations": [],
20199
20169
  "exports": [
20200
20170
  {
20201
20171
  "kind": "js",
20202
- "name": "*",
20172
+ "name": "AiDriver",
20203
20173
  "declaration": {
20204
- "name": "*",
20205
- "package": "./chat-bubble"
20174
+ "name": "AiDriver",
20175
+ "module": "./ai-driver"
20176
+ }
20177
+ },
20178
+ {
20179
+ "kind": "js",
20180
+ "name": "AiDriverEventMap",
20181
+ "declaration": {
20182
+ "name": "AiDriverEventMap",
20183
+ "module": "./ai-driver"
20184
+ }
20185
+ },
20186
+ {
20187
+ "kind": "js",
20188
+ "name": "AI_DRIVER_EVENT_TYPES",
20189
+ "declaration": {
20190
+ "name": "AI_DRIVER_EVENT_TYPES",
20191
+ "module": "./ai-driver"
20192
+ }
20193
+ },
20194
+ {
20195
+ "kind": "js",
20196
+ "name": "BaseDriverDecorator",
20197
+ "declaration": {
20198
+ "name": "BaseDriverDecorator",
20199
+ "module": "./base-driver-decorator"
20206
20200
  }
20207
20201
  }
20208
20202
  ]
20209
20203
  },
20204
+ {
20205
+ "kind": "javascript-module",
20206
+ "path": "src/components/ai-driver/stub-driver.ts",
20207
+ "declarations": [],
20208
+ "exports": []
20209
+ },
20210
20210
  {
20211
20211
  "kind": "javascript-module",
20212
20212
  "path": "src/components/chat-driver/align-event-globals.ts",