@genesislcap/ai-assistant 15.34.1 → 15.35.1-GENC-1632.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 +483 -0
- package/dist/ai-assistant.d.ts +170 -0
- package/dist/chat-driver.cjs +211 -4
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +211 -4
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +690 -1
- package/dist/dts/components/ai-driver/ai-driver.d.ts +22 -0
- package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +83 -0
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +14 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/genesis/config.d.ts +22 -0
- package/dist/dts/genesis/config.d.ts.map +1 -0
- package/dist/dts/genesis/criteria.d.ts +83 -0
- package/dist/dts/genesis/criteria.d.ts.map +1 -0
- package/dist/dts/genesis/filter-fields.d.ts +62 -0
- package/dist/dts/genesis/filter-fields.d.ts.map +1 -0
- package/dist/dts/genesis/index.d.ts +19 -0
- package/dist/dts/genesis/index.d.ts.map +1 -0
- package/dist/dts/genesis/register-genesis-assistant.d.ts +52 -0
- package/dist/dts/genesis/register-genesis-assistant.d.ts.map +1 -0
- package/dist/dts/genesis/resource-tools.d.ts +86 -0
- package/dist/dts/genesis/resource-tools.d.ts.map +1 -0
- package/dist/dts/genesis/types.d.ts +115 -0
- package/dist/dts/genesis/types.d.ts.map +1 -0
- package/dist/dts/state/persistence/index.d.ts +1 -0
- package/dist/dts/state/persistence/index.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-persister.d.ts +12 -0
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts +14 -0
- package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
- package/dist/dts/utils/condense-history.d.ts +107 -0
- package/dist/dts/utils/condense-history.d.ts.map +1 -1
- package/dist/esm/components/chat-driver/chat-driver.js +133 -17
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +17 -0
- package/dist/esm/genesis/config.js +86 -0
- package/dist/esm/genesis/criteria.js +426 -0
- package/dist/esm/genesis/filter-fields.js +124 -0
- package/dist/esm/genesis/index.js +15 -0
- package/dist/esm/genesis/register-genesis-assistant.js +160 -0
- package/dist/esm/genesis/resource-tools.js +378 -0
- package/dist/esm/genesis/types.js +6 -0
- package/dist/esm/state/persistence/session-persister.js +50 -4
- package/dist/esm/state/persistence/session-snapshot.js +2 -17
- package/dist/esm/utils/condense-history.js +118 -0
- package/docs/genesis.md +180 -0
- package/package.json +32 -16
|
@@ -3447,6 +3447,65 @@
|
|
|
3447
3447
|
],
|
|
3448
3448
|
"name": "getCompactionPlan"
|
|
3449
3449
|
},
|
|
3450
|
+
{
|
|
3451
|
+
"kind": "MethodSignature",
|
|
3452
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getCondensePoliciesForPersistence:member(1)",
|
|
3453
|
+
"docComment": "/**\n * The `condenseWhen` policies that have NOT fired yet, for the tool calls in `messages` — the transcript being persisted — in a clock-independent form a later {@link AiDriver.restoreCondensePolicies} can re-register (GENC-1632). The companion of {@link AiDriver.getHistoryForPersistence}: that stores already-collapsed payloads as stubs; this keeps the not-yet-collapsed ones collapsible across a reload, where they would otherwise ride every provider call for the rest of the session. Optional, like its companion — a driver without condensation has none.\n *\n * @beta\n */\n",
|
|
3454
|
+
"excerptTokens": [
|
|
3455
|
+
{
|
|
3456
|
+
"kind": "Content",
|
|
3457
|
+
"text": "getCondensePoliciesForPersistence?(messages: "
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"kind": "Content",
|
|
3461
|
+
"text": "readonly "
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"kind": "Reference",
|
|
3465
|
+
"text": "ChatMessage",
|
|
3466
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
3467
|
+
},
|
|
3468
|
+
{
|
|
3469
|
+
"kind": "Content",
|
|
3470
|
+
"text": "[]"
|
|
3471
|
+
},
|
|
3472
|
+
{
|
|
3473
|
+
"kind": "Content",
|
|
3474
|
+
"text": "): "
|
|
3475
|
+
},
|
|
3476
|
+
{
|
|
3477
|
+
"kind": "Reference",
|
|
3478
|
+
"text": "PersistedCondensePolicy",
|
|
3479
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy:interface"
|
|
3480
|
+
},
|
|
3481
|
+
{
|
|
3482
|
+
"kind": "Content",
|
|
3483
|
+
"text": "[]"
|
|
3484
|
+
},
|
|
3485
|
+
{
|
|
3486
|
+
"kind": "Content",
|
|
3487
|
+
"text": ";"
|
|
3488
|
+
}
|
|
3489
|
+
],
|
|
3490
|
+
"isOptional": true,
|
|
3491
|
+
"returnTypeTokenRange": {
|
|
3492
|
+
"startIndex": 5,
|
|
3493
|
+
"endIndex": 7
|
|
3494
|
+
},
|
|
3495
|
+
"releaseTag": "Beta",
|
|
3496
|
+
"overloadIndex": 1,
|
|
3497
|
+
"parameters": [
|
|
3498
|
+
{
|
|
3499
|
+
"parameterName": "messages",
|
|
3500
|
+
"parameterTypeTokenRange": {
|
|
3501
|
+
"startIndex": 1,
|
|
3502
|
+
"endIndex": 4
|
|
3503
|
+
},
|
|
3504
|
+
"isOptional": false
|
|
3505
|
+
}
|
|
3506
|
+
],
|
|
3507
|
+
"name": "getCondensePoliciesForPersistence"
|
|
3508
|
+
},
|
|
3450
3509
|
{
|
|
3451
3510
|
"kind": "MethodSignature",
|
|
3452
3511
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getContextReserve:member(1)",
|
|
@@ -4070,6 +4129,51 @@
|
|
|
4070
4129
|
],
|
|
4071
4130
|
"name": "resolveInteraction"
|
|
4072
4131
|
},
|
|
4132
|
+
{
|
|
4133
|
+
"kind": "MethodSignature",
|
|
4134
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreCondensePolicies:member(1)",
|
|
4135
|
+
"docComment": "/**\n * Re-register policies from {@link AiDriver.getCondensePoliciesForPersistence} against a restored transcript (GENC-1632). Call after {@link AiDriver.loadHistory}: entries whose tool call is not in the loaded history are dropped. Tolerates `undefined` and malformed entries (an older or damaged snapshot), which are ignored.\n *\n * @beta\n */\n",
|
|
4136
|
+
"excerptTokens": [
|
|
4137
|
+
{
|
|
4138
|
+
"kind": "Content",
|
|
4139
|
+
"text": "restoreCondensePolicies?(entries: "
|
|
4140
|
+
},
|
|
4141
|
+
{
|
|
4142
|
+
"kind": "Content",
|
|
4143
|
+
"text": "readonly unknown[] | undefined"
|
|
4144
|
+
},
|
|
4145
|
+
{
|
|
4146
|
+
"kind": "Content",
|
|
4147
|
+
"text": "): "
|
|
4148
|
+
},
|
|
4149
|
+
{
|
|
4150
|
+
"kind": "Content",
|
|
4151
|
+
"text": "void"
|
|
4152
|
+
},
|
|
4153
|
+
{
|
|
4154
|
+
"kind": "Content",
|
|
4155
|
+
"text": ";"
|
|
4156
|
+
}
|
|
4157
|
+
],
|
|
4158
|
+
"isOptional": true,
|
|
4159
|
+
"returnTypeTokenRange": {
|
|
4160
|
+
"startIndex": 3,
|
|
4161
|
+
"endIndex": 4
|
|
4162
|
+
},
|
|
4163
|
+
"releaseTag": "Beta",
|
|
4164
|
+
"overloadIndex": 1,
|
|
4165
|
+
"parameters": [
|
|
4166
|
+
{
|
|
4167
|
+
"parameterName": "entries",
|
|
4168
|
+
"parameterTypeTokenRange": {
|
|
4169
|
+
"startIndex": 1,
|
|
4170
|
+
"endIndex": 2
|
|
4171
|
+
},
|
|
4172
|
+
"isOptional": false
|
|
4173
|
+
}
|
|
4174
|
+
],
|
|
4175
|
+
"name": "restoreCondensePolicies"
|
|
4176
|
+
},
|
|
4073
4177
|
{
|
|
4074
4178
|
"kind": "MethodSignature",
|
|
4075
4179
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#sendMessage:member(1)",
|
|
@@ -5798,6 +5902,68 @@
|
|
|
5798
5902
|
"isAbstract": false,
|
|
5799
5903
|
"name": "getCompactionPlan"
|
|
5800
5904
|
},
|
|
5905
|
+
{
|
|
5906
|
+
"kind": "Method",
|
|
5907
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getCondensePoliciesForPersistence:member(1)",
|
|
5908
|
+
"docComment": "/**\n * The `condenseWhen` policies that have not fired yet, for the calls in `messages`, in the clock-independent form {@link ChatDriver.restoreCondensePolicies} re-registers. See {@link AiDriver.getCondensePoliciesForPersistence}.\n *\n * The other half of {@link ChatDriver.getHistoryForPersistence} (GENC-1632). That stores the payloads the model has already stopped seeing as their stubs; this stores the policies for the ones it has NOT stopped seeing yet, so a reload does not strand them at full size for the rest of the session. Only entries whose call is in `messages` — the transcript actually being written — are returned, so a frozen (non-resumable) or compacted save carries no policy for a call it does not contain.\n *\n * @beta\n */\n",
|
|
5909
|
+
"excerptTokens": [
|
|
5910
|
+
{
|
|
5911
|
+
"kind": "Content",
|
|
5912
|
+
"text": "getCondensePoliciesForPersistence(messages: "
|
|
5913
|
+
},
|
|
5914
|
+
{
|
|
5915
|
+
"kind": "Content",
|
|
5916
|
+
"text": "readonly "
|
|
5917
|
+
},
|
|
5918
|
+
{
|
|
5919
|
+
"kind": "Reference",
|
|
5920
|
+
"text": "ChatMessage",
|
|
5921
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
5922
|
+
},
|
|
5923
|
+
{
|
|
5924
|
+
"kind": "Content",
|
|
5925
|
+
"text": "[]"
|
|
5926
|
+
},
|
|
5927
|
+
{
|
|
5928
|
+
"kind": "Content",
|
|
5929
|
+
"text": "): "
|
|
5930
|
+
},
|
|
5931
|
+
{
|
|
5932
|
+
"kind": "Reference",
|
|
5933
|
+
"text": "PersistedCondensePolicy",
|
|
5934
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy:interface"
|
|
5935
|
+
},
|
|
5936
|
+
{
|
|
5937
|
+
"kind": "Content",
|
|
5938
|
+
"text": "[]"
|
|
5939
|
+
},
|
|
5940
|
+
{
|
|
5941
|
+
"kind": "Content",
|
|
5942
|
+
"text": ";"
|
|
5943
|
+
}
|
|
5944
|
+
],
|
|
5945
|
+
"isStatic": false,
|
|
5946
|
+
"returnTypeTokenRange": {
|
|
5947
|
+
"startIndex": 5,
|
|
5948
|
+
"endIndex": 7
|
|
5949
|
+
},
|
|
5950
|
+
"releaseTag": "Beta",
|
|
5951
|
+
"isProtected": false,
|
|
5952
|
+
"overloadIndex": 1,
|
|
5953
|
+
"parameters": [
|
|
5954
|
+
{
|
|
5955
|
+
"parameterName": "messages",
|
|
5956
|
+
"parameterTypeTokenRange": {
|
|
5957
|
+
"startIndex": 1,
|
|
5958
|
+
"endIndex": 4
|
|
5959
|
+
},
|
|
5960
|
+
"isOptional": false
|
|
5961
|
+
}
|
|
5962
|
+
],
|
|
5963
|
+
"isOptional": false,
|
|
5964
|
+
"isAbstract": false,
|
|
5965
|
+
"name": "getCondensePoliciesForPersistence"
|
|
5966
|
+
},
|
|
5801
5967
|
{
|
|
5802
5968
|
"kind": "Method",
|
|
5803
5969
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getExternalDiagnostics:member(1)",
|
|
@@ -6804,6 +6970,54 @@
|
|
|
6804
6970
|
"isAbstract": false,
|
|
6805
6971
|
"name": "resolveInteraction"
|
|
6806
6972
|
},
|
|
6973
|
+
{
|
|
6974
|
+
"kind": "Method",
|
|
6975
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreCondensePolicies:member(1)",
|
|
6976
|
+
"docComment": "/**\n * Re-register policies saved by {@link ChatDriver.getCondensePoliciesForPersistence} against the restored transcript. See {@link AiDriver.restoreCondensePolicies}.\n *\n * Call AFTER {@link ChatDriver.loadHistory} has seeded the restored transcript: an entry is re-registered only if its tool call is in the driver's history, so one whose call the restorable-boundary trim cut away (an orphaned trailing `tool_use`) is dropped rather than resurrected against nothing.\n *\n * First-wins still holds per call: an entry is skipped if a policy is already registered for its tool call — a restore never overrides what a live handler declared. `superseded` needs no special handling — survivors are resolved from HISTORY order on every pass, so a restored entry and a later call on the same `by` key resolve exactly as two live ones would.\n *\n * Clocks are rebased so each trigger is exactly as far from firing as it was at save time (see `rebaseRestoredCondensePolicy`), with one deferral. An entry owned by the activation that was live at save time, whose agent is not the one installed right now — the normal case on a fresh page, where nothing is installed yet — is parked in `condenseAwaitingReactivation` and stamped by the next `installAgent`: with that agent's resumed activation if it is the same agent, or left behind (so it reads as ended, which it has) if a different agent took over.\n *\n * A host with no agent to re-activate (a bare driver built from a static config) loses nothing by this: the entry's owner (`undefined`) matches the installed agent (`undefined`), so it is stamped live straight away and ends when the driver's single activation does — on `releaseAgent` / `completeSubAgent`, exactly as a policy registered live would.\n *\n * @beta\n */\n",
|
|
6977
|
+
"excerptTokens": [
|
|
6978
|
+
{
|
|
6979
|
+
"kind": "Content",
|
|
6980
|
+
"text": "restoreCondensePolicies(entries: "
|
|
6981
|
+
},
|
|
6982
|
+
{
|
|
6983
|
+
"kind": "Content",
|
|
6984
|
+
"text": "readonly unknown[] | undefined"
|
|
6985
|
+
},
|
|
6986
|
+
{
|
|
6987
|
+
"kind": "Content",
|
|
6988
|
+
"text": "): "
|
|
6989
|
+
},
|
|
6990
|
+
{
|
|
6991
|
+
"kind": "Content",
|
|
6992
|
+
"text": "void"
|
|
6993
|
+
},
|
|
6994
|
+
{
|
|
6995
|
+
"kind": "Content",
|
|
6996
|
+
"text": ";"
|
|
6997
|
+
}
|
|
6998
|
+
],
|
|
6999
|
+
"isStatic": false,
|
|
7000
|
+
"returnTypeTokenRange": {
|
|
7001
|
+
"startIndex": 3,
|
|
7002
|
+
"endIndex": 4
|
|
7003
|
+
},
|
|
7004
|
+
"releaseTag": "Beta",
|
|
7005
|
+
"isProtected": false,
|
|
7006
|
+
"overloadIndex": 1,
|
|
7007
|
+
"parameters": [
|
|
7008
|
+
{
|
|
7009
|
+
"parameterName": "entries",
|
|
7010
|
+
"parameterTypeTokenRange": {
|
|
7011
|
+
"startIndex": 1,
|
|
7012
|
+
"endIndex": 2
|
|
7013
|
+
},
|
|
7014
|
+
"isOptional": false
|
|
7015
|
+
}
|
|
7016
|
+
],
|
|
7017
|
+
"isOptional": false,
|
|
7018
|
+
"isAbstract": false,
|
|
7019
|
+
"name": "restoreCondensePolicies"
|
|
7020
|
+
},
|
|
6807
7021
|
{
|
|
6808
7022
|
"kind": "Method",
|
|
6809
7023
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#sendMessage:member(1)",
|
|
@@ -17894,6 +18108,68 @@
|
|
|
17894
18108
|
"isAbstract": false,
|
|
17895
18109
|
"name": "getCompactionPlan"
|
|
17896
18110
|
},
|
|
18111
|
+
{
|
|
18112
|
+
"kind": "Method",
|
|
18113
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getCondensePoliciesForPersistence:member(1)",
|
|
18114
|
+
"docComment": "/**\n * Delegates to the inner {@link ChatDriver}, which owns the condensation registry and clocks (GENC-1632). The forward matters for the same reason as `getHistoryForPersistence` above: the persister reaches it through `?.`, so a missing forward would compile, pass the ChatDriver tests, and do nothing for every orchestrated host — which is every host with an agents array.\n */\n",
|
|
18115
|
+
"excerptTokens": [
|
|
18116
|
+
{
|
|
18117
|
+
"kind": "Content",
|
|
18118
|
+
"text": "getCondensePoliciesForPersistence(messages: "
|
|
18119
|
+
},
|
|
18120
|
+
{
|
|
18121
|
+
"kind": "Content",
|
|
18122
|
+
"text": "readonly "
|
|
18123
|
+
},
|
|
18124
|
+
{
|
|
18125
|
+
"kind": "Reference",
|
|
18126
|
+
"text": "ChatMessage",
|
|
18127
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
18128
|
+
},
|
|
18129
|
+
{
|
|
18130
|
+
"kind": "Content",
|
|
18131
|
+
"text": "[]"
|
|
18132
|
+
},
|
|
18133
|
+
{
|
|
18134
|
+
"kind": "Content",
|
|
18135
|
+
"text": "): "
|
|
18136
|
+
},
|
|
18137
|
+
{
|
|
18138
|
+
"kind": "Reference",
|
|
18139
|
+
"text": "PersistedCondensePolicy",
|
|
18140
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy:interface"
|
|
18141
|
+
},
|
|
18142
|
+
{
|
|
18143
|
+
"kind": "Content",
|
|
18144
|
+
"text": "[]"
|
|
18145
|
+
},
|
|
18146
|
+
{
|
|
18147
|
+
"kind": "Content",
|
|
18148
|
+
"text": ";"
|
|
18149
|
+
}
|
|
18150
|
+
],
|
|
18151
|
+
"isStatic": false,
|
|
18152
|
+
"returnTypeTokenRange": {
|
|
18153
|
+
"startIndex": 5,
|
|
18154
|
+
"endIndex": 7
|
|
18155
|
+
},
|
|
18156
|
+
"releaseTag": "Beta",
|
|
18157
|
+
"isProtected": false,
|
|
18158
|
+
"overloadIndex": 1,
|
|
18159
|
+
"parameters": [
|
|
18160
|
+
{
|
|
18161
|
+
"parameterName": "messages",
|
|
18162
|
+
"parameterTypeTokenRange": {
|
|
18163
|
+
"startIndex": 1,
|
|
18164
|
+
"endIndex": 4
|
|
18165
|
+
},
|
|
18166
|
+
"isOptional": false
|
|
18167
|
+
}
|
|
18168
|
+
],
|
|
18169
|
+
"isOptional": false,
|
|
18170
|
+
"isAbstract": false,
|
|
18171
|
+
"name": "getCondensePoliciesForPersistence"
|
|
18172
|
+
},
|
|
17897
18173
|
{
|
|
17898
18174
|
"kind": "Method",
|
|
17899
18175
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getContextReserve:member(1)",
|
|
@@ -18556,6 +18832,54 @@
|
|
|
18556
18832
|
"isAbstract": false,
|
|
18557
18833
|
"name": "resolveInteraction"
|
|
18558
18834
|
},
|
|
18835
|
+
{
|
|
18836
|
+
"kind": "Method",
|
|
18837
|
+
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#restoreCondensePolicies:member(1)",
|
|
18838
|
+
"docComment": "/**\n * Delegates to the inner {@link ChatDriver} (GENC-1632). The deferred activation stamp it performs is taken by the inner driver's `installAgent`, which this driver's own `installAgent` always reaches, so nothing extra is needed here.\n */\n",
|
|
18839
|
+
"excerptTokens": [
|
|
18840
|
+
{
|
|
18841
|
+
"kind": "Content",
|
|
18842
|
+
"text": "restoreCondensePolicies(entries: "
|
|
18843
|
+
},
|
|
18844
|
+
{
|
|
18845
|
+
"kind": "Content",
|
|
18846
|
+
"text": "readonly unknown[] | undefined"
|
|
18847
|
+
},
|
|
18848
|
+
{
|
|
18849
|
+
"kind": "Content",
|
|
18850
|
+
"text": "): "
|
|
18851
|
+
},
|
|
18852
|
+
{
|
|
18853
|
+
"kind": "Content",
|
|
18854
|
+
"text": "void"
|
|
18855
|
+
},
|
|
18856
|
+
{
|
|
18857
|
+
"kind": "Content",
|
|
18858
|
+
"text": ";"
|
|
18859
|
+
}
|
|
18860
|
+
],
|
|
18861
|
+
"isStatic": false,
|
|
18862
|
+
"returnTypeTokenRange": {
|
|
18863
|
+
"startIndex": 3,
|
|
18864
|
+
"endIndex": 4
|
|
18865
|
+
},
|
|
18866
|
+
"releaseTag": "Beta",
|
|
18867
|
+
"isProtected": false,
|
|
18868
|
+
"overloadIndex": 1,
|
|
18869
|
+
"parameters": [
|
|
18870
|
+
{
|
|
18871
|
+
"parameterName": "entries",
|
|
18872
|
+
"parameterTypeTokenRange": {
|
|
18873
|
+
"startIndex": 1,
|
|
18874
|
+
"endIndex": 2
|
|
18875
|
+
},
|
|
18876
|
+
"isOptional": false
|
|
18877
|
+
}
|
|
18878
|
+
],
|
|
18879
|
+
"isOptional": false,
|
|
18880
|
+
"isAbstract": false,
|
|
18881
|
+
"name": "restoreCondensePolicies"
|
|
18882
|
+
},
|
|
18559
18883
|
{
|
|
18560
18884
|
"kind": "Method",
|
|
18561
18885
|
"canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#sendMessage:member(1)",
|
|
@@ -18823,6 +19147,133 @@
|
|
|
18823
19147
|
"endIndex": 0
|
|
18824
19148
|
}
|
|
18825
19149
|
},
|
|
19150
|
+
{
|
|
19151
|
+
"kind": "Interface",
|
|
19152
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy:interface",
|
|
19153
|
+
"docComment": "/**\n * A `condenseWhen` policy that had NOT fired when the session was saved, in the shape it is persisted in (GENC-1632).\n *\n * The clocks are stored as **elapsed counts, never raw values**, and that is the whole design. All four driver clocks restart at 0 on a page reload, so a raw stamp means nothing to the driver that reads it back, and it is wrong in whichever direction the arithmetic happens to fall. A phase epoch of 1 restored against a fresh driver's 0 needs TWO `endPhase()` calls to fire, so the Planning-phase document it guards is never shed at the end of Planning; an activation stamp that lands below the fresh driver's clock reads as \"a later activation began\" — the `agentEnd` trigger — and collapses the payload on the first provider call after the reload, mid-phase. \"How far each clock had moved past the call when it was saved\" survives any reset, because it is re-applied relative to whatever the new driver's clocks happen to read.\n *\n * Only unfired entries are persisted: a fired one has already been rendered into the stored transcript as the stub the model was sent (GENC-1566), so there is nothing left for it to do.\n *\n * @public\n */\n",
|
|
19154
|
+
"excerptTokens": [
|
|
19155
|
+
{
|
|
19156
|
+
"kind": "Content",
|
|
19157
|
+
"text": "export interface PersistedCondensePolicy "
|
|
19158
|
+
}
|
|
19159
|
+
],
|
|
19160
|
+
"fileUrlPath": "src/utils/condense-history.ts",
|
|
19161
|
+
"releaseTag": "Public",
|
|
19162
|
+
"name": "PersistedCondensePolicy",
|
|
19163
|
+
"preserveMemberOrder": false,
|
|
19164
|
+
"members": [
|
|
19165
|
+
{
|
|
19166
|
+
"kind": "PropertySignature",
|
|
19167
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy#agent:member",
|
|
19168
|
+
"docComment": "/**\n * Name of the agent whose activation made the call; absent on a driver with no installed agent.\n */\n",
|
|
19169
|
+
"excerptTokens": [
|
|
19170
|
+
{
|
|
19171
|
+
"kind": "Content",
|
|
19172
|
+
"text": "agent?: "
|
|
19173
|
+
},
|
|
19174
|
+
{
|
|
19175
|
+
"kind": "Content",
|
|
19176
|
+
"text": "string"
|
|
19177
|
+
},
|
|
19178
|
+
{
|
|
19179
|
+
"kind": "Content",
|
|
19180
|
+
"text": ";"
|
|
19181
|
+
}
|
|
19182
|
+
],
|
|
19183
|
+
"isReadonly": false,
|
|
19184
|
+
"isOptional": true,
|
|
19185
|
+
"releaseTag": "Public",
|
|
19186
|
+
"name": "agent",
|
|
19187
|
+
"propertyTypeTokenRange": {
|
|
19188
|
+
"startIndex": 1,
|
|
19189
|
+
"endIndex": 2
|
|
19190
|
+
}
|
|
19191
|
+
},
|
|
19192
|
+
{
|
|
19193
|
+
"kind": "PropertySignature",
|
|
19194
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy#elapsed:member",
|
|
19195
|
+
"docComment": "/**\n * How far each clock had advanced past the call's stamp at save time. `0` means \"still the current one\": the call's turn / activation / phase was the live one when the session was saved. A positive count means that boundary had already passed, so the trigger keyed on it fires on the first provider call after restore (it would have fired on the next call anyway; it only had not been latched because no call had happened since).\n */\n",
|
|
19196
|
+
"excerptTokens": [
|
|
19197
|
+
{
|
|
19198
|
+
"kind": "Content",
|
|
19199
|
+
"text": "elapsed: "
|
|
19200
|
+
},
|
|
19201
|
+
{
|
|
19202
|
+
"kind": "Content",
|
|
19203
|
+
"text": "{\n modelCalls: number;\n turns: number;\n activations: number;\n phases: number;\n }"
|
|
19204
|
+
},
|
|
19205
|
+
{
|
|
19206
|
+
"kind": "Content",
|
|
19207
|
+
"text": ";"
|
|
19208
|
+
}
|
|
19209
|
+
],
|
|
19210
|
+
"isReadonly": false,
|
|
19211
|
+
"isOptional": false,
|
|
19212
|
+
"releaseTag": "Public",
|
|
19213
|
+
"name": "elapsed",
|
|
19214
|
+
"propertyTypeTokenRange": {
|
|
19215
|
+
"startIndex": 1,
|
|
19216
|
+
"endIndex": 2
|
|
19217
|
+
}
|
|
19218
|
+
},
|
|
19219
|
+
{
|
|
19220
|
+
"kind": "PropertySignature",
|
|
19221
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy#policy:member",
|
|
19222
|
+
"docComment": "/**\n * The policy exactly as the tool declared it.\n */\n",
|
|
19223
|
+
"excerptTokens": [
|
|
19224
|
+
{
|
|
19225
|
+
"kind": "Content",
|
|
19226
|
+
"text": "policy: "
|
|
19227
|
+
},
|
|
19228
|
+
{
|
|
19229
|
+
"kind": "Reference",
|
|
19230
|
+
"text": "CondensePolicy",
|
|
19231
|
+
"canonicalReference": "@genesislcap/foundation-ai!CondensePolicy:interface"
|
|
19232
|
+
},
|
|
19233
|
+
{
|
|
19234
|
+
"kind": "Content",
|
|
19235
|
+
"text": ";"
|
|
19236
|
+
}
|
|
19237
|
+
],
|
|
19238
|
+
"isReadonly": false,
|
|
19239
|
+
"isOptional": false,
|
|
19240
|
+
"releaseTag": "Public",
|
|
19241
|
+
"name": "policy",
|
|
19242
|
+
"propertyTypeTokenRange": {
|
|
19243
|
+
"startIndex": 1,
|
|
19244
|
+
"endIndex": 2
|
|
19245
|
+
}
|
|
19246
|
+
},
|
|
19247
|
+
{
|
|
19248
|
+
"kind": "PropertySignature",
|
|
19249
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy#toolCallId:member",
|
|
19250
|
+
"docComment": "/**\n * The tool call the policy is registered against.\n */\n",
|
|
19251
|
+
"excerptTokens": [
|
|
19252
|
+
{
|
|
19253
|
+
"kind": "Content",
|
|
19254
|
+
"text": "toolCallId: "
|
|
19255
|
+
},
|
|
19256
|
+
{
|
|
19257
|
+
"kind": "Content",
|
|
19258
|
+
"text": "string"
|
|
19259
|
+
},
|
|
19260
|
+
{
|
|
19261
|
+
"kind": "Content",
|
|
19262
|
+
"text": ";"
|
|
19263
|
+
}
|
|
19264
|
+
],
|
|
19265
|
+
"isReadonly": false,
|
|
19266
|
+
"isOptional": false,
|
|
19267
|
+
"releaseTag": "Public",
|
|
19268
|
+
"name": "toolCallId",
|
|
19269
|
+
"propertyTypeTokenRange": {
|
|
19270
|
+
"startIndex": 1,
|
|
19271
|
+
"endIndex": 2
|
|
19272
|
+
}
|
|
19273
|
+
}
|
|
19274
|
+
],
|
|
19275
|
+
"extendsTokenRanges": []
|
|
19276
|
+
},
|
|
18826
19277
|
{
|
|
18827
19278
|
"kind": "Interface",
|
|
18828
19279
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession:interface",
|
|
@@ -18951,6 +19402,38 @@
|
|
|
18951
19402
|
"endIndex": 3
|
|
18952
19403
|
}
|
|
18953
19404
|
},
|
|
19405
|
+
{
|
|
19406
|
+
"kind": "PropertySignature",
|
|
19407
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#condensePolicies:member",
|
|
19408
|
+
"docComment": "/**\n * `condenseWhen` policies that had not fired yet when the session was saved, for tool calls in {@link PersistedSession.messages} (GENC-1632). Handed back to the driver on restore so those payloads still collapse when their trigger fires, instead of riding every provider call for the rest of the resumed session at full size. Payloads that HAD already collapsed need no entry: `messages` already stores them as the stubs the model was sent (GENC-1566).\n *\n * Optional and additive, so the schema `version` is unchanged: a snapshot written before this field existed restores exactly as it always did (nothing to re-register), and a reader that predates it ignores it. Omitted rather than written empty when there is nothing to carry.\n */\n",
|
|
19409
|
+
"excerptTokens": [
|
|
19410
|
+
{
|
|
19411
|
+
"kind": "Content",
|
|
19412
|
+
"text": "condensePolicies?: "
|
|
19413
|
+
},
|
|
19414
|
+
{
|
|
19415
|
+
"kind": "Reference",
|
|
19416
|
+
"text": "PersistedCondensePolicy",
|
|
19417
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedCondensePolicy:interface"
|
|
19418
|
+
},
|
|
19419
|
+
{
|
|
19420
|
+
"kind": "Content",
|
|
19421
|
+
"text": "[]"
|
|
19422
|
+
},
|
|
19423
|
+
{
|
|
19424
|
+
"kind": "Content",
|
|
19425
|
+
"text": ";"
|
|
19426
|
+
}
|
|
19427
|
+
],
|
|
19428
|
+
"isReadonly": false,
|
|
19429
|
+
"isOptional": true,
|
|
19430
|
+
"releaseTag": "Public",
|
|
19431
|
+
"name": "condensePolicies",
|
|
19432
|
+
"propertyTypeTokenRange": {
|
|
19433
|
+
"startIndex": 1,
|
|
19434
|
+
"endIndex": 3
|
|
19435
|
+
}
|
|
19436
|
+
},
|
|
18954
19437
|
{
|
|
18955
19438
|
"kind": "PropertySignature",
|
|
18956
19439
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#contextLimit:member",
|