@genesislcap/ai-assistant 14.476.0-GENC-1410.2 → 14.476.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/ai-assistant.api.json +0 -61
- package/dist/ai-assistant.d.ts +0 -4
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.test.d.ts.map +1 -1
- package/dist/dts/components/settings-modal/settings-modal.template.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +0 -4
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/state/ai-assistant-slice.d.ts +0 -2
- package/dist/dts/state/ai-assistant-slice.d.ts.map +1 -1
- package/dist/dts/state/session-store.d.ts +0 -1
- package/dist/dts/state/session-store.d.ts.map +1 -1
- package/dist/dts/utils/message-partition.d.ts +0 -1
- package/dist/dts/utils/message-partition.d.ts.map +1 -1
- package/dist/esm/components/chat-driver/chat-driver.js +6 -26
- package/dist/esm/components/chat-driver/chat-driver.test.js +0 -59
- package/dist/esm/components/settings-modal/settings-modal.template.js +0 -3
- package/dist/esm/main/main.js +0 -15
- package/dist/esm/main/main.template.js +0 -6
- package/dist/esm/state/ai-assistant-slice.js +0 -4
- package/dist/esm/utils/message-partition.js +1 -10
- package/dist/esm/utils/message-partition.test.js +0 -2
- package/package.json +17 -17
- package/src/components/chat-driver/chat-driver.test.ts +0 -72
- package/src/components/chat-driver/chat-driver.ts +4 -35
- package/src/components/settings-modal/settings-modal.template.ts +0 -13
- package/src/main/main.template.ts +0 -6
- package/src/main/main.ts +0 -15
- package/src/state/ai-assistant-slice.ts +0 -5
- package/src/utils/message-partition.test.ts +0 -2
- package/src/utils/message-partition.ts +1 -11
|
@@ -9443,36 +9443,6 @@
|
|
|
9443
9443
|
"isAbstract": false,
|
|
9444
9444
|
"name": "showLoadingIndicatorChanged"
|
|
9445
9445
|
},
|
|
9446
|
-
{
|
|
9447
|
-
"kind": "Property",
|
|
9448
|
-
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#showNarration:member",
|
|
9449
|
-
"docComment": "/**\n * Current user-facing toggle state for narration (interstitial prose) visibility.\n */\n",
|
|
9450
|
-
"excerptTokens": [
|
|
9451
|
-
{
|
|
9452
|
-
"kind": "Content",
|
|
9453
|
-
"text": "get showNarration(): "
|
|
9454
|
-
},
|
|
9455
|
-
{
|
|
9456
|
-
"kind": "Content",
|
|
9457
|
-
"text": "boolean"
|
|
9458
|
-
},
|
|
9459
|
-
{
|
|
9460
|
-
"kind": "Content",
|
|
9461
|
-
"text": ";\n\nset showNarration(value: boolean);"
|
|
9462
|
-
}
|
|
9463
|
-
],
|
|
9464
|
-
"isReadonly": false,
|
|
9465
|
-
"isOptional": false,
|
|
9466
|
-
"releaseTag": "Beta",
|
|
9467
|
-
"name": "showNarration",
|
|
9468
|
-
"propertyTypeTokenRange": {
|
|
9469
|
-
"startIndex": 1,
|
|
9470
|
-
"endIndex": 2
|
|
9471
|
-
},
|
|
9472
|
-
"isStatic": false,
|
|
9473
|
-
"isProtected": false,
|
|
9474
|
-
"isAbstract": false
|
|
9475
|
-
},
|
|
9476
9446
|
{
|
|
9477
9447
|
"kind": "Property",
|
|
9478
9448
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#showThinkingSteps:member",
|
|
@@ -9746,37 +9716,6 @@
|
|
|
9746
9716
|
"isAbstract": false,
|
|
9747
9717
|
"name": "toggleShowAgentSwitchIndicator"
|
|
9748
9718
|
},
|
|
9749
|
-
{
|
|
9750
|
-
"kind": "Method",
|
|
9751
|
-
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#toggleShowNarration:member(1)",
|
|
9752
|
-
"docComment": "",
|
|
9753
|
-
"excerptTokens": [
|
|
9754
|
-
{
|
|
9755
|
-
"kind": "Content",
|
|
9756
|
-
"text": "toggleShowNarration(): "
|
|
9757
|
-
},
|
|
9758
|
-
{
|
|
9759
|
-
"kind": "Content",
|
|
9760
|
-
"text": "void"
|
|
9761
|
-
},
|
|
9762
|
-
{
|
|
9763
|
-
"kind": "Content",
|
|
9764
|
-
"text": ";"
|
|
9765
|
-
}
|
|
9766
|
-
],
|
|
9767
|
-
"isStatic": false,
|
|
9768
|
-
"returnTypeTokenRange": {
|
|
9769
|
-
"startIndex": 1,
|
|
9770
|
-
"endIndex": 2
|
|
9771
|
-
},
|
|
9772
|
-
"releaseTag": "Beta",
|
|
9773
|
-
"isProtected": false,
|
|
9774
|
-
"overloadIndex": 1,
|
|
9775
|
-
"parameters": [],
|
|
9776
|
-
"isOptional": false,
|
|
9777
|
-
"isAbstract": false,
|
|
9778
|
-
"name": "toggleShowNarration"
|
|
9779
|
-
},
|
|
9780
9719
|
{
|
|
9781
9720
|
"kind": "Method",
|
|
9782
9721
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#toggleShowThinkingSteps:member(1)",
|
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -1583,9 +1583,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
1583
1583
|
/** Current user-facing toggle state for thinking step visibility. */
|
|
1584
1584
|
get showThinkingSteps(): boolean;
|
|
1585
1585
|
set showThinkingSteps(value: boolean);
|
|
1586
|
-
/** Current user-facing toggle state for narration (interstitial prose) visibility. */
|
|
1587
|
-
get showNarration(): boolean;
|
|
1588
|
-
set showNarration(value: boolean);
|
|
1589
1586
|
/** Current user-facing toggle state for agent switch indicator visibility. */
|
|
1590
1587
|
get showAgentSwitchIndicator(): boolean;
|
|
1591
1588
|
set showAgentSwitchIndicator(value: boolean);
|
|
@@ -1955,7 +1952,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
1955
1952
|
get effectivePlaceholder(): string;
|
|
1956
1953
|
toggleShowToolCalls(): void;
|
|
1957
1954
|
toggleShowThinkingSteps(): void;
|
|
1958
|
-
toggleShowNarration(): void;
|
|
1959
1955
|
toggleShowAgentSwitchIndicator(): void;
|
|
1960
1956
|
setEnabledAnimations(animations: AiAssistantAnimation[]): void;
|
|
1961
1957
|
getDebugLog(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAGlB,cAAc,EACd,gBAAgB,EAChB,WAAW,EAGX,cAAc,EAKd,yBAAyB,EAEzB,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAOpC,OAAO,KAAK,EACV,WAAW,EAIX,iBAAiB,EAIjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAe7B,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AA8CxE,wFAAwF;AACxF,eAAO,MAAM,yBAAyB,yBAAyB,CAAC;AAMhE;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AAE9E;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;OAOG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qGAAqG;IACrG,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAQD;;;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ACvF,OAAO,CAAC,QAAQ;IAsChB,OAAO,CAAC,aAAa;IAQrB,8EAA8E;IAC9E,OAAO,CAAC,SAAS;IAWjB,mFAAmF;IACnF,OAAO,CAAC,2BAA2B;YAkCrB,WAAW;IAivBzB,OAAO,CAAC,eAAe;CAoBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-driver.test.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat-driver.test.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.test.ts"],"names":[],"mappings":"AAoBA,OAAO,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-modal.template.d.ts","sourceRoot":"","sources":["../../../../src/components/settings-modal/settings-modal.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAkH7D,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"settings-modal.template.d.ts","sourceRoot":"","sources":["../../../../src/components/settings-modal/settings-modal.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAkH7D,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,MAAM,CAAC;AA6TnD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,oBAAoB,MAAM,KACzB,YAAY,CAAC,qBAAqB,CA8IpC,CAAC"}
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -141,9 +141,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
141
141
|
/** Current user-facing toggle state for thinking step visibility. */
|
|
142
142
|
get showThinkingSteps(): boolean;
|
|
143
143
|
set showThinkingSteps(value: boolean);
|
|
144
|
-
/** Current user-facing toggle state for narration (interstitial prose) visibility. */
|
|
145
|
-
get showNarration(): boolean;
|
|
146
|
-
set showNarration(value: boolean);
|
|
147
144
|
/** Current user-facing toggle state for agent switch indicator visibility. */
|
|
148
145
|
get showAgentSwitchIndicator(): boolean;
|
|
149
146
|
set showAgentSwitchIndicator(value: boolean);
|
|
@@ -513,7 +510,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
513
510
|
get effectivePlaceholder(): string;
|
|
514
511
|
toggleShowToolCalls(): void;
|
|
515
512
|
toggleShowThinkingSteps(): void;
|
|
516
|
-
toggleShowNarration(): void;
|
|
517
513
|
toggleShowAgentSwitchIndicator(): void;
|
|
518
514
|
setEnabledAnimations(animations: AiAssistantAnimation[]): void;
|
|
519
515
|
getDebugLog(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACd,UAAU,EACV,4BAA4B,EAC5B,WAAW,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAkC,MAAM,4BAA4B,CAAC;AAGhG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAIL,cAAc,EAIf,MAAM,uBAAuB,CAAC;AAe/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,KAAK,0BAA0B,EAChC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAkBlC,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.template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAuC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAuC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAyMpD,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,GACxC,oBAAoB,MAAM,KACzB,YAAY,CAAC,qBAAqB,CAsZpC,CAAC"}
|
|
@@ -27,7 +27,6 @@ export interface AiAssistantSessionState {
|
|
|
27
27
|
state: AiAssistantState;
|
|
28
28
|
showToolCalls: boolean;
|
|
29
29
|
showThinkingSteps: boolean;
|
|
30
|
-
showNarration: boolean;
|
|
31
30
|
showAgentSwitchIndicator: boolean;
|
|
32
31
|
enabledAnimations: AiAssistantAnimation[];
|
|
33
32
|
suggestionsState: SuggestionsState;
|
|
@@ -94,7 +93,6 @@ export declare const aiAssistantSlice: import("@reduxjs/toolkit").Slice<AiAssist
|
|
|
94
93
|
setState(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<AiAssistantState>): void;
|
|
95
94
|
setShowToolCalls(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<boolean>): void;
|
|
96
95
|
setShowThinkingSteps(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<boolean>): void;
|
|
97
|
-
setShowNarration(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<boolean>): void;
|
|
98
96
|
setShowAgentSwitchIndicator(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<boolean>): void;
|
|
99
97
|
setEnabledAnimations(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<AiAssistantAnimation[]>): void;
|
|
100
98
|
setSuggestionsState(state: import("immer").WritableDraft<AiAssistantSessionState>, action: PayloadAction<SuggestionsState>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-assistant-slice.d.ts","sourceRoot":"","sources":["../../../src/state/ai-assistant-slice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,WAAW,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEnG;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,
|
|
1
|
+
{"version":3,"file":"ai-assistant-slice.d.ts","sourceRoot":"","sources":["../../../src/state/ai-assistant-slice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,WAAW,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB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ACjC;AAED,eAAO,MAAM,mBAAmB,EAAE,uBAuBjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;uFAIE,aAAa,CAAC,WAAW,EAAE,CAAC;oFAG/B,aAAa,CAAC,gBAAgB,CAAC;4FAGvB,aAAa,CAAC,OAAO,CAAC;gGAGlB,aAAa,CAAC,OAAO,CAAC;uGAGf,aAAa,CAAC,OAAO,CAAC;gGAG7B,aAAa,CAAC,oBAAoB,EAAE,CAAC;+FAGtC,aAAa,CAAC,gBAAgB,CAAC;4FAGlC,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC;2FAGlC,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC;6FAG/B,aAAa,CAAC,MAAM,CAAC;oGAGd,aAAa,CAAC,MAAM,CAAC;0FAG/B,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC;iGAG1B,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC;+FAGnC,aAAa,CAAC,6BAA6B,EAAE,CAAC;0FAGnD,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC;8FAGxD,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;iGAGzB,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;8FAG/B,aAAa,CAAC,OAAO,CAAC;yFAG3B,aAAa,CAAC,MAAM,CAAC;gGAGd,aAAa,CAAC,WAAW,EAAE,CAAC;+FAG7B,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;4FAG/B,aAAa,CAAC,aAAa,CAAC;+FAGzB,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;oCAKlE,CAAC"}
|
|
@@ -5,7 +5,6 @@ declare function makeStore(devTools: boolean | undefined): import("@genesislcap/
|
|
|
5
5
|
setState(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<import("..").AiAssistantState>): void;
|
|
6
6
|
setShowToolCalls(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<boolean>): void;
|
|
7
7
|
setShowThinkingSteps(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<boolean>): void;
|
|
8
|
-
setShowNarration(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<boolean>): void;
|
|
9
8
|
setShowAgentSwitchIndicator(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<boolean>): void;
|
|
10
9
|
setEnabledAnimations(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<import("..").AiAssistantAnimation[]>): void;
|
|
11
10
|
setSuggestionsState(state: import("immer").WritableDraft<AiAssistantSessionState>, action: import("@reduxjs/toolkit").PayloadAction<import("..").SuggestionsState>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../src/state/session-store.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAIvD,iBAAS,SAAS,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../src/state/session-store.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAIvD,iBAAS,SAAS,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;wCAM/C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAMnF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,YAAY,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-partition.d.ts","sourceRoot":"","sources":["../../../src/utils/message-partition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,
|
|
1
|
+
{"version":3,"file":"message-partition.d.ts","sourceRoot":"","sources":["../../../src/utils/message-partition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,wBAAwB,EAAE,OAAO,CAAC;CACnC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAG7E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,WAAW,EAAE,EACvB,OAAO,EAAE,kBAAkB,GAC1B,WAAW,EAAE,CAqBf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __awaiter
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
2
|
import { isObservableAIProviderRegistry, MalformedFunctionCallError, ResponseTruncatedError, } from '@genesislcap/foundation-ai';
|
|
3
3
|
import { agenticActivityBus } from '../../channel/ai-activity-bus';
|
|
4
4
|
import { resolveChatProvider } from '../../config/validate-providers';
|
|
@@ -1764,32 +1764,12 @@ export class ChatDriver extends EventTarget {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
return { reason: 'done' };
|
|
1766
1766
|
}
|
|
1767
|
+
else if (isThinkingStep) {
|
|
1768
|
+
this.appendToHistory(Object.assign(Object.assign({}, response), { toolCalls: undefined, thinking: true }));
|
|
1769
|
+
this.appendToHistory(Object.assign(Object.assign({}, response), { content: '' }));
|
|
1770
|
+
}
|
|
1767
1771
|
else {
|
|
1768
|
-
|
|
1769
|
-
// own visibility toggle and debug-log category:
|
|
1770
|
-
// - reasoning (chain-of-thought summary) → category 'reasoning', hidden unless showThinkingSteps
|
|
1771
|
-
// - narration (interstitial prose emitted alongside a tool call) → category 'narration',
|
|
1772
|
-
// hidden unless showNarration
|
|
1773
|
-
// - the answer / tool-call message → always shown; carries this turn's usage.
|
|
1774
|
-
// Cost invariant (GENC-1410): exactly ONE message carries cost/tokens and is appended LAST, so
|
|
1775
|
-
// `sumCosts`/`sumTokens` don't double-count and `contextTokens` reads it. Reasoning/narration are
|
|
1776
|
-
// display-only (usage undefined) and are skipped when building the provider request. `model` /
|
|
1777
|
-
// `provider` / `providerName` stay on every split message so each is still attributed.
|
|
1778
|
-
const { reasoning } = response, rest = __rest(response, ["reasoning"]);
|
|
1779
|
-
const displayOnly = { cost: undefined, inputTokens: undefined, outputTokens: undefined };
|
|
1780
|
-
if (reasoning) {
|
|
1781
|
-
this.appendToHistory(Object.assign(Object.assign(Object.assign({}, rest), displayOnly), { content: reasoning, toolCalls: undefined, category: 'reasoning' }));
|
|
1782
|
-
}
|
|
1783
|
-
if (isThinkingStep) {
|
|
1784
|
-
// content + tool call → the content is interstitial narration, not the final answer.
|
|
1785
|
-
this.appendToHistory(Object.assign(Object.assign(Object.assign({}, rest), displayOnly), { toolCalls: undefined, category: 'narration' }));
|
|
1786
|
-
this.appendToHistory(Object.assign(Object.assign({}, rest), { content: '' }));
|
|
1787
|
-
}
|
|
1788
|
-
else {
|
|
1789
|
-
// No tool call → `content` is the final answer (always shown), or this is a bare tool-call
|
|
1790
|
-
// turn with no narration. Either way it carries this turn's usage; append it last.
|
|
1791
|
-
this.appendToHistory(rest);
|
|
1792
|
-
}
|
|
1772
|
+
this.appendToHistory(response);
|
|
1793
1773
|
}
|
|
1794
1774
|
// Reset retry budgets on any productive (non-empty) response, so the caps mean
|
|
1795
1775
|
// "N CONSECUTIVE failures" not "N total per turn".
|
|
@@ -3,8 +3,6 @@ import { isChatToolCallUnknown } from '@genesislcap/foundation-ai';
|
|
|
3
3
|
import { assert, createLogicSuite } from '@genesislcap/foundation-testing';
|
|
4
4
|
import { agenticActivityBus } from '../../channel/ai-activity-bus';
|
|
5
5
|
import { clearMetaEventRegistry, getMetaEvents } from '../../state/debug-event-log';
|
|
6
|
-
import { sumCosts } from '../../utils/sum-costs';
|
|
7
|
-
import { sumTokens } from '../../utils/sum-tokens';
|
|
8
6
|
import { createToolFold } from '../../utils/tool-fold';
|
|
9
7
|
// Side-effect import — MUST come before `./chat-driver` so the driver subclasses
|
|
10
8
|
// jsdom's EventTarget rather than Node's native one (see the file). None of the
|
|
@@ -775,63 +773,6 @@ subagent('times out (without hanging) when the sub-agent is parked on a user int
|
|
|
775
773
|
}));
|
|
776
774
|
subagent.run();
|
|
777
775
|
// ---------------------------------------------------------------------------
|
|
778
|
-
// cost / token attribution on the thinking-step split (GENC-1410)
|
|
779
|
-
// ---------------------------------------------------------------------------
|
|
780
|
-
const costAttribution = createLogicSuite('ChatDriver cost attribution (thinking-step split)');
|
|
781
|
-
costAttribution('a text-plus-tool-call response contributes its cost and tokens exactly once', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
782
|
-
const config = agent({
|
|
783
|
-
name: 'Worker',
|
|
784
|
-
toolDefinitions: () => [def('do_thing')],
|
|
785
|
-
toolHandlers: () => ({ do_thing: () => __awaiter(void 0, void 0, void 0, function* () { return 'ok'; }) }),
|
|
786
|
-
});
|
|
787
|
-
// A single response that emits reasoning + interstitial narration + a tool call, carrying that
|
|
788
|
-
// response's usage. The driver splits it into three messages — a `reasoning` bubble, a
|
|
789
|
-
// `narration` bubble, and the tool-call message — but only ONE may carry the cost/tokens or the
|
|
790
|
-
// session totals double-count this one response (GENC-1410).
|
|
791
|
-
const provider = scriptedProvider([
|
|
792
|
-
{
|
|
793
|
-
role: 'assistant',
|
|
794
|
-
content: 'Let me act.',
|
|
795
|
-
reasoning: 'Let me think.',
|
|
796
|
-
toolCalls: [{ id: 't1', name: 'do_thing', args: {} }],
|
|
797
|
-
cost: 0.05,
|
|
798
|
-
inputTokens: 1000,
|
|
799
|
-
outputTokens: 50,
|
|
800
|
-
},
|
|
801
|
-
// Turn-ending reply (no tool calls, no usage) so the loop terminates cleanly.
|
|
802
|
-
{ role: 'assistant', content: 'Done.' },
|
|
803
|
-
]);
|
|
804
|
-
const driver = makeDriver(config, provider);
|
|
805
|
-
yield driver.sendMessage('go');
|
|
806
|
-
const history = driver.getHistory();
|
|
807
|
-
const reasoning = history.find((m) => m.category === 'reasoning');
|
|
808
|
-
const narration = history.find((m) => m.category === 'narration');
|
|
809
|
-
const toolCallMsg = history.find((m) => { var _a; return (_a = m.toolCalls) === null || _a === void 0 ? void 0 : _a.some((c) => c.name === 'do_thing'); });
|
|
810
|
-
// The one response was split into reasoning + narration bubbles + the tool-call message.
|
|
811
|
-
assert.ok(reasoning, 'a reasoning bubble is emitted for the chain-of-thought summary');
|
|
812
|
-
assert.is(reasoning.content, 'Let me think.');
|
|
813
|
-
assert.ok(narration, 'a narration bubble is emitted for the interstitial prose');
|
|
814
|
-
assert.is(narration.content, 'Let me act.');
|
|
815
|
-
assert.ok(toolCallMsg, 'the tool call is on its own message');
|
|
816
|
-
assert.is(toolCallMsg.content, '');
|
|
817
|
-
// Only the tool-call message carries the turn's usage; the display bubbles carry none.
|
|
818
|
-
for (const m of [reasoning, narration]) {
|
|
819
|
-
assert.is(m.cost, undefined, 'a display bubble must not carry cost');
|
|
820
|
-
assert.is(m.inputTokens, undefined, 'nor inputTokens');
|
|
821
|
-
assert.is(m.outputTokens, undefined, 'nor outputTokens');
|
|
822
|
-
}
|
|
823
|
-
assert.is(toolCallMsg.cost, 0.05, 'the tool-call message carries the cost');
|
|
824
|
-
assert.is(toolCallMsg.inputTokens, 1000);
|
|
825
|
-
assert.is(toolCallMsg.outputTokens, 50);
|
|
826
|
-
// The reasoning/narration bubbles are UI-only; they must not carry the tool call either.
|
|
827
|
-
assert.is(reasoning.toolCalls, undefined, 'the reasoning bubble carries no tool call');
|
|
828
|
-
assert.is(narration.toolCalls, undefined, 'the narration bubble carries no tool call');
|
|
829
|
-
// The session totals count the one response once, not twice.
|
|
830
|
-
assert.is(sumCosts(history), 0.05, 'cost is summed once');
|
|
831
|
-
assert.is(sumTokens(history), 1050, 'tokens are summed once');
|
|
832
|
-
}));
|
|
833
|
-
costAttribution.run();
|
|
834
|
-
// ---------------------------------------------------------------------------
|
|
835
776
|
// per-agent / per-state temperature & tool-call mode (GENC-1321)
|
|
836
777
|
//
|
|
837
778
|
// The driver resolves `temperature` and `toolChoice` the same way it resolves
|
|
@@ -115,9 +115,6 @@ const chatBotSettingsTemplate = (switchTag, buttonTag) => html `
|
|
|
115
115
|
}))}
|
|
116
116
|
${when((x) => { var _a; return ((_a = x.chatConfig.ui) === null || _a === void 0 ? void 0 : _a.showThinkingSteps) != null; }, chatBotToggleRow('Show thinking', "Reveal the assistant's reasoning as it works through your request, surfacing its intermediate thought process before it commits to a response.", switchTag, 'toggle-thinking', (x) => x.showThinkingSteps, (x, c) => {
|
|
117
117
|
x.showThinkingSteps = readSwitchChecked(c.event);
|
|
118
|
-
}))}
|
|
119
|
-
${when((x) => { var _a; return ((_a = x.chatConfig.ui) === null || _a === void 0 ? void 0 : _a.showNarration) != null; }, chatBotToggleRow('Show narration', "Show the assistant's running commentary — the short notes it writes alongside its actions as it works, separate from its reasoning and its final answer.", switchTag, 'toggle-narration', (x) => x.showNarration, (x, c) => {
|
|
120
|
-
x.showNarration = readSwitchChecked(c.event);
|
|
121
118
|
}))}
|
|
122
119
|
${when((x) => { var _a; return ((_a = x.chatConfig.ui) === null || _a === void 0 ? void 0 : _a.showAgentSwitchIndicator) != null; }, chatBotToggleRow('Enable agents', 'Show in the chat window when tasks are delegated to different agents.', switchTag, 'toggle-agent-switch', (x) => x.showAgentSwitchIndicator, (x, c) => {
|
|
123
120
|
x.showAgentSwitchIndicator = readSwitchChecked(c.event);
|
package/dist/esm/main/main.js
CHANGED
|
@@ -368,15 +368,6 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
|
|
|
368
368
|
var _a;
|
|
369
369
|
(_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.actions.aiAssistant.setShowThinkingSteps(value);
|
|
370
370
|
}
|
|
371
|
-
/** Current user-facing toggle state for narration (interstitial prose) visibility. */
|
|
372
|
-
get showNarration() {
|
|
373
|
-
var _a, _b;
|
|
374
|
-
return (_b = (_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.store.aiAssistant.showNarration) !== null && _b !== void 0 ? _b : false;
|
|
375
|
-
}
|
|
376
|
-
set showNarration(value) {
|
|
377
|
-
var _a;
|
|
378
|
-
(_a = this._sessionRef) === null || _a === void 0 ? void 0 : _a.actions.aiAssistant.setShowNarration(value);
|
|
379
|
-
}
|
|
380
371
|
/** Current user-facing toggle state for agent switch indicator visibility. */
|
|
381
372
|
get showAgentSwitchIndicator() {
|
|
382
373
|
var _a, _b;
|
|
@@ -750,7 +741,6 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
|
|
|
750
741
|
return filterVisibleMessages(listed, {
|
|
751
742
|
showToolCalls: this.showToolCalls,
|
|
752
743
|
showThinkingSteps: this.showThinkingSteps,
|
|
753
|
-
showNarration: this.showNarration,
|
|
754
744
|
showAgentSwitchIndicator,
|
|
755
745
|
});
|
|
756
746
|
}
|
|
@@ -1097,7 +1087,6 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
|
|
|
1097
1087
|
const ui = (_a = this.chatConfig.ui) !== null && _a !== void 0 ? _a : {};
|
|
1098
1088
|
this.showToolCalls = ui.showToolCalls === true;
|
|
1099
1089
|
this.showThinkingSteps = ui.showThinkingSteps === true;
|
|
1100
|
-
this.showNarration = ui.showNarration === true;
|
|
1101
1090
|
this.showAgentSwitchIndicator = ui.showAgentSwitchIndicator === true;
|
|
1102
1091
|
this.enabledAnimations = resolveExclusiveLoadingStyle((_c = (_b = ui.animations) === null || _b === void 0 ? void 0 : _b.enabled) !== null && _c !== void 0 ? _c : (ui.animations ? [...DEFAULT_ANIMATIONS] : []));
|
|
1103
1092
|
const defaultAgent = (_d = this.chatConfig.picker) === null || _d === void 0 ? void 0 : _d.defaultAgent;
|
|
@@ -1584,7 +1573,6 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
|
|
|
1584
1573
|
!!this.headerTitle ||
|
|
1585
1574
|
(ui === null || ui === void 0 ? void 0 : ui.showToolCalls) != null ||
|
|
1586
1575
|
(ui === null || ui === void 0 ? void 0 : ui.showThinkingSteps) != null ||
|
|
1587
|
-
(ui === null || ui === void 0 ? void 0 : ui.showNarration) != null ||
|
|
1588
1576
|
(ui === null || ui === void 0 ? void 0 : ui.showAgentSwitchIndicator) != null ||
|
|
1589
1577
|
(ui === null || ui === void 0 ? void 0 : ui.allowDebugDownload) === true ||
|
|
1590
1578
|
(ui === null || ui === void 0 ? void 0 : ui.animations) != null ||
|
|
@@ -1766,9 +1754,6 @@ let FoundationAiAssistant = FoundationAiAssistant_1 = class FoundationAiAssistan
|
|
|
1766
1754
|
toggleShowThinkingSteps() {
|
|
1767
1755
|
this.showThinkingSteps = !this.showThinkingSteps;
|
|
1768
1756
|
}
|
|
1769
|
-
toggleShowNarration() {
|
|
1770
|
-
this.showNarration = !this.showNarration;
|
|
1771
|
-
}
|
|
1772
1757
|
toggleShowAgentSwitchIndicator() {
|
|
1773
1758
|
this.showAgentSwitchIndicator = !this.showAgentSwitchIndicator;
|
|
1774
1759
|
}
|
|
@@ -76,14 +76,8 @@ const messageType = (m) => {
|
|
|
76
76
|
// outcome; render it identically to a real user message.
|
|
77
77
|
case m.role === 'synthetic-user':
|
|
78
78
|
return 'user';
|
|
79
|
-
// Reasoning (chain-of-thought summary) — its own message since the split; `thinking` is the
|
|
80
|
-
// legacy flag for pre-split sessions. Both render as the "Thinking" bubble.
|
|
81
|
-
case m.category === 'reasoning':
|
|
82
79
|
case !!m.thinking:
|
|
83
80
|
return 'ai-thinking';
|
|
84
|
-
// Narration (interstitial prose alongside a tool call) renders as an ordinary assistant bubble.
|
|
85
|
-
case m.category === 'narration':
|
|
86
|
-
return 'ai';
|
|
87
81
|
case !!m.toolCalls:
|
|
88
82
|
return 'ai-function';
|
|
89
83
|
case !!m.interaction:
|
|
@@ -4,7 +4,6 @@ export const defaultSessionState = {
|
|
|
4
4
|
state: 'idle',
|
|
5
5
|
showToolCalls: false,
|
|
6
6
|
showThinkingSteps: false,
|
|
7
|
-
showNarration: false,
|
|
8
7
|
showAgentSwitchIndicator: false,
|
|
9
8
|
enabledAnimations: [],
|
|
10
9
|
suggestionsState: { status: 'idle' },
|
|
@@ -40,9 +39,6 @@ export const aiAssistantSlice = createSlice({
|
|
|
40
39
|
setShowThinkingSteps(state, action) {
|
|
41
40
|
state.showThinkingSteps = action.payload;
|
|
42
41
|
},
|
|
43
|
-
setShowNarration(state, action) {
|
|
44
|
-
state.showNarration = action.payload;
|
|
45
|
-
},
|
|
46
42
|
setShowAgentSwitchIndicator(state, action) {
|
|
47
43
|
state.showAgentSwitchIndicator = action.payload;
|
|
48
44
|
},
|
|
@@ -35,16 +35,7 @@ export function filterVisibleMessages(messages, toggles) {
|
|
|
35
35
|
if (m.role === 'tool') {
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
|
-
//
|
|
39
|
-
if (m.category === 'reasoning') {
|
|
40
|
-
return toggles.showThinkingSteps;
|
|
41
|
-
}
|
|
42
|
-
// Narration (interstitial prose alongside a tool call) follows its own toggle.
|
|
43
|
-
if (m.category === 'narration') {
|
|
44
|
-
return toggles.showNarration;
|
|
45
|
-
}
|
|
46
|
-
// Legacy: sessions persisted before the reasoning/narration split tagged reasoning-ish
|
|
47
|
-
// content with `thinking`; keep honouring the flag so their history still hides it.
|
|
38
|
+
// Thinking messages follow their own toggle.
|
|
48
39
|
if (m.thinking && !toggles.showThinkingSteps) {
|
|
49
40
|
return false;
|
|
50
41
|
}
|
|
@@ -5,13 +5,11 @@ const interaction = (interactionId, resolved = false) => (Object.assign({ intera
|
|
|
5
5
|
const ALL_ON = {
|
|
6
6
|
showToolCalls: true,
|
|
7
7
|
showThinkingSteps: true,
|
|
8
|
-
showNarration: true,
|
|
9
8
|
showAgentSwitchIndicator: true,
|
|
10
9
|
};
|
|
11
10
|
const ALL_OFF = {
|
|
12
11
|
showToolCalls: false,
|
|
13
12
|
showThinkingSteps: false,
|
|
14
|
-
showNarration: false,
|
|
15
13
|
showAgentSwitchIndicator: false,
|
|
16
14
|
};
|
|
17
15
|
const trailing = createLogicSuite('trailingInteractionRow');
|
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.476.0
|
|
4
|
+
"version": "14.476.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/ai-assistant.d.ts",
|
|
@@ -64,25 +64,25 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@genesislcap/foundation-testing": "14.476.0
|
|
68
|
-
"@genesislcap/genx": "14.476.0
|
|
69
|
-
"@genesislcap/rollup-builder": "14.476.0
|
|
70
|
-
"@genesislcap/ts-builder": "14.476.0
|
|
71
|
-
"@genesislcap/uvu-playwright-builder": "14.476.0
|
|
72
|
-
"@genesislcap/vite-builder": "14.476.0
|
|
73
|
-
"@genesislcap/webpack-builder": "14.476.0
|
|
67
|
+
"@genesislcap/foundation-testing": "14.476.0",
|
|
68
|
+
"@genesislcap/genx": "14.476.0",
|
|
69
|
+
"@genesislcap/rollup-builder": "14.476.0",
|
|
70
|
+
"@genesislcap/ts-builder": "14.476.0",
|
|
71
|
+
"@genesislcap/uvu-playwright-builder": "14.476.0",
|
|
72
|
+
"@genesislcap/vite-builder": "14.476.0",
|
|
73
|
+
"@genesislcap/webpack-builder": "14.476.0",
|
|
74
74
|
"@types/dompurify": "^3.0.5",
|
|
75
75
|
"@types/marked": "^5.0.2"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@genesislcap/foundation-ai": "14.476.0
|
|
79
|
-
"@genesislcap/foundation-logger": "14.476.0
|
|
80
|
-
"@genesislcap/foundation-notifications": "14.476.0
|
|
81
|
-
"@genesislcap/foundation-redux": "14.476.0
|
|
82
|
-
"@genesislcap/foundation-ui": "14.476.0
|
|
83
|
-
"@genesislcap/foundation-utils": "14.476.0
|
|
84
|
-
"@genesislcap/rapid-design-system": "14.476.0
|
|
85
|
-
"@genesislcap/web-core": "14.476.0
|
|
78
|
+
"@genesislcap/foundation-ai": "14.476.0",
|
|
79
|
+
"@genesislcap/foundation-logger": "14.476.0",
|
|
80
|
+
"@genesislcap/foundation-notifications": "14.476.0",
|
|
81
|
+
"@genesislcap/foundation-redux": "14.476.0",
|
|
82
|
+
"@genesislcap/foundation-ui": "14.476.0",
|
|
83
|
+
"@genesislcap/foundation-utils": "14.476.0",
|
|
84
|
+
"@genesislcap/rapid-design-system": "14.476.0",
|
|
85
|
+
"@genesislcap/web-core": "14.476.0",
|
|
86
86
|
"dompurify": "^3.3.1",
|
|
87
87
|
"marked": "^17.0.3"
|
|
88
88
|
},
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "0103e4203276998db0d28a1e26545fd0b229a5d6"
|
|
98
98
|
}
|
|
@@ -14,8 +14,6 @@ import { assert, createLogicSuite } from '@genesislcap/foundation-testing';
|
|
|
14
14
|
import { agenticActivityBus } from '../../channel/ai-activity-bus';
|
|
15
15
|
import type { AgentConfig } from '../../config/config';
|
|
16
16
|
import { clearMetaEventRegistry, getMetaEvents } from '../../state/debug-event-log';
|
|
17
|
-
import { sumCosts } from '../../utils/sum-costs';
|
|
18
|
-
import { sumTokens } from '../../utils/sum-tokens';
|
|
19
17
|
import { createToolFold } from '../../utils/tool-fold';
|
|
20
18
|
// Side-effect import — MUST come before `./chat-driver` so the driver subclasses
|
|
21
19
|
// jsdom's EventTarget rather than Node's native one (see the file). None of the
|
|
@@ -1082,76 +1080,6 @@ subagent(
|
|
|
1082
1080
|
|
|
1083
1081
|
subagent.run();
|
|
1084
1082
|
|
|
1085
|
-
// ---------------------------------------------------------------------------
|
|
1086
|
-
// cost / token attribution on the thinking-step split (GENC-1410)
|
|
1087
|
-
// ---------------------------------------------------------------------------
|
|
1088
|
-
|
|
1089
|
-
const costAttribution = createLogicSuite('ChatDriver cost attribution (thinking-step split)');
|
|
1090
|
-
|
|
1091
|
-
costAttribution(
|
|
1092
|
-
'a text-plus-tool-call response contributes its cost and tokens exactly once',
|
|
1093
|
-
async () => {
|
|
1094
|
-
const config = agent({
|
|
1095
|
-
name: 'Worker',
|
|
1096
|
-
toolDefinitions: () => [def('do_thing')],
|
|
1097
|
-
toolHandlers: () => ({ do_thing: async () => 'ok' }),
|
|
1098
|
-
});
|
|
1099
|
-
// A single response that emits reasoning + interstitial narration + a tool call, carrying that
|
|
1100
|
-
// response's usage. The driver splits it into three messages — a `reasoning` bubble, a
|
|
1101
|
-
// `narration` bubble, and the tool-call message — but only ONE may carry the cost/tokens or the
|
|
1102
|
-
// session totals double-count this one response (GENC-1410).
|
|
1103
|
-
const provider = scriptedProvider([
|
|
1104
|
-
{
|
|
1105
|
-
role: 'assistant',
|
|
1106
|
-
content: 'Let me act.',
|
|
1107
|
-
reasoning: 'Let me think.',
|
|
1108
|
-
toolCalls: [{ id: 't1', name: 'do_thing', args: {} }],
|
|
1109
|
-
cost: 0.05,
|
|
1110
|
-
inputTokens: 1000,
|
|
1111
|
-
outputTokens: 50,
|
|
1112
|
-
},
|
|
1113
|
-
// Turn-ending reply (no tool calls, no usage) so the loop terminates cleanly.
|
|
1114
|
-
{ role: 'assistant', content: 'Done.' },
|
|
1115
|
-
]);
|
|
1116
|
-
const driver = makeDriver(config, provider);
|
|
1117
|
-
|
|
1118
|
-
await driver.sendMessage('go');
|
|
1119
|
-
|
|
1120
|
-
const history = driver.getHistory();
|
|
1121
|
-
const reasoning = history.find((m) => m.category === 'reasoning');
|
|
1122
|
-
const narration = history.find((m) => m.category === 'narration');
|
|
1123
|
-
const toolCallMsg = history.find((m) => m.toolCalls?.some((c) => c.name === 'do_thing'));
|
|
1124
|
-
|
|
1125
|
-
// The one response was split into reasoning + narration bubbles + the tool-call message.
|
|
1126
|
-
assert.ok(reasoning, 'a reasoning bubble is emitted for the chain-of-thought summary');
|
|
1127
|
-
assert.is(reasoning!.content, 'Let me think.');
|
|
1128
|
-
assert.ok(narration, 'a narration bubble is emitted for the interstitial prose');
|
|
1129
|
-
assert.is(narration!.content, 'Let me act.');
|
|
1130
|
-
assert.ok(toolCallMsg, 'the tool call is on its own message');
|
|
1131
|
-
assert.is(toolCallMsg!.content, '');
|
|
1132
|
-
|
|
1133
|
-
// Only the tool-call message carries the turn's usage; the display bubbles carry none.
|
|
1134
|
-
for (const m of [reasoning!, narration!]) {
|
|
1135
|
-
assert.is(m.cost, undefined, 'a display bubble must not carry cost');
|
|
1136
|
-
assert.is(m.inputTokens, undefined, 'nor inputTokens');
|
|
1137
|
-
assert.is(m.outputTokens, undefined, 'nor outputTokens');
|
|
1138
|
-
}
|
|
1139
|
-
assert.is(toolCallMsg!.cost, 0.05, 'the tool-call message carries the cost');
|
|
1140
|
-
assert.is(toolCallMsg!.inputTokens, 1000);
|
|
1141
|
-
assert.is(toolCallMsg!.outputTokens, 50);
|
|
1142
|
-
|
|
1143
|
-
// The reasoning/narration bubbles are UI-only; they must not carry the tool call either.
|
|
1144
|
-
assert.is(reasoning!.toolCalls, undefined, 'the reasoning bubble carries no tool call');
|
|
1145
|
-
assert.is(narration!.toolCalls, undefined, 'the narration bubble carries no tool call');
|
|
1146
|
-
|
|
1147
|
-
// The session totals count the one response once, not twice.
|
|
1148
|
-
assert.is(sumCosts(history), 0.05, 'cost is summed once');
|
|
1149
|
-
assert.is(sumTokens(history), 1050, 'tokens are summed once');
|
|
1150
|
-
},
|
|
1151
|
-
);
|
|
1152
|
-
|
|
1153
|
-
costAttribution.run();
|
|
1154
|
-
|
|
1155
1083
|
// ---------------------------------------------------------------------------
|
|
1156
1084
|
// per-agent / per-state temperature & tool-call mode (GENC-1321)
|
|
1157
1085
|
//
|
|
@@ -2235,42 +2235,11 @@ export class ChatDriver extends EventTarget implements AiDriver {
|
|
|
2235
2235
|
});
|
|
2236
2236
|
}
|
|
2237
2237
|
return { reason: 'done' };
|
|
2238
|
+
} else if (isThinkingStep) {
|
|
2239
|
+
this.appendToHistory({ ...response, toolCalls: undefined, thinking: true });
|
|
2240
|
+
this.appendToHistory({ ...response, content: '' });
|
|
2238
2241
|
} else {
|
|
2239
|
-
|
|
2240
|
-
// own visibility toggle and debug-log category:
|
|
2241
|
-
// - reasoning (chain-of-thought summary) → category 'reasoning', hidden unless showThinkingSteps
|
|
2242
|
-
// - narration (interstitial prose emitted alongside a tool call) → category 'narration',
|
|
2243
|
-
// hidden unless showNarration
|
|
2244
|
-
// - the answer / tool-call message → always shown; carries this turn's usage.
|
|
2245
|
-
// Cost invariant (GENC-1410): exactly ONE message carries cost/tokens and is appended LAST, so
|
|
2246
|
-
// `sumCosts`/`sumTokens` don't double-count and `contextTokens` reads it. Reasoning/narration are
|
|
2247
|
-
// display-only (usage undefined) and are skipped when building the provider request. `model` /
|
|
2248
|
-
// `provider` / `providerName` stay on every split message so each is still attributed.
|
|
2249
|
-
const { reasoning, ...rest } = response;
|
|
2250
|
-
const displayOnly = { cost: undefined, inputTokens: undefined, outputTokens: undefined };
|
|
2251
|
-
if (reasoning) {
|
|
2252
|
-
this.appendToHistory({
|
|
2253
|
-
...rest,
|
|
2254
|
-
...displayOnly,
|
|
2255
|
-
content: reasoning,
|
|
2256
|
-
toolCalls: undefined,
|
|
2257
|
-
category: 'reasoning',
|
|
2258
|
-
});
|
|
2259
|
-
}
|
|
2260
|
-
if (isThinkingStep) {
|
|
2261
|
-
// content + tool call → the content is interstitial narration, not the final answer.
|
|
2262
|
-
this.appendToHistory({
|
|
2263
|
-
...rest,
|
|
2264
|
-
...displayOnly,
|
|
2265
|
-
toolCalls: undefined,
|
|
2266
|
-
category: 'narration',
|
|
2267
|
-
});
|
|
2268
|
-
this.appendToHistory({ ...rest, content: '' });
|
|
2269
|
-
} else {
|
|
2270
|
-
// No tool call → `content` is the final answer (always shown), or this is a bare tool-call
|
|
2271
|
-
// turn with no narration. Either way it carries this turn's usage; append it last.
|
|
2272
|
-
this.appendToHistory(rest);
|
|
2273
|
-
}
|
|
2242
|
+
this.appendToHistory(response);
|
|
2274
2243
|
}
|
|
2275
2244
|
|
|
2276
2245
|
// Reset retry budgets on any productive (non-empty) response, so the caps mean
|
|
@@ -212,19 +212,6 @@ const chatBotSettingsTemplate = (
|
|
|
212
212
|
},
|
|
213
213
|
),
|
|
214
214
|
)}
|
|
215
|
-
${when(
|
|
216
|
-
(x) => x.chatConfig.ui?.showNarration != null,
|
|
217
|
-
chatBotToggleRow(
|
|
218
|
-
'Show narration',
|
|
219
|
-
"Show the assistant's running commentary — the short notes it writes alongside its actions as it works, separate from its reasoning and its final answer.",
|
|
220
|
-
switchTag,
|
|
221
|
-
'toggle-narration',
|
|
222
|
-
(x) => x.showNarration,
|
|
223
|
-
(x, c) => {
|
|
224
|
-
x.showNarration = readSwitchChecked(c.event);
|
|
225
|
-
},
|
|
226
|
-
),
|
|
227
|
-
)}
|
|
228
215
|
${when(
|
|
229
216
|
(x) => x.chatConfig.ui?.showAgentSwitchIndicator != null,
|
|
230
217
|
chatBotToggleRow(
|
|
@@ -89,14 +89,8 @@ const messageType = (m: ChatMessage): string => {
|
|
|
89
89
|
// outcome; render it identically to a real user message.
|
|
90
90
|
case m.role === 'synthetic-user':
|
|
91
91
|
return 'user';
|
|
92
|
-
// Reasoning (chain-of-thought summary) — its own message since the split; `thinking` is the
|
|
93
|
-
// legacy flag for pre-split sessions. Both render as the "Thinking" bubble.
|
|
94
|
-
case m.category === 'reasoning':
|
|
95
92
|
case !!m.thinking:
|
|
96
93
|
return 'ai-thinking';
|
|
97
|
-
// Narration (interstitial prose alongside a tool call) renders as an ordinary assistant bubble.
|
|
98
|
-
case m.category === 'narration':
|
|
99
|
-
return 'ai';
|
|
100
94
|
case !!m.toolCalls:
|
|
101
95
|
return 'ai-function';
|
|
102
96
|
case !!m.interaction:
|
package/src/main/main.ts
CHANGED
|
@@ -409,14 +409,6 @@ export class FoundationAiAssistant extends GenesisElement {
|
|
|
409
409
|
this._sessionRef?.actions.aiAssistant.setShowThinkingSteps(value);
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
/** Current user-facing toggle state for narration (interstitial prose) visibility. */
|
|
413
|
-
get showNarration(): boolean {
|
|
414
|
-
return this._sessionRef?.store.aiAssistant.showNarration ?? false;
|
|
415
|
-
}
|
|
416
|
-
set showNarration(value: boolean) {
|
|
417
|
-
this._sessionRef?.actions.aiAssistant.setShowNarration(value);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
412
|
/** Current user-facing toggle state for agent switch indicator visibility. */
|
|
421
413
|
get showAgentSwitchIndicator(): boolean {
|
|
422
414
|
return this._sessionRef?.store.aiAssistant.showAgentSwitchIndicator ?? false;
|
|
@@ -900,7 +892,6 @@ export class FoundationAiAssistant extends GenesisElement {
|
|
|
900
892
|
return filterVisibleMessages(listed, {
|
|
901
893
|
showToolCalls: this.showToolCalls,
|
|
902
894
|
showThinkingSteps: this.showThinkingSteps,
|
|
903
|
-
showNarration: this.showNarration,
|
|
904
895
|
showAgentSwitchIndicator,
|
|
905
896
|
});
|
|
906
897
|
}
|
|
@@ -1266,7 +1257,6 @@ export class FoundationAiAssistant extends GenesisElement {
|
|
|
1266
1257
|
const ui = this.chatConfig.ui ?? {};
|
|
1267
1258
|
this.showToolCalls = ui.showToolCalls === true;
|
|
1268
1259
|
this.showThinkingSteps = ui.showThinkingSteps === true;
|
|
1269
|
-
this.showNarration = ui.showNarration === true;
|
|
1270
1260
|
this.showAgentSwitchIndicator = ui.showAgentSwitchIndicator === true;
|
|
1271
1261
|
this.enabledAnimations = resolveExclusiveLoadingStyle(
|
|
1272
1262
|
(ui.animations?.enabled as AiAssistantAnimation[]) ??
|
|
@@ -1797,7 +1787,6 @@ export class FoundationAiAssistant extends GenesisElement {
|
|
|
1797
1787
|
!!this.headerTitle ||
|
|
1798
1788
|
ui?.showToolCalls != null ||
|
|
1799
1789
|
ui?.showThinkingSteps != null ||
|
|
1800
|
-
ui?.showNarration != null ||
|
|
1801
1790
|
ui?.showAgentSwitchIndicator != null ||
|
|
1802
1791
|
ui?.allowDebugDownload === true ||
|
|
1803
1792
|
ui?.animations != null ||
|
|
@@ -1996,10 +1985,6 @@ export class FoundationAiAssistant extends GenesisElement {
|
|
|
1996
1985
|
this.showThinkingSteps = !this.showThinkingSteps;
|
|
1997
1986
|
}
|
|
1998
1987
|
|
|
1999
|
-
toggleShowNarration() {
|
|
2000
|
-
this.showNarration = !this.showNarration;
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
1988
|
toggleShowAgentSwitchIndicator() {
|
|
2004
1989
|
this.showAgentSwitchIndicator = !this.showAgentSwitchIndicator;
|
|
2005
1990
|
}
|
|
@@ -34,7 +34,6 @@ export interface AiAssistantSessionState {
|
|
|
34
34
|
state: AiAssistantState;
|
|
35
35
|
showToolCalls: boolean;
|
|
36
36
|
showThinkingSteps: boolean;
|
|
37
|
-
showNarration: boolean;
|
|
38
37
|
showAgentSwitchIndicator: boolean;
|
|
39
38
|
enabledAnimations: AiAssistantAnimation[];
|
|
40
39
|
suggestionsState: SuggestionsState;
|
|
@@ -101,7 +100,6 @@ export const defaultSessionState: AiAssistantSessionState = {
|
|
|
101
100
|
state: 'idle',
|
|
102
101
|
showToolCalls: false,
|
|
103
102
|
showThinkingSteps: false,
|
|
104
|
-
showNarration: false,
|
|
105
103
|
showAgentSwitchIndicator: false,
|
|
106
104
|
enabledAnimations: [],
|
|
107
105
|
suggestionsState: { status: 'idle' },
|
|
@@ -138,9 +136,6 @@ export const aiAssistantSlice = createSlice({
|
|
|
138
136
|
setShowThinkingSteps(state, action: PayloadAction<boolean>) {
|
|
139
137
|
state.showThinkingSteps = action.payload;
|
|
140
138
|
},
|
|
141
|
-
setShowNarration(state, action: PayloadAction<boolean>) {
|
|
142
|
-
state.showNarration = action.payload;
|
|
143
|
-
},
|
|
144
139
|
setShowAgentSwitchIndicator(state, action: PayloadAction<boolean>) {
|
|
145
140
|
state.showAgentSwitchIndicator = action.payload;
|
|
146
141
|
},
|
|
@@ -22,13 +22,11 @@ const interaction = (interactionId: string, resolved = false): ChatInteraction =
|
|
|
22
22
|
const ALL_ON: MessageFilterState = {
|
|
23
23
|
showToolCalls: true,
|
|
24
24
|
showThinkingSteps: true,
|
|
25
|
-
showNarration: true,
|
|
26
25
|
showAgentSwitchIndicator: true,
|
|
27
26
|
};
|
|
28
27
|
const ALL_OFF: MessageFilterState = {
|
|
29
28
|
showToolCalls: false,
|
|
30
29
|
showThinkingSteps: false,
|
|
31
|
-
showNarration: false,
|
|
32
30
|
showAgentSwitchIndicator: false,
|
|
33
31
|
};
|
|
34
32
|
|
|
@@ -9,7 +9,6 @@ import type { ChatMessage } from '@genesislcap/foundation-ai';
|
|
|
9
9
|
export interface MessageFilterState {
|
|
10
10
|
showToolCalls: boolean;
|
|
11
11
|
showThinkingSteps: boolean;
|
|
12
|
-
showNarration: boolean;
|
|
13
12
|
showAgentSwitchIndicator: boolean;
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -53,16 +52,7 @@ export function filterVisibleMessages(
|
|
|
53
52
|
if (m.role === 'tool') {
|
|
54
53
|
return false;
|
|
55
54
|
}
|
|
56
|
-
//
|
|
57
|
-
if (m.category === 'reasoning') {
|
|
58
|
-
return toggles.showThinkingSteps;
|
|
59
|
-
}
|
|
60
|
-
// Narration (interstitial prose alongside a tool call) follows its own toggle.
|
|
61
|
-
if (m.category === 'narration') {
|
|
62
|
-
return toggles.showNarration;
|
|
63
|
-
}
|
|
64
|
-
// Legacy: sessions persisted before the reasoning/narration split tagged reasoning-ish
|
|
65
|
-
// content with `thinking`; keep honouring the flag so their history still hides it.
|
|
55
|
+
// Thinking messages follow their own toggle.
|
|
66
56
|
if (m.thinking && !toggles.showThinkingSteps) {
|
|
67
57
|
return false;
|
|
68
58
|
}
|