@genesislcap/ai-assistant 15.81.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 +2800 -116
- package/dist/ai-assistant.d.ts +887 -109
- package/dist/chat-driver.cjs +468 -107
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +468 -107
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +1108 -61
- 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/agent-session/agent-session.d.ts +2 -1
- package/dist/dts/components/agent-session/agent-session.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/components/orchestrating-driver/orchestrating-driver.d.ts +6 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.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 +33 -16
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/main/main.types.d.ts +15 -0
- package/dist/dts/main/main.types.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 +6 -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/dts/utils/delegated-message.d.ts +7 -0
- package/dist/dts/utils/delegated-message.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/agent-session/agent-session.js +3 -2
- 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/orchestrating-driver/orchestrating-driver.js +14 -6
- 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 +88 -35
- 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 +6 -6
- 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 +55 -18
- 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",
|
|
@@ -2419,11 +2446,19 @@
|
|
|
2419
2446
|
{
|
|
2420
2447
|
"kind": "Method",
|
|
2421
2448
|
"canonicalReference": "@genesislcap/ai-assistant!AgentSession#getLockedName:member(1)",
|
|
2422
|
-
"docComment": "/**\n * The name routing is locked to, flow lock first. A flow in progress outranks the user's sticky pick for the duration of the flow; neither being set means automatic routing.\n */\n",
|
|
2449
|
+
"docComment": "/**\n * The name routing is locked to, flow lock first. A flow in progress outranks the user's sticky pick for the duration of the flow; neither being set means automatic routing. `pin`, when given, stands in for the sticky pick: one message routed its own way.\n */\n",
|
|
2423
2450
|
"excerptTokens": [
|
|
2424
2451
|
{
|
|
2425
2452
|
"kind": "Content",
|
|
2426
|
-
"text": "getLockedName(
|
|
2453
|
+
"text": "getLockedName(pin?: "
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
"kind": "Content",
|
|
2457
|
+
"text": "string | null"
|
|
2458
|
+
},
|
|
2459
|
+
{
|
|
2460
|
+
"kind": "Content",
|
|
2461
|
+
"text": "): "
|
|
2427
2462
|
},
|
|
2428
2463
|
{
|
|
2429
2464
|
"kind": "Content",
|
|
@@ -2436,13 +2471,22 @@
|
|
|
2436
2471
|
],
|
|
2437
2472
|
"isStatic": false,
|
|
2438
2473
|
"returnTypeTokenRange": {
|
|
2439
|
-
"startIndex":
|
|
2440
|
-
"endIndex":
|
|
2474
|
+
"startIndex": 3,
|
|
2475
|
+
"endIndex": 4
|
|
2441
2476
|
},
|
|
2442
2477
|
"releaseTag": "Beta",
|
|
2443
2478
|
"isProtected": false,
|
|
2444
2479
|
"overloadIndex": 1,
|
|
2445
|
-
"parameters": [
|
|
2480
|
+
"parameters": [
|
|
2481
|
+
{
|
|
2482
|
+
"parameterName": "pin",
|
|
2483
|
+
"parameterTypeTokenRange": {
|
|
2484
|
+
"startIndex": 1,
|
|
2485
|
+
"endIndex": 2
|
|
2486
|
+
},
|
|
2487
|
+
"isOptional": true
|
|
2488
|
+
}
|
|
2489
|
+
],
|
|
2446
2490
|
"isOptional": false,
|
|
2447
2491
|
"isAbstract": false,
|
|
2448
2492
|
"name": "getLockedName"
|
|
@@ -3167,7 +3211,7 @@
|
|
|
3167
3211
|
{
|
|
3168
3212
|
"kind": "TypeAlias",
|
|
3169
3213
|
"canonicalReference": "@genesislcap/ai-assistant!AiChatInteraction:type",
|
|
3170
|
-
"docComment": "/**\n * The two mutually-exclusive states an interaction widget is ever in (GENC-1390). Modelling them as a discriminated union makes illegal combinations unrepresentable — a resolved widget cannot carry a live `interactionContext` or a `shouldAutoFocus`, and a pending widget cannot be read for a `result`.\n *\n * The host sets the widget's `interaction` on mount and REPLACES it (pending → resolved) on completion.\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",
|
|
3171
3215
|
"excerptTokens": [
|
|
3172
3216
|
{
|
|
3173
3217
|
"kind": "Content",
|
|
@@ -3185,6 +3229,14 @@
|
|
|
3185
3229
|
"kind": "Content",
|
|
3186
3230
|
"text": "unknown"
|
|
3187
3231
|
},
|
|
3232
|
+
{
|
|
3233
|
+
"kind": "Content",
|
|
3234
|
+
"text": ", TController = "
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
"kind": "Content",
|
|
3238
|
+
"text": "unknown"
|
|
3239
|
+
},
|
|
3188
3240
|
{
|
|
3189
3241
|
"kind": "Content",
|
|
3190
3242
|
"text": "> = "
|
|
@@ -3200,7 +3252,16 @@
|
|
|
3200
3252
|
},
|
|
3201
3253
|
{
|
|
3202
3254
|
"kind": "Content",
|
|
3203
|
-
"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: "
|
|
3204
3265
|
},
|
|
3205
3266
|
{
|
|
3206
3267
|
"kind": "Reference",
|
|
@@ -3250,11 +3311,22 @@
|
|
|
3250
3311
|
"startIndex": 3,
|
|
3251
3312
|
"endIndex": 4
|
|
3252
3313
|
}
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
"typeParameterName": "TController",
|
|
3317
|
+
"constraintTokenRange": {
|
|
3318
|
+
"startIndex": 0,
|
|
3319
|
+
"endIndex": 0
|
|
3320
|
+
},
|
|
3321
|
+
"defaultTypeTokenRange": {
|
|
3322
|
+
"startIndex": 5,
|
|
3323
|
+
"endIndex": 6
|
|
3324
|
+
}
|
|
3253
3325
|
}
|
|
3254
3326
|
],
|
|
3255
3327
|
"typeTokenRange": {
|
|
3256
|
-
"startIndex":
|
|
3257
|
-
"endIndex":
|
|
3328
|
+
"startIndex": 7,
|
|
3329
|
+
"endIndex": 16
|
|
3258
3330
|
}
|
|
3259
3331
|
},
|
|
3260
3332
|
{
|
|
@@ -3340,6 +3412,14 @@
|
|
|
3340
3412
|
"kind": "Content",
|
|
3341
3413
|
"text": "unknown"
|
|
3342
3414
|
},
|
|
3415
|
+
{
|
|
3416
|
+
"kind": "Content",
|
|
3417
|
+
"text": ", TController = "
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
"kind": "Content",
|
|
3421
|
+
"text": "unknown"
|
|
3422
|
+
},
|
|
3343
3423
|
{
|
|
3344
3424
|
"kind": "Content",
|
|
3345
3425
|
"text": "> "
|
|
@@ -3369,6 +3449,17 @@
|
|
|
3369
3449
|
"startIndex": 3,
|
|
3370
3450
|
"endIndex": 4
|
|
3371
3451
|
}
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
"typeParameterName": "TController",
|
|
3455
|
+
"constraintTokenRange": {
|
|
3456
|
+
"startIndex": 0,
|
|
3457
|
+
"endIndex": 0
|
|
3458
|
+
},
|
|
3459
|
+
"defaultTypeTokenRange": {
|
|
3460
|
+
"startIndex": 5,
|
|
3461
|
+
"endIndex": 6
|
|
3462
|
+
}
|
|
3372
3463
|
}
|
|
3373
3464
|
],
|
|
3374
3465
|
"name": "AiChatWidget",
|
|
@@ -3390,7 +3481,7 @@
|
|
|
3390
3481
|
},
|
|
3391
3482
|
{
|
|
3392
3483
|
"kind": "Content",
|
|
3393
|
-
"text": "<TData, TResult>"
|
|
3484
|
+
"text": "<TData, TResult, TController>"
|
|
3394
3485
|
},
|
|
3395
3486
|
{
|
|
3396
3487
|
"kind": "Content",
|
|
@@ -4288,7 +4379,7 @@
|
|
|
4288
4379
|
{
|
|
4289
4380
|
"kind": "MethodSignature",
|
|
4290
4381
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionCheckpoint:member(1)",
|
|
4291
|
-
"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",
|
|
4292
4383
|
"excerptTokens": [
|
|
4293
4384
|
{
|
|
4294
4385
|
"kind": "Content",
|
|
@@ -4318,6 +4409,43 @@
|
|
|
4318
4409
|
"parameters": [],
|
|
4319
4410
|
"name": "getInteractionCheckpoint"
|
|
4320
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
|
+
},
|
|
4321
4449
|
{
|
|
4322
4450
|
"kind": "MethodSignature",
|
|
4323
4451
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#getInteractionContext:member(1)",
|
|
@@ -5048,7 +5176,7 @@
|
|
|
5048
5176
|
{
|
|
5049
5177
|
"kind": "MethodSignature",
|
|
5050
5178
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#restoreInteractionCheckpoint:member(1)",
|
|
5051
|
-
"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",
|
|
5052
5180
|
"excerptTokens": [
|
|
5053
5181
|
{
|
|
5054
5182
|
"kind": "Content",
|
|
@@ -5095,6 +5223,60 @@
|
|
|
5095
5223
|
],
|
|
5096
5224
|
"name": "restoreInteractionCheckpoint"
|
|
5097
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
|
+
},
|
|
5098
5280
|
{
|
|
5099
5281
|
"kind": "MethodSignature",
|
|
5100
5282
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriver#resumeRestoredFlow:member(1)",
|
|
@@ -5658,7 +5840,7 @@
|
|
|
5658
5840
|
{
|
|
5659
5841
|
"kind": "PropertySignature",
|
|
5660
5842
|
"canonicalReference": "@genesislcap/ai-assistant!AiDriverEventMap#\"interaction-settled\":member",
|
|
5661
|
-
"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",
|
|
5662
5844
|
"excerptTokens": [
|
|
5663
5845
|
{
|
|
5664
5846
|
"kind": "Content",
|
|
@@ -5671,7 +5853,7 @@
|
|
|
5671
5853
|
},
|
|
5672
5854
|
{
|
|
5673
5855
|
"kind": "Content",
|
|
5674
|
-
"text": "<{\n interactionId: string;\n answeredBy?: string;\n }>"
|
|
5856
|
+
"text": "<{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }>"
|
|
5675
5857
|
},
|
|
5676
5858
|
{
|
|
5677
5859
|
"kind": "Content",
|
|
@@ -7480,7 +7662,7 @@
|
|
|
7480
7662
|
{
|
|
7481
7663
|
"kind": "PropertySignature",
|
|
7482
7664
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#maxRefinements:member",
|
|
7483
|
-
"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",
|
|
7484
7666
|
"excerptTokens": [
|
|
7485
7667
|
{
|
|
7486
7668
|
"kind": "Content",
|
|
@@ -7714,7 +7896,7 @@
|
|
|
7714
7896
|
{
|
|
7715
7897
|
"kind": "PropertySignature",
|
|
7716
7898
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotConfig#watchdogMs:member",
|
|
7717
|
-
"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",
|
|
7718
7900
|
"excerptTokens": [
|
|
7719
7901
|
{
|
|
7720
7902
|
"kind": "Content",
|
|
@@ -7787,6 +7969,38 @@
|
|
|
7787
7969
|
"startIndex": 1,
|
|
7788
7970
|
"endIndex": 7
|
|
7789
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
|
+
}
|
|
7790
8004
|
}
|
|
7791
8005
|
],
|
|
7792
8006
|
"extendsTokenRanges": []
|
|
@@ -8373,6 +8587,33 @@
|
|
|
8373
8587
|
"endIndex": 2
|
|
8374
8588
|
}
|
|
8375
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
|
+
},
|
|
8376
8617
|
{
|
|
8377
8618
|
"kind": "PropertySignature",
|
|
8378
8619
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotCopy#watchdogReason:member",
|
|
@@ -9522,7 +9763,16 @@
|
|
|
9522
9763
|
},
|
|
9523
9764
|
{
|
|
9524
9765
|
"kind": "Content",
|
|
9525
|
-
"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": ">"
|
|
9526
9776
|
},
|
|
9527
9777
|
{
|
|
9528
9778
|
"kind": "Content",
|
|
@@ -9535,7 +9785,7 @@
|
|
|
9535
9785
|
"name": "interaction",
|
|
9536
9786
|
"propertyTypeTokenRange": {
|
|
9537
9787
|
"startIndex": 1,
|
|
9538
|
-
"endIndex":
|
|
9788
|
+
"endIndex": 9
|
|
9539
9789
|
},
|
|
9540
9790
|
"isStatic": false,
|
|
9541
9791
|
"isProtected": false,
|
|
@@ -9728,7 +9978,7 @@
|
|
|
9728
9978
|
{
|
|
9729
9979
|
"kind": "MethodSignature",
|
|
9730
9980
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHost#resume:member(1)",
|
|
9731
|
-
"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",
|
|
9732
9982
|
"excerptTokens": [
|
|
9733
9983
|
{
|
|
9734
9984
|
"kind": "Content",
|
|
@@ -9903,7 +10153,7 @@
|
|
|
9903
10153
|
{
|
|
9904
10154
|
"kind": "PropertySignature",
|
|
9905
10155
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHostState#needsUser:member",
|
|
9906
|
-
"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",
|
|
9907
10157
|
"excerptTokens": [
|
|
9908
10158
|
{
|
|
9909
10159
|
"kind": "Content",
|
|
@@ -9957,7 +10207,7 @@
|
|
|
9957
10207
|
{
|
|
9958
10208
|
"kind": "PropertySignature",
|
|
9959
10209
|
"canonicalReference": "@genesislcap/ai-assistant!AutopilotHostState#status:member",
|
|
9960
|
-
"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",
|
|
9961
10211
|
"excerptTokens": [
|
|
9962
10212
|
{
|
|
9963
10213
|
"kind": "Content",
|
|
@@ -10970,6 +11220,46 @@
|
|
|
10970
11220
|
"isAbstract": false,
|
|
10971
11221
|
"name": "getInteractionCheckpoint"
|
|
10972
11222
|
},
|
|
11223
|
+
{
|
|
11224
|
+
"kind": "Method",
|
|
11225
|
+
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getInteractionCheckpoints:member(1)",
|
|
11226
|
+
"docComment": "",
|
|
11227
|
+
"excerptTokens": [
|
|
11228
|
+
{
|
|
11229
|
+
"kind": "Content",
|
|
11230
|
+
"text": "getInteractionCheckpoints(): "
|
|
11231
|
+
},
|
|
11232
|
+
{
|
|
11233
|
+
"kind": "Content",
|
|
11234
|
+
"text": "readonly "
|
|
11235
|
+
},
|
|
11236
|
+
{
|
|
11237
|
+
"kind": "Reference",
|
|
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
|
+
},
|
|
10973
11263
|
{
|
|
10974
11264
|
"kind": "Method",
|
|
10975
11265
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#getInteractionContext:member(1)",
|
|
@@ -11867,6 +12157,63 @@
|
|
|
11867
12157
|
"isAbstract": false,
|
|
11868
12158
|
"name": "restoreInteractionCheckpoint"
|
|
11869
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
|
+
},
|
|
11870
12217
|
{
|
|
11871
12218
|
"kind": "Method",
|
|
11872
12219
|
"canonicalReference": "@genesislcap/ai-assistant!BaseDriverDecorator#resumeRestoredFlow:member(1)",
|
|
@@ -13151,7 +13498,7 @@
|
|
|
13151
13498
|
{
|
|
13152
13499
|
"kind": "Method",
|
|
13153
13500
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionCheckpoint:member(1)",
|
|
13154
|
-
"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",
|
|
13155
13502
|
"excerptTokens": [
|
|
13156
13503
|
{
|
|
13157
13504
|
"kind": "Content",
|
|
@@ -13184,6 +13531,46 @@
|
|
|
13184
13531
|
"isAbstract": false,
|
|
13185
13532
|
"name": "getInteractionCheckpoint"
|
|
13186
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
|
+
},
|
|
13187
13574
|
{
|
|
13188
13575
|
"kind": "Method",
|
|
13189
13576
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getInteractionContext:member(1)",
|
|
@@ -14421,7 +14808,7 @@
|
|
|
14421
14808
|
{
|
|
14422
14809
|
"kind": "Method",
|
|
14423
14810
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#restoreInteractionCheckpoint:member(1)",
|
|
14424
|
-
"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",
|
|
14425
14812
|
"excerptTokens": [
|
|
14426
14813
|
{
|
|
14427
14814
|
"kind": "Content",
|
|
@@ -14471,6 +14858,63 @@
|
|
|
14471
14858
|
"isAbstract": false,
|
|
14472
14859
|
"name": "restoreInteractionCheckpoint"
|
|
14473
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
|
+
},
|
|
14474
14918
|
{
|
|
14475
14919
|
"kind": "Method",
|
|
14476
14920
|
"canonicalReference": "@genesislcap/ai-assistant!ChatDriver#resumeRestoredFlow:member(1)",
|
|
@@ -15635,6 +16079,404 @@
|
|
|
15635
16079
|
],
|
|
15636
16080
|
"extendsTokenRanges": []
|
|
15637
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
|
+
},
|
|
15638
16480
|
{
|
|
15639
16481
|
"kind": "Interface",
|
|
15640
16482
|
"canonicalReference": "@genesislcap/ai-assistant!CostSessionModelEntry:interface",
|
|
@@ -15922,6 +16764,105 @@
|
|
|
15922
16764
|
],
|
|
15923
16765
|
"extendsTokenRanges": []
|
|
15924
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
|
+
},
|
|
15925
16866
|
{
|
|
15926
16867
|
"kind": "Function",
|
|
15927
16868
|
"canonicalReference": "@genesislcap/ai-assistant!createToolFold:function(1)",
|
|
@@ -16155,7 +17096,7 @@
|
|
|
16155
17096
|
},
|
|
16156
17097
|
{
|
|
16157
17098
|
"kind": "Content",
|
|
16158
|
-
"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}"
|
|
16159
17100
|
},
|
|
16160
17101
|
{
|
|
16161
17102
|
"kind": "Content",
|
|
@@ -16288,7 +17229,7 @@
|
|
|
16288
17229
|
{
|
|
16289
17230
|
"kind": "PropertySignature",
|
|
16290
17231
|
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#freeText:member",
|
|
16291
|
-
"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",
|
|
16292
17233
|
"excerptTokens": [
|
|
16293
17234
|
{
|
|
16294
17235
|
"kind": "Content",
|
|
@@ -16312,6 +17253,33 @@
|
|
|
16312
17253
|
"endIndex": 2
|
|
16313
17254
|
}
|
|
16314
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
|
+
},
|
|
16315
17283
|
{
|
|
16316
17284
|
"kind": "PropertySignature",
|
|
16317
17285
|
"canonicalReference": "@genesislcap/ai-assistant!DecisionSpec#multi:member",
|
|
@@ -16401,6 +17369,56 @@
|
|
|
16401
17369
|
"startIndex": 1,
|
|
16402
17370
|
"endIndex": 2
|
|
16403
17371
|
}
|
|
17372
|
+
},
|
|
17373
|
+
{
|
|
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
|
+
}
|
|
16404
17422
|
}
|
|
16405
17423
|
],
|
|
16406
17424
|
"extendsTokenRanges": []
|
|
@@ -16529,7 +17547,7 @@
|
|
|
16529
17547
|
{
|
|
16530
17548
|
"kind": "Function",
|
|
16531
17549
|
"canonicalReference": "@genesislcap/ai-assistant!defineAutopilot:function(1)",
|
|
16532
|
-
"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",
|
|
16533
17551
|
"excerptTokens": [
|
|
16534
17552
|
{
|
|
16535
17553
|
"kind": "Content",
|
|
@@ -22023,7 +23041,7 @@
|
|
|
22023
23041
|
{
|
|
22024
23042
|
"kind": "Property",
|
|
22025
23043
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#pinnedAgentName:member",
|
|
22026
|
-
"docComment": "/**\n * Name of the agent the user has pinned via the agent picker. `null` means orchestration: the assistant routes each message. Persisted on the session store, so it survives pop-in/pop-out
|
|
23044
|
+
"docComment": "/**\n * Name of the agent the user has pinned via the agent picker. `null` means orchestration: the assistant routes each message. Persisted on the session store, so it survives pop-in/pop-out. A page refresh resets it unless session persistence is on, which saves it with the session and restores it.\n *\n * Only changes on explicit user action (picker click or host's `setAgent`). The orchestrator's auto-pin on stateful activation writes `flowOwnerAgentName` instead, so finishing a guided flow doesn't wipe the user's sticky pick.\n */\n",
|
|
22027
23045
|
"excerptTokens": [
|
|
22028
23046
|
{
|
|
22029
23047
|
"kind": "Content",
|
|
@@ -24697,7 +25715,7 @@
|
|
|
24697
25715
|
{
|
|
24698
25716
|
"kind": "Method",
|
|
24699
25717
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#submitMessage:member(1)",
|
|
24700
|
-
"docComment": "/**\n * Programmatically submit a message.
|
|
25718
|
+
"docComment": "/**\n * Programmatically submit a message. Sends it the way the built-in composer's Send does, but from external code — a custom input rendered inside `slot=\"splash\"` when paired with `chatConfig.ui.hideComposer`, or a host sending on the user's behalf.\n *\n * The input fully describes the turn: `text` and `files` are sent as given, and the composer is never read or cleared, so whatever the user has typed or attached there stays where it is. Files are validated against `chatConfig.ui.acceptedFiles` using the same pipeline as the composer's attach button. `options` routes the message — see {@link SubmitMessageOptions}.\n *\n * Atomic on validation: if any file fails validation, no send is dispatched, and the failure messages are returned in `errors`. They are not shown as composer chips: the files are the caller's, not the user's.\n *\n * Resolves when the send settles: it awaits the driver's `sendMessage`, which for the built-in drivers is the whole turn, the assistant's response included.\n *\n * @beta\n */\n",
|
|
24701
25719
|
"excerptTokens": [
|
|
24702
25720
|
{
|
|
24703
25721
|
"kind": "Content",
|
|
@@ -24716,6 +25734,15 @@
|
|
|
24716
25734
|
"kind": "Content",
|
|
24717
25735
|
"text": "[];\n }"
|
|
24718
25736
|
},
|
|
25737
|
+
{
|
|
25738
|
+
"kind": "Content",
|
|
25739
|
+
"text": ", options?: "
|
|
25740
|
+
},
|
|
25741
|
+
{
|
|
25742
|
+
"kind": "Reference",
|
|
25743
|
+
"text": "SubmitMessageOptions",
|
|
25744
|
+
"canonicalReference": "@genesislcap/ai-assistant!SubmitMessageOptions:interface"
|
|
25745
|
+
},
|
|
24719
25746
|
{
|
|
24720
25747
|
"kind": "Content",
|
|
24721
25748
|
"text": "): "
|
|
@@ -24745,8 +25772,8 @@
|
|
|
24745
25772
|
],
|
|
24746
25773
|
"isStatic": false,
|
|
24747
25774
|
"returnTypeTokenRange": {
|
|
24748
|
-
"startIndex":
|
|
24749
|
-
"endIndex":
|
|
25775
|
+
"startIndex": 7,
|
|
25776
|
+
"endIndex": 11
|
|
24750
25777
|
},
|
|
24751
25778
|
"releaseTag": "Beta",
|
|
24752
25779
|
"isProtected": false,
|
|
@@ -24759,6 +25786,14 @@
|
|
|
24759
25786
|
"endIndex": 4
|
|
24760
25787
|
},
|
|
24761
25788
|
"isOptional": false
|
|
25789
|
+
},
|
|
25790
|
+
{
|
|
25791
|
+
"parameterName": "options",
|
|
25792
|
+
"parameterTypeTokenRange": {
|
|
25793
|
+
"startIndex": 5,
|
|
25794
|
+
"endIndex": 6
|
|
25795
|
+
},
|
|
25796
|
+
"isOptional": true
|
|
24762
25797
|
}
|
|
24763
25798
|
],
|
|
24764
25799
|
"isOptional": false,
|
|
@@ -26068,6 +27103,86 @@
|
|
|
26068
27103
|
"parameters": [],
|
|
26069
27104
|
"name": "getAiPopoutManager"
|
|
26070
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
|
+
},
|
|
26071
27186
|
{
|
|
26072
27187
|
"kind": "Function",
|
|
26073
27188
|
"canonicalReference": "@genesislcap/ai-assistant!getInteractionRegistration:function(1)",
|
|
@@ -26632,6 +27747,14 @@
|
|
|
26632
27747
|
"kind": "Content",
|
|
26633
27748
|
"text": "unknown"
|
|
26634
27749
|
},
|
|
27750
|
+
{
|
|
27751
|
+
"kind": "Content",
|
|
27752
|
+
"text": ", TController = "
|
|
27753
|
+
},
|
|
27754
|
+
{
|
|
27755
|
+
"kind": "Content",
|
|
27756
|
+
"text": "unknown"
|
|
27757
|
+
},
|
|
26635
27758
|
{
|
|
26636
27759
|
"kind": "Content",
|
|
26637
27760
|
"text": "> "
|
|
@@ -26661,6 +27784,17 @@
|
|
|
26661
27784
|
"startIndex": 6,
|
|
26662
27785
|
"endIndex": 7
|
|
26663
27786
|
}
|
|
27787
|
+
},
|
|
27788
|
+
{
|
|
27789
|
+
"typeParameterName": "TController",
|
|
27790
|
+
"constraintTokenRange": {
|
|
27791
|
+
"startIndex": 0,
|
|
27792
|
+
"endIndex": 0
|
|
27793
|
+
},
|
|
27794
|
+
"defaultTypeTokenRange": {
|
|
27795
|
+
"startIndex": 8,
|
|
27796
|
+
"endIndex": 9
|
|
27797
|
+
}
|
|
26664
27798
|
}
|
|
26665
27799
|
],
|
|
26666
27800
|
"name": "InteractionContext",
|
|
@@ -26669,7 +27803,7 @@
|
|
|
26669
27803
|
{
|
|
26670
27804
|
"kind": "PropertySignature",
|
|
26671
27805
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#checkpoint:member",
|
|
26672
|
-
"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",
|
|
26673
27807
|
"excerptTokens": [
|
|
26674
27808
|
{
|
|
26675
27809
|
"kind": "Content",
|
|
@@ -26741,7 +27875,7 @@
|
|
|
26741
27875
|
{
|
|
26742
27876
|
"kind": "PropertySignature",
|
|
26743
27877
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#controller:member",
|
|
26744
|
-
"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",
|
|
26745
27879
|
"excerptTokens": [
|
|
26746
27880
|
{
|
|
26747
27881
|
"kind": "Content",
|
|
@@ -26749,7 +27883,7 @@
|
|
|
26749
27883
|
},
|
|
26750
27884
|
{
|
|
26751
27885
|
"kind": "Content",
|
|
26752
|
-
"text": "
|
|
27886
|
+
"text": "TController | undefined"
|
|
26753
27887
|
},
|
|
26754
27888
|
{
|
|
26755
27889
|
"kind": "Content",
|
|
@@ -26970,7 +28104,7 @@
|
|
|
26970
28104
|
{
|
|
26971
28105
|
"kind": "MethodSignature",
|
|
26972
28106
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#once:member(1)",
|
|
26973
|
-
"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",
|
|
26974
28108
|
"excerptTokens": [
|
|
26975
28109
|
{
|
|
26976
28110
|
"kind": "Content",
|
|
@@ -27089,7 +28223,7 @@
|
|
|
27089
28223
|
{
|
|
27090
28224
|
"kind": "MethodSignature",
|
|
27091
28225
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#onSurfaceReady:member(1)",
|
|
27092
|
-
"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",
|
|
27093
28227
|
"excerptTokens": [
|
|
27094
28228
|
{
|
|
27095
28229
|
"kind": "Content",
|
|
@@ -27134,7 +28268,7 @@
|
|
|
27134
28268
|
{
|
|
27135
28269
|
"kind": "MethodSignature",
|
|
27136
28270
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#requestAttention:member(1)",
|
|
27137
|
-
"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",
|
|
27138
28272
|
"excerptTokens": [
|
|
27139
28273
|
{
|
|
27140
28274
|
"kind": "Content",
|
|
@@ -27179,7 +28313,7 @@
|
|
|
27179
28313
|
{
|
|
27180
28314
|
"kind": "MethodSignature",
|
|
27181
28315
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#resolve:member(1)",
|
|
27182
|
-
"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",
|
|
27183
28317
|
"excerptTokens": [
|
|
27184
28318
|
{
|
|
27185
28319
|
"kind": "Content",
|
|
@@ -27189,6 +28323,15 @@
|
|
|
27189
28323
|
"kind": "Content",
|
|
27190
28324
|
"text": "unknown"
|
|
27191
28325
|
},
|
|
28326
|
+
{
|
|
28327
|
+
"kind": "Content",
|
|
28328
|
+
"text": ", options?: "
|
|
28329
|
+
},
|
|
28330
|
+
{
|
|
28331
|
+
"kind": "Reference",
|
|
28332
|
+
"text": "InteractionResolveOptions",
|
|
28333
|
+
"canonicalReference": "@genesislcap/ai-assistant!InteractionResolveOptions:interface"
|
|
28334
|
+
},
|
|
27192
28335
|
{
|
|
27193
28336
|
"kind": "Content",
|
|
27194
28337
|
"text": "): "
|
|
@@ -27204,8 +28347,8 @@
|
|
|
27204
28347
|
],
|
|
27205
28348
|
"isOptional": false,
|
|
27206
28349
|
"returnTypeTokenRange": {
|
|
27207
|
-
"startIndex":
|
|
27208
|
-
"endIndex":
|
|
28350
|
+
"startIndex": 5,
|
|
28351
|
+
"endIndex": 6
|
|
27209
28352
|
},
|
|
27210
28353
|
"releaseTag": "Beta",
|
|
27211
28354
|
"overloadIndex": 1,
|
|
@@ -27217,6 +28360,14 @@
|
|
|
27217
28360
|
"endIndex": 2
|
|
27218
28361
|
},
|
|
27219
28362
|
"isOptional": false
|
|
28363
|
+
},
|
|
28364
|
+
{
|
|
28365
|
+
"parameterName": "options",
|
|
28366
|
+
"parameterTypeTokenRange": {
|
|
28367
|
+
"startIndex": 3,
|
|
28368
|
+
"endIndex": 4
|
|
28369
|
+
},
|
|
28370
|
+
"isOptional": true
|
|
27220
28371
|
}
|
|
27221
28372
|
],
|
|
27222
28373
|
"name": "resolve"
|
|
@@ -27224,7 +28375,7 @@
|
|
|
27224
28375
|
{
|
|
27225
28376
|
"kind": "MethodSignature",
|
|
27226
28377
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#saveCheckpoint:member(1)",
|
|
27227
|
-
"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",
|
|
27228
28379
|
"excerptTokens": [
|
|
27229
28380
|
{
|
|
27230
28381
|
"kind": "Content",
|
|
@@ -27293,6 +28444,51 @@
|
|
|
27293
28444
|
"endIndex": 2
|
|
27294
28445
|
}
|
|
27295
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
|
+
},
|
|
27296
28492
|
{
|
|
27297
28493
|
"kind": "PropertySignature",
|
|
27298
28494
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionContext#state:member",
|
|
@@ -27396,6 +28592,33 @@
|
|
|
27396
28592
|
"startIndex": 1,
|
|
27397
28593
|
"endIndex": 3
|
|
27398
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
|
+
}
|
|
27399
28622
|
}
|
|
27400
28623
|
],
|
|
27401
28624
|
"extendsTokenRanges": []
|
|
@@ -27403,11 +28626,19 @@
|
|
|
27403
28626
|
{
|
|
27404
28627
|
"kind": "TypeAlias",
|
|
27405
28628
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type",
|
|
27406
|
-
"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",
|
|
27407
28630
|
"excerptTokens": [
|
|
27408
28631
|
{
|
|
27409
28632
|
"kind": "Content",
|
|
27410
|
-
"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": "> = "
|
|
27411
28642
|
},
|
|
27412
28643
|
{
|
|
27413
28644
|
"kind": "Content",
|
|
@@ -27420,7 +28651,16 @@
|
|
|
27420
28651
|
},
|
|
27421
28652
|
{
|
|
27422
28653
|
"kind": "Content",
|
|
27423
|
-
"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"
|
|
27424
28664
|
},
|
|
27425
28665
|
{
|
|
27426
28666
|
"kind": "Content",
|
|
@@ -27430,9 +28670,22 @@
|
|
|
27430
28670
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
27431
28671
|
"releaseTag": "Beta",
|
|
27432
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
|
+
],
|
|
27433
28686
|
"typeTokenRange": {
|
|
27434
|
-
"startIndex":
|
|
27435
|
-
"endIndex":
|
|
28687
|
+
"startIndex": 3,
|
|
28688
|
+
"endIndex": 8
|
|
27436
28689
|
}
|
|
27437
28690
|
},
|
|
27438
28691
|
{
|
|
@@ -27469,7 +28722,7 @@
|
|
|
27469
28722
|
{
|
|
27470
28723
|
"kind": "Interface",
|
|
27471
28724
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold:interface",
|
|
27472
|
-
"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",
|
|
27473
28726
|
"excerptTokens": [
|
|
27474
28727
|
{
|
|
27475
28728
|
"kind": "Content",
|
|
@@ -27481,10 +28734,66 @@
|
|
|
27481
28734
|
"name": "InteractionHold",
|
|
27482
28735
|
"preserveMemberOrder": false,
|
|
27483
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
|
+
},
|
|
27484
28793
|
{
|
|
27485
28794
|
"kind": "MethodSignature",
|
|
27486
28795
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#invoke:member(1)",
|
|
27487
|
-
"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",
|
|
27488
28797
|
"excerptTokens": [
|
|
27489
28798
|
{
|
|
27490
28799
|
"kind": "Content",
|
|
@@ -27620,7 +28929,7 @@
|
|
|
27620
28929
|
{
|
|
27621
28930
|
"kind": "MethodSignature",
|
|
27622
28931
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionHold#resolve:member(1)",
|
|
27623
|
-
"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",
|
|
27624
28933
|
"excerptTokens": [
|
|
27625
28934
|
{
|
|
27626
28935
|
"kind": "Content",
|
|
@@ -27706,6 +29015,51 @@
|
|
|
27706
29015
|
}
|
|
27707
29016
|
],
|
|
27708
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"
|
|
27709
29063
|
}
|
|
27710
29064
|
],
|
|
27711
29065
|
"extendsTokenRanges": []
|
|
@@ -27739,7 +29093,7 @@
|
|
|
27739
29093
|
{
|
|
27740
29094
|
"kind": "Interface",
|
|
27741
29095
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionInterceptor:interface",
|
|
27742
|
-
"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",
|
|
27743
29097
|
"excerptTokens": [
|
|
27744
29098
|
{
|
|
27745
29099
|
"kind": "Content",
|
|
@@ -27981,7 +29335,7 @@
|
|
|
27981
29335
|
{
|
|
27982
29336
|
"kind": "PropertySignature",
|
|
27983
29337
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionOpened#hold:member",
|
|
27984
|
-
"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",
|
|
27985
29339
|
"excerptTokens": [
|
|
27986
29340
|
{
|
|
27987
29341
|
"kind": "Content",
|
|
@@ -28093,15 +29447,36 @@
|
|
|
28093
29447
|
{
|
|
28094
29448
|
"kind": "Interface",
|
|
28095
29449
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration:interface",
|
|
28096
|
-
"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",
|
|
28097
29451
|
"excerptTokens": [
|
|
28098
29452
|
{
|
|
28099
29453
|
"kind": "Content",
|
|
28100
|
-
"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": "> "
|
|
28101
29463
|
}
|
|
28102
29464
|
],
|
|
28103
29465
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
28104
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
|
+
],
|
|
28105
29480
|
"name": "InteractionRegistration",
|
|
28106
29481
|
"preserveMemberOrder": false,
|
|
28107
29482
|
"members": [
|
|
@@ -28146,6 +29521,10 @@
|
|
|
28146
29521
|
"text": "InteractionControllerFactory",
|
|
28147
29522
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionControllerFactory:type"
|
|
28148
29523
|
},
|
|
29524
|
+
{
|
|
29525
|
+
"kind": "Content",
|
|
29526
|
+
"text": "<TController>"
|
|
29527
|
+
},
|
|
28149
29528
|
{
|
|
28150
29529
|
"kind": "Content",
|
|
28151
29530
|
"text": ";"
|
|
@@ -28155,6 +29534,33 @@
|
|
|
28155
29534
|
"isOptional": true,
|
|
28156
29535
|
"releaseTag": "Beta",
|
|
28157
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",
|
|
28158
29564
|
"propertyTypeTokenRange": {
|
|
28159
29565
|
"startIndex": 1,
|
|
28160
29566
|
"endIndex": 2
|
|
@@ -28163,7 +29569,7 @@
|
|
|
28163
29569
|
{
|
|
28164
29570
|
"kind": "PropertySignature",
|
|
28165
29571
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration#sameWork:member",
|
|
28166
|
-
"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",
|
|
28167
29573
|
"excerptTokens": [
|
|
28168
29574
|
{
|
|
28169
29575
|
"kind": "Content",
|
|
@@ -28244,6 +29650,51 @@
|
|
|
28244
29650
|
],
|
|
28245
29651
|
"extendsTokenRanges": []
|
|
28246
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
|
+
},
|
|
28247
29698
|
{
|
|
28248
29699
|
"kind": "Interface",
|
|
28249
29700
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface:interface",
|
|
@@ -28327,7 +29778,7 @@
|
|
|
28327
29778
|
{
|
|
28328
29779
|
"kind": "MethodSignature",
|
|
28329
29780
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#facts:member(1)",
|
|
28330
|
-
"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",
|
|
28331
29782
|
"excerptTokens": [
|
|
28332
29783
|
{
|
|
28333
29784
|
"kind": "Content",
|
|
@@ -28369,7 +29820,7 @@
|
|
|
28369
29820
|
{
|
|
28370
29821
|
"kind": "MethodSignature",
|
|
28371
29822
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#isReady:member(1)",
|
|
28372
|
-
"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",
|
|
28373
29824
|
"excerptTokens": [
|
|
28374
29825
|
{
|
|
28375
29826
|
"kind": "Content",
|
|
@@ -28394,6 +29845,33 @@
|
|
|
28394
29845
|
"parameters": [],
|
|
28395
29846
|
"name": "isReady"
|
|
28396
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
|
+
},
|
|
28397
29875
|
{
|
|
28398
29876
|
"kind": "PropertySignature",
|
|
28399
29877
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#prompt:member",
|
|
@@ -28424,7 +29902,7 @@
|
|
|
28424
29902
|
{
|
|
28425
29903
|
"kind": "MethodSignature",
|
|
28426
29904
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#read:member(1)",
|
|
28427
|
-
"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",
|
|
28428
29906
|
"excerptTokens": [
|
|
28429
29907
|
{
|
|
28430
29908
|
"kind": "Content",
|
|
@@ -28469,15 +29947,29 @@
|
|
|
28469
29947
|
{
|
|
28470
29948
|
"kind": "PropertySignature",
|
|
28471
29949
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionSurface#views:member",
|
|
28472
|
-
"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",
|
|
28473
29951
|
"excerptTokens": [
|
|
28474
29952
|
{
|
|
28475
29953
|
"kind": "Content",
|
|
28476
29954
|
"text": "readonly views?: "
|
|
28477
29955
|
},
|
|
29956
|
+
{
|
|
29957
|
+
"kind": "Reference",
|
|
29958
|
+
"text": "Readonly",
|
|
29959
|
+
"canonicalReference": "!Readonly:type"
|
|
29960
|
+
},
|
|
28478
29961
|
{
|
|
28479
29962
|
"kind": "Content",
|
|
28480
|
-
"text": "
|
|
29963
|
+
"text": "<"
|
|
29964
|
+
},
|
|
29965
|
+
{
|
|
29966
|
+
"kind": "Reference",
|
|
29967
|
+
"text": "Record",
|
|
29968
|
+
"canonicalReference": "!Record:type"
|
|
29969
|
+
},
|
|
29970
|
+
{
|
|
29971
|
+
"kind": "Content",
|
|
29972
|
+
"text": "<string, string>>"
|
|
28481
29973
|
},
|
|
28482
29974
|
{
|
|
28483
29975
|
"kind": "Content",
|
|
@@ -28490,7 +29982,7 @@
|
|
|
28490
29982
|
"name": "views",
|
|
28491
29983
|
"propertyTypeTokenRange": {
|
|
28492
29984
|
"startIndex": 1,
|
|
28493
|
-
"endIndex":
|
|
29985
|
+
"endIndex": 5
|
|
28494
29986
|
}
|
|
28495
29987
|
}
|
|
28496
29988
|
],
|
|
@@ -30010,7 +31502,7 @@
|
|
|
30010
31502
|
{
|
|
30011
31503
|
"kind": "PropertySignature",
|
|
30012
31504
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#checkpoint:member",
|
|
30013
|
-
"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",
|
|
30014
31506
|
"excerptTokens": [
|
|
30015
31507
|
{
|
|
30016
31508
|
"kind": "Content",
|
|
@@ -30034,6 +31526,38 @@
|
|
|
30034
31526
|
"endIndex": 2
|
|
30035
31527
|
}
|
|
30036
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
|
+
},
|
|
30037
31561
|
{
|
|
30038
31562
|
"kind": "PropertySignature",
|
|
30039
31563
|
"canonicalReference": "@genesislcap/ai-assistant!PersistedSession#condensePolicies:member",
|
|
@@ -30444,11 +31968,19 @@
|
|
|
30444
31968
|
{
|
|
30445
31969
|
"kind": "Function",
|
|
30446
31970
|
"canonicalReference": "@genesislcap/ai-assistant!registerInteraction:function(1)",
|
|
30447
|
-
"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",
|
|
30448
31972
|
"excerptTokens": [
|
|
30449
31973
|
{
|
|
30450
31974
|
"kind": "Content",
|
|
30451
|
-
"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: "
|
|
30452
31984
|
},
|
|
30453
31985
|
{
|
|
30454
31986
|
"kind": "Content",
|
|
@@ -30463,6 +31995,10 @@
|
|
|
30463
31995
|
"text": "InteractionRegistration",
|
|
30464
31996
|
"canonicalReference": "@genesislcap/ai-assistant!InteractionRegistration:interface"
|
|
30465
31997
|
},
|
|
31998
|
+
{
|
|
31999
|
+
"kind": "Content",
|
|
32000
|
+
"text": "<TController>"
|
|
32001
|
+
},
|
|
30466
32002
|
{
|
|
30467
32003
|
"kind": "Content",
|
|
30468
32004
|
"text": "): "
|
|
@@ -30478,8 +32014,8 @@
|
|
|
30478
32014
|
],
|
|
30479
32015
|
"fileUrlPath": "src/state/interaction-registry.ts",
|
|
30480
32016
|
"returnTypeTokenRange": {
|
|
30481
|
-
"startIndex":
|
|
30482
|
-
"endIndex":
|
|
32017
|
+
"startIndex": 8,
|
|
32018
|
+
"endIndex": 9
|
|
30483
32019
|
},
|
|
30484
32020
|
"releaseTag": "Beta",
|
|
30485
32021
|
"overloadIndex": 1,
|
|
@@ -30487,20 +32023,33 @@
|
|
|
30487
32023
|
{
|
|
30488
32024
|
"parameterName": "name",
|
|
30489
32025
|
"parameterTypeTokenRange": {
|
|
30490
|
-
"startIndex":
|
|
30491
|
-
"endIndex":
|
|
32026
|
+
"startIndex": 3,
|
|
32027
|
+
"endIndex": 4
|
|
30492
32028
|
},
|
|
30493
32029
|
"isOptional": false
|
|
30494
32030
|
},
|
|
30495
32031
|
{
|
|
30496
32032
|
"parameterName": "registration",
|
|
30497
32033
|
"parameterTypeTokenRange": {
|
|
30498
|
-
"startIndex":
|
|
30499
|
-
"endIndex":
|
|
32034
|
+
"startIndex": 5,
|
|
32035
|
+
"endIndex": 7
|
|
30500
32036
|
},
|
|
30501
32037
|
"isOptional": false
|
|
30502
32038
|
}
|
|
30503
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
|
+
],
|
|
30504
32053
|
"name": "registerInteraction"
|
|
30505
32054
|
},
|
|
30506
32055
|
{
|
|
@@ -31050,6 +32599,33 @@
|
|
|
31050
32599
|
"name": "SendMessageOptions",
|
|
31051
32600
|
"preserveMemberOrder": false,
|
|
31052
32601
|
"members": [
|
|
32602
|
+
{
|
|
32603
|
+
"kind": "PropertySignature",
|
|
32604
|
+
"canonicalReference": "@genesislcap/ai-assistant!SendMessageOptions#agent:member",
|
|
32605
|
+
"docComment": "/**\n * Route only this message as if this agent were pinned, or as Auto when `null`, in place of the sticky pin. Left out, the pin routes it. A flow-owner lock still outranks it, and a stateful agent it reaches takes that lock as usual. Ignored by a driver with nothing to route between, such as a bare `ChatDriver`.\n */\n",
|
|
32606
|
+
"excerptTokens": [
|
|
32607
|
+
{
|
|
32608
|
+
"kind": "Content",
|
|
32609
|
+
"text": "agent?: "
|
|
32610
|
+
},
|
|
32611
|
+
{
|
|
32612
|
+
"kind": "Content",
|
|
32613
|
+
"text": "string | null"
|
|
32614
|
+
},
|
|
32615
|
+
{
|
|
32616
|
+
"kind": "Content",
|
|
32617
|
+
"text": ";"
|
|
32618
|
+
}
|
|
32619
|
+
],
|
|
32620
|
+
"isReadonly": false,
|
|
32621
|
+
"isOptional": true,
|
|
32622
|
+
"releaseTag": "Beta",
|
|
32623
|
+
"name": "agent",
|
|
32624
|
+
"propertyTypeTokenRange": {
|
|
32625
|
+
"startIndex": 1,
|
|
32626
|
+
"endIndex": 2
|
|
32627
|
+
}
|
|
32628
|
+
},
|
|
31053
32629
|
{
|
|
31054
32630
|
"kind": "PropertySignature",
|
|
31055
32631
|
"canonicalReference": "@genesislcap/ai-assistant!SendMessageOptions#delegate:member",
|
|
@@ -34301,6 +35877,51 @@
|
|
|
34301
35877
|
"endIndex": 2
|
|
34302
35878
|
}
|
|
34303
35879
|
},
|
|
35880
|
+
{
|
|
35881
|
+
"kind": "Interface",
|
|
35882
|
+
"canonicalReference": "@genesislcap/ai-assistant!SubmitMessageOptions:interface",
|
|
35883
|
+
"docComment": "/**\n * How {@link FoundationAiAssistant.submitMessage} routes its message.\n *\n * @beta\n */\n",
|
|
35884
|
+
"excerptTokens": [
|
|
35885
|
+
{
|
|
35886
|
+
"kind": "Content",
|
|
35887
|
+
"text": "export interface SubmitMessageOptions "
|
|
35888
|
+
}
|
|
35889
|
+
],
|
|
35890
|
+
"fileUrlPath": "src/main/main.types.ts",
|
|
35891
|
+
"releaseTag": "Beta",
|
|
35892
|
+
"name": "SubmitMessageOptions",
|
|
35893
|
+
"preserveMemberOrder": false,
|
|
35894
|
+
"members": [
|
|
35895
|
+
{
|
|
35896
|
+
"kind": "PropertySignature",
|
|
35897
|
+
"canonicalReference": "@genesislcap/ai-assistant!SubmitMessageOptions#agent:member",
|
|
35898
|
+
"docComment": "/**\n * Route only this message as if this agent were pinned, or as Auto when `null`, without changing `pinnedAgentName`. Left out, the message routes as any other would. A guided flow's lock still outranks it, as it outranks the pin. A stateful agent it reaches takes that lock as usual, so the messages after it go to that agent too, until its flow releases. An agent that is not in `agents` is refused, and nothing is sent.\n */\n",
|
|
35899
|
+
"excerptTokens": [
|
|
35900
|
+
{
|
|
35901
|
+
"kind": "Content",
|
|
35902
|
+
"text": "agent?: "
|
|
35903
|
+
},
|
|
35904
|
+
{
|
|
35905
|
+
"kind": "Content",
|
|
35906
|
+
"text": "string | null"
|
|
35907
|
+
},
|
|
35908
|
+
{
|
|
35909
|
+
"kind": "Content",
|
|
35910
|
+
"text": ";"
|
|
35911
|
+
}
|
|
35912
|
+
],
|
|
35913
|
+
"isReadonly": false,
|
|
35914
|
+
"isOptional": true,
|
|
35915
|
+
"releaseTag": "Beta",
|
|
35916
|
+
"name": "agent",
|
|
35917
|
+
"propertyTypeTokenRange": {
|
|
35918
|
+
"startIndex": 1,
|
|
35919
|
+
"endIndex": 2
|
|
35920
|
+
}
|
|
35921
|
+
}
|
|
35922
|
+
],
|
|
35923
|
+
"extendsTokenRanges": []
|
|
35924
|
+
},
|
|
34304
35925
|
{
|
|
34305
35926
|
"kind": "Interface",
|
|
34306
35927
|
"canonicalReference": "@genesislcap/ai-assistant!SubmitMessageResult:interface",
|
|
@@ -34417,7 +36038,7 @@
|
|
|
34417
36038
|
{
|
|
34418
36039
|
"kind": "PropertySignature",
|
|
34419
36040
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#args:member",
|
|
34420
|
-
"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",
|
|
34421
36042
|
"excerptTokens": [
|
|
34422
36043
|
{
|
|
34423
36044
|
"kind": "Content",
|
|
@@ -34593,7 +36214,7 @@
|
|
|
34593
36214
|
{
|
|
34594
36215
|
"kind": "PropertySignature",
|
|
34595
36216
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#name:member",
|
|
34596
|
-
"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",
|
|
34597
36218
|
"excerptTokens": [
|
|
34598
36219
|
{
|
|
34599
36220
|
"kind": "Content",
|
|
@@ -34616,6 +36237,60 @@
|
|
|
34616
36237
|
"startIndex": 1,
|
|
34617
36238
|
"endIndex": 2
|
|
34618
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
|
+
}
|
|
34619
36294
|
}
|
|
34620
36295
|
],
|
|
34621
36296
|
"extendsTokenRanges": []
|
|
@@ -34623,7 +36298,7 @@
|
|
|
34623
36298
|
{
|
|
34624
36299
|
"kind": "Interface",
|
|
34625
36300
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec:interface",
|
|
34626
|
-
"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",
|
|
34627
36302
|
"excerptTokens": [
|
|
34628
36303
|
{
|
|
34629
36304
|
"kind": "Content",
|
|
@@ -34638,7 +36313,7 @@
|
|
|
34638
36313
|
{
|
|
34639
36314
|
"kind": "PropertySignature",
|
|
34640
36315
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#argsSchema:member",
|
|
34641
|
-
"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",
|
|
34642
36317
|
"excerptTokens": [
|
|
34643
36318
|
{
|
|
34644
36319
|
"kind": "Content",
|
|
@@ -34705,16 +36380,16 @@
|
|
|
34705
36380
|
},
|
|
34706
36381
|
{
|
|
34707
36382
|
"kind": "PropertySignature",
|
|
34708
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#
|
|
34709
|
-
"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",
|
|
34710
36385
|
"excerptTokens": [
|
|
34711
36386
|
{
|
|
34712
36387
|
"kind": "Content",
|
|
34713
|
-
"text": "readonly
|
|
36388
|
+
"text": "readonly finishes?: "
|
|
34714
36389
|
},
|
|
34715
36390
|
{
|
|
34716
36391
|
"kind": "Content",
|
|
34717
|
-
"text": "
|
|
36392
|
+
"text": "boolean"
|
|
34718
36393
|
},
|
|
34719
36394
|
{
|
|
34720
36395
|
"kind": "Content",
|
|
@@ -34724,7 +36399,7 @@
|
|
|
34724
36399
|
"isReadonly": true,
|
|
34725
36400
|
"isOptional": true,
|
|
34726
36401
|
"releaseTag": "Beta",
|
|
34727
|
-
"name": "
|
|
36402
|
+
"name": "finishes",
|
|
34728
36403
|
"propertyTypeTokenRange": {
|
|
34729
36404
|
"startIndex": 1,
|
|
34730
36405
|
"endIndex": 2
|
|
@@ -34732,12 +36407,12 @@
|
|
|
34732
36407
|
},
|
|
34733
36408
|
{
|
|
34734
36409
|
"kind": "PropertySignature",
|
|
34735
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#
|
|
34736
|
-
"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",
|
|
34737
36412
|
"excerptTokens": [
|
|
34738
36413
|
{
|
|
34739
36414
|
"kind": "Content",
|
|
34740
|
-
"text": "readonly
|
|
36415
|
+
"text": "readonly refines?: "
|
|
34741
36416
|
},
|
|
34742
36417
|
{
|
|
34743
36418
|
"kind": "Content",
|
|
@@ -34751,7 +36426,7 @@
|
|
|
34751
36426
|
"isReadonly": true,
|
|
34752
36427
|
"isOptional": true,
|
|
34753
36428
|
"releaseTag": "Beta",
|
|
34754
|
-
"name": "
|
|
36429
|
+
"name": "refines",
|
|
34755
36430
|
"propertyTypeTokenRange": {
|
|
34756
36431
|
"startIndex": 1,
|
|
34757
36432
|
"endIndex": 2
|
|
@@ -34760,7 +36435,7 @@
|
|
|
34760
36435
|
{
|
|
34761
36436
|
"kind": "MethodSignature",
|
|
34762
36437
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceActionSpec#run:member(1)",
|
|
34763
|
-
"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",
|
|
34764
36439
|
"excerptTokens": [
|
|
34765
36440
|
{
|
|
34766
36441
|
"kind": "Content",
|
|
@@ -34810,6 +36485,60 @@
|
|
|
34810
36485
|
}
|
|
34811
36486
|
],
|
|
34812
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
|
+
}
|
|
34813
36542
|
}
|
|
34814
36543
|
],
|
|
34815
36544
|
"extendsTokenRanges": []
|
|
@@ -34907,6 +36636,33 @@
|
|
|
34907
36636
|
"parameters": [],
|
|
34908
36637
|
"name": "describe"
|
|
34909
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
|
+
},
|
|
34910
36666
|
{
|
|
34911
36667
|
"kind": "PropertySignature",
|
|
34912
36668
|
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#prompt:member",
|
|
@@ -34935,62 +36691,85 @@
|
|
|
34935
36691
|
}
|
|
34936
36692
|
},
|
|
34937
36693
|
{
|
|
34938
|
-
"kind": "
|
|
34939
|
-
"canonicalReference": "@genesislcap/ai-assistant!SurfaceSpec#
|
|
34940
|
-
"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",
|
|
34941
36697
|
"excerptTokens": [
|
|
34942
36698
|
{
|
|
34943
36699
|
"kind": "Content",
|
|
34944
|
-
"text": "
|
|
36700
|
+
"text": "readonly views?: "
|
|
36701
|
+
},
|
|
36702
|
+
{
|
|
36703
|
+
"kind": "Reference",
|
|
36704
|
+
"text": "Readonly",
|
|
36705
|
+
"canonicalReference": "!Readonly:type"
|
|
34945
36706
|
},
|
|
34946
36707
|
{
|
|
34947
36708
|
"kind": "Content",
|
|
34948
|
-
"text": "
|
|
36709
|
+
"text": "<"
|
|
36710
|
+
},
|
|
36711
|
+
{
|
|
36712
|
+
"kind": "Reference",
|
|
36713
|
+
"text": "Record",
|
|
36714
|
+
"canonicalReference": "!Record:type"
|
|
34949
36715
|
},
|
|
34950
36716
|
{
|
|
34951
36717
|
"kind": "Content",
|
|
34952
|
-
"text": "
|
|
36718
|
+
"text": "<string, "
|
|
36719
|
+
},
|
|
36720
|
+
{
|
|
36721
|
+
"kind": "Reference",
|
|
36722
|
+
"text": "SurfaceView",
|
|
36723
|
+
"canonicalReference": "@genesislcap/ai-assistant!SurfaceView:interface"
|
|
34953
36724
|
},
|
|
34954
36725
|
{
|
|
34955
36726
|
"kind": "Content",
|
|
34956
|
-
"text": "
|
|
36727
|
+
"text": ">>"
|
|
34957
36728
|
},
|
|
34958
36729
|
{
|
|
34959
36730
|
"kind": "Content",
|
|
34960
36731
|
"text": ";"
|
|
34961
36732
|
}
|
|
34962
36733
|
],
|
|
34963
|
-
"
|
|
34964
|
-
"
|
|
34965
|
-
"startIndex": 3,
|
|
34966
|
-
"endIndex": 4
|
|
34967
|
-
},
|
|
36734
|
+
"isReadonly": true,
|
|
36735
|
+
"isOptional": true,
|
|
34968
36736
|
"releaseTag": "Beta",
|
|
34969
|
-
"
|
|
34970
|
-
"
|
|
34971
|
-
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
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": [
|
|
34982
36761
|
{
|
|
34983
36762
|
"kind": "PropertySignature",
|
|
34984
|
-
"canonicalReference": "@genesislcap/ai-assistant!
|
|
34985
|
-
"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",
|
|
34986
36765
|
"excerptTokens": [
|
|
34987
36766
|
{
|
|
34988
36767
|
"kind": "Content",
|
|
34989
|
-
"text": "readonly
|
|
36768
|
+
"text": "readonly description: "
|
|
34990
36769
|
},
|
|
34991
36770
|
{
|
|
34992
36771
|
"kind": "Content",
|
|
34993
|
-
"text": "
|
|
36772
|
+
"text": "string"
|
|
34994
36773
|
},
|
|
34995
36774
|
{
|
|
34996
36775
|
"kind": "Content",
|
|
@@ -34998,13 +36777,41 @@
|
|
|
34998
36777
|
}
|
|
34999
36778
|
],
|
|
35000
36779
|
"isReadonly": true,
|
|
35001
|
-
"isOptional":
|
|
36780
|
+
"isOptional": false,
|
|
35002
36781
|
"releaseTag": "Beta",
|
|
35003
|
-
"name": "
|
|
36782
|
+
"name": "description",
|
|
35004
36783
|
"propertyTypeTokenRange": {
|
|
35005
36784
|
"startIndex": 1,
|
|
35006
36785
|
"endIndex": 2
|
|
35007
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"
|
|
35008
36815
|
}
|
|
35009
36816
|
],
|
|
35010
36817
|
"extendsTokenRanges": []
|
|
@@ -35282,6 +37089,457 @@
|
|
|
35282
37089
|
"endIndex": 6
|
|
35283
37090
|
}
|
|
35284
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
|
+
},
|
|
35285
37543
|
{
|
|
35286
37544
|
"kind": "TypeAlias",
|
|
35287
37545
|
"canonicalReference": "@genesislcap/ai-assistant!ThinkingPolicyInput:type",
|
|
@@ -37492,6 +39750,432 @@
|
|
|
37492
39750
|
}
|
|
37493
39751
|
]
|
|
37494
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
|
+
},
|
|
37495
40179
|
{
|
|
37496
40180
|
"kind": "Function",
|
|
37497
40181
|
"canonicalReference": "@genesislcap/ai-assistant!withFreshMetaSnapshot:function(1)",
|