@genesislcap/ai-assistant 14.409.0-FUI-2495.5 → 14.409.0-FUI-2495.7
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 +676 -25
- package/dist/ai-assistant.d.ts +233 -11
- package/dist/dts/channel/ai-activity-channel.d.ts +19 -1
- package/dist/dts/channel/ai-activity-channel.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +37 -4
- 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 +3 -3
- package/dist/dts/components/chat-interaction-wrapper/chat-interaction-wrapper.d.ts.map +1 -1
- package/dist/dts/components/chat-markdown/chat-markdown.d.ts +1 -1
- package/dist/dts/components/chat-markdown/chat-markdown.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +1 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +30 -5
- 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/types/ai-chat-widget.d.ts +3 -2
- package/dist/dts/types/ai-chat-widget.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/tool-fold.d.ts +133 -0
- package/dist/dts/utils/tool-fold.d.ts.map +1 -0
- package/dist/esm/components/chat-driver/chat-driver.js +288 -32
- package/dist/esm/components/chat-interaction-wrapper/chat-interaction-wrapper.js +2 -2
- package/dist/esm/components/chat-markdown/chat-markdown.js +1 -1
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/main/main.js +67 -11
- package/dist/esm/main/main.styles.js +35 -0
- package/dist/esm/main/main.template.js +39 -2
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/tool-fold.js +92 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/multi-agent-architecture.md +93 -0
- package/package.json +15 -15
- package/src/channel/ai-activity-channel.ts +20 -1
- package/src/components/chat-driver/chat-driver.ts +331 -28
- package/src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts +3 -3
- package/src/components/chat-markdown/chat-markdown.ts +1 -1
- package/src/components/orchestrating-driver/orchestrating-driver.ts +2 -0
- package/src/index.ts +2 -0
- package/src/main/main.styles.ts +35 -0
- package/src/main/main.template.ts +51 -3
- package/src/main/main.ts +56 -6
- package/src/types/ai-chat-widget.ts +4 -2
- package/src/utils/index.ts +1 -0
- package/src/utils/tool-fold.ts +181 -0
|
@@ -937,6 +937,38 @@
|
|
|
937
937
|
"endIndex": 3
|
|
938
938
|
}
|
|
939
939
|
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "PropertySignature",
|
|
942
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiAssistantSerializedState#foldStack:member",
|
|
943
|
+
"docComment": "/**\n * Active fold stack at the time of serialization. Restored by the driver on `applyState` so the model has the correct tool set.\n */\n",
|
|
944
|
+
"excerptTokens": [
|
|
945
|
+
{
|
|
946
|
+
"kind": "Content",
|
|
947
|
+
"text": "foldStack?: "
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"kind": "Reference",
|
|
951
|
+
"text": "SerializedFoldFrame",
|
|
952
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"kind": "Content",
|
|
956
|
+
"text": "[]"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "Content",
|
|
960
|
+
"text": ";"
|
|
961
|
+
}
|
|
962
|
+
],
|
|
963
|
+
"isReadonly": false,
|
|
964
|
+
"isOptional": true,
|
|
965
|
+
"releaseTag": "Beta",
|
|
966
|
+
"name": "foldStack",
|
|
967
|
+
"propertyTypeTokenRange": {
|
|
968
|
+
"startIndex": 1,
|
|
969
|
+
"endIndex": 3
|
|
970
|
+
}
|
|
971
|
+
},
|
|
940
972
|
{
|
|
941
973
|
"kind": "PropertySignature",
|
|
942
974
|
"canonicalReference": "@genesislcap/ai-assistant!AiAssistantSerializedState#messages:member",
|
|
@@ -1106,6 +1138,68 @@
|
|
|
1106
1138
|
"endIndex": 2
|
|
1107
1139
|
}
|
|
1108
1140
|
},
|
|
1141
|
+
{
|
|
1142
|
+
"kind": "Class",
|
|
1143
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiChatMarkdown:class",
|
|
1144
|
+
"docComment": "",
|
|
1145
|
+
"excerptTokens": [
|
|
1146
|
+
{
|
|
1147
|
+
"kind": "Content",
|
|
1148
|
+
"text": "export declare class AiChatMarkdown extends "
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"kind": "Reference",
|
|
1152
|
+
"text": "GenesisElement",
|
|
1153
|
+
"canonicalReference": "@microsoft/fast-element!FASTElement:interface"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"kind": "Content",
|
|
1157
|
+
"text": " "
|
|
1158
|
+
}
|
|
1159
|
+
],
|
|
1160
|
+
"fileUrlPath": "src/components/chat-markdown/chat-markdown.ts",
|
|
1161
|
+
"releaseTag": "Public",
|
|
1162
|
+
"isAbstract": false,
|
|
1163
|
+
"name": "AiChatMarkdown",
|
|
1164
|
+
"preserveMemberOrder": false,
|
|
1165
|
+
"members": [
|
|
1166
|
+
{
|
|
1167
|
+
"kind": "Property",
|
|
1168
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiChatMarkdown#content:member",
|
|
1169
|
+
"docComment": "/**\n * The markdown string to render.\n */\n",
|
|
1170
|
+
"excerptTokens": [
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "Content",
|
|
1173
|
+
"text": "content: "
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"kind": "Content",
|
|
1177
|
+
"text": "string"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"kind": "Content",
|
|
1181
|
+
"text": ";"
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
"isReadonly": false,
|
|
1185
|
+
"isOptional": false,
|
|
1186
|
+
"releaseTag": "Public",
|
|
1187
|
+
"name": "content",
|
|
1188
|
+
"propertyTypeTokenRange": {
|
|
1189
|
+
"startIndex": 1,
|
|
1190
|
+
"endIndex": 2
|
|
1191
|
+
},
|
|
1192
|
+
"isStatic": false,
|
|
1193
|
+
"isProtected": false,
|
|
1194
|
+
"isAbstract": false
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
"extendsTokenRange": {
|
|
1198
|
+
"startIndex": 1,
|
|
1199
|
+
"endIndex": 2
|
|
1200
|
+
},
|
|
1201
|
+
"implementsTokenRanges": []
|
|
1202
|
+
},
|
|
1109
1203
|
{
|
|
1110
1204
|
"kind": "Interface",
|
|
1111
1205
|
"canonicalReference": "@genesislcap/ai-assistant!AiChatWidget:interface",
|
|
@@ -1151,15 +1245,20 @@
|
|
|
1151
1245
|
{
|
|
1152
1246
|
"kind": "PropertySignature",
|
|
1153
1247
|
"canonicalReference": "@genesislcap/ai-assistant!AiChatWidget#resolved:member",
|
|
1154
|
-
"docComment": "/**\n *
|
|
1248
|
+
"docComment": "/**\n * The result when the interaction has been resolved. Truthy = resolved; value contains status/payload for display.\n */\n",
|
|
1155
1249
|
"excerptTokens": [
|
|
1156
1250
|
{
|
|
1157
1251
|
"kind": "Content",
|
|
1158
1252
|
"text": "resolved?: "
|
|
1159
1253
|
},
|
|
1254
|
+
{
|
|
1255
|
+
"kind": "Reference",
|
|
1256
|
+
"text": "InteractionResult",
|
|
1257
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionResult:type"
|
|
1258
|
+
},
|
|
1160
1259
|
{
|
|
1161
1260
|
"kind": "Content",
|
|
1162
|
-
"text": "
|
|
1261
|
+
"text": "<unknown>"
|
|
1163
1262
|
},
|
|
1164
1263
|
{
|
|
1165
1264
|
"kind": "Content",
|
|
@@ -1172,7 +1271,7 @@
|
|
|
1172
1271
|
"name": "resolved",
|
|
1173
1272
|
"propertyTypeTokenRange": {
|
|
1174
1273
|
"startIndex": 1,
|
|
1175
|
-
"endIndex":
|
|
1274
|
+
"endIndex": 3
|
|
1176
1275
|
}
|
|
1177
1276
|
}
|
|
1178
1277
|
],
|
|
@@ -1883,6 +1982,14 @@
|
|
|
1883
1982
|
"kind": "Content",
|
|
1884
1983
|
"text": "number"
|
|
1885
1984
|
},
|
|
1985
|
+
{
|
|
1986
|
+
"kind": "Content",
|
|
1987
|
+
"text": ", maxFoldOperations?: "
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"kind": "Content",
|
|
1991
|
+
"text": "number"
|
|
1992
|
+
},
|
|
1886
1993
|
{
|
|
1887
1994
|
"kind": "Content",
|
|
1888
1995
|
"text": ");"
|
|
@@ -1939,6 +2046,14 @@
|
|
|
1939
2046
|
"endIndex": 14
|
|
1940
2047
|
},
|
|
1941
2048
|
"isOptional": true
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"parameterName": "maxFoldOperations",
|
|
2052
|
+
"parameterTypeTokenRange": {
|
|
2053
|
+
"startIndex": 15,
|
|
2054
|
+
"endIndex": 16
|
|
2055
|
+
},
|
|
2056
|
+
"isOptional": true
|
|
1942
2057
|
}
|
|
1943
2058
|
]
|
|
1944
2059
|
},
|
|
@@ -1994,7 +2109,7 @@
|
|
|
1994
2109
|
{
|
|
1995
2110
|
"kind": "Method",
|
|
1996
2111
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#continueFromHistory:member(1)",
|
|
1997
|
-
"docComment": "/**\n * Continue the tool loop from current history without appending a new user message. Used by OrchestratingDriver after an agent handoff
|
|
2112
|
+
"docComment": "/**\n * Continue the tool loop from current history without appending a new user message. Used by OrchestratingDriver after an agent handoff.\n */\n",
|
|
1998
2113
|
"excerptTokens": [
|
|
1999
2114
|
{
|
|
2000
2115
|
"kind": "Content",
|
|
@@ -2058,6 +2173,42 @@
|
|
|
2058
2173
|
"isAbstract": false,
|
|
2059
2174
|
"name": "continueFromHistory"
|
|
2060
2175
|
},
|
|
2176
|
+
{
|
|
2177
|
+
"kind": "Method",
|
|
2178
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getFoldStack:member(1)",
|
|
2179
|
+
"docComment": "/**\n * Returns a serializable snapshot of the fold stack for pop-in/pop-out state transfer. Handler functions are omitted — they are re-resolved from agent config on restore.\n */\n",
|
|
2180
|
+
"excerptTokens": [
|
|
2181
|
+
{
|
|
2182
|
+
"kind": "Content",
|
|
2183
|
+
"text": "getFoldStack(): "
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"kind": "Reference",
|
|
2187
|
+
"text": "SerializedFoldFrame",
|
|
2188
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"kind": "Content",
|
|
2192
|
+
"text": "[]"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"kind": "Content",
|
|
2196
|
+
"text": ";"
|
|
2197
|
+
}
|
|
2198
|
+
],
|
|
2199
|
+
"isStatic": false,
|
|
2200
|
+
"returnTypeTokenRange": {
|
|
2201
|
+
"startIndex": 1,
|
|
2202
|
+
"endIndex": 3
|
|
2203
|
+
},
|
|
2204
|
+
"releaseTag": "Beta",
|
|
2205
|
+
"isProtected": false,
|
|
2206
|
+
"overloadIndex": 1,
|
|
2207
|
+
"parameters": [],
|
|
2208
|
+
"isOptional": false,
|
|
2209
|
+
"isAbstract": false,
|
|
2210
|
+
"name": "getFoldStack"
|
|
2211
|
+
},
|
|
2061
2212
|
{
|
|
2062
2213
|
"kind": "Method",
|
|
2063
2214
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHistory:member(1)",
|
|
@@ -2484,6 +2635,59 @@
|
|
|
2484
2635
|
"isAbstract": false,
|
|
2485
2636
|
"name": "resolveInteraction"
|
|
2486
2637
|
},
|
|
2638
|
+
{
|
|
2639
|
+
"kind": "Method",
|
|
2640
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreFoldStack:member(1)",
|
|
2641
|
+
"docComment": "/**\n * Restores the fold stack from a serialized snapshot. Re-opens each fold in order so the driver has the correct tool set.\n */\n",
|
|
2642
|
+
"excerptTokens": [
|
|
2643
|
+
{
|
|
2644
|
+
"kind": "Content",
|
|
2645
|
+
"text": "restoreFoldStack(frames: "
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
"kind": "Reference",
|
|
2649
|
+
"text": "SerializedFoldFrame",
|
|
2650
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
"kind": "Content",
|
|
2654
|
+
"text": "[]"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"kind": "Content",
|
|
2658
|
+
"text": "): "
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"kind": "Content",
|
|
2662
|
+
"text": "void"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"kind": "Content",
|
|
2666
|
+
"text": ";"
|
|
2667
|
+
}
|
|
2668
|
+
],
|
|
2669
|
+
"isStatic": false,
|
|
2670
|
+
"returnTypeTokenRange": {
|
|
2671
|
+
"startIndex": 4,
|
|
2672
|
+
"endIndex": 5
|
|
2673
|
+
},
|
|
2674
|
+
"releaseTag": "Beta",
|
|
2675
|
+
"isProtected": false,
|
|
2676
|
+
"overloadIndex": 1,
|
|
2677
|
+
"parameters": [
|
|
2678
|
+
{
|
|
2679
|
+
"parameterName": "frames",
|
|
2680
|
+
"parameterTypeTokenRange": {
|
|
2681
|
+
"startIndex": 1,
|
|
2682
|
+
"endIndex": 3
|
|
2683
|
+
},
|
|
2684
|
+
"isOptional": false
|
|
2685
|
+
}
|
|
2686
|
+
],
|
|
2687
|
+
"isOptional": false,
|
|
2688
|
+
"isAbstract": false,
|
|
2689
|
+
"name": "restoreFoldStack"
|
|
2690
|
+
},
|
|
2487
2691
|
{
|
|
2488
2692
|
"kind": "Method",
|
|
2489
2693
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#sendMessage:member(1)",
|
|
@@ -2694,6 +2898,142 @@
|
|
|
2694
2898
|
"endIndex": 7
|
|
2695
2899
|
}
|
|
2696
2900
|
},
|
|
2901
|
+
{
|
|
2902
|
+
"kind": "Function",
|
|
2903
|
+
"canonicalReference": "@genesislcap/ai-assistant!createToolFold:function(1)",
|
|
2904
|
+
"docComment": "/**\n * Creates a tool fold — a facade that hides a group of related tools behind a single named entry, revealing them progressively when the model invokes the facade.\n *\n * The `tools` and `handlers` parameters accept the exact same types as `AgentConfig.toolDefinitions` and `AgentConfig.toolHandlers`, so existing tool creation functions can be passed in unchanged.\n *\n * @example\n * ```typescript\n * const tradingTools = createToolFold({\n * name: 'trading_tools',\n * tools: createTradesToolDefinitions(),\n * handlers: createTradesToolHandlers(connect),\n * });\n *\n * const agent: AgentConfig = {\n * name: 'Trades',\n * systemPrompt: '...',\n * toolDefinitions: [getCurrentDateDef, tradingTools.definition],\n * toolHandlers: { get_current_date: handler, ...tradingTools.handler },\n * };\n * ```\n *\n * @example\n *\n * Nesting folds\n * ```typescript\n * const insertFold = createToolFold({\n * name: 'trade_insertion',\n * tools: [validateDef, insertDef],\n * handlers: { validate_trade: vHandler, insert_trade: iHandler },\n * });\n *\n * const tradingFold = createToolFold({\n * name: 'trading_tools',\n * tools: [searchDef, insertFold.definition],\n * handlers: { search_trades: sHandler, ...insertFold.handler },\n * });\n * ```\n *\n * @beta\n */\n",
|
|
2905
|
+
"excerptTokens": [
|
|
2906
|
+
{
|
|
2907
|
+
"kind": "Content",
|
|
2908
|
+
"text": "export declare function createToolFold(config: "
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"kind": "Content",
|
|
2912
|
+
"text": "{\n name: string;\n description?: string;\n usageNotes?: string;\n tools: "
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
"kind": "Reference",
|
|
2916
|
+
"text": "ChatToolDefinition",
|
|
2917
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
"kind": "Content",
|
|
2921
|
+
"text": "[];\n handlers: "
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"kind": "Reference",
|
|
2925
|
+
"text": "ChatToolHandlers",
|
|
2926
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type"
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
"kind": "Content",
|
|
2930
|
+
"text": ";\n exclusive?: boolean;\n}"
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
"kind": "Content",
|
|
2934
|
+
"text": "): "
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"kind": "Reference",
|
|
2938
|
+
"text": "ToolFoldResult",
|
|
2939
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult:interface"
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
"kind": "Content",
|
|
2943
|
+
"text": ";"
|
|
2944
|
+
}
|
|
2945
|
+
],
|
|
2946
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
2947
|
+
"returnTypeTokenRange": {
|
|
2948
|
+
"startIndex": 7,
|
|
2949
|
+
"endIndex": 8
|
|
2950
|
+
},
|
|
2951
|
+
"releaseTag": "Beta",
|
|
2952
|
+
"overloadIndex": 1,
|
|
2953
|
+
"parameters": [
|
|
2954
|
+
{
|
|
2955
|
+
"parameterName": "config",
|
|
2956
|
+
"parameterTypeTokenRange": {
|
|
2957
|
+
"startIndex": 1,
|
|
2958
|
+
"endIndex": 6
|
|
2959
|
+
},
|
|
2960
|
+
"isOptional": false
|
|
2961
|
+
}
|
|
2962
|
+
],
|
|
2963
|
+
"name": "createToolFold"
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"kind": "Function",
|
|
2967
|
+
"canonicalReference": "@genesislcap/ai-assistant!expandToolTree:function(1)",
|
|
2968
|
+
"docComment": "/**\n * Expands a flat list of tool definitions into a nested tree by resolving fold metadata from the corresponding handlers. Use this for debug output so the full tool hierarchy is visible rather than just the top-level facade names.\n *\n * @beta\n */\n",
|
|
2969
|
+
"excerptTokens": [
|
|
2970
|
+
{
|
|
2971
|
+
"kind": "Content",
|
|
2972
|
+
"text": "export declare function expandToolTree(definitions: "
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"kind": "Reference",
|
|
2976
|
+
"text": "ChatToolDefinition",
|
|
2977
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"kind": "Content",
|
|
2981
|
+
"text": "[]"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"kind": "Content",
|
|
2985
|
+
"text": ", handlers: "
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"kind": "Reference",
|
|
2989
|
+
"text": "ChatToolHandlers",
|
|
2990
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type"
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"kind": "Content",
|
|
2994
|
+
"text": "): "
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"kind": "Reference",
|
|
2998
|
+
"text": "ToolTreeNode",
|
|
2999
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"kind": "Content",
|
|
3003
|
+
"text": "[]"
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"kind": "Content",
|
|
3007
|
+
"text": ";"
|
|
3008
|
+
}
|
|
3009
|
+
],
|
|
3010
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
3011
|
+
"returnTypeTokenRange": {
|
|
3012
|
+
"startIndex": 6,
|
|
3013
|
+
"endIndex": 8
|
|
3014
|
+
},
|
|
3015
|
+
"releaseTag": "Beta",
|
|
3016
|
+
"overloadIndex": 1,
|
|
3017
|
+
"parameters": [
|
|
3018
|
+
{
|
|
3019
|
+
"parameterName": "definitions",
|
|
3020
|
+
"parameterTypeTokenRange": {
|
|
3021
|
+
"startIndex": 1,
|
|
3022
|
+
"endIndex": 3
|
|
3023
|
+
},
|
|
3024
|
+
"isOptional": false
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"parameterName": "handlers",
|
|
3028
|
+
"parameterTypeTokenRange": {
|
|
3029
|
+
"startIndex": 4,
|
|
3030
|
+
"endIndex": 5
|
|
3031
|
+
},
|
|
3032
|
+
"isOptional": false
|
|
3033
|
+
}
|
|
3034
|
+
],
|
|
3035
|
+
"name": "expandToolTree"
|
|
3036
|
+
},
|
|
2697
3037
|
{
|
|
2698
3038
|
"kind": "Interface",
|
|
2699
3039
|
"canonicalReference": "@genesislcap/ai-assistant!FallbackAgentConfig:interface",
|
|
@@ -3054,7 +3394,38 @@
|
|
|
3054
3394
|
"excerptTokens": [
|
|
3055
3395
|
{
|
|
3056
3396
|
"kind": "Content",
|
|
3057
|
-
"text": "chatConfigChanged(): "
|
|
3397
|
+
"text": "chatConfigChanged(): "
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"kind": "Content",
|
|
3401
|
+
"text": "void"
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
"kind": "Content",
|
|
3405
|
+
"text": ";"
|
|
3406
|
+
}
|
|
3407
|
+
],
|
|
3408
|
+
"isStatic": false,
|
|
3409
|
+
"returnTypeTokenRange": {
|
|
3410
|
+
"startIndex": 1,
|
|
3411
|
+
"endIndex": 2
|
|
3412
|
+
},
|
|
3413
|
+
"releaseTag": "Beta",
|
|
3414
|
+
"isProtected": false,
|
|
3415
|
+
"overloadIndex": 1,
|
|
3416
|
+
"parameters": [],
|
|
3417
|
+
"isOptional": false,
|
|
3418
|
+
"isAbstract": false,
|
|
3419
|
+
"name": "chatConfigChanged"
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
"kind": "Method",
|
|
3423
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#connectedCallback:member(1)",
|
|
3424
|
+
"docComment": "",
|
|
3425
|
+
"excerptTokens": [
|
|
3426
|
+
{
|
|
3427
|
+
"kind": "Content",
|
|
3428
|
+
"text": "connectedCallback(): "
|
|
3058
3429
|
},
|
|
3059
3430
|
{
|
|
3060
3431
|
"kind": "Content",
|
|
@@ -3076,38 +3447,67 @@
|
|
|
3076
3447
|
"parameters": [],
|
|
3077
3448
|
"isOptional": false,
|
|
3078
3449
|
"isAbstract": false,
|
|
3079
|
-
"name": "
|
|
3450
|
+
"name": "connectedCallback"
|
|
3080
3451
|
},
|
|
3081
3452
|
{
|
|
3082
|
-
"kind": "
|
|
3083
|
-
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#
|
|
3084
|
-
"docComment": "",
|
|
3453
|
+
"kind": "Property",
|
|
3454
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#contextLimit:member",
|
|
3455
|
+
"docComment": "/**\n * Context window size for the active model, if known.\n */\n",
|
|
3085
3456
|
"excerptTokens": [
|
|
3086
3457
|
{
|
|
3087
3458
|
"kind": "Content",
|
|
3088
|
-
"text": "
|
|
3459
|
+
"text": "contextLimit: "
|
|
3089
3460
|
},
|
|
3090
3461
|
{
|
|
3091
3462
|
"kind": "Content",
|
|
3092
|
-
"text": "
|
|
3463
|
+
"text": "number | undefined"
|
|
3093
3464
|
},
|
|
3094
3465
|
{
|
|
3095
3466
|
"kind": "Content",
|
|
3096
3467
|
"text": ";"
|
|
3097
3468
|
}
|
|
3098
3469
|
],
|
|
3099
|
-
"
|
|
3100
|
-
"
|
|
3470
|
+
"isReadonly": false,
|
|
3471
|
+
"isOptional": false,
|
|
3472
|
+
"releaseTag": "Beta",
|
|
3473
|
+
"name": "contextLimit",
|
|
3474
|
+
"propertyTypeTokenRange": {
|
|
3101
3475
|
"startIndex": 1,
|
|
3102
3476
|
"endIndex": 2
|
|
3103
3477
|
},
|
|
3104
|
-
"
|
|
3478
|
+
"isStatic": false,
|
|
3105
3479
|
"isProtected": false,
|
|
3106
|
-
"
|
|
3107
|
-
|
|
3480
|
+
"isAbstract": false
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"kind": "Property",
|
|
3484
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#contextTokens:member",
|
|
3485
|
+
"docComment": "/**\n * Most recent prompt token count from the AI provider, if available.\n */\n",
|
|
3486
|
+
"excerptTokens": [
|
|
3487
|
+
{
|
|
3488
|
+
"kind": "Content",
|
|
3489
|
+
"text": "contextTokens: "
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"kind": "Content",
|
|
3493
|
+
"text": "number | undefined"
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
"kind": "Content",
|
|
3497
|
+
"text": ";"
|
|
3498
|
+
}
|
|
3499
|
+
],
|
|
3500
|
+
"isReadonly": false,
|
|
3108
3501
|
"isOptional": false,
|
|
3109
|
-
"
|
|
3110
|
-
"name": "
|
|
3502
|
+
"releaseTag": "Beta",
|
|
3503
|
+
"name": "contextTokens",
|
|
3504
|
+
"propertyTypeTokenRange": {
|
|
3505
|
+
"startIndex": 1,
|
|
3506
|
+
"endIndex": 2
|
|
3507
|
+
},
|
|
3508
|
+
"isStatic": false,
|
|
3509
|
+
"isProtected": false,
|
|
3510
|
+
"isAbstract": false
|
|
3111
3511
|
},
|
|
3112
3512
|
{
|
|
3113
3513
|
"kind": "Property",
|
|
@@ -3286,16 +3686,34 @@
|
|
|
3286
3686
|
},
|
|
3287
3687
|
{
|
|
3288
3688
|
"kind": "Content",
|
|
3289
|
-
"text": "[];\n agentSummary: "
|
|
3689
|
+
"text": "[];\n meta: {\n timestamp: string;\n host: string;\n agentSummary: ({\n toolDefinitions: import(\"../utils/tool-fold\")."
|
|
3290
3690
|
},
|
|
3291
3691
|
{
|
|
3292
3692
|
"kind": "Reference",
|
|
3293
|
-
"text": "
|
|
3294
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
3693
|
+
"text": "ToolTreeNode",
|
|
3694
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"kind": "Content",
|
|
3698
|
+
"text": "[];\n toolHandlers: any;\n description: string;\n fallback?: never;\n name: string;\n systemPrompt?: string;\n primerHistory?: "
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
"kind": "Reference",
|
|
3702
|
+
"text": "ChatMessage",
|
|
3703
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
"kind": "Content",
|
|
3707
|
+
"text": "[];\n } | {\n toolDefinitions: import(\"../utils/tool-fold\")."
|
|
3708
|
+
},
|
|
3709
|
+
{
|
|
3710
|
+
"kind": "Reference",
|
|
3711
|
+
"text": "ToolTreeNode",
|
|
3712
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
3295
3713
|
},
|
|
3296
3714
|
{
|
|
3297
3715
|
"kind": "Content",
|
|
3298
|
-
"text": "[];\n
|
|
3716
|
+
"text": "[];\n toolHandlers: any;\n fallback: true;\n description?: never;\n name: string;\n systemPrompt?: string;\n primerHistory?: "
|
|
3299
3717
|
},
|
|
3300
3718
|
{
|
|
3301
3719
|
"kind": "Reference",
|
|
@@ -3304,7 +3722,25 @@
|
|
|
3304
3722
|
},
|
|
3305
3723
|
{
|
|
3306
3724
|
"kind": "Content",
|
|
3307
|
-
"text": "[];\n
|
|
3725
|
+
"text": "[];\n })[];\n activeSystemPrompt: string;\n activePrimerHistory: "
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
"kind": "Reference",
|
|
3729
|
+
"text": "ChatMessage",
|
|
3730
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"kind": "Content",
|
|
3734
|
+
"text": "[];\n activeFoldStack: import(\"../channel/ai-activity-channel\")."
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"kind": "Reference",
|
|
3738
|
+
"text": "SerializedFoldFrame",
|
|
3739
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface"
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
"kind": "Content",
|
|
3743
|
+
"text": "[];\n debug: unknown;\n };\n }"
|
|
3308
3744
|
},
|
|
3309
3745
|
{
|
|
3310
3746
|
"kind": "Content",
|
|
@@ -3314,7 +3750,7 @@
|
|
|
3314
3750
|
"isStatic": false,
|
|
3315
3751
|
"returnTypeTokenRange": {
|
|
3316
3752
|
"startIndex": 1,
|
|
3317
|
-
"endIndex":
|
|
3753
|
+
"endIndex": 16
|
|
3318
3754
|
},
|
|
3319
3755
|
"releaseTag": "Beta",
|
|
3320
3756
|
"isProtected": false,
|
|
@@ -4966,7 +5402,7 @@
|
|
|
4966
5402
|
},
|
|
4967
5403
|
{
|
|
4968
5404
|
"kind": "Content",
|
|
4969
|
-
"text": "{\n maxHandoffs?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n }"
|
|
5405
|
+
"text": "{\n maxHandoffs?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n maxFoldOperations?: number;\n }"
|
|
4970
5406
|
},
|
|
4971
5407
|
{
|
|
4972
5408
|
"kind": "Content",
|
|
@@ -5517,6 +5953,83 @@
|
|
|
5517
5953
|
"endIndex": 0
|
|
5518
5954
|
}
|
|
5519
5955
|
},
|
|
5956
|
+
{
|
|
5957
|
+
"kind": "Interface",
|
|
5958
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame:interface",
|
|
5959
|
+
"docComment": "/**\n * A single frame on the serialized fold stack. Handler functions are not serializable — they are re-resolved on restore by the driver walking the agent config's fold metadata.\n *\n * @beta\n */\n",
|
|
5960
|
+
"excerptTokens": [
|
|
5961
|
+
{
|
|
5962
|
+
"kind": "Content",
|
|
5963
|
+
"text": "export interface SerializedFoldFrame "
|
|
5964
|
+
}
|
|
5965
|
+
],
|
|
5966
|
+
"fileUrlPath": "src/channel/ai-activity-channel.ts",
|
|
5967
|
+
"releaseTag": "Beta",
|
|
5968
|
+
"name": "SerializedFoldFrame",
|
|
5969
|
+
"preserveMemberOrder": false,
|
|
5970
|
+
"members": [
|
|
5971
|
+
{
|
|
5972
|
+
"kind": "PropertySignature",
|
|
5973
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame#foldName:member",
|
|
5974
|
+
"docComment": "/**\n * Name of the fold that was opened at this level.\n */\n",
|
|
5975
|
+
"excerptTokens": [
|
|
5976
|
+
{
|
|
5977
|
+
"kind": "Content",
|
|
5978
|
+
"text": "foldName: "
|
|
5979
|
+
},
|
|
5980
|
+
{
|
|
5981
|
+
"kind": "Content",
|
|
5982
|
+
"text": "string"
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
"kind": "Content",
|
|
5986
|
+
"text": ";"
|
|
5987
|
+
}
|
|
5988
|
+
],
|
|
5989
|
+
"isReadonly": false,
|
|
5990
|
+
"isOptional": false,
|
|
5991
|
+
"releaseTag": "Beta",
|
|
5992
|
+
"name": "foldName",
|
|
5993
|
+
"propertyTypeTokenRange": {
|
|
5994
|
+
"startIndex": 1,
|
|
5995
|
+
"endIndex": 2
|
|
5996
|
+
}
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
"kind": "PropertySignature",
|
|
6000
|
+
"canonicalReference": "@genesislcap/ai-assistant!SerializedFoldFrame#previousDefinitions:member",
|
|
6001
|
+
"docComment": "/**\n * Tool definitions that were active before this fold opened.\n */\n",
|
|
6002
|
+
"excerptTokens": [
|
|
6003
|
+
{
|
|
6004
|
+
"kind": "Content",
|
|
6005
|
+
"text": "previousDefinitions: "
|
|
6006
|
+
},
|
|
6007
|
+
{
|
|
6008
|
+
"kind": "Reference",
|
|
6009
|
+
"text": "ChatToolDefinition",
|
|
6010
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
6011
|
+
},
|
|
6012
|
+
{
|
|
6013
|
+
"kind": "Content",
|
|
6014
|
+
"text": "[]"
|
|
6015
|
+
},
|
|
6016
|
+
{
|
|
6017
|
+
"kind": "Content",
|
|
6018
|
+
"text": ";"
|
|
6019
|
+
}
|
|
6020
|
+
],
|
|
6021
|
+
"isReadonly": false,
|
|
6022
|
+
"isOptional": false,
|
|
6023
|
+
"releaseTag": "Beta",
|
|
6024
|
+
"name": "previousDefinitions",
|
|
6025
|
+
"propertyTypeTokenRange": {
|
|
6026
|
+
"startIndex": 1,
|
|
6027
|
+
"endIndex": 3
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
],
|
|
6031
|
+
"extendsTokenRanges": []
|
|
6032
|
+
},
|
|
5520
6033
|
{
|
|
5521
6034
|
"kind": "Interface",
|
|
5522
6035
|
"canonicalReference": "@genesislcap/ai-assistant!SpecialistAgentConfig:interface",
|
|
@@ -5652,6 +6165,144 @@
|
|
|
5652
6165
|
"startIndex": 1,
|
|
5653
6166
|
"endIndex": 2
|
|
5654
6167
|
}
|
|
6168
|
+
},
|
|
6169
|
+
{
|
|
6170
|
+
"kind": "Interface",
|
|
6171
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult:interface",
|
|
6172
|
+
"docComment": "/**\n * The value returned by `createToolFold`.\n *\n * @beta\n */\n",
|
|
6173
|
+
"excerptTokens": [
|
|
6174
|
+
{
|
|
6175
|
+
"kind": "Content",
|
|
6176
|
+
"text": "export interface ToolFoldResult "
|
|
6177
|
+
}
|
|
6178
|
+
],
|
|
6179
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
6180
|
+
"releaseTag": "Beta",
|
|
6181
|
+
"name": "ToolFoldResult",
|
|
6182
|
+
"preserveMemberOrder": false,
|
|
6183
|
+
"members": [
|
|
6184
|
+
{
|
|
6185
|
+
"kind": "PropertySignature",
|
|
6186
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult#definition:member",
|
|
6187
|
+
"docComment": "/**\n * The facade tool definition. Add this to your agent's `toolDefinitions`. It is a regular `ChatToolDefinition` with an empty parameter schema.\n */\n",
|
|
6188
|
+
"excerptTokens": [
|
|
6189
|
+
{
|
|
6190
|
+
"kind": "Content",
|
|
6191
|
+
"text": "definition: "
|
|
6192
|
+
},
|
|
6193
|
+
{
|
|
6194
|
+
"kind": "Reference",
|
|
6195
|
+
"text": "ChatToolDefinition",
|
|
6196
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
6197
|
+
},
|
|
6198
|
+
{
|
|
6199
|
+
"kind": "Content",
|
|
6200
|
+
"text": ";"
|
|
6201
|
+
}
|
|
6202
|
+
],
|
|
6203
|
+
"isReadonly": false,
|
|
6204
|
+
"isOptional": false,
|
|
6205
|
+
"releaseTag": "Beta",
|
|
6206
|
+
"name": "definition",
|
|
6207
|
+
"propertyTypeTokenRange": {
|
|
6208
|
+
"startIndex": 1,
|
|
6209
|
+
"endIndex": 2
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
6212
|
+
{
|
|
6213
|
+
"kind": "PropertySignature",
|
|
6214
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolFoldResult#handler:member",
|
|
6215
|
+
"docComment": "/**\n * The facade handler — a single-entry map keyed by the fold name. Spread this into your agent's `toolHandlers`. Inner tool handlers are NOT included here — they are encapsulated inside the fold metadata and installed by the driver only when the fold opens.\n */\n",
|
|
6216
|
+
"excerptTokens": [
|
|
6217
|
+
{
|
|
6218
|
+
"kind": "Content",
|
|
6219
|
+
"text": "handler: "
|
|
6220
|
+
},
|
|
6221
|
+
{
|
|
6222
|
+
"kind": "Reference",
|
|
6223
|
+
"text": "ChatToolHandlers",
|
|
6224
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type"
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"kind": "Content",
|
|
6228
|
+
"text": ";"
|
|
6229
|
+
}
|
|
6230
|
+
],
|
|
6231
|
+
"isReadonly": false,
|
|
6232
|
+
"isOptional": false,
|
|
6233
|
+
"releaseTag": "Beta",
|
|
6234
|
+
"name": "handler",
|
|
6235
|
+
"propertyTypeTokenRange": {
|
|
6236
|
+
"startIndex": 1,
|
|
6237
|
+
"endIndex": 2
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
6240
|
+
],
|
|
6241
|
+
"extendsTokenRanges": []
|
|
6242
|
+
},
|
|
6243
|
+
{
|
|
6244
|
+
"kind": "Interface",
|
|
6245
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface",
|
|
6246
|
+
"docComment": "/**\n * A tool entry in the expanded debug tree. Folds are represented as nodes with a `tools` array; regular tools have none.\n *\n * @beta\n */\n",
|
|
6247
|
+
"excerptTokens": [
|
|
6248
|
+
{
|
|
6249
|
+
"kind": "Content",
|
|
6250
|
+
"text": "export interface ToolTreeNode extends "
|
|
6251
|
+
},
|
|
6252
|
+
{
|
|
6253
|
+
"kind": "Reference",
|
|
6254
|
+
"text": "ChatToolDefinition",
|
|
6255
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
6256
|
+
},
|
|
6257
|
+
{
|
|
6258
|
+
"kind": "Content",
|
|
6259
|
+
"text": " "
|
|
6260
|
+
}
|
|
6261
|
+
],
|
|
6262
|
+
"fileUrlPath": "src/utils/tool-fold.ts",
|
|
6263
|
+
"releaseTag": "Beta",
|
|
6264
|
+
"name": "ToolTreeNode",
|
|
6265
|
+
"preserveMemberOrder": false,
|
|
6266
|
+
"members": [
|
|
6267
|
+
{
|
|
6268
|
+
"kind": "PropertySignature",
|
|
6269
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode#tools:member",
|
|
6270
|
+
"docComment": "/**\n * Present when this tool is a fold — contains its inner tools recursively expanded.\n */\n",
|
|
6271
|
+
"excerptTokens": [
|
|
6272
|
+
{
|
|
6273
|
+
"kind": "Content",
|
|
6274
|
+
"text": "tools?: "
|
|
6275
|
+
},
|
|
6276
|
+
{
|
|
6277
|
+
"kind": "Reference",
|
|
6278
|
+
"text": "ToolTreeNode",
|
|
6279
|
+
"canonicalReference": "@genesislcap/ai-assistant!ToolTreeNode:interface"
|
|
6280
|
+
},
|
|
6281
|
+
{
|
|
6282
|
+
"kind": "Content",
|
|
6283
|
+
"text": "[]"
|
|
6284
|
+
},
|
|
6285
|
+
{
|
|
6286
|
+
"kind": "Content",
|
|
6287
|
+
"text": ";"
|
|
6288
|
+
}
|
|
6289
|
+
],
|
|
6290
|
+
"isReadonly": false,
|
|
6291
|
+
"isOptional": true,
|
|
6292
|
+
"releaseTag": "Beta",
|
|
6293
|
+
"name": "tools",
|
|
6294
|
+
"propertyTypeTokenRange": {
|
|
6295
|
+
"startIndex": 1,
|
|
6296
|
+
"endIndex": 3
|
|
6297
|
+
}
|
|
6298
|
+
}
|
|
6299
|
+
],
|
|
6300
|
+
"extendsTokenRanges": [
|
|
6301
|
+
{
|
|
6302
|
+
"startIndex": 1,
|
|
6303
|
+
"endIndex": 2
|
|
6304
|
+
}
|
|
6305
|
+
]
|
|
5655
6306
|
}
|
|
5656
6307
|
]
|
|
5657
6308
|
}
|