@genesislcap/ai-assistant 15.99.3 → 15.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +397 -397
- package/dist/dts/react.d.ts +10 -10
- package/dist/react.cjs +18 -18
- package/dist/react.mjs +17 -17
- package/package.json +17 -17
|
@@ -17997,209 +17997,137 @@
|
|
|
17997
17997
|
},
|
|
17998
17998
|
{
|
|
17999
17999
|
"kind": "javascript-module",
|
|
18000
|
-
"path": "src/components/agent-
|
|
18001
|
-
"declarations": [
|
|
18002
|
-
{
|
|
18003
|
-
"kind": "variable",
|
|
18004
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18005
|
-
"type": {
|
|
18006
|
-
"text": "string"
|
|
18007
|
-
},
|
|
18008
|
-
"default": "'__auto__'",
|
|
18009
|
-
"description": "Sentinel value representing \"Auto\" where a menu row needs a string value."
|
|
18010
|
-
},
|
|
18011
|
-
{
|
|
18012
|
-
"kind": "variable",
|
|
18013
|
-
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
18014
|
-
"type": {
|
|
18015
|
-
"text": "string"
|
|
18016
|
-
},
|
|
18017
|
-
"default": "'Orchestration'",
|
|
18018
|
-
"description": "The picker's default name for orchestration: the assistant routes each message to the agent it\nsuits, as opposed to a pinned agent. Not \"Auto\", which other tools use for picking a model tier;\n\"Orchestration\" says that several agents stand behind it."
|
|
18019
|
-
},
|
|
18020
|
-
{
|
|
18021
|
-
"kind": "variable",
|
|
18022
|
-
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18023
|
-
"type": {
|
|
18024
|
-
"text": "string"
|
|
18025
|
-
},
|
|
18026
|
-
"default": "'Orchestration'",
|
|
18027
|
-
"description": "The same choice as the picker menu's first row. The same word by default; separate so a host can say more there."
|
|
18028
|
-
},
|
|
18029
|
-
{
|
|
18030
|
-
"kind": "variable",
|
|
18031
|
-
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18032
|
-
"type": {
|
|
18033
|
-
"text": "string"
|
|
18034
|
-
},
|
|
18035
|
-
"default": "'Each message goes to the specialist it suits.'",
|
|
18036
|
-
"description": "What orchestration does, as the menu row's hint and the pill's tooltip."
|
|
18037
|
-
}
|
|
18038
|
-
],
|
|
18039
|
-
"exports": [
|
|
18040
|
-
{
|
|
18041
|
-
"kind": "js",
|
|
18042
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18043
|
-
"declaration": {
|
|
18044
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18045
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18046
|
-
}
|
|
18047
|
-
},
|
|
18048
|
-
{
|
|
18049
|
-
"kind": "js",
|
|
18050
|
-
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
18051
|
-
"declaration": {
|
|
18052
|
-
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
18053
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18054
|
-
}
|
|
18055
|
-
},
|
|
18056
|
-
{
|
|
18057
|
-
"kind": "js",
|
|
18058
|
-
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18059
|
-
"declaration": {
|
|
18060
|
-
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18061
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18062
|
-
}
|
|
18063
|
-
},
|
|
18064
|
-
{
|
|
18065
|
-
"kind": "js",
|
|
18066
|
-
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18067
|
-
"declaration": {
|
|
18068
|
-
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18069
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18070
|
-
}
|
|
18071
|
-
}
|
|
18072
|
-
]
|
|
18073
|
-
},
|
|
18074
|
-
{
|
|
18075
|
-
"kind": "javascript-module",
|
|
18076
|
-
"path": "src/components/agent-picker/agent-picker.styles.ts",
|
|
18077
|
-
"declarations": [
|
|
18078
|
-
{
|
|
18079
|
-
"kind": "variable",
|
|
18080
|
-
"name": "styles",
|
|
18081
|
-
"default": "css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* The picker owns the ROWS only. The panel around them — surface, border,\n shadow, position, open/close animation — is the assistant's, so the agent\n menu and the session menu are the same object with different contents.\n See the composer-menu rules in main.styles.ts. */\n .menu {\n display: flex;\n flex-direction: column;\n gap: 1px;\n }\n\n ${menuItemStyles}\n`"
|
|
18082
|
-
}
|
|
18083
|
-
],
|
|
18084
|
-
"exports": [
|
|
18085
|
-
{
|
|
18086
|
-
"kind": "js",
|
|
18087
|
-
"name": "styles",
|
|
18088
|
-
"declaration": {
|
|
18089
|
-
"name": "styles",
|
|
18090
|
-
"module": "src/components/agent-picker/agent-picker.styles.ts"
|
|
18091
|
-
}
|
|
18092
|
-
}
|
|
18093
|
-
]
|
|
18094
|
-
},
|
|
18095
|
-
{
|
|
18096
|
-
"kind": "javascript-module",
|
|
18097
|
-
"path": "src/components/agent-picker/agent-picker.template.ts",
|
|
18098
|
-
"declarations": [],
|
|
18099
|
-
"exports": []
|
|
18100
|
-
},
|
|
18101
|
-
{
|
|
18102
|
-
"kind": "javascript-module",
|
|
18103
|
-
"path": "src/components/agent-picker/agent-picker.ts",
|
|
18000
|
+
"path": "src/components/agent-session/agent-session.ts",
|
|
18104
18001
|
"declarations": [
|
|
18105
18002
|
{
|
|
18106
18003
|
"kind": "class",
|
|
18107
|
-
"description": "The agent
|
|
18108
|
-
"name": "
|
|
18004
|
+
"description": "The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing,\nand the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n\nKnows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the\nhand-off stack, the divider in history all stay with the orchestrator, which is the only thing\nwith agents to route between.",
|
|
18005
|
+
"name": "AgentSession",
|
|
18109
18006
|
"members": [
|
|
18110
18007
|
{
|
|
18111
18008
|
"kind": "field",
|
|
18112
|
-
"name": "
|
|
18113
|
-
"
|
|
18114
|
-
|
|
18115
|
-
|
|
18116
|
-
"
|
|
18117
|
-
"description": "Picker variant, sourced from the assistant's `chatConfig.picker.mode`.\n`'disabled'` hides the picker; every other value renders the same menu —\n`'select'` and `'segmented-control'` are retained so existing configuration\nstays valid, but no longer select between two layouts."
|
|
18009
|
+
"name": "lifecycleAbortController",
|
|
18010
|
+
"privacy": "private",
|
|
18011
|
+
"readonly": true,
|
|
18012
|
+
"default": "new AbortController()",
|
|
18013
|
+
"description": "Aborted on disposal. Threaded into `AgentLifecycleContext.signal` so long-running\n`onActivate` work can bail if the session disconnects."
|
|
18118
18014
|
},
|
|
18119
18015
|
{
|
|
18120
18016
|
"kind": "field",
|
|
18121
|
-
"name": "
|
|
18017
|
+
"name": "active",
|
|
18122
18018
|
"type": {
|
|
18123
|
-
"text": "AgentConfig
|
|
18019
|
+
"text": "AgentConfig | undefined"
|
|
18124
18020
|
},
|
|
18125
|
-
"
|
|
18126
|
-
"description": "Top-level agents passed to the assistant."
|
|
18021
|
+
"privacy": "private"
|
|
18127
18022
|
},
|
|
18128
18023
|
{
|
|
18129
18024
|
"kind": "field",
|
|
18130
|
-
"name": "
|
|
18025
|
+
"name": "pinned",
|
|
18131
18026
|
"type": {
|
|
18132
18027
|
"text": "string | null"
|
|
18133
18028
|
},
|
|
18029
|
+
"privacy": "private",
|
|
18134
18030
|
"default": "null",
|
|
18135
|
-
"description": "
|
|
18031
|
+
"description": "Sticky user pick from the picker (or the host's `setAgent` API). Only changes on explicit\nuser action. Survives flow completion: when a stateful agent releases, the user-pin stays put\nand routing falls back to it on the next turn."
|
|
18136
18032
|
},
|
|
18137
18033
|
{
|
|
18138
18034
|
"kind": "field",
|
|
18139
|
-
"name": "
|
|
18035
|
+
"name": "flowOwner",
|
|
18140
18036
|
"type": {
|
|
18141
|
-
"text": "
|
|
18037
|
+
"text": "string | null"
|
|
18142
18038
|
},
|
|
18143
|
-
"
|
|
18144
|
-
"
|
|
18039
|
+
"privacy": "private",
|
|
18040
|
+
"default": "null",
|
|
18041
|
+
"description": "Transient flow lock — set when a stateful agent activates, cleared on release. While\nnon-null, routing precedence goes to this agent and the picker is locked. Independent of\nthe user pin so completing a flow doesn't wipe the user's sticky choice."
|
|
18145
18042
|
},
|
|
18146
18043
|
{
|
|
18147
18044
|
"kind": "field",
|
|
18148
|
-
"name": "
|
|
18045
|
+
"name": "restoredStates",
|
|
18149
18046
|
"type": {
|
|
18150
|
-
"text": "string"
|
|
18047
|
+
"text": "Record<string, unknown>"
|
|
18151
18048
|
},
|
|
18152
|
-
"
|
|
18153
|
-
"
|
|
18049
|
+
"privacy": "private",
|
|
18050
|
+
"default": "{}",
|
|
18051
|
+
"description": "Per-agent restored state for a rehydrated session, keyed by agent name. Primed by the host on\nrestore; each entry is passed to that agent's `onActivate` as `ctx.restored` on its next\nactivation, then deleted so a later re-activation starts fresh."
|
|
18154
18052
|
},
|
|
18155
18053
|
{
|
|
18156
18054
|
"kind": "field",
|
|
18157
|
-
"name": "
|
|
18055
|
+
"name": "activation",
|
|
18158
18056
|
"type": {
|
|
18159
|
-
"text": "
|
|
18057
|
+
"text": "Promise<unknown>"
|
|
18160
18058
|
},
|
|
18161
|
-
"
|
|
18162
|
-
"description": "The
|
|
18059
|
+
"privacy": "private",
|
|
18060
|
+
"description": "The tail of the activation queue — see AgentSession.activate."
|
|
18163
18061
|
},
|
|
18164
18062
|
{
|
|
18165
18063
|
"kind": "field",
|
|
18166
|
-
"name": "
|
|
18064
|
+
"name": "suspended",
|
|
18167
18065
|
"type": {
|
|
18168
18066
|
"text": "AgentConfig[]"
|
|
18169
18067
|
},
|
|
18170
|
-
"
|
|
18171
|
-
"
|
|
18068
|
+
"privacy": "private",
|
|
18069
|
+
"default": "[]",
|
|
18070
|
+
"description": "Callers waiting in a hand-off (GENC-1737), oldest first: still live, so never deactivated by\nthe hand-off, and resumed without `onActivate`. Empty after a reload, when a caller has no live\nstate and is activated again from its saved state instead."
|
|
18172
18071
|
},
|
|
18173
18072
|
{
|
|
18174
18073
|
"kind": "field",
|
|
18175
|
-
"name": "
|
|
18176
|
-
"
|
|
18177
|
-
|
|
18074
|
+
"name": "handOffData",
|
|
18075
|
+
"privacy": "private",
|
|
18076
|
+
"default": "new Map<string, unknown>()",
|
|
18077
|
+
"description": "The `data` of the hand-off that activated each agent (GENC-1737), for its tool handlers: kept\nwhile it is active or waits as a caller, and dropped when its activation ends."
|
|
18078
|
+
},
|
|
18079
|
+
{
|
|
18080
|
+
"kind": "method",
|
|
18081
|
+
"name": "getActive",
|
|
18082
|
+
"return": {
|
|
18083
|
+
"type": {
|
|
18084
|
+
"text": "AgentConfig | undefined"
|
|
18085
|
+
}
|
|
18178
18086
|
},
|
|
18179
|
-
"description": "
|
|
18180
|
-
"readonly": true
|
|
18087
|
+
"description": "The active agent, or `undefined` before the first activation and after a release."
|
|
18181
18088
|
},
|
|
18182
18089
|
{
|
|
18183
18090
|
"kind": "method",
|
|
18184
|
-
"name": "
|
|
18091
|
+
"name": "getPinned",
|
|
18185
18092
|
"return": {
|
|
18186
18093
|
"type": {
|
|
18187
|
-
"text": "string"
|
|
18094
|
+
"text": "string | null"
|
|
18095
|
+
}
|
|
18096
|
+
},
|
|
18097
|
+
"description": "The sticky user pin, or `null` for automatic routing."
|
|
18098
|
+
},
|
|
18099
|
+
{
|
|
18100
|
+
"kind": "method",
|
|
18101
|
+
"name": "getFlowOwner",
|
|
18102
|
+
"return": {
|
|
18103
|
+
"type": {
|
|
18104
|
+
"text": "string | null"
|
|
18105
|
+
}
|
|
18106
|
+
},
|
|
18107
|
+
"description": "The transient flow lock, or `null` when no flow holds routing."
|
|
18108
|
+
},
|
|
18109
|
+
{
|
|
18110
|
+
"kind": "method",
|
|
18111
|
+
"name": "getLockedName",
|
|
18112
|
+
"return": {
|
|
18113
|
+
"type": {
|
|
18114
|
+
"text": "string | null"
|
|
18188
18115
|
}
|
|
18189
18116
|
},
|
|
18190
18117
|
"parameters": [
|
|
18191
18118
|
{
|
|
18192
|
-
"name": "
|
|
18119
|
+
"name": "pin",
|
|
18120
|
+
"default": "this.pinned",
|
|
18193
18121
|
"type": {
|
|
18194
|
-
"text": "
|
|
18122
|
+
"text": "string | null"
|
|
18195
18123
|
}
|
|
18196
18124
|
}
|
|
18197
18125
|
],
|
|
18198
|
-
"description": "
|
|
18126
|
+
"description": "The name routing is locked to, flow lock first. A flow in progress outranks the user's\nsticky pick for the duration of the flow; neither being set means automatic routing.\n`pin`, when given, stands in for the sticky pick: one message routed its own way."
|
|
18199
18127
|
},
|
|
18200
18128
|
{
|
|
18201
18129
|
"kind": "method",
|
|
18202
|
-
"name": "
|
|
18130
|
+
"name": "setPinned",
|
|
18203
18131
|
"return": {
|
|
18204
18132
|
"type": {
|
|
18205
18133
|
"text": "void"
|
|
@@ -18212,11 +18140,12 @@
|
|
|
18212
18140
|
"text": "string | null"
|
|
18213
18141
|
}
|
|
18214
18142
|
}
|
|
18215
|
-
]
|
|
18143
|
+
],
|
|
18144
|
+
"description": "Set the sticky user pin. `null` returns to automatic routing."
|
|
18216
18145
|
},
|
|
18217
18146
|
{
|
|
18218
18147
|
"kind": "method",
|
|
18219
|
-
"name": "
|
|
18148
|
+
"name": "setFlowOwner",
|
|
18220
18149
|
"return": {
|
|
18221
18150
|
"type": {
|
|
18222
18151
|
"text": "void"
|
|
@@ -18224,264 +18153,32 @@
|
|
|
18224
18153
|
},
|
|
18225
18154
|
"parameters": [
|
|
18226
18155
|
{
|
|
18227
|
-
"name": "
|
|
18156
|
+
"name": "name",
|
|
18228
18157
|
"type": {
|
|
18229
|
-
"text": "string"
|
|
18158
|
+
"text": "string | null"
|
|
18230
18159
|
}
|
|
18231
18160
|
}
|
|
18232
18161
|
],
|
|
18233
|
-
"description": "
|
|
18162
|
+
"description": "Set the flow-owner lock directly — used to restore state on driver reconstruction\n(agents-array changes, pop-in/pop-out), not to steer routing. Writes without firing hooks or\nreporting a transition, because the flow it names is already running."
|
|
18234
18163
|
},
|
|
18235
18164
|
{
|
|
18236
|
-
"kind": "
|
|
18237
|
-
"name": "
|
|
18238
|
-
"
|
|
18239
|
-
"
|
|
18165
|
+
"kind": "method",
|
|
18166
|
+
"name": "primeRestoredStates",
|
|
18167
|
+
"return": {
|
|
18168
|
+
"type": {
|
|
18169
|
+
"text": "void"
|
|
18170
|
+
}
|
|
18240
18171
|
},
|
|
18241
|
-
"
|
|
18242
|
-
|
|
18243
|
-
|
|
18244
|
-
|
|
18245
|
-
|
|
18246
|
-
|
|
18247
|
-
|
|
18248
|
-
|
|
18249
|
-
|
|
18250
|
-
|
|
18251
|
-
"superclass": {
|
|
18252
|
-
"name": "GenesisElement",
|
|
18253
|
-
"package": "@genesislcap/web-core"
|
|
18254
|
-
},
|
|
18255
|
-
"tagName": "foundation-ai-agent-picker",
|
|
18256
|
-
"customElement": true
|
|
18257
|
-
}
|
|
18258
|
-
],
|
|
18259
|
-
"exports": [
|
|
18260
|
-
{
|
|
18261
|
-
"kind": "js",
|
|
18262
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18263
|
-
"declaration": {
|
|
18264
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18265
|
-
"module": "src/components/agent-picker/agent-picker.ts"
|
|
18266
|
-
}
|
|
18267
|
-
},
|
|
18268
|
-
{
|
|
18269
|
-
"kind": "js",
|
|
18270
|
-
"name": "AgentPicker",
|
|
18271
|
-
"declaration": {
|
|
18272
|
-
"name": "AgentPicker",
|
|
18273
|
-
"module": "src/components/agent-picker/agent-picker.ts"
|
|
18274
|
-
}
|
|
18275
|
-
},
|
|
18276
|
-
{
|
|
18277
|
-
"kind": "custom-element-definition",
|
|
18278
|
-
"name": "foundation-ai-agent-picker",
|
|
18279
|
-
"declaration": {
|
|
18280
|
-
"name": "AgentPicker",
|
|
18281
|
-
"module": "src/components/agent-picker/agent-picker.ts"
|
|
18282
|
-
}
|
|
18283
|
-
}
|
|
18284
|
-
]
|
|
18285
|
-
},
|
|
18286
|
-
{
|
|
18287
|
-
"kind": "javascript-module",
|
|
18288
|
-
"path": "src/components/agent-picker/index.ts",
|
|
18289
|
-
"declarations": [],
|
|
18290
|
-
"exports": [
|
|
18291
|
-
{
|
|
18292
|
-
"kind": "js",
|
|
18293
|
-
"name": "*",
|
|
18294
|
-
"declaration": {
|
|
18295
|
-
"name": "*",
|
|
18296
|
-
"package": "./agent-picker"
|
|
18297
|
-
}
|
|
18298
|
-
}
|
|
18299
|
-
]
|
|
18300
|
-
},
|
|
18301
|
-
{
|
|
18302
|
-
"kind": "javascript-module",
|
|
18303
|
-
"path": "src/components/agent-session/agent-session.ts",
|
|
18304
|
-
"declarations": [
|
|
18305
|
-
{
|
|
18306
|
-
"kind": "class",
|
|
18307
|
-
"description": "The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing,\nand the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n\nKnows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the\nhand-off stack, the divider in history all stay with the orchestrator, which is the only thing\nwith agents to route between.",
|
|
18308
|
-
"name": "AgentSession",
|
|
18309
|
-
"members": [
|
|
18310
|
-
{
|
|
18311
|
-
"kind": "field",
|
|
18312
|
-
"name": "lifecycleAbortController",
|
|
18313
|
-
"privacy": "private",
|
|
18314
|
-
"readonly": true,
|
|
18315
|
-
"default": "new AbortController()",
|
|
18316
|
-
"description": "Aborted on disposal. Threaded into `AgentLifecycleContext.signal` so long-running\n`onActivate` work can bail if the session disconnects."
|
|
18317
|
-
},
|
|
18318
|
-
{
|
|
18319
|
-
"kind": "field",
|
|
18320
|
-
"name": "active",
|
|
18321
|
-
"type": {
|
|
18322
|
-
"text": "AgentConfig | undefined"
|
|
18323
|
-
},
|
|
18324
|
-
"privacy": "private"
|
|
18325
|
-
},
|
|
18326
|
-
{
|
|
18327
|
-
"kind": "field",
|
|
18328
|
-
"name": "pinned",
|
|
18329
|
-
"type": {
|
|
18330
|
-
"text": "string | null"
|
|
18331
|
-
},
|
|
18332
|
-
"privacy": "private",
|
|
18333
|
-
"default": "null",
|
|
18334
|
-
"description": "Sticky user pick from the picker (or the host's `setAgent` API). Only changes on explicit\nuser action. Survives flow completion: when a stateful agent releases, the user-pin stays put\nand routing falls back to it on the next turn."
|
|
18335
|
-
},
|
|
18336
|
-
{
|
|
18337
|
-
"kind": "field",
|
|
18338
|
-
"name": "flowOwner",
|
|
18339
|
-
"type": {
|
|
18340
|
-
"text": "string | null"
|
|
18341
|
-
},
|
|
18342
|
-
"privacy": "private",
|
|
18343
|
-
"default": "null",
|
|
18344
|
-
"description": "Transient flow lock — set when a stateful agent activates, cleared on release. While\nnon-null, routing precedence goes to this agent and the picker is locked. Independent of\nthe user pin so completing a flow doesn't wipe the user's sticky choice."
|
|
18345
|
-
},
|
|
18346
|
-
{
|
|
18347
|
-
"kind": "field",
|
|
18348
|
-
"name": "restoredStates",
|
|
18349
|
-
"type": {
|
|
18350
|
-
"text": "Record<string, unknown>"
|
|
18351
|
-
},
|
|
18352
|
-
"privacy": "private",
|
|
18353
|
-
"default": "{}",
|
|
18354
|
-
"description": "Per-agent restored state for a rehydrated session, keyed by agent name. Primed by the host on\nrestore; each entry is passed to that agent's `onActivate` as `ctx.restored` on its next\nactivation, then deleted so a later re-activation starts fresh."
|
|
18355
|
-
},
|
|
18356
|
-
{
|
|
18357
|
-
"kind": "field",
|
|
18358
|
-
"name": "activation",
|
|
18359
|
-
"type": {
|
|
18360
|
-
"text": "Promise<unknown>"
|
|
18361
|
-
},
|
|
18362
|
-
"privacy": "private",
|
|
18363
|
-
"description": "The tail of the activation queue — see AgentSession.activate."
|
|
18364
|
-
},
|
|
18365
|
-
{
|
|
18366
|
-
"kind": "field",
|
|
18367
|
-
"name": "suspended",
|
|
18368
|
-
"type": {
|
|
18369
|
-
"text": "AgentConfig[]"
|
|
18370
|
-
},
|
|
18371
|
-
"privacy": "private",
|
|
18372
|
-
"default": "[]",
|
|
18373
|
-
"description": "Callers waiting in a hand-off (GENC-1737), oldest first: still live, so never deactivated by\nthe hand-off, and resumed without `onActivate`. Empty after a reload, when a caller has no live\nstate and is activated again from its saved state instead."
|
|
18374
|
-
},
|
|
18375
|
-
{
|
|
18376
|
-
"kind": "field",
|
|
18377
|
-
"name": "handOffData",
|
|
18378
|
-
"privacy": "private",
|
|
18379
|
-
"default": "new Map<string, unknown>()",
|
|
18380
|
-
"description": "The `data` of the hand-off that activated each agent (GENC-1737), for its tool handlers: kept\nwhile it is active or waits as a caller, and dropped when its activation ends."
|
|
18381
|
-
},
|
|
18382
|
-
{
|
|
18383
|
-
"kind": "method",
|
|
18384
|
-
"name": "getActive",
|
|
18385
|
-
"return": {
|
|
18386
|
-
"type": {
|
|
18387
|
-
"text": "AgentConfig | undefined"
|
|
18388
|
-
}
|
|
18389
|
-
},
|
|
18390
|
-
"description": "The active agent, or `undefined` before the first activation and after a release."
|
|
18391
|
-
},
|
|
18392
|
-
{
|
|
18393
|
-
"kind": "method",
|
|
18394
|
-
"name": "getPinned",
|
|
18395
|
-
"return": {
|
|
18396
|
-
"type": {
|
|
18397
|
-
"text": "string | null"
|
|
18398
|
-
}
|
|
18399
|
-
},
|
|
18400
|
-
"description": "The sticky user pin, or `null` for automatic routing."
|
|
18401
|
-
},
|
|
18402
|
-
{
|
|
18403
|
-
"kind": "method",
|
|
18404
|
-
"name": "getFlowOwner",
|
|
18405
|
-
"return": {
|
|
18406
|
-
"type": {
|
|
18407
|
-
"text": "string | null"
|
|
18408
|
-
}
|
|
18409
|
-
},
|
|
18410
|
-
"description": "The transient flow lock, or `null` when no flow holds routing."
|
|
18411
|
-
},
|
|
18412
|
-
{
|
|
18413
|
-
"kind": "method",
|
|
18414
|
-
"name": "getLockedName",
|
|
18415
|
-
"return": {
|
|
18416
|
-
"type": {
|
|
18417
|
-
"text": "string | null"
|
|
18418
|
-
}
|
|
18419
|
-
},
|
|
18420
|
-
"parameters": [
|
|
18421
|
-
{
|
|
18422
|
-
"name": "pin",
|
|
18423
|
-
"default": "this.pinned",
|
|
18424
|
-
"type": {
|
|
18425
|
-
"text": "string | null"
|
|
18426
|
-
}
|
|
18427
|
-
}
|
|
18428
|
-
],
|
|
18429
|
-
"description": "The name routing is locked to, flow lock first. A flow in progress outranks the user's\nsticky pick for the duration of the flow; neither being set means automatic routing.\n`pin`, when given, stands in for the sticky pick: one message routed its own way."
|
|
18430
|
-
},
|
|
18431
|
-
{
|
|
18432
|
-
"kind": "method",
|
|
18433
|
-
"name": "setPinned",
|
|
18434
|
-
"return": {
|
|
18435
|
-
"type": {
|
|
18436
|
-
"text": "void"
|
|
18437
|
-
}
|
|
18438
|
-
},
|
|
18439
|
-
"parameters": [
|
|
18440
|
-
{
|
|
18441
|
-
"name": "name",
|
|
18442
|
-
"type": {
|
|
18443
|
-
"text": "string | null"
|
|
18444
|
-
}
|
|
18445
|
-
}
|
|
18446
|
-
],
|
|
18447
|
-
"description": "Set the sticky user pin. `null` returns to automatic routing."
|
|
18448
|
-
},
|
|
18449
|
-
{
|
|
18450
|
-
"kind": "method",
|
|
18451
|
-
"name": "setFlowOwner",
|
|
18452
|
-
"return": {
|
|
18453
|
-
"type": {
|
|
18454
|
-
"text": "void"
|
|
18455
|
-
}
|
|
18456
|
-
},
|
|
18457
|
-
"parameters": [
|
|
18458
|
-
{
|
|
18459
|
-
"name": "name",
|
|
18460
|
-
"type": {
|
|
18461
|
-
"text": "string | null"
|
|
18462
|
-
}
|
|
18463
|
-
}
|
|
18464
|
-
],
|
|
18465
|
-
"description": "Set the flow-owner lock directly — used to restore state on driver reconstruction\n(agents-array changes, pop-in/pop-out), not to steer routing. Writes without firing hooks or\nreporting a transition, because the flow it names is already running."
|
|
18466
|
-
},
|
|
18467
|
-
{
|
|
18468
|
-
"kind": "method",
|
|
18469
|
-
"name": "primeRestoredStates",
|
|
18470
|
-
"return": {
|
|
18471
|
-
"type": {
|
|
18472
|
-
"text": "void"
|
|
18473
|
-
}
|
|
18474
|
-
},
|
|
18475
|
-
"parameters": [
|
|
18476
|
-
{
|
|
18477
|
-
"name": "snapshots",
|
|
18478
|
-
"type": {
|
|
18479
|
-
"text": "Record<string, unknown>"
|
|
18480
|
-
}
|
|
18481
|
-
}
|
|
18482
|
-
],
|
|
18483
|
-
"description": "Prime per-agent restored state for a rehydrated session. Replaces any pending entries."
|
|
18484
|
-
},
|
|
18172
|
+
"parameters": [
|
|
18173
|
+
{
|
|
18174
|
+
"name": "snapshots",
|
|
18175
|
+
"type": {
|
|
18176
|
+
"text": "Record<string, unknown>"
|
|
18177
|
+
}
|
|
18178
|
+
}
|
|
18179
|
+
],
|
|
18180
|
+
"description": "Prime per-agent restored state for a rehydrated session. Replaces any pending entries."
|
|
18181
|
+
},
|
|
18485
18182
|
{
|
|
18486
18183
|
"kind": "method",
|
|
18487
18184
|
"name": "hasRestoredState",
|
|
@@ -28941,6 +28638,309 @@
|
|
|
28941
28638
|
}
|
|
28942
28639
|
}
|
|
28943
28640
|
]
|
|
28641
|
+
},
|
|
28642
|
+
{
|
|
28643
|
+
"kind": "javascript-module",
|
|
28644
|
+
"path": "src/components/agent-picker/agent-picker.constants.ts",
|
|
28645
|
+
"declarations": [
|
|
28646
|
+
{
|
|
28647
|
+
"kind": "variable",
|
|
28648
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28649
|
+
"type": {
|
|
28650
|
+
"text": "string"
|
|
28651
|
+
},
|
|
28652
|
+
"default": "'__auto__'",
|
|
28653
|
+
"description": "Sentinel value representing \"Auto\" where a menu row needs a string value."
|
|
28654
|
+
},
|
|
28655
|
+
{
|
|
28656
|
+
"kind": "variable",
|
|
28657
|
+
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
28658
|
+
"type": {
|
|
28659
|
+
"text": "string"
|
|
28660
|
+
},
|
|
28661
|
+
"default": "'Orchestration'",
|
|
28662
|
+
"description": "The picker's default name for orchestration: the assistant routes each message to the agent it\nsuits, as opposed to a pinned agent. Not \"Auto\", which other tools use for picking a model tier;\n\"Orchestration\" says that several agents stand behind it."
|
|
28663
|
+
},
|
|
28664
|
+
{
|
|
28665
|
+
"kind": "variable",
|
|
28666
|
+
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28667
|
+
"type": {
|
|
28668
|
+
"text": "string"
|
|
28669
|
+
},
|
|
28670
|
+
"default": "'Orchestration'",
|
|
28671
|
+
"description": "The same choice as the picker menu's first row. The same word by default; separate so a host can say more there."
|
|
28672
|
+
},
|
|
28673
|
+
{
|
|
28674
|
+
"kind": "variable",
|
|
28675
|
+
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28676
|
+
"type": {
|
|
28677
|
+
"text": "string"
|
|
28678
|
+
},
|
|
28679
|
+
"default": "'Each message goes to the specialist it suits.'",
|
|
28680
|
+
"description": "What orchestration does, as the menu row's hint and the pill's tooltip."
|
|
28681
|
+
}
|
|
28682
|
+
],
|
|
28683
|
+
"exports": [
|
|
28684
|
+
{
|
|
28685
|
+
"kind": "js",
|
|
28686
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28687
|
+
"declaration": {
|
|
28688
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28689
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28690
|
+
}
|
|
28691
|
+
},
|
|
28692
|
+
{
|
|
28693
|
+
"kind": "js",
|
|
28694
|
+
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
28695
|
+
"declaration": {
|
|
28696
|
+
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
28697
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28698
|
+
}
|
|
28699
|
+
},
|
|
28700
|
+
{
|
|
28701
|
+
"kind": "js",
|
|
28702
|
+
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28703
|
+
"declaration": {
|
|
28704
|
+
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28705
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28706
|
+
}
|
|
28707
|
+
},
|
|
28708
|
+
{
|
|
28709
|
+
"kind": "js",
|
|
28710
|
+
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28711
|
+
"declaration": {
|
|
28712
|
+
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28713
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28714
|
+
}
|
|
28715
|
+
}
|
|
28716
|
+
]
|
|
28717
|
+
},
|
|
28718
|
+
{
|
|
28719
|
+
"kind": "javascript-module",
|
|
28720
|
+
"path": "src/components/agent-picker/agent-picker.styles.ts",
|
|
28721
|
+
"declarations": [
|
|
28722
|
+
{
|
|
28723
|
+
"kind": "variable",
|
|
28724
|
+
"name": "styles",
|
|
28725
|
+
"default": "css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* The picker owns the ROWS only. The panel around them — surface, border,\n shadow, position, open/close animation — is the assistant's, so the agent\n menu and the session menu are the same object with different contents.\n See the composer-menu rules in main.styles.ts. */\n .menu {\n display: flex;\n flex-direction: column;\n gap: 1px;\n }\n\n ${menuItemStyles}\n`"
|
|
28726
|
+
}
|
|
28727
|
+
],
|
|
28728
|
+
"exports": [
|
|
28729
|
+
{
|
|
28730
|
+
"kind": "js",
|
|
28731
|
+
"name": "styles",
|
|
28732
|
+
"declaration": {
|
|
28733
|
+
"name": "styles",
|
|
28734
|
+
"module": "src/components/agent-picker/agent-picker.styles.ts"
|
|
28735
|
+
}
|
|
28736
|
+
}
|
|
28737
|
+
]
|
|
28738
|
+
},
|
|
28739
|
+
{
|
|
28740
|
+
"kind": "javascript-module",
|
|
28741
|
+
"path": "src/components/agent-picker/agent-picker.template.ts",
|
|
28742
|
+
"declarations": [],
|
|
28743
|
+
"exports": []
|
|
28744
|
+
},
|
|
28745
|
+
{
|
|
28746
|
+
"kind": "javascript-module",
|
|
28747
|
+
"path": "src/components/agent-picker/agent-picker.ts",
|
|
28748
|
+
"declarations": [
|
|
28749
|
+
{
|
|
28750
|
+
"kind": "class",
|
|
28751
|
+
"description": "The agent menu shown from the composer's agent button.\n\nRenders `Auto` plus each top-level agent with `manualSelection.enabled`, one\nrow apiece, tinted with the same pin colour the composer button shows once\nthat agent is pinned. Sub-agents and non-selectable specialists are excluded.\nHidden when fewer than two agents are configured or none are manually\nselectable.\n\nThe rows are all this element owns. The panel around them — surface, border,\nposition, open/close animation — belongs to the assistant, which renders this\nmenu and the session (⋮) menu into the same container so the two match.",
|
|
28752
|
+
"name": "AgentPicker",
|
|
28753
|
+
"members": [
|
|
28754
|
+
{
|
|
28755
|
+
"kind": "field",
|
|
28756
|
+
"name": "mode",
|
|
28757
|
+
"type": {
|
|
28758
|
+
"text": "AgentPickerMode"
|
|
28759
|
+
},
|
|
28760
|
+
"default": "'disabled'",
|
|
28761
|
+
"description": "Picker variant, sourced from the assistant's `chatConfig.picker.mode`.\n`'disabled'` hides the picker; every other value renders the same menu —\n`'select'` and `'segmented-control'` are retained so existing configuration\nstays valid, but no longer select between two layouts."
|
|
28762
|
+
},
|
|
28763
|
+
{
|
|
28764
|
+
"kind": "field",
|
|
28765
|
+
"name": "agents",
|
|
28766
|
+
"type": {
|
|
28767
|
+
"text": "AgentConfig[]"
|
|
28768
|
+
},
|
|
28769
|
+
"default": "[]",
|
|
28770
|
+
"description": "Top-level agents passed to the assistant."
|
|
28771
|
+
},
|
|
28772
|
+
{
|
|
28773
|
+
"kind": "field",
|
|
28774
|
+
"name": "pinnedAgentName",
|
|
28775
|
+
"type": {
|
|
28776
|
+
"text": "string | null"
|
|
28777
|
+
},
|
|
28778
|
+
"default": "null",
|
|
28779
|
+
"description": "Currently pinned agent name, or `null` for Auto."
|
|
28780
|
+
},
|
|
28781
|
+
{
|
|
28782
|
+
"kind": "field",
|
|
28783
|
+
"name": "disablePinColours",
|
|
28784
|
+
"type": {
|
|
28785
|
+
"text": "boolean"
|
|
28786
|
+
},
|
|
28787
|
+
"default": "false",
|
|
28788
|
+
"description": "When true, rows show a neutral dot instead of the per-agent brand tint."
|
|
28789
|
+
},
|
|
28790
|
+
{
|
|
28791
|
+
"kind": "field",
|
|
28792
|
+
"name": "orchestrationLabel",
|
|
28793
|
+
"type": {
|
|
28794
|
+
"text": "string"
|
|
28795
|
+
},
|
|
28796
|
+
"default": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28797
|
+
"description": "The orchestration row's name, from `chatConfig.picker.orchestrationMenuLabel` (resolved by the host)."
|
|
28798
|
+
},
|
|
28799
|
+
{
|
|
28800
|
+
"kind": "field",
|
|
28801
|
+
"name": "orchestrationDescription",
|
|
28802
|
+
"type": {
|
|
28803
|
+
"text": "string"
|
|
28804
|
+
},
|
|
28805
|
+
"default": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28806
|
+
"description": "The orchestration row's hint, from `chatConfig.picker.orchestrationDescription` (resolved by the host)."
|
|
28807
|
+
},
|
|
28808
|
+
{
|
|
28809
|
+
"kind": "field",
|
|
28810
|
+
"name": "selectableAgents",
|
|
28811
|
+
"type": {
|
|
28812
|
+
"text": "AgentConfig[]"
|
|
28813
|
+
},
|
|
28814
|
+
"description": "Top-level agents that opted in to manual selection.",
|
|
28815
|
+
"readonly": true
|
|
28816
|
+
},
|
|
28817
|
+
{
|
|
28818
|
+
"kind": "field",
|
|
28819
|
+
"name": "visible",
|
|
28820
|
+
"type": {
|
|
28821
|
+
"text": "boolean"
|
|
28822
|
+
},
|
|
28823
|
+
"description": "Whether the picker should render at all.",
|
|
28824
|
+
"readonly": true
|
|
28825
|
+
},
|
|
28826
|
+
{
|
|
28827
|
+
"kind": "method",
|
|
28828
|
+
"name": "markStyleFor",
|
|
28829
|
+
"return": {
|
|
28830
|
+
"type": {
|
|
28831
|
+
"text": "string"
|
|
28832
|
+
}
|
|
28833
|
+
},
|
|
28834
|
+
"parameters": [
|
|
28835
|
+
{
|
|
28836
|
+
"name": "agent",
|
|
28837
|
+
"type": {
|
|
28838
|
+
"text": "AgentConfig"
|
|
28839
|
+
}
|
|
28840
|
+
}
|
|
28841
|
+
],
|
|
28842
|
+
"description": "Inline `--menu-item-mark` for one row, or `''` to leave the dot neutral.\n\nIndexed against the FULL agents array rather than `selectableAgents` so a\nrow's tint matches what the composer button shows when that agent is\npinned — the assistant resolves its pin colour the same way, and the two\ndisagreeing is exactly the bug this shares `pinColourAt` to avoid."
|
|
28843
|
+
},
|
|
28844
|
+
{
|
|
28845
|
+
"kind": "method",
|
|
28846
|
+
"name": "selectAgent",
|
|
28847
|
+
"return": {
|
|
28848
|
+
"type": {
|
|
28849
|
+
"text": "void"
|
|
28850
|
+
}
|
|
28851
|
+
},
|
|
28852
|
+
"parameters": [
|
|
28853
|
+
{
|
|
28854
|
+
"name": "name",
|
|
28855
|
+
"type": {
|
|
28856
|
+
"text": "string | null"
|
|
28857
|
+
}
|
|
28858
|
+
}
|
|
28859
|
+
]
|
|
28860
|
+
},
|
|
28861
|
+
{
|
|
28862
|
+
"kind": "method",
|
|
28863
|
+
"name": "selectByValue",
|
|
28864
|
+
"return": {
|
|
28865
|
+
"type": {
|
|
28866
|
+
"text": "void"
|
|
28867
|
+
}
|
|
28868
|
+
},
|
|
28869
|
+
"parameters": [
|
|
28870
|
+
{
|
|
28871
|
+
"name": "value",
|
|
28872
|
+
"type": {
|
|
28873
|
+
"text": "string"
|
|
28874
|
+
}
|
|
28875
|
+
}
|
|
28876
|
+
],
|
|
28877
|
+
"description": "Maps a value using AGENT_PICKER_AUTO_VALUE for Auto back to the\n`string | null` form AgentPicker.selectAgent expects. Retained for\nhosts driving the picker from a value rather than a name."
|
|
28878
|
+
},
|
|
28879
|
+
{
|
|
28880
|
+
"kind": "field",
|
|
28881
|
+
"name": "currentValue",
|
|
28882
|
+
"type": {
|
|
28883
|
+
"text": "string"
|
|
28884
|
+
},
|
|
28885
|
+
"description": "Current pinned agent name as a bindable value.",
|
|
28886
|
+
"readonly": true
|
|
28887
|
+
}
|
|
28888
|
+
],
|
|
28889
|
+
"events": [
|
|
28890
|
+
{
|
|
28891
|
+
"description": "Fired when the user changes selection with the agent name or `null` for Auto. detail: `string | null`",
|
|
28892
|
+
"name": "agent-pinned"
|
|
28893
|
+
}
|
|
28894
|
+
],
|
|
28895
|
+
"superclass": {
|
|
28896
|
+
"name": "GenesisElement",
|
|
28897
|
+
"package": "@genesislcap/web-core"
|
|
28898
|
+
},
|
|
28899
|
+
"tagName": "foundation-ai-agent-picker",
|
|
28900
|
+
"customElement": true
|
|
28901
|
+
}
|
|
28902
|
+
],
|
|
28903
|
+
"exports": [
|
|
28904
|
+
{
|
|
28905
|
+
"kind": "js",
|
|
28906
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28907
|
+
"declaration": {
|
|
28908
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28909
|
+
"module": "src/components/agent-picker/agent-picker.ts"
|
|
28910
|
+
}
|
|
28911
|
+
},
|
|
28912
|
+
{
|
|
28913
|
+
"kind": "js",
|
|
28914
|
+
"name": "AgentPicker",
|
|
28915
|
+
"declaration": {
|
|
28916
|
+
"name": "AgentPicker",
|
|
28917
|
+
"module": "src/components/agent-picker/agent-picker.ts"
|
|
28918
|
+
}
|
|
28919
|
+
},
|
|
28920
|
+
{
|
|
28921
|
+
"kind": "custom-element-definition",
|
|
28922
|
+
"name": "foundation-ai-agent-picker",
|
|
28923
|
+
"declaration": {
|
|
28924
|
+
"name": "AgentPicker",
|
|
28925
|
+
"module": "src/components/agent-picker/agent-picker.ts"
|
|
28926
|
+
}
|
|
28927
|
+
}
|
|
28928
|
+
]
|
|
28929
|
+
},
|
|
28930
|
+
{
|
|
28931
|
+
"kind": "javascript-module",
|
|
28932
|
+
"path": "src/components/agent-picker/index.ts",
|
|
28933
|
+
"declarations": [],
|
|
28934
|
+
"exports": [
|
|
28935
|
+
{
|
|
28936
|
+
"kind": "js",
|
|
28937
|
+
"name": "*",
|
|
28938
|
+
"declaration": {
|
|
28939
|
+
"name": "*",
|
|
28940
|
+
"package": "./agent-picker"
|
|
28941
|
+
}
|
|
28942
|
+
}
|
|
28943
|
+
]
|
|
28944
28944
|
}
|
|
28945
28945
|
]
|
|
28946
28946
|
}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -130,16 +130,6 @@ export declare const AiActivityHalo: React.ForwardRefExoticComponent<
|
|
|
130
130
|
>;
|
|
131
131
|
export type AiActivityHaloRef = AiActivityHaloWC;
|
|
132
132
|
|
|
133
|
-
export declare const AgentPicker: React.ForwardRefExoticComponent<
|
|
134
|
-
React.PropsWithChildren<
|
|
135
|
-
Omit<PublicOf<AgentPickerWC>, 'children' | 'style'> &
|
|
136
|
-
HTMLWCProps & {
|
|
137
|
-
onAgentPinned?: (event: CustomEvent<string | null>) => void;
|
|
138
|
-
}
|
|
139
|
-
> & React.RefAttributes<AgentPickerWC>
|
|
140
|
-
>;
|
|
141
|
-
export type AgentPickerRef = AgentPickerWC;
|
|
142
|
-
|
|
143
133
|
export declare const AiChatBubble: React.ForwardRefExoticComponent<
|
|
144
134
|
React.PropsWithChildren<
|
|
145
135
|
Omit<PublicOf<AiChatBubbleWC>, 'children' | 'style'> &
|
|
@@ -207,4 +197,14 @@ export declare const GenesisWriteReview: React.ForwardRefExoticComponent<
|
|
|
207
197
|
>;
|
|
208
198
|
export type GenesisWriteReviewRef = GenesisWriteReviewWC;
|
|
209
199
|
|
|
200
|
+
export declare const AgentPicker: React.ForwardRefExoticComponent<
|
|
201
|
+
React.PropsWithChildren<
|
|
202
|
+
Omit<PublicOf<AgentPickerWC>, 'children' | 'style'> &
|
|
203
|
+
HTMLWCProps & {
|
|
204
|
+
onAgentPinned?: (event: CustomEvent<string | null>) => void;
|
|
205
|
+
}
|
|
206
|
+
> & React.RefAttributes<AgentPickerWC>
|
|
207
|
+
>;
|
|
208
|
+
export type AgentPickerRef = AgentPickerWC;
|
|
209
|
+
|
|
210
210
|
export {};
|
package/dist/react.cjs
CHANGED
|
@@ -114,23 +114,6 @@ const AiActivityHalo = React.forwardRef(function AiActivityHalo(props, ref) {
|
|
|
114
114
|
return React.createElement(customElements.getName(AiActivityHaloWC) ?? 'ai-activity-halo', { ...rest, ref }, children);
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
const AgentPicker = React.forwardRef(function AgentPicker(props, ref) {
|
|
118
|
-
const { onAgentPinned, children, ...rest } = props;
|
|
119
|
-
const _innerRef = React.useRef(null);
|
|
120
|
-
const _onAgentPinnedRef = React.useRef(onAgentPinned);
|
|
121
|
-
_onAgentPinnedRef.current = onAgentPinned;
|
|
122
|
-
React.useLayoutEffect(() => {
|
|
123
|
-
const el = _innerRef.current;
|
|
124
|
-
if (!el) return;
|
|
125
|
-
const _onAgentPinnedFn = (e) => _onAgentPinnedRef.current?.(e);
|
|
126
|
-
el.addEventListener('agent-pinned', _onAgentPinnedFn);
|
|
127
|
-
return () => {
|
|
128
|
-
el.removeEventListener('agent-pinned', _onAgentPinnedFn);
|
|
129
|
-
};
|
|
130
|
-
}, []);
|
|
131
|
-
return React.createElement(customElements.getName(AgentPickerWC) ?? 'foundation-ai-agent-picker', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
132
|
-
});
|
|
133
|
-
|
|
134
117
|
const AiChatBubble = React.forwardRef(function AiChatBubble(props, ref) {
|
|
135
118
|
const { children, ...rest } = props;
|
|
136
119
|
return React.createElement(customElements.getName(AiChatBubbleWC) ?? 'foundation-ai-chat-bubble', { ...rest, ref }, children);
|
|
@@ -200,6 +183,23 @@ const GenesisWriteReview = React.forwardRef(function GenesisWriteReview(props, r
|
|
|
200
183
|
return React.createElement(customElements.getName(GenesisWriteReviewWC) ?? 'GENESIS_WRITE_REVIEW', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
201
184
|
});
|
|
202
185
|
|
|
186
|
+
const AgentPicker = React.forwardRef(function AgentPicker(props, ref) {
|
|
187
|
+
const { onAgentPinned, children, ...rest } = props;
|
|
188
|
+
const _innerRef = React.useRef(null);
|
|
189
|
+
const _onAgentPinnedRef = React.useRef(onAgentPinned);
|
|
190
|
+
_onAgentPinnedRef.current = onAgentPinned;
|
|
191
|
+
React.useLayoutEffect(() => {
|
|
192
|
+
const el = _innerRef.current;
|
|
193
|
+
if (!el) return;
|
|
194
|
+
const _onAgentPinnedFn = (e) => _onAgentPinnedRef.current?.(e);
|
|
195
|
+
el.addEventListener('agent-pinned', _onAgentPinnedFn);
|
|
196
|
+
return () => {
|
|
197
|
+
el.removeEventListener('agent-pinned', _onAgentPinnedFn);
|
|
198
|
+
};
|
|
199
|
+
}, []);
|
|
200
|
+
return React.createElement(customElements.getName(AgentPickerWC) ?? 'foundation-ai-agent-picker', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
201
|
+
});
|
|
202
|
+
|
|
203
203
|
module.exports = {
|
|
204
204
|
AiFlowingWavesIndicator,
|
|
205
205
|
AiHaloOverlay,
|
|
@@ -209,7 +209,6 @@ module.exports = {
|
|
|
209
209
|
ChatSuggestions,
|
|
210
210
|
AutopilotHandBack,
|
|
211
211
|
AiActivityHalo,
|
|
212
|
-
AgentPicker,
|
|
213
212
|
AiChatBubble,
|
|
214
213
|
AiChatInteractionWrapper,
|
|
215
214
|
AiChatMarkdown,
|
|
@@ -217,4 +216,5 @@ module.exports = {
|
|
|
217
216
|
AiNotificationLevel,
|
|
218
217
|
FoundationAiPopoutManager,
|
|
219
218
|
GenesisWriteReview,
|
|
219
|
+
AgentPicker,
|
|
220
220
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -112,23 +112,6 @@ export const AiActivityHalo = React.forwardRef(function AiActivityHalo(props, re
|
|
|
112
112
|
return React.createElement(customElements.getName(AiActivityHaloWC) ?? 'ai-activity-halo', { ...rest, ref }, children);
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
export const AgentPicker = React.forwardRef(function AgentPicker(props, ref) {
|
|
116
|
-
const { onAgentPinned, children, ...rest } = props;
|
|
117
|
-
const _innerRef = React.useRef(null);
|
|
118
|
-
const _onAgentPinnedRef = React.useRef(onAgentPinned);
|
|
119
|
-
_onAgentPinnedRef.current = onAgentPinned;
|
|
120
|
-
React.useLayoutEffect(() => {
|
|
121
|
-
const el = _innerRef.current;
|
|
122
|
-
if (!el) return;
|
|
123
|
-
const _onAgentPinnedFn = (e) => _onAgentPinnedRef.current?.(e);
|
|
124
|
-
el.addEventListener('agent-pinned', _onAgentPinnedFn);
|
|
125
|
-
return () => {
|
|
126
|
-
el.removeEventListener('agent-pinned', _onAgentPinnedFn);
|
|
127
|
-
};
|
|
128
|
-
}, []);
|
|
129
|
-
return React.createElement(customElements.getName(AgentPickerWC) ?? 'foundation-ai-agent-picker', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
130
|
-
});
|
|
131
|
-
|
|
132
115
|
export const AiChatBubble = React.forwardRef(function AiChatBubble(props, ref) {
|
|
133
116
|
const { children, ...rest } = props;
|
|
134
117
|
return React.createElement(customElements.getName(AiChatBubbleWC) ?? 'foundation-ai-chat-bubble', { ...rest, ref }, children);
|
|
@@ -197,3 +180,20 @@ export const GenesisWriteReview = React.forwardRef(function GenesisWriteReview(p
|
|
|
197
180
|
}, []);
|
|
198
181
|
return React.createElement(customElements.getName(GenesisWriteReviewWC) ?? 'GENESIS_WRITE_REVIEW', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
199
182
|
});
|
|
183
|
+
|
|
184
|
+
export const AgentPicker = React.forwardRef(function AgentPicker(props, ref) {
|
|
185
|
+
const { onAgentPinned, children, ...rest } = props;
|
|
186
|
+
const _innerRef = React.useRef(null);
|
|
187
|
+
const _onAgentPinnedRef = React.useRef(onAgentPinned);
|
|
188
|
+
_onAgentPinnedRef.current = onAgentPinned;
|
|
189
|
+
React.useLayoutEffect(() => {
|
|
190
|
+
const el = _innerRef.current;
|
|
191
|
+
if (!el) return;
|
|
192
|
+
const _onAgentPinnedFn = (e) => _onAgentPinnedRef.current?.(e);
|
|
193
|
+
el.addEventListener('agent-pinned', _onAgentPinnedFn);
|
|
194
|
+
return () => {
|
|
195
|
+
el.removeEventListener('agent-pinned', _onAgentPinnedFn);
|
|
196
|
+
};
|
|
197
|
+
}, []);
|
|
198
|
+
return React.createElement(customElements.getName(AgentPickerWC) ?? 'foundation-ai-agent-picker', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
199
|
+
});
|
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.
|
|
4
|
+
"version": "15.100.0",
|
|
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.
|
|
106
|
-
"@genesislcap/foundation-testing": "15.
|
|
107
|
-
"@genesislcap/genx": "15.
|
|
108
|
-
"@genesislcap/ts-builder": "15.
|
|
109
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
110
|
-
"@genesislcap/vite-builder": "15.
|
|
111
|
-
"@genesislcap/webpack-builder": "15.
|
|
105
|
+
"@genesislcap/foundation-comms": "15.100.0",
|
|
106
|
+
"@genesislcap/foundation-testing": "15.100.0",
|
|
107
|
+
"@genesislcap/genx": "15.100.0",
|
|
108
|
+
"@genesislcap/ts-builder": "15.100.0",
|
|
109
|
+
"@genesislcap/uvu-playwright-builder": "15.100.0",
|
|
110
|
+
"@genesislcap/vite-builder": "15.100.0",
|
|
111
|
+
"@genesislcap/webpack-builder": "15.100.0",
|
|
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.
|
|
118
|
-
"@genesislcap/foundation-logger": "15.
|
|
119
|
-
"@genesislcap/foundation-notifications": "15.
|
|
120
|
-
"@genesislcap/foundation-redux": "15.
|
|
121
|
-
"@genesislcap/foundation-ui": "15.
|
|
122
|
-
"@genesislcap/foundation-utils": "15.
|
|
123
|
-
"@genesislcap/rapid-design-system": "15.
|
|
124
|
-
"@genesislcap/web-core": "15.
|
|
117
|
+
"@genesislcap/foundation-ai": "15.100.0",
|
|
118
|
+
"@genesislcap/foundation-logger": "15.100.0",
|
|
119
|
+
"@genesislcap/foundation-notifications": "15.100.0",
|
|
120
|
+
"@genesislcap/foundation-redux": "15.100.0",
|
|
121
|
+
"@genesislcap/foundation-ui": "15.100.0",
|
|
122
|
+
"@genesislcap/foundation-utils": "15.100.0",
|
|
123
|
+
"@genesislcap/rapid-design-system": "15.100.0",
|
|
124
|
+
"@genesislcap/web-core": "15.100.0",
|
|
125
125
|
"dompurify": "^3.3.1",
|
|
126
126
|
"marked": "^17.0.3"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@genesislcap/foundation-comms": "15.
|
|
129
|
+
"@genesislcap/foundation-comms": "15.100.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@genesislcap/foundation-comms": {
|