@genesislcap/ai-assistant 15.84.0 → 15.84.2-GENC-1737.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 +2144 -138
- package/dist/ai-assistant.d.ts +396 -43
- package/dist/chat-driver.cjs +724 -210
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +724 -209
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +2640 -1641
- package/dist/dts/components/agent-session/agent-session.d.ts +45 -2
- package/dist/dts/components/agent-session/agent-session.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/ai-driver.d.ts +57 -1
- package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +12 -1
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts +0 -8
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +67 -15
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/hand-off.d.ts +14 -0
- package/dist/dts/components/orchestrating-driver/hand-off.d.ts.map +1 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +112 -22
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts +66 -0
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +3 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.types.d.ts +6 -0
- package/dist/dts/main/main.types.d.ts.map +1 -1
- package/dist/dts/react.d.ts +4 -1
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts +33 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
- package/dist/dts/utils/condense-history.d.ts +10 -3
- package/dist/dts/utils/condense-history.d.ts.map +1 -1
- package/dist/esm/components/agent-session/agent-session.js +114 -7
- package/dist/esm/components/ai-driver/ai-driver.js +3 -0
- package/dist/esm/components/ai-driver/base-driver-decorator.js +24 -0
- package/dist/esm/components/chat-driver/chat-driver.constants.js +0 -8
- package/dist/esm/components/chat-driver/chat-driver.js +232 -73
- package/dist/esm/components/orchestrating-driver/hand-off.js +53 -0
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +447 -299
- package/dist/esm/main/main.js +32 -6
- package/dist/esm/main/main.types.js +6 -0
- package/dist/esm/state/persistence/session-persister.js +55 -12
- package/dist/esm/state/persistence/session-snapshot.js +12 -6
- package/dist/esm/utils/condense-history.js +13 -4
- package/dist/react.cjs +16 -1
- package/dist/react.mjs +16 -1
- package/docs/sub_agent.md +1 -1
- package/package.json +17 -17
|
@@ -2231,7 +2231,7 @@
|
|
|
2231
2231
|
{
|
|
2232
2232
|
"kind": "Class",
|
|
2233
2233
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession:class",
|
|
2234
|
-
"docComment": "/**\n * The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing, and the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n *\n * Knows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the
|
|
2234
|
+
"docComment": "/**\n * The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing, and the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n *\n * Knows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the hand-off stack, the divider in history all stay with the orchestrator, which is the only thing with agents to route between.\n *\n * @beta\n */\n",
|
|
2235
2235
|
"excerptTokens": [
|
|
2236
2236
|
{
|
|
2237
2237
|
"kind": "Content",
|
|
@@ -2376,6 +2376,42 @@
|
|
|
2376
2376
|
"isAbstract": false,
|
|
2377
2377
|
"name": "dispose"
|
|
2378
2378
|
},
|
|
2379
|
+
{
|
|
2380
|
+
"kind": "Method",
|
|
2381
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#endSuspended:member(1)",
|
|
2382
|
+
"docComment": "/**\n * Deactivate the callers left waiting by hand-offs that ended without a hand-back, newest first, when no teardown follows to do it (GENC-1737).\n */\n",
|
|
2383
|
+
"excerptTokens": [
|
|
2384
|
+
{
|
|
2385
|
+
"kind": "Content",
|
|
2386
|
+
"text": "endSuspended(): "
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"kind": "Reference",
|
|
2390
|
+
"text": "Promise",
|
|
2391
|
+
"canonicalReference": "!Promise:interface"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
"kind": "Content",
|
|
2395
|
+
"text": "<void>"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"kind": "Content",
|
|
2399
|
+
"text": ";"
|
|
2400
|
+
}
|
|
2401
|
+
],
|
|
2402
|
+
"isStatic": false,
|
|
2403
|
+
"returnTypeTokenRange": {
|
|
2404
|
+
"startIndex": 1,
|
|
2405
|
+
"endIndex": 3
|
|
2406
|
+
},
|
|
2407
|
+
"releaseTag": "Beta",
|
|
2408
|
+
"isProtected": false,
|
|
2409
|
+
"overloadIndex": 1,
|
|
2410
|
+
"parameters": [],
|
|
2411
|
+
"isOptional": false,
|
|
2412
|
+
"isAbstract": false,
|
|
2413
|
+
"name": "endSuspended"
|
|
2414
|
+
},
|
|
2379
2415
|
{
|
|
2380
2416
|
"kind": "Method",
|
|
2381
2417
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getActive:member(1)",
|
|
@@ -2443,6 +2479,54 @@
|
|
|
2443
2479
|
"isAbstract": false,
|
|
2444
2480
|
"name": "getFlowOwner"
|
|
2445
2481
|
},
|
|
2482
|
+
{
|
|
2483
|
+
"kind": "Method",
|
|
2484
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getHandOffData:member(1)",
|
|
2485
|
+
"docComment": "/**\n * The `data` of the hand-off that activated `agentName`, if one did and carried any.\n */\n",
|
|
2486
|
+
"excerptTokens": [
|
|
2487
|
+
{
|
|
2488
|
+
"kind": "Content",
|
|
2489
|
+
"text": "getHandOffData(agentName: "
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
"kind": "Content",
|
|
2493
|
+
"text": "string"
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
"kind": "Content",
|
|
2497
|
+
"text": "): "
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"kind": "Content",
|
|
2501
|
+
"text": "unknown"
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
"kind": "Content",
|
|
2505
|
+
"text": ";"
|
|
2506
|
+
}
|
|
2507
|
+
],
|
|
2508
|
+
"isStatic": false,
|
|
2509
|
+
"returnTypeTokenRange": {
|
|
2510
|
+
"startIndex": 3,
|
|
2511
|
+
"endIndex": 4
|
|
2512
|
+
},
|
|
2513
|
+
"releaseTag": "Beta",
|
|
2514
|
+
"isProtected": false,
|
|
2515
|
+
"overloadIndex": 1,
|
|
2516
|
+
"parameters": [
|
|
2517
|
+
{
|
|
2518
|
+
"parameterName": "agentName",
|
|
2519
|
+
"parameterTypeTokenRange": {
|
|
2520
|
+
"startIndex": 1,
|
|
2521
|
+
"endIndex": 2
|
|
2522
|
+
},
|
|
2523
|
+
"isOptional": false
|
|
2524
|
+
}
|
|
2525
|
+
],
|
|
2526
|
+
"isOptional": false,
|
|
2527
|
+
"isAbstract": false,
|
|
2528
|
+
"name": "getHandOffData"
|
|
2529
|
+
},
|
|
2446
2530
|
{
|
|
2447
2531
|
"kind": "Method",
|
|
2448
2532
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getLockedName:member(1)",
|
|
@@ -2522,6 +2606,125 @@
|
|
|
2522
2606
|
"isAbstract": false,
|
|
2523
2607
|
"name": "getPinned"
|
|
2524
2608
|
},
|
|
2609
|
+
{
|
|
2610
|
+
"kind": "Method",
|
|
2611
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getSuspended:member(1)",
|
|
2612
|
+
"docComment": "/**\n * The callers waiting in a hand-off whose state is live, oldest first.\n */\n",
|
|
2613
|
+
"excerptTokens": [
|
|
2614
|
+
{
|
|
2615
|
+
"kind": "Content",
|
|
2616
|
+
"text": "getSuspended(): "
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"kind": "Content",
|
|
2620
|
+
"text": "readonly "
|
|
2621
|
+
},
|
|
2622
|
+
{
|
|
2623
|
+
"kind": "Reference",
|
|
2624
|
+
"text": "AgentConfig",
|
|
2625
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type"
|
|
2626
|
+
},
|
|
2627
|
+
{
|
|
2628
|
+
"kind": "Content",
|
|
2629
|
+
"text": "[]"
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
"kind": "Content",
|
|
2633
|
+
"text": ";"
|
|
2634
|
+
}
|
|
2635
|
+
],
|
|
2636
|
+
"isStatic": false,
|
|
2637
|
+
"returnTypeTokenRange": {
|
|
2638
|
+
"startIndex": 1,
|
|
2639
|
+
"endIndex": 4
|
|
2640
|
+
},
|
|
2641
|
+
"releaseTag": "Beta",
|
|
2642
|
+
"isProtected": false,
|
|
2643
|
+
"overloadIndex": 1,
|
|
2644
|
+
"parameters": [],
|
|
2645
|
+
"isOptional": false,
|
|
2646
|
+
"isAbstract": false,
|
|
2647
|
+
"name": "getSuspended"
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"kind": "Method",
|
|
2651
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#handOff:member(1)",
|
|
2652
|
+
"docComment": "/**\n * Make `target` active for a hand-off (GENC-1737), holding the flow lock whatever kind of agent it is, since a waiting caller depends on it. With `suspendCaller` the active agent waits: it is not deactivated and keeps its state. Without it the active agent is deactivated as on any swap: a one-way hand-off from a target, whose waiting caller then waits for the new target. Queued with {@link AgentSession.activate}.\n */\n",
|
|
2653
|
+
"excerptTokens": [
|
|
2654
|
+
{
|
|
2655
|
+
"kind": "Content",
|
|
2656
|
+
"text": "handOff(target: "
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"kind": "Reference",
|
|
2660
|
+
"text": "AgentConfig",
|
|
2661
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type"
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"kind": "Content",
|
|
2665
|
+
"text": ", options: "
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
"kind": "Content",
|
|
2669
|
+
"text": "{\n suspendCaller: boolean;\n }"
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"kind": "Content",
|
|
2673
|
+
"text": "): "
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"kind": "Reference",
|
|
2677
|
+
"text": "Promise",
|
|
2678
|
+
"canonicalReference": "!Promise:interface"
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"kind": "Content",
|
|
2682
|
+
"text": "<"
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
"kind": "Reference",
|
|
2686
|
+
"text": "AgentTransition",
|
|
2687
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentTransition:interface"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
"kind": "Content",
|
|
2691
|
+
"text": ">"
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
"kind": "Content",
|
|
2695
|
+
"text": ";"
|
|
2696
|
+
}
|
|
2697
|
+
],
|
|
2698
|
+
"isStatic": false,
|
|
2699
|
+
"returnTypeTokenRange": {
|
|
2700
|
+
"startIndex": 5,
|
|
2701
|
+
"endIndex": 9
|
|
2702
|
+
},
|
|
2703
|
+
"releaseTag": "Beta",
|
|
2704
|
+
"isProtected": false,
|
|
2705
|
+
"overloadIndex": 1,
|
|
2706
|
+
"parameters": [
|
|
2707
|
+
{
|
|
2708
|
+
"parameterName": "target",
|
|
2709
|
+
"parameterTypeTokenRange": {
|
|
2710
|
+
"startIndex": 1,
|
|
2711
|
+
"endIndex": 2
|
|
2712
|
+
},
|
|
2713
|
+
"isOptional": false
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
"parameterName": "options",
|
|
2717
|
+
"parameterTypeTokenRange": {
|
|
2718
|
+
"startIndex": 3,
|
|
2719
|
+
"endIndex": 4
|
|
2720
|
+
},
|
|
2721
|
+
"isOptional": false
|
|
2722
|
+
}
|
|
2723
|
+
],
|
|
2724
|
+
"isOptional": false,
|
|
2725
|
+
"isAbstract": false,
|
|
2726
|
+
"name": "handOff"
|
|
2727
|
+
},
|
|
2525
2728
|
{
|
|
2526
2729
|
"kind": "Method",
|
|
2527
2730
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#hasRestoredState:member(1)",
|
|
@@ -2668,6 +2871,85 @@
|
|
|
2668
2871
|
"isAbstract": false,
|
|
2669
2872
|
"name": "release"
|
|
2670
2873
|
},
|
|
2874
|
+
{
|
|
2875
|
+
"kind": "Method",
|
|
2876
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#resume:member(1)",
|
|
2877
|
+
"docComment": "/**\n * Make a waiting caller active again when its hand-off ends (GENC-1737). One whose state is live resumes without `onActivate`, since it was never deactivated; after a reload it is activated from its saved state like any other agent. `lock` keeps the flow lock on it: it held it before, or another caller is still waiting further down.\n */\n",
|
|
2878
|
+
"excerptTokens": [
|
|
2879
|
+
{
|
|
2880
|
+
"kind": "Content",
|
|
2881
|
+
"text": "resume(caller: "
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
"kind": "Reference",
|
|
2885
|
+
"text": "AgentConfig",
|
|
2886
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type"
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
"kind": "Content",
|
|
2890
|
+
"text": ", lock: "
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
"kind": "Content",
|
|
2894
|
+
"text": "boolean"
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
"kind": "Content",
|
|
2898
|
+
"text": "): "
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
"kind": "Reference",
|
|
2902
|
+
"text": "Promise",
|
|
2903
|
+
"canonicalReference": "!Promise:interface"
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
"kind": "Content",
|
|
2907
|
+
"text": "<"
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
"kind": "Reference",
|
|
2911
|
+
"text": "AgentTransition",
|
|
2912
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentTransition:interface"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
"kind": "Content",
|
|
2916
|
+
"text": ">"
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"kind": "Content",
|
|
2920
|
+
"text": ";"
|
|
2921
|
+
}
|
|
2922
|
+
],
|
|
2923
|
+
"isStatic": false,
|
|
2924
|
+
"returnTypeTokenRange": {
|
|
2925
|
+
"startIndex": 5,
|
|
2926
|
+
"endIndex": 9
|
|
2927
|
+
},
|
|
2928
|
+
"releaseTag": "Beta",
|
|
2929
|
+
"isProtected": false,
|
|
2930
|
+
"overloadIndex": 1,
|
|
2931
|
+
"parameters": [
|
|
2932
|
+
{
|
|
2933
|
+
"parameterName": "caller",
|
|
2934
|
+
"parameterTypeTokenRange": {
|
|
2935
|
+
"startIndex": 1,
|
|
2936
|
+
"endIndex": 2
|
|
2937
|
+
},
|
|
2938
|
+
"isOptional": false
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"parameterName": "lock",
|
|
2942
|
+
"parameterTypeTokenRange": {
|
|
2943
|
+
"startIndex": 3,
|
|
2944
|
+
"endIndex": 4
|
|
2945
|
+
},
|
|
2946
|
+
"isOptional": false
|
|
2947
|
+
}
|
|
2948
|
+
],
|
|
2949
|
+
"isOptional": false,
|
|
2950
|
+
"isAbstract": false,
|
|
2951
|
+
"name": "resume"
|
|
2952
|
+
},
|
|
2671
2953
|
{
|
|
2672
2954
|
"kind": "Method",
|
|
2673
2955
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#setFlowOwner:member(1)",
|
|
@@ -2716,6 +2998,70 @@
|
|
|
2716
2998
|
"isAbstract": false,
|
|
2717
2999
|
"name": "setFlowOwner"
|
|
2718
3000
|
},
|
|
3001
|
+
{
|
|
3002
|
+
"kind": "Method",
|
|
3003
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#setHandOffData:member(1)",
|
|
3004
|
+
"docComment": "/**\n * Record the `data` a hand-off activated `agentName` with, or restore it; `undefined` drops it.\n */\n",
|
|
3005
|
+
"excerptTokens": [
|
|
3006
|
+
{
|
|
3007
|
+
"kind": "Content",
|
|
3008
|
+
"text": "setHandOffData(agentName: "
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
"kind": "Content",
|
|
3012
|
+
"text": "string"
|
|
3013
|
+
},
|
|
3014
|
+
{
|
|
3015
|
+
"kind": "Content",
|
|
3016
|
+
"text": ", data: "
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"kind": "Content",
|
|
3020
|
+
"text": "unknown"
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"kind": "Content",
|
|
3024
|
+
"text": "): "
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"kind": "Content",
|
|
3028
|
+
"text": "void"
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"kind": "Content",
|
|
3032
|
+
"text": ";"
|
|
3033
|
+
}
|
|
3034
|
+
],
|
|
3035
|
+
"isStatic": false,
|
|
3036
|
+
"returnTypeTokenRange": {
|
|
3037
|
+
"startIndex": 5,
|
|
3038
|
+
"endIndex": 6
|
|
3039
|
+
},
|
|
3040
|
+
"releaseTag": "Beta",
|
|
3041
|
+
"isProtected": false,
|
|
3042
|
+
"overloadIndex": 1,
|
|
3043
|
+
"parameters": [
|
|
3044
|
+
{
|
|
3045
|
+
"parameterName": "agentName",
|
|
3046
|
+
"parameterTypeTokenRange": {
|
|
3047
|
+
"startIndex": 1,
|
|
3048
|
+
"endIndex": 2
|
|
3049
|
+
},
|
|
3050
|
+
"isOptional": false
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
"parameterName": "data",
|
|
3054
|
+
"parameterTypeTokenRange": {
|
|
3055
|
+
"startIndex": 3,
|
|
3056
|
+
"endIndex": 4
|
|
3057
|
+
},
|
|
3058
|
+
"isOptional": false
|
|
3059
|
+
}
|
|
3060
|
+
],
|
|
3061
|
+
"isOptional": false,
|
|
3062
|
+
"isAbstract": false,
|
|
3063
|
+
"name": "setHandOffData"
|
|
3064
|
+
},
|
|
2719
3065
|
{
|
|
2720
3066
|
"kind": "Method",
|
|
2721
3067
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#setPinned:member(1)",
|
|
@@ -3170,7 +3516,7 @@
|
|
|
3170
3516
|
},
|
|
3171
3517
|
{
|
|
3172
3518
|
"kind": "Content",
|
|
3173
|
-
"text": "{\n readonly SessionCleared: \"session-cleared\";\n readonly ChatHeaderMouseDown: \"chat-header-mousedown\";\n}"
|
|
3519
|
+
"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}"
|
|
3174
3520
|
}
|
|
3175
3521
|
],
|
|
3176
3522
|
"fileUrlPath": "src/main/main.types.ts",
|
|
@@ -4343,6 +4689,72 @@
|
|
|
4343
4689
|
"parameters": [],
|
|
4344
4690
|
"name": "getFlowOwner"
|
|
4345
4691
|
},
|
|
4692
|
+
{
|
|
4693
|
+
"kind": "MethodSignature",
|
|
4694
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getHandOffData:member(1)",
|
|
4695
|
+
"docComment": "/**\n * The `data` each hand-off target was activated with, by name, for the agents a reload resumes: the flow owner and the callers waiting in a hand-off. See the tool context's `handOffData`.\n *\n * @beta\n */\n",
|
|
4696
|
+
"excerptTokens": [
|
|
4697
|
+
{
|
|
4698
|
+
"kind": "Content",
|
|
4699
|
+
"text": "getHandOffData?(): "
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
"kind": "Reference",
|
|
4703
|
+
"text": "Record",
|
|
4704
|
+
"canonicalReference": "!Record:type"
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
"kind": "Content",
|
|
4708
|
+
"text": "<string, unknown>"
|
|
4709
|
+
},
|
|
4710
|
+
{
|
|
4711
|
+
"kind": "Content",
|
|
4712
|
+
"text": ";"
|
|
4713
|
+
}
|
|
4714
|
+
],
|
|
4715
|
+
"isOptional": true,
|
|
4716
|
+
"returnTypeTokenRange": {
|
|
4717
|
+
"startIndex": 1,
|
|
4718
|
+
"endIndex": 3
|
|
4719
|
+
},
|
|
4720
|
+
"releaseTag": "Beta",
|
|
4721
|
+
"overloadIndex": 1,
|
|
4722
|
+
"parameters": [],
|
|
4723
|
+
"name": "getHandOffData"
|
|
4724
|
+
},
|
|
4725
|
+
{
|
|
4726
|
+
"kind": "MethodSignature",
|
|
4727
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getHandOffStack:member(1)",
|
|
4728
|
+
"docComment": "/**\n * The hand-offs in progress, oldest first, to save with the session (GENC-1737). Copies: changing them changes nothing.\n *\n * @beta\n */\n",
|
|
4729
|
+
"excerptTokens": [
|
|
4730
|
+
{
|
|
4731
|
+
"kind": "Content",
|
|
4732
|
+
"text": "getHandOffStack?(): "
|
|
4733
|
+
},
|
|
4734
|
+
{
|
|
4735
|
+
"kind": "Reference",
|
|
4736
|
+
"text": "HandOffFrame",
|
|
4737
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
4738
|
+
},
|
|
4739
|
+
{
|
|
4740
|
+
"kind": "Content",
|
|
4741
|
+
"text": "[]"
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
"kind": "Content",
|
|
4745
|
+
"text": ";"
|
|
4746
|
+
}
|
|
4747
|
+
],
|
|
4748
|
+
"isOptional": true,
|
|
4749
|
+
"returnTypeTokenRange": {
|
|
4750
|
+
"startIndex": 1,
|
|
4751
|
+
"endIndex": 3
|
|
4752
|
+
},
|
|
4753
|
+
"releaseTag": "Beta",
|
|
4754
|
+
"overloadIndex": 1,
|
|
4755
|
+
"parameters": [],
|
|
4756
|
+
"name": "getHandOffStack"
|
|
4757
|
+
},
|
|
4346
4758
|
{
|
|
4347
4759
|
"kind": "MethodSignature",
|
|
4348
4760
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getHistoryForPersistence:member(1)",
|
|
@@ -5173,6 +5585,149 @@
|
|
|
5173
5585
|
],
|
|
5174
5586
|
"name": "restoreCondensePolicies"
|
|
5175
5587
|
},
|
|
5588
|
+
{
|
|
5589
|
+
"kind": "MethodSignature",
|
|
5590
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreHandOffData:member(1)",
|
|
5591
|
+
"docComment": "/**\n * Restore what {@link AiDriver.getHandOffData} saved, before the hand-off stack. Nothing comes back from a frozen (`interrupted`) session, whose flow does not resume.\n *\n * @beta\n */\n",
|
|
5592
|
+
"excerptTokens": [
|
|
5593
|
+
{
|
|
5594
|
+
"kind": "Content",
|
|
5595
|
+
"text": "restoreHandOffData?(saved: "
|
|
5596
|
+
},
|
|
5597
|
+
{
|
|
5598
|
+
"kind": "Content",
|
|
5599
|
+
"text": "unknown"
|
|
5600
|
+
},
|
|
5601
|
+
{
|
|
5602
|
+
"kind": "Content",
|
|
5603
|
+
"text": ", interrupted: "
|
|
5604
|
+
},
|
|
5605
|
+
{
|
|
5606
|
+
"kind": "Content",
|
|
5607
|
+
"text": "boolean"
|
|
5608
|
+
},
|
|
5609
|
+
{
|
|
5610
|
+
"kind": "Content",
|
|
5611
|
+
"text": "): "
|
|
5612
|
+
},
|
|
5613
|
+
{
|
|
5614
|
+
"kind": "Content",
|
|
5615
|
+
"text": "void"
|
|
5616
|
+
},
|
|
5617
|
+
{
|
|
5618
|
+
"kind": "Content",
|
|
5619
|
+
"text": ";"
|
|
5620
|
+
}
|
|
5621
|
+
],
|
|
5622
|
+
"isOptional": true,
|
|
5623
|
+
"returnTypeTokenRange": {
|
|
5624
|
+
"startIndex": 5,
|
|
5625
|
+
"endIndex": 6
|
|
5626
|
+
},
|
|
5627
|
+
"releaseTag": "Beta",
|
|
5628
|
+
"overloadIndex": 1,
|
|
5629
|
+
"parameters": [
|
|
5630
|
+
{
|
|
5631
|
+
"parameterName": "saved",
|
|
5632
|
+
"parameterTypeTokenRange": {
|
|
5633
|
+
"startIndex": 1,
|
|
5634
|
+
"endIndex": 2
|
|
5635
|
+
},
|
|
5636
|
+
"isOptional": false
|
|
5637
|
+
},
|
|
5638
|
+
{
|
|
5639
|
+
"parameterName": "interrupted",
|
|
5640
|
+
"parameterTypeTokenRange": {
|
|
5641
|
+
"startIndex": 3,
|
|
5642
|
+
"endIndex": 4
|
|
5643
|
+
},
|
|
5644
|
+
"isOptional": false
|
|
5645
|
+
}
|
|
5646
|
+
],
|
|
5647
|
+
"name": "restoreHandOffData"
|
|
5648
|
+
},
|
|
5649
|
+
{
|
|
5650
|
+
"kind": "MethodSignature",
|
|
5651
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreHandOffStack:member(1)",
|
|
5652
|
+
"docComment": "/**\n * Restore saved hand-offs, before the condense policies, against the agents configured now and the saved agent states. A frame whose caller has gone, or whose stateful caller has no saved state (`interrupted` drops them all), is unwound with `handoff-unwound`. When the top frame's target had finished, or has gone, its caller is due to resume: `resume` names it and the note its resumed turn needs, and {@link AiDriver.resumeRestoredFlow} hands back.\n *\n * @beta\n */\n",
|
|
5653
|
+
"excerptTokens": [
|
|
5654
|
+
{
|
|
5655
|
+
"kind": "Content",
|
|
5656
|
+
"text": "restoreHandOffStack?(saved: "
|
|
5657
|
+
},
|
|
5658
|
+
{
|
|
5659
|
+
"kind": "Content",
|
|
5660
|
+
"text": "unknown"
|
|
5661
|
+
},
|
|
5662
|
+
{
|
|
5663
|
+
"kind": "Content",
|
|
5664
|
+
"text": ", savedStates: "
|
|
5665
|
+
},
|
|
5666
|
+
{
|
|
5667
|
+
"kind": "Reference",
|
|
5668
|
+
"text": "Record",
|
|
5669
|
+
"canonicalReference": "!Record:type"
|
|
5670
|
+
},
|
|
5671
|
+
{
|
|
5672
|
+
"kind": "Content",
|
|
5673
|
+
"text": "<string, unknown>"
|
|
5674
|
+
},
|
|
5675
|
+
{
|
|
5676
|
+
"kind": "Content",
|
|
5677
|
+
"text": ", interrupted: "
|
|
5678
|
+
},
|
|
5679
|
+
{
|
|
5680
|
+
"kind": "Content",
|
|
5681
|
+
"text": "boolean"
|
|
5682
|
+
},
|
|
5683
|
+
{
|
|
5684
|
+
"kind": "Content",
|
|
5685
|
+
"text": "): "
|
|
5686
|
+
},
|
|
5687
|
+
{
|
|
5688
|
+
"kind": "Content",
|
|
5689
|
+
"text": "{\n resume?: {\n agent: string;\n note: string;\n };\n }"
|
|
5690
|
+
},
|
|
5691
|
+
{
|
|
5692
|
+
"kind": "Content",
|
|
5693
|
+
"text": ";"
|
|
5694
|
+
}
|
|
5695
|
+
],
|
|
5696
|
+
"isOptional": true,
|
|
5697
|
+
"returnTypeTokenRange": {
|
|
5698
|
+
"startIndex": 8,
|
|
5699
|
+
"endIndex": 9
|
|
5700
|
+
},
|
|
5701
|
+
"releaseTag": "Beta",
|
|
5702
|
+
"overloadIndex": 1,
|
|
5703
|
+
"parameters": [
|
|
5704
|
+
{
|
|
5705
|
+
"parameterName": "saved",
|
|
5706
|
+
"parameterTypeTokenRange": {
|
|
5707
|
+
"startIndex": 1,
|
|
5708
|
+
"endIndex": 2
|
|
5709
|
+
},
|
|
5710
|
+
"isOptional": false
|
|
5711
|
+
},
|
|
5712
|
+
{
|
|
5713
|
+
"parameterName": "savedStates",
|
|
5714
|
+
"parameterTypeTokenRange": {
|
|
5715
|
+
"startIndex": 3,
|
|
5716
|
+
"endIndex": 5
|
|
5717
|
+
},
|
|
5718
|
+
"isOptional": false
|
|
5719
|
+
},
|
|
5720
|
+
{
|
|
5721
|
+
"parameterName": "interrupted",
|
|
5722
|
+
"parameterTypeTokenRange": {
|
|
5723
|
+
"startIndex": 6,
|
|
5724
|
+
"endIndex": 7
|
|
5725
|
+
},
|
|
5726
|
+
"isOptional": false
|
|
5727
|
+
}
|
|
5728
|
+
],
|
|
5729
|
+
"name": "restoreHandOffStack"
|
|
5730
|
+
},
|
|
5176
5731
|
{
|
|
5177
5732
|
"kind": "MethodSignature",
|
|
5178
5733
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoint:member(1)",
|
|
@@ -5450,6 +6005,39 @@
|
|
|
5450
6005
|
],
|
|
5451
6006
|
"name": "sendMessage"
|
|
5452
6007
|
},
|
|
6008
|
+
{
|
|
6009
|
+
"kind": "MethodSignature",
|
|
6010
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#serializeWaitingCallers:member(1)",
|
|
6011
|
+
"docComment": "/**\n * The saved state of each caller waiting in a hand-off whose state is live, by name, from its `serialize`. Saved with the active agent's, so a reload can resume the caller.\n *\n * @beta\n */\n",
|
|
6012
|
+
"excerptTokens": [
|
|
6013
|
+
{
|
|
6014
|
+
"kind": "Content",
|
|
6015
|
+
"text": "serializeWaitingCallers?(): "
|
|
6016
|
+
},
|
|
6017
|
+
{
|
|
6018
|
+
"kind": "Reference",
|
|
6019
|
+
"text": "Record",
|
|
6020
|
+
"canonicalReference": "!Record:type"
|
|
6021
|
+
},
|
|
6022
|
+
{
|
|
6023
|
+
"kind": "Content",
|
|
6024
|
+
"text": "<string, unknown>"
|
|
6025
|
+
},
|
|
6026
|
+
{
|
|
6027
|
+
"kind": "Content",
|
|
6028
|
+
"text": ";"
|
|
6029
|
+
}
|
|
6030
|
+
],
|
|
6031
|
+
"isOptional": true,
|
|
6032
|
+
"returnTypeTokenRange": {
|
|
6033
|
+
"startIndex": 1,
|
|
6034
|
+
"endIndex": 3
|
|
6035
|
+
},
|
|
6036
|
+
"releaseTag": "Beta",
|
|
6037
|
+
"overloadIndex": 1,
|
|
6038
|
+
"parameters": [],
|
|
6039
|
+
"name": "serializeWaitingCallers"
|
|
6040
|
+
},
|
|
5453
6041
|
{
|
|
5454
6042
|
"kind": "MethodSignature",
|
|
5455
6043
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#setContextGuard:member(1)",
|
|
@@ -5585,6 +6173,70 @@
|
|
|
5585
6173
|
}
|
|
5586
6174
|
],
|
|
5587
6175
|
"name": "setPinnedAgent"
|
|
6176
|
+
},
|
|
6177
|
+
{
|
|
6178
|
+
"kind": "MethodSignature",
|
|
6179
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#unwindHandOffs:member(1)",
|
|
6180
|
+
"docComment": "/**\n * End every hand-off without a hand-back, newest first: the chat was cleared, or the agents changed. Each raises `handoff-unwound`; on Clear a waiting caller's `onHandOffReturn` is told.\n *\n * @beta\n */\n",
|
|
6181
|
+
"excerptTokens": [
|
|
6182
|
+
{
|
|
6183
|
+
"kind": "Content",
|
|
6184
|
+
"text": "unwindHandOffs?(kind: "
|
|
6185
|
+
},
|
|
6186
|
+
{
|
|
6187
|
+
"kind": "Reference",
|
|
6188
|
+
"text": "Extract",
|
|
6189
|
+
"canonicalReference": "!Extract:type"
|
|
6190
|
+
},
|
|
6191
|
+
{
|
|
6192
|
+
"kind": "Content",
|
|
6193
|
+
"text": "<"
|
|
6194
|
+
},
|
|
6195
|
+
{
|
|
6196
|
+
"kind": "Reference",
|
|
6197
|
+
"text": "HandOffOutcomeKind",
|
|
6198
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type"
|
|
6199
|
+
},
|
|
6200
|
+
{
|
|
6201
|
+
"kind": "Content",
|
|
6202
|
+
"text": ", 'cleared' | 'state-lost'>"
|
|
6203
|
+
},
|
|
6204
|
+
{
|
|
6205
|
+
"kind": "Content",
|
|
6206
|
+
"text": "): "
|
|
6207
|
+
},
|
|
6208
|
+
{
|
|
6209
|
+
"kind": "Reference",
|
|
6210
|
+
"text": "Promise",
|
|
6211
|
+
"canonicalReference": "!Promise:interface"
|
|
6212
|
+
},
|
|
6213
|
+
{
|
|
6214
|
+
"kind": "Content",
|
|
6215
|
+
"text": "<void>"
|
|
6216
|
+
},
|
|
6217
|
+
{
|
|
6218
|
+
"kind": "Content",
|
|
6219
|
+
"text": ";"
|
|
6220
|
+
}
|
|
6221
|
+
],
|
|
6222
|
+
"isOptional": true,
|
|
6223
|
+
"returnTypeTokenRange": {
|
|
6224
|
+
"startIndex": 6,
|
|
6225
|
+
"endIndex": 8
|
|
6226
|
+
},
|
|
6227
|
+
"releaseTag": "Beta",
|
|
6228
|
+
"overloadIndex": 1,
|
|
6229
|
+
"parameters": [
|
|
6230
|
+
{
|
|
6231
|
+
"parameterName": "kind",
|
|
6232
|
+
"parameterTypeTokenRange": {
|
|
6233
|
+
"startIndex": 1,
|
|
6234
|
+
"endIndex": 5
|
|
6235
|
+
},
|
|
6236
|
+
"isOptional": false
|
|
6237
|
+
}
|
|
6238
|
+
],
|
|
6239
|
+
"name": "unwindHandOffs"
|
|
5588
6240
|
}
|
|
5589
6241
|
],
|
|
5590
6242
|
"extendsTokenRanges": [
|
|
@@ -5787,6 +6439,129 @@
|
|
|
5787
6439
|
"endIndex": 3
|
|
5788
6440
|
}
|
|
5789
6441
|
},
|
|
6442
|
+
{
|
|
6443
|
+
"kind": "PropertySignature",
|
|
6444
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"handoff-returned\":member",
|
|
6445
|
+
"docComment": "/**\n * A hand-off ended and its caller is active again; `detail.outcome` says how.\n */\n",
|
|
6446
|
+
"excerptTokens": [
|
|
6447
|
+
{
|
|
6448
|
+
"kind": "Content",
|
|
6449
|
+
"text": "'handoff-returned': "
|
|
6450
|
+
},
|
|
6451
|
+
{
|
|
6452
|
+
"kind": "Reference",
|
|
6453
|
+
"text": "CustomEvent",
|
|
6454
|
+
"canonicalReference": "!CustomEvent:interface"
|
|
6455
|
+
},
|
|
6456
|
+
{
|
|
6457
|
+
"kind": "Content",
|
|
6458
|
+
"text": "<"
|
|
6459
|
+
},
|
|
6460
|
+
{
|
|
6461
|
+
"kind": "Reference",
|
|
6462
|
+
"text": "HandOffFrame",
|
|
6463
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
6464
|
+
},
|
|
6465
|
+
{
|
|
6466
|
+
"kind": "Content",
|
|
6467
|
+
"text": ">"
|
|
6468
|
+
},
|
|
6469
|
+
{
|
|
6470
|
+
"kind": "Content",
|
|
6471
|
+
"text": ";"
|
|
6472
|
+
}
|
|
6473
|
+
],
|
|
6474
|
+
"isReadonly": false,
|
|
6475
|
+
"isOptional": false,
|
|
6476
|
+
"releaseTag": "Beta",
|
|
6477
|
+
"name": "\"handoff-returned\"",
|
|
6478
|
+
"propertyTypeTokenRange": {
|
|
6479
|
+
"startIndex": 1,
|
|
6480
|
+
"endIndex": 5
|
|
6481
|
+
}
|
|
6482
|
+
},
|
|
6483
|
+
{
|
|
6484
|
+
"kind": "PropertySignature",
|
|
6485
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"handoff-started\":member",
|
|
6486
|
+
"docComment": "/**\n * A hand-off started: its target is now active (GENC-1737).\n */\n",
|
|
6487
|
+
"excerptTokens": [
|
|
6488
|
+
{
|
|
6489
|
+
"kind": "Content",
|
|
6490
|
+
"text": "'handoff-started': "
|
|
6491
|
+
},
|
|
6492
|
+
{
|
|
6493
|
+
"kind": "Reference",
|
|
6494
|
+
"text": "CustomEvent",
|
|
6495
|
+
"canonicalReference": "!CustomEvent:interface"
|
|
6496
|
+
},
|
|
6497
|
+
{
|
|
6498
|
+
"kind": "Content",
|
|
6499
|
+
"text": "<"
|
|
6500
|
+
},
|
|
6501
|
+
{
|
|
6502
|
+
"kind": "Reference",
|
|
6503
|
+
"text": "HandOffFrame",
|
|
6504
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
6505
|
+
},
|
|
6506
|
+
{
|
|
6507
|
+
"kind": "Content",
|
|
6508
|
+
"text": ">"
|
|
6509
|
+
},
|
|
6510
|
+
{
|
|
6511
|
+
"kind": "Content",
|
|
6512
|
+
"text": ";"
|
|
6513
|
+
}
|
|
6514
|
+
],
|
|
6515
|
+
"isReadonly": false,
|
|
6516
|
+
"isOptional": false,
|
|
6517
|
+
"releaseTag": "Beta",
|
|
6518
|
+
"name": "\"handoff-started\"",
|
|
6519
|
+
"propertyTypeTokenRange": {
|
|
6520
|
+
"startIndex": 1,
|
|
6521
|
+
"endIndex": 5
|
|
6522
|
+
}
|
|
6523
|
+
},
|
|
6524
|
+
{
|
|
6525
|
+
"kind": "PropertySignature",
|
|
6526
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"handoff-unwound\":member",
|
|
6527
|
+
"docComment": "/**\n * A hand-off ended with no hand-back: cleared, or found unresumable.\n */\n",
|
|
6528
|
+
"excerptTokens": [
|
|
6529
|
+
{
|
|
6530
|
+
"kind": "Content",
|
|
6531
|
+
"text": "'handoff-unwound': "
|
|
6532
|
+
},
|
|
6533
|
+
{
|
|
6534
|
+
"kind": "Reference",
|
|
6535
|
+
"text": "CustomEvent",
|
|
6536
|
+
"canonicalReference": "!CustomEvent:interface"
|
|
6537
|
+
},
|
|
6538
|
+
{
|
|
6539
|
+
"kind": "Content",
|
|
6540
|
+
"text": "<"
|
|
6541
|
+
},
|
|
6542
|
+
{
|
|
6543
|
+
"kind": "Reference",
|
|
6544
|
+
"text": "HandOffFrame",
|
|
6545
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
6546
|
+
},
|
|
6547
|
+
{
|
|
6548
|
+
"kind": "Content",
|
|
6549
|
+
"text": ">"
|
|
6550
|
+
},
|
|
6551
|
+
{
|
|
6552
|
+
"kind": "Content",
|
|
6553
|
+
"text": ";"
|
|
6554
|
+
}
|
|
6555
|
+
],
|
|
6556
|
+
"isReadonly": false,
|
|
6557
|
+
"isOptional": false,
|
|
6558
|
+
"releaseTag": "Beta",
|
|
6559
|
+
"name": "\"handoff-unwound\"",
|
|
6560
|
+
"propertyTypeTokenRange": {
|
|
6561
|
+
"startIndex": 1,
|
|
6562
|
+
"endIndex": 5
|
|
6563
|
+
}
|
|
6564
|
+
},
|
|
5790
6565
|
{
|
|
5791
6566
|
"kind": "PropertySignature",
|
|
5792
6567
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"history-updated\":member",
|
|
@@ -11148,6 +11923,78 @@
|
|
|
11148
11923
|
"isAbstract": false,
|
|
11149
11924
|
"name": "getFlowOwner"
|
|
11150
11925
|
},
|
|
11926
|
+
{
|
|
11927
|
+
"kind": "Method",
|
|
11928
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getHandOffData:member(1)",
|
|
11929
|
+
"docComment": "",
|
|
11930
|
+
"excerptTokens": [
|
|
11931
|
+
{
|
|
11932
|
+
"kind": "Content",
|
|
11933
|
+
"text": "getHandOffData(): "
|
|
11934
|
+
},
|
|
11935
|
+
{
|
|
11936
|
+
"kind": "Reference",
|
|
11937
|
+
"text": "Record",
|
|
11938
|
+
"canonicalReference": "!Record:type"
|
|
11939
|
+
},
|
|
11940
|
+
{
|
|
11941
|
+
"kind": "Content",
|
|
11942
|
+
"text": "<string, unknown>"
|
|
11943
|
+
},
|
|
11944
|
+
{
|
|
11945
|
+
"kind": "Content",
|
|
11946
|
+
"text": ";"
|
|
11947
|
+
}
|
|
11948
|
+
],
|
|
11949
|
+
"isStatic": false,
|
|
11950
|
+
"returnTypeTokenRange": {
|
|
11951
|
+
"startIndex": 1,
|
|
11952
|
+
"endIndex": 3
|
|
11953
|
+
},
|
|
11954
|
+
"releaseTag": "Beta",
|
|
11955
|
+
"isProtected": false,
|
|
11956
|
+
"overloadIndex": 1,
|
|
11957
|
+
"parameters": [],
|
|
11958
|
+
"isOptional": false,
|
|
11959
|
+
"isAbstract": false,
|
|
11960
|
+
"name": "getHandOffData"
|
|
11961
|
+
},
|
|
11962
|
+
{
|
|
11963
|
+
"kind": "Method",
|
|
11964
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getHandOffStack:member(1)",
|
|
11965
|
+
"docComment": "",
|
|
11966
|
+
"excerptTokens": [
|
|
11967
|
+
{
|
|
11968
|
+
"kind": "Content",
|
|
11969
|
+
"text": "getHandOffStack(): "
|
|
11970
|
+
},
|
|
11971
|
+
{
|
|
11972
|
+
"kind": "Reference",
|
|
11973
|
+
"text": "HandOffFrame",
|
|
11974
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
11975
|
+
},
|
|
11976
|
+
{
|
|
11977
|
+
"kind": "Content",
|
|
11978
|
+
"text": "[]"
|
|
11979
|
+
},
|
|
11980
|
+
{
|
|
11981
|
+
"kind": "Content",
|
|
11982
|
+
"text": ";"
|
|
11983
|
+
}
|
|
11984
|
+
],
|
|
11985
|
+
"isStatic": false,
|
|
11986
|
+
"returnTypeTokenRange": {
|
|
11987
|
+
"startIndex": 1,
|
|
11988
|
+
"endIndex": 3
|
|
11989
|
+
},
|
|
11990
|
+
"releaseTag": "Beta",
|
|
11991
|
+
"isProtected": false,
|
|
11992
|
+
"overloadIndex": 1,
|
|
11993
|
+
"parameters": [],
|
|
11994
|
+
"isOptional": false,
|
|
11995
|
+
"isAbstract": false,
|
|
11996
|
+
"name": "getHandOffStack"
|
|
11997
|
+
},
|
|
11151
11998
|
{
|
|
11152
11999
|
"kind": "Method",
|
|
11153
12000
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getHistoryForPersistence:member(1)",
|
|
@@ -12104,6 +12951,155 @@
|
|
|
12104
12951
|
"isAbstract": false,
|
|
12105
12952
|
"name": "restoreCondensePolicies"
|
|
12106
12953
|
},
|
|
12954
|
+
{
|
|
12955
|
+
"kind": "Method",
|
|
12956
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreHandOffData:member(1)",
|
|
12957
|
+
"docComment": "",
|
|
12958
|
+
"excerptTokens": [
|
|
12959
|
+
{
|
|
12960
|
+
"kind": "Content",
|
|
12961
|
+
"text": "restoreHandOffData(saved: "
|
|
12962
|
+
},
|
|
12963
|
+
{
|
|
12964
|
+
"kind": "Content",
|
|
12965
|
+
"text": "unknown"
|
|
12966
|
+
},
|
|
12967
|
+
{
|
|
12968
|
+
"kind": "Content",
|
|
12969
|
+
"text": ", interrupted: "
|
|
12970
|
+
},
|
|
12971
|
+
{
|
|
12972
|
+
"kind": "Content",
|
|
12973
|
+
"text": "boolean"
|
|
12974
|
+
},
|
|
12975
|
+
{
|
|
12976
|
+
"kind": "Content",
|
|
12977
|
+
"text": "): "
|
|
12978
|
+
},
|
|
12979
|
+
{
|
|
12980
|
+
"kind": "Content",
|
|
12981
|
+
"text": "void"
|
|
12982
|
+
},
|
|
12983
|
+
{
|
|
12984
|
+
"kind": "Content",
|
|
12985
|
+
"text": ";"
|
|
12986
|
+
}
|
|
12987
|
+
],
|
|
12988
|
+
"isStatic": false,
|
|
12989
|
+
"returnTypeTokenRange": {
|
|
12990
|
+
"startIndex": 5,
|
|
12991
|
+
"endIndex": 6
|
|
12992
|
+
},
|
|
12993
|
+
"releaseTag": "Beta",
|
|
12994
|
+
"isProtected": false,
|
|
12995
|
+
"overloadIndex": 1,
|
|
12996
|
+
"parameters": [
|
|
12997
|
+
{
|
|
12998
|
+
"parameterName": "saved",
|
|
12999
|
+
"parameterTypeTokenRange": {
|
|
13000
|
+
"startIndex": 1,
|
|
13001
|
+
"endIndex": 2
|
|
13002
|
+
},
|
|
13003
|
+
"isOptional": false
|
|
13004
|
+
},
|
|
13005
|
+
{
|
|
13006
|
+
"parameterName": "interrupted",
|
|
13007
|
+
"parameterTypeTokenRange": {
|
|
13008
|
+
"startIndex": 3,
|
|
13009
|
+
"endIndex": 4
|
|
13010
|
+
},
|
|
13011
|
+
"isOptional": false
|
|
13012
|
+
}
|
|
13013
|
+
],
|
|
13014
|
+
"isOptional": false,
|
|
13015
|
+
"isAbstract": false,
|
|
13016
|
+
"name": "restoreHandOffData"
|
|
13017
|
+
},
|
|
13018
|
+
{
|
|
13019
|
+
"kind": "Method",
|
|
13020
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreHandOffStack:member(1)",
|
|
13021
|
+
"docComment": "",
|
|
13022
|
+
"excerptTokens": [
|
|
13023
|
+
{
|
|
13024
|
+
"kind": "Content",
|
|
13025
|
+
"text": "restoreHandOffStack(saved: "
|
|
13026
|
+
},
|
|
13027
|
+
{
|
|
13028
|
+
"kind": "Content",
|
|
13029
|
+
"text": "unknown"
|
|
13030
|
+
},
|
|
13031
|
+
{
|
|
13032
|
+
"kind": "Content",
|
|
13033
|
+
"text": ", savedStates: "
|
|
13034
|
+
},
|
|
13035
|
+
{
|
|
13036
|
+
"kind": "Reference",
|
|
13037
|
+
"text": "Record",
|
|
13038
|
+
"canonicalReference": "!Record:type"
|
|
13039
|
+
},
|
|
13040
|
+
{
|
|
13041
|
+
"kind": "Content",
|
|
13042
|
+
"text": "<string, unknown>"
|
|
13043
|
+
},
|
|
13044
|
+
{
|
|
13045
|
+
"kind": "Content",
|
|
13046
|
+
"text": ", interrupted: "
|
|
13047
|
+
},
|
|
13048
|
+
{
|
|
13049
|
+
"kind": "Content",
|
|
13050
|
+
"text": "boolean"
|
|
13051
|
+
},
|
|
13052
|
+
{
|
|
13053
|
+
"kind": "Content",
|
|
13054
|
+
"text": "): "
|
|
13055
|
+
},
|
|
13056
|
+
{
|
|
13057
|
+
"kind": "Content",
|
|
13058
|
+
"text": "{\n resume?: {\n agent: string;\n note: string;\n };\n }"
|
|
13059
|
+
},
|
|
13060
|
+
{
|
|
13061
|
+
"kind": "Content",
|
|
13062
|
+
"text": ";"
|
|
13063
|
+
}
|
|
13064
|
+
],
|
|
13065
|
+
"isStatic": false,
|
|
13066
|
+
"returnTypeTokenRange": {
|
|
13067
|
+
"startIndex": 8,
|
|
13068
|
+
"endIndex": 9
|
|
13069
|
+
},
|
|
13070
|
+
"releaseTag": "Beta",
|
|
13071
|
+
"isProtected": false,
|
|
13072
|
+
"overloadIndex": 1,
|
|
13073
|
+
"parameters": [
|
|
13074
|
+
{
|
|
13075
|
+
"parameterName": "saved",
|
|
13076
|
+
"parameterTypeTokenRange": {
|
|
13077
|
+
"startIndex": 1,
|
|
13078
|
+
"endIndex": 2
|
|
13079
|
+
},
|
|
13080
|
+
"isOptional": false
|
|
13081
|
+
},
|
|
13082
|
+
{
|
|
13083
|
+
"parameterName": "savedStates",
|
|
13084
|
+
"parameterTypeTokenRange": {
|
|
13085
|
+
"startIndex": 3,
|
|
13086
|
+
"endIndex": 5
|
|
13087
|
+
},
|
|
13088
|
+
"isOptional": false
|
|
13089
|
+
},
|
|
13090
|
+
{
|
|
13091
|
+
"parameterName": "interrupted",
|
|
13092
|
+
"parameterTypeTokenRange": {
|
|
13093
|
+
"startIndex": 6,
|
|
13094
|
+
"endIndex": 7
|
|
13095
|
+
},
|
|
13096
|
+
"isOptional": false
|
|
13097
|
+
}
|
|
13098
|
+
],
|
|
13099
|
+
"isOptional": false,
|
|
13100
|
+
"isAbstract": false,
|
|
13101
|
+
"name": "restoreHandOffStack"
|
|
13102
|
+
},
|
|
12107
13103
|
{
|
|
12108
13104
|
"kind": "Method",
|
|
12109
13105
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreInteractionCheckpoint:member(1)",
|
|
@@ -12393,6 +13389,42 @@
|
|
|
12393
13389
|
"isAbstract": false,
|
|
12394
13390
|
"name": "sendMessage"
|
|
12395
13391
|
},
|
|
13392
|
+
{
|
|
13393
|
+
"kind": "Method",
|
|
13394
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#serializeWaitingCallers:member(1)",
|
|
13395
|
+
"docComment": "",
|
|
13396
|
+
"excerptTokens": [
|
|
13397
|
+
{
|
|
13398
|
+
"kind": "Content",
|
|
13399
|
+
"text": "serializeWaitingCallers(): "
|
|
13400
|
+
},
|
|
13401
|
+
{
|
|
13402
|
+
"kind": "Reference",
|
|
13403
|
+
"text": "Record",
|
|
13404
|
+
"canonicalReference": "!Record:type"
|
|
13405
|
+
},
|
|
13406
|
+
{
|
|
13407
|
+
"kind": "Content",
|
|
13408
|
+
"text": "<string, unknown>"
|
|
13409
|
+
},
|
|
13410
|
+
{
|
|
13411
|
+
"kind": "Content",
|
|
13412
|
+
"text": ";"
|
|
13413
|
+
}
|
|
13414
|
+
],
|
|
13415
|
+
"isStatic": false,
|
|
13416
|
+
"returnTypeTokenRange": {
|
|
13417
|
+
"startIndex": 1,
|
|
13418
|
+
"endIndex": 3
|
|
13419
|
+
},
|
|
13420
|
+
"releaseTag": "Beta",
|
|
13421
|
+
"isProtected": false,
|
|
13422
|
+
"overloadIndex": 1,
|
|
13423
|
+
"parameters": [],
|
|
13424
|
+
"isOptional": false,
|
|
13425
|
+
"isAbstract": false,
|
|
13426
|
+
"name": "serializeWaitingCallers"
|
|
13427
|
+
},
|
|
12396
13428
|
{
|
|
12397
13429
|
"kind": "Method",
|
|
12398
13430
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#setContextGuard:member(1)",
|
|
@@ -12537,6 +13569,73 @@
|
|
|
12537
13569
|
"isOptional": false,
|
|
12538
13570
|
"isAbstract": false,
|
|
12539
13571
|
"name": "setPinnedAgent"
|
|
13572
|
+
},
|
|
13573
|
+
{
|
|
13574
|
+
"kind": "Method",
|
|
13575
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#unwindHandOffs:member(1)",
|
|
13576
|
+
"docComment": "",
|
|
13577
|
+
"excerptTokens": [
|
|
13578
|
+
{
|
|
13579
|
+
"kind": "Content",
|
|
13580
|
+
"text": "unwindHandOffs(kind: "
|
|
13581
|
+
},
|
|
13582
|
+
{
|
|
13583
|
+
"kind": "Reference",
|
|
13584
|
+
"text": "Extract",
|
|
13585
|
+
"canonicalReference": "!Extract:type"
|
|
13586
|
+
},
|
|
13587
|
+
{
|
|
13588
|
+
"kind": "Content",
|
|
13589
|
+
"text": "<"
|
|
13590
|
+
},
|
|
13591
|
+
{
|
|
13592
|
+
"kind": "Reference",
|
|
13593
|
+
"text": "HandOffOutcomeKind",
|
|
13594
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type"
|
|
13595
|
+
},
|
|
13596
|
+
{
|
|
13597
|
+
"kind": "Content",
|
|
13598
|
+
"text": ", 'cleared' | 'state-lost'>"
|
|
13599
|
+
},
|
|
13600
|
+
{
|
|
13601
|
+
"kind": "Content",
|
|
13602
|
+
"text": "): "
|
|
13603
|
+
},
|
|
13604
|
+
{
|
|
13605
|
+
"kind": "Reference",
|
|
13606
|
+
"text": "Promise",
|
|
13607
|
+
"canonicalReference": "!Promise:interface"
|
|
13608
|
+
},
|
|
13609
|
+
{
|
|
13610
|
+
"kind": "Content",
|
|
13611
|
+
"text": "<void>"
|
|
13612
|
+
},
|
|
13613
|
+
{
|
|
13614
|
+
"kind": "Content",
|
|
13615
|
+
"text": ";"
|
|
13616
|
+
}
|
|
13617
|
+
],
|
|
13618
|
+
"isStatic": false,
|
|
13619
|
+
"returnTypeTokenRange": {
|
|
13620
|
+
"startIndex": 6,
|
|
13621
|
+
"endIndex": 8
|
|
13622
|
+
},
|
|
13623
|
+
"releaseTag": "Beta",
|
|
13624
|
+
"isProtected": false,
|
|
13625
|
+
"overloadIndex": 1,
|
|
13626
|
+
"parameters": [
|
|
13627
|
+
{
|
|
13628
|
+
"parameterName": "kind",
|
|
13629
|
+
"parameterTypeTokenRange": {
|
|
13630
|
+
"startIndex": 1,
|
|
13631
|
+
"endIndex": 5
|
|
13632
|
+
},
|
|
13633
|
+
"isOptional": false
|
|
13634
|
+
}
|
|
13635
|
+
],
|
|
13636
|
+
"isOptional": false,
|
|
13637
|
+
"isAbstract": false,
|
|
13638
|
+
"name": "unwindHandOffs"
|
|
12540
13639
|
}
|
|
12541
13640
|
],
|
|
12542
13641
|
"extendsTokenRange": {
|
|
@@ -13093,6 +14192,37 @@
|
|
|
13093
14192
|
"isAbstract": false,
|
|
13094
14193
|
"name": "dispose"
|
|
13095
14194
|
},
|
|
14195
|
+
{
|
|
14196
|
+
"kind": "Method",
|
|
14197
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#endSuspendedActivations:member(1)",
|
|
14198
|
+
"docComment": "/**\n * End every suspension: the hand-offs were unwound, so their callers' activations are over.\n */\n",
|
|
14199
|
+
"excerptTokens": [
|
|
14200
|
+
{
|
|
14201
|
+
"kind": "Content",
|
|
14202
|
+
"text": "endSuspendedActivations(): "
|
|
14203
|
+
},
|
|
14204
|
+
{
|
|
14205
|
+
"kind": "Content",
|
|
14206
|
+
"text": "void"
|
|
14207
|
+
},
|
|
14208
|
+
{
|
|
14209
|
+
"kind": "Content",
|
|
14210
|
+
"text": ";"
|
|
14211
|
+
}
|
|
14212
|
+
],
|
|
14213
|
+
"isStatic": false,
|
|
14214
|
+
"returnTypeTokenRange": {
|
|
14215
|
+
"startIndex": 1,
|
|
14216
|
+
"endIndex": 2
|
|
14217
|
+
},
|
|
14218
|
+
"releaseTag": "Public",
|
|
14219
|
+
"isProtected": false,
|
|
14220
|
+
"overloadIndex": 1,
|
|
14221
|
+
"parameters": [],
|
|
14222
|
+
"isOptional": false,
|
|
14223
|
+
"isAbstract": false,
|
|
14224
|
+
"name": "endSuspendedActivations"
|
|
14225
|
+
},
|
|
13096
14226
|
{
|
|
13097
14227
|
"kind": "Method",
|
|
13098
14228
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getActiveAgent:member(1)",
|
|
@@ -13416,30 +14546,21 @@
|
|
|
13416
14546
|
},
|
|
13417
14547
|
{
|
|
13418
14548
|
"kind": "Method",
|
|
13419
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
13420
|
-
"docComment": "",
|
|
14549
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHandOffCompletion:member(1)",
|
|
14550
|
+
"docComment": "/**\n * What `completeHandOff` handed back in the most recent call, if it was called.\n */\n",
|
|
13421
14551
|
"excerptTokens": [
|
|
13422
14552
|
{
|
|
13423
14553
|
"kind": "Content",
|
|
13424
|
-
"text": "
|
|
13425
|
-
},
|
|
13426
|
-
{
|
|
13427
|
-
"kind": "Reference",
|
|
13428
|
-
"text": "ReadonlyArray",
|
|
13429
|
-
"canonicalReference": "!ReadonlyArray:interface"
|
|
13430
|
-
},
|
|
13431
|
-
{
|
|
13432
|
-
"kind": "Content",
|
|
13433
|
-
"text": "<"
|
|
14554
|
+
"text": "getHandOffCompletion(): "
|
|
13434
14555
|
},
|
|
13435
14556
|
{
|
|
13436
14557
|
"kind": "Reference",
|
|
13437
|
-
"text": "
|
|
13438
|
-
"canonicalReference": "@genesislcap/foundation-ai!
|
|
14558
|
+
"text": "HandOffCompletion",
|
|
14559
|
+
"canonicalReference": "@genesislcap/foundation-ai!HandOffCompletion:interface"
|
|
13439
14560
|
},
|
|
13440
14561
|
{
|
|
13441
14562
|
"kind": "Content",
|
|
13442
|
-
"text": "
|
|
14563
|
+
"text": " | undefined"
|
|
13443
14564
|
},
|
|
13444
14565
|
{
|
|
13445
14566
|
"kind": "Content",
|
|
@@ -13449,7 +14570,7 @@
|
|
|
13449
14570
|
"isStatic": false,
|
|
13450
14571
|
"returnTypeTokenRange": {
|
|
13451
14572
|
"startIndex": 1,
|
|
13452
|
-
"endIndex":
|
|
14573
|
+
"endIndex": 3
|
|
13453
14574
|
},
|
|
13454
14575
|
"releaseTag": "Public",
|
|
13455
14576
|
"isProtected": false,
|
|
@@ -13457,25 +14578,25 @@
|
|
|
13457
14578
|
"parameters": [],
|
|
13458
14579
|
"isOptional": false,
|
|
13459
14580
|
"isAbstract": false,
|
|
13460
|
-
"name": "
|
|
14581
|
+
"name": "getHandOffCompletion"
|
|
13461
14582
|
},
|
|
13462
14583
|
{
|
|
13463
14584
|
"kind": "Method",
|
|
13464
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
13465
|
-
"docComment": "/**\n * The
|
|
14585
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHandOffRequest:member(1)",
|
|
14586
|
+
"docComment": "/**\n * The `handOff` the most recent call accepted, if any (GENC-1737).\n */\n",
|
|
13466
14587
|
"excerptTokens": [
|
|
13467
14588
|
{
|
|
13468
14589
|
"kind": "Content",
|
|
13469
|
-
"text": "
|
|
14590
|
+
"text": "getHandOffRequest(): "
|
|
13470
14591
|
},
|
|
13471
14592
|
{
|
|
13472
14593
|
"kind": "Reference",
|
|
13473
|
-
"text": "
|
|
13474
|
-
"canonicalReference": "@genesislcap/foundation-ai!
|
|
14594
|
+
"text": "HandOffRequest",
|
|
14595
|
+
"canonicalReference": "@genesislcap/foundation-ai!HandOffRequest:interface"
|
|
13475
14596
|
},
|
|
13476
14597
|
{
|
|
13477
14598
|
"kind": "Content",
|
|
13478
|
-
"text": "
|
|
14599
|
+
"text": " | undefined"
|
|
13479
14600
|
},
|
|
13480
14601
|
{
|
|
13481
14602
|
"kind": "Content",
|
|
@@ -13493,25 +14614,34 @@
|
|
|
13493
14614
|
"parameters": [],
|
|
13494
14615
|
"isOptional": false,
|
|
13495
14616
|
"isAbstract": false,
|
|
13496
|
-
"name": "
|
|
14617
|
+
"name": "getHandOffRequest"
|
|
13497
14618
|
},
|
|
13498
14619
|
{
|
|
13499
14620
|
"kind": "Method",
|
|
13500
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
13501
|
-
"docComment": "
|
|
14621
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHistory:member(1)",
|
|
14622
|
+
"docComment": "",
|
|
13502
14623
|
"excerptTokens": [
|
|
13503
14624
|
{
|
|
13504
14625
|
"kind": "Content",
|
|
13505
|
-
"text": "
|
|
14626
|
+
"text": "getHistory(): "
|
|
13506
14627
|
},
|
|
13507
14628
|
{
|
|
13508
14629
|
"kind": "Reference",
|
|
13509
|
-
"text": "
|
|
13510
|
-
"canonicalReference": "
|
|
14630
|
+
"text": "ReadonlyArray",
|
|
14631
|
+
"canonicalReference": "!ReadonlyArray:interface"
|
|
13511
14632
|
},
|
|
13512
14633
|
{
|
|
13513
14634
|
"kind": "Content",
|
|
13514
|
-
"text": "
|
|
14635
|
+
"text": "<"
|
|
14636
|
+
},
|
|
14637
|
+
{
|
|
14638
|
+
"kind": "Reference",
|
|
14639
|
+
"text": "ChatMessage",
|
|
14640
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
14641
|
+
},
|
|
14642
|
+
{
|
|
14643
|
+
"kind": "Content",
|
|
14644
|
+
"text": ">"
|
|
13515
14645
|
},
|
|
13516
14646
|
{
|
|
13517
14647
|
"kind": "Content",
|
|
@@ -13521,7 +14651,7 @@
|
|
|
13521
14651
|
"isStatic": false,
|
|
13522
14652
|
"returnTypeTokenRange": {
|
|
13523
14653
|
"startIndex": 1,
|
|
13524
|
-
"endIndex":
|
|
14654
|
+
"endIndex": 5
|
|
13525
14655
|
},
|
|
13526
14656
|
"releaseTag": "Public",
|
|
13527
14657
|
"isProtected": false,
|
|
@@ -13529,25 +14659,21 @@
|
|
|
13529
14659
|
"parameters": [],
|
|
13530
14660
|
"isOptional": false,
|
|
13531
14661
|
"isAbstract": false,
|
|
13532
|
-
"name": "
|
|
14662
|
+
"name": "getHistory"
|
|
13533
14663
|
},
|
|
13534
14664
|
{
|
|
13535
14665
|
"kind": "Method",
|
|
13536
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
13537
|
-
"docComment": "/**\n *
|
|
14666
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getHistoryForPersistence:member(1)",
|
|
14667
|
+
"docComment": "/**\n * The transcript as it should be **stored**: every tool payload the model has already stopped seeing replaced by the same stub it was sent (GENC-1566). Live history is untouched — this returns a copy.\n *\n * Condensation deliberately spares stored history, because the live transcript and the debug export both read it. A host writing that transcript to durable storage inherits the other half of that decision: it stores payloads the driver has already retired, on every autosave, for the life of the session. Measured on one small Create session — 58,187 chars, 7.4% of a 790 KB session object, across five payloads worth 14,434 tokens of context, written 86 times.\n *\n * Only already-collapsed payloads are touched, so this can never store a stub for something the model can still see, and it has no side effects (see `condenseForPersistence`, which is internal). A host that wants the unredacted transcript still calls {@link ChatDriver.getRawHistory}, and a diagnostics stream that keeps full payloads is unaffected — which is what makes the elision recoverable.\n */\n",
|
|
13538
14668
|
"excerptTokens": [
|
|
13539
14669
|
{
|
|
13540
14670
|
"kind": "Content",
|
|
13541
|
-
"text": "
|
|
13542
|
-
},
|
|
13543
|
-
{
|
|
13544
|
-
"kind": "Content",
|
|
13545
|
-
"text": "readonly "
|
|
14671
|
+
"text": "getHistoryForPersistence(): "
|
|
13546
14672
|
},
|
|
13547
14673
|
{
|
|
13548
14674
|
"kind": "Reference",
|
|
13549
|
-
"text": "
|
|
13550
|
-
"canonicalReference": "@genesislcap/ai
|
|
14675
|
+
"text": "ChatMessage",
|
|
14676
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
13551
14677
|
},
|
|
13552
14678
|
{
|
|
13553
14679
|
"kind": "Content",
|
|
@@ -13561,7 +14687,7 @@
|
|
|
13561
14687
|
"isStatic": false,
|
|
13562
14688
|
"returnTypeTokenRange": {
|
|
13563
14689
|
"startIndex": 1,
|
|
13564
|
-
"endIndex":
|
|
14690
|
+
"endIndex": 3
|
|
13565
14691
|
},
|
|
13566
14692
|
"releaseTag": "Public",
|
|
13567
14693
|
"isProtected": false,
|
|
@@ -13569,29 +14695,21 @@
|
|
|
13569
14695
|
"parameters": [],
|
|
13570
14696
|
"isOptional": false,
|
|
13571
14697
|
"isAbstract": false,
|
|
13572
|
-
"name": "
|
|
14698
|
+
"name": "getHistoryForPersistence"
|
|
13573
14699
|
},
|
|
13574
14700
|
{
|
|
13575
14701
|
"kind": "Method",
|
|
13576
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
13577
|
-
"docComment": "/**\n *
|
|
14702
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoint:member(1)",
|
|
14703
|
+
"docComment": "/**\n * One checkpoint to save: the long action in flight's, else the newest a reload cut.\n *\n * @deprecated\n *\n * Use `getInteractionCheckpoints`.\n */\n",
|
|
13578
14704
|
"excerptTokens": [
|
|
13579
14705
|
{
|
|
13580
14706
|
"kind": "Content",
|
|
13581
|
-
"text": "
|
|
13582
|
-
},
|
|
13583
|
-
{
|
|
13584
|
-
"kind": "Content",
|
|
13585
|
-
"text": "string"
|
|
13586
|
-
},
|
|
13587
|
-
{
|
|
13588
|
-
"kind": "Content",
|
|
13589
|
-
"text": "): "
|
|
14707
|
+
"text": "getInteractionCheckpoint(): "
|
|
13590
14708
|
},
|
|
13591
14709
|
{
|
|
13592
14710
|
"kind": "Reference",
|
|
13593
|
-
"text": "
|
|
13594
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
14711
|
+
"text": "PersistedInteractionCheckpoint",
|
|
14712
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
13595
14713
|
},
|
|
13596
14714
|
{
|
|
13597
14715
|
"kind": "Content",
|
|
@@ -13603,49 +14721,9 @@
|
|
|
13603
14721
|
}
|
|
13604
14722
|
],
|
|
13605
14723
|
"isStatic": false,
|
|
13606
|
-
"returnTypeTokenRange": {
|
|
13607
|
-
"startIndex": 3,
|
|
13608
|
-
"endIndex": 5
|
|
13609
|
-
},
|
|
13610
|
-
"releaseTag": "Public",
|
|
13611
|
-
"isProtected": false,
|
|
13612
|
-
"overloadIndex": 1,
|
|
13613
|
-
"parameters": [
|
|
13614
|
-
{
|
|
13615
|
-
"parameterName": "interactionId",
|
|
13616
|
-
"parameterTypeTokenRange": {
|
|
13617
|
-
"startIndex": 1,
|
|
13618
|
-
"endIndex": 2
|
|
13619
|
-
},
|
|
13620
|
-
"isOptional": false
|
|
13621
|
-
}
|
|
13622
|
-
],
|
|
13623
|
-
"isOptional": false,
|
|
13624
|
-
"isAbstract": false,
|
|
13625
|
-
"name": "getInteractionContext"
|
|
13626
|
-
},
|
|
13627
|
-
{
|
|
13628
|
-
"kind": "Method",
|
|
13629
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getPreambleTokens:member(1)",
|
|
13630
|
-
"docComment": "/**\n * Token cost of the last request's preamble — system prompt, tool definitions and framed tail (GENC-1582). `undefined` before the first call of a turn.\n *\n * A live getter rather than a field stamped on each message, deliberately: every consumer wants the CURRENT preamble, never its history, and a message field would mean a type change in `@genesislcap/foundation-ai` plus churn in every persisted session for a value nobody reads twice.\n *\n * It exists because the preamble cannot be derived reliably. Inferring it as \"first measured prompt minus the messages it covered\" is accurate once and then goes stale, since each agent brings its own prompt and tool surface — and every attempt to compensate downstream ended up comparing stored characters against wire tokens. The driver is the only place that knows what it just sent.\n *\n * Optional — only drivers that build requests implement it.\n */\n",
|
|
13631
|
-
"excerptTokens": [
|
|
13632
|
-
{
|
|
13633
|
-
"kind": "Content",
|
|
13634
|
-
"text": "getPreambleTokens(): "
|
|
13635
|
-
},
|
|
13636
|
-
{
|
|
13637
|
-
"kind": "Content",
|
|
13638
|
-
"text": "number | undefined"
|
|
13639
|
-
},
|
|
13640
|
-
{
|
|
13641
|
-
"kind": "Content",
|
|
13642
|
-
"text": ";"
|
|
13643
|
-
}
|
|
13644
|
-
],
|
|
13645
|
-
"isStatic": false,
|
|
13646
14724
|
"returnTypeTokenRange": {
|
|
13647
14725
|
"startIndex": 1,
|
|
13648
|
-
"endIndex":
|
|
14726
|
+
"endIndex": 3
|
|
13649
14727
|
},
|
|
13650
14728
|
"releaseTag": "Public",
|
|
13651
14729
|
"isProtected": false,
|
|
@@ -13653,16 +14731,16 @@
|
|
|
13653
14731
|
"parameters": [],
|
|
13654
14732
|
"isOptional": false,
|
|
13655
14733
|
"isAbstract": false,
|
|
13656
|
-
"name": "
|
|
14734
|
+
"name": "getInteractionCheckpoint"
|
|
13657
14735
|
},
|
|
13658
14736
|
{
|
|
13659
14737
|
"kind": "Method",
|
|
13660
|
-
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#
|
|
13661
|
-
"docComment": "",
|
|
14738
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoints:member(1)",
|
|
14739
|
+
"docComment": "/**\n * Every checkpoint to save with the session (GENC-1660 §4.12): those a reload cut that nothing has taken over yet, oldest first, then the long action in flight's, if it has saved one.\n *\n * Optional, so a third-party driver need not implement it; every shipped driver does.\n */\n",
|
|
13662
14740
|
"excerptTokens": [
|
|
13663
14741
|
{
|
|
13664
14742
|
"kind": "Content",
|
|
13665
|
-
"text": "
|
|
14743
|
+
"text": "getInteractionCheckpoints(): "
|
|
13666
14744
|
},
|
|
13667
14745
|
{
|
|
13668
14746
|
"kind": "Content",
|
|
@@ -13670,8 +14748,132 @@
|
|
|
13670
14748
|
},
|
|
13671
14749
|
{
|
|
13672
14750
|
"kind": "Reference",
|
|
13673
|
-
"text": "
|
|
13674
|
-
"canonicalReference": "@genesislcap/
|
|
14751
|
+
"text": "PersistedInteractionCheckpoint",
|
|
14752
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
14753
|
+
},
|
|
14754
|
+
{
|
|
14755
|
+
"kind": "Content",
|
|
14756
|
+
"text": "[]"
|
|
14757
|
+
},
|
|
14758
|
+
{
|
|
14759
|
+
"kind": "Content",
|
|
14760
|
+
"text": ";"
|
|
14761
|
+
}
|
|
14762
|
+
],
|
|
14763
|
+
"isStatic": false,
|
|
14764
|
+
"returnTypeTokenRange": {
|
|
14765
|
+
"startIndex": 1,
|
|
14766
|
+
"endIndex": 4
|
|
14767
|
+
},
|
|
14768
|
+
"releaseTag": "Public",
|
|
14769
|
+
"isProtected": false,
|
|
14770
|
+
"overloadIndex": 1,
|
|
14771
|
+
"parameters": [],
|
|
14772
|
+
"isOptional": false,
|
|
14773
|
+
"isAbstract": false,
|
|
14774
|
+
"name": "getInteractionCheckpoints"
|
|
14775
|
+
},
|
|
14776
|
+
{
|
|
14777
|
+
"kind": "Method",
|
|
14778
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionContext:member(1)",
|
|
14779
|
+
"docComment": "/**\n * The live {@link InteractionContext} for a pending interaction (GENC-1390), or `undefined` once resolved/evicted. Read by `AiChatInteractionWrapper` (via the host) to build the widget's pending `interaction` descriptor.\n */\n",
|
|
14780
|
+
"excerptTokens": [
|
|
14781
|
+
{
|
|
14782
|
+
"kind": "Content",
|
|
14783
|
+
"text": "getInteractionContext(interactionId: "
|
|
14784
|
+
},
|
|
14785
|
+
{
|
|
14786
|
+
"kind": "Content",
|
|
14787
|
+
"text": "string"
|
|
14788
|
+
},
|
|
14789
|
+
{
|
|
14790
|
+
"kind": "Content",
|
|
14791
|
+
"text": "): "
|
|
14792
|
+
},
|
|
14793
|
+
{
|
|
14794
|
+
"kind": "Reference",
|
|
14795
|
+
"text": "InteractionContext",
|
|
14796
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
14797
|
+
},
|
|
14798
|
+
{
|
|
14799
|
+
"kind": "Content",
|
|
14800
|
+
"text": " | undefined"
|
|
14801
|
+
},
|
|
14802
|
+
{
|
|
14803
|
+
"kind": "Content",
|
|
14804
|
+
"text": ";"
|
|
14805
|
+
}
|
|
14806
|
+
],
|
|
14807
|
+
"isStatic": false,
|
|
14808
|
+
"returnTypeTokenRange": {
|
|
14809
|
+
"startIndex": 3,
|
|
14810
|
+
"endIndex": 5
|
|
14811
|
+
},
|
|
14812
|
+
"releaseTag": "Public",
|
|
14813
|
+
"isProtected": false,
|
|
14814
|
+
"overloadIndex": 1,
|
|
14815
|
+
"parameters": [
|
|
14816
|
+
{
|
|
14817
|
+
"parameterName": "interactionId",
|
|
14818
|
+
"parameterTypeTokenRange": {
|
|
14819
|
+
"startIndex": 1,
|
|
14820
|
+
"endIndex": 2
|
|
14821
|
+
},
|
|
14822
|
+
"isOptional": false
|
|
14823
|
+
}
|
|
14824
|
+
],
|
|
14825
|
+
"isOptional": false,
|
|
14826
|
+
"isAbstract": false,
|
|
14827
|
+
"name": "getInteractionContext"
|
|
14828
|
+
},
|
|
14829
|
+
{
|
|
14830
|
+
"kind": "Method",
|
|
14831
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getPreambleTokens:member(1)",
|
|
14832
|
+
"docComment": "/**\n * Token cost of the last request's preamble — system prompt, tool definitions and framed tail (GENC-1582). `undefined` before the first call of a turn.\n *\n * A live getter rather than a field stamped on each message, deliberately: every consumer wants the CURRENT preamble, never its history, and a message field would mean a type change in `@genesislcap/foundation-ai` plus churn in every persisted session for a value nobody reads twice.\n *\n * It exists because the preamble cannot be derived reliably. Inferring it as \"first measured prompt minus the messages it covered\" is accurate once and then goes stale, since each agent brings its own prompt and tool surface — and every attempt to compensate downstream ended up comparing stored characters against wire tokens. The driver is the only place that knows what it just sent.\n *\n * Optional — only drivers that build requests implement it.\n */\n",
|
|
14833
|
+
"excerptTokens": [
|
|
14834
|
+
{
|
|
14835
|
+
"kind": "Content",
|
|
14836
|
+
"text": "getPreambleTokens(): "
|
|
14837
|
+
},
|
|
14838
|
+
{
|
|
14839
|
+
"kind": "Content",
|
|
14840
|
+
"text": "number | undefined"
|
|
14841
|
+
},
|
|
14842
|
+
{
|
|
14843
|
+
"kind": "Content",
|
|
14844
|
+
"text": ";"
|
|
14845
|
+
}
|
|
14846
|
+
],
|
|
14847
|
+
"isStatic": false,
|
|
14848
|
+
"returnTypeTokenRange": {
|
|
14849
|
+
"startIndex": 1,
|
|
14850
|
+
"endIndex": 2
|
|
14851
|
+
},
|
|
14852
|
+
"releaseTag": "Public",
|
|
14853
|
+
"isProtected": false,
|
|
14854
|
+
"overloadIndex": 1,
|
|
14855
|
+
"parameters": [],
|
|
14856
|
+
"isOptional": false,
|
|
14857
|
+
"isAbstract": false,
|
|
14858
|
+
"name": "getPreambleTokens"
|
|
14859
|
+
},
|
|
14860
|
+
{
|
|
14861
|
+
"kind": "Method",
|
|
14862
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getRawHistory:member(1)",
|
|
14863
|
+
"docComment": "",
|
|
14864
|
+
"excerptTokens": [
|
|
14865
|
+
{
|
|
14866
|
+
"kind": "Content",
|
|
14867
|
+
"text": "getRawHistory(): "
|
|
14868
|
+
},
|
|
14869
|
+
{
|
|
14870
|
+
"kind": "Content",
|
|
14871
|
+
"text": "readonly "
|
|
14872
|
+
},
|
|
14873
|
+
{
|
|
14874
|
+
"kind": "Reference",
|
|
14875
|
+
"text": "ChatMessage",
|
|
14876
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
13675
14877
|
},
|
|
13676
14878
|
{
|
|
13677
14879
|
"kind": "Content",
|
|
@@ -15369,6 +16571,102 @@
|
|
|
15369
16571
|
"isOptional": false,
|
|
15370
16572
|
"isAbstract": false,
|
|
15371
16573
|
"name": "setProviderHistoryTransform"
|
|
16574
|
+
},
|
|
16575
|
+
{
|
|
16576
|
+
"kind": "Method",
|
|
16577
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#suspendActivation:member(1)",
|
|
16578
|
+
"docComment": "/**\n * Suspend the active agent's activation for a hand-off it made (GENC-1737): installing the target advances the `agentEnd` clock as any swap does, but this caller's payloads stay live.\n */\n",
|
|
16579
|
+
"excerptTokens": [
|
|
16580
|
+
{
|
|
16581
|
+
"kind": "Content",
|
|
16582
|
+
"text": "suspendActivation(agentName: "
|
|
16583
|
+
},
|
|
16584
|
+
{
|
|
16585
|
+
"kind": "Content",
|
|
16586
|
+
"text": "string"
|
|
16587
|
+
},
|
|
16588
|
+
{
|
|
16589
|
+
"kind": "Content",
|
|
16590
|
+
"text": "): "
|
|
16591
|
+
},
|
|
16592
|
+
{
|
|
16593
|
+
"kind": "Content",
|
|
16594
|
+
"text": "void"
|
|
16595
|
+
},
|
|
16596
|
+
{
|
|
16597
|
+
"kind": "Content",
|
|
16598
|
+
"text": ";"
|
|
16599
|
+
}
|
|
16600
|
+
],
|
|
16601
|
+
"isStatic": false,
|
|
16602
|
+
"returnTypeTokenRange": {
|
|
16603
|
+
"startIndex": 3,
|
|
16604
|
+
"endIndex": 4
|
|
16605
|
+
},
|
|
16606
|
+
"releaseTag": "Public",
|
|
16607
|
+
"isProtected": false,
|
|
16608
|
+
"overloadIndex": 1,
|
|
16609
|
+
"parameters": [
|
|
16610
|
+
{
|
|
16611
|
+
"parameterName": "agentName",
|
|
16612
|
+
"parameterTypeTokenRange": {
|
|
16613
|
+
"startIndex": 1,
|
|
16614
|
+
"endIndex": 2
|
|
16615
|
+
},
|
|
16616
|
+
"isOptional": false
|
|
16617
|
+
}
|
|
16618
|
+
],
|
|
16619
|
+
"isOptional": false,
|
|
16620
|
+
"isAbstract": false,
|
|
16621
|
+
"name": "suspendActivation"
|
|
16622
|
+
},
|
|
16623
|
+
{
|
|
16624
|
+
"kind": "Method",
|
|
16625
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#suspendRestoredActivations:member(1)",
|
|
16626
|
+
"docComment": "/**\n * Suspend restored callers before their condense policies are restored, so entries still live at save time stay live instead of waiting for \"the next activation\", which is the target's.\n */\n",
|
|
16627
|
+
"excerptTokens": [
|
|
16628
|
+
{
|
|
16629
|
+
"kind": "Content",
|
|
16630
|
+
"text": "suspendRestoredActivations(agentNames: "
|
|
16631
|
+
},
|
|
16632
|
+
{
|
|
16633
|
+
"kind": "Content",
|
|
16634
|
+
"text": "readonly string[]"
|
|
16635
|
+
},
|
|
16636
|
+
{
|
|
16637
|
+
"kind": "Content",
|
|
16638
|
+
"text": "): "
|
|
16639
|
+
},
|
|
16640
|
+
{
|
|
16641
|
+
"kind": "Content",
|
|
16642
|
+
"text": "void"
|
|
16643
|
+
},
|
|
16644
|
+
{
|
|
16645
|
+
"kind": "Content",
|
|
16646
|
+
"text": ";"
|
|
16647
|
+
}
|
|
16648
|
+
],
|
|
16649
|
+
"isStatic": false,
|
|
16650
|
+
"returnTypeTokenRange": {
|
|
16651
|
+
"startIndex": 3,
|
|
16652
|
+
"endIndex": 4
|
|
16653
|
+
},
|
|
16654
|
+
"releaseTag": "Public",
|
|
16655
|
+
"isProtected": false,
|
|
16656
|
+
"overloadIndex": 1,
|
|
16657
|
+
"parameters": [
|
|
16658
|
+
{
|
|
16659
|
+
"parameterName": "agentNames",
|
|
16660
|
+
"parameterTypeTokenRange": {
|
|
16661
|
+
"startIndex": 1,
|
|
16662
|
+
"endIndex": 2
|
|
16663
|
+
},
|
|
16664
|
+
"isOptional": false
|
|
16665
|
+
}
|
|
16666
|
+
],
|
|
16667
|
+
"isOptional": false,
|
|
16668
|
+
"isAbstract": false,
|
|
16669
|
+
"name": "suspendRestoredActivations"
|
|
15372
16670
|
}
|
|
15373
16671
|
],
|
|
15374
16672
|
"extendsTokenRange": {
|
|
@@ -15532,7 +16830,7 @@
|
|
|
15532
16830
|
{
|
|
15533
16831
|
"kind": "PropertySignature",
|
|
15534
16832
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriverConfig#deferAgentRelease:member",
|
|
15535
|
-
"docComment": "/**\n * Leave acting on `releaseAgent` to the owner of this driver.\n *\n * Set by `OrchestratingDriver` for its inner driver, which performs the release itself after the
|
|
16833
|
+
"docComment": "/**\n * Leave acting on `releaseAgent` to the owner of this driver.\n *\n * Set by `OrchestratingDriver` for its inner driver, which performs the release itself after the call, because a release may hand back to a waiting caller and it reads the flag to know. Both drivers share one `AgentSession`, and releasing here first would clear the flag before the orchestrator saw it. The host-facing `agent-released` / `agent-changed` / `flow-owner-changed` events fire from the session's transition either way (GENC-1485).\n *\n * Left unset, a driver releases its own agent, which is what a bare `ChatDriver` needs: nothing else is watching the flag.\n */\n",
|
|
15536
16834
|
"excerptTokens": [
|
|
15537
16835
|
{
|
|
15538
16836
|
"kind": "Content",
|
|
@@ -18299,7 +19597,7 @@
|
|
|
18299
19597
|
{
|
|
18300
19598
|
"kind": "Class",
|
|
18301
19599
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant:class",
|
|
18302
|
-
"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 * @beta\n */\n",
|
|
19600
|
+
"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",
|
|
18303
19601
|
"excerptTokens": [
|
|
18304
19602
|
{
|
|
18305
19603
|
"kind": "Content",
|
|
@@ -27682,6 +28980,367 @@
|
|
|
27682
28980
|
],
|
|
27683
28981
|
"extendsTokenRanges": []
|
|
27684
28982
|
},
|
|
28983
|
+
{
|
|
28984
|
+
"kind": "Interface",
|
|
28985
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface",
|
|
28986
|
+
"docComment": "/**\n * One hand-off on the stack, saved with the session: who waits, for whom, and why. `outcome` is set when the target finishes, until the caller has resumed, so a reload in between still hands back. Also the `detail` of the `handoff-started`, `handoff-returned` and `handoff-unwound` events.\n *\n * @beta\n */\n",
|
|
28987
|
+
"excerptTokens": [
|
|
28988
|
+
{
|
|
28989
|
+
"kind": "Content",
|
|
28990
|
+
"text": "export interface HandOffFrame "
|
|
28991
|
+
}
|
|
28992
|
+
],
|
|
28993
|
+
"fileUrlPath": "src/config/config.ts",
|
|
28994
|
+
"releaseTag": "Beta",
|
|
28995
|
+
"name": "HandOffFrame",
|
|
28996
|
+
"preserveMemberOrder": false,
|
|
28997
|
+
"members": [
|
|
28998
|
+
{
|
|
28999
|
+
"kind": "PropertySignature",
|
|
29000
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#caller:member",
|
|
29001
|
+
"docComment": "/**\n * The agent waiting for the hand-back.\n */\n",
|
|
29002
|
+
"excerptTokens": [
|
|
29003
|
+
{
|
|
29004
|
+
"kind": "Content",
|
|
29005
|
+
"text": "caller: "
|
|
29006
|
+
},
|
|
29007
|
+
{
|
|
29008
|
+
"kind": "Content",
|
|
29009
|
+
"text": "string"
|
|
29010
|
+
},
|
|
29011
|
+
{
|
|
29012
|
+
"kind": "Content",
|
|
29013
|
+
"text": ";"
|
|
29014
|
+
}
|
|
29015
|
+
],
|
|
29016
|
+
"isReadonly": false,
|
|
29017
|
+
"isOptional": false,
|
|
29018
|
+
"releaseTag": "Beta",
|
|
29019
|
+
"name": "caller",
|
|
29020
|
+
"propertyTypeTokenRange": {
|
|
29021
|
+
"startIndex": 1,
|
|
29022
|
+
"endIndex": 2
|
|
29023
|
+
}
|
|
29024
|
+
},
|
|
29025
|
+
{
|
|
29026
|
+
"kind": "PropertySignature",
|
|
29027
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#data:member",
|
|
29028
|
+
"docComment": "/**\n * JSON only.\n */\n",
|
|
29029
|
+
"excerptTokens": [
|
|
29030
|
+
{
|
|
29031
|
+
"kind": "Content",
|
|
29032
|
+
"text": "data?: "
|
|
29033
|
+
},
|
|
29034
|
+
{
|
|
29035
|
+
"kind": "Content",
|
|
29036
|
+
"text": "unknown"
|
|
29037
|
+
},
|
|
29038
|
+
{
|
|
29039
|
+
"kind": "Content",
|
|
29040
|
+
"text": ";"
|
|
29041
|
+
}
|
|
29042
|
+
],
|
|
29043
|
+
"isReadonly": false,
|
|
29044
|
+
"isOptional": true,
|
|
29045
|
+
"releaseTag": "Beta",
|
|
29046
|
+
"name": "data",
|
|
29047
|
+
"propertyTypeTokenRange": {
|
|
29048
|
+
"startIndex": 1,
|
|
29049
|
+
"endIndex": 2
|
|
29050
|
+
}
|
|
29051
|
+
},
|
|
29052
|
+
{
|
|
29053
|
+
"kind": "PropertySignature",
|
|
29054
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#id:member",
|
|
29055
|
+
"docComment": "",
|
|
29056
|
+
"excerptTokens": [
|
|
29057
|
+
{
|
|
29058
|
+
"kind": "Content",
|
|
29059
|
+
"text": "id: "
|
|
29060
|
+
},
|
|
29061
|
+
{
|
|
29062
|
+
"kind": "Content",
|
|
29063
|
+
"text": "string"
|
|
29064
|
+
},
|
|
29065
|
+
{
|
|
29066
|
+
"kind": "Content",
|
|
29067
|
+
"text": ";"
|
|
29068
|
+
}
|
|
29069
|
+
],
|
|
29070
|
+
"isReadonly": false,
|
|
29071
|
+
"isOptional": false,
|
|
29072
|
+
"releaseTag": "Beta",
|
|
29073
|
+
"name": "id",
|
|
29074
|
+
"propertyTypeTokenRange": {
|
|
29075
|
+
"startIndex": 1,
|
|
29076
|
+
"endIndex": 2
|
|
29077
|
+
}
|
|
29078
|
+
},
|
|
29079
|
+
{
|
|
29080
|
+
"kind": "PropertySignature",
|
|
29081
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#message:member",
|
|
29082
|
+
"docComment": "/**\n * The brief.\n */\n",
|
|
29083
|
+
"excerptTokens": [
|
|
29084
|
+
{
|
|
29085
|
+
"kind": "Content",
|
|
29086
|
+
"text": "message: "
|
|
29087
|
+
},
|
|
29088
|
+
{
|
|
29089
|
+
"kind": "Content",
|
|
29090
|
+
"text": "string"
|
|
29091
|
+
},
|
|
29092
|
+
{
|
|
29093
|
+
"kind": "Content",
|
|
29094
|
+
"text": ";"
|
|
29095
|
+
}
|
|
29096
|
+
],
|
|
29097
|
+
"isReadonly": false,
|
|
29098
|
+
"isOptional": false,
|
|
29099
|
+
"releaseTag": "Beta",
|
|
29100
|
+
"name": "message",
|
|
29101
|
+
"propertyTypeTokenRange": {
|
|
29102
|
+
"startIndex": 1,
|
|
29103
|
+
"endIndex": 2
|
|
29104
|
+
}
|
|
29105
|
+
},
|
|
29106
|
+
{
|
|
29107
|
+
"kind": "PropertySignature",
|
|
29108
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#outcome:member",
|
|
29109
|
+
"docComment": "",
|
|
29110
|
+
"excerptTokens": [
|
|
29111
|
+
{
|
|
29112
|
+
"kind": "Content",
|
|
29113
|
+
"text": "outcome?: "
|
|
29114
|
+
},
|
|
29115
|
+
{
|
|
29116
|
+
"kind": "Reference",
|
|
29117
|
+
"text": "HandOffOutcome",
|
|
29118
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome:interface"
|
|
29119
|
+
},
|
|
29120
|
+
{
|
|
29121
|
+
"kind": "Content",
|
|
29122
|
+
"text": ";"
|
|
29123
|
+
}
|
|
29124
|
+
],
|
|
29125
|
+
"isReadonly": false,
|
|
29126
|
+
"isOptional": true,
|
|
29127
|
+
"releaseTag": "Beta",
|
|
29128
|
+
"name": "outcome",
|
|
29129
|
+
"propertyTypeTokenRange": {
|
|
29130
|
+
"startIndex": 1,
|
|
29131
|
+
"endIndex": 2
|
|
29132
|
+
}
|
|
29133
|
+
},
|
|
29134
|
+
{
|
|
29135
|
+
"kind": "PropertySignature",
|
|
29136
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#returnTo:member",
|
|
29137
|
+
"docComment": "",
|
|
29138
|
+
"excerptTokens": [
|
|
29139
|
+
{
|
|
29140
|
+
"kind": "Content",
|
|
29141
|
+
"text": "returnTo: "
|
|
29142
|
+
},
|
|
29143
|
+
{
|
|
29144
|
+
"kind": "Content",
|
|
29145
|
+
"text": "boolean"
|
|
29146
|
+
},
|
|
29147
|
+
{
|
|
29148
|
+
"kind": "Content",
|
|
29149
|
+
"text": ";"
|
|
29150
|
+
}
|
|
29151
|
+
],
|
|
29152
|
+
"isReadonly": false,
|
|
29153
|
+
"isOptional": false,
|
|
29154
|
+
"releaseTag": "Beta",
|
|
29155
|
+
"name": "returnTo",
|
|
29156
|
+
"propertyTypeTokenRange": {
|
|
29157
|
+
"startIndex": 1,
|
|
29158
|
+
"endIndex": 2
|
|
29159
|
+
}
|
|
29160
|
+
},
|
|
29161
|
+
{
|
|
29162
|
+
"kind": "PropertySignature",
|
|
29163
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#startedAt:member",
|
|
29164
|
+
"docComment": "/**\n * ISO time the hand-off started.\n */\n",
|
|
29165
|
+
"excerptTokens": [
|
|
29166
|
+
{
|
|
29167
|
+
"kind": "Content",
|
|
29168
|
+
"text": "startedAt: "
|
|
29169
|
+
},
|
|
29170
|
+
{
|
|
29171
|
+
"kind": "Content",
|
|
29172
|
+
"text": "string"
|
|
29173
|
+
},
|
|
29174
|
+
{
|
|
29175
|
+
"kind": "Content",
|
|
29176
|
+
"text": ";"
|
|
29177
|
+
}
|
|
29178
|
+
],
|
|
29179
|
+
"isReadonly": false,
|
|
29180
|
+
"isOptional": false,
|
|
29181
|
+
"releaseTag": "Beta",
|
|
29182
|
+
"name": "startedAt",
|
|
29183
|
+
"propertyTypeTokenRange": {
|
|
29184
|
+
"startIndex": 1,
|
|
29185
|
+
"endIndex": 2
|
|
29186
|
+
}
|
|
29187
|
+
},
|
|
29188
|
+
{
|
|
29189
|
+
"kind": "PropertySignature",
|
|
29190
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame#target:member",
|
|
29191
|
+
"docComment": "",
|
|
29192
|
+
"excerptTokens": [
|
|
29193
|
+
{
|
|
29194
|
+
"kind": "Content",
|
|
29195
|
+
"text": "target: "
|
|
29196
|
+
},
|
|
29197
|
+
{
|
|
29198
|
+
"kind": "Content",
|
|
29199
|
+
"text": "string"
|
|
29200
|
+
},
|
|
29201
|
+
{
|
|
29202
|
+
"kind": "Content",
|
|
29203
|
+
"text": ";"
|
|
29204
|
+
}
|
|
29205
|
+
],
|
|
29206
|
+
"isReadonly": false,
|
|
29207
|
+
"isOptional": false,
|
|
29208
|
+
"releaseTag": "Beta",
|
|
29209
|
+
"name": "target",
|
|
29210
|
+
"propertyTypeTokenRange": {
|
|
29211
|
+
"startIndex": 1,
|
|
29212
|
+
"endIndex": 2
|
|
29213
|
+
}
|
|
29214
|
+
}
|
|
29215
|
+
],
|
|
29216
|
+
"extendsTokenRanges": []
|
|
29217
|
+
},
|
|
29218
|
+
{
|
|
29219
|
+
"kind": "Interface",
|
|
29220
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome:interface",
|
|
29221
|
+
"docComment": "/**\n * What a hand-off's caller gets back. `message` is the target's `completeHandOff` summary, or for `released` its final reply since the brief; `data` is what `completeHandOff` passed.\n *\n * @beta\n */\n",
|
|
29222
|
+
"excerptTokens": [
|
|
29223
|
+
{
|
|
29224
|
+
"kind": "Content",
|
|
29225
|
+
"text": "export interface HandOffOutcome "
|
|
29226
|
+
}
|
|
29227
|
+
],
|
|
29228
|
+
"fileUrlPath": "src/config/config.ts",
|
|
29229
|
+
"releaseTag": "Beta",
|
|
29230
|
+
"name": "HandOffOutcome",
|
|
29231
|
+
"preserveMemberOrder": false,
|
|
29232
|
+
"members": [
|
|
29233
|
+
{
|
|
29234
|
+
"kind": "PropertySignature",
|
|
29235
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome#data:member",
|
|
29236
|
+
"docComment": "",
|
|
29237
|
+
"excerptTokens": [
|
|
29238
|
+
{
|
|
29239
|
+
"kind": "Content",
|
|
29240
|
+
"text": "data?: "
|
|
29241
|
+
},
|
|
29242
|
+
{
|
|
29243
|
+
"kind": "Content",
|
|
29244
|
+
"text": "unknown"
|
|
29245
|
+
},
|
|
29246
|
+
{
|
|
29247
|
+
"kind": "Content",
|
|
29248
|
+
"text": ";"
|
|
29249
|
+
}
|
|
29250
|
+
],
|
|
29251
|
+
"isReadonly": false,
|
|
29252
|
+
"isOptional": true,
|
|
29253
|
+
"releaseTag": "Beta",
|
|
29254
|
+
"name": "data",
|
|
29255
|
+
"propertyTypeTokenRange": {
|
|
29256
|
+
"startIndex": 1,
|
|
29257
|
+
"endIndex": 2
|
|
29258
|
+
}
|
|
29259
|
+
},
|
|
29260
|
+
{
|
|
29261
|
+
"kind": "PropertySignature",
|
|
29262
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome#kind:member",
|
|
29263
|
+
"docComment": "",
|
|
29264
|
+
"excerptTokens": [
|
|
29265
|
+
{
|
|
29266
|
+
"kind": "Content",
|
|
29267
|
+
"text": "kind: "
|
|
29268
|
+
},
|
|
29269
|
+
{
|
|
29270
|
+
"kind": "Reference",
|
|
29271
|
+
"text": "HandOffOutcomeKind",
|
|
29272
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type"
|
|
29273
|
+
},
|
|
29274
|
+
{
|
|
29275
|
+
"kind": "Content",
|
|
29276
|
+
"text": ";"
|
|
29277
|
+
}
|
|
29278
|
+
],
|
|
29279
|
+
"isReadonly": false,
|
|
29280
|
+
"isOptional": false,
|
|
29281
|
+
"releaseTag": "Beta",
|
|
29282
|
+
"name": "kind",
|
|
29283
|
+
"propertyTypeTokenRange": {
|
|
29284
|
+
"startIndex": 1,
|
|
29285
|
+
"endIndex": 2
|
|
29286
|
+
}
|
|
29287
|
+
},
|
|
29288
|
+
{
|
|
29289
|
+
"kind": "PropertySignature",
|
|
29290
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcome#message:member",
|
|
29291
|
+
"docComment": "",
|
|
29292
|
+
"excerptTokens": [
|
|
29293
|
+
{
|
|
29294
|
+
"kind": "Content",
|
|
29295
|
+
"text": "message?: "
|
|
29296
|
+
},
|
|
29297
|
+
{
|
|
29298
|
+
"kind": "Content",
|
|
29299
|
+
"text": "string"
|
|
29300
|
+
},
|
|
29301
|
+
{
|
|
29302
|
+
"kind": "Content",
|
|
29303
|
+
"text": ";"
|
|
29304
|
+
}
|
|
29305
|
+
],
|
|
29306
|
+
"isReadonly": false,
|
|
29307
|
+
"isOptional": true,
|
|
29308
|
+
"releaseTag": "Beta",
|
|
29309
|
+
"name": "message",
|
|
29310
|
+
"propertyTypeTokenRange": {
|
|
29311
|
+
"startIndex": 1,
|
|
29312
|
+
"endIndex": 2
|
|
29313
|
+
}
|
|
29314
|
+
}
|
|
29315
|
+
],
|
|
29316
|
+
"extendsTokenRanges": []
|
|
29317
|
+
},
|
|
29318
|
+
{
|
|
29319
|
+
"kind": "TypeAlias",
|
|
29320
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffOutcomeKind:type",
|
|
29321
|
+
"docComment": "/**\n * How a hand-off ended (GENC-1737): - `completed`: the target called `completeHandOff`; - `released`: the target called `releaseAgent`, or, a plain one, ended its turn; - `cleared`: the user cleared the chat; - `agent-removed`: the caller or the target is no longer in the agent list, found on restore; - `state-lost`: the caller's saved state is gone, so it cannot resume: a session saved while its flow could not be resumed, or a change to the agents, which disposes them.\n *\n * @beta\n */\n",
|
|
29322
|
+
"excerptTokens": [
|
|
29323
|
+
{
|
|
29324
|
+
"kind": "Content",
|
|
29325
|
+
"text": "export type HandOffOutcomeKind = "
|
|
29326
|
+
},
|
|
29327
|
+
{
|
|
29328
|
+
"kind": "Content",
|
|
29329
|
+
"text": "'completed' | 'released' | 'cleared' | 'agent-removed' | 'state-lost'"
|
|
29330
|
+
},
|
|
29331
|
+
{
|
|
29332
|
+
"kind": "Content",
|
|
29333
|
+
"text": ";"
|
|
29334
|
+
}
|
|
29335
|
+
],
|
|
29336
|
+
"fileUrlPath": "src/config/config.ts",
|
|
29337
|
+
"releaseTag": "Beta",
|
|
29338
|
+
"name": "HandOffOutcomeKind",
|
|
29339
|
+
"typeTokenRange": {
|
|
29340
|
+
"startIndex": 1,
|
|
29341
|
+
"endIndex": 2
|
|
29342
|
+
}
|
|
29343
|
+
},
|
|
27685
29344
|
{
|
|
27686
29345
|
"kind": "TypeAlias",
|
|
27687
29346
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionCompletedEventDetail:type",
|
|
@@ -30375,7 +32034,7 @@
|
|
|
30375
32034
|
},
|
|
30376
32035
|
{
|
|
30377
32036
|
"kind": "Content",
|
|
30378
|
-
"text": "{\n sessionKey?: string;\n maxHandoffs?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n maxFoldOperations?: number;\n maxTurnSnapshots?: number;\n activityBus?: "
|
|
32037
|
+
"text": "{\n sessionKey?: string;\n maxHandoffs?: number;\n maxHandOffDepth?: number;\n classifierHistoryLength?: number;\n classifierRetries?: number;\n maxToolIterations?: number;\n maxFoldOperations?: number;\n maxTurnSnapshots?: number;\n activityBus?: "
|
|
30379
32038
|
},
|
|
30380
32039
|
{
|
|
30381
32040
|
"kind": "Reference",
|
|
@@ -30486,7 +32145,7 @@
|
|
|
30486
32145
|
{
|
|
30487
32146
|
"kind": "Method",
|
|
30488
32147
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#cancel:member(1)",
|
|
30489
|
-
"docComment": "/**\n * Stop the current turn (user \"stop\" button). Cancels the inner chat driver's in-flight request and
|
|
32148
|
+
"docComment": "/**\n * Stop the current turn (user \"stop\" button). Cancels the inner chat driver's in-flight request, and no further agent runs this turn, not even a hand-off's target or a hand-back. The driver stays usable for the next message.\n */\n",
|
|
30490
32149
|
"excerptTokens": [
|
|
30491
32150
|
{
|
|
30492
32151
|
"kind": "Content",
|
|
@@ -30766,6 +32425,78 @@
|
|
|
30766
32425
|
"isAbstract": false,
|
|
30767
32426
|
"name": "getContextReserve"
|
|
30768
32427
|
},
|
|
32428
|
+
{
|
|
32429
|
+
"kind": "Method",
|
|
32430
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getHandOffData:member(1)",
|
|
32431
|
+
"docComment": "/**\n * The `data` each hand-off target was activated with, by name, for the agents a reload resumes: the flow owner and the callers waiting in a hand-off. See the tool context's `handOffData`.\n */\n",
|
|
32432
|
+
"excerptTokens": [
|
|
32433
|
+
{
|
|
32434
|
+
"kind": "Content",
|
|
32435
|
+
"text": "getHandOffData(): "
|
|
32436
|
+
},
|
|
32437
|
+
{
|
|
32438
|
+
"kind": "Reference",
|
|
32439
|
+
"text": "Record",
|
|
32440
|
+
"canonicalReference": "!Record:type"
|
|
32441
|
+
},
|
|
32442
|
+
{
|
|
32443
|
+
"kind": "Content",
|
|
32444
|
+
"text": "<string, unknown>"
|
|
32445
|
+
},
|
|
32446
|
+
{
|
|
32447
|
+
"kind": "Content",
|
|
32448
|
+
"text": ";"
|
|
32449
|
+
}
|
|
32450
|
+
],
|
|
32451
|
+
"isStatic": false,
|
|
32452
|
+
"returnTypeTokenRange": {
|
|
32453
|
+
"startIndex": 1,
|
|
32454
|
+
"endIndex": 3
|
|
32455
|
+
},
|
|
32456
|
+
"releaseTag": "Beta",
|
|
32457
|
+
"isProtected": false,
|
|
32458
|
+
"overloadIndex": 1,
|
|
32459
|
+
"parameters": [],
|
|
32460
|
+
"isOptional": false,
|
|
32461
|
+
"isAbstract": false,
|
|
32462
|
+
"name": "getHandOffData"
|
|
32463
|
+
},
|
|
32464
|
+
{
|
|
32465
|
+
"kind": "Method",
|
|
32466
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getHandOffStack:member(1)",
|
|
32467
|
+
"docComment": "/**\n * The hand-offs in progress, oldest first, to save with the session (GENC-1737). Copies: changing them changes nothing.\n */\n",
|
|
32468
|
+
"excerptTokens": [
|
|
32469
|
+
{
|
|
32470
|
+
"kind": "Content",
|
|
32471
|
+
"text": "getHandOffStack(): "
|
|
32472
|
+
},
|
|
32473
|
+
{
|
|
32474
|
+
"kind": "Reference",
|
|
32475
|
+
"text": "HandOffFrame",
|
|
32476
|
+
"canonicalReference": "@genesislcap/ai-assistant!HandOffFrame:interface"
|
|
32477
|
+
},
|
|
32478
|
+
{
|
|
32479
|
+
"kind": "Content",
|
|
32480
|
+
"text": "[]"
|
|
32481
|
+
},
|
|
32482
|
+
{
|
|
32483
|
+
"kind": "Content",
|
|
32484
|
+
"text": ";"
|
|
32485
|
+
}
|
|
32486
|
+
],
|
|
32487
|
+
"isStatic": false,
|
|
32488
|
+
"returnTypeTokenRange": {
|
|
32489
|
+
"startIndex": 1,
|
|
32490
|
+
"endIndex": 3
|
|
32491
|
+
},
|
|
32492
|
+
"releaseTag": "Beta",
|
|
32493
|
+
"isProtected": false,
|
|
32494
|
+
"overloadIndex": 1,
|
|
32495
|
+
"parameters": [],
|
|
32496
|
+
"isOptional": false,
|
|
32497
|
+
"isAbstract": false,
|
|
32498
|
+
"name": "getHandOffStack"
|
|
32499
|
+
},
|
|
30769
32500
|
{
|
|
30770
32501
|
"kind": "Method",
|
|
30771
32502
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getSuggestions:member(1)",
|
|
@@ -30877,6 +32608,155 @@
|
|
|
30877
32608
|
"isAbstract": false,
|
|
30878
32609
|
"name": "getSuggestions"
|
|
30879
32610
|
},
|
|
32611
|
+
{
|
|
32612
|
+
"kind": "Method",
|
|
32613
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#restoreHandOffData:member(1)",
|
|
32614
|
+
"docComment": "/**\n * Restore what {@link AiDriver.getHandOffData} saved, before the hand-off stack. Nothing comes back from a frozen (`interrupted`) session, whose flow does not resume.\n */\n",
|
|
32615
|
+
"excerptTokens": [
|
|
32616
|
+
{
|
|
32617
|
+
"kind": "Content",
|
|
32618
|
+
"text": "restoreHandOffData(saved: "
|
|
32619
|
+
},
|
|
32620
|
+
{
|
|
32621
|
+
"kind": "Content",
|
|
32622
|
+
"text": "unknown"
|
|
32623
|
+
},
|
|
32624
|
+
{
|
|
32625
|
+
"kind": "Content",
|
|
32626
|
+
"text": ", interrupted: "
|
|
32627
|
+
},
|
|
32628
|
+
{
|
|
32629
|
+
"kind": "Content",
|
|
32630
|
+
"text": "boolean"
|
|
32631
|
+
},
|
|
32632
|
+
{
|
|
32633
|
+
"kind": "Content",
|
|
32634
|
+
"text": "): "
|
|
32635
|
+
},
|
|
32636
|
+
{
|
|
32637
|
+
"kind": "Content",
|
|
32638
|
+
"text": "void"
|
|
32639
|
+
},
|
|
32640
|
+
{
|
|
32641
|
+
"kind": "Content",
|
|
32642
|
+
"text": ";"
|
|
32643
|
+
}
|
|
32644
|
+
],
|
|
32645
|
+
"isStatic": false,
|
|
32646
|
+
"returnTypeTokenRange": {
|
|
32647
|
+
"startIndex": 5,
|
|
32648
|
+
"endIndex": 6
|
|
32649
|
+
},
|
|
32650
|
+
"releaseTag": "Beta",
|
|
32651
|
+
"isProtected": false,
|
|
32652
|
+
"overloadIndex": 1,
|
|
32653
|
+
"parameters": [
|
|
32654
|
+
{
|
|
32655
|
+
"parameterName": "saved",
|
|
32656
|
+
"parameterTypeTokenRange": {
|
|
32657
|
+
"startIndex": 1,
|
|
32658
|
+
"endIndex": 2
|
|
32659
|
+
},
|
|
32660
|
+
"isOptional": false
|
|
32661
|
+
},
|
|
32662
|
+
{
|
|
32663
|
+
"parameterName": "interrupted",
|
|
32664
|
+
"parameterTypeTokenRange": {
|
|
32665
|
+
"startIndex": 3,
|
|
32666
|
+
"endIndex": 4
|
|
32667
|
+
},
|
|
32668
|
+
"isOptional": false
|
|
32669
|
+
}
|
|
32670
|
+
],
|
|
32671
|
+
"isOptional": false,
|
|
32672
|
+
"isAbstract": false,
|
|
32673
|
+
"name": "restoreHandOffData"
|
|
32674
|
+
},
|
|
32675
|
+
{
|
|
32676
|
+
"kind": "Method",
|
|
32677
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#restoreHandOffStack:member(1)",
|
|
32678
|
+
"docComment": "/**\n * Restore saved hand-offs, before the condense policies, against the agents configured now and the saved agent states. A frame whose caller has gone, or whose stateful caller has no saved state (`interrupted` drops them all), is unwound with `handoff-unwound`. When the top frame's target had finished, or has gone, its caller is due to resume: `resume` names it and the note its resumed turn needs, and {@link AiDriver.resumeRestoredFlow} hands back.\n */\n",
|
|
32679
|
+
"excerptTokens": [
|
|
32680
|
+
{
|
|
32681
|
+
"kind": "Content",
|
|
32682
|
+
"text": "restoreHandOffStack(saved: "
|
|
32683
|
+
},
|
|
32684
|
+
{
|
|
32685
|
+
"kind": "Content",
|
|
32686
|
+
"text": "unknown"
|
|
32687
|
+
},
|
|
32688
|
+
{
|
|
32689
|
+
"kind": "Content",
|
|
32690
|
+
"text": ", savedStates: "
|
|
32691
|
+
},
|
|
32692
|
+
{
|
|
32693
|
+
"kind": "Reference",
|
|
32694
|
+
"text": "Record",
|
|
32695
|
+
"canonicalReference": "!Record:type"
|
|
32696
|
+
},
|
|
32697
|
+
{
|
|
32698
|
+
"kind": "Content",
|
|
32699
|
+
"text": "<string, unknown>"
|
|
32700
|
+
},
|
|
32701
|
+
{
|
|
32702
|
+
"kind": "Content",
|
|
32703
|
+
"text": ", interrupted: "
|
|
32704
|
+
},
|
|
32705
|
+
{
|
|
32706
|
+
"kind": "Content",
|
|
32707
|
+
"text": "boolean"
|
|
32708
|
+
},
|
|
32709
|
+
{
|
|
32710
|
+
"kind": "Content",
|
|
32711
|
+
"text": "): "
|
|
32712
|
+
},
|
|
32713
|
+
{
|
|
32714
|
+
"kind": "Content",
|
|
32715
|
+
"text": "{\n resume?: {\n agent: string;\n note: string;\n };\n }"
|
|
32716
|
+
},
|
|
32717
|
+
{
|
|
32718
|
+
"kind": "Content",
|
|
32719
|
+
"text": ";"
|
|
32720
|
+
}
|
|
32721
|
+
],
|
|
32722
|
+
"isStatic": false,
|
|
32723
|
+
"returnTypeTokenRange": {
|
|
32724
|
+
"startIndex": 8,
|
|
32725
|
+
"endIndex": 9
|
|
32726
|
+
},
|
|
32727
|
+
"releaseTag": "Beta",
|
|
32728
|
+
"isProtected": false,
|
|
32729
|
+
"overloadIndex": 1,
|
|
32730
|
+
"parameters": [
|
|
32731
|
+
{
|
|
32732
|
+
"parameterName": "saved",
|
|
32733
|
+
"parameterTypeTokenRange": {
|
|
32734
|
+
"startIndex": 1,
|
|
32735
|
+
"endIndex": 2
|
|
32736
|
+
},
|
|
32737
|
+
"isOptional": false
|
|
32738
|
+
},
|
|
32739
|
+
{
|
|
32740
|
+
"parameterName": "savedStates",
|
|
32741
|
+
"parameterTypeTokenRange": {
|
|
32742
|
+
"startIndex": 3,
|
|
32743
|
+
"endIndex": 5
|
|
32744
|
+
},
|
|
32745
|
+
"isOptional": false
|
|
32746
|
+
},
|
|
32747
|
+
{
|
|
32748
|
+
"parameterName": "interrupted",
|
|
32749
|
+
"parameterTypeTokenRange": {
|
|
32750
|
+
"startIndex": 6,
|
|
32751
|
+
"endIndex": 7
|
|
32752
|
+
},
|
|
32753
|
+
"isOptional": false
|
|
32754
|
+
}
|
|
32755
|
+
],
|
|
32756
|
+
"isOptional": false,
|
|
32757
|
+
"isAbstract": false,
|
|
32758
|
+
"name": "restoreHandOffStack"
|
|
32759
|
+
},
|
|
30880
32760
|
{
|
|
30881
32761
|
"kind": "Method",
|
|
30882
32762
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#resumeRestoredFlow:member(1)",
|
|
@@ -31038,6 +32918,95 @@
|
|
|
31038
32918
|
"isOptional": false,
|
|
31039
32919
|
"isAbstract": false,
|
|
31040
32920
|
"name": "sendMessage"
|
|
32921
|
+
},
|
|
32922
|
+
{
|
|
32923
|
+
"kind": "Method",
|
|
32924
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#serializeWaitingCallers:member(1)",
|
|
32925
|
+
"docComment": "/**\n * The saved state of each caller waiting in a hand-off whose state is live, by name, from its `serialize`. Saved with the active agent's, so a reload can resume the caller.\n */\n",
|
|
32926
|
+
"excerptTokens": [
|
|
32927
|
+
{
|
|
32928
|
+
"kind": "Content",
|
|
32929
|
+
"text": "serializeWaitingCallers(): "
|
|
32930
|
+
},
|
|
32931
|
+
{
|
|
32932
|
+
"kind": "Reference",
|
|
32933
|
+
"text": "Record",
|
|
32934
|
+
"canonicalReference": "!Record:type"
|
|
32935
|
+
},
|
|
32936
|
+
{
|
|
32937
|
+
"kind": "Content",
|
|
32938
|
+
"text": "<string, unknown>"
|
|
32939
|
+
},
|
|
32940
|
+
{
|
|
32941
|
+
"kind": "Content",
|
|
32942
|
+
"text": ";"
|
|
32943
|
+
}
|
|
32944
|
+
],
|
|
32945
|
+
"isStatic": false,
|
|
32946
|
+
"returnTypeTokenRange": {
|
|
32947
|
+
"startIndex": 1,
|
|
32948
|
+
"endIndex": 3
|
|
32949
|
+
},
|
|
32950
|
+
"releaseTag": "Beta",
|
|
32951
|
+
"isProtected": false,
|
|
32952
|
+
"overloadIndex": 1,
|
|
32953
|
+
"parameters": [],
|
|
32954
|
+
"isOptional": false,
|
|
32955
|
+
"isAbstract": false,
|
|
32956
|
+
"name": "serializeWaitingCallers"
|
|
32957
|
+
},
|
|
32958
|
+
{
|
|
32959
|
+
"kind": "Method",
|
|
32960
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#unwindHandOffs:member(1)",
|
|
32961
|
+
"docComment": "/**\n * End every hand-off without a hand-back, newest first: the chat was cleared, or the agents changed. Each raises `handoff-unwound`; on Clear a waiting caller's `onHandOffReturn` is told.\n */\n",
|
|
32962
|
+
"excerptTokens": [
|
|
32963
|
+
{
|
|
32964
|
+
"kind": "Content",
|
|
32965
|
+
"text": "unwindHandOffs(kind: "
|
|
32966
|
+
},
|
|
32967
|
+
{
|
|
32968
|
+
"kind": "Content",
|
|
32969
|
+
"text": "'cleared' | 'state-lost'"
|
|
32970
|
+
},
|
|
32971
|
+
{
|
|
32972
|
+
"kind": "Content",
|
|
32973
|
+
"text": "): "
|
|
32974
|
+
},
|
|
32975
|
+
{
|
|
32976
|
+
"kind": "Reference",
|
|
32977
|
+
"text": "Promise",
|
|
32978
|
+
"canonicalReference": "!Promise:interface"
|
|
32979
|
+
},
|
|
32980
|
+
{
|
|
32981
|
+
"kind": "Content",
|
|
32982
|
+
"text": "<void>"
|
|
32983
|
+
},
|
|
32984
|
+
{
|
|
32985
|
+
"kind": "Content",
|
|
32986
|
+
"text": ";"
|
|
32987
|
+
}
|
|
32988
|
+
],
|
|
32989
|
+
"isStatic": false,
|
|
32990
|
+
"returnTypeTokenRange": {
|
|
32991
|
+
"startIndex": 3,
|
|
32992
|
+
"endIndex": 5
|
|
32993
|
+
},
|
|
32994
|
+
"releaseTag": "Beta",
|
|
32995
|
+
"isProtected": false,
|
|
32996
|
+
"overloadIndex": 1,
|
|
32997
|
+
"parameters": [
|
|
32998
|
+
{
|
|
32999
|
+
"parameterName": "kind",
|
|
33000
|
+
"parameterTypeTokenRange": {
|
|
33001
|
+
"startIndex": 1,
|
|
33002
|
+
"endIndex": 2
|
|
33003
|
+
},
|
|
33004
|
+
"isOptional": false
|
|
33005
|
+
}
|
|
33006
|
+
],
|
|
33007
|
+
"isOptional": false,
|
|
33008
|
+
"isAbstract": false,
|
|
33009
|
+
"name": "unwindHandOffs"
|
|
31041
33010
|
}
|
|
31042
33011
|
],
|
|
31043
33012
|
"extendsTokenRange": {
|
|
@@ -31671,6 +33640,70 @@
|
|
|
31671
33640
|
"endIndex": 2
|
|
31672
33641
|
}
|
|
31673
33642
|
},
|
|
33643
|
+
{
|
|
33644
|
+
"kind": "PropertySignature",
|
|
33645
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#handOffData:member",
|
|
33646
|
+
"docComment": "/**\n * The `data` each hand-off target was activated with, by agent name (GENC-1737), for the agents a restore resumes: the flow owner and the waiting callers. Not written for a frozen session. Optional and additive, like `handoffStack`; omitted when there is none.\n */\n",
|
|
33647
|
+
"excerptTokens": [
|
|
33648
|
+
{
|
|
33649
|
+
"kind": "Content",
|
|
33650
|
+
"text": "handOffData?: "
|
|
33651
|
+
},
|
|
33652
|
+
{
|
|
33653
|
+
"kind": "Reference",
|
|
33654
|
+
"text": "Record",
|
|
33655
|
+
"canonicalReference": "!Record:type"
|
|
33656
|
+
},
|
|
33657
|
+
{
|
|
33658
|
+
"kind": "Content",
|
|
33659
|
+
"text": "<string, unknown>"
|
|
33660
|
+
},
|
|
33661
|
+
{
|
|
33662
|
+
"kind": "Content",
|
|
33663
|
+
"text": ";"
|
|
33664
|
+
}
|
|
33665
|
+
],
|
|
33666
|
+
"isReadonly": false,
|
|
33667
|
+
"isOptional": true,
|
|
33668
|
+
"releaseTag": "Public",
|
|
33669
|
+
"name": "handOffData",
|
|
33670
|
+
"propertyTypeTokenRange": {
|
|
33671
|
+
"startIndex": 1,
|
|
33672
|
+
"endIndex": 3
|
|
33673
|
+
}
|
|
33674
|
+
},
|
|
33675
|
+
{
|
|
33676
|
+
"kind": "PropertySignature",
|
|
33677
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#handoffStack:member",
|
|
33678
|
+
"docComment": "/**\n * The hand-offs in progress, oldest first (GENC-1737): who waits for whom, and why. A frame with an `outcome` was finished by its target but its caller had not resumed yet, so a restore hands back. Each agent's own state is in `agentSnapshots`, the waiting callers' included. Optional and additive, like `condensePolicies`; omitted when there are none. The frame's shape, written out here as for `checkpoints`.\n */\n",
|
|
33679
|
+
"excerptTokens": [
|
|
33680
|
+
{
|
|
33681
|
+
"kind": "Content",
|
|
33682
|
+
"text": "handoffStack?: "
|
|
33683
|
+
},
|
|
33684
|
+
{
|
|
33685
|
+
"kind": "Reference",
|
|
33686
|
+
"text": "Array",
|
|
33687
|
+
"canonicalReference": "!Array:interface"
|
|
33688
|
+
},
|
|
33689
|
+
{
|
|
33690
|
+
"kind": "Content",
|
|
33691
|
+
"text": "<{\n id: string;\n caller: string;\n target: string;\n returnTo: boolean;\n message: string;\n data?: unknown;\n startedAt: string;\n outcome?: {\n kind: string;\n message?: string;\n data?: unknown;\n };\n }>"
|
|
33692
|
+
},
|
|
33693
|
+
{
|
|
33694
|
+
"kind": "Content",
|
|
33695
|
+
"text": ";"
|
|
33696
|
+
}
|
|
33697
|
+
],
|
|
33698
|
+
"isReadonly": false,
|
|
33699
|
+
"isOptional": true,
|
|
33700
|
+
"releaseTag": "Public",
|
|
33701
|
+
"name": "handoffStack",
|
|
33702
|
+
"propertyTypeTokenRange": {
|
|
33703
|
+
"startIndex": 1,
|
|
33704
|
+
"endIndex": 3
|
|
33705
|
+
}
|
|
33706
|
+
},
|
|
31674
33707
|
{
|
|
31675
33708
|
"kind": "PropertySignature",
|
|
31676
33709
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#host:member",
|
|
@@ -32129,33 +34162,6 @@
|
|
|
32129
34162
|
],
|
|
32130
34163
|
"name": "registerTieredAIProviders"
|
|
32131
34164
|
},
|
|
32132
|
-
{
|
|
32133
|
-
"kind": "Variable",
|
|
32134
|
-
"canonicalReference": "@genesislcap/ai-assistant!REQUEST_CONTINUATION_TOOL:var",
|
|
32135
|
-
"docComment": "/**\n * Name reserved for the cross-agent handoff tool — injected by OrchestratingDriver.\n *\n * @beta\n */\n",
|
|
32136
|
-
"excerptTokens": [
|
|
32137
|
-
{
|
|
32138
|
-
"kind": "Content",
|
|
32139
|
-
"text": "REQUEST_CONTINUATION_TOOL = "
|
|
32140
|
-
},
|
|
32141
|
-
{
|
|
32142
|
-
"kind": "Content",
|
|
32143
|
-
"text": "\"request_continuation\""
|
|
32144
|
-
}
|
|
32145
|
-
],
|
|
32146
|
-
"fileUrlPath": "src/components/chat-driver/chat-driver.constants.ts",
|
|
32147
|
-
"initializerTokenRange": {
|
|
32148
|
-
"startIndex": 1,
|
|
32149
|
-
"endIndex": 2
|
|
32150
|
-
},
|
|
32151
|
-
"isReadonly": true,
|
|
32152
|
-
"releaseTag": "Beta",
|
|
32153
|
-
"name": "REQUEST_CONTINUATION_TOOL",
|
|
32154
|
-
"variableTypeTokenRange": {
|
|
32155
|
-
"startIndex": 0,
|
|
32156
|
-
"endIndex": 0
|
|
32157
|
-
}
|
|
32158
|
-
},
|
|
32159
34165
|
{
|
|
32160
34166
|
"kind": "Function",
|
|
32161
34167
|
"canonicalReference": "@genesislcap/ai-assistant!requestAgentNotificationPermission:function(1)",
|
|
@@ -32429,7 +34435,7 @@
|
|
|
32429
34435
|
},
|
|
32430
34436
|
{
|
|
32431
34437
|
"kind": "Content",
|
|
32432
|
-
"text": "'classified'\n/** The classifier ran and answered -1: nothing listed covers the request. */\n | 'no-match'\n
|
|
34438
|
+
"text": "'classified'\n/** The classifier ran and answered -1: nothing listed covers the request. */\n | 'no-match'\n/** One viable specialist and no fallback — no point asking. */\n | 'single-candidate'\n/** Nothing classifier-eligible was configured. */\n | 'no-specialists'\n/** The registry default exposes no `chat()`, so no classification is possible. */\n | 'provider-unavailable'\n/** Every attempt threw. `detail.error` carries the last message. */\n | 'classifier-failed'\n/** A pin or an active flow owned the turn; the classifier was skipped. */\n | 'pinned'"
|
|
32433
34439
|
},
|
|
32434
34440
|
{
|
|
32435
34441
|
"kind": "Content",
|
|
@@ -39040,7 +41046,7 @@
|
|
|
39040
41046
|
{
|
|
39041
41047
|
"kind": "Variable",
|
|
39042
41048
|
"canonicalReference": "@genesislcap/ai-assistant!UNROUTABLE_INSTRUCTION:var",
|
|
39043
|
-
"docComment": "/**\n * The instruction a fallback agent needs and, left to itself, tends not to have.\n *\n * A fallback prompt written by a consumer reliably covers two cases — small talk, and a request that belongs to a specialist — because those are the ones you think of when you write it. The case it exists FOR is the third: a substantive request that no specialist covers, and no way to act on it, because a fallback holds no tools
|
|
41049
|
+
"docComment": "/**\n * The instruction a fallback agent needs and, left to itself, tends not to have.\n *\n * A fallback prompt written by a consumer reliably covers two cases — small talk, and a request that belongs to a specialist — because those are the ones you think of when you write it. The case it exists FOR is the third: a substantive request that no specialist covers, and no way to act on it, because a fallback holds no tools.\n *\n * Create's fallback prompt is the worked example (GENC-1573). It covered chit-chat and \"out of scope, here are the specialists\", said nothing about a request nothing can serve, and nothing about a terse follow-up (\"fix it\", \"try again\") aimed at an answer already given. Asked to fix a Kotlin null pointer no agent could touch, it returned nine blank turns across three page loads — a model with no instruction covering its situation and no tool to reach for.\n *\n * So the framework supplies it. Appended to a string-form prompt (or substituted at {@link UNROUTABLE_PLACEHOLDER} if the consumer positions it), because a fallback with no answer for its own reason to exist is a defect in every host, not a matter of taste. It is additive and static: being fixed it cannot destabilise a cached prefix, and the fallback prompt already changes whenever the agents array does (`{{agents}}` interpolates the specialist list). The function form still passes through untouched — a consumer that wants full control has it there.\n *\n * DELIBERATELY CONFINED TO WHAT A TERSE PROMPT CAN ALSO OBEY, and it must stay that way. Since this is appended by default it lands on top of prompts written with their own tone rules, and an earlier draft asked the model to \"state what you can establish… and suggest what the user could do next\" — a direct contradiction of {@link strictFallbackAgent}, a preset THIS PACKAGE ships, whose whole instruction is \"a single short sentence… Do not elaborate\". What is left here is compatible with brevity: say so, don't promise work you cannot do, read a short follow-up in context, and never answer with nothing. Adding anything that presumes room to elaborate breaks a shipped preset — put it in the consumer's own prompt instead.\n *\n * @beta\n */\n",
|
|
39044
41050
|
"excerptTokens": [
|
|
39045
41051
|
{
|
|
39046
41052
|
"kind": "Content",
|