@genesislcap/ai-assistant 15.90.0 → 15.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.d.ts +8 -0
- package/dist/custom-elements.json +1102 -1096
- package/dist/dts/main/main.d.ts +8 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/main/main.js +24 -2
- package/package.json +17 -17
|
@@ -7149,696 +7149,195 @@
|
|
|
7149
7149
|
},
|
|
7150
7150
|
{
|
|
7151
7151
|
"kind": "javascript-module",
|
|
7152
|
-
"path": "src/headless-
|
|
7152
|
+
"path": "src/headless/describe-interaction.ts",
|
|
7153
7153
|
"declarations": [
|
|
7154
7154
|
{
|
|
7155
7155
|
"kind": "function",
|
|
7156
|
-
"name": "
|
|
7156
|
+
"name": "describeInteraction",
|
|
7157
7157
|
"return": {
|
|
7158
7158
|
"type": {
|
|
7159
|
-
"text": "
|
|
7159
|
+
"text": "InteractionDescription"
|
|
7160
7160
|
}
|
|
7161
7161
|
},
|
|
7162
7162
|
"parameters": [
|
|
7163
7163
|
{
|
|
7164
|
-
"name": "
|
|
7165
|
-
"type": {
|
|
7166
|
-
"text": "string"
|
|
7167
|
-
}
|
|
7168
|
-
},
|
|
7169
|
-
{
|
|
7170
|
-
"name": "lines",
|
|
7171
|
-
"type": {
|
|
7172
|
-
"text": "number"
|
|
7173
|
-
}
|
|
7174
|
-
},
|
|
7175
|
-
{
|
|
7176
|
-
"name": "chars",
|
|
7164
|
+
"name": "input",
|
|
7177
7165
|
"type": {
|
|
7178
|
-
"text": "
|
|
7166
|
+
"text": "DescribeInteractionInput"
|
|
7179
7167
|
}
|
|
7180
7168
|
}
|
|
7181
7169
|
],
|
|
7182
|
-
"description": "
|
|
7183
|
-
}
|
|
7170
|
+
"description": "What the person is being asked, as a compact JSON-serialisable record a model can read and\nanswer (GENC-1660): the same text the autopilot is sent for the decision (`renderDecision`,\nso there is one rendering of a decision, not two), and its actions as data, numbered as that text\nnumbers them, so \"1\" means the same option here and there.\n\nWith no surface — a widget with no controller, or one that has not exposed anything yet — there\nis nothing to act on: `controller` is `false` (or `true` and not `ready`, while a controller that\nwill expose a surface has not yet), `actions` is empty, and `text` is the widget as text alone.\n\nReads the surface fresh each time, so it describes the widget as it is now."
|
|
7171
|
+
}
|
|
7172
|
+
],
|
|
7173
|
+
"exports": [
|
|
7184
7174
|
{
|
|
7185
|
-
"kind": "
|
|
7186
|
-
"name": "
|
|
7187
|
-
"
|
|
7188
|
-
"
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
}
|
|
7199
|
-
],
|
|
7200
|
-
"description": "The keys of `source` that are set, as a new object: a field with nothing to say is dropped."
|
|
7201
|
-
},
|
|
7175
|
+
"kind": "js",
|
|
7176
|
+
"name": "describeInteraction",
|
|
7177
|
+
"declaration": {
|
|
7178
|
+
"name": "describeInteraction",
|
|
7179
|
+
"module": "src/headless/describe-interaction.ts"
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
]
|
|
7183
|
+
},
|
|
7184
|
+
{
|
|
7185
|
+
"kind": "javascript-module",
|
|
7186
|
+
"path": "src/headless/headless-debug.ts",
|
|
7187
|
+
"declarations": [
|
|
7202
7188
|
{
|
|
7203
7189
|
"kind": "function",
|
|
7204
|
-
"name": "
|
|
7190
|
+
"name": "headlessMetaSnapshot",
|
|
7205
7191
|
"return": {
|
|
7206
7192
|
"type": {
|
|
7207
|
-
"text": "
|
|
7193
|
+
"text": "DiagnosticEntry"
|
|
7208
7194
|
}
|
|
7209
7195
|
},
|
|
7210
7196
|
"parameters": [
|
|
7211
7197
|
{
|
|
7212
|
-
"name": "
|
|
7198
|
+
"name": "driver",
|
|
7213
7199
|
"type": {
|
|
7214
|
-
"text": "
|
|
7200
|
+
"text": "AiDriver"
|
|
7215
7201
|
}
|
|
7216
7202
|
},
|
|
7217
7203
|
{
|
|
7218
7204
|
"name": "options",
|
|
7219
7205
|
"default": "{}",
|
|
7220
7206
|
"type": {
|
|
7221
|
-
"text": "
|
|
7207
|
+
"text": "HeadlessDebugOptions"
|
|
7222
7208
|
}
|
|
7223
7209
|
}
|
|
7224
7210
|
],
|
|
7225
|
-
"description": "
|
|
7211
|
+
"description": "The `meta-snapshot` entry for right now, gathered the way the assistant element gathers it\n(`buildMetaSnapshot` does the assembly; this reads what it reports): the live agent comes from\nthe DRIVER, the transcript from its raw history, and the figures from the transcript, so what a\nheadless host logs is what the browser would. The context window and model, which the element\nlearns from its provider registry, are the host's to say."
|
|
7226
7212
|
},
|
|
7227
7213
|
{
|
|
7228
7214
|
"kind": "function",
|
|
7229
|
-
"name": "
|
|
7215
|
+
"name": "headlessDiagnosticEntries",
|
|
7230
7216
|
"return": {
|
|
7231
7217
|
"type": {
|
|
7232
|
-
"text": "
|
|
7218
|
+
"text": "DiagnosticEntry[]"
|
|
7233
7219
|
}
|
|
7234
7220
|
},
|
|
7235
7221
|
"parameters": [
|
|
7236
7222
|
{
|
|
7237
|
-
"name": "
|
|
7223
|
+
"name": "driver",
|
|
7238
7224
|
"type": {
|
|
7239
|
-
"text": "
|
|
7225
|
+
"text": "AiDriver"
|
|
7240
7226
|
}
|
|
7241
7227
|
},
|
|
7242
7228
|
{
|
|
7243
|
-
"name": "
|
|
7244
|
-
"optional": true,
|
|
7245
|
-
"type": {
|
|
7246
|
-
"text": "Readonly<Record<string, string>>"
|
|
7247
|
-
}
|
|
7248
|
-
}
|
|
7249
|
-
],
|
|
7250
|
-
"description": "A decision's text without its `Now: <the preview view as JSON>` line, and nothing else (`decisionText:\n\"lean\"`). `renderDecision` writes the preview as `Now: ${capRead(JSON.stringify(view))}`: `JSON.stringify`\nwith no indent never breaks a line, so the JSON is the one line, and `capRead` adds a second, `[Cut at …]`,\nonly when it cut it. Both go; in their place is a pointer to `read`. The line is found by position, not\nby prefix alone: it follows the Views list, whose entry for the preview ends `(shown below as Now)`, so a\ncard that itself has a line starting `Now: ` is not mistaken for it.\n\nThe text comes back as it was when there is no preview to find (a card with no preview view, or a short-form\ndecision, which shows no `Now:`), or when `views` does not name the one the Views list marks."
|
|
7251
|
-
},
|
|
7252
|
-
{
|
|
7253
|
-
"kind": "function",
|
|
7254
|
-
"name": "compactDecision",
|
|
7255
|
-
"return": {
|
|
7256
|
-
"type": {
|
|
7257
|
-
"text": "CompactDecision"
|
|
7258
|
-
}
|
|
7259
|
-
},
|
|
7260
|
-
"parameters": [
|
|
7261
|
-
{
|
|
7262
|
-
"name": "description",
|
|
7229
|
+
"name": "stateKey",
|
|
7263
7230
|
"type": {
|
|
7264
|
-
"text": "
|
|
7231
|
+
"text": "string"
|
|
7265
7232
|
}
|
|
7266
7233
|
},
|
|
7267
7234
|
{
|
|
7268
|
-
"name": "
|
|
7269
|
-
"default": "
|
|
7235
|
+
"name": "options",
|
|
7236
|
+
"default": "{}",
|
|
7270
7237
|
"type": {
|
|
7271
|
-
"text": "
|
|
7238
|
+
"text": "HeadlessDebugOptions"
|
|
7272
7239
|
}
|
|
7273
7240
|
}
|
|
7274
7241
|
],
|
|
7275
|
-
"description": "
|
|
7242
|
+
"description": "The diagnostic entries for the session so far, from the same `buildDiagnosticEntries` the\nbrowser's element and its persister use."
|
|
7276
7243
|
},
|
|
7277
7244
|
{
|
|
7278
7245
|
"kind": "function",
|
|
7279
|
-
"name": "
|
|
7246
|
+
"name": "headlessCurrentDebugLog",
|
|
7280
7247
|
"return": {
|
|
7281
7248
|
"type": {
|
|
7282
|
-
"text": "
|
|
7249
|
+
"text": "DebugLog"
|
|
7283
7250
|
}
|
|
7284
7251
|
},
|
|
7285
7252
|
"parameters": [
|
|
7286
7253
|
{
|
|
7287
|
-
"name": "
|
|
7254
|
+
"name": "driver",
|
|
7288
7255
|
"type": {
|
|
7289
|
-
"text": "
|
|
7256
|
+
"text": "AiDriver"
|
|
7290
7257
|
}
|
|
7291
7258
|
},
|
|
7292
7259
|
{
|
|
7293
|
-
"name": "
|
|
7260
|
+
"name": "stateKey",
|
|
7294
7261
|
"type": {
|
|
7295
7262
|
"text": "string"
|
|
7296
7263
|
}
|
|
7297
7264
|
},
|
|
7298
7265
|
{
|
|
7299
|
-
"name": "
|
|
7300
|
-
"
|
|
7301
|
-
"text": "ReadonlyArray<{ n?: number; name: string; enabled: boolean }>"
|
|
7302
|
-
}
|
|
7303
|
-
}
|
|
7304
|
-
],
|
|
7305
|
-
"description": "A decision cut to what a caller who has already read the card needs: which interaction, and the actions as\n`n`, `name`, `enabled`. For the reply to an edit, and to a refused action, where the card has not changed\nenough to be worth sending again."
|
|
7306
|
-
},
|
|
7307
|
-
{
|
|
7308
|
-
"kind": "function",
|
|
7309
|
-
"name": "capOutput",
|
|
7310
|
-
"return": {
|
|
7311
|
-
"type": {
|
|
7312
|
-
"text": "unknown"
|
|
7313
|
-
}
|
|
7314
|
-
},
|
|
7315
|
-
"parameters": [
|
|
7316
|
-
{
|
|
7317
|
-
"name": "output",
|
|
7266
|
+
"name": "options",
|
|
7267
|
+
"default": "{}",
|
|
7318
7268
|
"type": {
|
|
7319
|
-
"text": "
|
|
7269
|
+
"text": "HeadlessDebugOptions"
|
|
7320
7270
|
}
|
|
7321
7271
|
}
|
|
7322
7272
|
],
|
|
7323
|
-
"description": "
|
|
7273
|
+
"description": "The current page's debug log: what `HeadlessSession.debugLog()` returns when nothing is\npersisted, and the fallback when the stored stream cannot be read."
|
|
7324
7274
|
}
|
|
7325
7275
|
],
|
|
7326
7276
|
"exports": [
|
|
7327
7277
|
{
|
|
7328
7278
|
"kind": "js",
|
|
7329
|
-
"name": "
|
|
7330
|
-
"declaration": {
|
|
7331
|
-
"name": "firstLines",
|
|
7332
|
-
"module": "src/headless-server/compact.ts"
|
|
7333
|
-
}
|
|
7334
|
-
},
|
|
7335
|
-
{
|
|
7336
|
-
"kind": "js",
|
|
7337
|
-
"name": "present",
|
|
7338
|
-
"declaration": {
|
|
7339
|
-
"name": "present",
|
|
7340
|
-
"module": "src/headless-server/compact.ts"
|
|
7341
|
-
}
|
|
7342
|
-
},
|
|
7343
|
-
{
|
|
7344
|
-
"kind": "js",
|
|
7345
|
-
"name": "compactEvent",
|
|
7346
|
-
"declaration": {
|
|
7347
|
-
"name": "compactEvent",
|
|
7348
|
-
"module": "src/headless-server/compact.ts"
|
|
7349
|
-
}
|
|
7350
|
-
},
|
|
7351
|
-
{
|
|
7352
|
-
"kind": "js",
|
|
7353
|
-
"name": "leanDecisionText",
|
|
7354
|
-
"declaration": {
|
|
7355
|
-
"name": "leanDecisionText",
|
|
7356
|
-
"module": "src/headless-server/compact.ts"
|
|
7357
|
-
}
|
|
7358
|
-
},
|
|
7359
|
-
{
|
|
7360
|
-
"kind": "js",
|
|
7361
|
-
"name": "compactDecision",
|
|
7279
|
+
"name": "headlessMetaSnapshot",
|
|
7362
7280
|
"declaration": {
|
|
7363
|
-
"name": "
|
|
7364
|
-
"module": "src/headless-
|
|
7281
|
+
"name": "headlessMetaSnapshot",
|
|
7282
|
+
"module": "src/headless/headless-debug.ts"
|
|
7365
7283
|
}
|
|
7366
7284
|
},
|
|
7367
7285
|
{
|
|
7368
7286
|
"kind": "js",
|
|
7369
|
-
"name": "
|
|
7287
|
+
"name": "headlessDiagnosticEntries",
|
|
7370
7288
|
"declaration": {
|
|
7371
|
-
"name": "
|
|
7372
|
-
"module": "src/headless-
|
|
7289
|
+
"name": "headlessDiagnosticEntries",
|
|
7290
|
+
"module": "src/headless/headless-debug.ts"
|
|
7373
7291
|
}
|
|
7374
7292
|
},
|
|
7375
7293
|
{
|
|
7376
7294
|
"kind": "js",
|
|
7377
|
-
"name": "
|
|
7295
|
+
"name": "headlessCurrentDebugLog",
|
|
7378
7296
|
"declaration": {
|
|
7379
|
-
"name": "
|
|
7380
|
-
"module": "src/headless-
|
|
7297
|
+
"name": "headlessCurrentDebugLog",
|
|
7298
|
+
"module": "src/headless/headless-debug.ts"
|
|
7381
7299
|
}
|
|
7382
7300
|
}
|
|
7383
7301
|
]
|
|
7384
7302
|
},
|
|
7385
7303
|
{
|
|
7386
7304
|
"kind": "javascript-module",
|
|
7387
|
-
"path": "src/headless-
|
|
7388
|
-
"declarations": [
|
|
7389
|
-
"exports": [
|
|
7390
|
-
{
|
|
7391
|
-
"kind": "js",
|
|
7392
|
-
"name": "capOutput",
|
|
7393
|
-
"declaration": {
|
|
7394
|
-
"name": "capOutput",
|
|
7395
|
-
"module": "./compact"
|
|
7396
|
-
}
|
|
7397
|
-
},
|
|
7398
|
-
{
|
|
7399
|
-
"kind": "js",
|
|
7400
|
-
"name": "compactDecision",
|
|
7401
|
-
"declaration": {
|
|
7402
|
-
"name": "compactDecision",
|
|
7403
|
-
"module": "./compact"
|
|
7404
|
-
}
|
|
7405
|
-
},
|
|
7305
|
+
"path": "src/headless/headless-persistence.ts",
|
|
7306
|
+
"declarations": [
|
|
7406
7307
|
{
|
|
7407
|
-
"kind": "
|
|
7408
|
-
"name": "
|
|
7409
|
-
"
|
|
7410
|
-
"
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7308
|
+
"kind": "function",
|
|
7309
|
+
"name": "headlessPersistence",
|
|
7310
|
+
"return": {
|
|
7311
|
+
"type": {
|
|
7312
|
+
"text": "HeadlessPersistence"
|
|
7313
|
+
}
|
|
7314
|
+
},
|
|
7315
|
+
"parameters": [
|
|
7316
|
+
{
|
|
7317
|
+
"name": "options",
|
|
7318
|
+
"type": {
|
|
7319
|
+
"text": "HeadlessPersistenceOptions"
|
|
7320
|
+
}
|
|
7321
|
+
}
|
|
7322
|
+
],
|
|
7323
|
+
"description": "Persistence for a `HeadlessSession`: it writes exactly what the browser writes — the\n`sessions/<key>` snapshot and the `diag/<key>` stream — through the platform's\n`SessionPersister` and the host's `SessionPersistenceProvider`, and builds the lifetime debug log\nfrom the same code as the browser's Download.\n\nExported from the package's main entry only, NOT from the Node entry (`./chat-driver`): it\nreaches the session store, and through it `@genesislcap/foundation-redux`, which are not\nNode-clean. The `persister` it makes is the registry's, so a host can restore through\n`getPersister(stateKey)`."
|
|
7324
|
+
}
|
|
7325
|
+
],
|
|
7326
|
+
"exports": [
|
|
7414
7327
|
{
|
|
7415
7328
|
"kind": "js",
|
|
7416
|
-
"name": "
|
|
7329
|
+
"name": "headlessPersistence",
|
|
7417
7330
|
"declaration": {
|
|
7418
|
-
"name": "
|
|
7419
|
-
"module": "
|
|
7331
|
+
"name": "headlessPersistence",
|
|
7332
|
+
"module": "src/headless/headless-persistence.ts"
|
|
7420
7333
|
}
|
|
7421
|
-
}
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
}
|
|
7429
|
-
},
|
|
7430
|
-
{
|
|
7431
|
-
"kind": "js",
|
|
7432
|
-
"name": "shortDecision",
|
|
7433
|
-
"declaration": {
|
|
7434
|
-
"name": "shortDecision",
|
|
7435
|
-
"module": "./compact"
|
|
7436
|
-
}
|
|
7437
|
-
},
|
|
7438
|
-
{
|
|
7439
|
-
"kind": "js",
|
|
7440
|
-
"name": "createHeadlessServer",
|
|
7441
|
-
"declaration": {
|
|
7442
|
-
"name": "createHeadlessServer",
|
|
7443
|
-
"module": "./server"
|
|
7444
|
-
}
|
|
7445
|
-
},
|
|
7446
|
-
{
|
|
7447
|
-
"kind": "js",
|
|
7448
|
-
"name": "DECISION_TEXTS",
|
|
7449
|
-
"declaration": {
|
|
7450
|
-
"name": "DECISION_TEXTS",
|
|
7451
|
-
"module": "./types"
|
|
7452
|
-
}
|
|
7453
|
-
},
|
|
7454
|
-
{
|
|
7455
|
-
"kind": "js",
|
|
7456
|
-
"name": "DEFAULT_DECISION_TEXT",
|
|
7457
|
-
"declaration": {
|
|
7458
|
-
"name": "DEFAULT_DECISION_TEXT",
|
|
7459
|
-
"module": "./types"
|
|
7460
|
-
}
|
|
7461
|
-
},
|
|
7462
|
-
{
|
|
7463
|
-
"kind": "js",
|
|
7464
|
-
"name": "Command",
|
|
7465
|
-
"declaration": {
|
|
7466
|
-
"name": "Command",
|
|
7467
|
-
"module": "./types"
|
|
7468
|
-
}
|
|
7469
|
-
},
|
|
7470
|
-
{
|
|
7471
|
-
"kind": "js",
|
|
7472
|
-
"name": "CompactAction",
|
|
7473
|
-
"declaration": {
|
|
7474
|
-
"name": "CompactAction",
|
|
7475
|
-
"module": "./types"
|
|
7476
|
-
}
|
|
7477
|
-
},
|
|
7478
|
-
{
|
|
7479
|
-
"kind": "js",
|
|
7480
|
-
"name": "CompactDecision",
|
|
7481
|
-
"declaration": {
|
|
7482
|
-
"name": "CompactDecision",
|
|
7483
|
-
"module": "./types"
|
|
7484
|
-
}
|
|
7485
|
-
},
|
|
7486
|
-
{
|
|
7487
|
-
"kind": "js",
|
|
7488
|
-
"name": "CompactEvent",
|
|
7489
|
-
"declaration": {
|
|
7490
|
-
"name": "CompactEvent",
|
|
7491
|
-
"module": "./types"
|
|
7492
|
-
}
|
|
7493
|
-
},
|
|
7494
|
-
{
|
|
7495
|
-
"kind": "js",
|
|
7496
|
-
"name": "Composer",
|
|
7497
|
-
"declaration": {
|
|
7498
|
-
"name": "Composer",
|
|
7499
|
-
"module": "./types"
|
|
7500
|
-
}
|
|
7501
|
-
},
|
|
7502
|
-
{
|
|
7503
|
-
"kind": "js",
|
|
7504
|
-
"name": "DecisionText",
|
|
7505
|
-
"declaration": {
|
|
7506
|
-
"name": "DecisionText",
|
|
7507
|
-
"module": "./types"
|
|
7508
|
-
}
|
|
7509
|
-
},
|
|
7510
|
-
{
|
|
7511
|
-
"kind": "js",
|
|
7512
|
-
"name": "ExtraOp",
|
|
7513
|
-
"declaration": {
|
|
7514
|
-
"name": "ExtraOp",
|
|
7515
|
-
"module": "./types"
|
|
7516
|
-
}
|
|
7517
|
-
},
|
|
7518
|
-
{
|
|
7519
|
-
"kind": "js",
|
|
7520
|
-
"name": "ExtraOpResult",
|
|
7521
|
-
"declaration": {
|
|
7522
|
-
"name": "ExtraOpResult",
|
|
7523
|
-
"module": "./types"
|
|
7524
|
-
}
|
|
7525
|
-
},
|
|
7526
|
-
{
|
|
7527
|
-
"kind": "js",
|
|
7528
|
-
"name": "HeadlessServer",
|
|
7529
|
-
"declaration": {
|
|
7530
|
-
"name": "HeadlessServer",
|
|
7531
|
-
"module": "./types"
|
|
7532
|
-
}
|
|
7533
|
-
},
|
|
7534
|
-
{
|
|
7535
|
-
"kind": "js",
|
|
7536
|
-
"name": "HeadlessServerHandle",
|
|
7537
|
-
"declaration": {
|
|
7538
|
-
"name": "HeadlessServerHandle",
|
|
7539
|
-
"module": "./types"
|
|
7540
|
-
}
|
|
7541
|
-
},
|
|
7542
|
-
{
|
|
7543
|
-
"kind": "js",
|
|
7544
|
-
"name": "Reply",
|
|
7545
|
-
"declaration": {
|
|
7546
|
-
"name": "Reply",
|
|
7547
|
-
"module": "./types"
|
|
7548
|
-
}
|
|
7549
|
-
},
|
|
7550
|
-
{
|
|
7551
|
-
"kind": "js",
|
|
7552
|
-
"name": "ServerOptions",
|
|
7553
|
-
"declaration": {
|
|
7554
|
-
"name": "ServerOptions",
|
|
7555
|
-
"module": "./types"
|
|
7556
|
-
}
|
|
7557
|
-
},
|
|
7558
|
-
{
|
|
7559
|
-
"kind": "js",
|
|
7560
|
-
"name": "Status",
|
|
7561
|
-
"declaration": {
|
|
7562
|
-
"name": "Status",
|
|
7563
|
-
"module": "./types"
|
|
7564
|
-
}
|
|
7565
|
-
},
|
|
7566
|
-
{
|
|
7567
|
-
"kind": "js",
|
|
7568
|
-
"name": "WorkingInfo",
|
|
7569
|
-
"declaration": {
|
|
7570
|
-
"name": "WorkingInfo",
|
|
7571
|
-
"module": "./types"
|
|
7572
|
-
}
|
|
7573
|
-
}
|
|
7574
|
-
]
|
|
7575
|
-
},
|
|
7576
|
-
{
|
|
7577
|
-
"kind": "javascript-module",
|
|
7578
|
-
"path": "src/headless-server/server.ts",
|
|
7579
|
-
"declarations": [
|
|
7580
|
-
{
|
|
7581
|
-
"kind": "function",
|
|
7582
|
-
"name": "createHeadlessServer",
|
|
7583
|
-
"return": {
|
|
7584
|
-
"type": {
|
|
7585
|
-
"text": "HeadlessServer"
|
|
7586
|
-
}
|
|
7587
|
-
},
|
|
7588
|
-
"parameters": [
|
|
7589
|
-
{
|
|
7590
|
-
"name": "options",
|
|
7591
|
-
"type": {
|
|
7592
|
-
"text": "ServerOptions"
|
|
7593
|
-
}
|
|
7594
|
-
}
|
|
7595
|
-
],
|
|
7596
|
-
"description": "The headless server (PLAN §5, D7): `node:http` on 127.0.0.1, `GET /health` and `POST /cmd`.\n\nEvery command is APPLIED and then LONG-POLLS (§5.5): the reply comes when the journey next needs the\nperson (an interaction is held by them and ready), a turn ends, the run ends, or something fails, or at\n`maxWaitMs` with `status: \"working\"`. Nothing is lost on a client timeout: the command was applied before\nthe wait, events carry `seq`, and `{op: \"wait\", since}` returns everything after it.\n\nThe session is the only thing it drives; what the host owns is reached through ServerOptions."
|
|
7597
|
-
}
|
|
7598
|
-
],
|
|
7599
|
-
"exports": [
|
|
7600
|
-
{
|
|
7601
|
-
"kind": "js",
|
|
7602
|
-
"name": "createHeadlessServer",
|
|
7603
|
-
"declaration": {
|
|
7604
|
-
"name": "createHeadlessServer",
|
|
7605
|
-
"module": "src/headless-server/server.ts"
|
|
7606
|
-
}
|
|
7607
|
-
}
|
|
7608
|
-
]
|
|
7609
|
-
},
|
|
7610
|
-
{
|
|
7611
|
-
"kind": "javascript-module",
|
|
7612
|
-
"path": "src/headless-server/types.ts",
|
|
7613
|
-
"declarations": [
|
|
7614
|
-
{
|
|
7615
|
-
"kind": "variable",
|
|
7616
|
-
"name": "DECISION_TEXTS",
|
|
7617
|
-
"type": {
|
|
7618
|
-
"text": "readonly DecisionText[]"
|
|
7619
|
-
},
|
|
7620
|
-
"default": "['full', 'lean']"
|
|
7621
|
-
},
|
|
7622
|
-
{
|
|
7623
|
-
"kind": "variable",
|
|
7624
|
-
"name": "DEFAULT_DECISION_TEXT",
|
|
7625
|
-
"type": {
|
|
7626
|
-
"text": "DecisionText"
|
|
7627
|
-
},
|
|
7628
|
-
"default": "'lean'",
|
|
7629
|
-
"description": "What the server uses when neither it nor the command says. Its readers are models that can `read` a view."
|
|
7630
|
-
}
|
|
7631
|
-
],
|
|
7632
|
-
"exports": [
|
|
7633
|
-
{
|
|
7634
|
-
"kind": "js",
|
|
7635
|
-
"name": "DECISION_TEXTS",
|
|
7636
|
-
"declaration": {
|
|
7637
|
-
"name": "DECISION_TEXTS",
|
|
7638
|
-
"module": "src/headless-server/types.ts"
|
|
7639
|
-
}
|
|
7640
|
-
},
|
|
7641
|
-
{
|
|
7642
|
-
"kind": "js",
|
|
7643
|
-
"name": "DEFAULT_DECISION_TEXT",
|
|
7644
|
-
"declaration": {
|
|
7645
|
-
"name": "DEFAULT_DECISION_TEXT",
|
|
7646
|
-
"module": "src/headless-server/types.ts"
|
|
7647
|
-
}
|
|
7648
|
-
}
|
|
7649
|
-
]
|
|
7650
|
-
},
|
|
7651
|
-
{
|
|
7652
|
-
"kind": "javascript-module",
|
|
7653
|
-
"path": "src/headless/describe-interaction.ts",
|
|
7654
|
-
"declarations": [
|
|
7655
|
-
{
|
|
7656
|
-
"kind": "function",
|
|
7657
|
-
"name": "describeInteraction",
|
|
7658
|
-
"return": {
|
|
7659
|
-
"type": {
|
|
7660
|
-
"text": "InteractionDescription"
|
|
7661
|
-
}
|
|
7662
|
-
},
|
|
7663
|
-
"parameters": [
|
|
7664
|
-
{
|
|
7665
|
-
"name": "input",
|
|
7666
|
-
"type": {
|
|
7667
|
-
"text": "DescribeInteractionInput"
|
|
7668
|
-
}
|
|
7669
|
-
}
|
|
7670
|
-
],
|
|
7671
|
-
"description": "What the person is being asked, as a compact JSON-serialisable record a model can read and\nanswer (GENC-1660): the same text the autopilot is sent for the decision (`renderDecision`,\nso there is one rendering of a decision, not two), and its actions as data, numbered as that text\nnumbers them, so \"1\" means the same option here and there.\n\nWith no surface — a widget with no controller, or one that has not exposed anything yet — there\nis nothing to act on: `controller` is `false` (or `true` and not `ready`, while a controller that\nwill expose a surface has not yet), `actions` is empty, and `text` is the widget as text alone.\n\nReads the surface fresh each time, so it describes the widget as it is now."
|
|
7672
|
-
}
|
|
7673
|
-
],
|
|
7674
|
-
"exports": [
|
|
7675
|
-
{
|
|
7676
|
-
"kind": "js",
|
|
7677
|
-
"name": "describeInteraction",
|
|
7678
|
-
"declaration": {
|
|
7679
|
-
"name": "describeInteraction",
|
|
7680
|
-
"module": "src/headless/describe-interaction.ts"
|
|
7681
|
-
}
|
|
7682
|
-
}
|
|
7683
|
-
]
|
|
7684
|
-
},
|
|
7685
|
-
{
|
|
7686
|
-
"kind": "javascript-module",
|
|
7687
|
-
"path": "src/headless/headless-debug.ts",
|
|
7688
|
-
"declarations": [
|
|
7689
|
-
{
|
|
7690
|
-
"kind": "function",
|
|
7691
|
-
"name": "headlessMetaSnapshot",
|
|
7692
|
-
"return": {
|
|
7693
|
-
"type": {
|
|
7694
|
-
"text": "DiagnosticEntry"
|
|
7695
|
-
}
|
|
7696
|
-
},
|
|
7697
|
-
"parameters": [
|
|
7698
|
-
{
|
|
7699
|
-
"name": "driver",
|
|
7700
|
-
"type": {
|
|
7701
|
-
"text": "AiDriver"
|
|
7702
|
-
}
|
|
7703
|
-
},
|
|
7704
|
-
{
|
|
7705
|
-
"name": "options",
|
|
7706
|
-
"default": "{}",
|
|
7707
|
-
"type": {
|
|
7708
|
-
"text": "HeadlessDebugOptions"
|
|
7709
|
-
}
|
|
7710
|
-
}
|
|
7711
|
-
],
|
|
7712
|
-
"description": "The `meta-snapshot` entry for right now, gathered the way the assistant element gathers it\n(`buildMetaSnapshot` does the assembly; this reads what it reports): the live agent comes from\nthe DRIVER, the transcript from its raw history, and the figures from the transcript, so what a\nheadless host logs is what the browser would. The context window and model, which the element\nlearns from its provider registry, are the host's to say."
|
|
7713
|
-
},
|
|
7714
|
-
{
|
|
7715
|
-
"kind": "function",
|
|
7716
|
-
"name": "headlessDiagnosticEntries",
|
|
7717
|
-
"return": {
|
|
7718
|
-
"type": {
|
|
7719
|
-
"text": "DiagnosticEntry[]"
|
|
7720
|
-
}
|
|
7721
|
-
},
|
|
7722
|
-
"parameters": [
|
|
7723
|
-
{
|
|
7724
|
-
"name": "driver",
|
|
7725
|
-
"type": {
|
|
7726
|
-
"text": "AiDriver"
|
|
7727
|
-
}
|
|
7728
|
-
},
|
|
7729
|
-
{
|
|
7730
|
-
"name": "stateKey",
|
|
7731
|
-
"type": {
|
|
7732
|
-
"text": "string"
|
|
7733
|
-
}
|
|
7734
|
-
},
|
|
7735
|
-
{
|
|
7736
|
-
"name": "options",
|
|
7737
|
-
"default": "{}",
|
|
7738
|
-
"type": {
|
|
7739
|
-
"text": "HeadlessDebugOptions"
|
|
7740
|
-
}
|
|
7741
|
-
}
|
|
7742
|
-
],
|
|
7743
|
-
"description": "The diagnostic entries for the session so far, from the same `buildDiagnosticEntries` the\nbrowser's element and its persister use."
|
|
7744
|
-
},
|
|
7745
|
-
{
|
|
7746
|
-
"kind": "function",
|
|
7747
|
-
"name": "headlessCurrentDebugLog",
|
|
7748
|
-
"return": {
|
|
7749
|
-
"type": {
|
|
7750
|
-
"text": "DebugLog"
|
|
7751
|
-
}
|
|
7752
|
-
},
|
|
7753
|
-
"parameters": [
|
|
7754
|
-
{
|
|
7755
|
-
"name": "driver",
|
|
7756
|
-
"type": {
|
|
7757
|
-
"text": "AiDriver"
|
|
7758
|
-
}
|
|
7759
|
-
},
|
|
7760
|
-
{
|
|
7761
|
-
"name": "stateKey",
|
|
7762
|
-
"type": {
|
|
7763
|
-
"text": "string"
|
|
7764
|
-
}
|
|
7765
|
-
},
|
|
7766
|
-
{
|
|
7767
|
-
"name": "options",
|
|
7768
|
-
"default": "{}",
|
|
7769
|
-
"type": {
|
|
7770
|
-
"text": "HeadlessDebugOptions"
|
|
7771
|
-
}
|
|
7772
|
-
}
|
|
7773
|
-
],
|
|
7774
|
-
"description": "The current page's debug log: what `HeadlessSession.debugLog()` returns when nothing is\npersisted, and the fallback when the stored stream cannot be read."
|
|
7775
|
-
}
|
|
7776
|
-
],
|
|
7777
|
-
"exports": [
|
|
7778
|
-
{
|
|
7779
|
-
"kind": "js",
|
|
7780
|
-
"name": "headlessMetaSnapshot",
|
|
7781
|
-
"declaration": {
|
|
7782
|
-
"name": "headlessMetaSnapshot",
|
|
7783
|
-
"module": "src/headless/headless-debug.ts"
|
|
7784
|
-
}
|
|
7785
|
-
},
|
|
7786
|
-
{
|
|
7787
|
-
"kind": "js",
|
|
7788
|
-
"name": "headlessDiagnosticEntries",
|
|
7789
|
-
"declaration": {
|
|
7790
|
-
"name": "headlessDiagnosticEntries",
|
|
7791
|
-
"module": "src/headless/headless-debug.ts"
|
|
7792
|
-
}
|
|
7793
|
-
},
|
|
7794
|
-
{
|
|
7795
|
-
"kind": "js",
|
|
7796
|
-
"name": "headlessCurrentDebugLog",
|
|
7797
|
-
"declaration": {
|
|
7798
|
-
"name": "headlessCurrentDebugLog",
|
|
7799
|
-
"module": "src/headless/headless-debug.ts"
|
|
7800
|
-
}
|
|
7801
|
-
}
|
|
7802
|
-
]
|
|
7803
|
-
},
|
|
7804
|
-
{
|
|
7805
|
-
"kind": "javascript-module",
|
|
7806
|
-
"path": "src/headless/headless-persistence.ts",
|
|
7807
|
-
"declarations": [
|
|
7808
|
-
{
|
|
7809
|
-
"kind": "function",
|
|
7810
|
-
"name": "headlessPersistence",
|
|
7811
|
-
"return": {
|
|
7812
|
-
"type": {
|
|
7813
|
-
"text": "HeadlessPersistence"
|
|
7814
|
-
}
|
|
7815
|
-
},
|
|
7816
|
-
"parameters": [
|
|
7817
|
-
{
|
|
7818
|
-
"name": "options",
|
|
7819
|
-
"type": {
|
|
7820
|
-
"text": "HeadlessPersistenceOptions"
|
|
7821
|
-
}
|
|
7822
|
-
}
|
|
7823
|
-
],
|
|
7824
|
-
"description": "Persistence for a `HeadlessSession`: it writes exactly what the browser writes — the\n`sessions/<key>` snapshot and the `diag/<key>` stream — through the platform's\n`SessionPersister` and the host's `SessionPersistenceProvider`, and builds the lifetime debug log\nfrom the same code as the browser's Download.\n\nExported from the package's main entry only, NOT from the Node entry (`./chat-driver`): it\nreaches the session store, and through it `@genesislcap/foundation-redux`, which are not\nNode-clean. The `persister` it makes is the registry's, so a host can restore through\n`getPersister(stateKey)`."
|
|
7825
|
-
}
|
|
7826
|
-
],
|
|
7827
|
-
"exports": [
|
|
7828
|
-
{
|
|
7829
|
-
"kind": "js",
|
|
7830
|
-
"name": "headlessPersistence",
|
|
7831
|
-
"declaration": {
|
|
7832
|
-
"name": "headlessPersistence",
|
|
7833
|
-
"module": "src/headless/headless-persistence.ts"
|
|
7834
|
-
}
|
|
7835
|
-
}
|
|
7836
|
-
]
|
|
7837
|
-
},
|
|
7838
|
-
{
|
|
7839
|
-
"kind": "javascript-module",
|
|
7840
|
-
"path": "src/headless/headless-session.ts",
|
|
7841
|
-
"declarations": [
|
|
7334
|
+
}
|
|
7335
|
+
]
|
|
7336
|
+
},
|
|
7337
|
+
{
|
|
7338
|
+
"kind": "javascript-module",
|
|
7339
|
+
"path": "src/headless/headless-session.ts",
|
|
7340
|
+
"declarations": [
|
|
7842
7341
|
{
|
|
7843
7342
|
"kind": "class",
|
|
7844
7343
|
"description": "A driver with no screen: a way for a host with no browser (a coding agent behind a small HTTP\nserver, a test) to run a whole assistant journey as the person (GENC-1660).\n\nIt watches the driver for interactions and turns the conversation into an append-only log of\nplain-data events (see HeadlessEvent): `decision` when the person has something to\nanswer, `working` when someone else has it, `settled`, the visible `message`s, the end of each\n`turn`, the autopilot's state, and the host's own `probe`. The caller reads the log with\nHeadlessSession.wait, a long poll cursored by `seq`, so nothing is lost between calls.\nIt answers with HeadlessSession.act, which runs a widget's action as a click would, with\nthe same numbered options the autopilot is shown.\n\nIt only observes: its interceptor never claims an interaction, so an autopilot on the same\ndriver works as it always does, and what the session reports as a `decision` is what the autopilot\nhas handed to the person. Plain classes only: no DOM, no FAST.",
|
|
@@ -8026,295 +7525,564 @@
|
|
|
8026
7525
|
"type": {
|
|
8027
7526
|
"text": "boolean"
|
|
8028
7527
|
},
|
|
8029
|
-
"privacy": "private",
|
|
8030
|
-
"default": "false",
|
|
8031
|
-
"description": "While a restore loads the history, which is not new activity."
|
|
7528
|
+
"privacy": "private",
|
|
7529
|
+
"default": "false",
|
|
7530
|
+
"description": "While a restore loads the history, which is not new activity."
|
|
7531
|
+
},
|
|
7532
|
+
{
|
|
7533
|
+
"kind": "method",
|
|
7534
|
+
"name": "send",
|
|
7535
|
+
"return": {
|
|
7536
|
+
"type": {
|
|
7537
|
+
"text": "HeadlessResult"
|
|
7538
|
+
}
|
|
7539
|
+
},
|
|
7540
|
+
"parameters": [
|
|
7541
|
+
{
|
|
7542
|
+
"name": "text",
|
|
7543
|
+
"type": {
|
|
7544
|
+
"text": "string"
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7547
|
+
{
|
|
7548
|
+
"name": "options",
|
|
7549
|
+
"default": "{}",
|
|
7550
|
+
"type": {
|
|
7551
|
+
"text": "HeadlessSendOptions"
|
|
7552
|
+
}
|
|
7553
|
+
}
|
|
7554
|
+
],
|
|
7555
|
+
"description": "Send the person's message, and start the turn. Returns as soon as the turn has started, not\nwhen it ends: a turn includes every interaction parked on the person, so it can run as long as\nthe journey. Its end is the `turn` event.\n\nRefused, never thrown, when the message is empty, or a turn is already running."
|
|
7556
|
+
},
|
|
7557
|
+
{
|
|
7558
|
+
"kind": "method",
|
|
7559
|
+
"name": "act",
|
|
7560
|
+
"return": {
|
|
7561
|
+
"type": {
|
|
7562
|
+
"text": "Promise<HeadlessActResult>"
|
|
7563
|
+
}
|
|
7564
|
+
},
|
|
7565
|
+
"parameters": [
|
|
7566
|
+
{
|
|
7567
|
+
"name": "interactionId",
|
|
7568
|
+
"type": {
|
|
7569
|
+
"text": "string"
|
|
7570
|
+
}
|
|
7571
|
+
},
|
|
7572
|
+
{
|
|
7573
|
+
"name": "action",
|
|
7574
|
+
"type": {
|
|
7575
|
+
"text": "string | number"
|
|
7576
|
+
}
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
"name": "args",
|
|
7580
|
+
"default": "{}",
|
|
7581
|
+
"type": {
|
|
7582
|
+
"text": "HeadlessActArgs"
|
|
7583
|
+
}
|
|
7584
|
+
}
|
|
7585
|
+
],
|
|
7586
|
+
"description": "Run one of a pending interaction's actions as the person, as a click would (the answer is\ncredited `answeredBy: 'user'`). `action` is a number from the description's actions, or an\naction's name; `args` carry the text, the options (numbers or labels) or the form's fields it\ntakes. Refused, with the reason and what is enabled, when a claimant holds the interaction,\nthe action is unknown or disabled, or its arguments do not fit: nothing runs then.\n\nThe result is the driver's `InvokeResult`, plus `description` of the interaction when it is\nstill open."
|
|
7587
|
+
},
|
|
7588
|
+
{
|
|
7589
|
+
"kind": "method",
|
|
7590
|
+
"name": "resolve",
|
|
7591
|
+
"return": {
|
|
7592
|
+
"type": {
|
|
7593
|
+
"text": "HeadlessResult"
|
|
7594
|
+
}
|
|
7595
|
+
},
|
|
7596
|
+
"parameters": [
|
|
7597
|
+
{
|
|
7598
|
+
"name": "interactionId",
|
|
7599
|
+
"type": {
|
|
7600
|
+
"text": "string"
|
|
7601
|
+
}
|
|
7602
|
+
},
|
|
7603
|
+
{
|
|
7604
|
+
"name": "result",
|
|
7605
|
+
"type": {
|
|
7606
|
+
"text": "unknown"
|
|
7607
|
+
}
|
|
7608
|
+
}
|
|
7609
|
+
],
|
|
7610
|
+
"description": "Settle a pending interaction raw, with `result` as the widget would have resolved it,\nbypassing its actions and everything they check: an escape hatch for a widget with no\ncontroller, or one that cannot be acted on. Logs `settled` with `raw: true` and records\n`headless.raw-resolved`. Refused when `allowRaw` is `false`, when the interaction is not\npending, or when a claimant holds it: as for `act`, the person takes it back first."
|
|
7611
|
+
},
|
|
7612
|
+
{
|
|
7613
|
+
"kind": "method",
|
|
7614
|
+
"name": "read",
|
|
7615
|
+
"return": {
|
|
7616
|
+
"type": {
|
|
7617
|
+
"text": "Promise<HeadlessReadResult>"
|
|
7618
|
+
}
|
|
7619
|
+
},
|
|
7620
|
+
"parameters": [
|
|
7621
|
+
{
|
|
7622
|
+
"name": "interactionId",
|
|
7623
|
+
"type": {
|
|
7624
|
+
"text": "string"
|
|
7625
|
+
}
|
|
7626
|
+
},
|
|
7627
|
+
{
|
|
7628
|
+
"name": "request",
|
|
7629
|
+
"default": "{}",
|
|
7630
|
+
"type": {
|
|
7631
|
+
"text": "HeadlessReadRequest"
|
|
7632
|
+
}
|
|
7633
|
+
}
|
|
7634
|
+
],
|
|
7635
|
+
"description": "Read from a pending interaction without changing it: one of its views, or (with `tool`) one of\nthe widget tools given to the session. The text is capped. A view the surface does not list is\nrefused, naming those it does, as the autopilot's `widget_read` does."
|
|
7636
|
+
},
|
|
7637
|
+
{
|
|
7638
|
+
"kind": "method",
|
|
7639
|
+
"name": "wait",
|
|
7640
|
+
"return": {
|
|
7641
|
+
"type": {
|
|
7642
|
+
"text": "Promise<HeadlessWaitResult>"
|
|
7643
|
+
}
|
|
7644
|
+
},
|
|
7645
|
+
"parameters": [
|
|
7646
|
+
{
|
|
7647
|
+
"name": "request",
|
|
7648
|
+
"type": {
|
|
7649
|
+
"text": "HeadlessWaitRequest"
|
|
7650
|
+
}
|
|
7651
|
+
}
|
|
7652
|
+
],
|
|
7653
|
+
"description": "Wait for the log to say something, then return what it said. Resolves as soon as an event in\n`until` is in the log after `since` (immediately, when one already is), or at `maxWaitMs` with\nstatus `'working'`. Either way it returns every event after `since`, and `nextSeq`, the cursor\nfor the next call: poll with it and nothing is lost."
|
|
7654
|
+
},
|
|
7655
|
+
{
|
|
7656
|
+
"kind": "method",
|
|
7657
|
+
"name": "eventsSince",
|
|
7658
|
+
"return": {
|
|
7659
|
+
"type": {
|
|
7660
|
+
"text": "readonly HeadlessEvent[]"
|
|
7661
|
+
}
|
|
7662
|
+
},
|
|
7663
|
+
"parameters": [
|
|
7664
|
+
{
|
|
7665
|
+
"name": "since",
|
|
7666
|
+
"default": "0"
|
|
7667
|
+
}
|
|
7668
|
+
],
|
|
7669
|
+
"description": "Every event logged after `since` (default: all the log keeps), without waiting."
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
"kind": "method",
|
|
7673
|
+
"name": "state",
|
|
7674
|
+
"return": {
|
|
7675
|
+
"type": {
|
|
7676
|
+
"text": "HeadlessState"
|
|
7677
|
+
}
|
|
7678
|
+
},
|
|
7679
|
+
"description": "What is going on now: whether a turn runs, the interaction the person should answer first (and\nthe others open behind it), the autopilot, what it has cost, and the host's probe."
|
|
7680
|
+
},
|
|
7681
|
+
{
|
|
7682
|
+
"kind": "method",
|
|
7683
|
+
"name": "restore",
|
|
7684
|
+
"return": {
|
|
7685
|
+
"type": {
|
|
7686
|
+
"text": "Promise<HeadlessRestoreOutcome | undefined>"
|
|
7687
|
+
}
|
|
7688
|
+
},
|
|
7689
|
+
"description": "Restore the saved session for this key, as the browser's element does on mount (see\n`HeadlessPersistenceBinding.restore`). Call it before the first `send`. The restored history is\nthe starting point, not news: it is not reported as `message` events or as a turn, and the\nevent log and its cursors carry on from where they are. A no-op without `persistence`."
|
|
7690
|
+
},
|
|
7691
|
+
{
|
|
7692
|
+
"kind": "method",
|
|
7693
|
+
"name": "flush",
|
|
7694
|
+
"return": {
|
|
7695
|
+
"type": {
|
|
7696
|
+
"text": "Promise<void>"
|
|
7697
|
+
}
|
|
7698
|
+
},
|
|
7699
|
+
"description": "Save the session now: the snapshot, and the diagnostics appended since the last flush, rather\nthan at the next throttled save. A no-op without `persistence`."
|
|
7700
|
+
},
|
|
7701
|
+
{
|
|
7702
|
+
"kind": "method",
|
|
7703
|
+
"name": "debugLog",
|
|
7704
|
+
"return": {
|
|
7705
|
+
"type": {
|
|
7706
|
+
"text": "Promise<DebugLog>"
|
|
7707
|
+
}
|
|
7708
|
+
},
|
|
7709
|
+
"description": "The debug log, the document the browser's Download gives. With `persistence`, the log of the\nwhole session stitched from the stored stream with a fresh `meta-snapshot` (`lifetimeDebugLog`,\nthe same code); without, the current page's, from `buildDiagnosticEntries`. Never throws."
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
"kind": "method",
|
|
7713
|
+
"name": "stop",
|
|
7714
|
+
"return": {
|
|
7715
|
+
"type": {
|
|
7716
|
+
"text": "HeadlessResult"
|
|
7717
|
+
}
|
|
7718
|
+
},
|
|
7719
|
+
"description": "Stop the running turn, when the driver can."
|
|
7720
|
+
},
|
|
7721
|
+
{
|
|
7722
|
+
"kind": "method",
|
|
7723
|
+
"name": "autopilot",
|
|
7724
|
+
"return": {
|
|
7725
|
+
"type": {
|
|
7726
|
+
"text": "HeadlessResult"
|
|
7727
|
+
}
|
|
7728
|
+
},
|
|
7729
|
+
"parameters": [
|
|
7730
|
+
{
|
|
7731
|
+
"name": "mode",
|
|
7732
|
+
"type": {
|
|
7733
|
+
"text": "'pause' | 'resume' | 'stop' | 'keepPaused'"
|
|
7734
|
+
}
|
|
7735
|
+
},
|
|
7736
|
+
{
|
|
7737
|
+
"name": "interactionId",
|
|
7738
|
+
"optional": true,
|
|
7739
|
+
"type": {
|
|
7740
|
+
"text": "string"
|
|
7741
|
+
}
|
|
7742
|
+
}
|
|
7743
|
+
],
|
|
7744
|
+
"description": "Pause, resume or stop the autopilot, when there is one. Pausing hands what it holds to the\nperson, which then appears as a `decision`.\n\n`'keepPaused'` is the hand-back banner's \"Keep paused\": it turns the autopilot's own hand-back\nof one interaction into an ordinary pause, so it does not take the question back once it is\nanswered. `interactionId` names the interaction handed back; omitted, it is the one the\nautopilot's own pause is waiting on (`state().autopilot`'s hand-back, the `decision` it left\nwith the person). Refused, with why, when the autopilot has handed nothing back, when\n`interactionId` is not the one it handed back, or when the host cannot keep paused; the host's\nown `keepPaused` would do nothing in those cases without saying so."
|
|
7745
|
+
},
|
|
7746
|
+
{
|
|
7747
|
+
"kind": "method",
|
|
7748
|
+
"name": "keepPaused",
|
|
7749
|
+
"privacy": "private",
|
|
7750
|
+
"return": {
|
|
7751
|
+
"type": {
|
|
7752
|
+
"text": "HeadlessResult"
|
|
7753
|
+
}
|
|
7754
|
+
},
|
|
7755
|
+
"parameters": [
|
|
7756
|
+
{
|
|
7757
|
+
"name": "host",
|
|
7758
|
+
"type": {
|
|
7759
|
+
"text": "AutopilotLike"
|
|
7760
|
+
}
|
|
7761
|
+
},
|
|
7762
|
+
{
|
|
7763
|
+
"name": "interactionId",
|
|
7764
|
+
"type": {
|
|
7765
|
+
"text": "string | undefined"
|
|
7766
|
+
}
|
|
7767
|
+
}
|
|
7768
|
+
]
|
|
7769
|
+
},
|
|
7770
|
+
{
|
|
7771
|
+
"kind": "method",
|
|
7772
|
+
"name": "dispose",
|
|
7773
|
+
"return": {
|
|
7774
|
+
"type": {
|
|
7775
|
+
"text": "void"
|
|
7776
|
+
}
|
|
7777
|
+
},
|
|
7778
|
+
"description": "Detach: remove the interceptor and every subscription, and release anyone waiting."
|
|
8032
7779
|
},
|
|
8033
7780
|
{
|
|
8034
7781
|
"kind": "method",
|
|
8035
|
-
"name": "
|
|
7782
|
+
"name": "listen",
|
|
7783
|
+
"privacy": "private",
|
|
8036
7784
|
"return": {
|
|
8037
7785
|
"type": {
|
|
8038
|
-
"text": "
|
|
7786
|
+
"text": "void"
|
|
8039
7787
|
}
|
|
8040
7788
|
},
|
|
8041
7789
|
"parameters": [
|
|
8042
7790
|
{
|
|
8043
|
-
"name": "
|
|
7791
|
+
"name": "type",
|
|
8044
7792
|
"type": {
|
|
8045
7793
|
"text": "string"
|
|
8046
7794
|
}
|
|
8047
7795
|
},
|
|
8048
7796
|
{
|
|
8049
|
-
"name": "
|
|
8050
|
-
"default": "{}",
|
|
7797
|
+
"name": "handler",
|
|
8051
7798
|
"type": {
|
|
8052
|
-
"text": "
|
|
7799
|
+
"text": "(e: Event) => void"
|
|
8053
7800
|
}
|
|
8054
7801
|
}
|
|
8055
|
-
]
|
|
8056
|
-
"description": "Send the person's message, and start the turn. Returns as soon as the turn has started, not\nwhen it ends: a turn includes every interaction parked on the person, so it can run as long as\nthe journey. Its end is the `turn` event.\n\nRefused, never thrown, when the message is empty, or a turn is already running."
|
|
7802
|
+
]
|
|
8057
7803
|
},
|
|
8058
7804
|
{
|
|
8059
7805
|
"kind": "method",
|
|
8060
|
-
"name": "
|
|
7806
|
+
"name": "history",
|
|
7807
|
+
"privacy": "private",
|
|
8061
7808
|
"return": {
|
|
8062
7809
|
"type": {
|
|
8063
|
-
"text": "
|
|
7810
|
+
"text": "readonly ChatMessage[]"
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
},
|
|
7814
|
+
{
|
|
7815
|
+
"kind": "method",
|
|
7816
|
+
"name": "onOpened",
|
|
7817
|
+
"privacy": "private",
|
|
7818
|
+
"return": {
|
|
7819
|
+
"type": {
|
|
7820
|
+
"text": "void"
|
|
8064
7821
|
}
|
|
8065
7822
|
},
|
|
8066
7823
|
"parameters": [
|
|
8067
7824
|
{
|
|
8068
|
-
"name": "
|
|
8069
|
-
"type": {
|
|
8070
|
-
"text": "string"
|
|
8071
|
-
}
|
|
8072
|
-
},
|
|
8073
|
-
{
|
|
8074
|
-
"name": "action",
|
|
8075
|
-
"type": {
|
|
8076
|
-
"text": "string | number"
|
|
8077
|
-
}
|
|
8078
|
-
},
|
|
8079
|
-
{
|
|
8080
|
-
"name": "args",
|
|
8081
|
-
"default": "{}",
|
|
7825
|
+
"name": "opened",
|
|
8082
7826
|
"type": {
|
|
8083
|
-
"text": "
|
|
7827
|
+
"text": "InteractionOpened"
|
|
8084
7828
|
}
|
|
8085
7829
|
}
|
|
8086
7830
|
],
|
|
8087
|
-
"description": "
|
|
7831
|
+
"description": "An interaction opened: watch it. Who holds it is not decided yet, so it is reported later."
|
|
8088
7832
|
},
|
|
8089
7833
|
{
|
|
8090
7834
|
"kind": "method",
|
|
8091
|
-
"name": "
|
|
7835
|
+
"name": "onSettled",
|
|
7836
|
+
"privacy": "private",
|
|
8092
7837
|
"return": {
|
|
8093
7838
|
"type": {
|
|
8094
|
-
"text": "
|
|
7839
|
+
"text": "void"
|
|
8095
7840
|
}
|
|
8096
7841
|
},
|
|
8097
7842
|
"parameters": [
|
|
8098
7843
|
{
|
|
8099
|
-
"name": "
|
|
8100
|
-
"type": {
|
|
8101
|
-
"text": "string"
|
|
8102
|
-
}
|
|
8103
|
-
},
|
|
8104
|
-
{
|
|
8105
|
-
"name": "result",
|
|
7844
|
+
"name": "detail",
|
|
8106
7845
|
"type": {
|
|
8107
|
-
"text": "
|
|
7846
|
+
"text": "{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }"
|
|
8108
7847
|
}
|
|
8109
7848
|
}
|
|
8110
7849
|
],
|
|
8111
|
-
"description": "
|
|
7850
|
+
"description": "The driver says an interaction settled, by whatever route."
|
|
8112
7851
|
},
|
|
8113
7852
|
{
|
|
8114
7853
|
"kind": "method",
|
|
8115
|
-
"name": "
|
|
7854
|
+
"name": "onEnded",
|
|
7855
|
+
"privacy": "private",
|
|
8116
7856
|
"return": {
|
|
8117
7857
|
"type": {
|
|
8118
|
-
"text": "
|
|
7858
|
+
"text": "void"
|
|
8119
7859
|
}
|
|
8120
7860
|
},
|
|
8121
7861
|
"parameters": [
|
|
8122
7862
|
{
|
|
8123
|
-
"name": "
|
|
8124
|
-
"type": {
|
|
8125
|
-
"text": "string"
|
|
8126
|
-
}
|
|
8127
|
-
},
|
|
8128
|
-
{
|
|
8129
|
-
"name": "request",
|
|
8130
|
-
"default": "{}",
|
|
7863
|
+
"name": "t",
|
|
8131
7864
|
"type": {
|
|
8132
|
-
"text": "
|
|
7865
|
+
"text": "Tracked"
|
|
8133
7866
|
}
|
|
8134
7867
|
}
|
|
8135
7868
|
],
|
|
8136
|
-
"description": "
|
|
7869
|
+
"description": "The interaction's context was disposed: if nothing said it settled, say it did."
|
|
8137
7870
|
},
|
|
8138
7871
|
{
|
|
8139
7872
|
"kind": "method",
|
|
8140
|
-
"name": "
|
|
7873
|
+
"name": "settle",
|
|
7874
|
+
"privacy": "private",
|
|
8141
7875
|
"return": {
|
|
8142
7876
|
"type": {
|
|
8143
|
-
"text": "
|
|
7877
|
+
"text": "void"
|
|
8144
7878
|
}
|
|
8145
7879
|
},
|
|
8146
7880
|
"parameters": [
|
|
8147
7881
|
{
|
|
8148
|
-
"name": "
|
|
7882
|
+
"name": "t",
|
|
8149
7883
|
"type": {
|
|
8150
|
-
"text": "
|
|
7884
|
+
"text": "Tracked"
|
|
7885
|
+
}
|
|
7886
|
+
},
|
|
7887
|
+
{
|
|
7888
|
+
"name": "how",
|
|
7889
|
+
"type": {
|
|
7890
|
+
"text": "{ answeredBy?: string; resolvedItself?: boolean; auto?: boolean; raw?: boolean }"
|
|
8151
7891
|
}
|
|
8152
7892
|
}
|
|
8153
|
-
]
|
|
8154
|
-
"description": "Wait for the log to say something, then return what it said. Resolves as soon as an event in\n`until` is in the log after `since` (immediately, when one already is), or at `maxWaitMs` with\nstatus `'working'`. Either way it returns every event after `since`, and `nextSeq`, the cursor\nfor the next call: poll with it and nothing is lost."
|
|
7893
|
+
]
|
|
8155
7894
|
},
|
|
8156
7895
|
{
|
|
8157
7896
|
"kind": "method",
|
|
8158
|
-
"name": "
|
|
7897
|
+
"name": "release",
|
|
7898
|
+
"privacy": "private",
|
|
8159
7899
|
"return": {
|
|
8160
7900
|
"type": {
|
|
8161
|
-
"text": "
|
|
7901
|
+
"text": "void"
|
|
8162
7902
|
}
|
|
8163
7903
|
},
|
|
8164
7904
|
"parameters": [
|
|
8165
7905
|
{
|
|
8166
|
-
"name": "
|
|
8167
|
-
"
|
|
7906
|
+
"name": "t",
|
|
7907
|
+
"type": {
|
|
7908
|
+
"text": "Tracked"
|
|
7909
|
+
}
|
|
8168
7910
|
}
|
|
8169
|
-
]
|
|
8170
|
-
"description": "Every event logged after `since` (default: all the log keeps), without waiting."
|
|
7911
|
+
]
|
|
8171
7912
|
},
|
|
8172
7913
|
{
|
|
8173
7914
|
"kind": "method",
|
|
8174
|
-
"name": "
|
|
7915
|
+
"name": "onHistory",
|
|
7916
|
+
"privacy": "private",
|
|
8175
7917
|
"return": {
|
|
8176
7918
|
"type": {
|
|
8177
|
-
"text": "
|
|
7919
|
+
"text": "void"
|
|
8178
7920
|
}
|
|
8179
7921
|
},
|
|
8180
|
-
"description": "
|
|
7922
|
+
"description": "New messages in the driver's history: report what the person would see of them."
|
|
8181
7923
|
},
|
|
8182
7924
|
{
|
|
8183
7925
|
"kind": "method",
|
|
8184
|
-
"name": "
|
|
7926
|
+
"name": "reportMessages",
|
|
7927
|
+
"privacy": "private",
|
|
8185
7928
|
"return": {
|
|
8186
7929
|
"type": {
|
|
8187
|
-
"text": "
|
|
7930
|
+
"text": "void"
|
|
8188
7931
|
}
|
|
8189
|
-
}
|
|
8190
|
-
"description": "Restore the saved session for this key, as the browser's element does on mount (see\n`HeadlessPersistenceBinding.restore`). Call it before the first `send`. The restored history is\nthe starting point, not news: it is not reported as `message` events or as a turn, and the\nevent log and its cursors carry on from where they are. A no-op without `persistence`."
|
|
7932
|
+
}
|
|
8191
7933
|
},
|
|
8192
7934
|
{
|
|
8193
7935
|
"kind": "method",
|
|
8194
|
-
"name": "
|
|
7936
|
+
"name": "onAutopilot",
|
|
7937
|
+
"privacy": "private",
|
|
8195
7938
|
"return": {
|
|
8196
7939
|
"type": {
|
|
8197
|
-
"text": "
|
|
7940
|
+
"text": "void"
|
|
8198
7941
|
}
|
|
8199
|
-
}
|
|
8200
|
-
"description": "Save the session now: the snapshot, and the diagnostics appended since the last flush, rather\nthan at the next throttled save. A no-op without `persistence`."
|
|
7942
|
+
}
|
|
8201
7943
|
},
|
|
8202
7944
|
{
|
|
8203
7945
|
"kind": "method",
|
|
8204
|
-
"name": "
|
|
7946
|
+
"name": "autopilotSignature",
|
|
7947
|
+
"privacy": "private",
|
|
8205
7948
|
"return": {
|
|
8206
7949
|
"type": {
|
|
8207
|
-
"text": "
|
|
7950
|
+
"text": "string"
|
|
8208
7951
|
}
|
|
8209
|
-
}
|
|
8210
|
-
"description": "The debug log, the document the browser's Download gives. With `persistence`, the log of the\nwhole session stitched from the stored stream with a fresh `meta-snapshot` (`lifetimeDebugLog`,\nthe same code); without, the current page's, from `buildDiagnosticEntries`. Never throws."
|
|
7952
|
+
}
|
|
8211
7953
|
},
|
|
8212
7954
|
{
|
|
8213
7955
|
"kind": "method",
|
|
8214
|
-
"name": "
|
|
7956
|
+
"name": "describe",
|
|
7957
|
+
"privacy": "private",
|
|
8215
7958
|
"return": {
|
|
8216
7959
|
"type": {
|
|
8217
|
-
"text": "
|
|
7960
|
+
"text": "InteractionDescription"
|
|
8218
7961
|
}
|
|
8219
7962
|
},
|
|
8220
|
-
"
|
|
7963
|
+
"parameters": [
|
|
7964
|
+
{
|
|
7965
|
+
"name": "t",
|
|
7966
|
+
"type": {
|
|
7967
|
+
"text": "Tracked"
|
|
7968
|
+
}
|
|
7969
|
+
}
|
|
7970
|
+
]
|
|
8221
7971
|
},
|
|
8222
7972
|
{
|
|
8223
7973
|
"kind": "method",
|
|
8224
|
-
"name": "
|
|
7974
|
+
"name": "evaluate",
|
|
7975
|
+
"privacy": "private",
|
|
8225
7976
|
"return": {
|
|
8226
7977
|
"type": {
|
|
8227
|
-
"text": "
|
|
7978
|
+
"text": "void"
|
|
8228
7979
|
}
|
|
8229
7980
|
},
|
|
8230
7981
|
"parameters": [
|
|
8231
7982
|
{
|
|
8232
|
-
"name": "
|
|
7983
|
+
"name": "t",
|
|
8233
7984
|
"type": {
|
|
8234
|
-
"text": "
|
|
7985
|
+
"text": "Tracked"
|
|
8235
7986
|
}
|
|
8236
|
-
}
|
|
7987
|
+
}
|
|
7988
|
+
],
|
|
7989
|
+
"description": "Report where an interaction stands, when that has changed. A `decision` when the person holds\nit and can act; `working` when a claimant holds it or it is not ready yet. A `decision` is\nlogged again only when its description changed materially: who holds it, whether it is ready\nor has a controller, or which actions are enabled. The text and facts alone do not count."
|
|
7990
|
+
},
|
|
7991
|
+
{
|
|
7992
|
+
"kind": "method",
|
|
7993
|
+
"name": "autoSettle",
|
|
7994
|
+
"privacy": "private",
|
|
7995
|
+
"return": {
|
|
7996
|
+
"type": {
|
|
7997
|
+
"text": "boolean"
|
|
7998
|
+
}
|
|
7999
|
+
},
|
|
8000
|
+
"parameters": [
|
|
8237
8001
|
{
|
|
8238
|
-
"name": "
|
|
8239
|
-
"optional": true,
|
|
8002
|
+
"name": "t",
|
|
8240
8003
|
"type": {
|
|
8241
|
-
"text": "
|
|
8004
|
+
"text": "Tracked"
|
|
8242
8005
|
}
|
|
8243
8006
|
}
|
|
8244
8007
|
],
|
|
8245
|
-
"description": "
|
|
8008
|
+
"description": "Settle a widget that settles itself in a browser, as it would on mounting. Once, and only when\nthe person holds it. Returns whether it settled it."
|
|
8246
8009
|
},
|
|
8247
8010
|
{
|
|
8248
8011
|
"kind": "method",
|
|
8249
|
-
"name": "
|
|
8012
|
+
"name": "readTool",
|
|
8250
8013
|
"privacy": "private",
|
|
8251
8014
|
"return": {
|
|
8252
8015
|
"type": {
|
|
8253
|
-
"text": "
|
|
8016
|
+
"text": "Promise<HeadlessReadResult>"
|
|
8254
8017
|
}
|
|
8255
8018
|
},
|
|
8256
8019
|
"parameters": [
|
|
8257
8020
|
{
|
|
8258
|
-
"name": "
|
|
8021
|
+
"name": "t",
|
|
8259
8022
|
"type": {
|
|
8260
|
-
"text": "
|
|
8023
|
+
"text": "Tracked"
|
|
8261
8024
|
}
|
|
8262
8025
|
},
|
|
8263
8026
|
{
|
|
8264
|
-
"name": "
|
|
8027
|
+
"name": "name",
|
|
8265
8028
|
"type": {
|
|
8266
|
-
"text": "string
|
|
8029
|
+
"text": "string"
|
|
8030
|
+
}
|
|
8031
|
+
},
|
|
8032
|
+
{
|
|
8033
|
+
"name": "args",
|
|
8034
|
+
"type": {
|
|
8035
|
+
"text": "Record<string, unknown> | undefined"
|
|
8267
8036
|
}
|
|
8268
8037
|
}
|
|
8269
8038
|
]
|
|
8270
8039
|
},
|
|
8271
8040
|
{
|
|
8272
8041
|
"kind": "method",
|
|
8273
|
-
"name": "
|
|
8042
|
+
"name": "observe",
|
|
8043
|
+
"privacy": "private",
|
|
8274
8044
|
"return": {
|
|
8275
8045
|
"type": {
|
|
8276
8046
|
"text": "void"
|
|
8277
8047
|
}
|
|
8278
8048
|
},
|
|
8279
|
-
"description": "
|
|
8049
|
+
"description": "Notice a turn begin or end, whoever started it. The driver being busy (or a `send` in flight)\nis a turn; once it has been idle for a beat the turn is over and is reported, once. The beat\ncovers the gaps inside one turn, such as a hand-off continuing it, which are a microtask long.\nA turn that begins the instant another ends, with no idle between, is reported as one."
|
|
8280
8050
|
},
|
|
8281
8051
|
{
|
|
8282
8052
|
"kind": "method",
|
|
8283
|
-
"name": "
|
|
8053
|
+
"name": "closeTurn",
|
|
8284
8054
|
"privacy": "private",
|
|
8285
8055
|
"return": {
|
|
8286
8056
|
"type": {
|
|
8287
8057
|
"text": "void"
|
|
8288
8058
|
}
|
|
8289
8059
|
},
|
|
8290
|
-
"
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
{
|
|
8298
|
-
"
|
|
8299
|
-
"type": {
|
|
8300
|
-
"text": "(e: Event) => void"
|
|
8301
|
-
}
|
|
8060
|
+
"description": "Report the open turn as ended, unless the driver is busy again."
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
"kind": "method",
|
|
8064
|
+
"name": "startPolling",
|
|
8065
|
+
"privacy": "private",
|
|
8066
|
+
"return": {
|
|
8067
|
+
"type": {
|
|
8068
|
+
"text": "void"
|
|
8302
8069
|
}
|
|
8303
|
-
|
|
8070
|
+
},
|
|
8071
|
+
"description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
|
|
8304
8072
|
},
|
|
8305
8073
|
{
|
|
8306
8074
|
"kind": "method",
|
|
8307
|
-
"name": "
|
|
8075
|
+
"name": "stopPolling",
|
|
8308
8076
|
"privacy": "private",
|
|
8309
8077
|
"return": {
|
|
8310
8078
|
"type": {
|
|
8311
|
-
"text": "
|
|
8079
|
+
"text": "void"
|
|
8312
8080
|
}
|
|
8313
8081
|
}
|
|
8314
8082
|
},
|
|
8315
8083
|
{
|
|
8316
8084
|
"kind": "method",
|
|
8317
|
-
"name": "
|
|
8085
|
+
"name": "logTurn",
|
|
8318
8086
|
"privacy": "private",
|
|
8319
8087
|
"return": {
|
|
8320
8088
|
"type": {
|
|
@@ -8323,17 +8091,28 @@
|
|
|
8323
8091
|
},
|
|
8324
8092
|
"parameters": [
|
|
8325
8093
|
{
|
|
8326
|
-
"name": "
|
|
8094
|
+
"name": "reason",
|
|
8327
8095
|
"type": {
|
|
8328
|
-
"text": "
|
|
8096
|
+
"text": "string"
|
|
8097
|
+
}
|
|
8098
|
+
},
|
|
8099
|
+
{
|
|
8100
|
+
"name": "failureReason",
|
|
8101
|
+
"type": {
|
|
8102
|
+
"text": "string | undefined"
|
|
8103
|
+
}
|
|
8104
|
+
},
|
|
8105
|
+
{
|
|
8106
|
+
"name": "start",
|
|
8107
|
+
"type": {
|
|
8108
|
+
"text": "number"
|
|
8329
8109
|
}
|
|
8330
8110
|
}
|
|
8331
|
-
]
|
|
8332
|
-
"description": "An interaction opened: watch it. Who holds it is not decided yet, so it is reported later."
|
|
8111
|
+
]
|
|
8333
8112
|
},
|
|
8334
8113
|
{
|
|
8335
8114
|
"kind": "method",
|
|
8336
|
-
"name": "
|
|
8115
|
+
"name": "log",
|
|
8337
8116
|
"privacy": "private",
|
|
8338
8117
|
"return": {
|
|
8339
8118
|
"type": {
|
|
@@ -8342,17 +8121,16 @@
|
|
|
8342
8121
|
},
|
|
8343
8122
|
"parameters": [
|
|
8344
8123
|
{
|
|
8345
|
-
"name": "
|
|
8124
|
+
"name": "event",
|
|
8346
8125
|
"type": {
|
|
8347
|
-
"text": "
|
|
8126
|
+
"text": "NewEvent"
|
|
8348
8127
|
}
|
|
8349
8128
|
}
|
|
8350
|
-
]
|
|
8351
|
-
"description": "The driver says an interaction settled, by whatever route."
|
|
8129
|
+
]
|
|
8352
8130
|
},
|
|
8353
8131
|
{
|
|
8354
8132
|
"kind": "method",
|
|
8355
|
-
"name": "
|
|
8133
|
+
"name": "append",
|
|
8356
8134
|
"privacy": "private",
|
|
8357
8135
|
"return": {
|
|
8358
8136
|
"type": {
|
|
@@ -8361,584 +8139,806 @@
|
|
|
8361
8139
|
},
|
|
8362
8140
|
"parameters": [
|
|
8363
8141
|
{
|
|
8364
|
-
"name": "
|
|
8142
|
+
"name": "event",
|
|
8365
8143
|
"type": {
|
|
8366
|
-
"text": "
|
|
8144
|
+
"text": "NewEvent"
|
|
8367
8145
|
}
|
|
8368
8146
|
}
|
|
8369
|
-
]
|
|
8370
|
-
"description": "The interaction's context was disposed: if nothing said it settled, say it did."
|
|
8147
|
+
]
|
|
8371
8148
|
},
|
|
8372
8149
|
{
|
|
8373
8150
|
"kind": "method",
|
|
8374
|
-
"name": "
|
|
8151
|
+
"name": "readProbe",
|
|
8375
8152
|
"privacy": "private",
|
|
8376
8153
|
"return": {
|
|
8377
8154
|
"type": {
|
|
8378
|
-
"text": "
|
|
8379
|
-
}
|
|
8380
|
-
},
|
|
8381
|
-
"parameters": [
|
|
8382
|
-
{
|
|
8383
|
-
"name": "t",
|
|
8384
|
-
"type": {
|
|
8385
|
-
"text": "Tracked"
|
|
8386
|
-
}
|
|
8387
|
-
},
|
|
8388
|
-
{
|
|
8389
|
-
"name": "how",
|
|
8390
|
-
"type": {
|
|
8391
|
-
"text": "{ answeredBy?: string; resolvedItself?: boolean; auto?: boolean; raw?: boolean }"
|
|
8392
|
-
}
|
|
8155
|
+
"text": "Record<string, unknown>"
|
|
8393
8156
|
}
|
|
8394
|
-
|
|
8157
|
+
}
|
|
8395
8158
|
},
|
|
8396
8159
|
{
|
|
8397
8160
|
"kind": "method",
|
|
8398
|
-
"name": "
|
|
8161
|
+
"name": "checkProbe",
|
|
8399
8162
|
"privacy": "private",
|
|
8400
8163
|
"return": {
|
|
8401
8164
|
"type": {
|
|
8402
8165
|
"text": "void"
|
|
8403
8166
|
}
|
|
8404
8167
|
},
|
|
8405
|
-
"
|
|
8406
|
-
{
|
|
8407
|
-
"name": "t",
|
|
8408
|
-
"type": {
|
|
8409
|
-
"text": "Tracked"
|
|
8410
|
-
}
|
|
8411
|
-
}
|
|
8412
|
-
]
|
|
8168
|
+
"description": "Read the probe again; a change in any top-level value is a `probe` event."
|
|
8413
8169
|
},
|
|
8414
8170
|
{
|
|
8415
8171
|
"kind": "method",
|
|
8416
|
-
"name": "
|
|
8172
|
+
"name": "waited",
|
|
8417
8173
|
"privacy": "private",
|
|
8418
8174
|
"return": {
|
|
8419
8175
|
"type": {
|
|
8420
|
-
"text": "
|
|
8176
|
+
"text": "HeadlessWaitResult"
|
|
8421
8177
|
}
|
|
8422
8178
|
},
|
|
8423
|
-
"
|
|
8424
|
-
|
|
8179
|
+
"parameters": [
|
|
8180
|
+
{
|
|
8181
|
+
"name": "since",
|
|
8182
|
+
"type": {
|
|
8183
|
+
"text": "number"
|
|
8184
|
+
}
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
"name": "status",
|
|
8188
|
+
"type": {
|
|
8189
|
+
"text": "HeadlessWaitResult['status']"
|
|
8190
|
+
}
|
|
8191
|
+
}
|
|
8192
|
+
]
|
|
8193
|
+
}
|
|
8194
|
+
]
|
|
8195
|
+
}
|
|
8196
|
+
],
|
|
8197
|
+
"exports": [
|
|
8198
|
+
{
|
|
8199
|
+
"kind": "js",
|
|
8200
|
+
"name": "HeadlessSession",
|
|
8201
|
+
"declaration": {
|
|
8202
|
+
"name": "HeadlessSession",
|
|
8203
|
+
"module": "src/headless/headless-session.ts"
|
|
8204
|
+
}
|
|
8205
|
+
}
|
|
8206
|
+
]
|
|
8207
|
+
},
|
|
8208
|
+
{
|
|
8209
|
+
"kind": "javascript-module",
|
|
8210
|
+
"path": "src/headless/headless.types.ts",
|
|
8211
|
+
"declarations": [],
|
|
8212
|
+
"exports": []
|
|
8213
|
+
},
|
|
8214
|
+
{
|
|
8215
|
+
"kind": "javascript-module",
|
|
8216
|
+
"path": "src/headless/index.ts",
|
|
8217
|
+
"declarations": [],
|
|
8218
|
+
"exports": [
|
|
8219
|
+
{
|
|
8220
|
+
"kind": "js",
|
|
8221
|
+
"name": "describeInteraction",
|
|
8222
|
+
"declaration": {
|
|
8223
|
+
"name": "describeInteraction",
|
|
8224
|
+
"module": "./describe-interaction"
|
|
8225
|
+
}
|
|
8226
|
+
},
|
|
8227
|
+
{
|
|
8228
|
+
"kind": "js",
|
|
8229
|
+
"name": "headlessCurrentDebugLog",
|
|
8230
|
+
"declaration": {
|
|
8231
|
+
"name": "headlessCurrentDebugLog",
|
|
8232
|
+
"module": "./headless-debug"
|
|
8233
|
+
}
|
|
8234
|
+
},
|
|
8235
|
+
{
|
|
8236
|
+
"kind": "js",
|
|
8237
|
+
"name": "headlessDiagnosticEntries",
|
|
8238
|
+
"declaration": {
|
|
8239
|
+
"name": "headlessDiagnosticEntries",
|
|
8240
|
+
"module": "./headless-debug"
|
|
8241
|
+
}
|
|
8242
|
+
},
|
|
8243
|
+
{
|
|
8244
|
+
"kind": "js",
|
|
8245
|
+
"name": "headlessMetaSnapshot",
|
|
8246
|
+
"declaration": {
|
|
8247
|
+
"name": "headlessMetaSnapshot",
|
|
8248
|
+
"module": "./headless-debug"
|
|
8249
|
+
}
|
|
8250
|
+
},
|
|
8251
|
+
{
|
|
8252
|
+
"kind": "js",
|
|
8253
|
+
"name": "HeadlessSession",
|
|
8254
|
+
"declaration": {
|
|
8255
|
+
"name": "HeadlessSession",
|
|
8256
|
+
"module": "./headless-session"
|
|
8257
|
+
}
|
|
8258
|
+
},
|
|
8259
|
+
{
|
|
8260
|
+
"kind": "js",
|
|
8261
|
+
"name": "AutopilotLike",
|
|
8262
|
+
"declaration": {
|
|
8263
|
+
"name": "AutopilotLike",
|
|
8264
|
+
"module": "./headless.types"
|
|
8265
|
+
}
|
|
8266
|
+
},
|
|
8267
|
+
{
|
|
8268
|
+
"kind": "js",
|
|
8269
|
+
"name": "DescribedAction",
|
|
8270
|
+
"declaration": {
|
|
8271
|
+
"name": "DescribedAction",
|
|
8272
|
+
"module": "./headless.types"
|
|
8273
|
+
}
|
|
8274
|
+
},
|
|
8275
|
+
{
|
|
8276
|
+
"kind": "js",
|
|
8277
|
+
"name": "DescribeInteractionInput",
|
|
8278
|
+
"declaration": {
|
|
8279
|
+
"name": "DescribeInteractionInput",
|
|
8280
|
+
"module": "./headless.types"
|
|
8281
|
+
}
|
|
8282
|
+
},
|
|
8283
|
+
{
|
|
8284
|
+
"kind": "js",
|
|
8285
|
+
"name": "HeadlessActArgs",
|
|
8286
|
+
"declaration": {
|
|
8287
|
+
"name": "HeadlessActArgs",
|
|
8288
|
+
"module": "./headless.types"
|
|
8289
|
+
}
|
|
8290
|
+
},
|
|
8291
|
+
{
|
|
8292
|
+
"kind": "js",
|
|
8293
|
+
"name": "HeadlessActResult",
|
|
8294
|
+
"declaration": {
|
|
8295
|
+
"name": "HeadlessActResult",
|
|
8296
|
+
"module": "./headless.types"
|
|
8297
|
+
}
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
"kind": "js",
|
|
8301
|
+
"name": "HeadlessDebugOptions",
|
|
8302
|
+
"declaration": {
|
|
8303
|
+
"name": "HeadlessDebugOptions",
|
|
8304
|
+
"module": "./headless.types"
|
|
8305
|
+
}
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
"kind": "js",
|
|
8309
|
+
"name": "HeadlessEvent",
|
|
8310
|
+
"declaration": {
|
|
8311
|
+
"name": "HeadlessEvent",
|
|
8312
|
+
"module": "./headless.types"
|
|
8313
|
+
}
|
|
8314
|
+
},
|
|
8315
|
+
{
|
|
8316
|
+
"kind": "js",
|
|
8317
|
+
"name": "HeadlessEventBase",
|
|
8318
|
+
"declaration": {
|
|
8319
|
+
"name": "HeadlessEventBase",
|
|
8320
|
+
"module": "./headless.types"
|
|
8321
|
+
}
|
|
8322
|
+
},
|
|
8323
|
+
{
|
|
8324
|
+
"kind": "js",
|
|
8325
|
+
"name": "HeadlessEventType",
|
|
8326
|
+
"declaration": {
|
|
8327
|
+
"name": "HeadlessEventType",
|
|
8328
|
+
"module": "./headless.types"
|
|
8329
|
+
}
|
|
8330
|
+
},
|
|
8331
|
+
{
|
|
8332
|
+
"kind": "js",
|
|
8333
|
+
"name": "HeadlessPersistence",
|
|
8334
|
+
"declaration": {
|
|
8335
|
+
"name": "HeadlessPersistence",
|
|
8336
|
+
"module": "./headless.types"
|
|
8337
|
+
}
|
|
8338
|
+
},
|
|
8339
|
+
{
|
|
8340
|
+
"kind": "js",
|
|
8341
|
+
"name": "HeadlessPersistenceBinding",
|
|
8342
|
+
"declaration": {
|
|
8343
|
+
"name": "HeadlessPersistenceBinding",
|
|
8344
|
+
"module": "./headless.types"
|
|
8345
|
+
}
|
|
8346
|
+
},
|
|
8347
|
+
{
|
|
8348
|
+
"kind": "js",
|
|
8349
|
+
"name": "HeadlessPersistenceHost",
|
|
8350
|
+
"declaration": {
|
|
8351
|
+
"name": "HeadlessPersistenceHost",
|
|
8352
|
+
"module": "./headless.types"
|
|
8353
|
+
}
|
|
8354
|
+
},
|
|
8355
|
+
{
|
|
8356
|
+
"kind": "js",
|
|
8357
|
+
"name": "HeadlessReadRequest",
|
|
8358
|
+
"declaration": {
|
|
8359
|
+
"name": "HeadlessReadRequest",
|
|
8360
|
+
"module": "./headless.types"
|
|
8361
|
+
}
|
|
8362
|
+
},
|
|
8363
|
+
{
|
|
8364
|
+
"kind": "js",
|
|
8365
|
+
"name": "HeadlessReadResult",
|
|
8366
|
+
"declaration": {
|
|
8367
|
+
"name": "HeadlessReadResult",
|
|
8368
|
+
"module": "./headless.types"
|
|
8369
|
+
}
|
|
8370
|
+
},
|
|
8371
|
+
{
|
|
8372
|
+
"kind": "js",
|
|
8373
|
+
"name": "HeadlessResult",
|
|
8374
|
+
"declaration": {
|
|
8375
|
+
"name": "HeadlessResult",
|
|
8376
|
+
"module": "./headless.types"
|
|
8377
|
+
}
|
|
8378
|
+
},
|
|
8379
|
+
{
|
|
8380
|
+
"kind": "js",
|
|
8381
|
+
"name": "HeadlessRestoreOutcome",
|
|
8382
|
+
"declaration": {
|
|
8383
|
+
"name": "HeadlessRestoreOutcome",
|
|
8384
|
+
"module": "./headless.types"
|
|
8385
|
+
}
|
|
8386
|
+
},
|
|
8387
|
+
{
|
|
8388
|
+
"kind": "js",
|
|
8389
|
+
"name": "HeadlessSendOptions",
|
|
8390
|
+
"declaration": {
|
|
8391
|
+
"name": "HeadlessSendOptions",
|
|
8392
|
+
"module": "./headless.types"
|
|
8393
|
+
}
|
|
8394
|
+
},
|
|
8395
|
+
{
|
|
8396
|
+
"kind": "js",
|
|
8397
|
+
"name": "HeadlessSessionOptions",
|
|
8398
|
+
"declaration": {
|
|
8399
|
+
"name": "HeadlessSessionOptions",
|
|
8400
|
+
"module": "./headless.types"
|
|
8401
|
+
}
|
|
8402
|
+
},
|
|
8403
|
+
{
|
|
8404
|
+
"kind": "js",
|
|
8405
|
+
"name": "HeadlessState",
|
|
8406
|
+
"declaration": {
|
|
8407
|
+
"name": "HeadlessState",
|
|
8408
|
+
"module": "./headless.types"
|
|
8409
|
+
}
|
|
8410
|
+
},
|
|
8411
|
+
{
|
|
8412
|
+
"kind": "js",
|
|
8413
|
+
"name": "HeadlessWaitRequest",
|
|
8414
|
+
"declaration": {
|
|
8415
|
+
"name": "HeadlessWaitRequest",
|
|
8416
|
+
"module": "./headless.types"
|
|
8417
|
+
}
|
|
8418
|
+
},
|
|
8419
|
+
{
|
|
8420
|
+
"kind": "js",
|
|
8421
|
+
"name": "HeadlessWaitResult",
|
|
8422
|
+
"declaration": {
|
|
8423
|
+
"name": "HeadlessWaitResult",
|
|
8424
|
+
"module": "./headless.types"
|
|
8425
|
+
}
|
|
8426
|
+
},
|
|
8427
|
+
{
|
|
8428
|
+
"kind": "js",
|
|
8429
|
+
"name": "InteractionDescription",
|
|
8430
|
+
"declaration": {
|
|
8431
|
+
"name": "InteractionDescription",
|
|
8432
|
+
"module": "./headless.types"
|
|
8433
|
+
}
|
|
8434
|
+
},
|
|
8435
|
+
{
|
|
8436
|
+
"kind": "js",
|
|
8437
|
+
"name": "PendingSummary",
|
|
8438
|
+
"declaration": {
|
|
8439
|
+
"name": "PendingSummary",
|
|
8440
|
+
"module": "./headless.types"
|
|
8441
|
+
}
|
|
8442
|
+
}
|
|
8443
|
+
]
|
|
8444
|
+
},
|
|
8445
|
+
{
|
|
8446
|
+
"kind": "javascript-module",
|
|
8447
|
+
"path": "src/headless-server/compact.ts",
|
|
8448
|
+
"declarations": [
|
|
8449
|
+
{
|
|
8450
|
+
"kind": "function",
|
|
8451
|
+
"name": "firstLines",
|
|
8452
|
+
"return": {
|
|
8453
|
+
"type": {
|
|
8454
|
+
"text": "{ text: string; chars?: number }"
|
|
8455
|
+
}
|
|
8456
|
+
},
|
|
8457
|
+
"parameters": [
|
|
8425
8458
|
{
|
|
8426
|
-
"
|
|
8427
|
-
"
|
|
8428
|
-
|
|
8429
|
-
"return": {
|
|
8430
|
-
"type": {
|
|
8431
|
-
"text": "void"
|
|
8432
|
-
}
|
|
8459
|
+
"name": "text",
|
|
8460
|
+
"type": {
|
|
8461
|
+
"text": "string"
|
|
8433
8462
|
}
|
|
8434
8463
|
},
|
|
8435
8464
|
{
|
|
8436
|
-
"
|
|
8437
|
-
"
|
|
8438
|
-
|
|
8439
|
-
"return": {
|
|
8440
|
-
"type": {
|
|
8441
|
-
"text": "void"
|
|
8442
|
-
}
|
|
8465
|
+
"name": "lines",
|
|
8466
|
+
"type": {
|
|
8467
|
+
"text": "number"
|
|
8443
8468
|
}
|
|
8444
8469
|
},
|
|
8445
8470
|
{
|
|
8446
|
-
"
|
|
8447
|
-
"
|
|
8448
|
-
|
|
8449
|
-
"return": {
|
|
8450
|
-
"type": {
|
|
8451
|
-
"text": "string"
|
|
8452
|
-
}
|
|
8471
|
+
"name": "chars",
|
|
8472
|
+
"type": {
|
|
8473
|
+
"text": "number"
|
|
8453
8474
|
}
|
|
8454
|
-
}
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
"type": {
|
|
8468
|
-
"text": "Tracked"
|
|
8469
|
-
}
|
|
8470
|
-
}
|
|
8471
|
-
]
|
|
8472
|
-
},
|
|
8473
|
-
{
|
|
8474
|
-
"kind": "method",
|
|
8475
|
-
"name": "evaluate",
|
|
8476
|
-
"privacy": "private",
|
|
8477
|
-
"return": {
|
|
8478
|
-
"type": {
|
|
8479
|
-
"text": "void"
|
|
8480
|
-
}
|
|
8481
|
-
},
|
|
8482
|
-
"parameters": [
|
|
8483
|
-
{
|
|
8484
|
-
"name": "t",
|
|
8485
|
-
"type": {
|
|
8486
|
-
"text": "Tracked"
|
|
8487
|
-
}
|
|
8488
|
-
}
|
|
8489
|
-
],
|
|
8490
|
-
"description": "Report where an interaction stands, when that has changed. A `decision` when the person holds\nit and can act; `working` when a claimant holds it or it is not ready yet. A `decision` is\nlogged again only when its description changed materially: who holds it, whether it is ready\nor has a controller, or which actions are enabled. The text and facts alone do not count."
|
|
8491
|
-
},
|
|
8492
|
-
{
|
|
8493
|
-
"kind": "method",
|
|
8494
|
-
"name": "autoSettle",
|
|
8495
|
-
"privacy": "private",
|
|
8496
|
-
"return": {
|
|
8497
|
-
"type": {
|
|
8498
|
-
"text": "boolean"
|
|
8499
|
-
}
|
|
8500
|
-
},
|
|
8501
|
-
"parameters": [
|
|
8502
|
-
{
|
|
8503
|
-
"name": "t",
|
|
8504
|
-
"type": {
|
|
8505
|
-
"text": "Tracked"
|
|
8506
|
-
}
|
|
8507
|
-
}
|
|
8508
|
-
],
|
|
8509
|
-
"description": "Settle a widget that settles itself in a browser, as it would on mounting. Once, and only when\nthe person holds it. Returns whether it settled it."
|
|
8510
|
-
},
|
|
8511
|
-
{
|
|
8512
|
-
"kind": "method",
|
|
8513
|
-
"name": "readTool",
|
|
8514
|
-
"privacy": "private",
|
|
8515
|
-
"return": {
|
|
8516
|
-
"type": {
|
|
8517
|
-
"text": "Promise<HeadlessReadResult>"
|
|
8518
|
-
}
|
|
8519
|
-
},
|
|
8520
|
-
"parameters": [
|
|
8521
|
-
{
|
|
8522
|
-
"name": "t",
|
|
8523
|
-
"type": {
|
|
8524
|
-
"text": "Tracked"
|
|
8525
|
-
}
|
|
8526
|
-
},
|
|
8527
|
-
{
|
|
8528
|
-
"name": "name",
|
|
8529
|
-
"type": {
|
|
8530
|
-
"text": "string"
|
|
8531
|
-
}
|
|
8532
|
-
},
|
|
8533
|
-
{
|
|
8534
|
-
"name": "args",
|
|
8535
|
-
"type": {
|
|
8536
|
-
"text": "Record<string, unknown> | undefined"
|
|
8537
|
-
}
|
|
8538
|
-
}
|
|
8539
|
-
]
|
|
8540
|
-
},
|
|
8475
|
+
}
|
|
8476
|
+
],
|
|
8477
|
+
"description": "The first `lines` lines of `text`, at most `chars` characters, and its full length when it was cut."
|
|
8478
|
+
},
|
|
8479
|
+
{
|
|
8480
|
+
"kind": "function",
|
|
8481
|
+
"name": "present",
|
|
8482
|
+
"return": {
|
|
8483
|
+
"type": {
|
|
8484
|
+
"text": "Partial<T>"
|
|
8485
|
+
}
|
|
8486
|
+
},
|
|
8487
|
+
"parameters": [
|
|
8541
8488
|
{
|
|
8542
|
-
"
|
|
8543
|
-
"
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8489
|
+
"name": "source",
|
|
8490
|
+
"type": {
|
|
8491
|
+
"text": "T"
|
|
8492
|
+
}
|
|
8493
|
+
}
|
|
8494
|
+
],
|
|
8495
|
+
"description": "The keys of `source` that are set, as a new object: a field with nothing to say is dropped."
|
|
8496
|
+
},
|
|
8497
|
+
{
|
|
8498
|
+
"kind": "function",
|
|
8499
|
+
"name": "compactEvent",
|
|
8500
|
+
"return": {
|
|
8501
|
+
"type": {
|
|
8502
|
+
"text": "CompactEvent | undefined"
|
|
8503
|
+
}
|
|
8504
|
+
},
|
|
8505
|
+
"parameters": [
|
|
8552
8506
|
{
|
|
8553
|
-
"
|
|
8554
|
-
"
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
"type": {
|
|
8558
|
-
"text": "void"
|
|
8559
|
-
}
|
|
8560
|
-
},
|
|
8561
|
-
"description": "Report the open turn as ended, unless the driver is busy again."
|
|
8507
|
+
"name": "event",
|
|
8508
|
+
"type": {
|
|
8509
|
+
"text": "HeadlessEvent"
|
|
8510
|
+
}
|
|
8562
8511
|
},
|
|
8563
8512
|
{
|
|
8564
|
-
"
|
|
8565
|
-
"
|
|
8566
|
-
"
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8513
|
+
"name": "options",
|
|
8514
|
+
"default": "{}",
|
|
8515
|
+
"type": {
|
|
8516
|
+
"text": "CompactOptions"
|
|
8517
|
+
}
|
|
8518
|
+
}
|
|
8519
|
+
],
|
|
8520
|
+
"description": "One session event, compact. `decision` and `working` are not reported as events: what the person is asked\nis the reply's `decision`, and what is working is its `working`. A message carries its first lines and\nits length; a probe event is the host's view of it (see `ServerOptions.probeEvent`)."
|
|
8521
|
+
},
|
|
8522
|
+
{
|
|
8523
|
+
"kind": "function",
|
|
8524
|
+
"name": "leanDecisionText",
|
|
8525
|
+
"return": {
|
|
8526
|
+
"type": {
|
|
8527
|
+
"text": "string"
|
|
8528
|
+
}
|
|
8529
|
+
},
|
|
8530
|
+
"parameters": [
|
|
8574
8531
|
{
|
|
8575
|
-
"
|
|
8576
|
-
"
|
|
8577
|
-
|
|
8578
|
-
"return": {
|
|
8579
|
-
"type": {
|
|
8580
|
-
"text": "void"
|
|
8581
|
-
}
|
|
8532
|
+
"name": "text",
|
|
8533
|
+
"type": {
|
|
8534
|
+
"text": "string"
|
|
8582
8535
|
}
|
|
8583
8536
|
},
|
|
8584
8537
|
{
|
|
8585
|
-
"
|
|
8586
|
-
"
|
|
8587
|
-
"
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
"text": "string | undefined"
|
|
8604
|
-
}
|
|
8605
|
-
},
|
|
8606
|
-
{
|
|
8607
|
-
"name": "start",
|
|
8608
|
-
"type": {
|
|
8609
|
-
"text": "number"
|
|
8610
|
-
}
|
|
8611
|
-
}
|
|
8612
|
-
]
|
|
8613
|
-
},
|
|
8538
|
+
"name": "views",
|
|
8539
|
+
"optional": true,
|
|
8540
|
+
"type": {
|
|
8541
|
+
"text": "Readonly<Record<string, string>>"
|
|
8542
|
+
}
|
|
8543
|
+
}
|
|
8544
|
+
],
|
|
8545
|
+
"description": "A decision's text without its `Now: <the preview view as JSON>` line, and nothing else (`decisionText:\n\"lean\"`). `renderDecision` writes the preview as `Now: ${capRead(JSON.stringify(view))}`: `JSON.stringify`\nwith no indent never breaks a line, so the JSON is the one line, and `capRead` adds a second, `[Cut at …]`,\nonly when it cut it. Both go; in their place is a pointer to `read`. The line is found by position, not\nby prefix alone: it follows the Views list, whose entry for the preview ends `(shown below as Now)`, so a\ncard that itself has a line starting `Now: ` is not mistaken for it.\n\nThe text comes back as it was when there is no preview to find (a card with no preview view, or a short-form\ndecision, which shows no `Now:`), or when `views` does not name the one the Views list marks."
|
|
8546
|
+
},
|
|
8547
|
+
{
|
|
8548
|
+
"kind": "function",
|
|
8549
|
+
"name": "compactDecision",
|
|
8550
|
+
"return": {
|
|
8551
|
+
"type": {
|
|
8552
|
+
"text": "CompactDecision"
|
|
8553
|
+
}
|
|
8554
|
+
},
|
|
8555
|
+
"parameters": [
|
|
8614
8556
|
{
|
|
8615
|
-
"
|
|
8616
|
-
"
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
"type": {
|
|
8620
|
-
"text": "void"
|
|
8621
|
-
}
|
|
8622
|
-
},
|
|
8623
|
-
"parameters": [
|
|
8624
|
-
{
|
|
8625
|
-
"name": "event",
|
|
8626
|
-
"type": {
|
|
8627
|
-
"text": "NewEvent"
|
|
8628
|
-
}
|
|
8629
|
-
}
|
|
8630
|
-
]
|
|
8557
|
+
"name": "description",
|
|
8558
|
+
"type": {
|
|
8559
|
+
"text": "InteractionDescription"
|
|
8560
|
+
}
|
|
8631
8561
|
},
|
|
8632
8562
|
{
|
|
8633
|
-
"
|
|
8634
|
-
"
|
|
8635
|
-
"
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8563
|
+
"name": "decisionText",
|
|
8564
|
+
"default": "'full'",
|
|
8565
|
+
"type": {
|
|
8566
|
+
"text": "DecisionText"
|
|
8567
|
+
}
|
|
8568
|
+
}
|
|
8569
|
+
],
|
|
8570
|
+
"description": "A decision as the reply carries it: what to read and what to choose from, and nothing empty. With\n`decisionText: \"lean\"` its `text` leaves out the preview view's JSON (leanDecisionText); nothing\nelse about it changes."
|
|
8571
|
+
},
|
|
8572
|
+
{
|
|
8573
|
+
"kind": "function",
|
|
8574
|
+
"name": "shortDecision",
|
|
8575
|
+
"return": {
|
|
8576
|
+
"type": {
|
|
8577
|
+
"text": "CompactDecision"
|
|
8578
|
+
}
|
|
8579
|
+
},
|
|
8580
|
+
"parameters": [
|
|
8650
8581
|
{
|
|
8651
|
-
"
|
|
8652
|
-
"
|
|
8653
|
-
|
|
8654
|
-
"return": {
|
|
8655
|
-
"type": {
|
|
8656
|
-
"text": "Record<string, unknown>"
|
|
8657
|
-
}
|
|
8582
|
+
"name": "interactionId",
|
|
8583
|
+
"type": {
|
|
8584
|
+
"text": "string"
|
|
8658
8585
|
}
|
|
8659
8586
|
},
|
|
8660
8587
|
{
|
|
8661
|
-
"
|
|
8662
|
-
"
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
"type": {
|
|
8666
|
-
"text": "void"
|
|
8667
|
-
}
|
|
8668
|
-
},
|
|
8669
|
-
"description": "Read the probe again; a change in any top-level value is a `probe` event."
|
|
8588
|
+
"name": "component",
|
|
8589
|
+
"type": {
|
|
8590
|
+
"text": "string"
|
|
8591
|
+
}
|
|
8670
8592
|
},
|
|
8671
8593
|
{
|
|
8672
|
-
"
|
|
8673
|
-
"
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
"type": {
|
|
8677
|
-
"text": "HeadlessWaitResult"
|
|
8678
|
-
}
|
|
8679
|
-
},
|
|
8680
|
-
"parameters": [
|
|
8681
|
-
{
|
|
8682
|
-
"name": "since",
|
|
8683
|
-
"type": {
|
|
8684
|
-
"text": "number"
|
|
8685
|
-
}
|
|
8686
|
-
},
|
|
8687
|
-
{
|
|
8688
|
-
"name": "status",
|
|
8689
|
-
"type": {
|
|
8690
|
-
"text": "HeadlessWaitResult['status']"
|
|
8691
|
-
}
|
|
8692
|
-
}
|
|
8693
|
-
]
|
|
8594
|
+
"name": "actions",
|
|
8595
|
+
"type": {
|
|
8596
|
+
"text": "ReadonlyArray<{ n?: number; name: string; enabled: boolean }>"
|
|
8597
|
+
}
|
|
8694
8598
|
}
|
|
8695
|
-
]
|
|
8599
|
+
],
|
|
8600
|
+
"description": "A decision cut to what a caller who has already read the card needs: which interaction, and the actions as\n`n`, `name`, `enabled`. For the reply to an edit, and to a refused action, where the card has not changed\nenough to be worth sending again."
|
|
8601
|
+
},
|
|
8602
|
+
{
|
|
8603
|
+
"kind": "function",
|
|
8604
|
+
"name": "capOutput",
|
|
8605
|
+
"return": {
|
|
8606
|
+
"type": {
|
|
8607
|
+
"text": "unknown"
|
|
8608
|
+
}
|
|
8609
|
+
},
|
|
8610
|
+
"parameters": [
|
|
8611
|
+
{
|
|
8612
|
+
"name": "output",
|
|
8613
|
+
"type": {
|
|
8614
|
+
"text": "unknown"
|
|
8615
|
+
}
|
|
8616
|
+
}
|
|
8617
|
+
],
|
|
8618
|
+
"description": "What an editing action returned, as the reply carries it: whole when small, else its first characters."
|
|
8696
8619
|
}
|
|
8697
8620
|
],
|
|
8698
8621
|
"exports": [
|
|
8699
8622
|
{
|
|
8700
8623
|
"kind": "js",
|
|
8701
|
-
"name": "
|
|
8624
|
+
"name": "firstLines",
|
|
8625
|
+
"declaration": {
|
|
8626
|
+
"name": "firstLines",
|
|
8627
|
+
"module": "src/headless-server/compact.ts"
|
|
8628
|
+
}
|
|
8629
|
+
},
|
|
8630
|
+
{
|
|
8631
|
+
"kind": "js",
|
|
8632
|
+
"name": "present",
|
|
8633
|
+
"declaration": {
|
|
8634
|
+
"name": "present",
|
|
8635
|
+
"module": "src/headless-server/compact.ts"
|
|
8636
|
+
}
|
|
8637
|
+
},
|
|
8638
|
+
{
|
|
8639
|
+
"kind": "js",
|
|
8640
|
+
"name": "compactEvent",
|
|
8641
|
+
"declaration": {
|
|
8642
|
+
"name": "compactEvent",
|
|
8643
|
+
"module": "src/headless-server/compact.ts"
|
|
8644
|
+
}
|
|
8645
|
+
},
|
|
8646
|
+
{
|
|
8647
|
+
"kind": "js",
|
|
8648
|
+
"name": "leanDecisionText",
|
|
8649
|
+
"declaration": {
|
|
8650
|
+
"name": "leanDecisionText",
|
|
8651
|
+
"module": "src/headless-server/compact.ts"
|
|
8652
|
+
}
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
"kind": "js",
|
|
8656
|
+
"name": "compactDecision",
|
|
8702
8657
|
"declaration": {
|
|
8703
|
-
"name": "
|
|
8704
|
-
"module": "src/headless/
|
|
8658
|
+
"name": "compactDecision",
|
|
8659
|
+
"module": "src/headless-server/compact.ts"
|
|
8705
8660
|
}
|
|
8706
|
-
}
|
|
8707
|
-
]
|
|
8708
|
-
},
|
|
8709
|
-
{
|
|
8710
|
-
"kind": "javascript-module",
|
|
8711
|
-
"path": "src/headless/headless.types.ts",
|
|
8712
|
-
"declarations": [],
|
|
8713
|
-
"exports": []
|
|
8714
|
-
},
|
|
8715
|
-
{
|
|
8716
|
-
"kind": "javascript-module",
|
|
8717
|
-
"path": "src/headless/index.ts",
|
|
8718
|
-
"declarations": [],
|
|
8719
|
-
"exports": [
|
|
8661
|
+
},
|
|
8720
8662
|
{
|
|
8721
8663
|
"kind": "js",
|
|
8722
|
-
"name": "
|
|
8664
|
+
"name": "shortDecision",
|
|
8723
8665
|
"declaration": {
|
|
8724
|
-
"name": "
|
|
8725
|
-
"module": "
|
|
8666
|
+
"name": "shortDecision",
|
|
8667
|
+
"module": "src/headless-server/compact.ts"
|
|
8726
8668
|
}
|
|
8727
8669
|
},
|
|
8728
8670
|
{
|
|
8729
8671
|
"kind": "js",
|
|
8730
|
-
"name": "
|
|
8672
|
+
"name": "capOutput",
|
|
8731
8673
|
"declaration": {
|
|
8732
|
-
"name": "
|
|
8733
|
-
"module": "
|
|
8674
|
+
"name": "capOutput",
|
|
8675
|
+
"module": "src/headless-server/compact.ts"
|
|
8734
8676
|
}
|
|
8735
|
-
}
|
|
8677
|
+
}
|
|
8678
|
+
]
|
|
8679
|
+
},
|
|
8680
|
+
{
|
|
8681
|
+
"kind": "javascript-module",
|
|
8682
|
+
"path": "src/headless-server/index.ts",
|
|
8683
|
+
"declarations": [],
|
|
8684
|
+
"exports": [
|
|
8736
8685
|
{
|
|
8737
8686
|
"kind": "js",
|
|
8738
|
-
"name": "
|
|
8687
|
+
"name": "capOutput",
|
|
8739
8688
|
"declaration": {
|
|
8740
|
-
"name": "
|
|
8741
|
-
"module": "./
|
|
8689
|
+
"name": "capOutput",
|
|
8690
|
+
"module": "./compact"
|
|
8742
8691
|
}
|
|
8743
8692
|
},
|
|
8744
8693
|
{
|
|
8745
8694
|
"kind": "js",
|
|
8746
|
-
"name": "
|
|
8695
|
+
"name": "compactDecision",
|
|
8747
8696
|
"declaration": {
|
|
8748
|
-
"name": "
|
|
8749
|
-
"module": "./
|
|
8697
|
+
"name": "compactDecision",
|
|
8698
|
+
"module": "./compact"
|
|
8750
8699
|
}
|
|
8751
8700
|
},
|
|
8752
8701
|
{
|
|
8753
8702
|
"kind": "js",
|
|
8754
|
-
"name": "
|
|
8703
|
+
"name": "compactEvent",
|
|
8755
8704
|
"declaration": {
|
|
8756
|
-
"name": "
|
|
8757
|
-
"module": "./
|
|
8705
|
+
"name": "compactEvent",
|
|
8706
|
+
"module": "./compact"
|
|
8758
8707
|
}
|
|
8759
8708
|
},
|
|
8760
8709
|
{
|
|
8761
8710
|
"kind": "js",
|
|
8762
|
-
"name": "
|
|
8711
|
+
"name": "firstLines",
|
|
8763
8712
|
"declaration": {
|
|
8764
|
-
"name": "
|
|
8765
|
-
"module": "./
|
|
8713
|
+
"name": "firstLines",
|
|
8714
|
+
"module": "./compact"
|
|
8766
8715
|
}
|
|
8767
8716
|
},
|
|
8768
8717
|
{
|
|
8769
8718
|
"kind": "js",
|
|
8770
|
-
"name": "
|
|
8719
|
+
"name": "leanDecisionText",
|
|
8771
8720
|
"declaration": {
|
|
8772
|
-
"name": "
|
|
8773
|
-
"module": "./
|
|
8721
|
+
"name": "leanDecisionText",
|
|
8722
|
+
"module": "./compact"
|
|
8774
8723
|
}
|
|
8775
8724
|
},
|
|
8776
8725
|
{
|
|
8777
8726
|
"kind": "js",
|
|
8778
|
-
"name": "
|
|
8727
|
+
"name": "shortDecision",
|
|
8779
8728
|
"declaration": {
|
|
8780
|
-
"name": "
|
|
8781
|
-
"module": "./
|
|
8729
|
+
"name": "shortDecision",
|
|
8730
|
+
"module": "./compact"
|
|
8782
8731
|
}
|
|
8783
8732
|
},
|
|
8784
8733
|
{
|
|
8785
8734
|
"kind": "js",
|
|
8786
|
-
"name": "
|
|
8735
|
+
"name": "createHeadlessServer",
|
|
8787
8736
|
"declaration": {
|
|
8788
|
-
"name": "
|
|
8789
|
-
"module": "./
|
|
8737
|
+
"name": "createHeadlessServer",
|
|
8738
|
+
"module": "./server"
|
|
8790
8739
|
}
|
|
8791
8740
|
},
|
|
8792
8741
|
{
|
|
8793
8742
|
"kind": "js",
|
|
8794
|
-
"name": "
|
|
8743
|
+
"name": "DECISION_TEXTS",
|
|
8795
8744
|
"declaration": {
|
|
8796
|
-
"name": "
|
|
8797
|
-
"module": "./
|
|
8745
|
+
"name": "DECISION_TEXTS",
|
|
8746
|
+
"module": "./types"
|
|
8798
8747
|
}
|
|
8799
8748
|
},
|
|
8800
8749
|
{
|
|
8801
8750
|
"kind": "js",
|
|
8802
|
-
"name": "
|
|
8751
|
+
"name": "DEFAULT_DECISION_TEXT",
|
|
8803
8752
|
"declaration": {
|
|
8804
|
-
"name": "
|
|
8805
|
-
"module": "./
|
|
8753
|
+
"name": "DEFAULT_DECISION_TEXT",
|
|
8754
|
+
"module": "./types"
|
|
8806
8755
|
}
|
|
8807
8756
|
},
|
|
8808
8757
|
{
|
|
8809
8758
|
"kind": "js",
|
|
8810
|
-
"name": "
|
|
8759
|
+
"name": "Command",
|
|
8811
8760
|
"declaration": {
|
|
8812
|
-
"name": "
|
|
8813
|
-
"module": "./
|
|
8761
|
+
"name": "Command",
|
|
8762
|
+
"module": "./types"
|
|
8814
8763
|
}
|
|
8815
8764
|
},
|
|
8816
8765
|
{
|
|
8817
8766
|
"kind": "js",
|
|
8818
|
-
"name": "
|
|
8767
|
+
"name": "CompactAction",
|
|
8819
8768
|
"declaration": {
|
|
8820
|
-
"name": "
|
|
8821
|
-
"module": "./
|
|
8769
|
+
"name": "CompactAction",
|
|
8770
|
+
"module": "./types"
|
|
8822
8771
|
}
|
|
8823
8772
|
},
|
|
8824
8773
|
{
|
|
8825
8774
|
"kind": "js",
|
|
8826
|
-
"name": "
|
|
8775
|
+
"name": "CompactDecision",
|
|
8827
8776
|
"declaration": {
|
|
8828
|
-
"name": "
|
|
8829
|
-
"module": "./
|
|
8777
|
+
"name": "CompactDecision",
|
|
8778
|
+
"module": "./types"
|
|
8830
8779
|
}
|
|
8831
8780
|
},
|
|
8832
8781
|
{
|
|
8833
8782
|
"kind": "js",
|
|
8834
|
-
"name": "
|
|
8783
|
+
"name": "CompactEvent",
|
|
8835
8784
|
"declaration": {
|
|
8836
|
-
"name": "
|
|
8837
|
-
"module": "./
|
|
8785
|
+
"name": "CompactEvent",
|
|
8786
|
+
"module": "./types"
|
|
8838
8787
|
}
|
|
8839
8788
|
},
|
|
8840
8789
|
{
|
|
8841
8790
|
"kind": "js",
|
|
8842
|
-
"name": "
|
|
8791
|
+
"name": "Composer",
|
|
8843
8792
|
"declaration": {
|
|
8844
|
-
"name": "
|
|
8845
|
-
"module": "./
|
|
8793
|
+
"name": "Composer",
|
|
8794
|
+
"module": "./types"
|
|
8846
8795
|
}
|
|
8847
8796
|
},
|
|
8848
8797
|
{
|
|
8849
8798
|
"kind": "js",
|
|
8850
|
-
"name": "
|
|
8799
|
+
"name": "DecisionText",
|
|
8851
8800
|
"declaration": {
|
|
8852
|
-
"name": "
|
|
8853
|
-
"module": "./
|
|
8801
|
+
"name": "DecisionText",
|
|
8802
|
+
"module": "./types"
|
|
8854
8803
|
}
|
|
8855
8804
|
},
|
|
8856
8805
|
{
|
|
8857
8806
|
"kind": "js",
|
|
8858
|
-
"name": "
|
|
8807
|
+
"name": "ExtraOp",
|
|
8859
8808
|
"declaration": {
|
|
8860
|
-
"name": "
|
|
8861
|
-
"module": "./
|
|
8809
|
+
"name": "ExtraOp",
|
|
8810
|
+
"module": "./types"
|
|
8862
8811
|
}
|
|
8863
8812
|
},
|
|
8864
8813
|
{
|
|
8865
8814
|
"kind": "js",
|
|
8866
|
-
"name": "
|
|
8815
|
+
"name": "ExtraOpResult",
|
|
8867
8816
|
"declaration": {
|
|
8868
|
-
"name": "
|
|
8869
|
-
"module": "./
|
|
8817
|
+
"name": "ExtraOpResult",
|
|
8818
|
+
"module": "./types"
|
|
8870
8819
|
}
|
|
8871
8820
|
},
|
|
8872
8821
|
{
|
|
8873
8822
|
"kind": "js",
|
|
8874
|
-
"name": "
|
|
8823
|
+
"name": "HeadlessServer",
|
|
8875
8824
|
"declaration": {
|
|
8876
|
-
"name": "
|
|
8877
|
-
"module": "./
|
|
8825
|
+
"name": "HeadlessServer",
|
|
8826
|
+
"module": "./types"
|
|
8878
8827
|
}
|
|
8879
8828
|
},
|
|
8880
8829
|
{
|
|
8881
8830
|
"kind": "js",
|
|
8882
|
-
"name": "
|
|
8831
|
+
"name": "HeadlessServerHandle",
|
|
8883
8832
|
"declaration": {
|
|
8884
|
-
"name": "
|
|
8885
|
-
"module": "./
|
|
8833
|
+
"name": "HeadlessServerHandle",
|
|
8834
|
+
"module": "./types"
|
|
8886
8835
|
}
|
|
8887
8836
|
},
|
|
8888
8837
|
{
|
|
8889
8838
|
"kind": "js",
|
|
8890
|
-
"name": "
|
|
8839
|
+
"name": "Reply",
|
|
8891
8840
|
"declaration": {
|
|
8892
|
-
"name": "
|
|
8893
|
-
"module": "./
|
|
8841
|
+
"name": "Reply",
|
|
8842
|
+
"module": "./types"
|
|
8894
8843
|
}
|
|
8895
8844
|
},
|
|
8896
8845
|
{
|
|
8897
8846
|
"kind": "js",
|
|
8898
|
-
"name": "
|
|
8847
|
+
"name": "ServerOptions",
|
|
8899
8848
|
"declaration": {
|
|
8900
|
-
"name": "
|
|
8901
|
-
"module": "./
|
|
8849
|
+
"name": "ServerOptions",
|
|
8850
|
+
"module": "./types"
|
|
8902
8851
|
}
|
|
8903
8852
|
},
|
|
8904
8853
|
{
|
|
8905
8854
|
"kind": "js",
|
|
8906
|
-
"name": "
|
|
8855
|
+
"name": "Status",
|
|
8907
8856
|
"declaration": {
|
|
8908
|
-
"name": "
|
|
8909
|
-
"module": "./
|
|
8857
|
+
"name": "Status",
|
|
8858
|
+
"module": "./types"
|
|
8910
8859
|
}
|
|
8911
8860
|
},
|
|
8912
8861
|
{
|
|
8913
8862
|
"kind": "js",
|
|
8914
|
-
"name": "
|
|
8863
|
+
"name": "WorkingInfo",
|
|
8915
8864
|
"declaration": {
|
|
8916
|
-
"name": "
|
|
8917
|
-
"module": "./
|
|
8865
|
+
"name": "WorkingInfo",
|
|
8866
|
+
"module": "./types"
|
|
8918
8867
|
}
|
|
8919
|
-
}
|
|
8868
|
+
}
|
|
8869
|
+
]
|
|
8870
|
+
},
|
|
8871
|
+
{
|
|
8872
|
+
"kind": "javascript-module",
|
|
8873
|
+
"path": "src/headless-server/server.ts",
|
|
8874
|
+
"declarations": [
|
|
8875
|
+
{
|
|
8876
|
+
"kind": "function",
|
|
8877
|
+
"name": "createHeadlessServer",
|
|
8878
|
+
"return": {
|
|
8879
|
+
"type": {
|
|
8880
|
+
"text": "HeadlessServer"
|
|
8881
|
+
}
|
|
8882
|
+
},
|
|
8883
|
+
"parameters": [
|
|
8884
|
+
{
|
|
8885
|
+
"name": "options",
|
|
8886
|
+
"type": {
|
|
8887
|
+
"text": "ServerOptions"
|
|
8888
|
+
}
|
|
8889
|
+
}
|
|
8890
|
+
],
|
|
8891
|
+
"description": "The headless server (PLAN §5, D7): `node:http` on 127.0.0.1, `GET /health` and `POST /cmd`.\n\nEvery command is APPLIED and then LONG-POLLS (§5.5): the reply comes when the journey next needs the\nperson (an interaction is held by them and ready), a turn ends, the run ends, or something fails, or at\n`maxWaitMs` with `status: \"working\"`. Nothing is lost on a client timeout: the command was applied before\nthe wait, events carry `seq`, and `{op: \"wait\", since}` returns everything after it.\n\nThe session is the only thing it drives; what the host owns is reached through ServerOptions."
|
|
8892
|
+
}
|
|
8893
|
+
],
|
|
8894
|
+
"exports": [
|
|
8920
8895
|
{
|
|
8921
8896
|
"kind": "js",
|
|
8922
|
-
"name": "
|
|
8897
|
+
"name": "createHeadlessServer",
|
|
8923
8898
|
"declaration": {
|
|
8924
|
-
"name": "
|
|
8925
|
-
"module": "
|
|
8899
|
+
"name": "createHeadlessServer",
|
|
8900
|
+
"module": "src/headless-server/server.ts"
|
|
8926
8901
|
}
|
|
8902
|
+
}
|
|
8903
|
+
]
|
|
8904
|
+
},
|
|
8905
|
+
{
|
|
8906
|
+
"kind": "javascript-module",
|
|
8907
|
+
"path": "src/headless-server/types.ts",
|
|
8908
|
+
"declarations": [
|
|
8909
|
+
{
|
|
8910
|
+
"kind": "variable",
|
|
8911
|
+
"name": "DECISION_TEXTS",
|
|
8912
|
+
"type": {
|
|
8913
|
+
"text": "readonly DecisionText[]"
|
|
8914
|
+
},
|
|
8915
|
+
"default": "['full', 'lean']"
|
|
8927
8916
|
},
|
|
8917
|
+
{
|
|
8918
|
+
"kind": "variable",
|
|
8919
|
+
"name": "DEFAULT_DECISION_TEXT",
|
|
8920
|
+
"type": {
|
|
8921
|
+
"text": "DecisionText"
|
|
8922
|
+
},
|
|
8923
|
+
"default": "'lean'",
|
|
8924
|
+
"description": "What the server uses when neither it nor the command says. Its readers are models that can `read` a view."
|
|
8925
|
+
}
|
|
8926
|
+
],
|
|
8927
|
+
"exports": [
|
|
8928
8928
|
{
|
|
8929
8929
|
"kind": "js",
|
|
8930
|
-
"name": "
|
|
8930
|
+
"name": "DECISION_TEXTS",
|
|
8931
8931
|
"declaration": {
|
|
8932
|
-
"name": "
|
|
8933
|
-
"module": "
|
|
8932
|
+
"name": "DECISION_TEXTS",
|
|
8933
|
+
"module": "src/headless-server/types.ts"
|
|
8934
8934
|
}
|
|
8935
8935
|
},
|
|
8936
8936
|
{
|
|
8937
8937
|
"kind": "js",
|
|
8938
|
-
"name": "
|
|
8938
|
+
"name": "DEFAULT_DECISION_TEXT",
|
|
8939
8939
|
"declaration": {
|
|
8940
|
-
"name": "
|
|
8941
|
-
"module": "
|
|
8940
|
+
"name": "DEFAULT_DECISION_TEXT",
|
|
8941
|
+
"module": "src/headless-server/types.ts"
|
|
8942
8942
|
}
|
|
8943
8943
|
}
|
|
8944
8944
|
]
|
|
@@ -10653,6 +10653,12 @@
|
|
|
10653
10653
|
"name": "_handleGlobalInteraction",
|
|
10654
10654
|
"privacy": "private"
|
|
10655
10655
|
},
|
|
10656
|
+
{
|
|
10657
|
+
"kind": "field",
|
|
10658
|
+
"name": "_handleWindowBlur",
|
|
10659
|
+
"privacy": "private",
|
|
10660
|
+
"description": "The window lost focus: the user moved into an iframe (e.g. an app preview hosting its own\nassistant), another tab or another app. None of those reach `_handleGlobalInteraction` —\nan iframe's pointer and focus events stay in its own document — so without this the\nassistant stays \"engaged\" and a turn ending here pulls focus back out of the frame.\nReturning re-engages through `focusin`, which fires when the window's focus comes back."
|
|
10661
|
+
},
|
|
10656
10662
|
{
|
|
10657
10663
|
"kind": "field",
|
|
10658
10664
|
"name": "_userScrolledAway",
|