@genesislcap/ai-assistant 14.418.2 → 14.419.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +2 -2
- package/dist/ai-assistant.d.ts +6 -0
- package/dist/dts/components/chat-driver/chat-driver.d.ts +2 -0
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/chat-interaction-wrapper/chat-interaction-wrapper.d.ts +6 -0
- package/dist/dts/components/chat-interaction-wrapper/chat-interaction-wrapper.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +4 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/components/chat-driver/chat-driver.js +2 -0
- package/dist/esm/components/chat-interaction-wrapper/chat-interaction-wrapper.js +6 -0
- package/dist/esm/main/main.js +4 -0
- package/package.json +24 -16
- package/src/components/chat-driver/chat-driver.ts +2 -0
- package/src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts +6 -0
- package/src/main/main.ts +4 -0
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
{
|
|
1306
1306
|
"kind": "Class",
|
|
1307
1307
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver:class",
|
|
1308
|
-
"docComment": "/**\n * Plain TS class that drives a multi-turn chat conversation, including the tool-call loop. Owned by `FoundationAiAssistant` — created in `connectedCallback`, torn down in `disconnectedCallback`.\n *\n * Dispatches `'history-updated'` events on itself so the owning element can observe changes.\n *\n * @beta\n */\n",
|
|
1308
|
+
"docComment": "/**\n * Plain TS class that drives a multi-turn chat conversation, including the tool-call loop. Owned by `FoundationAiAssistant` — created in `connectedCallback`, torn down in `disconnectedCallback`.\n *\n * Dispatches `'history-updated'` events on itself so the owning element can observe changes.\n *\n * @fires history-updated - Fired whenever the in-memory chat history changes (append, tool loop, interaction resolution). `detail` is `ReadonlyArray<ChatMessage>` (the full history snapshot).\n *\n * @beta\n */\n",
|
|
1309
1309
|
"excerptTokens": [
|
|
1310
1310
|
{
|
|
1311
1311
|
"kind": "Content",
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
{
|
|
1860
1860
|
"kind": "Class",
|
|
1861
1861
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant:class",
|
|
1862
|
-
"docComment": "/**\n * Foundation AI Assistant component.\n *\n * @remarks\n *\n * Inject an `AIProvider` through the DI container. Pass agent configuration via the `agents` property. The component creates a `ChatDriver` to manage the conversation loop.\n *\n * @beta\n */\n",
|
|
1862
|
+
"docComment": "/**\n * Foundation AI Assistant component.\n *\n * @remarks\n *\n * Inject an `AIProvider` through the DI container. Pass agent configuration via the `agents` property. The component creates a `ChatDriver` to manage the conversation loop.\n *\n * Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.\n *\n * @fires chat-header-mousedown - Fired when the user presses the chat header in `popout-mode=\"expand\"` (for drag-to-popout hosts). Bubbles and composed; `detail`: `{ clientX, clientY }`.\n *\n * @beta\n */\n",
|
|
1863
1863
|
"excerptTokens": [
|
|
1864
1864
|
{
|
|
1865
1865
|
"kind": "Content",
|
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -235,6 +235,8 @@ export declare const ANIMATION_DEFS: {
|
|
|
235
235
|
*
|
|
236
236
|
* Dispatches `'history-updated'` events on itself so the owning element can observe changes.
|
|
237
237
|
*
|
|
238
|
+
* @fires history-updated - Fired whenever the in-memory chat history changes (append, tool loop, interaction resolution). `detail` is `ReadonlyArray<ChatMessage>` (the full history snapshot).
|
|
239
|
+
*
|
|
238
240
|
* @beta
|
|
239
241
|
*/
|
|
240
242
|
export declare class ChatDriver extends EventTarget {
|
|
@@ -287,6 +289,10 @@ export declare type ChatHistoryUpdatedEvent = CustomEvent<ReadonlyArray<ChatMess
|
|
|
287
289
|
* Inject an `AIProvider` through the DI container. Pass agent configuration via the `agents`
|
|
288
290
|
* property. The component creates a `ChatDriver` to manage the conversation loop.
|
|
289
291
|
*
|
|
292
|
+
* Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.
|
|
293
|
+
*
|
|
294
|
+
* @fires chat-header-mousedown - Fired when the user presses the chat header in `popout-mode="expand"` (for drag-to-popout hosts). Bubbles and composed; `detail`: `{ clientX, clientY }`.
|
|
295
|
+
*
|
|
290
296
|
* @beta
|
|
291
297
|
*/
|
|
292
298
|
export declare class FoundationAiAssistant extends GenesisElement {
|
|
@@ -11,6 +11,8 @@ export type ChatHistoryUpdatedEvent = CustomEvent<ReadonlyArray<ChatMessage>>;
|
|
|
11
11
|
*
|
|
12
12
|
* Dispatches `'history-updated'` events on itself so the owning element can observe changes.
|
|
13
13
|
*
|
|
14
|
+
* @fires history-updated - Fired whenever the in-memory chat history changes (append, tool loop, interaction resolution). `detail` is `ReadonlyArray<ChatMessage>` (the full history snapshot).
|
|
15
|
+
*
|
|
14
16
|
* @beta
|
|
15
17
|
*/
|
|
16
18
|
export declare class ChatDriver extends EventTarget {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,WAAW,EAEX,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAOpC;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AAE9E
|
|
1
|
+
{"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,WAAW,EAEX,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAOpC;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,aA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|
+
* Hosts an interactive AI chat sub-component by tag name.
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* @fires interaction-completed - Fired when the interaction finishes
|
|
13
|
+
*/
|
|
8
14
|
export declare class AiChatInteractionWrapper extends GenesisElement {
|
|
9
15
|
/** @internal */
|
|
10
16
|
componentName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-interaction-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAKlF,MAAM,MAAM,wBAAwB,GAAG;IACrC,uBAAuB,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;CACjF,CAAC;AAEF,qBAKa,wBAAyB,SAAQ,cAAc;IAC1D,gBAAgB;IACJ,aAAa,EAAE,MAAM,CAAM;IACvC,gBAAgB;IACJ,IAAI,EAAE,GAAG,CAAC;IACtB,gBAAgB;IACJ,aAAa,EAAE,MAAM,CAAM;IACvC,2GAA2G;IAC/F,QAAQ,EAAE,OAAO,CAAS;IAEtC,gBAAgB;IAChB,SAAS,EAAG,WAAW,CAAC;IAExB,iBAAiB;IAKjB,oBAAoB;IAIpB,eAAe;IAOf,OAAO,CAAC,eAAe;CA8CxB"}
|
|
1
|
+
{"version":3,"file":"chat-interaction-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAKlF,MAAM,MAAM,wBAAwB,GAAG;IACrC,uBAAuB,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;CACjF,CAAC;AAEF;;;;;GAKG;AACH,qBAKa,wBAAyB,SAAQ,cAAc;IAC1D,gBAAgB;IACJ,aAAa,EAAE,MAAM,CAAM;IACvC,gBAAgB;IACJ,IAAI,EAAE,GAAG,CAAC;IACtB,gBAAgB;IACJ,aAAa,EAAE,MAAM,CAAM;IACvC,2GAA2G;IAC/F,QAAQ,EAAE,OAAO,CAAS;IAEtC,gBAAgB;IAChB,SAAS,EAAG,WAAW,CAAC;IAExB,iBAAiB;IAKjB,oBAAoB;IAIpB,eAAe;IAOf,OAAO,CAAC,eAAe;CA8CxB"}
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ import type { AiAssistantAnimation, AiAssistantState, PopoutMode } from './main.
|
|
|
11
11
|
* Inject an `AIProvider` through the DI container. Pass agent configuration via the `agents`
|
|
12
12
|
* property. The component creates a `ChatDriver` to manage the conversation loop.
|
|
13
13
|
*
|
|
14
|
+
* Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.
|
|
15
|
+
*
|
|
16
|
+
* @fires chat-header-mousedown - Fired when the user presses the chat header in `popout-mode="expand"` (for drag-to-popout hosts). Bubbles and composed; `detail`: `{ clientX, clientY }`.
|
|
17
|
+
*
|
|
14
18
|
* @beta
|
|
15
19
|
*/
|
|
16
20
|
export declare class FoundationAiAssistant extends GenesisElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE1F,OAAO,EAGL,cAAc,EAIf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,0BAA0B,E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AM,GAAG,IAAI;IAU5C,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,cAAc;YASR,iBAAiB;IAmC/B,eAAe;YAID,IAAI;IAqBlB,OAAO,CAAC,yBAAyB;IAWjC,qBAAqB,CAAC,CAAC,EAAE,UAAU;IAYnC,0BAA0B,CAAC,CAAC,EAAE,KAAK;CAOpC"}
|
|
@@ -9,6 +9,8 @@ const MAX_MALFORMED_RETRIES = 2;
|
|
|
9
9
|
*
|
|
10
10
|
* Dispatches `'history-updated'` events on itself so the owning element can observe changes.
|
|
11
11
|
*
|
|
12
|
+
* @fires history-updated - Fired whenever the in-memory chat history changes (append, tool loop, interaction resolution). `detail` is `ReadonlyArray<ChatMessage>` (the full history snapshot).
|
|
13
|
+
*
|
|
12
14
|
* @beta
|
|
13
15
|
*/
|
|
14
16
|
export class ChatDriver extends EventTarget {
|
|
@@ -3,6 +3,12 @@ import { customElement, GenesisElement, observable } from '@genesislcap/web-core
|
|
|
3
3
|
import { logger } from '../../utils/logger';
|
|
4
4
|
import { AiChatInteractionWrapperStyles } from './chat-interaction-wrapper.styles';
|
|
5
5
|
import { AiChatInteractionWrapperTemplate } from './chat-interaction-wrapper.template';
|
|
6
|
+
/**
|
|
7
|
+
* Hosts an interactive AI chat sub-component by tag name.
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* @fires interaction-completed - Fired when the interaction finishes
|
|
11
|
+
*/
|
|
6
12
|
let AiChatInteractionWrapper = class AiChatInteractionWrapper extends GenesisElement {
|
|
7
13
|
constructor() {
|
|
8
14
|
super(...arguments);
|
package/dist/esm/main/main.js
CHANGED
|
@@ -23,6 +23,10 @@ avoidTreeShaking(AiChatMarkdown, AiChatInteractionWrapper, AiHaloOverlay, AiChat
|
|
|
23
23
|
* Inject an `AIProvider` through the DI container. Pass agent configuration via the `agents`
|
|
24
24
|
* property. The component creates a `ChatDriver` to manage the conversation loop.
|
|
25
25
|
*
|
|
26
|
+
* Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.
|
|
27
|
+
*
|
|
28
|
+
* @fires chat-header-mousedown - Fired when the user presses the chat header in `popout-mode="expand"` (for drag-to-popout hosts). Bubbles and composed; `detail`: `{ clientX, clientY }`.
|
|
29
|
+
*
|
|
26
30
|
* @beta
|
|
27
31
|
*/
|
|
28
32
|
let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistant extends GenesisElement {
|
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": "14.
|
|
4
|
+
"version": "14.419.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/ai-assistant.d.ts",
|
|
@@ -27,7 +27,12 @@
|
|
|
27
27
|
"types": "./dist/dts/config/index.d.ts",
|
|
28
28
|
"default": "./dist/esm/config/index.js"
|
|
29
29
|
},
|
|
30
|
-
"./package.json": "./package.json"
|
|
30
|
+
"./package.json": "./package.json",
|
|
31
|
+
"./react": {
|
|
32
|
+
"types": "./dist/dts/react.d.ts",
|
|
33
|
+
"import": "./dist/react.mjs",
|
|
34
|
+
"require": "./dist/react.cjs"
|
|
35
|
+
}
|
|
31
36
|
},
|
|
32
37
|
"typesVersions": {
|
|
33
38
|
"*": {
|
|
@@ -59,23 +64,23 @@
|
|
|
59
64
|
}
|
|
60
65
|
},
|
|
61
66
|
"devDependencies": {
|
|
62
|
-
"@genesislcap/foundation-testing": "14.
|
|
63
|
-
"@genesislcap/genx": "14.
|
|
64
|
-
"@genesislcap/rollup-builder": "14.
|
|
65
|
-
"@genesislcap/ts-builder": "14.
|
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
67
|
-
"@genesislcap/vite-builder": "14.
|
|
68
|
-
"@genesislcap/webpack-builder": "14.
|
|
67
|
+
"@genesislcap/foundation-testing": "14.419.1",
|
|
68
|
+
"@genesislcap/genx": "14.419.1",
|
|
69
|
+
"@genesislcap/rollup-builder": "14.419.1",
|
|
70
|
+
"@genesislcap/ts-builder": "14.419.1",
|
|
71
|
+
"@genesislcap/uvu-playwright-builder": "14.419.1",
|
|
72
|
+
"@genesislcap/vite-builder": "14.419.1",
|
|
73
|
+
"@genesislcap/webpack-builder": "14.419.1",
|
|
69
74
|
"@types/dompurify": "^3.0.5",
|
|
70
75
|
"@types/marked": "^5.0.2"
|
|
71
76
|
},
|
|
72
77
|
"dependencies": {
|
|
73
|
-
"@genesislcap/foundation-ai": "14.
|
|
74
|
-
"@genesislcap/foundation-logger": "14.
|
|
75
|
-
"@genesislcap/foundation-ui": "14.
|
|
76
|
-
"@genesislcap/foundation-utils": "14.
|
|
77
|
-
"@genesislcap/rapid-design-system": "14.
|
|
78
|
-
"@genesislcap/web-core": "14.
|
|
78
|
+
"@genesislcap/foundation-ai": "14.419.1",
|
|
79
|
+
"@genesislcap/foundation-logger": "14.419.1",
|
|
80
|
+
"@genesislcap/foundation-ui": "14.419.1",
|
|
81
|
+
"@genesislcap/foundation-utils": "14.419.1",
|
|
82
|
+
"@genesislcap/rapid-design-system": "14.419.1",
|
|
83
|
+
"@genesislcap/web-core": "14.419.1",
|
|
79
84
|
"dompurify": "^3.3.1",
|
|
80
85
|
"marked": "^17.0.3"
|
|
81
86
|
},
|
|
@@ -87,5 +92,8 @@
|
|
|
87
92
|
"publishConfig": {
|
|
88
93
|
"access": "public"
|
|
89
94
|
},
|
|
90
|
-
"
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"@microsoft/fast-react-wrapper": ">=0.3.0"
|
|
97
|
+
},
|
|
98
|
+
"gitHead": "e4880f9a62bd7ebb0a0e4798c8dfdd98de5c6e14"
|
|
91
99
|
}
|
|
@@ -25,6 +25,8 @@ export type ChatHistoryUpdatedEvent = CustomEvent<ReadonlyArray<ChatMessage>>;
|
|
|
25
25
|
*
|
|
26
26
|
* Dispatches `'history-updated'` events on itself so the owning element can observe changes.
|
|
27
27
|
*
|
|
28
|
+
* @fires history-updated - Fired whenever the in-memory chat history changes (append, tool loop, interaction resolution). `detail` is `ReadonlyArray<ChatMessage>` (the full history snapshot).
|
|
29
|
+
*
|
|
28
30
|
* @beta
|
|
29
31
|
*/
|
|
30
32
|
export class ChatDriver extends EventTarget {
|
|
@@ -8,6 +8,12 @@ export type ChatInteractionEventsMap = {
|
|
|
8
8
|
'interaction-completed': InteractionResult<unknown> & { interactionId: string };
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Hosts an interactive AI chat sub-component by tag name.
|
|
13
|
+
* @public
|
|
14
|
+
*
|
|
15
|
+
* @fires interaction-completed - Fired when the interaction finishes
|
|
16
|
+
*/
|
|
11
17
|
@customElement({
|
|
12
18
|
name: 'ai-chat-interaction-wrapper',
|
|
13
19
|
template: AiChatInteractionWrapperTemplate,
|
package/src/main/main.ts
CHANGED
|
@@ -40,6 +40,10 @@ avoidTreeShaking(
|
|
|
40
40
|
* Inject an `AIProvider` through the DI container. Pass agent configuration via the `agents`
|
|
41
41
|
* property. The component creates a `ChatDriver` to manage the conversation loop.
|
|
42
42
|
*
|
|
43
|
+
* Popout/collapse coordination uses `agenticActivityBus` topics `chat-popout` and `chat-popin` — not DOM `CustomEvent`s on this element.
|
|
44
|
+
*
|
|
45
|
+
* @fires chat-header-mousedown - Fired when the user presses the chat header in `popout-mode="expand"` (for drag-to-popout hosts). Bubbles and composed; `detail`: `{ clientX, clientY }`.
|
|
46
|
+
*
|
|
43
47
|
* @beta
|
|
44
48
|
*/
|
|
45
49
|
@customElement({
|