@genesislcap/ai-assistant 15.95.2-GENC-1665.2 → 15.96.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 +264 -0
- package/dist/ai-assistant.d.ts +124 -0
- package/dist/chat-driver.cjs +182 -226
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +182 -224
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +2053 -2007
- package/dist/dts/autopilot/decision-message.d.ts.map +1 -1
- package/dist/dts/chat-driver-node.d.ts +1 -1
- package/dist/dts/chat-driver-node.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts +14 -10
- package/dist/dts/components/chat-driver/chat-driver.constants.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/chat-driver.d.ts +16 -0
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts +76 -0
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/config/define-stateful-agent.d.ts +30 -1
- package/dist/dts/config/define-stateful-agent.d.ts.map +1 -1
- package/dist/dts/react.d.ts +8 -8
- package/dist/dts/state/debug-event-log.d.ts +1 -1
- package/dist/dts/state/debug-event-log.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts +2 -1
- package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
- package/dist/dts/suggestions/generate-suggestions.d.ts.map +1 -1
- package/dist/dts/utils/driver-note.d.ts +26 -0
- package/dist/dts/utils/driver-note.d.ts.map +1 -0
- package/dist/dts/utils/history-transform.d.ts.map +1 -1
- package/dist/dts/utils/message-partition.d.ts.map +1 -1
- package/dist/dts/utils/preserved-user-messages.d.ts.map +1 -1
- package/dist/esm/autopilot/decision-message.js +3 -0
- package/dist/esm/chat-driver-node.js +1 -1
- package/dist/esm/components/chat-driver/chat-driver.constants.js +17 -10
- package/dist/esm/components/chat-driver/chat-driver.js +119 -35
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +4 -0
- package/dist/esm/config/define-stateful-agent.js +20 -13
- package/dist/esm/state/debug-event-log.js +4 -3
- package/dist/esm/state/persistence/session-snapshot.js +11 -3
- package/dist/esm/suggestions/generate-suggestions.js +2 -0
- package/dist/esm/utils/driver-note.js +30 -0
- package/dist/esm/utils/history-transform.js +4 -0
- package/dist/esm/utils/message-partition.js +5 -0
- package/dist/esm/utils/preserved-user-messages.js +2 -1
- package/dist/react.cjs +5 -5
- package/dist/react.mjs +4 -4
- package/docs/finish-guard.md +125 -0
- package/package.json +17 -17
|
@@ -263,22 +263,6 @@
|
|
|
263
263
|
"package": "@genesislcap/foundation-ai"
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
|
-
{
|
|
267
|
-
"kind": "js",
|
|
268
|
-
"name": "anthropicCacheReadMultiplierFor",
|
|
269
|
-
"declaration": {
|
|
270
|
-
"name": "anthropicCacheReadMultiplierFor",
|
|
271
|
-
"package": "@genesislcap/foundation-ai"
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"kind": "js",
|
|
276
|
-
"name": "ANTHROPIC_LONG_CONTEXT_THRESHOLD",
|
|
277
|
-
"declaration": {
|
|
278
|
-
"name": "ANTHROPIC_LONG_CONTEXT_THRESHOLD",
|
|
279
|
-
"package": "@genesislcap/foundation-ai"
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
266
|
{
|
|
283
267
|
"kind": "js",
|
|
284
268
|
"name": "anthropicRatesFor",
|
|
@@ -6062,1536 +6046,684 @@
|
|
|
6062
6046
|
},
|
|
6063
6047
|
{
|
|
6064
6048
|
"kind": "javascript-module",
|
|
6065
|
-
"path": "src/
|
|
6049
|
+
"path": "src/genesis/calendar.ts",
|
|
6050
|
+
"declarations": [],
|
|
6051
|
+
"exports": []
|
|
6052
|
+
},
|
|
6053
|
+
{
|
|
6054
|
+
"kind": "javascript-module",
|
|
6055
|
+
"path": "src/genesis/config.ts",
|
|
6066
6056
|
"declarations": [
|
|
6057
|
+
{
|
|
6058
|
+
"kind": "variable",
|
|
6059
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6060
|
+
"type": {
|
|
6061
|
+
"text": "number"
|
|
6062
|
+
},
|
|
6063
|
+
"default": "50",
|
|
6064
|
+
"description": "The default read cap, and the ceiling the config may raise it to."
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
"kind": "variable",
|
|
6068
|
+
"name": "MAX_ROWS_CEILING",
|
|
6069
|
+
"type": {
|
|
6070
|
+
"text": "number"
|
|
6071
|
+
},
|
|
6072
|
+
"default": "1000"
|
|
6073
|
+
},
|
|
6067
6074
|
{
|
|
6068
6075
|
"kind": "function",
|
|
6069
|
-
"name": "
|
|
6076
|
+
"name": "toolNameOf",
|
|
6070
6077
|
"return": {
|
|
6071
6078
|
"type": {
|
|
6072
|
-
"text": "
|
|
6079
|
+
"text": "string"
|
|
6073
6080
|
}
|
|
6074
6081
|
},
|
|
6075
6082
|
"parameters": [
|
|
6076
6083
|
{
|
|
6077
|
-
"name": "
|
|
6084
|
+
"name": "resourceName",
|
|
6078
6085
|
"type": {
|
|
6079
|
-
"text": "
|
|
6086
|
+
"text": "string"
|
|
6080
6087
|
}
|
|
6081
6088
|
}
|
|
6082
6089
|
],
|
|
6083
|
-
"description": "
|
|
6084
|
-
}
|
|
6085
|
-
],
|
|
6086
|
-
"exports": [
|
|
6087
|
-
{
|
|
6088
|
-
"kind": "js",
|
|
6089
|
-
"name": "describeInteraction",
|
|
6090
|
-
"declaration": {
|
|
6091
|
-
"name": "describeInteraction",
|
|
6092
|
-
"module": "src/headless/describe-interaction.ts"
|
|
6093
|
-
}
|
|
6094
|
-
}
|
|
6095
|
-
]
|
|
6096
|
-
},
|
|
6097
|
-
{
|
|
6098
|
-
"kind": "javascript-module",
|
|
6099
|
-
"path": "src/headless/headless-debug.ts",
|
|
6100
|
-
"declarations": [
|
|
6090
|
+
"description": "The model-facing tool name for a resource. Deterministic and collision-free (resource names\nare unique), and trivially mapped back to the resource in a debug log. What the tool is FOR\nreaches the model through its description, not its name."
|
|
6091
|
+
},
|
|
6101
6092
|
{
|
|
6102
6093
|
"kind": "function",
|
|
6103
|
-
"name": "
|
|
6094
|
+
"name": "rowActionProblem",
|
|
6104
6095
|
"return": {
|
|
6105
6096
|
"type": {
|
|
6106
|
-
"text": "
|
|
6097
|
+
"text": "string | undefined"
|
|
6107
6098
|
}
|
|
6108
6099
|
},
|
|
6109
6100
|
"parameters": [
|
|
6110
6101
|
{
|
|
6111
|
-
"name": "
|
|
6102
|
+
"name": "resource",
|
|
6112
6103
|
"type": {
|
|
6113
|
-
"text": "
|
|
6104
|
+
"text": "Partial<GenesisAiResource> | null"
|
|
6114
6105
|
}
|
|
6115
6106
|
},
|
|
6116
6107
|
{
|
|
6117
|
-
"name": "
|
|
6118
|
-
"default": "{}",
|
|
6108
|
+
"name": "requestNames",
|
|
6119
6109
|
"type": {
|
|
6120
|
-
"text": "
|
|
6121
|
-
}
|
|
6110
|
+
"text": "ReadonlySet<string>"
|
|
6111
|
+
},
|
|
6112
|
+
"description": "The request resources whose rows can be read. A row action reads its rows\nthrough `REQ_<entity>`, and without one there is no row to review."
|
|
6113
|
+
},
|
|
6114
|
+
{
|
|
6115
|
+
"name": "whyNotReadable",
|
|
6116
|
+
"default": "notReadableReason({})",
|
|
6117
|
+
"type": {
|
|
6118
|
+
"text": "(name: string) => string"
|
|
6119
|
+
},
|
|
6120
|
+
"description": "Why a request is not among `requestNames`, when the caller knows: it was\nleft out, has no read tool, or is a query. Without it, the request is said to be missing."
|
|
6122
6121
|
}
|
|
6123
6122
|
],
|
|
6124
|
-
"description": "
|
|
6123
|
+
"description": "What is wrong with a resource's row-action fields (contracts C-18.7.2), if anything."
|
|
6125
6124
|
},
|
|
6126
6125
|
{
|
|
6127
6126
|
"kind": "function",
|
|
6128
|
-
"name": "
|
|
6127
|
+
"name": "validateGenesisAiConfig",
|
|
6129
6128
|
"return": {
|
|
6130
6129
|
"type": {
|
|
6131
|
-
"text": "
|
|
6130
|
+
"text": "GenesisAiConfigCheck"
|
|
6132
6131
|
}
|
|
6133
6132
|
},
|
|
6134
6133
|
"parameters": [
|
|
6135
6134
|
{
|
|
6136
|
-
"name": "
|
|
6137
|
-
"type": {
|
|
6138
|
-
"text": "AiDriver"
|
|
6139
|
-
}
|
|
6140
|
-
},
|
|
6141
|
-
{
|
|
6142
|
-
"name": "stateKey",
|
|
6143
|
-
"type": {
|
|
6144
|
-
"text": "string"
|
|
6145
|
-
}
|
|
6146
|
-
},
|
|
6147
|
-
{
|
|
6148
|
-
"name": "options",
|
|
6149
|
-
"default": "{}",
|
|
6135
|
+
"name": "config",
|
|
6150
6136
|
"type": {
|
|
6151
|
-
"text": "
|
|
6137
|
+
"text": "unknown"
|
|
6152
6138
|
}
|
|
6153
6139
|
}
|
|
6154
6140
|
],
|
|
6155
|
-
"description": "
|
|
6141
|
+
"description": "Checks a generated AI config before anything is registered, and says what can be kept."
|
|
6156
6142
|
},
|
|
6157
6143
|
{
|
|
6158
6144
|
"kind": "function",
|
|
6159
|
-
"name": "
|
|
6145
|
+
"name": "customCodeOf",
|
|
6160
6146
|
"return": {
|
|
6161
6147
|
"type": {
|
|
6162
|
-
"text": "
|
|
6148
|
+
"text": "GenesisCustomCodeCheck"
|
|
6163
6149
|
}
|
|
6164
6150
|
},
|
|
6165
6151
|
"parameters": [
|
|
6166
6152
|
{
|
|
6167
|
-
"name": "
|
|
6168
|
-
"type": {
|
|
6169
|
-
"text": "AiDriver"
|
|
6170
|
-
}
|
|
6171
|
-
},
|
|
6172
|
-
{
|
|
6173
|
-
"name": "stateKey",
|
|
6174
|
-
"type": {
|
|
6175
|
-
"text": "string"
|
|
6176
|
-
}
|
|
6177
|
-
},
|
|
6178
|
-
{
|
|
6179
|
-
"name": "options",
|
|
6180
|
-
"default": "{}",
|
|
6153
|
+
"name": "resource",
|
|
6181
6154
|
"type": {
|
|
6182
|
-
"text": "
|
|
6155
|
+
"text": "GenesisAiResource"
|
|
6183
6156
|
}
|
|
6184
6157
|
}
|
|
6185
6158
|
],
|
|
6186
|
-
"description": "
|
|
6159
|
+
"description": "A resource's `customCode` as it is used: the one reader of the field."
|
|
6187
6160
|
}
|
|
6188
6161
|
],
|
|
6189
6162
|
"exports": [
|
|
6190
6163
|
{
|
|
6191
6164
|
"kind": "js",
|
|
6192
|
-
"name": "
|
|
6165
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6193
6166
|
"declaration": {
|
|
6194
|
-
"name": "
|
|
6195
|
-
"module": "src/
|
|
6167
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6168
|
+
"module": "src/genesis/config.ts"
|
|
6196
6169
|
}
|
|
6197
6170
|
},
|
|
6198
6171
|
{
|
|
6199
6172
|
"kind": "js",
|
|
6200
|
-
"name": "
|
|
6173
|
+
"name": "MAX_ROWS_CEILING",
|
|
6201
6174
|
"declaration": {
|
|
6202
|
-
"name": "
|
|
6203
|
-
"module": "src/
|
|
6175
|
+
"name": "MAX_ROWS_CEILING",
|
|
6176
|
+
"module": "src/genesis/config.ts"
|
|
6204
6177
|
}
|
|
6205
6178
|
},
|
|
6206
6179
|
{
|
|
6207
6180
|
"kind": "js",
|
|
6208
|
-
"name": "
|
|
6181
|
+
"name": "toolNameOf",
|
|
6209
6182
|
"declaration": {
|
|
6210
|
-
"name": "
|
|
6211
|
-
"module": "src/
|
|
6183
|
+
"name": "toolNameOf",
|
|
6184
|
+
"module": "src/genesis/config.ts"
|
|
6185
|
+
}
|
|
6186
|
+
},
|
|
6187
|
+
{
|
|
6188
|
+
"kind": "js",
|
|
6189
|
+
"name": "rowActionProblem",
|
|
6190
|
+
"declaration": {
|
|
6191
|
+
"name": "rowActionProblem",
|
|
6192
|
+
"module": "src/genesis/config.ts"
|
|
6193
|
+
}
|
|
6194
|
+
},
|
|
6195
|
+
{
|
|
6196
|
+
"kind": "js",
|
|
6197
|
+
"name": "validateGenesisAiConfig",
|
|
6198
|
+
"declaration": {
|
|
6199
|
+
"name": "validateGenesisAiConfig",
|
|
6200
|
+
"module": "src/genesis/config.ts"
|
|
6201
|
+
}
|
|
6202
|
+
},
|
|
6203
|
+
{
|
|
6204
|
+
"kind": "js",
|
|
6205
|
+
"name": "customCodeOf",
|
|
6206
|
+
"declaration": {
|
|
6207
|
+
"name": "customCodeOf",
|
|
6208
|
+
"module": "src/genesis/config.ts"
|
|
6212
6209
|
}
|
|
6213
6210
|
}
|
|
6214
6211
|
]
|
|
6215
6212
|
},
|
|
6216
6213
|
{
|
|
6217
6214
|
"kind": "javascript-module",
|
|
6218
|
-
"path": "src/
|
|
6215
|
+
"path": "src/genesis/consumes.ts",
|
|
6219
6216
|
"declarations": [
|
|
6220
6217
|
{
|
|
6221
|
-
"kind": "
|
|
6222
|
-
"name": "
|
|
6223
|
-
"
|
|
6224
|
-
"
|
|
6225
|
-
"text": "HeadlessPersistence"
|
|
6226
|
-
}
|
|
6218
|
+
"kind": "variable",
|
|
6219
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6220
|
+
"type": {
|
|
6221
|
+
"text": "GenesisAiConsumes"
|
|
6227
6222
|
},
|
|
6228
|
-
"
|
|
6229
|
-
{
|
|
6230
|
-
"name": "options",
|
|
6231
|
-
"type": {
|
|
6232
|
-
"text": "HeadlessPersistenceOptions"
|
|
6233
|
-
}
|
|
6234
|
-
}
|
|
6235
|
-
],
|
|
6236
|
-
"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)`."
|
|
6223
|
+
"description": "What this version of the assistant reads from a generated AI config: the resource kinds it\naccepts, the resource fields its validator or a tool reads, the `vendor` and `tier` values it\naccepts, and the row-action shapes it runs."
|
|
6237
6224
|
}
|
|
6238
6225
|
],
|
|
6239
6226
|
"exports": [
|
|
6240
6227
|
{
|
|
6241
6228
|
"kind": "js",
|
|
6242
|
-
"name": "
|
|
6229
|
+
"name": "GenesisAiConsumes",
|
|
6243
6230
|
"declaration": {
|
|
6244
|
-
"name": "
|
|
6245
|
-
"module": "
|
|
6231
|
+
"name": "GenesisAiConsumes",
|
|
6232
|
+
"module": "./types"
|
|
6233
|
+
}
|
|
6234
|
+
},
|
|
6235
|
+
{
|
|
6236
|
+
"kind": "js",
|
|
6237
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6238
|
+
"declaration": {
|
|
6239
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6240
|
+
"module": "src/genesis/consumes.ts"
|
|
6246
6241
|
}
|
|
6247
6242
|
}
|
|
6248
6243
|
]
|
|
6249
6244
|
},
|
|
6250
6245
|
{
|
|
6251
6246
|
"kind": "javascript-module",
|
|
6252
|
-
"path": "src/
|
|
6247
|
+
"path": "src/genesis/criteria.ts",
|
|
6253
6248
|
"declarations": [
|
|
6254
6249
|
{
|
|
6255
|
-
"kind": "
|
|
6256
|
-
"
|
|
6257
|
-
"
|
|
6258
|
-
|
|
6250
|
+
"kind": "function",
|
|
6251
|
+
"name": "dateFragment",
|
|
6252
|
+
"return": {
|
|
6253
|
+
"type": {
|
|
6254
|
+
"text": "string | undefined"
|
|
6255
|
+
}
|
|
6256
|
+
},
|
|
6257
|
+
"parameters": [
|
|
6259
6258
|
{
|
|
6260
|
-
"
|
|
6261
|
-
"name": "sessionKey",
|
|
6259
|
+
"name": "field",
|
|
6262
6260
|
"type": {
|
|
6263
6261
|
"text": "string"
|
|
6264
|
-
}
|
|
6265
|
-
"privacy": "private",
|
|
6266
|
-
"readonly": true
|
|
6262
|
+
}
|
|
6267
6263
|
},
|
|
6268
6264
|
{
|
|
6269
|
-
"
|
|
6270
|
-
"name": "allowRaw",
|
|
6265
|
+
"name": "op",
|
|
6271
6266
|
"type": {
|
|
6272
|
-
"text": "
|
|
6273
|
-
}
|
|
6274
|
-
"privacy": "private",
|
|
6275
|
-
"readonly": true
|
|
6267
|
+
"text": "GenesisFilterOp"
|
|
6268
|
+
}
|
|
6276
6269
|
},
|
|
6277
6270
|
{
|
|
6278
|
-
"
|
|
6279
|
-
"name": "clock",
|
|
6271
|
+
"name": "date",
|
|
6280
6272
|
"type": {
|
|
6281
|
-
"text": "
|
|
6282
|
-
}
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
},
|
|
6296
|
-
{
|
|
6297
|
-
"kind": "field",
|
|
6298
|
-
"name": "events",
|
|
6299
|
-
"type": {
|
|
6300
|
-
"text": "HeadlessEvent[]"
|
|
6301
|
-
},
|
|
6302
|
-
"privacy": "private",
|
|
6303
|
-
"readonly": true,
|
|
6304
|
-
"default": "[]"
|
|
6305
|
-
},
|
|
6306
|
-
{
|
|
6307
|
-
"kind": "field",
|
|
6308
|
-
"name": "seq",
|
|
6309
|
-
"type": {
|
|
6310
|
-
"text": "number"
|
|
6311
|
-
},
|
|
6312
|
-
"privacy": "private",
|
|
6313
|
-
"default": "0"
|
|
6314
|
-
},
|
|
6315
|
-
{
|
|
6316
|
-
"kind": "field",
|
|
6317
|
-
"name": "tracked",
|
|
6318
|
-
"privacy": "private",
|
|
6319
|
-
"readonly": true,
|
|
6320
|
-
"default": "new Map<string, Tracked>()"
|
|
6321
|
-
},
|
|
6322
|
-
{
|
|
6323
|
-
"kind": "field",
|
|
6324
|
-
"name": "origin",
|
|
6325
|
-
"privacy": "private",
|
|
6326
|
-
"readonly": true,
|
|
6327
|
-
"default": "new Map<string, { auto?: boolean; raw?: boolean }>()",
|
|
6328
|
-
"description": "What the session did to an interaction itself, for `settled` to say when the driver reports it."
|
|
6329
|
-
},
|
|
6330
|
-
{
|
|
6331
|
-
"kind": "field",
|
|
6332
|
-
"name": "waiters",
|
|
6333
|
-
"privacy": "private",
|
|
6334
|
-
"readonly": true,
|
|
6335
|
-
"default": "new Set<Waiter>()"
|
|
6336
|
-
},
|
|
6337
|
-
{
|
|
6338
|
-
"kind": "field",
|
|
6339
|
-
"name": "teardown",
|
|
6340
|
-
"type": {
|
|
6341
|
-
"text": "Array<() => void>"
|
|
6342
|
-
},
|
|
6343
|
-
"privacy": "private",
|
|
6344
|
-
"readonly": true,
|
|
6345
|
-
"default": "[]"
|
|
6346
|
-
},
|
|
6347
|
-
{
|
|
6348
|
-
"kind": "field",
|
|
6349
|
-
"name": "seen",
|
|
6350
|
-
"type": {
|
|
6351
|
-
"text": "number"
|
|
6352
|
-
},
|
|
6353
|
-
"privacy": "private",
|
|
6354
|
-
"description": "How much of the driver's history has been reported as messages."
|
|
6355
|
-
},
|
|
6356
|
-
{
|
|
6357
|
-
"kind": "field",
|
|
6358
|
-
"name": "turn",
|
|
6359
|
-
"type": {
|
|
6360
|
-
"text": "Promise<unknown> | undefined"
|
|
6361
|
-
},
|
|
6362
|
-
"privacy": "private",
|
|
6363
|
-
"description": "The `send` in flight, if any."
|
|
6364
|
-
},
|
|
6365
|
-
{
|
|
6366
|
-
"kind": "field",
|
|
6367
|
-
"name": "open",
|
|
6368
|
-
"type": {
|
|
6369
|
-
"text": "{ start: number; reason?: string; failureReason?: string } | undefined"
|
|
6370
|
-
},
|
|
6371
|
-
"privacy": "private",
|
|
6372
|
-
"description": "The turn that is running, whoever started it, until the driver has been idle for a beat:\n`start` is where its messages begin in the history. Its `reason` and `failureReason` are what\nended it, when something said."
|
|
6373
|
-
},
|
|
6374
|
-
{
|
|
6375
|
-
"kind": "field",
|
|
6376
|
-
"name": "base",
|
|
6377
|
-
"type": {
|
|
6378
|
-
"text": "number"
|
|
6379
|
-
},
|
|
6380
|
-
"privacy": "private",
|
|
6381
|
-
"description": "History length when the last turn closed: where a turn the session did not start begins."
|
|
6382
|
-
},
|
|
6383
|
-
{
|
|
6384
|
-
"kind": "field",
|
|
6385
|
-
"name": "quiesceTimer",
|
|
6386
|
-
"type": {
|
|
6387
|
-
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
6388
|
-
},
|
|
6389
|
-
"privacy": "private"
|
|
6390
|
-
},
|
|
6391
|
-
{
|
|
6392
|
-
"kind": "field",
|
|
6393
|
-
"name": "poller",
|
|
6394
|
-
"type": {
|
|
6395
|
-
"text": "ReturnType<typeof setInterval> | undefined"
|
|
6396
|
-
},
|
|
6397
|
-
"privacy": "private"
|
|
6398
|
-
},
|
|
6399
|
-
{
|
|
6400
|
-
"kind": "field",
|
|
6401
|
-
"name": "persistence",
|
|
6402
|
-
"type": {
|
|
6403
|
-
"text": "HeadlessPersistenceBinding | undefined"
|
|
6404
|
-
},
|
|
6405
|
-
"privacy": "private",
|
|
6406
|
-
"readonly": true
|
|
6407
|
-
},
|
|
6408
|
-
{
|
|
6409
|
-
"kind": "field",
|
|
6410
|
-
"name": "lastProbe",
|
|
6411
|
-
"type": {
|
|
6412
|
-
"text": "Record<string, unknown>"
|
|
6413
|
-
},
|
|
6414
|
-
"privacy": "private",
|
|
6415
|
-
"default": "{}"
|
|
6416
|
-
},
|
|
6273
|
+
"text": "string"
|
|
6274
|
+
}
|
|
6275
|
+
}
|
|
6276
|
+
]
|
|
6277
|
+
},
|
|
6278
|
+
{
|
|
6279
|
+
"kind": "function",
|
|
6280
|
+
"name": "dateTimeFragment",
|
|
6281
|
+
"return": {
|
|
6282
|
+
"type": {
|
|
6283
|
+
"text": "string | undefined"
|
|
6284
|
+
}
|
|
6285
|
+
},
|
|
6286
|
+
"parameters": [
|
|
6417
6287
|
{
|
|
6418
|
-
"
|
|
6419
|
-
"name": "lastAutopilot",
|
|
6288
|
+
"name": "field",
|
|
6420
6289
|
"type": {
|
|
6421
6290
|
"text": "string"
|
|
6422
|
-
}
|
|
6423
|
-
"privacy": "private",
|
|
6424
|
-
"default": "''"
|
|
6291
|
+
}
|
|
6425
6292
|
},
|
|
6426
6293
|
{
|
|
6427
|
-
"
|
|
6428
|
-
"name": "disposed",
|
|
6294
|
+
"name": "op",
|
|
6429
6295
|
"type": {
|
|
6430
|
-
"text": "
|
|
6431
|
-
}
|
|
6432
|
-
"privacy": "private",
|
|
6433
|
-
"default": "false"
|
|
6296
|
+
"text": "GenesisFilterOp"
|
|
6297
|
+
}
|
|
6434
6298
|
},
|
|
6435
6299
|
{
|
|
6436
|
-
"
|
|
6437
|
-
"name": "restoring",
|
|
6300
|
+
"name": "bound",
|
|
6438
6301
|
"type": {
|
|
6439
|
-
"text": "
|
|
6440
|
-
},
|
|
6441
|
-
"privacy": "private",
|
|
6442
|
-
"default": "false",
|
|
6443
|
-
"description": "While a restore loads the history, which is not new activity."
|
|
6444
|
-
},
|
|
6445
|
-
{
|
|
6446
|
-
"kind": "method",
|
|
6447
|
-
"name": "send",
|
|
6448
|
-
"return": {
|
|
6449
|
-
"type": {
|
|
6450
|
-
"text": "HeadlessResult"
|
|
6451
|
-
}
|
|
6452
|
-
},
|
|
6453
|
-
"parameters": [
|
|
6454
|
-
{
|
|
6455
|
-
"name": "text",
|
|
6456
|
-
"type": {
|
|
6457
|
-
"text": "string"
|
|
6458
|
-
}
|
|
6459
|
-
},
|
|
6460
|
-
{
|
|
6461
|
-
"name": "options",
|
|
6462
|
-
"default": "{}",
|
|
6463
|
-
"type": {
|
|
6464
|
-
"text": "HeadlessSendOptions"
|
|
6465
|
-
}
|
|
6466
|
-
}
|
|
6467
|
-
],
|
|
6468
|
-
"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."
|
|
6469
|
-
},
|
|
6470
|
-
{
|
|
6471
|
-
"kind": "method",
|
|
6472
|
-
"name": "act",
|
|
6473
|
-
"return": {
|
|
6474
|
-
"type": {
|
|
6475
|
-
"text": "Promise<HeadlessActResult>"
|
|
6476
|
-
}
|
|
6477
|
-
},
|
|
6478
|
-
"parameters": [
|
|
6479
|
-
{
|
|
6480
|
-
"name": "interactionId",
|
|
6481
|
-
"type": {
|
|
6482
|
-
"text": "string"
|
|
6483
|
-
}
|
|
6484
|
-
},
|
|
6485
|
-
{
|
|
6486
|
-
"name": "action",
|
|
6487
|
-
"type": {
|
|
6488
|
-
"text": "string | number"
|
|
6489
|
-
}
|
|
6490
|
-
},
|
|
6491
|
-
{
|
|
6492
|
-
"name": "args",
|
|
6493
|
-
"default": "{}",
|
|
6494
|
-
"type": {
|
|
6495
|
-
"text": "HeadlessActArgs"
|
|
6496
|
-
}
|
|
6497
|
-
}
|
|
6498
|
-
],
|
|
6499
|
-
"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."
|
|
6500
|
-
},
|
|
6501
|
-
{
|
|
6502
|
-
"kind": "method",
|
|
6503
|
-
"name": "resolve",
|
|
6504
|
-
"return": {
|
|
6505
|
-
"type": {
|
|
6506
|
-
"text": "HeadlessResult"
|
|
6507
|
-
}
|
|
6508
|
-
},
|
|
6509
|
-
"parameters": [
|
|
6510
|
-
{
|
|
6511
|
-
"name": "interactionId",
|
|
6512
|
-
"type": {
|
|
6513
|
-
"text": "string"
|
|
6514
|
-
}
|
|
6515
|
-
},
|
|
6516
|
-
{
|
|
6517
|
-
"name": "result",
|
|
6518
|
-
"type": {
|
|
6519
|
-
"text": "unknown"
|
|
6520
|
-
}
|
|
6521
|
-
}
|
|
6522
|
-
],
|
|
6523
|
-
"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."
|
|
6524
|
-
},
|
|
6525
|
-
{
|
|
6526
|
-
"kind": "method",
|
|
6527
|
-
"name": "read",
|
|
6528
|
-
"return": {
|
|
6529
|
-
"type": {
|
|
6530
|
-
"text": "Promise<HeadlessReadResult>"
|
|
6531
|
-
}
|
|
6532
|
-
},
|
|
6533
|
-
"parameters": [
|
|
6534
|
-
{
|
|
6535
|
-
"name": "interactionId",
|
|
6536
|
-
"type": {
|
|
6537
|
-
"text": "string"
|
|
6538
|
-
}
|
|
6539
|
-
},
|
|
6540
|
-
{
|
|
6541
|
-
"name": "request",
|
|
6542
|
-
"default": "{}",
|
|
6543
|
-
"type": {
|
|
6544
|
-
"text": "HeadlessReadRequest"
|
|
6545
|
-
}
|
|
6546
|
-
}
|
|
6547
|
-
],
|
|
6548
|
-
"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."
|
|
6549
|
-
},
|
|
6550
|
-
{
|
|
6551
|
-
"kind": "method",
|
|
6552
|
-
"name": "wait",
|
|
6553
|
-
"return": {
|
|
6554
|
-
"type": {
|
|
6555
|
-
"text": "Promise<HeadlessWaitResult>"
|
|
6556
|
-
}
|
|
6557
|
-
},
|
|
6558
|
-
"parameters": [
|
|
6559
|
-
{
|
|
6560
|
-
"name": "request",
|
|
6561
|
-
"type": {
|
|
6562
|
-
"text": "HeadlessWaitRequest"
|
|
6563
|
-
}
|
|
6564
|
-
}
|
|
6565
|
-
],
|
|
6566
|
-
"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."
|
|
6567
|
-
},
|
|
6568
|
-
{
|
|
6569
|
-
"kind": "method",
|
|
6570
|
-
"name": "eventsSince",
|
|
6571
|
-
"return": {
|
|
6572
|
-
"type": {
|
|
6573
|
-
"text": "readonly HeadlessEvent[]"
|
|
6574
|
-
}
|
|
6575
|
-
},
|
|
6576
|
-
"parameters": [
|
|
6577
|
-
{
|
|
6578
|
-
"name": "since",
|
|
6579
|
-
"default": "0"
|
|
6580
|
-
}
|
|
6581
|
-
],
|
|
6582
|
-
"description": "Every event logged after `since` (default: all the log keeps), without waiting."
|
|
6583
|
-
},
|
|
6584
|
-
{
|
|
6585
|
-
"kind": "method",
|
|
6586
|
-
"name": "state",
|
|
6587
|
-
"return": {
|
|
6588
|
-
"type": {
|
|
6589
|
-
"text": "HeadlessState"
|
|
6590
|
-
}
|
|
6591
|
-
},
|
|
6592
|
-
"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."
|
|
6593
|
-
},
|
|
6594
|
-
{
|
|
6595
|
-
"kind": "method",
|
|
6596
|
-
"name": "restore",
|
|
6597
|
-
"return": {
|
|
6598
|
-
"type": {
|
|
6599
|
-
"text": "Promise<HeadlessRestoreOutcome | undefined>"
|
|
6600
|
-
}
|
|
6601
|
-
},
|
|
6602
|
-
"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`."
|
|
6603
|
-
},
|
|
6604
|
-
{
|
|
6605
|
-
"kind": "method",
|
|
6606
|
-
"name": "flush",
|
|
6607
|
-
"return": {
|
|
6608
|
-
"type": {
|
|
6609
|
-
"text": "Promise<void>"
|
|
6610
|
-
}
|
|
6611
|
-
},
|
|
6612
|
-
"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`."
|
|
6613
|
-
},
|
|
6614
|
-
{
|
|
6615
|
-
"kind": "method",
|
|
6616
|
-
"name": "debugLog",
|
|
6617
|
-
"return": {
|
|
6618
|
-
"type": {
|
|
6619
|
-
"text": "Promise<DebugLog>"
|
|
6620
|
-
}
|
|
6621
|
-
},
|
|
6622
|
-
"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."
|
|
6623
|
-
},
|
|
6624
|
-
{
|
|
6625
|
-
"kind": "method",
|
|
6626
|
-
"name": "stop",
|
|
6627
|
-
"return": {
|
|
6628
|
-
"type": {
|
|
6629
|
-
"text": "HeadlessResult"
|
|
6630
|
-
}
|
|
6631
|
-
},
|
|
6632
|
-
"description": "Stop the running turn, when the driver can."
|
|
6633
|
-
},
|
|
6634
|
-
{
|
|
6635
|
-
"kind": "method",
|
|
6636
|
-
"name": "autopilot",
|
|
6637
|
-
"return": {
|
|
6638
|
-
"type": {
|
|
6639
|
-
"text": "HeadlessResult"
|
|
6640
|
-
}
|
|
6641
|
-
},
|
|
6642
|
-
"parameters": [
|
|
6643
|
-
{
|
|
6644
|
-
"name": "mode",
|
|
6645
|
-
"type": {
|
|
6646
|
-
"text": "'pause' | 'resume' | 'stop' | 'keepPaused'"
|
|
6647
|
-
}
|
|
6648
|
-
},
|
|
6649
|
-
{
|
|
6650
|
-
"name": "interactionId",
|
|
6651
|
-
"optional": true,
|
|
6652
|
-
"type": {
|
|
6653
|
-
"text": "string"
|
|
6654
|
-
}
|
|
6655
|
-
}
|
|
6656
|
-
],
|
|
6657
|
-
"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."
|
|
6658
|
-
},
|
|
6659
|
-
{
|
|
6660
|
-
"kind": "method",
|
|
6661
|
-
"name": "keepPaused",
|
|
6662
|
-
"privacy": "private",
|
|
6663
|
-
"return": {
|
|
6664
|
-
"type": {
|
|
6665
|
-
"text": "HeadlessResult"
|
|
6666
|
-
}
|
|
6667
|
-
},
|
|
6668
|
-
"parameters": [
|
|
6669
|
-
{
|
|
6670
|
-
"name": "host",
|
|
6671
|
-
"type": {
|
|
6672
|
-
"text": "AutopilotLike"
|
|
6673
|
-
}
|
|
6674
|
-
},
|
|
6675
|
-
{
|
|
6676
|
-
"name": "interactionId",
|
|
6677
|
-
"type": {
|
|
6678
|
-
"text": "string | undefined"
|
|
6679
|
-
}
|
|
6680
|
-
}
|
|
6681
|
-
]
|
|
6682
|
-
},
|
|
6683
|
-
{
|
|
6684
|
-
"kind": "method",
|
|
6685
|
-
"name": "dispose",
|
|
6686
|
-
"return": {
|
|
6687
|
-
"type": {
|
|
6688
|
-
"text": "void"
|
|
6689
|
-
}
|
|
6690
|
-
},
|
|
6691
|
-
"description": "Detach: remove the interceptor and every subscription, and release anyone waiting."
|
|
6692
|
-
},
|
|
6693
|
-
{
|
|
6694
|
-
"kind": "method",
|
|
6695
|
-
"name": "listen",
|
|
6696
|
-
"privacy": "private",
|
|
6697
|
-
"return": {
|
|
6698
|
-
"type": {
|
|
6699
|
-
"text": "void"
|
|
6700
|
-
}
|
|
6701
|
-
},
|
|
6702
|
-
"parameters": [
|
|
6703
|
-
{
|
|
6704
|
-
"name": "type",
|
|
6705
|
-
"type": {
|
|
6706
|
-
"text": "string"
|
|
6707
|
-
}
|
|
6708
|
-
},
|
|
6709
|
-
{
|
|
6710
|
-
"name": "handler",
|
|
6711
|
-
"type": {
|
|
6712
|
-
"text": "(e: Event) => void"
|
|
6713
|
-
}
|
|
6714
|
-
}
|
|
6715
|
-
]
|
|
6716
|
-
},
|
|
6717
|
-
{
|
|
6718
|
-
"kind": "method",
|
|
6719
|
-
"name": "history",
|
|
6720
|
-
"privacy": "private",
|
|
6721
|
-
"return": {
|
|
6722
|
-
"type": {
|
|
6723
|
-
"text": "readonly ChatMessage[]"
|
|
6724
|
-
}
|
|
6302
|
+
"text": "string"
|
|
6725
6303
|
}
|
|
6726
|
-
},
|
|
6727
|
-
{
|
|
6728
|
-
"kind": "method",
|
|
6729
|
-
"name": "onOpened",
|
|
6730
|
-
"privacy": "private",
|
|
6731
|
-
"return": {
|
|
6732
|
-
"type": {
|
|
6733
|
-
"text": "void"
|
|
6734
|
-
}
|
|
6735
|
-
},
|
|
6736
|
-
"parameters": [
|
|
6737
|
-
{
|
|
6738
|
-
"name": "opened",
|
|
6739
|
-
"type": {
|
|
6740
|
-
"text": "InteractionOpened"
|
|
6741
|
-
}
|
|
6742
|
-
}
|
|
6743
|
-
],
|
|
6744
|
-
"description": "An interaction opened: watch it. Who holds it is not decided yet, so it is reported later."
|
|
6745
|
-
},
|
|
6746
|
-
{
|
|
6747
|
-
"kind": "method",
|
|
6748
|
-
"name": "onSettled",
|
|
6749
|
-
"privacy": "private",
|
|
6750
|
-
"return": {
|
|
6751
|
-
"type": {
|
|
6752
|
-
"text": "void"
|
|
6753
|
-
}
|
|
6754
|
-
},
|
|
6755
|
-
"parameters": [
|
|
6756
|
-
{
|
|
6757
|
-
"name": "detail",
|
|
6758
|
-
"type": {
|
|
6759
|
-
"text": "{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }"
|
|
6760
|
-
}
|
|
6761
|
-
}
|
|
6762
|
-
],
|
|
6763
|
-
"description": "The driver says an interaction settled, by whatever route."
|
|
6764
|
-
},
|
|
6765
|
-
{
|
|
6766
|
-
"kind": "method",
|
|
6767
|
-
"name": "onEnded",
|
|
6768
|
-
"privacy": "private",
|
|
6769
|
-
"return": {
|
|
6770
|
-
"type": {
|
|
6771
|
-
"text": "void"
|
|
6772
|
-
}
|
|
6773
|
-
},
|
|
6774
|
-
"parameters": [
|
|
6775
|
-
{
|
|
6776
|
-
"name": "t",
|
|
6777
|
-
"type": {
|
|
6778
|
-
"text": "Tracked"
|
|
6779
|
-
}
|
|
6780
|
-
}
|
|
6781
|
-
],
|
|
6782
|
-
"description": "The interaction's context was disposed: if nothing said it settled, say it did."
|
|
6783
|
-
},
|
|
6784
|
-
{
|
|
6785
|
-
"kind": "method",
|
|
6786
|
-
"name": "settle",
|
|
6787
|
-
"privacy": "private",
|
|
6788
|
-
"return": {
|
|
6789
|
-
"type": {
|
|
6790
|
-
"text": "void"
|
|
6791
|
-
}
|
|
6792
|
-
},
|
|
6793
|
-
"parameters": [
|
|
6794
|
-
{
|
|
6795
|
-
"name": "t",
|
|
6796
|
-
"type": {
|
|
6797
|
-
"text": "Tracked"
|
|
6798
|
-
}
|
|
6799
|
-
},
|
|
6800
|
-
{
|
|
6801
|
-
"name": "how",
|
|
6802
|
-
"type": {
|
|
6803
|
-
"text": "{ answeredBy?: string; resolvedItself?: boolean; auto?: boolean; raw?: boolean }"
|
|
6804
|
-
}
|
|
6805
|
-
}
|
|
6806
|
-
]
|
|
6807
|
-
},
|
|
6808
|
-
{
|
|
6809
|
-
"kind": "method",
|
|
6810
|
-
"name": "release",
|
|
6811
|
-
"privacy": "private",
|
|
6812
|
-
"return": {
|
|
6813
|
-
"type": {
|
|
6814
|
-
"text": "void"
|
|
6815
|
-
}
|
|
6816
|
-
},
|
|
6817
|
-
"parameters": [
|
|
6818
|
-
{
|
|
6819
|
-
"name": "t",
|
|
6820
|
-
"type": {
|
|
6821
|
-
"text": "Tracked"
|
|
6822
|
-
}
|
|
6823
|
-
}
|
|
6824
|
-
]
|
|
6825
|
-
},
|
|
6826
|
-
{
|
|
6827
|
-
"kind": "method",
|
|
6828
|
-
"name": "onHistory",
|
|
6829
|
-
"privacy": "private",
|
|
6830
|
-
"return": {
|
|
6831
|
-
"type": {
|
|
6832
|
-
"text": "void"
|
|
6833
|
-
}
|
|
6834
|
-
},
|
|
6835
|
-
"description": "New messages in the driver's history: report what the person would see of them."
|
|
6836
|
-
},
|
|
6837
|
-
{
|
|
6838
|
-
"kind": "method",
|
|
6839
|
-
"name": "reportMessages",
|
|
6840
|
-
"privacy": "private",
|
|
6841
|
-
"return": {
|
|
6842
|
-
"type": {
|
|
6843
|
-
"text": "void"
|
|
6844
|
-
}
|
|
6845
|
-
}
|
|
6846
|
-
},
|
|
6847
|
-
{
|
|
6848
|
-
"kind": "method",
|
|
6849
|
-
"name": "onAutopilot",
|
|
6850
|
-
"privacy": "private",
|
|
6851
|
-
"return": {
|
|
6852
|
-
"type": {
|
|
6853
|
-
"text": "void"
|
|
6854
|
-
}
|
|
6855
|
-
}
|
|
6856
|
-
},
|
|
6857
|
-
{
|
|
6858
|
-
"kind": "method",
|
|
6859
|
-
"name": "autopilotSignature",
|
|
6860
|
-
"privacy": "private",
|
|
6861
|
-
"return": {
|
|
6862
|
-
"type": {
|
|
6863
|
-
"text": "string"
|
|
6864
|
-
}
|
|
6865
|
-
}
|
|
6866
|
-
},
|
|
6867
|
-
{
|
|
6868
|
-
"kind": "method",
|
|
6869
|
-
"name": "describe",
|
|
6870
|
-
"privacy": "private",
|
|
6871
|
-
"return": {
|
|
6872
|
-
"type": {
|
|
6873
|
-
"text": "InteractionDescription"
|
|
6874
|
-
}
|
|
6875
|
-
},
|
|
6876
|
-
"parameters": [
|
|
6877
|
-
{
|
|
6878
|
-
"name": "t",
|
|
6879
|
-
"type": {
|
|
6880
|
-
"text": "Tracked"
|
|
6881
|
-
}
|
|
6882
|
-
}
|
|
6883
|
-
]
|
|
6884
|
-
},
|
|
6885
|
-
{
|
|
6886
|
-
"kind": "method",
|
|
6887
|
-
"name": "evaluate",
|
|
6888
|
-
"privacy": "private",
|
|
6889
|
-
"return": {
|
|
6890
|
-
"type": {
|
|
6891
|
-
"text": "void"
|
|
6892
|
-
}
|
|
6893
|
-
},
|
|
6894
|
-
"parameters": [
|
|
6895
|
-
{
|
|
6896
|
-
"name": "t",
|
|
6897
|
-
"type": {
|
|
6898
|
-
"text": "Tracked"
|
|
6899
|
-
}
|
|
6900
|
-
}
|
|
6901
|
-
],
|
|
6902
|
-
"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."
|
|
6903
|
-
},
|
|
6904
|
-
{
|
|
6905
|
-
"kind": "method",
|
|
6906
|
-
"name": "autoSettle",
|
|
6907
|
-
"privacy": "private",
|
|
6908
|
-
"return": {
|
|
6909
|
-
"type": {
|
|
6910
|
-
"text": "boolean"
|
|
6911
|
-
}
|
|
6912
|
-
},
|
|
6913
|
-
"parameters": [
|
|
6914
|
-
{
|
|
6915
|
-
"name": "t",
|
|
6916
|
-
"type": {
|
|
6917
|
-
"text": "Tracked"
|
|
6918
|
-
}
|
|
6919
|
-
}
|
|
6920
|
-
],
|
|
6921
|
-
"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."
|
|
6922
|
-
},
|
|
6923
|
-
{
|
|
6924
|
-
"kind": "method",
|
|
6925
|
-
"name": "readTool",
|
|
6926
|
-
"privacy": "private",
|
|
6927
|
-
"return": {
|
|
6928
|
-
"type": {
|
|
6929
|
-
"text": "Promise<HeadlessReadResult>"
|
|
6930
|
-
}
|
|
6931
|
-
},
|
|
6932
|
-
"parameters": [
|
|
6933
|
-
{
|
|
6934
|
-
"name": "t",
|
|
6935
|
-
"type": {
|
|
6936
|
-
"text": "Tracked"
|
|
6937
|
-
}
|
|
6938
|
-
},
|
|
6939
|
-
{
|
|
6940
|
-
"name": "name",
|
|
6941
|
-
"type": {
|
|
6942
|
-
"text": "string"
|
|
6943
|
-
}
|
|
6944
|
-
},
|
|
6945
|
-
{
|
|
6946
|
-
"name": "args",
|
|
6947
|
-
"type": {
|
|
6948
|
-
"text": "Record<string, unknown> | undefined"
|
|
6949
|
-
}
|
|
6950
|
-
}
|
|
6951
|
-
]
|
|
6952
|
-
},
|
|
6953
|
-
{
|
|
6954
|
-
"kind": "method",
|
|
6955
|
-
"name": "observe",
|
|
6956
|
-
"privacy": "private",
|
|
6957
|
-
"return": {
|
|
6958
|
-
"type": {
|
|
6959
|
-
"text": "void"
|
|
6960
|
-
}
|
|
6961
|
-
},
|
|
6962
|
-
"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."
|
|
6963
|
-
},
|
|
6964
|
-
{
|
|
6965
|
-
"kind": "method",
|
|
6966
|
-
"name": "closeTurn",
|
|
6967
|
-
"privacy": "private",
|
|
6968
|
-
"return": {
|
|
6969
|
-
"type": {
|
|
6970
|
-
"text": "void"
|
|
6971
|
-
}
|
|
6972
|
-
},
|
|
6973
|
-
"description": "Report the open turn as ended, unless the driver is busy again."
|
|
6974
|
-
},
|
|
6975
|
-
{
|
|
6976
|
-
"kind": "method",
|
|
6977
|
-
"name": "startPolling",
|
|
6978
|
-
"privacy": "private",
|
|
6979
|
-
"return": {
|
|
6980
|
-
"type": {
|
|
6981
|
-
"text": "void"
|
|
6982
|
-
}
|
|
6983
|
-
},
|
|
6984
|
-
"description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
|
|
6985
|
-
},
|
|
6986
|
-
{
|
|
6987
|
-
"kind": "method",
|
|
6988
|
-
"name": "stopPolling",
|
|
6989
|
-
"privacy": "private",
|
|
6990
|
-
"return": {
|
|
6991
|
-
"type": {
|
|
6992
|
-
"text": "void"
|
|
6993
|
-
}
|
|
6994
|
-
}
|
|
6995
|
-
},
|
|
6996
|
-
{
|
|
6997
|
-
"kind": "method",
|
|
6998
|
-
"name": "logTurn",
|
|
6999
|
-
"privacy": "private",
|
|
7000
|
-
"return": {
|
|
7001
|
-
"type": {
|
|
7002
|
-
"text": "void"
|
|
7003
|
-
}
|
|
7004
|
-
},
|
|
7005
|
-
"parameters": [
|
|
7006
|
-
{
|
|
7007
|
-
"name": "reason",
|
|
7008
|
-
"type": {
|
|
7009
|
-
"text": "string"
|
|
7010
|
-
}
|
|
7011
|
-
},
|
|
7012
|
-
{
|
|
7013
|
-
"name": "failureReason",
|
|
7014
|
-
"type": {
|
|
7015
|
-
"text": "string | undefined"
|
|
7016
|
-
}
|
|
7017
|
-
},
|
|
7018
|
-
{
|
|
7019
|
-
"name": "start",
|
|
7020
|
-
"type": {
|
|
7021
|
-
"text": "number"
|
|
7022
|
-
}
|
|
7023
|
-
}
|
|
7024
|
-
]
|
|
7025
|
-
},
|
|
7026
|
-
{
|
|
7027
|
-
"kind": "method",
|
|
7028
|
-
"name": "log",
|
|
7029
|
-
"privacy": "private",
|
|
7030
|
-
"return": {
|
|
7031
|
-
"type": {
|
|
7032
|
-
"text": "void"
|
|
7033
|
-
}
|
|
7034
|
-
},
|
|
7035
|
-
"parameters": [
|
|
7036
|
-
{
|
|
7037
|
-
"name": "event",
|
|
7038
|
-
"type": {
|
|
7039
|
-
"text": "NewEvent"
|
|
7040
|
-
}
|
|
7041
|
-
}
|
|
7042
|
-
]
|
|
7043
|
-
},
|
|
7044
|
-
{
|
|
7045
|
-
"kind": "method",
|
|
7046
|
-
"name": "append",
|
|
7047
|
-
"privacy": "private",
|
|
7048
|
-
"return": {
|
|
7049
|
-
"type": {
|
|
7050
|
-
"text": "void"
|
|
7051
|
-
}
|
|
7052
|
-
},
|
|
7053
|
-
"parameters": [
|
|
7054
|
-
{
|
|
7055
|
-
"name": "event",
|
|
7056
|
-
"type": {
|
|
7057
|
-
"text": "NewEvent"
|
|
7058
|
-
}
|
|
7059
|
-
}
|
|
7060
|
-
]
|
|
7061
|
-
},
|
|
7062
|
-
{
|
|
7063
|
-
"kind": "method",
|
|
7064
|
-
"name": "readProbe",
|
|
7065
|
-
"privacy": "private",
|
|
7066
|
-
"return": {
|
|
7067
|
-
"type": {
|
|
7068
|
-
"text": "Record<string, unknown>"
|
|
7069
|
-
}
|
|
7070
|
-
}
|
|
7071
|
-
},
|
|
7072
|
-
{
|
|
7073
|
-
"kind": "method",
|
|
7074
|
-
"name": "checkProbe",
|
|
7075
|
-
"privacy": "private",
|
|
7076
|
-
"return": {
|
|
7077
|
-
"type": {
|
|
7078
|
-
"text": "void"
|
|
7079
|
-
}
|
|
7080
|
-
},
|
|
7081
|
-
"description": "Read the probe again; a change in any top-level value is a `probe` event."
|
|
7082
|
-
},
|
|
7083
|
-
{
|
|
7084
|
-
"kind": "method",
|
|
7085
|
-
"name": "waited",
|
|
7086
|
-
"privacy": "private",
|
|
7087
|
-
"return": {
|
|
7088
|
-
"type": {
|
|
7089
|
-
"text": "HeadlessWaitResult"
|
|
7090
|
-
}
|
|
7091
|
-
},
|
|
7092
|
-
"parameters": [
|
|
7093
|
-
{
|
|
7094
|
-
"name": "since",
|
|
7095
|
-
"type": {
|
|
7096
|
-
"text": "number"
|
|
7097
|
-
}
|
|
7098
|
-
},
|
|
7099
|
-
{
|
|
7100
|
-
"name": "status",
|
|
7101
|
-
"type": {
|
|
7102
|
-
"text": "HeadlessWaitResult['status']"
|
|
7103
|
-
}
|
|
7104
|
-
}
|
|
7105
|
-
]
|
|
7106
6304
|
}
|
|
7107
|
-
]
|
|
6305
|
+
],
|
|
6306
|
+
"description": "Timestamp columns get the dateTime helpers, which take a `yyyyMMdd-HH:mm:ss` bound."
|
|
7108
6307
|
}
|
|
7109
6308
|
],
|
|
7110
6309
|
"exports": [
|
|
7111
6310
|
{
|
|
7112
6311
|
"kind": "js",
|
|
7113
|
-
"name": "
|
|
6312
|
+
"name": "dateFragment",
|
|
7114
6313
|
"declaration": {
|
|
7115
|
-
"name": "
|
|
7116
|
-
"module": "src/
|
|
6314
|
+
"name": "dateFragment",
|
|
6315
|
+
"module": "src/genesis/criteria.ts"
|
|
6316
|
+
}
|
|
6317
|
+
},
|
|
6318
|
+
{
|
|
6319
|
+
"kind": "js",
|
|
6320
|
+
"name": "dateTimeFragment",
|
|
6321
|
+
"declaration": {
|
|
6322
|
+
"name": "dateTimeFragment",
|
|
6323
|
+
"module": "src/genesis/criteria.ts"
|
|
7117
6324
|
}
|
|
7118
6325
|
}
|
|
7119
6326
|
]
|
|
7120
6327
|
},
|
|
7121
6328
|
{
|
|
7122
6329
|
"kind": "javascript-module",
|
|
7123
|
-
"path": "src/
|
|
6330
|
+
"path": "src/genesis/event-fields.ts",
|
|
7124
6331
|
"declarations": [],
|
|
7125
6332
|
"exports": []
|
|
7126
6333
|
},
|
|
7127
6334
|
{
|
|
7128
6335
|
"kind": "javascript-module",
|
|
7129
|
-
"path": "src/
|
|
6336
|
+
"path": "src/genesis/filter-fields.ts",
|
|
6337
|
+
"declarations": [],
|
|
6338
|
+
"exports": []
|
|
6339
|
+
},
|
|
6340
|
+
{
|
|
6341
|
+
"kind": "javascript-module",
|
|
6342
|
+
"path": "src/genesis/index.ts",
|
|
7130
6343
|
"declarations": [],
|
|
7131
6344
|
"exports": [
|
|
7132
6345
|
{
|
|
7133
6346
|
"kind": "js",
|
|
7134
|
-
"name": "
|
|
6347
|
+
"name": "GENESIS_AGENT_NAME",
|
|
7135
6348
|
"declaration": {
|
|
7136
|
-
"name": "
|
|
7137
|
-
"module": "./
|
|
6349
|
+
"name": "GENESIS_AGENT_NAME",
|
|
6350
|
+
"module": "./register-genesis-assistant"
|
|
7138
6351
|
}
|
|
7139
6352
|
},
|
|
7140
6353
|
{
|
|
7141
6354
|
"kind": "js",
|
|
7142
|
-
"name": "
|
|
6355
|
+
"name": "registerGenesisAssistant",
|
|
7143
6356
|
"declaration": {
|
|
7144
|
-
"name": "
|
|
7145
|
-
"module": "./
|
|
6357
|
+
"name": "registerGenesisAssistant",
|
|
6358
|
+
"module": "./register-genesis-assistant"
|
|
7146
6359
|
}
|
|
7147
6360
|
},
|
|
7148
6361
|
{
|
|
7149
6362
|
"kind": "js",
|
|
7150
|
-
"name": "
|
|
6363
|
+
"name": "customCodeOf",
|
|
7151
6364
|
"declaration": {
|
|
7152
|
-
"name": "
|
|
7153
|
-
"module": "./
|
|
6365
|
+
"name": "customCodeOf",
|
|
6366
|
+
"module": "./config"
|
|
7154
6367
|
}
|
|
7155
6368
|
},
|
|
7156
6369
|
{
|
|
7157
6370
|
"kind": "js",
|
|
7158
|
-
"name": "
|
|
6371
|
+
"name": "rowActionProblem",
|
|
7159
6372
|
"declaration": {
|
|
7160
|
-
"name": "
|
|
7161
|
-
"module": "./
|
|
6373
|
+
"name": "rowActionProblem",
|
|
6374
|
+
"module": "./config"
|
|
7162
6375
|
}
|
|
7163
6376
|
},
|
|
7164
6377
|
{
|
|
7165
6378
|
"kind": "js",
|
|
7166
|
-
"name": "
|
|
6379
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
7167
6380
|
"declaration": {
|
|
7168
|
-
"name": "
|
|
7169
|
-
"module": "./
|
|
6381
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6382
|
+
"module": "./consumes"
|
|
7170
6383
|
}
|
|
7171
6384
|
},
|
|
7172
6385
|
{
|
|
7173
6386
|
"kind": "js",
|
|
7174
|
-
"name": "
|
|
6387
|
+
"name": "validateGenesisAiConfig",
|
|
7175
6388
|
"declaration": {
|
|
7176
|
-
"name": "
|
|
7177
|
-
"module": "./
|
|
6389
|
+
"name": "validateGenesisAiConfig",
|
|
6390
|
+
"module": "./config"
|
|
7178
6391
|
}
|
|
7179
6392
|
},
|
|
7180
6393
|
{
|
|
7181
6394
|
"kind": "js",
|
|
7182
|
-
"name": "
|
|
6395
|
+
"name": "DroppedResource",
|
|
7183
6396
|
"declaration": {
|
|
7184
|
-
"name": "
|
|
7185
|
-
"module": "./
|
|
6397
|
+
"name": "DroppedResource",
|
|
6398
|
+
"module": "./config"
|
|
7186
6399
|
}
|
|
7187
6400
|
},
|
|
7188
6401
|
{
|
|
7189
6402
|
"kind": "js",
|
|
7190
|
-
"name": "
|
|
6403
|
+
"name": "GenesisAiConfigCheck",
|
|
7191
6404
|
"declaration": {
|
|
7192
|
-
"name": "
|
|
7193
|
-
"module": "./
|
|
6405
|
+
"name": "GenesisAiConfigCheck",
|
|
6406
|
+
"module": "./config"
|
|
7194
6407
|
}
|
|
7195
6408
|
},
|
|
7196
6409
|
{
|
|
7197
6410
|
"kind": "js",
|
|
7198
|
-
"name": "
|
|
6411
|
+
"name": "GenesisFilter",
|
|
7199
6412
|
"declaration": {
|
|
7200
|
-
"name": "
|
|
7201
|
-
"module": "./
|
|
6413
|
+
"name": "GenesisFilter",
|
|
6414
|
+
"module": "./criteria"
|
|
7202
6415
|
}
|
|
7203
6416
|
},
|
|
7204
6417
|
{
|
|
7205
6418
|
"kind": "js",
|
|
7206
|
-
"name": "
|
|
6419
|
+
"name": "GenesisFilterField",
|
|
7207
6420
|
"declaration": {
|
|
7208
|
-
"name": "
|
|
7209
|
-
"module": "./
|
|
6421
|
+
"name": "GenesisFilterField",
|
|
6422
|
+
"module": "./criteria"
|
|
6423
|
+
}
|
|
6424
|
+
},
|
|
6425
|
+
{
|
|
6426
|
+
"kind": "js",
|
|
6427
|
+
"name": "GenesisFilterOp",
|
|
6428
|
+
"declaration": {
|
|
6429
|
+
"name": "GenesisFilterOp",
|
|
6430
|
+
"module": "./criteria"
|
|
6431
|
+
}
|
|
6432
|
+
},
|
|
6433
|
+
{
|
|
6434
|
+
"kind": "js",
|
|
6435
|
+
"name": "createGenesisResourceTools",
|
|
6436
|
+
"declaration": {
|
|
6437
|
+
"name": "createGenesisResourceTools",
|
|
6438
|
+
"module": "./resource-tools"
|
|
6439
|
+
}
|
|
6440
|
+
},
|
|
6441
|
+
{
|
|
6442
|
+
"kind": "js",
|
|
6443
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6444
|
+
"declaration": {
|
|
6445
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6446
|
+
"module": "./resource-tools"
|
|
6447
|
+
}
|
|
6448
|
+
},
|
|
6449
|
+
{
|
|
6450
|
+
"kind": "js",
|
|
6451
|
+
"name": "createGenesisWriteTools",
|
|
6452
|
+
"declaration": {
|
|
6453
|
+
"name": "createGenesisWriteTools",
|
|
6454
|
+
"module": "./write-tools"
|
|
6455
|
+
}
|
|
6456
|
+
},
|
|
6457
|
+
{
|
|
6458
|
+
"kind": "js",
|
|
6459
|
+
"name": "GenesisWriteDecision",
|
|
6460
|
+
"declaration": {
|
|
6461
|
+
"name": "GenesisWriteDecision",
|
|
6462
|
+
"module": "./write-tools"
|
|
7210
6463
|
}
|
|
7211
6464
|
},
|
|
7212
6465
|
{
|
|
7213
6466
|
"kind": "js",
|
|
7214
|
-
"name": "
|
|
6467
|
+
"name": "GenesisWriteResult",
|
|
7215
6468
|
"declaration": {
|
|
7216
|
-
"name": "
|
|
7217
|
-
"module": "./
|
|
6469
|
+
"name": "GenesisWriteResult",
|
|
6470
|
+
"module": "./write-tools"
|
|
7218
6471
|
}
|
|
7219
6472
|
},
|
|
7220
6473
|
{
|
|
7221
6474
|
"kind": "js",
|
|
7222
|
-
"name": "
|
|
6475
|
+
"name": "GenesisWriteRowStatus",
|
|
7223
6476
|
"declaration": {
|
|
7224
|
-
"name": "
|
|
7225
|
-
"module": "./
|
|
6477
|
+
"name": "GenesisWriteRowStatus",
|
|
6478
|
+
"module": "./write-tools"
|
|
7226
6479
|
}
|
|
7227
6480
|
},
|
|
7228
6481
|
{
|
|
7229
6482
|
"kind": "js",
|
|
7230
|
-
"name": "
|
|
6483
|
+
"name": "GenesisWriteToolsOptions",
|
|
7231
6484
|
"declaration": {
|
|
7232
|
-
"name": "
|
|
7233
|
-
"module": "./
|
|
6485
|
+
"name": "GenesisWriteToolsOptions",
|
|
6486
|
+
"module": "./write-tools"
|
|
7234
6487
|
}
|
|
7235
6488
|
},
|
|
7236
6489
|
{
|
|
7237
6490
|
"kind": "js",
|
|
7238
|
-
"name": "
|
|
6491
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
7239
6492
|
"declaration": {
|
|
7240
|
-
"name": "
|
|
7241
|
-
"module": "./
|
|
6493
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
6494
|
+
"module": "./write-review/write-review"
|
|
7242
6495
|
}
|
|
7243
6496
|
},
|
|
7244
6497
|
{
|
|
7245
6498
|
"kind": "js",
|
|
7246
|
-
"name": "
|
|
6499
|
+
"name": "GenesisWriteReview",
|
|
7247
6500
|
"declaration": {
|
|
7248
|
-
"name": "
|
|
7249
|
-
"module": "./
|
|
6501
|
+
"name": "GenesisWriteReview",
|
|
6502
|
+
"module": "./write-review/write-review"
|
|
7250
6503
|
}
|
|
7251
6504
|
},
|
|
7252
6505
|
{
|
|
7253
6506
|
"kind": "js",
|
|
7254
|
-
"name": "
|
|
6507
|
+
"name": "GenesisChangeRequest",
|
|
7255
6508
|
"declaration": {
|
|
7256
|
-
"name": "
|
|
7257
|
-
"module": "./
|
|
6509
|
+
"name": "GenesisChangeRequest",
|
|
6510
|
+
"module": "./review-payload"
|
|
7258
6511
|
}
|
|
7259
6512
|
},
|
|
7260
6513
|
{
|
|
7261
6514
|
"kind": "js",
|
|
7262
|
-
"name": "
|
|
6515
|
+
"name": "GenesisReviewPayload",
|
|
7263
6516
|
"declaration": {
|
|
7264
|
-
"name": "
|
|
7265
|
-
"module": "./
|
|
6517
|
+
"name": "GenesisReviewPayload",
|
|
6518
|
+
"module": "./review-payload"
|
|
7266
6519
|
}
|
|
7267
6520
|
},
|
|
7268
6521
|
{
|
|
7269
6522
|
"kind": "js",
|
|
7270
|
-
"name": "
|
|
6523
|
+
"name": "GenesisWriteReviewCompletedEventDetail",
|
|
7271
6524
|
"declaration": {
|
|
7272
|
-
"name": "
|
|
7273
|
-
"module": "./
|
|
6525
|
+
"name": "GenesisWriteReviewCompletedEventDetail",
|
|
6526
|
+
"module": "./review-payload"
|
|
7274
6527
|
}
|
|
7275
6528
|
},
|
|
7276
6529
|
{
|
|
7277
6530
|
"kind": "js",
|
|
7278
|
-
"name": "
|
|
6531
|
+
"name": "GenesisReadResult",
|
|
7279
6532
|
"declaration": {
|
|
7280
|
-
"name": "
|
|
7281
|
-
"module": "./
|
|
6533
|
+
"name": "GenesisReadResult",
|
|
6534
|
+
"module": "./resource-tools"
|
|
7282
6535
|
}
|
|
7283
6536
|
},
|
|
7284
6537
|
{
|
|
7285
6538
|
"kind": "js",
|
|
7286
|
-
"name": "
|
|
6539
|
+
"name": "GenesisResourceTools",
|
|
7287
6540
|
"declaration": {
|
|
7288
|
-
"name": "
|
|
7289
|
-
"module": "./
|
|
6541
|
+
"name": "GenesisResourceTools",
|
|
6542
|
+
"module": "./resource-tools"
|
|
7290
6543
|
}
|
|
7291
6544
|
},
|
|
7292
6545
|
{
|
|
7293
6546
|
"kind": "js",
|
|
7294
|
-
"name": "
|
|
6547
|
+
"name": "GenesisResourceToolsOptions",
|
|
7295
6548
|
"declaration": {
|
|
7296
|
-
"name": "
|
|
7297
|
-
"module": "./
|
|
6549
|
+
"name": "GenesisResourceToolsOptions",
|
|
6550
|
+
"module": "./resource-tools"
|
|
7298
6551
|
}
|
|
7299
6552
|
},
|
|
7300
6553
|
{
|
|
7301
6554
|
"kind": "js",
|
|
7302
|
-
"name": "
|
|
6555
|
+
"name": "GenesisToolError",
|
|
7303
6556
|
"declaration": {
|
|
7304
|
-
"name": "
|
|
7305
|
-
"module": "./
|
|
6557
|
+
"name": "GenesisToolError",
|
|
6558
|
+
"module": "./resource-tools"
|
|
7306
6559
|
}
|
|
7307
6560
|
},
|
|
7308
6561
|
{
|
|
7309
6562
|
"kind": "js",
|
|
7310
|
-
"name": "
|
|
6563
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7311
6564
|
"declaration": {
|
|
7312
|
-
"name": "
|
|
7313
|
-
"module": "./
|
|
6565
|
+
"name": "GENESIS_EVENT_OPS",
|
|
6566
|
+
"module": "./types"
|
|
7314
6567
|
}
|
|
7315
6568
|
},
|
|
7316
6569
|
{
|
|
7317
6570
|
"kind": "js",
|
|
7318
|
-
"name": "
|
|
6571
|
+
"name": "GenesisAiConfig",
|
|
7319
6572
|
"declaration": {
|
|
7320
|
-
"name": "
|
|
7321
|
-
"module": "./
|
|
6573
|
+
"name": "GenesisAiConfig",
|
|
6574
|
+
"module": "./types"
|
|
7322
6575
|
}
|
|
7323
6576
|
},
|
|
7324
6577
|
{
|
|
7325
6578
|
"kind": "js",
|
|
7326
|
-
"name": "
|
|
6579
|
+
"name": "GenesisAiConsumes",
|
|
7327
6580
|
"declaration": {
|
|
7328
|
-
"name": "
|
|
7329
|
-
"module": "./
|
|
6581
|
+
"name": "GenesisAiConsumes",
|
|
6582
|
+
"module": "./types"
|
|
7330
6583
|
}
|
|
7331
6584
|
},
|
|
7332
6585
|
{
|
|
7333
6586
|
"kind": "js",
|
|
7334
|
-
"name": "
|
|
6587
|
+
"name": "GenesisAiResource",
|
|
7335
6588
|
"declaration": {
|
|
7336
|
-
"name": "
|
|
7337
|
-
"module": "./
|
|
6589
|
+
"name": "GenesisAiResource",
|
|
6590
|
+
"module": "./types"
|
|
7338
6591
|
}
|
|
7339
6592
|
},
|
|
7340
6593
|
{
|
|
7341
6594
|
"kind": "js",
|
|
7342
|
-
"name": "
|
|
6595
|
+
"name": "GenesisAssistantExtensions",
|
|
7343
6596
|
"declaration": {
|
|
7344
|
-
"name": "
|
|
7345
|
-
"module": "./
|
|
6597
|
+
"name": "GenesisAssistantExtensions",
|
|
6598
|
+
"module": "./types"
|
|
7346
6599
|
}
|
|
7347
6600
|
},
|
|
7348
6601
|
{
|
|
7349
6602
|
"kind": "js",
|
|
7350
|
-
"name": "
|
|
6603
|
+
"name": "GenesisAssistantRegistration",
|
|
7351
6604
|
"declaration": {
|
|
7352
|
-
"name": "
|
|
7353
|
-
"module": "./
|
|
6605
|
+
"name": "GenesisAssistantRegistration",
|
|
6606
|
+
"module": "./types"
|
|
7354
6607
|
}
|
|
7355
|
-
}
|
|
7356
|
-
]
|
|
7357
|
-
},
|
|
7358
|
-
{
|
|
7359
|
-
"kind": "javascript-module",
|
|
7360
|
-
"path": "src/genesis/calendar.ts",
|
|
7361
|
-
"declarations": [],
|
|
7362
|
-
"exports": []
|
|
7363
|
-
},
|
|
7364
|
-
{
|
|
7365
|
-
"kind": "javascript-module",
|
|
7366
|
-
"path": "src/genesis/config.ts",
|
|
7367
|
-
"declarations": [
|
|
7368
|
-
{
|
|
7369
|
-
"kind": "variable",
|
|
7370
|
-
"name": "DEFAULT_MAX_ROWS",
|
|
7371
|
-
"type": {
|
|
7372
|
-
"text": "number"
|
|
7373
|
-
},
|
|
7374
|
-
"default": "50",
|
|
7375
|
-
"description": "The default read cap, and the ceiling the config may raise it to."
|
|
7376
|
-
},
|
|
7377
|
-
{
|
|
7378
|
-
"kind": "variable",
|
|
7379
|
-
"name": "MAX_ROWS_CEILING",
|
|
7380
|
-
"type": {
|
|
7381
|
-
"text": "number"
|
|
7382
|
-
},
|
|
7383
|
-
"default": "1000"
|
|
7384
|
-
},
|
|
7385
|
-
{
|
|
7386
|
-
"kind": "function",
|
|
7387
|
-
"name": "toolNameOf",
|
|
7388
|
-
"return": {
|
|
7389
|
-
"type": {
|
|
7390
|
-
"text": "string"
|
|
7391
|
-
}
|
|
7392
|
-
},
|
|
7393
|
-
"parameters": [
|
|
7394
|
-
{
|
|
7395
|
-
"name": "resourceName",
|
|
7396
|
-
"type": {
|
|
7397
|
-
"text": "string"
|
|
7398
|
-
}
|
|
7399
|
-
}
|
|
7400
|
-
],
|
|
7401
|
-
"description": "The model-facing tool name for a resource. Deterministic and collision-free (resource names\nare unique), and trivially mapped back to the resource in a debug log. What the tool is FOR\nreaches the model through its description, not its name."
|
|
7402
|
-
},
|
|
7403
|
-
{
|
|
7404
|
-
"kind": "function",
|
|
7405
|
-
"name": "rowActionProblem",
|
|
7406
|
-
"return": {
|
|
7407
|
-
"type": {
|
|
7408
|
-
"text": "string | undefined"
|
|
7409
|
-
}
|
|
7410
|
-
},
|
|
7411
|
-
"parameters": [
|
|
7412
|
-
{
|
|
7413
|
-
"name": "resource",
|
|
7414
|
-
"type": {
|
|
7415
|
-
"text": "Partial<GenesisAiResource> | null"
|
|
7416
|
-
}
|
|
7417
|
-
},
|
|
7418
|
-
{
|
|
7419
|
-
"name": "requestNames",
|
|
7420
|
-
"type": {
|
|
7421
|
-
"text": "ReadonlySet<string>"
|
|
7422
|
-
},
|
|
7423
|
-
"description": "The request resources whose rows can be read. A row action reads its rows\nthrough `REQ_<entity>`, and without one there is no row to review."
|
|
7424
|
-
},
|
|
7425
|
-
{
|
|
7426
|
-
"name": "whyNotReadable",
|
|
7427
|
-
"default": "notReadableReason({})",
|
|
7428
|
-
"type": {
|
|
7429
|
-
"text": "(name: string) => string"
|
|
7430
|
-
},
|
|
7431
|
-
"description": "Why a request is not among `requestNames`, when the caller knows: it was\nleft out, has no read tool, or is a query. Without it, the request is said to be missing."
|
|
7432
|
-
}
|
|
7433
|
-
],
|
|
7434
|
-
"description": "What is wrong with a resource's row-action fields (contracts C-18.7.2), if anything."
|
|
7435
|
-
},
|
|
7436
|
-
{
|
|
7437
|
-
"kind": "function",
|
|
7438
|
-
"name": "validateGenesisAiConfig",
|
|
7439
|
-
"return": {
|
|
7440
|
-
"type": {
|
|
7441
|
-
"text": "GenesisAiConfigCheck"
|
|
7442
|
-
}
|
|
7443
|
-
},
|
|
7444
|
-
"parameters": [
|
|
7445
|
-
{
|
|
7446
|
-
"name": "config",
|
|
7447
|
-
"type": {
|
|
7448
|
-
"text": "unknown"
|
|
7449
|
-
}
|
|
7450
|
-
}
|
|
7451
|
-
],
|
|
7452
|
-
"description": "Checks a generated AI config before anything is registered, and says what can be kept."
|
|
7453
6608
|
},
|
|
7454
|
-
{
|
|
7455
|
-
"kind": "function",
|
|
7456
|
-
"name": "customCodeOf",
|
|
7457
|
-
"return": {
|
|
7458
|
-
"type": {
|
|
7459
|
-
"text": "GenesisCustomCodeCheck"
|
|
7460
|
-
}
|
|
7461
|
-
},
|
|
7462
|
-
"parameters": [
|
|
7463
|
-
{
|
|
7464
|
-
"name": "resource",
|
|
7465
|
-
"type": {
|
|
7466
|
-
"text": "GenesisAiResource"
|
|
7467
|
-
}
|
|
7468
|
-
}
|
|
7469
|
-
],
|
|
7470
|
-
"description": "A resource's `customCode` as it is used: the one reader of the field."
|
|
7471
|
-
}
|
|
7472
|
-
],
|
|
7473
|
-
"exports": [
|
|
7474
6609
|
{
|
|
7475
6610
|
"kind": "js",
|
|
7476
|
-
"name": "
|
|
6611
|
+
"name": "GenesisCustomCode",
|
|
7477
6612
|
"declaration": {
|
|
7478
|
-
"name": "
|
|
7479
|
-
"module": "
|
|
6613
|
+
"name": "GenesisCustomCode",
|
|
6614
|
+
"module": "./types"
|
|
7480
6615
|
}
|
|
7481
6616
|
},
|
|
7482
6617
|
{
|
|
7483
6618
|
"kind": "js",
|
|
7484
|
-
"name": "
|
|
6619
|
+
"name": "GenesisCustomCodeCheck",
|
|
7485
6620
|
"declaration": {
|
|
7486
|
-
"name": "
|
|
7487
|
-
"module": "
|
|
6621
|
+
"name": "GenesisCustomCodeCheck",
|
|
6622
|
+
"module": "./types"
|
|
7488
6623
|
}
|
|
7489
6624
|
},
|
|
7490
6625
|
{
|
|
7491
6626
|
"kind": "js",
|
|
7492
|
-
"name": "
|
|
6627
|
+
"name": "GenesisEventOp",
|
|
7493
6628
|
"declaration": {
|
|
7494
|
-
"name": "
|
|
7495
|
-
"module": "
|
|
6629
|
+
"name": "GenesisEventOp",
|
|
6630
|
+
"module": "./types"
|
|
7496
6631
|
}
|
|
7497
6632
|
},
|
|
7498
6633
|
{
|
|
7499
6634
|
"kind": "js",
|
|
7500
|
-
"name": "
|
|
6635
|
+
"name": "GenesisReference",
|
|
7501
6636
|
"declaration": {
|
|
7502
|
-
"name": "
|
|
7503
|
-
"module": "
|
|
6637
|
+
"name": "GenesisReference",
|
|
6638
|
+
"module": "./types"
|
|
7504
6639
|
}
|
|
7505
6640
|
},
|
|
7506
6641
|
{
|
|
7507
6642
|
"kind": "js",
|
|
7508
|
-
"name": "
|
|
7509
|
-
"declaration": {
|
|
7510
|
-
"name": "
|
|
7511
|
-
"module": "
|
|
6643
|
+
"name": "GenesisResourceKind",
|
|
6644
|
+
"declaration": {
|
|
6645
|
+
"name": "GenesisResourceKind",
|
|
6646
|
+
"module": "./types"
|
|
7512
6647
|
}
|
|
7513
6648
|
},
|
|
7514
6649
|
{
|
|
7515
6650
|
"kind": "js",
|
|
7516
|
-
"name": "
|
|
6651
|
+
"name": "GenesisRowEffect",
|
|
7517
6652
|
"declaration": {
|
|
7518
|
-
"name": "
|
|
7519
|
-
"module": "
|
|
6653
|
+
"name": "GenesisRowEffect",
|
|
6654
|
+
"module": "./types"
|
|
7520
6655
|
}
|
|
7521
|
-
}
|
|
7522
|
-
]
|
|
7523
|
-
},
|
|
7524
|
-
{
|
|
7525
|
-
"kind": "javascript-module",
|
|
7526
|
-
"path": "src/genesis/consumes.ts",
|
|
7527
|
-
"declarations": [
|
|
7528
|
-
{
|
|
7529
|
-
"kind": "variable",
|
|
7530
|
-
"name": "GENESIS_AI_CONSUMES",
|
|
7531
|
-
"type": {
|
|
7532
|
-
"text": "GenesisAiConsumes"
|
|
7533
|
-
},
|
|
7534
|
-
"description": "What this version of the assistant reads from a generated AI config: the resource kinds it\naccepts, the resource fields its validator or a tool reads, the `vendor` and `tier` values it\naccepts, and the row-action shapes it runs."
|
|
7535
|
-
}
|
|
7536
|
-
],
|
|
7537
|
-
"exports": [
|
|
6656
|
+
},
|
|
7538
6657
|
{
|
|
7539
6658
|
"kind": "js",
|
|
7540
|
-
"name": "
|
|
6659
|
+
"name": "GenesisRowInput",
|
|
7541
6660
|
"declaration": {
|
|
7542
|
-
"name": "
|
|
6661
|
+
"name": "GenesisRowInput",
|
|
7543
6662
|
"module": "./types"
|
|
7544
6663
|
}
|
|
7545
6664
|
},
|
|
7546
6665
|
{
|
|
7547
6666
|
"kind": "js",
|
|
7548
|
-
"name": "
|
|
6667
|
+
"name": "RegisterGenesisAssistantOptions",
|
|
7549
6668
|
"declaration": {
|
|
7550
|
-
"name": "
|
|
7551
|
-
"module": "
|
|
6669
|
+
"name": "RegisterGenesisAssistantOptions",
|
|
6670
|
+
"module": "./types"
|
|
7552
6671
|
}
|
|
7553
6672
|
}
|
|
7554
6673
|
]
|
|
7555
6674
|
},
|
|
7556
6675
|
{
|
|
7557
6676
|
"kind": "javascript-module",
|
|
7558
|
-
"path": "src/genesis/
|
|
6677
|
+
"path": "src/genesis/reference-check.ts",
|
|
7559
6678
|
"declarations": [
|
|
7560
6679
|
{
|
|
7561
6680
|
"kind": "function",
|
|
7562
|
-
"name": "
|
|
6681
|
+
"name": "tableOf",
|
|
7563
6682
|
"return": {
|
|
7564
6683
|
"type": {
|
|
7565
|
-
"text": "string
|
|
6684
|
+
"text": "string"
|
|
7566
6685
|
}
|
|
7567
6686
|
},
|
|
7568
6687
|
"parameters": [
|
|
7569
6688
|
{
|
|
7570
|
-
"name": "
|
|
6689
|
+
"name": "resource",
|
|
7571
6690
|
"type": {
|
|
7572
6691
|
"text": "string"
|
|
7573
6692
|
}
|
|
7574
|
-
}
|
|
6693
|
+
}
|
|
6694
|
+
],
|
|
6695
|
+
"description": "The table a `REQ_<T>` reads."
|
|
6696
|
+
},
|
|
6697
|
+
{
|
|
6698
|
+
"kind": "function",
|
|
6699
|
+
"name": "notAcceptedHere",
|
|
6700
|
+
"return": {
|
|
6701
|
+
"type": {
|
|
6702
|
+
"text": "string"
|
|
6703
|
+
}
|
|
6704
|
+
},
|
|
6705
|
+
"parameters": [
|
|
7575
6706
|
{
|
|
7576
|
-
"name": "
|
|
6707
|
+
"name": "field",
|
|
7577
6708
|
"type": {
|
|
7578
|
-
"text": "
|
|
6709
|
+
"text": "string"
|
|
7579
6710
|
}
|
|
7580
6711
|
},
|
|
7581
6712
|
{
|
|
7582
|
-
"name": "
|
|
6713
|
+
"name": "{ resource, reason }",
|
|
7583
6714
|
"type": {
|
|
7584
|
-
"text": "
|
|
6715
|
+
"text": "UncheckedField"
|
|
7585
6716
|
}
|
|
7586
6717
|
}
|
|
7587
|
-
]
|
|
6718
|
+
],
|
|
6719
|
+
"description": "What an insert says about a value it cannot check."
|
|
7588
6720
|
},
|
|
7589
6721
|
{
|
|
7590
6722
|
"kind": "function",
|
|
7591
|
-
"name": "
|
|
6723
|
+
"name": "cannotBeChanged",
|
|
7592
6724
|
"return": {
|
|
7593
6725
|
"type": {
|
|
7594
|
-
"text": "string
|
|
6726
|
+
"text": "string"
|
|
7595
6727
|
}
|
|
7596
6728
|
},
|
|
7597
6729
|
"parameters": [
|
|
@@ -7602,217 +6734,223 @@
|
|
|
7602
6734
|
}
|
|
7603
6735
|
},
|
|
7604
6736
|
{
|
|
7605
|
-
"name": "
|
|
7606
|
-
"type": {
|
|
7607
|
-
"text": "GenesisFilterOp"
|
|
7608
|
-
}
|
|
7609
|
-
},
|
|
7610
|
-
{
|
|
7611
|
-
"name": "bound",
|
|
6737
|
+
"name": "{ resource, reason }",
|
|
7612
6738
|
"type": {
|
|
7613
|
-
"text": "
|
|
6739
|
+
"text": "UncheckedField"
|
|
7614
6740
|
}
|
|
7615
6741
|
}
|
|
7616
6742
|
],
|
|
7617
|
-
"description": "
|
|
6743
|
+
"description": "What a modify says about a new value it cannot check."
|
|
7618
6744
|
}
|
|
7619
6745
|
],
|
|
7620
6746
|
"exports": [
|
|
7621
6747
|
{
|
|
7622
6748
|
"kind": "js",
|
|
7623
|
-
"name": "
|
|
7624
|
-
"declaration": {
|
|
7625
|
-
"name": "dateFragment",
|
|
7626
|
-
"module": "src/genesis/criteria.ts"
|
|
7627
|
-
}
|
|
7628
|
-
},
|
|
7629
|
-
{
|
|
7630
|
-
"kind": "js",
|
|
7631
|
-
"name": "dateTimeFragment",
|
|
7632
|
-
"declaration": {
|
|
7633
|
-
"name": "dateTimeFragment",
|
|
7634
|
-
"module": "src/genesis/criteria.ts"
|
|
7635
|
-
}
|
|
7636
|
-
}
|
|
7637
|
-
]
|
|
7638
|
-
},
|
|
7639
|
-
{
|
|
7640
|
-
"kind": "javascript-module",
|
|
7641
|
-
"path": "src/genesis/event-fields.ts",
|
|
7642
|
-
"declarations": [],
|
|
7643
|
-
"exports": []
|
|
7644
|
-
},
|
|
7645
|
-
{
|
|
7646
|
-
"kind": "javascript-module",
|
|
7647
|
-
"path": "src/genesis/filter-fields.ts",
|
|
7648
|
-
"declarations": [],
|
|
7649
|
-
"exports": []
|
|
7650
|
-
},
|
|
7651
|
-
{
|
|
7652
|
-
"kind": "javascript-module",
|
|
7653
|
-
"path": "src/genesis/index.ts",
|
|
7654
|
-
"declarations": [],
|
|
7655
|
-
"exports": [
|
|
7656
|
-
{
|
|
7657
|
-
"kind": "js",
|
|
7658
|
-
"name": "GENESIS_AGENT_NAME",
|
|
7659
|
-
"declaration": {
|
|
7660
|
-
"name": "GENESIS_AGENT_NAME",
|
|
7661
|
-
"module": "./register-genesis-assistant"
|
|
7662
|
-
}
|
|
7663
|
-
},
|
|
7664
|
-
{
|
|
7665
|
-
"kind": "js",
|
|
7666
|
-
"name": "registerGenesisAssistant",
|
|
7667
|
-
"declaration": {
|
|
7668
|
-
"name": "registerGenesisAssistant",
|
|
7669
|
-
"module": "./register-genesis-assistant"
|
|
7670
|
-
}
|
|
7671
|
-
},
|
|
7672
|
-
{
|
|
7673
|
-
"kind": "js",
|
|
7674
|
-
"name": "customCodeOf",
|
|
7675
|
-
"declaration": {
|
|
7676
|
-
"name": "customCodeOf",
|
|
7677
|
-
"module": "./config"
|
|
7678
|
-
}
|
|
7679
|
-
},
|
|
7680
|
-
{
|
|
7681
|
-
"kind": "js",
|
|
7682
|
-
"name": "rowActionProblem",
|
|
7683
|
-
"declaration": {
|
|
7684
|
-
"name": "rowActionProblem",
|
|
7685
|
-
"module": "./config"
|
|
7686
|
-
}
|
|
7687
|
-
},
|
|
7688
|
-
{
|
|
7689
|
-
"kind": "js",
|
|
7690
|
-
"name": "GENESIS_AI_CONSUMES",
|
|
7691
|
-
"declaration": {
|
|
7692
|
-
"name": "GENESIS_AI_CONSUMES",
|
|
7693
|
-
"module": "./consumes"
|
|
7694
|
-
}
|
|
7695
|
-
},
|
|
7696
|
-
{
|
|
7697
|
-
"kind": "js",
|
|
7698
|
-
"name": "validateGenesisAiConfig",
|
|
7699
|
-
"declaration": {
|
|
7700
|
-
"name": "validateGenesisAiConfig",
|
|
7701
|
-
"module": "./config"
|
|
7702
|
-
}
|
|
7703
|
-
},
|
|
7704
|
-
{
|
|
7705
|
-
"kind": "js",
|
|
7706
|
-
"name": "DroppedResource",
|
|
7707
|
-
"declaration": {
|
|
7708
|
-
"name": "DroppedResource",
|
|
7709
|
-
"module": "./config"
|
|
7710
|
-
}
|
|
7711
|
-
},
|
|
7712
|
-
{
|
|
7713
|
-
"kind": "js",
|
|
7714
|
-
"name": "GenesisAiConfigCheck",
|
|
7715
|
-
"declaration": {
|
|
7716
|
-
"name": "GenesisAiConfigCheck",
|
|
7717
|
-
"module": "./config"
|
|
7718
|
-
}
|
|
7719
|
-
},
|
|
7720
|
-
{
|
|
7721
|
-
"kind": "js",
|
|
7722
|
-
"name": "GenesisFilter",
|
|
6749
|
+
"name": "tableOf",
|
|
7723
6750
|
"declaration": {
|
|
7724
|
-
"name": "
|
|
7725
|
-
"module": "
|
|
6751
|
+
"name": "tableOf",
|
|
6752
|
+
"module": "src/genesis/reference-check.ts"
|
|
7726
6753
|
}
|
|
7727
6754
|
},
|
|
7728
6755
|
{
|
|
7729
6756
|
"kind": "js",
|
|
7730
|
-
"name": "
|
|
6757
|
+
"name": "notAcceptedHere",
|
|
7731
6758
|
"declaration": {
|
|
7732
|
-
"name": "
|
|
7733
|
-
"module": "
|
|
6759
|
+
"name": "notAcceptedHere",
|
|
6760
|
+
"module": "src/genesis/reference-check.ts"
|
|
7734
6761
|
}
|
|
7735
6762
|
},
|
|
7736
6763
|
{
|
|
7737
6764
|
"kind": "js",
|
|
7738
|
-
"name": "
|
|
6765
|
+
"name": "cannotBeChanged",
|
|
7739
6766
|
"declaration": {
|
|
7740
|
-
"name": "
|
|
7741
|
-
"module": "
|
|
6767
|
+
"name": "cannotBeChanged",
|
|
6768
|
+
"module": "src/genesis/reference-check.ts"
|
|
7742
6769
|
}
|
|
7743
|
-
}
|
|
6770
|
+
}
|
|
6771
|
+
]
|
|
6772
|
+
},
|
|
6773
|
+
{
|
|
6774
|
+
"kind": "javascript-module",
|
|
6775
|
+
"path": "src/genesis/reference-existence.ts",
|
|
6776
|
+
"declarations": [
|
|
7744
6777
|
{
|
|
7745
|
-
"kind": "
|
|
7746
|
-
"name": "
|
|
7747
|
-
"
|
|
7748
|
-
"
|
|
7749
|
-
|
|
7750
|
-
|
|
6778
|
+
"kind": "variable",
|
|
6779
|
+
"name": "MAX_REFERENCE_CHECKS",
|
|
6780
|
+
"type": {
|
|
6781
|
+
"text": "number"
|
|
6782
|
+
},
|
|
6783
|
+
"default": "50",
|
|
6784
|
+
"description": "The most distinct values one call may check."
|
|
7751
6785
|
},
|
|
7752
6786
|
{
|
|
7753
|
-
"kind": "
|
|
7754
|
-
"name": "
|
|
7755
|
-
"
|
|
7756
|
-
"
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
6787
|
+
"kind": "function",
|
|
6788
|
+
"name": "withReferenceProblems",
|
|
6789
|
+
"return": {
|
|
6790
|
+
"type": {
|
|
6791
|
+
"text": "T[]"
|
|
6792
|
+
}
|
|
6793
|
+
},
|
|
6794
|
+
"parameters": [
|
|
6795
|
+
{
|
|
6796
|
+
"name": "rows",
|
|
6797
|
+
"type": {
|
|
6798
|
+
"text": "readonly T[]"
|
|
6799
|
+
}
|
|
6800
|
+
},
|
|
6801
|
+
{
|
|
6802
|
+
"name": "problems",
|
|
6803
|
+
"type": {
|
|
6804
|
+
"text": "ReadonlyMap<number, string[]>"
|
|
6805
|
+
}
|
|
6806
|
+
}
|
|
6807
|
+
],
|
|
6808
|
+
"description": "The rows with what the check found added to their problems."
|
|
6809
|
+
}
|
|
6810
|
+
],
|
|
6811
|
+
"exports": [
|
|
7760
6812
|
{
|
|
7761
6813
|
"kind": "js",
|
|
7762
|
-
"name": "
|
|
6814
|
+
"name": "MAX_REFERENCE_CHECKS",
|
|
7763
6815
|
"declaration": {
|
|
7764
|
-
"name": "
|
|
7765
|
-
"module": "
|
|
6816
|
+
"name": "MAX_REFERENCE_CHECKS",
|
|
6817
|
+
"module": "src/genesis/reference-existence.ts"
|
|
7766
6818
|
}
|
|
7767
6819
|
},
|
|
7768
6820
|
{
|
|
7769
6821
|
"kind": "js",
|
|
7770
|
-
"name": "
|
|
6822
|
+
"name": "withReferenceProblems",
|
|
7771
6823
|
"declaration": {
|
|
7772
|
-
"name": "
|
|
7773
|
-
"module": "
|
|
6824
|
+
"name": "withReferenceProblems",
|
|
6825
|
+
"module": "src/genesis/reference-existence.ts"
|
|
7774
6826
|
}
|
|
7775
|
-
}
|
|
6827
|
+
}
|
|
6828
|
+
]
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
"kind": "javascript-module",
|
|
6832
|
+
"path": "src/genesis/register-genesis-assistant.ts",
|
|
6833
|
+
"declarations": [
|
|
7776
6834
|
{
|
|
7777
|
-
"kind": "
|
|
7778
|
-
"name": "
|
|
7779
|
-
"
|
|
7780
|
-
"
|
|
7781
|
-
|
|
7782
|
-
|
|
6835
|
+
"kind": "variable",
|
|
6836
|
+
"name": "GENESIS_AGENT_NAME",
|
|
6837
|
+
"type": {
|
|
6838
|
+
"text": "string"
|
|
6839
|
+
},
|
|
6840
|
+
"default": "'genesis-assistant'",
|
|
6841
|
+
"description": "The name of the agent registerGenesisAssistant builds."
|
|
7783
6842
|
},
|
|
6843
|
+
{
|
|
6844
|
+
"kind": "function",
|
|
6845
|
+
"name": "registerGenesisAssistant",
|
|
6846
|
+
"return": {
|
|
6847
|
+
"type": {
|
|
6848
|
+
"text": "GenesisAssistantRegistration"
|
|
6849
|
+
}
|
|
6850
|
+
},
|
|
6851
|
+
"parameters": [
|
|
6852
|
+
{
|
|
6853
|
+
"name": "options",
|
|
6854
|
+
"type": {
|
|
6855
|
+
"text": "RegisterGenesisAssistantOptions"
|
|
6856
|
+
}
|
|
6857
|
+
}
|
|
6858
|
+
],
|
|
6859
|
+
"description": "Sets up the AI assistant for a Genesis app from its generated AI config: providers by tier,\nand one agent whose tools read the app's resources."
|
|
6860
|
+
}
|
|
6861
|
+
],
|
|
6862
|
+
"exports": [
|
|
7784
6863
|
{
|
|
7785
6864
|
"kind": "js",
|
|
7786
|
-
"name": "
|
|
6865
|
+
"name": "GENESIS_AGENT_NAME",
|
|
7787
6866
|
"declaration": {
|
|
7788
|
-
"name": "
|
|
7789
|
-
"module": "
|
|
6867
|
+
"name": "GENESIS_AGENT_NAME",
|
|
6868
|
+
"module": "src/genesis/register-genesis-assistant.ts"
|
|
7790
6869
|
}
|
|
7791
6870
|
},
|
|
7792
6871
|
{
|
|
7793
6872
|
"kind": "js",
|
|
7794
|
-
"name": "
|
|
6873
|
+
"name": "registerGenesisAssistant",
|
|
7795
6874
|
"declaration": {
|
|
7796
|
-
"name": "
|
|
7797
|
-
"module": "
|
|
6875
|
+
"name": "registerGenesisAssistant",
|
|
6876
|
+
"module": "src/genesis/register-genesis-assistant.ts"
|
|
7798
6877
|
}
|
|
6878
|
+
}
|
|
6879
|
+
]
|
|
6880
|
+
},
|
|
6881
|
+
{
|
|
6882
|
+
"kind": "javascript-module",
|
|
6883
|
+
"path": "src/genesis/resource-tools.ts",
|
|
6884
|
+
"declarations": [
|
|
6885
|
+
{
|
|
6886
|
+
"kind": "variable",
|
|
6887
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6888
|
+
"type": {
|
|
6889
|
+
"text": "string"
|
|
6890
|
+
},
|
|
6891
|
+
"default": "'app-database'",
|
|
6892
|
+
"description": "The provenance stamped on everything a tool returns from the app (ADR P9). Rows are written by\nthe app's other users, so the model must treat their text as data, never as instructions; the\nsystem prompt says the same thing in words."
|
|
7799
6893
|
},
|
|
6894
|
+
{
|
|
6895
|
+
"kind": "function",
|
|
6896
|
+
"name": "createGenesisResourceTools",
|
|
6897
|
+
"return": {
|
|
6898
|
+
"type": {
|
|
6899
|
+
"text": "GenesisResourceTools"
|
|
6900
|
+
}
|
|
6901
|
+
},
|
|
6902
|
+
"parameters": [
|
|
6903
|
+
{
|
|
6904
|
+
"name": "resources",
|
|
6905
|
+
"type": {
|
|
6906
|
+
"text": "readonly GenesisAiResource[]"
|
|
6907
|
+
}
|
|
6908
|
+
},
|
|
6909
|
+
{
|
|
6910
|
+
"name": "options",
|
|
6911
|
+
"default": "{}",
|
|
6912
|
+
"type": {
|
|
6913
|
+
"text": "GenesisResourceToolsOptions"
|
|
6914
|
+
}
|
|
6915
|
+
}
|
|
6916
|
+
],
|
|
6917
|
+
"description": "Builds the assistant's tools from an app's resources."
|
|
6918
|
+
}
|
|
6919
|
+
],
|
|
6920
|
+
"exports": [
|
|
7800
6921
|
{
|
|
7801
6922
|
"kind": "js",
|
|
7802
|
-
"name": "
|
|
6923
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
7803
6924
|
"declaration": {
|
|
7804
|
-
"name": "
|
|
7805
|
-
"module": "
|
|
6925
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6926
|
+
"module": "src/genesis/resource-tools.ts"
|
|
7806
6927
|
}
|
|
7807
6928
|
},
|
|
7808
6929
|
{
|
|
7809
6930
|
"kind": "js",
|
|
7810
|
-
"name": "
|
|
6931
|
+
"name": "createGenesisResourceTools",
|
|
7811
6932
|
"declaration": {
|
|
7812
|
-
"name": "
|
|
7813
|
-
"module": "
|
|
6933
|
+
"name": "createGenesisResourceTools",
|
|
6934
|
+
"module": "src/genesis/resource-tools.ts"
|
|
7814
6935
|
}
|
|
7815
|
-
}
|
|
6936
|
+
}
|
|
6937
|
+
]
|
|
6938
|
+
},
|
|
6939
|
+
{
|
|
6940
|
+
"kind": "javascript-module",
|
|
6941
|
+
"path": "src/genesis/review-model.ts",
|
|
6942
|
+
"declarations": [
|
|
6943
|
+
{
|
|
6944
|
+
"kind": "variable",
|
|
6945
|
+
"name": "LONG_VALUE",
|
|
6946
|
+
"type": {
|
|
6947
|
+
"text": "number"
|
|
6948
|
+
},
|
|
6949
|
+
"default": "24",
|
|
6950
|
+
"description": "Past this many characters a value wraps; at or under it, it stays on one line."
|
|
6951
|
+
}
|
|
6952
|
+
],
|
|
6953
|
+
"exports": [
|
|
7816
6954
|
{
|
|
7817
6955
|
"kind": "js",
|
|
7818
6956
|
"name": "GenesisChangeRequest",
|
|
@@ -7831,713 +6969,1559 @@
|
|
|
7831
6969
|
},
|
|
7832
6970
|
{
|
|
7833
6971
|
"kind": "js",
|
|
7834
|
-
"name": "
|
|
7835
|
-
"declaration": {
|
|
7836
|
-
"name": "GenesisWriteReviewCompletedEventDetail",
|
|
7837
|
-
"module": "./review-payload"
|
|
7838
|
-
}
|
|
7839
|
-
},
|
|
7840
|
-
{
|
|
7841
|
-
"kind": "js",
|
|
7842
|
-
"name": "GenesisReadResult",
|
|
7843
|
-
"declaration": {
|
|
7844
|
-
"name": "GenesisReadResult",
|
|
7845
|
-
"module": "./resource-tools"
|
|
7846
|
-
}
|
|
7847
|
-
},
|
|
7848
|
-
{
|
|
7849
|
-
"kind": "js",
|
|
7850
|
-
"name": "GenesisResourceTools",
|
|
7851
|
-
"declaration": {
|
|
7852
|
-
"name": "GenesisResourceTools",
|
|
7853
|
-
"module": "./resource-tools"
|
|
7854
|
-
}
|
|
7855
|
-
},
|
|
7856
|
-
{
|
|
7857
|
-
"kind": "js",
|
|
7858
|
-
"name": "GenesisResourceToolsOptions",
|
|
7859
|
-
"declaration": {
|
|
7860
|
-
"name": "GenesisResourceToolsOptions",
|
|
7861
|
-
"module": "./resource-tools"
|
|
7862
|
-
}
|
|
7863
|
-
},
|
|
7864
|
-
{
|
|
7865
|
-
"kind": "js",
|
|
7866
|
-
"name": "GenesisToolError",
|
|
6972
|
+
"name": "LONG_VALUE",
|
|
7867
6973
|
"declaration": {
|
|
7868
|
-
"name": "
|
|
7869
|
-
"module": "
|
|
6974
|
+
"name": "LONG_VALUE",
|
|
6975
|
+
"module": "src/genesis/review-model.ts"
|
|
7870
6976
|
}
|
|
7871
|
-
}
|
|
6977
|
+
}
|
|
6978
|
+
]
|
|
6979
|
+
},
|
|
6980
|
+
{
|
|
6981
|
+
"kind": "javascript-module",
|
|
6982
|
+
"path": "src/genesis/review-payload.ts",
|
|
6983
|
+
"declarations": [],
|
|
6984
|
+
"exports": []
|
|
6985
|
+
},
|
|
6986
|
+
{
|
|
6987
|
+
"kind": "javascript-module",
|
|
6988
|
+
"path": "src/genesis/row-source.ts",
|
|
6989
|
+
"declarations": [],
|
|
6990
|
+
"exports": []
|
|
6991
|
+
},
|
|
6992
|
+
{
|
|
6993
|
+
"kind": "javascript-module",
|
|
6994
|
+
"path": "src/genesis/serialisable.ts",
|
|
6995
|
+
"declarations": [],
|
|
6996
|
+
"exports": []
|
|
6997
|
+
},
|
|
6998
|
+
{
|
|
6999
|
+
"kind": "javascript-module",
|
|
7000
|
+
"path": "src/genesis/server-text.ts",
|
|
7001
|
+
"declarations": [
|
|
7872
7002
|
{
|
|
7873
|
-
"kind": "
|
|
7874
|
-
"name": "
|
|
7875
|
-
"
|
|
7876
|
-
"
|
|
7877
|
-
|
|
7878
|
-
|
|
7003
|
+
"kind": "function",
|
|
7004
|
+
"name": "readsLikeFieldName",
|
|
7005
|
+
"return": {
|
|
7006
|
+
"type": {
|
|
7007
|
+
"text": "boolean"
|
|
7008
|
+
}
|
|
7009
|
+
},
|
|
7010
|
+
"parameters": [
|
|
7011
|
+
{
|
|
7012
|
+
"name": "text",
|
|
7013
|
+
"type": {
|
|
7014
|
+
"text": "string"
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
],
|
|
7018
|
+
"description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
|
|
7879
7019
|
},
|
|
7880
7020
|
{
|
|
7881
|
-
"kind": "
|
|
7882
|
-
"name": "
|
|
7883
|
-
"
|
|
7884
|
-
"
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7021
|
+
"kind": "function",
|
|
7022
|
+
"name": "describeFailure",
|
|
7023
|
+
"return": {
|
|
7024
|
+
"type": {
|
|
7025
|
+
"text": "string | undefined"
|
|
7026
|
+
}
|
|
7027
|
+
},
|
|
7028
|
+
"parameters": [
|
|
7029
|
+
{
|
|
7030
|
+
"name": "error",
|
|
7031
|
+
"type": {
|
|
7032
|
+
"text": "unknown"
|
|
7033
|
+
}
|
|
7034
|
+
}
|
|
7035
|
+
],
|
|
7036
|
+
"description": "Whatever a rejection turns out to be, as a sentence."
|
|
7037
|
+
}
|
|
7038
|
+
],
|
|
7039
|
+
"exports": [
|
|
7888
7040
|
{
|
|
7889
7041
|
"kind": "js",
|
|
7890
|
-
"name": "
|
|
7042
|
+
"name": "readsLikeFieldName",
|
|
7891
7043
|
"declaration": {
|
|
7892
|
-
"name": "
|
|
7893
|
-
"module": "
|
|
7044
|
+
"name": "readsLikeFieldName",
|
|
7045
|
+
"module": "src/genesis/server-text.ts"
|
|
7894
7046
|
}
|
|
7895
7047
|
},
|
|
7896
7048
|
{
|
|
7897
7049
|
"kind": "js",
|
|
7898
|
-
"name": "
|
|
7050
|
+
"name": "describeFailure",
|
|
7899
7051
|
"declaration": {
|
|
7900
|
-
"name": "
|
|
7901
|
-
"module": "
|
|
7052
|
+
"name": "describeFailure",
|
|
7053
|
+
"module": "src/genesis/server-text.ts"
|
|
7902
7054
|
}
|
|
7903
|
-
}
|
|
7055
|
+
}
|
|
7056
|
+
]
|
|
7057
|
+
},
|
|
7058
|
+
{
|
|
7059
|
+
"kind": "javascript-module",
|
|
7060
|
+
"path": "src/genesis/type-name.ts",
|
|
7061
|
+
"declarations": [],
|
|
7062
|
+
"exports": []
|
|
7063
|
+
},
|
|
7064
|
+
{
|
|
7065
|
+
"kind": "javascript-module",
|
|
7066
|
+
"path": "src/genesis/types.ts",
|
|
7067
|
+
"declarations": [
|
|
7068
|
+
{
|
|
7069
|
+
"kind": "variable",
|
|
7070
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7071
|
+
"type": {
|
|
7072
|
+
"text": "['insert', 'modify', 'delete', 'custom']"
|
|
7073
|
+
},
|
|
7074
|
+
"default": "['insert', 'modify', 'delete', 'custom']",
|
|
7075
|
+
"description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
|
|
7076
|
+
}
|
|
7077
|
+
],
|
|
7078
|
+
"exports": [
|
|
7904
7079
|
{
|
|
7905
7080
|
"kind": "js",
|
|
7906
|
-
"name": "
|
|
7081
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7907
7082
|
"declaration": {
|
|
7908
|
-
"name": "
|
|
7909
|
-
"module": "
|
|
7083
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7084
|
+
"module": "src/genesis/types.ts"
|
|
7910
7085
|
}
|
|
7911
|
-
}
|
|
7086
|
+
}
|
|
7087
|
+
]
|
|
7088
|
+
},
|
|
7089
|
+
{
|
|
7090
|
+
"kind": "javascript-module",
|
|
7091
|
+
"path": "src/genesis/value-compare.ts",
|
|
7092
|
+
"declarations": [],
|
|
7093
|
+
"exports": []
|
|
7094
|
+
},
|
|
7095
|
+
{
|
|
7096
|
+
"kind": "javascript-module",
|
|
7097
|
+
"path": "src/genesis/write-commit.ts",
|
|
7098
|
+
"declarations": [],
|
|
7099
|
+
"exports": []
|
|
7100
|
+
},
|
|
7101
|
+
{
|
|
7102
|
+
"kind": "javascript-module",
|
|
7103
|
+
"path": "src/genesis/write-op.ts",
|
|
7104
|
+
"declarations": [],
|
|
7105
|
+
"exports": []
|
|
7106
|
+
},
|
|
7107
|
+
{
|
|
7108
|
+
"kind": "javascript-module",
|
|
7109
|
+
"path": "src/genesis/write-outcome.ts",
|
|
7110
|
+
"declarations": [],
|
|
7111
|
+
"exports": []
|
|
7112
|
+
},
|
|
7113
|
+
{
|
|
7114
|
+
"kind": "javascript-module",
|
|
7115
|
+
"path": "src/genesis/write-payload.ts",
|
|
7116
|
+
"declarations": [
|
|
7117
|
+
{
|
|
7118
|
+
"kind": "function",
|
|
7119
|
+
"name": "buildEventPayload",
|
|
7120
|
+
"return": {
|
|
7121
|
+
"type": {
|
|
7122
|
+
"text": "PayloadResult"
|
|
7123
|
+
}
|
|
7124
|
+
},
|
|
7125
|
+
"parameters": [
|
|
7126
|
+
{
|
|
7127
|
+
"name": "fields",
|
|
7128
|
+
"type": {
|
|
7129
|
+
"text": "readonly GenesisEventField[]"
|
|
7130
|
+
}
|
|
7131
|
+
},
|
|
7132
|
+
{
|
|
7133
|
+
"name": "row",
|
|
7134
|
+
"type": {
|
|
7135
|
+
"text": "unknown"
|
|
7136
|
+
}
|
|
7137
|
+
},
|
|
7138
|
+
{
|
|
7139
|
+
"name": "{ op, preImage, unchecked }",
|
|
7140
|
+
"type": {
|
|
7141
|
+
"text": "BuildPayloadOptions"
|
|
7142
|
+
}
|
|
7143
|
+
}
|
|
7144
|
+
]
|
|
7145
|
+
}
|
|
7146
|
+
],
|
|
7147
|
+
"exports": [
|
|
7912
7148
|
{
|
|
7913
7149
|
"kind": "js",
|
|
7914
|
-
"name": "
|
|
7150
|
+
"name": "buildEventPayload",
|
|
7915
7151
|
"declaration": {
|
|
7916
|
-
"name": "
|
|
7917
|
-
"module": "
|
|
7152
|
+
"name": "buildEventPayload",
|
|
7153
|
+
"module": "src/genesis/write-payload.ts"
|
|
7918
7154
|
}
|
|
7919
|
-
}
|
|
7155
|
+
}
|
|
7156
|
+
]
|
|
7157
|
+
},
|
|
7158
|
+
{
|
|
7159
|
+
"kind": "javascript-module",
|
|
7160
|
+
"path": "src/genesis/write-plan.ts",
|
|
7161
|
+
"declarations": [
|
|
7162
|
+
{
|
|
7163
|
+
"kind": "variable",
|
|
7164
|
+
"name": "MAX_WRITE_ROWS",
|
|
7165
|
+
"type": {
|
|
7166
|
+
"text": "number"
|
|
7167
|
+
},
|
|
7168
|
+
"default": "25",
|
|
7169
|
+
"description": "A batch a person can actually read before approving it."
|
|
7170
|
+
}
|
|
7171
|
+
],
|
|
7172
|
+
"exports": [
|
|
7920
7173
|
{
|
|
7921
7174
|
"kind": "js",
|
|
7922
|
-
"name": "
|
|
7175
|
+
"name": "MAX_WRITE_ROWS",
|
|
7923
7176
|
"declaration": {
|
|
7924
|
-
"name": "
|
|
7925
|
-
"module": "
|
|
7177
|
+
"name": "MAX_WRITE_ROWS",
|
|
7178
|
+
"module": "src/genesis/write-plan.ts"
|
|
7926
7179
|
}
|
|
7927
|
-
}
|
|
7180
|
+
}
|
|
7181
|
+
]
|
|
7182
|
+
},
|
|
7183
|
+
{
|
|
7184
|
+
"kind": "javascript-module",
|
|
7185
|
+
"path": "src/genesis/write-tools.ts",
|
|
7186
|
+
"declarations": [
|
|
7187
|
+
{
|
|
7188
|
+
"kind": "function",
|
|
7189
|
+
"name": "createGenesisWriteTools",
|
|
7190
|
+
"return": {
|
|
7191
|
+
"type": {
|
|
7192
|
+
"text": "{\n toolDefinitions: () => Promise<ChatToolDefinition[]>;\n toolHandlers: ChatToolHandlers;\n /**\n * The events that can get a write tool, as far as the config can tell: an event refused for its\n * op, its rowSources entry or a malformed references, or a modify or delete with no row source,\n * is not among them. Their metadata, read when the tools are first listed, can still withhold one.\n */\n writableEvents: readonly string[];\n}"
|
|
7193
|
+
}
|
|
7194
|
+
},
|
|
7195
|
+
"parameters": [
|
|
7196
|
+
{
|
|
7197
|
+
"name": "resources",
|
|
7198
|
+
"type": {
|
|
7199
|
+
"text": "readonly GenesisAiResource[]"
|
|
7200
|
+
}
|
|
7201
|
+
},
|
|
7202
|
+
{
|
|
7203
|
+
"name": "options",
|
|
7204
|
+
"default": "{}",
|
|
7205
|
+
"type": {
|
|
7206
|
+
"text": "GenesisWriteToolsOptions"
|
|
7207
|
+
}
|
|
7208
|
+
}
|
|
7209
|
+
],
|
|
7210
|
+
"description": "Builds the assistant's write tools from an app's event resources."
|
|
7211
|
+
}
|
|
7212
|
+
],
|
|
7213
|
+
"exports": [
|
|
7928
7214
|
{
|
|
7929
7215
|
"kind": "js",
|
|
7930
|
-
"name": "
|
|
7216
|
+
"name": "createGenesisWriteTools",
|
|
7931
7217
|
"declaration": {
|
|
7932
|
-
"name": "
|
|
7933
|
-
"module": "
|
|
7218
|
+
"name": "createGenesisWriteTools",
|
|
7219
|
+
"module": "src/genesis/write-tools.ts"
|
|
7934
7220
|
}
|
|
7935
|
-
}
|
|
7221
|
+
}
|
|
7222
|
+
]
|
|
7223
|
+
},
|
|
7224
|
+
{
|
|
7225
|
+
"kind": "javascript-module",
|
|
7226
|
+
"path": "src/genesis/write-turn.ts",
|
|
7227
|
+
"declarations": [],
|
|
7228
|
+
"exports": []
|
|
7229
|
+
},
|
|
7230
|
+
{
|
|
7231
|
+
"kind": "javascript-module",
|
|
7232
|
+
"path": "src/headless/describe-interaction.ts",
|
|
7233
|
+
"declarations": [
|
|
7234
|
+
{
|
|
7235
|
+
"kind": "function",
|
|
7236
|
+
"name": "describeInteraction",
|
|
7237
|
+
"return": {
|
|
7238
|
+
"type": {
|
|
7239
|
+
"text": "InteractionDescription"
|
|
7240
|
+
}
|
|
7241
|
+
},
|
|
7242
|
+
"parameters": [
|
|
7243
|
+
{
|
|
7244
|
+
"name": "input",
|
|
7245
|
+
"type": {
|
|
7246
|
+
"text": "DescribeInteractionInput"
|
|
7247
|
+
}
|
|
7248
|
+
}
|
|
7249
|
+
],
|
|
7250
|
+
"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."
|
|
7251
|
+
}
|
|
7252
|
+
],
|
|
7253
|
+
"exports": [
|
|
7936
7254
|
{
|
|
7937
7255
|
"kind": "js",
|
|
7938
|
-
"name": "
|
|
7256
|
+
"name": "describeInteraction",
|
|
7939
7257
|
"declaration": {
|
|
7940
|
-
"name": "
|
|
7941
|
-
"module": "
|
|
7258
|
+
"name": "describeInteraction",
|
|
7259
|
+
"module": "src/headless/describe-interaction.ts"
|
|
7942
7260
|
}
|
|
7261
|
+
}
|
|
7262
|
+
]
|
|
7263
|
+
},
|
|
7264
|
+
{
|
|
7265
|
+
"kind": "javascript-module",
|
|
7266
|
+
"path": "src/headless/headless-debug.ts",
|
|
7267
|
+
"declarations": [
|
|
7268
|
+
{
|
|
7269
|
+
"kind": "function",
|
|
7270
|
+
"name": "headlessMetaSnapshot",
|
|
7271
|
+
"return": {
|
|
7272
|
+
"type": {
|
|
7273
|
+
"text": "DiagnosticEntry"
|
|
7274
|
+
}
|
|
7275
|
+
},
|
|
7276
|
+
"parameters": [
|
|
7277
|
+
{
|
|
7278
|
+
"name": "driver",
|
|
7279
|
+
"type": {
|
|
7280
|
+
"text": "AiDriver"
|
|
7281
|
+
}
|
|
7282
|
+
},
|
|
7283
|
+
{
|
|
7284
|
+
"name": "options",
|
|
7285
|
+
"default": "{}",
|
|
7286
|
+
"type": {
|
|
7287
|
+
"text": "HeadlessDebugOptions"
|
|
7288
|
+
}
|
|
7289
|
+
}
|
|
7290
|
+
],
|
|
7291
|
+
"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."
|
|
7943
7292
|
},
|
|
7944
7293
|
{
|
|
7945
|
-
"kind": "
|
|
7946
|
-
"name": "
|
|
7947
|
-
"
|
|
7948
|
-
"
|
|
7949
|
-
|
|
7950
|
-
|
|
7294
|
+
"kind": "function",
|
|
7295
|
+
"name": "headlessDiagnosticEntries",
|
|
7296
|
+
"return": {
|
|
7297
|
+
"type": {
|
|
7298
|
+
"text": "DiagnosticEntry[]"
|
|
7299
|
+
}
|
|
7300
|
+
},
|
|
7301
|
+
"parameters": [
|
|
7302
|
+
{
|
|
7303
|
+
"name": "driver",
|
|
7304
|
+
"type": {
|
|
7305
|
+
"text": "AiDriver"
|
|
7306
|
+
}
|
|
7307
|
+
},
|
|
7308
|
+
{
|
|
7309
|
+
"name": "stateKey",
|
|
7310
|
+
"type": {
|
|
7311
|
+
"text": "string"
|
|
7312
|
+
}
|
|
7313
|
+
},
|
|
7314
|
+
{
|
|
7315
|
+
"name": "options",
|
|
7316
|
+
"default": "{}",
|
|
7317
|
+
"type": {
|
|
7318
|
+
"text": "HeadlessDebugOptions"
|
|
7319
|
+
}
|
|
7320
|
+
}
|
|
7321
|
+
],
|
|
7322
|
+
"description": "The diagnostic entries for the session so far, from the same `buildDiagnosticEntries` the\nbrowser's element and its persister use."
|
|
7951
7323
|
},
|
|
7952
7324
|
{
|
|
7953
|
-
"kind": "
|
|
7954
|
-
"name": "
|
|
7955
|
-
"
|
|
7956
|
-
"
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7325
|
+
"kind": "function",
|
|
7326
|
+
"name": "headlessCurrentDebugLog",
|
|
7327
|
+
"return": {
|
|
7328
|
+
"type": {
|
|
7329
|
+
"text": "DebugLog"
|
|
7330
|
+
}
|
|
7331
|
+
},
|
|
7332
|
+
"parameters": [
|
|
7333
|
+
{
|
|
7334
|
+
"name": "driver",
|
|
7335
|
+
"type": {
|
|
7336
|
+
"text": "AiDriver"
|
|
7337
|
+
}
|
|
7338
|
+
},
|
|
7339
|
+
{
|
|
7340
|
+
"name": "stateKey",
|
|
7341
|
+
"type": {
|
|
7342
|
+
"text": "string"
|
|
7343
|
+
}
|
|
7344
|
+
},
|
|
7345
|
+
{
|
|
7346
|
+
"name": "options",
|
|
7347
|
+
"default": "{}",
|
|
7348
|
+
"type": {
|
|
7349
|
+
"text": "HeadlessDebugOptions"
|
|
7350
|
+
}
|
|
7351
|
+
}
|
|
7352
|
+
],
|
|
7353
|
+
"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."
|
|
7354
|
+
}
|
|
7355
|
+
],
|
|
7356
|
+
"exports": [
|
|
7960
7357
|
{
|
|
7961
7358
|
"kind": "js",
|
|
7962
|
-
"name": "
|
|
7359
|
+
"name": "headlessMetaSnapshot",
|
|
7963
7360
|
"declaration": {
|
|
7964
|
-
"name": "
|
|
7965
|
-
"module": "
|
|
7361
|
+
"name": "headlessMetaSnapshot",
|
|
7362
|
+
"module": "src/headless/headless-debug.ts"
|
|
7966
7363
|
}
|
|
7967
7364
|
},
|
|
7968
7365
|
{
|
|
7969
7366
|
"kind": "js",
|
|
7970
|
-
"name": "
|
|
7367
|
+
"name": "headlessDiagnosticEntries",
|
|
7971
7368
|
"declaration": {
|
|
7972
|
-
"name": "
|
|
7973
|
-
"module": "
|
|
7369
|
+
"name": "headlessDiagnosticEntries",
|
|
7370
|
+
"module": "src/headless/headless-debug.ts"
|
|
7974
7371
|
}
|
|
7975
7372
|
},
|
|
7976
7373
|
{
|
|
7977
7374
|
"kind": "js",
|
|
7978
|
-
"name": "
|
|
7375
|
+
"name": "headlessCurrentDebugLog",
|
|
7979
7376
|
"declaration": {
|
|
7980
|
-
"name": "
|
|
7981
|
-
"module": "
|
|
7377
|
+
"name": "headlessCurrentDebugLog",
|
|
7378
|
+
"module": "src/headless/headless-debug.ts"
|
|
7982
7379
|
}
|
|
7983
7380
|
}
|
|
7984
7381
|
]
|
|
7985
7382
|
},
|
|
7986
7383
|
{
|
|
7987
7384
|
"kind": "javascript-module",
|
|
7988
|
-
"path": "src/
|
|
7385
|
+
"path": "src/headless/headless-persistence.ts",
|
|
7989
7386
|
"declarations": [
|
|
7990
7387
|
{
|
|
7991
7388
|
"kind": "function",
|
|
7992
|
-
"name": "
|
|
7389
|
+
"name": "headlessPersistence",
|
|
7993
7390
|
"return": {
|
|
7994
7391
|
"type": {
|
|
7995
|
-
"text": "
|
|
7392
|
+
"text": "HeadlessPersistence"
|
|
7996
7393
|
}
|
|
7997
7394
|
},
|
|
7998
7395
|
"parameters": [
|
|
7999
7396
|
{
|
|
8000
|
-
"name": "
|
|
8001
|
-
"type": {
|
|
8002
|
-
"text": "
|
|
8003
|
-
}
|
|
8004
|
-
}
|
|
8005
|
-
],
|
|
8006
|
-
"description": "
|
|
8007
|
-
}
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
"
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
7397
|
+
"name": "options",
|
|
7398
|
+
"type": {
|
|
7399
|
+
"text": "HeadlessPersistenceOptions"
|
|
7400
|
+
}
|
|
7401
|
+
}
|
|
7402
|
+
],
|
|
7403
|
+
"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)`."
|
|
7404
|
+
}
|
|
7405
|
+
],
|
|
7406
|
+
"exports": [
|
|
7407
|
+
{
|
|
7408
|
+
"kind": "js",
|
|
7409
|
+
"name": "headlessPersistence",
|
|
7410
|
+
"declaration": {
|
|
7411
|
+
"name": "headlessPersistence",
|
|
7412
|
+
"module": "src/headless/headless-persistence.ts"
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7415
|
+
]
|
|
7416
|
+
},
|
|
7417
|
+
{
|
|
7418
|
+
"kind": "javascript-module",
|
|
7419
|
+
"path": "src/headless/headless-session.ts",
|
|
7420
|
+
"declarations": [
|
|
7421
|
+
{
|
|
7422
|
+
"kind": "class",
|
|
7423
|
+
"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.",
|
|
7424
|
+
"name": "HeadlessSession",
|
|
7425
|
+
"members": [
|
|
7426
|
+
{
|
|
7427
|
+
"kind": "field",
|
|
7428
|
+
"name": "sessionKey",
|
|
7429
|
+
"type": {
|
|
7430
|
+
"text": "string"
|
|
7431
|
+
},
|
|
7432
|
+
"privacy": "private",
|
|
7433
|
+
"readonly": true
|
|
7434
|
+
},
|
|
7435
|
+
{
|
|
7436
|
+
"kind": "field",
|
|
7437
|
+
"name": "allowRaw",
|
|
7438
|
+
"type": {
|
|
7439
|
+
"text": "boolean"
|
|
7440
|
+
},
|
|
7441
|
+
"privacy": "private",
|
|
7442
|
+
"readonly": true
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
"kind": "field",
|
|
7446
|
+
"name": "clock",
|
|
7447
|
+
"type": {
|
|
7448
|
+
"text": "() => number"
|
|
7449
|
+
},
|
|
7450
|
+
"privacy": "private",
|
|
7451
|
+
"readonly": true
|
|
7452
|
+
},
|
|
7453
|
+
{
|
|
7454
|
+
"kind": "field",
|
|
7455
|
+
"name": "autopilotHost",
|
|
7456
|
+
"type": {
|
|
7457
|
+
"text": "AutopilotLike | undefined"
|
|
7458
|
+
},
|
|
7459
|
+
"privacy": "private",
|
|
7460
|
+
"readonly": true,
|
|
7461
|
+
"default": "autopilot"
|
|
7462
|
+
},
|
|
7463
|
+
{
|
|
7464
|
+
"kind": "field",
|
|
7465
|
+
"name": "events",
|
|
7466
|
+
"type": {
|
|
7467
|
+
"text": "HeadlessEvent[]"
|
|
7468
|
+
},
|
|
7469
|
+
"privacy": "private",
|
|
7470
|
+
"readonly": true,
|
|
7471
|
+
"default": "[]"
|
|
7472
|
+
},
|
|
7473
|
+
{
|
|
7474
|
+
"kind": "field",
|
|
7475
|
+
"name": "seq",
|
|
7476
|
+
"type": {
|
|
7477
|
+
"text": "number"
|
|
7478
|
+
},
|
|
7479
|
+
"privacy": "private",
|
|
7480
|
+
"default": "0"
|
|
7481
|
+
},
|
|
7482
|
+
{
|
|
7483
|
+
"kind": "field",
|
|
7484
|
+
"name": "tracked",
|
|
7485
|
+
"privacy": "private",
|
|
7486
|
+
"readonly": true,
|
|
7487
|
+
"default": "new Map<string, Tracked>()"
|
|
7488
|
+
},
|
|
7489
|
+
{
|
|
7490
|
+
"kind": "field",
|
|
7491
|
+
"name": "origin",
|
|
7492
|
+
"privacy": "private",
|
|
7493
|
+
"readonly": true,
|
|
7494
|
+
"default": "new Map<string, { auto?: boolean; raw?: boolean }>()",
|
|
7495
|
+
"description": "What the session did to an interaction itself, for `settled` to say when the driver reports it."
|
|
7496
|
+
},
|
|
7497
|
+
{
|
|
7498
|
+
"kind": "field",
|
|
7499
|
+
"name": "waiters",
|
|
7500
|
+
"privacy": "private",
|
|
7501
|
+
"readonly": true,
|
|
7502
|
+
"default": "new Set<Waiter>()"
|
|
7503
|
+
},
|
|
7504
|
+
{
|
|
7505
|
+
"kind": "field",
|
|
7506
|
+
"name": "teardown",
|
|
7507
|
+
"type": {
|
|
7508
|
+
"text": "Array<() => void>"
|
|
7509
|
+
},
|
|
7510
|
+
"privacy": "private",
|
|
7511
|
+
"readonly": true,
|
|
7512
|
+
"default": "[]"
|
|
7513
|
+
},
|
|
7514
|
+
{
|
|
7515
|
+
"kind": "field",
|
|
7516
|
+
"name": "seen",
|
|
7517
|
+
"type": {
|
|
7518
|
+
"text": "number"
|
|
7519
|
+
},
|
|
7520
|
+
"privacy": "private",
|
|
7521
|
+
"description": "How much of the driver's history has been reported as messages."
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
"kind": "field",
|
|
7525
|
+
"name": "turn",
|
|
7526
|
+
"type": {
|
|
7527
|
+
"text": "Promise<unknown> | undefined"
|
|
7528
|
+
},
|
|
7529
|
+
"privacy": "private",
|
|
7530
|
+
"description": "The `send` in flight, if any."
|
|
7531
|
+
},
|
|
7532
|
+
{
|
|
7533
|
+
"kind": "field",
|
|
7534
|
+
"name": "open",
|
|
7535
|
+
"type": {
|
|
7536
|
+
"text": "{ start: number; reason?: string; failureReason?: string } | undefined"
|
|
7537
|
+
},
|
|
7538
|
+
"privacy": "private",
|
|
7539
|
+
"description": "The turn that is running, whoever started it, until the driver has been idle for a beat:\n`start` is where its messages begin in the history. Its `reason` and `failureReason` are what\nended it, when something said."
|
|
7540
|
+
},
|
|
7541
|
+
{
|
|
7542
|
+
"kind": "field",
|
|
7543
|
+
"name": "base",
|
|
7544
|
+
"type": {
|
|
7545
|
+
"text": "number"
|
|
7546
|
+
},
|
|
7547
|
+
"privacy": "private",
|
|
7548
|
+
"description": "History length when the last turn closed: where a turn the session did not start begins."
|
|
7549
|
+
},
|
|
7550
|
+
{
|
|
7551
|
+
"kind": "field",
|
|
7552
|
+
"name": "quiesceTimer",
|
|
7553
|
+
"type": {
|
|
7554
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
7555
|
+
},
|
|
7556
|
+
"privacy": "private"
|
|
7557
|
+
},
|
|
7558
|
+
{
|
|
7559
|
+
"kind": "field",
|
|
7560
|
+
"name": "poller",
|
|
7561
|
+
"type": {
|
|
7562
|
+
"text": "ReturnType<typeof setInterval> | undefined"
|
|
7563
|
+
},
|
|
7564
|
+
"privacy": "private"
|
|
7565
|
+
},
|
|
7566
|
+
{
|
|
7567
|
+
"kind": "field",
|
|
7568
|
+
"name": "persistence",
|
|
7569
|
+
"type": {
|
|
7570
|
+
"text": "HeadlessPersistenceBinding | undefined"
|
|
7571
|
+
},
|
|
7572
|
+
"privacy": "private",
|
|
7573
|
+
"readonly": true
|
|
7574
|
+
},
|
|
7575
|
+
{
|
|
7576
|
+
"kind": "field",
|
|
7577
|
+
"name": "lastProbe",
|
|
7578
|
+
"type": {
|
|
7579
|
+
"text": "Record<string, unknown>"
|
|
7580
|
+
},
|
|
7581
|
+
"privacy": "private",
|
|
7582
|
+
"default": "{}"
|
|
7583
|
+
},
|
|
7584
|
+
{
|
|
7585
|
+
"kind": "field",
|
|
7586
|
+
"name": "lastAutopilot",
|
|
7587
|
+
"type": {
|
|
7588
|
+
"text": "string"
|
|
7589
|
+
},
|
|
7590
|
+
"privacy": "private",
|
|
7591
|
+
"default": "''"
|
|
7592
|
+
},
|
|
7593
|
+
{
|
|
7594
|
+
"kind": "field",
|
|
7595
|
+
"name": "disposed",
|
|
7596
|
+
"type": {
|
|
7597
|
+
"text": "boolean"
|
|
7598
|
+
},
|
|
7599
|
+
"privacy": "private",
|
|
7600
|
+
"default": "false"
|
|
7601
|
+
},
|
|
7602
|
+
{
|
|
7603
|
+
"kind": "field",
|
|
7604
|
+
"name": "restoring",
|
|
7605
|
+
"type": {
|
|
7606
|
+
"text": "boolean"
|
|
7607
|
+
},
|
|
7608
|
+
"privacy": "private",
|
|
7609
|
+
"default": "false",
|
|
7610
|
+
"description": "While a restore loads the history, which is not new activity."
|
|
7611
|
+
},
|
|
7612
|
+
{
|
|
7613
|
+
"kind": "method",
|
|
7614
|
+
"name": "send",
|
|
7615
|
+
"return": {
|
|
7616
|
+
"type": {
|
|
7617
|
+
"text": "HeadlessResult"
|
|
7618
|
+
}
|
|
7619
|
+
},
|
|
7620
|
+
"parameters": [
|
|
7621
|
+
{
|
|
7622
|
+
"name": "text",
|
|
7623
|
+
"type": {
|
|
7624
|
+
"text": "string"
|
|
7625
|
+
}
|
|
7626
|
+
},
|
|
7627
|
+
{
|
|
7628
|
+
"name": "options",
|
|
7629
|
+
"default": "{}",
|
|
7630
|
+
"type": {
|
|
7631
|
+
"text": "HeadlessSendOptions"
|
|
7632
|
+
}
|
|
7633
|
+
}
|
|
7634
|
+
],
|
|
7635
|
+
"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."
|
|
7636
|
+
},
|
|
7637
|
+
{
|
|
7638
|
+
"kind": "method",
|
|
7639
|
+
"name": "act",
|
|
7640
|
+
"return": {
|
|
7641
|
+
"type": {
|
|
7642
|
+
"text": "Promise<HeadlessActResult>"
|
|
7643
|
+
}
|
|
7644
|
+
},
|
|
7645
|
+
"parameters": [
|
|
7646
|
+
{
|
|
7647
|
+
"name": "interactionId",
|
|
7648
|
+
"type": {
|
|
7649
|
+
"text": "string"
|
|
7650
|
+
}
|
|
7651
|
+
},
|
|
7652
|
+
{
|
|
7653
|
+
"name": "action",
|
|
7654
|
+
"type": {
|
|
7655
|
+
"text": "string | number"
|
|
7656
|
+
}
|
|
7657
|
+
},
|
|
7658
|
+
{
|
|
7659
|
+
"name": "args",
|
|
7660
|
+
"default": "{}",
|
|
7661
|
+
"type": {
|
|
7662
|
+
"text": "HeadlessActArgs"
|
|
7663
|
+
}
|
|
7664
|
+
}
|
|
7665
|
+
],
|
|
7666
|
+
"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."
|
|
7667
|
+
},
|
|
7668
|
+
{
|
|
7669
|
+
"kind": "method",
|
|
7670
|
+
"name": "resolve",
|
|
7671
|
+
"return": {
|
|
7672
|
+
"type": {
|
|
7673
|
+
"text": "HeadlessResult"
|
|
7674
|
+
}
|
|
7675
|
+
},
|
|
7676
|
+
"parameters": [
|
|
7677
|
+
{
|
|
7678
|
+
"name": "interactionId",
|
|
7679
|
+
"type": {
|
|
7680
|
+
"text": "string"
|
|
7681
|
+
}
|
|
7682
|
+
},
|
|
7683
|
+
{
|
|
7684
|
+
"name": "result",
|
|
7685
|
+
"type": {
|
|
7686
|
+
"text": "unknown"
|
|
7687
|
+
}
|
|
7688
|
+
}
|
|
7689
|
+
],
|
|
7690
|
+
"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."
|
|
7691
|
+
},
|
|
7692
|
+
{
|
|
7693
|
+
"kind": "method",
|
|
7694
|
+
"name": "read",
|
|
7695
|
+
"return": {
|
|
7696
|
+
"type": {
|
|
7697
|
+
"text": "Promise<HeadlessReadResult>"
|
|
7698
|
+
}
|
|
7699
|
+
},
|
|
7700
|
+
"parameters": [
|
|
7701
|
+
{
|
|
7702
|
+
"name": "interactionId",
|
|
7703
|
+
"type": {
|
|
7704
|
+
"text": "string"
|
|
7705
|
+
}
|
|
7706
|
+
},
|
|
7707
|
+
{
|
|
7708
|
+
"name": "request",
|
|
7709
|
+
"default": "{}",
|
|
7710
|
+
"type": {
|
|
7711
|
+
"text": "HeadlessReadRequest"
|
|
7712
|
+
}
|
|
7713
|
+
}
|
|
7714
|
+
],
|
|
7715
|
+
"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."
|
|
7716
|
+
},
|
|
7717
|
+
{
|
|
7718
|
+
"kind": "method",
|
|
7719
|
+
"name": "wait",
|
|
7720
|
+
"return": {
|
|
7721
|
+
"type": {
|
|
7722
|
+
"text": "Promise<HeadlessWaitResult>"
|
|
7723
|
+
}
|
|
7724
|
+
},
|
|
7725
|
+
"parameters": [
|
|
7726
|
+
{
|
|
7727
|
+
"name": "request",
|
|
7728
|
+
"type": {
|
|
7729
|
+
"text": "HeadlessWaitRequest"
|
|
7730
|
+
}
|
|
7731
|
+
}
|
|
7732
|
+
],
|
|
7733
|
+
"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."
|
|
7734
|
+
},
|
|
7735
|
+
{
|
|
7736
|
+
"kind": "method",
|
|
7737
|
+
"name": "eventsSince",
|
|
7738
|
+
"return": {
|
|
7739
|
+
"type": {
|
|
7740
|
+
"text": "readonly HeadlessEvent[]"
|
|
7741
|
+
}
|
|
7742
|
+
},
|
|
7743
|
+
"parameters": [
|
|
7744
|
+
{
|
|
7745
|
+
"name": "since",
|
|
7746
|
+
"default": "0"
|
|
7747
|
+
}
|
|
7748
|
+
],
|
|
7749
|
+
"description": "Every event logged after `since` (default: all the log keeps), without waiting."
|
|
7750
|
+
},
|
|
7751
|
+
{
|
|
7752
|
+
"kind": "method",
|
|
7753
|
+
"name": "state",
|
|
7754
|
+
"return": {
|
|
7755
|
+
"type": {
|
|
7756
|
+
"text": "HeadlessState"
|
|
7757
|
+
}
|
|
7758
|
+
},
|
|
7759
|
+
"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."
|
|
7760
|
+
},
|
|
7761
|
+
{
|
|
7762
|
+
"kind": "method",
|
|
7763
|
+
"name": "restore",
|
|
7764
|
+
"return": {
|
|
7765
|
+
"type": {
|
|
7766
|
+
"text": "Promise<HeadlessRestoreOutcome | undefined>"
|
|
7767
|
+
}
|
|
7768
|
+
},
|
|
7769
|
+
"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`."
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
"kind": "method",
|
|
7773
|
+
"name": "flush",
|
|
7774
|
+
"return": {
|
|
7775
|
+
"type": {
|
|
7776
|
+
"text": "Promise<void>"
|
|
7777
|
+
}
|
|
7778
|
+
},
|
|
7779
|
+
"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`."
|
|
7780
|
+
},
|
|
7781
|
+
{
|
|
7782
|
+
"kind": "method",
|
|
7783
|
+
"name": "debugLog",
|
|
7784
|
+
"return": {
|
|
7785
|
+
"type": {
|
|
7786
|
+
"text": "Promise<DebugLog>"
|
|
7787
|
+
}
|
|
7788
|
+
},
|
|
7789
|
+
"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."
|
|
7790
|
+
},
|
|
7791
|
+
{
|
|
7792
|
+
"kind": "method",
|
|
7793
|
+
"name": "stop",
|
|
7794
|
+
"return": {
|
|
7795
|
+
"type": {
|
|
7796
|
+
"text": "HeadlessResult"
|
|
7797
|
+
}
|
|
7798
|
+
},
|
|
7799
|
+
"description": "Stop the running turn, when the driver can."
|
|
7800
|
+
},
|
|
7801
|
+
{
|
|
7802
|
+
"kind": "method",
|
|
7803
|
+
"name": "autopilot",
|
|
7804
|
+
"return": {
|
|
7805
|
+
"type": {
|
|
7806
|
+
"text": "HeadlessResult"
|
|
7807
|
+
}
|
|
7808
|
+
},
|
|
7809
|
+
"parameters": [
|
|
7810
|
+
{
|
|
7811
|
+
"name": "mode",
|
|
7812
|
+
"type": {
|
|
7813
|
+
"text": "'pause' | 'resume' | 'stop' | 'keepPaused'"
|
|
7814
|
+
}
|
|
7815
|
+
},
|
|
7816
|
+
{
|
|
7817
|
+
"name": "interactionId",
|
|
7818
|
+
"optional": true,
|
|
7819
|
+
"type": {
|
|
7820
|
+
"text": "string"
|
|
7821
|
+
}
|
|
7822
|
+
}
|
|
7823
|
+
],
|
|
7824
|
+
"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."
|
|
7825
|
+
},
|
|
7826
|
+
{
|
|
7827
|
+
"kind": "method",
|
|
7828
|
+
"name": "keepPaused",
|
|
7829
|
+
"privacy": "private",
|
|
7830
|
+
"return": {
|
|
7831
|
+
"type": {
|
|
7832
|
+
"text": "HeadlessResult"
|
|
7833
|
+
}
|
|
7834
|
+
},
|
|
7835
|
+
"parameters": [
|
|
7836
|
+
{
|
|
7837
|
+
"name": "host",
|
|
7838
|
+
"type": {
|
|
7839
|
+
"text": "AutopilotLike"
|
|
7840
|
+
}
|
|
7841
|
+
},
|
|
7842
|
+
{
|
|
7843
|
+
"name": "interactionId",
|
|
7844
|
+
"type": {
|
|
7845
|
+
"text": "string | undefined"
|
|
7846
|
+
}
|
|
7847
|
+
}
|
|
7848
|
+
]
|
|
7849
|
+
},
|
|
7850
|
+
{
|
|
7851
|
+
"kind": "method",
|
|
7852
|
+
"name": "dispose",
|
|
7853
|
+
"return": {
|
|
7854
|
+
"type": {
|
|
7855
|
+
"text": "void"
|
|
7856
|
+
}
|
|
7857
|
+
},
|
|
7858
|
+
"description": "Detach: remove the interceptor and every subscription, and release anyone waiting."
|
|
7859
|
+
},
|
|
7860
|
+
{
|
|
7861
|
+
"kind": "method",
|
|
7862
|
+
"name": "listen",
|
|
7863
|
+
"privacy": "private",
|
|
7864
|
+
"return": {
|
|
7865
|
+
"type": {
|
|
7866
|
+
"text": "void"
|
|
7867
|
+
}
|
|
7868
|
+
},
|
|
7869
|
+
"parameters": [
|
|
7870
|
+
{
|
|
7871
|
+
"name": "type",
|
|
7872
|
+
"type": {
|
|
7873
|
+
"text": "string"
|
|
7874
|
+
}
|
|
7875
|
+
},
|
|
7876
|
+
{
|
|
7877
|
+
"name": "handler",
|
|
7878
|
+
"type": {
|
|
7879
|
+
"text": "(e: Event) => void"
|
|
7880
|
+
}
|
|
7881
|
+
}
|
|
7882
|
+
]
|
|
7883
|
+
},
|
|
7884
|
+
{
|
|
7885
|
+
"kind": "method",
|
|
7886
|
+
"name": "history",
|
|
7887
|
+
"privacy": "private",
|
|
7888
|
+
"return": {
|
|
7889
|
+
"type": {
|
|
7890
|
+
"text": "readonly ChatMessage[]"
|
|
7891
|
+
}
|
|
7892
|
+
}
|
|
7893
|
+
},
|
|
7894
|
+
{
|
|
7895
|
+
"kind": "method",
|
|
7896
|
+
"name": "onOpened",
|
|
7897
|
+
"privacy": "private",
|
|
7898
|
+
"return": {
|
|
7899
|
+
"type": {
|
|
7900
|
+
"text": "void"
|
|
7901
|
+
}
|
|
7902
|
+
},
|
|
7903
|
+
"parameters": [
|
|
7904
|
+
{
|
|
7905
|
+
"name": "opened",
|
|
7906
|
+
"type": {
|
|
7907
|
+
"text": "InteractionOpened"
|
|
7908
|
+
}
|
|
7909
|
+
}
|
|
7910
|
+
],
|
|
7911
|
+
"description": "An interaction opened: watch it. Who holds it is not decided yet, so it is reported later."
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
"kind": "method",
|
|
7915
|
+
"name": "onSettled",
|
|
7916
|
+
"privacy": "private",
|
|
7917
|
+
"return": {
|
|
7918
|
+
"type": {
|
|
7919
|
+
"text": "void"
|
|
7920
|
+
}
|
|
7921
|
+
},
|
|
7922
|
+
"parameters": [
|
|
7923
|
+
{
|
|
7924
|
+
"name": "detail",
|
|
7925
|
+
"type": {
|
|
7926
|
+
"text": "{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }"
|
|
7927
|
+
}
|
|
7928
|
+
}
|
|
7929
|
+
],
|
|
7930
|
+
"description": "The driver says an interaction settled, by whatever route."
|
|
7931
|
+
},
|
|
7932
|
+
{
|
|
7933
|
+
"kind": "method",
|
|
7934
|
+
"name": "onEnded",
|
|
7935
|
+
"privacy": "private",
|
|
7936
|
+
"return": {
|
|
7937
|
+
"type": {
|
|
7938
|
+
"text": "void"
|
|
7939
|
+
}
|
|
7940
|
+
},
|
|
7941
|
+
"parameters": [
|
|
7942
|
+
{
|
|
7943
|
+
"name": "t",
|
|
7944
|
+
"type": {
|
|
7945
|
+
"text": "Tracked"
|
|
7946
|
+
}
|
|
7947
|
+
}
|
|
7948
|
+
],
|
|
7949
|
+
"description": "The interaction's context was disposed: if nothing said it settled, say it did."
|
|
7950
|
+
},
|
|
7951
|
+
{
|
|
7952
|
+
"kind": "method",
|
|
7953
|
+
"name": "settle",
|
|
7954
|
+
"privacy": "private",
|
|
7955
|
+
"return": {
|
|
7956
|
+
"type": {
|
|
7957
|
+
"text": "void"
|
|
7958
|
+
}
|
|
7959
|
+
},
|
|
7960
|
+
"parameters": [
|
|
7961
|
+
{
|
|
7962
|
+
"name": "t",
|
|
7963
|
+
"type": {
|
|
7964
|
+
"text": "Tracked"
|
|
7965
|
+
}
|
|
7966
|
+
},
|
|
7967
|
+
{
|
|
7968
|
+
"name": "how",
|
|
7969
|
+
"type": {
|
|
7970
|
+
"text": "{ answeredBy?: string; resolvedItself?: boolean; auto?: boolean; raw?: boolean }"
|
|
7971
|
+
}
|
|
7972
|
+
}
|
|
7973
|
+
]
|
|
7974
|
+
},
|
|
7975
|
+
{
|
|
7976
|
+
"kind": "method",
|
|
7977
|
+
"name": "release",
|
|
7978
|
+
"privacy": "private",
|
|
7979
|
+
"return": {
|
|
7980
|
+
"type": {
|
|
7981
|
+
"text": "void"
|
|
7982
|
+
}
|
|
7983
|
+
},
|
|
7984
|
+
"parameters": [
|
|
7985
|
+
{
|
|
7986
|
+
"name": "t",
|
|
7987
|
+
"type": {
|
|
7988
|
+
"text": "Tracked"
|
|
7989
|
+
}
|
|
7990
|
+
}
|
|
7991
|
+
]
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
"kind": "method",
|
|
7995
|
+
"name": "onHistory",
|
|
7996
|
+
"privacy": "private",
|
|
7997
|
+
"return": {
|
|
7998
|
+
"type": {
|
|
7999
|
+
"text": "void"
|
|
8000
|
+
}
|
|
8001
|
+
},
|
|
8002
|
+
"description": "New messages in the driver's history: report what the person would see of them."
|
|
8003
|
+
},
|
|
8004
|
+
{
|
|
8005
|
+
"kind": "method",
|
|
8006
|
+
"name": "reportMessages",
|
|
8007
|
+
"privacy": "private",
|
|
8008
|
+
"return": {
|
|
8009
|
+
"type": {
|
|
8010
|
+
"text": "void"
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
},
|
|
8014
|
+
{
|
|
8015
|
+
"kind": "method",
|
|
8016
|
+
"name": "onAutopilot",
|
|
8017
|
+
"privacy": "private",
|
|
8018
|
+
"return": {
|
|
8019
|
+
"type": {
|
|
8020
|
+
"text": "void"
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
},
|
|
8024
|
+
{
|
|
8025
|
+
"kind": "method",
|
|
8026
|
+
"name": "autopilotSignature",
|
|
8027
|
+
"privacy": "private",
|
|
8028
|
+
"return": {
|
|
8029
|
+
"type": {
|
|
8030
|
+
"text": "string"
|
|
8031
|
+
}
|
|
8032
|
+
}
|
|
8033
|
+
},
|
|
8034
|
+
{
|
|
8035
|
+
"kind": "method",
|
|
8036
|
+
"name": "describe",
|
|
8037
|
+
"privacy": "private",
|
|
8038
|
+
"return": {
|
|
8039
|
+
"type": {
|
|
8040
|
+
"text": "InteractionDescription"
|
|
8041
|
+
}
|
|
8042
|
+
},
|
|
8043
|
+
"parameters": [
|
|
8044
|
+
{
|
|
8045
|
+
"name": "t",
|
|
8046
|
+
"type": {
|
|
8047
|
+
"text": "Tracked"
|
|
8048
|
+
}
|
|
8049
|
+
}
|
|
8050
|
+
]
|
|
8051
|
+
},
|
|
8052
|
+
{
|
|
8053
|
+
"kind": "method",
|
|
8054
|
+
"name": "evaluate",
|
|
8055
|
+
"privacy": "private",
|
|
8056
|
+
"return": {
|
|
8057
|
+
"type": {
|
|
8058
|
+
"text": "void"
|
|
8059
|
+
}
|
|
8060
|
+
},
|
|
8061
|
+
"parameters": [
|
|
8062
|
+
{
|
|
8063
|
+
"name": "t",
|
|
8064
|
+
"type": {
|
|
8065
|
+
"text": "Tracked"
|
|
8066
|
+
}
|
|
8067
|
+
}
|
|
8068
|
+
],
|
|
8069
|
+
"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."
|
|
8070
|
+
},
|
|
8071
|
+
{
|
|
8072
|
+
"kind": "method",
|
|
8073
|
+
"name": "autoSettle",
|
|
8074
|
+
"privacy": "private",
|
|
8075
|
+
"return": {
|
|
8076
|
+
"type": {
|
|
8077
|
+
"text": "boolean"
|
|
8078
|
+
}
|
|
8079
|
+
},
|
|
8080
|
+
"parameters": [
|
|
8081
|
+
{
|
|
8082
|
+
"name": "t",
|
|
8083
|
+
"type": {
|
|
8084
|
+
"text": "Tracked"
|
|
8085
|
+
}
|
|
8086
|
+
}
|
|
8087
|
+
],
|
|
8088
|
+
"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."
|
|
8089
|
+
},
|
|
8090
|
+
{
|
|
8091
|
+
"kind": "method",
|
|
8092
|
+
"name": "readTool",
|
|
8093
|
+
"privacy": "private",
|
|
8094
|
+
"return": {
|
|
8095
|
+
"type": {
|
|
8096
|
+
"text": "Promise<HeadlessReadResult>"
|
|
8097
|
+
}
|
|
8098
|
+
},
|
|
8099
|
+
"parameters": [
|
|
8100
|
+
{
|
|
8101
|
+
"name": "t",
|
|
8102
|
+
"type": {
|
|
8103
|
+
"text": "Tracked"
|
|
8104
|
+
}
|
|
8105
|
+
},
|
|
8106
|
+
{
|
|
8107
|
+
"name": "name",
|
|
8108
|
+
"type": {
|
|
8109
|
+
"text": "string"
|
|
8110
|
+
}
|
|
8111
|
+
},
|
|
8112
|
+
{
|
|
8113
|
+
"name": "args",
|
|
8114
|
+
"type": {
|
|
8115
|
+
"text": "Record<string, unknown> | undefined"
|
|
8116
|
+
}
|
|
8117
|
+
}
|
|
8118
|
+
]
|
|
8119
|
+
},
|
|
8017
8120
|
{
|
|
8018
|
-
"
|
|
8019
|
-
"
|
|
8020
|
-
|
|
8021
|
-
|
|
8121
|
+
"kind": "method",
|
|
8122
|
+
"name": "observe",
|
|
8123
|
+
"privacy": "private",
|
|
8124
|
+
"return": {
|
|
8125
|
+
"type": {
|
|
8126
|
+
"text": "void"
|
|
8127
|
+
}
|
|
8128
|
+
},
|
|
8129
|
+
"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."
|
|
8022
8130
|
},
|
|
8023
8131
|
{
|
|
8024
|
-
"
|
|
8025
|
-
"
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
"name": "cannotBeChanged",
|
|
8035
|
-
"return": {
|
|
8036
|
-
"type": {
|
|
8037
|
-
"text": "string"
|
|
8038
|
-
}
|
|
8039
|
-
},
|
|
8040
|
-
"parameters": [
|
|
8132
|
+
"kind": "method",
|
|
8133
|
+
"name": "closeTurn",
|
|
8134
|
+
"privacy": "private",
|
|
8135
|
+
"return": {
|
|
8136
|
+
"type": {
|
|
8137
|
+
"text": "void"
|
|
8138
|
+
}
|
|
8139
|
+
},
|
|
8140
|
+
"description": "Report the open turn as ended, unless the driver is busy again."
|
|
8141
|
+
},
|
|
8041
8142
|
{
|
|
8042
|
-
"
|
|
8043
|
-
"
|
|
8044
|
-
|
|
8143
|
+
"kind": "method",
|
|
8144
|
+
"name": "startPolling",
|
|
8145
|
+
"privacy": "private",
|
|
8146
|
+
"return": {
|
|
8147
|
+
"type": {
|
|
8148
|
+
"text": "void"
|
|
8149
|
+
}
|
|
8150
|
+
},
|
|
8151
|
+
"description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
|
|
8152
|
+
},
|
|
8153
|
+
{
|
|
8154
|
+
"kind": "method",
|
|
8155
|
+
"name": "stopPolling",
|
|
8156
|
+
"privacy": "private",
|
|
8157
|
+
"return": {
|
|
8158
|
+
"type": {
|
|
8159
|
+
"text": "void"
|
|
8160
|
+
}
|
|
8045
8161
|
}
|
|
8046
8162
|
},
|
|
8047
8163
|
{
|
|
8048
|
-
"
|
|
8049
|
-
"
|
|
8050
|
-
|
|
8164
|
+
"kind": "method",
|
|
8165
|
+
"name": "logTurn",
|
|
8166
|
+
"privacy": "private",
|
|
8167
|
+
"return": {
|
|
8168
|
+
"type": {
|
|
8169
|
+
"text": "void"
|
|
8170
|
+
}
|
|
8171
|
+
},
|
|
8172
|
+
"parameters": [
|
|
8173
|
+
{
|
|
8174
|
+
"name": "reason",
|
|
8175
|
+
"type": {
|
|
8176
|
+
"text": "string"
|
|
8177
|
+
}
|
|
8178
|
+
},
|
|
8179
|
+
{
|
|
8180
|
+
"name": "failureReason",
|
|
8181
|
+
"type": {
|
|
8182
|
+
"text": "string | undefined"
|
|
8183
|
+
}
|
|
8184
|
+
},
|
|
8185
|
+
{
|
|
8186
|
+
"name": "start",
|
|
8187
|
+
"type": {
|
|
8188
|
+
"text": "number"
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8191
|
+
]
|
|
8192
|
+
},
|
|
8193
|
+
{
|
|
8194
|
+
"kind": "method",
|
|
8195
|
+
"name": "log",
|
|
8196
|
+
"privacy": "private",
|
|
8197
|
+
"return": {
|
|
8198
|
+
"type": {
|
|
8199
|
+
"text": "void"
|
|
8200
|
+
}
|
|
8201
|
+
},
|
|
8202
|
+
"parameters": [
|
|
8203
|
+
{
|
|
8204
|
+
"name": "event",
|
|
8205
|
+
"type": {
|
|
8206
|
+
"text": "NewEvent"
|
|
8207
|
+
}
|
|
8208
|
+
}
|
|
8209
|
+
]
|
|
8210
|
+
},
|
|
8211
|
+
{
|
|
8212
|
+
"kind": "method",
|
|
8213
|
+
"name": "append",
|
|
8214
|
+
"privacy": "private",
|
|
8215
|
+
"return": {
|
|
8216
|
+
"type": {
|
|
8217
|
+
"text": "void"
|
|
8218
|
+
}
|
|
8219
|
+
},
|
|
8220
|
+
"parameters": [
|
|
8221
|
+
{
|
|
8222
|
+
"name": "event",
|
|
8223
|
+
"type": {
|
|
8224
|
+
"text": "NewEvent"
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
8227
|
+
]
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
"kind": "method",
|
|
8231
|
+
"name": "readProbe",
|
|
8232
|
+
"privacy": "private",
|
|
8233
|
+
"return": {
|
|
8234
|
+
"type": {
|
|
8235
|
+
"text": "Record<string, unknown>"
|
|
8236
|
+
}
|
|
8051
8237
|
}
|
|
8238
|
+
},
|
|
8239
|
+
{
|
|
8240
|
+
"kind": "method",
|
|
8241
|
+
"name": "checkProbe",
|
|
8242
|
+
"privacy": "private",
|
|
8243
|
+
"return": {
|
|
8244
|
+
"type": {
|
|
8245
|
+
"text": "void"
|
|
8246
|
+
}
|
|
8247
|
+
},
|
|
8248
|
+
"description": "Read the probe again; a change in any top-level value is a `probe` event."
|
|
8249
|
+
},
|
|
8250
|
+
{
|
|
8251
|
+
"kind": "method",
|
|
8252
|
+
"name": "waited",
|
|
8253
|
+
"privacy": "private",
|
|
8254
|
+
"return": {
|
|
8255
|
+
"type": {
|
|
8256
|
+
"text": "HeadlessWaitResult"
|
|
8257
|
+
}
|
|
8258
|
+
},
|
|
8259
|
+
"parameters": [
|
|
8260
|
+
{
|
|
8261
|
+
"name": "since",
|
|
8262
|
+
"type": {
|
|
8263
|
+
"text": "number"
|
|
8264
|
+
}
|
|
8265
|
+
},
|
|
8266
|
+
{
|
|
8267
|
+
"name": "status",
|
|
8268
|
+
"type": {
|
|
8269
|
+
"text": "HeadlessWaitResult['status']"
|
|
8270
|
+
}
|
|
8271
|
+
}
|
|
8272
|
+
]
|
|
8052
8273
|
}
|
|
8053
|
-
]
|
|
8054
|
-
"description": "What a modify says about a new value it cannot check."
|
|
8274
|
+
]
|
|
8055
8275
|
}
|
|
8056
8276
|
],
|
|
8057
8277
|
"exports": [
|
|
8058
8278
|
{
|
|
8059
8279
|
"kind": "js",
|
|
8060
|
-
"name": "
|
|
8280
|
+
"name": "HeadlessSession",
|
|
8281
|
+
"declaration": {
|
|
8282
|
+
"name": "HeadlessSession",
|
|
8283
|
+
"module": "src/headless/headless-session.ts"
|
|
8284
|
+
}
|
|
8285
|
+
}
|
|
8286
|
+
]
|
|
8287
|
+
},
|
|
8288
|
+
{
|
|
8289
|
+
"kind": "javascript-module",
|
|
8290
|
+
"path": "src/headless/headless.types.ts",
|
|
8291
|
+
"declarations": [],
|
|
8292
|
+
"exports": []
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
"kind": "javascript-module",
|
|
8296
|
+
"path": "src/headless/index.ts",
|
|
8297
|
+
"declarations": [],
|
|
8298
|
+
"exports": [
|
|
8299
|
+
{
|
|
8300
|
+
"kind": "js",
|
|
8301
|
+
"name": "describeInteraction",
|
|
8302
|
+
"declaration": {
|
|
8303
|
+
"name": "describeInteraction",
|
|
8304
|
+
"module": "./describe-interaction"
|
|
8305
|
+
}
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
"kind": "js",
|
|
8309
|
+
"name": "headlessCurrentDebugLog",
|
|
8061
8310
|
"declaration": {
|
|
8062
|
-
"name": "
|
|
8063
|
-
"module": "
|
|
8311
|
+
"name": "headlessCurrentDebugLog",
|
|
8312
|
+
"module": "./headless-debug"
|
|
8064
8313
|
}
|
|
8065
8314
|
},
|
|
8066
8315
|
{
|
|
8067
8316
|
"kind": "js",
|
|
8068
|
-
"name": "
|
|
8317
|
+
"name": "headlessDiagnosticEntries",
|
|
8069
8318
|
"declaration": {
|
|
8070
|
-
"name": "
|
|
8071
|
-
"module": "
|
|
8319
|
+
"name": "headlessDiagnosticEntries",
|
|
8320
|
+
"module": "./headless-debug"
|
|
8072
8321
|
}
|
|
8073
8322
|
},
|
|
8074
8323
|
{
|
|
8075
8324
|
"kind": "js",
|
|
8076
|
-
"name": "
|
|
8325
|
+
"name": "headlessMetaSnapshot",
|
|
8077
8326
|
"declaration": {
|
|
8078
|
-
"name": "
|
|
8079
|
-
"module": "
|
|
8327
|
+
"name": "headlessMetaSnapshot",
|
|
8328
|
+
"module": "./headless-debug"
|
|
8080
8329
|
}
|
|
8081
|
-
}
|
|
8082
|
-
]
|
|
8083
|
-
},
|
|
8084
|
-
{
|
|
8085
|
-
"kind": "javascript-module",
|
|
8086
|
-
"path": "src/genesis/reference-existence.ts",
|
|
8087
|
-
"declarations": [
|
|
8330
|
+
},
|
|
8088
8331
|
{
|
|
8089
|
-
"kind": "
|
|
8090
|
-
"name": "
|
|
8091
|
-
"
|
|
8092
|
-
"
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
"description": "The most distinct values one call may check."
|
|
8332
|
+
"kind": "js",
|
|
8333
|
+
"name": "HeadlessSession",
|
|
8334
|
+
"declaration": {
|
|
8335
|
+
"name": "HeadlessSession",
|
|
8336
|
+
"module": "./headless-session"
|
|
8337
|
+
}
|
|
8096
8338
|
},
|
|
8097
8339
|
{
|
|
8098
|
-
"kind": "
|
|
8099
|
-
"name": "
|
|
8100
|
-
"
|
|
8101
|
-
"
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
"parameters": [
|
|
8106
|
-
{
|
|
8107
|
-
"name": "rows",
|
|
8108
|
-
"type": {
|
|
8109
|
-
"text": "readonly T[]"
|
|
8110
|
-
}
|
|
8111
|
-
},
|
|
8112
|
-
{
|
|
8113
|
-
"name": "problems",
|
|
8114
|
-
"type": {
|
|
8115
|
-
"text": "ReadonlyMap<number, string[]>"
|
|
8116
|
-
}
|
|
8117
|
-
}
|
|
8118
|
-
],
|
|
8119
|
-
"description": "The rows with what the check found added to their problems."
|
|
8120
|
-
}
|
|
8121
|
-
],
|
|
8122
|
-
"exports": [
|
|
8340
|
+
"kind": "js",
|
|
8341
|
+
"name": "AutopilotLike",
|
|
8342
|
+
"declaration": {
|
|
8343
|
+
"name": "AutopilotLike",
|
|
8344
|
+
"module": "./headless.types"
|
|
8345
|
+
}
|
|
8346
|
+
},
|
|
8123
8347
|
{
|
|
8124
8348
|
"kind": "js",
|
|
8125
|
-
"name": "
|
|
8349
|
+
"name": "DescribedAction",
|
|
8126
8350
|
"declaration": {
|
|
8127
|
-
"name": "
|
|
8128
|
-
"module": "
|
|
8351
|
+
"name": "DescribedAction",
|
|
8352
|
+
"module": "./headless.types"
|
|
8129
8353
|
}
|
|
8130
8354
|
},
|
|
8131
8355
|
{
|
|
8132
8356
|
"kind": "js",
|
|
8133
|
-
"name": "
|
|
8357
|
+
"name": "DescribeInteractionInput",
|
|
8134
8358
|
"declaration": {
|
|
8135
|
-
"name": "
|
|
8136
|
-
"module": "
|
|
8359
|
+
"name": "DescribeInteractionInput",
|
|
8360
|
+
"module": "./headless.types"
|
|
8137
8361
|
}
|
|
8138
|
-
}
|
|
8139
|
-
]
|
|
8140
|
-
},
|
|
8141
|
-
{
|
|
8142
|
-
"kind": "javascript-module",
|
|
8143
|
-
"path": "src/genesis/register-genesis-assistant.ts",
|
|
8144
|
-
"declarations": [
|
|
8362
|
+
},
|
|
8145
8363
|
{
|
|
8146
|
-
"kind": "
|
|
8147
|
-
"name": "
|
|
8148
|
-
"
|
|
8149
|
-
"
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
"description": "The name of the agent registerGenesisAssistant builds."
|
|
8364
|
+
"kind": "js",
|
|
8365
|
+
"name": "HeadlessActArgs",
|
|
8366
|
+
"declaration": {
|
|
8367
|
+
"name": "HeadlessActArgs",
|
|
8368
|
+
"module": "./headless.types"
|
|
8369
|
+
}
|
|
8153
8370
|
},
|
|
8154
8371
|
{
|
|
8155
|
-
"kind": "
|
|
8156
|
-
"name": "
|
|
8157
|
-
"
|
|
8158
|
-
"
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
"parameters": [
|
|
8163
|
-
{
|
|
8164
|
-
"name": "options",
|
|
8165
|
-
"type": {
|
|
8166
|
-
"text": "RegisterGenesisAssistantOptions"
|
|
8167
|
-
}
|
|
8168
|
-
}
|
|
8169
|
-
],
|
|
8170
|
-
"description": "Sets up the AI assistant for a Genesis app from its generated AI config: providers by tier,\nand one agent whose tools read the app's resources."
|
|
8171
|
-
}
|
|
8172
|
-
],
|
|
8173
|
-
"exports": [
|
|
8372
|
+
"kind": "js",
|
|
8373
|
+
"name": "HeadlessActResult",
|
|
8374
|
+
"declaration": {
|
|
8375
|
+
"name": "HeadlessActResult",
|
|
8376
|
+
"module": "./headless.types"
|
|
8377
|
+
}
|
|
8378
|
+
},
|
|
8174
8379
|
{
|
|
8175
8380
|
"kind": "js",
|
|
8176
|
-
"name": "
|
|
8381
|
+
"name": "HeadlessDebugOptions",
|
|
8177
8382
|
"declaration": {
|
|
8178
|
-
"name": "
|
|
8179
|
-
"module": "
|
|
8383
|
+
"name": "HeadlessDebugOptions",
|
|
8384
|
+
"module": "./headless.types"
|
|
8180
8385
|
}
|
|
8181
8386
|
},
|
|
8182
8387
|
{
|
|
8183
8388
|
"kind": "js",
|
|
8184
|
-
"name": "
|
|
8389
|
+
"name": "HeadlessEvent",
|
|
8185
8390
|
"declaration": {
|
|
8186
|
-
"name": "
|
|
8187
|
-
"module": "
|
|
8391
|
+
"name": "HeadlessEvent",
|
|
8392
|
+
"module": "./headless.types"
|
|
8188
8393
|
}
|
|
8189
|
-
}
|
|
8190
|
-
]
|
|
8191
|
-
},
|
|
8192
|
-
{
|
|
8193
|
-
"kind": "javascript-module",
|
|
8194
|
-
"path": "src/genesis/resource-tools.ts",
|
|
8195
|
-
"declarations": [
|
|
8394
|
+
},
|
|
8196
8395
|
{
|
|
8197
|
-
"kind": "
|
|
8198
|
-
"name": "
|
|
8199
|
-
"
|
|
8200
|
-
"
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
"description": "The provenance stamped on everything a tool returns from the app (ADR P9). Rows are written by\nthe app's other users, so the model must treat their text as data, never as instructions; the\nsystem prompt says the same thing in words."
|
|
8396
|
+
"kind": "js",
|
|
8397
|
+
"name": "HeadlessEventBase",
|
|
8398
|
+
"declaration": {
|
|
8399
|
+
"name": "HeadlessEventBase",
|
|
8400
|
+
"module": "./headless.types"
|
|
8401
|
+
}
|
|
8204
8402
|
},
|
|
8205
8403
|
{
|
|
8206
|
-
"kind": "
|
|
8207
|
-
"name": "
|
|
8208
|
-
"
|
|
8209
|
-
"
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
"parameters": [
|
|
8214
|
-
{
|
|
8215
|
-
"name": "resources",
|
|
8216
|
-
"type": {
|
|
8217
|
-
"text": "readonly GenesisAiResource[]"
|
|
8218
|
-
}
|
|
8219
|
-
},
|
|
8220
|
-
{
|
|
8221
|
-
"name": "options",
|
|
8222
|
-
"default": "{}",
|
|
8223
|
-
"type": {
|
|
8224
|
-
"text": "GenesisResourceToolsOptions"
|
|
8225
|
-
}
|
|
8226
|
-
}
|
|
8227
|
-
],
|
|
8228
|
-
"description": "Builds the assistant's tools from an app's resources."
|
|
8229
|
-
}
|
|
8230
|
-
],
|
|
8231
|
-
"exports": [
|
|
8404
|
+
"kind": "js",
|
|
8405
|
+
"name": "HeadlessEventType",
|
|
8406
|
+
"declaration": {
|
|
8407
|
+
"name": "HeadlessEventType",
|
|
8408
|
+
"module": "./headless.types"
|
|
8409
|
+
}
|
|
8410
|
+
},
|
|
8232
8411
|
{
|
|
8233
8412
|
"kind": "js",
|
|
8234
|
-
"name": "
|
|
8413
|
+
"name": "HeadlessPersistence",
|
|
8235
8414
|
"declaration": {
|
|
8236
|
-
"name": "
|
|
8237
|
-
"module": "
|
|
8415
|
+
"name": "HeadlessPersistence",
|
|
8416
|
+
"module": "./headless.types"
|
|
8238
8417
|
}
|
|
8239
8418
|
},
|
|
8240
8419
|
{
|
|
8241
8420
|
"kind": "js",
|
|
8242
|
-
"name": "
|
|
8421
|
+
"name": "HeadlessPersistenceBinding",
|
|
8243
8422
|
"declaration": {
|
|
8244
|
-
"name": "
|
|
8245
|
-
"module": "
|
|
8423
|
+
"name": "HeadlessPersistenceBinding",
|
|
8424
|
+
"module": "./headless.types"
|
|
8246
8425
|
}
|
|
8247
|
-
}
|
|
8248
|
-
]
|
|
8249
|
-
},
|
|
8250
|
-
{
|
|
8251
|
-
"kind": "javascript-module",
|
|
8252
|
-
"path": "src/genesis/review-model.ts",
|
|
8253
|
-
"declarations": [
|
|
8426
|
+
},
|
|
8254
8427
|
{
|
|
8255
|
-
"kind": "
|
|
8256
|
-
"name": "
|
|
8257
|
-
"
|
|
8258
|
-
"
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
}
|
|
8263
|
-
],
|
|
8264
|
-
"exports": [
|
|
8428
|
+
"kind": "js",
|
|
8429
|
+
"name": "HeadlessPersistenceHost",
|
|
8430
|
+
"declaration": {
|
|
8431
|
+
"name": "HeadlessPersistenceHost",
|
|
8432
|
+
"module": "./headless.types"
|
|
8433
|
+
}
|
|
8434
|
+
},
|
|
8265
8435
|
{
|
|
8266
8436
|
"kind": "js",
|
|
8267
|
-
"name": "
|
|
8437
|
+
"name": "HeadlessReadRequest",
|
|
8438
|
+
"declaration": {
|
|
8439
|
+
"name": "HeadlessReadRequest",
|
|
8440
|
+
"module": "./headless.types"
|
|
8441
|
+
}
|
|
8442
|
+
},
|
|
8443
|
+
{
|
|
8444
|
+
"kind": "js",
|
|
8445
|
+
"name": "HeadlessReadResult",
|
|
8446
|
+
"declaration": {
|
|
8447
|
+
"name": "HeadlessReadResult",
|
|
8448
|
+
"module": "./headless.types"
|
|
8449
|
+
}
|
|
8450
|
+
},
|
|
8451
|
+
{
|
|
8452
|
+
"kind": "js",
|
|
8453
|
+
"name": "HeadlessResult",
|
|
8268
8454
|
"declaration": {
|
|
8269
|
-
"name": "
|
|
8270
|
-
"module": "./
|
|
8455
|
+
"name": "HeadlessResult",
|
|
8456
|
+
"module": "./headless.types"
|
|
8271
8457
|
}
|
|
8272
8458
|
},
|
|
8273
8459
|
{
|
|
8274
8460
|
"kind": "js",
|
|
8275
|
-
"name": "
|
|
8461
|
+
"name": "HeadlessRestoreOutcome",
|
|
8276
8462
|
"declaration": {
|
|
8277
|
-
"name": "
|
|
8278
|
-
"module": "./
|
|
8463
|
+
"name": "HeadlessRestoreOutcome",
|
|
8464
|
+
"module": "./headless.types"
|
|
8279
8465
|
}
|
|
8280
8466
|
},
|
|
8281
8467
|
{
|
|
8282
8468
|
"kind": "js",
|
|
8283
|
-
"name": "
|
|
8469
|
+
"name": "HeadlessSendOptions",
|
|
8284
8470
|
"declaration": {
|
|
8285
|
-
"name": "
|
|
8286
|
-
"module": "
|
|
8471
|
+
"name": "HeadlessSendOptions",
|
|
8472
|
+
"module": "./headless.types"
|
|
8287
8473
|
}
|
|
8288
|
-
}
|
|
8289
|
-
]
|
|
8290
|
-
},
|
|
8291
|
-
{
|
|
8292
|
-
"kind": "javascript-module",
|
|
8293
|
-
"path": "src/genesis/review-payload.ts",
|
|
8294
|
-
"declarations": [],
|
|
8295
|
-
"exports": []
|
|
8296
|
-
},
|
|
8297
|
-
{
|
|
8298
|
-
"kind": "javascript-module",
|
|
8299
|
-
"path": "src/genesis/row-source.ts",
|
|
8300
|
-
"declarations": [],
|
|
8301
|
-
"exports": []
|
|
8302
|
-
},
|
|
8303
|
-
{
|
|
8304
|
-
"kind": "javascript-module",
|
|
8305
|
-
"path": "src/genesis/serialisable.ts",
|
|
8306
|
-
"declarations": [],
|
|
8307
|
-
"exports": []
|
|
8308
|
-
},
|
|
8309
|
-
{
|
|
8310
|
-
"kind": "javascript-module",
|
|
8311
|
-
"path": "src/genesis/server-text.ts",
|
|
8312
|
-
"declarations": [
|
|
8313
|
-
{
|
|
8314
|
-
"kind": "function",
|
|
8315
|
-
"name": "readsLikeFieldName",
|
|
8316
|
-
"return": {
|
|
8317
|
-
"type": {
|
|
8318
|
-
"text": "boolean"
|
|
8319
|
-
}
|
|
8320
|
-
},
|
|
8321
|
-
"parameters": [
|
|
8322
|
-
{
|
|
8323
|
-
"name": "text",
|
|
8324
|
-
"type": {
|
|
8325
|
-
"text": "string"
|
|
8326
|
-
}
|
|
8327
|
-
}
|
|
8328
|
-
],
|
|
8329
|
-
"description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
|
|
8330
8474
|
},
|
|
8331
|
-
{
|
|
8332
|
-
"kind": "function",
|
|
8333
|
-
"name": "describeFailure",
|
|
8334
|
-
"return": {
|
|
8335
|
-
"type": {
|
|
8336
|
-
"text": "string | undefined"
|
|
8337
|
-
}
|
|
8338
|
-
},
|
|
8339
|
-
"parameters": [
|
|
8340
|
-
{
|
|
8341
|
-
"name": "error",
|
|
8342
|
-
"type": {
|
|
8343
|
-
"text": "unknown"
|
|
8344
|
-
}
|
|
8345
|
-
}
|
|
8346
|
-
],
|
|
8347
|
-
"description": "Whatever a rejection turns out to be, as a sentence."
|
|
8348
|
-
}
|
|
8349
|
-
],
|
|
8350
|
-
"exports": [
|
|
8351
8475
|
{
|
|
8352
8476
|
"kind": "js",
|
|
8353
|
-
"name": "
|
|
8477
|
+
"name": "HeadlessSessionOptions",
|
|
8354
8478
|
"declaration": {
|
|
8355
|
-
"name": "
|
|
8356
|
-
"module": "
|
|
8479
|
+
"name": "HeadlessSessionOptions",
|
|
8480
|
+
"module": "./headless.types"
|
|
8357
8481
|
}
|
|
8358
8482
|
},
|
|
8359
8483
|
{
|
|
8360
8484
|
"kind": "js",
|
|
8361
|
-
"name": "
|
|
8485
|
+
"name": "HeadlessState",
|
|
8362
8486
|
"declaration": {
|
|
8363
|
-
"name": "
|
|
8364
|
-
"module": "
|
|
8487
|
+
"name": "HeadlessState",
|
|
8488
|
+
"module": "./headless.types"
|
|
8365
8489
|
}
|
|
8366
|
-
}
|
|
8367
|
-
]
|
|
8368
|
-
},
|
|
8369
|
-
{
|
|
8370
|
-
"kind": "javascript-module",
|
|
8371
|
-
"path": "src/genesis/type-name.ts",
|
|
8372
|
-
"declarations": [],
|
|
8373
|
-
"exports": []
|
|
8374
|
-
},
|
|
8375
|
-
{
|
|
8376
|
-
"kind": "javascript-module",
|
|
8377
|
-
"path": "src/genesis/types.ts",
|
|
8378
|
-
"declarations": [
|
|
8379
|
-
{
|
|
8380
|
-
"kind": "variable",
|
|
8381
|
-
"name": "GENESIS_EVENT_OPS",
|
|
8382
|
-
"type": {
|
|
8383
|
-
"text": "['insert', 'modify', 'delete', 'custom']"
|
|
8384
|
-
},
|
|
8385
|
-
"default": "['insert', 'modify', 'delete', 'custom']",
|
|
8386
|
-
"description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
|
|
8387
|
-
}
|
|
8388
|
-
],
|
|
8389
|
-
"exports": [
|
|
8490
|
+
},
|
|
8390
8491
|
{
|
|
8391
8492
|
"kind": "js",
|
|
8392
|
-
"name": "
|
|
8493
|
+
"name": "HeadlessWaitRequest",
|
|
8393
8494
|
"declaration": {
|
|
8394
|
-
"name": "
|
|
8395
|
-
"module": "
|
|
8495
|
+
"name": "HeadlessWaitRequest",
|
|
8496
|
+
"module": "./headless.types"
|
|
8396
8497
|
}
|
|
8397
|
-
}
|
|
8398
|
-
]
|
|
8399
|
-
},
|
|
8400
|
-
{
|
|
8401
|
-
"kind": "javascript-module",
|
|
8402
|
-
"path": "src/genesis/value-compare.ts",
|
|
8403
|
-
"declarations": [],
|
|
8404
|
-
"exports": []
|
|
8405
|
-
},
|
|
8406
|
-
{
|
|
8407
|
-
"kind": "javascript-module",
|
|
8408
|
-
"path": "src/genesis/write-commit.ts",
|
|
8409
|
-
"declarations": [],
|
|
8410
|
-
"exports": []
|
|
8411
|
-
},
|
|
8412
|
-
{
|
|
8413
|
-
"kind": "javascript-module",
|
|
8414
|
-
"path": "src/genesis/write-op.ts",
|
|
8415
|
-
"declarations": [],
|
|
8416
|
-
"exports": []
|
|
8417
|
-
},
|
|
8418
|
-
{
|
|
8419
|
-
"kind": "javascript-module",
|
|
8420
|
-
"path": "src/genesis/write-outcome.ts",
|
|
8421
|
-
"declarations": [],
|
|
8422
|
-
"exports": []
|
|
8423
|
-
},
|
|
8424
|
-
{
|
|
8425
|
-
"kind": "javascript-module",
|
|
8426
|
-
"path": "src/genesis/write-payload.ts",
|
|
8427
|
-
"declarations": [
|
|
8428
|
-
{
|
|
8429
|
-
"kind": "function",
|
|
8430
|
-
"name": "buildEventPayload",
|
|
8431
|
-
"return": {
|
|
8432
|
-
"type": {
|
|
8433
|
-
"text": "PayloadResult"
|
|
8434
|
-
}
|
|
8435
|
-
},
|
|
8436
|
-
"parameters": [
|
|
8437
|
-
{
|
|
8438
|
-
"name": "fields",
|
|
8439
|
-
"type": {
|
|
8440
|
-
"text": "readonly GenesisEventField[]"
|
|
8441
|
-
}
|
|
8442
|
-
},
|
|
8443
|
-
{
|
|
8444
|
-
"name": "row",
|
|
8445
|
-
"type": {
|
|
8446
|
-
"text": "unknown"
|
|
8447
|
-
}
|
|
8448
|
-
},
|
|
8449
|
-
{
|
|
8450
|
-
"name": "{ op, preImage, unchecked }",
|
|
8451
|
-
"type": {
|
|
8452
|
-
"text": "BuildPayloadOptions"
|
|
8453
|
-
}
|
|
8454
|
-
}
|
|
8455
|
-
]
|
|
8456
|
-
}
|
|
8457
|
-
],
|
|
8458
|
-
"exports": [
|
|
8498
|
+
},
|
|
8459
8499
|
{
|
|
8460
8500
|
"kind": "js",
|
|
8461
|
-
"name": "
|
|
8501
|
+
"name": "HeadlessWaitResult",
|
|
8462
8502
|
"declaration": {
|
|
8463
|
-
"name": "
|
|
8464
|
-
"module": "
|
|
8503
|
+
"name": "HeadlessWaitResult",
|
|
8504
|
+
"module": "./headless.types"
|
|
8465
8505
|
}
|
|
8466
|
-
}
|
|
8467
|
-
]
|
|
8468
|
-
},
|
|
8469
|
-
{
|
|
8470
|
-
"kind": "javascript-module",
|
|
8471
|
-
"path": "src/genesis/write-plan.ts",
|
|
8472
|
-
"declarations": [
|
|
8473
|
-
{
|
|
8474
|
-
"kind": "variable",
|
|
8475
|
-
"name": "MAX_WRITE_ROWS",
|
|
8476
|
-
"type": {
|
|
8477
|
-
"text": "number"
|
|
8478
|
-
},
|
|
8479
|
-
"default": "25",
|
|
8480
|
-
"description": "A batch a person can actually read before approving it."
|
|
8481
|
-
}
|
|
8482
|
-
],
|
|
8483
|
-
"exports": [
|
|
8506
|
+
},
|
|
8484
8507
|
{
|
|
8485
8508
|
"kind": "js",
|
|
8486
|
-
"name": "
|
|
8509
|
+
"name": "InteractionDescription",
|
|
8487
8510
|
"declaration": {
|
|
8488
|
-
"name": "
|
|
8489
|
-
"module": "
|
|
8511
|
+
"name": "InteractionDescription",
|
|
8512
|
+
"module": "./headless.types"
|
|
8490
8513
|
}
|
|
8491
|
-
}
|
|
8492
|
-
]
|
|
8493
|
-
},
|
|
8494
|
-
{
|
|
8495
|
-
"kind": "javascript-module",
|
|
8496
|
-
"path": "src/genesis/write-tools.ts",
|
|
8497
|
-
"declarations": [
|
|
8498
|
-
{
|
|
8499
|
-
"kind": "function",
|
|
8500
|
-
"name": "createGenesisWriteTools",
|
|
8501
|
-
"return": {
|
|
8502
|
-
"type": {
|
|
8503
|
-
"text": "{\n toolDefinitions: () => Promise<ChatToolDefinition[]>;\n toolHandlers: ChatToolHandlers;\n /**\n * The events that can get a write tool, as far as the config can tell: an event refused for its\n * op, its rowSources entry or a malformed references, or a modify or delete with no row source,\n * is not among them. Their metadata, read when the tools are first listed, can still withhold one.\n */\n writableEvents: readonly string[];\n}"
|
|
8504
|
-
}
|
|
8505
|
-
},
|
|
8506
|
-
"parameters": [
|
|
8507
|
-
{
|
|
8508
|
-
"name": "resources",
|
|
8509
|
-
"type": {
|
|
8510
|
-
"text": "readonly GenesisAiResource[]"
|
|
8511
|
-
}
|
|
8512
|
-
},
|
|
8513
|
-
{
|
|
8514
|
-
"name": "options",
|
|
8515
|
-
"default": "{}",
|
|
8516
|
-
"type": {
|
|
8517
|
-
"text": "GenesisWriteToolsOptions"
|
|
8518
|
-
}
|
|
8519
|
-
}
|
|
8520
|
-
],
|
|
8521
|
-
"description": "Builds the assistant's write tools from an app's event resources."
|
|
8522
|
-
}
|
|
8523
|
-
],
|
|
8524
|
-
"exports": [
|
|
8514
|
+
},
|
|
8525
8515
|
{
|
|
8526
8516
|
"kind": "js",
|
|
8527
|
-
"name": "
|
|
8517
|
+
"name": "PendingSummary",
|
|
8528
8518
|
"declaration": {
|
|
8529
|
-
"name": "
|
|
8530
|
-
"module": "
|
|
8519
|
+
"name": "PendingSummary",
|
|
8520
|
+
"module": "./headless.types"
|
|
8531
8521
|
}
|
|
8532
8522
|
}
|
|
8533
8523
|
]
|
|
8534
8524
|
},
|
|
8535
|
-
{
|
|
8536
|
-
"kind": "javascript-module",
|
|
8537
|
-
"path": "src/genesis/write-turn.ts",
|
|
8538
|
-
"declarations": [],
|
|
8539
|
-
"exports": []
|
|
8540
|
-
},
|
|
8541
8525
|
{
|
|
8542
8526
|
"kind": "javascript-module",
|
|
8543
8527
|
"path": "src/headless-server/compact.ts",
|
|
@@ -13834,7 +13818,7 @@
|
|
|
13834
13818
|
"type": {
|
|
13835
13819
|
"text": "Record<MetaEventType, MetaEventImportance>"
|
|
13836
13820
|
},
|
|
13837
|
-
"default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n // A long action's step starting, finishing, or skipped on resume because it was already done.\n 'interaction.step': 'low',\n // A cut checkpoint taken over after a reload, refused (by sameWork, and kept for a later request;\n // or as malformed), or dropped at flow end, as is the live one.\n 'interaction.checkpoint': 'normal',\n // A claimant handing a pending interaction to the person, or taking it back.\n 'interaction.held': 'normal',\n // A claim on a `userOnly` interaction, refused. Expected when an interceptor claims broadly.\n 'interaction.claim-refused': 'low',\n // A claimant ran one of the surface's actions: what it did, and whether that settled it.\n 'interaction.invoked': 'normal',\n 'autopilot.claimed': 'normal',\n // One per interaction the autopilot does not take, so frequent and mostly expected.\n 'autopilot.declined': 'low',\n 'autopilot.decision-sent': 'low',\n 'autopilot.acted': 'normal',\n 'autopilot.handed-back': 'normal',\n 'autopilot.paused': 'normal',\n 'autopilot.resumed': 'normal',\n // The mode went with the task across a hand-off or its hand-back, rather than ending with the flow.\n 'autopilot.carried': 'normal',\n // The wrapper itself failed: the journey stops being automatic without anyone choosing that.\n 'autopilot.error': 'high',\n // A written answer counted against the step's limit; reaching it withdraws `reply`.\n 'autopilot.refinement': 'normal',\n // The autopilot showed its own widget because a working turn ended needing the person.\n 'autopilot.handback-presented': 'normal',\n // The autopilot was given the whole visible transcript: its first decision, a rebuild, or after\n // a compaction removed the last message it saw.\n 'autopilot.catch-up': 'normal',\n // Autopilot spend that reached no message, so it is missing from the session total.\n 'autopilot.cost-dropped': 'high',\n // A headless session attached to the driver: from here a host with no screen is the person.\n 'headless.attached': 'normal',\n // The host settled an interaction raw, without the widget's own actions: its result went to the\n // tool as given, unchecked by anything the widget would have enforced.\n 'headless.raw-resolved': 'normal',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n // Whether a restored flow will be re-activated and resumed (GENC-1662), and how much the trim cut.\n 'persistence.resume-planned': 'normal',\n // A planned resume that did not run, and why (GENC-1662) — the divider was put back to plain.\n 'persistence.resume-withdrawn': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
|
|
13821
|
+
"default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'turn.finish-guard': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n // A long action's step starting, finishing, or skipped on resume because it was already done.\n 'interaction.step': 'low',\n // A cut checkpoint taken over after a reload, refused (by sameWork, and kept for a later request;\n // or as malformed), or dropped at flow end, as is the live one.\n 'interaction.checkpoint': 'normal',\n // A claimant handing a pending interaction to the person, or taking it back.\n 'interaction.held': 'normal',\n // A claim on a `userOnly` interaction, refused. Expected when an interceptor claims broadly.\n 'interaction.claim-refused': 'low',\n // A claimant ran one of the surface's actions: what it did, and whether that settled it.\n 'interaction.invoked': 'normal',\n 'autopilot.claimed': 'normal',\n // One per interaction the autopilot does not take, so frequent and mostly expected.\n 'autopilot.declined': 'low',\n 'autopilot.decision-sent': 'low',\n 'autopilot.acted': 'normal',\n 'autopilot.handed-back': 'normal',\n 'autopilot.paused': 'normal',\n 'autopilot.resumed': 'normal',\n // The mode went with the task across a hand-off or its hand-back, rather than ending with the flow.\n 'autopilot.carried': 'normal',\n // The wrapper itself failed: the journey stops being automatic without anyone choosing that.\n 'autopilot.error': 'high',\n // A written answer counted against the step's limit; reaching it withdraws `reply`.\n 'autopilot.refinement': 'normal',\n // The autopilot showed its own widget because a working turn ended needing the person.\n 'autopilot.handback-presented': 'normal',\n // The autopilot was given the whole visible transcript: its first decision, a rebuild, or after\n // a compaction removed the last message it saw.\n 'autopilot.catch-up': 'normal',\n // Autopilot spend that reached no message, so it is missing from the session total.\n 'autopilot.cost-dropped': 'high',\n // A headless session attached to the driver: from here a host with no screen is the person.\n 'headless.attached': 'normal',\n // The host settled an interaction raw, without the widget's own actions: its result went to the\n // tool as given, unchecked by anything the widget would have enforced.\n 'headless.raw-resolved': 'normal',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n // Whether a restored flow will be re-activated and resumed (GENC-1662), and how much the trim cut.\n 'persistence.resume-planned': 'normal',\n // A planned resume that did not run, and why (GENC-1662) — the divider was put back to plain.\n 'persistence.resume-withdrawn': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
|
|
13838
13822
|
"description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
|
|
13839
13823
|
},
|
|
13840
13824
|
{
|
|
@@ -13996,7 +13980,7 @@
|
|
|
13996
13980
|
"type": {
|
|
13997
13981
|
"text": "readonly string[]"
|
|
13998
13982
|
},
|
|
13999
|
-
"default": "[\n 'This is an exported debug log for the Genesis AI assistant. Read it top-to-bottom.',\n \"`sessionUsage` is what this session spent: `costUsd` (USD, provider-reported per request and summed, cache discounts already applied) plus the four TOKEN BUCKETS — `uncachedInputTokens`, `cacheReadTokens`, `cacheWriteTokens`, `outputTokens`. Those four are disjoint and safe to add up for a total-tokens figure; the per-message fields further down are NOT (see kind:'message'). Each bucket bills at a different rate — cache reads a fraction of uncached input, cache writes a premium, output highest — so a big token count against a small cost means the prompt was mostly cache hits, not a missing charge. It covers sub-agent turns and spend a compaction banked, so for the CONVERSATION it is the authoritative total: prefer it over re-summing the timeline, which can be short by whatever the ring buffers evicted. The same figures appear under `meta.context`. It is as current as the snapshot it came from: the assistant's own download stamps a fresh one, but a log stitched by another tool can carry an older one — compare `meta.timestamp` with the last timeline entry, and if it is well behind, read these totals as historical and fall back to summing the timeline. One scope caveat: it is derived from the transcript, so it excludes billed calls that produced no message (a blank or refused attempt that was retried — see kind:'turn'.`usage`). Summing the turns can therefore come out HIGHER than this, and the difference is exactly that discarded spend, not a double-count.\",\n \"What 'session' means for those figures: the CURRENT conversation under this session key (a host-supplied per-project id, or the element id + header title when the host supplies none) — which is not necessarily everything in `timeline`. It is re-derived from the live transcript, so it spans page loads only when the chat is being remembered, and a Clear resets it to zero. `timeline` is append-only regardless: it keeps every page load and the pre-Clear conversation, with the session.cleared event as the boundary. So on a long-lived log, read these totals as the latest conversation's and the earlier sections as history — not as a total of the whole file.\",\n '`timeline` is the entire session as one array, already sorted chronologically by `timestamp` (ISO 8601). Every entry has a `kind`.',\n 'Timestamps are millisecond-resolution; entries that share the same millisecond are ordered by a fixed kind rank (event, then turn, then message), which is a heuristic and may not reflect exact causal order within that millisecond — e.g. a user message and the turn it triggered, or a final assistant message and its turn.end event, can appear in either order depending on whether they landed in the same millisecond. Read the logical structure of a turn rather than over-interpreting the micro-ordering of co-timestamped entries of different kinds.',\n \"kind:'message' — the conversation. `role` is user/assistant/tool/system-event/synthetic-user; `agentName` says which agent produced it; `toolCalls`/`toolResult`/`interaction` carry tool and widget activity; `inputTokens`/`outputTokens`/`cost` are per-message LLM usage, where `inputTokens` is the WHOLE prompt for that request and `cacheReadTokens`/`cacheWriteTokens` BREAK IT DOWN rather than add to it — uncached input is `inputTokens` minus those two, and adding the cache fields to `inputTokens` counts the prompt twice. The cache fields are absent on providers that report no cache split (Gemini reports reads only, since implicit caching bills no write) and on messages persisted before they existed, so read them as 0 when missing. Each bucket bills at a different rate — cache reads a fraction of uncached input, cache writes a premium, output highest — so a large token count at a small cost means the prompt was mostly cache hits. `externalCostUsd` is any non-LLM cost a widget reported for its own external service calls (folded into the session cost total alongside `cost`). On model-produced assistant messages, `model` is the concrete model id that generated it (e.g. 'gemini-2.5-flash-lite') and `providerName` is the registry slot it resolved under (e.g. a tier name like 'high'/'low', or the default); together they attribute the message — and any tool calls it carries — to an exact model even across a mid-session vendor/tier switch, where one slot name can map to different models before and after the switch. Both are undefined on any entry that is NOT an LLM response: non-assistant roles (user/tool/system-event) and 'synthetic-user' echoes; assistant interaction/widget entries (empty content carrying an `interaction` — a rendered widget, not a model turn); driver-authored assistant fallbacks (the timeout, repeated-malformed-call, and empty-response apology messages); and messages restored from a session persisted before these fields existed. One partial case: on a genuine model turn whose provider exposes no `getStatus` (or reports no model), `providerName` is still set but `model` alone is undefined. A 'synthetic-user' message is a display-only echo of an interaction outcome (e.g. the answer a widget reported): it renders on the user's side of the chat and `agentName` is the agent that created it, but it is never sent to the LLM — so it has no matching 'turn' and the model learns the outcome only from the corresponding tool result. An echo of an answer an interceptor (such as an autopilot) gave is NOT synthetic-user: see the delegated-messages paragraph.\",\n 'The autopilot (GENC-1660) runs on a driver of its own, and everything it did is harvested into this log: entries with delegate: autopilot and an agentName ending in › Autopilot are its turns (the decision message it was sent is the user message of its turn, so what it was shown is there verbatim; its systemPrompt is its grounding, such as the brief), its tool calls (widget_read, widget_act, hand_back, any read-only tools of its own, and its widget tools — reads with parameters that a widget type declares, routed to the interaction of that type being decided and refused with a reason when none is, offered on every decision so its tool list never changes; while one is open its tail starts with a line naming them) and their results (a read, view or widget tool, is capped at about 20,000 characters, cut with a note asking for less, and leaves its history at the end of the decision as a one-line note), and its own events. Its cost is already in the session total: it is booked as externalCostUsd on the interaction each decision answered, or, for a written question it answered, on the user message it sent on the user behalf (delegate: autopilot), so do not add its turns to that total. Spend that reached no message is recorded as autopilot.cost-dropped instead.',\n \"Delegated messages (GENC-1660): a message with a `delegate` field was written or sent ON THE USER'S BEHALF by a driver decorator, and `delegate` names it (e.g. autopilot). The platform stamps it; nothing else can. It renders as the assistant whatever its role. A delegated `user` message was NOT typed by the user: it is an answer given on their behalf, and the model read it with `delegateFraming` in brackets in front of the content (the stored `content` is the bare text). A delegated `assistant` message is display-only (`excludeFromProvider`): the decorator's narration note, or, when its answer carried no note, the widget's own echo of the answer (its `userMessage`), shown as the assistant and never as the person. A widget answer a decorator gave with a note is not echoed at all: the note already says what was chosen. To tell what the person decided from what was decided for them, read `interaction.answeredBy` and these fields, never the role alone.\",\n \"Sub-agent messages appear inline. When a tool delegates to a sub-agent (via `requestSubAgent`), the sub-agent's whole conversation — its own assistant/tool messages, each with their own `content`/`thinking`/`toolCalls`/`toolResult` and per-message `model`/`providerName`/`inputTokens`/`outputTokens`/`cacheReadTokens`/`cacheWriteTokens`/`cost` — is hoisted into the timeline as ordinary kind:'message' entries, interleaved by timestamp right after the tool call that spawned them (so you read the delegation top-to-bottom). A hoisted entry is marked: `subAgentDepth` is its delegation depth (1 for a sub-agent, 2 for a sub-agent's sub-agent, …), `subAgentOf` is the id of the parent tool call that spawned it (correlates it back even when two sub-agents run in one parent turn), `subAgentName` is the sub-agent's own name, and `agentName` is rewritten to a `\\\"<parent> › <sub-agent>\\\"` breadcrumb (composing when nested, e.g. `\\\"UI Builder › Planner › Grounding\\\"`). The sub-agent's per-LLM-call snapshots also surface as kind:'turn' entries with an N-M `turnIndex`, and subagent.started/completed (or subagent.failed) events bracket the run. Per-message `cost` on hoisted entries is already part of the session total (it is summed from the un-flattened history), so summing the top-level timeline does NOT double-count.\",\n \"kind:'turn' — one LLM call. `turnIndex` is a string: a top-level turn is the bare counter ('0', '1', …); a sub-agent's turns are numbered under the parent turn that activated them ('3-1', '3-2', …, and a nested sub-agent contributes '3-2-1', …), and `agentName` names the agent that ran the turn. `systemPrompt` and `toolNames` are what the model saw. A systemPrompt of '<repeated — identical to turn N>' was byte-identical to turn N and de-duplicated; the full prompt is shown whenever it changes (often because a stateful agent advanced), so prompt evolution is visible.\",\n \"kind:'turn'.`model`/`providerName`/`provider` — which model ran that call: the concrete model id, the registry slot it resolved under (a tier name like 'high'/'low', or the default), and the vendor. Recorded per CALL, so an agent whose `provider` selector varies by state — a flow that plans on a high tier and executes on a low one — has every step attributed, including calls that produced no message. `model` is the SERVING model where the provider reports one, so a turn answered by a server-side fallback names the model that answered rather than the one requested; it always matches the `model` on the message that call produced. Absent when the provider exposes no `getStatus` and the transport stamped nothing.\",\n \"kind:'turn'.`usage` — what that ONE call cost, in the same four-bucket + `costUsd` shape as `sessionUsage`. Absent while a call is in flight and on providers that report no usage. This is the SAME money as the message the call produced, not extra money: never add turn usage to message usage, and read a turn plus its message as one charge. Its distinct value is the calls that produced NO message — a blank or refused response is billed and then discarded before the retry, so the turn entry is the only record of that spend, and a turn with `usage` but no message after it is exactly that. `costUsd: 0` alongside a nonzero token count means the provider reported no price, not that the call was free.\",\n \"kind:'turn'.`agentSnapshot` — the active agent's own view of its internal state, captured at that turn. An agent opts into this by exposing a `getDebugSnapshot()` that returns JSON-serializable per-state info; stateful/flow agents wire it automatically, so you can watch a flow advance turn-by-turn (e.g. current step, cursor, collected fields, pending changes). Absent for agents that don't expose one.\",\n \"kind:'event' — a meta/lifecycle event. `type` names it (see below); `detail` carries structured data. `detail.placement` is the emitting UI instance: 'bubble' (collapsed), 'panel' (popped-out), or 'standalone'.\",\n \"Each 'event' also has an `importance`: 'high' (failures/limits — turn.error, tool.failed, subagent.failed, file.read-failed, suggestions.failed, context.threshold-crossed), 'normal' (session flow — connects, turns, retries, handoffs, agent/provider changes, interactions, sub-agent start/complete), or 'low' (skippable UI/bookkeeping noise — panel.toggled, attachment.added, driver.wired/unwired, context.updated, context.condensed). To skim, ignore importance:'low'; to triage a failure, filter to importance:'high' then read the nearby messages and turns. A 'high' turn.error is often preceded by one or more 'normal' turn.retry events for the same reason — read them together to see how many attempts were made before bailing. 'message' and 'turn' entries carry no importance — they are the substance, always read them.\",\n \"Event types: assistant.connected/disconnected (mount + placement + whether the session was created or restored), assistant.popout/popin (window placement), driver.created/wired/unwired (which driver is live and why it stops/starts responding across a popout), state.changed (idle↔loading), turn.start/turn.end (turn boundary; turn.end carries durationMs), turn.retry (a recoverable in-turn retry — detail.reason plus attempt/maxAttempts; for malformed calls also finishMessage; for empty responses also the provider finishReason + thoughtsTokens + parts breakdown; reason no-tool-call is a sub-agent on a model that rejects forced tool use (Opus 5.5 / Sonnet 5.5) answering its forced turn in text, retried once with a nudge), turn.error (a turn failed or hit a guardrail — detail.reason is one of exception/malformed-function-call/empty-response/unknown-tool-limit/max-iterations/response-truncated/refusal/budget-exhausted/provider-refused/context-exhausted/ai-service-error, plus reason-specific diagnostics: attempts (for empty-response also finishReason + thoughtsTokens + a parts breakdown, distinguishing a thinking-only STOP from a truly empty turn), finishMessage, for response-truncated the model + maxTokens + outputTokens + tools, unknownTools (split into staleTools — real earlier this activation but retired by the current state or hidden behind an open exclusive fold — and hallucinatedTools — never advertised) + availableTools, iterations + limit, for budget-exhausted the budgetUsd + spentUsd figures reported by the proxy plus the resolved vendor, for provider-refused the kind (spend|auth) plus the upstream status and error type — the vendor refusing the ACCOUNT rather than us refusing to spend, so the remedy is a top-up or a key rotation rather than a raised cap, and the kind is the only place that distinction survives because the user-facing copy is deliberately cause-free, for context-exhausted the estimated contextTokens against the guard that stopped the turn plus the iterations reached — the driver ending a runaway tool loop at the edge of the context window rather than issuing a request the provider would reject, so the transcript survives intact and can still be compacted, for ai-service-error the code (one of AI_SERVICE_ERROR_CODES, e.g. NO_API_KEY) and the status the AI service answered with — its own text goes to the browser console only, or name + message for exceptions), tool.failed (a tool threw), tool.unresolved (the model called a tool that could not be dispatched — detail.kind is folded/fold-hidden/stale/unknown, plus tool + agent and, for the counted kinds, the consecutive streak; the recurring lead-up to an unknown-tool-limit turn.error), subagent.started/completed/failed (the lifecycle of a `requestSubAgent` delegation — detail.agent names the sub-agent; these bracket the sub-agent turns that appear as kind:turn entries with an N-M `turnIndex`; subagent.failed also carries detail.reason, one of max_iterations/malformed_tool_call/empty_response/unknown_tool_limit/timeout/response_truncated/refusal/budget_exhausted/provider_refused/context_exhausted/ai_service_error, and for timeout detail.cause: 'idle' when it was the sub-agent making no progress for `idleTimeoutMs` rather than the overall `timeoutMs` (absent for the latter); budget_exhausted and provider_refused are terminal for the PARENT turn too, and so is ai_service_error when the refusal is about the service rather than the request and came from the vendor the parent calls — the parent stops rather than calling the model again into the same wall; after context_exhausted the parent goes on, but its own next call is likely to stop on the same guard), agent.handoff (routing; from=null is the initial activation), agent.pinned/unpinned (forced routing), routing.decided (ONE PER ROUTING DECISION — see its own paragraph below), provider.selected (the resolved provider for the upcoming turns — detail.provider is the registry SLOT/tier name, detail.model the concrete model behind it and detail.vendor its vendor; emitted only when the slot CHANGES, so read the per-turn `model` for the model of any given call rather than assuming the nearest event still applies), interaction.requested/resolved (blocking user widgets — explain quiet gaps; note that when a sub-agent opens a widget, detail.agent — and the agentName on the interaction message — is the HOST agent that owns the widget, NOT the sub-agent that asked, because widgets render and resolve on the host driver; detail.ownerPath names the agents that actually asked, outermost first, the last being the one whose tool requested it, and detail.heldBy says who held it when it opened: user, or the id of the interceptor that claimed it, such as autopilot; on interaction.resolved, detail.answeredBy is who answered — the claimant id when it settled through its own hold, user for any other answer (a click counts as the person even on a widget a claimant held) — absent when it closed unanswered (a timeout or a stop), and absent too when it settled by itself other than through the hold of a claimant — a widget registered resolvesItself (one that does its work and settles on its own, asking the person nothing, such as a generation run), or one outcome its controller said settled itself (ctx.resolve with resolvedItself, such as a generation phase that failed outright before its review gate ever asked anything) — which then carries detail.resolvedItself: true instead, as the interaction message does — nobody answered it, and the platform cannot tell it finishing from the person interrupting it (a Skip), so only the result of the widget itself can say which; the same value is stamped on the interaction message as answeredBy and on the result the asking tool handler receives (absent there in the same cases), and when it is not user the tool result that interaction returned carries a decidedOnUsersBehalf record, so the model was told the choice was not made by the person; detail.edits, present only when non-zero, counts the editing actions a claimant ran on the widget before it was settled, whoever settled it, and those edits are stamped on the interaction message as edits, each with by, action, choice and args when it had some, in the order they ran, while a decidedOnUsersBehalf record carries their choice texts as edits, and when the person settled it after such edits the tool result carries an editedOnUsersBehalf record instead — the framing and those choice texts — so the model knows the widget was changed on the user behalf before the user answered, and that the user then confirmed it by finishing it), interaction.held (a claimant moved a pending interaction to the person or back to itself — detail.heldBy is the new holder, detail.claimant the interceptor; detail.late: true is an interceptor that declined it when it opened claiming it afterwards, such as the autopilot resumed while it was open; a widget held by anything but user was not answered by the person), interaction.claim-refused (a claim on a userOnly interaction, which stays with the person — detail.claimant + reason), autopilot.* (the autopilot, a decorator that answers interactions on behalf of the user — autopilot.claimed / autopilot.declined say whether it took each interaction and, for a decline, detail.reason: paused, other-flow, no-autopilot, unavailable, userOnly, policy or no-controller; one declined as paused that is still open when the person resumes the autopilot is looked at again, and the autopilot.claimed or autopilot.declined recorded for it then carries detail.onResume: true (a decline then can also be claimed-elsewhere, another interceptor having claimed it first); a restored mode looks at nothing; autopilot.decision-sent is what it was sent (detail.chars; detail.nothingEnabled: true when every action on the widget was unavailable — a gate whose controller said it was asking, such as a failed build the autopilot may not cancel — so it could only hand it back, which it may then do even after the person asked it to decide it itself; a widget whose controller says it is working (ctx.setWorking) is never sent a decision until it says it is asking, even when an action is enabled or the person resumes the autopilot); autopilot.acted is what it did (detail.action, detail.note, detail.finished); autopilot.handed-back is a decision it gave to the person (detail.reason and detail.trigger: model, no-decision or error); autopilot.paused / autopilot.resumed are mode changes (detail.scope, detail.trigger, detail.decideYourself when the person resumed during a hand-back; detail.trigger is restored when the mode came back with the session after a reload, applied once its flow re-activated, which starts nothing by itself); autopilot.carried is the mode, running or paused, going with the task to the agent that took it over, rather than ending with the flow as on any other change of flow owner: to the target of a hand-off, or back to its caller on the hand-back (detail.from, detail.to, detail.mode); a pause the person chose goes with it, and Stop and Clear still end it; a mode restored for the target of a hand-off applies to its caller when the reload hands back; autopilot.error is the wrapper itself failing; autopilot.refinement counts a refining action against its step — a written answer (reply) or a widget action declared refines, such as a regenerate with instructions, counted together (detail.action, detail.stepKey, detail.count, detail.limitReached, after which every refining action is withdrawn for that step: not listed, and refused; the decision and every relisting of its actions say how many are left at the step, as a line Refinements left at this step: N, wherever the widget has a refining action); autopilot.handback-presented is the turn-level hand-back, shown when a working turn ended needing the person with no widget to hand over (detail.why: max-iterations, context-exhausted, failure or question; detail.options; detail.choice once answered); autopilot.catch-up is the autopilot being given the whole visible transcript at once (detail.why: first, for its first decision in a flow or after a reload; size, when its own history passed its budget and was rebuilt short — detail.ownChars; or compacted, when a compaction removed the last message it had seen, so it reads the summary and everything since, short; in each, what it had sent on the user behalf is included and labelled as its own, since its own history does not hold it); autopilot.cost-dropped is autopilot spend that no message carries, so it is NOT in the session total (detail.costUsd and detail.why: handed-back, aborted or stale for a written question it answered that no reply was sent for — stale when a pause, a resume, a new turn or the end of its flow came before the answer landed, which then went nowhere — or no-recorder when the driver had no way to book a decision to its interaction); a hand-back trigger can also be budget (the decision passed its spend cap), watchdog (its work went quiet: no ready surface and no heartbeat, or its own decision stalled with no model call landing, which stops that decision) or detached (the autopilot was removed while it held the interaction, which went to the person with no reason shown). To debug one autopilot decision, follow its interactionId: interaction.requested (heldBy), autopilot.claimed, autopilot.decision-sent, autopilot.acted or autopilot.handed-back, interaction.invoked, interaction.resolved (answeredBy), then the next turn of the working agent), interaction.invoked (a claimant ran one of the actions the widget itself exposes, through its hold, the same code the button runs — detail.claimant, detail.action (an option id, select or reply) and detail.finished, whether that settled the interaction, and when it did not, the run is recorded as an edit; the choice and narration it recorded reach the result of the tool that asked as decidedOnUsersBehalf; the person's own programmatic action, from a host with no DOM to click, carries detail.by: user in place of detail.claimant, and is not recorded as an edit nor as a decision on their behalf, so what it settles is answered by user), interaction.step (a long action run as named steps through runSteps, which survive a reload — detail.step and detail.outcome: started, done, skipped when the step was already done before a reload, or resumed when it started before a reload and runs again with what it saved part-way, such as a job id it re-attaches to), interaction.checkpoint (the checkpoints a conversation keeps for its long actions: the one in flight, and each one a reload cut, held apart until a request of its own widget type takes it over, so a resumed flow that opens other long widgets first, which save their own, loses nothing — detail.action: resumed when a reload cut the work and a request of the same widget type that the registration sameWork agrees is the same work took it over, refused when sameWork said a new request is different work (detail.saved is the identity it kept; detail.kept: true, since it stays for a later request of that type, and is offered to every one until one agrees) or when runSteps found the handed-over checkpoint malformed and started fresh (detail.reason, detail.saved), or cleared when its flow ended, once per checkpoint, with detail.cut: true for one a reload cut that nothing took over), context.updated/threshold-crossed (token + cost), headless.attached (a HeadlessSession attached, for a host that drives the assistant with no screen — detail.label, what the host called itself, when it gave one) and headless.raw-resolved (that host settled an interaction raw, bypassing the widget's own actions: detail.interactionId and detail.component; the result went to the tool as given, so check what the widget would have enforced), context.condensed (a stale tool payload was collapsed out of the model-bound history by a `condenseWhen` declaration on the tool — detail.tool + toolCallId, target args|response, trigger (superseded:<key> or age:<n>), stubLen, and an estimated tokensSaved; stored history and this log keep the FULL payload, so the model-visible slice at any point is the full history minus the condensations recorded up to then), panel.toggled, attachment.added, file.read-failed, suggestions.failed.\",\n 'Sub-agent meta events: a sub-agent\\'s own turn.retry/turn.error/tool.failed/tool.unresolved events are merged into this same timeline, tagged with `detail.subAgent` — a `\"<parent> › <sub-agent>\"` breadcrumb that composes when nested (e.g. `\"UI Builder › Planner › Grounding\"`) — and interleaved by their original timestamps within the subagent.started→completed/failed bracket. These are the per-attempt/per-failure signals that do NOT appear among the sub-agent\\'s (hoisted) messages: a malformed/empty attempt that gets retried produces no message, and the stale-vs-hallucinated split and streak counts live only on the event. A sub-agent\\'s high-volume, message-derivable events (turn.start/turn.end, provider.selected, context.updated) are intentionally NOT merged — read its hoisted messages for model/tokens/cost and turn-by-turn activity, and the bracketing subagent.* events for the run\\'s span.',\n \"`meta` holds context captured at export time: agentSummary (full agent configs), context (active model, contextTokens/contextLimit/contextUsagePercent for the last call, and the session totals — sessionCostUsd, sessionTokensConsumed, and the four-bucket sessionUsage lifted to the top of this log), activeDebugSnapshot (the active agent's `getDebugSnapshot()` taken fresh at export — reflects state NOW, which may have advanced beyond the last turn's agentSnapshot), debug (optional host-supplied debug state), host, and the export timestamp.\",\n 'Note the two different scopes in `meta.context`: `contextTokens` is the prompt size of the LAST call (against `contextLimit`, the model context window), while `sessionUsage`/`sessionTokensConsumed` are cumulative BILLED throughput. Every turn resends the conversation, so the cumulative figure counts each turn’s prompt again in the next turn’s and is expected to dwarf the context size — that is not double-counting.',\n \"kind:'event' type 'routing.decided' — how ONE user turn was routed, emitted by the orchestrating driver before the agent runs. Only a user turn is routed: a hand-off names its target, so the agents a hand-off runs show up as agent.handoff events, not as more routing.decided. `decision` is why that agent was chosen: 'classified' (the classifier ran and picked one), 'no-match' (it ran and answered -1 — nothing listed covers the request), 'pinned' (a user pin, an agent named for that one message by the send's `agent` option, or an active stateful flow owned the turn, so no call was made), 'single-candidate'/'no-specialists' (configuration left nothing to decide), 'provider-unavailable' (the registry default exposes no chat()), 'classifier-failed' (every attempt threw — `error` carries the last one). `to` names the agent and `fallback` says whether that agent is the fallback. `candidates` is what was ON THE BALLOT — every classifier-eligible specialist — in ballot order, so `index` — the classifier's own answer — indexes it directly. `candidates` is absent on the three decisions that put nothing to a vote — 'pinned', 'single-candidate', 'no-specialists'. It IS present on 'provider-unavailable', which is not an exception worth removing: the ballot was built there, it simply never got sent. `attempts` covers the retry ladder. `durationMs` is on EVERY routing.decided, and is the field to read when a decision looks wrong: the decisions that can reach the fallback ('no-match', 'no-specialists', 'provider-unavailable', 'classifier-failed') are told apart by the clock as much as by their name, because a fallback routing that resolved in tens of milliseconds made no network call at all whatever its `decision` says.\",\n \"kind:'event' type 'routing.decided'.`usage` — what that classifier call cost, in the same four-bucket + costUsd shape as `sessionUsage`, plus `model`. Absent on the decisions that make no call (see 'pinned' and the configuration ones). THIS SPEND IS NOT IN `sessionUsage`: a classifier call never enters the transcript and `sessionUsage` is derived from the transcript, so classifier cost is missing from the session total by construction, not by accident. Sum these events to close that gap — it is the one component of a session's real spend that the totals cannot see.\",\n 'To debug a failure: find the last turn.error or tool.failed, then read upward for the user message, the turn(s), and the agent/provider/state events that led into it. For a turn that went to the wrong agent, read its routing.decided first — `decision` says whether anything was actually asked.',\n]",
|
|
13983
|
+
"default": "[\n 'This is an exported debug log for the Genesis AI assistant. Read it top-to-bottom.',\n \"`sessionUsage` is what this session spent: `costUsd` (USD, provider-reported per request and summed, cache discounts already applied) plus the four TOKEN BUCKETS — `uncachedInputTokens`, `cacheReadTokens`, `cacheWriteTokens`, `outputTokens`. Those four are disjoint and safe to add up for a total-tokens figure; the per-message fields further down are NOT (see kind:'message'). Each bucket bills at a different rate — cache reads a fraction of uncached input, cache writes a premium, output highest — so a big token count against a small cost means the prompt was mostly cache hits, not a missing charge. It covers sub-agent turns and spend a compaction banked, so for the CONVERSATION it is the authoritative total: prefer it over re-summing the timeline, which can be short by whatever the ring buffers evicted. The same figures appear under `meta.context`. It is as current as the snapshot it came from: the assistant's own download stamps a fresh one, but a log stitched by another tool can carry an older one — compare `meta.timestamp` with the last timeline entry, and if it is well behind, read these totals as historical and fall back to summing the timeline. One scope caveat: it is derived from the transcript, so it excludes billed calls that produced no message (a blank or refused attempt that was retried — see kind:'turn'.`usage`). Summing the turns can therefore come out HIGHER than this, and the difference is exactly that discarded spend, not a double-count.\",\n \"What 'session' means for those figures: the CURRENT conversation under this session key (a host-supplied per-project id, or the element id + header title when the host supplies none) — which is not necessarily everything in `timeline`. It is re-derived from the live transcript, so it spans page loads only when the chat is being remembered, and a Clear resets it to zero. `timeline` is append-only regardless: it keeps every page load and the pre-Clear conversation, with the session.cleared event as the boundary. So on a long-lived log, read these totals as the latest conversation's and the earlier sections as history — not as a total of the whole file.\",\n '`timeline` is the entire session as one array, already sorted chronologically by `timestamp` (ISO 8601). Every entry has a `kind`.',\n 'Timestamps are millisecond-resolution; entries that share the same millisecond are ordered by a fixed kind rank (event, then turn, then message), which is a heuristic and may not reflect exact causal order within that millisecond — e.g. a user message and the turn it triggered, or a final assistant message and its turn.end event, can appear in either order depending on whether they landed in the same millisecond. Read the logical structure of a turn rather than over-interpreting the micro-ordering of co-timestamped entries of different kinds.',\n \"kind:'message' — the conversation. `role` is user/assistant/tool/system-event/synthetic-user; `agentName` says which agent produced it; `toolCalls`/`toolResult`/`interaction` carry tool and widget activity; `inputTokens`/`outputTokens`/`cost` are per-message LLM usage, where `inputTokens` is the WHOLE prompt for that request and `cacheReadTokens`/`cacheWriteTokens` BREAK IT DOWN rather than add to it — uncached input is `inputTokens` minus those two, and adding the cache fields to `inputTokens` counts the prompt twice. The cache fields are absent on providers that report no cache split (Gemini reports reads only, since implicit caching bills no write) and on messages persisted before they existed, so read them as 0 when missing. Each bucket bills at a different rate — cache reads a fraction of uncached input, cache writes a premium, output highest — so a large token count at a small cost means the prompt was mostly cache hits. `externalCostUsd` is any non-LLM cost a widget reported for its own external service calls (folded into the session cost total alongside `cost`). On model-produced assistant messages, `model` is the concrete model id that generated it (e.g. 'gemini-2.5-flash-lite') and `providerName` is the registry slot it resolved under (e.g. a tier name like 'high'/'low', or the default); together they attribute the message — and any tool calls it carries — to an exact model even across a mid-session vendor/tier switch, where one slot name can map to different models before and after the switch. Both are undefined on any entry that is NOT an LLM response: non-assistant roles (user/tool/system-event) and 'synthetic-user' echoes; assistant interaction/widget entries (empty content carrying an `interaction` — a rendered widget, not a model turn); driver-authored assistant fallbacks (the timeout, repeated-malformed-call, and empty-response apology messages); and messages restored from a session persisted before these fields existed. One partial case: on a genuine model turn whose provider exposes no `getStatus` (or reports no model), `providerName` is still set but `model` alone is undefined. A 'synthetic-user' message is a display-only echo of an interaction outcome (e.g. the answer a widget reported): it renders on the user's side of the chat and `agentName` is the agent that created it, but it is never sent to the LLM — so it has no matching 'turn' and the model learns the outcome only from the corresponding tool result. An echo of an answer an interceptor (such as an autopilot) gave is NOT synthetic-user: see the delegated-messages paragraph.\",\n 'The autopilot (GENC-1660) runs on a driver of its own, and everything it did is harvested into this log: entries with delegate: autopilot and an agentName ending in › Autopilot are its turns (the decision message it was sent is the user message of its turn, so what it was shown is there verbatim; its systemPrompt is its grounding, such as the brief), its tool calls (widget_read, widget_act, hand_back, any read-only tools of its own, and its widget tools — reads with parameters that a widget type declares, routed to the interaction of that type being decided and refused with a reason when none is, offered on every decision so its tool list never changes; while one is open its tail starts with a line naming them) and their results (a read, view or widget tool, is capped at about 20,000 characters, cut with a note asking for less, and leaves its history at the end of the decision as a one-line note), and its own events. Its cost is already in the session total: it is booked as externalCostUsd on the interaction each decision answered, or, for a written question it answered, on the user message it sent on the user behalf (delegate: autopilot), so do not add its turns to that total. Spend that reached no message is recorded as autopilot.cost-dropped instead.',\n \"Delegated messages (GENC-1660): a message with a `delegate` field was written or sent ON THE USER'S BEHALF by a driver decorator, and `delegate` names it (e.g. autopilot). The platform stamps it; nothing else can. It renders as the assistant whatever its role. A delegated `user` message was NOT typed by the user: it is an answer given on their behalf, and the model read it with `delegateFraming` in brackets in front of the content (the stored `content` is the bare text). A delegated `assistant` message is display-only (`excludeFromProvider`): the decorator's narration note, or, when its answer carried no note, the widget's own echo of the answer (its `userMessage`), shown as the assistant and never as the person. A widget answer a decorator gave with a note is not echoed at all: the note already says what was chosen. To tell what the person decided from what was decided for them, read `interaction.answeredBy` and these fields, never the role alone. Driver notes: a `user` message with a `driverNote` field was written by the driver for the model, never by the user, and is hidden from the transcript; `driverNote: 'finish-guard'` is the agent's finishGuard holding the turn open after a prose reply, its content the guard's note in a `<system-reminder>`, and it follows a turn.finish-guard event; `driverNote: 'completion-nudge'` is the driver asking a sub-agent that replied in prose to call its completion tool.\",\n \"Sub-agent messages appear inline. When a tool delegates to a sub-agent (via `requestSubAgent`), the sub-agent's whole conversation — its own assistant/tool messages, each with their own `content`/`thinking`/`toolCalls`/`toolResult` and per-message `model`/`providerName`/`inputTokens`/`outputTokens`/`cacheReadTokens`/`cacheWriteTokens`/`cost` — is hoisted into the timeline as ordinary kind:'message' entries, interleaved by timestamp right after the tool call that spawned them (so you read the delegation top-to-bottom). A hoisted entry is marked: `subAgentDepth` is its delegation depth (1 for a sub-agent, 2 for a sub-agent's sub-agent, …), `subAgentOf` is the id of the parent tool call that spawned it (correlates it back even when two sub-agents run in one parent turn), `subAgentName` is the sub-agent's own name, and `agentName` is rewritten to a `\\\"<parent> › <sub-agent>\\\"` breadcrumb (composing when nested, e.g. `\\\"UI Builder › Planner › Grounding\\\"`). The sub-agent's per-LLM-call snapshots also surface as kind:'turn' entries with an N-M `turnIndex`, and subagent.started/completed (or subagent.failed) events bracket the run. Per-message `cost` on hoisted entries is already part of the session total (it is summed from the un-flattened history), so summing the top-level timeline does NOT double-count.\",\n \"kind:'turn' — one LLM call. `turnIndex` is a string: a top-level turn is the bare counter ('0', '1', …); a sub-agent's turns are numbered under the parent turn that activated them ('3-1', '3-2', …, and a nested sub-agent contributes '3-2-1', …), and `agentName` names the agent that ran the turn. `systemPrompt` and `toolNames` are what the model saw. A systemPrompt of '<repeated — identical to turn N>' was byte-identical to turn N and de-duplicated; the full prompt is shown whenever it changes (often because a stateful agent advanced), so prompt evolution is visible.\",\n \"kind:'turn'.`model`/`providerName`/`provider` — which model ran that call: the concrete model id, the registry slot it resolved under (a tier name like 'high'/'low', or the default), and the vendor. Recorded per CALL, so an agent whose `provider` selector varies by state — a flow that plans on a high tier and executes on a low one — has every step attributed, including calls that produced no message. `model` is the SERVING model where the provider reports one, so a turn answered by a server-side fallback names the model that answered rather than the one requested; it always matches the `model` on the message that call produced. Absent when the provider exposes no `getStatus` and the transport stamped nothing.\",\n \"kind:'turn'.`usage` — what that ONE call cost, in the same four-bucket + `costUsd` shape as `sessionUsage`. Absent while a call is in flight and on providers that report no usage. This is the SAME money as the message the call produced, not extra money: never add turn usage to message usage, and read a turn plus its message as one charge. Its distinct value is the calls that produced NO message — a blank or refused response is billed and then discarded before the retry, so the turn entry is the only record of that spend, and a turn with `usage` but no message after it is exactly that. `costUsd: 0` alongside a nonzero token count means the provider reported no price, not that the call was free.\",\n \"kind:'turn'.`agentSnapshot` — the active agent's own view of its internal state, captured at that turn. An agent opts into this by exposing a `getDebugSnapshot()` that returns JSON-serializable per-state info; stateful/flow agents wire it automatically, so you can watch a flow advance turn-by-turn (e.g. current step, cursor, collected fields, pending changes). Absent for agents that don't expose one.\",\n \"kind:'event' — a meta/lifecycle event. `type` names it (see below); `detail` carries structured data. `detail.placement` is the emitting UI instance: 'bubble' (collapsed), 'panel' (popped-out), or 'standalone'.\",\n \"Each 'event' also has an `importance`: 'high' (failures/limits — turn.error, tool.failed, subagent.failed, file.read-failed, suggestions.failed, context.threshold-crossed), 'normal' (session flow — connects, turns, retries, handoffs, agent/provider changes, interactions, sub-agent start/complete), or 'low' (skippable UI/bookkeeping noise — panel.toggled, attachment.added, driver.wired/unwired, context.updated, context.condensed). To skim, ignore importance:'low'; to triage a failure, filter to importance:'high' then read the nearby messages and turns. A 'high' turn.error is often preceded by one or more 'normal' turn.retry events for the same reason — read them together to see how many attempts were made before bailing. 'message' and 'turn' entries carry no importance — they are the substance, always read them.\",\n \"Event types: assistant.connected/disconnected (mount + placement + whether the session was created or restored), assistant.popout/popin (window placement), driver.created/wired/unwired (which driver is live and why it stops/starts responding across a popout), state.changed (idle↔loading), turn.start/turn.end (turn boundary; turn.end carries durationMs), turn.retry (a recoverable in-turn retry — detail.reason plus attempt/maxAttempts; for malformed calls also finishMessage; for empty responses also the provider finishReason + thoughtsTokens + parts breakdown), turn.finish-guard (the model replied with no tool call and the agent's finishGuard hook answered — detail.action is continue (the turn was held open: detail.continuation counts the holds this turn and detail.note is the note stored as a hidden user message with driverNote finish-guard, the next message in the log; detail.source: 'completion-nudge' is instead the driver holding a SUB-AGENT's turn open because it replied in prose without calling its completion tool — detail.nudge of detail.maxNudges, the note stored with driverNote completion-nudge — and a sub-agent that still answers in prose after the last nudge fails as before) or end with detail.release: true (the agent was released on a prose answer); a plain end records nothing), turn.error (a turn failed or hit a guardrail — detail.reason is one of exception/malformed-function-call/empty-response/unknown-tool-limit/max-iterations/response-truncated/refusal/budget-exhausted/provider-refused/context-exhausted/ai-service-error, plus reason-specific diagnostics: attempts (for empty-response also finishReason + thoughtsTokens + a parts breakdown, distinguishing a thinking-only STOP from a truly empty turn), finishMessage, for response-truncated the model + maxTokens + outputTokens + tools, unknownTools (split into staleTools — real earlier this activation but retired by the current state or hidden behind an open exclusive fold — and hallucinatedTools — never advertised) + availableTools, iterations + limit, for budget-exhausted the budgetUsd + spentUsd figures reported by the proxy plus the resolved vendor, for provider-refused the kind (spend|auth) plus the upstream status and error type — the vendor refusing the ACCOUNT rather than us refusing to spend, so the remedy is a top-up or a key rotation rather than a raised cap, and the kind is the only place that distinction survives because the user-facing copy is deliberately cause-free, for context-exhausted the estimated contextTokens against the guard that stopped the turn plus the iterations reached — the driver ending a runaway tool loop at the edge of the context window rather than issuing a request the provider would reject, so the transcript survives intact and can still be compacted, for ai-service-error the code (one of AI_SERVICE_ERROR_CODES, e.g. NO_API_KEY) and the status the AI service answered with — its own text goes to the browser console only, or name + message for exceptions), tool.failed (a tool threw), tool.unresolved (the model called a tool that could not be dispatched — detail.kind is folded/fold-hidden/stale/unknown, plus tool + agent and, for the counted kinds, the consecutive streak; the recurring lead-up to an unknown-tool-limit turn.error), subagent.started/completed/failed (the lifecycle of a `requestSubAgent` delegation — detail.agent names the sub-agent; these bracket the sub-agent turns that appear as kind:turn entries with an N-M `turnIndex`; subagent.failed also carries detail.reason, one of max_iterations/malformed_tool_call/empty_response/unknown_tool_limit/timeout/response_truncated/refusal/budget_exhausted/provider_refused/context_exhausted/ai_service_error, and for timeout detail.cause: 'idle' when it was the sub-agent making no progress for `idleTimeoutMs` rather than the overall `timeoutMs` (absent for the latter); budget_exhausted and provider_refused are terminal for the PARENT turn too, and so is ai_service_error when the refusal is about the service rather than the request and came from the vendor the parent calls — the parent stops rather than calling the model again into the same wall; after context_exhausted the parent goes on, but its own next call is likely to stop on the same guard), agent.handoff (routing; from=null is the initial activation), agent.pinned/unpinned (forced routing), routing.decided (ONE PER ROUTING DECISION — see its own paragraph below), provider.selected (the resolved provider for the upcoming turns — detail.provider is the registry SLOT/tier name, detail.model the concrete model behind it and detail.vendor its vendor; emitted only when the slot CHANGES, so read the per-turn `model` for the model of any given call rather than assuming the nearest event still applies), interaction.requested/resolved (blocking user widgets — explain quiet gaps; note that when a sub-agent opens a widget, detail.agent — and the agentName on the interaction message — is the HOST agent that owns the widget, NOT the sub-agent that asked, because widgets render and resolve on the host driver; detail.ownerPath names the agents that actually asked, outermost first, the last being the one whose tool requested it, and detail.heldBy says who held it when it opened: user, or the id of the interceptor that claimed it, such as autopilot; on interaction.resolved, detail.answeredBy is who answered — the claimant id when it settled through its own hold, user for any other answer (a click counts as the person even on a widget a claimant held) — absent when it closed unanswered (a timeout or a stop), and absent too when it settled by itself other than through the hold of a claimant — a widget registered resolvesItself (one that does its work and settles on its own, asking the person nothing, such as a generation run), or one outcome its controller said settled itself (ctx.resolve with resolvedItself, such as a generation phase that failed outright before its review gate ever asked anything) — which then carries detail.resolvedItself: true instead, as the interaction message does — nobody answered it, and the platform cannot tell it finishing from the person interrupting it (a Skip), so only the result of the widget itself can say which; the same value is stamped on the interaction message as answeredBy and on the result the asking tool handler receives (absent there in the same cases), and when it is not user the tool result that interaction returned carries a decidedOnUsersBehalf record, so the model was told the choice was not made by the person; detail.edits, present only when non-zero, counts the editing actions a claimant ran on the widget before it was settled, whoever settled it, and those edits are stamped on the interaction message as edits, each with by, action, choice and args when it had some, in the order they ran, while a decidedOnUsersBehalf record carries their choice texts as edits, and when the person settled it after such edits the tool result carries an editedOnUsersBehalf record instead — the framing and those choice texts — so the model knows the widget was changed on the user behalf before the user answered, and that the user then confirmed it by finishing it), interaction.held (a claimant moved a pending interaction to the person or back to itself — detail.heldBy is the new holder, detail.claimant the interceptor; detail.late: true is an interceptor that declined it when it opened claiming it afterwards, such as the autopilot resumed while it was open; a widget held by anything but user was not answered by the person), interaction.claim-refused (a claim on a userOnly interaction, which stays with the person — detail.claimant + reason), autopilot.* (the autopilot, a decorator that answers interactions on behalf of the user — autopilot.claimed / autopilot.declined say whether it took each interaction and, for a decline, detail.reason: paused, other-flow, no-autopilot, unavailable, userOnly, policy or no-controller; one declined as paused that is still open when the person resumes the autopilot is looked at again, and the autopilot.claimed or autopilot.declined recorded for it then carries detail.onResume: true (a decline then can also be claimed-elsewhere, another interceptor having claimed it first); a restored mode looks at nothing; autopilot.decision-sent is what it was sent (detail.chars; detail.nothingEnabled: true when every action on the widget was unavailable — a gate whose controller said it was asking, such as a failed build the autopilot may not cancel — so it could only hand it back, which it may then do even after the person asked it to decide it itself; a widget whose controller says it is working (ctx.setWorking) is never sent a decision until it says it is asking, even when an action is enabled or the person resumes the autopilot); autopilot.acted is what it did (detail.action, detail.note, detail.finished); autopilot.handed-back is a decision it gave to the person (detail.reason and detail.trigger: model, no-decision or error); autopilot.paused / autopilot.resumed are mode changes (detail.scope, detail.trigger, detail.decideYourself when the person resumed during a hand-back; detail.trigger is restored when the mode came back with the session after a reload, applied once its flow re-activated, which starts nothing by itself); autopilot.carried is the mode, running or paused, going with the task to the agent that took it over, rather than ending with the flow as on any other change of flow owner: to the target of a hand-off, or back to its caller on the hand-back (detail.from, detail.to, detail.mode); a pause the person chose goes with it, and Stop and Clear still end it; a mode restored for the target of a hand-off applies to its caller when the reload hands back; autopilot.error is the wrapper itself failing; autopilot.refinement counts a refining action against its step — a written answer (reply) or a widget action declared refines, such as a regenerate with instructions, counted together (detail.action, detail.stepKey, detail.count, detail.limitReached, after which every refining action is withdrawn for that step: not listed, and refused; the decision and every relisting of its actions say how many are left at the step, as a line Refinements left at this step: N, wherever the widget has a refining action); autopilot.handback-presented is the turn-level hand-back, shown when a working turn ended needing the person with no widget to hand over (detail.why: max-iterations, context-exhausted, failure or question; detail.options; detail.choice once answered); autopilot.catch-up is the autopilot being given the whole visible transcript at once (detail.why: first, for its first decision in a flow or after a reload; size, when its own history passed its budget and was rebuilt short — detail.ownChars; or compacted, when a compaction removed the last message it had seen, so it reads the summary and everything since, short; in each, what it had sent on the user behalf is included and labelled as its own, since its own history does not hold it); autopilot.cost-dropped is autopilot spend that no message carries, so it is NOT in the session total (detail.costUsd and detail.why: handed-back, aborted or stale for a written question it answered that no reply was sent for — stale when a pause, a resume, a new turn or the end of its flow came before the answer landed, which then went nowhere — or no-recorder when the driver had no way to book a decision to its interaction); a hand-back trigger can also be budget (the decision passed its spend cap), watchdog (its work went quiet: no ready surface and no heartbeat, or its own decision stalled with no model call landing, which stops that decision) or detached (the autopilot was removed while it held the interaction, which went to the person with no reason shown). To debug one autopilot decision, follow its interactionId: interaction.requested (heldBy), autopilot.claimed, autopilot.decision-sent, autopilot.acted or autopilot.handed-back, interaction.invoked, interaction.resolved (answeredBy), then the next turn of the working agent), interaction.invoked (a claimant ran one of the actions the widget itself exposes, through its hold, the same code the button runs — detail.claimant, detail.action (an option id, select or reply) and detail.finished, whether that settled the interaction, and when it did not, the run is recorded as an edit; the choice and narration it recorded reach the result of the tool that asked as decidedOnUsersBehalf; the person's own programmatic action, from a host with no DOM to click, carries detail.by: user in place of detail.claimant, and is not recorded as an edit nor as a decision on their behalf, so what it settles is answered by user), interaction.step (a long action run as named steps through runSteps, which survive a reload — detail.step and detail.outcome: started, done, skipped when the step was already done before a reload, or resumed when it started before a reload and runs again with what it saved part-way, such as a job id it re-attaches to), interaction.checkpoint (the checkpoints a conversation keeps for its long actions: the one in flight, and each one a reload cut, held apart until a request of its own widget type takes it over, so a resumed flow that opens other long widgets first, which save their own, loses nothing — detail.action: resumed when a reload cut the work and a request of the same widget type that the registration sameWork agrees is the same work took it over, refused when sameWork said a new request is different work (detail.saved is the identity it kept; detail.kept: true, since it stays for a later request of that type, and is offered to every one until one agrees) or when runSteps found the handed-over checkpoint malformed and started fresh (detail.reason, detail.saved), or cleared when its flow ended, once per checkpoint, with detail.cut: true for one a reload cut that nothing took over), context.updated/threshold-crossed (token + cost), headless.attached (a HeadlessSession attached, for a host that drives the assistant with no screen — detail.label, what the host called itself, when it gave one) and headless.raw-resolved (that host settled an interaction raw, bypassing the widget's own actions: detail.interactionId and detail.component; the result went to the tool as given, so check what the widget would have enforced), context.condensed (a stale tool payload was collapsed out of the model-bound history by a `condenseWhen` declaration on the tool — detail.tool + toolCallId, target args|response, trigger (superseded:<key> or age:<n>), stubLen, and an estimated tokensSaved; stored history and this log keep the FULL payload, so the model-visible slice at any point is the full history minus the condensations recorded up to then), panel.toggled, attachment.added, file.read-failed, suggestions.failed.\",\n 'Sub-agent meta events: a sub-agent\\'s own turn.retry/turn.error/tool.failed/tool.unresolved/turn.finish-guard events are merged into this same timeline, tagged with `detail.subAgent` — a `\"<parent> › <sub-agent>\"` breadcrumb that composes when nested (e.g. `\"UI Builder › Planner › Grounding\"`) — and interleaved by their original timestamps within the subagent.started→completed/failed bracket. These are the per-attempt/per-failure signals that do NOT appear among the sub-agent\\'s (hoisted) messages: a malformed/empty attempt that gets retried produces no message, and the stale-vs-hallucinated split and streak counts live only on the event. A sub-agent\\'s high-volume, message-derivable events (turn.start/turn.end, provider.selected, context.updated) are intentionally NOT merged — read its hoisted messages for model/tokens/cost and turn-by-turn activity, and the bracketing subagent.* events for the run\\'s span.',\n \"`meta` holds context captured at export time: agentSummary (full agent configs), context (active model, contextTokens/contextLimit/contextUsagePercent for the last call, and the session totals — sessionCostUsd, sessionTokensConsumed, and the four-bucket sessionUsage lifted to the top of this log), activeDebugSnapshot (the active agent's `getDebugSnapshot()` taken fresh at export — reflects state NOW, which may have advanced beyond the last turn's agentSnapshot), debug (optional host-supplied debug state), host, and the export timestamp.\",\n 'Note the two different scopes in `meta.context`: `contextTokens` is the prompt size of the LAST call (against `contextLimit`, the model context window), while `sessionUsage`/`sessionTokensConsumed` are cumulative BILLED throughput. Every turn resends the conversation, so the cumulative figure counts each turn’s prompt again in the next turn’s and is expected to dwarf the context size — that is not double-counting.',\n \"kind:'event' type 'routing.decided' — how ONE user turn was routed, emitted by the orchestrating driver before the agent runs. Only a user turn is routed: a hand-off names its target, so the agents a hand-off runs show up as agent.handoff events, not as more routing.decided. `decision` is why that agent was chosen: 'classified' (the classifier ran and picked one), 'no-match' (it ran and answered -1 — nothing listed covers the request), 'pinned' (a user pin, an agent named for that one message by the send's `agent` option, or an active stateful flow owned the turn, so no call was made), 'single-candidate'/'no-specialists' (configuration left nothing to decide), 'provider-unavailable' (the registry default exposes no chat()), 'classifier-failed' (every attempt threw — `error` carries the last one). `to` names the agent and `fallback` says whether that agent is the fallback. `candidates` is what was ON THE BALLOT — every classifier-eligible specialist — in ballot order, so `index` — the classifier's own answer — indexes it directly. `candidates` is absent on the three decisions that put nothing to a vote — 'pinned', 'single-candidate', 'no-specialists'. It IS present on 'provider-unavailable', which is not an exception worth removing: the ballot was built there, it simply never got sent. `attempts` covers the retry ladder. `durationMs` is on EVERY routing.decided, and is the field to read when a decision looks wrong: the decisions that can reach the fallback ('no-match', 'no-specialists', 'provider-unavailable', 'classifier-failed') are told apart by the clock as much as by their name, because a fallback routing that resolved in tens of milliseconds made no network call at all whatever its `decision` says.\",\n \"kind:'event' type 'routing.decided'.`usage` — what that classifier call cost, in the same four-bucket + costUsd shape as `sessionUsage`, plus `model`. Absent on the decisions that make no call (see 'pinned' and the configuration ones). THIS SPEND IS NOT IN `sessionUsage`: a classifier call never enters the transcript and `sessionUsage` is derived from the transcript, so classifier cost is missing from the session total by construction, not by accident. Sum these events to close that gap — it is the one component of a session's real spend that the totals cannot see.\",\n 'To debug a failure: find the last turn.error or tool.failed, then read upward for the user message, the turn(s), and the agent/provider/state events that led into it. For a turn that went to the wrong agent, read its routing.decided first — `decision` says whether anything was actually asked.',\n]",
|
|
14000
13984
|
"description": "Human/agent-facing guide emitted as the first key of the exported debug log,\nso whoever opens the JSON (often an AI agent) knows how to read it without\nreverse-engineering the shape. Kept here next to the event catalogue it\ndescribes — but proximity alone demonstrably did NOT keep the two in sync\n(`refusal` was missing from both reason lists for a whole release), so\n`debug-event-log.test.ts` now asserts that every `TurnFailureReason` and every\n`SubAgentFailureReason` is named here, and fails the build when one is added\nwithout a matching sentence. Enumerations below read as exhaustive and WILL be\ntrusted by an agent reading the JSON — keep them so."
|
|
14001
13985
|
}
|
|
14002
13986
|
],
|
|
@@ -16346,6 +16330,12 @@
|
|
|
16346
16330
|
}
|
|
16347
16331
|
]
|
|
16348
16332
|
},
|
|
16333
|
+
{
|
|
16334
|
+
"kind": "javascript-module",
|
|
16335
|
+
"path": "src/utils/driver-note.ts",
|
|
16336
|
+
"declarations": [],
|
|
16337
|
+
"exports": []
|
|
16338
|
+
},
|
|
16349
16339
|
{
|
|
16350
16340
|
"kind": "javascript-module",
|
|
16351
16341
|
"path": "src/utils/flatten-sub-agent-messages.ts",
|
|
@@ -20270,21 +20260,30 @@
|
|
|
20270
20260
|
},
|
|
20271
20261
|
{
|
|
20272
20262
|
"kind": "variable",
|
|
20273
|
-
"name": "
|
|
20263
|
+
"name": "MAX_SUB_AGENT_COMPLETION_NUDGES",
|
|
20274
20264
|
"type": {
|
|
20275
|
-
"text": "
|
|
20265
|
+
"text": "number"
|
|
20276
20266
|
},
|
|
20277
|
-
"default": "
|
|
20278
|
-
"description": "
|
|
20267
|
+
"default": "2",
|
|
20268
|
+
"description": "How many times one sub-agent turn is held open by the driver's own completion nudge: a sub-agent\nreturns its result only through `completeSubAgent`, so a reply in prose (a provider that ignored\nthe forced tool call, or an agent on `toolChoice: 'auto'`) is given this many chances to call its\ncompletion tool before the sub-agent fails. Counted per turn; the iteration cap bounds it too."
|
|
20279
20269
|
},
|
|
20280
20270
|
{
|
|
20281
20271
|
"kind": "variable",
|
|
20282
|
-
"name": "
|
|
20272
|
+
"name": "SUB_AGENT_COMPLETION_NUDGE",
|
|
20283
20273
|
"type": {
|
|
20284
20274
|
"text": "string"
|
|
20285
20275
|
},
|
|
20286
|
-
"default": "'
|
|
20287
|
-
"description": "
|
|
20276
|
+
"default": "'You ended your turn in prose, but nothing you write in prose reaches your caller: your result is returned only through the tool that completes your task. Call it now with your result. If you cannot complete the task, call it anyway and say why.'",
|
|
20277
|
+
"description": "The note the completion nudge stores (see MAX_SUB_AGENT_COMPLETION_NUDGES). Names no tool:\nthe driver cannot tell which of a sub-agent's tools calls `completeSubAgent`."
|
|
20278
|
+
},
|
|
20279
|
+
{
|
|
20280
|
+
"kind": "variable",
|
|
20281
|
+
"name": "HARVESTED_SUBAGENT_EVENTS",
|
|
20282
|
+
"type": {
|
|
20283
|
+
"text": "ReadonlySet<MetaEventType>"
|
|
20284
|
+
},
|
|
20285
|
+
"default": "new Set([\n 'turn.retry',\n 'turn.error',\n 'tool.failed',\n 'tool.unresolved',\n // A sub-agent held open by its finish guard or the completion nudge: otherwise invisible in the\n // parent's log, which shows only the hoisted messages.\n 'turn.finish-guard',\n])",
|
|
20286
|
+
"description": "Sub-agent meta events worth folding into the parent's debug timeline: the\nper-attempt and per-failure signals that do NOT otherwise surface in the\nsub-agent's (now hoisted) messages — a retried-away malformed/empty attempt\nproduces no message, and the stale-vs-hallucinated/streak diagnostics live only\non the event. High-volume, message-derivable events (turn.start/turn.end,\nprovider.selected, context.updated) are intentionally excluded: read the\nsub-agent's hoisted messages for model/tokens/cost and turn-by-turn activity.\nSee `ChatDriver.invokeSubAgent`."
|
|
20288
20287
|
}
|
|
20289
20288
|
],
|
|
20290
20289
|
"exports": [
|
|
@@ -20370,17 +20369,25 @@
|
|
|
20370
20369
|
},
|
|
20371
20370
|
{
|
|
20372
20371
|
"kind": "js",
|
|
20373
|
-
"name": "
|
|
20372
|
+
"name": "MAX_SUB_AGENT_COMPLETION_NUDGES",
|
|
20374
20373
|
"declaration": {
|
|
20375
|
-
"name": "
|
|
20374
|
+
"name": "MAX_SUB_AGENT_COMPLETION_NUDGES",
|
|
20375
|
+
"module": "src/components/chat-driver/chat-driver.constants.ts"
|
|
20376
|
+
}
|
|
20377
|
+
},
|
|
20378
|
+
{
|
|
20379
|
+
"kind": "js",
|
|
20380
|
+
"name": "SUB_AGENT_COMPLETION_NUDGE",
|
|
20381
|
+
"declaration": {
|
|
20382
|
+
"name": "SUB_AGENT_COMPLETION_NUDGE",
|
|
20376
20383
|
"module": "src/components/chat-driver/chat-driver.constants.ts"
|
|
20377
20384
|
}
|
|
20378
20385
|
},
|
|
20379
20386
|
{
|
|
20380
20387
|
"kind": "js",
|
|
20381
|
-
"name": "
|
|
20388
|
+
"name": "HARVESTED_SUBAGENT_EVENTS",
|
|
20382
20389
|
"declaration": {
|
|
20383
|
-
"name": "
|
|
20390
|
+
"name": "HARVESTED_SUBAGENT_EVENTS",
|
|
20384
20391
|
"module": "src/components/chat-driver/chat-driver.constants.ts"
|
|
20385
20392
|
}
|
|
20386
20393
|
}
|
|
@@ -20900,6 +20907,15 @@
|
|
|
20900
20907
|
"privacy": "private",
|
|
20901
20908
|
"description": "Active agent's unresolved-tool hook, captured from `installAgent`. Consulted\nonly when a tool call cannot be dispatched (a stale or hallucinated name);\n`undefined` keeps the framework's default messages. See\n`resolveUnresolvedToolContent`."
|
|
20902
20909
|
},
|
|
20910
|
+
{
|
|
20911
|
+
"kind": "field",
|
|
20912
|
+
"name": "activeFinishGuard",
|
|
20913
|
+
"type": {
|
|
20914
|
+
"text": "FinishGuardInput | undefined"
|
|
20915
|
+
},
|
|
20916
|
+
"privacy": "private",
|
|
20917
|
+
"description": "The active agent's `finishGuard` hook (U1), consulted by `consultFinishGuard`."
|
|
20918
|
+
},
|
|
20903
20919
|
{
|
|
20904
20920
|
"kind": "field",
|
|
20905
20921
|
"name": "resolvedProviderCache",
|
|
@@ -21626,6 +21642,36 @@
|
|
|
21626
21642
|
],
|
|
21627
21643
|
"description": "Resolve the tool-result content for an unresolved tool call. Consults the\nactive agent's `onUnresolvedTool` hook (if any) with the attempted tool\nname, the failure `kind`, and the currently dispatchable tools, and returns\nthe hook's non-empty string. Falls back to `fallback` when no hook is set,\nthe hook returns nothing/empty, or the hook throws — so a misbehaving hook\ncan never break tool dispatch."
|
|
21628
21644
|
},
|
|
21645
|
+
{
|
|
21646
|
+
"kind": "method",
|
|
21647
|
+
"name": "consultFinishGuard",
|
|
21648
|
+
"privacy": "private",
|
|
21649
|
+
"return": {
|
|
21650
|
+
"type": {
|
|
21651
|
+
"text": "Promise<FinishGuardVerdict | undefined>"
|
|
21652
|
+
}
|
|
21653
|
+
},
|
|
21654
|
+
"parameters": [
|
|
21655
|
+
{
|
|
21656
|
+
"name": "ctx",
|
|
21657
|
+
"type": {
|
|
21658
|
+
"text": "FinishGuardContext"
|
|
21659
|
+
}
|
|
21660
|
+
}
|
|
21661
|
+
],
|
|
21662
|
+
"description": "Consult the active agent's `finishGuard` hook (U1) after a reply with no tool call. Returns the\nverdict, normalised: `undefined` when there is no hook, it answered nothing, it threw, or it\nanswered `'continue'` with a blank note (nothing to tell the model, so nothing to hold for). A\nmisbehaving hook can never break the turn: it ends as if there were no hook."
|
|
21663
|
+
},
|
|
21664
|
+
{
|
|
21665
|
+
"kind": "method",
|
|
21666
|
+
"name": "requestReleaseFromFinishGuard",
|
|
21667
|
+
"privacy": "private",
|
|
21668
|
+
"return": {
|
|
21669
|
+
"type": {
|
|
21670
|
+
"text": "boolean"
|
|
21671
|
+
}
|
|
21672
|
+
},
|
|
21673
|
+
"description": "Act on a finish guard's `{ action: 'end', release: true }` (U5): the same release a tool handler's\n`releaseAgent()` asks for, for a turn that ended in prose and so had no handler context to call\nit from. Subject to the same guards: not after a hand-off, not twice, and not on a sub-agent,\nwhich owns no flow lock (it ends with `completeSubAgent`). Returns whether it released."
|
|
21674
|
+
},
|
|
21629
21675
|
{
|
|
21630
21676
|
"kind": "method",
|
|
21631
21677
|
"name": "getActiveProviderName",
|
|
@@ -24425,102 +24471,6 @@
|
|
|
24425
24471
|
}
|
|
24426
24472
|
]
|
|
24427
24473
|
},
|
|
24428
|
-
{
|
|
24429
|
-
"kind": "javascript-module",
|
|
24430
|
-
"path": "src/components/chat-markdown/chat-markdown.ts",
|
|
24431
|
-
"declarations": [
|
|
24432
|
-
{
|
|
24433
|
-
"kind": "variable",
|
|
24434
|
-
"name": "MARKDOWN_EXPORTPARTS",
|
|
24435
|
-
"type": {
|
|
24436
|
-
"text": "string"
|
|
24437
|
-
},
|
|
24438
|
-
"description": "Every part this component exposes, as an `exportparts` value.\n\n`::part()` crosses exactly one shadow boundary, so a host that renders `<ai-chat-markdown>` in\nits own shadow root has to forward these for an app to reach them at all. Built from the map\nabove rather than written out, so the forwarded list cannot drift from what is emitted."
|
|
24439
|
-
},
|
|
24440
|
-
{
|
|
24441
|
-
"kind": "class",
|
|
24442
|
-
"description": "",
|
|
24443
|
-
"name": "AiChatMarkdown",
|
|
24444
|
-
"members": [
|
|
24445
|
-
{
|
|
24446
|
-
"kind": "field",
|
|
24447
|
-
"name": "content",
|
|
24448
|
-
"type": {
|
|
24449
|
-
"text": "string"
|
|
24450
|
-
},
|
|
24451
|
-
"default": "''",
|
|
24452
|
-
"description": "The markdown string to render."
|
|
24453
|
-
},
|
|
24454
|
-
{
|
|
24455
|
-
"kind": "method",
|
|
24456
|
-
"name": "annotateParts",
|
|
24457
|
-
"privacy": "private",
|
|
24458
|
-
"return": {
|
|
24459
|
-
"type": {
|
|
24460
|
-
"text": "string"
|
|
24461
|
-
}
|
|
24462
|
-
},
|
|
24463
|
-
"parameters": [
|
|
24464
|
-
{
|
|
24465
|
-
"name": "fragment",
|
|
24466
|
-
"type": {
|
|
24467
|
-
"text": "DocumentFragment"
|
|
24468
|
-
}
|
|
24469
|
-
}
|
|
24470
|
-
],
|
|
24471
|
-
"description": "Tag the generated elements with shadow parts so an embedding app can style them.\n\nTakes the tree DOMPurify built rather than re-parsing its serialised output: `content` changes\non every streamed chunk, so a second parse/serialise round trip would run per chunk over the\nwhole message, and the string the browser finally parses is then serialised straight from the\ntree DOMPurify checked. Parse/serialise mismatches are where mXSS bypasses have historically\nlived, and this walk has no need to introduce one.\n\nOnly ever *adds* attributes, to DOM that has already been cleared - so it is not itself\nsanitiser surface.\n\nLists additionally carry a level: a top-level list is `md-ul md-ul-level-1`, a list nested\ninside it is `md-ul-level-2`, and an `li` takes the level of the list holding it. Levels are\nclamped at `MAX_LIST_LEVEL`, so a list deeper than that answers to the deepest level\nrather than to a name no host forwards. Chat markdown rarely nests, so this is a safety valve\nrather than a feature - without it, every list at every depth would answer to one selector and\nthere would be no way to tell them apart afterwards. Depth comes from walking the tree rather\nthan from marked's renderers, which are invoked innermost-first and so cannot count downwards."
|
|
24472
|
-
}
|
|
24473
|
-
],
|
|
24474
|
-
"superclass": {
|
|
24475
|
-
"name": "GenesisElement",
|
|
24476
|
-
"package": "@genesislcap/web-core"
|
|
24477
|
-
},
|
|
24478
|
-
"tagName": "ai-chat-markdown",
|
|
24479
|
-
"customElement": true
|
|
24480
|
-
}
|
|
24481
|
-
],
|
|
24482
|
-
"exports": [
|
|
24483
|
-
{
|
|
24484
|
-
"kind": "js",
|
|
24485
|
-
"name": "MARKDOWN_EXPORTPARTS",
|
|
24486
|
-
"declaration": {
|
|
24487
|
-
"name": "MARKDOWN_EXPORTPARTS",
|
|
24488
|
-
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24489
|
-
}
|
|
24490
|
-
},
|
|
24491
|
-
{
|
|
24492
|
-
"kind": "js",
|
|
24493
|
-
"name": "AiChatMarkdown",
|
|
24494
|
-
"declaration": {
|
|
24495
|
-
"name": "AiChatMarkdown",
|
|
24496
|
-
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24497
|
-
}
|
|
24498
|
-
},
|
|
24499
|
-
{
|
|
24500
|
-
"kind": "custom-element-definition",
|
|
24501
|
-
"name": "ai-chat-markdown",
|
|
24502
|
-
"declaration": {
|
|
24503
|
-
"name": "AiChatMarkdown",
|
|
24504
|
-
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24505
|
-
}
|
|
24506
|
-
}
|
|
24507
|
-
]
|
|
24508
|
-
},
|
|
24509
|
-
{
|
|
24510
|
-
"kind": "javascript-module",
|
|
24511
|
-
"path": "src/components/chat-markdown/index.ts",
|
|
24512
|
-
"declarations": [],
|
|
24513
|
-
"exports": [
|
|
24514
|
-
{
|
|
24515
|
-
"kind": "js",
|
|
24516
|
-
"name": "*",
|
|
24517
|
-
"declaration": {
|
|
24518
|
-
"name": "*",
|
|
24519
|
-
"package": "./chat-markdown"
|
|
24520
|
-
}
|
|
24521
|
-
}
|
|
24522
|
-
]
|
|
24523
|
-
},
|
|
24524
24474
|
{
|
|
24525
24475
|
"kind": "javascript-module",
|
|
24526
24476
|
"path": "src/components/message-feedback/index.ts",
|
|
@@ -24919,6 +24869,102 @@
|
|
|
24919
24869
|
}
|
|
24920
24870
|
]
|
|
24921
24871
|
},
|
|
24872
|
+
{
|
|
24873
|
+
"kind": "javascript-module",
|
|
24874
|
+
"path": "src/components/chat-markdown/chat-markdown.ts",
|
|
24875
|
+
"declarations": [
|
|
24876
|
+
{
|
|
24877
|
+
"kind": "variable",
|
|
24878
|
+
"name": "MARKDOWN_EXPORTPARTS",
|
|
24879
|
+
"type": {
|
|
24880
|
+
"text": "string"
|
|
24881
|
+
},
|
|
24882
|
+
"description": "Every part this component exposes, as an `exportparts` value.\n\n`::part()` crosses exactly one shadow boundary, so a host that renders `<ai-chat-markdown>` in\nits own shadow root has to forward these for an app to reach them at all. Built from the map\nabove rather than written out, so the forwarded list cannot drift from what is emitted."
|
|
24883
|
+
},
|
|
24884
|
+
{
|
|
24885
|
+
"kind": "class",
|
|
24886
|
+
"description": "",
|
|
24887
|
+
"name": "AiChatMarkdown",
|
|
24888
|
+
"members": [
|
|
24889
|
+
{
|
|
24890
|
+
"kind": "field",
|
|
24891
|
+
"name": "content",
|
|
24892
|
+
"type": {
|
|
24893
|
+
"text": "string"
|
|
24894
|
+
},
|
|
24895
|
+
"default": "''",
|
|
24896
|
+
"description": "The markdown string to render."
|
|
24897
|
+
},
|
|
24898
|
+
{
|
|
24899
|
+
"kind": "method",
|
|
24900
|
+
"name": "annotateParts",
|
|
24901
|
+
"privacy": "private",
|
|
24902
|
+
"return": {
|
|
24903
|
+
"type": {
|
|
24904
|
+
"text": "string"
|
|
24905
|
+
}
|
|
24906
|
+
},
|
|
24907
|
+
"parameters": [
|
|
24908
|
+
{
|
|
24909
|
+
"name": "fragment",
|
|
24910
|
+
"type": {
|
|
24911
|
+
"text": "DocumentFragment"
|
|
24912
|
+
}
|
|
24913
|
+
}
|
|
24914
|
+
],
|
|
24915
|
+
"description": "Tag the generated elements with shadow parts so an embedding app can style them.\n\nTakes the tree DOMPurify built rather than re-parsing its serialised output: `content` changes\non every streamed chunk, so a second parse/serialise round trip would run per chunk over the\nwhole message, and the string the browser finally parses is then serialised straight from the\ntree DOMPurify checked. Parse/serialise mismatches are where mXSS bypasses have historically\nlived, and this walk has no need to introduce one.\n\nOnly ever *adds* attributes, to DOM that has already been cleared - so it is not itself\nsanitiser surface.\n\nLists additionally carry a level: a top-level list is `md-ul md-ul-level-1`, a list nested\ninside it is `md-ul-level-2`, and an `li` takes the level of the list holding it. Levels are\nclamped at `MAX_LIST_LEVEL`, so a list deeper than that answers to the deepest level\nrather than to a name no host forwards. Chat markdown rarely nests, so this is a safety valve\nrather than a feature - without it, every list at every depth would answer to one selector and\nthere would be no way to tell them apart afterwards. Depth comes from walking the tree rather\nthan from marked's renderers, which are invoked innermost-first and so cannot count downwards."
|
|
24916
|
+
}
|
|
24917
|
+
],
|
|
24918
|
+
"superclass": {
|
|
24919
|
+
"name": "GenesisElement",
|
|
24920
|
+
"package": "@genesislcap/web-core"
|
|
24921
|
+
},
|
|
24922
|
+
"tagName": "ai-chat-markdown",
|
|
24923
|
+
"customElement": true
|
|
24924
|
+
}
|
|
24925
|
+
],
|
|
24926
|
+
"exports": [
|
|
24927
|
+
{
|
|
24928
|
+
"kind": "js",
|
|
24929
|
+
"name": "MARKDOWN_EXPORTPARTS",
|
|
24930
|
+
"declaration": {
|
|
24931
|
+
"name": "MARKDOWN_EXPORTPARTS",
|
|
24932
|
+
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24933
|
+
}
|
|
24934
|
+
},
|
|
24935
|
+
{
|
|
24936
|
+
"kind": "js",
|
|
24937
|
+
"name": "AiChatMarkdown",
|
|
24938
|
+
"declaration": {
|
|
24939
|
+
"name": "AiChatMarkdown",
|
|
24940
|
+
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24941
|
+
}
|
|
24942
|
+
},
|
|
24943
|
+
{
|
|
24944
|
+
"kind": "custom-element-definition",
|
|
24945
|
+
"name": "ai-chat-markdown",
|
|
24946
|
+
"declaration": {
|
|
24947
|
+
"name": "AiChatMarkdown",
|
|
24948
|
+
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24949
|
+
}
|
|
24950
|
+
}
|
|
24951
|
+
]
|
|
24952
|
+
},
|
|
24953
|
+
{
|
|
24954
|
+
"kind": "javascript-module",
|
|
24955
|
+
"path": "src/components/chat-markdown/index.ts",
|
|
24956
|
+
"declarations": [],
|
|
24957
|
+
"exports": [
|
|
24958
|
+
{
|
|
24959
|
+
"kind": "js",
|
|
24960
|
+
"name": "*",
|
|
24961
|
+
"declaration": {
|
|
24962
|
+
"name": "*",
|
|
24963
|
+
"package": "./chat-markdown"
|
|
24964
|
+
}
|
|
24965
|
+
}
|
|
24966
|
+
]
|
|
24967
|
+
},
|
|
24922
24968
|
{
|
|
24923
24969
|
"kind": "javascript-module",
|
|
24924
24970
|
"path": "src/components/notification-level/index.ts",
|