@genesislcap/ai-assistant 15.82.0 → 15.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +2811 -233
- package/dist/ai-assistant.d.ts +835 -93
- package/dist/chat-driver.cjs +452 -99
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +452 -99
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +1038 -42
- package/dist/dts/autopilot/autopilot-driver.d.ts +117 -11
- 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 +10 -0
- 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-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 +61 -17
- package/dist/dts/components/chat-driver/interaction-controller.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 +4 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +11 -0
- 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 +6 -2
- package/dist/dts/notifications/agent-notifications.d.ts.map +1 -1
- package/dist/dts/notifications/agent-notifier.d.ts +26 -4
- package/dist/dts/notifications/agent-notifier.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 +23 -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-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/test-interaction-context.d.ts +93 -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 +128 -17
- package/dist/dts/types/interaction-context.d.ts.map +1 -1
- package/dist/dts/types/interaction-interceptor.d.ts +48 -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/esm/autopilot/autopilot-driver.js +313 -60
- 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-driver/chat-driver.js +18 -2
- package/dist/esm/components/chat-driver/interaction-controller.js +232 -71
- package/dist/esm/components/settings-modal/settings-modal.template.js +2 -2
- package/dist/esm/config/define-stateful-agent.js +22 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/main/main.js +39 -3
- package/dist/esm/main/main.template.js +4 -1
- package/dist/esm/notifications/agent-notifications.js +11 -1
- package/dist/esm/notifications/agent-notifier.js +41 -7
- 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 +41 -8
- 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 +99 -0
- package/docs/notifications.md +55 -5
- 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
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
{
|
|
446
446
|
"kind": "TypeAlias",
|
|
447
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",
|
|
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. - `'turn-ended'` — a turn ended and the assistant is waiting for the person to type (GENC-1660): nothing else waits on them (no open interaction), the person did not stop the turn, and no autopilot is running for the flow. Only the `'needs-input'` level shows it.\n *\n * @beta\n */\n",
|
|
449
449
|
"excerptTokens": [
|
|
450
450
|
{
|
|
451
451
|
"kind": "Content",
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
"kind": "Content",
|
|
456
|
-
"text": "'widget-needs-input' | 'autopilot-handed-back' | 'autopilot-stopped'"
|
|
456
|
+
"text": "'widget-needs-input' | 'autopilot-handed-back' | 'autopilot-stopped' | 'turn-ended'"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
"kind": "Content",
|
|
@@ -981,6 +981,33 @@
|
|
|
981
981
|
"name": "AgenticActivityEvents",
|
|
982
982
|
"preserveMemberOrder": false,
|
|
983
983
|
"members": [
|
|
984
|
+
{
|
|
985
|
+
"kind": "PropertySignature",
|
|
986
|
+
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"agent-attention-ended\":member",
|
|
987
|
+
"docComment": "/**\n * An interaction no longer waits on the person (GENC-1660): it settled, or a claimant (such as the autopilot, on Resume) took it. A notification shown for it is stale, so the assistant for that session closes it if it is still showing. Published for every interaction, whether a notification was shown or not. Tab-local, like `agent-attention`.\n */\n",
|
|
988
|
+
"excerptTokens": [
|
|
989
|
+
{
|
|
990
|
+
"kind": "Content",
|
|
991
|
+
"text": "'agent-attention-ended': "
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"kind": "Content",
|
|
995
|
+
"text": "{\n sessionKey: string;\n interactionId: string;\n }"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"kind": "Content",
|
|
999
|
+
"text": ";"
|
|
1000
|
+
}
|
|
1001
|
+
],
|
|
1002
|
+
"isReadonly": false,
|
|
1003
|
+
"isOptional": false,
|
|
1004
|
+
"releaseTag": "Beta",
|
|
1005
|
+
"name": "\"agent-attention-ended\"",
|
|
1006
|
+
"propertyTypeTokenRange": {
|
|
1007
|
+
"startIndex": 1,
|
|
1008
|
+
"endIndex": 2
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
984
1011
|
{
|
|
985
1012
|
"kind": "PropertySignature",
|
|
986
1013
|
"canonicalReference": "@genesislcap/ai-assistant!AgenticActivityEvents#\"agent-attention\":member",
|
|
@@ -1493,7 +1520,7 @@
|
|
|
1493
1520
|
{
|
|
1494
1521
|
"kind": "TypeAlias",
|
|
1495
1522
|
"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",
|
|
1523
|
+
"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`), and every turn that ends with the assistant waiting for the person to type (GENC-1660).\n *\n * @beta\n */\n",
|
|
1497
1524
|
"excerptTokens": [
|
|
1498
1525
|
{
|
|
1499
1526
|
"kind": "Content",
|
|
@@ -3184,7 +3211,7 @@
|
|
|
3184
3211
|
{
|
|
3185
3212
|
"kind": "TypeAlias",
|
|
3186
3213
|
"canonicalReference": "@genesislcap/ai-assistant!AiChatInteraction:type",
|
|
3187
|
-
"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",
|
|
3214
|
+
"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",
|
|
3188
3215
|
"excerptTokens": [
|
|
3189
3216
|
{
|
|
3190
3217
|
"kind": "Content",
|
|
@@ -3202,6 +3229,14 @@
|
|
|
3202
3229
|
"kind": "Content",
|
|
3203
3230
|
"text": "unknown"
|
|
3204
3231
|
},
|
|
3232
|
+
{
|
|
3233
|
+
"kind": "Content",
|
|
3234
|
+
"text": ", TController = "
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
"kind": "Content",
|
|
3238
|
+
"text": "unknown"
|
|
3239
|
+
},
|
|
3205
3240
|
{
|
|
3206
3241
|
"kind": "Content",
|
|
3207
3242
|
"text": "> = "
|
|
@@ -3217,7 +3252,16 @@
|
|
|
3217
3252
|
},
|
|
3218
3253
|
{
|
|
3219
3254
|
"kind": "Content",
|
|
3220
|
-
"text": "
|
|
3255
|
+
"text": "<"
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"kind": "Reference",
|
|
3259
|
+
"text": "Record",
|
|
3260
|
+
"canonicalReference": "!Record:type"
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
"kind": "Content",
|
|
3264
|
+
"text": "<string, unknown>, unknown, TController>;\n} | {\n status: 'resolved';\n data: TData;\n result: "
|
|
3221
3265
|
},
|
|
3222
3266
|
{
|
|
3223
3267
|
"kind": "Reference",
|
|
@@ -3267,11 +3311,22 @@
|
|
|
3267
3311
|
"startIndex": 3,
|
|
3268
3312
|
"endIndex": 4
|
|
3269
3313
|
}
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
"typeParameterName": "TController",
|
|
3317
|
+
"constraintTokenRange": {
|
|
3318
|
+
"startIndex": 0,
|
|
3319
|
+
"endIndex": 0
|
|
3320
|
+
},
|
|
3321
|
+
"defaultTypeTokenRange": {
|
|
3322
|
+
"startIndex": 5,
|
|
3323
|
+
"endIndex": 6
|
|
3324
|
+
}
|
|
3270
3325
|
}
|
|
3271
3326
|
],
|
|
3272
3327
|
"typeTokenRange": {
|
|
3273
|
-
"startIndex":
|
|
3274
|
-
"endIndex":
|
|
3328
|
+
"startIndex": 7,
|
|
3329
|
+
"endIndex": 16
|
|
3275
3330
|
}
|
|
3276
3331
|
},
|
|
3277
3332
|
{
|
|
@@ -3357,6 +3412,14 @@
|
|
|
3357
3412
|
"kind": "Content",
|
|
3358
3413
|
"text": "unknown"
|
|
3359
3414
|
},
|
|
3415
|
+
{
|
|
3416
|
+
"kind": "Content",
|
|
3417
|
+
"text": ", TController = "
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
"kind": "Content",
|
|
3421
|
+
"text": "unknown"
|
|
3422
|
+
},
|
|
3360
3423
|
{
|
|
3361
3424
|
"kind": "Content",
|
|
3362
3425
|
"text": "> "
|
|
@@ -3386,6 +3449,17 @@
|
|
|
3386
3449
|
"startIndex": 3,
|
|
3387
3450
|
"endIndex": 4
|
|
3388
3451
|
}
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
"typeParameterName": "TController",
|
|
3455
|
+
"constraintTokenRange": {
|
|
3456
|
+
"startIndex": 0,
|
|
3457
|
+
"endIndex": 0
|
|
3458
|
+
},
|
|
3459
|
+
"defaultTypeTokenRange": {
|
|
3460
|
+
"startIndex": 5,
|
|
3461
|
+
"endIndex": 6
|
|
3462
|
+
}
|
|
3389
3463
|
}
|
|
3390
3464
|
],
|
|
3391
3465
|
"name": "AiChatWidget",
|
|
@@ -3407,7 +3481,7 @@
|
|
|
3407
3481
|
},
|
|
3408
3482
|
{
|
|
3409
3483
|
"kind": "Content",
|
|
3410
|
-
"text": "<TData, TResult>"
|
|
3484
|
+
"text": "<TData, TResult, TController>"
|
|
3411
3485
|
},
|
|
3412
3486
|
{
|
|
3413
3487
|
"kind": "Content",
|
|
@@ -4305,7 +4379,7 @@
|
|
|
4305
4379
|
{
|
|
4306
4380
|
"kind": "MethodSignature",
|
|
4307
4381
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionCheckpoint:member(1)",
|
|
4308
|
-
"docComment": "/**\n *
|
|
4382
|
+
"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",
|
|
4309
4383
|
"excerptTokens": [
|
|
4310
4384
|
{
|
|
4311
4385
|
"kind": "Content",
|
|
@@ -4335,6 +4409,43 @@
|
|
|
4335
4409
|
"parameters": [],
|
|
4336
4410
|
"name": "getInteractionCheckpoint"
|
|
4337
4411
|
},
|
|
4412
|
+
{
|
|
4413
|
+
"kind": "MethodSignature",
|
|
4414
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionCheckpoints:member(1)",
|
|
4415
|
+
"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",
|
|
4416
|
+
"excerptTokens": [
|
|
4417
|
+
{
|
|
4418
|
+
"kind": "Content",
|
|
4419
|
+
"text": "getInteractionCheckpoints?(): "
|
|
4420
|
+
},
|
|
4421
|
+
{
|
|
4422
|
+
"kind": "Content",
|
|
4423
|
+
"text": "readonly "
|
|
4424
|
+
},
|
|
4425
|
+
{
|
|
4426
|
+
"kind": "Reference",
|
|
4427
|
+
"text": "PersistedInteractionCheckpoint",
|
|
4428
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
4429
|
+
},
|
|
4430
|
+
{
|
|
4431
|
+
"kind": "Content",
|
|
4432
|
+
"text": "[]"
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
"kind": "Content",
|
|
4436
|
+
"text": ";"
|
|
4437
|
+
}
|
|
4438
|
+
],
|
|
4439
|
+
"isOptional": true,
|
|
4440
|
+
"returnTypeTokenRange": {
|
|
4441
|
+
"startIndex": 1,
|
|
4442
|
+
"endIndex": 4
|
|
4443
|
+
},
|
|
4444
|
+
"releaseTag": "Beta",
|
|
4445
|
+
"overloadIndex": 1,
|
|
4446
|
+
"parameters": [],
|
|
4447
|
+
"name": "getInteractionCheckpoints"
|
|
4448
|
+
},
|
|
4338
4449
|
{
|
|
4339
4450
|
"kind": "MethodSignature",
|
|
4340
4451
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionContext:member(1)",
|
|
@@ -5065,7 +5176,7 @@
|
|
|
5065
5176
|
{
|
|
5066
5177
|
"kind": "MethodSignature",
|
|
5067
5178
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoint:member(1)",
|
|
5068
|
-
"docComment": "/**\n * Bring back
|
|
5179
|
+
"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",
|
|
5069
5180
|
"excerptTokens": [
|
|
5070
5181
|
{
|
|
5071
5182
|
"kind": "Content",
|
|
@@ -5112,6 +5223,60 @@
|
|
|
5112
5223
|
],
|
|
5113
5224
|
"name": "restoreInteractionCheckpoint"
|
|
5114
5225
|
},
|
|
5226
|
+
{
|
|
5227
|
+
"kind": "MethodSignature",
|
|
5228
|
+
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoints:member(1)",
|
|
5229
|
+
"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",
|
|
5230
|
+
"excerptTokens": [
|
|
5231
|
+
{
|
|
5232
|
+
"kind": "Content",
|
|
5233
|
+
"text": "restoreInteractionCheckpoints?(saved: "
|
|
5234
|
+
},
|
|
5235
|
+
{
|
|
5236
|
+
"kind": "Content",
|
|
5237
|
+
"text": "readonly "
|
|
5238
|
+
},
|
|
5239
|
+
{
|
|
5240
|
+
"kind": "Reference",
|
|
5241
|
+
"text": "PersistedInteractionCheckpoint",
|
|
5242
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"kind": "Content",
|
|
5246
|
+
"text": "[]"
|
|
5247
|
+
},
|
|
5248
|
+
{
|
|
5249
|
+
"kind": "Content",
|
|
5250
|
+
"text": "): "
|
|
5251
|
+
},
|
|
5252
|
+
{
|
|
5253
|
+
"kind": "Content",
|
|
5254
|
+
"text": "void"
|
|
5255
|
+
},
|
|
5256
|
+
{
|
|
5257
|
+
"kind": "Content",
|
|
5258
|
+
"text": ";"
|
|
5259
|
+
}
|
|
5260
|
+
],
|
|
5261
|
+
"isOptional": true,
|
|
5262
|
+
"returnTypeTokenRange": {
|
|
5263
|
+
"startIndex": 5,
|
|
5264
|
+
"endIndex": 6
|
|
5265
|
+
},
|
|
5266
|
+
"releaseTag": "Beta",
|
|
5267
|
+
"overloadIndex": 1,
|
|
5268
|
+
"parameters": [
|
|
5269
|
+
{
|
|
5270
|
+
"parameterName": "saved",
|
|
5271
|
+
"parameterTypeTokenRange": {
|
|
5272
|
+
"startIndex": 1,
|
|
5273
|
+
"endIndex": 4
|
|
5274
|
+
},
|
|
5275
|
+
"isOptional": false
|
|
5276
|
+
}
|
|
5277
|
+
],
|
|
5278
|
+
"name": "restoreInteractionCheckpoints"
|
|
5279
|
+
},
|
|
5115
5280
|
{
|
|
5116
5281
|
"kind": "MethodSignature",
|
|
5117
5282
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#resumeRestoredFlow:member(1)",
|
|
@@ -5675,7 +5840,7 @@
|
|
|
5675
5840
|
{
|
|
5676
5841
|
"kind": "PropertySignature",
|
|
5677
5842
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"interaction-settled\":member",
|
|
5678
|
-
"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",
|
|
5843
|
+
"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",
|
|
5679
5844
|
"excerptTokens": [
|
|
5680
5845
|
{
|
|
5681
5846
|
"kind": "Content",
|
|
@@ -5688,7 +5853,7 @@
|
|
|
5688
5853
|
},
|
|
5689
5854
|
{
|
|
5690
5855
|
"kind": "Content",
|
|
5691
|
-
"text": "<{\n interactionId: string;\n answeredBy?: string;\n }>"
|
|
5856
|
+
"text": "<{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }>"
|
|
5692
5857
|
},
|
|
5693
5858
|
{
|
|
5694
5859
|
"kind": "Content",
|
|
@@ -7497,7 +7662,7 @@
|
|
|
7497
7662
|
{
|
|
7498
7663
|
"kind": "PropertySignature",
|
|
7499
7664
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#maxRefinements:member",
|
|
7500
|
-
"docComment": "/**\n *
|
|
7665
|
+
"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",
|
|
7501
7666
|
"excerptTokens": [
|
|
7502
7667
|
{
|
|
7503
7668
|
"kind": "Content",
|
|
@@ -7731,7 +7896,7 @@
|
|
|
7731
7896
|
{
|
|
7732
7897
|
"kind": "PropertySignature",
|
|
7733
7898
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#watchdogMs:member",
|
|
7734
|
-
"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",
|
|
7899
|
+
"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",
|
|
7735
7900
|
"excerptTokens": [
|
|
7736
7901
|
{
|
|
7737
7902
|
"kind": "Content",
|
|
@@ -7804,6 +7969,38 @@
|
|
|
7804
7969
|
"startIndex": 1,
|
|
7805
7970
|
"endIndex": 7
|
|
7806
7971
|
}
|
|
7972
|
+
},
|
|
7973
|
+
{
|
|
7974
|
+
"kind": "PropertySignature",
|
|
7975
|
+
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#widgetTools:member",
|
|
7976
|
+
"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",
|
|
7977
|
+
"excerptTokens": [
|
|
7978
|
+
{
|
|
7979
|
+
"kind": "Content",
|
|
7980
|
+
"text": "widgetTools?: "
|
|
7981
|
+
},
|
|
7982
|
+
{
|
|
7983
|
+
"kind": "Reference",
|
|
7984
|
+
"text": "WidgetTools",
|
|
7985
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools:interface"
|
|
7986
|
+
},
|
|
7987
|
+
{
|
|
7988
|
+
"kind": "Content",
|
|
7989
|
+
"text": "[]"
|
|
7990
|
+
},
|
|
7991
|
+
{
|
|
7992
|
+
"kind": "Content",
|
|
7993
|
+
"text": ";"
|
|
7994
|
+
}
|
|
7995
|
+
],
|
|
7996
|
+
"isReadonly": false,
|
|
7997
|
+
"isOptional": true,
|
|
7998
|
+
"releaseTag": "Beta",
|
|
7999
|
+
"name": "widgetTools",
|
|
8000
|
+
"propertyTypeTokenRange": {
|
|
8001
|
+
"startIndex": 1,
|
|
8002
|
+
"endIndex": 3
|
|
8003
|
+
}
|
|
7807
8004
|
}
|
|
7808
8005
|
],
|
|
7809
8006
|
"extendsTokenRanges": []
|
|
@@ -8390,6 +8587,33 @@
|
|
|
8390
8587
|
"endIndex": 2
|
|
8391
8588
|
}
|
|
8392
8589
|
},
|
|
8590
|
+
{
|
|
8591
|
+
"kind": "PropertySignature",
|
|
8592
|
+
"canonicalReference": "@genesislcap/ai-assistant!AutopilotCopy#waitingForUser:member",
|
|
8593
|
+
"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",
|
|
8594
|
+
"excerptTokens": [
|
|
8595
|
+
{
|
|
8596
|
+
"kind": "Content",
|
|
8597
|
+
"text": "waitingForUser: "
|
|
8598
|
+
},
|
|
8599
|
+
{
|
|
8600
|
+
"kind": "Content",
|
|
8601
|
+
"text": "string"
|
|
8602
|
+
},
|
|
8603
|
+
{
|
|
8604
|
+
"kind": "Content",
|
|
8605
|
+
"text": ";"
|
|
8606
|
+
}
|
|
8607
|
+
],
|
|
8608
|
+
"isReadonly": false,
|
|
8609
|
+
"isOptional": false,
|
|
8610
|
+
"releaseTag": "Beta",
|
|
8611
|
+
"name": "waitingForUser",
|
|
8612
|
+
"propertyTypeTokenRange": {
|
|
8613
|
+
"startIndex": 1,
|
|
8614
|
+
"endIndex": 2
|
|
8615
|
+
}
|
|
8616
|
+
},
|
|
8393
8617
|
{
|
|
8394
8618
|
"kind": "PropertySignature",
|
|
8395
8619
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotCopy#watchdogReason:member",
|
|
@@ -9539,7 +9763,16 @@
|
|
|
9539
9763
|
},
|
|
9540
9764
|
{
|
|
9541
9765
|
"kind": "Content",
|
|
9542
|
-
"text": "['payload']
|
|
9766
|
+
"text": "['payload'], "
|
|
9767
|
+
},
|
|
9768
|
+
{
|
|
9769
|
+
"kind": "Reference",
|
|
9770
|
+
"text": "HandBackController",
|
|
9771
|
+
"canonicalReference": "@genesislcap/ai-assistant!~HandBackController:class"
|
|
9772
|
+
},
|
|
9773
|
+
{
|
|
9774
|
+
"kind": "Content",
|
|
9775
|
+
"text": ">"
|
|
9543
9776
|
},
|
|
9544
9777
|
{
|
|
9545
9778
|
"kind": "Content",
|
|
@@ -9552,7 +9785,7 @@
|
|
|
9552
9785
|
"name": "interaction",
|
|
9553
9786
|
"propertyTypeTokenRange": {
|
|
9554
9787
|
"startIndex": 1,
|
|
9555
|
-
"endIndex":
|
|
9788
|
+
"endIndex": 9
|
|
9556
9789
|
},
|
|
9557
9790
|
"isStatic": false,
|
|
9558
9791
|
"isProtected": false,
|
|
@@ -9745,7 +9978,7 @@
|
|
|
9745
9978
|
{
|
|
9746
9979
|
"kind": "MethodSignature",
|
|
9747
9980
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHost#resume:member(1)",
|
|
9748
|
-
"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",
|
|
9981
|
+
"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",
|
|
9749
9982
|
"excerptTokens": [
|
|
9750
9983
|
{
|
|
9751
9984
|
"kind": "Content",
|
|
@@ -9920,7 +10153,7 @@
|
|
|
9920
10153
|
{
|
|
9921
10154
|
"kind": "PropertySignature",
|
|
9922
10155
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHostState#needsUser:member",
|
|
9923
|
-
"docComment": "/**\n * Whether
|
|
10156
|
+
"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",
|
|
9924
10157
|
"excerptTokens": [
|
|
9925
10158
|
{
|
|
9926
10159
|
"kind": "Content",
|
|
@@ -9974,7 +10207,7 @@
|
|
|
9974
10207
|
{
|
|
9975
10208
|
"kind": "PropertySignature",
|
|
9976
10209
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHostState#status:member",
|
|
9977
|
-
"docComment": "/**\n * The slim bar's one-line status.\n */\n",
|
|
10210
|
+
"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",
|
|
9978
10211
|
"excerptTokens": [
|
|
9979
10212
|
{
|
|
9980
10213
|
"kind": "Content",
|
|
@@ -10989,96 +11222,12 @@
|
|
|
10989
11222
|
},
|
|
10990
11223
|
{
|
|
10991
11224
|
"kind": "Method",
|
|
10992
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#
|
|
11225
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getInteractionCheckpoints:member(1)",
|
|
10993
11226
|
"docComment": "",
|
|
10994
11227
|
"excerptTokens": [
|
|
10995
11228
|
{
|
|
10996
11229
|
"kind": "Content",
|
|
10997
|
-
"text": "
|
|
10998
|
-
},
|
|
10999
|
-
{
|
|
11000
|
-
"kind": "Content",
|
|
11001
|
-
"text": "string"
|
|
11002
|
-
},
|
|
11003
|
-
{
|
|
11004
|
-
"kind": "Content",
|
|
11005
|
-
"text": "): "
|
|
11006
|
-
},
|
|
11007
|
-
{
|
|
11008
|
-
"kind": "Reference",
|
|
11009
|
-
"text": "InteractionContext",
|
|
11010
|
-
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
11011
|
-
},
|
|
11012
|
-
{
|
|
11013
|
-
"kind": "Content",
|
|
11014
|
-
"text": " | undefined"
|
|
11015
|
-
},
|
|
11016
|
-
{
|
|
11017
|
-
"kind": "Content",
|
|
11018
|
-
"text": ";"
|
|
11019
|
-
}
|
|
11020
|
-
],
|
|
11021
|
-
"isStatic": false,
|
|
11022
|
-
"returnTypeTokenRange": {
|
|
11023
|
-
"startIndex": 3,
|
|
11024
|
-
"endIndex": 5
|
|
11025
|
-
},
|
|
11026
|
-
"releaseTag": "Beta",
|
|
11027
|
-
"isProtected": false,
|
|
11028
|
-
"overloadIndex": 1,
|
|
11029
|
-
"parameters": [
|
|
11030
|
-
{
|
|
11031
|
-
"parameterName": "interactionId",
|
|
11032
|
-
"parameterTypeTokenRange": {
|
|
11033
|
-
"startIndex": 1,
|
|
11034
|
-
"endIndex": 2
|
|
11035
|
-
},
|
|
11036
|
-
"isOptional": false
|
|
11037
|
-
}
|
|
11038
|
-
],
|
|
11039
|
-
"isOptional": false,
|
|
11040
|
-
"isAbstract": false,
|
|
11041
|
-
"name": "getInteractionContext"
|
|
11042
|
-
},
|
|
11043
|
-
{
|
|
11044
|
-
"kind": "Method",
|
|
11045
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getPreambleTokens:member(1)",
|
|
11046
|
-
"docComment": "",
|
|
11047
|
-
"excerptTokens": [
|
|
11048
|
-
{
|
|
11049
|
-
"kind": "Content",
|
|
11050
|
-
"text": "getPreambleTokens(): "
|
|
11051
|
-
},
|
|
11052
|
-
{
|
|
11053
|
-
"kind": "Content",
|
|
11054
|
-
"text": "number | undefined"
|
|
11055
|
-
},
|
|
11056
|
-
{
|
|
11057
|
-
"kind": "Content",
|
|
11058
|
-
"text": ";"
|
|
11059
|
-
}
|
|
11060
|
-
],
|
|
11061
|
-
"isStatic": false,
|
|
11062
|
-
"returnTypeTokenRange": {
|
|
11063
|
-
"startIndex": 1,
|
|
11064
|
-
"endIndex": 2
|
|
11065
|
-
},
|
|
11066
|
-
"releaseTag": "Beta",
|
|
11067
|
-
"isProtected": false,
|
|
11068
|
-
"overloadIndex": 1,
|
|
11069
|
-
"parameters": [],
|
|
11070
|
-
"isOptional": false,
|
|
11071
|
-
"isAbstract": false,
|
|
11072
|
-
"name": "getPreambleTokens"
|
|
11073
|
-
},
|
|
11074
|
-
{
|
|
11075
|
-
"kind": "Method",
|
|
11076
|
-
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getRawHistory:member(1)",
|
|
11077
|
-
"docComment": "",
|
|
11078
|
-
"excerptTokens": [
|
|
11079
|
-
{
|
|
11080
|
-
"kind": "Content",
|
|
11081
|
-
"text": "getRawHistory(): "
|
|
11230
|
+
"text": "getInteractionCheckpoints(): "
|
|
11082
11231
|
},
|
|
11083
11232
|
{
|
|
11084
11233
|
"kind": "Content",
|
|
@@ -11086,8 +11235,132 @@
|
|
|
11086
11235
|
},
|
|
11087
11236
|
{
|
|
11088
11237
|
"kind": "Reference",
|
|
11089
|
-
"text": "
|
|
11090
|
-
"canonicalReference": "@genesislcap/
|
|
11238
|
+
"text": "PersistedInteractionCheckpoint",
|
|
11239
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
11240
|
+
},
|
|
11241
|
+
{
|
|
11242
|
+
"kind": "Content",
|
|
11243
|
+
"text": "[]"
|
|
11244
|
+
},
|
|
11245
|
+
{
|
|
11246
|
+
"kind": "Content",
|
|
11247
|
+
"text": ";"
|
|
11248
|
+
}
|
|
11249
|
+
],
|
|
11250
|
+
"isStatic": false,
|
|
11251
|
+
"returnTypeTokenRange": {
|
|
11252
|
+
"startIndex": 1,
|
|
11253
|
+
"endIndex": 4
|
|
11254
|
+
},
|
|
11255
|
+
"releaseTag": "Beta",
|
|
11256
|
+
"isProtected": false,
|
|
11257
|
+
"overloadIndex": 1,
|
|
11258
|
+
"parameters": [],
|
|
11259
|
+
"isOptional": false,
|
|
11260
|
+
"isAbstract": false,
|
|
11261
|
+
"name": "getInteractionCheckpoints"
|
|
11262
|
+
},
|
|
11263
|
+
{
|
|
11264
|
+
"kind": "Method",
|
|
11265
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getInteractionContext:member(1)",
|
|
11266
|
+
"docComment": "",
|
|
11267
|
+
"excerptTokens": [
|
|
11268
|
+
{
|
|
11269
|
+
"kind": "Content",
|
|
11270
|
+
"text": "getInteractionContext(interactionId: "
|
|
11271
|
+
},
|
|
11272
|
+
{
|
|
11273
|
+
"kind": "Content",
|
|
11274
|
+
"text": "string"
|
|
11275
|
+
},
|
|
11276
|
+
{
|
|
11277
|
+
"kind": "Content",
|
|
11278
|
+
"text": "): "
|
|
11279
|
+
},
|
|
11280
|
+
{
|
|
11281
|
+
"kind": "Reference",
|
|
11282
|
+
"text": "InteractionContext",
|
|
11283
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
11284
|
+
},
|
|
11285
|
+
{
|
|
11286
|
+
"kind": "Content",
|
|
11287
|
+
"text": " | undefined"
|
|
11288
|
+
},
|
|
11289
|
+
{
|
|
11290
|
+
"kind": "Content",
|
|
11291
|
+
"text": ";"
|
|
11292
|
+
}
|
|
11293
|
+
],
|
|
11294
|
+
"isStatic": false,
|
|
11295
|
+
"returnTypeTokenRange": {
|
|
11296
|
+
"startIndex": 3,
|
|
11297
|
+
"endIndex": 5
|
|
11298
|
+
},
|
|
11299
|
+
"releaseTag": "Beta",
|
|
11300
|
+
"isProtected": false,
|
|
11301
|
+
"overloadIndex": 1,
|
|
11302
|
+
"parameters": [
|
|
11303
|
+
{
|
|
11304
|
+
"parameterName": "interactionId",
|
|
11305
|
+
"parameterTypeTokenRange": {
|
|
11306
|
+
"startIndex": 1,
|
|
11307
|
+
"endIndex": 2
|
|
11308
|
+
},
|
|
11309
|
+
"isOptional": false
|
|
11310
|
+
}
|
|
11311
|
+
],
|
|
11312
|
+
"isOptional": false,
|
|
11313
|
+
"isAbstract": false,
|
|
11314
|
+
"name": "getInteractionContext"
|
|
11315
|
+
},
|
|
11316
|
+
{
|
|
11317
|
+
"kind": "Method",
|
|
11318
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getPreambleTokens:member(1)",
|
|
11319
|
+
"docComment": "",
|
|
11320
|
+
"excerptTokens": [
|
|
11321
|
+
{
|
|
11322
|
+
"kind": "Content",
|
|
11323
|
+
"text": "getPreambleTokens(): "
|
|
11324
|
+
},
|
|
11325
|
+
{
|
|
11326
|
+
"kind": "Content",
|
|
11327
|
+
"text": "number | undefined"
|
|
11328
|
+
},
|
|
11329
|
+
{
|
|
11330
|
+
"kind": "Content",
|
|
11331
|
+
"text": ";"
|
|
11332
|
+
}
|
|
11333
|
+
],
|
|
11334
|
+
"isStatic": false,
|
|
11335
|
+
"returnTypeTokenRange": {
|
|
11336
|
+
"startIndex": 1,
|
|
11337
|
+
"endIndex": 2
|
|
11338
|
+
},
|
|
11339
|
+
"releaseTag": "Beta",
|
|
11340
|
+
"isProtected": false,
|
|
11341
|
+
"overloadIndex": 1,
|
|
11342
|
+
"parameters": [],
|
|
11343
|
+
"isOptional": false,
|
|
11344
|
+
"isAbstract": false,
|
|
11345
|
+
"name": "getPreambleTokens"
|
|
11346
|
+
},
|
|
11347
|
+
{
|
|
11348
|
+
"kind": "Method",
|
|
11349
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getRawHistory:member(1)",
|
|
11350
|
+
"docComment": "",
|
|
11351
|
+
"excerptTokens": [
|
|
11352
|
+
{
|
|
11353
|
+
"kind": "Content",
|
|
11354
|
+
"text": "getRawHistory(): "
|
|
11355
|
+
},
|
|
11356
|
+
{
|
|
11357
|
+
"kind": "Content",
|
|
11358
|
+
"text": "readonly "
|
|
11359
|
+
},
|
|
11360
|
+
{
|
|
11361
|
+
"kind": "Reference",
|
|
11362
|
+
"text": "ChatMessage",
|
|
11363
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
11091
11364
|
},
|
|
11092
11365
|
{
|
|
11093
11366
|
"kind": "Content",
|
|
@@ -11884,6 +12157,63 @@
|
|
|
11884
12157
|
"isAbstract": false,
|
|
11885
12158
|
"name": "restoreInteractionCheckpoint"
|
|
11886
12159
|
},
|
|
12160
|
+
{
|
|
12161
|
+
"kind": "Method",
|
|
12162
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#restoreInteractionCheckpoints:member(1)",
|
|
12163
|
+
"docComment": "",
|
|
12164
|
+
"excerptTokens": [
|
|
12165
|
+
{
|
|
12166
|
+
"kind": "Content",
|
|
12167
|
+
"text": "restoreInteractionCheckpoints(saved: "
|
|
12168
|
+
},
|
|
12169
|
+
{
|
|
12170
|
+
"kind": "Content",
|
|
12171
|
+
"text": "readonly "
|
|
12172
|
+
},
|
|
12173
|
+
{
|
|
12174
|
+
"kind": "Reference",
|
|
12175
|
+
"text": "PersistedInteractionCheckpoint",
|
|
12176
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
12177
|
+
},
|
|
12178
|
+
{
|
|
12179
|
+
"kind": "Content",
|
|
12180
|
+
"text": "[]"
|
|
12181
|
+
},
|
|
12182
|
+
{
|
|
12183
|
+
"kind": "Content",
|
|
12184
|
+
"text": "): "
|
|
12185
|
+
},
|
|
12186
|
+
{
|
|
12187
|
+
"kind": "Content",
|
|
12188
|
+
"text": "void"
|
|
12189
|
+
},
|
|
12190
|
+
{
|
|
12191
|
+
"kind": "Content",
|
|
12192
|
+
"text": ";"
|
|
12193
|
+
}
|
|
12194
|
+
],
|
|
12195
|
+
"isStatic": false,
|
|
12196
|
+
"returnTypeTokenRange": {
|
|
12197
|
+
"startIndex": 5,
|
|
12198
|
+
"endIndex": 6
|
|
12199
|
+
},
|
|
12200
|
+
"releaseTag": "Beta",
|
|
12201
|
+
"isProtected": false,
|
|
12202
|
+
"overloadIndex": 1,
|
|
12203
|
+
"parameters": [
|
|
12204
|
+
{
|
|
12205
|
+
"parameterName": "saved",
|
|
12206
|
+
"parameterTypeTokenRange": {
|
|
12207
|
+
"startIndex": 1,
|
|
12208
|
+
"endIndex": 4
|
|
12209
|
+
},
|
|
12210
|
+
"isOptional": false
|
|
12211
|
+
}
|
|
12212
|
+
],
|
|
12213
|
+
"isOptional": false,
|
|
12214
|
+
"isAbstract": false,
|
|
12215
|
+
"name": "restoreInteractionCheckpoints"
|
|
12216
|
+
},
|
|
11887
12217
|
{
|
|
11888
12218
|
"kind": "Method",
|
|
11889
12219
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#resumeRestoredFlow:member(1)",
|
|
@@ -13168,7 +13498,7 @@
|
|
|
13168
13498
|
{
|
|
13169
13499
|
"kind": "Method",
|
|
13170
13500
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoint:member(1)",
|
|
13171
|
-
"docComment": "/**\n *
|
|
13501
|
+
"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",
|
|
13172
13502
|
"excerptTokens": [
|
|
13173
13503
|
{
|
|
13174
13504
|
"kind": "Content",
|
|
@@ -13201,6 +13531,46 @@
|
|
|
13201
13531
|
"isAbstract": false,
|
|
13202
13532
|
"name": "getInteractionCheckpoint"
|
|
13203
13533
|
},
|
|
13534
|
+
{
|
|
13535
|
+
"kind": "Method",
|
|
13536
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoints:member(1)",
|
|
13537
|
+
"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",
|
|
13538
|
+
"excerptTokens": [
|
|
13539
|
+
{
|
|
13540
|
+
"kind": "Content",
|
|
13541
|
+
"text": "getInteractionCheckpoints(): "
|
|
13542
|
+
},
|
|
13543
|
+
{
|
|
13544
|
+
"kind": "Content",
|
|
13545
|
+
"text": "readonly "
|
|
13546
|
+
},
|
|
13547
|
+
{
|
|
13548
|
+
"kind": "Reference",
|
|
13549
|
+
"text": "PersistedInteractionCheckpoint",
|
|
13550
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
13551
|
+
},
|
|
13552
|
+
{
|
|
13553
|
+
"kind": "Content",
|
|
13554
|
+
"text": "[]"
|
|
13555
|
+
},
|
|
13556
|
+
{
|
|
13557
|
+
"kind": "Content",
|
|
13558
|
+
"text": ";"
|
|
13559
|
+
}
|
|
13560
|
+
],
|
|
13561
|
+
"isStatic": false,
|
|
13562
|
+
"returnTypeTokenRange": {
|
|
13563
|
+
"startIndex": 1,
|
|
13564
|
+
"endIndex": 4
|
|
13565
|
+
},
|
|
13566
|
+
"releaseTag": "Public",
|
|
13567
|
+
"isProtected": false,
|
|
13568
|
+
"overloadIndex": 1,
|
|
13569
|
+
"parameters": [],
|
|
13570
|
+
"isOptional": false,
|
|
13571
|
+
"isAbstract": false,
|
|
13572
|
+
"name": "getInteractionCheckpoints"
|
|
13573
|
+
},
|
|
13204
13574
|
{
|
|
13205
13575
|
"kind": "Method",
|
|
13206
13576
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionContext:member(1)",
|
|
@@ -14438,7 +14808,7 @@
|
|
|
14438
14808
|
{
|
|
14439
14809
|
"kind": "Method",
|
|
14440
14810
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreInteractionCheckpoint:member(1)",
|
|
14441
|
-
"docComment": "/**\n * Bring back
|
|
14811
|
+
"docComment": "/**\n * Bring back one checkpoint, or none (which clears every checkpoint held).\n *\n * @deprecated\n *\n * Use `restoreInteractionCheckpoints`.\n */\n",
|
|
14442
14812
|
"excerptTokens": [
|
|
14443
14813
|
{
|
|
14444
14814
|
"kind": "Content",
|
|
@@ -14488,6 +14858,63 @@
|
|
|
14488
14858
|
"isAbstract": false,
|
|
14489
14859
|
"name": "restoreInteractionCheckpoint"
|
|
14490
14860
|
},
|
|
14861
|
+
{
|
|
14862
|
+
"kind": "Method",
|
|
14863
|
+
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreInteractionCheckpoints:member(1)",
|
|
14864
|
+
"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",
|
|
14865
|
+
"excerptTokens": [
|
|
14866
|
+
{
|
|
14867
|
+
"kind": "Content",
|
|
14868
|
+
"text": "restoreInteractionCheckpoints(saved: "
|
|
14869
|
+
},
|
|
14870
|
+
{
|
|
14871
|
+
"kind": "Content",
|
|
14872
|
+
"text": "readonly "
|
|
14873
|
+
},
|
|
14874
|
+
{
|
|
14875
|
+
"kind": "Reference",
|
|
14876
|
+
"text": "PersistedInteractionCheckpoint",
|
|
14877
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedInteractionCheckpoint:interface"
|
|
14878
|
+
},
|
|
14879
|
+
{
|
|
14880
|
+
"kind": "Content",
|
|
14881
|
+
"text": "[]"
|
|
14882
|
+
},
|
|
14883
|
+
{
|
|
14884
|
+
"kind": "Content",
|
|
14885
|
+
"text": "): "
|
|
14886
|
+
},
|
|
14887
|
+
{
|
|
14888
|
+
"kind": "Content",
|
|
14889
|
+
"text": "void"
|
|
14890
|
+
},
|
|
14891
|
+
{
|
|
14892
|
+
"kind": "Content",
|
|
14893
|
+
"text": ";"
|
|
14894
|
+
}
|
|
14895
|
+
],
|
|
14896
|
+
"isStatic": false,
|
|
14897
|
+
"returnTypeTokenRange": {
|
|
14898
|
+
"startIndex": 5,
|
|
14899
|
+
"endIndex": 6
|
|
14900
|
+
},
|
|
14901
|
+
"releaseTag": "Public",
|
|
14902
|
+
"isProtected": false,
|
|
14903
|
+
"overloadIndex": 1,
|
|
14904
|
+
"parameters": [
|
|
14905
|
+
{
|
|
14906
|
+
"parameterName": "saved",
|
|
14907
|
+
"parameterTypeTokenRange": {
|
|
14908
|
+
"startIndex": 1,
|
|
14909
|
+
"endIndex": 4
|
|
14910
|
+
},
|
|
14911
|
+
"isOptional": false
|
|
14912
|
+
}
|
|
14913
|
+
],
|
|
14914
|
+
"isOptional": false,
|
|
14915
|
+
"isAbstract": false,
|
|
14916
|
+
"name": "restoreInteractionCheckpoints"
|
|
14917
|
+
},
|
|
14491
14918
|
{
|
|
14492
14919
|
"kind": "Method",
|
|
14493
14920
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#resumeRestoredFlow:member(1)",
|
|
@@ -15652,6 +16079,404 @@
|
|
|
15652
16079
|
],
|
|
15653
16080
|
"extendsTokenRanges": []
|
|
15654
16081
|
},
|
|
16082
|
+
{
|
|
16083
|
+
"kind": "Interface",
|
|
16084
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost:interface",
|
|
16085
|
+
"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",
|
|
16086
|
+
"excerptTokens": [
|
|
16087
|
+
{
|
|
16088
|
+
"kind": "Content",
|
|
16089
|
+
"text": "export interface ControllerHost<TResult = "
|
|
16090
|
+
},
|
|
16091
|
+
{
|
|
16092
|
+
"kind": "Content",
|
|
16093
|
+
"text": "unknown"
|
|
16094
|
+
},
|
|
16095
|
+
{
|
|
16096
|
+
"kind": "Content",
|
|
16097
|
+
"text": ", TState extends "
|
|
16098
|
+
},
|
|
16099
|
+
{
|
|
16100
|
+
"kind": "Content",
|
|
16101
|
+
"text": "object"
|
|
16102
|
+
},
|
|
16103
|
+
{
|
|
16104
|
+
"kind": "Content",
|
|
16105
|
+
"text": " = "
|
|
16106
|
+
},
|
|
16107
|
+
{
|
|
16108
|
+
"kind": "Content",
|
|
16109
|
+
"text": "object"
|
|
16110
|
+
},
|
|
16111
|
+
{
|
|
16112
|
+
"kind": "Content",
|
|
16113
|
+
"text": "> "
|
|
16114
|
+
}
|
|
16115
|
+
],
|
|
16116
|
+
"fileUrlPath": "src/types/interaction-context.ts",
|
|
16117
|
+
"releaseTag": "Beta",
|
|
16118
|
+
"typeParameters": [
|
|
16119
|
+
{
|
|
16120
|
+
"typeParameterName": "TResult",
|
|
16121
|
+
"constraintTokenRange": {
|
|
16122
|
+
"startIndex": 0,
|
|
16123
|
+
"endIndex": 0
|
|
16124
|
+
},
|
|
16125
|
+
"defaultTypeTokenRange": {
|
|
16126
|
+
"startIndex": 1,
|
|
16127
|
+
"endIndex": 2
|
|
16128
|
+
}
|
|
16129
|
+
},
|
|
16130
|
+
{
|
|
16131
|
+
"typeParameterName": "TState",
|
|
16132
|
+
"constraintTokenRange": {
|
|
16133
|
+
"startIndex": 3,
|
|
16134
|
+
"endIndex": 4
|
|
16135
|
+
},
|
|
16136
|
+
"defaultTypeTokenRange": {
|
|
16137
|
+
"startIndex": 5,
|
|
16138
|
+
"endIndex": 6
|
|
16139
|
+
}
|
|
16140
|
+
}
|
|
16141
|
+
],
|
|
16142
|
+
"name": "ControllerHost",
|
|
16143
|
+
"preserveMemberOrder": false,
|
|
16144
|
+
"members": [
|
|
16145
|
+
{
|
|
16146
|
+
"kind": "MethodSignature",
|
|
16147
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#exposeDecision:member(1)",
|
|
16148
|
+
"docComment": "/**\n * See {@link InteractionContext.exposeDecision}. Absent on a stand-in host.\n */\n",
|
|
16149
|
+
"excerptTokens": [
|
|
16150
|
+
{
|
|
16151
|
+
"kind": "Content",
|
|
16152
|
+
"text": "exposeDecision?(decision: "
|
|
16153
|
+
},
|
|
16154
|
+
{
|
|
16155
|
+
"kind": "Reference",
|
|
16156
|
+
"text": "DecisionSpec",
|
|
16157
|
+
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec:interface"
|
|
16158
|
+
},
|
|
16159
|
+
{
|
|
16160
|
+
"kind": "Content",
|
|
16161
|
+
"text": "): "
|
|
16162
|
+
},
|
|
16163
|
+
{
|
|
16164
|
+
"kind": "Content",
|
|
16165
|
+
"text": "void"
|
|
16166
|
+
},
|
|
16167
|
+
{
|
|
16168
|
+
"kind": "Content",
|
|
16169
|
+
"text": ";"
|
|
16170
|
+
}
|
|
16171
|
+
],
|
|
16172
|
+
"isOptional": true,
|
|
16173
|
+
"returnTypeTokenRange": {
|
|
16174
|
+
"startIndex": 3,
|
|
16175
|
+
"endIndex": 4
|
|
16176
|
+
},
|
|
16177
|
+
"releaseTag": "Beta",
|
|
16178
|
+
"overloadIndex": 1,
|
|
16179
|
+
"parameters": [
|
|
16180
|
+
{
|
|
16181
|
+
"parameterName": "decision",
|
|
16182
|
+
"parameterTypeTokenRange": {
|
|
16183
|
+
"startIndex": 1,
|
|
16184
|
+
"endIndex": 2
|
|
16185
|
+
},
|
|
16186
|
+
"isOptional": false
|
|
16187
|
+
}
|
|
16188
|
+
],
|
|
16189
|
+
"name": "exposeDecision"
|
|
16190
|
+
},
|
|
16191
|
+
{
|
|
16192
|
+
"kind": "MethodSignature",
|
|
16193
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#exposeSurface:member(1)",
|
|
16194
|
+
"docComment": "/**\n * See {@link InteractionContext.exposeSurface}. Absent on a stand-in host.\n */\n",
|
|
16195
|
+
"excerptTokens": [
|
|
16196
|
+
{
|
|
16197
|
+
"kind": "Content",
|
|
16198
|
+
"text": "exposeSurface?(surface: "
|
|
16199
|
+
},
|
|
16200
|
+
{
|
|
16201
|
+
"kind": "Reference",
|
|
16202
|
+
"text": "SurfaceSpec",
|
|
16203
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec:interface"
|
|
16204
|
+
},
|
|
16205
|
+
{
|
|
16206
|
+
"kind": "Content",
|
|
16207
|
+
"text": "): "
|
|
16208
|
+
},
|
|
16209
|
+
{
|
|
16210
|
+
"kind": "Content",
|
|
16211
|
+
"text": "void"
|
|
16212
|
+
},
|
|
16213
|
+
{
|
|
16214
|
+
"kind": "Content",
|
|
16215
|
+
"text": ";"
|
|
16216
|
+
}
|
|
16217
|
+
],
|
|
16218
|
+
"isOptional": true,
|
|
16219
|
+
"returnTypeTokenRange": {
|
|
16220
|
+
"startIndex": 3,
|
|
16221
|
+
"endIndex": 4
|
|
16222
|
+
},
|
|
16223
|
+
"releaseTag": "Beta",
|
|
16224
|
+
"overloadIndex": 1,
|
|
16225
|
+
"parameters": [
|
|
16226
|
+
{
|
|
16227
|
+
"parameterName": "surface",
|
|
16228
|
+
"parameterTypeTokenRange": {
|
|
16229
|
+
"startIndex": 1,
|
|
16230
|
+
"endIndex": 2
|
|
16231
|
+
},
|
|
16232
|
+
"isOptional": false
|
|
16233
|
+
}
|
|
16234
|
+
],
|
|
16235
|
+
"name": "exposeSurface"
|
|
16236
|
+
},
|
|
16237
|
+
{
|
|
16238
|
+
"kind": "PropertySignature",
|
|
16239
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#heldBy:member",
|
|
16240
|
+
"docComment": "/**\n * Who holds the interaction right now: `'user'`, or the claimant's id. Absent means the person.\n */\n",
|
|
16241
|
+
"excerptTokens": [
|
|
16242
|
+
{
|
|
16243
|
+
"kind": "Content",
|
|
16244
|
+
"text": "readonly heldBy?: "
|
|
16245
|
+
},
|
|
16246
|
+
{
|
|
16247
|
+
"kind": "Reference",
|
|
16248
|
+
"text": "InteractionHolder",
|
|
16249
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHolder:type"
|
|
16250
|
+
},
|
|
16251
|
+
{
|
|
16252
|
+
"kind": "Content",
|
|
16253
|
+
"text": ";"
|
|
16254
|
+
}
|
|
16255
|
+
],
|
|
16256
|
+
"isReadonly": true,
|
|
16257
|
+
"isOptional": true,
|
|
16258
|
+
"releaseTag": "Beta",
|
|
16259
|
+
"name": "heldBy",
|
|
16260
|
+
"propertyTypeTokenRange": {
|
|
16261
|
+
"startIndex": 1,
|
|
16262
|
+
"endIndex": 2
|
|
16263
|
+
}
|
|
16264
|
+
},
|
|
16265
|
+
{
|
|
16266
|
+
"kind": "MethodSignature",
|
|
16267
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#notify:member(1)",
|
|
16268
|
+
"docComment": "/**\n * Something in the controller's state or view model changed. See {@link InteractionContext.notify}.\n */\n",
|
|
16269
|
+
"excerptTokens": [
|
|
16270
|
+
{
|
|
16271
|
+
"kind": "Content",
|
|
16272
|
+
"text": "notify(): "
|
|
16273
|
+
},
|
|
16274
|
+
{
|
|
16275
|
+
"kind": "Content",
|
|
16276
|
+
"text": "void"
|
|
16277
|
+
},
|
|
16278
|
+
{
|
|
16279
|
+
"kind": "Content",
|
|
16280
|
+
"text": ";"
|
|
16281
|
+
}
|
|
16282
|
+
],
|
|
16283
|
+
"isOptional": false,
|
|
16284
|
+
"returnTypeTokenRange": {
|
|
16285
|
+
"startIndex": 1,
|
|
16286
|
+
"endIndex": 2
|
|
16287
|
+
},
|
|
16288
|
+
"releaseTag": "Beta",
|
|
16289
|
+
"overloadIndex": 1,
|
|
16290
|
+
"parameters": [],
|
|
16291
|
+
"name": "notify"
|
|
16292
|
+
},
|
|
16293
|
+
{
|
|
16294
|
+
"kind": "MethodSignature",
|
|
16295
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#requestAttention:member(1)",
|
|
16296
|
+
"docComment": "/**\n * See {@link InteractionContext.requestAttention}. Absent on a stand-in host.\n */\n",
|
|
16297
|
+
"excerptTokens": [
|
|
16298
|
+
{
|
|
16299
|
+
"kind": "Content",
|
|
16300
|
+
"text": "requestAttention?(message?: "
|
|
16301
|
+
},
|
|
16302
|
+
{
|
|
16303
|
+
"kind": "Content",
|
|
16304
|
+
"text": "string"
|
|
16305
|
+
},
|
|
16306
|
+
{
|
|
16307
|
+
"kind": "Content",
|
|
16308
|
+
"text": "): "
|
|
16309
|
+
},
|
|
16310
|
+
{
|
|
16311
|
+
"kind": "Content",
|
|
16312
|
+
"text": "void"
|
|
16313
|
+
},
|
|
16314
|
+
{
|
|
16315
|
+
"kind": "Content",
|
|
16316
|
+
"text": ";"
|
|
16317
|
+
}
|
|
16318
|
+
],
|
|
16319
|
+
"isOptional": true,
|
|
16320
|
+
"returnTypeTokenRange": {
|
|
16321
|
+
"startIndex": 3,
|
|
16322
|
+
"endIndex": 4
|
|
16323
|
+
},
|
|
16324
|
+
"releaseTag": "Beta",
|
|
16325
|
+
"overloadIndex": 1,
|
|
16326
|
+
"parameters": [
|
|
16327
|
+
{
|
|
16328
|
+
"parameterName": "message",
|
|
16329
|
+
"parameterTypeTokenRange": {
|
|
16330
|
+
"startIndex": 1,
|
|
16331
|
+
"endIndex": 2
|
|
16332
|
+
},
|
|
16333
|
+
"isOptional": true
|
|
16334
|
+
}
|
|
16335
|
+
],
|
|
16336
|
+
"name": "requestAttention"
|
|
16337
|
+
},
|
|
16338
|
+
{
|
|
16339
|
+
"kind": "MethodSignature",
|
|
16340
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#resolve:member(1)",
|
|
16341
|
+
"docComment": "/**\n * Settle the interaction. See {@link InteractionContext.resolve}.\n */\n",
|
|
16342
|
+
"excerptTokens": [
|
|
16343
|
+
{
|
|
16344
|
+
"kind": "Content",
|
|
16345
|
+
"text": "resolve(result: "
|
|
16346
|
+
},
|
|
16347
|
+
{
|
|
16348
|
+
"kind": "Reference",
|
|
16349
|
+
"text": "InteractionResult",
|
|
16350
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionResult:type"
|
|
16351
|
+
},
|
|
16352
|
+
{
|
|
16353
|
+
"kind": "Content",
|
|
16354
|
+
"text": "<TResult>"
|
|
16355
|
+
},
|
|
16356
|
+
{
|
|
16357
|
+
"kind": "Content",
|
|
16358
|
+
"text": ", options?: "
|
|
16359
|
+
},
|
|
16360
|
+
{
|
|
16361
|
+
"kind": "Reference",
|
|
16362
|
+
"text": "InteractionResolveOptions",
|
|
16363
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface"
|
|
16364
|
+
},
|
|
16365
|
+
{
|
|
16366
|
+
"kind": "Content",
|
|
16367
|
+
"text": "): "
|
|
16368
|
+
},
|
|
16369
|
+
{
|
|
16370
|
+
"kind": "Content",
|
|
16371
|
+
"text": "void"
|
|
16372
|
+
},
|
|
16373
|
+
{
|
|
16374
|
+
"kind": "Content",
|
|
16375
|
+
"text": ";"
|
|
16376
|
+
}
|
|
16377
|
+
],
|
|
16378
|
+
"isOptional": false,
|
|
16379
|
+
"returnTypeTokenRange": {
|
|
16380
|
+
"startIndex": 6,
|
|
16381
|
+
"endIndex": 7
|
|
16382
|
+
},
|
|
16383
|
+
"releaseTag": "Beta",
|
|
16384
|
+
"overloadIndex": 1,
|
|
16385
|
+
"parameters": [
|
|
16386
|
+
{
|
|
16387
|
+
"parameterName": "result",
|
|
16388
|
+
"parameterTypeTokenRange": {
|
|
16389
|
+
"startIndex": 1,
|
|
16390
|
+
"endIndex": 3
|
|
16391
|
+
},
|
|
16392
|
+
"isOptional": false
|
|
16393
|
+
},
|
|
16394
|
+
{
|
|
16395
|
+
"parameterName": "options",
|
|
16396
|
+
"parameterTypeTokenRange": {
|
|
16397
|
+
"startIndex": 4,
|
|
16398
|
+
"endIndex": 5
|
|
16399
|
+
},
|
|
16400
|
+
"isOptional": true
|
|
16401
|
+
}
|
|
16402
|
+
],
|
|
16403
|
+
"name": "resolve"
|
|
16404
|
+
},
|
|
16405
|
+
{
|
|
16406
|
+
"kind": "MethodSignature",
|
|
16407
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#setWorking:member(1)",
|
|
16408
|
+
"docComment": "/**\n * See {@link InteractionContext.setWorking}. Absent on a stand-in host.\n */\n",
|
|
16409
|
+
"excerptTokens": [
|
|
16410
|
+
{
|
|
16411
|
+
"kind": "Content",
|
|
16412
|
+
"text": "setWorking?(working: "
|
|
16413
|
+
},
|
|
16414
|
+
{
|
|
16415
|
+
"kind": "Content",
|
|
16416
|
+
"text": "boolean"
|
|
16417
|
+
},
|
|
16418
|
+
{
|
|
16419
|
+
"kind": "Content",
|
|
16420
|
+
"text": "): "
|
|
16421
|
+
},
|
|
16422
|
+
{
|
|
16423
|
+
"kind": "Content",
|
|
16424
|
+
"text": "void"
|
|
16425
|
+
},
|
|
16426
|
+
{
|
|
16427
|
+
"kind": "Content",
|
|
16428
|
+
"text": ";"
|
|
16429
|
+
}
|
|
16430
|
+
],
|
|
16431
|
+
"isOptional": true,
|
|
16432
|
+
"returnTypeTokenRange": {
|
|
16433
|
+
"startIndex": 3,
|
|
16434
|
+
"endIndex": 4
|
|
16435
|
+
},
|
|
16436
|
+
"releaseTag": "Beta",
|
|
16437
|
+
"overloadIndex": 1,
|
|
16438
|
+
"parameters": [
|
|
16439
|
+
{
|
|
16440
|
+
"parameterName": "working",
|
|
16441
|
+
"parameterTypeTokenRange": {
|
|
16442
|
+
"startIndex": 1,
|
|
16443
|
+
"endIndex": 2
|
|
16444
|
+
},
|
|
16445
|
+
"isOptional": false
|
|
16446
|
+
}
|
|
16447
|
+
],
|
|
16448
|
+
"name": "setWorking"
|
|
16449
|
+
},
|
|
16450
|
+
{
|
|
16451
|
+
"kind": "PropertySignature",
|
|
16452
|
+
"canonicalReference": "@genesislcap/ai-assistant!ControllerHost#state:member",
|
|
16453
|
+
"docComment": "/**\n * Survives a remount; where a controller keeps anything the person has started.\n */\n",
|
|
16454
|
+
"excerptTokens": [
|
|
16455
|
+
{
|
|
16456
|
+
"kind": "Content",
|
|
16457
|
+
"text": "readonly state: "
|
|
16458
|
+
},
|
|
16459
|
+
{
|
|
16460
|
+
"kind": "Content",
|
|
16461
|
+
"text": "TState"
|
|
16462
|
+
},
|
|
16463
|
+
{
|
|
16464
|
+
"kind": "Content",
|
|
16465
|
+
"text": ";"
|
|
16466
|
+
}
|
|
16467
|
+
],
|
|
16468
|
+
"isReadonly": true,
|
|
16469
|
+
"isOptional": false,
|
|
16470
|
+
"releaseTag": "Beta",
|
|
16471
|
+
"name": "state",
|
|
16472
|
+
"propertyTypeTokenRange": {
|
|
16473
|
+
"startIndex": 1,
|
|
16474
|
+
"endIndex": 2
|
|
16475
|
+
}
|
|
16476
|
+
}
|
|
16477
|
+
],
|
|
16478
|
+
"extendsTokenRanges": []
|
|
16479
|
+
},
|
|
15655
16480
|
{
|
|
15656
16481
|
"kind": "Interface",
|
|
15657
16482
|
"canonicalReference": "@genesislcap/ai-assistant!CostSessionModelEntry:interface",
|
|
@@ -15939,6 +16764,105 @@
|
|
|
15939
16764
|
],
|
|
15940
16765
|
"extendsTokenRanges": []
|
|
15941
16766
|
},
|
|
16767
|
+
{
|
|
16768
|
+
"kind": "Function",
|
|
16769
|
+
"canonicalReference": "@genesislcap/ai-assistant!createTestInteractionContext:function(1)",
|
|
16770
|
+
"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",
|
|
16771
|
+
"excerptTokens": [
|
|
16772
|
+
{
|
|
16773
|
+
"kind": "Content",
|
|
16774
|
+
"text": "export declare function createTestInteractionContext<TController = "
|
|
16775
|
+
},
|
|
16776
|
+
{
|
|
16777
|
+
"kind": "Content",
|
|
16778
|
+
"text": "unknown"
|
|
16779
|
+
},
|
|
16780
|
+
{
|
|
16781
|
+
"kind": "Content",
|
|
16782
|
+
"text": ", TResult = "
|
|
16783
|
+
},
|
|
16784
|
+
{
|
|
16785
|
+
"kind": "Content",
|
|
16786
|
+
"text": "unknown"
|
|
16787
|
+
},
|
|
16788
|
+
{
|
|
16789
|
+
"kind": "Content",
|
|
16790
|
+
"text": ">(options?: "
|
|
16791
|
+
},
|
|
16792
|
+
{
|
|
16793
|
+
"kind": "Content",
|
|
16794
|
+
"text": "{\n readonly interactionId?: string;\n readonly data?: unknown;\n readonly controller?: "
|
|
16795
|
+
},
|
|
16796
|
+
{
|
|
16797
|
+
"kind": "Reference",
|
|
16798
|
+
"text": "InteractionControllerFactory",
|
|
16799
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type"
|
|
16800
|
+
},
|
|
16801
|
+
{
|
|
16802
|
+
"kind": "Content",
|
|
16803
|
+
"text": "<TController>;\n readonly checkpoint?: unknown;\n}"
|
|
16804
|
+
},
|
|
16805
|
+
{
|
|
16806
|
+
"kind": "Content",
|
|
16807
|
+
"text": "): "
|
|
16808
|
+
},
|
|
16809
|
+
{
|
|
16810
|
+
"kind": "Reference",
|
|
16811
|
+
"text": "TestInteractionContext",
|
|
16812
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext:interface"
|
|
16813
|
+
},
|
|
16814
|
+
{
|
|
16815
|
+
"kind": "Content",
|
|
16816
|
+
"text": "<TController, TResult>"
|
|
16817
|
+
},
|
|
16818
|
+
{
|
|
16819
|
+
"kind": "Content",
|
|
16820
|
+
"text": ";"
|
|
16821
|
+
}
|
|
16822
|
+
],
|
|
16823
|
+
"fileUrlPath": "src/state/test-interaction-context.ts",
|
|
16824
|
+
"returnTypeTokenRange": {
|
|
16825
|
+
"startIndex": 9,
|
|
16826
|
+
"endIndex": 11
|
|
16827
|
+
},
|
|
16828
|
+
"releaseTag": "Beta",
|
|
16829
|
+
"overloadIndex": 1,
|
|
16830
|
+
"parameters": [
|
|
16831
|
+
{
|
|
16832
|
+
"parameterName": "options",
|
|
16833
|
+
"parameterTypeTokenRange": {
|
|
16834
|
+
"startIndex": 5,
|
|
16835
|
+
"endIndex": 8
|
|
16836
|
+
},
|
|
16837
|
+
"isOptional": true
|
|
16838
|
+
}
|
|
16839
|
+
],
|
|
16840
|
+
"typeParameters": [
|
|
16841
|
+
{
|
|
16842
|
+
"typeParameterName": "TController",
|
|
16843
|
+
"constraintTokenRange": {
|
|
16844
|
+
"startIndex": 0,
|
|
16845
|
+
"endIndex": 0
|
|
16846
|
+
},
|
|
16847
|
+
"defaultTypeTokenRange": {
|
|
16848
|
+
"startIndex": 1,
|
|
16849
|
+
"endIndex": 2
|
|
16850
|
+
}
|
|
16851
|
+
},
|
|
16852
|
+
{
|
|
16853
|
+
"typeParameterName": "TResult",
|
|
16854
|
+
"constraintTokenRange": {
|
|
16855
|
+
"startIndex": 0,
|
|
16856
|
+
"endIndex": 0
|
|
16857
|
+
},
|
|
16858
|
+
"defaultTypeTokenRange": {
|
|
16859
|
+
"startIndex": 3,
|
|
16860
|
+
"endIndex": 4
|
|
16861
|
+
}
|
|
16862
|
+
}
|
|
16863
|
+
],
|
|
16864
|
+
"name": "createTestInteractionContext"
|
|
16865
|
+
},
|
|
15942
16866
|
{
|
|
15943
16867
|
"kind": "Function",
|
|
15944
16868
|
"canonicalReference": "@genesislcap/ai-assistant!createToolFold:function(1)",
|
|
@@ -16172,7 +17096,7 @@
|
|
|
16172
17096
|
},
|
|
16173
17097
|
{
|
|
16174
17098
|
"kind": "Content",
|
|
16175
|
-
"text": "string | {\n readonly id?: string;\n readonly label: string;\n readonly
|
|
17099
|
+
"text": "string | {\n readonly id?: string;\n readonly label: string;\n readonly unavailable?: () => string | undefined;\n}"
|
|
16176
17100
|
},
|
|
16177
17101
|
{
|
|
16178
17102
|
"kind": "Content",
|
|
@@ -16305,7 +17229,7 @@
|
|
|
16305
17229
|
{
|
|
16306
17230
|
"kind": "PropertySignature",
|
|
16307
17231
|
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#freeText:member",
|
|
16308
|
-
"docComment": "/**\n * Adds a `reply({ text })` action: an answer in the chooser's own words.\n */\n",
|
|
17232
|
+
"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",
|
|
16309
17233
|
"excerptTokens": [
|
|
16310
17234
|
{
|
|
16311
17235
|
"kind": "Content",
|
|
@@ -16329,6 +17253,33 @@
|
|
|
16329
17253
|
"endIndex": 2
|
|
16330
17254
|
}
|
|
16331
17255
|
},
|
|
17256
|
+
{
|
|
17257
|
+
"kind": "PropertySignature",
|
|
17258
|
+
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#freeTextUnavailable:member",
|
|
17259
|
+
"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",
|
|
17260
|
+
"excerptTokens": [
|
|
17261
|
+
{
|
|
17262
|
+
"kind": "Content",
|
|
17263
|
+
"text": "readonly freeTextUnavailable?: "
|
|
17264
|
+
},
|
|
17265
|
+
{
|
|
17266
|
+
"kind": "Content",
|
|
17267
|
+
"text": "() => string | undefined"
|
|
17268
|
+
},
|
|
17269
|
+
{
|
|
17270
|
+
"kind": "Content",
|
|
17271
|
+
"text": ";"
|
|
17272
|
+
}
|
|
17273
|
+
],
|
|
17274
|
+
"isReadonly": true,
|
|
17275
|
+
"isOptional": true,
|
|
17276
|
+
"releaseTag": "Beta",
|
|
17277
|
+
"name": "freeTextUnavailable",
|
|
17278
|
+
"propertyTypeTokenRange": {
|
|
17279
|
+
"startIndex": 1,
|
|
17280
|
+
"endIndex": 2
|
|
17281
|
+
}
|
|
17282
|
+
},
|
|
16332
17283
|
{
|
|
16333
17284
|
"kind": "PropertySignature",
|
|
16334
17285
|
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#multi:member",
|
|
@@ -16418,46 +17369,96 @@
|
|
|
16418
17369
|
"startIndex": 1,
|
|
16419
17370
|
"endIndex": 2
|
|
16420
17371
|
}
|
|
16421
|
-
}
|
|
16422
|
-
],
|
|
16423
|
-
"extendsTokenRanges": []
|
|
16424
|
-
},
|
|
16425
|
-
{
|
|
16426
|
-
"kind": "Variable",
|
|
16427
|
-
"canonicalReference": "@genesislcap/ai-assistant!DEFAULT_AGENT_NOTIFICATION_MESSAGE:var",
|
|
16428
|
-
"docComment": "/**\n * The notification's text when neither the app nor the widget gives one.\n *\n * @beta\n */\n",
|
|
16429
|
-
"excerptTokens": [
|
|
16430
|
-
{
|
|
16431
|
-
"kind": "Content",
|
|
16432
|
-
"text": "DEFAULT_AGENT_NOTIFICATION_MESSAGE = "
|
|
16433
17372
|
},
|
|
16434
17373
|
{
|
|
16435
|
-
"kind": "
|
|
16436
|
-
"
|
|
16437
|
-
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16446
|
-
|
|
16447
|
-
|
|
16448
|
-
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
|
|
16452
|
-
|
|
16453
|
-
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16457
|
-
|
|
16458
|
-
|
|
16459
|
-
|
|
16460
|
-
|
|
17374
|
+
"kind": "PropertySignature",
|
|
17375
|
+
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#views:member",
|
|
17376
|
+
"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",
|
|
17377
|
+
"excerptTokens": [
|
|
17378
|
+
{
|
|
17379
|
+
"kind": "Content",
|
|
17380
|
+
"text": "readonly views?: "
|
|
17381
|
+
},
|
|
17382
|
+
{
|
|
17383
|
+
"kind": "Reference",
|
|
17384
|
+
"text": "Readonly",
|
|
17385
|
+
"canonicalReference": "!Readonly:type"
|
|
17386
|
+
},
|
|
17387
|
+
{
|
|
17388
|
+
"kind": "Content",
|
|
17389
|
+
"text": "<"
|
|
17390
|
+
},
|
|
17391
|
+
{
|
|
17392
|
+
"kind": "Reference",
|
|
17393
|
+
"text": "Record",
|
|
17394
|
+
"canonicalReference": "!Record:type"
|
|
17395
|
+
},
|
|
17396
|
+
{
|
|
17397
|
+
"kind": "Content",
|
|
17398
|
+
"text": "<string, "
|
|
17399
|
+
},
|
|
17400
|
+
{
|
|
17401
|
+
"kind": "Reference",
|
|
17402
|
+
"text": "SurfaceView",
|
|
17403
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface"
|
|
17404
|
+
},
|
|
17405
|
+
{
|
|
17406
|
+
"kind": "Content",
|
|
17407
|
+
"text": ">>"
|
|
17408
|
+
},
|
|
17409
|
+
{
|
|
17410
|
+
"kind": "Content",
|
|
17411
|
+
"text": ";"
|
|
17412
|
+
}
|
|
17413
|
+
],
|
|
17414
|
+
"isReadonly": true,
|
|
17415
|
+
"isOptional": true,
|
|
17416
|
+
"releaseTag": "Beta",
|
|
17417
|
+
"name": "views",
|
|
17418
|
+
"propertyTypeTokenRange": {
|
|
17419
|
+
"startIndex": 1,
|
|
17420
|
+
"endIndex": 7
|
|
17421
|
+
}
|
|
17422
|
+
}
|
|
17423
|
+
],
|
|
17424
|
+
"extendsTokenRanges": []
|
|
17425
|
+
},
|
|
17426
|
+
{
|
|
17427
|
+
"kind": "Variable",
|
|
17428
|
+
"canonicalReference": "@genesislcap/ai-assistant!DEFAULT_AGENT_NOTIFICATION_MESSAGE:var",
|
|
17429
|
+
"docComment": "/**\n * The notification's text when neither the app nor the widget gives one.\n *\n * @beta\n */\n",
|
|
17430
|
+
"excerptTokens": [
|
|
17431
|
+
{
|
|
17432
|
+
"kind": "Content",
|
|
17433
|
+
"text": "DEFAULT_AGENT_NOTIFICATION_MESSAGE = "
|
|
17434
|
+
},
|
|
17435
|
+
{
|
|
17436
|
+
"kind": "Content",
|
|
17437
|
+
"text": "\"The assistant is ready for your next input\""
|
|
17438
|
+
}
|
|
17439
|
+
],
|
|
17440
|
+
"fileUrlPath": "src/notifications/agent-notifications.ts",
|
|
17441
|
+
"initializerTokenRange": {
|
|
17442
|
+
"startIndex": 1,
|
|
17443
|
+
"endIndex": 2
|
|
17444
|
+
},
|
|
17445
|
+
"isReadonly": true,
|
|
17446
|
+
"releaseTag": "Beta",
|
|
17447
|
+
"name": "DEFAULT_AGENT_NOTIFICATION_MESSAGE",
|
|
17448
|
+
"variableTypeTokenRange": {
|
|
17449
|
+
"startIndex": 0,
|
|
17450
|
+
"endIndex": 0
|
|
17451
|
+
}
|
|
17452
|
+
},
|
|
17453
|
+
{
|
|
17454
|
+
"kind": "Variable",
|
|
17455
|
+
"canonicalReference": "@genesislcap/ai-assistant!DEFAULT_DELEGATE_FRAMING:var",
|
|
17456
|
+
"docComment": "/**\n * How a delegated `user` message is framed for the model when its sender gives no phrase. Names no decorator, so the model has none to repeat.\n *\n * @beta\n */\n",
|
|
17457
|
+
"excerptTokens": [
|
|
17458
|
+
{
|
|
17459
|
+
"kind": "Content",
|
|
17460
|
+
"text": "DEFAULT_DELEGATE_FRAMING = "
|
|
17461
|
+
},
|
|
16461
17462
|
{
|
|
16462
17463
|
"kind": "Content",
|
|
16463
17464
|
"text": "\"Sent on the user's behalf.\""
|
|
@@ -16546,7 +17547,7 @@
|
|
|
16546
17547
|
{
|
|
16547
17548
|
"kind": "Function",
|
|
16548
17549
|
"canonicalReference": "@genesislcap/ai-assistant!defineAutopilot:function(1)",
|
|
16549
|
-
"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",
|
|
17550
|
+
"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",
|
|
16550
17551
|
"excerptTokens": [
|
|
16551
17552
|
{
|
|
16552
17553
|
"kind": "Content",
|
|
@@ -26102,6 +27103,86 @@
|
|
|
26102
27103
|
"parameters": [],
|
|
26103
27104
|
"name": "getAiPopoutManager"
|
|
26104
27105
|
},
|
|
27106
|
+
{
|
|
27107
|
+
"kind": "Function",
|
|
27108
|
+
"canonicalReference": "@genesislcap/ai-assistant!getInteractionContext:function(1)",
|
|
27109
|
+
"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",
|
|
27110
|
+
"excerptTokens": [
|
|
27111
|
+
{
|
|
27112
|
+
"kind": "Content",
|
|
27113
|
+
"text": "export declare function getInteractionContext<TController = "
|
|
27114
|
+
},
|
|
27115
|
+
{
|
|
27116
|
+
"kind": "Content",
|
|
27117
|
+
"text": "unknown"
|
|
27118
|
+
},
|
|
27119
|
+
{
|
|
27120
|
+
"kind": "Content",
|
|
27121
|
+
"text": ">(interactionId: "
|
|
27122
|
+
},
|
|
27123
|
+
{
|
|
27124
|
+
"kind": "Content",
|
|
27125
|
+
"text": "string"
|
|
27126
|
+
},
|
|
27127
|
+
{
|
|
27128
|
+
"kind": "Content",
|
|
27129
|
+
"text": "): "
|
|
27130
|
+
},
|
|
27131
|
+
{
|
|
27132
|
+
"kind": "Reference",
|
|
27133
|
+
"text": "InteractionContext",
|
|
27134
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
27135
|
+
},
|
|
27136
|
+
{
|
|
27137
|
+
"kind": "Content",
|
|
27138
|
+
"text": "<"
|
|
27139
|
+
},
|
|
27140
|
+
{
|
|
27141
|
+
"kind": "Reference",
|
|
27142
|
+
"text": "Record",
|
|
27143
|
+
"canonicalReference": "!Record:type"
|
|
27144
|
+
},
|
|
27145
|
+
{
|
|
27146
|
+
"kind": "Content",
|
|
27147
|
+
"text": "<string, unknown>, unknown, TController> | undefined"
|
|
27148
|
+
},
|
|
27149
|
+
{
|
|
27150
|
+
"kind": "Content",
|
|
27151
|
+
"text": ";"
|
|
27152
|
+
}
|
|
27153
|
+
],
|
|
27154
|
+
"fileUrlPath": "src/state/live-interactions.ts",
|
|
27155
|
+
"returnTypeTokenRange": {
|
|
27156
|
+
"startIndex": 5,
|
|
27157
|
+
"endIndex": 9
|
|
27158
|
+
},
|
|
27159
|
+
"releaseTag": "Beta",
|
|
27160
|
+
"overloadIndex": 1,
|
|
27161
|
+
"parameters": [
|
|
27162
|
+
{
|
|
27163
|
+
"parameterName": "interactionId",
|
|
27164
|
+
"parameterTypeTokenRange": {
|
|
27165
|
+
"startIndex": 3,
|
|
27166
|
+
"endIndex": 4
|
|
27167
|
+
},
|
|
27168
|
+
"isOptional": false
|
|
27169
|
+
}
|
|
27170
|
+
],
|
|
27171
|
+
"typeParameters": [
|
|
27172
|
+
{
|
|
27173
|
+
"typeParameterName": "TController",
|
|
27174
|
+
"constraintTokenRange": {
|
|
27175
|
+
"startIndex": 0,
|
|
27176
|
+
"endIndex": 0
|
|
27177
|
+
},
|
|
27178
|
+
"defaultTypeTokenRange": {
|
|
27179
|
+
"startIndex": 1,
|
|
27180
|
+
"endIndex": 2
|
|
27181
|
+
}
|
|
27182
|
+
}
|
|
27183
|
+
],
|
|
27184
|
+
"name": "getInteractionContext"
|
|
27185
|
+
},
|
|
26105
27186
|
{
|
|
26106
27187
|
"kind": "Function",
|
|
26107
27188
|
"canonicalReference": "@genesislcap/ai-assistant!getInteractionRegistration:function(1)",
|
|
@@ -26666,6 +27747,14 @@
|
|
|
26666
27747
|
"kind": "Content",
|
|
26667
27748
|
"text": "unknown"
|
|
26668
27749
|
},
|
|
27750
|
+
{
|
|
27751
|
+
"kind": "Content",
|
|
27752
|
+
"text": ", TController = "
|
|
27753
|
+
},
|
|
27754
|
+
{
|
|
27755
|
+
"kind": "Content",
|
|
27756
|
+
"text": "unknown"
|
|
27757
|
+
},
|
|
26669
27758
|
{
|
|
26670
27759
|
"kind": "Content",
|
|
26671
27760
|
"text": "> "
|
|
@@ -26695,6 +27784,17 @@
|
|
|
26695
27784
|
"startIndex": 6,
|
|
26696
27785
|
"endIndex": 7
|
|
26697
27786
|
}
|
|
27787
|
+
},
|
|
27788
|
+
{
|
|
27789
|
+
"typeParameterName": "TController",
|
|
27790
|
+
"constraintTokenRange": {
|
|
27791
|
+
"startIndex": 0,
|
|
27792
|
+
"endIndex": 0
|
|
27793
|
+
},
|
|
27794
|
+
"defaultTypeTokenRange": {
|
|
27795
|
+
"startIndex": 8,
|
|
27796
|
+
"endIndex": 9
|
|
27797
|
+
}
|
|
26698
27798
|
}
|
|
26699
27799
|
],
|
|
26700
27800
|
"name": "InteractionContext",
|
|
@@ -26703,7 +27803,7 @@
|
|
|
26703
27803
|
{
|
|
26704
27804
|
"kind": "PropertySignature",
|
|
26705
27805
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#checkpoint:member",
|
|
26706
|
-
"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
|
|
27806
|
+
"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",
|
|
26707
27807
|
"excerptTokens": [
|
|
26708
27808
|
{
|
|
26709
27809
|
"kind": "Content",
|
|
@@ -26775,7 +27875,7 @@
|
|
|
26775
27875
|
{
|
|
26776
27876
|
"kind": "PropertySignature",
|
|
26777
27877
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#controller:member",
|
|
26778
|
-
"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",
|
|
27878
|
+
"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",
|
|
26779
27879
|
"excerptTokens": [
|
|
26780
27880
|
{
|
|
26781
27881
|
"kind": "Content",
|
|
@@ -26783,7 +27883,7 @@
|
|
|
26783
27883
|
},
|
|
26784
27884
|
{
|
|
26785
27885
|
"kind": "Content",
|
|
26786
|
-
"text": "
|
|
27886
|
+
"text": "TController | undefined"
|
|
26787
27887
|
},
|
|
26788
27888
|
{
|
|
26789
27889
|
"kind": "Content",
|
|
@@ -27004,7 +28104,7 @@
|
|
|
27004
28104
|
{
|
|
27005
28105
|
"kind": "MethodSignature",
|
|
27006
28106
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#once:member(1)",
|
|
27007
|
-
"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",
|
|
28107
|
+
"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",
|
|
27008
28108
|
"excerptTokens": [
|
|
27009
28109
|
{
|
|
27010
28110
|
"kind": "Content",
|
|
@@ -27123,7 +28223,7 @@
|
|
|
27123
28223
|
{
|
|
27124
28224
|
"kind": "MethodSignature",
|
|
27125
28225
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#onSurfaceReady:member(1)",
|
|
27126
|
-
"docComment": "/**\n * Run `fn` once the surface is ready (see `InteractionSurface.isReady
|
|
28226
|
+
"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",
|
|
27127
28227
|
"excerptTokens": [
|
|
27128
28228
|
{
|
|
27129
28229
|
"kind": "Content",
|
|
@@ -27168,7 +28268,7 @@
|
|
|
27168
28268
|
{
|
|
27169
28269
|
"kind": "MethodSignature",
|
|
27170
28270
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#requestAttention:member(1)",
|
|
27171
|
-
"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
|
|
28271
|
+
"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 holds it back if a claimant (the autopilot) holds it then or when it is called — the claimant's own hand-back notifies instead, with `message` (GENC-1660). An autopilot that may not answer the interaction reports the hand-back in its place too, once the widget waits on the person: the call then only says it does, and gives that one notification its text. 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",
|
|
27172
28272
|
"excerptTokens": [
|
|
27173
28273
|
{
|
|
27174
28274
|
"kind": "Content",
|
|
@@ -27213,7 +28313,7 @@
|
|
|
27213
28313
|
{
|
|
27214
28314
|
"kind": "MethodSignature",
|
|
27215
28315
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#resolve:member(1)",
|
|
27216
|
-
"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",
|
|
28316
|
+
"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",
|
|
27217
28317
|
"excerptTokens": [
|
|
27218
28318
|
{
|
|
27219
28319
|
"kind": "Content",
|
|
@@ -27223,6 +28323,15 @@
|
|
|
27223
28323
|
"kind": "Content",
|
|
27224
28324
|
"text": "unknown"
|
|
27225
28325
|
},
|
|
28326
|
+
{
|
|
28327
|
+
"kind": "Content",
|
|
28328
|
+
"text": ", options?: "
|
|
28329
|
+
},
|
|
28330
|
+
{
|
|
28331
|
+
"kind": "Reference",
|
|
28332
|
+
"text": "InteractionResolveOptions",
|
|
28333
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface"
|
|
28334
|
+
},
|
|
27226
28335
|
{
|
|
27227
28336
|
"kind": "Content",
|
|
27228
28337
|
"text": "): "
|
|
@@ -27238,8 +28347,8 @@
|
|
|
27238
28347
|
],
|
|
27239
28348
|
"isOptional": false,
|
|
27240
28349
|
"returnTypeTokenRange": {
|
|
27241
|
-
"startIndex":
|
|
27242
|
-
"endIndex":
|
|
28350
|
+
"startIndex": 5,
|
|
28351
|
+
"endIndex": 6
|
|
27243
28352
|
},
|
|
27244
28353
|
"releaseTag": "Beta",
|
|
27245
28354
|
"overloadIndex": 1,
|
|
@@ -27251,6 +28360,14 @@
|
|
|
27251
28360
|
"endIndex": 2
|
|
27252
28361
|
},
|
|
27253
28362
|
"isOptional": false
|
|
28363
|
+
},
|
|
28364
|
+
{
|
|
28365
|
+
"parameterName": "options",
|
|
28366
|
+
"parameterTypeTokenRange": {
|
|
28367
|
+
"startIndex": 3,
|
|
28368
|
+
"endIndex": 4
|
|
28369
|
+
},
|
|
28370
|
+
"isOptional": true
|
|
27254
28371
|
}
|
|
27255
28372
|
],
|
|
27256
28373
|
"name": "resolve"
|
|
@@ -27258,7 +28375,7 @@
|
|
|
27258
28375
|
{
|
|
27259
28376
|
"kind": "MethodSignature",
|
|
27260
28377
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#saveCheckpoint:member(1)",
|
|
27261
|
-
"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",
|
|
28378
|
+
"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",
|
|
27262
28379
|
"excerptTokens": [
|
|
27263
28380
|
{
|
|
27264
28381
|
"kind": "Content",
|
|
@@ -27327,6 +28444,51 @@
|
|
|
27327
28444
|
"endIndex": 2
|
|
27328
28445
|
}
|
|
27329
28446
|
},
|
|
28447
|
+
{
|
|
28448
|
+
"kind": "MethodSignature",
|
|
28449
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#setWorking:member(1)",
|
|
28450
|
+
"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",
|
|
28451
|
+
"excerptTokens": [
|
|
28452
|
+
{
|
|
28453
|
+
"kind": "Content",
|
|
28454
|
+
"text": "setWorking(working: "
|
|
28455
|
+
},
|
|
28456
|
+
{
|
|
28457
|
+
"kind": "Content",
|
|
28458
|
+
"text": "boolean"
|
|
28459
|
+
},
|
|
28460
|
+
{
|
|
28461
|
+
"kind": "Content",
|
|
28462
|
+
"text": "): "
|
|
28463
|
+
},
|
|
28464
|
+
{
|
|
28465
|
+
"kind": "Content",
|
|
28466
|
+
"text": "void"
|
|
28467
|
+
},
|
|
28468
|
+
{
|
|
28469
|
+
"kind": "Content",
|
|
28470
|
+
"text": ";"
|
|
28471
|
+
}
|
|
28472
|
+
],
|
|
28473
|
+
"isOptional": false,
|
|
28474
|
+
"returnTypeTokenRange": {
|
|
28475
|
+
"startIndex": 3,
|
|
28476
|
+
"endIndex": 4
|
|
28477
|
+
},
|
|
28478
|
+
"releaseTag": "Beta",
|
|
28479
|
+
"overloadIndex": 1,
|
|
28480
|
+
"parameters": [
|
|
28481
|
+
{
|
|
28482
|
+
"parameterName": "working",
|
|
28483
|
+
"parameterTypeTokenRange": {
|
|
28484
|
+
"startIndex": 1,
|
|
28485
|
+
"endIndex": 2
|
|
28486
|
+
},
|
|
28487
|
+
"isOptional": false
|
|
28488
|
+
}
|
|
28489
|
+
],
|
|
28490
|
+
"name": "setWorking"
|
|
28491
|
+
},
|
|
27330
28492
|
{
|
|
27331
28493
|
"kind": "PropertySignature",
|
|
27332
28494
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#state:member",
|
|
@@ -27430,6 +28592,33 @@
|
|
|
27430
28592
|
"startIndex": 1,
|
|
27431
28593
|
"endIndex": 3
|
|
27432
28594
|
}
|
|
28595
|
+
},
|
|
28596
|
+
{
|
|
28597
|
+
"kind": "PropertySignature",
|
|
28598
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#working:member",
|
|
28599
|
+
"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",
|
|
28600
|
+
"excerptTokens": [
|
|
28601
|
+
{
|
|
28602
|
+
"kind": "Content",
|
|
28603
|
+
"text": "readonly working: "
|
|
28604
|
+
},
|
|
28605
|
+
{
|
|
28606
|
+
"kind": "Content",
|
|
28607
|
+
"text": "boolean | undefined"
|
|
28608
|
+
},
|
|
28609
|
+
{
|
|
28610
|
+
"kind": "Content",
|
|
28611
|
+
"text": ";"
|
|
28612
|
+
}
|
|
28613
|
+
],
|
|
28614
|
+
"isReadonly": true,
|
|
28615
|
+
"isOptional": false,
|
|
28616
|
+
"releaseTag": "Beta",
|
|
28617
|
+
"name": "working",
|
|
28618
|
+
"propertyTypeTokenRange": {
|
|
28619
|
+
"startIndex": 1,
|
|
28620
|
+
"endIndex": 2
|
|
28621
|
+
}
|
|
27433
28622
|
}
|
|
27434
28623
|
],
|
|
27435
28624
|
"extendsTokenRanges": []
|
|
@@ -27437,11 +28626,19 @@
|
|
|
27437
28626
|
{
|
|
27438
28627
|
"kind": "TypeAlias",
|
|
27439
28628
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type",
|
|
27440
|
-
"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",
|
|
28629
|
+
"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",
|
|
27441
28630
|
"excerptTokens": [
|
|
27442
28631
|
{
|
|
27443
28632
|
"kind": "Content",
|
|
27444
|
-
"text": "export type InteractionControllerFactory = "
|
|
28633
|
+
"text": "export type InteractionControllerFactory<TController = "
|
|
28634
|
+
},
|
|
28635
|
+
{
|
|
28636
|
+
"kind": "Content",
|
|
28637
|
+
"text": "unknown"
|
|
28638
|
+
},
|
|
28639
|
+
{
|
|
28640
|
+
"kind": "Content",
|
|
28641
|
+
"text": "> = "
|
|
27445
28642
|
},
|
|
27446
28643
|
{
|
|
27447
28644
|
"kind": "Content",
|
|
@@ -27454,7 +28651,16 @@
|
|
|
27454
28651
|
},
|
|
27455
28652
|
{
|
|
27456
28653
|
"kind": "Content",
|
|
27457
|
-
"text": "
|
|
28654
|
+
"text": "<"
|
|
28655
|
+
},
|
|
28656
|
+
{
|
|
28657
|
+
"kind": "Reference",
|
|
28658
|
+
"text": "Record",
|
|
28659
|
+
"canonicalReference": "!Record:type"
|
|
28660
|
+
},
|
|
28661
|
+
{
|
|
28662
|
+
"kind": "Content",
|
|
28663
|
+
"text": "<string, unknown>, unknown, TController>) => TController"
|
|
27458
28664
|
},
|
|
27459
28665
|
{
|
|
27460
28666
|
"kind": "Content",
|
|
@@ -27464,9 +28670,22 @@
|
|
|
27464
28670
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
27465
28671
|
"releaseTag": "Beta",
|
|
27466
28672
|
"name": "InteractionControllerFactory",
|
|
28673
|
+
"typeParameters": [
|
|
28674
|
+
{
|
|
28675
|
+
"typeParameterName": "TController",
|
|
28676
|
+
"constraintTokenRange": {
|
|
28677
|
+
"startIndex": 0,
|
|
28678
|
+
"endIndex": 0
|
|
28679
|
+
},
|
|
28680
|
+
"defaultTypeTokenRange": {
|
|
28681
|
+
"startIndex": 1,
|
|
28682
|
+
"endIndex": 2
|
|
28683
|
+
}
|
|
28684
|
+
}
|
|
28685
|
+
],
|
|
27467
28686
|
"typeTokenRange": {
|
|
27468
|
-
"startIndex":
|
|
27469
|
-
"endIndex":
|
|
28687
|
+
"startIndex": 3,
|
|
28688
|
+
"endIndex": 8
|
|
27470
28689
|
}
|
|
27471
28690
|
},
|
|
27472
28691
|
{
|
|
@@ -27503,7 +28722,7 @@
|
|
|
27503
28722
|
{
|
|
27504
28723
|
"kind": "Interface",
|
|
27505
28724
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold:interface",
|
|
27506
|
-
"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",
|
|
28725
|
+
"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",
|
|
27507
28726
|
"excerptTokens": [
|
|
27508
28727
|
{
|
|
27509
28728
|
"kind": "Content",
|
|
@@ -27515,10 +28734,66 @@
|
|
|
27515
28734
|
"name": "InteractionHold",
|
|
27516
28735
|
"preserveMemberOrder": false,
|
|
27517
28736
|
"members": [
|
|
28737
|
+
{
|
|
28738
|
+
"kind": "MethodSignature",
|
|
28739
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#attentionMessage:member(1)",
|
|
28740
|
+
"docComment": "/**\n * The message the widget passed to `InteractionContext.requestAttention`, once it has asked with one (GENC-1660). A widget's request is not reported while a claimant holds the interaction, so a claimant that hands it to the person reports with this, and the person reads the widget's own words. Readable by every interceptor, claimant or not: one that declines the interaction reports the hand-back too.\n */\n",
|
|
28741
|
+
"excerptTokens": [
|
|
28742
|
+
{
|
|
28743
|
+
"kind": "Content",
|
|
28744
|
+
"text": "attentionMessage(): "
|
|
28745
|
+
},
|
|
28746
|
+
{
|
|
28747
|
+
"kind": "Content",
|
|
28748
|
+
"text": "string | undefined"
|
|
28749
|
+
},
|
|
28750
|
+
{
|
|
28751
|
+
"kind": "Content",
|
|
28752
|
+
"text": ";"
|
|
28753
|
+
}
|
|
28754
|
+
],
|
|
28755
|
+
"isOptional": false,
|
|
28756
|
+
"returnTypeTokenRange": {
|
|
28757
|
+
"startIndex": 1,
|
|
28758
|
+
"endIndex": 2
|
|
28759
|
+
},
|
|
28760
|
+
"releaseTag": "Beta",
|
|
28761
|
+
"overloadIndex": 1,
|
|
28762
|
+
"parameters": [],
|
|
28763
|
+
"name": "attentionMessage"
|
|
28764
|
+
},
|
|
28765
|
+
{
|
|
28766
|
+
"kind": "MethodSignature",
|
|
28767
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#claim:member(1)",
|
|
28768
|
+
"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",
|
|
28769
|
+
"excerptTokens": [
|
|
28770
|
+
{
|
|
28771
|
+
"kind": "Content",
|
|
28772
|
+
"text": "claim(): "
|
|
28773
|
+
},
|
|
28774
|
+
{
|
|
28775
|
+
"kind": "Content",
|
|
28776
|
+
"text": "boolean"
|
|
28777
|
+
},
|
|
28778
|
+
{
|
|
28779
|
+
"kind": "Content",
|
|
28780
|
+
"text": ";"
|
|
28781
|
+
}
|
|
28782
|
+
],
|
|
28783
|
+
"isOptional": false,
|
|
28784
|
+
"returnTypeTokenRange": {
|
|
28785
|
+
"startIndex": 1,
|
|
28786
|
+
"endIndex": 2
|
|
28787
|
+
},
|
|
28788
|
+
"releaseTag": "Beta",
|
|
28789
|
+
"overloadIndex": 1,
|
|
28790
|
+
"parameters": [],
|
|
28791
|
+
"name": "claim"
|
|
28792
|
+
},
|
|
27518
28793
|
{
|
|
27519
28794
|
"kind": "MethodSignature",
|
|
27520
28795
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#invoke:member(1)",
|
|
27521
|
-
"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",
|
|
28796
|
+
"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",
|
|
27522
28797
|
"excerptTokens": [
|
|
27523
28798
|
{
|
|
27524
28799
|
"kind": "Content",
|
|
@@ -27654,7 +28929,7 @@
|
|
|
27654
28929
|
{
|
|
27655
28930
|
"kind": "MethodSignature",
|
|
27656
28931
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#resolve:member(1)",
|
|
27657
|
-
"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",
|
|
28932
|
+
"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",
|
|
27658
28933
|
"excerptTokens": [
|
|
27659
28934
|
{
|
|
27660
28935
|
"kind": "Content",
|
|
@@ -27740,6 +29015,51 @@
|
|
|
27740
29015
|
}
|
|
27741
29016
|
],
|
|
27742
29017
|
"name": "set"
|
|
29018
|
+
},
|
|
29019
|
+
{
|
|
29020
|
+
"kind": "MethodSignature",
|
|
29021
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#takeAttention:member(1)",
|
|
29022
|
+
"docComment": "/**\n * Report the widget's request for the person's attention in its place (GENC-1660), for an interceptor that leaves the interaction with the person and reports that itself, such as an autopilot handing a widget it may not answer to the person. The widget's `InteractionContext.requestAttention` is then not reported on its own: `onRequest` is called instead, when it would have been, so the interceptor knows the widget is asking and the person gets one notification for the interaction. `attentionMessage` still returns the widget's words.\n *\n * Works for every interceptor, claimant or not, while the interaction is open. Returns the undo, for an interceptor that ends up not reporting after all, or `undefined` when there is nothing to take: the widget's request already counted, the interaction has ended, or another interceptor took it first.\n */\n",
|
|
29023
|
+
"excerptTokens": [
|
|
29024
|
+
{
|
|
29025
|
+
"kind": "Content",
|
|
29026
|
+
"text": "takeAttention(onRequest: "
|
|
29027
|
+
},
|
|
29028
|
+
{
|
|
29029
|
+
"kind": "Content",
|
|
29030
|
+
"text": "(message?: string) => void"
|
|
29031
|
+
},
|
|
29032
|
+
{
|
|
29033
|
+
"kind": "Content",
|
|
29034
|
+
"text": "): "
|
|
29035
|
+
},
|
|
29036
|
+
{
|
|
29037
|
+
"kind": "Content",
|
|
29038
|
+
"text": "(() => void) | undefined"
|
|
29039
|
+
},
|
|
29040
|
+
{
|
|
29041
|
+
"kind": "Content",
|
|
29042
|
+
"text": ";"
|
|
29043
|
+
}
|
|
29044
|
+
],
|
|
29045
|
+
"isOptional": false,
|
|
29046
|
+
"returnTypeTokenRange": {
|
|
29047
|
+
"startIndex": 3,
|
|
29048
|
+
"endIndex": 4
|
|
29049
|
+
},
|
|
29050
|
+
"releaseTag": "Beta",
|
|
29051
|
+
"overloadIndex": 1,
|
|
29052
|
+
"parameters": [
|
|
29053
|
+
{
|
|
29054
|
+
"parameterName": "onRequest",
|
|
29055
|
+
"parameterTypeTokenRange": {
|
|
29056
|
+
"startIndex": 1,
|
|
29057
|
+
"endIndex": 2
|
|
29058
|
+
},
|
|
29059
|
+
"isOptional": false
|
|
29060
|
+
}
|
|
29061
|
+
],
|
|
29062
|
+
"name": "takeAttention"
|
|
27743
29063
|
}
|
|
27744
29064
|
],
|
|
27745
29065
|
"extendsTokenRanges": []
|
|
@@ -27773,7 +29093,7 @@
|
|
|
27773
29093
|
{
|
|
27774
29094
|
"kind": "Interface",
|
|
27775
29095
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionInterceptor:interface",
|
|
27776
|
-
"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",
|
|
29096
|
+
"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",
|
|
27777
29097
|
"excerptTokens": [
|
|
27778
29098
|
{
|
|
27779
29099
|
"kind": "Content",
|
|
@@ -28015,7 +29335,7 @@
|
|
|
28015
29335
|
{
|
|
28016
29336
|
"kind": "PropertySignature",
|
|
28017
29337
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionOpened#hold:member",
|
|
28018
|
-
"docComment": "/**\n * See {@link InteractionHold}. Works only for the interceptor whose claim was granted
|
|
29338
|
+
"docComment": "/**\n * See {@link InteractionHold}. Works only for the interceptor whose claim was granted, at open or later through `claim`.\n */\n",
|
|
28019
29339
|
"excerptTokens": [
|
|
28020
29340
|
{
|
|
28021
29341
|
"kind": "Content",
|
|
@@ -28127,15 +29447,36 @@
|
|
|
28127
29447
|
{
|
|
28128
29448
|
"kind": "Interface",
|
|
28129
29449
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration:interface",
|
|
28130
|
-
"docComment": "/**\n * How a widget is registered with the platform, once, at start-up (GENC-1660).\n *\n * @beta\n */\n",
|
|
29450
|
+
"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",
|
|
28131
29451
|
"excerptTokens": [
|
|
28132
29452
|
{
|
|
28133
29453
|
"kind": "Content",
|
|
28134
|
-
"text": "export interface InteractionRegistration "
|
|
29454
|
+
"text": "export interface InteractionRegistration<TController = "
|
|
29455
|
+
},
|
|
29456
|
+
{
|
|
29457
|
+
"kind": "Content",
|
|
29458
|
+
"text": "unknown"
|
|
29459
|
+
},
|
|
29460
|
+
{
|
|
29461
|
+
"kind": "Content",
|
|
29462
|
+
"text": "> "
|
|
28135
29463
|
}
|
|
28136
29464
|
],
|
|
28137
29465
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
28138
29466
|
"releaseTag": "Beta",
|
|
29467
|
+
"typeParameters": [
|
|
29468
|
+
{
|
|
29469
|
+
"typeParameterName": "TController",
|
|
29470
|
+
"constraintTokenRange": {
|
|
29471
|
+
"startIndex": 0,
|
|
29472
|
+
"endIndex": 0
|
|
29473
|
+
},
|
|
29474
|
+
"defaultTypeTokenRange": {
|
|
29475
|
+
"startIndex": 1,
|
|
29476
|
+
"endIndex": 2
|
|
29477
|
+
}
|
|
29478
|
+
}
|
|
29479
|
+
],
|
|
28139
29480
|
"name": "InteractionRegistration",
|
|
28140
29481
|
"preserveMemberOrder": false,
|
|
28141
29482
|
"members": [
|
|
@@ -28180,6 +29521,10 @@
|
|
|
28180
29521
|
"text": "InteractionControllerFactory",
|
|
28181
29522
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type"
|
|
28182
29523
|
},
|
|
29524
|
+
{
|
|
29525
|
+
"kind": "Content",
|
|
29526
|
+
"text": "<TController>"
|
|
29527
|
+
},
|
|
28183
29528
|
{
|
|
28184
29529
|
"kind": "Content",
|
|
28185
29530
|
"text": ";"
|
|
@@ -28189,6 +29534,33 @@
|
|
|
28189
29534
|
"isOptional": true,
|
|
28190
29535
|
"releaseTag": "Beta",
|
|
28191
29536
|
"name": "controller",
|
|
29537
|
+
"propertyTypeTokenRange": {
|
|
29538
|
+
"startIndex": 1,
|
|
29539
|
+
"endIndex": 3
|
|
29540
|
+
}
|
|
29541
|
+
},
|
|
29542
|
+
{
|
|
29543
|
+
"kind": "PropertySignature",
|
|
29544
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration#resolvesItself:member",
|
|
29545
|
+
"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",
|
|
29546
|
+
"excerptTokens": [
|
|
29547
|
+
{
|
|
29548
|
+
"kind": "Content",
|
|
29549
|
+
"text": "readonly resolvesItself?: "
|
|
29550
|
+
},
|
|
29551
|
+
{
|
|
29552
|
+
"kind": "Content",
|
|
29553
|
+
"text": "boolean"
|
|
29554
|
+
},
|
|
29555
|
+
{
|
|
29556
|
+
"kind": "Content",
|
|
29557
|
+
"text": ";"
|
|
29558
|
+
}
|
|
29559
|
+
],
|
|
29560
|
+
"isReadonly": true,
|
|
29561
|
+
"isOptional": true,
|
|
29562
|
+
"releaseTag": "Beta",
|
|
29563
|
+
"name": "resolvesItself",
|
|
28192
29564
|
"propertyTypeTokenRange": {
|
|
28193
29565
|
"startIndex": 1,
|
|
28194
29566
|
"endIndex": 2
|
|
@@ -28197,7 +29569,7 @@
|
|
|
28197
29569
|
{
|
|
28198
29570
|
"kind": "PropertySignature",
|
|
28199
29571
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration#sameWork:member",
|
|
28200
|
-
"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",
|
|
29572
|
+
"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",
|
|
28201
29573
|
"excerptTokens": [
|
|
28202
29574
|
{
|
|
28203
29575
|
"kind": "Content",
|
|
@@ -28278,6 +29650,51 @@
|
|
|
28278
29650
|
],
|
|
28279
29651
|
"extendsTokenRanges": []
|
|
28280
29652
|
},
|
|
29653
|
+
{
|
|
29654
|
+
"kind": "Interface",
|
|
29655
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface",
|
|
29656
|
+
"docComment": "/**\n * How a controller settles its interaction, beside the result (GENC-1660). See {@link InteractionContext.resolve}.\n *\n * @beta\n */\n",
|
|
29657
|
+
"excerptTokens": [
|
|
29658
|
+
{
|
|
29659
|
+
"kind": "Content",
|
|
29660
|
+
"text": "export interface InteractionResolveOptions "
|
|
29661
|
+
}
|
|
29662
|
+
],
|
|
29663
|
+
"fileUrlPath": "src/types/interaction-context.ts",
|
|
29664
|
+
"releaseTag": "Beta",
|
|
29665
|
+
"name": "InteractionResolveOptions",
|
|
29666
|
+
"preserveMemberOrder": false,
|
|
29667
|
+
"members": [
|
|
29668
|
+
{
|
|
29669
|
+
"kind": "PropertySignature",
|
|
29670
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions#resolvedItself:member",
|
|
29671
|
+
"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",
|
|
29672
|
+
"excerptTokens": [
|
|
29673
|
+
{
|
|
29674
|
+
"kind": "Content",
|
|
29675
|
+
"text": "readonly resolvedItself?: "
|
|
29676
|
+
},
|
|
29677
|
+
{
|
|
29678
|
+
"kind": "Content",
|
|
29679
|
+
"text": "boolean"
|
|
29680
|
+
},
|
|
29681
|
+
{
|
|
29682
|
+
"kind": "Content",
|
|
29683
|
+
"text": ";"
|
|
29684
|
+
}
|
|
29685
|
+
],
|
|
29686
|
+
"isReadonly": true,
|
|
29687
|
+
"isOptional": true,
|
|
29688
|
+
"releaseTag": "Beta",
|
|
29689
|
+
"name": "resolvedItself",
|
|
29690
|
+
"propertyTypeTokenRange": {
|
|
29691
|
+
"startIndex": 1,
|
|
29692
|
+
"endIndex": 2
|
|
29693
|
+
}
|
|
29694
|
+
}
|
|
29695
|
+
],
|
|
29696
|
+
"extendsTokenRanges": []
|
|
29697
|
+
},
|
|
28281
29698
|
{
|
|
28282
29699
|
"kind": "Interface",
|
|
28283
29700
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface:interface",
|
|
@@ -28361,7 +29778,7 @@
|
|
|
28361
29778
|
{
|
|
28362
29779
|
"kind": "MethodSignature",
|
|
28363
29780
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#facts:member(1)",
|
|
28364
|
-
"docComment": "/**\n * Read fresh on every call.\n */\n",
|
|
29781
|
+
"docComment": "/**\n * Read fresh on every call. Always `{}` on a full-form surface.\n */\n",
|
|
28365
29782
|
"excerptTokens": [
|
|
28366
29783
|
{
|
|
28367
29784
|
"kind": "Content",
|
|
@@ -28403,7 +29820,7 @@
|
|
|
28403
29820
|
{
|
|
28404
29821
|
"kind": "MethodSignature",
|
|
28405
29822
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#isReady:member(1)",
|
|
28406
|
-
"docComment": "/**\n * Whether a claimant
|
|
29823
|
+
"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",
|
|
28407
29824
|
"excerptTokens": [
|
|
28408
29825
|
{
|
|
28409
29826
|
"kind": "Content",
|
|
@@ -28428,6 +29845,33 @@
|
|
|
28428
29845
|
"parameters": [],
|
|
28429
29846
|
"name": "isReady"
|
|
28430
29847
|
},
|
|
29848
|
+
{
|
|
29849
|
+
"kind": "PropertySignature",
|
|
29850
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#preview:member",
|
|
29851
|
+
"docComment": "/**\n * A full-form surface's {@link SurfaceSpec.preview}: the view sent with the decision.\n */\n",
|
|
29852
|
+
"excerptTokens": [
|
|
29853
|
+
{
|
|
29854
|
+
"kind": "Content",
|
|
29855
|
+
"text": "readonly preview?: "
|
|
29856
|
+
},
|
|
29857
|
+
{
|
|
29858
|
+
"kind": "Content",
|
|
29859
|
+
"text": "string"
|
|
29860
|
+
},
|
|
29861
|
+
{
|
|
29862
|
+
"kind": "Content",
|
|
29863
|
+
"text": ";"
|
|
29864
|
+
}
|
|
29865
|
+
],
|
|
29866
|
+
"isReadonly": true,
|
|
29867
|
+
"isOptional": true,
|
|
29868
|
+
"releaseTag": "Beta",
|
|
29869
|
+
"name": "preview",
|
|
29870
|
+
"propertyTypeTokenRange": {
|
|
29871
|
+
"startIndex": 1,
|
|
29872
|
+
"endIndex": 2
|
|
29873
|
+
}
|
|
29874
|
+
},
|
|
28431
29875
|
{
|
|
28432
29876
|
"kind": "PropertySignature",
|
|
28433
29877
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#prompt:member",
|
|
@@ -28458,7 +29902,7 @@
|
|
|
28458
29902
|
{
|
|
28459
29903
|
"kind": "MethodSignature",
|
|
28460
29904
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#read:member(1)",
|
|
28461
|
-
"docComment": "/**\n * Read one view
|
|
29905
|
+
"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",
|
|
28462
29906
|
"excerptTokens": [
|
|
28463
29907
|
{
|
|
28464
29908
|
"kind": "Content",
|
|
@@ -28503,15 +29947,29 @@
|
|
|
28503
29947
|
{
|
|
28504
29948
|
"kind": "PropertySignature",
|
|
28505
29949
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#views:member",
|
|
28506
|
-
"docComment": "/**\n *
|
|
29950
|
+
"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",
|
|
28507
29951
|
"excerptTokens": [
|
|
28508
29952
|
{
|
|
28509
29953
|
"kind": "Content",
|
|
28510
29954
|
"text": "readonly views?: "
|
|
28511
29955
|
},
|
|
29956
|
+
{
|
|
29957
|
+
"kind": "Reference",
|
|
29958
|
+
"text": "Readonly",
|
|
29959
|
+
"canonicalReference": "!Readonly:type"
|
|
29960
|
+
},
|
|
28512
29961
|
{
|
|
28513
29962
|
"kind": "Content",
|
|
28514
|
-
"text": "
|
|
29963
|
+
"text": "<"
|
|
29964
|
+
},
|
|
29965
|
+
{
|
|
29966
|
+
"kind": "Reference",
|
|
29967
|
+
"text": "Record",
|
|
29968
|
+
"canonicalReference": "!Record:type"
|
|
29969
|
+
},
|
|
29970
|
+
{
|
|
29971
|
+
"kind": "Content",
|
|
29972
|
+
"text": "<string, string>>"
|
|
28515
29973
|
},
|
|
28516
29974
|
{
|
|
28517
29975
|
"kind": "Content",
|
|
@@ -28524,7 +29982,7 @@
|
|
|
28524
29982
|
"name": "views",
|
|
28525
29983
|
"propertyTypeTokenRange": {
|
|
28526
29984
|
"startIndex": 1,
|
|
28527
|
-
"endIndex":
|
|
29985
|
+
"endIndex": 5
|
|
28528
29986
|
}
|
|
28529
29987
|
}
|
|
28530
29988
|
],
|
|
@@ -30044,7 +31502,7 @@
|
|
|
30044
31502
|
{
|
|
30045
31503
|
"kind": "PropertySignature",
|
|
30046
31504
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#checkpoint:member",
|
|
30047
|
-
"docComment": "/**\n * The checkpoint
|
|
31505
|
+
"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",
|
|
30048
31506
|
"excerptTokens": [
|
|
30049
31507
|
{
|
|
30050
31508
|
"kind": "Content",
|
|
@@ -30068,6 +31526,38 @@
|
|
|
30068
31526
|
"endIndex": 2
|
|
30069
31527
|
}
|
|
30070
31528
|
},
|
|
31529
|
+
{
|
|
31530
|
+
"kind": "PropertySignature",
|
|
31531
|
+
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#checkpoints:member",
|
|
31532
|
+
"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",
|
|
31533
|
+
"excerptTokens": [
|
|
31534
|
+
{
|
|
31535
|
+
"kind": "Content",
|
|
31536
|
+
"text": "checkpoints?: "
|
|
31537
|
+
},
|
|
31538
|
+
{
|
|
31539
|
+
"kind": "Reference",
|
|
31540
|
+
"text": "Array",
|
|
31541
|
+
"canonicalReference": "!Array:interface"
|
|
31542
|
+
},
|
|
31543
|
+
{
|
|
31544
|
+
"kind": "Content",
|
|
31545
|
+
"text": "<{\n componentName: string;\n value: unknown;\n }>"
|
|
31546
|
+
},
|
|
31547
|
+
{
|
|
31548
|
+
"kind": "Content",
|
|
31549
|
+
"text": ";"
|
|
31550
|
+
}
|
|
31551
|
+
],
|
|
31552
|
+
"isReadonly": false,
|
|
31553
|
+
"isOptional": true,
|
|
31554
|
+
"releaseTag": "Public",
|
|
31555
|
+
"name": "checkpoints",
|
|
31556
|
+
"propertyTypeTokenRange": {
|
|
31557
|
+
"startIndex": 1,
|
|
31558
|
+
"endIndex": 3
|
|
31559
|
+
}
|
|
31560
|
+
},
|
|
30071
31561
|
{
|
|
30072
31562
|
"kind": "PropertySignature",
|
|
30073
31563
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#condensePolicies:member",
|
|
@@ -30478,11 +31968,19 @@
|
|
|
30478
31968
|
{
|
|
30479
31969
|
"kind": "Function",
|
|
30480
31970
|
"canonicalReference": "@genesislcap/ai-assistant!registerInteraction:function(1)",
|
|
30481
|
-
"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",
|
|
31971
|
+
"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",
|
|
30482
31972
|
"excerptTokens": [
|
|
30483
31973
|
{
|
|
30484
31974
|
"kind": "Content",
|
|
30485
|
-
"text": "export declare function registerInteraction
|
|
31975
|
+
"text": "export declare function registerInteraction<TController = "
|
|
31976
|
+
},
|
|
31977
|
+
{
|
|
31978
|
+
"kind": "Content",
|
|
31979
|
+
"text": "unknown"
|
|
31980
|
+
},
|
|
31981
|
+
{
|
|
31982
|
+
"kind": "Content",
|
|
31983
|
+
"text": ">(name: "
|
|
30486
31984
|
},
|
|
30487
31985
|
{
|
|
30488
31986
|
"kind": "Content",
|
|
@@ -30497,6 +31995,10 @@
|
|
|
30497
31995
|
"text": "InteractionRegistration",
|
|
30498
31996
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration:interface"
|
|
30499
31997
|
},
|
|
31998
|
+
{
|
|
31999
|
+
"kind": "Content",
|
|
32000
|
+
"text": "<TController>"
|
|
32001
|
+
},
|
|
30500
32002
|
{
|
|
30501
32003
|
"kind": "Content",
|
|
30502
32004
|
"text": "): "
|
|
@@ -30512,8 +32014,8 @@
|
|
|
30512
32014
|
],
|
|
30513
32015
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
30514
32016
|
"returnTypeTokenRange": {
|
|
30515
|
-
"startIndex":
|
|
30516
|
-
"endIndex":
|
|
32017
|
+
"startIndex": 8,
|
|
32018
|
+
"endIndex": 9
|
|
30517
32019
|
},
|
|
30518
32020
|
"releaseTag": "Beta",
|
|
30519
32021
|
"overloadIndex": 1,
|
|
@@ -30521,20 +32023,33 @@
|
|
|
30521
32023
|
{
|
|
30522
32024
|
"parameterName": "name",
|
|
30523
32025
|
"parameterTypeTokenRange": {
|
|
30524
|
-
"startIndex":
|
|
30525
|
-
"endIndex":
|
|
32026
|
+
"startIndex": 3,
|
|
32027
|
+
"endIndex": 4
|
|
30526
32028
|
},
|
|
30527
32029
|
"isOptional": false
|
|
30528
32030
|
},
|
|
30529
32031
|
{
|
|
30530
32032
|
"parameterName": "registration",
|
|
30531
32033
|
"parameterTypeTokenRange": {
|
|
30532
|
-
"startIndex":
|
|
30533
|
-
"endIndex":
|
|
32034
|
+
"startIndex": 5,
|
|
32035
|
+
"endIndex": 7
|
|
30534
32036
|
},
|
|
30535
32037
|
"isOptional": false
|
|
30536
32038
|
}
|
|
30537
32039
|
],
|
|
32040
|
+
"typeParameters": [
|
|
32041
|
+
{
|
|
32042
|
+
"typeParameterName": "TController",
|
|
32043
|
+
"constraintTokenRange": {
|
|
32044
|
+
"startIndex": 0,
|
|
32045
|
+
"endIndex": 0
|
|
32046
|
+
},
|
|
32047
|
+
"defaultTypeTokenRange": {
|
|
32048
|
+
"startIndex": 1,
|
|
32049
|
+
"endIndex": 2
|
|
32050
|
+
}
|
|
32051
|
+
}
|
|
32052
|
+
],
|
|
30538
32053
|
"name": "registerInteraction"
|
|
30539
32054
|
},
|
|
30540
32055
|
{
|
|
@@ -34523,7 +36038,7 @@
|
|
|
34523
36038
|
{
|
|
34524
36039
|
"kind": "PropertySignature",
|
|
34525
36040
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#args:member",
|
|
34526
|
-
"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",
|
|
36041
|
+
"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",
|
|
34527
36042
|
"excerptTokens": [
|
|
34528
36043
|
{
|
|
34529
36044
|
"kind": "Content",
|
|
@@ -34699,7 +36214,7 @@
|
|
|
34699
36214
|
{
|
|
34700
36215
|
"kind": "PropertySignature",
|
|
34701
36216
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#name:member",
|
|
34702
|
-
"docComment": "/**\n * The name to invoke it by: an option's id,
|
|
36217
|
+
"docComment": "/**\n * The name to invoke it by: an option's id, `select` / `reply`, or a full-form action's name.\n */\n",
|
|
34703
36218
|
"excerptTokens": [
|
|
34704
36219
|
{
|
|
34705
36220
|
"kind": "Content",
|
|
@@ -34722,6 +36237,60 @@
|
|
|
34722
36237
|
"startIndex": 1,
|
|
34723
36238
|
"endIndex": 2
|
|
34724
36239
|
}
|
|
36240
|
+
},
|
|
36241
|
+
{
|
|
36242
|
+
"kind": "PropertySignature",
|
|
36243
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#refines:member",
|
|
36244
|
+
"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",
|
|
36245
|
+
"excerptTokens": [
|
|
36246
|
+
{
|
|
36247
|
+
"kind": "Content",
|
|
36248
|
+
"text": "readonly refines?: "
|
|
36249
|
+
},
|
|
36250
|
+
{
|
|
36251
|
+
"kind": "Content",
|
|
36252
|
+
"text": "boolean"
|
|
36253
|
+
},
|
|
36254
|
+
{
|
|
36255
|
+
"kind": "Content",
|
|
36256
|
+
"text": ";"
|
|
36257
|
+
}
|
|
36258
|
+
],
|
|
36259
|
+
"isReadonly": true,
|
|
36260
|
+
"isOptional": true,
|
|
36261
|
+
"releaseTag": "Beta",
|
|
36262
|
+
"name": "refines",
|
|
36263
|
+
"propertyTypeTokenRange": {
|
|
36264
|
+
"startIndex": 1,
|
|
36265
|
+
"endIndex": 2
|
|
36266
|
+
}
|
|
36267
|
+
},
|
|
36268
|
+
{
|
|
36269
|
+
"kind": "PropertySignature",
|
|
36270
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#unavailable:member",
|
|
36271
|
+
"docComment": "/**\n * Why it cannot be run right now, when it is not enabled.\n */\n",
|
|
36272
|
+
"excerptTokens": [
|
|
36273
|
+
{
|
|
36274
|
+
"kind": "Content",
|
|
36275
|
+
"text": "readonly unavailable?: "
|
|
36276
|
+
},
|
|
36277
|
+
{
|
|
36278
|
+
"kind": "Content",
|
|
36279
|
+
"text": "string"
|
|
36280
|
+
},
|
|
36281
|
+
{
|
|
36282
|
+
"kind": "Content",
|
|
36283
|
+
"text": ";"
|
|
36284
|
+
}
|
|
36285
|
+
],
|
|
36286
|
+
"isReadonly": true,
|
|
36287
|
+
"isOptional": true,
|
|
36288
|
+
"releaseTag": "Beta",
|
|
36289
|
+
"name": "unavailable",
|
|
36290
|
+
"propertyTypeTokenRange": {
|
|
36291
|
+
"startIndex": 1,
|
|
36292
|
+
"endIndex": 2
|
|
36293
|
+
}
|
|
34725
36294
|
}
|
|
34726
36295
|
],
|
|
34727
36296
|
"extendsTokenRanges": []
|
|
@@ -34729,7 +36298,7 @@
|
|
|
34729
36298
|
{
|
|
34730
36299
|
"kind": "Interface",
|
|
34731
36300
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec:interface",
|
|
34732
|
-
"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",
|
|
36301
|
+
"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",
|
|
34733
36302
|
"excerptTokens": [
|
|
34734
36303
|
{
|
|
34735
36304
|
"kind": "Content",
|
|
@@ -34744,7 +36313,7 @@
|
|
|
34744
36313
|
{
|
|
34745
36314
|
"kind": "PropertySignature",
|
|
34746
36315
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#argsSchema:member",
|
|
34747
|
-
"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",
|
|
36316
|
+
"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",
|
|
34748
36317
|
"excerptTokens": [
|
|
34749
36318
|
{
|
|
34750
36319
|
"kind": "Content",
|
|
@@ -34811,16 +36380,16 @@
|
|
|
34811
36380
|
},
|
|
34812
36381
|
{
|
|
34813
36382
|
"kind": "PropertySignature",
|
|
34814
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#
|
|
34815
|
-
"docComment": "/**\n *
|
|
36383
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#finishes:member",
|
|
36384
|
+
"docComment": "/**\n * Whether it settles the interaction. An editing action (`edit_rows`) does not.\n */\n",
|
|
34816
36385
|
"excerptTokens": [
|
|
34817
36386
|
{
|
|
34818
36387
|
"kind": "Content",
|
|
34819
|
-
"text": "readonly
|
|
36388
|
+
"text": "readonly finishes?: "
|
|
34820
36389
|
},
|
|
34821
36390
|
{
|
|
34822
36391
|
"kind": "Content",
|
|
34823
|
-
"text": "
|
|
36392
|
+
"text": "boolean"
|
|
34824
36393
|
},
|
|
34825
36394
|
{
|
|
34826
36395
|
"kind": "Content",
|
|
@@ -34830,7 +36399,7 @@
|
|
|
34830
36399
|
"isReadonly": true,
|
|
34831
36400
|
"isOptional": true,
|
|
34832
36401
|
"releaseTag": "Beta",
|
|
34833
|
-
"name": "
|
|
36402
|
+
"name": "finishes",
|
|
34834
36403
|
"propertyTypeTokenRange": {
|
|
34835
36404
|
"startIndex": 1,
|
|
34836
36405
|
"endIndex": 2
|
|
@@ -34838,12 +36407,12 @@
|
|
|
34838
36407
|
},
|
|
34839
36408
|
{
|
|
34840
36409
|
"kind": "PropertySignature",
|
|
34841
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#
|
|
34842
|
-
"docComment": "/**\n *
|
|
36410
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#refines:member",
|
|
36411
|
+
"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",
|
|
34843
36412
|
"excerptTokens": [
|
|
34844
36413
|
{
|
|
34845
36414
|
"kind": "Content",
|
|
34846
|
-
"text": "readonly
|
|
36415
|
+
"text": "readonly refines?: "
|
|
34847
36416
|
},
|
|
34848
36417
|
{
|
|
34849
36418
|
"kind": "Content",
|
|
@@ -34857,7 +36426,7 @@
|
|
|
34857
36426
|
"isReadonly": true,
|
|
34858
36427
|
"isOptional": true,
|
|
34859
36428
|
"releaseTag": "Beta",
|
|
34860
|
-
"name": "
|
|
36429
|
+
"name": "refines",
|
|
34861
36430
|
"propertyTypeTokenRange": {
|
|
34862
36431
|
"startIndex": 1,
|
|
34863
36432
|
"endIndex": 2
|
|
@@ -34866,7 +36435,7 @@
|
|
|
34866
36435
|
{
|
|
34867
36436
|
"kind": "MethodSignature",
|
|
34868
36437
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#run:member(1)",
|
|
34869
|
-
"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",
|
|
36438
|
+
"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",
|
|
34870
36439
|
"excerptTokens": [
|
|
34871
36440
|
{
|
|
34872
36441
|
"kind": "Content",
|
|
@@ -34916,6 +36485,60 @@
|
|
|
34916
36485
|
}
|
|
34917
36486
|
],
|
|
34918
36487
|
"name": "run"
|
|
36488
|
+
},
|
|
36489
|
+
{
|
|
36490
|
+
"kind": "PropertySignature",
|
|
36491
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#text:member",
|
|
36492
|
+
"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",
|
|
36493
|
+
"excerptTokens": [
|
|
36494
|
+
{
|
|
36495
|
+
"kind": "Content",
|
|
36496
|
+
"text": "readonly text?: "
|
|
36497
|
+
},
|
|
36498
|
+
{
|
|
36499
|
+
"kind": "Content",
|
|
36500
|
+
"text": "boolean"
|
|
36501
|
+
},
|
|
36502
|
+
{
|
|
36503
|
+
"kind": "Content",
|
|
36504
|
+
"text": ";"
|
|
36505
|
+
}
|
|
36506
|
+
],
|
|
36507
|
+
"isReadonly": true,
|
|
36508
|
+
"isOptional": true,
|
|
36509
|
+
"releaseTag": "Beta",
|
|
36510
|
+
"name": "text",
|
|
36511
|
+
"propertyTypeTokenRange": {
|
|
36512
|
+
"startIndex": 1,
|
|
36513
|
+
"endIndex": 2
|
|
36514
|
+
}
|
|
36515
|
+
},
|
|
36516
|
+
{
|
|
36517
|
+
"kind": "PropertySignature",
|
|
36518
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#unavailable:member",
|
|
36519
|
+
"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",
|
|
36520
|
+
"excerptTokens": [
|
|
36521
|
+
{
|
|
36522
|
+
"kind": "Content",
|
|
36523
|
+
"text": "readonly unavailable?: "
|
|
36524
|
+
},
|
|
36525
|
+
{
|
|
36526
|
+
"kind": "Content",
|
|
36527
|
+
"text": "() => string | undefined"
|
|
36528
|
+
},
|
|
36529
|
+
{
|
|
36530
|
+
"kind": "Content",
|
|
36531
|
+
"text": ";"
|
|
36532
|
+
}
|
|
36533
|
+
],
|
|
36534
|
+
"isReadonly": true,
|
|
36535
|
+
"isOptional": true,
|
|
36536
|
+
"releaseTag": "Beta",
|
|
36537
|
+
"name": "unavailable",
|
|
36538
|
+
"propertyTypeTokenRange": {
|
|
36539
|
+
"startIndex": 1,
|
|
36540
|
+
"endIndex": 2
|
|
36541
|
+
}
|
|
34919
36542
|
}
|
|
34920
36543
|
],
|
|
34921
36544
|
"extendsTokenRanges": []
|
|
@@ -35013,6 +36636,33 @@
|
|
|
35013
36636
|
"parameters": [],
|
|
35014
36637
|
"name": "describe"
|
|
35015
36638
|
},
|
|
36639
|
+
{
|
|
36640
|
+
"kind": "PropertySignature",
|
|
36641
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#preview:member",
|
|
36642
|
+
"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",
|
|
36643
|
+
"excerptTokens": [
|
|
36644
|
+
{
|
|
36645
|
+
"kind": "Content",
|
|
36646
|
+
"text": "readonly preview?: "
|
|
36647
|
+
},
|
|
36648
|
+
{
|
|
36649
|
+
"kind": "Content",
|
|
36650
|
+
"text": "string"
|
|
36651
|
+
},
|
|
36652
|
+
{
|
|
36653
|
+
"kind": "Content",
|
|
36654
|
+
"text": ";"
|
|
36655
|
+
}
|
|
36656
|
+
],
|
|
36657
|
+
"isReadonly": true,
|
|
36658
|
+
"isOptional": true,
|
|
36659
|
+
"releaseTag": "Beta",
|
|
36660
|
+
"name": "preview",
|
|
36661
|
+
"propertyTypeTokenRange": {
|
|
36662
|
+
"startIndex": 1,
|
|
36663
|
+
"endIndex": 2
|
|
36664
|
+
}
|
|
36665
|
+
},
|
|
35016
36666
|
{
|
|
35017
36667
|
"kind": "PropertySignature",
|
|
35018
36668
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#prompt:member",
|
|
@@ -35041,62 +36691,85 @@
|
|
|
35041
36691
|
}
|
|
35042
36692
|
},
|
|
35043
36693
|
{
|
|
35044
|
-
"kind": "
|
|
35045
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#
|
|
35046
|
-
"docComment": "/**\n *
|
|
36694
|
+
"kind": "PropertySignature",
|
|
36695
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#views:member",
|
|
36696
|
+
"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",
|
|
35047
36697
|
"excerptTokens": [
|
|
35048
36698
|
{
|
|
35049
36699
|
"kind": "Content",
|
|
35050
|
-
"text": "
|
|
36700
|
+
"text": "readonly views?: "
|
|
36701
|
+
},
|
|
36702
|
+
{
|
|
36703
|
+
"kind": "Reference",
|
|
36704
|
+
"text": "Readonly",
|
|
36705
|
+
"canonicalReference": "!Readonly:type"
|
|
35051
36706
|
},
|
|
35052
36707
|
{
|
|
35053
36708
|
"kind": "Content",
|
|
35054
|
-
"text": "
|
|
36709
|
+
"text": "<"
|
|
36710
|
+
},
|
|
36711
|
+
{
|
|
36712
|
+
"kind": "Reference",
|
|
36713
|
+
"text": "Record",
|
|
36714
|
+
"canonicalReference": "!Record:type"
|
|
35055
36715
|
},
|
|
35056
36716
|
{
|
|
35057
36717
|
"kind": "Content",
|
|
35058
|
-
"text": "
|
|
36718
|
+
"text": "<string, "
|
|
36719
|
+
},
|
|
36720
|
+
{
|
|
36721
|
+
"kind": "Reference",
|
|
36722
|
+
"text": "SurfaceView",
|
|
36723
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface"
|
|
35059
36724
|
},
|
|
35060
36725
|
{
|
|
35061
36726
|
"kind": "Content",
|
|
35062
|
-
"text": "
|
|
36727
|
+
"text": ">>"
|
|
35063
36728
|
},
|
|
35064
36729
|
{
|
|
35065
36730
|
"kind": "Content",
|
|
35066
36731
|
"text": ";"
|
|
35067
36732
|
}
|
|
35068
36733
|
],
|
|
35069
|
-
"
|
|
35070
|
-
"
|
|
35071
|
-
"startIndex": 3,
|
|
35072
|
-
"endIndex": 4
|
|
35073
|
-
},
|
|
36734
|
+
"isReadonly": true,
|
|
36735
|
+
"isOptional": true,
|
|
35074
36736
|
"releaseTag": "Beta",
|
|
35075
|
-
"
|
|
35076
|
-
"
|
|
35077
|
-
|
|
35078
|
-
|
|
35079
|
-
|
|
35080
|
-
|
|
35081
|
-
|
|
35082
|
-
|
|
35083
|
-
|
|
35084
|
-
|
|
35085
|
-
|
|
35086
|
-
|
|
35087
|
-
|
|
36737
|
+
"name": "views",
|
|
36738
|
+
"propertyTypeTokenRange": {
|
|
36739
|
+
"startIndex": 1,
|
|
36740
|
+
"endIndex": 7
|
|
36741
|
+
}
|
|
36742
|
+
}
|
|
36743
|
+
],
|
|
36744
|
+
"extendsTokenRanges": []
|
|
36745
|
+
},
|
|
36746
|
+
{
|
|
36747
|
+
"kind": "Interface",
|
|
36748
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface",
|
|
36749
|
+
"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",
|
|
36750
|
+
"excerptTokens": [
|
|
36751
|
+
{
|
|
36752
|
+
"kind": "Content",
|
|
36753
|
+
"text": "export interface SurfaceView "
|
|
36754
|
+
}
|
|
36755
|
+
],
|
|
36756
|
+
"fileUrlPath": "src/types/interaction-surface.ts",
|
|
36757
|
+
"releaseTag": "Beta",
|
|
36758
|
+
"name": "SurfaceView",
|
|
36759
|
+
"preserveMemberOrder": false,
|
|
36760
|
+
"members": [
|
|
35088
36761
|
{
|
|
35089
36762
|
"kind": "PropertySignature",
|
|
35090
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
35091
|
-
"docComment": "/**\n *
|
|
36763
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView#description:member",
|
|
36764
|
+
"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",
|
|
35092
36765
|
"excerptTokens": [
|
|
35093
36766
|
{
|
|
35094
36767
|
"kind": "Content",
|
|
35095
|
-
"text": "readonly
|
|
36768
|
+
"text": "readonly description: "
|
|
35096
36769
|
},
|
|
35097
36770
|
{
|
|
35098
36771
|
"kind": "Content",
|
|
35099
|
-
"text": "
|
|
36772
|
+
"text": "string"
|
|
35100
36773
|
},
|
|
35101
36774
|
{
|
|
35102
36775
|
"kind": "Content",
|
|
@@ -35104,13 +36777,41 @@
|
|
|
35104
36777
|
}
|
|
35105
36778
|
],
|
|
35106
36779
|
"isReadonly": true,
|
|
35107
|
-
"isOptional":
|
|
36780
|
+
"isOptional": false,
|
|
35108
36781
|
"releaseTag": "Beta",
|
|
35109
|
-
"name": "
|
|
36782
|
+
"name": "description",
|
|
35110
36783
|
"propertyTypeTokenRange": {
|
|
35111
36784
|
"startIndex": 1,
|
|
35112
36785
|
"endIndex": 2
|
|
35113
36786
|
}
|
|
36787
|
+
},
|
|
36788
|
+
{
|
|
36789
|
+
"kind": "MethodSignature",
|
|
36790
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView#read:member(1)",
|
|
36791
|
+
"docComment": "/**\n * The view's content, as JSON. Read fresh on every `widget_read({ view })`.\n */\n",
|
|
36792
|
+
"excerptTokens": [
|
|
36793
|
+
{
|
|
36794
|
+
"kind": "Content",
|
|
36795
|
+
"text": "read(): "
|
|
36796
|
+
},
|
|
36797
|
+
{
|
|
36798
|
+
"kind": "Content",
|
|
36799
|
+
"text": "unknown"
|
|
36800
|
+
},
|
|
36801
|
+
{
|
|
36802
|
+
"kind": "Content",
|
|
36803
|
+
"text": ";"
|
|
36804
|
+
}
|
|
36805
|
+
],
|
|
36806
|
+
"isOptional": false,
|
|
36807
|
+
"returnTypeTokenRange": {
|
|
36808
|
+
"startIndex": 1,
|
|
36809
|
+
"endIndex": 2
|
|
36810
|
+
},
|
|
36811
|
+
"releaseTag": "Beta",
|
|
36812
|
+
"overloadIndex": 1,
|
|
36813
|
+
"parameters": [],
|
|
36814
|
+
"name": "read"
|
|
35114
36815
|
}
|
|
35115
36816
|
],
|
|
35116
36817
|
"extendsTokenRanges": []
|
|
@@ -35388,6 +37089,457 @@
|
|
|
35388
37089
|
"endIndex": 6
|
|
35389
37090
|
}
|
|
35390
37091
|
},
|
|
37092
|
+
{
|
|
37093
|
+
"kind": "TypeAlias",
|
|
37094
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestActResult:type",
|
|
37095
|
+
"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",
|
|
37096
|
+
"excerptTokens": [
|
|
37097
|
+
{
|
|
37098
|
+
"kind": "Content",
|
|
37099
|
+
"text": "export type TestActResult = "
|
|
37100
|
+
},
|
|
37101
|
+
{
|
|
37102
|
+
"kind": "Content",
|
|
37103
|
+
"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}"
|
|
37104
|
+
},
|
|
37105
|
+
{
|
|
37106
|
+
"kind": "Content",
|
|
37107
|
+
"text": ";"
|
|
37108
|
+
}
|
|
37109
|
+
],
|
|
37110
|
+
"fileUrlPath": "src/state/test-interaction-context.ts",
|
|
37111
|
+
"releaseTag": "Beta",
|
|
37112
|
+
"name": "TestActResult",
|
|
37113
|
+
"typeTokenRange": {
|
|
37114
|
+
"startIndex": 1,
|
|
37115
|
+
"endIndex": 2
|
|
37116
|
+
}
|
|
37117
|
+
},
|
|
37118
|
+
{
|
|
37119
|
+
"kind": "Interface",
|
|
37120
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext:interface",
|
|
37121
|
+
"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",
|
|
37122
|
+
"excerptTokens": [
|
|
37123
|
+
{
|
|
37124
|
+
"kind": "Content",
|
|
37125
|
+
"text": "export interface TestInteractionContext<TController = "
|
|
37126
|
+
},
|
|
37127
|
+
{
|
|
37128
|
+
"kind": "Content",
|
|
37129
|
+
"text": "unknown"
|
|
37130
|
+
},
|
|
37131
|
+
{
|
|
37132
|
+
"kind": "Content",
|
|
37133
|
+
"text": ", TResult = "
|
|
37134
|
+
},
|
|
37135
|
+
{
|
|
37136
|
+
"kind": "Content",
|
|
37137
|
+
"text": "unknown"
|
|
37138
|
+
},
|
|
37139
|
+
{
|
|
37140
|
+
"kind": "Content",
|
|
37141
|
+
"text": "> "
|
|
37142
|
+
}
|
|
37143
|
+
],
|
|
37144
|
+
"fileUrlPath": "src/state/test-interaction-context.ts",
|
|
37145
|
+
"releaseTag": "Beta",
|
|
37146
|
+
"typeParameters": [
|
|
37147
|
+
{
|
|
37148
|
+
"typeParameterName": "TController",
|
|
37149
|
+
"constraintTokenRange": {
|
|
37150
|
+
"startIndex": 0,
|
|
37151
|
+
"endIndex": 0
|
|
37152
|
+
},
|
|
37153
|
+
"defaultTypeTokenRange": {
|
|
37154
|
+
"startIndex": 1,
|
|
37155
|
+
"endIndex": 2
|
|
37156
|
+
}
|
|
37157
|
+
},
|
|
37158
|
+
{
|
|
37159
|
+
"typeParameterName": "TResult",
|
|
37160
|
+
"constraintTokenRange": {
|
|
37161
|
+
"startIndex": 0,
|
|
37162
|
+
"endIndex": 0
|
|
37163
|
+
},
|
|
37164
|
+
"defaultTypeTokenRange": {
|
|
37165
|
+
"startIndex": 3,
|
|
37166
|
+
"endIndex": 4
|
|
37167
|
+
}
|
|
37168
|
+
}
|
|
37169
|
+
],
|
|
37170
|
+
"name": "TestInteractionContext",
|
|
37171
|
+
"preserveMemberOrder": false,
|
|
37172
|
+
"members": [
|
|
37173
|
+
{
|
|
37174
|
+
"kind": "MethodSignature",
|
|
37175
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#act:member(1)",
|
|
37176
|
+
"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",
|
|
37177
|
+
"excerptTokens": [
|
|
37178
|
+
{
|
|
37179
|
+
"kind": "Content",
|
|
37180
|
+
"text": "act(action: "
|
|
37181
|
+
},
|
|
37182
|
+
{
|
|
37183
|
+
"kind": "Content",
|
|
37184
|
+
"text": "string"
|
|
37185
|
+
},
|
|
37186
|
+
{
|
|
37187
|
+
"kind": "Content",
|
|
37188
|
+
"text": ", args?: "
|
|
37189
|
+
},
|
|
37190
|
+
{
|
|
37191
|
+
"kind": "Content",
|
|
37192
|
+
"text": "unknown"
|
|
37193
|
+
},
|
|
37194
|
+
{
|
|
37195
|
+
"kind": "Content",
|
|
37196
|
+
"text": "): "
|
|
37197
|
+
},
|
|
37198
|
+
{
|
|
37199
|
+
"kind": "Reference",
|
|
37200
|
+
"text": "Promise",
|
|
37201
|
+
"canonicalReference": "!Promise:interface"
|
|
37202
|
+
},
|
|
37203
|
+
{
|
|
37204
|
+
"kind": "Content",
|
|
37205
|
+
"text": "<"
|
|
37206
|
+
},
|
|
37207
|
+
{
|
|
37208
|
+
"kind": "Reference",
|
|
37209
|
+
"text": "TestActResult",
|
|
37210
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestActResult:type"
|
|
37211
|
+
},
|
|
37212
|
+
{
|
|
37213
|
+
"kind": "Content",
|
|
37214
|
+
"text": ">"
|
|
37215
|
+
},
|
|
37216
|
+
{
|
|
37217
|
+
"kind": "Content",
|
|
37218
|
+
"text": ";"
|
|
37219
|
+
}
|
|
37220
|
+
],
|
|
37221
|
+
"isOptional": false,
|
|
37222
|
+
"returnTypeTokenRange": {
|
|
37223
|
+
"startIndex": 5,
|
|
37224
|
+
"endIndex": 9
|
|
37225
|
+
},
|
|
37226
|
+
"releaseTag": "Beta",
|
|
37227
|
+
"overloadIndex": 1,
|
|
37228
|
+
"parameters": [
|
|
37229
|
+
{
|
|
37230
|
+
"parameterName": "action",
|
|
37231
|
+
"parameterTypeTokenRange": {
|
|
37232
|
+
"startIndex": 1,
|
|
37233
|
+
"endIndex": 2
|
|
37234
|
+
},
|
|
37235
|
+
"isOptional": false
|
|
37236
|
+
},
|
|
37237
|
+
{
|
|
37238
|
+
"parameterName": "args",
|
|
37239
|
+
"parameterTypeTokenRange": {
|
|
37240
|
+
"startIndex": 3,
|
|
37241
|
+
"endIndex": 4
|
|
37242
|
+
},
|
|
37243
|
+
"isOptional": true
|
|
37244
|
+
}
|
|
37245
|
+
],
|
|
37246
|
+
"name": "act"
|
|
37247
|
+
},
|
|
37248
|
+
{
|
|
37249
|
+
"kind": "PropertySignature",
|
|
37250
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#attention:member",
|
|
37251
|
+
"docComment": "/**\n * The widget's `requestAttention` calls that were reported, as the platform would report them (GENC-1660): only the first call counts, none after the interaction ends, and none while a claimant holds it. The test context offers the interaction straight after building the controller, with nobody claiming it, so a call made while being built is reported as the person's; one made after `setHeldBy('autopilot')` is held back for the claimant's hand-back.\n */\n",
|
|
37252
|
+
"excerptTokens": [
|
|
37253
|
+
{
|
|
37254
|
+
"kind": "Content",
|
|
37255
|
+
"text": "readonly attention: "
|
|
37256
|
+
},
|
|
37257
|
+
{
|
|
37258
|
+
"kind": "Reference",
|
|
37259
|
+
"text": "ReadonlyArray",
|
|
37260
|
+
"canonicalReference": "!ReadonlyArray:interface"
|
|
37261
|
+
},
|
|
37262
|
+
{
|
|
37263
|
+
"kind": "Content",
|
|
37264
|
+
"text": "<{\n readonly message?: string;\n }>"
|
|
37265
|
+
},
|
|
37266
|
+
{
|
|
37267
|
+
"kind": "Content",
|
|
37268
|
+
"text": ";"
|
|
37269
|
+
}
|
|
37270
|
+
],
|
|
37271
|
+
"isReadonly": true,
|
|
37272
|
+
"isOptional": false,
|
|
37273
|
+
"releaseTag": "Beta",
|
|
37274
|
+
"name": "attention",
|
|
37275
|
+
"propertyTypeTokenRange": {
|
|
37276
|
+
"startIndex": 1,
|
|
37277
|
+
"endIndex": 3
|
|
37278
|
+
}
|
|
37279
|
+
},
|
|
37280
|
+
{
|
|
37281
|
+
"kind": "PropertySignature",
|
|
37282
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#context:member",
|
|
37283
|
+
"docComment": "/**\n * The context, as the platform builds it: pass it to the controller as its host.\n */\n",
|
|
37284
|
+
"excerptTokens": [
|
|
37285
|
+
{
|
|
37286
|
+
"kind": "Content",
|
|
37287
|
+
"text": "readonly context: "
|
|
37288
|
+
},
|
|
37289
|
+
{
|
|
37290
|
+
"kind": "Reference",
|
|
37291
|
+
"text": "InteractionContext",
|
|
37292
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext:interface"
|
|
37293
|
+
},
|
|
37294
|
+
{
|
|
37295
|
+
"kind": "Content",
|
|
37296
|
+
"text": "<"
|
|
37297
|
+
},
|
|
37298
|
+
{
|
|
37299
|
+
"kind": "Reference",
|
|
37300
|
+
"text": "Record",
|
|
37301
|
+
"canonicalReference": "!Record:type"
|
|
37302
|
+
},
|
|
37303
|
+
{
|
|
37304
|
+
"kind": "Content",
|
|
37305
|
+
"text": "<string, unknown>, unknown, TController>"
|
|
37306
|
+
},
|
|
37307
|
+
{
|
|
37308
|
+
"kind": "Content",
|
|
37309
|
+
"text": ";"
|
|
37310
|
+
}
|
|
37311
|
+
],
|
|
37312
|
+
"isReadonly": true,
|
|
37313
|
+
"isOptional": false,
|
|
37314
|
+
"releaseTag": "Beta",
|
|
37315
|
+
"name": "context",
|
|
37316
|
+
"propertyTypeTokenRange": {
|
|
37317
|
+
"startIndex": 1,
|
|
37318
|
+
"endIndex": 5
|
|
37319
|
+
}
|
|
37320
|
+
},
|
|
37321
|
+
{
|
|
37322
|
+
"kind": "PropertySignature",
|
|
37323
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#controller:member",
|
|
37324
|
+
"docComment": "/**\n * The controller, when built through `options.controller`; otherwise `undefined`.\n */\n",
|
|
37325
|
+
"excerptTokens": [
|
|
37326
|
+
{
|
|
37327
|
+
"kind": "Content",
|
|
37328
|
+
"text": "readonly controller: "
|
|
37329
|
+
},
|
|
37330
|
+
{
|
|
37331
|
+
"kind": "Content",
|
|
37332
|
+
"text": "TController | undefined"
|
|
37333
|
+
},
|
|
37334
|
+
{
|
|
37335
|
+
"kind": "Content",
|
|
37336
|
+
"text": ";"
|
|
37337
|
+
}
|
|
37338
|
+
],
|
|
37339
|
+
"isReadonly": true,
|
|
37340
|
+
"isOptional": false,
|
|
37341
|
+
"releaseTag": "Beta",
|
|
37342
|
+
"name": "controller",
|
|
37343
|
+
"propertyTypeTokenRange": {
|
|
37344
|
+
"startIndex": 1,
|
|
37345
|
+
"endIndex": 2
|
|
37346
|
+
}
|
|
37347
|
+
},
|
|
37348
|
+
{
|
|
37349
|
+
"kind": "MethodSignature",
|
|
37350
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#dispose:member(1)",
|
|
37351
|
+
"docComment": "/**\n * End the interaction, running its `onDispose` callbacks, as settling it would.\n */\n",
|
|
37352
|
+
"excerptTokens": [
|
|
37353
|
+
{
|
|
37354
|
+
"kind": "Content",
|
|
37355
|
+
"text": "dispose(): "
|
|
37356
|
+
},
|
|
37357
|
+
{
|
|
37358
|
+
"kind": "Content",
|
|
37359
|
+
"text": "void"
|
|
37360
|
+
},
|
|
37361
|
+
{
|
|
37362
|
+
"kind": "Content",
|
|
37363
|
+
"text": ";"
|
|
37364
|
+
}
|
|
37365
|
+
],
|
|
37366
|
+
"isOptional": false,
|
|
37367
|
+
"returnTypeTokenRange": {
|
|
37368
|
+
"startIndex": 1,
|
|
37369
|
+
"endIndex": 2
|
|
37370
|
+
},
|
|
37371
|
+
"releaseTag": "Beta",
|
|
37372
|
+
"overloadIndex": 1,
|
|
37373
|
+
"parameters": [],
|
|
37374
|
+
"name": "dispose"
|
|
37375
|
+
},
|
|
37376
|
+
{
|
|
37377
|
+
"kind": "PropertySignature",
|
|
37378
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#notifications:member",
|
|
37379
|
+
"docComment": "/**\n * How many times `notify()` has been called.\n */\n",
|
|
37380
|
+
"excerptTokens": [
|
|
37381
|
+
{
|
|
37382
|
+
"kind": "Content",
|
|
37383
|
+
"text": "readonly notifications: "
|
|
37384
|
+
},
|
|
37385
|
+
{
|
|
37386
|
+
"kind": "Content",
|
|
37387
|
+
"text": "number"
|
|
37388
|
+
},
|
|
37389
|
+
{
|
|
37390
|
+
"kind": "Content",
|
|
37391
|
+
"text": ";"
|
|
37392
|
+
}
|
|
37393
|
+
],
|
|
37394
|
+
"isReadonly": true,
|
|
37395
|
+
"isOptional": false,
|
|
37396
|
+
"releaseTag": "Beta",
|
|
37397
|
+
"name": "notifications",
|
|
37398
|
+
"propertyTypeTokenRange": {
|
|
37399
|
+
"startIndex": 1,
|
|
37400
|
+
"endIndex": 2
|
|
37401
|
+
}
|
|
37402
|
+
},
|
|
37403
|
+
{
|
|
37404
|
+
"kind": "PropertySignature",
|
|
37405
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#resolvedItself:member",
|
|
37406
|
+
"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",
|
|
37407
|
+
"excerptTokens": [
|
|
37408
|
+
{
|
|
37409
|
+
"kind": "Content",
|
|
37410
|
+
"text": "readonly resolvedItself: "
|
|
37411
|
+
},
|
|
37412
|
+
{
|
|
37413
|
+
"kind": "Content",
|
|
37414
|
+
"text": "boolean"
|
|
37415
|
+
},
|
|
37416
|
+
{
|
|
37417
|
+
"kind": "Content",
|
|
37418
|
+
"text": ";"
|
|
37419
|
+
}
|
|
37420
|
+
],
|
|
37421
|
+
"isReadonly": true,
|
|
37422
|
+
"isOptional": false,
|
|
37423
|
+
"releaseTag": "Beta",
|
|
37424
|
+
"name": "resolvedItself",
|
|
37425
|
+
"propertyTypeTokenRange": {
|
|
37426
|
+
"startIndex": 1,
|
|
37427
|
+
"endIndex": 2
|
|
37428
|
+
}
|
|
37429
|
+
},
|
|
37430
|
+
{
|
|
37431
|
+
"kind": "PropertySignature",
|
|
37432
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#result:member",
|
|
37433
|
+
"docComment": "/**\n * What the controller resolved with, or `undefined` while it has not. Only the first counts.\n */\n",
|
|
37434
|
+
"excerptTokens": [
|
|
37435
|
+
{
|
|
37436
|
+
"kind": "Content",
|
|
37437
|
+
"text": "readonly result: "
|
|
37438
|
+
},
|
|
37439
|
+
{
|
|
37440
|
+
"kind": "Reference",
|
|
37441
|
+
"text": "InteractionResult",
|
|
37442
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionResult:type"
|
|
37443
|
+
},
|
|
37444
|
+
{
|
|
37445
|
+
"kind": "Content",
|
|
37446
|
+
"text": "<TResult> | undefined"
|
|
37447
|
+
},
|
|
37448
|
+
{
|
|
37449
|
+
"kind": "Content",
|
|
37450
|
+
"text": ";"
|
|
37451
|
+
}
|
|
37452
|
+
],
|
|
37453
|
+
"isReadonly": true,
|
|
37454
|
+
"isOptional": false,
|
|
37455
|
+
"releaseTag": "Beta",
|
|
37456
|
+
"name": "result",
|
|
37457
|
+
"propertyTypeTokenRange": {
|
|
37458
|
+
"startIndex": 1,
|
|
37459
|
+
"endIndex": 3
|
|
37460
|
+
}
|
|
37461
|
+
},
|
|
37462
|
+
{
|
|
37463
|
+
"kind": "MethodSignature",
|
|
37464
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#setHeldBy:member(1)",
|
|
37465
|
+
"docComment": "/**\n * Move the interaction to `holder` (`'user'`, or a claimant's id such as `'autopilot'`).\n */\n",
|
|
37466
|
+
"excerptTokens": [
|
|
37467
|
+
{
|
|
37468
|
+
"kind": "Content",
|
|
37469
|
+
"text": "setHeldBy(holder: "
|
|
37470
|
+
},
|
|
37471
|
+
{
|
|
37472
|
+
"kind": "Reference",
|
|
37473
|
+
"text": "InteractionHolder",
|
|
37474
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionHolder:type"
|
|
37475
|
+
},
|
|
37476
|
+
{
|
|
37477
|
+
"kind": "Content",
|
|
37478
|
+
"text": "): "
|
|
37479
|
+
},
|
|
37480
|
+
{
|
|
37481
|
+
"kind": "Content",
|
|
37482
|
+
"text": "void"
|
|
37483
|
+
},
|
|
37484
|
+
{
|
|
37485
|
+
"kind": "Content",
|
|
37486
|
+
"text": ";"
|
|
37487
|
+
}
|
|
37488
|
+
],
|
|
37489
|
+
"isOptional": false,
|
|
37490
|
+
"returnTypeTokenRange": {
|
|
37491
|
+
"startIndex": 3,
|
|
37492
|
+
"endIndex": 4
|
|
37493
|
+
},
|
|
37494
|
+
"releaseTag": "Beta",
|
|
37495
|
+
"overloadIndex": 1,
|
|
37496
|
+
"parameters": [
|
|
37497
|
+
{
|
|
37498
|
+
"parameterName": "holder",
|
|
37499
|
+
"parameterTypeTokenRange": {
|
|
37500
|
+
"startIndex": 1,
|
|
37501
|
+
"endIndex": 2
|
|
37502
|
+
},
|
|
37503
|
+
"isOptional": false
|
|
37504
|
+
}
|
|
37505
|
+
],
|
|
37506
|
+
"name": "setHeldBy"
|
|
37507
|
+
},
|
|
37508
|
+
{
|
|
37509
|
+
"kind": "PropertySignature",
|
|
37510
|
+
"canonicalReference": "@genesislcap/ai-assistant!TestInteractionContext#surface:member",
|
|
37511
|
+
"docComment": "/**\n * The surface the controller exposed, as a claimant reads it; `undefined` until it exposes one.\n */\n",
|
|
37512
|
+
"excerptTokens": [
|
|
37513
|
+
{
|
|
37514
|
+
"kind": "Content",
|
|
37515
|
+
"text": "readonly surface: "
|
|
37516
|
+
},
|
|
37517
|
+
{
|
|
37518
|
+
"kind": "Reference",
|
|
37519
|
+
"text": "InteractionSurface",
|
|
37520
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface:interface"
|
|
37521
|
+
},
|
|
37522
|
+
{
|
|
37523
|
+
"kind": "Content",
|
|
37524
|
+
"text": " | undefined"
|
|
37525
|
+
},
|
|
37526
|
+
{
|
|
37527
|
+
"kind": "Content",
|
|
37528
|
+
"text": ";"
|
|
37529
|
+
}
|
|
37530
|
+
],
|
|
37531
|
+
"isReadonly": true,
|
|
37532
|
+
"isOptional": false,
|
|
37533
|
+
"releaseTag": "Beta",
|
|
37534
|
+
"name": "surface",
|
|
37535
|
+
"propertyTypeTokenRange": {
|
|
37536
|
+
"startIndex": 1,
|
|
37537
|
+
"endIndex": 3
|
|
37538
|
+
}
|
|
37539
|
+
}
|
|
37540
|
+
],
|
|
37541
|
+
"extendsTokenRanges": []
|
|
37542
|
+
},
|
|
35391
37543
|
{
|
|
35392
37544
|
"kind": "TypeAlias",
|
|
35393
37545
|
"canonicalReference": "@genesislcap/ai-assistant!ThinkingPolicyInput:type",
|
|
@@ -37598,6 +39750,432 @@
|
|
|
37598
39750
|
}
|
|
37599
39751
|
]
|
|
37600
39752
|
},
|
|
39753
|
+
{
|
|
39754
|
+
"kind": "Function",
|
|
39755
|
+
"canonicalReference": "@genesislcap/ai-assistant!widgetTools:function(1)",
|
|
39756
|
+
"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",
|
|
39757
|
+
"excerptTokens": [
|
|
39758
|
+
{
|
|
39759
|
+
"kind": "Content",
|
|
39760
|
+
"text": "export declare function widgetTools<TController, TArgs extends "
|
|
39761
|
+
},
|
|
39762
|
+
{
|
|
39763
|
+
"kind": "Content",
|
|
39764
|
+
"text": "{\n [name: string]: object;\n}"
|
|
39765
|
+
},
|
|
39766
|
+
{
|
|
39767
|
+
"kind": "Content",
|
|
39768
|
+
"text": ">(componentName: "
|
|
39769
|
+
},
|
|
39770
|
+
{
|
|
39771
|
+
"kind": "Content",
|
|
39772
|
+
"text": "string"
|
|
39773
|
+
},
|
|
39774
|
+
{
|
|
39775
|
+
"kind": "Content",
|
|
39776
|
+
"text": ", tools: "
|
|
39777
|
+
},
|
|
39778
|
+
{
|
|
39779
|
+
"kind": "Content",
|
|
39780
|
+
"text": "{\n [K in keyof TArgs]: "
|
|
39781
|
+
},
|
|
39782
|
+
{
|
|
39783
|
+
"kind": "Reference",
|
|
39784
|
+
"text": "WidgetToolSpec",
|
|
39785
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec:interface"
|
|
39786
|
+
},
|
|
39787
|
+
{
|
|
39788
|
+
"kind": "Content",
|
|
39789
|
+
"text": "<TController, TArgs[K]>;\n}"
|
|
39790
|
+
},
|
|
39791
|
+
{
|
|
39792
|
+
"kind": "Content",
|
|
39793
|
+
"text": "): "
|
|
39794
|
+
},
|
|
39795
|
+
{
|
|
39796
|
+
"kind": "Reference",
|
|
39797
|
+
"text": "WidgetTools",
|
|
39798
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools:interface"
|
|
39799
|
+
},
|
|
39800
|
+
{
|
|
39801
|
+
"kind": "Content",
|
|
39802
|
+
"text": ";"
|
|
39803
|
+
}
|
|
39804
|
+
],
|
|
39805
|
+
"fileUrlPath": "src/autopilot/widget-tools.ts",
|
|
39806
|
+
"returnTypeTokenRange": {
|
|
39807
|
+
"startIndex": 9,
|
|
39808
|
+
"endIndex": 10
|
|
39809
|
+
},
|
|
39810
|
+
"releaseTag": "Beta",
|
|
39811
|
+
"overloadIndex": 1,
|
|
39812
|
+
"parameters": [
|
|
39813
|
+
{
|
|
39814
|
+
"parameterName": "componentName",
|
|
39815
|
+
"parameterTypeTokenRange": {
|
|
39816
|
+
"startIndex": 3,
|
|
39817
|
+
"endIndex": 4
|
|
39818
|
+
},
|
|
39819
|
+
"isOptional": false
|
|
39820
|
+
},
|
|
39821
|
+
{
|
|
39822
|
+
"parameterName": "tools",
|
|
39823
|
+
"parameterTypeTokenRange": {
|
|
39824
|
+
"startIndex": 5,
|
|
39825
|
+
"endIndex": 8
|
|
39826
|
+
},
|
|
39827
|
+
"isOptional": false
|
|
39828
|
+
}
|
|
39829
|
+
],
|
|
39830
|
+
"typeParameters": [
|
|
39831
|
+
{
|
|
39832
|
+
"typeParameterName": "TController",
|
|
39833
|
+
"constraintTokenRange": {
|
|
39834
|
+
"startIndex": 0,
|
|
39835
|
+
"endIndex": 0
|
|
39836
|
+
},
|
|
39837
|
+
"defaultTypeTokenRange": {
|
|
39838
|
+
"startIndex": 0,
|
|
39839
|
+
"endIndex": 0
|
|
39840
|
+
}
|
|
39841
|
+
},
|
|
39842
|
+
{
|
|
39843
|
+
"typeParameterName": "TArgs",
|
|
39844
|
+
"constraintTokenRange": {
|
|
39845
|
+
"startIndex": 1,
|
|
39846
|
+
"endIndex": 2
|
|
39847
|
+
},
|
|
39848
|
+
"defaultTypeTokenRange": {
|
|
39849
|
+
"startIndex": 0,
|
|
39850
|
+
"endIndex": 0
|
|
39851
|
+
}
|
|
39852
|
+
}
|
|
39853
|
+
],
|
|
39854
|
+
"name": "widgetTools"
|
|
39855
|
+
},
|
|
39856
|
+
{
|
|
39857
|
+
"kind": "Interface",
|
|
39858
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools:interface",
|
|
39859
|
+
"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",
|
|
39860
|
+
"excerptTokens": [
|
|
39861
|
+
{
|
|
39862
|
+
"kind": "Content",
|
|
39863
|
+
"text": "export interface WidgetTools "
|
|
39864
|
+
}
|
|
39865
|
+
],
|
|
39866
|
+
"fileUrlPath": "src/autopilot/widget-tools.ts",
|
|
39867
|
+
"releaseTag": "Beta",
|
|
39868
|
+
"name": "WidgetTools",
|
|
39869
|
+
"preserveMemberOrder": false,
|
|
39870
|
+
"members": [
|
|
39871
|
+
{
|
|
39872
|
+
"kind": "PropertySignature",
|
|
39873
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools#componentName:member",
|
|
39874
|
+
"docComment": "/**\n * The widget type the tools read from: its registered component name.\n */\n",
|
|
39875
|
+
"excerptTokens": [
|
|
39876
|
+
{
|
|
39877
|
+
"kind": "Content",
|
|
39878
|
+
"text": "readonly componentName: "
|
|
39879
|
+
},
|
|
39880
|
+
{
|
|
39881
|
+
"kind": "Content",
|
|
39882
|
+
"text": "string"
|
|
39883
|
+
},
|
|
39884
|
+
{
|
|
39885
|
+
"kind": "Content",
|
|
39886
|
+
"text": ";"
|
|
39887
|
+
}
|
|
39888
|
+
],
|
|
39889
|
+
"isReadonly": true,
|
|
39890
|
+
"isOptional": false,
|
|
39891
|
+
"releaseTag": "Beta",
|
|
39892
|
+
"name": "componentName",
|
|
39893
|
+
"propertyTypeTokenRange": {
|
|
39894
|
+
"startIndex": 1,
|
|
39895
|
+
"endIndex": 2
|
|
39896
|
+
}
|
|
39897
|
+
},
|
|
39898
|
+
{
|
|
39899
|
+
"kind": "PropertySignature",
|
|
39900
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetTools#tools:member",
|
|
39901
|
+
"docComment": "/**\n * The tools, by name.\n */\n",
|
|
39902
|
+
"excerptTokens": [
|
|
39903
|
+
{
|
|
39904
|
+
"kind": "Content",
|
|
39905
|
+
"text": "readonly tools: "
|
|
39906
|
+
},
|
|
39907
|
+
{
|
|
39908
|
+
"kind": "Reference",
|
|
39909
|
+
"text": "Readonly",
|
|
39910
|
+
"canonicalReference": "!Readonly:type"
|
|
39911
|
+
},
|
|
39912
|
+
{
|
|
39913
|
+
"kind": "Content",
|
|
39914
|
+
"text": "<"
|
|
39915
|
+
},
|
|
39916
|
+
{
|
|
39917
|
+
"kind": "Reference",
|
|
39918
|
+
"text": "Record",
|
|
39919
|
+
"canonicalReference": "!Record:type"
|
|
39920
|
+
},
|
|
39921
|
+
{
|
|
39922
|
+
"kind": "Content",
|
|
39923
|
+
"text": "<string, "
|
|
39924
|
+
},
|
|
39925
|
+
{
|
|
39926
|
+
"kind": "Reference",
|
|
39927
|
+
"text": "WidgetToolSpec",
|
|
39928
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec:interface"
|
|
39929
|
+
},
|
|
39930
|
+
{
|
|
39931
|
+
"kind": "Content",
|
|
39932
|
+
"text": "<unknown, "
|
|
39933
|
+
},
|
|
39934
|
+
{
|
|
39935
|
+
"kind": "Reference",
|
|
39936
|
+
"text": "Record",
|
|
39937
|
+
"canonicalReference": "!Record:type"
|
|
39938
|
+
},
|
|
39939
|
+
{
|
|
39940
|
+
"kind": "Content",
|
|
39941
|
+
"text": "<string, unknown>>>>"
|
|
39942
|
+
},
|
|
39943
|
+
{
|
|
39944
|
+
"kind": "Content",
|
|
39945
|
+
"text": ";"
|
|
39946
|
+
}
|
|
39947
|
+
],
|
|
39948
|
+
"isReadonly": true,
|
|
39949
|
+
"isOptional": false,
|
|
39950
|
+
"releaseTag": "Beta",
|
|
39951
|
+
"name": "tools",
|
|
39952
|
+
"propertyTypeTokenRange": {
|
|
39953
|
+
"startIndex": 1,
|
|
39954
|
+
"endIndex": 9
|
|
39955
|
+
}
|
|
39956
|
+
}
|
|
39957
|
+
],
|
|
39958
|
+
"extendsTokenRanges": []
|
|
39959
|
+
},
|
|
39960
|
+
{
|
|
39961
|
+
"kind": "Interface",
|
|
39962
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec:interface",
|
|
39963
|
+
"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",
|
|
39964
|
+
"excerptTokens": [
|
|
39965
|
+
{
|
|
39966
|
+
"kind": "Content",
|
|
39967
|
+
"text": "export interface WidgetToolSpec<TController = "
|
|
39968
|
+
},
|
|
39969
|
+
{
|
|
39970
|
+
"kind": "Content",
|
|
39971
|
+
"text": "unknown"
|
|
39972
|
+
},
|
|
39973
|
+
{
|
|
39974
|
+
"kind": "Content",
|
|
39975
|
+
"text": ", TArgs = "
|
|
39976
|
+
},
|
|
39977
|
+
{
|
|
39978
|
+
"kind": "Reference",
|
|
39979
|
+
"text": "Record",
|
|
39980
|
+
"canonicalReference": "!Record:type"
|
|
39981
|
+
},
|
|
39982
|
+
{
|
|
39983
|
+
"kind": "Content",
|
|
39984
|
+
"text": "<string, unknown>"
|
|
39985
|
+
},
|
|
39986
|
+
{
|
|
39987
|
+
"kind": "Content",
|
|
39988
|
+
"text": "> "
|
|
39989
|
+
}
|
|
39990
|
+
],
|
|
39991
|
+
"fileUrlPath": "src/autopilot/widget-tools.ts",
|
|
39992
|
+
"releaseTag": "Beta",
|
|
39993
|
+
"typeParameters": [
|
|
39994
|
+
{
|
|
39995
|
+
"typeParameterName": "TController",
|
|
39996
|
+
"constraintTokenRange": {
|
|
39997
|
+
"startIndex": 0,
|
|
39998
|
+
"endIndex": 0
|
|
39999
|
+
},
|
|
40000
|
+
"defaultTypeTokenRange": {
|
|
40001
|
+
"startIndex": 1,
|
|
40002
|
+
"endIndex": 2
|
|
40003
|
+
}
|
|
40004
|
+
},
|
|
40005
|
+
{
|
|
40006
|
+
"typeParameterName": "TArgs",
|
|
40007
|
+
"constraintTokenRange": {
|
|
40008
|
+
"startIndex": 0,
|
|
40009
|
+
"endIndex": 0
|
|
40010
|
+
},
|
|
40011
|
+
"defaultTypeTokenRange": {
|
|
40012
|
+
"startIndex": 3,
|
|
40013
|
+
"endIndex": 5
|
|
40014
|
+
}
|
|
40015
|
+
}
|
|
40016
|
+
],
|
|
40017
|
+
"name": "WidgetToolSpec",
|
|
40018
|
+
"preserveMemberOrder": false,
|
|
40019
|
+
"members": [
|
|
40020
|
+
{
|
|
40021
|
+
"kind": "PropertySignature",
|
|
40022
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec#definition:member",
|
|
40023
|
+
"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",
|
|
40024
|
+
"excerptTokens": [
|
|
40025
|
+
{
|
|
40026
|
+
"kind": "Content",
|
|
40027
|
+
"text": "readonly definition: "
|
|
40028
|
+
},
|
|
40029
|
+
{
|
|
40030
|
+
"kind": "Reference",
|
|
40031
|
+
"text": "Omit",
|
|
40032
|
+
"canonicalReference": "!Omit:type"
|
|
40033
|
+
},
|
|
40034
|
+
{
|
|
40035
|
+
"kind": "Content",
|
|
40036
|
+
"text": "<"
|
|
40037
|
+
},
|
|
40038
|
+
{
|
|
40039
|
+
"kind": "Reference",
|
|
40040
|
+
"text": "ChatToolDefinition",
|
|
40041
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
|
|
40042
|
+
},
|
|
40043
|
+
{
|
|
40044
|
+
"kind": "Content",
|
|
40045
|
+
"text": ", 'name'>"
|
|
40046
|
+
},
|
|
40047
|
+
{
|
|
40048
|
+
"kind": "Content",
|
|
40049
|
+
"text": ";"
|
|
40050
|
+
}
|
|
40051
|
+
],
|
|
40052
|
+
"isReadonly": true,
|
|
40053
|
+
"isOptional": false,
|
|
40054
|
+
"releaseTag": "Beta",
|
|
40055
|
+
"name": "definition",
|
|
40056
|
+
"propertyTypeTokenRange": {
|
|
40057
|
+
"startIndex": 1,
|
|
40058
|
+
"endIndex": 5
|
|
40059
|
+
}
|
|
40060
|
+
},
|
|
40061
|
+
{
|
|
40062
|
+
"kind": "MethodSignature",
|
|
40063
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec#run:member(1)",
|
|
40064
|
+
"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",
|
|
40065
|
+
"excerptTokens": [
|
|
40066
|
+
{
|
|
40067
|
+
"kind": "Content",
|
|
40068
|
+
"text": "run(controller: "
|
|
40069
|
+
},
|
|
40070
|
+
{
|
|
40071
|
+
"kind": "Content",
|
|
40072
|
+
"text": "TController"
|
|
40073
|
+
},
|
|
40074
|
+
{
|
|
40075
|
+
"kind": "Content",
|
|
40076
|
+
"text": ", args: "
|
|
40077
|
+
},
|
|
40078
|
+
{
|
|
40079
|
+
"kind": "Content",
|
|
40080
|
+
"text": "TArgs"
|
|
40081
|
+
},
|
|
40082
|
+
{
|
|
40083
|
+
"kind": "Content",
|
|
40084
|
+
"text": "): "
|
|
40085
|
+
},
|
|
40086
|
+
{
|
|
40087
|
+
"kind": "Content",
|
|
40088
|
+
"text": "unknown | "
|
|
40089
|
+
},
|
|
40090
|
+
{
|
|
40091
|
+
"kind": "Reference",
|
|
40092
|
+
"text": "Promise",
|
|
40093
|
+
"canonicalReference": "!Promise:interface"
|
|
40094
|
+
},
|
|
40095
|
+
{
|
|
40096
|
+
"kind": "Content",
|
|
40097
|
+
"text": "<unknown>"
|
|
40098
|
+
},
|
|
40099
|
+
{
|
|
40100
|
+
"kind": "Content",
|
|
40101
|
+
"text": ";"
|
|
40102
|
+
}
|
|
40103
|
+
],
|
|
40104
|
+
"isOptional": false,
|
|
40105
|
+
"returnTypeTokenRange": {
|
|
40106
|
+
"startIndex": 5,
|
|
40107
|
+
"endIndex": 8
|
|
40108
|
+
},
|
|
40109
|
+
"releaseTag": "Beta",
|
|
40110
|
+
"overloadIndex": 1,
|
|
40111
|
+
"parameters": [
|
|
40112
|
+
{
|
|
40113
|
+
"parameterName": "controller",
|
|
40114
|
+
"parameterTypeTokenRange": {
|
|
40115
|
+
"startIndex": 1,
|
|
40116
|
+
"endIndex": 2
|
|
40117
|
+
},
|
|
40118
|
+
"isOptional": false
|
|
40119
|
+
},
|
|
40120
|
+
{
|
|
40121
|
+
"parameterName": "args",
|
|
40122
|
+
"parameterTypeTokenRange": {
|
|
40123
|
+
"startIndex": 3,
|
|
40124
|
+
"endIndex": 4
|
|
40125
|
+
},
|
|
40126
|
+
"isOptional": false
|
|
40127
|
+
}
|
|
40128
|
+
],
|
|
40129
|
+
"name": "run"
|
|
40130
|
+
},
|
|
40131
|
+
{
|
|
40132
|
+
"kind": "MethodSignature",
|
|
40133
|
+
"canonicalReference": "@genesislcap/ai-assistant!WidgetToolSpec#unavailable:member(1)",
|
|
40134
|
+
"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",
|
|
40135
|
+
"excerptTokens": [
|
|
40136
|
+
{
|
|
40137
|
+
"kind": "Content",
|
|
40138
|
+
"text": "unavailable?(controller: "
|
|
40139
|
+
},
|
|
40140
|
+
{
|
|
40141
|
+
"kind": "Content",
|
|
40142
|
+
"text": "TController"
|
|
40143
|
+
},
|
|
40144
|
+
{
|
|
40145
|
+
"kind": "Content",
|
|
40146
|
+
"text": "): "
|
|
40147
|
+
},
|
|
40148
|
+
{
|
|
40149
|
+
"kind": "Content",
|
|
40150
|
+
"text": "string | undefined"
|
|
40151
|
+
},
|
|
40152
|
+
{
|
|
40153
|
+
"kind": "Content",
|
|
40154
|
+
"text": ";"
|
|
40155
|
+
}
|
|
40156
|
+
],
|
|
40157
|
+
"isOptional": true,
|
|
40158
|
+
"returnTypeTokenRange": {
|
|
40159
|
+
"startIndex": 3,
|
|
40160
|
+
"endIndex": 4
|
|
40161
|
+
},
|
|
40162
|
+
"releaseTag": "Beta",
|
|
40163
|
+
"overloadIndex": 1,
|
|
40164
|
+
"parameters": [
|
|
40165
|
+
{
|
|
40166
|
+
"parameterName": "controller",
|
|
40167
|
+
"parameterTypeTokenRange": {
|
|
40168
|
+
"startIndex": 1,
|
|
40169
|
+
"endIndex": 2
|
|
40170
|
+
},
|
|
40171
|
+
"isOptional": false
|
|
40172
|
+
}
|
|
40173
|
+
],
|
|
40174
|
+
"name": "unavailable"
|
|
40175
|
+
}
|
|
40176
|
+
],
|
|
40177
|
+
"extendsTokenRanges": []
|
|
40178
|
+
},
|
|
37601
40179
|
{
|
|
37602
40180
|
"kind": "Function",
|
|
37603
40181
|
"canonicalReference": "@genesislcap/ai-assistant!withFreshMetaSnapshot:function(1)",
|