@genesislcap/ai-assistant 15.55.0 → 15.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/ai-assistant.api.json +438 -8
  2. package/dist/ai-assistant.d.ts +120 -4
  3. package/dist/chat-driver.cjs +60 -9
  4. package/dist/chat-driver.cjs.map +2 -2
  5. package/dist/chat-driver.mjs +60 -9
  6. package/dist/chat-driver.mjs.map +2 -2
  7. package/dist/custom-elements.json +238 -3
  8. package/dist/dts/components/agent-session/agent-session.d.ts +9 -0
  9. package/dist/dts/components/agent-session/agent-session.d.ts.map +1 -1
  10. package/dist/dts/components/ai-driver/ai-driver.d.ts +31 -2
  11. package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
  12. package/dist/dts/components/chat-driver/chat-driver.d.ts +18 -2
  13. package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
  14. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +15 -2
  15. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
  16. package/dist/dts/config/config.d.ts +21 -0
  17. package/dist/dts/config/config.d.ts.map +1 -1
  18. package/dist/dts/config/define-stateful-agent.d.ts +6 -0
  19. package/dist/dts/config/define-stateful-agent.d.ts.map +1 -1
  20. package/dist/dts/main/main.d.ts +21 -0
  21. package/dist/dts/main/main.d.ts.map +1 -1
  22. package/dist/dts/state/debug-event-log.d.ts +1 -1
  23. package/dist/dts/state/debug-event-log.d.ts.map +1 -1
  24. package/dist/dts/state/persistence/resume-verdict.d.ts +32 -0
  25. package/dist/dts/state/persistence/resume-verdict.d.ts.map +1 -0
  26. package/dist/dts/state/persistence/session-persister.d.ts +34 -1
  27. package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
  28. package/dist/dts/state/persistence/session-snapshot.d.ts +19 -0
  29. package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
  30. package/dist/dts/utils/message-partition.d.ts +9 -1
  31. package/dist/dts/utils/message-partition.d.ts.map +1 -1
  32. package/dist/esm/components/agent-session/agent-session.js +14 -0
  33. package/dist/esm/components/chat-driver/chat-driver.js +12 -5
  34. package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +34 -2
  35. package/dist/esm/config/define-stateful-agent.js +1 -0
  36. package/dist/esm/main/main.js +101 -22
  37. package/dist/esm/state/debug-event-log.js +4 -0
  38. package/dist/esm/state/persistence/resume-verdict.js +20 -0
  39. package/dist/esm/state/persistence/session-persister.js +55 -15
  40. package/dist/esm/state/persistence/session-snapshot.js +67 -0
  41. package/dist/esm/utils/message-partition.js +11 -2
  42. package/package.json +17 -17
@@ -1845,7 +1845,7 @@
1845
1845
  {
1846
1846
  "kind": "Method",
1847
1847
  "canonicalReference": "@genesislcap/ai-assistant!AgentSession#activate:member(1)",
1848
- "docComment": "/**\n * Make `agent` active, firing the lifecycle hooks around the swap: outgoing `onDeactivate` first, then incoming `onActivate`. Both are awaited so heavy activation work (a machine restore, say) completes before the agent's first turn runs, and a throw from either is logged rather than propagated — an agent whose hook fails still activates.\n *\n * Re-activating the same agent by name is not a switch: no hooks fire, no lock moves, and no handoff is recorded. That guard matters because a per-turn re-resolve calls through here.\n */\n",
1848
+ "docComment": "/**\n * Make `agent` active, firing the lifecycle hooks around the swap: outgoing `onDeactivate` first, then incoming `onActivate`. Both are awaited so heavy activation work (a machine restore, say) completes before the agent's first turn runs, and a throw from either is logged rather than propagated — an agent whose hook fails still activates.\n *\n * Re-activating the same agent by name is not a switch: no hooks fire, no lock moves, and no handoff is recorded. That guard matters because a per-turn re-resolve calls through here.\n *\n * Single-flight (GENC-1662): calls run one after another, never interleaved. `active` is only set once the hooks have finished, so two overlapping calls for the same agent would otherwise both see a switch and run `onActivate` twice — and a restored `init` would be overwritten by a fresh one that finished later. That overlap became possible when a restore started activating the flow owner outside a turn, where a send can land mid-activation.\n */\n",
1849
1849
  "excerptTokens": [
1850
1850
  {
1851
1851
  "kind": "Content",
@@ -3174,6 +3174,96 @@
3174
3174
  ],
3175
3175
  "name": "canCompact"
3176
3176
  },
3177
+ {
3178
+ "kind": "MethodSignature",
3179
+ "canonicalReference": "@genesislcap/ai-assistant!AiDriver#canRestoreFlowOwner:member(1)",
3180
+ "docComment": "/**\n * Whether a restore can bring back the flow `agentName` owns (GENC-1662): the agent is configured here. Pure — no activation. A restore re-activates only an owner this answers `true` for.\n *\n * Optional: a driver without it never re-activates or resumes.\n *\n * @beta\n */\n",
3181
+ "excerptTokens": [
3182
+ {
3183
+ "kind": "Content",
3184
+ "text": "canRestoreFlowOwner?(agentName: "
3185
+ },
3186
+ {
3187
+ "kind": "Content",
3188
+ "text": "string"
3189
+ },
3190
+ {
3191
+ "kind": "Content",
3192
+ "text": "): "
3193
+ },
3194
+ {
3195
+ "kind": "Content",
3196
+ "text": "boolean"
3197
+ },
3198
+ {
3199
+ "kind": "Content",
3200
+ "text": ";"
3201
+ }
3202
+ ],
3203
+ "isOptional": true,
3204
+ "returnTypeTokenRange": {
3205
+ "startIndex": 3,
3206
+ "endIndex": 4
3207
+ },
3208
+ "releaseTag": "Beta",
3209
+ "overloadIndex": 1,
3210
+ "parameters": [
3211
+ {
3212
+ "parameterName": "agentName",
3213
+ "parameterTypeTokenRange": {
3214
+ "startIndex": 1,
3215
+ "endIndex": 2
3216
+ },
3217
+ "isOptional": false
3218
+ }
3219
+ ],
3220
+ "name": "canRestoreFlowOwner"
3221
+ },
3222
+ {
3223
+ "kind": "MethodSignature",
3224
+ "canonicalReference": "@genesislcap/ai-assistant!AiDriver#canResumeRestoredFlow:member(1)",
3225
+ "docComment": "/**\n * Whether a restored flow owned by `agentName` should also RESUME — run a turn on its own — when the reload interrupted one (GENC-1662): the agent is configured here and has not opted out with `resumeOnRestore: false`. Pure. Lets the restore pick its divider wording.\n *\n * @beta\n */\n",
3226
+ "excerptTokens": [
3227
+ {
3228
+ "kind": "Content",
3229
+ "text": "canResumeRestoredFlow?(agentName: "
3230
+ },
3231
+ {
3232
+ "kind": "Content",
3233
+ "text": "string"
3234
+ },
3235
+ {
3236
+ "kind": "Content",
3237
+ "text": "): "
3238
+ },
3239
+ {
3240
+ "kind": "Content",
3241
+ "text": "boolean"
3242
+ },
3243
+ {
3244
+ "kind": "Content",
3245
+ "text": ";"
3246
+ }
3247
+ ],
3248
+ "isOptional": true,
3249
+ "returnTypeTokenRange": {
3250
+ "startIndex": 3,
3251
+ "endIndex": 4
3252
+ },
3253
+ "releaseTag": "Beta",
3254
+ "overloadIndex": 1,
3255
+ "parameters": [
3256
+ {
3257
+ "parameterName": "agentName",
3258
+ "parameterTypeTokenRange": {
3259
+ "startIndex": 1,
3260
+ "endIndex": 2
3261
+ },
3262
+ "isOptional": false
3263
+ }
3264
+ ],
3265
+ "name": "canResumeRestoredFlow"
3266
+ },
3177
3267
  {
3178
3268
  "kind": "MethodSignature",
3179
3269
  "canonicalReference": "@genesislcap/ai-assistant!AiDriver#compact:member(1)",
@@ -3252,6 +3342,15 @@
3252
3342
  "kind": "Content",
3253
3343
  "text": "[]"
3254
3344
  },
3345
+ {
3346
+ "kind": "Content",
3347
+ "text": ", options?: "
3348
+ },
3349
+ {
3350
+ "kind": "Reference",
3351
+ "text": "ContinueFromHistoryOptions",
3352
+ "canonicalReference": "@genesislcap/ai-assistant!ContinueFromHistoryOptions:interface"
3353
+ },
3255
3354
  {
3256
3355
  "kind": "Content",
3257
3356
  "text": "): "
@@ -3281,8 +3380,8 @@
3281
3380
  ],
3282
3381
  "isOptional": false,
3283
3382
  "returnTypeTokenRange": {
3284
- "startIndex": 4,
3285
- "endIndex": 8
3383
+ "startIndex": 6,
3384
+ "endIndex": 10
3286
3385
  },
3287
3386
  "releaseTag": "Beta",
3288
3387
  "overloadIndex": 1,
@@ -3294,6 +3393,14 @@
3294
3393
  "endIndex": 3
3295
3394
  },
3296
3395
  "isOptional": true
3396
+ },
3397
+ {
3398
+ "parameterName": "options",
3399
+ "parameterTypeTokenRange": {
3400
+ "startIndex": 4,
3401
+ "endIndex": 5
3402
+ },
3403
+ "isOptional": true
3297
3404
  }
3298
3405
  ],
3299
3406
  "name": "continueFromHistory"
@@ -4174,6 +4281,65 @@
4174
4281
  ],
4175
4282
  "name": "restoreCondensePolicies"
4176
4283
  },
4284
+ {
4285
+ "kind": "MethodSignature",
4286
+ "canonicalReference": "@genesislcap/ai-assistant!AiDriver#resumeRestoredFlow:member(1)",
4287
+ "docComment": "/**\n * Bring a restored session's flow back to life (GENC-1662). Activates the flow owner — a stateful agent, the only kind that holds a flow — so its `init({ restored })` runs now rather than on the next message, then, when `resumeNote` is given and the agent has not opted out, runs one turn from the restored history with the note in the tail of its first model call.\n *\n * Returns the turn's result when one ran, `undefined` otherwise (no flow owner, the owner is not configured, or no note). Never throws for those cases.\n *\n * @beta\n */\n",
4288
+ "excerptTokens": [
4289
+ {
4290
+ "kind": "Content",
4291
+ "text": "resumeRestoredFlow?(resumeNote?: "
4292
+ },
4293
+ {
4294
+ "kind": "Content",
4295
+ "text": "string"
4296
+ },
4297
+ {
4298
+ "kind": "Content",
4299
+ "text": "): "
4300
+ },
4301
+ {
4302
+ "kind": "Reference",
4303
+ "text": "Promise",
4304
+ "canonicalReference": "!Promise:interface"
4305
+ },
4306
+ {
4307
+ "kind": "Content",
4308
+ "text": "<"
4309
+ },
4310
+ {
4311
+ "kind": "Reference",
4312
+ "text": "ChatDriverResult",
4313
+ "canonicalReference": "@genesislcap/foundation-ai!ChatDriverResult:type"
4314
+ },
4315
+ {
4316
+ "kind": "Content",
4317
+ "text": " | undefined>"
4318
+ },
4319
+ {
4320
+ "kind": "Content",
4321
+ "text": ";"
4322
+ }
4323
+ ],
4324
+ "isOptional": true,
4325
+ "returnTypeTokenRange": {
4326
+ "startIndex": 3,
4327
+ "endIndex": 7
4328
+ },
4329
+ "releaseTag": "Beta",
4330
+ "overloadIndex": 1,
4331
+ "parameters": [
4332
+ {
4333
+ "parameterName": "resumeNote",
4334
+ "parameterTypeTokenRange": {
4335
+ "startIndex": 1,
4336
+ "endIndex": 2
4337
+ },
4338
+ "isOptional": true
4339
+ }
4340
+ ],
4341
+ "name": "resumeRestoredFlow"
4342
+ },
4177
4343
  {
4178
4344
  "kind": "MethodSignature",
4179
4345
  "canonicalReference": "@genesislcap/ai-assistant!AiDriver#sendMessage:member(1)",
@@ -5645,7 +5811,7 @@
5645
5811
  {
5646
5812
  "kind": "Method",
5647
5813
  "canonicalReference": "@genesislcap/ai-assistant!ChatDriver#continueFromHistory:member(1)",
5648
- "docComment": "/**\n * Continue the tool loop from current history without appending a new user message. Used by OrchestratingDriver after an agent handoff.\n */\n",
5814
+ "docComment": "/**\n * Continue the tool loop from current history without appending a new user message. Used by OrchestratingDriver after an agent handoff, and to resume a restored flow (GENC-1662).\n *\n * `options.tailNote` rides the framed tail of the FIRST model call only — after the history, where a note about the conversation belongs — and is dropped once the model has answered, so it cannot go stale over the rest of the loop. Contrast `transientPrimer`, which leads the request.\n */\n",
5649
5815
  "excerptTokens": [
5650
5816
  {
5651
5817
  "kind": "Content",
@@ -5660,6 +5826,15 @@
5660
5826
  "kind": "Content",
5661
5827
  "text": "[]"
5662
5828
  },
5829
+ {
5830
+ "kind": "Content",
5831
+ "text": ", options?: "
5832
+ },
5833
+ {
5834
+ "kind": "Reference",
5835
+ "text": "ContinueFromHistoryOptions",
5836
+ "canonicalReference": "@genesislcap/ai-assistant!ContinueFromHistoryOptions:interface"
5837
+ },
5663
5838
  {
5664
5839
  "kind": "Content",
5665
5840
  "text": "): "
@@ -5689,8 +5864,8 @@
5689
5864
  ],
5690
5865
  "isStatic": false,
5691
5866
  "returnTypeTokenRange": {
5692
- "startIndex": 4,
5693
- "endIndex": 8
5867
+ "startIndex": 6,
5868
+ "endIndex": 10
5694
5869
  },
5695
5870
  "releaseTag": "Public",
5696
5871
  "isProtected": false,
@@ -5703,6 +5878,14 @@
5703
5878
  "endIndex": 3
5704
5879
  },
5705
5880
  "isOptional": true
5881
+ },
5882
+ {
5883
+ "parameterName": "options",
5884
+ "parameterTypeTokenRange": {
5885
+ "startIndex": 4,
5886
+ "endIndex": 5
5887
+ },
5888
+ "isOptional": true
5706
5889
  }
5707
5890
  ],
5708
5891
  "isOptional": false,
@@ -8159,6 +8342,51 @@
8159
8342
  "endIndex": 3
8160
8343
  }
8161
8344
  },
8345
+ {
8346
+ "kind": "Interface",
8347
+ "canonicalReference": "@genesislcap/ai-assistant!ContinueFromHistoryOptions:interface",
8348
+ "docComment": "/**\n * Options for `continueFromHistory` (GENC-1662).\n *\n * @beta\n */\n",
8349
+ "excerptTokens": [
8350
+ {
8351
+ "kind": "Content",
8352
+ "text": "export interface ContinueFromHistoryOptions "
8353
+ }
8354
+ ],
8355
+ "fileUrlPath": "src/components/chat-driver/chat-driver.ts",
8356
+ "releaseTag": "Beta",
8357
+ "name": "ContinueFromHistoryOptions",
8358
+ "preserveMemberOrder": false,
8359
+ "members": [
8360
+ {
8361
+ "kind": "PropertySignature",
8362
+ "canonicalReference": "@genesislcap/ai-assistant!ContinueFromHistoryOptions#tailNote:member",
8363
+ "docComment": "/**\n * A note for the model, placed in the framed tail of the first model call only — after the history it describes — and dropped once the model has answered.\n */\n",
8364
+ "excerptTokens": [
8365
+ {
8366
+ "kind": "Content",
8367
+ "text": "tailNote?: "
8368
+ },
8369
+ {
8370
+ "kind": "Content",
8371
+ "text": "string"
8372
+ },
8373
+ {
8374
+ "kind": "Content",
8375
+ "text": ";"
8376
+ }
8377
+ ],
8378
+ "isReadonly": false,
8379
+ "isOptional": true,
8380
+ "releaseTag": "Beta",
8381
+ "name": "tailNote",
8382
+ "propertyTypeTokenRange": {
8383
+ "startIndex": 1,
8384
+ "endIndex": 2
8385
+ }
8386
+ }
8387
+ ],
8388
+ "extendsTokenRanges": []
8389
+ },
8162
8390
  {
8163
8391
  "kind": "Interface",
8164
8392
  "canonicalReference": "@genesislcap/ai-assistant!CostSessionModelEntry:interface",
@@ -18324,6 +18552,102 @@
18324
18552
  "isAbstract": false,
18325
18553
  "name": "canCompact"
18326
18554
  },
18555
+ {
18556
+ "kind": "Method",
18557
+ "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#canRestoreFlowOwner:member(1)",
18558
+ "docComment": "/**\n * Whether a restore can bring back the flow `agentName` owns (GENC-1662): the agent is configured here. Pure — no activation. A restore re-activates only an owner this answers `true` for.\n *\n * Optional: a driver without it never re-activates or resumes.\n */\n",
18559
+ "excerptTokens": [
18560
+ {
18561
+ "kind": "Content",
18562
+ "text": "canRestoreFlowOwner(agentName: "
18563
+ },
18564
+ {
18565
+ "kind": "Content",
18566
+ "text": "string"
18567
+ },
18568
+ {
18569
+ "kind": "Content",
18570
+ "text": "): "
18571
+ },
18572
+ {
18573
+ "kind": "Content",
18574
+ "text": "boolean"
18575
+ },
18576
+ {
18577
+ "kind": "Content",
18578
+ "text": ";"
18579
+ }
18580
+ ],
18581
+ "isStatic": false,
18582
+ "returnTypeTokenRange": {
18583
+ "startIndex": 3,
18584
+ "endIndex": 4
18585
+ },
18586
+ "releaseTag": "Beta",
18587
+ "isProtected": false,
18588
+ "overloadIndex": 1,
18589
+ "parameters": [
18590
+ {
18591
+ "parameterName": "agentName",
18592
+ "parameterTypeTokenRange": {
18593
+ "startIndex": 1,
18594
+ "endIndex": 2
18595
+ },
18596
+ "isOptional": false
18597
+ }
18598
+ ],
18599
+ "isOptional": false,
18600
+ "isAbstract": false,
18601
+ "name": "canRestoreFlowOwner"
18602
+ },
18603
+ {
18604
+ "kind": "Method",
18605
+ "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#canResumeRestoredFlow:member(1)",
18606
+ "docComment": "/**\n * Whether a restored flow owned by `agentName` should also RESUME — run a turn on its own — when the reload interrupted one (GENC-1662): the agent is configured here and has not opted out with `resumeOnRestore: false`. Pure. Lets the restore pick its divider wording.\n */\n",
18607
+ "excerptTokens": [
18608
+ {
18609
+ "kind": "Content",
18610
+ "text": "canResumeRestoredFlow(agentName: "
18611
+ },
18612
+ {
18613
+ "kind": "Content",
18614
+ "text": "string"
18615
+ },
18616
+ {
18617
+ "kind": "Content",
18618
+ "text": "): "
18619
+ },
18620
+ {
18621
+ "kind": "Content",
18622
+ "text": "boolean"
18623
+ },
18624
+ {
18625
+ "kind": "Content",
18626
+ "text": ";"
18627
+ }
18628
+ ],
18629
+ "isStatic": false,
18630
+ "returnTypeTokenRange": {
18631
+ "startIndex": 3,
18632
+ "endIndex": 4
18633
+ },
18634
+ "releaseTag": "Beta",
18635
+ "isProtected": false,
18636
+ "overloadIndex": 1,
18637
+ "parameters": [
18638
+ {
18639
+ "parameterName": "agentName",
18640
+ "parameterTypeTokenRange": {
18641
+ "startIndex": 1,
18642
+ "endIndex": 2
18643
+ },
18644
+ "isOptional": false
18645
+ }
18646
+ ],
18647
+ "isOptional": false,
18648
+ "isAbstract": false,
18649
+ "name": "canResumeRestoredFlow"
18650
+ },
18327
18651
  {
18328
18652
  "kind": "Method",
18329
18653
  "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#compact:member(1)",
@@ -18405,6 +18729,15 @@
18405
18729
  "kind": "Content",
18406
18730
  "text": "[]"
18407
18731
  },
18732
+ {
18733
+ "kind": "Content",
18734
+ "text": ", options?: "
18735
+ },
18736
+ {
18737
+ "kind": "Reference",
18738
+ "text": "ContinueFromHistoryOptions",
18739
+ "canonicalReference": "@genesislcap/ai-assistant!ContinueFromHistoryOptions:interface"
18740
+ },
18408
18741
  {
18409
18742
  "kind": "Content",
18410
18743
  "text": "): "
@@ -18434,8 +18767,8 @@
18434
18767
  ],
18435
18768
  "isStatic": false,
18436
18769
  "returnTypeTokenRange": {
18437
- "startIndex": 4,
18438
- "endIndex": 8
18770
+ "startIndex": 6,
18771
+ "endIndex": 10
18439
18772
  },
18440
18773
  "releaseTag": "Beta",
18441
18774
  "isProtected": false,
@@ -18448,6 +18781,14 @@
18448
18781
  "endIndex": 3
18449
18782
  },
18450
18783
  "isOptional": true
18784
+ },
18785
+ {
18786
+ "parameterName": "options",
18787
+ "parameterTypeTokenRange": {
18788
+ "startIndex": 4,
18789
+ "endIndex": 5
18790
+ },
18791
+ "isOptional": true
18451
18792
  }
18452
18793
  ],
18453
18794
  "isOptional": false,
@@ -19383,6 +19724,68 @@
19383
19724
  "isAbstract": false,
19384
19725
  "name": "restoreCondensePolicies"
19385
19726
  },
19727
+ {
19728
+ "kind": "Method",
19729
+ "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#resumeRestoredFlow:member(1)",
19730
+ "docComment": "/**\n * Bring a restored session's flow back to life (GENC-1662). Activates the flow owner — a stateful agent, the only kind that holds a flow — so its `init({ restored })` runs now rather than on the next message, then, when `resumeNote` is given and the agent has not opted out, runs one turn from the restored history with the note in the tail of its first model call.\n *\n * Returns the turn's result when one ran, `undefined` otherwise (no flow owner, the owner is not configured, or no note). Never throws for those cases.\n */\n",
19731
+ "excerptTokens": [
19732
+ {
19733
+ "kind": "Content",
19734
+ "text": "resumeRestoredFlow(resumeNote?: "
19735
+ },
19736
+ {
19737
+ "kind": "Content",
19738
+ "text": "string"
19739
+ },
19740
+ {
19741
+ "kind": "Content",
19742
+ "text": "): "
19743
+ },
19744
+ {
19745
+ "kind": "Reference",
19746
+ "text": "Promise",
19747
+ "canonicalReference": "!Promise:interface"
19748
+ },
19749
+ {
19750
+ "kind": "Content",
19751
+ "text": "<"
19752
+ },
19753
+ {
19754
+ "kind": "Reference",
19755
+ "text": "ChatDriverResult",
19756
+ "canonicalReference": "@genesislcap/foundation-ai!ChatDriverResult:type"
19757
+ },
19758
+ {
19759
+ "kind": "Content",
19760
+ "text": " | undefined>"
19761
+ },
19762
+ {
19763
+ "kind": "Content",
19764
+ "text": ";"
19765
+ }
19766
+ ],
19767
+ "isStatic": false,
19768
+ "returnTypeTokenRange": {
19769
+ "startIndex": 3,
19770
+ "endIndex": 7
19771
+ },
19772
+ "releaseTag": "Beta",
19773
+ "isProtected": false,
19774
+ "overloadIndex": 1,
19775
+ "parameters": [
19776
+ {
19777
+ "parameterName": "resumeNote",
19778
+ "parameterTypeTokenRange": {
19779
+ "startIndex": 1,
19780
+ "endIndex": 2
19781
+ },
19782
+ "isOptional": true
19783
+ }
19784
+ ],
19785
+ "isOptional": false,
19786
+ "isAbstract": false,
19787
+ "name": "resumeRestoredFlow"
19788
+ },
19386
19789
  {
19387
19790
  "kind": "Method",
19388
19791
  "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#sendMessage:member(1)",
@@ -22990,6 +23393,33 @@
22990
23393
  "endIndex": 6
22991
23394
  }
22992
23395
  },
23396
+ {
23397
+ "kind": "PropertySignature",
23398
+ "canonicalReference": "@genesislcap/ai-assistant!StatefulAgentInit#resumeOnRestore:member",
23399
+ "docComment": "/**\n * Whether this agent's flow continues on its own when a page reload interrupted one of its turns — see `AgentConfig.resumeOnRestore`, which this is passed straight through to. Defaults to `true`. A stateful agent is the only kind this applies to, since only it owns a flow.\n */\n",
23400
+ "excerptTokens": [
23401
+ {
23402
+ "kind": "Content",
23403
+ "text": "resumeOnRestore?: "
23404
+ },
23405
+ {
23406
+ "kind": "Content",
23407
+ "text": "boolean"
23408
+ },
23409
+ {
23410
+ "kind": "Content",
23411
+ "text": ";"
23412
+ }
23413
+ ],
23414
+ "isReadonly": false,
23415
+ "isOptional": true,
23416
+ "releaseTag": "Beta",
23417
+ "name": "resumeOnRestore",
23418
+ "propertyTypeTokenRange": {
23419
+ "startIndex": 1,
23420
+ "endIndex": 2
23421
+ }
23422
+ },
22993
23423
  {
22994
23424
  "kind": "PropertySignature",
22995
23425
  "canonicalReference": "@genesislcap/ai-assistant!StatefulAgentInit#serialize:member",