@genesislcap/ai-assistant 15.90.2 → 15.90.3

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +1678 -1678
  2. package/package.json +17 -17
@@ -5966,1544 +5966,361 @@
5966
5966
  },
5967
5967
  {
5968
5968
  "kind": "javascript-module",
5969
- "path": "src/genesis/calendar.ts",
5970
- "declarations": [],
5971
- "exports": []
5972
- },
5973
- {
5974
- "kind": "javascript-module",
5975
- "path": "src/genesis/config.ts",
5969
+ "path": "src/headless/describe-interaction.ts",
5976
5970
  "declarations": [
5977
- {
5978
- "kind": "variable",
5979
- "name": "DEFAULT_MAX_ROWS",
5980
- "type": {
5981
- "text": "number"
5982
- },
5983
- "default": "50",
5984
- "description": "The default read cap, and the ceiling the config may raise it to."
5985
- },
5986
- {
5987
- "kind": "variable",
5988
- "name": "MAX_ROWS_CEILING",
5989
- "type": {
5990
- "text": "number"
5991
- },
5992
- "default": "1000"
5993
- },
5994
5971
  {
5995
5972
  "kind": "function",
5996
- "name": "toolNameOf",
5973
+ "name": "describeInteraction",
5997
5974
  "return": {
5998
5975
  "type": {
5999
- "text": "string"
5976
+ "text": "InteractionDescription"
6000
5977
  }
6001
5978
  },
6002
5979
  "parameters": [
6003
5980
  {
6004
- "name": "resourceName",
5981
+ "name": "input",
6005
5982
  "type": {
6006
- "text": "string"
5983
+ "text": "DescribeInteractionInput"
6007
5984
  }
6008
5985
  }
6009
5986
  ],
6010
- "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."
6011
- },
5987
+ "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."
5988
+ }
5989
+ ],
5990
+ "exports": [
5991
+ {
5992
+ "kind": "js",
5993
+ "name": "describeInteraction",
5994
+ "declaration": {
5995
+ "name": "describeInteraction",
5996
+ "module": "src/headless/describe-interaction.ts"
5997
+ }
5998
+ }
5999
+ ]
6000
+ },
6001
+ {
6002
+ "kind": "javascript-module",
6003
+ "path": "src/headless/headless-debug.ts",
6004
+ "declarations": [
6012
6005
  {
6013
6006
  "kind": "function",
6014
- "name": "rowActionProblem",
6007
+ "name": "headlessMetaSnapshot",
6015
6008
  "return": {
6016
6009
  "type": {
6017
- "text": "string | undefined"
6010
+ "text": "DiagnosticEntry"
6018
6011
  }
6019
6012
  },
6020
6013
  "parameters": [
6021
6014
  {
6022
- "name": "resource",
6015
+ "name": "driver",
6023
6016
  "type": {
6024
- "text": "Partial<GenesisAiResource> | null"
6017
+ "text": "AiDriver"
6025
6018
  }
6026
6019
  },
6027
6020
  {
6028
- "name": "requestNames",
6029
- "type": {
6030
- "text": "ReadonlySet<string>"
6031
- },
6032
- "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."
6033
- },
6034
- {
6035
- "name": "whyNotReadable",
6036
- "default": "notReadableReason({})",
6021
+ "name": "options",
6022
+ "default": "{}",
6037
6023
  "type": {
6038
- "text": "(name: string) => string"
6039
- },
6040
- "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."
6024
+ "text": "HeadlessDebugOptions"
6025
+ }
6041
6026
  }
6042
6027
  ],
6043
- "description": "What is wrong with a resource's row-action fields (contracts C-18.7.2), if anything."
6028
+ "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."
6044
6029
  },
6045
6030
  {
6046
6031
  "kind": "function",
6047
- "name": "validateGenesisAiConfig",
6032
+ "name": "headlessDiagnosticEntries",
6048
6033
  "return": {
6049
6034
  "type": {
6050
- "text": "GenesisAiConfigCheck"
6035
+ "text": "DiagnosticEntry[]"
6051
6036
  }
6052
6037
  },
6053
6038
  "parameters": [
6054
6039
  {
6055
- "name": "config",
6040
+ "name": "driver",
6056
6041
  "type": {
6057
- "text": "unknown"
6042
+ "text": "AiDriver"
6043
+ }
6044
+ },
6045
+ {
6046
+ "name": "stateKey",
6047
+ "type": {
6048
+ "text": "string"
6049
+ }
6050
+ },
6051
+ {
6052
+ "name": "options",
6053
+ "default": "{}",
6054
+ "type": {
6055
+ "text": "HeadlessDebugOptions"
6058
6056
  }
6059
6057
  }
6060
6058
  ],
6061
- "description": "Checks a generated AI config before anything is registered, and says what can be kept."
6059
+ "description": "The diagnostic entries for the session so far, from the same `buildDiagnosticEntries` the\nbrowser's element and its persister use."
6062
6060
  },
6063
6061
  {
6064
6062
  "kind": "function",
6065
- "name": "customCodeOf",
6063
+ "name": "headlessCurrentDebugLog",
6066
6064
  "return": {
6067
6065
  "type": {
6068
- "text": "GenesisCustomCodeCheck"
6066
+ "text": "DebugLog"
6069
6067
  }
6070
6068
  },
6071
6069
  "parameters": [
6072
6070
  {
6073
- "name": "resource",
6071
+ "name": "driver",
6074
6072
  "type": {
6075
- "text": "GenesisAiResource"
6073
+ "text": "AiDriver"
6074
+ }
6075
+ },
6076
+ {
6077
+ "name": "stateKey",
6078
+ "type": {
6079
+ "text": "string"
6080
+ }
6081
+ },
6082
+ {
6083
+ "name": "options",
6084
+ "default": "{}",
6085
+ "type": {
6086
+ "text": "HeadlessDebugOptions"
6076
6087
  }
6077
6088
  }
6078
6089
  ],
6079
- "description": "A resource's `customCode` as it is used: the one reader of the field."
6090
+ "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."
6080
6091
  }
6081
6092
  ],
6082
6093
  "exports": [
6083
6094
  {
6084
6095
  "kind": "js",
6085
- "name": "DEFAULT_MAX_ROWS",
6086
- "declaration": {
6087
- "name": "DEFAULT_MAX_ROWS",
6088
- "module": "src/genesis/config.ts"
6089
- }
6090
- },
6091
- {
6092
- "kind": "js",
6093
- "name": "MAX_ROWS_CEILING",
6094
- "declaration": {
6095
- "name": "MAX_ROWS_CEILING",
6096
- "module": "src/genesis/config.ts"
6097
- }
6098
- },
6099
- {
6100
- "kind": "js",
6101
- "name": "toolNameOf",
6102
- "declaration": {
6103
- "name": "toolNameOf",
6104
- "module": "src/genesis/config.ts"
6105
- }
6106
- },
6107
- {
6108
- "kind": "js",
6109
- "name": "rowActionProblem",
6096
+ "name": "headlessMetaSnapshot",
6110
6097
  "declaration": {
6111
- "name": "rowActionProblem",
6112
- "module": "src/genesis/config.ts"
6098
+ "name": "headlessMetaSnapshot",
6099
+ "module": "src/headless/headless-debug.ts"
6113
6100
  }
6114
6101
  },
6115
6102
  {
6116
6103
  "kind": "js",
6117
- "name": "validateGenesisAiConfig",
6104
+ "name": "headlessDiagnosticEntries",
6118
6105
  "declaration": {
6119
- "name": "validateGenesisAiConfig",
6120
- "module": "src/genesis/config.ts"
6106
+ "name": "headlessDiagnosticEntries",
6107
+ "module": "src/headless/headless-debug.ts"
6121
6108
  }
6122
6109
  },
6123
6110
  {
6124
6111
  "kind": "js",
6125
- "name": "customCodeOf",
6112
+ "name": "headlessCurrentDebugLog",
6126
6113
  "declaration": {
6127
- "name": "customCodeOf",
6128
- "module": "src/genesis/config.ts"
6114
+ "name": "headlessCurrentDebugLog",
6115
+ "module": "src/headless/headless-debug.ts"
6129
6116
  }
6130
6117
  }
6131
6118
  ]
6132
6119
  },
6133
6120
  {
6134
6121
  "kind": "javascript-module",
6135
- "path": "src/genesis/consumes.ts",
6122
+ "path": "src/headless/headless-persistence.ts",
6136
6123
  "declarations": [
6137
6124
  {
6138
- "kind": "variable",
6139
- "name": "GENESIS_AI_CONSUMES",
6140
- "type": {
6141
- "text": "GenesisAiConsumes"
6125
+ "kind": "function",
6126
+ "name": "headlessPersistence",
6127
+ "return": {
6128
+ "type": {
6129
+ "text": "HeadlessPersistence"
6130
+ }
6142
6131
  },
6143
- "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."
6132
+ "parameters": [
6133
+ {
6134
+ "name": "options",
6135
+ "type": {
6136
+ "text": "HeadlessPersistenceOptions"
6137
+ }
6138
+ }
6139
+ ],
6140
+ "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)`."
6144
6141
  }
6145
6142
  ],
6146
6143
  "exports": [
6147
6144
  {
6148
6145
  "kind": "js",
6149
- "name": "GenesisAiConsumes",
6150
- "declaration": {
6151
- "name": "GenesisAiConsumes",
6152
- "module": "./types"
6153
- }
6154
- },
6155
- {
6156
- "kind": "js",
6157
- "name": "GENESIS_AI_CONSUMES",
6146
+ "name": "headlessPersistence",
6158
6147
  "declaration": {
6159
- "name": "GENESIS_AI_CONSUMES",
6160
- "module": "src/genesis/consumes.ts"
6148
+ "name": "headlessPersistence",
6149
+ "module": "src/headless/headless-persistence.ts"
6161
6150
  }
6162
6151
  }
6163
6152
  ]
6164
6153
  },
6165
6154
  {
6166
6155
  "kind": "javascript-module",
6167
- "path": "src/genesis/criteria.ts",
6156
+ "path": "src/headless/headless-session.ts",
6168
6157
  "declarations": [
6169
6158
  {
6170
- "kind": "function",
6171
- "name": "dateFragment",
6172
- "return": {
6173
- "type": {
6174
- "text": "string | undefined"
6175
- }
6176
- },
6177
- "parameters": [
6159
+ "kind": "class",
6160
+ "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.",
6161
+ "name": "HeadlessSession",
6162
+ "members": [
6178
6163
  {
6179
- "name": "field",
6164
+ "kind": "field",
6165
+ "name": "sessionKey",
6180
6166
  "type": {
6181
6167
  "text": "string"
6182
- }
6168
+ },
6169
+ "privacy": "private",
6170
+ "readonly": true
6183
6171
  },
6184
6172
  {
6185
- "name": "op",
6173
+ "kind": "field",
6174
+ "name": "allowRaw",
6186
6175
  "type": {
6187
- "text": "GenesisFilterOp"
6188
- }
6176
+ "text": "boolean"
6177
+ },
6178
+ "privacy": "private",
6179
+ "readonly": true
6189
6180
  },
6190
6181
  {
6191
- "name": "date",
6182
+ "kind": "field",
6183
+ "name": "clock",
6192
6184
  "type": {
6193
- "text": "string"
6194
- }
6195
- }
6196
- ]
6197
- },
6198
- {
6199
- "kind": "function",
6200
- "name": "dateTimeFragment",
6201
- "return": {
6202
- "type": {
6203
- "text": "string | undefined"
6204
- }
6205
- },
6206
- "parameters": [
6185
+ "text": "() => number"
6186
+ },
6187
+ "privacy": "private",
6188
+ "readonly": true
6189
+ },
6207
6190
  {
6208
- "name": "field",
6191
+ "kind": "field",
6192
+ "name": "autopilotHost",
6209
6193
  "type": {
6210
- "text": "string"
6211
- }
6194
+ "text": "AutopilotLike | undefined"
6195
+ },
6196
+ "privacy": "private",
6197
+ "readonly": true,
6198
+ "default": "autopilot"
6212
6199
  },
6213
6200
  {
6214
- "name": "op",
6201
+ "kind": "field",
6202
+ "name": "events",
6215
6203
  "type": {
6216
- "text": "GenesisFilterOp"
6217
- }
6204
+ "text": "HeadlessEvent[]"
6205
+ },
6206
+ "privacy": "private",
6207
+ "readonly": true,
6208
+ "default": "[]"
6218
6209
  },
6219
6210
  {
6220
- "name": "bound",
6221
- "type": {
6222
- "text": "string"
6223
- }
6224
- }
6225
- ],
6226
- "description": "Timestamp columns get the dateTime helpers, which take a `yyyyMMdd-HH:mm:ss` bound."
6227
- }
6228
- ],
6229
- "exports": [
6230
- {
6231
- "kind": "js",
6232
- "name": "dateFragment",
6233
- "declaration": {
6234
- "name": "dateFragment",
6235
- "module": "src/genesis/criteria.ts"
6236
- }
6237
- },
6238
- {
6239
- "kind": "js",
6240
- "name": "dateTimeFragment",
6241
- "declaration": {
6242
- "name": "dateTimeFragment",
6243
- "module": "src/genesis/criteria.ts"
6244
- }
6245
- }
6246
- ]
6247
- },
6248
- {
6249
- "kind": "javascript-module",
6250
- "path": "src/genesis/event-fields.ts",
6251
- "declarations": [],
6252
- "exports": []
6253
- },
6254
- {
6255
- "kind": "javascript-module",
6256
- "path": "src/genesis/filter-fields.ts",
6257
- "declarations": [],
6258
- "exports": []
6259
- },
6260
- {
6261
- "kind": "javascript-module",
6262
- "path": "src/genesis/index.ts",
6263
- "declarations": [],
6264
- "exports": [
6265
- {
6266
- "kind": "js",
6267
- "name": "GENESIS_AGENT_NAME",
6268
- "declaration": {
6269
- "name": "GENESIS_AGENT_NAME",
6270
- "module": "./register-genesis-assistant"
6271
- }
6272
- },
6273
- {
6274
- "kind": "js",
6275
- "name": "registerGenesisAssistant",
6276
- "declaration": {
6277
- "name": "registerGenesisAssistant",
6278
- "module": "./register-genesis-assistant"
6279
- }
6280
- },
6281
- {
6282
- "kind": "js",
6283
- "name": "customCodeOf",
6284
- "declaration": {
6285
- "name": "customCodeOf",
6286
- "module": "./config"
6287
- }
6288
- },
6289
- {
6290
- "kind": "js",
6291
- "name": "rowActionProblem",
6292
- "declaration": {
6293
- "name": "rowActionProblem",
6294
- "module": "./config"
6295
- }
6296
- },
6297
- {
6298
- "kind": "js",
6299
- "name": "GENESIS_AI_CONSUMES",
6300
- "declaration": {
6301
- "name": "GENESIS_AI_CONSUMES",
6302
- "module": "./consumes"
6303
- }
6304
- },
6305
- {
6306
- "kind": "js",
6307
- "name": "validateGenesisAiConfig",
6308
- "declaration": {
6309
- "name": "validateGenesisAiConfig",
6310
- "module": "./config"
6311
- }
6312
- },
6313
- {
6314
- "kind": "js",
6315
- "name": "DroppedResource",
6316
- "declaration": {
6317
- "name": "DroppedResource",
6318
- "module": "./config"
6319
- }
6320
- },
6321
- {
6322
- "kind": "js",
6323
- "name": "GenesisAiConfigCheck",
6324
- "declaration": {
6325
- "name": "GenesisAiConfigCheck",
6326
- "module": "./config"
6327
- }
6328
- },
6329
- {
6330
- "kind": "js",
6331
- "name": "GenesisFilter",
6332
- "declaration": {
6333
- "name": "GenesisFilter",
6334
- "module": "./criteria"
6335
- }
6336
- },
6337
- {
6338
- "kind": "js",
6339
- "name": "GenesisFilterField",
6340
- "declaration": {
6341
- "name": "GenesisFilterField",
6342
- "module": "./criteria"
6343
- }
6344
- },
6345
- {
6346
- "kind": "js",
6347
- "name": "GenesisFilterOp",
6348
- "declaration": {
6349
- "name": "GenesisFilterOp",
6350
- "module": "./criteria"
6351
- }
6352
- },
6353
- {
6354
- "kind": "js",
6355
- "name": "createGenesisResourceTools",
6356
- "declaration": {
6357
- "name": "createGenesisResourceTools",
6358
- "module": "./resource-tools"
6359
- }
6360
- },
6361
- {
6362
- "kind": "js",
6363
- "name": "GENESIS_DATA_SOURCE",
6364
- "declaration": {
6365
- "name": "GENESIS_DATA_SOURCE",
6366
- "module": "./resource-tools"
6367
- }
6368
- },
6369
- {
6370
- "kind": "js",
6371
- "name": "createGenesisWriteTools",
6372
- "declaration": {
6373
- "name": "createGenesisWriteTools",
6374
- "module": "./write-tools"
6375
- }
6376
- },
6377
- {
6378
- "kind": "js",
6379
- "name": "GenesisWriteDecision",
6380
- "declaration": {
6381
- "name": "GenesisWriteDecision",
6382
- "module": "./write-tools"
6383
- }
6384
- },
6385
- {
6386
- "kind": "js",
6387
- "name": "GenesisWriteResult",
6388
- "declaration": {
6389
- "name": "GenesisWriteResult",
6390
- "module": "./write-tools"
6391
- }
6392
- },
6393
- {
6394
- "kind": "js",
6395
- "name": "GenesisWriteRowStatus",
6396
- "declaration": {
6397
- "name": "GenesisWriteRowStatus",
6398
- "module": "./write-tools"
6399
- }
6400
- },
6401
- {
6402
- "kind": "js",
6403
- "name": "GenesisWriteToolsOptions",
6404
- "declaration": {
6405
- "name": "GenesisWriteToolsOptions",
6406
- "module": "./write-tools"
6407
- }
6408
- },
6409
- {
6410
- "kind": "js",
6411
- "name": "GENESIS_WRITE_REVIEW",
6412
- "declaration": {
6413
- "name": "GENESIS_WRITE_REVIEW",
6414
- "module": "./write-review/write-review"
6415
- }
6416
- },
6417
- {
6418
- "kind": "js",
6419
- "name": "GenesisWriteReview",
6420
- "declaration": {
6421
- "name": "GenesisWriteReview",
6422
- "module": "./write-review/write-review"
6423
- }
6424
- },
6425
- {
6426
- "kind": "js",
6427
- "name": "GenesisChangeRequest",
6428
- "declaration": {
6429
- "name": "GenesisChangeRequest",
6430
- "module": "./review-payload"
6431
- }
6432
- },
6433
- {
6434
- "kind": "js",
6435
- "name": "GenesisReviewPayload",
6436
- "declaration": {
6437
- "name": "GenesisReviewPayload",
6438
- "module": "./review-payload"
6439
- }
6440
- },
6441
- {
6442
- "kind": "js",
6443
- "name": "GenesisWriteReviewCompletedEventDetail",
6444
- "declaration": {
6445
- "name": "GenesisWriteReviewCompletedEventDetail",
6446
- "module": "./review-payload"
6447
- }
6448
- },
6449
- {
6450
- "kind": "js",
6451
- "name": "GenesisReadResult",
6452
- "declaration": {
6453
- "name": "GenesisReadResult",
6454
- "module": "./resource-tools"
6455
- }
6456
- },
6457
- {
6458
- "kind": "js",
6459
- "name": "GenesisResourceTools",
6460
- "declaration": {
6461
- "name": "GenesisResourceTools",
6462
- "module": "./resource-tools"
6463
- }
6464
- },
6465
- {
6466
- "kind": "js",
6467
- "name": "GenesisResourceToolsOptions",
6468
- "declaration": {
6469
- "name": "GenesisResourceToolsOptions",
6470
- "module": "./resource-tools"
6471
- }
6472
- },
6473
- {
6474
- "kind": "js",
6475
- "name": "GenesisToolError",
6476
- "declaration": {
6477
- "name": "GenesisToolError",
6478
- "module": "./resource-tools"
6479
- }
6480
- },
6481
- {
6482
- "kind": "js",
6483
- "name": "GENESIS_EVENT_OPS",
6484
- "declaration": {
6485
- "name": "GENESIS_EVENT_OPS",
6486
- "module": "./types"
6487
- }
6488
- },
6489
- {
6490
- "kind": "js",
6491
- "name": "GenesisAiConfig",
6492
- "declaration": {
6493
- "name": "GenesisAiConfig",
6494
- "module": "./types"
6495
- }
6496
- },
6497
- {
6498
- "kind": "js",
6499
- "name": "GenesisAiConsumes",
6500
- "declaration": {
6501
- "name": "GenesisAiConsumes",
6502
- "module": "./types"
6503
- }
6504
- },
6505
- {
6506
- "kind": "js",
6507
- "name": "GenesisAiResource",
6508
- "declaration": {
6509
- "name": "GenesisAiResource",
6510
- "module": "./types"
6511
- }
6512
- },
6513
- {
6514
- "kind": "js",
6515
- "name": "GenesisAssistantExtensions",
6516
- "declaration": {
6517
- "name": "GenesisAssistantExtensions",
6518
- "module": "./types"
6519
- }
6520
- },
6521
- {
6522
- "kind": "js",
6523
- "name": "GenesisAssistantRegistration",
6524
- "declaration": {
6525
- "name": "GenesisAssistantRegistration",
6526
- "module": "./types"
6527
- }
6528
- },
6529
- {
6530
- "kind": "js",
6531
- "name": "GenesisCustomCode",
6532
- "declaration": {
6533
- "name": "GenesisCustomCode",
6534
- "module": "./types"
6535
- }
6536
- },
6537
- {
6538
- "kind": "js",
6539
- "name": "GenesisCustomCodeCheck",
6540
- "declaration": {
6541
- "name": "GenesisCustomCodeCheck",
6542
- "module": "./types"
6543
- }
6544
- },
6545
- {
6546
- "kind": "js",
6547
- "name": "GenesisEventOp",
6548
- "declaration": {
6549
- "name": "GenesisEventOp",
6550
- "module": "./types"
6551
- }
6552
- },
6553
- {
6554
- "kind": "js",
6555
- "name": "GenesisReference",
6556
- "declaration": {
6557
- "name": "GenesisReference",
6558
- "module": "./types"
6559
- }
6560
- },
6561
- {
6562
- "kind": "js",
6563
- "name": "GenesisResourceKind",
6564
- "declaration": {
6565
- "name": "GenesisResourceKind",
6566
- "module": "./types"
6567
- }
6568
- },
6569
- {
6570
- "kind": "js",
6571
- "name": "GenesisRowEffect",
6572
- "declaration": {
6573
- "name": "GenesisRowEffect",
6574
- "module": "./types"
6575
- }
6576
- },
6577
- {
6578
- "kind": "js",
6579
- "name": "GenesisRowInput",
6580
- "declaration": {
6581
- "name": "GenesisRowInput",
6582
- "module": "./types"
6583
- }
6584
- },
6585
- {
6586
- "kind": "js",
6587
- "name": "RegisterGenesisAssistantOptions",
6588
- "declaration": {
6589
- "name": "RegisterGenesisAssistantOptions",
6590
- "module": "./types"
6591
- }
6592
- }
6593
- ]
6594
- },
6595
- {
6596
- "kind": "javascript-module",
6597
- "path": "src/genesis/reference-check.ts",
6598
- "declarations": [
6599
- {
6600
- "kind": "function",
6601
- "name": "tableOf",
6602
- "return": {
6603
- "type": {
6604
- "text": "string"
6605
- }
6606
- },
6607
- "parameters": [
6608
- {
6609
- "name": "resource",
6610
- "type": {
6611
- "text": "string"
6612
- }
6613
- }
6614
- ],
6615
- "description": "The table a `REQ_<T>` reads."
6616
- },
6617
- {
6618
- "kind": "function",
6619
- "name": "notAcceptedHere",
6620
- "return": {
6621
- "type": {
6622
- "text": "string"
6623
- }
6624
- },
6625
- "parameters": [
6626
- {
6627
- "name": "field",
6628
- "type": {
6629
- "text": "string"
6630
- }
6631
- },
6632
- {
6633
- "name": "{ resource, reason }",
6634
- "type": {
6635
- "text": "UncheckedField"
6636
- }
6637
- }
6638
- ],
6639
- "description": "What an insert says about a value it cannot check."
6640
- },
6641
- {
6642
- "kind": "function",
6643
- "name": "cannotBeChanged",
6644
- "return": {
6645
- "type": {
6646
- "text": "string"
6647
- }
6648
- },
6649
- "parameters": [
6650
- {
6651
- "name": "field",
6652
- "type": {
6653
- "text": "string"
6654
- }
6655
- },
6656
- {
6657
- "name": "{ resource, reason }",
6658
- "type": {
6659
- "text": "UncheckedField"
6660
- }
6661
- }
6662
- ],
6663
- "description": "What a modify says about a new value it cannot check."
6664
- }
6665
- ],
6666
- "exports": [
6667
- {
6668
- "kind": "js",
6669
- "name": "tableOf",
6670
- "declaration": {
6671
- "name": "tableOf",
6672
- "module": "src/genesis/reference-check.ts"
6673
- }
6674
- },
6675
- {
6676
- "kind": "js",
6677
- "name": "notAcceptedHere",
6678
- "declaration": {
6679
- "name": "notAcceptedHere",
6680
- "module": "src/genesis/reference-check.ts"
6681
- }
6682
- },
6683
- {
6684
- "kind": "js",
6685
- "name": "cannotBeChanged",
6686
- "declaration": {
6687
- "name": "cannotBeChanged",
6688
- "module": "src/genesis/reference-check.ts"
6689
- }
6690
- }
6691
- ]
6692
- },
6693
- {
6694
- "kind": "javascript-module",
6695
- "path": "src/genesis/reference-existence.ts",
6696
- "declarations": [
6697
- {
6698
- "kind": "variable",
6699
- "name": "MAX_REFERENCE_CHECKS",
6700
- "type": {
6701
- "text": "number"
6702
- },
6703
- "default": "50",
6704
- "description": "The most distinct values one call may check."
6705
- },
6706
- {
6707
- "kind": "function",
6708
- "name": "withReferenceProblems",
6709
- "return": {
6710
- "type": {
6711
- "text": "T[]"
6712
- }
6713
- },
6714
- "parameters": [
6715
- {
6716
- "name": "rows",
6717
- "type": {
6718
- "text": "readonly T[]"
6719
- }
6720
- },
6721
- {
6722
- "name": "problems",
6723
- "type": {
6724
- "text": "ReadonlyMap<number, string[]>"
6725
- }
6726
- }
6727
- ],
6728
- "description": "The rows with what the check found added to their problems."
6729
- }
6730
- ],
6731
- "exports": [
6732
- {
6733
- "kind": "js",
6734
- "name": "MAX_REFERENCE_CHECKS",
6735
- "declaration": {
6736
- "name": "MAX_REFERENCE_CHECKS",
6737
- "module": "src/genesis/reference-existence.ts"
6738
- }
6739
- },
6740
- {
6741
- "kind": "js",
6742
- "name": "withReferenceProblems",
6743
- "declaration": {
6744
- "name": "withReferenceProblems",
6745
- "module": "src/genesis/reference-existence.ts"
6746
- }
6747
- }
6748
- ]
6749
- },
6750
- {
6751
- "kind": "javascript-module",
6752
- "path": "src/genesis/register-genesis-assistant.ts",
6753
- "declarations": [
6754
- {
6755
- "kind": "variable",
6756
- "name": "GENESIS_AGENT_NAME",
6757
- "type": {
6758
- "text": "string"
6759
- },
6760
- "default": "'genesis-assistant'",
6761
- "description": "The name of the agent registerGenesisAssistant builds."
6762
- },
6763
- {
6764
- "kind": "function",
6765
- "name": "registerGenesisAssistant",
6766
- "return": {
6767
- "type": {
6768
- "text": "GenesisAssistantRegistration"
6769
- }
6770
- },
6771
- "parameters": [
6772
- {
6773
- "name": "options",
6774
- "type": {
6775
- "text": "RegisterGenesisAssistantOptions"
6776
- }
6777
- }
6778
- ],
6779
- "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."
6780
- }
6781
- ],
6782
- "exports": [
6783
- {
6784
- "kind": "js",
6785
- "name": "GENESIS_AGENT_NAME",
6786
- "declaration": {
6787
- "name": "GENESIS_AGENT_NAME",
6788
- "module": "src/genesis/register-genesis-assistant.ts"
6789
- }
6790
- },
6791
- {
6792
- "kind": "js",
6793
- "name": "registerGenesisAssistant",
6794
- "declaration": {
6795
- "name": "registerGenesisAssistant",
6796
- "module": "src/genesis/register-genesis-assistant.ts"
6797
- }
6798
- }
6799
- ]
6800
- },
6801
- {
6802
- "kind": "javascript-module",
6803
- "path": "src/genesis/resource-tools.ts",
6804
- "declarations": [
6805
- {
6806
- "kind": "variable",
6807
- "name": "GENESIS_DATA_SOURCE",
6808
- "type": {
6809
- "text": "string"
6810
- },
6811
- "default": "'app-database'",
6812
- "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."
6813
- },
6814
- {
6815
- "kind": "function",
6816
- "name": "createGenesisResourceTools",
6817
- "return": {
6818
- "type": {
6819
- "text": "GenesisResourceTools"
6820
- }
6821
- },
6822
- "parameters": [
6823
- {
6824
- "name": "resources",
6825
- "type": {
6826
- "text": "readonly GenesisAiResource[]"
6827
- }
6828
- },
6829
- {
6830
- "name": "options",
6831
- "default": "{}",
6832
- "type": {
6833
- "text": "GenesisResourceToolsOptions"
6834
- }
6835
- }
6836
- ],
6837
- "description": "Builds the assistant's tools from an app's resources."
6838
- }
6839
- ],
6840
- "exports": [
6841
- {
6842
- "kind": "js",
6843
- "name": "GENESIS_DATA_SOURCE",
6844
- "declaration": {
6845
- "name": "GENESIS_DATA_SOURCE",
6846
- "module": "src/genesis/resource-tools.ts"
6847
- }
6848
- },
6849
- {
6850
- "kind": "js",
6851
- "name": "createGenesisResourceTools",
6852
- "declaration": {
6853
- "name": "createGenesisResourceTools",
6854
- "module": "src/genesis/resource-tools.ts"
6855
- }
6856
- }
6857
- ]
6858
- },
6859
- {
6860
- "kind": "javascript-module",
6861
- "path": "src/genesis/review-model.ts",
6862
- "declarations": [
6863
- {
6864
- "kind": "variable",
6865
- "name": "LONG_VALUE",
6866
- "type": {
6867
- "text": "number"
6868
- },
6869
- "default": "24",
6870
- "description": "Past this many characters a value wraps; at or under it, it stays on one line."
6871
- }
6872
- ],
6873
- "exports": [
6874
- {
6875
- "kind": "js",
6876
- "name": "GenesisChangeRequest",
6877
- "declaration": {
6878
- "name": "GenesisChangeRequest",
6879
- "module": "./review-payload"
6880
- }
6881
- },
6882
- {
6883
- "kind": "js",
6884
- "name": "GenesisReviewPayload",
6885
- "declaration": {
6886
- "name": "GenesisReviewPayload",
6887
- "module": "./review-payload"
6888
- }
6889
- },
6890
- {
6891
- "kind": "js",
6892
- "name": "LONG_VALUE",
6893
- "declaration": {
6894
- "name": "LONG_VALUE",
6895
- "module": "src/genesis/review-model.ts"
6896
- }
6897
- }
6898
- ]
6899
- },
6900
- {
6901
- "kind": "javascript-module",
6902
- "path": "src/genesis/review-payload.ts",
6903
- "declarations": [],
6904
- "exports": []
6905
- },
6906
- {
6907
- "kind": "javascript-module",
6908
- "path": "src/genesis/row-source.ts",
6909
- "declarations": [],
6910
- "exports": []
6911
- },
6912
- {
6913
- "kind": "javascript-module",
6914
- "path": "src/genesis/serialisable.ts",
6915
- "declarations": [],
6916
- "exports": []
6917
- },
6918
- {
6919
- "kind": "javascript-module",
6920
- "path": "src/genesis/server-text.ts",
6921
- "declarations": [
6922
- {
6923
- "kind": "function",
6924
- "name": "readsLikeFieldName",
6925
- "return": {
6926
- "type": {
6927
- "text": "boolean"
6928
- }
6929
- },
6930
- "parameters": [
6931
- {
6932
- "name": "text",
6933
- "type": {
6934
- "text": "string"
6935
- }
6936
- }
6937
- ],
6938
- "description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
6939
- },
6940
- {
6941
- "kind": "function",
6942
- "name": "describeFailure",
6943
- "return": {
6944
- "type": {
6945
- "text": "string | undefined"
6946
- }
6947
- },
6948
- "parameters": [
6949
- {
6950
- "name": "error",
6951
- "type": {
6952
- "text": "unknown"
6953
- }
6954
- }
6955
- ],
6956
- "description": "Whatever a rejection turns out to be, as a sentence."
6957
- }
6958
- ],
6959
- "exports": [
6960
- {
6961
- "kind": "js",
6962
- "name": "readsLikeFieldName",
6963
- "declaration": {
6964
- "name": "readsLikeFieldName",
6965
- "module": "src/genesis/server-text.ts"
6966
- }
6967
- },
6968
- {
6969
- "kind": "js",
6970
- "name": "describeFailure",
6971
- "declaration": {
6972
- "name": "describeFailure",
6973
- "module": "src/genesis/server-text.ts"
6974
- }
6975
- }
6976
- ]
6977
- },
6978
- {
6979
- "kind": "javascript-module",
6980
- "path": "src/genesis/type-name.ts",
6981
- "declarations": [],
6982
- "exports": []
6983
- },
6984
- {
6985
- "kind": "javascript-module",
6986
- "path": "src/genesis/types.ts",
6987
- "declarations": [
6988
- {
6989
- "kind": "variable",
6990
- "name": "GENESIS_EVENT_OPS",
6991
- "type": {
6992
- "text": "['insert', 'modify', 'delete', 'custom']"
6993
- },
6994
- "default": "['insert', 'modify', 'delete', 'custom']",
6995
- "description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
6996
- }
6997
- ],
6998
- "exports": [
6999
- {
7000
- "kind": "js",
7001
- "name": "GENESIS_EVENT_OPS",
7002
- "declaration": {
7003
- "name": "GENESIS_EVENT_OPS",
7004
- "module": "src/genesis/types.ts"
7005
- }
7006
- }
7007
- ]
7008
- },
7009
- {
7010
- "kind": "javascript-module",
7011
- "path": "src/genesis/value-compare.ts",
7012
- "declarations": [],
7013
- "exports": []
7014
- },
7015
- {
7016
- "kind": "javascript-module",
7017
- "path": "src/genesis/write-commit.ts",
7018
- "declarations": [],
7019
- "exports": []
7020
- },
7021
- {
7022
- "kind": "javascript-module",
7023
- "path": "src/genesis/write-op.ts",
7024
- "declarations": [],
7025
- "exports": []
7026
- },
7027
- {
7028
- "kind": "javascript-module",
7029
- "path": "src/genesis/write-outcome.ts",
7030
- "declarations": [],
7031
- "exports": []
7032
- },
7033
- {
7034
- "kind": "javascript-module",
7035
- "path": "src/genesis/write-payload.ts",
7036
- "declarations": [
7037
- {
7038
- "kind": "function",
7039
- "name": "buildEventPayload",
7040
- "return": {
7041
- "type": {
7042
- "text": "PayloadResult"
7043
- }
7044
- },
7045
- "parameters": [
7046
- {
7047
- "name": "fields",
7048
- "type": {
7049
- "text": "readonly GenesisEventField[]"
7050
- }
7051
- },
7052
- {
7053
- "name": "row",
7054
- "type": {
7055
- "text": "unknown"
7056
- }
7057
- },
7058
- {
7059
- "name": "{ op, preImage, unchecked }",
7060
- "type": {
7061
- "text": "BuildPayloadOptions"
7062
- }
7063
- }
7064
- ]
7065
- }
7066
- ],
7067
- "exports": [
7068
- {
7069
- "kind": "js",
7070
- "name": "buildEventPayload",
7071
- "declaration": {
7072
- "name": "buildEventPayload",
7073
- "module": "src/genesis/write-payload.ts"
7074
- }
7075
- }
7076
- ]
7077
- },
7078
- {
7079
- "kind": "javascript-module",
7080
- "path": "src/genesis/write-plan.ts",
7081
- "declarations": [
7082
- {
7083
- "kind": "variable",
7084
- "name": "MAX_WRITE_ROWS",
7085
- "type": {
7086
- "text": "number"
7087
- },
7088
- "default": "25",
7089
- "description": "A batch a person can actually read before approving it."
7090
- }
7091
- ],
7092
- "exports": [
7093
- {
7094
- "kind": "js",
7095
- "name": "MAX_WRITE_ROWS",
7096
- "declaration": {
7097
- "name": "MAX_WRITE_ROWS",
7098
- "module": "src/genesis/write-plan.ts"
7099
- }
7100
- }
7101
- ]
7102
- },
7103
- {
7104
- "kind": "javascript-module",
7105
- "path": "src/genesis/write-tools.ts",
7106
- "declarations": [
7107
- {
7108
- "kind": "function",
7109
- "name": "createGenesisWriteTools",
7110
- "return": {
7111
- "type": {
7112
- "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}"
7113
- }
7114
- },
7115
- "parameters": [
7116
- {
7117
- "name": "resources",
7118
- "type": {
7119
- "text": "readonly GenesisAiResource[]"
7120
- }
7121
- },
7122
- {
7123
- "name": "options",
7124
- "default": "{}",
7125
- "type": {
7126
- "text": "GenesisWriteToolsOptions"
7127
- }
7128
- }
7129
- ],
7130
- "description": "Builds the assistant's write tools from an app's event resources."
7131
- }
7132
- ],
7133
- "exports": [
7134
- {
7135
- "kind": "js",
7136
- "name": "createGenesisWriteTools",
7137
- "declaration": {
7138
- "name": "createGenesisWriteTools",
7139
- "module": "src/genesis/write-tools.ts"
7140
- }
7141
- }
7142
- ]
7143
- },
7144
- {
7145
- "kind": "javascript-module",
7146
- "path": "src/genesis/write-turn.ts",
7147
- "declarations": [],
7148
- "exports": []
7149
- },
7150
- {
7151
- "kind": "javascript-module",
7152
- "path": "src/headless/describe-interaction.ts",
7153
- "declarations": [
7154
- {
7155
- "kind": "function",
7156
- "name": "describeInteraction",
7157
- "return": {
7158
- "type": {
7159
- "text": "InteractionDescription"
7160
- }
7161
- },
7162
- "parameters": [
7163
- {
7164
- "name": "input",
7165
- "type": {
7166
- "text": "DescribeInteractionInput"
7167
- }
7168
- }
7169
- ],
7170
- "description": "What the person is being asked, as a compact JSON-serialisable record a model can read and\nanswer (GENC-1660): the same text the autopilot is sent for the decision (`renderDecision`,\nso there is one rendering of a decision, not two), and its actions as data, numbered as that text\nnumbers them, so \"1\" means the same option here and there.\n\nWith no surface — a widget with no controller, or one that has not exposed anything yet — there\nis nothing to act on: `controller` is `false` (or `true` and not `ready`, while a controller that\nwill expose a surface has not yet), `actions` is empty, and `text` is the widget as text alone.\n\nReads the surface fresh each time, so it describes the widget as it is now."
7171
- }
7172
- ],
7173
- "exports": [
7174
- {
7175
- "kind": "js",
7176
- "name": "describeInteraction",
7177
- "declaration": {
7178
- "name": "describeInteraction",
7179
- "module": "src/headless/describe-interaction.ts"
7180
- }
7181
- }
7182
- ]
7183
- },
7184
- {
7185
- "kind": "javascript-module",
7186
- "path": "src/headless/headless-debug.ts",
7187
- "declarations": [
7188
- {
7189
- "kind": "function",
7190
- "name": "headlessMetaSnapshot",
7191
- "return": {
7192
- "type": {
7193
- "text": "DiagnosticEntry"
7194
- }
7195
- },
7196
- "parameters": [
7197
- {
7198
- "name": "driver",
7199
- "type": {
7200
- "text": "AiDriver"
7201
- }
7202
- },
7203
- {
7204
- "name": "options",
7205
- "default": "{}",
7206
- "type": {
7207
- "text": "HeadlessDebugOptions"
7208
- }
7209
- }
7210
- ],
7211
- "description": "The `meta-snapshot` entry for right now, gathered the way the assistant element gathers it\n(`buildMetaSnapshot` does the assembly; this reads what it reports): the live agent comes from\nthe DRIVER, the transcript from its raw history, and the figures from the transcript, so what a\nheadless host logs is what the browser would. The context window and model, which the element\nlearns from its provider registry, are the host's to say."
7212
- },
7213
- {
7214
- "kind": "function",
7215
- "name": "headlessDiagnosticEntries",
7216
- "return": {
7217
- "type": {
7218
- "text": "DiagnosticEntry[]"
7219
- }
7220
- },
7221
- "parameters": [
7222
- {
7223
- "name": "driver",
7224
- "type": {
7225
- "text": "AiDriver"
7226
- }
7227
- },
7228
- {
7229
- "name": "stateKey",
7230
- "type": {
7231
- "text": "string"
7232
- }
7233
- },
7234
- {
7235
- "name": "options",
7236
- "default": "{}",
7237
- "type": {
7238
- "text": "HeadlessDebugOptions"
7239
- }
7240
- }
7241
- ],
7242
- "description": "The diagnostic entries for the session so far, from the same `buildDiagnosticEntries` the\nbrowser's element and its persister use."
7243
- },
7244
- {
7245
- "kind": "function",
7246
- "name": "headlessCurrentDebugLog",
7247
- "return": {
7248
- "type": {
7249
- "text": "DebugLog"
7250
- }
7251
- },
7252
- "parameters": [
7253
- {
7254
- "name": "driver",
7255
- "type": {
7256
- "text": "AiDriver"
7257
- }
7258
- },
7259
- {
7260
- "name": "stateKey",
7261
- "type": {
7262
- "text": "string"
7263
- }
7264
- },
7265
- {
7266
- "name": "options",
7267
- "default": "{}",
7268
- "type": {
7269
- "text": "HeadlessDebugOptions"
7270
- }
7271
- }
7272
- ],
7273
- "description": "The current page's debug log: what `HeadlessSession.debugLog()` returns when nothing is\npersisted, and the fallback when the stored stream cannot be read."
7274
- }
7275
- ],
7276
- "exports": [
7277
- {
7278
- "kind": "js",
7279
- "name": "headlessMetaSnapshot",
7280
- "declaration": {
7281
- "name": "headlessMetaSnapshot",
7282
- "module": "src/headless/headless-debug.ts"
7283
- }
7284
- },
7285
- {
7286
- "kind": "js",
7287
- "name": "headlessDiagnosticEntries",
7288
- "declaration": {
7289
- "name": "headlessDiagnosticEntries",
7290
- "module": "src/headless/headless-debug.ts"
7291
- }
7292
- },
7293
- {
7294
- "kind": "js",
7295
- "name": "headlessCurrentDebugLog",
7296
- "declaration": {
7297
- "name": "headlessCurrentDebugLog",
7298
- "module": "src/headless/headless-debug.ts"
7299
- }
7300
- }
7301
- ]
7302
- },
7303
- {
7304
- "kind": "javascript-module",
7305
- "path": "src/headless/headless-persistence.ts",
7306
- "declarations": [
7307
- {
7308
- "kind": "function",
7309
- "name": "headlessPersistence",
7310
- "return": {
7311
- "type": {
7312
- "text": "HeadlessPersistence"
7313
- }
7314
- },
7315
- "parameters": [
7316
- {
7317
- "name": "options",
7318
- "type": {
7319
- "text": "HeadlessPersistenceOptions"
7320
- }
7321
- }
7322
- ],
7323
- "description": "Persistence for a `HeadlessSession`: it writes exactly what the browser writes — the\n`sessions/<key>` snapshot and the `diag/<key>` stream — through the platform's\n`SessionPersister` and the host's `SessionPersistenceProvider`, and builds the lifetime debug log\nfrom the same code as the browser's Download.\n\nExported from the package's main entry only, NOT from the Node entry (`./chat-driver`): it\nreaches the session store, and through it `@genesislcap/foundation-redux`, which are not\nNode-clean. The `persister` it makes is the registry's, so a host can restore through\n`getPersister(stateKey)`."
7324
- }
7325
- ],
7326
- "exports": [
7327
- {
7328
- "kind": "js",
7329
- "name": "headlessPersistence",
7330
- "declaration": {
7331
- "name": "headlessPersistence",
7332
- "module": "src/headless/headless-persistence.ts"
7333
- }
7334
- }
7335
- ]
7336
- },
7337
- {
7338
- "kind": "javascript-module",
7339
- "path": "src/headless/headless-session.ts",
7340
- "declarations": [
7341
- {
7342
- "kind": "class",
7343
- "description": "A driver with no screen: a way for a host with no browser (a coding agent behind a small HTTP\nserver, a test) to run a whole assistant journey as the person (GENC-1660).\n\nIt watches the driver for interactions and turns the conversation into an append-only log of\nplain-data events (see HeadlessEvent): `decision` when the person has something to\nanswer, `working` when someone else has it, `settled`, the visible `message`s, the end of each\n`turn`, the autopilot's state, and the host's own `probe`. The caller reads the log with\nHeadlessSession.wait, a long poll cursored by `seq`, so nothing is lost between calls.\nIt answers with HeadlessSession.act, which runs a widget's action as a click would, with\nthe same numbered options the autopilot is shown.\n\nIt only observes: its interceptor never claims an interaction, so an autopilot on the same\ndriver works as it always does, and what the session reports as a `decision` is what the autopilot\nhas handed to the person. Plain classes only: no DOM, no FAST.",
7344
- "name": "HeadlessSession",
7345
- "members": [
7346
- {
7347
- "kind": "field",
7348
- "name": "sessionKey",
7349
- "type": {
7350
- "text": "string"
7351
- },
7352
- "privacy": "private",
7353
- "readonly": true
7354
- },
7355
- {
7356
- "kind": "field",
7357
- "name": "allowRaw",
7358
- "type": {
7359
- "text": "boolean"
7360
- },
7361
- "privacy": "private",
7362
- "readonly": true
7363
- },
7364
- {
7365
- "kind": "field",
7366
- "name": "clock",
7367
- "type": {
7368
- "text": "() => number"
7369
- },
7370
- "privacy": "private",
7371
- "readonly": true
7372
- },
7373
- {
7374
- "kind": "field",
7375
- "name": "autopilotHost",
7376
- "type": {
7377
- "text": "AutopilotLike | undefined"
7378
- },
7379
- "privacy": "private",
7380
- "readonly": true,
7381
- "default": "autopilot"
7382
- },
7383
- {
7384
- "kind": "field",
7385
- "name": "events",
7386
- "type": {
7387
- "text": "HeadlessEvent[]"
7388
- },
7389
- "privacy": "private",
7390
- "readonly": true,
7391
- "default": "[]"
7392
- },
7393
- {
7394
- "kind": "field",
7395
- "name": "seq",
7396
- "type": {
7397
- "text": "number"
7398
- },
7399
- "privacy": "private",
7400
- "default": "0"
7401
- },
7402
- {
7403
- "kind": "field",
7404
- "name": "tracked",
7405
- "privacy": "private",
7406
- "readonly": true,
7407
- "default": "new Map<string, Tracked>()"
7408
- },
7409
- {
7410
- "kind": "field",
7411
- "name": "origin",
7412
- "privacy": "private",
7413
- "readonly": true,
7414
- "default": "new Map<string, { auto?: boolean; raw?: boolean }>()",
7415
- "description": "What the session did to an interaction itself, for `settled` to say when the driver reports it."
7416
- },
7417
- {
7418
- "kind": "field",
7419
- "name": "waiters",
7420
- "privacy": "private",
7421
- "readonly": true,
7422
- "default": "new Set<Waiter>()"
7423
- },
7424
- {
7425
- "kind": "field",
7426
- "name": "teardown",
7427
- "type": {
7428
- "text": "Array<() => void>"
7429
- },
7430
- "privacy": "private",
7431
- "readonly": true,
7432
- "default": "[]"
7433
- },
7434
- {
7435
- "kind": "field",
7436
- "name": "seen",
7437
- "type": {
7438
- "text": "number"
7439
- },
7440
- "privacy": "private",
7441
- "description": "How much of the driver's history has been reported as messages."
7442
- },
7443
- {
7444
- "kind": "field",
7445
- "name": "turn",
7446
- "type": {
7447
- "text": "Promise<unknown> | undefined"
7448
- },
7449
- "privacy": "private",
7450
- "description": "The `send` in flight, if any."
7451
- },
7452
- {
7453
- "kind": "field",
7454
- "name": "open",
7455
- "type": {
7456
- "text": "{ start: number; reason?: string; failureReason?: string } | undefined"
7457
- },
7458
- "privacy": "private",
7459
- "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."
7460
- },
7461
- {
7462
- "kind": "field",
7463
- "name": "base",
7464
- "type": {
7465
- "text": "number"
7466
- },
7467
- "privacy": "private",
7468
- "description": "History length when the last turn closed: where a turn the session did not start begins."
7469
- },
7470
- {
7471
- "kind": "field",
7472
- "name": "quiesceTimer",
7473
- "type": {
7474
- "text": "ReturnType<typeof setTimeout> | undefined"
7475
- },
7476
- "privacy": "private"
7477
- },
7478
- {
7479
- "kind": "field",
7480
- "name": "poller",
7481
- "type": {
7482
- "text": "ReturnType<typeof setInterval> | undefined"
7483
- },
7484
- "privacy": "private"
7485
- },
7486
- {
7487
- "kind": "field",
7488
- "name": "persistence",
7489
- "type": {
7490
- "text": "HeadlessPersistenceBinding | undefined"
7491
- },
7492
- "privacy": "private",
7493
- "readonly": true
7494
- },
7495
- {
7496
- "kind": "field",
7497
- "name": "lastProbe",
7498
- "type": {
7499
- "text": "Record<string, unknown>"
7500
- },
7501
- "privacy": "private",
7502
- "default": "{}"
7503
- },
7504
- {
7505
- "kind": "field",
7506
- "name": "lastAutopilot",
6211
+ "kind": "field",
6212
+ "name": "seq",
6213
+ "type": {
6214
+ "text": "number"
6215
+ },
6216
+ "privacy": "private",
6217
+ "default": "0"
6218
+ },
6219
+ {
6220
+ "kind": "field",
6221
+ "name": "tracked",
6222
+ "privacy": "private",
6223
+ "readonly": true,
6224
+ "default": "new Map<string, Tracked>()"
6225
+ },
6226
+ {
6227
+ "kind": "field",
6228
+ "name": "origin",
6229
+ "privacy": "private",
6230
+ "readonly": true,
6231
+ "default": "new Map<string, { auto?: boolean; raw?: boolean }>()",
6232
+ "description": "What the session did to an interaction itself, for `settled` to say when the driver reports it."
6233
+ },
6234
+ {
6235
+ "kind": "field",
6236
+ "name": "waiters",
6237
+ "privacy": "private",
6238
+ "readonly": true,
6239
+ "default": "new Set<Waiter>()"
6240
+ },
6241
+ {
6242
+ "kind": "field",
6243
+ "name": "teardown",
6244
+ "type": {
6245
+ "text": "Array<() => void>"
6246
+ },
6247
+ "privacy": "private",
6248
+ "readonly": true,
6249
+ "default": "[]"
6250
+ },
6251
+ {
6252
+ "kind": "field",
6253
+ "name": "seen",
6254
+ "type": {
6255
+ "text": "number"
6256
+ },
6257
+ "privacy": "private",
6258
+ "description": "How much of the driver's history has been reported as messages."
6259
+ },
6260
+ {
6261
+ "kind": "field",
6262
+ "name": "turn",
6263
+ "type": {
6264
+ "text": "Promise<unknown> | undefined"
6265
+ },
6266
+ "privacy": "private",
6267
+ "description": "The `send` in flight, if any."
6268
+ },
6269
+ {
6270
+ "kind": "field",
6271
+ "name": "open",
6272
+ "type": {
6273
+ "text": "{ start: number; reason?: string; failureReason?: string } | undefined"
6274
+ },
6275
+ "privacy": "private",
6276
+ "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."
6277
+ },
6278
+ {
6279
+ "kind": "field",
6280
+ "name": "base",
6281
+ "type": {
6282
+ "text": "number"
6283
+ },
6284
+ "privacy": "private",
6285
+ "description": "History length when the last turn closed: where a turn the session did not start begins."
6286
+ },
6287
+ {
6288
+ "kind": "field",
6289
+ "name": "quiesceTimer",
6290
+ "type": {
6291
+ "text": "ReturnType<typeof setTimeout> | undefined"
6292
+ },
6293
+ "privacy": "private"
6294
+ },
6295
+ {
6296
+ "kind": "field",
6297
+ "name": "poller",
6298
+ "type": {
6299
+ "text": "ReturnType<typeof setInterval> | undefined"
6300
+ },
6301
+ "privacy": "private"
6302
+ },
6303
+ {
6304
+ "kind": "field",
6305
+ "name": "persistence",
6306
+ "type": {
6307
+ "text": "HeadlessPersistenceBinding | undefined"
6308
+ },
6309
+ "privacy": "private",
6310
+ "readonly": true
6311
+ },
6312
+ {
6313
+ "kind": "field",
6314
+ "name": "lastProbe",
6315
+ "type": {
6316
+ "text": "Record<string, unknown>"
6317
+ },
6318
+ "privacy": "private",
6319
+ "default": "{}"
6320
+ },
6321
+ {
6322
+ "kind": "field",
6323
+ "name": "lastAutopilot",
7507
6324
  "type": {
7508
6325
  "text": "string"
7509
6326
  },
@@ -8060,388 +6877,1571 @@
8060
6877
  "description": "Report the open turn as ended, unless the driver is busy again."
8061
6878
  },
8062
6879
  {
8063
- "kind": "method",
8064
- "name": "startPolling",
8065
- "privacy": "private",
8066
- "return": {
8067
- "type": {
8068
- "text": "void"
8069
- }
8070
- },
8071
- "description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
8072
- },
6880
+ "kind": "method",
6881
+ "name": "startPolling",
6882
+ "privacy": "private",
6883
+ "return": {
6884
+ "type": {
6885
+ "text": "void"
6886
+ }
6887
+ },
6888
+ "description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
6889
+ },
6890
+ {
6891
+ "kind": "method",
6892
+ "name": "stopPolling",
6893
+ "privacy": "private",
6894
+ "return": {
6895
+ "type": {
6896
+ "text": "void"
6897
+ }
6898
+ }
6899
+ },
6900
+ {
6901
+ "kind": "method",
6902
+ "name": "logTurn",
6903
+ "privacy": "private",
6904
+ "return": {
6905
+ "type": {
6906
+ "text": "void"
6907
+ }
6908
+ },
6909
+ "parameters": [
6910
+ {
6911
+ "name": "reason",
6912
+ "type": {
6913
+ "text": "string"
6914
+ }
6915
+ },
6916
+ {
6917
+ "name": "failureReason",
6918
+ "type": {
6919
+ "text": "string | undefined"
6920
+ }
6921
+ },
6922
+ {
6923
+ "name": "start",
6924
+ "type": {
6925
+ "text": "number"
6926
+ }
6927
+ }
6928
+ ]
6929
+ },
6930
+ {
6931
+ "kind": "method",
6932
+ "name": "log",
6933
+ "privacy": "private",
6934
+ "return": {
6935
+ "type": {
6936
+ "text": "void"
6937
+ }
6938
+ },
6939
+ "parameters": [
6940
+ {
6941
+ "name": "event",
6942
+ "type": {
6943
+ "text": "NewEvent"
6944
+ }
6945
+ }
6946
+ ]
6947
+ },
6948
+ {
6949
+ "kind": "method",
6950
+ "name": "append",
6951
+ "privacy": "private",
6952
+ "return": {
6953
+ "type": {
6954
+ "text": "void"
6955
+ }
6956
+ },
6957
+ "parameters": [
6958
+ {
6959
+ "name": "event",
6960
+ "type": {
6961
+ "text": "NewEvent"
6962
+ }
6963
+ }
6964
+ ]
6965
+ },
6966
+ {
6967
+ "kind": "method",
6968
+ "name": "readProbe",
6969
+ "privacy": "private",
6970
+ "return": {
6971
+ "type": {
6972
+ "text": "Record<string, unknown>"
6973
+ }
6974
+ }
6975
+ },
6976
+ {
6977
+ "kind": "method",
6978
+ "name": "checkProbe",
6979
+ "privacy": "private",
6980
+ "return": {
6981
+ "type": {
6982
+ "text": "void"
6983
+ }
6984
+ },
6985
+ "description": "Read the probe again; a change in any top-level value is a `probe` event."
6986
+ },
6987
+ {
6988
+ "kind": "method",
6989
+ "name": "waited",
6990
+ "privacy": "private",
6991
+ "return": {
6992
+ "type": {
6993
+ "text": "HeadlessWaitResult"
6994
+ }
6995
+ },
6996
+ "parameters": [
6997
+ {
6998
+ "name": "since",
6999
+ "type": {
7000
+ "text": "number"
7001
+ }
7002
+ },
7003
+ {
7004
+ "name": "status",
7005
+ "type": {
7006
+ "text": "HeadlessWaitResult['status']"
7007
+ }
7008
+ }
7009
+ ]
7010
+ }
7011
+ ]
7012
+ }
7013
+ ],
7014
+ "exports": [
7015
+ {
7016
+ "kind": "js",
7017
+ "name": "HeadlessSession",
7018
+ "declaration": {
7019
+ "name": "HeadlessSession",
7020
+ "module": "src/headless/headless-session.ts"
7021
+ }
7022
+ }
7023
+ ]
7024
+ },
7025
+ {
7026
+ "kind": "javascript-module",
7027
+ "path": "src/headless/headless.types.ts",
7028
+ "declarations": [],
7029
+ "exports": []
7030
+ },
7031
+ {
7032
+ "kind": "javascript-module",
7033
+ "path": "src/headless/index.ts",
7034
+ "declarations": [],
7035
+ "exports": [
7036
+ {
7037
+ "kind": "js",
7038
+ "name": "describeInteraction",
7039
+ "declaration": {
7040
+ "name": "describeInteraction",
7041
+ "module": "./describe-interaction"
7042
+ }
7043
+ },
7044
+ {
7045
+ "kind": "js",
7046
+ "name": "headlessCurrentDebugLog",
7047
+ "declaration": {
7048
+ "name": "headlessCurrentDebugLog",
7049
+ "module": "./headless-debug"
7050
+ }
7051
+ },
7052
+ {
7053
+ "kind": "js",
7054
+ "name": "headlessDiagnosticEntries",
7055
+ "declaration": {
7056
+ "name": "headlessDiagnosticEntries",
7057
+ "module": "./headless-debug"
7058
+ }
7059
+ },
7060
+ {
7061
+ "kind": "js",
7062
+ "name": "headlessMetaSnapshot",
7063
+ "declaration": {
7064
+ "name": "headlessMetaSnapshot",
7065
+ "module": "./headless-debug"
7066
+ }
7067
+ },
7068
+ {
7069
+ "kind": "js",
7070
+ "name": "HeadlessSession",
7071
+ "declaration": {
7072
+ "name": "HeadlessSession",
7073
+ "module": "./headless-session"
7074
+ }
7075
+ },
7076
+ {
7077
+ "kind": "js",
7078
+ "name": "AutopilotLike",
7079
+ "declaration": {
7080
+ "name": "AutopilotLike",
7081
+ "module": "./headless.types"
7082
+ }
7083
+ },
7084
+ {
7085
+ "kind": "js",
7086
+ "name": "DescribedAction",
7087
+ "declaration": {
7088
+ "name": "DescribedAction",
7089
+ "module": "./headless.types"
7090
+ }
7091
+ },
7092
+ {
7093
+ "kind": "js",
7094
+ "name": "DescribeInteractionInput",
7095
+ "declaration": {
7096
+ "name": "DescribeInteractionInput",
7097
+ "module": "./headless.types"
7098
+ }
7099
+ },
7100
+ {
7101
+ "kind": "js",
7102
+ "name": "HeadlessActArgs",
7103
+ "declaration": {
7104
+ "name": "HeadlessActArgs",
7105
+ "module": "./headless.types"
7106
+ }
7107
+ },
7108
+ {
7109
+ "kind": "js",
7110
+ "name": "HeadlessActResult",
7111
+ "declaration": {
7112
+ "name": "HeadlessActResult",
7113
+ "module": "./headless.types"
7114
+ }
7115
+ },
7116
+ {
7117
+ "kind": "js",
7118
+ "name": "HeadlessDebugOptions",
7119
+ "declaration": {
7120
+ "name": "HeadlessDebugOptions",
7121
+ "module": "./headless.types"
7122
+ }
7123
+ },
7124
+ {
7125
+ "kind": "js",
7126
+ "name": "HeadlessEvent",
7127
+ "declaration": {
7128
+ "name": "HeadlessEvent",
7129
+ "module": "./headless.types"
7130
+ }
7131
+ },
7132
+ {
7133
+ "kind": "js",
7134
+ "name": "HeadlessEventBase",
7135
+ "declaration": {
7136
+ "name": "HeadlessEventBase",
7137
+ "module": "./headless.types"
7138
+ }
7139
+ },
7140
+ {
7141
+ "kind": "js",
7142
+ "name": "HeadlessEventType",
7143
+ "declaration": {
7144
+ "name": "HeadlessEventType",
7145
+ "module": "./headless.types"
7146
+ }
7147
+ },
7148
+ {
7149
+ "kind": "js",
7150
+ "name": "HeadlessPersistence",
7151
+ "declaration": {
7152
+ "name": "HeadlessPersistence",
7153
+ "module": "./headless.types"
7154
+ }
7155
+ },
7156
+ {
7157
+ "kind": "js",
7158
+ "name": "HeadlessPersistenceBinding",
7159
+ "declaration": {
7160
+ "name": "HeadlessPersistenceBinding",
7161
+ "module": "./headless.types"
7162
+ }
7163
+ },
7164
+ {
7165
+ "kind": "js",
7166
+ "name": "HeadlessPersistenceHost",
7167
+ "declaration": {
7168
+ "name": "HeadlessPersistenceHost",
7169
+ "module": "./headless.types"
7170
+ }
7171
+ },
7172
+ {
7173
+ "kind": "js",
7174
+ "name": "HeadlessReadRequest",
7175
+ "declaration": {
7176
+ "name": "HeadlessReadRequest",
7177
+ "module": "./headless.types"
7178
+ }
7179
+ },
7180
+ {
7181
+ "kind": "js",
7182
+ "name": "HeadlessReadResult",
7183
+ "declaration": {
7184
+ "name": "HeadlessReadResult",
7185
+ "module": "./headless.types"
7186
+ }
7187
+ },
7188
+ {
7189
+ "kind": "js",
7190
+ "name": "HeadlessResult",
7191
+ "declaration": {
7192
+ "name": "HeadlessResult",
7193
+ "module": "./headless.types"
7194
+ }
7195
+ },
7196
+ {
7197
+ "kind": "js",
7198
+ "name": "HeadlessRestoreOutcome",
7199
+ "declaration": {
7200
+ "name": "HeadlessRestoreOutcome",
7201
+ "module": "./headless.types"
7202
+ }
7203
+ },
7204
+ {
7205
+ "kind": "js",
7206
+ "name": "HeadlessSendOptions",
7207
+ "declaration": {
7208
+ "name": "HeadlessSendOptions",
7209
+ "module": "./headless.types"
7210
+ }
7211
+ },
7212
+ {
7213
+ "kind": "js",
7214
+ "name": "HeadlessSessionOptions",
7215
+ "declaration": {
7216
+ "name": "HeadlessSessionOptions",
7217
+ "module": "./headless.types"
7218
+ }
7219
+ },
7220
+ {
7221
+ "kind": "js",
7222
+ "name": "HeadlessState",
7223
+ "declaration": {
7224
+ "name": "HeadlessState",
7225
+ "module": "./headless.types"
7226
+ }
7227
+ },
7228
+ {
7229
+ "kind": "js",
7230
+ "name": "HeadlessWaitRequest",
7231
+ "declaration": {
7232
+ "name": "HeadlessWaitRequest",
7233
+ "module": "./headless.types"
7234
+ }
7235
+ },
7236
+ {
7237
+ "kind": "js",
7238
+ "name": "HeadlessWaitResult",
7239
+ "declaration": {
7240
+ "name": "HeadlessWaitResult",
7241
+ "module": "./headless.types"
7242
+ }
7243
+ },
7244
+ {
7245
+ "kind": "js",
7246
+ "name": "InteractionDescription",
7247
+ "declaration": {
7248
+ "name": "InteractionDescription",
7249
+ "module": "./headless.types"
7250
+ }
7251
+ },
7252
+ {
7253
+ "kind": "js",
7254
+ "name": "PendingSummary",
7255
+ "declaration": {
7256
+ "name": "PendingSummary",
7257
+ "module": "./headless.types"
7258
+ }
7259
+ }
7260
+ ]
7261
+ },
7262
+ {
7263
+ "kind": "javascript-module",
7264
+ "path": "src/genesis/calendar.ts",
7265
+ "declarations": [],
7266
+ "exports": []
7267
+ },
7268
+ {
7269
+ "kind": "javascript-module",
7270
+ "path": "src/genesis/config.ts",
7271
+ "declarations": [
7272
+ {
7273
+ "kind": "variable",
7274
+ "name": "DEFAULT_MAX_ROWS",
7275
+ "type": {
7276
+ "text": "number"
7277
+ },
7278
+ "default": "50",
7279
+ "description": "The default read cap, and the ceiling the config may raise it to."
7280
+ },
7281
+ {
7282
+ "kind": "variable",
7283
+ "name": "MAX_ROWS_CEILING",
7284
+ "type": {
7285
+ "text": "number"
7286
+ },
7287
+ "default": "1000"
7288
+ },
7289
+ {
7290
+ "kind": "function",
7291
+ "name": "toolNameOf",
7292
+ "return": {
7293
+ "type": {
7294
+ "text": "string"
7295
+ }
7296
+ },
7297
+ "parameters": [
7298
+ {
7299
+ "name": "resourceName",
7300
+ "type": {
7301
+ "text": "string"
7302
+ }
7303
+ }
7304
+ ],
7305
+ "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."
7306
+ },
7307
+ {
7308
+ "kind": "function",
7309
+ "name": "rowActionProblem",
7310
+ "return": {
7311
+ "type": {
7312
+ "text": "string | undefined"
7313
+ }
7314
+ },
7315
+ "parameters": [
8073
7316
  {
8074
- "kind": "method",
8075
- "name": "stopPolling",
8076
- "privacy": "private",
8077
- "return": {
8078
- "type": {
8079
- "text": "void"
8080
- }
7317
+ "name": "resource",
7318
+ "type": {
7319
+ "text": "Partial<GenesisAiResource> | null"
8081
7320
  }
8082
7321
  },
8083
7322
  {
8084
- "kind": "method",
8085
- "name": "logTurn",
8086
- "privacy": "private",
8087
- "return": {
8088
- "type": {
8089
- "text": "void"
8090
- }
7323
+ "name": "requestNames",
7324
+ "type": {
7325
+ "text": "ReadonlySet<string>"
8091
7326
  },
8092
- "parameters": [
8093
- {
8094
- "name": "reason",
8095
- "type": {
8096
- "text": "string"
8097
- }
8098
- },
8099
- {
8100
- "name": "failureReason",
8101
- "type": {
8102
- "text": "string | undefined"
8103
- }
8104
- },
8105
- {
8106
- "name": "start",
8107
- "type": {
8108
- "text": "number"
8109
- }
8110
- }
8111
- ]
7327
+ "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."
8112
7328
  },
8113
7329
  {
8114
- "kind": "method",
8115
- "name": "log",
8116
- "privacy": "private",
8117
- "return": {
8118
- "type": {
8119
- "text": "void"
8120
- }
7330
+ "name": "whyNotReadable",
7331
+ "default": "notReadableReason({})",
7332
+ "type": {
7333
+ "text": "(name: string) => string"
8121
7334
  },
8122
- "parameters": [
8123
- {
8124
- "name": "event",
8125
- "type": {
8126
- "text": "NewEvent"
8127
- }
8128
- }
8129
- ]
8130
- },
7335
+ "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."
7336
+ }
7337
+ ],
7338
+ "description": "What is wrong with a resource's row-action fields (contracts C-18.7.2), if anything."
7339
+ },
7340
+ {
7341
+ "kind": "function",
7342
+ "name": "validateGenesisAiConfig",
7343
+ "return": {
7344
+ "type": {
7345
+ "text": "GenesisAiConfigCheck"
7346
+ }
7347
+ },
7348
+ "parameters": [
8131
7349
  {
8132
- "kind": "method",
8133
- "name": "append",
8134
- "privacy": "private",
8135
- "return": {
8136
- "type": {
8137
- "text": "void"
8138
- }
8139
- },
8140
- "parameters": [
8141
- {
8142
- "name": "event",
8143
- "type": {
8144
- "text": "NewEvent"
8145
- }
8146
- }
8147
- ]
8148
- },
7350
+ "name": "config",
7351
+ "type": {
7352
+ "text": "unknown"
7353
+ }
7354
+ }
7355
+ ],
7356
+ "description": "Checks a generated AI config before anything is registered, and says what can be kept."
7357
+ },
7358
+ {
7359
+ "kind": "function",
7360
+ "name": "customCodeOf",
7361
+ "return": {
7362
+ "type": {
7363
+ "text": "GenesisCustomCodeCheck"
7364
+ }
7365
+ },
7366
+ "parameters": [
7367
+ {
7368
+ "name": "resource",
7369
+ "type": {
7370
+ "text": "GenesisAiResource"
7371
+ }
7372
+ }
7373
+ ],
7374
+ "description": "A resource's `customCode` as it is used: the one reader of the field."
7375
+ }
7376
+ ],
7377
+ "exports": [
7378
+ {
7379
+ "kind": "js",
7380
+ "name": "DEFAULT_MAX_ROWS",
7381
+ "declaration": {
7382
+ "name": "DEFAULT_MAX_ROWS",
7383
+ "module": "src/genesis/config.ts"
7384
+ }
7385
+ },
7386
+ {
7387
+ "kind": "js",
7388
+ "name": "MAX_ROWS_CEILING",
7389
+ "declaration": {
7390
+ "name": "MAX_ROWS_CEILING",
7391
+ "module": "src/genesis/config.ts"
7392
+ }
7393
+ },
7394
+ {
7395
+ "kind": "js",
7396
+ "name": "toolNameOf",
7397
+ "declaration": {
7398
+ "name": "toolNameOf",
7399
+ "module": "src/genesis/config.ts"
7400
+ }
7401
+ },
7402
+ {
7403
+ "kind": "js",
7404
+ "name": "rowActionProblem",
7405
+ "declaration": {
7406
+ "name": "rowActionProblem",
7407
+ "module": "src/genesis/config.ts"
7408
+ }
7409
+ },
7410
+ {
7411
+ "kind": "js",
7412
+ "name": "validateGenesisAiConfig",
7413
+ "declaration": {
7414
+ "name": "validateGenesisAiConfig",
7415
+ "module": "src/genesis/config.ts"
7416
+ }
7417
+ },
7418
+ {
7419
+ "kind": "js",
7420
+ "name": "customCodeOf",
7421
+ "declaration": {
7422
+ "name": "customCodeOf",
7423
+ "module": "src/genesis/config.ts"
7424
+ }
7425
+ }
7426
+ ]
7427
+ },
7428
+ {
7429
+ "kind": "javascript-module",
7430
+ "path": "src/genesis/consumes.ts",
7431
+ "declarations": [
7432
+ {
7433
+ "kind": "variable",
7434
+ "name": "GENESIS_AI_CONSUMES",
7435
+ "type": {
7436
+ "text": "GenesisAiConsumes"
7437
+ },
7438
+ "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."
7439
+ }
7440
+ ],
7441
+ "exports": [
7442
+ {
7443
+ "kind": "js",
7444
+ "name": "GenesisAiConsumes",
7445
+ "declaration": {
7446
+ "name": "GenesisAiConsumes",
7447
+ "module": "./types"
7448
+ }
7449
+ },
7450
+ {
7451
+ "kind": "js",
7452
+ "name": "GENESIS_AI_CONSUMES",
7453
+ "declaration": {
7454
+ "name": "GENESIS_AI_CONSUMES",
7455
+ "module": "src/genesis/consumes.ts"
7456
+ }
7457
+ }
7458
+ ]
7459
+ },
7460
+ {
7461
+ "kind": "javascript-module",
7462
+ "path": "src/genesis/criteria.ts",
7463
+ "declarations": [
7464
+ {
7465
+ "kind": "function",
7466
+ "name": "dateFragment",
7467
+ "return": {
7468
+ "type": {
7469
+ "text": "string | undefined"
7470
+ }
7471
+ },
7472
+ "parameters": [
8149
7473
  {
8150
- "kind": "method",
8151
- "name": "readProbe",
8152
- "privacy": "private",
8153
- "return": {
8154
- "type": {
8155
- "text": "Record<string, unknown>"
8156
- }
7474
+ "name": "field",
7475
+ "type": {
7476
+ "text": "string"
8157
7477
  }
8158
7478
  },
8159
7479
  {
8160
- "kind": "method",
8161
- "name": "checkProbe",
8162
- "privacy": "private",
8163
- "return": {
8164
- "type": {
8165
- "text": "void"
8166
- }
8167
- },
8168
- "description": "Read the probe again; a change in any top-level value is a `probe` event."
7480
+ "name": "op",
7481
+ "type": {
7482
+ "text": "GenesisFilterOp"
7483
+ }
8169
7484
  },
8170
7485
  {
8171
- "kind": "method",
8172
- "name": "waited",
8173
- "privacy": "private",
8174
- "return": {
8175
- "type": {
8176
- "text": "HeadlessWaitResult"
8177
- }
8178
- },
8179
- "parameters": [
8180
- {
8181
- "name": "since",
8182
- "type": {
8183
- "text": "number"
8184
- }
8185
- },
8186
- {
8187
- "name": "status",
8188
- "type": {
8189
- "text": "HeadlessWaitResult['status']"
8190
- }
8191
- }
8192
- ]
7486
+ "name": "date",
7487
+ "type": {
7488
+ "text": "string"
7489
+ }
8193
7490
  }
8194
7491
  ]
7492
+ },
7493
+ {
7494
+ "kind": "function",
7495
+ "name": "dateTimeFragment",
7496
+ "return": {
7497
+ "type": {
7498
+ "text": "string | undefined"
7499
+ }
7500
+ },
7501
+ "parameters": [
7502
+ {
7503
+ "name": "field",
7504
+ "type": {
7505
+ "text": "string"
7506
+ }
7507
+ },
7508
+ {
7509
+ "name": "op",
7510
+ "type": {
7511
+ "text": "GenesisFilterOp"
7512
+ }
7513
+ },
7514
+ {
7515
+ "name": "bound",
7516
+ "type": {
7517
+ "text": "string"
7518
+ }
7519
+ }
7520
+ ],
7521
+ "description": "Timestamp columns get the dateTime helpers, which take a `yyyyMMdd-HH:mm:ss` bound."
8195
7522
  }
8196
7523
  ],
8197
7524
  "exports": [
8198
7525
  {
8199
7526
  "kind": "js",
8200
- "name": "HeadlessSession",
7527
+ "name": "dateFragment",
7528
+ "declaration": {
7529
+ "name": "dateFragment",
7530
+ "module": "src/genesis/criteria.ts"
7531
+ }
7532
+ },
7533
+ {
7534
+ "kind": "js",
7535
+ "name": "dateTimeFragment",
7536
+ "declaration": {
7537
+ "name": "dateTimeFragment",
7538
+ "module": "src/genesis/criteria.ts"
7539
+ }
7540
+ }
7541
+ ]
7542
+ },
7543
+ {
7544
+ "kind": "javascript-module",
7545
+ "path": "src/genesis/event-fields.ts",
7546
+ "declarations": [],
7547
+ "exports": []
7548
+ },
7549
+ {
7550
+ "kind": "javascript-module",
7551
+ "path": "src/genesis/filter-fields.ts",
7552
+ "declarations": [],
7553
+ "exports": []
7554
+ },
7555
+ {
7556
+ "kind": "javascript-module",
7557
+ "path": "src/genesis/index.ts",
7558
+ "declarations": [],
7559
+ "exports": [
7560
+ {
7561
+ "kind": "js",
7562
+ "name": "GENESIS_AGENT_NAME",
7563
+ "declaration": {
7564
+ "name": "GENESIS_AGENT_NAME",
7565
+ "module": "./register-genesis-assistant"
7566
+ }
7567
+ },
7568
+ {
7569
+ "kind": "js",
7570
+ "name": "registerGenesisAssistant",
7571
+ "declaration": {
7572
+ "name": "registerGenesisAssistant",
7573
+ "module": "./register-genesis-assistant"
7574
+ }
7575
+ },
7576
+ {
7577
+ "kind": "js",
7578
+ "name": "customCodeOf",
7579
+ "declaration": {
7580
+ "name": "customCodeOf",
7581
+ "module": "./config"
7582
+ }
7583
+ },
7584
+ {
7585
+ "kind": "js",
7586
+ "name": "rowActionProblem",
7587
+ "declaration": {
7588
+ "name": "rowActionProblem",
7589
+ "module": "./config"
7590
+ }
7591
+ },
7592
+ {
7593
+ "kind": "js",
7594
+ "name": "GENESIS_AI_CONSUMES",
7595
+ "declaration": {
7596
+ "name": "GENESIS_AI_CONSUMES",
7597
+ "module": "./consumes"
7598
+ }
7599
+ },
7600
+ {
7601
+ "kind": "js",
7602
+ "name": "validateGenesisAiConfig",
7603
+ "declaration": {
7604
+ "name": "validateGenesisAiConfig",
7605
+ "module": "./config"
7606
+ }
7607
+ },
7608
+ {
7609
+ "kind": "js",
7610
+ "name": "DroppedResource",
7611
+ "declaration": {
7612
+ "name": "DroppedResource",
7613
+ "module": "./config"
7614
+ }
7615
+ },
7616
+ {
7617
+ "kind": "js",
7618
+ "name": "GenesisAiConfigCheck",
7619
+ "declaration": {
7620
+ "name": "GenesisAiConfigCheck",
7621
+ "module": "./config"
7622
+ }
7623
+ },
7624
+ {
7625
+ "kind": "js",
7626
+ "name": "GenesisFilter",
7627
+ "declaration": {
7628
+ "name": "GenesisFilter",
7629
+ "module": "./criteria"
7630
+ }
7631
+ },
7632
+ {
7633
+ "kind": "js",
7634
+ "name": "GenesisFilterField",
7635
+ "declaration": {
7636
+ "name": "GenesisFilterField",
7637
+ "module": "./criteria"
7638
+ }
7639
+ },
7640
+ {
7641
+ "kind": "js",
7642
+ "name": "GenesisFilterOp",
7643
+ "declaration": {
7644
+ "name": "GenesisFilterOp",
7645
+ "module": "./criteria"
7646
+ }
7647
+ },
7648
+ {
7649
+ "kind": "js",
7650
+ "name": "createGenesisResourceTools",
7651
+ "declaration": {
7652
+ "name": "createGenesisResourceTools",
7653
+ "module": "./resource-tools"
7654
+ }
7655
+ },
7656
+ {
7657
+ "kind": "js",
7658
+ "name": "GENESIS_DATA_SOURCE",
7659
+ "declaration": {
7660
+ "name": "GENESIS_DATA_SOURCE",
7661
+ "module": "./resource-tools"
7662
+ }
7663
+ },
7664
+ {
7665
+ "kind": "js",
7666
+ "name": "createGenesisWriteTools",
7667
+ "declaration": {
7668
+ "name": "createGenesisWriteTools",
7669
+ "module": "./write-tools"
7670
+ }
7671
+ },
7672
+ {
7673
+ "kind": "js",
7674
+ "name": "GenesisWriteDecision",
7675
+ "declaration": {
7676
+ "name": "GenesisWriteDecision",
7677
+ "module": "./write-tools"
7678
+ }
7679
+ },
7680
+ {
7681
+ "kind": "js",
7682
+ "name": "GenesisWriteResult",
7683
+ "declaration": {
7684
+ "name": "GenesisWriteResult",
7685
+ "module": "./write-tools"
7686
+ }
7687
+ },
7688
+ {
7689
+ "kind": "js",
7690
+ "name": "GenesisWriteRowStatus",
7691
+ "declaration": {
7692
+ "name": "GenesisWriteRowStatus",
7693
+ "module": "./write-tools"
7694
+ }
7695
+ },
7696
+ {
7697
+ "kind": "js",
7698
+ "name": "GenesisWriteToolsOptions",
7699
+ "declaration": {
7700
+ "name": "GenesisWriteToolsOptions",
7701
+ "module": "./write-tools"
7702
+ }
7703
+ },
7704
+ {
7705
+ "kind": "js",
7706
+ "name": "GENESIS_WRITE_REVIEW",
8201
7707
  "declaration": {
8202
- "name": "HeadlessSession",
8203
- "module": "src/headless/headless-session.ts"
7708
+ "name": "GENESIS_WRITE_REVIEW",
7709
+ "module": "./write-review/write-review"
8204
7710
  }
8205
- }
8206
- ]
8207
- },
8208
- {
8209
- "kind": "javascript-module",
8210
- "path": "src/headless/headless.types.ts",
8211
- "declarations": [],
8212
- "exports": []
8213
- },
8214
- {
8215
- "kind": "javascript-module",
8216
- "path": "src/headless/index.ts",
8217
- "declarations": [],
8218
- "exports": [
7711
+ },
8219
7712
  {
8220
7713
  "kind": "js",
8221
- "name": "describeInteraction",
7714
+ "name": "GenesisWriteReview",
8222
7715
  "declaration": {
8223
- "name": "describeInteraction",
8224
- "module": "./describe-interaction"
7716
+ "name": "GenesisWriteReview",
7717
+ "module": "./write-review/write-review"
8225
7718
  }
8226
7719
  },
8227
7720
  {
8228
7721
  "kind": "js",
8229
- "name": "headlessCurrentDebugLog",
7722
+ "name": "GenesisChangeRequest",
8230
7723
  "declaration": {
8231
- "name": "headlessCurrentDebugLog",
8232
- "module": "./headless-debug"
7724
+ "name": "GenesisChangeRequest",
7725
+ "module": "./review-payload"
8233
7726
  }
8234
7727
  },
8235
7728
  {
8236
7729
  "kind": "js",
8237
- "name": "headlessDiagnosticEntries",
7730
+ "name": "GenesisReviewPayload",
8238
7731
  "declaration": {
8239
- "name": "headlessDiagnosticEntries",
8240
- "module": "./headless-debug"
7732
+ "name": "GenesisReviewPayload",
7733
+ "module": "./review-payload"
7734
+ }
7735
+ },
7736
+ {
7737
+ "kind": "js",
7738
+ "name": "GenesisWriteReviewCompletedEventDetail",
7739
+ "declaration": {
7740
+ "name": "GenesisWriteReviewCompletedEventDetail",
7741
+ "module": "./review-payload"
7742
+ }
7743
+ },
7744
+ {
7745
+ "kind": "js",
7746
+ "name": "GenesisReadResult",
7747
+ "declaration": {
7748
+ "name": "GenesisReadResult",
7749
+ "module": "./resource-tools"
7750
+ }
7751
+ },
7752
+ {
7753
+ "kind": "js",
7754
+ "name": "GenesisResourceTools",
7755
+ "declaration": {
7756
+ "name": "GenesisResourceTools",
7757
+ "module": "./resource-tools"
7758
+ }
7759
+ },
7760
+ {
7761
+ "kind": "js",
7762
+ "name": "GenesisResourceToolsOptions",
7763
+ "declaration": {
7764
+ "name": "GenesisResourceToolsOptions",
7765
+ "module": "./resource-tools"
7766
+ }
7767
+ },
7768
+ {
7769
+ "kind": "js",
7770
+ "name": "GenesisToolError",
7771
+ "declaration": {
7772
+ "name": "GenesisToolError",
7773
+ "module": "./resource-tools"
7774
+ }
7775
+ },
7776
+ {
7777
+ "kind": "js",
7778
+ "name": "GENESIS_EVENT_OPS",
7779
+ "declaration": {
7780
+ "name": "GENESIS_EVENT_OPS",
7781
+ "module": "./types"
7782
+ }
7783
+ },
7784
+ {
7785
+ "kind": "js",
7786
+ "name": "GenesisAiConfig",
7787
+ "declaration": {
7788
+ "name": "GenesisAiConfig",
7789
+ "module": "./types"
7790
+ }
7791
+ },
7792
+ {
7793
+ "kind": "js",
7794
+ "name": "GenesisAiConsumes",
7795
+ "declaration": {
7796
+ "name": "GenesisAiConsumes",
7797
+ "module": "./types"
7798
+ }
7799
+ },
7800
+ {
7801
+ "kind": "js",
7802
+ "name": "GenesisAiResource",
7803
+ "declaration": {
7804
+ "name": "GenesisAiResource",
7805
+ "module": "./types"
7806
+ }
7807
+ },
7808
+ {
7809
+ "kind": "js",
7810
+ "name": "GenesisAssistantExtensions",
7811
+ "declaration": {
7812
+ "name": "GenesisAssistantExtensions",
7813
+ "module": "./types"
7814
+ }
7815
+ },
7816
+ {
7817
+ "kind": "js",
7818
+ "name": "GenesisAssistantRegistration",
7819
+ "declaration": {
7820
+ "name": "GenesisAssistantRegistration",
7821
+ "module": "./types"
7822
+ }
7823
+ },
7824
+ {
7825
+ "kind": "js",
7826
+ "name": "GenesisCustomCode",
7827
+ "declaration": {
7828
+ "name": "GenesisCustomCode",
7829
+ "module": "./types"
7830
+ }
7831
+ },
7832
+ {
7833
+ "kind": "js",
7834
+ "name": "GenesisCustomCodeCheck",
7835
+ "declaration": {
7836
+ "name": "GenesisCustomCodeCheck",
7837
+ "module": "./types"
7838
+ }
7839
+ },
7840
+ {
7841
+ "kind": "js",
7842
+ "name": "GenesisEventOp",
7843
+ "declaration": {
7844
+ "name": "GenesisEventOp",
7845
+ "module": "./types"
7846
+ }
7847
+ },
7848
+ {
7849
+ "kind": "js",
7850
+ "name": "GenesisReference",
7851
+ "declaration": {
7852
+ "name": "GenesisReference",
7853
+ "module": "./types"
7854
+ }
7855
+ },
7856
+ {
7857
+ "kind": "js",
7858
+ "name": "GenesisResourceKind",
7859
+ "declaration": {
7860
+ "name": "GenesisResourceKind",
7861
+ "module": "./types"
7862
+ }
7863
+ },
7864
+ {
7865
+ "kind": "js",
7866
+ "name": "GenesisRowEffect",
7867
+ "declaration": {
7868
+ "name": "GenesisRowEffect",
7869
+ "module": "./types"
7870
+ }
7871
+ },
7872
+ {
7873
+ "kind": "js",
7874
+ "name": "GenesisRowInput",
7875
+ "declaration": {
7876
+ "name": "GenesisRowInput",
7877
+ "module": "./types"
7878
+ }
7879
+ },
7880
+ {
7881
+ "kind": "js",
7882
+ "name": "RegisterGenesisAssistantOptions",
7883
+ "declaration": {
7884
+ "name": "RegisterGenesisAssistantOptions",
7885
+ "module": "./types"
8241
7886
  }
7887
+ }
7888
+ ]
7889
+ },
7890
+ {
7891
+ "kind": "javascript-module",
7892
+ "path": "src/genesis/reference-check.ts",
7893
+ "declarations": [
7894
+ {
7895
+ "kind": "function",
7896
+ "name": "tableOf",
7897
+ "return": {
7898
+ "type": {
7899
+ "text": "string"
7900
+ }
7901
+ },
7902
+ "parameters": [
7903
+ {
7904
+ "name": "resource",
7905
+ "type": {
7906
+ "text": "string"
7907
+ }
7908
+ }
7909
+ ],
7910
+ "description": "The table a `REQ_<T>` reads."
7911
+ },
7912
+ {
7913
+ "kind": "function",
7914
+ "name": "notAcceptedHere",
7915
+ "return": {
7916
+ "type": {
7917
+ "text": "string"
7918
+ }
7919
+ },
7920
+ "parameters": [
7921
+ {
7922
+ "name": "field",
7923
+ "type": {
7924
+ "text": "string"
7925
+ }
7926
+ },
7927
+ {
7928
+ "name": "{ resource, reason }",
7929
+ "type": {
7930
+ "text": "UncheckedField"
7931
+ }
7932
+ }
7933
+ ],
7934
+ "description": "What an insert says about a value it cannot check."
8242
7935
  },
7936
+ {
7937
+ "kind": "function",
7938
+ "name": "cannotBeChanged",
7939
+ "return": {
7940
+ "type": {
7941
+ "text": "string"
7942
+ }
7943
+ },
7944
+ "parameters": [
7945
+ {
7946
+ "name": "field",
7947
+ "type": {
7948
+ "text": "string"
7949
+ }
7950
+ },
7951
+ {
7952
+ "name": "{ resource, reason }",
7953
+ "type": {
7954
+ "text": "UncheckedField"
7955
+ }
7956
+ }
7957
+ ],
7958
+ "description": "What a modify says about a new value it cannot check."
7959
+ }
7960
+ ],
7961
+ "exports": [
8243
7962
  {
8244
7963
  "kind": "js",
8245
- "name": "headlessMetaSnapshot",
7964
+ "name": "tableOf",
8246
7965
  "declaration": {
8247
- "name": "headlessMetaSnapshot",
8248
- "module": "./headless-debug"
7966
+ "name": "tableOf",
7967
+ "module": "src/genesis/reference-check.ts"
8249
7968
  }
8250
7969
  },
8251
7970
  {
8252
7971
  "kind": "js",
8253
- "name": "HeadlessSession",
7972
+ "name": "notAcceptedHere",
8254
7973
  "declaration": {
8255
- "name": "HeadlessSession",
8256
- "module": "./headless-session"
7974
+ "name": "notAcceptedHere",
7975
+ "module": "src/genesis/reference-check.ts"
8257
7976
  }
8258
7977
  },
8259
7978
  {
8260
7979
  "kind": "js",
8261
- "name": "AutopilotLike",
7980
+ "name": "cannotBeChanged",
8262
7981
  "declaration": {
8263
- "name": "AutopilotLike",
8264
- "module": "./headless.types"
7982
+ "name": "cannotBeChanged",
7983
+ "module": "src/genesis/reference-check.ts"
8265
7984
  }
8266
- },
7985
+ }
7986
+ ]
7987
+ },
7988
+ {
7989
+ "kind": "javascript-module",
7990
+ "path": "src/genesis/reference-existence.ts",
7991
+ "declarations": [
8267
7992
  {
8268
- "kind": "js",
8269
- "name": "DescribedAction",
8270
- "declaration": {
8271
- "name": "DescribedAction",
8272
- "module": "./headless.types"
8273
- }
7993
+ "kind": "variable",
7994
+ "name": "MAX_REFERENCE_CHECKS",
7995
+ "type": {
7996
+ "text": "number"
7997
+ },
7998
+ "default": "50",
7999
+ "description": "The most distinct values one call may check."
8274
8000
  },
8275
8001
  {
8276
- "kind": "js",
8277
- "name": "DescribeInteractionInput",
8278
- "declaration": {
8279
- "name": "DescribeInteractionInput",
8280
- "module": "./headless.types"
8281
- }
8282
- },
8002
+ "kind": "function",
8003
+ "name": "withReferenceProblems",
8004
+ "return": {
8005
+ "type": {
8006
+ "text": "T[]"
8007
+ }
8008
+ },
8009
+ "parameters": [
8010
+ {
8011
+ "name": "rows",
8012
+ "type": {
8013
+ "text": "readonly T[]"
8014
+ }
8015
+ },
8016
+ {
8017
+ "name": "problems",
8018
+ "type": {
8019
+ "text": "ReadonlyMap<number, string[]>"
8020
+ }
8021
+ }
8022
+ ],
8023
+ "description": "The rows with what the check found added to their problems."
8024
+ }
8025
+ ],
8026
+ "exports": [
8283
8027
  {
8284
8028
  "kind": "js",
8285
- "name": "HeadlessActArgs",
8029
+ "name": "MAX_REFERENCE_CHECKS",
8286
8030
  "declaration": {
8287
- "name": "HeadlessActArgs",
8288
- "module": "./headless.types"
8031
+ "name": "MAX_REFERENCE_CHECKS",
8032
+ "module": "src/genesis/reference-existence.ts"
8289
8033
  }
8290
8034
  },
8291
8035
  {
8292
8036
  "kind": "js",
8293
- "name": "HeadlessActResult",
8037
+ "name": "withReferenceProblems",
8294
8038
  "declaration": {
8295
- "name": "HeadlessActResult",
8296
- "module": "./headless.types"
8039
+ "name": "withReferenceProblems",
8040
+ "module": "src/genesis/reference-existence.ts"
8297
8041
  }
8298
- },
8042
+ }
8043
+ ]
8044
+ },
8045
+ {
8046
+ "kind": "javascript-module",
8047
+ "path": "src/genesis/register-genesis-assistant.ts",
8048
+ "declarations": [
8299
8049
  {
8300
- "kind": "js",
8301
- "name": "HeadlessDebugOptions",
8302
- "declaration": {
8303
- "name": "HeadlessDebugOptions",
8304
- "module": "./headless.types"
8305
- }
8050
+ "kind": "variable",
8051
+ "name": "GENESIS_AGENT_NAME",
8052
+ "type": {
8053
+ "text": "string"
8054
+ },
8055
+ "default": "'genesis-assistant'",
8056
+ "description": "The name of the agent registerGenesisAssistant builds."
8306
8057
  },
8307
8058
  {
8308
- "kind": "js",
8309
- "name": "HeadlessEvent",
8310
- "declaration": {
8311
- "name": "HeadlessEvent",
8312
- "module": "./headless.types"
8313
- }
8314
- },
8059
+ "kind": "function",
8060
+ "name": "registerGenesisAssistant",
8061
+ "return": {
8062
+ "type": {
8063
+ "text": "GenesisAssistantRegistration"
8064
+ }
8065
+ },
8066
+ "parameters": [
8067
+ {
8068
+ "name": "options",
8069
+ "type": {
8070
+ "text": "RegisterGenesisAssistantOptions"
8071
+ }
8072
+ }
8073
+ ],
8074
+ "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."
8075
+ }
8076
+ ],
8077
+ "exports": [
8315
8078
  {
8316
8079
  "kind": "js",
8317
- "name": "HeadlessEventBase",
8080
+ "name": "GENESIS_AGENT_NAME",
8318
8081
  "declaration": {
8319
- "name": "HeadlessEventBase",
8320
- "module": "./headless.types"
8082
+ "name": "GENESIS_AGENT_NAME",
8083
+ "module": "src/genesis/register-genesis-assistant.ts"
8321
8084
  }
8322
8085
  },
8323
8086
  {
8324
8087
  "kind": "js",
8325
- "name": "HeadlessEventType",
8088
+ "name": "registerGenesisAssistant",
8326
8089
  "declaration": {
8327
- "name": "HeadlessEventType",
8328
- "module": "./headless.types"
8090
+ "name": "registerGenesisAssistant",
8091
+ "module": "src/genesis/register-genesis-assistant.ts"
8329
8092
  }
8330
- },
8093
+ }
8094
+ ]
8095
+ },
8096
+ {
8097
+ "kind": "javascript-module",
8098
+ "path": "src/genesis/resource-tools.ts",
8099
+ "declarations": [
8331
8100
  {
8332
- "kind": "js",
8333
- "name": "HeadlessPersistence",
8334
- "declaration": {
8335
- "name": "HeadlessPersistence",
8336
- "module": "./headless.types"
8337
- }
8101
+ "kind": "variable",
8102
+ "name": "GENESIS_DATA_SOURCE",
8103
+ "type": {
8104
+ "text": "string"
8105
+ },
8106
+ "default": "'app-database'",
8107
+ "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."
8338
8108
  },
8339
8109
  {
8340
- "kind": "js",
8341
- "name": "HeadlessPersistenceBinding",
8342
- "declaration": {
8343
- "name": "HeadlessPersistenceBinding",
8344
- "module": "./headless.types"
8345
- }
8346
- },
8110
+ "kind": "function",
8111
+ "name": "createGenesisResourceTools",
8112
+ "return": {
8113
+ "type": {
8114
+ "text": "GenesisResourceTools"
8115
+ }
8116
+ },
8117
+ "parameters": [
8118
+ {
8119
+ "name": "resources",
8120
+ "type": {
8121
+ "text": "readonly GenesisAiResource[]"
8122
+ }
8123
+ },
8124
+ {
8125
+ "name": "options",
8126
+ "default": "{}",
8127
+ "type": {
8128
+ "text": "GenesisResourceToolsOptions"
8129
+ }
8130
+ }
8131
+ ],
8132
+ "description": "Builds the assistant's tools from an app's resources."
8133
+ }
8134
+ ],
8135
+ "exports": [
8347
8136
  {
8348
8137
  "kind": "js",
8349
- "name": "HeadlessPersistenceHost",
8138
+ "name": "GENESIS_DATA_SOURCE",
8350
8139
  "declaration": {
8351
- "name": "HeadlessPersistenceHost",
8352
- "module": "./headless.types"
8140
+ "name": "GENESIS_DATA_SOURCE",
8141
+ "module": "src/genesis/resource-tools.ts"
8353
8142
  }
8354
8143
  },
8355
8144
  {
8356
8145
  "kind": "js",
8357
- "name": "HeadlessReadRequest",
8146
+ "name": "createGenesisResourceTools",
8358
8147
  "declaration": {
8359
- "name": "HeadlessReadRequest",
8360
- "module": "./headless.types"
8148
+ "name": "createGenesisResourceTools",
8149
+ "module": "src/genesis/resource-tools.ts"
8361
8150
  }
8362
- },
8151
+ }
8152
+ ]
8153
+ },
8154
+ {
8155
+ "kind": "javascript-module",
8156
+ "path": "src/genesis/review-model.ts",
8157
+ "declarations": [
8363
8158
  {
8364
- "kind": "js",
8365
- "name": "HeadlessReadResult",
8366
- "declaration": {
8367
- "name": "HeadlessReadResult",
8368
- "module": "./headless.types"
8369
- }
8370
- },
8159
+ "kind": "variable",
8160
+ "name": "LONG_VALUE",
8161
+ "type": {
8162
+ "text": "number"
8163
+ },
8164
+ "default": "24",
8165
+ "description": "Past this many characters a value wraps; at or under it, it stays on one line."
8166
+ }
8167
+ ],
8168
+ "exports": [
8371
8169
  {
8372
8170
  "kind": "js",
8373
- "name": "HeadlessResult",
8171
+ "name": "GenesisChangeRequest",
8374
8172
  "declaration": {
8375
- "name": "HeadlessResult",
8376
- "module": "./headless.types"
8173
+ "name": "GenesisChangeRequest",
8174
+ "module": "./review-payload"
8377
8175
  }
8378
8176
  },
8379
8177
  {
8380
8178
  "kind": "js",
8381
- "name": "HeadlessRestoreOutcome",
8179
+ "name": "GenesisReviewPayload",
8382
8180
  "declaration": {
8383
- "name": "HeadlessRestoreOutcome",
8384
- "module": "./headless.types"
8181
+ "name": "GenesisReviewPayload",
8182
+ "module": "./review-payload"
8385
8183
  }
8386
8184
  },
8387
8185
  {
8388
8186
  "kind": "js",
8389
- "name": "HeadlessSendOptions",
8187
+ "name": "LONG_VALUE",
8390
8188
  "declaration": {
8391
- "name": "HeadlessSendOptions",
8392
- "module": "./headless.types"
8189
+ "name": "LONG_VALUE",
8190
+ "module": "src/genesis/review-model.ts"
8393
8191
  }
8192
+ }
8193
+ ]
8194
+ },
8195
+ {
8196
+ "kind": "javascript-module",
8197
+ "path": "src/genesis/review-payload.ts",
8198
+ "declarations": [],
8199
+ "exports": []
8200
+ },
8201
+ {
8202
+ "kind": "javascript-module",
8203
+ "path": "src/genesis/row-source.ts",
8204
+ "declarations": [],
8205
+ "exports": []
8206
+ },
8207
+ {
8208
+ "kind": "javascript-module",
8209
+ "path": "src/genesis/serialisable.ts",
8210
+ "declarations": [],
8211
+ "exports": []
8212
+ },
8213
+ {
8214
+ "kind": "javascript-module",
8215
+ "path": "src/genesis/server-text.ts",
8216
+ "declarations": [
8217
+ {
8218
+ "kind": "function",
8219
+ "name": "readsLikeFieldName",
8220
+ "return": {
8221
+ "type": {
8222
+ "text": "boolean"
8223
+ }
8224
+ },
8225
+ "parameters": [
8226
+ {
8227
+ "name": "text",
8228
+ "type": {
8229
+ "text": "string"
8230
+ }
8231
+ }
8232
+ ],
8233
+ "description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
8394
8234
  },
8235
+ {
8236
+ "kind": "function",
8237
+ "name": "describeFailure",
8238
+ "return": {
8239
+ "type": {
8240
+ "text": "string | undefined"
8241
+ }
8242
+ },
8243
+ "parameters": [
8244
+ {
8245
+ "name": "error",
8246
+ "type": {
8247
+ "text": "unknown"
8248
+ }
8249
+ }
8250
+ ],
8251
+ "description": "Whatever a rejection turns out to be, as a sentence."
8252
+ }
8253
+ ],
8254
+ "exports": [
8395
8255
  {
8396
8256
  "kind": "js",
8397
- "name": "HeadlessSessionOptions",
8257
+ "name": "readsLikeFieldName",
8398
8258
  "declaration": {
8399
- "name": "HeadlessSessionOptions",
8400
- "module": "./headless.types"
8259
+ "name": "readsLikeFieldName",
8260
+ "module": "src/genesis/server-text.ts"
8401
8261
  }
8402
8262
  },
8403
8263
  {
8404
8264
  "kind": "js",
8405
- "name": "HeadlessState",
8265
+ "name": "describeFailure",
8406
8266
  "declaration": {
8407
- "name": "HeadlessState",
8408
- "module": "./headless.types"
8267
+ "name": "describeFailure",
8268
+ "module": "src/genesis/server-text.ts"
8409
8269
  }
8410
- },
8270
+ }
8271
+ ]
8272
+ },
8273
+ {
8274
+ "kind": "javascript-module",
8275
+ "path": "src/genesis/type-name.ts",
8276
+ "declarations": [],
8277
+ "exports": []
8278
+ },
8279
+ {
8280
+ "kind": "javascript-module",
8281
+ "path": "src/genesis/types.ts",
8282
+ "declarations": [
8283
+ {
8284
+ "kind": "variable",
8285
+ "name": "GENESIS_EVENT_OPS",
8286
+ "type": {
8287
+ "text": "['insert', 'modify', 'delete', 'custom']"
8288
+ },
8289
+ "default": "['insert', 'modify', 'delete', 'custom']",
8290
+ "description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
8291
+ }
8292
+ ],
8293
+ "exports": [
8411
8294
  {
8412
8295
  "kind": "js",
8413
- "name": "HeadlessWaitRequest",
8296
+ "name": "GENESIS_EVENT_OPS",
8414
8297
  "declaration": {
8415
- "name": "HeadlessWaitRequest",
8416
- "module": "./headless.types"
8298
+ "name": "GENESIS_EVENT_OPS",
8299
+ "module": "src/genesis/types.ts"
8417
8300
  }
8418
- },
8301
+ }
8302
+ ]
8303
+ },
8304
+ {
8305
+ "kind": "javascript-module",
8306
+ "path": "src/genesis/value-compare.ts",
8307
+ "declarations": [],
8308
+ "exports": []
8309
+ },
8310
+ {
8311
+ "kind": "javascript-module",
8312
+ "path": "src/genesis/write-commit.ts",
8313
+ "declarations": [],
8314
+ "exports": []
8315
+ },
8316
+ {
8317
+ "kind": "javascript-module",
8318
+ "path": "src/genesis/write-op.ts",
8319
+ "declarations": [],
8320
+ "exports": []
8321
+ },
8322
+ {
8323
+ "kind": "javascript-module",
8324
+ "path": "src/genesis/write-outcome.ts",
8325
+ "declarations": [],
8326
+ "exports": []
8327
+ },
8328
+ {
8329
+ "kind": "javascript-module",
8330
+ "path": "src/genesis/write-payload.ts",
8331
+ "declarations": [
8332
+ {
8333
+ "kind": "function",
8334
+ "name": "buildEventPayload",
8335
+ "return": {
8336
+ "type": {
8337
+ "text": "PayloadResult"
8338
+ }
8339
+ },
8340
+ "parameters": [
8341
+ {
8342
+ "name": "fields",
8343
+ "type": {
8344
+ "text": "readonly GenesisEventField[]"
8345
+ }
8346
+ },
8347
+ {
8348
+ "name": "row",
8349
+ "type": {
8350
+ "text": "unknown"
8351
+ }
8352
+ },
8353
+ {
8354
+ "name": "{ op, preImage, unchecked }",
8355
+ "type": {
8356
+ "text": "BuildPayloadOptions"
8357
+ }
8358
+ }
8359
+ ]
8360
+ }
8361
+ ],
8362
+ "exports": [
8419
8363
  {
8420
8364
  "kind": "js",
8421
- "name": "HeadlessWaitResult",
8365
+ "name": "buildEventPayload",
8422
8366
  "declaration": {
8423
- "name": "HeadlessWaitResult",
8424
- "module": "./headless.types"
8367
+ "name": "buildEventPayload",
8368
+ "module": "src/genesis/write-payload.ts"
8425
8369
  }
8426
- },
8370
+ }
8371
+ ]
8372
+ },
8373
+ {
8374
+ "kind": "javascript-module",
8375
+ "path": "src/genesis/write-plan.ts",
8376
+ "declarations": [
8377
+ {
8378
+ "kind": "variable",
8379
+ "name": "MAX_WRITE_ROWS",
8380
+ "type": {
8381
+ "text": "number"
8382
+ },
8383
+ "default": "25",
8384
+ "description": "A batch a person can actually read before approving it."
8385
+ }
8386
+ ],
8387
+ "exports": [
8427
8388
  {
8428
8389
  "kind": "js",
8429
- "name": "InteractionDescription",
8390
+ "name": "MAX_WRITE_ROWS",
8430
8391
  "declaration": {
8431
- "name": "InteractionDescription",
8432
- "module": "./headless.types"
8392
+ "name": "MAX_WRITE_ROWS",
8393
+ "module": "src/genesis/write-plan.ts"
8433
8394
  }
8434
- },
8395
+ }
8396
+ ]
8397
+ },
8398
+ {
8399
+ "kind": "javascript-module",
8400
+ "path": "src/genesis/write-tools.ts",
8401
+ "declarations": [
8402
+ {
8403
+ "kind": "function",
8404
+ "name": "createGenesisWriteTools",
8405
+ "return": {
8406
+ "type": {
8407
+ "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}"
8408
+ }
8409
+ },
8410
+ "parameters": [
8411
+ {
8412
+ "name": "resources",
8413
+ "type": {
8414
+ "text": "readonly GenesisAiResource[]"
8415
+ }
8416
+ },
8417
+ {
8418
+ "name": "options",
8419
+ "default": "{}",
8420
+ "type": {
8421
+ "text": "GenesisWriteToolsOptions"
8422
+ }
8423
+ }
8424
+ ],
8425
+ "description": "Builds the assistant's write tools from an app's event resources."
8426
+ }
8427
+ ],
8428
+ "exports": [
8435
8429
  {
8436
8430
  "kind": "js",
8437
- "name": "PendingSummary",
8431
+ "name": "createGenesisWriteTools",
8438
8432
  "declaration": {
8439
- "name": "PendingSummary",
8440
- "module": "./headless.types"
8433
+ "name": "createGenesisWriteTools",
8434
+ "module": "src/genesis/write-tools.ts"
8441
8435
  }
8442
8436
  }
8443
8437
  ]
8444
8438
  },
8439
+ {
8440
+ "kind": "javascript-module",
8441
+ "path": "src/genesis/write-turn.ts",
8442
+ "declarations": [],
8443
+ "exports": []
8444
+ },
8445
8445
  {
8446
8446
  "kind": "javascript-module",
8447
8447
  "path": "src/headless-server/compact.ts",