@genesislcap/ai-assistant 15.76.0 → 15.77.0-GENC-1660.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +3234 -104
- package/dist/ai-assistant.d.ts +1023 -89
- package/dist/chat-driver.cjs +444 -99
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +444 -99
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +1646 -94
- package/dist/dts/autopilot/autopilot-driver.d.ts +113 -10
- package/dist/dts/autopilot/autopilot-driver.d.ts.map +1 -1
- package/dist/dts/autopilot/autopilot-session.d.ts +55 -7
- package/dist/dts/autopilot/autopilot-session.d.ts.map +1 -1
- package/dist/dts/autopilot/autopilot-tools.d.ts +3 -2
- package/dist/dts/autopilot/autopilot-tools.d.ts.map +1 -1
- package/dist/dts/autopilot/decision-message.d.ts +35 -3
- package/dist/dts/autopilot/decision-message.d.ts.map +1 -1
- package/dist/dts/autopilot/hand-back/hand-back.controller.d.ts +2 -2
- package/dist/dts/autopilot/hand-back/hand-back.controller.d.ts.map +1 -1
- package/dist/dts/autopilot/hand-back/hand-back.d.ts +2 -2
- package/dist/dts/autopilot/hand-back/hand-back.d.ts.map +1 -1
- package/dist/dts/autopilot/index.d.ts +1 -0
- package/dist/dts/autopilot/index.d.ts.map +1 -1
- package/dist/dts/autopilot/widget-tools.d.ts +95 -0
- package/dist/dts/autopilot/widget-tools.d.ts.map +1 -0
- package/dist/dts/channel/ai-activity-channel.d.ts +20 -2
- package/dist/dts/channel/ai-activity-channel.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/ai-driver.d.ts +25 -6
- package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +2 -0
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -1
- package/dist/dts/components/chat-bubble/chat-bubble.d.ts +2 -0
- package/dist/dts/components/chat-bubble/chat-bubble.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +14 -2
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/interaction-controller.d.ts +55 -17
- package/dist/dts/components/chat-driver/interaction-controller.d.ts.map +1 -1
- package/dist/dts/components/notification-level/index.d.ts +2 -0
- package/dist/dts/components/notification-level/index.d.ts.map +1 -0
- package/dist/dts/components/notification-level/notification-level.d.ts +51 -0
- package/dist/dts/components/notification-level/notification-level.d.ts.map +1 -0
- package/dist/dts/components/notification-level/notification-level.styles.d.ts +3 -0
- package/dist/dts/components/notification-level/notification-level.styles.d.ts.map +1 -0
- package/dist/dts/components/notification-level/notification-level.template.d.ts +5 -0
- package/dist/dts/components/notification-level/notification-level.template.d.ts.map +1 -0
- package/dist/dts/components/settings-modal/settings-modal.styles.d.ts.map +1 -1
- package/dist/dts/components/settings-modal/settings-modal.template.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts +31 -6
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/config/define-stateful-agent.d.ts +5 -1
- package/dist/dts/config/define-stateful-agent.d.ts.map +1 -1
- package/dist/dts/index.d.ts +6 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +56 -1
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/notifications/agent-notifications.d.ts +139 -0
- package/dist/dts/notifications/agent-notifications.d.ts.map +1 -0
- package/dist/dts/notifications/agent-notifier.d.ts +58 -0
- package/dist/dts/notifications/agent-notifier.d.ts.map +1 -0
- package/dist/dts/notifications/index.d.ts +2 -0
- package/dist/dts/notifications/index.d.ts.map +1 -0
- package/dist/dts/notifications/notification-level-picker.template.d.ts +31 -0
- package/dist/dts/notifications/notification-level-picker.template.d.ts.map +1 -0
- package/dist/dts/notifications/notification-settings.d.ts +42 -0
- package/dist/dts/notifications/notification-settings.d.ts.map +1 -0
- package/dist/dts/react.d.ts +10 -0
- package/dist/dts/state/ai-assistant-slice.d.ts +8 -0
- package/dist/dts/state/ai-assistant-slice.d.ts.map +1 -1
- package/dist/dts/state/decision-surface.d.ts +22 -4
- package/dist/dts/state/decision-surface.d.ts.map +1 -1
- package/dist/dts/state/interaction-context.d.ts +18 -4
- package/dist/dts/state/interaction-context.d.ts.map +1 -1
- package/dist/dts/state/interaction-registry.d.ts +55 -6
- package/dist/dts/state/interaction-registry.d.ts.map +1 -1
- package/dist/dts/state/live-interactions.d.ts +28 -0
- package/dist/dts/state/live-interactions.d.ts.map +1 -0
- package/dist/dts/state/persistence/session-persistence-provider.d.ts +5 -0
- package/dist/dts/state/persistence/session-persistence-provider.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts +16 -5
- package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
- package/dist/dts/state/session-store.d.ts +1 -0
- package/dist/dts/state/session-store.d.ts.map +1 -1
- package/dist/dts/state/test-interaction-context.d.ts +83 -0
- package/dist/dts/state/test-interaction-context.d.ts.map +1 -0
- package/dist/dts/types/ai-chat-widget.d.ts +7 -6
- package/dist/dts/types/ai-chat-widget.d.ts.map +1 -1
- package/dist/dts/types/interaction-context.d.ts +143 -13
- package/dist/dts/types/interaction-context.d.ts.map +1 -1
- package/dist/dts/types/interaction-interceptor.d.ts +26 -6
- package/dist/dts/types/interaction-interceptor.d.ts.map +1 -1
- package/dist/dts/types/interaction-surface.d.ts +145 -23
- package/dist/dts/types/interaction-surface.d.ts.map +1 -1
- package/dist/dts/utils/resolve-preference-baseline.d.ts +3 -0
- package/dist/dts/utils/resolve-preference-baseline.d.ts.map +1 -1
- package/dist/esm/autopilot/autopilot-driver.js +272 -56
- package/dist/esm/autopilot/autopilot-session.js +219 -40
- package/dist/esm/autopilot/autopilot-tools.js +11 -7
- package/dist/esm/autopilot/decision-message.js +105 -26
- package/dist/esm/autopilot/hand-back/hand-back.controller.js +2 -1
- package/dist/esm/autopilot/index.js +1 -0
- package/dist/esm/autopilot/widget-tools.js +39 -0
- package/dist/esm/components/ai-driver/base-driver-decorator.js +17 -0
- package/dist/esm/components/chat-bubble/chat-bubble.js +17 -3
- package/dist/esm/components/chat-driver/chat-driver.js +18 -2
- package/dist/esm/components/chat-driver/interaction-controller.js +210 -71
- package/dist/esm/components/notification-level/index.js +1 -0
- package/dist/esm/components/notification-level/notification-level.js +124 -0
- package/dist/esm/components/notification-level/notification-level.styles.js +20 -0
- package/dist/esm/components/notification-level/notification-level.template.js +11 -0
- package/dist/esm/components/settings-modal/settings-modal.styles.js +6 -0
- package/dist/esm/components/settings-modal/settings-modal.template.js +10 -1
- package/dist/esm/config/define-stateful-agent.js +22 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/main/main.js +163 -15
- package/dist/esm/main/main.template.js +4 -1
- package/dist/esm/notifications/agent-notifications.js +172 -0
- package/dist/esm/notifications/agent-notifier.js +86 -0
- package/dist/esm/notifications/index.js +1 -0
- package/dist/esm/notifications/notification-level-picker.template.js +49 -0
- package/dist/esm/notifications/notification-settings.js +42 -0
- package/dist/esm/state/ai-assistant-slice.js +5 -0
- package/dist/esm/state/debug-event-log.js +5 -5
- package/dist/esm/state/decision-surface.js +137 -54
- package/dist/esm/state/interaction-context.js +50 -5
- package/dist/esm/state/interaction-registry.js +11 -0
- package/dist/esm/state/live-interactions.js +36 -0
- package/dist/esm/state/persistence/session-persister.js +44 -17
- package/dist/esm/state/persistence/session-snapshot.js +2 -2
- package/dist/esm/state/test-interaction-context.js +90 -0
- package/dist/esm/utils/resolve-preference-baseline.js +9 -0
- package/dist/react.cjs +7 -0
- package/dist/react.mjs +6 -0
- package/docs/notifications.md +169 -0
- package/docs/styling.md +33 -0
- package/package.json +19 -19
- package/sandbox/README.md +3 -2
- package/sandbox/autopilot.ts +26 -6
- package/sandbox/sandbox.ts +2 -0
- /package/dist/{tsdoc-metadata.json → dts/tsdoc-metadata.json} +0 -0
|
@@ -315,6 +315,159 @@
|
|
|
315
315
|
"endIndex": 0
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "Interface",
|
|
320
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionDetail:interface",
|
|
321
|
+
"docComment": "/**\n * The detail of the `agent-attention` activity-bus event: something in a session needs the person. Published whatever the person's level is; the assistant for that session decides whether to notify.\n *\n * @beta\n */\n",
|
|
322
|
+
"excerptTokens": [
|
|
323
|
+
{
|
|
324
|
+
"kind": "Content",
|
|
325
|
+
"text": "export interface AgentAttentionDetail "
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
329
|
+
"releaseTag": "Beta",
|
|
330
|
+
"name": "AgentAttentionDetail",
|
|
331
|
+
"preserveMemberOrder": false,
|
|
332
|
+
"members": [
|
|
333
|
+
{
|
|
334
|
+
"kind": "PropertySignature",
|
|
335
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionDetail#interactionId:member",
|
|
336
|
+
"docComment": "/**\n * The interaction it is about, when there is one.\n */\n",
|
|
337
|
+
"excerptTokens": [
|
|
338
|
+
{
|
|
339
|
+
"kind": "Content",
|
|
340
|
+
"text": "readonly interactionId?: "
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"kind": "Content",
|
|
344
|
+
"text": "string"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"kind": "Content",
|
|
348
|
+
"text": ";"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"isReadonly": true,
|
|
352
|
+
"isOptional": true,
|
|
353
|
+
"releaseTag": "Beta",
|
|
354
|
+
"name": "interactionId",
|
|
355
|
+
"propertyTypeTokenRange": {
|
|
356
|
+
"startIndex": 1,
|
|
357
|
+
"endIndex": 2
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"kind": "PropertySignature",
|
|
362
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionDetail#kind:member",
|
|
363
|
+
"docComment": "",
|
|
364
|
+
"excerptTokens": [
|
|
365
|
+
{
|
|
366
|
+
"kind": "Content",
|
|
367
|
+
"text": "readonly kind: "
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"kind": "Reference",
|
|
371
|
+
"text": "AgentAttentionKind",
|
|
372
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionKind:type"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"kind": "Content",
|
|
376
|
+
"text": ";"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"isReadonly": true,
|
|
380
|
+
"isOptional": false,
|
|
381
|
+
"releaseTag": "Beta",
|
|
382
|
+
"name": "kind",
|
|
383
|
+
"propertyTypeTokenRange": {
|
|
384
|
+
"startIndex": 1,
|
|
385
|
+
"endIndex": 2
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"kind": "PropertySignature",
|
|
390
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionDetail#message:member",
|
|
391
|
+
"docComment": "/**\n * Text that replaces the default message for this one notification.\n */\n",
|
|
392
|
+
"excerptTokens": [
|
|
393
|
+
{
|
|
394
|
+
"kind": "Content",
|
|
395
|
+
"text": "readonly message?: "
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"kind": "Content",
|
|
399
|
+
"text": "string"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"kind": "Content",
|
|
403
|
+
"text": ";"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"isReadonly": true,
|
|
407
|
+
"isOptional": true,
|
|
408
|
+
"releaseTag": "Beta",
|
|
409
|
+
"name": "message",
|
|
410
|
+
"propertyTypeTokenRange": {
|
|
411
|
+
"startIndex": 1,
|
|
412
|
+
"endIndex": 2
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"kind": "PropertySignature",
|
|
417
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionDetail#sessionKey:member",
|
|
418
|
+
"docComment": "/**\n * The session it happened in. A sub-agent's session is `<parent>::sub:<id>`.\n */\n",
|
|
419
|
+
"excerptTokens": [
|
|
420
|
+
{
|
|
421
|
+
"kind": "Content",
|
|
422
|
+
"text": "readonly sessionKey: "
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"kind": "Content",
|
|
426
|
+
"text": "string"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "Content",
|
|
430
|
+
"text": ";"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"isReadonly": true,
|
|
434
|
+
"isOptional": false,
|
|
435
|
+
"releaseTag": "Beta",
|
|
436
|
+
"name": "sessionKey",
|
|
437
|
+
"propertyTypeTokenRange": {
|
|
438
|
+
"startIndex": 1,
|
|
439
|
+
"endIndex": 2
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"extendsTokenRanges": []
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"kind": "TypeAlias",
|
|
447
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionKind:type",
|
|
448
|
+
"docComment": "/**\n * What an agent notification is about.\n *\n * - `'widget-needs-input'` — a widget asked for the person's attention. - `'autopilot-handed-back'` — the autopilot handed something to the person. - `'autopilot-stopped'` — the autopilot stopped working: the flow ended, the turn ended with nothing left for it to answer, or it hit a wall such as the budget.\n *\n * @beta\n */\n",
|
|
449
|
+
"excerptTokens": [
|
|
450
|
+
{
|
|
451
|
+
"kind": "Content",
|
|
452
|
+
"text": "export type AgentAttentionKind = "
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"kind": "Content",
|
|
456
|
+
"text": "'widget-needs-input' | 'autopilot-handed-back' | 'autopilot-stopped'"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"kind": "Content",
|
|
460
|
+
"text": ";"
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
464
|
+
"releaseTag": "Beta",
|
|
465
|
+
"name": "AgentAttentionKind",
|
|
466
|
+
"typeTokenRange": {
|
|
467
|
+
"startIndex": 1,
|
|
468
|
+
"endIndex": 2
|
|
469
|
+
}
|
|
470
|
+
},
|
|
318
471
|
{
|
|
319
472
|
"kind": "TypeAlias",
|
|
320
473
|
"canonicalReference": "@genesislcap/ai-assistant!AgentConfig:type",
|
|
@@ -828,6 +981,34 @@
|
|
|
828
981
|
"name": "AgenticActivityEvents",
|
|
829
982
|
"preserveMemberOrder": false,
|
|
830
983
|
"members": [
|
|
984
|
+
{
|
|
985
|
+
"kind": "PropertySignature",
|
|
986
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"agent-attention\":member",
|
|
987
|
+
"docComment": "/**\n * Something in a session needs the person (GENC-1676): a widget asked for their attention, or the autopilot handed back or stopped working. Published whatever the person's notification level is; the assistant for that session decides whether to show a browser notification, and an app can listen to drive its own UI. Tab-local: the window that owns the session's driver publishes it.\n */\n",
|
|
988
|
+
"excerptTokens": [
|
|
989
|
+
{
|
|
990
|
+
"kind": "Content",
|
|
991
|
+
"text": "'agent-attention': "
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"kind": "Reference",
|
|
995
|
+
"text": "AgentAttentionDetail",
|
|
996
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentAttentionDetail:interface"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"kind": "Content",
|
|
1000
|
+
"text": ";"
|
|
1001
|
+
}
|
|
1002
|
+
],
|
|
1003
|
+
"isReadonly": false,
|
|
1004
|
+
"isOptional": false,
|
|
1005
|
+
"releaseTag": "Beta",
|
|
1006
|
+
"name": "\"agent-attention\"",
|
|
1007
|
+
"propertyTypeTokenRange": {
|
|
1008
|
+
"startIndex": 1,
|
|
1009
|
+
"endIndex": 2
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
831
1012
|
{
|
|
832
1013
|
"kind": "PropertySignature",
|
|
833
1014
|
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"autopilot-needs-user\":member",
|
|
@@ -858,7 +1039,7 @@
|
|
|
858
1039
|
{
|
|
859
1040
|
"kind": "PropertySignature",
|
|
860
1041
|
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"autopilot-show-waiting\":member",
|
|
861
|
-
"docComment": "/**\n * The person opened the collapsed assistant from its \"needs you\" badge: the assistant for `sessionKey` (any, when absent) brings what waits on them into view.\n */\n",
|
|
1042
|
+
"docComment": "/**\n * The person opened the collapsed assistant from its \"needs you\" badge, or clicked an agent notification (GENC-1676): the assistant for `sessionKey` (any, when absent) brings what waits on them into view, and a closed bubble holding it opens.\n */\n",
|
|
862
1043
|
"excerptTokens": [
|
|
863
1044
|
{
|
|
864
1045
|
"kind": "Content",
|
|
@@ -1044,6 +1225,33 @@
|
|
|
1044
1225
|
"endIndex": 2
|
|
1045
1226
|
}
|
|
1046
1227
|
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "PropertySignature",
|
|
1230
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"notification-settings-changed\":member",
|
|
1231
|
+
"docComment": "/**\n * A session's agent notification settings may have changed (GENC-1676): the person's level, what the app offers, or which assistant on the page holds the session. A notification level picker for that session re-reads them. Tab-local.\n */\n",
|
|
1232
|
+
"excerptTokens": [
|
|
1233
|
+
{
|
|
1234
|
+
"kind": "Content",
|
|
1235
|
+
"text": "'notification-settings-changed': "
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"kind": "Content",
|
|
1239
|
+
"text": "{\n sessionKey: string;\n }"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "Content",
|
|
1243
|
+
"text": ";"
|
|
1244
|
+
}
|
|
1245
|
+
],
|
|
1246
|
+
"isReadonly": false,
|
|
1247
|
+
"isOptional": false,
|
|
1248
|
+
"releaseTag": "Beta",
|
|
1249
|
+
"name": "\"notification-settings-changed\"",
|
|
1250
|
+
"propertyTypeTokenRange": {
|
|
1251
|
+
"startIndex": 1,
|
|
1252
|
+
"endIndex": 2
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1047
1255
|
{
|
|
1048
1256
|
"kind": "PropertySignature",
|
|
1049
1257
|
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"tool-loop-end\":member",
|
|
@@ -1282,6 +1490,92 @@
|
|
|
1282
1490
|
],
|
|
1283
1491
|
"extendsTokenRanges": []
|
|
1284
1492
|
},
|
|
1493
|
+
{
|
|
1494
|
+
"kind": "TypeAlias",
|
|
1495
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentNotificationLevel:type",
|
|
1496
|
+
"docComment": "/**\n * How often the person wants a browser notification when the assistant needs them (GENC-1676). Each level includes the one before it.\n *\n * - `'off'` — never. The default, always: the browser makes the person grant permission, so nothing can switch it on for them. - `'autopilot'` — only when the autopilot hands back to the person or stops working. Offered only when the app sets `chatConfig.ui.notifications.autopilot`. - `'needs-input'` — every `'autopilot'` case, plus any widget that asks for the person's attention (`InteractionContext.requestAttention`).\n *\n * @beta\n */\n",
|
|
1497
|
+
"excerptTokens": [
|
|
1498
|
+
{
|
|
1499
|
+
"kind": "Content",
|
|
1500
|
+
"text": "export type AgentNotificationLevel = "
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"kind": "Content",
|
|
1504
|
+
"text": "'off' | 'autopilot' | 'needs-input'"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"kind": "Content",
|
|
1508
|
+
"text": ";"
|
|
1509
|
+
}
|
|
1510
|
+
],
|
|
1511
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
1512
|
+
"releaseTag": "Beta",
|
|
1513
|
+
"name": "AgentNotificationLevel",
|
|
1514
|
+
"typeTokenRange": {
|
|
1515
|
+
"startIndex": 1,
|
|
1516
|
+
"endIndex": 2
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"kind": "Function",
|
|
1521
|
+
"canonicalReference": "@genesislcap/ai-assistant!agentNotificationPermission:function(1)",
|
|
1522
|
+
"docComment": "/**\n * Whether this page may show notifications. Safe to call anywhere, including Node.\n *\n * @beta\n */\n",
|
|
1523
|
+
"excerptTokens": [
|
|
1524
|
+
{
|
|
1525
|
+
"kind": "Content",
|
|
1526
|
+
"text": "export declare function agentNotificationPermission(): "
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"kind": "Reference",
|
|
1530
|
+
"text": "AgentNotificationPermission",
|
|
1531
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentNotificationPermission:type"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"kind": "Content",
|
|
1535
|
+
"text": ";"
|
|
1536
|
+
}
|
|
1537
|
+
],
|
|
1538
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
1539
|
+
"returnTypeTokenRange": {
|
|
1540
|
+
"startIndex": 1,
|
|
1541
|
+
"endIndex": 2
|
|
1542
|
+
},
|
|
1543
|
+
"releaseTag": "Beta",
|
|
1544
|
+
"overloadIndex": 1,
|
|
1545
|
+
"parameters": [],
|
|
1546
|
+
"name": "agentNotificationPermission"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"kind": "TypeAlias",
|
|
1550
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentNotificationPermission:type",
|
|
1551
|
+
"docComment": "/**\n * Whether this page may show notifications: the browser's own `NotificationPermission`, or `'unsupported'` where there is no Notification API (an old browser, an insecure context, Node).\n *\n * @beta\n */\n",
|
|
1552
|
+
"excerptTokens": [
|
|
1553
|
+
{
|
|
1554
|
+
"kind": "Content",
|
|
1555
|
+
"text": "export type AgentNotificationPermission = "
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
"kind": "Reference",
|
|
1559
|
+
"text": "NotificationPermission",
|
|
1560
|
+
"canonicalReference": "!NotificationPermission:type"
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"kind": "Content",
|
|
1564
|
+
"text": " | 'unsupported'"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"kind": "Content",
|
|
1568
|
+
"text": ";"
|
|
1569
|
+
}
|
|
1570
|
+
],
|
|
1571
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
1572
|
+
"releaseTag": "Beta",
|
|
1573
|
+
"name": "AgentNotificationPermission",
|
|
1574
|
+
"typeTokenRange": {
|
|
1575
|
+
"startIndex": 1,
|
|
1576
|
+
"endIndex": 3
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1285
1579
|
{
|
|
1286
1580
|
"kind": "Interface",
|
|
1287
1581
|
"canonicalReference": "@genesislcap/ai-assistant!AgentPersistenceContext:interface",
|
|
@@ -2873,7 +3167,7 @@
|
|
|
2873
3167
|
{
|
|
2874
3168
|
"kind": "TypeAlias",
|
|
2875
3169
|
"canonicalReference": "@genesislcap/ai-assistant!AiChatInteraction:type",
|
|
2876
|
-
"docComment": "/**\n * The two mutually-exclusive states an interaction widget is ever in (GENC-1390). Modelling them as a discriminated union makes illegal combinations unrepresentable — a resolved widget cannot carry a live `interactionContext` or a `shouldAutoFocus`, and a pending widget cannot be read for a `result`.\n *\n * The host sets the widget's `interaction` on mount and REPLACES it (pending → resolved) on completion.\n *\n * @beta\n */\n",
|
|
3170
|
+
"docComment": "/**\n * The two mutually-exclusive states an interaction widget is ever in (GENC-1390). Modelling them as a discriminated union makes illegal combinations unrepresentable — a resolved widget cannot carry a live `interactionContext` or a `shouldAutoFocus`, and a pending widget cannot be read for a `result`.\n *\n * The host sets the widget's `interaction` on mount and REPLACES it (pending → resolved) on completion. `TController` types the pending context's `controller` (GENC-1660).\n *\n * @beta\n */\n",
|
|
2877
3171
|
"excerptTokens": [
|
|
2878
3172
|
{
|
|
2879
3173
|
"kind": "Content",
|
|
@@ -2891,6 +3185,14 @@
|
|
|
2891
3185
|
"kind": "Content",
|
|
2892
3186
|
"text": "unknown"
|
|
2893
3187
|
},
|
|
3188
|
+
{
|
|
3189
|
+
"kind": "Content",
|
|
3190
|
+
"text": ", TController = "
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
"kind": "Content",
|
|
3194
|
+
"text": "unknown"
|
|
3195
|
+
},
|
|
2894
3196
|
{
|
|
2895
3197
|
"kind": "Content",
|
|
2896
3198
|
"text": "> = "
|
|
@@ -2906,7 +3208,16 @@
|
|
|
2906
3208
|
},
|
|
2907
3209
|
{
|
|
2908
3210
|
"kind": "Content",
|
|
2909
|
-
"text": "
|
|
3211
|
+
"text": "<"
|
|
3212
|
+
},
|
|
3213
|
+
{
|
|
3214
|
+
"kind": "Reference",
|
|
3215
|
+
"text": "Record",
|
|
3216
|
+
"canonicalReference": "!Record:type"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
"kind": "Content",
|
|
3220
|
+
"text": "<string, unknown>, unknown, TController>;\n} | {\n status: 'resolved';\n data: TData;\n result: "
|
|
2910
3221
|
},
|
|
2911
3222
|
{
|
|
2912
3223
|
"kind": "Reference",
|
|
@@ -2956,11 +3267,22 @@
|
|
|
2956
3267
|
"startIndex": 3,
|
|
2957
3268
|
"endIndex": 4
|
|
2958
3269
|
}
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
"typeParameterName": "TController",
|
|
3273
|
+
"constraintTokenRange": {
|
|
3274
|
+
"startIndex": 0,
|
|
3275
|
+
"endIndex": 0
|
|
3276
|
+
},
|
|
3277
|
+
"defaultTypeTokenRange": {
|
|
3278
|
+
"startIndex": 5,
|
|
3279
|
+
"endIndex": 6
|
|
3280
|
+
}
|
|
2959
3281
|
}
|
|
2960
3282
|
],
|
|
2961
3283
|
"typeTokenRange": {
|
|
2962
|
-
"startIndex":
|
|
2963
|
-
"endIndex":
|
|
3284
|
+
"startIndex": 7,
|
|
3285
|
+
"endIndex": 16
|
|
2964
3286
|
}
|
|
2965
3287
|
},
|
|
2966
3288
|
{
|
|
@@ -3046,6 +3368,14 @@
|
|
|
3046
3368
|
"kind": "Content",
|
|
3047
3369
|
"text": "unknown"
|
|
3048
3370
|
},
|
|
3371
|
+
{
|
|
3372
|
+
"kind": "Content",
|
|
3373
|
+
"text": ", TController = "
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
"kind": "Content",
|
|
3377
|
+
"text": "unknown"
|
|
3378
|
+
},
|
|
3049
3379
|
{
|
|
3050
3380
|
"kind": "Content",
|
|
3051
3381
|
"text": "> "
|
|
@@ -3075,6 +3405,17 @@
|
|
|
3075
3405
|
"startIndex": 3,
|
|
3076
3406
|
"endIndex": 4
|
|
3077
3407
|
}
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"typeParameterName": "TController",
|
|
3411
|
+
"constraintTokenRange": {
|
|
3412
|
+
"startIndex": 0,
|
|
3413
|
+
"endIndex": 0
|
|
3414
|
+
},
|
|
3415
|
+
"defaultTypeTokenRange": {
|
|
3416
|
+
"startIndex": 5,
|
|
3417
|
+
"endIndex": 6
|
|
3418
|
+
}
|
|
3078
3419
|
}
|
|
3079
3420
|
],
|
|
3080
3421
|
"name": "AiChatWidget",
|
|
@@ -3096,7 +3437,7 @@
|
|
|
3096
3437
|
},
|
|
3097
3438
|
{
|
|
3098
3439
|
"kind": "Content",
|
|
3099
|
-
"text": "<TData, TResult>"
|
|
3440
|
+
"text": "<TData, TResult, TController>"
|
|
3100
3441
|
},
|
|
3101
3442
|
{
|
|
3102
3443
|
"kind": "Content",
|
|
@@ -3994,7 +4335,7 @@
|
|
|
3994
4335
|
{
|
|
3995
4336
|
"kind": "MethodSignature",
|
|
3996
4337
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionCheckpoint:member(1)",
|
|
3997
|
-
"docComment": "/**\n *
|
|
4338
|
+
"docComment": "/**\n * One checkpoint to save: the long action in flight's, else the newest a reload cut.\n *\n * @deprecated\n *\n * Use {@link AiDriver.getInteractionCheckpoints}, which also returns the cut checkpoints still waiting while another long action runs; this one loses them.\n *\n * @beta\n */\n",
|
|
3998
4339
|
"excerptTokens": [
|
|
3999
4340
|
{
|
|
4000
4341
|
"kind": "Content",
|
|
@@ -4024,6 +4365,43 @@
|
|
|
4024
4365
|
"parameters": [],
|
|
4025
4366
|
"name": "getInteractionCheckpoint"
|
|
4026
4367
|
},
|
|
4368
|
+
{
|
|
4369
|
+
"kind": "MethodSignature",
|
|
4370
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionCheckpoints:member(1)",
|
|
4371
|
+
"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 * @beta\n */\n",
|
|
4372
|
+
"excerptTokens": [
|
|
4373
|
+
{
|
|
4374
|
+
"kind": "Content",
|
|
4375
|
+
"text": "getInteractionCheckpoints?(): "
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
"kind": "Content",
|
|
4379
|
+
"text": "readonly "
|
|
4380
|
+
},
|
|
4381
|
+
{
|
|
4382
|
+
"kind": "Reference",
|
|
4383
|
+
"text": "PersistedInteractionCheckpoint",
|
|
4384
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
4385
|
+
},
|
|
4386
|
+
{
|
|
4387
|
+
"kind": "Content",
|
|
4388
|
+
"text": "[]"
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
"kind": "Content",
|
|
4392
|
+
"text": ";"
|
|
4393
|
+
}
|
|
4394
|
+
],
|
|
4395
|
+
"isOptional": true,
|
|
4396
|
+
"returnTypeTokenRange": {
|
|
4397
|
+
"startIndex": 1,
|
|
4398
|
+
"endIndex": 4
|
|
4399
|
+
},
|
|
4400
|
+
"releaseTag": "Beta",
|
|
4401
|
+
"overloadIndex": 1,
|
|
4402
|
+
"parameters": [],
|
|
4403
|
+
"name": "getInteractionCheckpoints"
|
|
4404
|
+
},
|
|
4027
4405
|
{
|
|
4028
4406
|
"kind": "MethodSignature",
|
|
4029
4407
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionContext:member(1)",
|
|
@@ -4754,7 +5132,7 @@
|
|
|
4754
5132
|
{
|
|
4755
5133
|
"kind": "MethodSignature",
|
|
4756
5134
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoint:member(1)",
|
|
4757
|
-
"docComment": "/**\n * Bring back
|
|
5135
|
+
"docComment": "/**\n * Bring back one checkpoint, or none (which clears every checkpoint held).\n *\n * @deprecated\n *\n * Use {@link AiDriver.restoreInteractionCheckpoints}.\n *\n * @beta\n */\n",
|
|
4758
5136
|
"excerptTokens": [
|
|
4759
5137
|
{
|
|
4760
5138
|
"kind": "Content",
|
|
@@ -4801,6 +5179,60 @@
|
|
|
4801
5179
|
],
|
|
4802
5180
|
"name": "restoreInteractionCheckpoint"
|
|
4803
5181
|
},
|
|
5182
|
+
{
|
|
5183
|
+
"kind": "MethodSignature",
|
|
5184
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoints:member(1)",
|
|
5185
|
+
"docComment": "/**\n * Bring back the checkpoints saved with the session. Their interactions were cut by the reload, so each waits for a request of its own widget type that the registration's `sameWork` agrees is the same work: it is offered to every such request until one agrees, kept through refusals and through checkpoints other interactions save meanwhile, and dropped when the flow ends. Replaces whatever the driver held.\n *\n * @beta\n */\n",
|
|
5186
|
+
"excerptTokens": [
|
|
5187
|
+
{
|
|
5188
|
+
"kind": "Content",
|
|
5189
|
+
"text": "restoreInteractionCheckpoints?(saved: "
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"kind": "Content",
|
|
5193
|
+
"text": "readonly "
|
|
5194
|
+
},
|
|
5195
|
+
{
|
|
5196
|
+
"kind": "Reference",
|
|
5197
|
+
"text": "PersistedInteractionCheckpoint",
|
|
5198
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
5199
|
+
},
|
|
5200
|
+
{
|
|
5201
|
+
"kind": "Content",
|
|
5202
|
+
"text": "[]"
|
|
5203
|
+
},
|
|
5204
|
+
{
|
|
5205
|
+
"kind": "Content",
|
|
5206
|
+
"text": "): "
|
|
5207
|
+
},
|
|
5208
|
+
{
|
|
5209
|
+
"kind": "Content",
|
|
5210
|
+
"text": "void"
|
|
5211
|
+
},
|
|
5212
|
+
{
|
|
5213
|
+
"kind": "Content",
|
|
5214
|
+
"text": ";"
|
|
5215
|
+
}
|
|
5216
|
+
],
|
|
5217
|
+
"isOptional": true,
|
|
5218
|
+
"returnTypeTokenRange": {
|
|
5219
|
+
"startIndex": 5,
|
|
5220
|
+
"endIndex": 6
|
|
5221
|
+
},
|
|
5222
|
+
"releaseTag": "Beta",
|
|
5223
|
+
"overloadIndex": 1,
|
|
5224
|
+
"parameters": [
|
|
5225
|
+
{
|
|
5226
|
+
"parameterName": "saved",
|
|
5227
|
+
"parameterTypeTokenRange": {
|
|
5228
|
+
"startIndex": 1,
|
|
5229
|
+
"endIndex": 4
|
|
5230
|
+
},
|
|
5231
|
+
"isOptional": false
|
|
5232
|
+
}
|
|
5233
|
+
],
|
|
5234
|
+
"name": "restoreInteractionCheckpoints"
|
|
5235
|
+
},
|
|
4804
5236
|
{
|
|
4805
5237
|
"kind": "MethodSignature",
|
|
4806
5238
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#resumeRestoredFlow:member(1)",
|
|
@@ -5364,7 +5796,7 @@
|
|
|
5364
5796
|
{
|
|
5365
5797
|
"kind": "PropertySignature",
|
|
5366
5798
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"interaction-settled\":member",
|
|
5367
|
-
"docComment": "/**\n * An interaction settled, by whatever route — a widget, a controller's `ctx.resolve`, a claimant, a timeout (GENC-1660). Detail: its id, and `answeredBy` when someone answered it (absent for a timeout or a stop).\n */\n",
|
|
5799
|
+
"docComment": "/**\n * An interaction settled, by whatever route — a widget, a controller's `ctx.resolve`, a claimant, a timeout (GENC-1660). Detail: its id, and `answeredBy` when someone answered it (absent for a timeout or a stop); `resolvedItself` in its place when a widget registered `resolvesItself` settled on its own, which nobody answered but after which the turn carries on.\n */\n",
|
|
5368
5800
|
"excerptTokens": [
|
|
5369
5801
|
{
|
|
5370
5802
|
"kind": "Content",
|
|
@@ -5377,7 +5809,7 @@
|
|
|
5377
5809
|
},
|
|
5378
5810
|
{
|
|
5379
5811
|
"kind": "Content",
|
|
5380
|
-
"text": "<{\n interactionId: string;\n answeredBy?: string;\n }>"
|
|
5812
|
+
"text": "<{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }>"
|
|
5381
5813
|
},
|
|
5382
5814
|
{
|
|
5383
5815
|
"kind": "Content",
|
|
@@ -5652,6 +6084,205 @@
|
|
|
5652
6084
|
],
|
|
5653
6085
|
"extendsTokenRanges": []
|
|
5654
6086
|
},
|
|
6087
|
+
{
|
|
6088
|
+
"kind": "Class",
|
|
6089
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiNotificationLevel:class",
|
|
6090
|
+
"docComment": "/**\n * The agent notification level picker on its own (GENC-1676), for an app or a widget's view to place wherever it invites the person to switch notifications on. The same control as the assistant's settings row, and the same behaviour: picking a level asks the browser for permission inside the click and snaps back if refused, the hint says when the browser blocks notifications, and the Autopilot level shows only when the app offers it.\n *\n * It works on the session in `session-key`, through the connected assistant that holds it, so the level is checked and saved as a settings change is. It renders nothing while no connected assistant holds that session, while the app turns notifications off, or where the browser has no notifications.\n *\n * In a widget, pass the interaction's session:\n * ```html\n * <foundation-ai-notification-level session-key=\"${(x) => x.interactionContext.sessionKey}\">\n * </foundation-ai-notification-level>\n * ```\n *\n * @beta\n */\n",
|
|
6091
|
+
"excerptTokens": [
|
|
6092
|
+
{
|
|
6093
|
+
"kind": "Content",
|
|
6094
|
+
"text": "export declare class AiNotificationLevel extends "
|
|
6095
|
+
},
|
|
6096
|
+
{
|
|
6097
|
+
"kind": "Reference",
|
|
6098
|
+
"text": "GenesisElement",
|
|
6099
|
+
"canonicalReference": "@microsoft/fast-element!FASTElement:interface"
|
|
6100
|
+
},
|
|
6101
|
+
{
|
|
6102
|
+
"kind": "Content",
|
|
6103
|
+
"text": " implements "
|
|
6104
|
+
},
|
|
6105
|
+
{
|
|
6106
|
+
"kind": "Reference",
|
|
6107
|
+
"text": "NotificationLevelPickerSource",
|
|
6108
|
+
"canonicalReference": "@genesislcap/ai-assistant!~NotificationLevelPickerSource:interface"
|
|
6109
|
+
},
|
|
6110
|
+
{
|
|
6111
|
+
"kind": "Content",
|
|
6112
|
+
"text": " "
|
|
6113
|
+
}
|
|
6114
|
+
],
|
|
6115
|
+
"fileUrlPath": "src/components/notification-level/notification-level.ts",
|
|
6116
|
+
"releaseTag": "Beta",
|
|
6117
|
+
"isAbstract": false,
|
|
6118
|
+
"name": "AiNotificationLevel",
|
|
6119
|
+
"preserveMemberOrder": false,
|
|
6120
|
+
"members": [
|
|
6121
|
+
{
|
|
6122
|
+
"kind": "Method",
|
|
6123
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiNotificationLevel#connectedCallback:member(1)",
|
|
6124
|
+
"docComment": "",
|
|
6125
|
+
"excerptTokens": [
|
|
6126
|
+
{
|
|
6127
|
+
"kind": "Content",
|
|
6128
|
+
"text": "connectedCallback(): "
|
|
6129
|
+
},
|
|
6130
|
+
{
|
|
6131
|
+
"kind": "Content",
|
|
6132
|
+
"text": "void"
|
|
6133
|
+
},
|
|
6134
|
+
{
|
|
6135
|
+
"kind": "Content",
|
|
6136
|
+
"text": ";"
|
|
6137
|
+
}
|
|
6138
|
+
],
|
|
6139
|
+
"isStatic": false,
|
|
6140
|
+
"returnTypeTokenRange": {
|
|
6141
|
+
"startIndex": 1,
|
|
6142
|
+
"endIndex": 2
|
|
6143
|
+
},
|
|
6144
|
+
"releaseTag": "Beta",
|
|
6145
|
+
"isProtected": false,
|
|
6146
|
+
"overloadIndex": 1,
|
|
6147
|
+
"parameters": [],
|
|
6148
|
+
"isOptional": false,
|
|
6149
|
+
"isAbstract": false,
|
|
6150
|
+
"name": "connectedCallback"
|
|
6151
|
+
},
|
|
6152
|
+
{
|
|
6153
|
+
"kind": "Property",
|
|
6154
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiNotificationLevel#designSystemPrefix:member",
|
|
6155
|
+
"docComment": "",
|
|
6156
|
+
"excerptTokens": [
|
|
6157
|
+
{
|
|
6158
|
+
"kind": "Content",
|
|
6159
|
+
"text": "designSystemPrefix: "
|
|
6160
|
+
},
|
|
6161
|
+
{
|
|
6162
|
+
"kind": "Content",
|
|
6163
|
+
"text": "string"
|
|
6164
|
+
},
|
|
6165
|
+
{
|
|
6166
|
+
"kind": "Content",
|
|
6167
|
+
"text": ";"
|
|
6168
|
+
}
|
|
6169
|
+
],
|
|
6170
|
+
"isReadonly": false,
|
|
6171
|
+
"isOptional": false,
|
|
6172
|
+
"releaseTag": "Beta",
|
|
6173
|
+
"name": "designSystemPrefix",
|
|
6174
|
+
"propertyTypeTokenRange": {
|
|
6175
|
+
"startIndex": 1,
|
|
6176
|
+
"endIndex": 2
|
|
6177
|
+
},
|
|
6178
|
+
"isStatic": false,
|
|
6179
|
+
"isProtected": false,
|
|
6180
|
+
"isAbstract": false
|
|
6181
|
+
},
|
|
6182
|
+
{
|
|
6183
|
+
"kind": "Method",
|
|
6184
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiNotificationLevel#disconnectedCallback:member(1)",
|
|
6185
|
+
"docComment": "",
|
|
6186
|
+
"excerptTokens": [
|
|
6187
|
+
{
|
|
6188
|
+
"kind": "Content",
|
|
6189
|
+
"text": "disconnectedCallback(): "
|
|
6190
|
+
},
|
|
6191
|
+
{
|
|
6192
|
+
"kind": "Content",
|
|
6193
|
+
"text": "void"
|
|
6194
|
+
},
|
|
6195
|
+
{
|
|
6196
|
+
"kind": "Content",
|
|
6197
|
+
"text": ";"
|
|
6198
|
+
}
|
|
6199
|
+
],
|
|
6200
|
+
"isStatic": false,
|
|
6201
|
+
"returnTypeTokenRange": {
|
|
6202
|
+
"startIndex": 1,
|
|
6203
|
+
"endIndex": 2
|
|
6204
|
+
},
|
|
6205
|
+
"releaseTag": "Beta",
|
|
6206
|
+
"isProtected": false,
|
|
6207
|
+
"overloadIndex": 1,
|
|
6208
|
+
"parameters": [],
|
|
6209
|
+
"isOptional": false,
|
|
6210
|
+
"isAbstract": false,
|
|
6211
|
+
"name": "disconnectedCallback"
|
|
6212
|
+
},
|
|
6213
|
+
{
|
|
6214
|
+
"kind": "Property",
|
|
6215
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiNotificationLevel#sessionKey:member",
|
|
6216
|
+
"docComment": "/**\n * The session whose level this picks: the assistant's `session-key` (or state key).\n */\n",
|
|
6217
|
+
"excerptTokens": [
|
|
6218
|
+
{
|
|
6219
|
+
"kind": "Content",
|
|
6220
|
+
"text": "sessionKey?: "
|
|
6221
|
+
},
|
|
6222
|
+
{
|
|
6223
|
+
"kind": "Content",
|
|
6224
|
+
"text": "string"
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"kind": "Content",
|
|
6228
|
+
"text": ";"
|
|
6229
|
+
}
|
|
6230
|
+
],
|
|
6231
|
+
"isReadonly": false,
|
|
6232
|
+
"isOptional": true,
|
|
6233
|
+
"releaseTag": "Beta",
|
|
6234
|
+
"name": "sessionKey",
|
|
6235
|
+
"propertyTypeTokenRange": {
|
|
6236
|
+
"startIndex": 1,
|
|
6237
|
+
"endIndex": 2
|
|
6238
|
+
},
|
|
6239
|
+
"isStatic": false,
|
|
6240
|
+
"isProtected": false,
|
|
6241
|
+
"isAbstract": false
|
|
6242
|
+
},
|
|
6243
|
+
{
|
|
6244
|
+
"kind": "Method",
|
|
6245
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiNotificationLevel#sessionKeyChanged:member(1)",
|
|
6246
|
+
"docComment": "",
|
|
6247
|
+
"excerptTokens": [
|
|
6248
|
+
{
|
|
6249
|
+
"kind": "Content",
|
|
6250
|
+
"text": "sessionKeyChanged(): "
|
|
6251
|
+
},
|
|
6252
|
+
{
|
|
6253
|
+
"kind": "Content",
|
|
6254
|
+
"text": "void"
|
|
6255
|
+
},
|
|
6256
|
+
{
|
|
6257
|
+
"kind": "Content",
|
|
6258
|
+
"text": ";"
|
|
6259
|
+
}
|
|
6260
|
+
],
|
|
6261
|
+
"isStatic": false,
|
|
6262
|
+
"returnTypeTokenRange": {
|
|
6263
|
+
"startIndex": 1,
|
|
6264
|
+
"endIndex": 2
|
|
6265
|
+
},
|
|
6266
|
+
"releaseTag": "Beta",
|
|
6267
|
+
"isProtected": false,
|
|
6268
|
+
"overloadIndex": 1,
|
|
6269
|
+
"parameters": [],
|
|
6270
|
+
"isOptional": false,
|
|
6271
|
+
"isAbstract": false,
|
|
6272
|
+
"name": "sessionKeyChanged"
|
|
6273
|
+
}
|
|
6274
|
+
],
|
|
6275
|
+
"extendsTokenRange": {
|
|
6276
|
+
"startIndex": 1,
|
|
6277
|
+
"endIndex": 2
|
|
6278
|
+
},
|
|
6279
|
+
"implementsTokenRanges": [
|
|
6280
|
+
{
|
|
6281
|
+
"startIndex": 3,
|
|
6282
|
+
"endIndex": 4
|
|
6283
|
+
}
|
|
6284
|
+
]
|
|
6285
|
+
},
|
|
5655
6286
|
{
|
|
5656
6287
|
"kind": "Interface",
|
|
5657
6288
|
"canonicalReference": "@genesislcap/ai-assistant!AIProviderSwitcher:interface",
|
|
@@ -6987,7 +7618,7 @@
|
|
|
6987
7618
|
{
|
|
6988
7619
|
"kind": "PropertySignature",
|
|
6989
7620
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#maxRefinements:member",
|
|
6990
|
-
"docComment": "/**\n *
|
|
7621
|
+
"docComment": "/**\n * Refinements allowed per step before every refining action is withdrawn, so refining a proposal cannot loop with the working agent re-proposing it. A refinement is a written answer (`reply`) or a full-form action declared `refines` (a regenerate with instructions), counted together. `>= 0` (0 never offers one), or the default is used. Default 2. Enforced by the platform, not asked of the model: past the limit it can only accept or hand back. Counted the moment one is taken, so a refining action that does not settle cannot be repeated past it within a decision. The decision tells the model how many are left (`Refinements left at this step: N`) wherever the widget has a refining action, so a widget's own summary need not count them.\n */\n",
|
|
6991
7622
|
"excerptTokens": [
|
|
6992
7623
|
{
|
|
6993
7624
|
"kind": "Content",
|
|
@@ -7221,7 +7852,7 @@
|
|
|
7221
7852
|
{
|
|
7222
7853
|
"kind": "PropertySignature",
|
|
7223
7854
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#watchdogMs:member",
|
|
7224
|
-
"docComment": "/**\n * How long the autopilot's work on a claimed interaction may go quiet before it is handed back, in ms; `> 0`, or the default is used. Quiet means either no ready surface and no heartbeat (`ctx.notify()`), or a decision of its own still running with no model call landing and no heartbeat — a stalled model call, which has no timeout of its own. A decision handed back this way is stopped. Must outlast the slowest honest wait, such as a compile. Default 10 minutes.\n */\n",
|
|
7855
|
+
"docComment": "/**\n * How long the autopilot's work on a claimed interaction may go quiet before it is handed back, in ms; `> 0`, or the default is used. Quiet means either no ready surface (no decision due, which includes a controller that says it is working) and no heartbeat (`ctx.notify()`), or a decision of its own still running with no model call landing and no heartbeat — a stalled model call, which has no timeout of its own. A decision handed back this way is stopped. Must outlast the slowest honest wait, such as a compile. Default 10 minutes.\n */\n",
|
|
7225
7856
|
"excerptTokens": [
|
|
7226
7857
|
{
|
|
7227
7858
|
"kind": "Content",
|
|
@@ -7294,6 +7925,38 @@
|
|
|
7294
7925
|
"startIndex": 1,
|
|
7295
7926
|
"endIndex": 7
|
|
7296
7927
|
}
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
"kind": "PropertySignature",
|
|
7931
|
+
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#widgetTools:member",
|
|
7932
|
+
"docComment": "/**\n * Tools that read from one widget type while it is open, built with `widgetTools`: reads with parameters, which a surface's views cannot take (one table's rows, a page of them). Declared here, never discovered from registrations, so the tool list is fixed when the autopilot's session starts — the fixed three, `tools` and these, sorted by name — and every decision sends the same one, which keeps the cache. Each call is routed to the interaction of its widget type being decided, and refused with a reason when none is; while one is open, the platform puts a line naming its tools in front of the tail. Reads only.\n *\n * Every tool name must be unique across these, `tools` and the fixed three: `defineAutopilot` throws otherwise.\n */\n",
|
|
7933
|
+
"excerptTokens": [
|
|
7934
|
+
{
|
|
7935
|
+
"kind": "Content",
|
|
7936
|
+
"text": "widgetTools?: "
|
|
7937
|
+
},
|
|
7938
|
+
{
|
|
7939
|
+
"kind": "Reference",
|
|
7940
|
+
"text": "WidgetTools",
|
|
7941
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools:interface"
|
|
7942
|
+
},
|
|
7943
|
+
{
|
|
7944
|
+
"kind": "Content",
|
|
7945
|
+
"text": "[]"
|
|
7946
|
+
},
|
|
7947
|
+
{
|
|
7948
|
+
"kind": "Content",
|
|
7949
|
+
"text": ";"
|
|
7950
|
+
}
|
|
7951
|
+
],
|
|
7952
|
+
"isReadonly": false,
|
|
7953
|
+
"isOptional": true,
|
|
7954
|
+
"releaseTag": "Beta",
|
|
7955
|
+
"name": "widgetTools",
|
|
7956
|
+
"propertyTypeTokenRange": {
|
|
7957
|
+
"startIndex": 1,
|
|
7958
|
+
"endIndex": 3
|
|
7959
|
+
}
|
|
7297
7960
|
}
|
|
7298
7961
|
],
|
|
7299
7962
|
"extendsTokenRanges": []
|
|
@@ -7880,6 +8543,33 @@
|
|
|
7880
8543
|
"endIndex": 2
|
|
7881
8544
|
}
|
|
7882
8545
|
},
|
|
8546
|
+
{
|
|
8547
|
+
"kind": "PropertySignature",
|
|
8548
|
+
"canonicalReference": "@genesislcap/ai-assistant!AutopilotCopy#waitingForUser:member",
|
|
8549
|
+
"docComment": "/**\n * The slim bar's status while running but waiting on the person for a question the autopilot never took — one its `widgetPolicy` keeps for them, one that is `userOnly`, or one with no controller to act through — e.g. \"Waiting for your answer\". Not a hand-back, which is `selfPaused`: nothing pauses, and the autopilot carries on by itself once they answer.\n */\n",
|
|
8550
|
+
"excerptTokens": [
|
|
8551
|
+
{
|
|
8552
|
+
"kind": "Content",
|
|
8553
|
+
"text": "waitingForUser: "
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
"kind": "Content",
|
|
8557
|
+
"text": "string"
|
|
8558
|
+
},
|
|
8559
|
+
{
|
|
8560
|
+
"kind": "Content",
|
|
8561
|
+
"text": ";"
|
|
8562
|
+
}
|
|
8563
|
+
],
|
|
8564
|
+
"isReadonly": false,
|
|
8565
|
+
"isOptional": false,
|
|
8566
|
+
"releaseTag": "Beta",
|
|
8567
|
+
"name": "waitingForUser",
|
|
8568
|
+
"propertyTypeTokenRange": {
|
|
8569
|
+
"startIndex": 1,
|
|
8570
|
+
"endIndex": 2
|
|
8571
|
+
}
|
|
8572
|
+
},
|
|
7883
8573
|
{
|
|
7884
8574
|
"kind": "PropertySignature",
|
|
7885
8575
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotCopy#watchdogReason:member",
|
|
@@ -8705,6 +9395,34 @@
|
|
|
8705
9395
|
"name": "AutopilotDriverOptions",
|
|
8706
9396
|
"preserveMemberOrder": false,
|
|
8707
9397
|
"members": [
|
|
9398
|
+
{
|
|
9399
|
+
"kind": "PropertySignature",
|
|
9400
|
+
"canonicalReference": "@genesislcap/ai-assistant!AutopilotDriverOptions#activityBus:member",
|
|
9401
|
+
"docComment": "/**\n * Where the driver reports that it handed back to the person or stopped working, as `agent-attention` (GENC-1676). Defaults to {@link NOOP_ACTIVITY_BUS}.\n */\n",
|
|
9402
|
+
"excerptTokens": [
|
|
9403
|
+
{
|
|
9404
|
+
"kind": "Content",
|
|
9405
|
+
"text": "readonly activityBus?: "
|
|
9406
|
+
},
|
|
9407
|
+
{
|
|
9408
|
+
"kind": "Reference",
|
|
9409
|
+
"text": "ActivityBus",
|
|
9410
|
+
"canonicalReference": "@genesislcap/ai-assistant!ActivityBus:interface"
|
|
9411
|
+
},
|
|
9412
|
+
{
|
|
9413
|
+
"kind": "Content",
|
|
9414
|
+
"text": ";"
|
|
9415
|
+
}
|
|
9416
|
+
],
|
|
9417
|
+
"isReadonly": true,
|
|
9418
|
+
"isOptional": true,
|
|
9419
|
+
"releaseTag": "Beta",
|
|
9420
|
+
"name": "activityBus",
|
|
9421
|
+
"propertyTypeTokenRange": {
|
|
9422
|
+
"startIndex": 1,
|
|
9423
|
+
"endIndex": 2
|
|
9424
|
+
}
|
|
9425
|
+
},
|
|
8708
9426
|
{
|
|
8709
9427
|
"kind": "PropertySignature",
|
|
8710
9428
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotDriverOptions#agents:member",
|
|
@@ -9001,7 +9719,16 @@
|
|
|
9001
9719
|
},
|
|
9002
9720
|
{
|
|
9003
9721
|
"kind": "Content",
|
|
9004
|
-
"text": "['payload']
|
|
9722
|
+
"text": "['payload'], "
|
|
9723
|
+
},
|
|
9724
|
+
{
|
|
9725
|
+
"kind": "Reference",
|
|
9726
|
+
"text": "HandBackController",
|
|
9727
|
+
"canonicalReference": "@genesislcap/ai-assistant!~HandBackController:class"
|
|
9728
|
+
},
|
|
9729
|
+
{
|
|
9730
|
+
"kind": "Content",
|
|
9731
|
+
"text": ">"
|
|
9005
9732
|
},
|
|
9006
9733
|
{
|
|
9007
9734
|
"kind": "Content",
|
|
@@ -9014,7 +9741,7 @@
|
|
|
9014
9741
|
"name": "interaction",
|
|
9015
9742
|
"propertyTypeTokenRange": {
|
|
9016
9743
|
"startIndex": 1,
|
|
9017
|
-
"endIndex":
|
|
9744
|
+
"endIndex": 9
|
|
9018
9745
|
},
|
|
9019
9746
|
"isStatic": false,
|
|
9020
9747
|
"isProtected": false,
|
|
@@ -9207,7 +9934,7 @@
|
|
|
9207
9934
|
{
|
|
9208
9935
|
"kind": "MethodSignature",
|
|
9209
9936
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHost#resume:member(1)",
|
|
9210
|
-
"docComment": "/**\n * Resume. Takes back an interaction that pausing handed over; during the autopilot's own hand-back it means \"decide it yourself\".\n */\n",
|
|
9937
|
+
"docComment": "/**\n * Resume. Takes back an interaction that pausing handed over; during the autopilot's own hand-back it means \"decide it yourself\". Takes an interaction that opened while paused and is still open, when it would have claimed it had it been running then.\n */\n",
|
|
9211
9938
|
"excerptTokens": [
|
|
9212
9939
|
{
|
|
9213
9940
|
"kind": "Content",
|
|
@@ -9382,7 +10109,7 @@
|
|
|
9382
10109
|
{
|
|
9383
10110
|
"kind": "PropertySignature",
|
|
9384
10111
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHostState#needsUser:member",
|
|
9385
|
-
"docComment": "/**\n * Whether
|
|
10112
|
+
"docComment": "/**\n * Whether the autopilot stopped and needs the person — its own hand-back of a widget or of a turn: drives the \"needs you\" badge. Not set for a question it never took (see `status`).\n */\n",
|
|
9386
10113
|
"excerptTokens": [
|
|
9387
10114
|
{
|
|
9388
10115
|
"kind": "Content",
|
|
@@ -9436,7 +10163,7 @@
|
|
|
9436
10163
|
{
|
|
9437
10164
|
"kind": "PropertySignature",
|
|
9438
10165
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHostState#status:member",
|
|
9439
|
-
"docComment": "/**\n * The slim bar's one-line status.\n */\n",
|
|
10166
|
+
"docComment": "/**\n * The slim bar's one-line status, from `AutopilotCopy`: `running`, or `waitingForUser` while the working agent waits on a question the autopilot left with the person; `selfPaused` while it waits on one it handed back; `paused` otherwise.\n */\n",
|
|
9440
10167
|
"excerptTokens": [
|
|
9441
10168
|
{
|
|
9442
10169
|
"kind": "Content",
|
|
@@ -10449,6 +11176,46 @@
|
|
|
10449
11176
|
"isAbstract": false,
|
|
10450
11177
|
"name": "getInteractionCheckpoint"
|
|
10451
11178
|
},
|
|
11179
|
+
{
|
|
11180
|
+
"kind": "Method",
|
|
11181
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getInteractionCheckpoints:member(1)",
|
|
11182
|
+
"docComment": "",
|
|
11183
|
+
"excerptTokens": [
|
|
11184
|
+
{
|
|
11185
|
+
"kind": "Content",
|
|
11186
|
+
"text": "getInteractionCheckpoints(): "
|
|
11187
|
+
},
|
|
11188
|
+
{
|
|
11189
|
+
"kind": "Content",
|
|
11190
|
+
"text": "readonly "
|
|
11191
|
+
},
|
|
11192
|
+
{
|
|
11193
|
+
"kind": "Reference",
|
|
11194
|
+
"text": "PersistedInteractionCheckpoint",
|
|
11195
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
11196
|
+
},
|
|
11197
|
+
{
|
|
11198
|
+
"kind": "Content",
|
|
11199
|
+
"text": "[]"
|
|
11200
|
+
},
|
|
11201
|
+
{
|
|
11202
|
+
"kind": "Content",
|
|
11203
|
+
"text": ";"
|
|
11204
|
+
}
|
|
11205
|
+
],
|
|
11206
|
+
"isStatic": false,
|
|
11207
|
+
"returnTypeTokenRange": {
|
|
11208
|
+
"startIndex": 1,
|
|
11209
|
+
"endIndex": 4
|
|
11210
|
+
},
|
|
11211
|
+
"releaseTag": "Beta",
|
|
11212
|
+
"isProtected": false,
|
|
11213
|
+
"overloadIndex": 1,
|
|
11214
|
+
"parameters": [],
|
|
11215
|
+
"isOptional": false,
|
|
11216
|
+
"isAbstract": false,
|
|
11217
|
+
"name": "getInteractionCheckpoints"
|
|
11218
|
+
},
|
|
10452
11219
|
{
|
|
10453
11220
|
"kind": "Method",
|
|
10454
11221
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getInteractionContext:member(1)",
|
|
@@ -11346,6 +12113,63 @@
|
|
|
11346
12113
|
"isAbstract": false,
|
|
11347
12114
|
"name": "restoreInteractionCheckpoint"
|
|
11348
12115
|
},
|
|
12116
|
+
{
|
|
12117
|
+
"kind": "Method",
|
|
12118
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreInteractionCheckpoints:member(1)",
|
|
12119
|
+
"docComment": "",
|
|
12120
|
+
"excerptTokens": [
|
|
12121
|
+
{
|
|
12122
|
+
"kind": "Content",
|
|
12123
|
+
"text": "restoreInteractionCheckpoints(saved: "
|
|
12124
|
+
},
|
|
12125
|
+
{
|
|
12126
|
+
"kind": "Content",
|
|
12127
|
+
"text": "readonly "
|
|
12128
|
+
},
|
|
12129
|
+
{
|
|
12130
|
+
"kind": "Reference",
|
|
12131
|
+
"text": "PersistedInteractionCheckpoint",
|
|
12132
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
12133
|
+
},
|
|
12134
|
+
{
|
|
12135
|
+
"kind": "Content",
|
|
12136
|
+
"text": "[]"
|
|
12137
|
+
},
|
|
12138
|
+
{
|
|
12139
|
+
"kind": "Content",
|
|
12140
|
+
"text": "): "
|
|
12141
|
+
},
|
|
12142
|
+
{
|
|
12143
|
+
"kind": "Content",
|
|
12144
|
+
"text": "void"
|
|
12145
|
+
},
|
|
12146
|
+
{
|
|
12147
|
+
"kind": "Content",
|
|
12148
|
+
"text": ";"
|
|
12149
|
+
}
|
|
12150
|
+
],
|
|
12151
|
+
"isStatic": false,
|
|
12152
|
+
"returnTypeTokenRange": {
|
|
12153
|
+
"startIndex": 5,
|
|
12154
|
+
"endIndex": 6
|
|
12155
|
+
},
|
|
12156
|
+
"releaseTag": "Beta",
|
|
12157
|
+
"isProtected": false,
|
|
12158
|
+
"overloadIndex": 1,
|
|
12159
|
+
"parameters": [
|
|
12160
|
+
{
|
|
12161
|
+
"parameterName": "saved",
|
|
12162
|
+
"parameterTypeTokenRange": {
|
|
12163
|
+
"startIndex": 1,
|
|
12164
|
+
"endIndex": 4
|
|
12165
|
+
},
|
|
12166
|
+
"isOptional": false
|
|
12167
|
+
}
|
|
12168
|
+
],
|
|
12169
|
+
"isOptional": false,
|
|
12170
|
+
"isAbstract": false,
|
|
12171
|
+
"name": "restoreInteractionCheckpoints"
|
|
12172
|
+
},
|
|
11349
12173
|
{
|
|
11350
12174
|
"kind": "Method",
|
|
11351
12175
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#resumeRestoredFlow:member(1)",
|
|
@@ -12630,7 +13454,7 @@
|
|
|
12630
13454
|
{
|
|
12631
13455
|
"kind": "Method",
|
|
12632
13456
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoint:member(1)",
|
|
12633
|
-
"docComment": "/**\n *
|
|
13457
|
+
"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",
|
|
12634
13458
|
"excerptTokens": [
|
|
12635
13459
|
{
|
|
12636
13460
|
"kind": "Content",
|
|
@@ -12663,6 +13487,46 @@
|
|
|
12663
13487
|
"isAbstract": false,
|
|
12664
13488
|
"name": "getInteractionCheckpoint"
|
|
12665
13489
|
},
|
|
13490
|
+
{
|
|
13491
|
+
"kind": "Method",
|
|
13492
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoints:member(1)",
|
|
13493
|
+
"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",
|
|
13494
|
+
"excerptTokens": [
|
|
13495
|
+
{
|
|
13496
|
+
"kind": "Content",
|
|
13497
|
+
"text": "getInteractionCheckpoints(): "
|
|
13498
|
+
},
|
|
13499
|
+
{
|
|
13500
|
+
"kind": "Content",
|
|
13501
|
+
"text": "readonly "
|
|
13502
|
+
},
|
|
13503
|
+
{
|
|
13504
|
+
"kind": "Reference",
|
|
13505
|
+
"text": "PersistedInteractionCheckpoint",
|
|
13506
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
13507
|
+
},
|
|
13508
|
+
{
|
|
13509
|
+
"kind": "Content",
|
|
13510
|
+
"text": "[]"
|
|
13511
|
+
},
|
|
13512
|
+
{
|
|
13513
|
+
"kind": "Content",
|
|
13514
|
+
"text": ";"
|
|
13515
|
+
}
|
|
13516
|
+
],
|
|
13517
|
+
"isStatic": false,
|
|
13518
|
+
"returnTypeTokenRange": {
|
|
13519
|
+
"startIndex": 1,
|
|
13520
|
+
"endIndex": 4
|
|
13521
|
+
},
|
|
13522
|
+
"releaseTag": "Public",
|
|
13523
|
+
"isProtected": false,
|
|
13524
|
+
"overloadIndex": 1,
|
|
13525
|
+
"parameters": [],
|
|
13526
|
+
"isOptional": false,
|
|
13527
|
+
"isAbstract": false,
|
|
13528
|
+
"name": "getInteractionCheckpoints"
|
|
13529
|
+
},
|
|
12666
13530
|
{
|
|
12667
13531
|
"kind": "Method",
|
|
12668
13532
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionContext:member(1)",
|
|
@@ -13900,7 +14764,7 @@
|
|
|
13900
14764
|
{
|
|
13901
14765
|
"kind": "Method",
|
|
13902
14766
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreInteractionCheckpoint:member(1)",
|
|
13903
|
-
"docComment": "/**\n * Bring back
|
|
14767
|
+
"docComment": "/**\n * Bring back one checkpoint, or none (which clears every checkpoint held).\n *\n * @deprecated\n *\n * Use `restoreInteractionCheckpoints`.\n */\n",
|
|
13904
14768
|
"excerptTokens": [
|
|
13905
14769
|
{
|
|
13906
14770
|
"kind": "Content",
|
|
@@ -13950,6 +14814,63 @@
|
|
|
13950
14814
|
"isAbstract": false,
|
|
13951
14815
|
"name": "restoreInteractionCheckpoint"
|
|
13952
14816
|
},
|
|
14817
|
+
{
|
|
14818
|
+
"kind": "Method",
|
|
14819
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreInteractionCheckpoints:member(1)",
|
|
14820
|
+
"docComment": "/**\n * Bring back the checkpoints saved with the session. Their interactions were cut by the reload, so each waits for a request of its own widget type that the registration's `sameWork` agrees is the same work: it is offered to every such request until one agrees, kept through refusals and through checkpoints other interactions save meanwhile, and dropped when the flow ends. Replaces whatever the driver held.\n */\n",
|
|
14821
|
+
"excerptTokens": [
|
|
14822
|
+
{
|
|
14823
|
+
"kind": "Content",
|
|
14824
|
+
"text": "restoreInteractionCheckpoints(saved: "
|
|
14825
|
+
},
|
|
14826
|
+
{
|
|
14827
|
+
"kind": "Content",
|
|
14828
|
+
"text": "readonly "
|
|
14829
|
+
},
|
|
14830
|
+
{
|
|
14831
|
+
"kind": "Reference",
|
|
14832
|
+
"text": "PersistedInteractionCheckpoint",
|
|
14833
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
14834
|
+
},
|
|
14835
|
+
{
|
|
14836
|
+
"kind": "Content",
|
|
14837
|
+
"text": "[]"
|
|
14838
|
+
},
|
|
14839
|
+
{
|
|
14840
|
+
"kind": "Content",
|
|
14841
|
+
"text": "): "
|
|
14842
|
+
},
|
|
14843
|
+
{
|
|
14844
|
+
"kind": "Content",
|
|
14845
|
+
"text": "void"
|
|
14846
|
+
},
|
|
14847
|
+
{
|
|
14848
|
+
"kind": "Content",
|
|
14849
|
+
"text": ";"
|
|
14850
|
+
}
|
|
14851
|
+
],
|
|
14852
|
+
"isStatic": false,
|
|
14853
|
+
"returnTypeTokenRange": {
|
|
14854
|
+
"startIndex": 5,
|
|
14855
|
+
"endIndex": 6
|
|
14856
|
+
},
|
|
14857
|
+
"releaseTag": "Public",
|
|
14858
|
+
"isProtected": false,
|
|
14859
|
+
"overloadIndex": 1,
|
|
14860
|
+
"parameters": [
|
|
14861
|
+
{
|
|
14862
|
+
"parameterName": "saved",
|
|
14863
|
+
"parameterTypeTokenRange": {
|
|
14864
|
+
"startIndex": 1,
|
|
14865
|
+
"endIndex": 4
|
|
14866
|
+
},
|
|
14867
|
+
"isOptional": false
|
|
14868
|
+
}
|
|
14869
|
+
],
|
|
14870
|
+
"isOptional": false,
|
|
14871
|
+
"isAbstract": false,
|
|
14872
|
+
"name": "restoreInteractionCheckpoints"
|
|
14873
|
+
},
|
|
13953
14874
|
{
|
|
13954
14875
|
"kind": "Method",
|
|
13955
14876
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#resumeRestoredFlow:member(1)",
|
|
@@ -15114,6 +16035,359 @@
|
|
|
15114
16035
|
],
|
|
15115
16036
|
"extendsTokenRanges": []
|
|
15116
16037
|
},
|
|
16038
|
+
{
|
|
16039
|
+
"kind": "Interface",
|
|
16040
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost:interface",
|
|
16041
|
+
"docComment": "/**\n * What a widget controller needs from whatever hosts it (GENC-1660): the slice of {@link InteractionContext} a controller uses, so it can be built and tested without the rest. An `InteractionContext` is one, so a registration passes its `ctx` straight through:\n * ```ts\n * class ReviewController {\n * constructor(data: ReviewData, private readonly host: ControllerHost<ReviewResult>) {\n * host.exposeSurface?.({ … });\n * }\n * }\n * registerInteraction<ReviewController>('review', {\n * controller: (data, ctx) => new ReviewController(data as ReviewData, ctx),\n * });\n * ```\n *\n * `heldBy`, `exposeDecision` and `exposeSurface` are optional so a view can build the same controller over a stand-in host for a card with no live context (a resolved one in the transcript, a gallery): nobody can claim it, so it has nothing to expose and only the person holds it. Read an absent `heldBy` as `'user'`.\n *\n * `TResult` is the payload type the controller resolves with; `TState` what it keeps on `state`.\n *\n * @beta\n */\n",
|
|
16042
|
+
"excerptTokens": [
|
|
16043
|
+
{
|
|
16044
|
+
"kind": "Content",
|
|
16045
|
+
"text": "export interface ControllerHost<TResult = "
|
|
16046
|
+
},
|
|
16047
|
+
{
|
|
16048
|
+
"kind": "Content",
|
|
16049
|
+
"text": "unknown"
|
|
16050
|
+
},
|
|
16051
|
+
{
|
|
16052
|
+
"kind": "Content",
|
|
16053
|
+
"text": ", TState extends "
|
|
16054
|
+
},
|
|
16055
|
+
{
|
|
16056
|
+
"kind": "Content",
|
|
16057
|
+
"text": "object"
|
|
16058
|
+
},
|
|
16059
|
+
{
|
|
16060
|
+
"kind": "Content",
|
|
16061
|
+
"text": " = "
|
|
16062
|
+
},
|
|
16063
|
+
{
|
|
16064
|
+
"kind": "Content",
|
|
16065
|
+
"text": "object"
|
|
16066
|
+
},
|
|
16067
|
+
{
|
|
16068
|
+
"kind": "Content",
|
|
16069
|
+
"text": "> "
|
|
16070
|
+
}
|
|
16071
|
+
],
|
|
16072
|
+
"fileUrlPath": "src/types/interaction-context.ts",
|
|
16073
|
+
"releaseTag": "Beta",
|
|
16074
|
+
"typeParameters": [
|
|
16075
|
+
{
|
|
16076
|
+
"typeParameterName": "TResult",
|
|
16077
|
+
"constraintTokenRange": {
|
|
16078
|
+
"startIndex": 0,
|
|
16079
|
+
"endIndex": 0
|
|
16080
|
+
},
|
|
16081
|
+
"defaultTypeTokenRange": {
|
|
16082
|
+
"startIndex": 1,
|
|
16083
|
+
"endIndex": 2
|
|
16084
|
+
}
|
|
16085
|
+
},
|
|
16086
|
+
{
|
|
16087
|
+
"typeParameterName": "TState",
|
|
16088
|
+
"constraintTokenRange": {
|
|
16089
|
+
"startIndex": 3,
|
|
16090
|
+
"endIndex": 4
|
|
16091
|
+
},
|
|
16092
|
+
"defaultTypeTokenRange": {
|
|
16093
|
+
"startIndex": 5,
|
|
16094
|
+
"endIndex": 6
|
|
16095
|
+
}
|
|
16096
|
+
}
|
|
16097
|
+
],
|
|
16098
|
+
"name": "ControllerHost",
|
|
16099
|
+
"preserveMemberOrder": false,
|
|
16100
|
+
"members": [
|
|
16101
|
+
{
|
|
16102
|
+
"kind": "MethodSignature",
|
|
16103
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#exposeDecision:member(1)",
|
|
16104
|
+
"docComment": "/**\n * See {@link InteractionContext.exposeDecision}. Absent on a stand-in host.\n */\n",
|
|
16105
|
+
"excerptTokens": [
|
|
16106
|
+
{
|
|
16107
|
+
"kind": "Content",
|
|
16108
|
+
"text": "exposeDecision?(decision: "
|
|
16109
|
+
},
|
|
16110
|
+
{
|
|
16111
|
+
"kind": "Reference",
|
|
16112
|
+
"text": "DecisionSpec",
|
|
16113
|
+
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec:interface"
|
|
16114
|
+
},
|
|
16115
|
+
{
|
|
16116
|
+
"kind": "Content",
|
|
16117
|
+
"text": "): "
|
|
16118
|
+
},
|
|
16119
|
+
{
|
|
16120
|
+
"kind": "Content",
|
|
16121
|
+
"text": "void"
|
|
16122
|
+
},
|
|
16123
|
+
{
|
|
16124
|
+
"kind": "Content",
|
|
16125
|
+
"text": ";"
|
|
16126
|
+
}
|
|
16127
|
+
],
|
|
16128
|
+
"isOptional": true,
|
|
16129
|
+
"returnTypeTokenRange": {
|
|
16130
|
+
"startIndex": 3,
|
|
16131
|
+
"endIndex": 4
|
|
16132
|
+
},
|
|
16133
|
+
"releaseTag": "Beta",
|
|
16134
|
+
"overloadIndex": 1,
|
|
16135
|
+
"parameters": [
|
|
16136
|
+
{
|
|
16137
|
+
"parameterName": "decision",
|
|
16138
|
+
"parameterTypeTokenRange": {
|
|
16139
|
+
"startIndex": 1,
|
|
16140
|
+
"endIndex": 2
|
|
16141
|
+
},
|
|
16142
|
+
"isOptional": false
|
|
16143
|
+
}
|
|
16144
|
+
],
|
|
16145
|
+
"name": "exposeDecision"
|
|
16146
|
+
},
|
|
16147
|
+
{
|
|
16148
|
+
"kind": "MethodSignature",
|
|
16149
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#exposeSurface:member(1)",
|
|
16150
|
+
"docComment": "/**\n * See {@link InteractionContext.exposeSurface}. Absent on a stand-in host.\n */\n",
|
|
16151
|
+
"excerptTokens": [
|
|
16152
|
+
{
|
|
16153
|
+
"kind": "Content",
|
|
16154
|
+
"text": "exposeSurface?(surface: "
|
|
16155
|
+
},
|
|
16156
|
+
{
|
|
16157
|
+
"kind": "Reference",
|
|
16158
|
+
"text": "SurfaceSpec",
|
|
16159
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec:interface"
|
|
16160
|
+
},
|
|
16161
|
+
{
|
|
16162
|
+
"kind": "Content",
|
|
16163
|
+
"text": "): "
|
|
16164
|
+
},
|
|
16165
|
+
{
|
|
16166
|
+
"kind": "Content",
|
|
16167
|
+
"text": "void"
|
|
16168
|
+
},
|
|
16169
|
+
{
|
|
16170
|
+
"kind": "Content",
|
|
16171
|
+
"text": ";"
|
|
16172
|
+
}
|
|
16173
|
+
],
|
|
16174
|
+
"isOptional": true,
|
|
16175
|
+
"returnTypeTokenRange": {
|
|
16176
|
+
"startIndex": 3,
|
|
16177
|
+
"endIndex": 4
|
|
16178
|
+
},
|
|
16179
|
+
"releaseTag": "Beta",
|
|
16180
|
+
"overloadIndex": 1,
|
|
16181
|
+
"parameters": [
|
|
16182
|
+
{
|
|
16183
|
+
"parameterName": "surface",
|
|
16184
|
+
"parameterTypeTokenRange": {
|
|
16185
|
+
"startIndex": 1,
|
|
16186
|
+
"endIndex": 2
|
|
16187
|
+
},
|
|
16188
|
+
"isOptional": false
|
|
16189
|
+
}
|
|
16190
|
+
],
|
|
16191
|
+
"name": "exposeSurface"
|
|
16192
|
+
},
|
|
16193
|
+
{
|
|
16194
|
+
"kind": "PropertySignature",
|
|
16195
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#heldBy:member",
|
|
16196
|
+
"docComment": "/**\n * Who holds the interaction right now: `'user'`, or the claimant's id. Absent means the person.\n */\n",
|
|
16197
|
+
"excerptTokens": [
|
|
16198
|
+
{
|
|
16199
|
+
"kind": "Content",
|
|
16200
|
+
"text": "readonly heldBy?: "
|
|
16201
|
+
},
|
|
16202
|
+
{
|
|
16203
|
+
"kind": "Reference",
|
|
16204
|
+
"text": "InteractionHolder",
|
|
16205
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHolder:type"
|
|
16206
|
+
},
|
|
16207
|
+
{
|
|
16208
|
+
"kind": "Content",
|
|
16209
|
+
"text": ";"
|
|
16210
|
+
}
|
|
16211
|
+
],
|
|
16212
|
+
"isReadonly": true,
|
|
16213
|
+
"isOptional": true,
|
|
16214
|
+
"releaseTag": "Beta",
|
|
16215
|
+
"name": "heldBy",
|
|
16216
|
+
"propertyTypeTokenRange": {
|
|
16217
|
+
"startIndex": 1,
|
|
16218
|
+
"endIndex": 2
|
|
16219
|
+
}
|
|
16220
|
+
},
|
|
16221
|
+
{
|
|
16222
|
+
"kind": "MethodSignature",
|
|
16223
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#notify:member(1)",
|
|
16224
|
+
"docComment": "/**\n * Something in the controller's state or view model changed. See {@link InteractionContext.notify}.\n */\n",
|
|
16225
|
+
"excerptTokens": [
|
|
16226
|
+
{
|
|
16227
|
+
"kind": "Content",
|
|
16228
|
+
"text": "notify(): "
|
|
16229
|
+
},
|
|
16230
|
+
{
|
|
16231
|
+
"kind": "Content",
|
|
16232
|
+
"text": "void"
|
|
16233
|
+
},
|
|
16234
|
+
{
|
|
16235
|
+
"kind": "Content",
|
|
16236
|
+
"text": ";"
|
|
16237
|
+
}
|
|
16238
|
+
],
|
|
16239
|
+
"isOptional": false,
|
|
16240
|
+
"returnTypeTokenRange": {
|
|
16241
|
+
"startIndex": 1,
|
|
16242
|
+
"endIndex": 2
|
|
16243
|
+
},
|
|
16244
|
+
"releaseTag": "Beta",
|
|
16245
|
+
"overloadIndex": 1,
|
|
16246
|
+
"parameters": [],
|
|
16247
|
+
"name": "notify"
|
|
16248
|
+
},
|
|
16249
|
+
{
|
|
16250
|
+
"kind": "MethodSignature",
|
|
16251
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#resolve:member(1)",
|
|
16252
|
+
"docComment": "/**\n * Settle the interaction. See {@link InteractionContext.resolve}.\n */\n",
|
|
16253
|
+
"excerptTokens": [
|
|
16254
|
+
{
|
|
16255
|
+
"kind": "Content",
|
|
16256
|
+
"text": "resolve(result: "
|
|
16257
|
+
},
|
|
16258
|
+
{
|
|
16259
|
+
"kind": "Reference",
|
|
16260
|
+
"text": "InteractionResult",
|
|
16261
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionResult:type"
|
|
16262
|
+
},
|
|
16263
|
+
{
|
|
16264
|
+
"kind": "Content",
|
|
16265
|
+
"text": "<TResult>"
|
|
16266
|
+
},
|
|
16267
|
+
{
|
|
16268
|
+
"kind": "Content",
|
|
16269
|
+
"text": ", options?: "
|
|
16270
|
+
},
|
|
16271
|
+
{
|
|
16272
|
+
"kind": "Reference",
|
|
16273
|
+
"text": "InteractionResolveOptions",
|
|
16274
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface"
|
|
16275
|
+
},
|
|
16276
|
+
{
|
|
16277
|
+
"kind": "Content",
|
|
16278
|
+
"text": "): "
|
|
16279
|
+
},
|
|
16280
|
+
{
|
|
16281
|
+
"kind": "Content",
|
|
16282
|
+
"text": "void"
|
|
16283
|
+
},
|
|
16284
|
+
{
|
|
16285
|
+
"kind": "Content",
|
|
16286
|
+
"text": ";"
|
|
16287
|
+
}
|
|
16288
|
+
],
|
|
16289
|
+
"isOptional": false,
|
|
16290
|
+
"returnTypeTokenRange": {
|
|
16291
|
+
"startIndex": 6,
|
|
16292
|
+
"endIndex": 7
|
|
16293
|
+
},
|
|
16294
|
+
"releaseTag": "Beta",
|
|
16295
|
+
"overloadIndex": 1,
|
|
16296
|
+
"parameters": [
|
|
16297
|
+
{
|
|
16298
|
+
"parameterName": "result",
|
|
16299
|
+
"parameterTypeTokenRange": {
|
|
16300
|
+
"startIndex": 1,
|
|
16301
|
+
"endIndex": 3
|
|
16302
|
+
},
|
|
16303
|
+
"isOptional": false
|
|
16304
|
+
},
|
|
16305
|
+
{
|
|
16306
|
+
"parameterName": "options",
|
|
16307
|
+
"parameterTypeTokenRange": {
|
|
16308
|
+
"startIndex": 4,
|
|
16309
|
+
"endIndex": 5
|
|
16310
|
+
},
|
|
16311
|
+
"isOptional": true
|
|
16312
|
+
}
|
|
16313
|
+
],
|
|
16314
|
+
"name": "resolve"
|
|
16315
|
+
},
|
|
16316
|
+
{
|
|
16317
|
+
"kind": "MethodSignature",
|
|
16318
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#setWorking:member(1)",
|
|
16319
|
+
"docComment": "/**\n * See {@link InteractionContext.setWorking}. Absent on a stand-in host.\n */\n",
|
|
16320
|
+
"excerptTokens": [
|
|
16321
|
+
{
|
|
16322
|
+
"kind": "Content",
|
|
16323
|
+
"text": "setWorking?(working: "
|
|
16324
|
+
},
|
|
16325
|
+
{
|
|
16326
|
+
"kind": "Content",
|
|
16327
|
+
"text": "boolean"
|
|
16328
|
+
},
|
|
16329
|
+
{
|
|
16330
|
+
"kind": "Content",
|
|
16331
|
+
"text": "): "
|
|
16332
|
+
},
|
|
16333
|
+
{
|
|
16334
|
+
"kind": "Content",
|
|
16335
|
+
"text": "void"
|
|
16336
|
+
},
|
|
16337
|
+
{
|
|
16338
|
+
"kind": "Content",
|
|
16339
|
+
"text": ";"
|
|
16340
|
+
}
|
|
16341
|
+
],
|
|
16342
|
+
"isOptional": true,
|
|
16343
|
+
"returnTypeTokenRange": {
|
|
16344
|
+
"startIndex": 3,
|
|
16345
|
+
"endIndex": 4
|
|
16346
|
+
},
|
|
16347
|
+
"releaseTag": "Beta",
|
|
16348
|
+
"overloadIndex": 1,
|
|
16349
|
+
"parameters": [
|
|
16350
|
+
{
|
|
16351
|
+
"parameterName": "working",
|
|
16352
|
+
"parameterTypeTokenRange": {
|
|
16353
|
+
"startIndex": 1,
|
|
16354
|
+
"endIndex": 2
|
|
16355
|
+
},
|
|
16356
|
+
"isOptional": false
|
|
16357
|
+
}
|
|
16358
|
+
],
|
|
16359
|
+
"name": "setWorking"
|
|
16360
|
+
},
|
|
16361
|
+
{
|
|
16362
|
+
"kind": "PropertySignature",
|
|
16363
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#state:member",
|
|
16364
|
+
"docComment": "/**\n * Survives a remount; where a controller keeps anything the person has started.\n */\n",
|
|
16365
|
+
"excerptTokens": [
|
|
16366
|
+
{
|
|
16367
|
+
"kind": "Content",
|
|
16368
|
+
"text": "readonly state: "
|
|
16369
|
+
},
|
|
16370
|
+
{
|
|
16371
|
+
"kind": "Content",
|
|
16372
|
+
"text": "TState"
|
|
16373
|
+
},
|
|
16374
|
+
{
|
|
16375
|
+
"kind": "Content",
|
|
16376
|
+
"text": ";"
|
|
16377
|
+
}
|
|
16378
|
+
],
|
|
16379
|
+
"isReadonly": true,
|
|
16380
|
+
"isOptional": false,
|
|
16381
|
+
"releaseTag": "Beta",
|
|
16382
|
+
"name": "state",
|
|
16383
|
+
"propertyTypeTokenRange": {
|
|
16384
|
+
"startIndex": 1,
|
|
16385
|
+
"endIndex": 2
|
|
16386
|
+
}
|
|
16387
|
+
}
|
|
16388
|
+
],
|
|
16389
|
+
"extendsTokenRanges": []
|
|
16390
|
+
},
|
|
15117
16391
|
{
|
|
15118
16392
|
"kind": "Interface",
|
|
15119
16393
|
"canonicalReference": "@genesislcap/ai-assistant!CostSessionModelEntry:interface",
|
|
@@ -15401,6 +16675,105 @@
|
|
|
15401
16675
|
],
|
|
15402
16676
|
"extendsTokenRanges": []
|
|
15403
16677
|
},
|
|
16678
|
+
{
|
|
16679
|
+
"kind": "Function",
|
|
16680
|
+
"canonicalReference": "@genesislcap/ai-assistant!createTestInteractionContext:function(1)",
|
|
16681
|
+
"docComment": "/**\n * Build a real interaction context for a controller test (GENC-1660), so the test exercises the platform's own context — its `state`, `once`, `notify`, surfaces and their checks — rather than a hand-built fake that can drift from it. Nothing renders, nothing is persisted, and no driver is involved: resolving records the result, and the interaction is disposed as it would be.\n *\n * @example\n * ```ts\n * const t = createTestInteractionContext<ReviewController, ReviewResult>({\n * data: { round: 1 },\n * controller: (data, ctx) => new ReviewController(data as ReviewData, ctx),\n * });\n * t.setHeldBy('autopilot');\n * await t.act('regenerate', { text: 'amounts in EUR' });\n * assert.equal(t.result?.payload, { action: 'regenerate', instructions: 'amounts in EUR' });\n * ```\n *\n * @beta\n */\n",
|
|
16682
|
+
"excerptTokens": [
|
|
16683
|
+
{
|
|
16684
|
+
"kind": "Content",
|
|
16685
|
+
"text": "export declare function createTestInteractionContext<TController = "
|
|
16686
|
+
},
|
|
16687
|
+
{
|
|
16688
|
+
"kind": "Content",
|
|
16689
|
+
"text": "unknown"
|
|
16690
|
+
},
|
|
16691
|
+
{
|
|
16692
|
+
"kind": "Content",
|
|
16693
|
+
"text": ", TResult = "
|
|
16694
|
+
},
|
|
16695
|
+
{
|
|
16696
|
+
"kind": "Content",
|
|
16697
|
+
"text": "unknown"
|
|
16698
|
+
},
|
|
16699
|
+
{
|
|
16700
|
+
"kind": "Content",
|
|
16701
|
+
"text": ">(options?: "
|
|
16702
|
+
},
|
|
16703
|
+
{
|
|
16704
|
+
"kind": "Content",
|
|
16705
|
+
"text": "{\n readonly interactionId?: string;\n readonly data?: unknown;\n readonly controller?: "
|
|
16706
|
+
},
|
|
16707
|
+
{
|
|
16708
|
+
"kind": "Reference",
|
|
16709
|
+
"text": "InteractionControllerFactory",
|
|
16710
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type"
|
|
16711
|
+
},
|
|
16712
|
+
{
|
|
16713
|
+
"kind": "Content",
|
|
16714
|
+
"text": "<TController>;\n readonly checkpoint?: unknown;\n}"
|
|
16715
|
+
},
|
|
16716
|
+
{
|
|
16717
|
+
"kind": "Content",
|
|
16718
|
+
"text": "): "
|
|
16719
|
+
},
|
|
16720
|
+
{
|
|
16721
|
+
"kind": "Reference",
|
|
16722
|
+
"text": "TestInteractionContext",
|
|
16723
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext:interface"
|
|
16724
|
+
},
|
|
16725
|
+
{
|
|
16726
|
+
"kind": "Content",
|
|
16727
|
+
"text": "<TController, TResult>"
|
|
16728
|
+
},
|
|
16729
|
+
{
|
|
16730
|
+
"kind": "Content",
|
|
16731
|
+
"text": ";"
|
|
16732
|
+
}
|
|
16733
|
+
],
|
|
16734
|
+
"fileUrlPath": "src/state/test-interaction-context.ts",
|
|
16735
|
+
"returnTypeTokenRange": {
|
|
16736
|
+
"startIndex": 9,
|
|
16737
|
+
"endIndex": 11
|
|
16738
|
+
},
|
|
16739
|
+
"releaseTag": "Beta",
|
|
16740
|
+
"overloadIndex": 1,
|
|
16741
|
+
"parameters": [
|
|
16742
|
+
{
|
|
16743
|
+
"parameterName": "options",
|
|
16744
|
+
"parameterTypeTokenRange": {
|
|
16745
|
+
"startIndex": 5,
|
|
16746
|
+
"endIndex": 8
|
|
16747
|
+
},
|
|
16748
|
+
"isOptional": true
|
|
16749
|
+
}
|
|
16750
|
+
],
|
|
16751
|
+
"typeParameters": [
|
|
16752
|
+
{
|
|
16753
|
+
"typeParameterName": "TController",
|
|
16754
|
+
"constraintTokenRange": {
|
|
16755
|
+
"startIndex": 0,
|
|
16756
|
+
"endIndex": 0
|
|
16757
|
+
},
|
|
16758
|
+
"defaultTypeTokenRange": {
|
|
16759
|
+
"startIndex": 1,
|
|
16760
|
+
"endIndex": 2
|
|
16761
|
+
}
|
|
16762
|
+
},
|
|
16763
|
+
{
|
|
16764
|
+
"typeParameterName": "TResult",
|
|
16765
|
+
"constraintTokenRange": {
|
|
16766
|
+
"startIndex": 0,
|
|
16767
|
+
"endIndex": 0
|
|
16768
|
+
},
|
|
16769
|
+
"defaultTypeTokenRange": {
|
|
16770
|
+
"startIndex": 3,
|
|
16771
|
+
"endIndex": 4
|
|
16772
|
+
}
|
|
16773
|
+
}
|
|
16774
|
+
],
|
|
16775
|
+
"name": "createTestInteractionContext"
|
|
16776
|
+
},
|
|
15404
16777
|
{
|
|
15405
16778
|
"kind": "Function",
|
|
15406
16779
|
"canonicalReference": "@genesislcap/ai-assistant!createToolFold:function(1)",
|
|
@@ -15634,7 +17007,7 @@
|
|
|
15634
17007
|
},
|
|
15635
17008
|
{
|
|
15636
17009
|
"kind": "Content",
|
|
15637
|
-
"text": "string | {\n readonly id?: string;\n readonly label: string;\n readonly
|
|
17010
|
+
"text": "string | {\n readonly id?: string;\n readonly label: string;\n readonly unavailable?: () => string | undefined;\n}"
|
|
15638
17011
|
},
|
|
15639
17012
|
{
|
|
15640
17013
|
"kind": "Content",
|
|
@@ -15767,7 +17140,7 @@
|
|
|
15767
17140
|
{
|
|
15768
17141
|
"kind": "PropertySignature",
|
|
15769
17142
|
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#freeText:member",
|
|
15770
|
-
"docComment": "/**\n * Adds a `reply({ text })` action: an answer in the chooser's own words.\n */\n",
|
|
17143
|
+
"docComment": "/**\n * Adds a `reply({ text })` action: an answer in the chooser's own words. It refines, so it counts against the autopilot's per-step refinement limit and is withdrawn past it.\n */\n",
|
|
15771
17144
|
"excerptTokens": [
|
|
15772
17145
|
{
|
|
15773
17146
|
"kind": "Content",
|
|
@@ -15791,6 +17164,33 @@
|
|
|
15791
17164
|
"endIndex": 2
|
|
15792
17165
|
}
|
|
15793
17166
|
},
|
|
17167
|
+
{
|
|
17168
|
+
"kind": "PropertySignature",
|
|
17169
|
+
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#freeTextUnavailable:member",
|
|
17170
|
+
"docComment": "/**\n * Why the `reply` action cannot be used right now, or `undefined` when it can: the same guard pattern as an option's {@link DecisionOption} `unavailable`, read fresh. For a widget whose written answer only makes sense in some states (a review gate that failed, say, where only handing back is left). Ignored without `freeText`.\n */\n",
|
|
17171
|
+
"excerptTokens": [
|
|
17172
|
+
{
|
|
17173
|
+
"kind": "Content",
|
|
17174
|
+
"text": "readonly freeTextUnavailable?: "
|
|
17175
|
+
},
|
|
17176
|
+
{
|
|
17177
|
+
"kind": "Content",
|
|
17178
|
+
"text": "() => string | undefined"
|
|
17179
|
+
},
|
|
17180
|
+
{
|
|
17181
|
+
"kind": "Content",
|
|
17182
|
+
"text": ";"
|
|
17183
|
+
}
|
|
17184
|
+
],
|
|
17185
|
+
"isReadonly": true,
|
|
17186
|
+
"isOptional": true,
|
|
17187
|
+
"releaseTag": "Beta",
|
|
17188
|
+
"name": "freeTextUnavailable",
|
|
17189
|
+
"propertyTypeTokenRange": {
|
|
17190
|
+
"startIndex": 1,
|
|
17191
|
+
"endIndex": 2
|
|
17192
|
+
}
|
|
17193
|
+
},
|
|
15794
17194
|
{
|
|
15795
17195
|
"kind": "PropertySignature",
|
|
15796
17196
|
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#multi:member",
|
|
@@ -15880,10 +17280,87 @@
|
|
|
15880
17280
|
"startIndex": 1,
|
|
15881
17281
|
"endIndex": 2
|
|
15882
17282
|
}
|
|
17283
|
+
},
|
|
17284
|
+
{
|
|
17285
|
+
"kind": "PropertySignature",
|
|
17286
|
+
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#views:member",
|
|
17287
|
+
"docComment": "/**\n * Named views a claimant may read on demand: content too long to send with every decision but sometimes needed to make it. Each is listed in the decision with its description, and read with `widget_read({ view })`; a view not listed here is refused. `widget_read()` with no view still reads the decision's `facts`.\n *\n * The same shape as the full form's {@link SurfaceSpec.views}, so a widget can offer something to read and keep the short form's generated options.\n *\n * @example\n * ```ts\n * ctx.exposeDecision({\n * options: ['Yes, add one', 'No, skip this step'],\n * choose,\n * views: {\n * moreInfo: {\n * description: 'The \"More info\" explainer the person can open on the card.',\n * read: () => data.moreInfo,\n * },\n * },\n * });\n * ```\n *\n */\n",
|
|
17288
|
+
"excerptTokens": [
|
|
17289
|
+
{
|
|
17290
|
+
"kind": "Content",
|
|
17291
|
+
"text": "readonly views?: "
|
|
17292
|
+
},
|
|
17293
|
+
{
|
|
17294
|
+
"kind": "Reference",
|
|
17295
|
+
"text": "Readonly",
|
|
17296
|
+
"canonicalReference": "!Readonly:type"
|
|
17297
|
+
},
|
|
17298
|
+
{
|
|
17299
|
+
"kind": "Content",
|
|
17300
|
+
"text": "<"
|
|
17301
|
+
},
|
|
17302
|
+
{
|
|
17303
|
+
"kind": "Reference",
|
|
17304
|
+
"text": "Record",
|
|
17305
|
+
"canonicalReference": "!Record:type"
|
|
17306
|
+
},
|
|
17307
|
+
{
|
|
17308
|
+
"kind": "Content",
|
|
17309
|
+
"text": "<string, "
|
|
17310
|
+
},
|
|
17311
|
+
{
|
|
17312
|
+
"kind": "Reference",
|
|
17313
|
+
"text": "SurfaceView",
|
|
17314
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface"
|
|
17315
|
+
},
|
|
17316
|
+
{
|
|
17317
|
+
"kind": "Content",
|
|
17318
|
+
"text": ">>"
|
|
17319
|
+
},
|
|
17320
|
+
{
|
|
17321
|
+
"kind": "Content",
|
|
17322
|
+
"text": ";"
|
|
17323
|
+
}
|
|
17324
|
+
],
|
|
17325
|
+
"isReadonly": true,
|
|
17326
|
+
"isOptional": true,
|
|
17327
|
+
"releaseTag": "Beta",
|
|
17328
|
+
"name": "views",
|
|
17329
|
+
"propertyTypeTokenRange": {
|
|
17330
|
+
"startIndex": 1,
|
|
17331
|
+
"endIndex": 7
|
|
17332
|
+
}
|
|
15883
17333
|
}
|
|
15884
17334
|
],
|
|
15885
17335
|
"extendsTokenRanges": []
|
|
15886
17336
|
},
|
|
17337
|
+
{
|
|
17338
|
+
"kind": "Variable",
|
|
17339
|
+
"canonicalReference": "@genesislcap/ai-assistant!DEFAULT_AGENT_NOTIFICATION_MESSAGE:var",
|
|
17340
|
+
"docComment": "/**\n * The notification's text when neither the app nor the widget gives one.\n *\n * @beta\n */\n",
|
|
17341
|
+
"excerptTokens": [
|
|
17342
|
+
{
|
|
17343
|
+
"kind": "Content",
|
|
17344
|
+
"text": "DEFAULT_AGENT_NOTIFICATION_MESSAGE = "
|
|
17345
|
+
},
|
|
17346
|
+
{
|
|
17347
|
+
"kind": "Content",
|
|
17348
|
+
"text": "\"The assistant is ready for your next input\""
|
|
17349
|
+
}
|
|
17350
|
+
],
|
|
17351
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
17352
|
+
"initializerTokenRange": {
|
|
17353
|
+
"startIndex": 1,
|
|
17354
|
+
"endIndex": 2
|
|
17355
|
+
},
|
|
17356
|
+
"isReadonly": true,
|
|
17357
|
+
"releaseTag": "Beta",
|
|
17358
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
17359
|
+
"variableTypeTokenRange": {
|
|
17360
|
+
"startIndex": 0,
|
|
17361
|
+
"endIndex": 0
|
|
17362
|
+
}
|
|
17363
|
+
},
|
|
15887
17364
|
{
|
|
15888
17365
|
"kind": "Variable",
|
|
15889
17366
|
"canonicalReference": "@genesislcap/ai-assistant!DEFAULT_DELEGATE_FRAMING:var",
|
|
@@ -15981,7 +17458,7 @@
|
|
|
15981
17458
|
{
|
|
15982
17459
|
"kind": "Function",
|
|
15983
17460
|
"canonicalReference": "@genesislcap/ai-assistant!defineAutopilot:function(1)",
|
|
15984
|
-
"docComment": "/**\n * Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function that exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s `autopilot` option.\n *\n * @example\n * ```ts\n * defineStatefulAgent<BootstrapState>({\n * name: 'bootstrap',\n * …,\n * autopilot: defineAutopilot<BootstrapState>({\n * availableWhen: ({ state }) => briefApproved(state.machine),\n * widgetPolicy: { 'planning-question': 'allowed' },\n * systemPrompt: ({ state }) => `${AUTOPILOT_BASE}\\n<brief>${frozenBrief(state)}</brief>`,\n * }),\n * });\n * ```\n *\n * @beta\n */\n",
|
|
17461
|
+
"docComment": "/**\n * Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function that exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s `autopilot` option.\n *\n * @example\n * ```ts\n * defineStatefulAgent<BootstrapState>({\n * name: 'bootstrap',\n * …,\n * autopilot: defineAutopilot<BootstrapState>({\n * availableWhen: ({ state }) => briefApproved(state.machine),\n * widgetPolicy: { 'planning-question': 'allowed', 'sample-data-review': 'allowed' },\n * widgetTools: [SAMPLE_DATA_TOOLS],\n * systemPrompt: ({ state }) => `${AUTOPILOT_BASE}\\n<brief>${frozenBrief(state)}</brief>`,\n * }),\n * });\n * ```\n *\n * Throws if two of its tools share a name — its widget tools, its own `tools` and the platform's fixed three — since one would silently shadow the other.\n *\n * @beta\n */\n",
|
|
15985
17462
|
"excerptTokens": [
|
|
15986
17463
|
{
|
|
15987
17464
|
"kind": "Content",
|
|
@@ -20504,6 +21981,46 @@
|
|
|
20504
21981
|
"isAbstract": false,
|
|
20505
21982
|
"name": "noteDebugLogInput"
|
|
20506
21983
|
},
|
|
21984
|
+
{
|
|
21985
|
+
"kind": "Property",
|
|
21986
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#notificationLevel:member",
|
|
21987
|
+
"docComment": "/**\n * The person's agent notification level (GENC-1676): `'off'` (always the default), `'autopilot'` or `'needs-input'`. Saved with the other settings.\n *\n * An app may set it, e.g. after its own \"Notify me\" invitation, once the person granted permission through `requestAgentNotificationPermission`. Ignored when the app does not offer the level (`chatConfig.ui.notifications`), and before the assistant has a session.\n */\n",
|
|
21988
|
+
"excerptTokens": [
|
|
21989
|
+
{
|
|
21990
|
+
"kind": "Content",
|
|
21991
|
+
"text": "get notificationLevel(): "
|
|
21992
|
+
},
|
|
21993
|
+
{
|
|
21994
|
+
"kind": "Reference",
|
|
21995
|
+
"text": "AgentNotificationLevel",
|
|
21996
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentNotificationLevel:type"
|
|
21997
|
+
},
|
|
21998
|
+
{
|
|
21999
|
+
"kind": "Content",
|
|
22000
|
+
"text": ";\n\nset notificationLevel(value: "
|
|
22001
|
+
},
|
|
22002
|
+
{
|
|
22003
|
+
"kind": "Reference",
|
|
22004
|
+
"text": "AgentNotificationLevel",
|
|
22005
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentNotificationLevel:type"
|
|
22006
|
+
},
|
|
22007
|
+
{
|
|
22008
|
+
"kind": "Content",
|
|
22009
|
+
"text": ");"
|
|
22010
|
+
}
|
|
22011
|
+
],
|
|
22012
|
+
"isReadonly": false,
|
|
22013
|
+
"isOptional": false,
|
|
22014
|
+
"releaseTag": "Beta",
|
|
22015
|
+
"name": "notificationLevel",
|
|
22016
|
+
"propertyTypeTokenRange": {
|
|
22017
|
+
"startIndex": 1,
|
|
22018
|
+
"endIndex": 2
|
|
22019
|
+
},
|
|
22020
|
+
"isStatic": false,
|
|
22021
|
+
"isProtected": false,
|
|
22022
|
+
"isAbstract": false
|
|
22023
|
+
},
|
|
20507
22024
|
{
|
|
20508
22025
|
"kind": "Method",
|
|
20509
22026
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#onChatHeaderMouseDown:member(1)",
|
|
@@ -25420,6 +26937,86 @@
|
|
|
25420
26937
|
"parameters": [],
|
|
25421
26938
|
"name": "getAiPopoutManager"
|
|
25422
26939
|
},
|
|
26940
|
+
{
|
|
26941
|
+
"kind": "Function",
|
|
26942
|
+
"canonicalReference": "@genesislcap/ai-assistant!getInteractionContext:function(1)",
|
|
26943
|
+
"docComment": "/**\n * The live context of a pending interaction, by its id (GENC-1660), for UI that the chat does not render and so is never handed one: a layout side panel that shows a widget's detail, say. It can subscribe, read `heldBy` and reach the controller directly, rather than through a channel of its own. `undefined` once the interaction has resolved (its context is disposed then) and for an id that never opened.\n *\n * `TController` types `controller`, as it was registered (`registerInteraction<TController>()`). Unchecked: the caller says what it expects.\n *\n * @example\n * ```ts\n * const ctx = getInteractionContext<ReviewController>(interactionId);\n * const unsubscribe = ctx?.subscribe(() => this.render(ctx.controller?.view(), ctx.heldBy));\n * ```\n *\n * @beta\n */\n",
|
|
26944
|
+
"excerptTokens": [
|
|
26945
|
+
{
|
|
26946
|
+
"kind": "Content",
|
|
26947
|
+
"text": "export declare function getInteractionContext<TController = "
|
|
26948
|
+
},
|
|
26949
|
+
{
|
|
26950
|
+
"kind": "Content",
|
|
26951
|
+
"text": "unknown"
|
|
26952
|
+
},
|
|
26953
|
+
{
|
|
26954
|
+
"kind": "Content",
|
|
26955
|
+
"text": ">(interactionId: "
|
|
26956
|
+
},
|
|
26957
|
+
{
|
|
26958
|
+
"kind": "Content",
|
|
26959
|
+
"text": "string"
|
|
26960
|
+
},
|
|
26961
|
+
{
|
|
26962
|
+
"kind": "Content",
|
|
26963
|
+
"text": "): "
|
|
26964
|
+
},
|
|
26965
|
+
{
|
|
26966
|
+
"kind": "Reference",
|
|
26967
|
+
"text": "InteractionContext",
|
|
26968
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
26969
|
+
},
|
|
26970
|
+
{
|
|
26971
|
+
"kind": "Content",
|
|
26972
|
+
"text": "<"
|
|
26973
|
+
},
|
|
26974
|
+
{
|
|
26975
|
+
"kind": "Reference",
|
|
26976
|
+
"text": "Record",
|
|
26977
|
+
"canonicalReference": "!Record:type"
|
|
26978
|
+
},
|
|
26979
|
+
{
|
|
26980
|
+
"kind": "Content",
|
|
26981
|
+
"text": "<string, unknown>, unknown, TController> | undefined"
|
|
26982
|
+
},
|
|
26983
|
+
{
|
|
26984
|
+
"kind": "Content",
|
|
26985
|
+
"text": ";"
|
|
26986
|
+
}
|
|
26987
|
+
],
|
|
26988
|
+
"fileUrlPath": "src/state/live-interactions.ts",
|
|
26989
|
+
"returnTypeTokenRange": {
|
|
26990
|
+
"startIndex": 5,
|
|
26991
|
+
"endIndex": 9
|
|
26992
|
+
},
|
|
26993
|
+
"releaseTag": "Beta",
|
|
26994
|
+
"overloadIndex": 1,
|
|
26995
|
+
"parameters": [
|
|
26996
|
+
{
|
|
26997
|
+
"parameterName": "interactionId",
|
|
26998
|
+
"parameterTypeTokenRange": {
|
|
26999
|
+
"startIndex": 3,
|
|
27000
|
+
"endIndex": 4
|
|
27001
|
+
},
|
|
27002
|
+
"isOptional": false
|
|
27003
|
+
}
|
|
27004
|
+
],
|
|
27005
|
+
"typeParameters": [
|
|
27006
|
+
{
|
|
27007
|
+
"typeParameterName": "TController",
|
|
27008
|
+
"constraintTokenRange": {
|
|
27009
|
+
"startIndex": 0,
|
|
27010
|
+
"endIndex": 0
|
|
27011
|
+
},
|
|
27012
|
+
"defaultTypeTokenRange": {
|
|
27013
|
+
"startIndex": 1,
|
|
27014
|
+
"endIndex": 2
|
|
27015
|
+
}
|
|
27016
|
+
}
|
|
27017
|
+
],
|
|
27018
|
+
"name": "getInteractionContext"
|
|
27019
|
+
},
|
|
25423
27020
|
{
|
|
25424
27021
|
"kind": "Function",
|
|
25425
27022
|
"canonicalReference": "@genesislcap/ai-assistant!getInteractionRegistration:function(1)",
|
|
@@ -25984,6 +27581,14 @@
|
|
|
25984
27581
|
"kind": "Content",
|
|
25985
27582
|
"text": "unknown"
|
|
25986
27583
|
},
|
|
27584
|
+
{
|
|
27585
|
+
"kind": "Content",
|
|
27586
|
+
"text": ", TController = "
|
|
27587
|
+
},
|
|
27588
|
+
{
|
|
27589
|
+
"kind": "Content",
|
|
27590
|
+
"text": "unknown"
|
|
27591
|
+
},
|
|
25987
27592
|
{
|
|
25988
27593
|
"kind": "Content",
|
|
25989
27594
|
"text": "> "
|
|
@@ -26013,6 +27618,17 @@
|
|
|
26013
27618
|
"startIndex": 6,
|
|
26014
27619
|
"endIndex": 7
|
|
26015
27620
|
}
|
|
27621
|
+
},
|
|
27622
|
+
{
|
|
27623
|
+
"typeParameterName": "TController",
|
|
27624
|
+
"constraintTokenRange": {
|
|
27625
|
+
"startIndex": 0,
|
|
27626
|
+
"endIndex": 0
|
|
27627
|
+
},
|
|
27628
|
+
"defaultTypeTokenRange": {
|
|
27629
|
+
"startIndex": 8,
|
|
27630
|
+
"endIndex": 9
|
|
27631
|
+
}
|
|
26016
27632
|
}
|
|
26017
27633
|
],
|
|
26018
27634
|
"name": "InteractionContext",
|
|
@@ -26021,7 +27637,7 @@
|
|
|
26021
27637
|
{
|
|
26022
27638
|
"kind": "PropertySignature",
|
|
26023
27639
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#checkpoint:member",
|
|
26024
|
-
"docComment": "/**\n * What is already done, for long work that should survive a reload: the last checkpoint saved, or the one the platform handed over
|
|
27640
|
+
"docComment": "/**\n * What is already done, for long work that should survive a reload: the last checkpoint saved, or the one the platform handed over. After a restore, a checkpoint the reload cut waits for a request of the same widget type that the registration's `sameWork` agrees is the same work — offered to each such request in turn, however many other interactions come first, and kept through every refusal — and is handed to the first that agrees. `undefined` for fresh work. See `runSteps`, which reads and writes it for you.\n */\n",
|
|
26025
27641
|
"excerptTokens": [
|
|
26026
27642
|
{
|
|
26027
27643
|
"kind": "Content",
|
|
@@ -26093,7 +27709,7 @@
|
|
|
26093
27709
|
{
|
|
26094
27710
|
"kind": "PropertySignature",
|
|
26095
27711
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#controller:member",
|
|
26096
|
-
"docComment": "/**\n * The widget's controller, built by the platform from its registration when the interaction was requested, before anything rendered. `undefined` for an unregistered widget. One per interaction for its whole life, so a remounted view picks up the same one.\n */\n",
|
|
27712
|
+
"docComment": "/**\n * The widget's controller, built by the platform from its registration when the interaction was requested, before anything rendered. `undefined` for an unregistered widget, and inside the registration's own factory, which is building it. One per interaction for its whole life, so a remounted view picks up the same one. Typed by `TController`: a registration made with `registerInteraction<TController>()` builds one, and a view reads it typed through `AiChatInteraction`'s third type argument.\n */\n",
|
|
26097
27713
|
"excerptTokens": [
|
|
26098
27714
|
{
|
|
26099
27715
|
"kind": "Content",
|
|
@@ -26101,7 +27717,7 @@
|
|
|
26101
27717
|
},
|
|
26102
27718
|
{
|
|
26103
27719
|
"kind": "Content",
|
|
26104
|
-
"text": "
|
|
27720
|
+
"text": "TController | undefined"
|
|
26105
27721
|
},
|
|
26106
27722
|
{
|
|
26107
27723
|
"kind": "Content",
|
|
@@ -26322,7 +27938,7 @@
|
|
|
26322
27938
|
{
|
|
26323
27939
|
"kind": "MethodSignature",
|
|
26324
27940
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#once:member(1)",
|
|
26325
|
-
"docComment": "/**\n * Run `factory` at most once for this interaction's lifetime and memoise the result; every later call with the same `key` (including after a remount) returns the stored value without re-running. Covers one-shot side effects and create-once live resources alike:\n * ```ts\n * ctx.once('open-panel', () => this.dispatchEvent(openPanelEvent)); // fires once, ever\n * const ws = ctx.once('ws', () => new TestDataWebSocketService()); // same instance each remount\n * ```\n *\n * Returns `null` once the interaction has ended (resolve/timeout/evict): the factory is NOT run, because a resource created on a disposed context would never be torn down (its `onDispose` has already fired). A widget that opens a live resource here must guard on the resolved state and stop touching `once` when the interaction completes — a stray late call (e.g. an async callback landing after a `timeoutMs` timeout) gets `null` rather than a leaked resource.\n */\n",
|
|
27941
|
+
"docComment": "/**\n * Run `factory` at most once for this interaction's lifetime and memoise the result; every later call with the same `key` (including after a remount) returns the stored value without re-running. Covers one-shot side effects and create-once live resources alike:\n * ```ts\n * ctx.once('open-panel', () => this.dispatchEvent(openPanelEvent)); // fires once, ever\n * const ws = ctx.once('ws', () => new TestDataWebSocketService()); // same instance each remount\n * ```\n *\n * Returns `null` once the interaction has ended (resolve/timeout/evict): the factory is NOT run, because a resource created on a disposed context would never be torn down (its `onDispose` has already fired). A widget that opens a live resource here must guard on the resolved state and stop touching `once` when the interaction completes — a stray late call (e.g. an async callback landing after a `timeoutMs` timeout) gets `null` rather than a leaked resource.\n *\n * Once means once for the interaction's whole life, so it cannot fire twice: anything a claimant's hand-back must do again (reopening a side panel it shut while it held the interaction, say) needs a flag on `state` instead, cleared when it is undone.\n */\n",
|
|
26326
27942
|
"excerptTokens": [
|
|
26327
27943
|
{
|
|
26328
27944
|
"kind": "Content",
|
|
@@ -26441,7 +28057,7 @@
|
|
|
26441
28057
|
{
|
|
26442
28058
|
"kind": "MethodSignature",
|
|
26443
28059
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#onSurfaceReady:member(1)",
|
|
26444
|
-
"docComment": "/**\n * Run `fn` once the surface is ready (see `InteractionSurface.isReady
|
|
28060
|
+
"docComment": "/**\n * Run `fn` once the surface is ready (see `InteractionSurface.isReady`, which honours {@link InteractionContext.setWorking}) — or now if it already is. Readiness is re-checked on every `notify()` (which `setWorking` and both `expose` calls make), so a gate whose guard turns true later fires it then. Never runs after the interaction ends. Returns an unsubscribe.\n */\n",
|
|
26445
28061
|
"excerptTokens": [
|
|
26446
28062
|
{
|
|
26447
28063
|
"kind": "Content",
|
|
@@ -26483,10 +28099,55 @@
|
|
|
26483
28099
|
],
|
|
26484
28100
|
"name": "onSurfaceReady"
|
|
26485
28101
|
},
|
|
28102
|
+
{
|
|
28103
|
+
"kind": "MethodSignature",
|
|
28104
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#requestAttention:member(1)",
|
|
28105
|
+
"docComment": "/**\n * Say this interaction needs the person to act (GENC-1676). If their notification level covers it and they are not looking at the page, they get a browser notification. Call it at the moment the widget starts waiting on the person — not before, if it has work to do first. A widget that only shows information never calls it.\n *\n * Safe to call from anywhere, the controller's constructor included: the platform reports it only once it has decided who holds the interaction, and drops it if a claimant (the autopilot) holds it then or when it is called — the claimant's own hand-back notifies instead. Only the first call counts, whatever happened to it; later ones do nothing, as do calls after the interaction ends.\n *\n * @param message - The notification's text for this case. Defaults to the app's `chatConfig.ui.notifications.message`, then to \"The assistant is ready for your next input\".\n */\n",
|
|
28106
|
+
"excerptTokens": [
|
|
28107
|
+
{
|
|
28108
|
+
"kind": "Content",
|
|
28109
|
+
"text": "requestAttention(message?: "
|
|
28110
|
+
},
|
|
28111
|
+
{
|
|
28112
|
+
"kind": "Content",
|
|
28113
|
+
"text": "string"
|
|
28114
|
+
},
|
|
28115
|
+
{
|
|
28116
|
+
"kind": "Content",
|
|
28117
|
+
"text": "): "
|
|
28118
|
+
},
|
|
28119
|
+
{
|
|
28120
|
+
"kind": "Content",
|
|
28121
|
+
"text": "void"
|
|
28122
|
+
},
|
|
28123
|
+
{
|
|
28124
|
+
"kind": "Content",
|
|
28125
|
+
"text": ";"
|
|
28126
|
+
}
|
|
28127
|
+
],
|
|
28128
|
+
"isOptional": false,
|
|
28129
|
+
"returnTypeTokenRange": {
|
|
28130
|
+
"startIndex": 3,
|
|
28131
|
+
"endIndex": 4
|
|
28132
|
+
},
|
|
28133
|
+
"releaseTag": "Beta",
|
|
28134
|
+
"overloadIndex": 1,
|
|
28135
|
+
"parameters": [
|
|
28136
|
+
{
|
|
28137
|
+
"parameterName": "message",
|
|
28138
|
+
"parameterTypeTokenRange": {
|
|
28139
|
+
"startIndex": 1,
|
|
28140
|
+
"endIndex": 2
|
|
28141
|
+
},
|
|
28142
|
+
"isOptional": true
|
|
28143
|
+
}
|
|
28144
|
+
],
|
|
28145
|
+
"name": "requestAttention"
|
|
28146
|
+
},
|
|
26486
28147
|
{
|
|
26487
28148
|
"kind": "MethodSignature",
|
|
26488
28149
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#resolve:member(1)",
|
|
26489
|
-
"docComment": "/**\n * Settle the interaction with `result` — the controller's way to resolve, in place of an element emitting `interaction-completed`, so resolving needs no mounted view. Goes through the same path, so cost and diagnostics fold in as before. Settles once: later calls do nothing.\n */\n",
|
|
28150
|
+
"docComment": "/**\n * Settle the interaction with `result` — the controller's way to resolve, in place of an element emitting `interaction-completed`, so resolving needs no mounted view. Goes through the same path, so cost and diagnostics fold in as before. Settles once: later calls do nothing.\n *\n * Pass `{ resolvedItself: true }` when this outcome settled by itself and asked nobody, for a widget that sometimes works on its own and sometimes asks (see {@link InteractionResolveOptions.resolvedItself}).\n */\n",
|
|
26490
28151
|
"excerptTokens": [
|
|
26491
28152
|
{
|
|
26492
28153
|
"kind": "Content",
|
|
@@ -26496,6 +28157,15 @@
|
|
|
26496
28157
|
"kind": "Content",
|
|
26497
28158
|
"text": "unknown"
|
|
26498
28159
|
},
|
|
28160
|
+
{
|
|
28161
|
+
"kind": "Content",
|
|
28162
|
+
"text": ", options?: "
|
|
28163
|
+
},
|
|
28164
|
+
{
|
|
28165
|
+
"kind": "Reference",
|
|
28166
|
+
"text": "InteractionResolveOptions",
|
|
28167
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface"
|
|
28168
|
+
},
|
|
26499
28169
|
{
|
|
26500
28170
|
"kind": "Content",
|
|
26501
28171
|
"text": "): "
|
|
@@ -26511,8 +28181,8 @@
|
|
|
26511
28181
|
],
|
|
26512
28182
|
"isOptional": false,
|
|
26513
28183
|
"returnTypeTokenRange": {
|
|
26514
|
-
"startIndex":
|
|
26515
|
-
"endIndex":
|
|
28184
|
+
"startIndex": 5,
|
|
28185
|
+
"endIndex": 6
|
|
26516
28186
|
},
|
|
26517
28187
|
"releaseTag": "Beta",
|
|
26518
28188
|
"overloadIndex": 1,
|
|
@@ -26524,6 +28194,14 @@
|
|
|
26524
28194
|
"endIndex": 2
|
|
26525
28195
|
},
|
|
26526
28196
|
"isOptional": false
|
|
28197
|
+
},
|
|
28198
|
+
{
|
|
28199
|
+
"parameterName": "options",
|
|
28200
|
+
"parameterTypeTokenRange": {
|
|
28201
|
+
"startIndex": 3,
|
|
28202
|
+
"endIndex": 4
|
|
28203
|
+
},
|
|
28204
|
+
"isOptional": true
|
|
26527
28205
|
}
|
|
26528
28206
|
],
|
|
26529
28207
|
"name": "resolve"
|
|
@@ -26531,7 +28209,7 @@
|
|
|
26531
28209
|
{
|
|
26532
28210
|
"kind": "MethodSignature",
|
|
26533
28211
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#saveCheckpoint:member(1)",
|
|
26534
|
-
"docComment": "/**\n * Save a checkpoint into the session snapshot, so a reload does not lose it. Kept as JSON, so it must be storable as JSON; keep it small and hold anything large by reference (a job id, a store key). One per interaction: each save replaces the last. Cleared when the interaction settles, and when its flow ends.\n */\n",
|
|
28212
|
+
"docComment": "/**\n * Save a checkpoint into the session snapshot, so a reload does not lose it. Kept as JSON, so it must be storable as JSON; keep it small and hold anything large by reference (a job id, a store key). One per interaction: each save replaces the last. Never replaces a checkpoint a reload cut that is still waiting for its own widget. Cleared when the interaction settles, and when its flow ends.\n */\n",
|
|
26535
28213
|
"excerptTokens": [
|
|
26536
28214
|
{
|
|
26537
28215
|
"kind": "Content",
|
|
@@ -26573,6 +28251,78 @@
|
|
|
26573
28251
|
],
|
|
26574
28252
|
"name": "saveCheckpoint"
|
|
26575
28253
|
},
|
|
28254
|
+
{
|
|
28255
|
+
"kind": "PropertySignature",
|
|
28256
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#sessionKey:member",
|
|
28257
|
+
"docComment": "/**\n * The session the interaction belongs to (GENC-1676) — plain data, the same in Node. A view passes it to anything that works per session, such as `<foundation-ai-notification-level session-key=\"...\">`. Empty for a context made outside a session (an inert fallback, a test).\n */\n",
|
|
28258
|
+
"excerptTokens": [
|
|
28259
|
+
{
|
|
28260
|
+
"kind": "Content",
|
|
28261
|
+
"text": "readonly sessionKey: "
|
|
28262
|
+
},
|
|
28263
|
+
{
|
|
28264
|
+
"kind": "Content",
|
|
28265
|
+
"text": "string"
|
|
28266
|
+
},
|
|
28267
|
+
{
|
|
28268
|
+
"kind": "Content",
|
|
28269
|
+
"text": ";"
|
|
28270
|
+
}
|
|
28271
|
+
],
|
|
28272
|
+
"isReadonly": true,
|
|
28273
|
+
"isOptional": false,
|
|
28274
|
+
"releaseTag": "Beta",
|
|
28275
|
+
"name": "sessionKey",
|
|
28276
|
+
"propertyTypeTokenRange": {
|
|
28277
|
+
"startIndex": 1,
|
|
28278
|
+
"endIndex": 2
|
|
28279
|
+
}
|
|
28280
|
+
},
|
|
28281
|
+
{
|
|
28282
|
+
"kind": "MethodSignature",
|
|
28283
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#setWorking:member(1)",
|
|
28284
|
+
"docComment": "/**\n * Say whether the controller is working on its own or asking (GENC-1660), for a widget that does both — e.g. it generates, then opens a review gate. Optional: a controller that never calls it behaves exactly as before. Notifies when it changes.\n *\n * - **Status.** While it is working the person is not being asked anything, so an autopilot's status reads running rather than waiting for the user, even while the person holds it. Said either way, it overrides the registration's `resolvesItself` for this interaction. - **Readiness** (see {@link InteractionSurface.isReady}). While it is working, nothing it exposed is a decision yet, so a claimant is never sent one mid-work, even with actions enabled. Once it says it is asking, what it exposed is the decision to make now, even with every action unavailable — a failed gate the claimant may not cancel, say: the claimant is then sent it with the actions marked unavailable, and can only hand it back. Never said, a decision is due once something is enabled, as before.\n *\n * @example\n * ```ts\n * ctx.setWorking(true);\n * const code = await generate();\n * ctx.exposeDecision({ options: [...], choose });\n * ctx.setWorking(false); // the gate is open: decide it, even if nothing can be chosen\n * ```\n *\n */\n",
|
|
28285
|
+
"excerptTokens": [
|
|
28286
|
+
{
|
|
28287
|
+
"kind": "Content",
|
|
28288
|
+
"text": "setWorking(working: "
|
|
28289
|
+
},
|
|
28290
|
+
{
|
|
28291
|
+
"kind": "Content",
|
|
28292
|
+
"text": "boolean"
|
|
28293
|
+
},
|
|
28294
|
+
{
|
|
28295
|
+
"kind": "Content",
|
|
28296
|
+
"text": "): "
|
|
28297
|
+
},
|
|
28298
|
+
{
|
|
28299
|
+
"kind": "Content",
|
|
28300
|
+
"text": "void"
|
|
28301
|
+
},
|
|
28302
|
+
{
|
|
28303
|
+
"kind": "Content",
|
|
28304
|
+
"text": ";"
|
|
28305
|
+
}
|
|
28306
|
+
],
|
|
28307
|
+
"isOptional": false,
|
|
28308
|
+
"returnTypeTokenRange": {
|
|
28309
|
+
"startIndex": 3,
|
|
28310
|
+
"endIndex": 4
|
|
28311
|
+
},
|
|
28312
|
+
"releaseTag": "Beta",
|
|
28313
|
+
"overloadIndex": 1,
|
|
28314
|
+
"parameters": [
|
|
28315
|
+
{
|
|
28316
|
+
"parameterName": "working",
|
|
28317
|
+
"parameterTypeTokenRange": {
|
|
28318
|
+
"startIndex": 1,
|
|
28319
|
+
"endIndex": 2
|
|
28320
|
+
},
|
|
28321
|
+
"isOptional": false
|
|
28322
|
+
}
|
|
28323
|
+
],
|
|
28324
|
+
"name": "setWorking"
|
|
28325
|
+
},
|
|
26576
28326
|
{
|
|
26577
28327
|
"kind": "PropertySignature",
|
|
26578
28328
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#state:member",
|
|
@@ -26676,6 +28426,33 @@
|
|
|
26676
28426
|
"startIndex": 1,
|
|
26677
28427
|
"endIndex": 3
|
|
26678
28428
|
}
|
|
28429
|
+
},
|
|
28430
|
+
{
|
|
28431
|
+
"kind": "PropertySignature",
|
|
28432
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#working:member",
|
|
28433
|
+
"docComment": "/**\n * What the controller last said it is doing (GENC-1660), through {@link InteractionContext.setWorking}: `true` working on its own (generating, running tests), `false` asking (what it has exposed is the decision to make now), `undefined` until it says either.\n */\n",
|
|
28434
|
+
"excerptTokens": [
|
|
28435
|
+
{
|
|
28436
|
+
"kind": "Content",
|
|
28437
|
+
"text": "readonly working: "
|
|
28438
|
+
},
|
|
28439
|
+
{
|
|
28440
|
+
"kind": "Content",
|
|
28441
|
+
"text": "boolean | undefined"
|
|
28442
|
+
},
|
|
28443
|
+
{
|
|
28444
|
+
"kind": "Content",
|
|
28445
|
+
"text": ";"
|
|
28446
|
+
}
|
|
28447
|
+
],
|
|
28448
|
+
"isReadonly": true,
|
|
28449
|
+
"isOptional": false,
|
|
28450
|
+
"releaseTag": "Beta",
|
|
28451
|
+
"name": "working",
|
|
28452
|
+
"propertyTypeTokenRange": {
|
|
28453
|
+
"startIndex": 1,
|
|
28454
|
+
"endIndex": 2
|
|
28455
|
+
}
|
|
26679
28456
|
}
|
|
26680
28457
|
],
|
|
26681
28458
|
"extendsTokenRanges": []
|
|
@@ -26683,11 +28460,19 @@
|
|
|
26683
28460
|
{
|
|
26684
28461
|
"kind": "TypeAlias",
|
|
26685
28462
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type",
|
|
26686
|
-
"docComment": "/**\n * Builds a widget's controller when its interaction is requested (GENC-1660). DOM-free: it owns the interaction's state, its surface and resolving it; the view only renders.\n *\n * @beta\n */\n",
|
|
28463
|
+
"docComment": "/**\n * Builds a widget's controller when its interaction is requested (GENC-1660). DOM-free: it owns the interaction's state, its surface and resolving it; the view only renders. `ctx` is a `ControllerHost` as it stands, so a controller that takes one is passed it directly.\n *\n * @beta\n */\n",
|
|
26687
28464
|
"excerptTokens": [
|
|
26688
28465
|
{
|
|
26689
28466
|
"kind": "Content",
|
|
26690
|
-
"text": "export type InteractionControllerFactory = "
|
|
28467
|
+
"text": "export type InteractionControllerFactory<TController = "
|
|
28468
|
+
},
|
|
28469
|
+
{
|
|
28470
|
+
"kind": "Content",
|
|
28471
|
+
"text": "unknown"
|
|
28472
|
+
},
|
|
28473
|
+
{
|
|
28474
|
+
"kind": "Content",
|
|
28475
|
+
"text": "> = "
|
|
26691
28476
|
},
|
|
26692
28477
|
{
|
|
26693
28478
|
"kind": "Content",
|
|
@@ -26700,7 +28485,16 @@
|
|
|
26700
28485
|
},
|
|
26701
28486
|
{
|
|
26702
28487
|
"kind": "Content",
|
|
26703
|
-
"text": "
|
|
28488
|
+
"text": "<"
|
|
28489
|
+
},
|
|
28490
|
+
{
|
|
28491
|
+
"kind": "Reference",
|
|
28492
|
+
"text": "Record",
|
|
28493
|
+
"canonicalReference": "!Record:type"
|
|
28494
|
+
},
|
|
28495
|
+
{
|
|
28496
|
+
"kind": "Content",
|
|
28497
|
+
"text": "<string, unknown>, unknown, TController>) => TController"
|
|
26704
28498
|
},
|
|
26705
28499
|
{
|
|
26706
28500
|
"kind": "Content",
|
|
@@ -26710,9 +28504,22 @@
|
|
|
26710
28504
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
26711
28505
|
"releaseTag": "Beta",
|
|
26712
28506
|
"name": "InteractionControllerFactory",
|
|
28507
|
+
"typeParameters": [
|
|
28508
|
+
{
|
|
28509
|
+
"typeParameterName": "TController",
|
|
28510
|
+
"constraintTokenRange": {
|
|
28511
|
+
"startIndex": 0,
|
|
28512
|
+
"endIndex": 0
|
|
28513
|
+
},
|
|
28514
|
+
"defaultTypeTokenRange": {
|
|
28515
|
+
"startIndex": 1,
|
|
28516
|
+
"endIndex": 2
|
|
28517
|
+
}
|
|
28518
|
+
}
|
|
28519
|
+
],
|
|
26713
28520
|
"typeTokenRange": {
|
|
26714
|
-
"startIndex":
|
|
26715
|
-
"endIndex":
|
|
28521
|
+
"startIndex": 3,
|
|
28522
|
+
"endIndex": 8
|
|
26716
28523
|
}
|
|
26717
28524
|
},
|
|
26718
28525
|
{
|
|
@@ -26749,7 +28556,7 @@
|
|
|
26749
28556
|
{
|
|
26750
28557
|
"kind": "Interface",
|
|
26751
28558
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold:interface",
|
|
26752
|
-
"docComment": "/**\n * The handle an interceptor uses to move a pending interaction between the person and itself (GENC-1660): to the person when it hands back or is paused, back to itself when resumed.\n *\n * Every interceptor is offered one, but only the claimant's works: on any other interceptor's handle, and after the interaction ends, its members do nothing and return `false`. A claim is granted only once `onInteractionOpened` has returned `'claim'` (it may yet be refused), so the claimant's own handle does nothing until then either: act on it afterwards. Views read the result as `ctx.heldBy`; they never change it.\n *\n * @beta\n */\n",
|
|
28559
|
+
"docComment": "/**\n * The handle an interceptor uses to move a pending interaction between the person and itself (GENC-1660): to the person when it hands back or is paused, back to itself when resumed.\n *\n * Every interceptor is offered one, but only the claimant's works: on any other interceptor's handle, and after the interaction ends, its members do nothing and return `false`. A claim is granted only once `onInteractionOpened` has returned `'claim'` (it may yet be refused), so the claimant's own handle does nothing until then either: act on it afterwards. An interceptor that declined can still become the claimant later with `claim`, while nobody else is. Views read the result as `ctx.heldBy`; they never change it.\n *\n * @beta\n */\n",
|
|
26753
28560
|
"excerptTokens": [
|
|
26754
28561
|
{
|
|
26755
28562
|
"kind": "Content",
|
|
@@ -26761,10 +28568,38 @@
|
|
|
26761
28568
|
"name": "InteractionHold",
|
|
26762
28569
|
"preserveMemberOrder": false,
|
|
26763
28570
|
"members": [
|
|
28571
|
+
{
|
|
28572
|
+
"kind": "MethodSignature",
|
|
28573
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#claim:member(1)",
|
|
28574
|
+
"docComment": "/**\n * Claim the interaction after declining it when it opened, as if it had claimed it then: it moves to this interceptor, and the other members work for it from here on. For an interceptor whose reason to decline has gone while the interaction is still open, such as an autopilot that was paused when it opened and has since been resumed.\n *\n * Refused, returning `false` with nothing changed, while the interceptors are still being asked (a claim at open is made by returning `'claim'`), once any interceptor has claimed it — this one included, even if it has since given it to the person, which `set('claimant')` undoes — when it is `userOnly`, and after it has ended. Notifies the context's subscribers and records `interaction.held`, marked `late`.\n */\n",
|
|
28575
|
+
"excerptTokens": [
|
|
28576
|
+
{
|
|
28577
|
+
"kind": "Content",
|
|
28578
|
+
"text": "claim(): "
|
|
28579
|
+
},
|
|
28580
|
+
{
|
|
28581
|
+
"kind": "Content",
|
|
28582
|
+
"text": "boolean"
|
|
28583
|
+
},
|
|
28584
|
+
{
|
|
28585
|
+
"kind": "Content",
|
|
28586
|
+
"text": ";"
|
|
28587
|
+
}
|
|
28588
|
+
],
|
|
28589
|
+
"isOptional": false,
|
|
28590
|
+
"returnTypeTokenRange": {
|
|
28591
|
+
"startIndex": 1,
|
|
28592
|
+
"endIndex": 2
|
|
28593
|
+
},
|
|
28594
|
+
"releaseTag": "Beta",
|
|
28595
|
+
"overloadIndex": 1,
|
|
28596
|
+
"parameters": [],
|
|
28597
|
+
"name": "claim"
|
|
28598
|
+
},
|
|
26764
28599
|
{
|
|
26765
28600
|
"kind": "MethodSignature",
|
|
26766
28601
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#invoke:member(1)",
|
|
26767
|
-
"docComment": "/**\n * Run one of the surface's actions as the claimant (GENC-1660): an option by its id, `select` with `{ options }`, or `reply` with `{ text }`. It runs the same code the widget's own button runs, and records the decision for the asking tool — the choice as the person would read it, and `note`, verbatim, as what they were shown about it — so `recordDecision` is not needed.\n *\n * A finishing action settles the interaction AS the claimant, as {@link InteractionHold.resolve} does, so it is stamped `answeredBy` the claimant.\n *\n * Refused, with nothing run, unless this interceptor holds the interaction right now, the surface has that action, it is enabled and `args` fit it. One action runs at a time: a call made while an earlier one on the same interaction is still running is refused as `'busy'`, to be tried again once that one has returned. A refusal lists what is enabled, so the caller can correct itself. `finished` says whether the interaction settled.\n *\n * Handing the interaction to the person (`set('user')`) while a finishing action is still running does not take that action's credit away: if it settles the interaction, the answer is the claimant's. If it does not, the interaction is the person's like any other.\n */\n",
|
|
28602
|
+
"docComment": "/**\n * Run one of the surface's actions as the claimant (GENC-1660): an option by its id, `select` with `{ options }`, or `reply` with `{ text }`. It runs the same code the widget's own button runs, and records the decision for the asking tool — the choice as the person would read it, and `note`, verbatim, as what they were shown about it — so `recordDecision` is not needed.\n *\n * A finishing action settles the interaction AS the claimant, as {@link InteractionHold.resolve} does, so it is stamped `answeredBy` the claimant. Its `note` is what the person is shown about the choice; the widget's `userMessage` echo is never shown for a claimant's answer, note or not.\n *\n * Refused, with nothing run, unless this interceptor holds the interaction right now, the surface has that action, it is enabled and `args` fit it. One action runs at a time: a call made while an earlier one on the same interaction is still running is refused as `'busy'`, to be tried again once that one has returned. A refusal lists what is enabled, so the caller can correct itself. `finished` says whether the interaction settled.\n *\n * Handing the interaction to the person (`set('user')`) while a finishing action is still running does not take that action's credit away: if it settles the interaction, the answer is the claimant's. If it does not, the interaction is the person's like any other.\n */\n",
|
|
26768
28603
|
"excerptTokens": [
|
|
26769
28604
|
{
|
|
26770
28605
|
"kind": "Content",
|
|
@@ -26900,7 +28735,7 @@
|
|
|
26900
28735
|
{
|
|
26901
28736
|
"kind": "MethodSignature",
|
|
26902
28737
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#resolve:member(1)",
|
|
26903
|
-
"docComment": "/**\n * Settle the interaction AS the claimant (GENC-1660). The only route that stamps the claimant as `answeredBy`: an answer through the host's `resolveInteraction` — a click — is the person's, whoever held the interaction at the time, so attribution never depends on a view honouring `heldBy`. Returns `false`, settling nothing, unless this interceptor holds it right now.\n */\n",
|
|
28738
|
+
"docComment": "/**\n * Settle the interaction AS the claimant (GENC-1660). The only route that stamps the claimant as `answeredBy`: an answer through the host's `resolveInteraction` — a click — is the person's, whoever held the interaction at the time, so attribution never depends on a view honouring `heldBy`. The result's `userMessage` is ignored: the person did not say it. Returns `false`, settling nothing, unless this interceptor holds it right now.\n */\n",
|
|
26904
28739
|
"excerptTokens": [
|
|
26905
28740
|
{
|
|
26906
28741
|
"kind": "Content",
|
|
@@ -27019,7 +28854,7 @@
|
|
|
27019
28854
|
{
|
|
27020
28855
|
"kind": "Interface",
|
|
27021
28856
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionInterceptor:interface",
|
|
27022
|
-
"docComment": "/**\n * Something that is told about every interaction a driver opens, and may answer it instead of the person (GENC-1660). Installed with `AiDriver.addInteractionInterceptor`, typically by a driver decorator such as an autopilot or a test harness.\n *\n * Interceptors are asked outermost first. The first to claim an interaction holds it; the rest observe — they see the same context but their `hold` does nothing. Nobody can claim a `userOnly` interaction. A throwing interceptor is logged and treated as abstaining.\n *\n * @beta\n */\n",
|
|
28857
|
+
"docComment": "/**\n * Something that is told about every interaction a driver opens, and may answer it instead of the person (GENC-1660). Installed with `AiDriver.addInteractionInterceptor`, typically by a driver decorator such as an autopilot or a test harness.\n *\n * Interceptors are asked outermost first. The first to claim an interaction holds it; the rest observe — they see the same context but their `hold` does nothing. When none claims it, any of them may claim it later with `hold.claim`, the first to do so winning. Nobody can claim a `userOnly` interaction. A throwing interceptor is logged and treated as abstaining.\n *\n * @beta\n */\n",
|
|
27023
28858
|
"excerptTokens": [
|
|
27024
28859
|
{
|
|
27025
28860
|
"kind": "Content",
|
|
@@ -27261,7 +29096,7 @@
|
|
|
27261
29096
|
{
|
|
27262
29097
|
"kind": "PropertySignature",
|
|
27263
29098
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionOpened#hold:member",
|
|
27264
|
-
"docComment": "/**\n * See {@link InteractionHold}. Works only for the interceptor whose claim was granted
|
|
29099
|
+
"docComment": "/**\n * See {@link InteractionHold}. Works only for the interceptor whose claim was granted, at open or later through `claim`.\n */\n",
|
|
27265
29100
|
"excerptTokens": [
|
|
27266
29101
|
{
|
|
27267
29102
|
"kind": "Content",
|
|
@@ -27373,15 +29208,36 @@
|
|
|
27373
29208
|
{
|
|
27374
29209
|
"kind": "Interface",
|
|
27375
29210
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration:interface",
|
|
27376
|
-
"docComment": "/**\n * How a widget is registered with the platform, once, at start-up (GENC-1660).\n *\n * @beta\n */\n",
|
|
29211
|
+
"docComment": "/**\n * How a widget is registered with the platform, once, at start-up (GENC-1660). `TController` is the type its factory builds, which `ctx.controller` then carries.\n *\n * @beta\n */\n",
|
|
27377
29212
|
"excerptTokens": [
|
|
27378
29213
|
{
|
|
27379
29214
|
"kind": "Content",
|
|
27380
|
-
"text": "export interface InteractionRegistration "
|
|
29215
|
+
"text": "export interface InteractionRegistration<TController = "
|
|
29216
|
+
},
|
|
29217
|
+
{
|
|
29218
|
+
"kind": "Content",
|
|
29219
|
+
"text": "unknown"
|
|
29220
|
+
},
|
|
29221
|
+
{
|
|
29222
|
+
"kind": "Content",
|
|
29223
|
+
"text": "> "
|
|
27381
29224
|
}
|
|
27382
29225
|
],
|
|
27383
29226
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
27384
29227
|
"releaseTag": "Beta",
|
|
29228
|
+
"typeParameters": [
|
|
29229
|
+
{
|
|
29230
|
+
"typeParameterName": "TController",
|
|
29231
|
+
"constraintTokenRange": {
|
|
29232
|
+
"startIndex": 0,
|
|
29233
|
+
"endIndex": 0
|
|
29234
|
+
},
|
|
29235
|
+
"defaultTypeTokenRange": {
|
|
29236
|
+
"startIndex": 1,
|
|
29237
|
+
"endIndex": 2
|
|
29238
|
+
}
|
|
29239
|
+
}
|
|
29240
|
+
],
|
|
27385
29241
|
"name": "InteractionRegistration",
|
|
27386
29242
|
"preserveMemberOrder": false,
|
|
27387
29243
|
"members": [
|
|
@@ -27426,6 +29282,10 @@
|
|
|
27426
29282
|
"text": "InteractionControllerFactory",
|
|
27427
29283
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type"
|
|
27428
29284
|
},
|
|
29285
|
+
{
|
|
29286
|
+
"kind": "Content",
|
|
29287
|
+
"text": "<TController>"
|
|
29288
|
+
},
|
|
27429
29289
|
{
|
|
27430
29290
|
"kind": "Content",
|
|
27431
29291
|
"text": ";"
|
|
@@ -27435,6 +29295,33 @@
|
|
|
27435
29295
|
"isOptional": true,
|
|
27436
29296
|
"releaseTag": "Beta",
|
|
27437
29297
|
"name": "controller",
|
|
29298
|
+
"propertyTypeTokenRange": {
|
|
29299
|
+
"startIndex": 1,
|
|
29300
|
+
"endIndex": 3
|
|
29301
|
+
}
|
|
29302
|
+
},
|
|
29303
|
+
{
|
|
29304
|
+
"kind": "PropertySignature",
|
|
29305
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration#resolvesItself:member",
|
|
29306
|
+
"docComment": "/**\n * Whether the widget does its work and settles on its own, asking the person nothing: a generation run that resolves when it is done, which the person may interrupt (a Skip button) but is not being asked to answer. Defaults to `false`, a widget that asks.\n *\n * While one is open the turn is working, not parked on the person, so an autopilot's status stays `running` rather than `waitingForUser`. When it settles by any route but a claimant's hold, nobody answered it: the interaction message carries no `answeredBy`, the `interaction-settled` event and the `interaction.resolved` debug event carry `resolvedItself: true` instead, and the transcript a claimant reads labels it `finished` rather than answered by the user. The platform cannot tell the widget finishing from the person interrupting it — both settle it the same way — so a widget whose agent needs to know which says so in its own result.\n *\n * Claiming is unchanged: a claimant can take one only through a controller and its policy, as for any widget.\n *\n * For a widget that sometimes works on its own and sometimes asks — a generation phase that ends at a review gate — leave this unset and say it per interaction instead: `ctx.setWorking(true)` while it works (the status), and `ctx.resolve(result, { resolvedItself: true })` for an outcome that settled itself (a generation that failed outright). A controller's `setWorking` overrides this flag for the status of its own interaction.\n *\n * @example\n * ```ts\n * registerInteraction('sample-data-generation', {\n * resolvesItself: true,\n * asText: sampleDataAsText,\n * });\n * ```\n *\n * @beta\n */\n",
|
|
29307
|
+
"excerptTokens": [
|
|
29308
|
+
{
|
|
29309
|
+
"kind": "Content",
|
|
29310
|
+
"text": "readonly resolvesItself?: "
|
|
29311
|
+
},
|
|
29312
|
+
{
|
|
29313
|
+
"kind": "Content",
|
|
29314
|
+
"text": "boolean"
|
|
29315
|
+
},
|
|
29316
|
+
{
|
|
29317
|
+
"kind": "Content",
|
|
29318
|
+
"text": ";"
|
|
29319
|
+
}
|
|
29320
|
+
],
|
|
29321
|
+
"isReadonly": true,
|
|
29322
|
+
"isOptional": true,
|
|
29323
|
+
"releaseTag": "Beta",
|
|
29324
|
+
"name": "resolvesItself",
|
|
27438
29325
|
"propertyTypeTokenRange": {
|
|
27439
29326
|
"startIndex": 1,
|
|
27440
29327
|
"endIndex": 2
|
|
@@ -27443,7 +29330,7 @@
|
|
|
27443
29330
|
{
|
|
27444
29331
|
"kind": "PropertySignature",
|
|
27445
29332
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration#sameWork:member",
|
|
27446
|
-
"docComment": "/**\n * Whether a checkpoint a reload cut (`saved`) is the same work as this new request (`next`, its data), so the new interaction may take it over and skip what is already done (GENC-1660 §4.12). Without it, the same widget type is enough. Compare identity only — the fields the work's output depends on, kept in the checkpoint itself — never the model's prose, which a resumed call rewrites.\n */\n",
|
|
29333
|
+
"docComment": "/**\n * Whether a checkpoint a reload cut (`saved`) is the same work as this new request (`next`, its data), so the new interaction may take it over and skip what is already done (GENC-1660 §4.12). Without it, the same widget type is enough. Compare identity only — the fields the work's output depends on, kept in the checkpoint itself — never the model's prose, which a resumed call rewrites.\n *\n * Asked of every request of this widget type until it agrees: a refusal keeps the checkpoint for a later request, so it must refuse whatever is not this work (another handler, superseded code) rather than rely on being asked only once.\n */\n",
|
|
27447
29334
|
"excerptTokens": [
|
|
27448
29335
|
{
|
|
27449
29336
|
"kind": "Content",
|
|
@@ -27524,6 +29411,51 @@
|
|
|
27524
29411
|
],
|
|
27525
29412
|
"extendsTokenRanges": []
|
|
27526
29413
|
},
|
|
29414
|
+
{
|
|
29415
|
+
"kind": "Interface",
|
|
29416
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface",
|
|
29417
|
+
"docComment": "/**\n * How a controller settles its interaction, beside the result (GENC-1660). See {@link InteractionContext.resolve}.\n *\n * @beta\n */\n",
|
|
29418
|
+
"excerptTokens": [
|
|
29419
|
+
{
|
|
29420
|
+
"kind": "Content",
|
|
29421
|
+
"text": "export interface InteractionResolveOptions "
|
|
29422
|
+
}
|
|
29423
|
+
],
|
|
29424
|
+
"fileUrlPath": "src/types/interaction-context.ts",
|
|
29425
|
+
"releaseTag": "Beta",
|
|
29426
|
+
"name": "InteractionResolveOptions",
|
|
29427
|
+
"preserveMemberOrder": false,
|
|
29428
|
+
"members": [
|
|
29429
|
+
{
|
|
29430
|
+
"kind": "PropertySignature",
|
|
29431
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions#resolvedItself:member",
|
|
29432
|
+
"docComment": "/**\n * This outcome settled by itself and nobody answered it — a generation that failed outright, say — though the widget is not registered `resolvesItself` because at other times it asks (a review gate). It is then treated exactly as a `resolvesItself` widget's settle: no `answeredBy` on the message, the asking tool's result or the `interaction-settled` event, and `resolvedItself: true` on the message, the event and the `interaction.resolved` debug event, so neither the working agent nor a claimant is told the person decided it.\n *\n * Ignored when a claimant settles it through its hold (a finishing action that ends up resolving here is the claimant's answer), and on a timeout or a stop, which nobody answered anyway.\n */\n",
|
|
29433
|
+
"excerptTokens": [
|
|
29434
|
+
{
|
|
29435
|
+
"kind": "Content",
|
|
29436
|
+
"text": "readonly resolvedItself?: "
|
|
29437
|
+
},
|
|
29438
|
+
{
|
|
29439
|
+
"kind": "Content",
|
|
29440
|
+
"text": "boolean"
|
|
29441
|
+
},
|
|
29442
|
+
{
|
|
29443
|
+
"kind": "Content",
|
|
29444
|
+
"text": ";"
|
|
29445
|
+
}
|
|
29446
|
+
],
|
|
29447
|
+
"isReadonly": true,
|
|
29448
|
+
"isOptional": true,
|
|
29449
|
+
"releaseTag": "Beta",
|
|
29450
|
+
"name": "resolvedItself",
|
|
29451
|
+
"propertyTypeTokenRange": {
|
|
29452
|
+
"startIndex": 1,
|
|
29453
|
+
"endIndex": 2
|
|
29454
|
+
}
|
|
29455
|
+
}
|
|
29456
|
+
],
|
|
29457
|
+
"extendsTokenRanges": []
|
|
29458
|
+
},
|
|
27527
29459
|
{
|
|
27528
29460
|
"kind": "Interface",
|
|
27529
29461
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface:interface",
|
|
@@ -27607,7 +29539,7 @@
|
|
|
27607
29539
|
{
|
|
27608
29540
|
"kind": "MethodSignature",
|
|
27609
29541
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#facts:member(1)",
|
|
27610
|
-
"docComment": "/**\n * Read fresh on every call.\n */\n",
|
|
29542
|
+
"docComment": "/**\n * Read fresh on every call. Always `{}` on a full-form surface.\n */\n",
|
|
27611
29543
|
"excerptTokens": [
|
|
27612
29544
|
{
|
|
27613
29545
|
"kind": "Content",
|
|
@@ -27649,7 +29581,7 @@
|
|
|
27649
29581
|
{
|
|
27650
29582
|
"kind": "MethodSignature",
|
|
27651
29583
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#isReady:member(1)",
|
|
27652
|
-
"docComment": "/**\n * Whether a claimant
|
|
29584
|
+
"docComment": "/**\n * Whether a decision is due now: what a claimant is sent a decision on (`onSurfaceReady`).\n *\n * First, what the controller said through `ctx.setWorking`: while it is working, never, whatever is enabled; once it is asking, always, even with every action unavailable — the claimant is then sent the decision with the actions marked unavailable, and can only hand it back. When it has said neither, the surface's own rule: a short-form decision is ready once one of its finishing options is enabled (a `reply` counts, having no guard); a full-form surface once any of its actions is, since editing comes before finishing (its Save may be disabled until something is edited).\n */\n",
|
|
27653
29585
|
"excerptTokens": [
|
|
27654
29586
|
{
|
|
27655
29587
|
"kind": "Content",
|
|
@@ -27674,6 +29606,33 @@
|
|
|
27674
29606
|
"parameters": [],
|
|
27675
29607
|
"name": "isReady"
|
|
27676
29608
|
},
|
|
29609
|
+
{
|
|
29610
|
+
"kind": "PropertySignature",
|
|
29611
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#preview:member",
|
|
29612
|
+
"docComment": "/**\n * A full-form surface's {@link SurfaceSpec.preview}: the view sent with the decision.\n */\n",
|
|
29613
|
+
"excerptTokens": [
|
|
29614
|
+
{
|
|
29615
|
+
"kind": "Content",
|
|
29616
|
+
"text": "readonly preview?: "
|
|
29617
|
+
},
|
|
29618
|
+
{
|
|
29619
|
+
"kind": "Content",
|
|
29620
|
+
"text": "string"
|
|
29621
|
+
},
|
|
29622
|
+
{
|
|
29623
|
+
"kind": "Content",
|
|
29624
|
+
"text": ";"
|
|
29625
|
+
}
|
|
29626
|
+
],
|
|
29627
|
+
"isReadonly": true,
|
|
29628
|
+
"isOptional": true,
|
|
29629
|
+
"releaseTag": "Beta",
|
|
29630
|
+
"name": "preview",
|
|
29631
|
+
"propertyTypeTokenRange": {
|
|
29632
|
+
"startIndex": 1,
|
|
29633
|
+
"endIndex": 2
|
|
29634
|
+
}
|
|
29635
|
+
},
|
|
27677
29636
|
{
|
|
27678
29637
|
"kind": "PropertySignature",
|
|
27679
29638
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#prompt:member",
|
|
@@ -27704,7 +29663,7 @@
|
|
|
27704
29663
|
{
|
|
27705
29664
|
"kind": "MethodSignature",
|
|
27706
29665
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#read:member(1)",
|
|
27707
|
-
"docComment": "/**\n * Read one view
|
|
29666
|
+
"docComment": "/**\n * Read one view by name, or the default with none: a short-form decision's facts, or a full-form surface's preview (`undefined` when it names none). A name it does not list reads as `undefined`. Absent when it has no views.\n */\n",
|
|
27708
29667
|
"excerptTokens": [
|
|
27709
29668
|
{
|
|
27710
29669
|
"kind": "Content",
|
|
@@ -27749,15 +29708,29 @@
|
|
|
27749
29708
|
{
|
|
27750
29709
|
"kind": "PropertySignature",
|
|
27751
29710
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#views:member",
|
|
27752
|
-
"docComment": "/**\n *
|
|
29711
|
+
"docComment": "/**\n * Its views, by name, each with the description the model is shown: a full-form surface's or a short-form decision's. Absent when it has none.\n */\n",
|
|
27753
29712
|
"excerptTokens": [
|
|
27754
29713
|
{
|
|
27755
29714
|
"kind": "Content",
|
|
27756
29715
|
"text": "readonly views?: "
|
|
27757
29716
|
},
|
|
29717
|
+
{
|
|
29718
|
+
"kind": "Reference",
|
|
29719
|
+
"text": "Readonly",
|
|
29720
|
+
"canonicalReference": "!Readonly:type"
|
|
29721
|
+
},
|
|
27758
29722
|
{
|
|
27759
29723
|
"kind": "Content",
|
|
27760
|
-
"text": "
|
|
29724
|
+
"text": "<"
|
|
29725
|
+
},
|
|
29726
|
+
{
|
|
29727
|
+
"kind": "Reference",
|
|
29728
|
+
"text": "Record",
|
|
29729
|
+
"canonicalReference": "!Record:type"
|
|
29730
|
+
},
|
|
29731
|
+
{
|
|
29732
|
+
"kind": "Content",
|
|
29733
|
+
"text": "<string, string>>"
|
|
27761
29734
|
},
|
|
27762
29735
|
{
|
|
27763
29736
|
"kind": "Content",
|
|
@@ -27770,7 +29743,7 @@
|
|
|
27770
29743
|
"name": "views",
|
|
27771
29744
|
"propertyTypeTokenRange": {
|
|
27772
29745
|
"startIndex": 1,
|
|
27773
|
-
"endIndex":
|
|
29746
|
+
"endIndex": 5
|
|
27774
29747
|
}
|
|
27775
29748
|
}
|
|
27776
29749
|
],
|
|
@@ -29290,7 +31263,7 @@
|
|
|
29290
31263
|
{
|
|
29291
31264
|
"kind": "PropertySignature",
|
|
29292
31265
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#checkpoint:member",
|
|
29293
|
-
"docComment": "/**\n * The checkpoint
|
|
31266
|
+
"docComment": "/**\n * The one checkpoint a snapshot held before `checkpoints` existed. Read on restore when `checkpoints` is absent; never written now.\n *\n * @deprecated\n *\n * Written as `checkpoints`.\n */\n",
|
|
29294
31267
|
"excerptTokens": [
|
|
29295
31268
|
{
|
|
29296
31269
|
"kind": "Content",
|
|
@@ -29314,6 +31287,38 @@
|
|
|
29314
31287
|
"endIndex": 2
|
|
29315
31288
|
}
|
|
29316
31289
|
},
|
|
31290
|
+
{
|
|
31291
|
+
"kind": "PropertySignature",
|
|
31292
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#checkpoints:member",
|
|
31293
|
+
"docComment": "/**\n * The checkpoints of long actions (GENC-1660 §4.12): what widgets' work had already done, so a reload skips it — the one in flight, and any an earlier reload cut that nothing has taken over yet. Kept here rather than on the interaction messages, which a restore trims. On restore each waits for a request of its own widget type that `sameWork` agrees is the same work. Optional and additive, like `condensePolicies`; omitted when there are none.\n */\n",
|
|
31294
|
+
"excerptTokens": [
|
|
31295
|
+
{
|
|
31296
|
+
"kind": "Content",
|
|
31297
|
+
"text": "checkpoints?: "
|
|
31298
|
+
},
|
|
31299
|
+
{
|
|
31300
|
+
"kind": "Reference",
|
|
31301
|
+
"text": "Array",
|
|
31302
|
+
"canonicalReference": "!Array:interface"
|
|
31303
|
+
},
|
|
31304
|
+
{
|
|
31305
|
+
"kind": "Content",
|
|
31306
|
+
"text": "<{\n componentName: string;\n value: unknown;\n }>"
|
|
31307
|
+
},
|
|
31308
|
+
{
|
|
31309
|
+
"kind": "Content",
|
|
31310
|
+
"text": ";"
|
|
31311
|
+
}
|
|
31312
|
+
],
|
|
31313
|
+
"isReadonly": false,
|
|
31314
|
+
"isOptional": true,
|
|
31315
|
+
"releaseTag": "Public",
|
|
31316
|
+
"name": "checkpoints",
|
|
31317
|
+
"propertyTypeTokenRange": {
|
|
31318
|
+
"startIndex": 1,
|
|
31319
|
+
"endIndex": 3
|
|
31320
|
+
}
|
|
31321
|
+
},
|
|
29317
31322
|
{
|
|
29318
31323
|
"kind": "PropertySignature",
|
|
29319
31324
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#condensePolicies:member",
|
|
@@ -29724,11 +31729,19 @@
|
|
|
29724
31729
|
{
|
|
29725
31730
|
"kind": "Function",
|
|
29726
31731
|
"canonicalReference": "@genesislcap/ai-assistant!registerInteraction:function(1)",
|
|
29727
|
-
"docComment": "/**\n * Register a widget with the platform (GENC-1660): its controller, the element that renders it, how it behaves while a claimant holds it, and its text form. Once per name, at start-up; a second registration under the same name replaces the first, with a warning.\n *\n * Registering is optional and additive: an unregistered widget works exactly as before.\n *\n * @beta\n */\n",
|
|
31732
|
+
"docComment": "/**\n * Register a widget with the platform (GENC-1660): its controller, the element that renders it, how it behaves while a claimant holds it, and its text form. Once per name, at start-up; a second registration under the same name replaces the first, with a warning.\n *\n * Registering is optional and additive: an unregistered widget works exactly as before.\n *\n * Generic over the controller its factory builds, which types `ctx.controller` for the factory and for anything that reads the context with the same type argument (a view, a widget tool):\n * ```ts\n * registerInteraction<ReviewController>('review', {\n * controller: (data, ctx) => new ReviewController(data as ReviewData, ctx),\n * asText: reviewAsText,\n * });\n * ```\n *\n * @beta\n */\n",
|
|
29728
31733
|
"excerptTokens": [
|
|
29729
31734
|
{
|
|
29730
31735
|
"kind": "Content",
|
|
29731
|
-
"text": "export declare function registerInteraction
|
|
31736
|
+
"text": "export declare function registerInteraction<TController = "
|
|
31737
|
+
},
|
|
31738
|
+
{
|
|
31739
|
+
"kind": "Content",
|
|
31740
|
+
"text": "unknown"
|
|
31741
|
+
},
|
|
31742
|
+
{
|
|
31743
|
+
"kind": "Content",
|
|
31744
|
+
"text": ">(name: "
|
|
29732
31745
|
},
|
|
29733
31746
|
{
|
|
29734
31747
|
"kind": "Content",
|
|
@@ -29743,6 +31756,10 @@
|
|
|
29743
31756
|
"text": "InteractionRegistration",
|
|
29744
31757
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration:interface"
|
|
29745
31758
|
},
|
|
31759
|
+
{
|
|
31760
|
+
"kind": "Content",
|
|
31761
|
+
"text": "<TController>"
|
|
31762
|
+
},
|
|
29746
31763
|
{
|
|
29747
31764
|
"kind": "Content",
|
|
29748
31765
|
"text": "): "
|
|
@@ -29758,8 +31775,8 @@
|
|
|
29758
31775
|
],
|
|
29759
31776
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
29760
31777
|
"returnTypeTokenRange": {
|
|
29761
|
-
"startIndex":
|
|
29762
|
-
"endIndex":
|
|
31778
|
+
"startIndex": 8,
|
|
31779
|
+
"endIndex": 9
|
|
29763
31780
|
},
|
|
29764
31781
|
"releaseTag": "Beta",
|
|
29765
31782
|
"overloadIndex": 1,
|
|
@@ -29767,20 +31784,33 @@
|
|
|
29767
31784
|
{
|
|
29768
31785
|
"parameterName": "name",
|
|
29769
31786
|
"parameterTypeTokenRange": {
|
|
29770
|
-
"startIndex":
|
|
29771
|
-
"endIndex":
|
|
31787
|
+
"startIndex": 3,
|
|
31788
|
+
"endIndex": 4
|
|
29772
31789
|
},
|
|
29773
31790
|
"isOptional": false
|
|
29774
31791
|
},
|
|
29775
31792
|
{
|
|
29776
31793
|
"parameterName": "registration",
|
|
29777
31794
|
"parameterTypeTokenRange": {
|
|
29778
|
-
"startIndex":
|
|
29779
|
-
"endIndex":
|
|
31795
|
+
"startIndex": 5,
|
|
31796
|
+
"endIndex": 7
|
|
29780
31797
|
},
|
|
29781
31798
|
"isOptional": false
|
|
29782
31799
|
}
|
|
29783
31800
|
],
|
|
31801
|
+
"typeParameters": [
|
|
31802
|
+
{
|
|
31803
|
+
"typeParameterName": "TController",
|
|
31804
|
+
"constraintTokenRange": {
|
|
31805
|
+
"startIndex": 0,
|
|
31806
|
+
"endIndex": 0
|
|
31807
|
+
},
|
|
31808
|
+
"defaultTypeTokenRange": {
|
|
31809
|
+
"startIndex": 1,
|
|
31810
|
+
"endIndex": 2
|
|
31811
|
+
}
|
|
31812
|
+
}
|
|
31813
|
+
],
|
|
29784
31814
|
"name": "registerInteraction"
|
|
29785
31815
|
},
|
|
29786
31816
|
{
|
|
@@ -29887,6 +31917,48 @@
|
|
|
29887
31917
|
"endIndex": 0
|
|
29888
31918
|
}
|
|
29889
31919
|
},
|
|
31920
|
+
{
|
|
31921
|
+
"kind": "Function",
|
|
31922
|
+
"canonicalReference": "@genesislcap/ai-assistant!requestAgentNotificationPermission:function(1)",
|
|
31923
|
+
"docComment": "/**\n * Ask the person for permission to show notifications, and resolve to the result. Call it from a click or key handler: browsers ignore or refuse a request that does not come from the person. Resolves straight away when permission is already decided or unsupported, since a browser only ever asks once.\n *\n * @beta\n */\n",
|
|
31924
|
+
"excerptTokens": [
|
|
31925
|
+
{
|
|
31926
|
+
"kind": "Content",
|
|
31927
|
+
"text": "export declare function requestAgentNotificationPermission(): "
|
|
31928
|
+
},
|
|
31929
|
+
{
|
|
31930
|
+
"kind": "Reference",
|
|
31931
|
+
"text": "Promise",
|
|
31932
|
+
"canonicalReference": "!Promise:interface"
|
|
31933
|
+
},
|
|
31934
|
+
{
|
|
31935
|
+
"kind": "Content",
|
|
31936
|
+
"text": "<"
|
|
31937
|
+
},
|
|
31938
|
+
{
|
|
31939
|
+
"kind": "Reference",
|
|
31940
|
+
"text": "AgentNotificationPermission",
|
|
31941
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgentNotificationPermission:type"
|
|
31942
|
+
},
|
|
31943
|
+
{
|
|
31944
|
+
"kind": "Content",
|
|
31945
|
+
"text": ">"
|
|
31946
|
+
},
|
|
31947
|
+
{
|
|
31948
|
+
"kind": "Content",
|
|
31949
|
+
"text": ";"
|
|
31950
|
+
}
|
|
31951
|
+
],
|
|
31952
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
31953
|
+
"returnTypeTokenRange": {
|
|
31954
|
+
"startIndex": 1,
|
|
31955
|
+
"endIndex": 5
|
|
31956
|
+
},
|
|
31957
|
+
"releaseTag": "Beta",
|
|
31958
|
+
"overloadIndex": 1,
|
|
31959
|
+
"parameters": [],
|
|
31960
|
+
"name": "requestAgentNotificationPermission"
|
|
31961
|
+
},
|
|
29890
31962
|
{
|
|
29891
31963
|
"kind": "Interface",
|
|
29892
31964
|
"canonicalReference": "@genesislcap/ai-assistant!ResolvedDebugLogNoteConfig:interface",
|
|
@@ -31297,6 +33369,33 @@
|
|
|
31297
33369
|
"endIndex": 2
|
|
31298
33370
|
}
|
|
31299
33371
|
},
|
|
33372
|
+
{
|
|
33373
|
+
"kind": "PropertySignature",
|
|
33374
|
+
"canonicalReference": "@genesislcap/ai-assistant!SessionPreferences#notificationLevel:member",
|
|
33375
|
+
"docComment": "/**\n * The agent notification level (`AgentNotificationLevel` values, as plain strings). Absent means `'off'`: unlike the other preferences, no config default can switch it on.\n */\n",
|
|
33376
|
+
"excerptTokens": [
|
|
33377
|
+
{
|
|
33378
|
+
"kind": "Content",
|
|
33379
|
+
"text": "notificationLevel?: "
|
|
33380
|
+
},
|
|
33381
|
+
{
|
|
33382
|
+
"kind": "Content",
|
|
33383
|
+
"text": "string"
|
|
33384
|
+
},
|
|
33385
|
+
{
|
|
33386
|
+
"kind": "Content",
|
|
33387
|
+
"text": ";"
|
|
33388
|
+
}
|
|
33389
|
+
],
|
|
33390
|
+
"isReadonly": false,
|
|
33391
|
+
"isOptional": true,
|
|
33392
|
+
"releaseTag": "Public",
|
|
33393
|
+
"name": "notificationLevel",
|
|
33394
|
+
"propertyTypeTokenRange": {
|
|
33395
|
+
"startIndex": 1,
|
|
33396
|
+
"endIndex": 2
|
|
33397
|
+
}
|
|
33398
|
+
},
|
|
31300
33399
|
{
|
|
31301
33400
|
"kind": "PropertySignature",
|
|
31302
33401
|
"canonicalReference": "@genesislcap/ai-assistant!SessionPreferences#showAgentSwitchIndicator:member",
|
|
@@ -33628,7 +35727,7 @@
|
|
|
33628
35727
|
{
|
|
33629
35728
|
"kind": "PropertySignature",
|
|
33630
35729
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#args:member",
|
|
33631
|
-
"docComment": "/**\n * What its `args` must look like, where it takes any: `options` (a multi-select's picks), `text` (a written answer) or `fields` (an object, described by `argsSchema`).\n */\n",
|
|
35730
|
+
"docComment": "/**\n * What its `args` must look like, where it takes any: `options` (a multi-select's picks), `text` (one free-text argument: a written answer, or a full-form action declared with {@link SurfaceActionSpec.text}) or `fields` (an object, described by `argsSchema`).\n */\n",
|
|
33632
35731
|
"excerptTokens": [
|
|
33633
35732
|
{
|
|
33634
35733
|
"kind": "Content",
|
|
@@ -33804,7 +35903,7 @@
|
|
|
33804
35903
|
{
|
|
33805
35904
|
"kind": "PropertySignature",
|
|
33806
35905
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#name:member",
|
|
33807
|
-
"docComment": "/**\n * The name to invoke it by: an option's id,
|
|
35906
|
+
"docComment": "/**\n * The name to invoke it by: an option's id, `select` / `reply`, or a full-form action's name.\n */\n",
|
|
33808
35907
|
"excerptTokens": [
|
|
33809
35908
|
{
|
|
33810
35909
|
"kind": "Content",
|
|
@@ -33827,6 +35926,60 @@
|
|
|
33827
35926
|
"startIndex": 1,
|
|
33828
35927
|
"endIndex": 2
|
|
33829
35928
|
}
|
|
35929
|
+
},
|
|
35930
|
+
{
|
|
35931
|
+
"kind": "PropertySignature",
|
|
35932
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#refines:member",
|
|
35933
|
+
"docComment": "/**\n * Whether it counts against the autopilot's per-step refinement limit (`maxRefinements`), and is withdrawn once the limit is reached: `reply`, and a full-form action declared with {@link SurfaceActionSpec.refines}.\n */\n",
|
|
35934
|
+
"excerptTokens": [
|
|
35935
|
+
{
|
|
35936
|
+
"kind": "Content",
|
|
35937
|
+
"text": "readonly refines?: "
|
|
35938
|
+
},
|
|
35939
|
+
{
|
|
35940
|
+
"kind": "Content",
|
|
35941
|
+
"text": "boolean"
|
|
35942
|
+
},
|
|
35943
|
+
{
|
|
35944
|
+
"kind": "Content",
|
|
35945
|
+
"text": ";"
|
|
35946
|
+
}
|
|
35947
|
+
],
|
|
35948
|
+
"isReadonly": true,
|
|
35949
|
+
"isOptional": true,
|
|
35950
|
+
"releaseTag": "Beta",
|
|
35951
|
+
"name": "refines",
|
|
35952
|
+
"propertyTypeTokenRange": {
|
|
35953
|
+
"startIndex": 1,
|
|
35954
|
+
"endIndex": 2
|
|
35955
|
+
}
|
|
35956
|
+
},
|
|
35957
|
+
{
|
|
35958
|
+
"kind": "PropertySignature",
|
|
35959
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#unavailable:member",
|
|
35960
|
+
"docComment": "/**\n * Why it cannot be run right now, when it is not enabled.\n */\n",
|
|
35961
|
+
"excerptTokens": [
|
|
35962
|
+
{
|
|
35963
|
+
"kind": "Content",
|
|
35964
|
+
"text": "readonly unavailable?: "
|
|
35965
|
+
},
|
|
35966
|
+
{
|
|
35967
|
+
"kind": "Content",
|
|
35968
|
+
"text": "string"
|
|
35969
|
+
},
|
|
35970
|
+
{
|
|
35971
|
+
"kind": "Content",
|
|
35972
|
+
"text": ";"
|
|
35973
|
+
}
|
|
35974
|
+
],
|
|
35975
|
+
"isReadonly": true,
|
|
35976
|
+
"isOptional": true,
|
|
35977
|
+
"releaseTag": "Beta",
|
|
35978
|
+
"name": "unavailable",
|
|
35979
|
+
"propertyTypeTokenRange": {
|
|
35980
|
+
"startIndex": 1,
|
|
35981
|
+
"endIndex": 2
|
|
35982
|
+
}
|
|
33830
35983
|
}
|
|
33831
35984
|
],
|
|
33832
35985
|
"extendsTokenRanges": []
|
|
@@ -33834,7 +35987,7 @@
|
|
|
33834
35987
|
{
|
|
33835
35988
|
"kind": "Interface",
|
|
33836
35989
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec:interface",
|
|
33837
|
-
"docComment": "/**\n * One action of a full-form surface (GENC-1660 §4.2): a named thing a claimant can do, which may or may not settle the interaction.\n *\n * @beta\n */\n",
|
|
35990
|
+
"docComment": "/**\n * One action of a full-form surface (GENC-1660 §4.2): a named thing a claimant can do, which may or may not settle the interaction.\n *\n * It takes nothing, one free-text argument (`text`), or a form (`argsSchema`), never both of the last two.\n *\n * @beta\n */\n",
|
|
33838
35991
|
"excerptTokens": [
|
|
33839
35992
|
{
|
|
33840
35993
|
"kind": "Content",
|
|
@@ -33849,7 +36002,7 @@
|
|
|
33849
36002
|
{
|
|
33850
36003
|
"kind": "PropertySignature",
|
|
33851
36004
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#argsSchema:member",
|
|
33852
|
-
"docComment": "/**\n * The JSON schema of its arguments, an object. Its `properties` and `required` are checked before it runs; a mismatch is refused with the reason, so the model can correct itself.\n */\n",
|
|
36005
|
+
"docComment": "/**\n * The JSON schema of its arguments, an object, for a real form. Its `properties` and `required` are checked before it runs; a mismatch is refused with the reason, so the model can correct itself. The claimant sends them as JSON text in `widget_act`'s `fields`, which is parsed leniently (an object is taken as it is, a code fence is stripped), and invalid JSON is refused with an example built from this schema. For one free-text argument use {@link SurfaceActionSpec.text} instead.\n */\n",
|
|
33853
36006
|
"excerptTokens": [
|
|
33854
36007
|
{
|
|
33855
36008
|
"kind": "Content",
|
|
@@ -33916,16 +36069,16 @@
|
|
|
33916
36069
|
},
|
|
33917
36070
|
{
|
|
33918
36071
|
"kind": "PropertySignature",
|
|
33919
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#
|
|
33920
|
-
"docComment": "/**\n *
|
|
36072
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#finishes:member",
|
|
36073
|
+
"docComment": "/**\n * Whether it settles the interaction. An editing action (`edit_rows`) does not.\n */\n",
|
|
33921
36074
|
"excerptTokens": [
|
|
33922
36075
|
{
|
|
33923
36076
|
"kind": "Content",
|
|
33924
|
-
"text": "readonly
|
|
36077
|
+
"text": "readonly finishes?: "
|
|
33925
36078
|
},
|
|
33926
36079
|
{
|
|
33927
36080
|
"kind": "Content",
|
|
33928
|
-
"text": "
|
|
36081
|
+
"text": "boolean"
|
|
33929
36082
|
},
|
|
33930
36083
|
{
|
|
33931
36084
|
"kind": "Content",
|
|
@@ -33935,7 +36088,7 @@
|
|
|
33935
36088
|
"isReadonly": true,
|
|
33936
36089
|
"isOptional": true,
|
|
33937
36090
|
"releaseTag": "Beta",
|
|
33938
|
-
"name": "
|
|
36091
|
+
"name": "finishes",
|
|
33939
36092
|
"propertyTypeTokenRange": {
|
|
33940
36093
|
"startIndex": 1,
|
|
33941
36094
|
"endIndex": 2
|
|
@@ -33943,12 +36096,12 @@
|
|
|
33943
36096
|
},
|
|
33944
36097
|
{
|
|
33945
36098
|
"kind": "PropertySignature",
|
|
33946
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#
|
|
33947
|
-
"docComment": "/**\n *
|
|
36099
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#refines:member",
|
|
36100
|
+
"docComment": "/**\n * It refines rather than accepts — a regenerate with instructions, a retry with changes — so it counts against the autopilot's per-step refinement limit (`maxRefinements`) exactly as a written `reply` does, and is withdrawn (not listed, and refused) once the limit is reached. Counted per step, not per interaction, so a refine that opens a new review of the same step still counts. A claimant's limit only: a person's button is never limited by it.\n */\n",
|
|
33948
36101
|
"excerptTokens": [
|
|
33949
36102
|
{
|
|
33950
36103
|
"kind": "Content",
|
|
33951
|
-
"text": "readonly
|
|
36104
|
+
"text": "readonly refines?: "
|
|
33952
36105
|
},
|
|
33953
36106
|
{
|
|
33954
36107
|
"kind": "Content",
|
|
@@ -33962,7 +36115,7 @@
|
|
|
33962
36115
|
"isReadonly": true,
|
|
33963
36116
|
"isOptional": true,
|
|
33964
36117
|
"releaseTag": "Beta",
|
|
33965
|
-
"name": "
|
|
36118
|
+
"name": "refines",
|
|
33966
36119
|
"propertyTypeTokenRange": {
|
|
33967
36120
|
"startIndex": 1,
|
|
33968
36121
|
"endIndex": 2
|
|
@@ -33971,7 +36124,7 @@
|
|
|
33971
36124
|
{
|
|
33972
36125
|
"kind": "MethodSignature",
|
|
33973
36126
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#run:member(1)",
|
|
33974
|
-
"docComment": "/**\n * Do it — the SAME code the view's control runs. A finishing action resolves the interaction; an editing one returns what changed (fresh errors, say), which the claimant is shown.\n *\n * A finishing action should settle promptly. While one runs asynchronously, the claimant can run nothing else, and it keeps the claimant's credit even if the interaction is handed to the person meanwhile, so the view should block its own controls until it ends: a click that lands then would be credited to the claimant.\n */\n",
|
|
36127
|
+
"docComment": "/**\n * Do it — the SAME code the view's control runs. A finishing action resolves the interaction; an editing one returns what changed (fresh errors, say), which the claimant is shown. Receives the text for a {@link SurfaceActionSpec.text} action, the checked object for an `argsSchema` one, and `{}` otherwise.\n *\n * A finishing action should settle promptly. While one runs asynchronously, the claimant can run nothing else, and it keeps the claimant's credit even if the interaction is handed to the person meanwhile, so the view should block its own controls until it ends: a click that lands then would be credited to the claimant.\n */\n",
|
|
33975
36128
|
"excerptTokens": [
|
|
33976
36129
|
{
|
|
33977
36130
|
"kind": "Content",
|
|
@@ -34021,6 +36174,60 @@
|
|
|
34021
36174
|
}
|
|
34022
36175
|
],
|
|
34023
36176
|
"name": "run"
|
|
36177
|
+
},
|
|
36178
|
+
{
|
|
36179
|
+
"kind": "PropertySignature",
|
|
36180
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#text:member",
|
|
36181
|
+
"docComment": "/**\n * It takes one free-text argument, which the claimant passes as `widget_act`'s own `text`, as for `reply` — e.g. a regenerate's instruction. `run` then receives that text, trimmed, as a string; an empty one is refused before it runs. Prefer it to an `argsSchema` with one string property: plain text needs no JSON inside a string, which models get wrong.\n */\n",
|
|
36182
|
+
"excerptTokens": [
|
|
36183
|
+
{
|
|
36184
|
+
"kind": "Content",
|
|
36185
|
+
"text": "readonly text?: "
|
|
36186
|
+
},
|
|
36187
|
+
{
|
|
36188
|
+
"kind": "Content",
|
|
36189
|
+
"text": "boolean"
|
|
36190
|
+
},
|
|
36191
|
+
{
|
|
36192
|
+
"kind": "Content",
|
|
36193
|
+
"text": ";"
|
|
36194
|
+
}
|
|
36195
|
+
],
|
|
36196
|
+
"isReadonly": true,
|
|
36197
|
+
"isOptional": true,
|
|
36198
|
+
"releaseTag": "Beta",
|
|
36199
|
+
"name": "text",
|
|
36200
|
+
"propertyTypeTokenRange": {
|
|
36201
|
+
"startIndex": 1,
|
|
36202
|
+
"endIndex": 2
|
|
36203
|
+
}
|
|
36204
|
+
},
|
|
36205
|
+
{
|
|
36206
|
+
"kind": "PropertySignature",
|
|
36207
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#unavailable:member",
|
|
36208
|
+
"docComment": "/**\n * Why it cannot be run right now, or `undefined` when it can: the button's own guard, read fresh, so the claimant can never do what the view would refuse. The reason is shown with the action and given when a call is refused. Absent means always available; an empty string or a throw counts as unavailable, with a generic reason.\n */\n",
|
|
36209
|
+
"excerptTokens": [
|
|
36210
|
+
{
|
|
36211
|
+
"kind": "Content",
|
|
36212
|
+
"text": "readonly unavailable?: "
|
|
36213
|
+
},
|
|
36214
|
+
{
|
|
36215
|
+
"kind": "Content",
|
|
36216
|
+
"text": "() => string | undefined"
|
|
36217
|
+
},
|
|
36218
|
+
{
|
|
36219
|
+
"kind": "Content",
|
|
36220
|
+
"text": ";"
|
|
36221
|
+
}
|
|
36222
|
+
],
|
|
36223
|
+
"isReadonly": true,
|
|
36224
|
+
"isOptional": true,
|
|
36225
|
+
"releaseTag": "Beta",
|
|
36226
|
+
"name": "unavailable",
|
|
36227
|
+
"propertyTypeTokenRange": {
|
|
36228
|
+
"startIndex": 1,
|
|
36229
|
+
"endIndex": 2
|
|
36230
|
+
}
|
|
34024
36231
|
}
|
|
34025
36232
|
],
|
|
34026
36233
|
"extendsTokenRanges": []
|
|
@@ -34118,6 +36325,33 @@
|
|
|
34118
36325
|
"parameters": [],
|
|
34119
36326
|
"name": "describe"
|
|
34120
36327
|
},
|
|
36328
|
+
{
|
|
36329
|
+
"kind": "PropertySignature",
|
|
36330
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#preview:member",
|
|
36331
|
+
"docComment": "/**\n * The view sent with the decision, as `Now:`, to save a round trip; `widget_read()` with no view reads it again. One of {@link SurfaceSpec.views}; unset sends none. Keep it small, and do not repeat the widget's `asText`, which opens the same decision message: send what the text form does not already say.\n */\n",
|
|
36332
|
+
"excerptTokens": [
|
|
36333
|
+
{
|
|
36334
|
+
"kind": "Content",
|
|
36335
|
+
"text": "readonly preview?: "
|
|
36336
|
+
},
|
|
36337
|
+
{
|
|
36338
|
+
"kind": "Content",
|
|
36339
|
+
"text": "string"
|
|
36340
|
+
},
|
|
36341
|
+
{
|
|
36342
|
+
"kind": "Content",
|
|
36343
|
+
"text": ";"
|
|
36344
|
+
}
|
|
36345
|
+
],
|
|
36346
|
+
"isReadonly": true,
|
|
36347
|
+
"isOptional": true,
|
|
36348
|
+
"releaseTag": "Beta",
|
|
36349
|
+
"name": "preview",
|
|
36350
|
+
"propertyTypeTokenRange": {
|
|
36351
|
+
"startIndex": 1,
|
|
36352
|
+
"endIndex": 2
|
|
36353
|
+
}
|
|
36354
|
+
},
|
|
34121
36355
|
{
|
|
34122
36356
|
"kind": "PropertySignature",
|
|
34123
36357
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#prompt:member",
|
|
@@ -34146,62 +36380,85 @@
|
|
|
34146
36380
|
}
|
|
34147
36381
|
},
|
|
34148
36382
|
{
|
|
34149
|
-
"kind": "
|
|
34150
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#
|
|
34151
|
-
"docComment": "/**\n *
|
|
36383
|
+
"kind": "PropertySignature",
|
|
36384
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#views:member",
|
|
36385
|
+
"docComment": "/**\n * Named views a claimant may read with `widget_read({ view })`, each listed in the decision with its description — the same shape as a short-form decision's {@link DecisionSpec.views}. Fixed names with no parameters: a read that takes any (one table's rows) is a widget tool (see `widgetTools`), and a view not listed here is refused.\n */\n",
|
|
34152
36386
|
"excerptTokens": [
|
|
34153
36387
|
{
|
|
34154
36388
|
"kind": "Content",
|
|
34155
|
-
"text": "
|
|
36389
|
+
"text": "readonly views?: "
|
|
36390
|
+
},
|
|
36391
|
+
{
|
|
36392
|
+
"kind": "Reference",
|
|
36393
|
+
"text": "Readonly",
|
|
36394
|
+
"canonicalReference": "!Readonly:type"
|
|
34156
36395
|
},
|
|
34157
36396
|
{
|
|
34158
36397
|
"kind": "Content",
|
|
34159
|
-
"text": "
|
|
36398
|
+
"text": "<"
|
|
36399
|
+
},
|
|
36400
|
+
{
|
|
36401
|
+
"kind": "Reference",
|
|
36402
|
+
"text": "Record",
|
|
36403
|
+
"canonicalReference": "!Record:type"
|
|
34160
36404
|
},
|
|
34161
36405
|
{
|
|
34162
36406
|
"kind": "Content",
|
|
34163
|
-
"text": "
|
|
36407
|
+
"text": "<string, "
|
|
36408
|
+
},
|
|
36409
|
+
{
|
|
36410
|
+
"kind": "Reference",
|
|
36411
|
+
"text": "SurfaceView",
|
|
36412
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface"
|
|
34164
36413
|
},
|
|
34165
36414
|
{
|
|
34166
36415
|
"kind": "Content",
|
|
34167
|
-
"text": "
|
|
36416
|
+
"text": ">>"
|
|
34168
36417
|
},
|
|
34169
36418
|
{
|
|
34170
36419
|
"kind": "Content",
|
|
34171
36420
|
"text": ";"
|
|
34172
36421
|
}
|
|
34173
36422
|
],
|
|
34174
|
-
"
|
|
34175
|
-
"
|
|
34176
|
-
"startIndex": 3,
|
|
34177
|
-
"endIndex": 4
|
|
34178
|
-
},
|
|
36423
|
+
"isReadonly": true,
|
|
36424
|
+
"isOptional": true,
|
|
34179
36425
|
"releaseTag": "Beta",
|
|
34180
|
-
"
|
|
34181
|
-
"
|
|
34182
|
-
|
|
34183
|
-
|
|
34184
|
-
|
|
34185
|
-
|
|
34186
|
-
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
|
|
34190
|
-
|
|
34191
|
-
|
|
34192
|
-
|
|
36426
|
+
"name": "views",
|
|
36427
|
+
"propertyTypeTokenRange": {
|
|
36428
|
+
"startIndex": 1,
|
|
36429
|
+
"endIndex": 7
|
|
36430
|
+
}
|
|
36431
|
+
}
|
|
36432
|
+
],
|
|
36433
|
+
"extendsTokenRanges": []
|
|
36434
|
+
},
|
|
36435
|
+
{
|
|
36436
|
+
"kind": "Interface",
|
|
36437
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface",
|
|
36438
|
+
"docComment": "/**\n * One named view of a surface (GENC-1660): content a claimant reads only when it asks for it, such as a long explainer the person opens on the card, or a summary of a rich widget's state. Listed in the decision with its description; its content is not, unless it is a full-form surface's {@link SurfaceSpec.preview}.\n *\n * The same shape in both forms: a short-form decision's {@link DecisionSpec.views} and a full-form surface's {@link SurfaceSpec.views}.\n *\n * A view takes no parameters. A read that needs them (one table's rows, a page at an offset) is a widget tool instead: see `widgetTools`.\n *\n * Every read is capped at about 20,000 characters, cut with a note telling the model to ask for less, so page anything that can grow.\n *\n * @beta\n */\n",
|
|
36439
|
+
"excerptTokens": [
|
|
36440
|
+
{
|
|
36441
|
+
"kind": "Content",
|
|
36442
|
+
"text": "export interface SurfaceView "
|
|
36443
|
+
}
|
|
36444
|
+
],
|
|
36445
|
+
"fileUrlPath": "src/types/interaction-surface.ts",
|
|
36446
|
+
"releaseTag": "Beta",
|
|
36447
|
+
"name": "SurfaceView",
|
|
36448
|
+
"preserveMemberOrder": false,
|
|
36449
|
+
"members": [
|
|
34193
36450
|
{
|
|
34194
36451
|
"kind": "PropertySignature",
|
|
34195
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
34196
|
-
"docComment": "/**\n *
|
|
36452
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView#description:member",
|
|
36453
|
+
"docComment": "/**\n * For the model: what the view holds and when it is worth reading. Shown with every decision, so keep it to a sentence — it is what tells the model the view exists at all.\n */\n",
|
|
34197
36454
|
"excerptTokens": [
|
|
34198
36455
|
{
|
|
34199
36456
|
"kind": "Content",
|
|
34200
|
-
"text": "readonly
|
|
36457
|
+
"text": "readonly description: "
|
|
34201
36458
|
},
|
|
34202
36459
|
{
|
|
34203
36460
|
"kind": "Content",
|
|
34204
|
-
"text": "
|
|
36461
|
+
"text": "string"
|
|
34205
36462
|
},
|
|
34206
36463
|
{
|
|
34207
36464
|
"kind": "Content",
|
|
@@ -34209,13 +36466,41 @@
|
|
|
34209
36466
|
}
|
|
34210
36467
|
],
|
|
34211
36468
|
"isReadonly": true,
|
|
34212
|
-
"isOptional":
|
|
36469
|
+
"isOptional": false,
|
|
34213
36470
|
"releaseTag": "Beta",
|
|
34214
|
-
"name": "
|
|
36471
|
+
"name": "description",
|
|
34215
36472
|
"propertyTypeTokenRange": {
|
|
34216
36473
|
"startIndex": 1,
|
|
34217
36474
|
"endIndex": 2
|
|
34218
36475
|
}
|
|
36476
|
+
},
|
|
36477
|
+
{
|
|
36478
|
+
"kind": "MethodSignature",
|
|
36479
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView#read:member(1)",
|
|
36480
|
+
"docComment": "/**\n * The view's content, as JSON. Read fresh on every `widget_read({ view })`.\n */\n",
|
|
36481
|
+
"excerptTokens": [
|
|
36482
|
+
{
|
|
36483
|
+
"kind": "Content",
|
|
36484
|
+
"text": "read(): "
|
|
36485
|
+
},
|
|
36486
|
+
{
|
|
36487
|
+
"kind": "Content",
|
|
36488
|
+
"text": "unknown"
|
|
36489
|
+
},
|
|
36490
|
+
{
|
|
36491
|
+
"kind": "Content",
|
|
36492
|
+
"text": ";"
|
|
36493
|
+
}
|
|
36494
|
+
],
|
|
36495
|
+
"isOptional": false,
|
|
36496
|
+
"returnTypeTokenRange": {
|
|
36497
|
+
"startIndex": 1,
|
|
36498
|
+
"endIndex": 2
|
|
36499
|
+
},
|
|
36500
|
+
"releaseTag": "Beta",
|
|
36501
|
+
"overloadIndex": 1,
|
|
36502
|
+
"parameters": [],
|
|
36503
|
+
"name": "read"
|
|
34219
36504
|
}
|
|
34220
36505
|
],
|
|
34221
36506
|
"extendsTokenRanges": []
|
|
@@ -34493,6 +36778,425 @@
|
|
|
34493
36778
|
"endIndex": 6
|
|
34494
36779
|
}
|
|
34495
36780
|
},
|
|
36781
|
+
{
|
|
36782
|
+
"kind": "TypeAlias",
|
|
36783
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestActResult:type",
|
|
36784
|
+
"docComment": "/**\n * What a claimant's action came to in a test: as `InteractionHold.invoke` reports it, less the holding (a test context has no claimant to check).\n *\n * @beta\n */\n",
|
|
36785
|
+
"excerptTokens": [
|
|
36786
|
+
{
|
|
36787
|
+
"kind": "Content",
|
|
36788
|
+
"text": "export type TestActResult = "
|
|
36789
|
+
},
|
|
36790
|
+
{
|
|
36791
|
+
"kind": "Content",
|
|
36792
|
+
"text": "{\n readonly ok: true;\n readonly finished: boolean;\n readonly output?: unknown;\n} | {\n readonly ok: false;\n readonly error: 'no-surface' | 'unknown-action' | 'disabled' | 'invalid-args' | 'threw';\n readonly message: string;\n}"
|
|
36793
|
+
},
|
|
36794
|
+
{
|
|
36795
|
+
"kind": "Content",
|
|
36796
|
+
"text": ";"
|
|
36797
|
+
}
|
|
36798
|
+
],
|
|
36799
|
+
"fileUrlPath": "src/state/test-interaction-context.ts",
|
|
36800
|
+
"releaseTag": "Beta",
|
|
36801
|
+
"name": "TestActResult",
|
|
36802
|
+
"typeTokenRange": {
|
|
36803
|
+
"startIndex": 1,
|
|
36804
|
+
"endIndex": 2
|
|
36805
|
+
}
|
|
36806
|
+
},
|
|
36807
|
+
{
|
|
36808
|
+
"kind": "Interface",
|
|
36809
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext:interface",
|
|
36810
|
+
"docComment": "/**\n * A real {@link InteractionContext} for a controller test, with the handles a test needs (GENC-1660). See {@link createTestInteractionContext}.\n *\n * @beta\n */\n",
|
|
36811
|
+
"excerptTokens": [
|
|
36812
|
+
{
|
|
36813
|
+
"kind": "Content",
|
|
36814
|
+
"text": "export interface TestInteractionContext<TController = "
|
|
36815
|
+
},
|
|
36816
|
+
{
|
|
36817
|
+
"kind": "Content",
|
|
36818
|
+
"text": "unknown"
|
|
36819
|
+
},
|
|
36820
|
+
{
|
|
36821
|
+
"kind": "Content",
|
|
36822
|
+
"text": ", TResult = "
|
|
36823
|
+
},
|
|
36824
|
+
{
|
|
36825
|
+
"kind": "Content",
|
|
36826
|
+
"text": "unknown"
|
|
36827
|
+
},
|
|
36828
|
+
{
|
|
36829
|
+
"kind": "Content",
|
|
36830
|
+
"text": "> "
|
|
36831
|
+
}
|
|
36832
|
+
],
|
|
36833
|
+
"fileUrlPath": "src/state/test-interaction-context.ts",
|
|
36834
|
+
"releaseTag": "Beta",
|
|
36835
|
+
"typeParameters": [
|
|
36836
|
+
{
|
|
36837
|
+
"typeParameterName": "TController",
|
|
36838
|
+
"constraintTokenRange": {
|
|
36839
|
+
"startIndex": 0,
|
|
36840
|
+
"endIndex": 0
|
|
36841
|
+
},
|
|
36842
|
+
"defaultTypeTokenRange": {
|
|
36843
|
+
"startIndex": 1,
|
|
36844
|
+
"endIndex": 2
|
|
36845
|
+
}
|
|
36846
|
+
},
|
|
36847
|
+
{
|
|
36848
|
+
"typeParameterName": "TResult",
|
|
36849
|
+
"constraintTokenRange": {
|
|
36850
|
+
"startIndex": 0,
|
|
36851
|
+
"endIndex": 0
|
|
36852
|
+
},
|
|
36853
|
+
"defaultTypeTokenRange": {
|
|
36854
|
+
"startIndex": 3,
|
|
36855
|
+
"endIndex": 4
|
|
36856
|
+
}
|
|
36857
|
+
}
|
|
36858
|
+
],
|
|
36859
|
+
"name": "TestInteractionContext",
|
|
36860
|
+
"preserveMemberOrder": false,
|
|
36861
|
+
"members": [
|
|
36862
|
+
{
|
|
36863
|
+
"kind": "MethodSignature",
|
|
36864
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#act:member(1)",
|
|
36865
|
+
"docComment": "/**\n * Run one of the surface's actions as a claimant would, through the platform's own checks (the action exists, its guard allows it, its arguments fit) and then its `run`: an option by id, `select` with `{ options }`, `reply` or a text action with `{ text }`, a form with its fields.\n */\n",
|
|
36866
|
+
"excerptTokens": [
|
|
36867
|
+
{
|
|
36868
|
+
"kind": "Content",
|
|
36869
|
+
"text": "act(action: "
|
|
36870
|
+
},
|
|
36871
|
+
{
|
|
36872
|
+
"kind": "Content",
|
|
36873
|
+
"text": "string"
|
|
36874
|
+
},
|
|
36875
|
+
{
|
|
36876
|
+
"kind": "Content",
|
|
36877
|
+
"text": ", args?: "
|
|
36878
|
+
},
|
|
36879
|
+
{
|
|
36880
|
+
"kind": "Content",
|
|
36881
|
+
"text": "unknown"
|
|
36882
|
+
},
|
|
36883
|
+
{
|
|
36884
|
+
"kind": "Content",
|
|
36885
|
+
"text": "): "
|
|
36886
|
+
},
|
|
36887
|
+
{
|
|
36888
|
+
"kind": "Reference",
|
|
36889
|
+
"text": "Promise",
|
|
36890
|
+
"canonicalReference": "!Promise:interface"
|
|
36891
|
+
},
|
|
36892
|
+
{
|
|
36893
|
+
"kind": "Content",
|
|
36894
|
+
"text": "<"
|
|
36895
|
+
},
|
|
36896
|
+
{
|
|
36897
|
+
"kind": "Reference",
|
|
36898
|
+
"text": "TestActResult",
|
|
36899
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestActResult:type"
|
|
36900
|
+
},
|
|
36901
|
+
{
|
|
36902
|
+
"kind": "Content",
|
|
36903
|
+
"text": ">"
|
|
36904
|
+
},
|
|
36905
|
+
{
|
|
36906
|
+
"kind": "Content",
|
|
36907
|
+
"text": ";"
|
|
36908
|
+
}
|
|
36909
|
+
],
|
|
36910
|
+
"isOptional": false,
|
|
36911
|
+
"returnTypeTokenRange": {
|
|
36912
|
+
"startIndex": 5,
|
|
36913
|
+
"endIndex": 9
|
|
36914
|
+
},
|
|
36915
|
+
"releaseTag": "Beta",
|
|
36916
|
+
"overloadIndex": 1,
|
|
36917
|
+
"parameters": [
|
|
36918
|
+
{
|
|
36919
|
+
"parameterName": "action",
|
|
36920
|
+
"parameterTypeTokenRange": {
|
|
36921
|
+
"startIndex": 1,
|
|
36922
|
+
"endIndex": 2
|
|
36923
|
+
},
|
|
36924
|
+
"isOptional": false
|
|
36925
|
+
},
|
|
36926
|
+
{
|
|
36927
|
+
"parameterName": "args",
|
|
36928
|
+
"parameterTypeTokenRange": {
|
|
36929
|
+
"startIndex": 3,
|
|
36930
|
+
"endIndex": 4
|
|
36931
|
+
},
|
|
36932
|
+
"isOptional": true
|
|
36933
|
+
}
|
|
36934
|
+
],
|
|
36935
|
+
"name": "act"
|
|
36936
|
+
},
|
|
36937
|
+
{
|
|
36938
|
+
"kind": "PropertySignature",
|
|
36939
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#context:member",
|
|
36940
|
+
"docComment": "/**\n * The context, as the platform builds it: pass it to the controller as its host.\n */\n",
|
|
36941
|
+
"excerptTokens": [
|
|
36942
|
+
{
|
|
36943
|
+
"kind": "Content",
|
|
36944
|
+
"text": "readonly context: "
|
|
36945
|
+
},
|
|
36946
|
+
{
|
|
36947
|
+
"kind": "Reference",
|
|
36948
|
+
"text": "InteractionContext",
|
|
36949
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
36950
|
+
},
|
|
36951
|
+
{
|
|
36952
|
+
"kind": "Content",
|
|
36953
|
+
"text": "<"
|
|
36954
|
+
},
|
|
36955
|
+
{
|
|
36956
|
+
"kind": "Reference",
|
|
36957
|
+
"text": "Record",
|
|
36958
|
+
"canonicalReference": "!Record:type"
|
|
36959
|
+
},
|
|
36960
|
+
{
|
|
36961
|
+
"kind": "Content",
|
|
36962
|
+
"text": "<string, unknown>, unknown, TController>"
|
|
36963
|
+
},
|
|
36964
|
+
{
|
|
36965
|
+
"kind": "Content",
|
|
36966
|
+
"text": ";"
|
|
36967
|
+
}
|
|
36968
|
+
],
|
|
36969
|
+
"isReadonly": true,
|
|
36970
|
+
"isOptional": false,
|
|
36971
|
+
"releaseTag": "Beta",
|
|
36972
|
+
"name": "context",
|
|
36973
|
+
"propertyTypeTokenRange": {
|
|
36974
|
+
"startIndex": 1,
|
|
36975
|
+
"endIndex": 5
|
|
36976
|
+
}
|
|
36977
|
+
},
|
|
36978
|
+
{
|
|
36979
|
+
"kind": "PropertySignature",
|
|
36980
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#controller:member",
|
|
36981
|
+
"docComment": "/**\n * The controller, when built through `options.controller`; otherwise `undefined`.\n */\n",
|
|
36982
|
+
"excerptTokens": [
|
|
36983
|
+
{
|
|
36984
|
+
"kind": "Content",
|
|
36985
|
+
"text": "readonly controller: "
|
|
36986
|
+
},
|
|
36987
|
+
{
|
|
36988
|
+
"kind": "Content",
|
|
36989
|
+
"text": "TController | undefined"
|
|
36990
|
+
},
|
|
36991
|
+
{
|
|
36992
|
+
"kind": "Content",
|
|
36993
|
+
"text": ";"
|
|
36994
|
+
}
|
|
36995
|
+
],
|
|
36996
|
+
"isReadonly": true,
|
|
36997
|
+
"isOptional": false,
|
|
36998
|
+
"releaseTag": "Beta",
|
|
36999
|
+
"name": "controller",
|
|
37000
|
+
"propertyTypeTokenRange": {
|
|
37001
|
+
"startIndex": 1,
|
|
37002
|
+
"endIndex": 2
|
|
37003
|
+
}
|
|
37004
|
+
},
|
|
37005
|
+
{
|
|
37006
|
+
"kind": "MethodSignature",
|
|
37007
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#dispose:member(1)",
|
|
37008
|
+
"docComment": "/**\n * End the interaction, running its `onDispose` callbacks, as settling it would.\n */\n",
|
|
37009
|
+
"excerptTokens": [
|
|
37010
|
+
{
|
|
37011
|
+
"kind": "Content",
|
|
37012
|
+
"text": "dispose(): "
|
|
37013
|
+
},
|
|
37014
|
+
{
|
|
37015
|
+
"kind": "Content",
|
|
37016
|
+
"text": "void"
|
|
37017
|
+
},
|
|
37018
|
+
{
|
|
37019
|
+
"kind": "Content",
|
|
37020
|
+
"text": ";"
|
|
37021
|
+
}
|
|
37022
|
+
],
|
|
37023
|
+
"isOptional": false,
|
|
37024
|
+
"returnTypeTokenRange": {
|
|
37025
|
+
"startIndex": 1,
|
|
37026
|
+
"endIndex": 2
|
|
37027
|
+
},
|
|
37028
|
+
"releaseTag": "Beta",
|
|
37029
|
+
"overloadIndex": 1,
|
|
37030
|
+
"parameters": [],
|
|
37031
|
+
"name": "dispose"
|
|
37032
|
+
},
|
|
37033
|
+
{
|
|
37034
|
+
"kind": "PropertySignature",
|
|
37035
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#notifications:member",
|
|
37036
|
+
"docComment": "/**\n * How many times `notify()` has been called.\n */\n",
|
|
37037
|
+
"excerptTokens": [
|
|
37038
|
+
{
|
|
37039
|
+
"kind": "Content",
|
|
37040
|
+
"text": "readonly notifications: "
|
|
37041
|
+
},
|
|
37042
|
+
{
|
|
37043
|
+
"kind": "Content",
|
|
37044
|
+
"text": "number"
|
|
37045
|
+
},
|
|
37046
|
+
{
|
|
37047
|
+
"kind": "Content",
|
|
37048
|
+
"text": ";"
|
|
37049
|
+
}
|
|
37050
|
+
],
|
|
37051
|
+
"isReadonly": true,
|
|
37052
|
+
"isOptional": false,
|
|
37053
|
+
"releaseTag": "Beta",
|
|
37054
|
+
"name": "notifications",
|
|
37055
|
+
"propertyTypeTokenRange": {
|
|
37056
|
+
"startIndex": 1,
|
|
37057
|
+
"endIndex": 2
|
|
37058
|
+
}
|
|
37059
|
+
},
|
|
37060
|
+
{
|
|
37061
|
+
"kind": "PropertySignature",
|
|
37062
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#resolvedItself:member",
|
|
37063
|
+
"docComment": "/**\n * Whether the controller said its outcome settled by itself (`ctx.resolve(result, { resolvedItself: true })`), which the platform then stamps as answered by nobody. `false` while it has not resolved.\n */\n",
|
|
37064
|
+
"excerptTokens": [
|
|
37065
|
+
{
|
|
37066
|
+
"kind": "Content",
|
|
37067
|
+
"text": "readonly resolvedItself: "
|
|
37068
|
+
},
|
|
37069
|
+
{
|
|
37070
|
+
"kind": "Content",
|
|
37071
|
+
"text": "boolean"
|
|
37072
|
+
},
|
|
37073
|
+
{
|
|
37074
|
+
"kind": "Content",
|
|
37075
|
+
"text": ";"
|
|
37076
|
+
}
|
|
37077
|
+
],
|
|
37078
|
+
"isReadonly": true,
|
|
37079
|
+
"isOptional": false,
|
|
37080
|
+
"releaseTag": "Beta",
|
|
37081
|
+
"name": "resolvedItself",
|
|
37082
|
+
"propertyTypeTokenRange": {
|
|
37083
|
+
"startIndex": 1,
|
|
37084
|
+
"endIndex": 2
|
|
37085
|
+
}
|
|
37086
|
+
},
|
|
37087
|
+
{
|
|
37088
|
+
"kind": "PropertySignature",
|
|
37089
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#result:member",
|
|
37090
|
+
"docComment": "/**\n * What the controller resolved with, or `undefined` while it has not. Only the first counts.\n */\n",
|
|
37091
|
+
"excerptTokens": [
|
|
37092
|
+
{
|
|
37093
|
+
"kind": "Content",
|
|
37094
|
+
"text": "readonly result: "
|
|
37095
|
+
},
|
|
37096
|
+
{
|
|
37097
|
+
"kind": "Reference",
|
|
37098
|
+
"text": "InteractionResult",
|
|
37099
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionResult:type"
|
|
37100
|
+
},
|
|
37101
|
+
{
|
|
37102
|
+
"kind": "Content",
|
|
37103
|
+
"text": "<TResult> | undefined"
|
|
37104
|
+
},
|
|
37105
|
+
{
|
|
37106
|
+
"kind": "Content",
|
|
37107
|
+
"text": ";"
|
|
37108
|
+
}
|
|
37109
|
+
],
|
|
37110
|
+
"isReadonly": true,
|
|
37111
|
+
"isOptional": false,
|
|
37112
|
+
"releaseTag": "Beta",
|
|
37113
|
+
"name": "result",
|
|
37114
|
+
"propertyTypeTokenRange": {
|
|
37115
|
+
"startIndex": 1,
|
|
37116
|
+
"endIndex": 3
|
|
37117
|
+
}
|
|
37118
|
+
},
|
|
37119
|
+
{
|
|
37120
|
+
"kind": "MethodSignature",
|
|
37121
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#setHeldBy:member(1)",
|
|
37122
|
+
"docComment": "/**\n * Move the interaction to `holder` (`'user'`, or a claimant's id such as `'autopilot'`).\n */\n",
|
|
37123
|
+
"excerptTokens": [
|
|
37124
|
+
{
|
|
37125
|
+
"kind": "Content",
|
|
37126
|
+
"text": "setHeldBy(holder: "
|
|
37127
|
+
},
|
|
37128
|
+
{
|
|
37129
|
+
"kind": "Reference",
|
|
37130
|
+
"text": "InteractionHolder",
|
|
37131
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHolder:type"
|
|
37132
|
+
},
|
|
37133
|
+
{
|
|
37134
|
+
"kind": "Content",
|
|
37135
|
+
"text": "): "
|
|
37136
|
+
},
|
|
37137
|
+
{
|
|
37138
|
+
"kind": "Content",
|
|
37139
|
+
"text": "void"
|
|
37140
|
+
},
|
|
37141
|
+
{
|
|
37142
|
+
"kind": "Content",
|
|
37143
|
+
"text": ";"
|
|
37144
|
+
}
|
|
37145
|
+
],
|
|
37146
|
+
"isOptional": false,
|
|
37147
|
+
"returnTypeTokenRange": {
|
|
37148
|
+
"startIndex": 3,
|
|
37149
|
+
"endIndex": 4
|
|
37150
|
+
},
|
|
37151
|
+
"releaseTag": "Beta",
|
|
37152
|
+
"overloadIndex": 1,
|
|
37153
|
+
"parameters": [
|
|
37154
|
+
{
|
|
37155
|
+
"parameterName": "holder",
|
|
37156
|
+
"parameterTypeTokenRange": {
|
|
37157
|
+
"startIndex": 1,
|
|
37158
|
+
"endIndex": 2
|
|
37159
|
+
},
|
|
37160
|
+
"isOptional": false
|
|
37161
|
+
}
|
|
37162
|
+
],
|
|
37163
|
+
"name": "setHeldBy"
|
|
37164
|
+
},
|
|
37165
|
+
{
|
|
37166
|
+
"kind": "PropertySignature",
|
|
37167
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#surface:member",
|
|
37168
|
+
"docComment": "/**\n * The surface the controller exposed, as a claimant reads it; `undefined` until it exposes one.\n */\n",
|
|
37169
|
+
"excerptTokens": [
|
|
37170
|
+
{
|
|
37171
|
+
"kind": "Content",
|
|
37172
|
+
"text": "readonly surface: "
|
|
37173
|
+
},
|
|
37174
|
+
{
|
|
37175
|
+
"kind": "Reference",
|
|
37176
|
+
"text": "InteractionSurface",
|
|
37177
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface:interface"
|
|
37178
|
+
},
|
|
37179
|
+
{
|
|
37180
|
+
"kind": "Content",
|
|
37181
|
+
"text": " | undefined"
|
|
37182
|
+
},
|
|
37183
|
+
{
|
|
37184
|
+
"kind": "Content",
|
|
37185
|
+
"text": ";"
|
|
37186
|
+
}
|
|
37187
|
+
],
|
|
37188
|
+
"isReadonly": true,
|
|
37189
|
+
"isOptional": false,
|
|
37190
|
+
"releaseTag": "Beta",
|
|
37191
|
+
"name": "surface",
|
|
37192
|
+
"propertyTypeTokenRange": {
|
|
37193
|
+
"startIndex": 1,
|
|
37194
|
+
"endIndex": 3
|
|
37195
|
+
}
|
|
37196
|
+
}
|
|
37197
|
+
],
|
|
37198
|
+
"extendsTokenRanges": []
|
|
37199
|
+
},
|
|
34496
37200
|
{
|
|
34497
37201
|
"kind": "TypeAlias",
|
|
34498
37202
|
"canonicalReference": "@genesislcap/ai-assistant!ThinkingPolicyInput:type",
|
|
@@ -36703,6 +39407,432 @@
|
|
|
36703
39407
|
}
|
|
36704
39408
|
]
|
|
36705
39409
|
},
|
|
39410
|
+
{
|
|
39411
|
+
"kind": "Function",
|
|
39412
|
+
"canonicalReference": "@genesislcap/ai-assistant!widgetTools:function(1)",
|
|
39413
|
+
"docComment": "/**\n * Declare tools that read from one widget type (GENC-1660): parameterised reads that a view cannot express, such as one table's rows, or a page of them.\n *\n * Put them on the autopilot (`defineAutopilot({ widgetTools: [...] })`), never discovered from the registration. Its tool list is fixed when its session starts, sorted by name, and identical for every decision, so the cache never breaks. Each call is routed to the interaction of `componentName` the autopilot is deciding, and `run` gets its controller; with none open, it is refused with a reason. While one is open, the autopilot's tail says which tools are usable now.\n *\n * Reads only. Their results leave the autopilot's history at the end of the decision, as `widget_read`'s do.\n *\n * @example\n * ```ts\n * export const SAMPLE_DATA_TOOLS = widgetTools('sample-data-review', {\n * sample_data_rows: {\n * definition: {\n * description: \"One table's rows. Only while a sample-data review is open.\",\n * parameters: {\n * type: 'object',\n * properties: { table: { type: 'string' }, offset: { type: 'integer' } },\n * required: ['table'],\n * },\n * },\n * run: (controller: SampleDataReviewController, args: { table: string; offset?: number }) =>\n * controller.rows(args.table, args.offset ?? 0),\n * },\n * });\n * ```\n *\n * @beta\n */\n",
|
|
39414
|
+
"excerptTokens": [
|
|
39415
|
+
{
|
|
39416
|
+
"kind": "Content",
|
|
39417
|
+
"text": "export declare function widgetTools<TController, TArgs extends "
|
|
39418
|
+
},
|
|
39419
|
+
{
|
|
39420
|
+
"kind": "Content",
|
|
39421
|
+
"text": "{\n [name: string]: object;\n}"
|
|
39422
|
+
},
|
|
39423
|
+
{
|
|
39424
|
+
"kind": "Content",
|
|
39425
|
+
"text": ">(componentName: "
|
|
39426
|
+
},
|
|
39427
|
+
{
|
|
39428
|
+
"kind": "Content",
|
|
39429
|
+
"text": "string"
|
|
39430
|
+
},
|
|
39431
|
+
{
|
|
39432
|
+
"kind": "Content",
|
|
39433
|
+
"text": ", tools: "
|
|
39434
|
+
},
|
|
39435
|
+
{
|
|
39436
|
+
"kind": "Content",
|
|
39437
|
+
"text": "{\n [K in keyof TArgs]: "
|
|
39438
|
+
},
|
|
39439
|
+
{
|
|
39440
|
+
"kind": "Reference",
|
|
39441
|
+
"text": "WidgetToolSpec",
|
|
39442
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec:interface"
|
|
39443
|
+
},
|
|
39444
|
+
{
|
|
39445
|
+
"kind": "Content",
|
|
39446
|
+
"text": "<TController, TArgs[K]>;\n}"
|
|
39447
|
+
},
|
|
39448
|
+
{
|
|
39449
|
+
"kind": "Content",
|
|
39450
|
+
"text": "): "
|
|
39451
|
+
},
|
|
39452
|
+
{
|
|
39453
|
+
"kind": "Reference",
|
|
39454
|
+
"text": "WidgetTools",
|
|
39455
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools:interface"
|
|
39456
|
+
},
|
|
39457
|
+
{
|
|
39458
|
+
"kind": "Content",
|
|
39459
|
+
"text": ";"
|
|
39460
|
+
}
|
|
39461
|
+
],
|
|
39462
|
+
"fileUrlPath": "src/autopilot/widget-tools.ts",
|
|
39463
|
+
"returnTypeTokenRange": {
|
|
39464
|
+
"startIndex": 9,
|
|
39465
|
+
"endIndex": 10
|
|
39466
|
+
},
|
|
39467
|
+
"releaseTag": "Beta",
|
|
39468
|
+
"overloadIndex": 1,
|
|
39469
|
+
"parameters": [
|
|
39470
|
+
{
|
|
39471
|
+
"parameterName": "componentName",
|
|
39472
|
+
"parameterTypeTokenRange": {
|
|
39473
|
+
"startIndex": 3,
|
|
39474
|
+
"endIndex": 4
|
|
39475
|
+
},
|
|
39476
|
+
"isOptional": false
|
|
39477
|
+
},
|
|
39478
|
+
{
|
|
39479
|
+
"parameterName": "tools",
|
|
39480
|
+
"parameterTypeTokenRange": {
|
|
39481
|
+
"startIndex": 5,
|
|
39482
|
+
"endIndex": 8
|
|
39483
|
+
},
|
|
39484
|
+
"isOptional": false
|
|
39485
|
+
}
|
|
39486
|
+
],
|
|
39487
|
+
"typeParameters": [
|
|
39488
|
+
{
|
|
39489
|
+
"typeParameterName": "TController",
|
|
39490
|
+
"constraintTokenRange": {
|
|
39491
|
+
"startIndex": 0,
|
|
39492
|
+
"endIndex": 0
|
|
39493
|
+
},
|
|
39494
|
+
"defaultTypeTokenRange": {
|
|
39495
|
+
"startIndex": 0,
|
|
39496
|
+
"endIndex": 0
|
|
39497
|
+
}
|
|
39498
|
+
},
|
|
39499
|
+
{
|
|
39500
|
+
"typeParameterName": "TArgs",
|
|
39501
|
+
"constraintTokenRange": {
|
|
39502
|
+
"startIndex": 1,
|
|
39503
|
+
"endIndex": 2
|
|
39504
|
+
},
|
|
39505
|
+
"defaultTypeTokenRange": {
|
|
39506
|
+
"startIndex": 0,
|
|
39507
|
+
"endIndex": 0
|
|
39508
|
+
}
|
|
39509
|
+
}
|
|
39510
|
+
],
|
|
39511
|
+
"name": "widgetTools"
|
|
39512
|
+
},
|
|
39513
|
+
{
|
|
39514
|
+
"kind": "Interface",
|
|
39515
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools:interface",
|
|
39516
|
+
"docComment": "/**\n * A widget's tools, bound to its component name: what {@link widgetTools} builds, and what an autopilot's `widgetTools` takes.\n *\n * @beta\n */\n",
|
|
39517
|
+
"excerptTokens": [
|
|
39518
|
+
{
|
|
39519
|
+
"kind": "Content",
|
|
39520
|
+
"text": "export interface WidgetTools "
|
|
39521
|
+
}
|
|
39522
|
+
],
|
|
39523
|
+
"fileUrlPath": "src/autopilot/widget-tools.ts",
|
|
39524
|
+
"releaseTag": "Beta",
|
|
39525
|
+
"name": "WidgetTools",
|
|
39526
|
+
"preserveMemberOrder": false,
|
|
39527
|
+
"members": [
|
|
39528
|
+
{
|
|
39529
|
+
"kind": "PropertySignature",
|
|
39530
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools#componentName:member",
|
|
39531
|
+
"docComment": "/**\n * The widget type the tools read from: its registered component name.\n */\n",
|
|
39532
|
+
"excerptTokens": [
|
|
39533
|
+
{
|
|
39534
|
+
"kind": "Content",
|
|
39535
|
+
"text": "readonly componentName: "
|
|
39536
|
+
},
|
|
39537
|
+
{
|
|
39538
|
+
"kind": "Content",
|
|
39539
|
+
"text": "string"
|
|
39540
|
+
},
|
|
39541
|
+
{
|
|
39542
|
+
"kind": "Content",
|
|
39543
|
+
"text": ";"
|
|
39544
|
+
}
|
|
39545
|
+
],
|
|
39546
|
+
"isReadonly": true,
|
|
39547
|
+
"isOptional": false,
|
|
39548
|
+
"releaseTag": "Beta",
|
|
39549
|
+
"name": "componentName",
|
|
39550
|
+
"propertyTypeTokenRange": {
|
|
39551
|
+
"startIndex": 1,
|
|
39552
|
+
"endIndex": 2
|
|
39553
|
+
}
|
|
39554
|
+
},
|
|
39555
|
+
{
|
|
39556
|
+
"kind": "PropertySignature",
|
|
39557
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools#tools:member",
|
|
39558
|
+
"docComment": "/**\n * The tools, by name.\n */\n",
|
|
39559
|
+
"excerptTokens": [
|
|
39560
|
+
{
|
|
39561
|
+
"kind": "Content",
|
|
39562
|
+
"text": "readonly tools: "
|
|
39563
|
+
},
|
|
39564
|
+
{
|
|
39565
|
+
"kind": "Reference",
|
|
39566
|
+
"text": "Readonly",
|
|
39567
|
+
"canonicalReference": "!Readonly:type"
|
|
39568
|
+
},
|
|
39569
|
+
{
|
|
39570
|
+
"kind": "Content",
|
|
39571
|
+
"text": "<"
|
|
39572
|
+
},
|
|
39573
|
+
{
|
|
39574
|
+
"kind": "Reference",
|
|
39575
|
+
"text": "Record",
|
|
39576
|
+
"canonicalReference": "!Record:type"
|
|
39577
|
+
},
|
|
39578
|
+
{
|
|
39579
|
+
"kind": "Content",
|
|
39580
|
+
"text": "<string, "
|
|
39581
|
+
},
|
|
39582
|
+
{
|
|
39583
|
+
"kind": "Reference",
|
|
39584
|
+
"text": "WidgetToolSpec",
|
|
39585
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec:interface"
|
|
39586
|
+
},
|
|
39587
|
+
{
|
|
39588
|
+
"kind": "Content",
|
|
39589
|
+
"text": "<unknown, "
|
|
39590
|
+
},
|
|
39591
|
+
{
|
|
39592
|
+
"kind": "Reference",
|
|
39593
|
+
"text": "Record",
|
|
39594
|
+
"canonicalReference": "!Record:type"
|
|
39595
|
+
},
|
|
39596
|
+
{
|
|
39597
|
+
"kind": "Content",
|
|
39598
|
+
"text": "<string, unknown>>>>"
|
|
39599
|
+
},
|
|
39600
|
+
{
|
|
39601
|
+
"kind": "Content",
|
|
39602
|
+
"text": ";"
|
|
39603
|
+
}
|
|
39604
|
+
],
|
|
39605
|
+
"isReadonly": true,
|
|
39606
|
+
"isOptional": false,
|
|
39607
|
+
"releaseTag": "Beta",
|
|
39608
|
+
"name": "tools",
|
|
39609
|
+
"propertyTypeTokenRange": {
|
|
39610
|
+
"startIndex": 1,
|
|
39611
|
+
"endIndex": 9
|
|
39612
|
+
}
|
|
39613
|
+
}
|
|
39614
|
+
],
|
|
39615
|
+
"extendsTokenRanges": []
|
|
39616
|
+
},
|
|
39617
|
+
{
|
|
39618
|
+
"kind": "Interface",
|
|
39619
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec:interface",
|
|
39620
|
+
"docComment": "/**\n * One widget tool (GENC-1660): an ordinary tool with native, typed parameters that reads from the widget open right now. `TController` is the widget's controller, as it was registered; `TArgs` the parameters, as the model sends them.\n *\n * @beta\n */\n",
|
|
39621
|
+
"excerptTokens": [
|
|
39622
|
+
{
|
|
39623
|
+
"kind": "Content",
|
|
39624
|
+
"text": "export interface WidgetToolSpec<TController = "
|
|
39625
|
+
},
|
|
39626
|
+
{
|
|
39627
|
+
"kind": "Content",
|
|
39628
|
+
"text": "unknown"
|
|
39629
|
+
},
|
|
39630
|
+
{
|
|
39631
|
+
"kind": "Content",
|
|
39632
|
+
"text": ", TArgs = "
|
|
39633
|
+
},
|
|
39634
|
+
{
|
|
39635
|
+
"kind": "Reference",
|
|
39636
|
+
"text": "Record",
|
|
39637
|
+
"canonicalReference": "!Record:type"
|
|
39638
|
+
},
|
|
39639
|
+
{
|
|
39640
|
+
"kind": "Content",
|
|
39641
|
+
"text": "<string, unknown>"
|
|
39642
|
+
},
|
|
39643
|
+
{
|
|
39644
|
+
"kind": "Content",
|
|
39645
|
+
"text": "> "
|
|
39646
|
+
}
|
|
39647
|
+
],
|
|
39648
|
+
"fileUrlPath": "src/autopilot/widget-tools.ts",
|
|
39649
|
+
"releaseTag": "Beta",
|
|
39650
|
+
"typeParameters": [
|
|
39651
|
+
{
|
|
39652
|
+
"typeParameterName": "TController",
|
|
39653
|
+
"constraintTokenRange": {
|
|
39654
|
+
"startIndex": 0,
|
|
39655
|
+
"endIndex": 0
|
|
39656
|
+
},
|
|
39657
|
+
"defaultTypeTokenRange": {
|
|
39658
|
+
"startIndex": 1,
|
|
39659
|
+
"endIndex": 2
|
|
39660
|
+
}
|
|
39661
|
+
},
|
|
39662
|
+
{
|
|
39663
|
+
"typeParameterName": "TArgs",
|
|
39664
|
+
"constraintTokenRange": {
|
|
39665
|
+
"startIndex": 0,
|
|
39666
|
+
"endIndex": 0
|
|
39667
|
+
},
|
|
39668
|
+
"defaultTypeTokenRange": {
|
|
39669
|
+
"startIndex": 3,
|
|
39670
|
+
"endIndex": 5
|
|
39671
|
+
}
|
|
39672
|
+
}
|
|
39673
|
+
],
|
|
39674
|
+
"name": "WidgetToolSpec",
|
|
39675
|
+
"preserveMemberOrder": false,
|
|
39676
|
+
"members": [
|
|
39677
|
+
{
|
|
39678
|
+
"kind": "PropertySignature",
|
|
39679
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec#definition:member",
|
|
39680
|
+
"docComment": "/**\n * The tool as the model sees it, less its name (the key it is declared under). Design it to the same provider rules as any other tool: plain types, no type unions, no arrays of objects. Its description should say when it applies, e.g. \"Only while a sample-data review is open.\": the tool is offered on every decision, so the cached prefix never changes.\n *\n * Its `parameters`' `required` properties and their declared top-level types are checked before `run` is called; a mismatch is refused with the reason.\n */\n",
|
|
39681
|
+
"excerptTokens": [
|
|
39682
|
+
{
|
|
39683
|
+
"kind": "Content",
|
|
39684
|
+
"text": "readonly definition: "
|
|
39685
|
+
},
|
|
39686
|
+
{
|
|
39687
|
+
"kind": "Reference",
|
|
39688
|
+
"text": "Omit",
|
|
39689
|
+
"canonicalReference": "!Omit:type"
|
|
39690
|
+
},
|
|
39691
|
+
{
|
|
39692
|
+
"kind": "Content",
|
|
39693
|
+
"text": "<"
|
|
39694
|
+
},
|
|
39695
|
+
{
|
|
39696
|
+
"kind": "Reference",
|
|
39697
|
+
"text": "ChatToolDefinition",
|
|
39698
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
39699
|
+
},
|
|
39700
|
+
{
|
|
39701
|
+
"kind": "Content",
|
|
39702
|
+
"text": ", 'name'>"
|
|
39703
|
+
},
|
|
39704
|
+
{
|
|
39705
|
+
"kind": "Content",
|
|
39706
|
+
"text": ";"
|
|
39707
|
+
}
|
|
39708
|
+
],
|
|
39709
|
+
"isReadonly": true,
|
|
39710
|
+
"isOptional": false,
|
|
39711
|
+
"releaseTag": "Beta",
|
|
39712
|
+
"name": "definition",
|
|
39713
|
+
"propertyTypeTokenRange": {
|
|
39714
|
+
"startIndex": 1,
|
|
39715
|
+
"endIndex": 5
|
|
39716
|
+
}
|
|
39717
|
+
},
|
|
39718
|
+
{
|
|
39719
|
+
"kind": "MethodSignature",
|
|
39720
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec#run:member(1)",
|
|
39721
|
+
"docComment": "/**\n * Read what was asked from the open widget's controller, and return it: JSON, or text. Reads only — it must never settle or change the widget; anything that does goes through a `widget_act` action, under the claimant's hold. A throw is reported to the model as the reason the read failed.\n *\n * What it returns is capped at about 20,000 characters, cut with a note telling the model to ask for less, so page anything that can grow (an `offset`, a `limit`).\n */\n",
|
|
39722
|
+
"excerptTokens": [
|
|
39723
|
+
{
|
|
39724
|
+
"kind": "Content",
|
|
39725
|
+
"text": "run(controller: "
|
|
39726
|
+
},
|
|
39727
|
+
{
|
|
39728
|
+
"kind": "Content",
|
|
39729
|
+
"text": "TController"
|
|
39730
|
+
},
|
|
39731
|
+
{
|
|
39732
|
+
"kind": "Content",
|
|
39733
|
+
"text": ", args: "
|
|
39734
|
+
},
|
|
39735
|
+
{
|
|
39736
|
+
"kind": "Content",
|
|
39737
|
+
"text": "TArgs"
|
|
39738
|
+
},
|
|
39739
|
+
{
|
|
39740
|
+
"kind": "Content",
|
|
39741
|
+
"text": "): "
|
|
39742
|
+
},
|
|
39743
|
+
{
|
|
39744
|
+
"kind": "Content",
|
|
39745
|
+
"text": "unknown | "
|
|
39746
|
+
},
|
|
39747
|
+
{
|
|
39748
|
+
"kind": "Reference",
|
|
39749
|
+
"text": "Promise",
|
|
39750
|
+
"canonicalReference": "!Promise:interface"
|
|
39751
|
+
},
|
|
39752
|
+
{
|
|
39753
|
+
"kind": "Content",
|
|
39754
|
+
"text": "<unknown>"
|
|
39755
|
+
},
|
|
39756
|
+
{
|
|
39757
|
+
"kind": "Content",
|
|
39758
|
+
"text": ";"
|
|
39759
|
+
}
|
|
39760
|
+
],
|
|
39761
|
+
"isOptional": false,
|
|
39762
|
+
"returnTypeTokenRange": {
|
|
39763
|
+
"startIndex": 5,
|
|
39764
|
+
"endIndex": 8
|
|
39765
|
+
},
|
|
39766
|
+
"releaseTag": "Beta",
|
|
39767
|
+
"overloadIndex": 1,
|
|
39768
|
+
"parameters": [
|
|
39769
|
+
{
|
|
39770
|
+
"parameterName": "controller",
|
|
39771
|
+
"parameterTypeTokenRange": {
|
|
39772
|
+
"startIndex": 1,
|
|
39773
|
+
"endIndex": 2
|
|
39774
|
+
},
|
|
39775
|
+
"isOptional": false
|
|
39776
|
+
},
|
|
39777
|
+
{
|
|
39778
|
+
"parameterName": "args",
|
|
39779
|
+
"parameterTypeTokenRange": {
|
|
39780
|
+
"startIndex": 3,
|
|
39781
|
+
"endIndex": 4
|
|
39782
|
+
},
|
|
39783
|
+
"isOptional": false
|
|
39784
|
+
}
|
|
39785
|
+
],
|
|
39786
|
+
"name": "run"
|
|
39787
|
+
},
|
|
39788
|
+
{
|
|
39789
|
+
"kind": "MethodSignature",
|
|
39790
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec#unavailable:member(1)",
|
|
39791
|
+
"docComment": "/**\n * Why it cannot be used right now, or `undefined` when it can, for a tool that applies only in some of its widget's states (the handler's code, once there is some). Read fresh: the tail lists the tool only while this is `undefined`, and a call otherwise is refused with this reason before `run`. Absent means whenever its widget is open; an empty string or a throw counts as unavailable, with a generic reason. The tool stays declared either way, so the cached prefix never changes.\n *\n * @example\n * ```ts\n * unavailable: (c) => (c.code ? undefined : 'No code has been generated yet.'),\n * ```\n *\n */\n",
|
|
39792
|
+
"excerptTokens": [
|
|
39793
|
+
{
|
|
39794
|
+
"kind": "Content",
|
|
39795
|
+
"text": "unavailable?(controller: "
|
|
39796
|
+
},
|
|
39797
|
+
{
|
|
39798
|
+
"kind": "Content",
|
|
39799
|
+
"text": "TController"
|
|
39800
|
+
},
|
|
39801
|
+
{
|
|
39802
|
+
"kind": "Content",
|
|
39803
|
+
"text": "): "
|
|
39804
|
+
},
|
|
39805
|
+
{
|
|
39806
|
+
"kind": "Content",
|
|
39807
|
+
"text": "string | undefined"
|
|
39808
|
+
},
|
|
39809
|
+
{
|
|
39810
|
+
"kind": "Content",
|
|
39811
|
+
"text": ";"
|
|
39812
|
+
}
|
|
39813
|
+
],
|
|
39814
|
+
"isOptional": true,
|
|
39815
|
+
"returnTypeTokenRange": {
|
|
39816
|
+
"startIndex": 3,
|
|
39817
|
+
"endIndex": 4
|
|
39818
|
+
},
|
|
39819
|
+
"releaseTag": "Beta",
|
|
39820
|
+
"overloadIndex": 1,
|
|
39821
|
+
"parameters": [
|
|
39822
|
+
{
|
|
39823
|
+
"parameterName": "controller",
|
|
39824
|
+
"parameterTypeTokenRange": {
|
|
39825
|
+
"startIndex": 1,
|
|
39826
|
+
"endIndex": 2
|
|
39827
|
+
},
|
|
39828
|
+
"isOptional": false
|
|
39829
|
+
}
|
|
39830
|
+
],
|
|
39831
|
+
"name": "unavailable"
|
|
39832
|
+
}
|
|
39833
|
+
],
|
|
39834
|
+
"extendsTokenRanges": []
|
|
39835
|
+
},
|
|
36706
39836
|
{
|
|
36707
39837
|
"kind": "Function",
|
|
36708
39838
|
"canonicalReference": "@genesislcap/ai-assistant!withFreshMetaSnapshot:function(1)",
|