@genesislcap/ai-assistant 15.86.0 → 15.86.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 +63 -2
- package/dist/ai-assistant.d.ts +10 -0
- package/dist/custom-elements.json +795 -724
- package/dist/dts/components/chat-bubble/chat-bubble.d.ts +9 -2
- package/dist/dts/components/chat-bubble/chat-bubble.d.ts.map +1 -1
- package/dist/dts/components/chat-markdown/chat-markdown.d.ts.map +1 -1
- package/dist/dts/genesis/write-review/write-review.d.ts +23 -0
- package/dist/dts/genesis/write-review/write-review.d.ts.map +1 -1
- package/dist/dts/genesis/write-review/write-review.styles.d.ts.map +1 -1
- package/dist/dts/genesis/write-review/write-review.template.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +8 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/main/main.types.d.ts +2 -0
- package/dist/dts/main/main.types.d.ts.map +1 -1
- package/dist/dts/react.d.ts +1 -0
- package/dist/esm/components/chat-bubble/chat-bubble.js +18 -21
- package/dist/esm/components/chat-markdown/chat-markdown.js +18 -2
- package/dist/esm/genesis/write-review/write-review.js +48 -0
- package/dist/esm/genesis/write-review/write-review.styles.js +67 -1
- package/dist/esm/genesis/write-review/write-review.template.js +44 -27
- package/dist/esm/main/main.js +13 -0
- package/dist/esm/main/main.styles.js +42 -0
- package/dist/esm/main/main.template.js +11 -1
- package/dist/esm/main/main.types.js +2 -0
- package/dist/react.cjs +6 -1
- package/dist/react.mjs +6 -1
- package/docs/styling.md +10 -4
- package/package.json +17 -17
|
@@ -3547,7 +3547,7 @@
|
|
|
3547
3547
|
},
|
|
3548
3548
|
{
|
|
3549
3549
|
"kind": "Content",
|
|
3550
|
-
"text": "{\n readonly SessionCleared: \"session-cleared\";\n readonly ChatHeaderMouseDown: \"chat-header-mousedown\";\n readonly HandOffStarted: \"handoff-started\";\n readonly HandOffReturned: \"handoff-returned\";\n readonly HandOffUnwound: \"handoff-unwound\";\n}"
|
|
3550
|
+
"text": "{\n readonly SessionCleared: \"session-cleared\";\n readonly ChatHeaderMouseDown: \"chat-header-mousedown\";\n readonly HandOffStarted: \"handoff-started\";\n readonly HandOffReturned: \"handoff-returned\";\n readonly HandOffUnwound: \"handoff-unwound\";\n readonly CloseRequested: \"close-requested\";\n}"
|
|
3551
3551
|
}
|
|
3552
3552
|
],
|
|
3553
3553
|
"fileUrlPath": "src/main/main.types.ts",
|
|
@@ -19628,7 +19628,7 @@
|
|
|
19628
19628
|
{
|
|
19629
19629
|
"kind": "Class",
|
|
19630
19630
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant:class",
|
|
19631
|
-
"docComment": "/**\n * Foundation AI Assistant component.\n *\n * @remarks\n *\n * Register one or more AI providers via `registerAIProviders` from `@genesislcap/foundation-ai`; this element resolves the `AIProviderRegistry` through the DI container. Pass agent configuration via the `agents` property — each agent can override which registered provider it uses via `provider:`. The component creates a `ChatDriver` (single agent) or `OrchestratingDriver` (multiple agents) 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 * **Cost build history:** opt-in via `chatConfig.costHistory.enabled`. When enabled, each session's usage is kept as exactly ONE row per session key in `localStorage` (scoped by `costHistory.scope`, the element `id`, or `'default'`), upserted as spend accrues. So a row is a project's lifetime usage rather than a visit to it, and the Usage tab's total is the sum of the rows alone — the live session is never added on top, because the active project's own row already reflects it. Hosts may call {@link FoundationAiAssistant.finalizeCostSession} to flush early; it is idempotent.\n *\n * @fires\n *\n * chat-header-mousedown - Fired when the user presses the chat header in `popout-mode=\"expand\"` (for drag-to-popout hosts). Bubbles and composed. detail: `ChatHeaderMouseDownDetail`\n *\n * @fires\n *\n * session-cleared - Fired after the session is wiped (the lifecycle menu's Clear). The payload is captured before teardown so the host can clean up any external state the active agent was working on. Bubbles and composed. detail: `SessionClearedDetail`\n *\n * @fires\n *\n * handoff-started - Fired when an agent's `handOff` takes effect and its target becomes active. Bubbles and composed. detail: `HandOffFrame`\n *\n * @fires\n *\n * handoff-returned - Fired when a hand-off ends and its caller is active again; `detail.outcome` says how it ended. Bubbles and composed. detail: `HandOffFrame`\n *\n * @fires\n *\n * handoff-unwound - Fired when a hand-off ends with no hand-back: the chat was cleared, the agents changed, or a restore found it could not resume. Bubbles and composed. detail: `HandOffFrame`\n *\n * @beta\n */\n",
|
|
19631
|
+
"docComment": "/**\n * Foundation AI Assistant component.\n *\n * @remarks\n *\n * Register one or more AI providers via `registerAIProviders` from `@genesislcap/foundation-ai`; this element resolves the `AIProviderRegistry` through the DI container. Pass agent configuration via the `agents` property — each agent can override which registered provider it uses via `provider:`. The component creates a `ChatDriver` (single agent) or `OrchestratingDriver` (multiple agents) 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 * **Cost build history:** opt-in via `chatConfig.costHistory.enabled`. When enabled, each session's usage is kept as exactly ONE row per session key in `localStorage` (scoped by `costHistory.scope`, the element `id`, or `'default'`), upserted as spend accrues. So a row is a project's lifetime usage rather than a visit to it, and the Usage tab's total is the sum of the rows alone — the live session is never added on top, because the active project's own row already reflects it. Hosts may call {@link FoundationAiAssistant.finalizeCostSession} to flush early; it is idempotent.\n *\n * @fires\n *\n * chat-header-mousedown - Fired when the user presses the chat header in `popout-mode=\"expand\"` (for drag-to-popout hosts). Bubbles and composed. detail: `ChatHeaderMouseDownDetail`\n *\n * @fires\n *\n * close-requested - Fired when the user presses the header's Close button, which shows while `closable` is set (the chat bubble sets it while the assistant is in its dialog). Bubbles and composed.\n *\n * @fires\n *\n * session-cleared - Fired after the session is wiped (the lifecycle menu's Clear). The payload is captured before teardown so the host can clean up any external state the active agent was working on. Bubbles and composed. detail: `SessionClearedDetail`\n *\n * @fires\n *\n * handoff-started - Fired when an agent's `handOff` takes effect and its target becomes active. Bubbles and composed. detail: `HandOffFrame`\n *\n * @fires\n *\n * handoff-returned - Fired when a hand-off ends and its caller is active again; `detail.outcome` says how it ended. Bubbles and composed. detail: `HandOffFrame`\n *\n * @fires\n *\n * handoff-unwound - Fired when a hand-off ends with no hand-back: the chat was cleared, the agents changed, or a restore found it could not resume. Bubbles and composed. detail: `HandOffFrame`\n *\n * @beta\n */\n",
|
|
19632
19632
|
"excerptTokens": [
|
|
19633
19633
|
{
|
|
19634
19634
|
"kind": "Content",
|
|
@@ -20806,6 +20806,36 @@
|
|
|
20806
20806
|
"isAbstract": false,
|
|
20807
20807
|
"name": "clearSession"
|
|
20808
20808
|
},
|
|
20809
|
+
{
|
|
20810
|
+
"kind": "Property",
|
|
20811
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#closable:member",
|
|
20812
|
+
"docComment": "/**\n * Shows a Close button in the header, which fires `close-requested` and leaves the closing to whatever holds the assistant. The chat bubble sets it while the assistant is in its dialog.\n */\n",
|
|
20813
|
+
"excerptTokens": [
|
|
20814
|
+
{
|
|
20815
|
+
"kind": "Content",
|
|
20816
|
+
"text": "closable: "
|
|
20817
|
+
},
|
|
20818
|
+
{
|
|
20819
|
+
"kind": "Content",
|
|
20820
|
+
"text": "boolean"
|
|
20821
|
+
},
|
|
20822
|
+
{
|
|
20823
|
+
"kind": "Content",
|
|
20824
|
+
"text": ";"
|
|
20825
|
+
}
|
|
20826
|
+
],
|
|
20827
|
+
"isReadonly": false,
|
|
20828
|
+
"isOptional": false,
|
|
20829
|
+
"releaseTag": "Beta",
|
|
20830
|
+
"name": "closable",
|
|
20831
|
+
"propertyTypeTokenRange": {
|
|
20832
|
+
"startIndex": 1,
|
|
20833
|
+
"endIndex": 2
|
|
20834
|
+
},
|
|
20835
|
+
"isStatic": false,
|
|
20836
|
+
"isProtected": false,
|
|
20837
|
+
"isAbstract": false
|
|
20838
|
+
},
|
|
20809
20839
|
{
|
|
20810
20840
|
"kind": "Method",
|
|
20811
20841
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#closeSettingsModal:member(1)",
|
|
@@ -22568,6 +22598,37 @@
|
|
|
22568
22598
|
"isAbstract": false,
|
|
22569
22599
|
"name": "handleAutopilotResume"
|
|
22570
22600
|
},
|
|
22601
|
+
{
|
|
22602
|
+
"kind": "Method",
|
|
22603
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#handleClose:member(1)",
|
|
22604
|
+
"docComment": "/**\n * Called when the user clicks the header's Close button.\n */\n",
|
|
22605
|
+
"excerptTokens": [
|
|
22606
|
+
{
|
|
22607
|
+
"kind": "Content",
|
|
22608
|
+
"text": "handleClose(): "
|
|
22609
|
+
},
|
|
22610
|
+
{
|
|
22611
|
+
"kind": "Content",
|
|
22612
|
+
"text": "void"
|
|
22613
|
+
},
|
|
22614
|
+
{
|
|
22615
|
+
"kind": "Content",
|
|
22616
|
+
"text": ";"
|
|
22617
|
+
}
|
|
22618
|
+
],
|
|
22619
|
+
"isStatic": false,
|
|
22620
|
+
"returnTypeTokenRange": {
|
|
22621
|
+
"startIndex": 1,
|
|
22622
|
+
"endIndex": 2
|
|
22623
|
+
},
|
|
22624
|
+
"releaseTag": "Beta",
|
|
22625
|
+
"isProtected": false,
|
|
22626
|
+
"overloadIndex": 1,
|
|
22627
|
+
"parameters": [],
|
|
22628
|
+
"isOptional": false,
|
|
22629
|
+
"isAbstract": false,
|
|
22630
|
+
"name": "handleClose"
|
|
22631
|
+
},
|
|
22571
22632
|
{
|
|
22572
22633
|
"kind": "Method",
|
|
22573
22634
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#handleFileSelect:member(1)",
|
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -799,6 +799,8 @@ export declare const AiAssistantEvent: {
|
|
|
799
799
|
readonly HandOffReturned: "handoff-returned";
|
|
800
800
|
/** A hand-off ended with no hand-back. `detail`: `HandOffFrame`, with `outcome`. */
|
|
801
801
|
readonly HandOffUnwound: "handoff-unwound";
|
|
802
|
+
/** The header's Close button pressed, shown while `closable` is set. No `detail`. */
|
|
803
|
+
readonly CloseRequested: "close-requested";
|
|
802
804
|
};
|
|
803
805
|
|
|
804
806
|
/**
|
|
@@ -4946,6 +4948,7 @@ export declare function formatBlockedReason(budget?: Partial<Extract<ChatDriverR
|
|
|
4946
4948
|
* {@link FoundationAiAssistant.finalizeCostSession} to flush early; it is idempotent.
|
|
4947
4949
|
*
|
|
4948
4950
|
* @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: `ChatHeaderMouseDownDetail`
|
|
4951
|
+
* @fires close-requested - Fired when the user presses the header's Close button, which shows while `closable` is set (the chat bubble sets it while the assistant is in its dialog). Bubbles and composed.
|
|
4949
4952
|
* @fires session-cleared - Fired after the session is wiped (the lifecycle menu's Clear). The payload is captured before teardown so the host can clean up any external state the active agent was working on. Bubbles and composed. detail: `SessionClearedDetail`
|
|
4950
4953
|
* @fires handoff-started - Fired when an agent's `handOff` takes effect and its target becomes active. Bubbles and composed. detail: `HandOffFrame`
|
|
4951
4954
|
* @fires handoff-returned - Fired when a hand-off ends and its caller is active again; `detail.outcome` says how it ended. Bubbles and composed. detail: `HandOffFrame`
|
|
@@ -5030,6 +5033,11 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
5030
5033
|
* Absent — no button (default standalone behaviour, no breaking change).
|
|
5031
5034
|
*/
|
|
5032
5035
|
popoutMode?: PopoutMode;
|
|
5036
|
+
/**
|
|
5037
|
+
* Shows a Close button in the header, which fires `close-requested` and leaves the closing to
|
|
5038
|
+
* whatever holds the assistant. The chat bubble sets it while the assistant is in its dialog.
|
|
5039
|
+
*/
|
|
5040
|
+
closable: boolean;
|
|
5033
5041
|
/**
|
|
5034
5042
|
* Agent configuration. Each user message is routed to the appropriate specialist
|
|
5035
5043
|
* based on intent. With a single entry, orchestration is skipped.
|
|
@@ -6993,6 +7001,8 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
6993
7001
|
* run inside one of the parent's.
|
|
6994
7002
|
*/
|
|
6995
7003
|
private reportTurnEnded;
|
|
7004
|
+
/** Called when the user clicks the header's Close button. */
|
|
7005
|
+
handleClose(): void;
|
|
6996
7006
|
onChatHeaderMouseDown(e: MouseEvent): void;
|
|
6997
7007
|
handleInteractionCompleted(e: Event): void;
|
|
6998
7008
|
/**
|