@genesislcap/ai-assistant 15.96.2 → 15.96.3-GENC-1640.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.api.json +111 -6
- package/dist/ai-assistant.d.ts +24 -8
- package/dist/chat-driver.cjs +18 -1
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +18 -1
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +2122 -2086
- package/dist/dts/components/ai-driver/ai-driver.d.ts +14 -4
- package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +1 -0
- package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/hand-off.d.ts.map +1 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +2 -0
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts +7 -4
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/state/persistence/session-persister.d.ts +18 -0
- package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
- package/dist/esm/components/ai-driver/base-driver-decorator.js +4 -0
- package/dist/esm/components/orchestrating-driver/hand-off.js +2 -0
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +20 -2
- package/dist/esm/state/persistence/session-persister.js +82 -10
- package/package.json +17 -17
|
@@ -3298,6 +3298,19 @@
|
|
|
3298
3298
|
"module": "src/components/ai-driver/base-driver-decorator.ts"
|
|
3299
3299
|
}
|
|
3300
3300
|
},
|
|
3301
|
+
{
|
|
3302
|
+
"kind": "method",
|
|
3303
|
+
"name": "getWaitingCallers",
|
|
3304
|
+
"return": {
|
|
3305
|
+
"type": {
|
|
3306
|
+
"text": "AgentConfig[]"
|
|
3307
|
+
}
|
|
3308
|
+
},
|
|
3309
|
+
"inheritedFrom": {
|
|
3310
|
+
"name": "BaseDriverDecorator",
|
|
3311
|
+
"module": "src/components/ai-driver/base-driver-decorator.ts"
|
|
3312
|
+
}
|
|
3313
|
+
},
|
|
3301
3314
|
{
|
|
3302
3315
|
"kind": "method",
|
|
3303
3316
|
"name": "getHandOffData",
|
|
@@ -5289,237 +5302,6 @@
|
|
|
5289
5302
|
}
|
|
5290
5303
|
]
|
|
5291
5304
|
},
|
|
5292
|
-
{
|
|
5293
|
-
"kind": "javascript-module",
|
|
5294
|
-
"path": "src/config/config.ts",
|
|
5295
|
-
"declarations": [
|
|
5296
|
-
{
|
|
5297
|
-
"kind": "function",
|
|
5298
|
-
"name": "defineAgent",
|
|
5299
|
-
"description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
|
|
5300
|
-
}
|
|
5301
|
-
],
|
|
5302
|
-
"exports": [
|
|
5303
|
-
{
|
|
5304
|
-
"kind": "js",
|
|
5305
|
-
"name": "CachePolicy",
|
|
5306
|
-
"declaration": {
|
|
5307
|
-
"name": "CachePolicy",
|
|
5308
|
-
"module": "src/config/config.ts"
|
|
5309
|
-
}
|
|
5310
|
-
},
|
|
5311
|
-
{
|
|
5312
|
-
"kind": "js",
|
|
5313
|
-
"name": "ChatFallback",
|
|
5314
|
-
"declaration": {
|
|
5315
|
-
"name": "ChatFallback",
|
|
5316
|
-
"module": "src/config/config.ts"
|
|
5317
|
-
}
|
|
5318
|
-
},
|
|
5319
|
-
{
|
|
5320
|
-
"kind": "js",
|
|
5321
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5322
|
-
"declaration": {
|
|
5323
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5324
|
-
"module": "src/config/config.ts"
|
|
5325
|
-
}
|
|
5326
|
-
},
|
|
5327
|
-
{
|
|
5328
|
-
"kind": "js",
|
|
5329
|
-
"name": "ChatThinkingPolicy",
|
|
5330
|
-
"declaration": {
|
|
5331
|
-
"name": "ChatThinkingPolicy",
|
|
5332
|
-
"module": "src/config/config.ts"
|
|
5333
|
-
}
|
|
5334
|
-
},
|
|
5335
|
-
{
|
|
5336
|
-
"kind": "js",
|
|
5337
|
-
"name": "ChatToolChoice",
|
|
5338
|
-
"declaration": {
|
|
5339
|
-
"name": "ChatToolChoice",
|
|
5340
|
-
"module": "src/config/config.ts"
|
|
5341
|
-
}
|
|
5342
|
-
},
|
|
5343
|
-
{
|
|
5344
|
-
"kind": "js",
|
|
5345
|
-
"name": "defineAgent",
|
|
5346
|
-
"declaration": {
|
|
5347
|
-
"name": "defineAgent",
|
|
5348
|
-
"module": "src/config/config.ts"
|
|
5349
|
-
}
|
|
5350
|
-
}
|
|
5351
|
-
]
|
|
5352
|
-
},
|
|
5353
|
-
{
|
|
5354
|
-
"kind": "javascript-module",
|
|
5355
|
-
"path": "src/config/define-stateful-agent.ts",
|
|
5356
|
-
"declarations": [
|
|
5357
|
-
{
|
|
5358
|
-
"kind": "function",
|
|
5359
|
-
"name": "restoreMachine",
|
|
5360
|
-
"return": {
|
|
5361
|
-
"type": {
|
|
5362
|
-
"text": "void"
|
|
5363
|
-
}
|
|
5364
|
-
},
|
|
5365
|
-
"parameters": [
|
|
5366
|
-
{
|
|
5367
|
-
"name": "machine",
|
|
5368
|
-
"type": {
|
|
5369
|
-
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5370
|
-
},
|
|
5371
|
-
"description": "the machine to restore (already constructed/started)."
|
|
5372
|
-
},
|
|
5373
|
-
{
|
|
5374
|
-
"name": "restored",
|
|
5375
|
-
"type": {
|
|
5376
|
-
"text": "unknown"
|
|
5377
|
-
},
|
|
5378
|
-
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5379
|
-
},
|
|
5380
|
-
{
|
|
5381
|
-
"name": "key",
|
|
5382
|
-
"default": "'machine'",
|
|
5383
|
-
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
5384
|
-
}
|
|
5385
|
-
],
|
|
5386
|
-
"description": "Restore a foundation-state-machine instance from a snapshot produced by the\ndefault serializer (or `machine.getPersistedSnapshot()`). Call inside a\nstateful agent's `init` to resume the machine in its exact prior place:\n\n```ts\ninit: ({ restored }) => {\n const machine = new MyMachine();\n restoreMachine(machine, restored); // resume, or no-op on a fresh start\n return { machine };\n}\n```\n\nNo-ops when there is nothing to restore (a fresh session), leaving the\nfreshly-constructed machine in its initial state."
|
|
5387
|
-
},
|
|
5388
|
-
{
|
|
5389
|
-
"kind": "function",
|
|
5390
|
-
"name": "defineStatefulAgent",
|
|
5391
|
-
"return": {
|
|
5392
|
-
"type": {
|
|
5393
|
-
"text": "AgentConfig"
|
|
5394
|
-
}
|
|
5395
|
-
},
|
|
5396
|
-
"parameters": [
|
|
5397
|
-
{
|
|
5398
|
-
"name": "opts",
|
|
5399
|
-
"type": {
|
|
5400
|
-
"text": "StatefulAgentInit<S>"
|
|
5401
|
-
}
|
|
5402
|
-
}
|
|
5403
|
-
],
|
|
5404
|
-
"description": "Build an `AgentConfig` whose `systemPrompt`, `toolDefinitions`, and tool\nhandlers all close over a long-lived state object created on activation.\n\nThe framework wires the lifecycle: `init` on `onActivate`, `dispose` on\n`onDeactivate`. State is held inside the helper's closure — never exposed on\nthe resulting `AgentConfig` — so the redux serializer doesn't see it."
|
|
5405
|
-
},
|
|
5406
|
-
{
|
|
5407
|
-
"kind": "function",
|
|
5408
|
-
"name": "defineAutopilot",
|
|
5409
|
-
"return": {
|
|
5410
|
-
"type": {
|
|
5411
|
-
"text": "AutopilotConfig<S>"
|
|
5412
|
-
}
|
|
5413
|
-
},
|
|
5414
|
-
"parameters": [
|
|
5415
|
-
{
|
|
5416
|
-
"name": "config",
|
|
5417
|
-
"type": {
|
|
5418
|
-
"text": "AutopilotConfig<S>"
|
|
5419
|
-
}
|
|
5420
|
-
}
|
|
5421
|
-
],
|
|
5422
|
-
"description": "Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function\nthat exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s\n`autopilot` option."
|
|
5423
|
-
}
|
|
5424
|
-
],
|
|
5425
|
-
"exports": [
|
|
5426
|
-
{
|
|
5427
|
-
"kind": "js",
|
|
5428
|
-
"name": "restoreMachine",
|
|
5429
|
-
"declaration": {
|
|
5430
|
-
"name": "restoreMachine",
|
|
5431
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5432
|
-
}
|
|
5433
|
-
},
|
|
5434
|
-
{
|
|
5435
|
-
"kind": "js",
|
|
5436
|
-
"name": "defineStatefulAgent",
|
|
5437
|
-
"declaration": {
|
|
5438
|
-
"name": "defineStatefulAgent",
|
|
5439
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5440
|
-
}
|
|
5441
|
-
},
|
|
5442
|
-
{
|
|
5443
|
-
"kind": "js",
|
|
5444
|
-
"name": "defineAutopilot",
|
|
5445
|
-
"declaration": {
|
|
5446
|
-
"name": "defineAutopilot",
|
|
5447
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5448
|
-
}
|
|
5449
|
-
}
|
|
5450
|
-
]
|
|
5451
|
-
},
|
|
5452
|
-
{
|
|
5453
|
-
"kind": "javascript-module",
|
|
5454
|
-
"path": "src/config/fallback-agents.ts",
|
|
5455
|
-
"declarations": [
|
|
5456
|
-
{
|
|
5457
|
-
"kind": "variable",
|
|
5458
|
-
"name": "friendlyFallbackAgent",
|
|
5459
|
-
"type": {
|
|
5460
|
-
"text": "FallbackAgentConfig"
|
|
5461
|
-
},
|
|
5462
|
-
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a warm, friendly assistant. For general conversation like \"Hi\" or \"How are you\", you can have a friendly chat. For anything more complex, you cannot directly help, but you can explain what specialists are available. The available specialists are:\\n\\n{{agents}}\\n\\nPolitely let the user know what you can help with and invite them to rephrase their request if it is outside your scope.`,\n}",
|
|
5463
|
-
"description": "A warm, conversational fallback agent. Acknowledges it can't help directly,\nexplains what the available specialists can do, and invites the user to retry.\n\nThe system prompt is generated at runtime by `OrchestratingDriver` from the\nspecialist list — no manual authoring required."
|
|
5464
|
-
},
|
|
5465
|
-
{
|
|
5466
|
-
"kind": "variable",
|
|
5467
|
-
"name": "strictFallbackAgent",
|
|
5468
|
-
"type": {
|
|
5469
|
-
"text": "FallbackAgentConfig"
|
|
5470
|
-
},
|
|
5471
|
-
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. The available specialists are: {{agents}}.\n\n{{unroutable}}\n\nAnswer in a single short sentence. Do not elaborate.`,\n}",
|
|
5472
|
-
"description": "A brief, professional fallback agent. States what is available without\nelaboration. The `{{agents}}` placeholder is replaced at runtime by\n`OrchestratingDriver` with the generated specialist list.\n\nThe `{{unroutable}}` placeholder positions `UNROUTABLE_INSTRUCTION` — the framework's\ninstruction for a substantive request no specialist covers, which is otherwise APPENDED to a\nstring-form prompt. Positioned rather than appended for one reason: this preset's whole point is\nbrevity, and appended text would be the last thing the model reads. Putting the block above the\nbrevity rule leaves \"a single short sentence\" with the recency, so the two compose instead of\ncompeting. A prompt whose tone rules matter should do the same."
|
|
5473
|
-
}
|
|
5474
|
-
],
|
|
5475
|
-
"exports": [
|
|
5476
|
-
{
|
|
5477
|
-
"kind": "js",
|
|
5478
|
-
"name": "friendlyFallbackAgent",
|
|
5479
|
-
"declaration": {
|
|
5480
|
-
"name": "friendlyFallbackAgent",
|
|
5481
|
-
"module": "src/config/fallback-agents.ts"
|
|
5482
|
-
}
|
|
5483
|
-
},
|
|
5484
|
-
{
|
|
5485
|
-
"kind": "js",
|
|
5486
|
-
"name": "strictFallbackAgent",
|
|
5487
|
-
"declaration": {
|
|
5488
|
-
"name": "strictFallbackAgent",
|
|
5489
|
-
"module": "src/config/fallback-agents.ts"
|
|
5490
|
-
}
|
|
5491
|
-
}
|
|
5492
|
-
]
|
|
5493
|
-
},
|
|
5494
|
-
{
|
|
5495
|
-
"kind": "javascript-module",
|
|
5496
|
-
"path": "src/config/index.ts",
|
|
5497
|
-
"declarations": [],
|
|
5498
|
-
"exports": [
|
|
5499
|
-
{
|
|
5500
|
-
"kind": "js",
|
|
5501
|
-
"name": "*",
|
|
5502
|
-
"declaration": {
|
|
5503
|
-
"name": "*",
|
|
5504
|
-
"package": "./config"
|
|
5505
|
-
}
|
|
5506
|
-
},
|
|
5507
|
-
{
|
|
5508
|
-
"kind": "js",
|
|
5509
|
-
"name": "*",
|
|
5510
|
-
"declaration": {
|
|
5511
|
-
"name": "*",
|
|
5512
|
-
"package": "./fallback-agents"
|
|
5513
|
-
}
|
|
5514
|
-
}
|
|
5515
|
-
]
|
|
5516
|
-
},
|
|
5517
|
-
{
|
|
5518
|
-
"kind": "javascript-module",
|
|
5519
|
-
"path": "src/config/validate-providers.ts",
|
|
5520
|
-
"declarations": [],
|
|
5521
|
-
"exports": []
|
|
5522
|
-
},
|
|
5523
5305
|
{
|
|
5524
5306
|
"kind": "javascript-module",
|
|
5525
5307
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -6046,1536 +5828,915 @@
|
|
|
6046
5828
|
},
|
|
6047
5829
|
{
|
|
6048
5830
|
"kind": "javascript-module",
|
|
6049
|
-
"path": "src/
|
|
5831
|
+
"path": "src/config/config.ts",
|
|
6050
5832
|
"declarations": [
|
|
6051
5833
|
{
|
|
6052
5834
|
"kind": "function",
|
|
6053
|
-
"name": "
|
|
6054
|
-
"
|
|
6055
|
-
"type": {
|
|
6056
|
-
"text": "InteractionDescription"
|
|
6057
|
-
}
|
|
6058
|
-
},
|
|
6059
|
-
"parameters": [
|
|
6060
|
-
{
|
|
6061
|
-
"name": "input",
|
|
6062
|
-
"type": {
|
|
6063
|
-
"text": "DescribeInteractionInput"
|
|
6064
|
-
}
|
|
6065
|
-
}
|
|
6066
|
-
],
|
|
6067
|
-
"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."
|
|
5835
|
+
"name": "defineAgent",
|
|
5836
|
+
"description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
|
|
6068
5837
|
}
|
|
6069
5838
|
],
|
|
6070
5839
|
"exports": [
|
|
6071
5840
|
{
|
|
6072
5841
|
"kind": "js",
|
|
6073
|
-
"name": "
|
|
5842
|
+
"name": "CachePolicy",
|
|
6074
5843
|
"declaration": {
|
|
6075
|
-
"name": "
|
|
6076
|
-
"module": "src/
|
|
5844
|
+
"name": "CachePolicy",
|
|
5845
|
+
"module": "src/config/config.ts"
|
|
5846
|
+
}
|
|
5847
|
+
},
|
|
5848
|
+
{
|
|
5849
|
+
"kind": "js",
|
|
5850
|
+
"name": "ChatFallback",
|
|
5851
|
+
"declaration": {
|
|
5852
|
+
"name": "ChatFallback",
|
|
5853
|
+
"module": "src/config/config.ts"
|
|
5854
|
+
}
|
|
5855
|
+
},
|
|
5856
|
+
{
|
|
5857
|
+
"kind": "js",
|
|
5858
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5859
|
+
"declaration": {
|
|
5860
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5861
|
+
"module": "src/config/config.ts"
|
|
5862
|
+
}
|
|
5863
|
+
},
|
|
5864
|
+
{
|
|
5865
|
+
"kind": "js",
|
|
5866
|
+
"name": "ChatThinkingPolicy",
|
|
5867
|
+
"declaration": {
|
|
5868
|
+
"name": "ChatThinkingPolicy",
|
|
5869
|
+
"module": "src/config/config.ts"
|
|
5870
|
+
}
|
|
5871
|
+
},
|
|
5872
|
+
{
|
|
5873
|
+
"kind": "js",
|
|
5874
|
+
"name": "ChatToolChoice",
|
|
5875
|
+
"declaration": {
|
|
5876
|
+
"name": "ChatToolChoice",
|
|
5877
|
+
"module": "src/config/config.ts"
|
|
5878
|
+
}
|
|
5879
|
+
},
|
|
5880
|
+
{
|
|
5881
|
+
"kind": "js",
|
|
5882
|
+
"name": "defineAgent",
|
|
5883
|
+
"declaration": {
|
|
5884
|
+
"name": "defineAgent",
|
|
5885
|
+
"module": "src/config/config.ts"
|
|
6077
5886
|
}
|
|
6078
5887
|
}
|
|
6079
5888
|
]
|
|
6080
5889
|
},
|
|
6081
5890
|
{
|
|
6082
5891
|
"kind": "javascript-module",
|
|
6083
|
-
"path": "src/
|
|
5892
|
+
"path": "src/config/define-stateful-agent.ts",
|
|
6084
5893
|
"declarations": [
|
|
6085
5894
|
{
|
|
6086
5895
|
"kind": "function",
|
|
6087
|
-
"name": "
|
|
5896
|
+
"name": "restoreMachine",
|
|
6088
5897
|
"return": {
|
|
6089
5898
|
"type": {
|
|
6090
|
-
"text": "
|
|
5899
|
+
"text": "void"
|
|
6091
5900
|
}
|
|
6092
5901
|
},
|
|
6093
5902
|
"parameters": [
|
|
6094
5903
|
{
|
|
6095
|
-
"name": "
|
|
5904
|
+
"name": "machine",
|
|
6096
5905
|
"type": {
|
|
6097
|
-
"text": "
|
|
6098
|
-
}
|
|
5906
|
+
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5907
|
+
},
|
|
5908
|
+
"description": "the machine to restore (already constructed/started)."
|
|
6099
5909
|
},
|
|
6100
5910
|
{
|
|
6101
|
-
"name": "
|
|
6102
|
-
"default": "{}",
|
|
5911
|
+
"name": "restored",
|
|
6103
5912
|
"type": {
|
|
6104
|
-
"text": "
|
|
6105
|
-
}
|
|
5913
|
+
"text": "unknown"
|
|
5914
|
+
},
|
|
5915
|
+
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5916
|
+
},
|
|
5917
|
+
{
|
|
5918
|
+
"name": "key",
|
|
5919
|
+
"default": "'machine'",
|
|
5920
|
+
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
6106
5921
|
}
|
|
6107
5922
|
],
|
|
6108
|
-
"description": "
|
|
5923
|
+
"description": "Restore a foundation-state-machine instance from a snapshot produced by the\ndefault serializer (or `machine.getPersistedSnapshot()`). Call inside a\nstateful agent's `init` to resume the machine in its exact prior place:\n\n```ts\ninit: ({ restored }) => {\n const machine = new MyMachine();\n restoreMachine(machine, restored); // resume, or no-op on a fresh start\n return { machine };\n}\n```\n\nNo-ops when there is nothing to restore (a fresh session), leaving the\nfreshly-constructed machine in its initial state."
|
|
6109
5924
|
},
|
|
6110
5925
|
{
|
|
6111
5926
|
"kind": "function",
|
|
6112
|
-
"name": "
|
|
5927
|
+
"name": "defineStatefulAgent",
|
|
6113
5928
|
"return": {
|
|
6114
5929
|
"type": {
|
|
6115
|
-
"text": "
|
|
5930
|
+
"text": "AgentConfig"
|
|
6116
5931
|
}
|
|
6117
5932
|
},
|
|
6118
5933
|
"parameters": [
|
|
6119
5934
|
{
|
|
6120
|
-
"name": "
|
|
6121
|
-
"type": {
|
|
6122
|
-
"text": "AiDriver"
|
|
6123
|
-
}
|
|
6124
|
-
},
|
|
6125
|
-
{
|
|
6126
|
-
"name": "stateKey",
|
|
6127
|
-
"type": {
|
|
6128
|
-
"text": "string"
|
|
6129
|
-
}
|
|
6130
|
-
},
|
|
6131
|
-
{
|
|
6132
|
-
"name": "options",
|
|
6133
|
-
"default": "{}",
|
|
5935
|
+
"name": "opts",
|
|
6134
5936
|
"type": {
|
|
6135
|
-
"text": "
|
|
5937
|
+
"text": "StatefulAgentInit<S>"
|
|
6136
5938
|
}
|
|
6137
5939
|
}
|
|
6138
5940
|
],
|
|
6139
|
-
"description": "
|
|
5941
|
+
"description": "Build an `AgentConfig` whose `systemPrompt`, `toolDefinitions`, and tool\nhandlers all close over a long-lived state object created on activation.\n\nThe framework wires the lifecycle: `init` on `onActivate`, `dispose` on\n`onDeactivate`. State is held inside the helper's closure — never exposed on\nthe resulting `AgentConfig` — so the redux serializer doesn't see it."
|
|
6140
5942
|
},
|
|
6141
5943
|
{
|
|
6142
5944
|
"kind": "function",
|
|
6143
|
-
"name": "
|
|
5945
|
+
"name": "defineAutopilot",
|
|
6144
5946
|
"return": {
|
|
6145
5947
|
"type": {
|
|
6146
|
-
"text": "
|
|
5948
|
+
"text": "AutopilotConfig<S>"
|
|
6147
5949
|
}
|
|
6148
5950
|
},
|
|
6149
5951
|
"parameters": [
|
|
6150
5952
|
{
|
|
6151
|
-
"name": "
|
|
6152
|
-
"type": {
|
|
6153
|
-
"text": "AiDriver"
|
|
6154
|
-
}
|
|
6155
|
-
},
|
|
6156
|
-
{
|
|
6157
|
-
"name": "stateKey",
|
|
6158
|
-
"type": {
|
|
6159
|
-
"text": "string"
|
|
6160
|
-
}
|
|
6161
|
-
},
|
|
6162
|
-
{
|
|
6163
|
-
"name": "options",
|
|
6164
|
-
"default": "{}",
|
|
5953
|
+
"name": "config",
|
|
6165
5954
|
"type": {
|
|
6166
|
-
"text": "
|
|
5955
|
+
"text": "AutopilotConfig<S>"
|
|
6167
5956
|
}
|
|
6168
5957
|
}
|
|
6169
5958
|
],
|
|
6170
|
-
"description": "
|
|
5959
|
+
"description": "Define an autopilot for a stateful agent whose state is `S` (GENC-1660). An identity function\nthat exists for its type: the resolvers get `S`, and the result goes on `defineStatefulAgent`'s\n`autopilot` option."
|
|
6171
5960
|
}
|
|
6172
5961
|
],
|
|
6173
5962
|
"exports": [
|
|
6174
5963
|
{
|
|
6175
5964
|
"kind": "js",
|
|
6176
|
-
"name": "
|
|
5965
|
+
"name": "restoreMachine",
|
|
6177
5966
|
"declaration": {
|
|
6178
|
-
"name": "
|
|
6179
|
-
"module": "src/
|
|
5967
|
+
"name": "restoreMachine",
|
|
5968
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
6180
5969
|
}
|
|
6181
5970
|
},
|
|
6182
5971
|
{
|
|
6183
5972
|
"kind": "js",
|
|
6184
|
-
"name": "
|
|
5973
|
+
"name": "defineStatefulAgent",
|
|
6185
5974
|
"declaration": {
|
|
6186
|
-
"name": "
|
|
6187
|
-
"module": "src/
|
|
5975
|
+
"name": "defineStatefulAgent",
|
|
5976
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
6188
5977
|
}
|
|
6189
5978
|
},
|
|
6190
5979
|
{
|
|
6191
5980
|
"kind": "js",
|
|
6192
|
-
"name": "
|
|
5981
|
+
"name": "defineAutopilot",
|
|
6193
5982
|
"declaration": {
|
|
6194
|
-
"name": "
|
|
6195
|
-
"module": "src/
|
|
5983
|
+
"name": "defineAutopilot",
|
|
5984
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
6196
5985
|
}
|
|
6197
5986
|
}
|
|
6198
5987
|
]
|
|
6199
5988
|
},
|
|
6200
5989
|
{
|
|
6201
5990
|
"kind": "javascript-module",
|
|
6202
|
-
"path": "src/
|
|
5991
|
+
"path": "src/config/fallback-agents.ts",
|
|
6203
5992
|
"declarations": [
|
|
6204
5993
|
{
|
|
6205
|
-
"kind": "
|
|
6206
|
-
"name": "
|
|
6207
|
-
"
|
|
6208
|
-
"
|
|
6209
|
-
"text": "HeadlessPersistence"
|
|
6210
|
-
}
|
|
5994
|
+
"kind": "variable",
|
|
5995
|
+
"name": "friendlyFallbackAgent",
|
|
5996
|
+
"type": {
|
|
5997
|
+
"text": "FallbackAgentConfig"
|
|
6211
5998
|
},
|
|
6212
|
-
"
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
5999
|
+
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a warm, friendly assistant. For general conversation like \"Hi\" or \"How are you\", you can have a friendly chat. For anything more complex, you cannot directly help, but you can explain what specialists are available. The available specialists are:\\n\\n{{agents}}\\n\\nPolitely let the user know what you can help with and invite them to rephrase their request if it is outside your scope.`,\n}",
|
|
6000
|
+
"description": "A warm, conversational fallback agent. Acknowledges it can't help directly,\nexplains what the available specialists can do, and invites the user to retry.\n\nThe system prompt is generated at runtime by `OrchestratingDriver` from the\nspecialist list — no manual authoring required."
|
|
6001
|
+
},
|
|
6002
|
+
{
|
|
6003
|
+
"kind": "variable",
|
|
6004
|
+
"name": "strictFallbackAgent",
|
|
6005
|
+
"type": {
|
|
6006
|
+
"text": "FallbackAgentConfig"
|
|
6007
|
+
},
|
|
6008
|
+
"default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. The available specialists are: {{agents}}.\n\n{{unroutable}}\n\nAnswer in a single short sentence. Do not elaborate.`,\n}",
|
|
6009
|
+
"description": "A brief, professional fallback agent. States what is available without\nelaboration. The `{{agents}}` placeholder is replaced at runtime by\n`OrchestratingDriver` with the generated specialist list.\n\nThe `{{unroutable}}` placeholder positions `UNROUTABLE_INSTRUCTION` — the framework's\ninstruction for a substantive request no specialist covers, which is otherwise APPENDED to a\nstring-form prompt. Positioned rather than appended for one reason: this preset's whole point is\nbrevity, and appended text would be the last thing the model reads. Putting the block above the\nbrevity rule leaves \"a single short sentence\" with the recency, so the two compose instead of\ncompeting. A prompt whose tone rules matter should do the same."
|
|
6221
6010
|
}
|
|
6222
6011
|
],
|
|
6223
6012
|
"exports": [
|
|
6224
6013
|
{
|
|
6225
6014
|
"kind": "js",
|
|
6226
|
-
"name": "
|
|
6015
|
+
"name": "friendlyFallbackAgent",
|
|
6227
6016
|
"declaration": {
|
|
6228
|
-
"name": "
|
|
6229
|
-
"module": "src/
|
|
6017
|
+
"name": "friendlyFallbackAgent",
|
|
6018
|
+
"module": "src/config/fallback-agents.ts"
|
|
6019
|
+
}
|
|
6020
|
+
},
|
|
6021
|
+
{
|
|
6022
|
+
"kind": "js",
|
|
6023
|
+
"name": "strictFallbackAgent",
|
|
6024
|
+
"declaration": {
|
|
6025
|
+
"name": "strictFallbackAgent",
|
|
6026
|
+
"module": "src/config/fallback-agents.ts"
|
|
6230
6027
|
}
|
|
6231
6028
|
}
|
|
6232
6029
|
]
|
|
6233
6030
|
},
|
|
6234
6031
|
{
|
|
6235
6032
|
"kind": "javascript-module",
|
|
6236
|
-
"path": "src/
|
|
6033
|
+
"path": "src/config/index.ts",
|
|
6034
|
+
"declarations": [],
|
|
6035
|
+
"exports": [
|
|
6036
|
+
{
|
|
6037
|
+
"kind": "js",
|
|
6038
|
+
"name": "*",
|
|
6039
|
+
"declaration": {
|
|
6040
|
+
"name": "*",
|
|
6041
|
+
"package": "./config"
|
|
6042
|
+
}
|
|
6043
|
+
},
|
|
6044
|
+
{
|
|
6045
|
+
"kind": "js",
|
|
6046
|
+
"name": "*",
|
|
6047
|
+
"declaration": {
|
|
6048
|
+
"name": "*",
|
|
6049
|
+
"package": "./fallback-agents"
|
|
6050
|
+
}
|
|
6051
|
+
}
|
|
6052
|
+
]
|
|
6053
|
+
},
|
|
6054
|
+
{
|
|
6055
|
+
"kind": "javascript-module",
|
|
6056
|
+
"path": "src/config/validate-providers.ts",
|
|
6057
|
+
"declarations": [],
|
|
6058
|
+
"exports": []
|
|
6059
|
+
},
|
|
6060
|
+
{
|
|
6061
|
+
"kind": "javascript-module",
|
|
6062
|
+
"path": "src/genesis/calendar.ts",
|
|
6063
|
+
"declarations": [],
|
|
6064
|
+
"exports": []
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
"kind": "javascript-module",
|
|
6068
|
+
"path": "src/genesis/config.ts",
|
|
6237
6069
|
"declarations": [
|
|
6238
6070
|
{
|
|
6239
|
-
"kind": "
|
|
6240
|
-
"
|
|
6241
|
-
"
|
|
6242
|
-
|
|
6071
|
+
"kind": "variable",
|
|
6072
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6073
|
+
"type": {
|
|
6074
|
+
"text": "number"
|
|
6075
|
+
},
|
|
6076
|
+
"default": "50",
|
|
6077
|
+
"description": "The default read cap, and the ceiling the config may raise it to."
|
|
6078
|
+
},
|
|
6079
|
+
{
|
|
6080
|
+
"kind": "variable",
|
|
6081
|
+
"name": "MAX_ROWS_CEILING",
|
|
6082
|
+
"type": {
|
|
6083
|
+
"text": "number"
|
|
6084
|
+
},
|
|
6085
|
+
"default": "1000"
|
|
6086
|
+
},
|
|
6087
|
+
{
|
|
6088
|
+
"kind": "function",
|
|
6089
|
+
"name": "toolNameOf",
|
|
6090
|
+
"return": {
|
|
6091
|
+
"type": {
|
|
6092
|
+
"text": "string"
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
"parameters": [
|
|
6243
6096
|
{
|
|
6244
|
-
"
|
|
6245
|
-
"name": "sessionKey",
|
|
6097
|
+
"name": "resourceName",
|
|
6246
6098
|
"type": {
|
|
6247
6099
|
"text": "string"
|
|
6248
|
-
}
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
],
|
|
6103
|
+
"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."
|
|
6104
|
+
},
|
|
6105
|
+
{
|
|
6106
|
+
"kind": "function",
|
|
6107
|
+
"name": "rowActionProblem",
|
|
6108
|
+
"return": {
|
|
6109
|
+
"type": {
|
|
6110
|
+
"text": "string | undefined"
|
|
6111
|
+
}
|
|
6112
|
+
},
|
|
6113
|
+
"parameters": [
|
|
6252
6114
|
{
|
|
6253
|
-
"
|
|
6254
|
-
"name": "allowRaw",
|
|
6115
|
+
"name": "resource",
|
|
6255
6116
|
"type": {
|
|
6256
|
-
"text": "
|
|
6257
|
-
}
|
|
6258
|
-
"privacy": "private",
|
|
6259
|
-
"readonly": true
|
|
6117
|
+
"text": "Partial<GenesisAiResource> | null"
|
|
6118
|
+
}
|
|
6260
6119
|
},
|
|
6261
6120
|
{
|
|
6262
|
-
"
|
|
6263
|
-
"name": "clock",
|
|
6121
|
+
"name": "requestNames",
|
|
6264
6122
|
"type": {
|
|
6265
|
-
"text": "
|
|
6123
|
+
"text": "ReadonlySet<string>"
|
|
6266
6124
|
},
|
|
6267
|
-
"
|
|
6268
|
-
"readonly": true
|
|
6125
|
+
"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."
|
|
6269
6126
|
},
|
|
6270
6127
|
{
|
|
6271
|
-
"
|
|
6272
|
-
"
|
|
6128
|
+
"name": "whyNotReadable",
|
|
6129
|
+
"default": "notReadableReason({})",
|
|
6273
6130
|
"type": {
|
|
6274
|
-
"text": "
|
|
6131
|
+
"text": "(name: string) => string"
|
|
6275
6132
|
},
|
|
6276
|
-
"
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6133
|
+
"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."
|
|
6134
|
+
}
|
|
6135
|
+
],
|
|
6136
|
+
"description": "What is wrong with a resource's row-action fields (contracts C-18.7.2), if anything."
|
|
6137
|
+
},
|
|
6138
|
+
{
|
|
6139
|
+
"kind": "function",
|
|
6140
|
+
"name": "validateGenesisAiConfig",
|
|
6141
|
+
"return": {
|
|
6142
|
+
"type": {
|
|
6143
|
+
"text": "GenesisAiConfigCheck"
|
|
6144
|
+
}
|
|
6145
|
+
},
|
|
6146
|
+
"parameters": [
|
|
6280
6147
|
{
|
|
6281
|
-
"
|
|
6282
|
-
"name": "events",
|
|
6148
|
+
"name": "config",
|
|
6283
6149
|
"type": {
|
|
6284
|
-
"text": "
|
|
6285
|
-
}
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6150
|
+
"text": "unknown"
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
],
|
|
6154
|
+
"description": "Checks a generated AI config before anything is registered, and says what can be kept."
|
|
6155
|
+
},
|
|
6156
|
+
{
|
|
6157
|
+
"kind": "function",
|
|
6158
|
+
"name": "customCodeOf",
|
|
6159
|
+
"return": {
|
|
6160
|
+
"type": {
|
|
6161
|
+
"text": "GenesisCustomCodeCheck"
|
|
6162
|
+
}
|
|
6163
|
+
},
|
|
6164
|
+
"parameters": [
|
|
6290
6165
|
{
|
|
6291
|
-
"
|
|
6292
|
-
"name": "seq",
|
|
6166
|
+
"name": "resource",
|
|
6293
6167
|
"type": {
|
|
6294
|
-
"text": "
|
|
6295
|
-
}
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6168
|
+
"text": "GenesisAiResource"
|
|
6169
|
+
}
|
|
6170
|
+
}
|
|
6171
|
+
],
|
|
6172
|
+
"description": "A resource's `customCode` as it is used: the one reader of the field."
|
|
6173
|
+
}
|
|
6174
|
+
],
|
|
6175
|
+
"exports": [
|
|
6176
|
+
{
|
|
6177
|
+
"kind": "js",
|
|
6178
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6179
|
+
"declaration": {
|
|
6180
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6181
|
+
"module": "src/genesis/config.ts"
|
|
6182
|
+
}
|
|
6183
|
+
},
|
|
6184
|
+
{
|
|
6185
|
+
"kind": "js",
|
|
6186
|
+
"name": "MAX_ROWS_CEILING",
|
|
6187
|
+
"declaration": {
|
|
6188
|
+
"name": "MAX_ROWS_CEILING",
|
|
6189
|
+
"module": "src/genesis/config.ts"
|
|
6190
|
+
}
|
|
6191
|
+
},
|
|
6192
|
+
{
|
|
6193
|
+
"kind": "js",
|
|
6194
|
+
"name": "toolNameOf",
|
|
6195
|
+
"declaration": {
|
|
6196
|
+
"name": "toolNameOf",
|
|
6197
|
+
"module": "src/genesis/config.ts"
|
|
6198
|
+
}
|
|
6199
|
+
},
|
|
6200
|
+
{
|
|
6201
|
+
"kind": "js",
|
|
6202
|
+
"name": "rowActionProblem",
|
|
6203
|
+
"declaration": {
|
|
6204
|
+
"name": "rowActionProblem",
|
|
6205
|
+
"module": "src/genesis/config.ts"
|
|
6206
|
+
}
|
|
6207
|
+
},
|
|
6208
|
+
{
|
|
6209
|
+
"kind": "js",
|
|
6210
|
+
"name": "validateGenesisAiConfig",
|
|
6211
|
+
"declaration": {
|
|
6212
|
+
"name": "validateGenesisAiConfig",
|
|
6213
|
+
"module": "src/genesis/config.ts"
|
|
6214
|
+
}
|
|
6215
|
+
},
|
|
6216
|
+
{
|
|
6217
|
+
"kind": "js",
|
|
6218
|
+
"name": "customCodeOf",
|
|
6219
|
+
"declaration": {
|
|
6220
|
+
"name": "customCodeOf",
|
|
6221
|
+
"module": "src/genesis/config.ts"
|
|
6222
|
+
}
|
|
6223
|
+
}
|
|
6224
|
+
]
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"kind": "javascript-module",
|
|
6228
|
+
"path": "src/genesis/consumes.ts",
|
|
6229
|
+
"declarations": [
|
|
6230
|
+
{
|
|
6231
|
+
"kind": "variable",
|
|
6232
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6233
|
+
"type": {
|
|
6234
|
+
"text": "GenesisAiConsumes"
|
|
6235
|
+
},
|
|
6236
|
+
"description": "What this version of the assistant reads from a generated AI config: the resource kinds it\naccepts, the resource fields its validator or a tool reads, the `vendor` and `tier` values it\naccepts, and the row-action shapes it runs."
|
|
6237
|
+
}
|
|
6238
|
+
],
|
|
6239
|
+
"exports": [
|
|
6240
|
+
{
|
|
6241
|
+
"kind": "js",
|
|
6242
|
+
"name": "GenesisAiConsumes",
|
|
6243
|
+
"declaration": {
|
|
6244
|
+
"name": "GenesisAiConsumes",
|
|
6245
|
+
"module": "./types"
|
|
6246
|
+
}
|
|
6247
|
+
},
|
|
6248
|
+
{
|
|
6249
|
+
"kind": "js",
|
|
6250
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6251
|
+
"declaration": {
|
|
6252
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6253
|
+
"module": "src/genesis/consumes.ts"
|
|
6254
|
+
}
|
|
6255
|
+
}
|
|
6256
|
+
]
|
|
6257
|
+
},
|
|
6258
|
+
{
|
|
6259
|
+
"kind": "javascript-module",
|
|
6260
|
+
"path": "src/genesis/criteria.ts",
|
|
6261
|
+
"declarations": [
|
|
6262
|
+
{
|
|
6263
|
+
"kind": "function",
|
|
6264
|
+
"name": "dateFragment",
|
|
6265
|
+
"return": {
|
|
6266
|
+
"type": {
|
|
6267
|
+
"text": "string | undefined"
|
|
6268
|
+
}
|
|
6269
|
+
},
|
|
6270
|
+
"parameters": [
|
|
6299
6271
|
{
|
|
6300
|
-
"
|
|
6301
|
-
"
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
"default": "new Map<string, Tracked>()"
|
|
6272
|
+
"name": "field",
|
|
6273
|
+
"type": {
|
|
6274
|
+
"text": "string"
|
|
6275
|
+
}
|
|
6305
6276
|
},
|
|
6306
6277
|
{
|
|
6307
|
-
"
|
|
6308
|
-
"
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
"default": "new Map<string, { auto?: boolean; raw?: boolean }>()",
|
|
6312
|
-
"description": "What the session did to an interaction itself, for `settled` to say when the driver reports it."
|
|
6278
|
+
"name": "op",
|
|
6279
|
+
"type": {
|
|
6280
|
+
"text": "GenesisFilterOp"
|
|
6281
|
+
}
|
|
6313
6282
|
},
|
|
6314
6283
|
{
|
|
6315
|
-
"
|
|
6316
|
-
"
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6284
|
+
"name": "date",
|
|
6285
|
+
"type": {
|
|
6286
|
+
"text": "string"
|
|
6287
|
+
}
|
|
6288
|
+
}
|
|
6289
|
+
]
|
|
6290
|
+
},
|
|
6291
|
+
{
|
|
6292
|
+
"kind": "function",
|
|
6293
|
+
"name": "dateTimeFragment",
|
|
6294
|
+
"return": {
|
|
6295
|
+
"type": {
|
|
6296
|
+
"text": "string | undefined"
|
|
6297
|
+
}
|
|
6298
|
+
},
|
|
6299
|
+
"parameters": [
|
|
6321
6300
|
{
|
|
6322
|
-
"
|
|
6323
|
-
"name": "teardown",
|
|
6301
|
+
"name": "field",
|
|
6324
6302
|
"type": {
|
|
6325
|
-
"text": "
|
|
6326
|
-
}
|
|
6327
|
-
"privacy": "private",
|
|
6328
|
-
"readonly": true,
|
|
6329
|
-
"default": "[]"
|
|
6303
|
+
"text": "string"
|
|
6304
|
+
}
|
|
6330
6305
|
},
|
|
6331
6306
|
{
|
|
6332
|
-
"
|
|
6333
|
-
"name": "seen",
|
|
6307
|
+
"name": "op",
|
|
6334
6308
|
"type": {
|
|
6335
|
-
"text": "
|
|
6336
|
-
}
|
|
6337
|
-
"privacy": "private",
|
|
6338
|
-
"description": "How much of the driver's history has been reported as messages."
|
|
6309
|
+
"text": "GenesisFilterOp"
|
|
6310
|
+
}
|
|
6339
6311
|
},
|
|
6340
6312
|
{
|
|
6341
|
-
"
|
|
6342
|
-
"name": "turn",
|
|
6343
|
-
"type": {
|
|
6344
|
-
"text": "Promise<unknown> | undefined"
|
|
6345
|
-
},
|
|
6346
|
-
"privacy": "private",
|
|
6347
|
-
"description": "The `send` in flight, if any."
|
|
6348
|
-
},
|
|
6349
|
-
{
|
|
6350
|
-
"kind": "field",
|
|
6351
|
-
"name": "open",
|
|
6352
|
-
"type": {
|
|
6353
|
-
"text": "{ start: number; reason?: string; failureReason?: string } | undefined"
|
|
6354
|
-
},
|
|
6355
|
-
"privacy": "private",
|
|
6356
|
-
"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."
|
|
6357
|
-
},
|
|
6358
|
-
{
|
|
6359
|
-
"kind": "field",
|
|
6360
|
-
"name": "base",
|
|
6361
|
-
"type": {
|
|
6362
|
-
"text": "number"
|
|
6363
|
-
},
|
|
6364
|
-
"privacy": "private",
|
|
6365
|
-
"description": "History length when the last turn closed: where a turn the session did not start begins."
|
|
6366
|
-
},
|
|
6367
|
-
{
|
|
6368
|
-
"kind": "field",
|
|
6369
|
-
"name": "quiesceTimer",
|
|
6370
|
-
"type": {
|
|
6371
|
-
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
6372
|
-
},
|
|
6373
|
-
"privacy": "private"
|
|
6374
|
-
},
|
|
6375
|
-
{
|
|
6376
|
-
"kind": "field",
|
|
6377
|
-
"name": "poller",
|
|
6378
|
-
"type": {
|
|
6379
|
-
"text": "ReturnType<typeof setInterval> | undefined"
|
|
6380
|
-
},
|
|
6381
|
-
"privacy": "private"
|
|
6382
|
-
},
|
|
6383
|
-
{
|
|
6384
|
-
"kind": "field",
|
|
6385
|
-
"name": "persistence",
|
|
6386
|
-
"type": {
|
|
6387
|
-
"text": "HeadlessPersistenceBinding | undefined"
|
|
6388
|
-
},
|
|
6389
|
-
"privacy": "private",
|
|
6390
|
-
"readonly": true
|
|
6391
|
-
},
|
|
6392
|
-
{
|
|
6393
|
-
"kind": "field",
|
|
6394
|
-
"name": "lastProbe",
|
|
6395
|
-
"type": {
|
|
6396
|
-
"text": "Record<string, unknown>"
|
|
6397
|
-
},
|
|
6398
|
-
"privacy": "private",
|
|
6399
|
-
"default": "{}"
|
|
6400
|
-
},
|
|
6401
|
-
{
|
|
6402
|
-
"kind": "field",
|
|
6403
|
-
"name": "lastAutopilot",
|
|
6313
|
+
"name": "bound",
|
|
6404
6314
|
"type": {
|
|
6405
6315
|
"text": "string"
|
|
6406
|
-
},
|
|
6407
|
-
"privacy": "private",
|
|
6408
|
-
"default": "''"
|
|
6409
|
-
},
|
|
6410
|
-
{
|
|
6411
|
-
"kind": "field",
|
|
6412
|
-
"name": "disposed",
|
|
6413
|
-
"type": {
|
|
6414
|
-
"text": "boolean"
|
|
6415
|
-
},
|
|
6416
|
-
"privacy": "private",
|
|
6417
|
-
"default": "false"
|
|
6418
|
-
},
|
|
6419
|
-
{
|
|
6420
|
-
"kind": "field",
|
|
6421
|
-
"name": "restoring",
|
|
6422
|
-
"type": {
|
|
6423
|
-
"text": "boolean"
|
|
6424
|
-
},
|
|
6425
|
-
"privacy": "private",
|
|
6426
|
-
"default": "false",
|
|
6427
|
-
"description": "While a restore loads the history, which is not new activity."
|
|
6428
|
-
},
|
|
6429
|
-
{
|
|
6430
|
-
"kind": "method",
|
|
6431
|
-
"name": "send",
|
|
6432
|
-
"return": {
|
|
6433
|
-
"type": {
|
|
6434
|
-
"text": "HeadlessResult"
|
|
6435
|
-
}
|
|
6436
|
-
},
|
|
6437
|
-
"parameters": [
|
|
6438
|
-
{
|
|
6439
|
-
"name": "text",
|
|
6440
|
-
"type": {
|
|
6441
|
-
"text": "string"
|
|
6442
|
-
}
|
|
6443
|
-
},
|
|
6444
|
-
{
|
|
6445
|
-
"name": "options",
|
|
6446
|
-
"default": "{}",
|
|
6447
|
-
"type": {
|
|
6448
|
-
"text": "HeadlessSendOptions"
|
|
6449
|
-
}
|
|
6450
|
-
}
|
|
6451
|
-
],
|
|
6452
|
-
"description": "Send the person's message, and start the turn. Returns as soon as the turn has started, not\nwhen it ends: a turn includes every interaction parked on the person, so it can run as long as\nthe journey. Its end is the `turn` event.\n\nRefused, never thrown, when the message is empty, or a turn is already running."
|
|
6453
|
-
},
|
|
6454
|
-
{
|
|
6455
|
-
"kind": "method",
|
|
6456
|
-
"name": "act",
|
|
6457
|
-
"return": {
|
|
6458
|
-
"type": {
|
|
6459
|
-
"text": "Promise<HeadlessActResult>"
|
|
6460
|
-
}
|
|
6461
|
-
},
|
|
6462
|
-
"parameters": [
|
|
6463
|
-
{
|
|
6464
|
-
"name": "interactionId",
|
|
6465
|
-
"type": {
|
|
6466
|
-
"text": "string"
|
|
6467
|
-
}
|
|
6468
|
-
},
|
|
6469
|
-
{
|
|
6470
|
-
"name": "action",
|
|
6471
|
-
"type": {
|
|
6472
|
-
"text": "string | number"
|
|
6473
|
-
}
|
|
6474
|
-
},
|
|
6475
|
-
{
|
|
6476
|
-
"name": "args",
|
|
6477
|
-
"default": "{}",
|
|
6478
|
-
"type": {
|
|
6479
|
-
"text": "HeadlessActArgs"
|
|
6480
|
-
}
|
|
6481
|
-
}
|
|
6482
|
-
],
|
|
6483
|
-
"description": "Run one of a pending interaction's actions as the person, as a click would (the answer is\ncredited `answeredBy: 'user'`). `action` is a number from the description's actions, or an\naction's name; `args` carry the text, the options (numbers or labels) or the form's fields it\ntakes. Refused, with the reason and what is enabled, when a claimant holds the interaction,\nthe action is unknown or disabled, or its arguments do not fit: nothing runs then.\n\nThe result is the driver's `InvokeResult`, plus `description` of the interaction when it is\nstill open."
|
|
6484
|
-
},
|
|
6485
|
-
{
|
|
6486
|
-
"kind": "method",
|
|
6487
|
-
"name": "resolve",
|
|
6488
|
-
"return": {
|
|
6489
|
-
"type": {
|
|
6490
|
-
"text": "HeadlessResult"
|
|
6491
|
-
}
|
|
6492
|
-
},
|
|
6493
|
-
"parameters": [
|
|
6494
|
-
{
|
|
6495
|
-
"name": "interactionId",
|
|
6496
|
-
"type": {
|
|
6497
|
-
"text": "string"
|
|
6498
|
-
}
|
|
6499
|
-
},
|
|
6500
|
-
{
|
|
6501
|
-
"name": "result",
|
|
6502
|
-
"type": {
|
|
6503
|
-
"text": "unknown"
|
|
6504
|
-
}
|
|
6505
|
-
}
|
|
6506
|
-
],
|
|
6507
|
-
"description": "Settle a pending interaction raw, with `result` as the widget would have resolved it,\nbypassing its actions and everything they check: an escape hatch for a widget with no\ncontroller, or one that cannot be acted on. Logs `settled` with `raw: true` and records\n`headless.raw-resolved`. Refused when `allowRaw` is `false`, when the interaction is not\npending, or when a claimant holds it: as for `act`, the person takes it back first."
|
|
6508
|
-
},
|
|
6509
|
-
{
|
|
6510
|
-
"kind": "method",
|
|
6511
|
-
"name": "read",
|
|
6512
|
-
"return": {
|
|
6513
|
-
"type": {
|
|
6514
|
-
"text": "Promise<HeadlessReadResult>"
|
|
6515
|
-
}
|
|
6516
|
-
},
|
|
6517
|
-
"parameters": [
|
|
6518
|
-
{
|
|
6519
|
-
"name": "interactionId",
|
|
6520
|
-
"type": {
|
|
6521
|
-
"text": "string"
|
|
6522
|
-
}
|
|
6523
|
-
},
|
|
6524
|
-
{
|
|
6525
|
-
"name": "request",
|
|
6526
|
-
"default": "{}",
|
|
6527
|
-
"type": {
|
|
6528
|
-
"text": "HeadlessReadRequest"
|
|
6529
|
-
}
|
|
6530
|
-
}
|
|
6531
|
-
],
|
|
6532
|
-
"description": "Read from a pending interaction without changing it: one of its views, or (with `tool`) one of\nthe widget tools given to the session. The text is capped. A view the surface does not list is\nrefused, naming those it does, as the autopilot's `widget_read` does."
|
|
6533
|
-
},
|
|
6534
|
-
{
|
|
6535
|
-
"kind": "method",
|
|
6536
|
-
"name": "wait",
|
|
6537
|
-
"return": {
|
|
6538
|
-
"type": {
|
|
6539
|
-
"text": "Promise<HeadlessWaitResult>"
|
|
6540
|
-
}
|
|
6541
|
-
},
|
|
6542
|
-
"parameters": [
|
|
6543
|
-
{
|
|
6544
|
-
"name": "request",
|
|
6545
|
-
"type": {
|
|
6546
|
-
"text": "HeadlessWaitRequest"
|
|
6547
|
-
}
|
|
6548
|
-
}
|
|
6549
|
-
],
|
|
6550
|
-
"description": "Wait for the log to say something, then return what it said. Resolves as soon as an event in\n`until` is in the log after `since` (immediately, when one already is), or at `maxWaitMs` with\nstatus `'working'`. Either way it returns every event after `since`, and `nextSeq`, the cursor\nfor the next call: poll with it and nothing is lost."
|
|
6551
|
-
},
|
|
6552
|
-
{
|
|
6553
|
-
"kind": "method",
|
|
6554
|
-
"name": "eventsSince",
|
|
6555
|
-
"return": {
|
|
6556
|
-
"type": {
|
|
6557
|
-
"text": "readonly HeadlessEvent[]"
|
|
6558
|
-
}
|
|
6559
|
-
},
|
|
6560
|
-
"parameters": [
|
|
6561
|
-
{
|
|
6562
|
-
"name": "since",
|
|
6563
|
-
"default": "0"
|
|
6564
|
-
}
|
|
6565
|
-
],
|
|
6566
|
-
"description": "Every event logged after `since` (default: all the log keeps), without waiting."
|
|
6567
|
-
},
|
|
6568
|
-
{
|
|
6569
|
-
"kind": "method",
|
|
6570
|
-
"name": "state",
|
|
6571
|
-
"return": {
|
|
6572
|
-
"type": {
|
|
6573
|
-
"text": "HeadlessState"
|
|
6574
|
-
}
|
|
6575
|
-
},
|
|
6576
|
-
"description": "What is going on now: whether a turn runs, the interaction the person should answer first (and\nthe others open behind it), the autopilot, what it has cost, and the host's probe."
|
|
6577
|
-
},
|
|
6578
|
-
{
|
|
6579
|
-
"kind": "method",
|
|
6580
|
-
"name": "restore",
|
|
6581
|
-
"return": {
|
|
6582
|
-
"type": {
|
|
6583
|
-
"text": "Promise<HeadlessRestoreOutcome | undefined>"
|
|
6584
|
-
}
|
|
6585
|
-
},
|
|
6586
|
-
"description": "Restore the saved session for this key, as the browser's element does on mount (see\n`HeadlessPersistenceBinding.restore`). Call it before the first `send`. The restored history is\nthe starting point, not news: it is not reported as `message` events or as a turn, and the\nevent log and its cursors carry on from where they are. A no-op without `persistence`."
|
|
6587
|
-
},
|
|
6588
|
-
{
|
|
6589
|
-
"kind": "method",
|
|
6590
|
-
"name": "flush",
|
|
6591
|
-
"return": {
|
|
6592
|
-
"type": {
|
|
6593
|
-
"text": "Promise<void>"
|
|
6594
|
-
}
|
|
6595
|
-
},
|
|
6596
|
-
"description": "Save the session now: the snapshot, and the diagnostics appended since the last flush, rather\nthan at the next throttled save. A no-op without `persistence`."
|
|
6597
|
-
},
|
|
6598
|
-
{
|
|
6599
|
-
"kind": "method",
|
|
6600
|
-
"name": "debugLog",
|
|
6601
|
-
"return": {
|
|
6602
|
-
"type": {
|
|
6603
|
-
"text": "Promise<DebugLog>"
|
|
6604
|
-
}
|
|
6605
|
-
},
|
|
6606
|
-
"description": "The debug log, the document the browser's Download gives. With `persistence`, the log of the\nwhole session stitched from the stored stream with a fresh `meta-snapshot` (`lifetimeDebugLog`,\nthe same code); without, the current page's, from `buildDiagnosticEntries`. Never throws."
|
|
6607
|
-
},
|
|
6608
|
-
{
|
|
6609
|
-
"kind": "method",
|
|
6610
|
-
"name": "stop",
|
|
6611
|
-
"return": {
|
|
6612
|
-
"type": {
|
|
6613
|
-
"text": "HeadlessResult"
|
|
6614
|
-
}
|
|
6615
|
-
},
|
|
6616
|
-
"description": "Stop the running turn, when the driver can."
|
|
6617
|
-
},
|
|
6618
|
-
{
|
|
6619
|
-
"kind": "method",
|
|
6620
|
-
"name": "autopilot",
|
|
6621
|
-
"return": {
|
|
6622
|
-
"type": {
|
|
6623
|
-
"text": "HeadlessResult"
|
|
6624
|
-
}
|
|
6625
|
-
},
|
|
6626
|
-
"parameters": [
|
|
6627
|
-
{
|
|
6628
|
-
"name": "mode",
|
|
6629
|
-
"type": {
|
|
6630
|
-
"text": "'pause' | 'resume' | 'stop' | 'keepPaused'"
|
|
6631
|
-
}
|
|
6632
|
-
},
|
|
6633
|
-
{
|
|
6634
|
-
"name": "interactionId",
|
|
6635
|
-
"optional": true,
|
|
6636
|
-
"type": {
|
|
6637
|
-
"text": "string"
|
|
6638
|
-
}
|
|
6639
|
-
}
|
|
6640
|
-
],
|
|
6641
|
-
"description": "Pause, resume or stop the autopilot, when there is one. Pausing hands what it holds to the\nperson, which then appears as a `decision`.\n\n`'keepPaused'` is the hand-back banner's \"Keep paused\": it turns the autopilot's own hand-back\nof one interaction into an ordinary pause, so it does not take the question back once it is\nanswered. `interactionId` names the interaction handed back; omitted, it is the one the\nautopilot's own pause is waiting on (`state().autopilot`'s hand-back, the `decision` it left\nwith the person). Refused, with why, when the autopilot has handed nothing back, when\n`interactionId` is not the one it handed back, or when the host cannot keep paused; the host's\nown `keepPaused` would do nothing in those cases without saying so."
|
|
6642
|
-
},
|
|
6643
|
-
{
|
|
6644
|
-
"kind": "method",
|
|
6645
|
-
"name": "keepPaused",
|
|
6646
|
-
"privacy": "private",
|
|
6647
|
-
"return": {
|
|
6648
|
-
"type": {
|
|
6649
|
-
"text": "HeadlessResult"
|
|
6650
|
-
}
|
|
6651
|
-
},
|
|
6652
|
-
"parameters": [
|
|
6653
|
-
{
|
|
6654
|
-
"name": "host",
|
|
6655
|
-
"type": {
|
|
6656
|
-
"text": "AutopilotLike"
|
|
6657
|
-
}
|
|
6658
|
-
},
|
|
6659
|
-
{
|
|
6660
|
-
"name": "interactionId",
|
|
6661
|
-
"type": {
|
|
6662
|
-
"text": "string | undefined"
|
|
6663
|
-
}
|
|
6664
|
-
}
|
|
6665
|
-
]
|
|
6666
|
-
},
|
|
6667
|
-
{
|
|
6668
|
-
"kind": "method",
|
|
6669
|
-
"name": "dispose",
|
|
6670
|
-
"return": {
|
|
6671
|
-
"type": {
|
|
6672
|
-
"text": "void"
|
|
6673
|
-
}
|
|
6674
|
-
},
|
|
6675
|
-
"description": "Detach: remove the interceptor and every subscription, and release anyone waiting."
|
|
6676
|
-
},
|
|
6677
|
-
{
|
|
6678
|
-
"kind": "method",
|
|
6679
|
-
"name": "listen",
|
|
6680
|
-
"privacy": "private",
|
|
6681
|
-
"return": {
|
|
6682
|
-
"type": {
|
|
6683
|
-
"text": "void"
|
|
6684
|
-
}
|
|
6685
|
-
},
|
|
6686
|
-
"parameters": [
|
|
6687
|
-
{
|
|
6688
|
-
"name": "type",
|
|
6689
|
-
"type": {
|
|
6690
|
-
"text": "string"
|
|
6691
|
-
}
|
|
6692
|
-
},
|
|
6693
|
-
{
|
|
6694
|
-
"name": "handler",
|
|
6695
|
-
"type": {
|
|
6696
|
-
"text": "(e: Event) => void"
|
|
6697
|
-
}
|
|
6698
|
-
}
|
|
6699
|
-
]
|
|
6700
|
-
},
|
|
6701
|
-
{
|
|
6702
|
-
"kind": "method",
|
|
6703
|
-
"name": "history",
|
|
6704
|
-
"privacy": "private",
|
|
6705
|
-
"return": {
|
|
6706
|
-
"type": {
|
|
6707
|
-
"text": "readonly ChatMessage[]"
|
|
6708
|
-
}
|
|
6709
|
-
}
|
|
6710
|
-
},
|
|
6711
|
-
{
|
|
6712
|
-
"kind": "method",
|
|
6713
|
-
"name": "onOpened",
|
|
6714
|
-
"privacy": "private",
|
|
6715
|
-
"return": {
|
|
6716
|
-
"type": {
|
|
6717
|
-
"text": "void"
|
|
6718
|
-
}
|
|
6719
|
-
},
|
|
6720
|
-
"parameters": [
|
|
6721
|
-
{
|
|
6722
|
-
"name": "opened",
|
|
6723
|
-
"type": {
|
|
6724
|
-
"text": "InteractionOpened"
|
|
6725
|
-
}
|
|
6726
|
-
}
|
|
6727
|
-
],
|
|
6728
|
-
"description": "An interaction opened: watch it. Who holds it is not decided yet, so it is reported later."
|
|
6729
|
-
},
|
|
6730
|
-
{
|
|
6731
|
-
"kind": "method",
|
|
6732
|
-
"name": "onSettled",
|
|
6733
|
-
"privacy": "private",
|
|
6734
|
-
"return": {
|
|
6735
|
-
"type": {
|
|
6736
|
-
"text": "void"
|
|
6737
|
-
}
|
|
6738
|
-
},
|
|
6739
|
-
"parameters": [
|
|
6740
|
-
{
|
|
6741
|
-
"name": "detail",
|
|
6742
|
-
"type": {
|
|
6743
|
-
"text": "{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }"
|
|
6744
|
-
}
|
|
6745
|
-
}
|
|
6746
|
-
],
|
|
6747
|
-
"description": "The driver says an interaction settled, by whatever route."
|
|
6748
|
-
},
|
|
6749
|
-
{
|
|
6750
|
-
"kind": "method",
|
|
6751
|
-
"name": "onEnded",
|
|
6752
|
-
"privacy": "private",
|
|
6753
|
-
"return": {
|
|
6754
|
-
"type": {
|
|
6755
|
-
"text": "void"
|
|
6756
|
-
}
|
|
6757
|
-
},
|
|
6758
|
-
"parameters": [
|
|
6759
|
-
{
|
|
6760
|
-
"name": "t",
|
|
6761
|
-
"type": {
|
|
6762
|
-
"text": "Tracked"
|
|
6763
|
-
}
|
|
6764
|
-
}
|
|
6765
|
-
],
|
|
6766
|
-
"description": "The interaction's context was disposed: if nothing said it settled, say it did."
|
|
6767
|
-
},
|
|
6768
|
-
{
|
|
6769
|
-
"kind": "method",
|
|
6770
|
-
"name": "settle",
|
|
6771
|
-
"privacy": "private",
|
|
6772
|
-
"return": {
|
|
6773
|
-
"type": {
|
|
6774
|
-
"text": "void"
|
|
6775
|
-
}
|
|
6776
|
-
},
|
|
6777
|
-
"parameters": [
|
|
6778
|
-
{
|
|
6779
|
-
"name": "t",
|
|
6780
|
-
"type": {
|
|
6781
|
-
"text": "Tracked"
|
|
6782
|
-
}
|
|
6783
|
-
},
|
|
6784
|
-
{
|
|
6785
|
-
"name": "how",
|
|
6786
|
-
"type": {
|
|
6787
|
-
"text": "{ answeredBy?: string; resolvedItself?: boolean; auto?: boolean; raw?: boolean }"
|
|
6788
|
-
}
|
|
6789
|
-
}
|
|
6790
|
-
]
|
|
6791
|
-
},
|
|
6792
|
-
{
|
|
6793
|
-
"kind": "method",
|
|
6794
|
-
"name": "release",
|
|
6795
|
-
"privacy": "private",
|
|
6796
|
-
"return": {
|
|
6797
|
-
"type": {
|
|
6798
|
-
"text": "void"
|
|
6799
|
-
}
|
|
6800
|
-
},
|
|
6801
|
-
"parameters": [
|
|
6802
|
-
{
|
|
6803
|
-
"name": "t",
|
|
6804
|
-
"type": {
|
|
6805
|
-
"text": "Tracked"
|
|
6806
|
-
}
|
|
6807
|
-
}
|
|
6808
|
-
]
|
|
6809
|
-
},
|
|
6810
|
-
{
|
|
6811
|
-
"kind": "method",
|
|
6812
|
-
"name": "onHistory",
|
|
6813
|
-
"privacy": "private",
|
|
6814
|
-
"return": {
|
|
6815
|
-
"type": {
|
|
6816
|
-
"text": "void"
|
|
6817
|
-
}
|
|
6818
|
-
},
|
|
6819
|
-
"description": "New messages in the driver's history: report what the person would see of them."
|
|
6820
|
-
},
|
|
6821
|
-
{
|
|
6822
|
-
"kind": "method",
|
|
6823
|
-
"name": "reportMessages",
|
|
6824
|
-
"privacy": "private",
|
|
6825
|
-
"return": {
|
|
6826
|
-
"type": {
|
|
6827
|
-
"text": "void"
|
|
6828
|
-
}
|
|
6829
|
-
}
|
|
6830
|
-
},
|
|
6831
|
-
{
|
|
6832
|
-
"kind": "method",
|
|
6833
|
-
"name": "onAutopilot",
|
|
6834
|
-
"privacy": "private",
|
|
6835
|
-
"return": {
|
|
6836
|
-
"type": {
|
|
6837
|
-
"text": "void"
|
|
6838
|
-
}
|
|
6839
|
-
}
|
|
6840
|
-
},
|
|
6841
|
-
{
|
|
6842
|
-
"kind": "method",
|
|
6843
|
-
"name": "autopilotSignature",
|
|
6844
|
-
"privacy": "private",
|
|
6845
|
-
"return": {
|
|
6846
|
-
"type": {
|
|
6847
|
-
"text": "string"
|
|
6848
|
-
}
|
|
6849
6316
|
}
|
|
6850
|
-
},
|
|
6851
|
-
{
|
|
6852
|
-
"kind": "method",
|
|
6853
|
-
"name": "describe",
|
|
6854
|
-
"privacy": "private",
|
|
6855
|
-
"return": {
|
|
6856
|
-
"type": {
|
|
6857
|
-
"text": "InteractionDescription"
|
|
6858
|
-
}
|
|
6859
|
-
},
|
|
6860
|
-
"parameters": [
|
|
6861
|
-
{
|
|
6862
|
-
"name": "t",
|
|
6863
|
-
"type": {
|
|
6864
|
-
"text": "Tracked"
|
|
6865
|
-
}
|
|
6866
|
-
}
|
|
6867
|
-
]
|
|
6868
|
-
},
|
|
6869
|
-
{
|
|
6870
|
-
"kind": "method",
|
|
6871
|
-
"name": "evaluate",
|
|
6872
|
-
"privacy": "private",
|
|
6873
|
-
"return": {
|
|
6874
|
-
"type": {
|
|
6875
|
-
"text": "void"
|
|
6876
|
-
}
|
|
6877
|
-
},
|
|
6878
|
-
"parameters": [
|
|
6879
|
-
{
|
|
6880
|
-
"name": "t",
|
|
6881
|
-
"type": {
|
|
6882
|
-
"text": "Tracked"
|
|
6883
|
-
}
|
|
6884
|
-
}
|
|
6885
|
-
],
|
|
6886
|
-
"description": "Report where an interaction stands, when that has changed. A `decision` when the person holds\nit and can act; `working` when a claimant holds it or it is not ready yet. A `decision` is\nlogged again only when its description changed materially: who holds it, whether it is ready\nor has a controller, or which actions are enabled. The text and facts alone do not count."
|
|
6887
|
-
},
|
|
6888
|
-
{
|
|
6889
|
-
"kind": "method",
|
|
6890
|
-
"name": "autoSettle",
|
|
6891
|
-
"privacy": "private",
|
|
6892
|
-
"return": {
|
|
6893
|
-
"type": {
|
|
6894
|
-
"text": "boolean"
|
|
6895
|
-
}
|
|
6896
|
-
},
|
|
6897
|
-
"parameters": [
|
|
6898
|
-
{
|
|
6899
|
-
"name": "t",
|
|
6900
|
-
"type": {
|
|
6901
|
-
"text": "Tracked"
|
|
6902
|
-
}
|
|
6903
|
-
}
|
|
6904
|
-
],
|
|
6905
|
-
"description": "Settle a widget that settles itself in a browser, as it would on mounting. Once, and only when\nthe person holds it. Returns whether it settled it."
|
|
6906
|
-
},
|
|
6907
|
-
{
|
|
6908
|
-
"kind": "method",
|
|
6909
|
-
"name": "readTool",
|
|
6910
|
-
"privacy": "private",
|
|
6911
|
-
"return": {
|
|
6912
|
-
"type": {
|
|
6913
|
-
"text": "Promise<HeadlessReadResult>"
|
|
6914
|
-
}
|
|
6915
|
-
},
|
|
6916
|
-
"parameters": [
|
|
6917
|
-
{
|
|
6918
|
-
"name": "t",
|
|
6919
|
-
"type": {
|
|
6920
|
-
"text": "Tracked"
|
|
6921
|
-
}
|
|
6922
|
-
},
|
|
6923
|
-
{
|
|
6924
|
-
"name": "name",
|
|
6925
|
-
"type": {
|
|
6926
|
-
"text": "string"
|
|
6927
|
-
}
|
|
6928
|
-
},
|
|
6929
|
-
{
|
|
6930
|
-
"name": "args",
|
|
6931
|
-
"type": {
|
|
6932
|
-
"text": "Record<string, unknown> | undefined"
|
|
6933
|
-
}
|
|
6934
|
-
}
|
|
6935
|
-
]
|
|
6936
|
-
},
|
|
6937
|
-
{
|
|
6938
|
-
"kind": "method",
|
|
6939
|
-
"name": "observe",
|
|
6940
|
-
"privacy": "private",
|
|
6941
|
-
"return": {
|
|
6942
|
-
"type": {
|
|
6943
|
-
"text": "void"
|
|
6944
|
-
}
|
|
6945
|
-
},
|
|
6946
|
-
"description": "Notice a turn begin or end, whoever started it. The driver being busy (or a `send` in flight)\nis a turn; once it has been idle for a beat the turn is over and is reported, once. The beat\ncovers the gaps inside one turn, such as a hand-off continuing it, which are a microtask long.\nA turn that begins the instant another ends, with no idle between, is reported as one."
|
|
6947
|
-
},
|
|
6948
|
-
{
|
|
6949
|
-
"kind": "method",
|
|
6950
|
-
"name": "closeTurn",
|
|
6951
|
-
"privacy": "private",
|
|
6952
|
-
"return": {
|
|
6953
|
-
"type": {
|
|
6954
|
-
"text": "void"
|
|
6955
|
-
}
|
|
6956
|
-
},
|
|
6957
|
-
"description": "Report the open turn as ended, unless the driver is busy again."
|
|
6958
|
-
},
|
|
6959
|
-
{
|
|
6960
|
-
"kind": "method",
|
|
6961
|
-
"name": "startPolling",
|
|
6962
|
-
"privacy": "private",
|
|
6963
|
-
"return": {
|
|
6964
|
-
"type": {
|
|
6965
|
-
"text": "void"
|
|
6966
|
-
}
|
|
6967
|
-
},
|
|
6968
|
-
"description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
|
|
6969
|
-
},
|
|
6970
|
-
{
|
|
6971
|
-
"kind": "method",
|
|
6972
|
-
"name": "stopPolling",
|
|
6973
|
-
"privacy": "private",
|
|
6974
|
-
"return": {
|
|
6975
|
-
"type": {
|
|
6976
|
-
"text": "void"
|
|
6977
|
-
}
|
|
6978
|
-
}
|
|
6979
|
-
},
|
|
6980
|
-
{
|
|
6981
|
-
"kind": "method",
|
|
6982
|
-
"name": "logTurn",
|
|
6983
|
-
"privacy": "private",
|
|
6984
|
-
"return": {
|
|
6985
|
-
"type": {
|
|
6986
|
-
"text": "void"
|
|
6987
|
-
}
|
|
6988
|
-
},
|
|
6989
|
-
"parameters": [
|
|
6990
|
-
{
|
|
6991
|
-
"name": "reason",
|
|
6992
|
-
"type": {
|
|
6993
|
-
"text": "string"
|
|
6994
|
-
}
|
|
6995
|
-
},
|
|
6996
|
-
{
|
|
6997
|
-
"name": "failureReason",
|
|
6998
|
-
"type": {
|
|
6999
|
-
"text": "string | undefined"
|
|
7000
|
-
}
|
|
7001
|
-
},
|
|
7002
|
-
{
|
|
7003
|
-
"name": "start",
|
|
7004
|
-
"type": {
|
|
7005
|
-
"text": "number"
|
|
7006
|
-
}
|
|
7007
|
-
}
|
|
7008
|
-
]
|
|
7009
|
-
},
|
|
7010
|
-
{
|
|
7011
|
-
"kind": "method",
|
|
7012
|
-
"name": "log",
|
|
7013
|
-
"privacy": "private",
|
|
7014
|
-
"return": {
|
|
7015
|
-
"type": {
|
|
7016
|
-
"text": "void"
|
|
7017
|
-
}
|
|
7018
|
-
},
|
|
7019
|
-
"parameters": [
|
|
7020
|
-
{
|
|
7021
|
-
"name": "event",
|
|
7022
|
-
"type": {
|
|
7023
|
-
"text": "NewEvent"
|
|
7024
|
-
}
|
|
7025
|
-
}
|
|
7026
|
-
]
|
|
7027
|
-
},
|
|
7028
|
-
{
|
|
7029
|
-
"kind": "method",
|
|
7030
|
-
"name": "append",
|
|
7031
|
-
"privacy": "private",
|
|
7032
|
-
"return": {
|
|
7033
|
-
"type": {
|
|
7034
|
-
"text": "void"
|
|
7035
|
-
}
|
|
7036
|
-
},
|
|
7037
|
-
"parameters": [
|
|
7038
|
-
{
|
|
7039
|
-
"name": "event",
|
|
7040
|
-
"type": {
|
|
7041
|
-
"text": "NewEvent"
|
|
7042
|
-
}
|
|
7043
|
-
}
|
|
7044
|
-
]
|
|
7045
|
-
},
|
|
7046
|
-
{
|
|
7047
|
-
"kind": "method",
|
|
7048
|
-
"name": "readProbe",
|
|
7049
|
-
"privacy": "private",
|
|
7050
|
-
"return": {
|
|
7051
|
-
"type": {
|
|
7052
|
-
"text": "Record<string, unknown>"
|
|
7053
|
-
}
|
|
7054
|
-
}
|
|
7055
|
-
},
|
|
7056
|
-
{
|
|
7057
|
-
"kind": "method",
|
|
7058
|
-
"name": "checkProbe",
|
|
7059
|
-
"privacy": "private",
|
|
7060
|
-
"return": {
|
|
7061
|
-
"type": {
|
|
7062
|
-
"text": "void"
|
|
7063
|
-
}
|
|
7064
|
-
},
|
|
7065
|
-
"description": "Read the probe again; a change in any top-level value is a `probe` event."
|
|
7066
|
-
},
|
|
7067
|
-
{
|
|
7068
|
-
"kind": "method",
|
|
7069
|
-
"name": "waited",
|
|
7070
|
-
"privacy": "private",
|
|
7071
|
-
"return": {
|
|
7072
|
-
"type": {
|
|
7073
|
-
"text": "HeadlessWaitResult"
|
|
7074
|
-
}
|
|
7075
|
-
},
|
|
7076
|
-
"parameters": [
|
|
7077
|
-
{
|
|
7078
|
-
"name": "since",
|
|
7079
|
-
"type": {
|
|
7080
|
-
"text": "number"
|
|
7081
|
-
}
|
|
7082
|
-
},
|
|
7083
|
-
{
|
|
7084
|
-
"name": "status",
|
|
7085
|
-
"type": {
|
|
7086
|
-
"text": "HeadlessWaitResult['status']"
|
|
7087
|
-
}
|
|
7088
|
-
}
|
|
7089
|
-
]
|
|
7090
6317
|
}
|
|
7091
|
-
]
|
|
6318
|
+
],
|
|
6319
|
+
"description": "Timestamp columns get the dateTime helpers, which take a `yyyyMMdd-HH:mm:ss` bound."
|
|
7092
6320
|
}
|
|
7093
6321
|
],
|
|
7094
6322
|
"exports": [
|
|
7095
6323
|
{
|
|
7096
6324
|
"kind": "js",
|
|
7097
|
-
"name": "
|
|
6325
|
+
"name": "dateFragment",
|
|
7098
6326
|
"declaration": {
|
|
7099
|
-
"name": "
|
|
7100
|
-
"module": "src/
|
|
6327
|
+
"name": "dateFragment",
|
|
6328
|
+
"module": "src/genesis/criteria.ts"
|
|
6329
|
+
}
|
|
6330
|
+
},
|
|
6331
|
+
{
|
|
6332
|
+
"kind": "js",
|
|
6333
|
+
"name": "dateTimeFragment",
|
|
6334
|
+
"declaration": {
|
|
6335
|
+
"name": "dateTimeFragment",
|
|
6336
|
+
"module": "src/genesis/criteria.ts"
|
|
7101
6337
|
}
|
|
7102
6338
|
}
|
|
7103
6339
|
]
|
|
7104
6340
|
},
|
|
7105
6341
|
{
|
|
7106
6342
|
"kind": "javascript-module",
|
|
7107
|
-
"path": "src/
|
|
6343
|
+
"path": "src/genesis/event-fields.ts",
|
|
7108
6344
|
"declarations": [],
|
|
7109
6345
|
"exports": []
|
|
7110
6346
|
},
|
|
7111
6347
|
{
|
|
7112
6348
|
"kind": "javascript-module",
|
|
7113
|
-
"path": "src/
|
|
6349
|
+
"path": "src/genesis/filter-fields.ts",
|
|
6350
|
+
"declarations": [],
|
|
6351
|
+
"exports": []
|
|
6352
|
+
},
|
|
6353
|
+
{
|
|
6354
|
+
"kind": "javascript-module",
|
|
6355
|
+
"path": "src/genesis/index.ts",
|
|
7114
6356
|
"declarations": [],
|
|
7115
6357
|
"exports": [
|
|
7116
6358
|
{
|
|
7117
6359
|
"kind": "js",
|
|
7118
|
-
"name": "
|
|
6360
|
+
"name": "GENESIS_AGENT_NAME",
|
|
7119
6361
|
"declaration": {
|
|
7120
|
-
"name": "
|
|
7121
|
-
"module": "./
|
|
6362
|
+
"name": "GENESIS_AGENT_NAME",
|
|
6363
|
+
"module": "./register-genesis-assistant"
|
|
7122
6364
|
}
|
|
7123
6365
|
},
|
|
7124
6366
|
{
|
|
7125
6367
|
"kind": "js",
|
|
7126
|
-
"name": "
|
|
6368
|
+
"name": "registerGenesisAssistant",
|
|
7127
6369
|
"declaration": {
|
|
7128
|
-
"name": "
|
|
7129
|
-
"module": "./
|
|
6370
|
+
"name": "registerGenesisAssistant",
|
|
6371
|
+
"module": "./register-genesis-assistant"
|
|
7130
6372
|
}
|
|
7131
6373
|
},
|
|
7132
6374
|
{
|
|
7133
6375
|
"kind": "js",
|
|
7134
|
-
"name": "
|
|
6376
|
+
"name": "customCodeOf",
|
|
7135
6377
|
"declaration": {
|
|
7136
|
-
"name": "
|
|
7137
|
-
"module": "./
|
|
6378
|
+
"name": "customCodeOf",
|
|
6379
|
+
"module": "./config"
|
|
7138
6380
|
}
|
|
7139
6381
|
},
|
|
7140
6382
|
{
|
|
7141
6383
|
"kind": "js",
|
|
7142
|
-
"name": "
|
|
6384
|
+
"name": "rowActionProblem",
|
|
7143
6385
|
"declaration": {
|
|
7144
|
-
"name": "
|
|
7145
|
-
"module": "./
|
|
6386
|
+
"name": "rowActionProblem",
|
|
6387
|
+
"module": "./config"
|
|
7146
6388
|
}
|
|
7147
6389
|
},
|
|
7148
6390
|
{
|
|
7149
6391
|
"kind": "js",
|
|
7150
|
-
"name": "
|
|
6392
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
7151
6393
|
"declaration": {
|
|
7152
|
-
"name": "
|
|
7153
|
-
"module": "./
|
|
6394
|
+
"name": "GENESIS_AI_CONSUMES",
|
|
6395
|
+
"module": "./consumes"
|
|
7154
6396
|
}
|
|
7155
6397
|
},
|
|
7156
6398
|
{
|
|
7157
6399
|
"kind": "js",
|
|
7158
|
-
"name": "
|
|
6400
|
+
"name": "validateGenesisAiConfig",
|
|
7159
6401
|
"declaration": {
|
|
7160
|
-
"name": "
|
|
7161
|
-
"module": "./
|
|
6402
|
+
"name": "validateGenesisAiConfig",
|
|
6403
|
+
"module": "./config"
|
|
7162
6404
|
}
|
|
7163
6405
|
},
|
|
7164
6406
|
{
|
|
7165
6407
|
"kind": "js",
|
|
7166
|
-
"name": "
|
|
6408
|
+
"name": "DroppedResource",
|
|
7167
6409
|
"declaration": {
|
|
7168
|
-
"name": "
|
|
7169
|
-
"module": "./
|
|
6410
|
+
"name": "DroppedResource",
|
|
6411
|
+
"module": "./config"
|
|
7170
6412
|
}
|
|
7171
6413
|
},
|
|
7172
6414
|
{
|
|
7173
6415
|
"kind": "js",
|
|
7174
|
-
"name": "
|
|
6416
|
+
"name": "GenesisAiConfigCheck",
|
|
7175
6417
|
"declaration": {
|
|
7176
|
-
"name": "
|
|
7177
|
-
"module": "./
|
|
6418
|
+
"name": "GenesisAiConfigCheck",
|
|
6419
|
+
"module": "./config"
|
|
7178
6420
|
}
|
|
7179
6421
|
},
|
|
7180
6422
|
{
|
|
7181
6423
|
"kind": "js",
|
|
7182
|
-
"name": "
|
|
6424
|
+
"name": "GenesisFilter",
|
|
7183
6425
|
"declaration": {
|
|
7184
|
-
"name": "
|
|
7185
|
-
"module": "./
|
|
6426
|
+
"name": "GenesisFilter",
|
|
6427
|
+
"module": "./criteria"
|
|
7186
6428
|
}
|
|
7187
6429
|
},
|
|
7188
6430
|
{
|
|
7189
6431
|
"kind": "js",
|
|
7190
|
-
"name": "
|
|
6432
|
+
"name": "GenesisFilterField",
|
|
7191
6433
|
"declaration": {
|
|
7192
|
-
"name": "
|
|
7193
|
-
"module": "./
|
|
6434
|
+
"name": "GenesisFilterField",
|
|
6435
|
+
"module": "./criteria"
|
|
7194
6436
|
}
|
|
7195
6437
|
},
|
|
7196
6438
|
{
|
|
7197
6439
|
"kind": "js",
|
|
7198
|
-
"name": "
|
|
6440
|
+
"name": "GenesisFilterOp",
|
|
7199
6441
|
"declaration": {
|
|
7200
|
-
"name": "
|
|
7201
|
-
"module": "./
|
|
6442
|
+
"name": "GenesisFilterOp",
|
|
6443
|
+
"module": "./criteria"
|
|
7202
6444
|
}
|
|
7203
6445
|
},
|
|
7204
6446
|
{
|
|
7205
6447
|
"kind": "js",
|
|
7206
|
-
"name": "
|
|
6448
|
+
"name": "createGenesisResourceTools",
|
|
7207
6449
|
"declaration": {
|
|
7208
|
-
"name": "
|
|
7209
|
-
"module": "./
|
|
6450
|
+
"name": "createGenesisResourceTools",
|
|
6451
|
+
"module": "./resource-tools"
|
|
7210
6452
|
}
|
|
7211
6453
|
},
|
|
7212
6454
|
{
|
|
7213
6455
|
"kind": "js",
|
|
7214
|
-
"name": "
|
|
6456
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
7215
6457
|
"declaration": {
|
|
7216
|
-
"name": "
|
|
7217
|
-
"module": "./
|
|
6458
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6459
|
+
"module": "./resource-tools"
|
|
7218
6460
|
}
|
|
7219
6461
|
},
|
|
7220
6462
|
{
|
|
7221
6463
|
"kind": "js",
|
|
7222
|
-
"name": "
|
|
6464
|
+
"name": "createGenesisWriteTools",
|
|
7223
6465
|
"declaration": {
|
|
7224
|
-
"name": "
|
|
7225
|
-
"module": "./
|
|
6466
|
+
"name": "createGenesisWriteTools",
|
|
6467
|
+
"module": "./write-tools"
|
|
7226
6468
|
}
|
|
7227
6469
|
},
|
|
7228
6470
|
{
|
|
7229
6471
|
"kind": "js",
|
|
7230
|
-
"name": "
|
|
6472
|
+
"name": "GenesisWriteDecision",
|
|
7231
6473
|
"declaration": {
|
|
7232
|
-
"name": "
|
|
7233
|
-
"module": "./
|
|
6474
|
+
"name": "GenesisWriteDecision",
|
|
6475
|
+
"module": "./write-tools"
|
|
7234
6476
|
}
|
|
7235
6477
|
},
|
|
7236
6478
|
{
|
|
7237
6479
|
"kind": "js",
|
|
7238
|
-
"name": "
|
|
6480
|
+
"name": "GenesisWriteResult",
|
|
7239
6481
|
"declaration": {
|
|
7240
|
-
"name": "
|
|
7241
|
-
"module": "./
|
|
6482
|
+
"name": "GenesisWriteResult",
|
|
6483
|
+
"module": "./write-tools"
|
|
7242
6484
|
}
|
|
7243
6485
|
},
|
|
7244
6486
|
{
|
|
7245
6487
|
"kind": "js",
|
|
7246
|
-
"name": "
|
|
6488
|
+
"name": "GenesisWriteRowStatus",
|
|
7247
6489
|
"declaration": {
|
|
7248
|
-
"name": "
|
|
7249
|
-
"module": "./
|
|
6490
|
+
"name": "GenesisWriteRowStatus",
|
|
6491
|
+
"module": "./write-tools"
|
|
7250
6492
|
}
|
|
7251
6493
|
},
|
|
7252
6494
|
{
|
|
7253
6495
|
"kind": "js",
|
|
7254
|
-
"name": "
|
|
6496
|
+
"name": "GenesisWriteToolsOptions",
|
|
7255
6497
|
"declaration": {
|
|
7256
|
-
"name": "
|
|
7257
|
-
"module": "./
|
|
6498
|
+
"name": "GenesisWriteToolsOptions",
|
|
6499
|
+
"module": "./write-tools"
|
|
7258
6500
|
}
|
|
7259
6501
|
},
|
|
7260
6502
|
{
|
|
7261
6503
|
"kind": "js",
|
|
7262
|
-
"name": "
|
|
6504
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
7263
6505
|
"declaration": {
|
|
7264
|
-
"name": "
|
|
7265
|
-
"module": "./
|
|
6506
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
6507
|
+
"module": "./write-review/write-review"
|
|
7266
6508
|
}
|
|
7267
6509
|
},
|
|
7268
6510
|
{
|
|
7269
6511
|
"kind": "js",
|
|
7270
|
-
"name": "
|
|
6512
|
+
"name": "GenesisWriteReview",
|
|
7271
6513
|
"declaration": {
|
|
7272
|
-
"name": "
|
|
7273
|
-
"module": "./
|
|
6514
|
+
"name": "GenesisWriteReview",
|
|
6515
|
+
"module": "./write-review/write-review"
|
|
7274
6516
|
}
|
|
7275
6517
|
},
|
|
7276
6518
|
{
|
|
7277
6519
|
"kind": "js",
|
|
7278
|
-
"name": "
|
|
6520
|
+
"name": "GenesisChangeRequest",
|
|
7279
6521
|
"declaration": {
|
|
7280
|
-
"name": "
|
|
7281
|
-
"module": "./
|
|
6522
|
+
"name": "GenesisChangeRequest",
|
|
6523
|
+
"module": "./review-payload"
|
|
7282
6524
|
}
|
|
7283
6525
|
},
|
|
7284
6526
|
{
|
|
7285
6527
|
"kind": "js",
|
|
7286
|
-
"name": "
|
|
6528
|
+
"name": "GenesisReviewPayload",
|
|
7287
6529
|
"declaration": {
|
|
7288
|
-
"name": "
|
|
7289
|
-
"module": "./
|
|
6530
|
+
"name": "GenesisReviewPayload",
|
|
6531
|
+
"module": "./review-payload"
|
|
7290
6532
|
}
|
|
7291
6533
|
},
|
|
7292
6534
|
{
|
|
7293
6535
|
"kind": "js",
|
|
7294
|
-
"name": "
|
|
6536
|
+
"name": "GenesisWriteReviewCompletedEventDetail",
|
|
7295
6537
|
"declaration": {
|
|
7296
|
-
"name": "
|
|
7297
|
-
"module": "./
|
|
6538
|
+
"name": "GenesisWriteReviewCompletedEventDetail",
|
|
6539
|
+
"module": "./review-payload"
|
|
7298
6540
|
}
|
|
7299
6541
|
},
|
|
7300
6542
|
{
|
|
7301
6543
|
"kind": "js",
|
|
7302
|
-
"name": "
|
|
6544
|
+
"name": "GenesisReadResult",
|
|
7303
6545
|
"declaration": {
|
|
7304
|
-
"name": "
|
|
7305
|
-
"module": "./
|
|
6546
|
+
"name": "GenesisReadResult",
|
|
6547
|
+
"module": "./resource-tools"
|
|
7306
6548
|
}
|
|
7307
6549
|
},
|
|
7308
6550
|
{
|
|
7309
6551
|
"kind": "js",
|
|
7310
|
-
"name": "
|
|
6552
|
+
"name": "GenesisResourceTools",
|
|
7311
6553
|
"declaration": {
|
|
7312
|
-
"name": "
|
|
7313
|
-
"module": "./
|
|
6554
|
+
"name": "GenesisResourceTools",
|
|
6555
|
+
"module": "./resource-tools"
|
|
7314
6556
|
}
|
|
7315
6557
|
},
|
|
7316
6558
|
{
|
|
7317
6559
|
"kind": "js",
|
|
7318
|
-
"name": "
|
|
6560
|
+
"name": "GenesisResourceToolsOptions",
|
|
7319
6561
|
"declaration": {
|
|
7320
|
-
"name": "
|
|
7321
|
-
"module": "./
|
|
6562
|
+
"name": "GenesisResourceToolsOptions",
|
|
6563
|
+
"module": "./resource-tools"
|
|
7322
6564
|
}
|
|
7323
6565
|
},
|
|
7324
6566
|
{
|
|
7325
6567
|
"kind": "js",
|
|
7326
|
-
"name": "
|
|
6568
|
+
"name": "GenesisToolError",
|
|
7327
6569
|
"declaration": {
|
|
7328
|
-
"name": "
|
|
7329
|
-
"module": "./
|
|
6570
|
+
"name": "GenesisToolError",
|
|
6571
|
+
"module": "./resource-tools"
|
|
7330
6572
|
}
|
|
7331
6573
|
},
|
|
7332
6574
|
{
|
|
7333
6575
|
"kind": "js",
|
|
7334
|
-
"name": "
|
|
6576
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7335
6577
|
"declaration": {
|
|
7336
|
-
"name": "
|
|
7337
|
-
"module": "./
|
|
6578
|
+
"name": "GENESIS_EVENT_OPS",
|
|
6579
|
+
"module": "./types"
|
|
7338
6580
|
}
|
|
7339
|
-
}
|
|
7340
|
-
]
|
|
7341
|
-
},
|
|
7342
|
-
{
|
|
7343
|
-
"kind": "javascript-module",
|
|
7344
|
-
"path": "src/genesis/calendar.ts",
|
|
7345
|
-
"declarations": [],
|
|
7346
|
-
"exports": []
|
|
7347
|
-
},
|
|
7348
|
-
{
|
|
7349
|
-
"kind": "javascript-module",
|
|
7350
|
-
"path": "src/genesis/config.ts",
|
|
7351
|
-
"declarations": [
|
|
6581
|
+
},
|
|
7352
6582
|
{
|
|
7353
|
-
"kind": "
|
|
7354
|
-
"name": "
|
|
7355
|
-
"
|
|
7356
|
-
"
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
"description": "The default read cap, and the ceiling the config may raise it to."
|
|
6583
|
+
"kind": "js",
|
|
6584
|
+
"name": "GenesisAiConfig",
|
|
6585
|
+
"declaration": {
|
|
6586
|
+
"name": "GenesisAiConfig",
|
|
6587
|
+
"module": "./types"
|
|
6588
|
+
}
|
|
7360
6589
|
},
|
|
7361
6590
|
{
|
|
7362
|
-
"kind": "
|
|
7363
|
-
"name": "
|
|
7364
|
-
"
|
|
7365
|
-
"
|
|
7366
|
-
|
|
7367
|
-
|
|
6591
|
+
"kind": "js",
|
|
6592
|
+
"name": "GenesisAiConsumes",
|
|
6593
|
+
"declaration": {
|
|
6594
|
+
"name": "GenesisAiConsumes",
|
|
6595
|
+
"module": "./types"
|
|
6596
|
+
}
|
|
7368
6597
|
},
|
|
7369
6598
|
{
|
|
7370
|
-
"kind": "
|
|
7371
|
-
"name": "
|
|
7372
|
-
"
|
|
7373
|
-
"
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
},
|
|
7377
|
-
"parameters": [
|
|
7378
|
-
{
|
|
7379
|
-
"name": "resourceName",
|
|
7380
|
-
"type": {
|
|
7381
|
-
"text": "string"
|
|
7382
|
-
}
|
|
7383
|
-
}
|
|
7384
|
-
],
|
|
7385
|
-
"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."
|
|
6599
|
+
"kind": "js",
|
|
6600
|
+
"name": "GenesisAiResource",
|
|
6601
|
+
"declaration": {
|
|
6602
|
+
"name": "GenesisAiResource",
|
|
6603
|
+
"module": "./types"
|
|
6604
|
+
}
|
|
7386
6605
|
},
|
|
7387
6606
|
{
|
|
7388
|
-
"kind": "
|
|
7389
|
-
"name": "
|
|
7390
|
-
"
|
|
7391
|
-
"
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
},
|
|
7395
|
-
"parameters": [
|
|
7396
|
-
{
|
|
7397
|
-
"name": "resource",
|
|
7398
|
-
"type": {
|
|
7399
|
-
"text": "Partial<GenesisAiResource> | null"
|
|
7400
|
-
}
|
|
7401
|
-
},
|
|
7402
|
-
{
|
|
7403
|
-
"name": "requestNames",
|
|
7404
|
-
"type": {
|
|
7405
|
-
"text": "ReadonlySet<string>"
|
|
7406
|
-
},
|
|
7407
|
-
"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."
|
|
7408
|
-
},
|
|
7409
|
-
{
|
|
7410
|
-
"name": "whyNotReadable",
|
|
7411
|
-
"default": "notReadableReason({})",
|
|
7412
|
-
"type": {
|
|
7413
|
-
"text": "(name: string) => string"
|
|
7414
|
-
},
|
|
7415
|
-
"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."
|
|
7416
|
-
}
|
|
7417
|
-
],
|
|
7418
|
-
"description": "What is wrong with a resource's row-action fields (contracts C-18.7.2), if anything."
|
|
6607
|
+
"kind": "js",
|
|
6608
|
+
"name": "GenesisAssistantExtensions",
|
|
6609
|
+
"declaration": {
|
|
6610
|
+
"name": "GenesisAssistantExtensions",
|
|
6611
|
+
"module": "./types"
|
|
6612
|
+
}
|
|
7419
6613
|
},
|
|
7420
6614
|
{
|
|
7421
|
-
"kind": "
|
|
7422
|
-
"name": "
|
|
7423
|
-
"
|
|
7424
|
-
"
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
},
|
|
7428
|
-
"parameters": [
|
|
7429
|
-
{
|
|
7430
|
-
"name": "config",
|
|
7431
|
-
"type": {
|
|
7432
|
-
"text": "unknown"
|
|
7433
|
-
}
|
|
7434
|
-
}
|
|
7435
|
-
],
|
|
7436
|
-
"description": "Checks a generated AI config before anything is registered, and says what can be kept."
|
|
6615
|
+
"kind": "js",
|
|
6616
|
+
"name": "GenesisAssistantRegistration",
|
|
6617
|
+
"declaration": {
|
|
6618
|
+
"name": "GenesisAssistantRegistration",
|
|
6619
|
+
"module": "./types"
|
|
6620
|
+
}
|
|
7437
6621
|
},
|
|
7438
|
-
{
|
|
7439
|
-
"kind": "function",
|
|
7440
|
-
"name": "customCodeOf",
|
|
7441
|
-
"return": {
|
|
7442
|
-
"type": {
|
|
7443
|
-
"text": "GenesisCustomCodeCheck"
|
|
7444
|
-
}
|
|
7445
|
-
},
|
|
7446
|
-
"parameters": [
|
|
7447
|
-
{
|
|
7448
|
-
"name": "resource",
|
|
7449
|
-
"type": {
|
|
7450
|
-
"text": "GenesisAiResource"
|
|
7451
|
-
}
|
|
7452
|
-
}
|
|
7453
|
-
],
|
|
7454
|
-
"description": "A resource's `customCode` as it is used: the one reader of the field."
|
|
7455
|
-
}
|
|
7456
|
-
],
|
|
7457
|
-
"exports": [
|
|
7458
6622
|
{
|
|
7459
6623
|
"kind": "js",
|
|
7460
|
-
"name": "
|
|
6624
|
+
"name": "GenesisCustomCode",
|
|
7461
6625
|
"declaration": {
|
|
7462
|
-
"name": "
|
|
7463
|
-
"module": "
|
|
6626
|
+
"name": "GenesisCustomCode",
|
|
6627
|
+
"module": "./types"
|
|
7464
6628
|
}
|
|
7465
6629
|
},
|
|
7466
6630
|
{
|
|
7467
6631
|
"kind": "js",
|
|
7468
|
-
"name": "
|
|
6632
|
+
"name": "GenesisCustomCodeCheck",
|
|
7469
6633
|
"declaration": {
|
|
7470
|
-
"name": "
|
|
7471
|
-
"module": "
|
|
6634
|
+
"name": "GenesisCustomCodeCheck",
|
|
6635
|
+
"module": "./types"
|
|
7472
6636
|
}
|
|
7473
6637
|
},
|
|
7474
6638
|
{
|
|
7475
6639
|
"kind": "js",
|
|
7476
|
-
"name": "
|
|
6640
|
+
"name": "GenesisEventOp",
|
|
7477
6641
|
"declaration": {
|
|
7478
|
-
"name": "
|
|
7479
|
-
"module": "
|
|
6642
|
+
"name": "GenesisEventOp",
|
|
6643
|
+
"module": "./types"
|
|
7480
6644
|
}
|
|
7481
6645
|
},
|
|
7482
6646
|
{
|
|
7483
6647
|
"kind": "js",
|
|
7484
|
-
"name": "
|
|
6648
|
+
"name": "GenesisReference",
|
|
7485
6649
|
"declaration": {
|
|
7486
|
-
"name": "
|
|
7487
|
-
"module": "
|
|
6650
|
+
"name": "GenesisReference",
|
|
6651
|
+
"module": "./types"
|
|
7488
6652
|
}
|
|
7489
6653
|
},
|
|
7490
6654
|
{
|
|
7491
6655
|
"kind": "js",
|
|
7492
|
-
"name": "
|
|
6656
|
+
"name": "GenesisResourceKind",
|
|
7493
6657
|
"declaration": {
|
|
7494
|
-
"name": "
|
|
7495
|
-
"module": "
|
|
6658
|
+
"name": "GenesisResourceKind",
|
|
6659
|
+
"module": "./types"
|
|
7496
6660
|
}
|
|
7497
6661
|
},
|
|
7498
6662
|
{
|
|
7499
6663
|
"kind": "js",
|
|
7500
|
-
"name": "
|
|
6664
|
+
"name": "GenesisRowEffect",
|
|
7501
6665
|
"declaration": {
|
|
7502
|
-
"name": "
|
|
7503
|
-
"module": "
|
|
6666
|
+
"name": "GenesisRowEffect",
|
|
6667
|
+
"module": "./types"
|
|
7504
6668
|
}
|
|
7505
|
-
}
|
|
7506
|
-
]
|
|
7507
|
-
},
|
|
7508
|
-
{
|
|
7509
|
-
"kind": "javascript-module",
|
|
7510
|
-
"path": "src/genesis/consumes.ts",
|
|
7511
|
-
"declarations": [
|
|
7512
|
-
{
|
|
7513
|
-
"kind": "variable",
|
|
7514
|
-
"name": "GENESIS_AI_CONSUMES",
|
|
7515
|
-
"type": {
|
|
7516
|
-
"text": "GenesisAiConsumes"
|
|
7517
|
-
},
|
|
7518
|
-
"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."
|
|
7519
|
-
}
|
|
7520
|
-
],
|
|
7521
|
-
"exports": [
|
|
6669
|
+
},
|
|
7522
6670
|
{
|
|
7523
6671
|
"kind": "js",
|
|
7524
|
-
"name": "
|
|
6672
|
+
"name": "GenesisRowInput",
|
|
7525
6673
|
"declaration": {
|
|
7526
|
-
"name": "
|
|
6674
|
+
"name": "GenesisRowInput",
|
|
7527
6675
|
"module": "./types"
|
|
7528
6676
|
}
|
|
7529
6677
|
},
|
|
7530
6678
|
{
|
|
7531
6679
|
"kind": "js",
|
|
7532
|
-
"name": "
|
|
6680
|
+
"name": "RegisterGenesisAssistantOptions",
|
|
7533
6681
|
"declaration": {
|
|
7534
|
-
"name": "
|
|
7535
|
-
"module": "
|
|
6682
|
+
"name": "RegisterGenesisAssistantOptions",
|
|
6683
|
+
"module": "./types"
|
|
7536
6684
|
}
|
|
7537
6685
|
}
|
|
7538
6686
|
]
|
|
7539
6687
|
},
|
|
7540
6688
|
{
|
|
7541
6689
|
"kind": "javascript-module",
|
|
7542
|
-
"path": "src/genesis/
|
|
6690
|
+
"path": "src/genesis/reference-check.ts",
|
|
7543
6691
|
"declarations": [
|
|
7544
6692
|
{
|
|
7545
6693
|
"kind": "function",
|
|
7546
|
-
"name": "
|
|
6694
|
+
"name": "tableOf",
|
|
7547
6695
|
"return": {
|
|
7548
6696
|
"type": {
|
|
7549
|
-
"text": "string
|
|
6697
|
+
"text": "string"
|
|
7550
6698
|
}
|
|
7551
6699
|
},
|
|
7552
6700
|
"parameters": [
|
|
7553
6701
|
{
|
|
7554
|
-
"name": "
|
|
6702
|
+
"name": "resource",
|
|
7555
6703
|
"type": {
|
|
7556
6704
|
"text": "string"
|
|
7557
6705
|
}
|
|
7558
|
-
}
|
|
6706
|
+
}
|
|
6707
|
+
],
|
|
6708
|
+
"description": "The table a `REQ_<T>` reads."
|
|
6709
|
+
},
|
|
6710
|
+
{
|
|
6711
|
+
"kind": "function",
|
|
6712
|
+
"name": "notAcceptedHere",
|
|
6713
|
+
"return": {
|
|
6714
|
+
"type": {
|
|
6715
|
+
"text": "string"
|
|
6716
|
+
}
|
|
6717
|
+
},
|
|
6718
|
+
"parameters": [
|
|
7559
6719
|
{
|
|
7560
|
-
"name": "
|
|
6720
|
+
"name": "field",
|
|
7561
6721
|
"type": {
|
|
7562
|
-
"text": "
|
|
6722
|
+
"text": "string"
|
|
7563
6723
|
}
|
|
7564
6724
|
},
|
|
7565
6725
|
{
|
|
7566
|
-
"name": "
|
|
6726
|
+
"name": "{ resource, reason }",
|
|
7567
6727
|
"type": {
|
|
7568
|
-
"text": "
|
|
6728
|
+
"text": "UncheckedField"
|
|
7569
6729
|
}
|
|
7570
6730
|
}
|
|
7571
|
-
]
|
|
6731
|
+
],
|
|
6732
|
+
"description": "What an insert says about a value it cannot check."
|
|
7572
6733
|
},
|
|
7573
6734
|
{
|
|
7574
6735
|
"kind": "function",
|
|
7575
|
-
"name": "
|
|
6736
|
+
"name": "cannotBeChanged",
|
|
7576
6737
|
"return": {
|
|
7577
6738
|
"type": {
|
|
7578
|
-
"text": "string
|
|
6739
|
+
"text": "string"
|
|
7579
6740
|
}
|
|
7580
6741
|
},
|
|
7581
6742
|
"parameters": [
|
|
@@ -7586,143 +6747,196 @@
|
|
|
7586
6747
|
}
|
|
7587
6748
|
},
|
|
7588
6749
|
{
|
|
7589
|
-
"name": "
|
|
7590
|
-
"type": {
|
|
7591
|
-
"text": "GenesisFilterOp"
|
|
7592
|
-
}
|
|
7593
|
-
},
|
|
7594
|
-
{
|
|
7595
|
-
"name": "bound",
|
|
6750
|
+
"name": "{ resource, reason }",
|
|
7596
6751
|
"type": {
|
|
7597
|
-
"text": "
|
|
6752
|
+
"text": "UncheckedField"
|
|
7598
6753
|
}
|
|
7599
6754
|
}
|
|
7600
6755
|
],
|
|
7601
|
-
"description": "
|
|
6756
|
+
"description": "What a modify says about a new value it cannot check."
|
|
7602
6757
|
}
|
|
7603
6758
|
],
|
|
7604
6759
|
"exports": [
|
|
7605
6760
|
{
|
|
7606
6761
|
"kind": "js",
|
|
7607
|
-
"name": "
|
|
6762
|
+
"name": "tableOf",
|
|
7608
6763
|
"declaration": {
|
|
7609
|
-
"name": "
|
|
7610
|
-
"module": "src/genesis/
|
|
6764
|
+
"name": "tableOf",
|
|
6765
|
+
"module": "src/genesis/reference-check.ts"
|
|
7611
6766
|
}
|
|
7612
6767
|
},
|
|
7613
6768
|
{
|
|
7614
6769
|
"kind": "js",
|
|
7615
|
-
"name": "
|
|
6770
|
+
"name": "notAcceptedHere",
|
|
7616
6771
|
"declaration": {
|
|
7617
|
-
"name": "
|
|
7618
|
-
"module": "src/genesis/
|
|
6772
|
+
"name": "notAcceptedHere",
|
|
6773
|
+
"module": "src/genesis/reference-check.ts"
|
|
6774
|
+
}
|
|
6775
|
+
},
|
|
6776
|
+
{
|
|
6777
|
+
"kind": "js",
|
|
6778
|
+
"name": "cannotBeChanged",
|
|
6779
|
+
"declaration": {
|
|
6780
|
+
"name": "cannotBeChanged",
|
|
6781
|
+
"module": "src/genesis/reference-check.ts"
|
|
7619
6782
|
}
|
|
7620
6783
|
}
|
|
7621
6784
|
]
|
|
7622
6785
|
},
|
|
7623
6786
|
{
|
|
7624
6787
|
"kind": "javascript-module",
|
|
7625
|
-
"path": "src/genesis/
|
|
7626
|
-
"declarations": [
|
|
7627
|
-
"exports": []
|
|
7628
|
-
},
|
|
7629
|
-
{
|
|
7630
|
-
"kind": "javascript-module",
|
|
7631
|
-
"path": "src/genesis/filter-fields.ts",
|
|
7632
|
-
"declarations": [],
|
|
7633
|
-
"exports": []
|
|
7634
|
-
},
|
|
7635
|
-
{
|
|
7636
|
-
"kind": "javascript-module",
|
|
7637
|
-
"path": "src/genesis/index.ts",
|
|
7638
|
-
"declarations": [],
|
|
7639
|
-
"exports": [
|
|
6788
|
+
"path": "src/genesis/reference-existence.ts",
|
|
6789
|
+
"declarations": [
|
|
7640
6790
|
{
|
|
7641
|
-
"kind": "
|
|
7642
|
-
"name": "
|
|
7643
|
-
"
|
|
7644
|
-
"
|
|
7645
|
-
|
|
7646
|
-
|
|
6791
|
+
"kind": "variable",
|
|
6792
|
+
"name": "MAX_REFERENCE_CHECKS",
|
|
6793
|
+
"type": {
|
|
6794
|
+
"text": "number"
|
|
6795
|
+
},
|
|
6796
|
+
"default": "50",
|
|
6797
|
+
"description": "The most distinct values one call may check."
|
|
7647
6798
|
},
|
|
6799
|
+
{
|
|
6800
|
+
"kind": "function",
|
|
6801
|
+
"name": "withReferenceProblems",
|
|
6802
|
+
"return": {
|
|
6803
|
+
"type": {
|
|
6804
|
+
"text": "T[]"
|
|
6805
|
+
}
|
|
6806
|
+
},
|
|
6807
|
+
"parameters": [
|
|
6808
|
+
{
|
|
6809
|
+
"name": "rows",
|
|
6810
|
+
"type": {
|
|
6811
|
+
"text": "readonly T[]"
|
|
6812
|
+
}
|
|
6813
|
+
},
|
|
6814
|
+
{
|
|
6815
|
+
"name": "problems",
|
|
6816
|
+
"type": {
|
|
6817
|
+
"text": "ReadonlyMap<number, string[]>"
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6820
|
+
],
|
|
6821
|
+
"description": "The rows with what the check found added to their problems."
|
|
6822
|
+
}
|
|
6823
|
+
],
|
|
6824
|
+
"exports": [
|
|
7648
6825
|
{
|
|
7649
6826
|
"kind": "js",
|
|
7650
|
-
"name": "
|
|
6827
|
+
"name": "MAX_REFERENCE_CHECKS",
|
|
7651
6828
|
"declaration": {
|
|
7652
|
-
"name": "
|
|
7653
|
-
"module": "
|
|
6829
|
+
"name": "MAX_REFERENCE_CHECKS",
|
|
6830
|
+
"module": "src/genesis/reference-existence.ts"
|
|
7654
6831
|
}
|
|
7655
6832
|
},
|
|
7656
6833
|
{
|
|
7657
6834
|
"kind": "js",
|
|
7658
|
-
"name": "
|
|
6835
|
+
"name": "withReferenceProblems",
|
|
7659
6836
|
"declaration": {
|
|
7660
|
-
"name": "
|
|
7661
|
-
"module": "
|
|
7662
|
-
}
|
|
7663
|
-
},
|
|
7664
|
-
{
|
|
7665
|
-
"kind": "js",
|
|
7666
|
-
"name": "rowActionProblem",
|
|
7667
|
-
"declaration": {
|
|
7668
|
-
"name": "rowActionProblem",
|
|
7669
|
-
"module": "./config"
|
|
6837
|
+
"name": "withReferenceProblems",
|
|
6838
|
+
"module": "src/genesis/reference-existence.ts"
|
|
7670
6839
|
}
|
|
7671
|
-
}
|
|
6840
|
+
}
|
|
6841
|
+
]
|
|
6842
|
+
},
|
|
6843
|
+
{
|
|
6844
|
+
"kind": "javascript-module",
|
|
6845
|
+
"path": "src/genesis/register-genesis-assistant.ts",
|
|
6846
|
+
"declarations": [
|
|
7672
6847
|
{
|
|
7673
|
-
"kind": "
|
|
7674
|
-
"name": "
|
|
7675
|
-
"
|
|
7676
|
-
"
|
|
7677
|
-
|
|
7678
|
-
|
|
6848
|
+
"kind": "variable",
|
|
6849
|
+
"name": "GENESIS_AGENT_NAME",
|
|
6850
|
+
"type": {
|
|
6851
|
+
"text": "string"
|
|
6852
|
+
},
|
|
6853
|
+
"default": "'genesis-assistant'",
|
|
6854
|
+
"description": "The name of the agent registerGenesisAssistant builds."
|
|
7679
6855
|
},
|
|
7680
6856
|
{
|
|
7681
|
-
"kind": "
|
|
7682
|
-
"name": "
|
|
7683
|
-
"
|
|
7684
|
-
"
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
6857
|
+
"kind": "function",
|
|
6858
|
+
"name": "registerGenesisAssistant",
|
|
6859
|
+
"return": {
|
|
6860
|
+
"type": {
|
|
6861
|
+
"text": "GenesisAssistantRegistration"
|
|
6862
|
+
}
|
|
6863
|
+
},
|
|
6864
|
+
"parameters": [
|
|
6865
|
+
{
|
|
6866
|
+
"name": "options",
|
|
6867
|
+
"type": {
|
|
6868
|
+
"text": "RegisterGenesisAssistantOptions"
|
|
6869
|
+
}
|
|
6870
|
+
}
|
|
6871
|
+
],
|
|
6872
|
+
"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."
|
|
6873
|
+
}
|
|
6874
|
+
],
|
|
6875
|
+
"exports": [
|
|
7688
6876
|
{
|
|
7689
6877
|
"kind": "js",
|
|
7690
|
-
"name": "
|
|
6878
|
+
"name": "GENESIS_AGENT_NAME",
|
|
7691
6879
|
"declaration": {
|
|
7692
|
-
"name": "
|
|
7693
|
-
"module": "
|
|
6880
|
+
"name": "GENESIS_AGENT_NAME",
|
|
6881
|
+
"module": "src/genesis/register-genesis-assistant.ts"
|
|
7694
6882
|
}
|
|
7695
6883
|
},
|
|
7696
6884
|
{
|
|
7697
6885
|
"kind": "js",
|
|
7698
|
-
"name": "
|
|
6886
|
+
"name": "registerGenesisAssistant",
|
|
7699
6887
|
"declaration": {
|
|
7700
|
-
"name": "
|
|
7701
|
-
"module": "
|
|
6888
|
+
"name": "registerGenesisAssistant",
|
|
6889
|
+
"module": "src/genesis/register-genesis-assistant.ts"
|
|
7702
6890
|
}
|
|
7703
|
-
}
|
|
6891
|
+
}
|
|
6892
|
+
]
|
|
6893
|
+
},
|
|
6894
|
+
{
|
|
6895
|
+
"kind": "javascript-module",
|
|
6896
|
+
"path": "src/genesis/resource-tools.ts",
|
|
6897
|
+
"declarations": [
|
|
7704
6898
|
{
|
|
7705
|
-
"kind": "
|
|
7706
|
-
"name": "
|
|
7707
|
-
"
|
|
7708
|
-
"
|
|
7709
|
-
|
|
7710
|
-
|
|
6899
|
+
"kind": "variable",
|
|
6900
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6901
|
+
"type": {
|
|
6902
|
+
"text": "string"
|
|
6903
|
+
},
|
|
6904
|
+
"default": "'app-database'",
|
|
6905
|
+
"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."
|
|
7711
6906
|
},
|
|
7712
6907
|
{
|
|
7713
|
-
"kind": "
|
|
7714
|
-
"name": "
|
|
7715
|
-
"
|
|
7716
|
-
"
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
6908
|
+
"kind": "function",
|
|
6909
|
+
"name": "createGenesisResourceTools",
|
|
6910
|
+
"return": {
|
|
6911
|
+
"type": {
|
|
6912
|
+
"text": "GenesisResourceTools"
|
|
6913
|
+
}
|
|
6914
|
+
},
|
|
6915
|
+
"parameters": [
|
|
6916
|
+
{
|
|
6917
|
+
"name": "resources",
|
|
6918
|
+
"type": {
|
|
6919
|
+
"text": "readonly GenesisAiResource[]"
|
|
6920
|
+
}
|
|
6921
|
+
},
|
|
6922
|
+
{
|
|
6923
|
+
"name": "options",
|
|
6924
|
+
"default": "{}",
|
|
6925
|
+
"type": {
|
|
6926
|
+
"text": "GenesisResourceToolsOptions"
|
|
6927
|
+
}
|
|
6928
|
+
}
|
|
6929
|
+
],
|
|
6930
|
+
"description": "Builds the assistant's tools from an app's resources."
|
|
6931
|
+
}
|
|
6932
|
+
],
|
|
6933
|
+
"exports": [
|
|
7720
6934
|
{
|
|
7721
6935
|
"kind": "js",
|
|
7722
|
-
"name": "
|
|
6936
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
7723
6937
|
"declaration": {
|
|
7724
|
-
"name": "
|
|
7725
|
-
"module": "
|
|
6938
|
+
"name": "GENESIS_DATA_SOURCE",
|
|
6939
|
+
"module": "src/genesis/resource-tools.ts"
|
|
7726
6940
|
}
|
|
7727
6941
|
},
|
|
7728
6942
|
{
|
|
@@ -7730,798 +6944,1597 @@
|
|
|
7730
6944
|
"name": "createGenesisResourceTools",
|
|
7731
6945
|
"declaration": {
|
|
7732
6946
|
"name": "createGenesisResourceTools",
|
|
7733
|
-
"module": "
|
|
6947
|
+
"module": "src/genesis/resource-tools.ts"
|
|
7734
6948
|
}
|
|
7735
|
-
}
|
|
6949
|
+
}
|
|
6950
|
+
]
|
|
6951
|
+
},
|
|
6952
|
+
{
|
|
6953
|
+
"kind": "javascript-module",
|
|
6954
|
+
"path": "src/genesis/review-model.ts",
|
|
6955
|
+
"declarations": [
|
|
7736
6956
|
{
|
|
7737
|
-
"kind": "
|
|
7738
|
-
"name": "
|
|
7739
|
-
"
|
|
7740
|
-
"
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
6957
|
+
"kind": "variable",
|
|
6958
|
+
"name": "LONG_VALUE",
|
|
6959
|
+
"type": {
|
|
6960
|
+
"text": "number"
|
|
6961
|
+
},
|
|
6962
|
+
"default": "24",
|
|
6963
|
+
"description": "Past this many characters a value wraps; at or under it, it stays on one line."
|
|
6964
|
+
}
|
|
6965
|
+
],
|
|
6966
|
+
"exports": [
|
|
7744
6967
|
{
|
|
7745
6968
|
"kind": "js",
|
|
7746
|
-
"name": "
|
|
6969
|
+
"name": "GenesisChangeRequest",
|
|
7747
6970
|
"declaration": {
|
|
7748
|
-
"name": "
|
|
7749
|
-
"module": "./
|
|
6971
|
+
"name": "GenesisChangeRequest",
|
|
6972
|
+
"module": "./review-payload"
|
|
7750
6973
|
}
|
|
7751
6974
|
},
|
|
7752
6975
|
{
|
|
7753
6976
|
"kind": "js",
|
|
7754
|
-
"name": "
|
|
6977
|
+
"name": "GenesisReviewPayload",
|
|
7755
6978
|
"declaration": {
|
|
7756
|
-
"name": "
|
|
7757
|
-
"module": "./
|
|
6979
|
+
"name": "GenesisReviewPayload",
|
|
6980
|
+
"module": "./review-payload"
|
|
7758
6981
|
}
|
|
7759
6982
|
},
|
|
7760
6983
|
{
|
|
7761
6984
|
"kind": "js",
|
|
7762
|
-
"name": "
|
|
6985
|
+
"name": "LONG_VALUE",
|
|
7763
6986
|
"declaration": {
|
|
7764
|
-
"name": "
|
|
7765
|
-
"module": "
|
|
6987
|
+
"name": "LONG_VALUE",
|
|
6988
|
+
"module": "src/genesis/review-model.ts"
|
|
7766
6989
|
}
|
|
7767
|
-
}
|
|
6990
|
+
}
|
|
6991
|
+
]
|
|
6992
|
+
},
|
|
6993
|
+
{
|
|
6994
|
+
"kind": "javascript-module",
|
|
6995
|
+
"path": "src/genesis/review-payload.ts",
|
|
6996
|
+
"declarations": [],
|
|
6997
|
+
"exports": []
|
|
6998
|
+
},
|
|
6999
|
+
{
|
|
7000
|
+
"kind": "javascript-module",
|
|
7001
|
+
"path": "src/genesis/row-source.ts",
|
|
7002
|
+
"declarations": [],
|
|
7003
|
+
"exports": []
|
|
7004
|
+
},
|
|
7005
|
+
{
|
|
7006
|
+
"kind": "javascript-module",
|
|
7007
|
+
"path": "src/genesis/serialisable.ts",
|
|
7008
|
+
"declarations": [],
|
|
7009
|
+
"exports": []
|
|
7010
|
+
},
|
|
7011
|
+
{
|
|
7012
|
+
"kind": "javascript-module",
|
|
7013
|
+
"path": "src/genesis/server-text.ts",
|
|
7014
|
+
"declarations": [
|
|
7768
7015
|
{
|
|
7769
|
-
"kind": "
|
|
7770
|
-
"name": "
|
|
7771
|
-
"
|
|
7772
|
-
"
|
|
7773
|
-
|
|
7774
|
-
|
|
7016
|
+
"kind": "function",
|
|
7017
|
+
"name": "readsLikeFieldName",
|
|
7018
|
+
"return": {
|
|
7019
|
+
"type": {
|
|
7020
|
+
"text": "boolean"
|
|
7021
|
+
}
|
|
7022
|
+
},
|
|
7023
|
+
"parameters": [
|
|
7024
|
+
{
|
|
7025
|
+
"name": "text",
|
|
7026
|
+
"type": {
|
|
7027
|
+
"text": "string"
|
|
7028
|
+
}
|
|
7029
|
+
}
|
|
7030
|
+
],
|
|
7031
|
+
"description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
|
|
7775
7032
|
},
|
|
7033
|
+
{
|
|
7034
|
+
"kind": "function",
|
|
7035
|
+
"name": "describeFailure",
|
|
7036
|
+
"return": {
|
|
7037
|
+
"type": {
|
|
7038
|
+
"text": "string | undefined"
|
|
7039
|
+
}
|
|
7040
|
+
},
|
|
7041
|
+
"parameters": [
|
|
7042
|
+
{
|
|
7043
|
+
"name": "error",
|
|
7044
|
+
"type": {
|
|
7045
|
+
"text": "unknown"
|
|
7046
|
+
}
|
|
7047
|
+
}
|
|
7048
|
+
],
|
|
7049
|
+
"description": "Whatever a rejection turns out to be, as a sentence."
|
|
7050
|
+
}
|
|
7051
|
+
],
|
|
7052
|
+
"exports": [
|
|
7776
7053
|
{
|
|
7777
7054
|
"kind": "js",
|
|
7778
|
-
"name": "
|
|
7055
|
+
"name": "readsLikeFieldName",
|
|
7779
7056
|
"declaration": {
|
|
7780
|
-
"name": "
|
|
7781
|
-
"module": "
|
|
7057
|
+
"name": "readsLikeFieldName",
|
|
7058
|
+
"module": "src/genesis/server-text.ts"
|
|
7782
7059
|
}
|
|
7783
7060
|
},
|
|
7784
7061
|
{
|
|
7785
7062
|
"kind": "js",
|
|
7786
|
-
"name": "
|
|
7063
|
+
"name": "describeFailure",
|
|
7787
7064
|
"declaration": {
|
|
7788
|
-
"name": "
|
|
7789
|
-
"module": "
|
|
7065
|
+
"name": "describeFailure",
|
|
7066
|
+
"module": "src/genesis/server-text.ts"
|
|
7790
7067
|
}
|
|
7791
|
-
}
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7068
|
+
}
|
|
7069
|
+
]
|
|
7070
|
+
},
|
|
7071
|
+
{
|
|
7072
|
+
"kind": "javascript-module",
|
|
7073
|
+
"path": "src/genesis/type-name.ts",
|
|
7074
|
+
"declarations": [],
|
|
7075
|
+
"exports": []
|
|
7076
|
+
},
|
|
7077
|
+
{
|
|
7078
|
+
"kind": "javascript-module",
|
|
7079
|
+
"path": "src/genesis/types.ts",
|
|
7080
|
+
"declarations": [
|
|
7800
7081
|
{
|
|
7801
|
-
"kind": "
|
|
7802
|
-
"name": "
|
|
7803
|
-
"
|
|
7804
|
-
"
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7082
|
+
"kind": "variable",
|
|
7083
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7084
|
+
"type": {
|
|
7085
|
+
"text": "['insert', 'modify', 'delete', 'custom']"
|
|
7086
|
+
},
|
|
7087
|
+
"default": "['insert', 'modify', 'delete', 'custom']",
|
|
7088
|
+
"description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
|
|
7089
|
+
}
|
|
7090
|
+
],
|
|
7091
|
+
"exports": [
|
|
7808
7092
|
{
|
|
7809
7093
|
"kind": "js",
|
|
7810
|
-
"name": "
|
|
7094
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7811
7095
|
"declaration": {
|
|
7812
|
-
"name": "
|
|
7813
|
-
"module": "
|
|
7096
|
+
"name": "GENESIS_EVENT_OPS",
|
|
7097
|
+
"module": "src/genesis/types.ts"
|
|
7814
7098
|
}
|
|
7815
|
-
}
|
|
7099
|
+
}
|
|
7100
|
+
]
|
|
7101
|
+
},
|
|
7102
|
+
{
|
|
7103
|
+
"kind": "javascript-module",
|
|
7104
|
+
"path": "src/genesis/value-compare.ts",
|
|
7105
|
+
"declarations": [],
|
|
7106
|
+
"exports": []
|
|
7107
|
+
},
|
|
7108
|
+
{
|
|
7109
|
+
"kind": "javascript-module",
|
|
7110
|
+
"path": "src/genesis/write-commit.ts",
|
|
7111
|
+
"declarations": [],
|
|
7112
|
+
"exports": []
|
|
7113
|
+
},
|
|
7114
|
+
{
|
|
7115
|
+
"kind": "javascript-module",
|
|
7116
|
+
"path": "src/genesis/write-op.ts",
|
|
7117
|
+
"declarations": [],
|
|
7118
|
+
"exports": []
|
|
7119
|
+
},
|
|
7120
|
+
{
|
|
7121
|
+
"kind": "javascript-module",
|
|
7122
|
+
"path": "src/genesis/write-outcome.ts",
|
|
7123
|
+
"declarations": [],
|
|
7124
|
+
"exports": []
|
|
7125
|
+
},
|
|
7126
|
+
{
|
|
7127
|
+
"kind": "javascript-module",
|
|
7128
|
+
"path": "src/genesis/write-payload.ts",
|
|
7129
|
+
"declarations": [
|
|
7816
7130
|
{
|
|
7817
|
-
"kind": "
|
|
7818
|
-
"name": "
|
|
7819
|
-
"
|
|
7820
|
-
"
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7131
|
+
"kind": "function",
|
|
7132
|
+
"name": "buildEventPayload",
|
|
7133
|
+
"return": {
|
|
7134
|
+
"type": {
|
|
7135
|
+
"text": "PayloadResult"
|
|
7136
|
+
}
|
|
7137
|
+
},
|
|
7138
|
+
"parameters": [
|
|
7139
|
+
{
|
|
7140
|
+
"name": "fields",
|
|
7141
|
+
"type": {
|
|
7142
|
+
"text": "readonly GenesisEventField[]"
|
|
7143
|
+
}
|
|
7144
|
+
},
|
|
7145
|
+
{
|
|
7146
|
+
"name": "row",
|
|
7147
|
+
"type": {
|
|
7148
|
+
"text": "unknown"
|
|
7149
|
+
}
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
"name": "{ op, preImage, unchecked }",
|
|
7153
|
+
"type": {
|
|
7154
|
+
"text": "BuildPayloadOptions"
|
|
7155
|
+
}
|
|
7156
|
+
}
|
|
7157
|
+
]
|
|
7158
|
+
}
|
|
7159
|
+
],
|
|
7160
|
+
"exports": [
|
|
7824
7161
|
{
|
|
7825
7162
|
"kind": "js",
|
|
7826
|
-
"name": "
|
|
7163
|
+
"name": "buildEventPayload",
|
|
7827
7164
|
"declaration": {
|
|
7828
|
-
"name": "
|
|
7829
|
-
"module": "
|
|
7165
|
+
"name": "buildEventPayload",
|
|
7166
|
+
"module": "src/genesis/write-payload.ts"
|
|
7830
7167
|
}
|
|
7831
|
-
}
|
|
7168
|
+
}
|
|
7169
|
+
]
|
|
7170
|
+
},
|
|
7171
|
+
{
|
|
7172
|
+
"kind": "javascript-module",
|
|
7173
|
+
"path": "src/genesis/write-plan.ts",
|
|
7174
|
+
"declarations": [
|
|
7832
7175
|
{
|
|
7833
|
-
"kind": "
|
|
7834
|
-
"name": "
|
|
7835
|
-
"
|
|
7836
|
-
"
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7176
|
+
"kind": "variable",
|
|
7177
|
+
"name": "MAX_WRITE_ROWS",
|
|
7178
|
+
"type": {
|
|
7179
|
+
"text": "number"
|
|
7180
|
+
},
|
|
7181
|
+
"default": "25",
|
|
7182
|
+
"description": "A batch a person can actually read before approving it."
|
|
7183
|
+
}
|
|
7184
|
+
],
|
|
7185
|
+
"exports": [
|
|
7840
7186
|
{
|
|
7841
7187
|
"kind": "js",
|
|
7842
|
-
"name": "
|
|
7188
|
+
"name": "MAX_WRITE_ROWS",
|
|
7843
7189
|
"declaration": {
|
|
7844
|
-
"name": "
|
|
7845
|
-
"module": "
|
|
7190
|
+
"name": "MAX_WRITE_ROWS",
|
|
7191
|
+
"module": "src/genesis/write-plan.ts"
|
|
7846
7192
|
}
|
|
7847
|
-
}
|
|
7193
|
+
}
|
|
7194
|
+
]
|
|
7195
|
+
},
|
|
7196
|
+
{
|
|
7197
|
+
"kind": "javascript-module",
|
|
7198
|
+
"path": "src/genesis/write-tools.ts",
|
|
7199
|
+
"declarations": [
|
|
7848
7200
|
{
|
|
7849
|
-
"kind": "
|
|
7850
|
-
"name": "
|
|
7851
|
-
"
|
|
7852
|
-
"
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7201
|
+
"kind": "function",
|
|
7202
|
+
"name": "createGenesisWriteTools",
|
|
7203
|
+
"return": {
|
|
7204
|
+
"type": {
|
|
7205
|
+
"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}"
|
|
7206
|
+
}
|
|
7207
|
+
},
|
|
7208
|
+
"parameters": [
|
|
7209
|
+
{
|
|
7210
|
+
"name": "resources",
|
|
7211
|
+
"type": {
|
|
7212
|
+
"text": "readonly GenesisAiResource[]"
|
|
7213
|
+
}
|
|
7214
|
+
},
|
|
7215
|
+
{
|
|
7216
|
+
"name": "options",
|
|
7217
|
+
"default": "{}",
|
|
7218
|
+
"type": {
|
|
7219
|
+
"text": "GenesisWriteToolsOptions"
|
|
7220
|
+
}
|
|
7221
|
+
}
|
|
7222
|
+
],
|
|
7223
|
+
"description": "Builds the assistant's write tools from an app's event resources."
|
|
7224
|
+
}
|
|
7225
|
+
],
|
|
7226
|
+
"exports": [
|
|
7856
7227
|
{
|
|
7857
7228
|
"kind": "js",
|
|
7858
|
-
"name": "
|
|
7229
|
+
"name": "createGenesisWriteTools",
|
|
7859
7230
|
"declaration": {
|
|
7860
|
-
"name": "
|
|
7861
|
-
"module": "
|
|
7231
|
+
"name": "createGenesisWriteTools",
|
|
7232
|
+
"module": "src/genesis/write-tools.ts"
|
|
7862
7233
|
}
|
|
7863
|
-
}
|
|
7234
|
+
}
|
|
7235
|
+
]
|
|
7236
|
+
},
|
|
7237
|
+
{
|
|
7238
|
+
"kind": "javascript-module",
|
|
7239
|
+
"path": "src/genesis/write-turn.ts",
|
|
7240
|
+
"declarations": [],
|
|
7241
|
+
"exports": []
|
|
7242
|
+
},
|
|
7243
|
+
{
|
|
7244
|
+
"kind": "javascript-module",
|
|
7245
|
+
"path": "src/headless/describe-interaction.ts",
|
|
7246
|
+
"declarations": [
|
|
7864
7247
|
{
|
|
7865
|
-
"kind": "
|
|
7866
|
-
"name": "
|
|
7867
|
-
"
|
|
7868
|
-
"
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7248
|
+
"kind": "function",
|
|
7249
|
+
"name": "describeInteraction",
|
|
7250
|
+
"return": {
|
|
7251
|
+
"type": {
|
|
7252
|
+
"text": "InteractionDescription"
|
|
7253
|
+
}
|
|
7254
|
+
},
|
|
7255
|
+
"parameters": [
|
|
7256
|
+
{
|
|
7257
|
+
"name": "input",
|
|
7258
|
+
"type": {
|
|
7259
|
+
"text": "DescribeInteractionInput"
|
|
7260
|
+
}
|
|
7261
|
+
}
|
|
7262
|
+
],
|
|
7263
|
+
"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."
|
|
7264
|
+
}
|
|
7265
|
+
],
|
|
7266
|
+
"exports": [
|
|
7872
7267
|
{
|
|
7873
7268
|
"kind": "js",
|
|
7874
|
-
"name": "
|
|
7269
|
+
"name": "describeInteraction",
|
|
7875
7270
|
"declaration": {
|
|
7876
|
-
"name": "
|
|
7877
|
-
"module": "
|
|
7271
|
+
"name": "describeInteraction",
|
|
7272
|
+
"module": "src/headless/describe-interaction.ts"
|
|
7878
7273
|
}
|
|
7879
|
-
}
|
|
7274
|
+
}
|
|
7275
|
+
]
|
|
7276
|
+
},
|
|
7277
|
+
{
|
|
7278
|
+
"kind": "javascript-module",
|
|
7279
|
+
"path": "src/headless/headless-debug.ts",
|
|
7280
|
+
"declarations": [
|
|
7880
7281
|
{
|
|
7881
|
-
"kind": "
|
|
7882
|
-
"name": "
|
|
7883
|
-
"
|
|
7884
|
-
"
|
|
7885
|
-
|
|
7886
|
-
|
|
7282
|
+
"kind": "function",
|
|
7283
|
+
"name": "headlessMetaSnapshot",
|
|
7284
|
+
"return": {
|
|
7285
|
+
"type": {
|
|
7286
|
+
"text": "DiagnosticEntry"
|
|
7287
|
+
}
|
|
7288
|
+
},
|
|
7289
|
+
"parameters": [
|
|
7290
|
+
{
|
|
7291
|
+
"name": "driver",
|
|
7292
|
+
"type": {
|
|
7293
|
+
"text": "AiDriver"
|
|
7294
|
+
}
|
|
7295
|
+
},
|
|
7296
|
+
{
|
|
7297
|
+
"name": "options",
|
|
7298
|
+
"default": "{}",
|
|
7299
|
+
"type": {
|
|
7300
|
+
"text": "HeadlessDebugOptions"
|
|
7301
|
+
}
|
|
7302
|
+
}
|
|
7303
|
+
],
|
|
7304
|
+
"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."
|
|
7887
7305
|
},
|
|
7888
7306
|
{
|
|
7889
|
-
"kind": "
|
|
7890
|
-
"name": "
|
|
7891
|
-
"
|
|
7892
|
-
"
|
|
7893
|
-
|
|
7894
|
-
|
|
7307
|
+
"kind": "function",
|
|
7308
|
+
"name": "headlessDiagnosticEntries",
|
|
7309
|
+
"return": {
|
|
7310
|
+
"type": {
|
|
7311
|
+
"text": "DiagnosticEntry[]"
|
|
7312
|
+
}
|
|
7313
|
+
},
|
|
7314
|
+
"parameters": [
|
|
7315
|
+
{
|
|
7316
|
+
"name": "driver",
|
|
7317
|
+
"type": {
|
|
7318
|
+
"text": "AiDriver"
|
|
7319
|
+
}
|
|
7320
|
+
},
|
|
7321
|
+
{
|
|
7322
|
+
"name": "stateKey",
|
|
7323
|
+
"type": {
|
|
7324
|
+
"text": "string"
|
|
7325
|
+
}
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"name": "options",
|
|
7329
|
+
"default": "{}",
|
|
7330
|
+
"type": {
|
|
7331
|
+
"text": "HeadlessDebugOptions"
|
|
7332
|
+
}
|
|
7333
|
+
}
|
|
7334
|
+
],
|
|
7335
|
+
"description": "The diagnostic entries for the session so far, from the same `buildDiagnosticEntries` the\nbrowser's element and its persister use."
|
|
7895
7336
|
},
|
|
7337
|
+
{
|
|
7338
|
+
"kind": "function",
|
|
7339
|
+
"name": "headlessCurrentDebugLog",
|
|
7340
|
+
"return": {
|
|
7341
|
+
"type": {
|
|
7342
|
+
"text": "DebugLog"
|
|
7343
|
+
}
|
|
7344
|
+
},
|
|
7345
|
+
"parameters": [
|
|
7346
|
+
{
|
|
7347
|
+
"name": "driver",
|
|
7348
|
+
"type": {
|
|
7349
|
+
"text": "AiDriver"
|
|
7350
|
+
}
|
|
7351
|
+
},
|
|
7352
|
+
{
|
|
7353
|
+
"name": "stateKey",
|
|
7354
|
+
"type": {
|
|
7355
|
+
"text": "string"
|
|
7356
|
+
}
|
|
7357
|
+
},
|
|
7358
|
+
{
|
|
7359
|
+
"name": "options",
|
|
7360
|
+
"default": "{}",
|
|
7361
|
+
"type": {
|
|
7362
|
+
"text": "HeadlessDebugOptions"
|
|
7363
|
+
}
|
|
7364
|
+
}
|
|
7365
|
+
],
|
|
7366
|
+
"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."
|
|
7367
|
+
}
|
|
7368
|
+
],
|
|
7369
|
+
"exports": [
|
|
7896
7370
|
{
|
|
7897
7371
|
"kind": "js",
|
|
7898
|
-
"name": "
|
|
7372
|
+
"name": "headlessMetaSnapshot",
|
|
7899
7373
|
"declaration": {
|
|
7900
|
-
"name": "
|
|
7901
|
-
"module": "
|
|
7374
|
+
"name": "headlessMetaSnapshot",
|
|
7375
|
+
"module": "src/headless/headless-debug.ts"
|
|
7902
7376
|
}
|
|
7903
7377
|
},
|
|
7904
7378
|
{
|
|
7905
7379
|
"kind": "js",
|
|
7906
|
-
"name": "
|
|
7380
|
+
"name": "headlessDiagnosticEntries",
|
|
7907
7381
|
"declaration": {
|
|
7908
|
-
"name": "
|
|
7909
|
-
"module": "
|
|
7382
|
+
"name": "headlessDiagnosticEntries",
|
|
7383
|
+
"module": "src/headless/headless-debug.ts"
|
|
7910
7384
|
}
|
|
7911
7385
|
},
|
|
7912
7386
|
{
|
|
7913
7387
|
"kind": "js",
|
|
7914
|
-
"name": "
|
|
7388
|
+
"name": "headlessCurrentDebugLog",
|
|
7915
7389
|
"declaration": {
|
|
7916
|
-
"name": "
|
|
7917
|
-
"module": "
|
|
7390
|
+
"name": "headlessCurrentDebugLog",
|
|
7391
|
+
"module": "src/headless/headless-debug.ts"
|
|
7918
7392
|
}
|
|
7919
|
-
}
|
|
7393
|
+
}
|
|
7394
|
+
]
|
|
7395
|
+
},
|
|
7396
|
+
{
|
|
7397
|
+
"kind": "javascript-module",
|
|
7398
|
+
"path": "src/headless/headless-persistence.ts",
|
|
7399
|
+
"declarations": [
|
|
7400
|
+
{
|
|
7401
|
+
"kind": "function",
|
|
7402
|
+
"name": "headlessPersistence",
|
|
7403
|
+
"return": {
|
|
7404
|
+
"type": {
|
|
7405
|
+
"text": "HeadlessPersistence"
|
|
7406
|
+
}
|
|
7407
|
+
},
|
|
7408
|
+
"parameters": [
|
|
7409
|
+
{
|
|
7410
|
+
"name": "options",
|
|
7411
|
+
"type": {
|
|
7412
|
+
"text": "HeadlessPersistenceOptions"
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7415
|
+
],
|
|
7416
|
+
"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)`."
|
|
7417
|
+
}
|
|
7418
|
+
],
|
|
7419
|
+
"exports": [
|
|
7920
7420
|
{
|
|
7921
7421
|
"kind": "js",
|
|
7922
|
-
"name": "
|
|
7422
|
+
"name": "headlessPersistence",
|
|
7923
7423
|
"declaration": {
|
|
7924
|
-
"name": "
|
|
7925
|
-
"module": "
|
|
7424
|
+
"name": "headlessPersistence",
|
|
7425
|
+
"module": "src/headless/headless-persistence.ts"
|
|
7926
7426
|
}
|
|
7927
|
-
}
|
|
7427
|
+
}
|
|
7428
|
+
]
|
|
7429
|
+
},
|
|
7430
|
+
{
|
|
7431
|
+
"kind": "javascript-module",
|
|
7432
|
+
"path": "src/headless/headless-session.ts",
|
|
7433
|
+
"declarations": [
|
|
7434
|
+
{
|
|
7435
|
+
"kind": "class",
|
|
7436
|
+
"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.",
|
|
7437
|
+
"name": "HeadlessSession",
|
|
7438
|
+
"members": [
|
|
7439
|
+
{
|
|
7440
|
+
"kind": "field",
|
|
7441
|
+
"name": "sessionKey",
|
|
7442
|
+
"type": {
|
|
7443
|
+
"text": "string"
|
|
7444
|
+
},
|
|
7445
|
+
"privacy": "private",
|
|
7446
|
+
"readonly": true
|
|
7447
|
+
},
|
|
7448
|
+
{
|
|
7449
|
+
"kind": "field",
|
|
7450
|
+
"name": "allowRaw",
|
|
7451
|
+
"type": {
|
|
7452
|
+
"text": "boolean"
|
|
7453
|
+
},
|
|
7454
|
+
"privacy": "private",
|
|
7455
|
+
"readonly": true
|
|
7456
|
+
},
|
|
7457
|
+
{
|
|
7458
|
+
"kind": "field",
|
|
7459
|
+
"name": "clock",
|
|
7460
|
+
"type": {
|
|
7461
|
+
"text": "() => number"
|
|
7462
|
+
},
|
|
7463
|
+
"privacy": "private",
|
|
7464
|
+
"readonly": true
|
|
7465
|
+
},
|
|
7466
|
+
{
|
|
7467
|
+
"kind": "field",
|
|
7468
|
+
"name": "autopilotHost",
|
|
7469
|
+
"type": {
|
|
7470
|
+
"text": "AutopilotLike | undefined"
|
|
7471
|
+
},
|
|
7472
|
+
"privacy": "private",
|
|
7473
|
+
"readonly": true,
|
|
7474
|
+
"default": "autopilot"
|
|
7475
|
+
},
|
|
7476
|
+
{
|
|
7477
|
+
"kind": "field",
|
|
7478
|
+
"name": "events",
|
|
7479
|
+
"type": {
|
|
7480
|
+
"text": "HeadlessEvent[]"
|
|
7481
|
+
},
|
|
7482
|
+
"privacy": "private",
|
|
7483
|
+
"readonly": true,
|
|
7484
|
+
"default": "[]"
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
"kind": "field",
|
|
7488
|
+
"name": "seq",
|
|
7489
|
+
"type": {
|
|
7490
|
+
"text": "number"
|
|
7491
|
+
},
|
|
7492
|
+
"privacy": "private",
|
|
7493
|
+
"default": "0"
|
|
7494
|
+
},
|
|
7495
|
+
{
|
|
7496
|
+
"kind": "field",
|
|
7497
|
+
"name": "tracked",
|
|
7498
|
+
"privacy": "private",
|
|
7499
|
+
"readonly": true,
|
|
7500
|
+
"default": "new Map<string, Tracked>()"
|
|
7501
|
+
},
|
|
7502
|
+
{
|
|
7503
|
+
"kind": "field",
|
|
7504
|
+
"name": "origin",
|
|
7505
|
+
"privacy": "private",
|
|
7506
|
+
"readonly": true,
|
|
7507
|
+
"default": "new Map<string, { auto?: boolean; raw?: boolean }>()",
|
|
7508
|
+
"description": "What the session did to an interaction itself, for `settled` to say when the driver reports it."
|
|
7509
|
+
},
|
|
7510
|
+
{
|
|
7511
|
+
"kind": "field",
|
|
7512
|
+
"name": "waiters",
|
|
7513
|
+
"privacy": "private",
|
|
7514
|
+
"readonly": true,
|
|
7515
|
+
"default": "new Set<Waiter>()"
|
|
7516
|
+
},
|
|
7517
|
+
{
|
|
7518
|
+
"kind": "field",
|
|
7519
|
+
"name": "teardown",
|
|
7520
|
+
"type": {
|
|
7521
|
+
"text": "Array<() => void>"
|
|
7522
|
+
},
|
|
7523
|
+
"privacy": "private",
|
|
7524
|
+
"readonly": true,
|
|
7525
|
+
"default": "[]"
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
"kind": "field",
|
|
7529
|
+
"name": "seen",
|
|
7530
|
+
"type": {
|
|
7531
|
+
"text": "number"
|
|
7532
|
+
},
|
|
7533
|
+
"privacy": "private",
|
|
7534
|
+
"description": "How much of the driver's history has been reported as messages."
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"kind": "field",
|
|
7538
|
+
"name": "turn",
|
|
7539
|
+
"type": {
|
|
7540
|
+
"text": "Promise<unknown> | undefined"
|
|
7541
|
+
},
|
|
7542
|
+
"privacy": "private",
|
|
7543
|
+
"description": "The `send` in flight, if any."
|
|
7544
|
+
},
|
|
7545
|
+
{
|
|
7546
|
+
"kind": "field",
|
|
7547
|
+
"name": "open",
|
|
7548
|
+
"type": {
|
|
7549
|
+
"text": "{ start: number; reason?: string; failureReason?: string } | undefined"
|
|
7550
|
+
},
|
|
7551
|
+
"privacy": "private",
|
|
7552
|
+
"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."
|
|
7553
|
+
},
|
|
7554
|
+
{
|
|
7555
|
+
"kind": "field",
|
|
7556
|
+
"name": "base",
|
|
7557
|
+
"type": {
|
|
7558
|
+
"text": "number"
|
|
7559
|
+
},
|
|
7560
|
+
"privacy": "private",
|
|
7561
|
+
"description": "History length when the last turn closed: where a turn the session did not start begins."
|
|
7562
|
+
},
|
|
7563
|
+
{
|
|
7564
|
+
"kind": "field",
|
|
7565
|
+
"name": "quiesceTimer",
|
|
7566
|
+
"type": {
|
|
7567
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
7568
|
+
},
|
|
7569
|
+
"privacy": "private"
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"kind": "field",
|
|
7573
|
+
"name": "poller",
|
|
7574
|
+
"type": {
|
|
7575
|
+
"text": "ReturnType<typeof setInterval> | undefined"
|
|
7576
|
+
},
|
|
7577
|
+
"privacy": "private"
|
|
7578
|
+
},
|
|
7579
|
+
{
|
|
7580
|
+
"kind": "field",
|
|
7581
|
+
"name": "persistence",
|
|
7582
|
+
"type": {
|
|
7583
|
+
"text": "HeadlessPersistenceBinding | undefined"
|
|
7584
|
+
},
|
|
7585
|
+
"privacy": "private",
|
|
7586
|
+
"readonly": true
|
|
7587
|
+
},
|
|
7588
|
+
{
|
|
7589
|
+
"kind": "field",
|
|
7590
|
+
"name": "lastProbe",
|
|
7591
|
+
"type": {
|
|
7592
|
+
"text": "Record<string, unknown>"
|
|
7593
|
+
},
|
|
7594
|
+
"privacy": "private",
|
|
7595
|
+
"default": "{}"
|
|
7596
|
+
},
|
|
7597
|
+
{
|
|
7598
|
+
"kind": "field",
|
|
7599
|
+
"name": "lastAutopilot",
|
|
7600
|
+
"type": {
|
|
7601
|
+
"text": "string"
|
|
7602
|
+
},
|
|
7603
|
+
"privacy": "private",
|
|
7604
|
+
"default": "''"
|
|
7605
|
+
},
|
|
7606
|
+
{
|
|
7607
|
+
"kind": "field",
|
|
7608
|
+
"name": "disposed",
|
|
7609
|
+
"type": {
|
|
7610
|
+
"text": "boolean"
|
|
7611
|
+
},
|
|
7612
|
+
"privacy": "private",
|
|
7613
|
+
"default": "false"
|
|
7614
|
+
},
|
|
7615
|
+
{
|
|
7616
|
+
"kind": "field",
|
|
7617
|
+
"name": "restoring",
|
|
7618
|
+
"type": {
|
|
7619
|
+
"text": "boolean"
|
|
7620
|
+
},
|
|
7621
|
+
"privacy": "private",
|
|
7622
|
+
"default": "false",
|
|
7623
|
+
"description": "While a restore loads the history, which is not new activity."
|
|
7624
|
+
},
|
|
7625
|
+
{
|
|
7626
|
+
"kind": "method",
|
|
7627
|
+
"name": "send",
|
|
7628
|
+
"return": {
|
|
7629
|
+
"type": {
|
|
7630
|
+
"text": "HeadlessResult"
|
|
7631
|
+
}
|
|
7632
|
+
},
|
|
7633
|
+
"parameters": [
|
|
7634
|
+
{
|
|
7635
|
+
"name": "text",
|
|
7636
|
+
"type": {
|
|
7637
|
+
"text": "string"
|
|
7638
|
+
}
|
|
7639
|
+
},
|
|
7640
|
+
{
|
|
7641
|
+
"name": "options",
|
|
7642
|
+
"default": "{}",
|
|
7643
|
+
"type": {
|
|
7644
|
+
"text": "HeadlessSendOptions"
|
|
7645
|
+
}
|
|
7646
|
+
}
|
|
7647
|
+
],
|
|
7648
|
+
"description": "Send the person's message, and start the turn. Returns as soon as the turn has started, not\nwhen it ends: a turn includes every interaction parked on the person, so it can run as long as\nthe journey. Its end is the `turn` event.\n\nRefused, never thrown, when the message is empty, or a turn is already running."
|
|
7649
|
+
},
|
|
7650
|
+
{
|
|
7651
|
+
"kind": "method",
|
|
7652
|
+
"name": "act",
|
|
7653
|
+
"return": {
|
|
7654
|
+
"type": {
|
|
7655
|
+
"text": "Promise<HeadlessActResult>"
|
|
7656
|
+
}
|
|
7657
|
+
},
|
|
7658
|
+
"parameters": [
|
|
7659
|
+
{
|
|
7660
|
+
"name": "interactionId",
|
|
7661
|
+
"type": {
|
|
7662
|
+
"text": "string"
|
|
7663
|
+
}
|
|
7664
|
+
},
|
|
7665
|
+
{
|
|
7666
|
+
"name": "action",
|
|
7667
|
+
"type": {
|
|
7668
|
+
"text": "string | number"
|
|
7669
|
+
}
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
"name": "args",
|
|
7673
|
+
"default": "{}",
|
|
7674
|
+
"type": {
|
|
7675
|
+
"text": "HeadlessActArgs"
|
|
7676
|
+
}
|
|
7677
|
+
}
|
|
7678
|
+
],
|
|
7679
|
+
"description": "Run one of a pending interaction's actions as the person, as a click would (the answer is\ncredited `answeredBy: 'user'`). `action` is a number from the description's actions, or an\naction's name; `args` carry the text, the options (numbers or labels) or the form's fields it\ntakes. Refused, with the reason and what is enabled, when a claimant holds the interaction,\nthe action is unknown or disabled, or its arguments do not fit: nothing runs then.\n\nThe result is the driver's `InvokeResult`, plus `description` of the interaction when it is\nstill open."
|
|
7680
|
+
},
|
|
7681
|
+
{
|
|
7682
|
+
"kind": "method",
|
|
7683
|
+
"name": "resolve",
|
|
7684
|
+
"return": {
|
|
7685
|
+
"type": {
|
|
7686
|
+
"text": "HeadlessResult"
|
|
7687
|
+
}
|
|
7688
|
+
},
|
|
7689
|
+
"parameters": [
|
|
7690
|
+
{
|
|
7691
|
+
"name": "interactionId",
|
|
7692
|
+
"type": {
|
|
7693
|
+
"text": "string"
|
|
7694
|
+
}
|
|
7695
|
+
},
|
|
7696
|
+
{
|
|
7697
|
+
"name": "result",
|
|
7698
|
+
"type": {
|
|
7699
|
+
"text": "unknown"
|
|
7700
|
+
}
|
|
7701
|
+
}
|
|
7702
|
+
],
|
|
7703
|
+
"description": "Settle a pending interaction raw, with `result` as the widget would have resolved it,\nbypassing its actions and everything they check: an escape hatch for a widget with no\ncontroller, or one that cannot be acted on. Logs `settled` with `raw: true` and records\n`headless.raw-resolved`. Refused when `allowRaw` is `false`, when the interaction is not\npending, or when a claimant holds it: as for `act`, the person takes it back first."
|
|
7704
|
+
},
|
|
7705
|
+
{
|
|
7706
|
+
"kind": "method",
|
|
7707
|
+
"name": "read",
|
|
7708
|
+
"return": {
|
|
7709
|
+
"type": {
|
|
7710
|
+
"text": "Promise<HeadlessReadResult>"
|
|
7711
|
+
}
|
|
7712
|
+
},
|
|
7713
|
+
"parameters": [
|
|
7714
|
+
{
|
|
7715
|
+
"name": "interactionId",
|
|
7716
|
+
"type": {
|
|
7717
|
+
"text": "string"
|
|
7718
|
+
}
|
|
7719
|
+
},
|
|
7720
|
+
{
|
|
7721
|
+
"name": "request",
|
|
7722
|
+
"default": "{}",
|
|
7723
|
+
"type": {
|
|
7724
|
+
"text": "HeadlessReadRequest"
|
|
7725
|
+
}
|
|
7726
|
+
}
|
|
7727
|
+
],
|
|
7728
|
+
"description": "Read from a pending interaction without changing it: one of its views, or (with `tool`) one of\nthe widget tools given to the session. The text is capped. A view the surface does not list is\nrefused, naming those it does, as the autopilot's `widget_read` does."
|
|
7729
|
+
},
|
|
7730
|
+
{
|
|
7731
|
+
"kind": "method",
|
|
7732
|
+
"name": "wait",
|
|
7733
|
+
"return": {
|
|
7734
|
+
"type": {
|
|
7735
|
+
"text": "Promise<HeadlessWaitResult>"
|
|
7736
|
+
}
|
|
7737
|
+
},
|
|
7738
|
+
"parameters": [
|
|
7739
|
+
{
|
|
7740
|
+
"name": "request",
|
|
7741
|
+
"type": {
|
|
7742
|
+
"text": "HeadlessWaitRequest"
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
],
|
|
7746
|
+
"description": "Wait for the log to say something, then return what it said. Resolves as soon as an event in\n`until` is in the log after `since` (immediately, when one already is), or at `maxWaitMs` with\nstatus `'working'`. Either way it returns every event after `since`, and `nextSeq`, the cursor\nfor the next call: poll with it and nothing is lost."
|
|
7747
|
+
},
|
|
7748
|
+
{
|
|
7749
|
+
"kind": "method",
|
|
7750
|
+
"name": "eventsSince",
|
|
7751
|
+
"return": {
|
|
7752
|
+
"type": {
|
|
7753
|
+
"text": "readonly HeadlessEvent[]"
|
|
7754
|
+
}
|
|
7755
|
+
},
|
|
7756
|
+
"parameters": [
|
|
7757
|
+
{
|
|
7758
|
+
"name": "since",
|
|
7759
|
+
"default": "0"
|
|
7760
|
+
}
|
|
7761
|
+
],
|
|
7762
|
+
"description": "Every event logged after `since` (default: all the log keeps), without waiting."
|
|
7763
|
+
},
|
|
7764
|
+
{
|
|
7765
|
+
"kind": "method",
|
|
7766
|
+
"name": "state",
|
|
7767
|
+
"return": {
|
|
7768
|
+
"type": {
|
|
7769
|
+
"text": "HeadlessState"
|
|
7770
|
+
}
|
|
7771
|
+
},
|
|
7772
|
+
"description": "What is going on now: whether a turn runs, the interaction the person should answer first (and\nthe others open behind it), the autopilot, what it has cost, and the host's probe."
|
|
7773
|
+
},
|
|
7774
|
+
{
|
|
7775
|
+
"kind": "method",
|
|
7776
|
+
"name": "restore",
|
|
7777
|
+
"return": {
|
|
7778
|
+
"type": {
|
|
7779
|
+
"text": "Promise<HeadlessRestoreOutcome | undefined>"
|
|
7780
|
+
}
|
|
7781
|
+
},
|
|
7782
|
+
"description": "Restore the saved session for this key, as the browser's element does on mount (see\n`HeadlessPersistenceBinding.restore`). Call it before the first `send`. The restored history is\nthe starting point, not news: it is not reported as `message` events or as a turn, and the\nevent log and its cursors carry on from where they are. A no-op without `persistence`."
|
|
7783
|
+
},
|
|
7784
|
+
{
|
|
7785
|
+
"kind": "method",
|
|
7786
|
+
"name": "flush",
|
|
7787
|
+
"return": {
|
|
7788
|
+
"type": {
|
|
7789
|
+
"text": "Promise<void>"
|
|
7790
|
+
}
|
|
7791
|
+
},
|
|
7792
|
+
"description": "Save the session now: the snapshot, and the diagnostics appended since the last flush, rather\nthan at the next throttled save. A no-op without `persistence`."
|
|
7793
|
+
},
|
|
7794
|
+
{
|
|
7795
|
+
"kind": "method",
|
|
7796
|
+
"name": "debugLog",
|
|
7797
|
+
"return": {
|
|
7798
|
+
"type": {
|
|
7799
|
+
"text": "Promise<DebugLog>"
|
|
7800
|
+
}
|
|
7801
|
+
},
|
|
7802
|
+
"description": "The debug log, the document the browser's Download gives. With `persistence`, the log of the\nwhole session stitched from the stored stream with a fresh `meta-snapshot` (`lifetimeDebugLog`,\nthe same code); without, the current page's, from `buildDiagnosticEntries`. Never throws."
|
|
7803
|
+
},
|
|
7804
|
+
{
|
|
7805
|
+
"kind": "method",
|
|
7806
|
+
"name": "stop",
|
|
7807
|
+
"return": {
|
|
7808
|
+
"type": {
|
|
7809
|
+
"text": "HeadlessResult"
|
|
7810
|
+
}
|
|
7811
|
+
},
|
|
7812
|
+
"description": "Stop the running turn, when the driver can."
|
|
7813
|
+
},
|
|
7814
|
+
{
|
|
7815
|
+
"kind": "method",
|
|
7816
|
+
"name": "autopilot",
|
|
7817
|
+
"return": {
|
|
7818
|
+
"type": {
|
|
7819
|
+
"text": "HeadlessResult"
|
|
7820
|
+
}
|
|
7821
|
+
},
|
|
7822
|
+
"parameters": [
|
|
7823
|
+
{
|
|
7824
|
+
"name": "mode",
|
|
7825
|
+
"type": {
|
|
7826
|
+
"text": "'pause' | 'resume' | 'stop' | 'keepPaused'"
|
|
7827
|
+
}
|
|
7828
|
+
},
|
|
7829
|
+
{
|
|
7830
|
+
"name": "interactionId",
|
|
7831
|
+
"optional": true,
|
|
7832
|
+
"type": {
|
|
7833
|
+
"text": "string"
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7836
|
+
],
|
|
7837
|
+
"description": "Pause, resume or stop the autopilot, when there is one. Pausing hands what it holds to the\nperson, which then appears as a `decision`.\n\n`'keepPaused'` is the hand-back banner's \"Keep paused\": it turns the autopilot's own hand-back\nof one interaction into an ordinary pause, so it does not take the question back once it is\nanswered. `interactionId` names the interaction handed back; omitted, it is the one the\nautopilot's own pause is waiting on (`state().autopilot`'s hand-back, the `decision` it left\nwith the person). Refused, with why, when the autopilot has handed nothing back, when\n`interactionId` is not the one it handed back, or when the host cannot keep paused; the host's\nown `keepPaused` would do nothing in those cases without saying so."
|
|
7838
|
+
},
|
|
7839
|
+
{
|
|
7840
|
+
"kind": "method",
|
|
7841
|
+
"name": "keepPaused",
|
|
7842
|
+
"privacy": "private",
|
|
7843
|
+
"return": {
|
|
7844
|
+
"type": {
|
|
7845
|
+
"text": "HeadlessResult"
|
|
7846
|
+
}
|
|
7847
|
+
},
|
|
7848
|
+
"parameters": [
|
|
7849
|
+
{
|
|
7850
|
+
"name": "host",
|
|
7851
|
+
"type": {
|
|
7852
|
+
"text": "AutopilotLike"
|
|
7853
|
+
}
|
|
7854
|
+
},
|
|
7855
|
+
{
|
|
7856
|
+
"name": "interactionId",
|
|
7857
|
+
"type": {
|
|
7858
|
+
"text": "string | undefined"
|
|
7859
|
+
}
|
|
7860
|
+
}
|
|
7861
|
+
]
|
|
7862
|
+
},
|
|
7863
|
+
{
|
|
7864
|
+
"kind": "method",
|
|
7865
|
+
"name": "dispose",
|
|
7866
|
+
"return": {
|
|
7867
|
+
"type": {
|
|
7868
|
+
"text": "void"
|
|
7869
|
+
}
|
|
7870
|
+
},
|
|
7871
|
+
"description": "Detach: remove the interceptor and every subscription, and release anyone waiting."
|
|
7872
|
+
},
|
|
7873
|
+
{
|
|
7874
|
+
"kind": "method",
|
|
7875
|
+
"name": "listen",
|
|
7876
|
+
"privacy": "private",
|
|
7877
|
+
"return": {
|
|
7878
|
+
"type": {
|
|
7879
|
+
"text": "void"
|
|
7880
|
+
}
|
|
7881
|
+
},
|
|
7882
|
+
"parameters": [
|
|
7883
|
+
{
|
|
7884
|
+
"name": "type",
|
|
7885
|
+
"type": {
|
|
7886
|
+
"text": "string"
|
|
7887
|
+
}
|
|
7888
|
+
},
|
|
7889
|
+
{
|
|
7890
|
+
"name": "handler",
|
|
7891
|
+
"type": {
|
|
7892
|
+
"text": "(e: Event) => void"
|
|
7893
|
+
}
|
|
7894
|
+
}
|
|
7895
|
+
]
|
|
7896
|
+
},
|
|
7897
|
+
{
|
|
7898
|
+
"kind": "method",
|
|
7899
|
+
"name": "history",
|
|
7900
|
+
"privacy": "private",
|
|
7901
|
+
"return": {
|
|
7902
|
+
"type": {
|
|
7903
|
+
"text": "readonly ChatMessage[]"
|
|
7904
|
+
}
|
|
7905
|
+
}
|
|
7906
|
+
},
|
|
7907
|
+
{
|
|
7908
|
+
"kind": "method",
|
|
7909
|
+
"name": "onOpened",
|
|
7910
|
+
"privacy": "private",
|
|
7911
|
+
"return": {
|
|
7912
|
+
"type": {
|
|
7913
|
+
"text": "void"
|
|
7914
|
+
}
|
|
7915
|
+
},
|
|
7916
|
+
"parameters": [
|
|
7917
|
+
{
|
|
7918
|
+
"name": "opened",
|
|
7919
|
+
"type": {
|
|
7920
|
+
"text": "InteractionOpened"
|
|
7921
|
+
}
|
|
7922
|
+
}
|
|
7923
|
+
],
|
|
7924
|
+
"description": "An interaction opened: watch it. Who holds it is not decided yet, so it is reported later."
|
|
7925
|
+
},
|
|
7926
|
+
{
|
|
7927
|
+
"kind": "method",
|
|
7928
|
+
"name": "onSettled",
|
|
7929
|
+
"privacy": "private",
|
|
7930
|
+
"return": {
|
|
7931
|
+
"type": {
|
|
7932
|
+
"text": "void"
|
|
7933
|
+
}
|
|
7934
|
+
},
|
|
7935
|
+
"parameters": [
|
|
7936
|
+
{
|
|
7937
|
+
"name": "detail",
|
|
7938
|
+
"type": {
|
|
7939
|
+
"text": "{\n interactionId: string;\n answeredBy?: string;\n resolvedItself?: boolean;\n }"
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7942
|
+
],
|
|
7943
|
+
"description": "The driver says an interaction settled, by whatever route."
|
|
7944
|
+
},
|
|
7945
|
+
{
|
|
7946
|
+
"kind": "method",
|
|
7947
|
+
"name": "onEnded",
|
|
7948
|
+
"privacy": "private",
|
|
7949
|
+
"return": {
|
|
7950
|
+
"type": {
|
|
7951
|
+
"text": "void"
|
|
7952
|
+
}
|
|
7953
|
+
},
|
|
7954
|
+
"parameters": [
|
|
7955
|
+
{
|
|
7956
|
+
"name": "t",
|
|
7957
|
+
"type": {
|
|
7958
|
+
"text": "Tracked"
|
|
7959
|
+
}
|
|
7960
|
+
}
|
|
7961
|
+
],
|
|
7962
|
+
"description": "The interaction's context was disposed: if nothing said it settled, say it did."
|
|
7963
|
+
},
|
|
7964
|
+
{
|
|
7965
|
+
"kind": "method",
|
|
7966
|
+
"name": "settle",
|
|
7967
|
+
"privacy": "private",
|
|
7968
|
+
"return": {
|
|
7969
|
+
"type": {
|
|
7970
|
+
"text": "void"
|
|
7971
|
+
}
|
|
7972
|
+
},
|
|
7973
|
+
"parameters": [
|
|
7974
|
+
{
|
|
7975
|
+
"name": "t",
|
|
7976
|
+
"type": {
|
|
7977
|
+
"text": "Tracked"
|
|
7978
|
+
}
|
|
7979
|
+
},
|
|
7980
|
+
{
|
|
7981
|
+
"name": "how",
|
|
7982
|
+
"type": {
|
|
7983
|
+
"text": "{ answeredBy?: string; resolvedItself?: boolean; auto?: boolean; raw?: boolean }"
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
]
|
|
7987
|
+
},
|
|
7988
|
+
{
|
|
7989
|
+
"kind": "method",
|
|
7990
|
+
"name": "release",
|
|
7991
|
+
"privacy": "private",
|
|
7992
|
+
"return": {
|
|
7993
|
+
"type": {
|
|
7994
|
+
"text": "void"
|
|
7995
|
+
}
|
|
7996
|
+
},
|
|
7997
|
+
"parameters": [
|
|
7998
|
+
{
|
|
7999
|
+
"name": "t",
|
|
8000
|
+
"type": {
|
|
8001
|
+
"text": "Tracked"
|
|
8002
|
+
}
|
|
8003
|
+
}
|
|
8004
|
+
]
|
|
8005
|
+
},
|
|
8006
|
+
{
|
|
8007
|
+
"kind": "method",
|
|
8008
|
+
"name": "onHistory",
|
|
8009
|
+
"privacy": "private",
|
|
8010
|
+
"return": {
|
|
8011
|
+
"type": {
|
|
8012
|
+
"text": "void"
|
|
8013
|
+
}
|
|
8014
|
+
},
|
|
8015
|
+
"description": "New messages in the driver's history: report what the person would see of them."
|
|
8016
|
+
},
|
|
8017
|
+
{
|
|
8018
|
+
"kind": "method",
|
|
8019
|
+
"name": "reportMessages",
|
|
8020
|
+
"privacy": "private",
|
|
8021
|
+
"return": {
|
|
8022
|
+
"type": {
|
|
8023
|
+
"text": "void"
|
|
8024
|
+
}
|
|
8025
|
+
}
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
"kind": "method",
|
|
8029
|
+
"name": "onAutopilot",
|
|
8030
|
+
"privacy": "private",
|
|
8031
|
+
"return": {
|
|
8032
|
+
"type": {
|
|
8033
|
+
"text": "void"
|
|
8034
|
+
}
|
|
8035
|
+
}
|
|
8036
|
+
},
|
|
8037
|
+
{
|
|
8038
|
+
"kind": "method",
|
|
8039
|
+
"name": "autopilotSignature",
|
|
8040
|
+
"privacy": "private",
|
|
8041
|
+
"return": {
|
|
8042
|
+
"type": {
|
|
8043
|
+
"text": "string"
|
|
8044
|
+
}
|
|
8045
|
+
}
|
|
8046
|
+
},
|
|
8047
|
+
{
|
|
8048
|
+
"kind": "method",
|
|
8049
|
+
"name": "describe",
|
|
8050
|
+
"privacy": "private",
|
|
8051
|
+
"return": {
|
|
8052
|
+
"type": {
|
|
8053
|
+
"text": "InteractionDescription"
|
|
8054
|
+
}
|
|
8055
|
+
},
|
|
8056
|
+
"parameters": [
|
|
8057
|
+
{
|
|
8058
|
+
"name": "t",
|
|
8059
|
+
"type": {
|
|
8060
|
+
"text": "Tracked"
|
|
8061
|
+
}
|
|
8062
|
+
}
|
|
8063
|
+
]
|
|
8064
|
+
},
|
|
8065
|
+
{
|
|
8066
|
+
"kind": "method",
|
|
8067
|
+
"name": "evaluate",
|
|
8068
|
+
"privacy": "private",
|
|
8069
|
+
"return": {
|
|
8070
|
+
"type": {
|
|
8071
|
+
"text": "void"
|
|
8072
|
+
}
|
|
8073
|
+
},
|
|
8074
|
+
"parameters": [
|
|
8075
|
+
{
|
|
8076
|
+
"name": "t",
|
|
8077
|
+
"type": {
|
|
8078
|
+
"text": "Tracked"
|
|
8079
|
+
}
|
|
8080
|
+
}
|
|
8081
|
+
],
|
|
8082
|
+
"description": "Report where an interaction stands, when that has changed. A `decision` when the person holds\nit and can act; `working` when a claimant holds it or it is not ready yet. A `decision` is\nlogged again only when its description changed materially: who holds it, whether it is ready\nor has a controller, or which actions are enabled. The text and facts alone do not count."
|
|
8083
|
+
},
|
|
8084
|
+
{
|
|
8085
|
+
"kind": "method",
|
|
8086
|
+
"name": "autoSettle",
|
|
8087
|
+
"privacy": "private",
|
|
8088
|
+
"return": {
|
|
8089
|
+
"type": {
|
|
8090
|
+
"text": "boolean"
|
|
8091
|
+
}
|
|
8092
|
+
},
|
|
8093
|
+
"parameters": [
|
|
8094
|
+
{
|
|
8095
|
+
"name": "t",
|
|
8096
|
+
"type": {
|
|
8097
|
+
"text": "Tracked"
|
|
8098
|
+
}
|
|
8099
|
+
}
|
|
8100
|
+
],
|
|
8101
|
+
"description": "Settle a widget that settles itself in a browser, as it would on mounting. Once, and only when\nthe person holds it. Returns whether it settled it."
|
|
8102
|
+
},
|
|
8103
|
+
{
|
|
8104
|
+
"kind": "method",
|
|
8105
|
+
"name": "readTool",
|
|
8106
|
+
"privacy": "private",
|
|
8107
|
+
"return": {
|
|
8108
|
+
"type": {
|
|
8109
|
+
"text": "Promise<HeadlessReadResult>"
|
|
8110
|
+
}
|
|
8111
|
+
},
|
|
8112
|
+
"parameters": [
|
|
8113
|
+
{
|
|
8114
|
+
"name": "t",
|
|
8115
|
+
"type": {
|
|
8116
|
+
"text": "Tracked"
|
|
8117
|
+
}
|
|
8118
|
+
},
|
|
8119
|
+
{
|
|
8120
|
+
"name": "name",
|
|
8121
|
+
"type": {
|
|
8122
|
+
"text": "string"
|
|
8123
|
+
}
|
|
8124
|
+
},
|
|
8125
|
+
{
|
|
8126
|
+
"name": "args",
|
|
8127
|
+
"type": {
|
|
8128
|
+
"text": "Record<string, unknown> | undefined"
|
|
8129
|
+
}
|
|
8130
|
+
}
|
|
8131
|
+
]
|
|
8132
|
+
},
|
|
8133
|
+
{
|
|
8134
|
+
"kind": "method",
|
|
8135
|
+
"name": "observe",
|
|
8136
|
+
"privacy": "private",
|
|
8137
|
+
"return": {
|
|
8138
|
+
"type": {
|
|
8139
|
+
"text": "void"
|
|
8140
|
+
}
|
|
8141
|
+
},
|
|
8142
|
+
"description": "Notice a turn begin or end, whoever started it. The driver being busy (or a `send` in flight)\nis a turn; once it has been idle for a beat the turn is over and is reported, once. The beat\ncovers the gaps inside one turn, such as a hand-off continuing it, which are a microtask long.\nA turn that begins the instant another ends, with no idle between, is reported as one."
|
|
8143
|
+
},
|
|
8144
|
+
{
|
|
8145
|
+
"kind": "method",
|
|
8146
|
+
"name": "closeTurn",
|
|
8147
|
+
"privacy": "private",
|
|
8148
|
+
"return": {
|
|
8149
|
+
"type": {
|
|
8150
|
+
"text": "void"
|
|
8151
|
+
}
|
|
8152
|
+
},
|
|
8153
|
+
"description": "Report the open turn as ended, unless the driver is busy again."
|
|
8154
|
+
},
|
|
8155
|
+
{
|
|
8156
|
+
"kind": "method",
|
|
8157
|
+
"name": "startPolling",
|
|
8158
|
+
"privacy": "private",
|
|
8159
|
+
"return": {
|
|
8160
|
+
"type": {
|
|
8161
|
+
"text": "void"
|
|
8162
|
+
}
|
|
8163
|
+
},
|
|
8164
|
+
"description": "Without a shared bus nothing says a turn ended, so while one is open the driver is asked."
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
"kind": "method",
|
|
8168
|
+
"name": "stopPolling",
|
|
8169
|
+
"privacy": "private",
|
|
8170
|
+
"return": {
|
|
8171
|
+
"type": {
|
|
8172
|
+
"text": "void"
|
|
8173
|
+
}
|
|
8174
|
+
}
|
|
8175
|
+
},
|
|
8176
|
+
{
|
|
8177
|
+
"kind": "method",
|
|
8178
|
+
"name": "logTurn",
|
|
8179
|
+
"privacy": "private",
|
|
8180
|
+
"return": {
|
|
8181
|
+
"type": {
|
|
8182
|
+
"text": "void"
|
|
8183
|
+
}
|
|
8184
|
+
},
|
|
8185
|
+
"parameters": [
|
|
8186
|
+
{
|
|
8187
|
+
"name": "reason",
|
|
8188
|
+
"type": {
|
|
8189
|
+
"text": "string"
|
|
8190
|
+
}
|
|
8191
|
+
},
|
|
8192
|
+
{
|
|
8193
|
+
"name": "failureReason",
|
|
8194
|
+
"type": {
|
|
8195
|
+
"text": "string | undefined"
|
|
8196
|
+
}
|
|
8197
|
+
},
|
|
8198
|
+
{
|
|
8199
|
+
"name": "start",
|
|
8200
|
+
"type": {
|
|
8201
|
+
"text": "number"
|
|
8202
|
+
}
|
|
8203
|
+
}
|
|
8204
|
+
]
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
"kind": "method",
|
|
8208
|
+
"name": "log",
|
|
8209
|
+
"privacy": "private",
|
|
8210
|
+
"return": {
|
|
8211
|
+
"type": {
|
|
8212
|
+
"text": "void"
|
|
8213
|
+
}
|
|
8214
|
+
},
|
|
8215
|
+
"parameters": [
|
|
8216
|
+
{
|
|
8217
|
+
"name": "event",
|
|
8218
|
+
"type": {
|
|
8219
|
+
"text": "NewEvent"
|
|
8220
|
+
}
|
|
8221
|
+
}
|
|
8222
|
+
]
|
|
8223
|
+
},
|
|
8224
|
+
{
|
|
8225
|
+
"kind": "method",
|
|
8226
|
+
"name": "append",
|
|
8227
|
+
"privacy": "private",
|
|
8228
|
+
"return": {
|
|
8229
|
+
"type": {
|
|
8230
|
+
"text": "void"
|
|
8231
|
+
}
|
|
8232
|
+
},
|
|
8233
|
+
"parameters": [
|
|
8234
|
+
{
|
|
8235
|
+
"name": "event",
|
|
8236
|
+
"type": {
|
|
8237
|
+
"text": "NewEvent"
|
|
8238
|
+
}
|
|
8239
|
+
}
|
|
8240
|
+
]
|
|
8241
|
+
},
|
|
8242
|
+
{
|
|
8243
|
+
"kind": "method",
|
|
8244
|
+
"name": "readProbe",
|
|
8245
|
+
"privacy": "private",
|
|
8246
|
+
"return": {
|
|
8247
|
+
"type": {
|
|
8248
|
+
"text": "Record<string, unknown>"
|
|
8249
|
+
}
|
|
8250
|
+
}
|
|
8251
|
+
},
|
|
8252
|
+
{
|
|
8253
|
+
"kind": "method",
|
|
8254
|
+
"name": "checkProbe",
|
|
8255
|
+
"privacy": "private",
|
|
8256
|
+
"return": {
|
|
8257
|
+
"type": {
|
|
8258
|
+
"text": "void"
|
|
8259
|
+
}
|
|
8260
|
+
},
|
|
8261
|
+
"description": "Read the probe again; a change in any top-level value is a `probe` event."
|
|
8262
|
+
},
|
|
8263
|
+
{
|
|
8264
|
+
"kind": "method",
|
|
8265
|
+
"name": "waited",
|
|
8266
|
+
"privacy": "private",
|
|
8267
|
+
"return": {
|
|
8268
|
+
"type": {
|
|
8269
|
+
"text": "HeadlessWaitResult"
|
|
8270
|
+
}
|
|
8271
|
+
},
|
|
8272
|
+
"parameters": [
|
|
8273
|
+
{
|
|
8274
|
+
"name": "since",
|
|
8275
|
+
"type": {
|
|
8276
|
+
"text": "number"
|
|
8277
|
+
}
|
|
8278
|
+
},
|
|
8279
|
+
{
|
|
8280
|
+
"name": "status",
|
|
8281
|
+
"type": {
|
|
8282
|
+
"text": "HeadlessWaitResult['status']"
|
|
8283
|
+
}
|
|
8284
|
+
}
|
|
8285
|
+
]
|
|
8286
|
+
}
|
|
8287
|
+
]
|
|
8288
|
+
}
|
|
8289
|
+
],
|
|
8290
|
+
"exports": [
|
|
7928
8291
|
{
|
|
7929
8292
|
"kind": "js",
|
|
7930
|
-
"name": "
|
|
8293
|
+
"name": "HeadlessSession",
|
|
7931
8294
|
"declaration": {
|
|
7932
|
-
"name": "
|
|
7933
|
-
"module": "
|
|
8295
|
+
"name": "HeadlessSession",
|
|
8296
|
+
"module": "src/headless/headless-session.ts"
|
|
7934
8297
|
}
|
|
7935
|
-
}
|
|
8298
|
+
}
|
|
8299
|
+
]
|
|
8300
|
+
},
|
|
8301
|
+
{
|
|
8302
|
+
"kind": "javascript-module",
|
|
8303
|
+
"path": "src/headless/headless.types.ts",
|
|
8304
|
+
"declarations": [],
|
|
8305
|
+
"exports": []
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
"kind": "javascript-module",
|
|
8309
|
+
"path": "src/headless/index.ts",
|
|
8310
|
+
"declarations": [],
|
|
8311
|
+
"exports": [
|
|
7936
8312
|
{
|
|
7937
8313
|
"kind": "js",
|
|
7938
|
-
"name": "
|
|
8314
|
+
"name": "describeInteraction",
|
|
7939
8315
|
"declaration": {
|
|
7940
|
-
"name": "
|
|
7941
|
-
"module": "./
|
|
8316
|
+
"name": "describeInteraction",
|
|
8317
|
+
"module": "./describe-interaction"
|
|
7942
8318
|
}
|
|
7943
8319
|
},
|
|
7944
8320
|
{
|
|
7945
8321
|
"kind": "js",
|
|
7946
|
-
"name": "
|
|
8322
|
+
"name": "headlessCurrentDebugLog",
|
|
7947
8323
|
"declaration": {
|
|
7948
|
-
"name": "
|
|
7949
|
-
"module": "./
|
|
8324
|
+
"name": "headlessCurrentDebugLog",
|
|
8325
|
+
"module": "./headless-debug"
|
|
7950
8326
|
}
|
|
7951
8327
|
},
|
|
7952
8328
|
{
|
|
7953
8329
|
"kind": "js",
|
|
7954
|
-
"name": "
|
|
8330
|
+
"name": "headlessDiagnosticEntries",
|
|
7955
8331
|
"declaration": {
|
|
7956
|
-
"name": "
|
|
7957
|
-
"module": "./
|
|
8332
|
+
"name": "headlessDiagnosticEntries",
|
|
8333
|
+
"module": "./headless-debug"
|
|
7958
8334
|
}
|
|
7959
8335
|
},
|
|
7960
8336
|
{
|
|
7961
8337
|
"kind": "js",
|
|
7962
|
-
"name": "
|
|
8338
|
+
"name": "headlessMetaSnapshot",
|
|
7963
8339
|
"declaration": {
|
|
7964
|
-
"name": "
|
|
7965
|
-
"module": "./
|
|
7966
|
-
}
|
|
7967
|
-
}
|
|
7968
|
-
]
|
|
7969
|
-
},
|
|
7970
|
-
{
|
|
7971
|
-
"kind": "javascript-module",
|
|
7972
|
-
"path": "src/genesis/reference-check.ts",
|
|
7973
|
-
"declarations": [
|
|
7974
|
-
{
|
|
7975
|
-
"kind": "function",
|
|
7976
|
-
"name": "tableOf",
|
|
7977
|
-
"return": {
|
|
7978
|
-
"type": {
|
|
7979
|
-
"text": "string"
|
|
7980
|
-
}
|
|
7981
|
-
},
|
|
7982
|
-
"parameters": [
|
|
7983
|
-
{
|
|
7984
|
-
"name": "resource",
|
|
7985
|
-
"type": {
|
|
7986
|
-
"text": "string"
|
|
7987
|
-
}
|
|
7988
|
-
}
|
|
7989
|
-
],
|
|
7990
|
-
"description": "The table a `REQ_<T>` reads."
|
|
7991
|
-
},
|
|
7992
|
-
{
|
|
7993
|
-
"kind": "function",
|
|
7994
|
-
"name": "notAcceptedHere",
|
|
7995
|
-
"return": {
|
|
7996
|
-
"type": {
|
|
7997
|
-
"text": "string"
|
|
7998
|
-
}
|
|
7999
|
-
},
|
|
8000
|
-
"parameters": [
|
|
8001
|
-
{
|
|
8002
|
-
"name": "field",
|
|
8003
|
-
"type": {
|
|
8004
|
-
"text": "string"
|
|
8005
|
-
}
|
|
8006
|
-
},
|
|
8007
|
-
{
|
|
8008
|
-
"name": "{ resource, reason }",
|
|
8009
|
-
"type": {
|
|
8010
|
-
"text": "UncheckedField"
|
|
8011
|
-
}
|
|
8012
|
-
}
|
|
8013
|
-
],
|
|
8014
|
-
"description": "What an insert says about a value it cannot check."
|
|
8015
|
-
},
|
|
8016
|
-
{
|
|
8017
|
-
"kind": "function",
|
|
8018
|
-
"name": "cannotBeChanged",
|
|
8019
|
-
"return": {
|
|
8020
|
-
"type": {
|
|
8021
|
-
"text": "string"
|
|
8022
|
-
}
|
|
8023
|
-
},
|
|
8024
|
-
"parameters": [
|
|
8025
|
-
{
|
|
8026
|
-
"name": "field",
|
|
8027
|
-
"type": {
|
|
8028
|
-
"text": "string"
|
|
8029
|
-
}
|
|
8030
|
-
},
|
|
8031
|
-
{
|
|
8032
|
-
"name": "{ resource, reason }",
|
|
8033
|
-
"type": {
|
|
8034
|
-
"text": "UncheckedField"
|
|
8035
|
-
}
|
|
8036
|
-
}
|
|
8037
|
-
],
|
|
8038
|
-
"description": "What a modify says about a new value it cannot check."
|
|
8039
|
-
}
|
|
8040
|
-
],
|
|
8041
|
-
"exports": [
|
|
8340
|
+
"name": "headlessMetaSnapshot",
|
|
8341
|
+
"module": "./headless-debug"
|
|
8342
|
+
}
|
|
8343
|
+
},
|
|
8042
8344
|
{
|
|
8043
8345
|
"kind": "js",
|
|
8044
|
-
"name": "
|
|
8346
|
+
"name": "HeadlessSession",
|
|
8045
8347
|
"declaration": {
|
|
8046
|
-
"name": "
|
|
8047
|
-
"module": "
|
|
8348
|
+
"name": "HeadlessSession",
|
|
8349
|
+
"module": "./headless-session"
|
|
8048
8350
|
}
|
|
8049
8351
|
},
|
|
8050
8352
|
{
|
|
8051
8353
|
"kind": "js",
|
|
8052
|
-
"name": "
|
|
8354
|
+
"name": "AutopilotLike",
|
|
8053
8355
|
"declaration": {
|
|
8054
|
-
"name": "
|
|
8055
|
-
"module": "
|
|
8356
|
+
"name": "AutopilotLike",
|
|
8357
|
+
"module": "./headless.types"
|
|
8056
8358
|
}
|
|
8057
8359
|
},
|
|
8058
8360
|
{
|
|
8059
8361
|
"kind": "js",
|
|
8060
|
-
"name": "
|
|
8362
|
+
"name": "DescribedAction",
|
|
8061
8363
|
"declaration": {
|
|
8062
|
-
"name": "
|
|
8063
|
-
"module": "
|
|
8364
|
+
"name": "DescribedAction",
|
|
8365
|
+
"module": "./headless.types"
|
|
8064
8366
|
}
|
|
8065
|
-
}
|
|
8066
|
-
]
|
|
8067
|
-
},
|
|
8068
|
-
{
|
|
8069
|
-
"kind": "javascript-module",
|
|
8070
|
-
"path": "src/genesis/reference-existence.ts",
|
|
8071
|
-
"declarations": [
|
|
8072
|
-
{
|
|
8073
|
-
"kind": "variable",
|
|
8074
|
-
"name": "MAX_REFERENCE_CHECKS",
|
|
8075
|
-
"type": {
|
|
8076
|
-
"text": "number"
|
|
8077
|
-
},
|
|
8078
|
-
"default": "50",
|
|
8079
|
-
"description": "The most distinct values one call may check."
|
|
8080
8367
|
},
|
|
8081
|
-
{
|
|
8082
|
-
"kind": "function",
|
|
8083
|
-
"name": "withReferenceProblems",
|
|
8084
|
-
"return": {
|
|
8085
|
-
"type": {
|
|
8086
|
-
"text": "T[]"
|
|
8087
|
-
}
|
|
8088
|
-
},
|
|
8089
|
-
"parameters": [
|
|
8090
|
-
{
|
|
8091
|
-
"name": "rows",
|
|
8092
|
-
"type": {
|
|
8093
|
-
"text": "readonly T[]"
|
|
8094
|
-
}
|
|
8095
|
-
},
|
|
8096
|
-
{
|
|
8097
|
-
"name": "problems",
|
|
8098
|
-
"type": {
|
|
8099
|
-
"text": "ReadonlyMap<number, string[]>"
|
|
8100
|
-
}
|
|
8101
|
-
}
|
|
8102
|
-
],
|
|
8103
|
-
"description": "The rows with what the check found added to their problems."
|
|
8104
|
-
}
|
|
8105
|
-
],
|
|
8106
|
-
"exports": [
|
|
8107
8368
|
{
|
|
8108
8369
|
"kind": "js",
|
|
8109
|
-
"name": "
|
|
8370
|
+
"name": "DescribeInteractionInput",
|
|
8110
8371
|
"declaration": {
|
|
8111
|
-
"name": "
|
|
8112
|
-
"module": "
|
|
8372
|
+
"name": "DescribeInteractionInput",
|
|
8373
|
+
"module": "./headless.types"
|
|
8113
8374
|
}
|
|
8114
8375
|
},
|
|
8115
8376
|
{
|
|
8116
8377
|
"kind": "js",
|
|
8117
|
-
"name": "
|
|
8378
|
+
"name": "HeadlessActArgs",
|
|
8118
8379
|
"declaration": {
|
|
8119
|
-
"name": "
|
|
8120
|
-
"module": "
|
|
8380
|
+
"name": "HeadlessActArgs",
|
|
8381
|
+
"module": "./headless.types"
|
|
8121
8382
|
}
|
|
8122
|
-
}
|
|
8123
|
-
]
|
|
8124
|
-
},
|
|
8125
|
-
{
|
|
8126
|
-
"kind": "javascript-module",
|
|
8127
|
-
"path": "src/genesis/register-genesis-assistant.ts",
|
|
8128
|
-
"declarations": [
|
|
8129
|
-
{
|
|
8130
|
-
"kind": "variable",
|
|
8131
|
-
"name": "GENESIS_AGENT_NAME",
|
|
8132
|
-
"type": {
|
|
8133
|
-
"text": "string"
|
|
8134
|
-
},
|
|
8135
|
-
"default": "'genesis-assistant'",
|
|
8136
|
-
"description": "The name of the agent registerGenesisAssistant builds."
|
|
8137
8383
|
},
|
|
8138
|
-
{
|
|
8139
|
-
"kind": "function",
|
|
8140
|
-
"name": "registerGenesisAssistant",
|
|
8141
|
-
"return": {
|
|
8142
|
-
"type": {
|
|
8143
|
-
"text": "GenesisAssistantRegistration"
|
|
8144
|
-
}
|
|
8145
|
-
},
|
|
8146
|
-
"parameters": [
|
|
8147
|
-
{
|
|
8148
|
-
"name": "options",
|
|
8149
|
-
"type": {
|
|
8150
|
-
"text": "RegisterGenesisAssistantOptions"
|
|
8151
|
-
}
|
|
8152
|
-
}
|
|
8153
|
-
],
|
|
8154
|
-
"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."
|
|
8155
|
-
}
|
|
8156
|
-
],
|
|
8157
|
-
"exports": [
|
|
8158
8384
|
{
|
|
8159
8385
|
"kind": "js",
|
|
8160
|
-
"name": "
|
|
8386
|
+
"name": "HeadlessActResult",
|
|
8161
8387
|
"declaration": {
|
|
8162
|
-
"name": "
|
|
8163
|
-
"module": "
|
|
8388
|
+
"name": "HeadlessActResult",
|
|
8389
|
+
"module": "./headless.types"
|
|
8164
8390
|
}
|
|
8165
8391
|
},
|
|
8166
8392
|
{
|
|
8167
8393
|
"kind": "js",
|
|
8168
|
-
"name": "
|
|
8394
|
+
"name": "HeadlessDebugOptions",
|
|
8169
8395
|
"declaration": {
|
|
8170
|
-
"name": "
|
|
8171
|
-
"module": "
|
|
8396
|
+
"name": "HeadlessDebugOptions",
|
|
8397
|
+
"module": "./headless.types"
|
|
8172
8398
|
}
|
|
8173
|
-
}
|
|
8174
|
-
]
|
|
8175
|
-
},
|
|
8176
|
-
{
|
|
8177
|
-
"kind": "javascript-module",
|
|
8178
|
-
"path": "src/genesis/resource-tools.ts",
|
|
8179
|
-
"declarations": [
|
|
8180
|
-
{
|
|
8181
|
-
"kind": "variable",
|
|
8182
|
-
"name": "GENESIS_DATA_SOURCE",
|
|
8183
|
-
"type": {
|
|
8184
|
-
"text": "string"
|
|
8185
|
-
},
|
|
8186
|
-
"default": "'app-database'",
|
|
8187
|
-
"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."
|
|
8188
8399
|
},
|
|
8189
|
-
{
|
|
8190
|
-
"kind": "function",
|
|
8191
|
-
"name": "createGenesisResourceTools",
|
|
8192
|
-
"return": {
|
|
8193
|
-
"type": {
|
|
8194
|
-
"text": "GenesisResourceTools"
|
|
8195
|
-
}
|
|
8196
|
-
},
|
|
8197
|
-
"parameters": [
|
|
8198
|
-
{
|
|
8199
|
-
"name": "resources",
|
|
8200
|
-
"type": {
|
|
8201
|
-
"text": "readonly GenesisAiResource[]"
|
|
8202
|
-
}
|
|
8203
|
-
},
|
|
8204
|
-
{
|
|
8205
|
-
"name": "options",
|
|
8206
|
-
"default": "{}",
|
|
8207
|
-
"type": {
|
|
8208
|
-
"text": "GenesisResourceToolsOptions"
|
|
8209
|
-
}
|
|
8210
|
-
}
|
|
8211
|
-
],
|
|
8212
|
-
"description": "Builds the assistant's tools from an app's resources."
|
|
8213
|
-
}
|
|
8214
|
-
],
|
|
8215
|
-
"exports": [
|
|
8216
8400
|
{
|
|
8217
8401
|
"kind": "js",
|
|
8218
|
-
"name": "
|
|
8402
|
+
"name": "HeadlessEvent",
|
|
8219
8403
|
"declaration": {
|
|
8220
|
-
"name": "
|
|
8221
|
-
"module": "
|
|
8404
|
+
"name": "HeadlessEvent",
|
|
8405
|
+
"module": "./headless.types"
|
|
8222
8406
|
}
|
|
8223
8407
|
},
|
|
8224
8408
|
{
|
|
8225
8409
|
"kind": "js",
|
|
8226
|
-
"name": "
|
|
8410
|
+
"name": "HeadlessEventBase",
|
|
8227
8411
|
"declaration": {
|
|
8228
|
-
"name": "
|
|
8229
|
-
"module": "
|
|
8412
|
+
"name": "HeadlessEventBase",
|
|
8413
|
+
"module": "./headless.types"
|
|
8230
8414
|
}
|
|
8231
|
-
}
|
|
8232
|
-
]
|
|
8233
|
-
},
|
|
8234
|
-
{
|
|
8235
|
-
"kind": "javascript-module",
|
|
8236
|
-
"path": "src/genesis/review-model.ts",
|
|
8237
|
-
"declarations": [
|
|
8238
|
-
{
|
|
8239
|
-
"kind": "variable",
|
|
8240
|
-
"name": "LONG_VALUE",
|
|
8241
|
-
"type": {
|
|
8242
|
-
"text": "number"
|
|
8243
|
-
},
|
|
8244
|
-
"default": "24",
|
|
8245
|
-
"description": "Past this many characters a value wraps; at or under it, it stays on one line."
|
|
8246
|
-
}
|
|
8247
|
-
],
|
|
8248
|
-
"exports": [
|
|
8415
|
+
},
|
|
8249
8416
|
{
|
|
8250
8417
|
"kind": "js",
|
|
8251
|
-
"name": "
|
|
8418
|
+
"name": "HeadlessEventType",
|
|
8252
8419
|
"declaration": {
|
|
8253
|
-
"name": "
|
|
8254
|
-
"module": "./
|
|
8420
|
+
"name": "HeadlessEventType",
|
|
8421
|
+
"module": "./headless.types"
|
|
8255
8422
|
}
|
|
8256
8423
|
},
|
|
8257
8424
|
{
|
|
8258
8425
|
"kind": "js",
|
|
8259
|
-
"name": "
|
|
8426
|
+
"name": "HeadlessPersistence",
|
|
8260
8427
|
"declaration": {
|
|
8261
|
-
"name": "
|
|
8262
|
-
"module": "./
|
|
8428
|
+
"name": "HeadlessPersistence",
|
|
8429
|
+
"module": "./headless.types"
|
|
8263
8430
|
}
|
|
8264
8431
|
},
|
|
8265
8432
|
{
|
|
8266
8433
|
"kind": "js",
|
|
8267
|
-
"name": "
|
|
8434
|
+
"name": "HeadlessPersistenceBinding",
|
|
8268
8435
|
"declaration": {
|
|
8269
|
-
"name": "
|
|
8270
|
-
"module": "
|
|
8436
|
+
"name": "HeadlessPersistenceBinding",
|
|
8437
|
+
"module": "./headless.types"
|
|
8271
8438
|
}
|
|
8272
|
-
}
|
|
8273
|
-
]
|
|
8274
|
-
},
|
|
8275
|
-
{
|
|
8276
|
-
"kind": "javascript-module",
|
|
8277
|
-
"path": "src/genesis/review-payload.ts",
|
|
8278
|
-
"declarations": [],
|
|
8279
|
-
"exports": []
|
|
8280
|
-
},
|
|
8281
|
-
{
|
|
8282
|
-
"kind": "javascript-module",
|
|
8283
|
-
"path": "src/genesis/row-source.ts",
|
|
8284
|
-
"declarations": [],
|
|
8285
|
-
"exports": []
|
|
8286
|
-
},
|
|
8287
|
-
{
|
|
8288
|
-
"kind": "javascript-module",
|
|
8289
|
-
"path": "src/genesis/serialisable.ts",
|
|
8290
|
-
"declarations": [],
|
|
8291
|
-
"exports": []
|
|
8292
|
-
},
|
|
8293
|
-
{
|
|
8294
|
-
"kind": "javascript-module",
|
|
8295
|
-
"path": "src/genesis/server-text.ts",
|
|
8296
|
-
"declarations": [
|
|
8439
|
+
},
|
|
8297
8440
|
{
|
|
8298
|
-
"kind": "
|
|
8299
|
-
"name": "
|
|
8300
|
-
"
|
|
8301
|
-
"
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
},
|
|
8305
|
-
"parameters": [
|
|
8306
|
-
{
|
|
8307
|
-
"name": "text",
|
|
8308
|
-
"type": {
|
|
8309
|
-
"text": "string"
|
|
8310
|
-
}
|
|
8311
|
-
}
|
|
8312
|
-
],
|
|
8313
|
-
"description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
|
|
8441
|
+
"kind": "js",
|
|
8442
|
+
"name": "HeadlessPersistenceHost",
|
|
8443
|
+
"declaration": {
|
|
8444
|
+
"name": "HeadlessPersistenceHost",
|
|
8445
|
+
"module": "./headless.types"
|
|
8446
|
+
}
|
|
8314
8447
|
},
|
|
8315
8448
|
{
|
|
8316
|
-
"kind": "
|
|
8317
|
-
"name": "
|
|
8318
|
-
"
|
|
8319
|
-
"
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
"parameters": [
|
|
8324
|
-
{
|
|
8325
|
-
"name": "error",
|
|
8326
|
-
"type": {
|
|
8327
|
-
"text": "unknown"
|
|
8328
|
-
}
|
|
8329
|
-
}
|
|
8330
|
-
],
|
|
8331
|
-
"description": "Whatever a rejection turns out to be, as a sentence."
|
|
8332
|
-
}
|
|
8333
|
-
],
|
|
8334
|
-
"exports": [
|
|
8449
|
+
"kind": "js",
|
|
8450
|
+
"name": "HeadlessReadRequest",
|
|
8451
|
+
"declaration": {
|
|
8452
|
+
"name": "HeadlessReadRequest",
|
|
8453
|
+
"module": "./headless.types"
|
|
8454
|
+
}
|
|
8455
|
+
},
|
|
8335
8456
|
{
|
|
8336
8457
|
"kind": "js",
|
|
8337
|
-
"name": "
|
|
8458
|
+
"name": "HeadlessReadResult",
|
|
8338
8459
|
"declaration": {
|
|
8339
|
-
"name": "
|
|
8340
|
-
"module": "
|
|
8460
|
+
"name": "HeadlessReadResult",
|
|
8461
|
+
"module": "./headless.types"
|
|
8341
8462
|
}
|
|
8342
8463
|
},
|
|
8343
8464
|
{
|
|
8344
8465
|
"kind": "js",
|
|
8345
|
-
"name": "
|
|
8466
|
+
"name": "HeadlessResult",
|
|
8346
8467
|
"declaration": {
|
|
8347
|
-
"name": "
|
|
8348
|
-
"module": "
|
|
8468
|
+
"name": "HeadlessResult",
|
|
8469
|
+
"module": "./headless.types"
|
|
8349
8470
|
}
|
|
8350
|
-
}
|
|
8351
|
-
]
|
|
8352
|
-
},
|
|
8353
|
-
{
|
|
8354
|
-
"kind": "javascript-module",
|
|
8355
|
-
"path": "src/genesis/type-name.ts",
|
|
8356
|
-
"declarations": [],
|
|
8357
|
-
"exports": []
|
|
8358
|
-
},
|
|
8359
|
-
{
|
|
8360
|
-
"kind": "javascript-module",
|
|
8361
|
-
"path": "src/genesis/types.ts",
|
|
8362
|
-
"declarations": [
|
|
8471
|
+
},
|
|
8363
8472
|
{
|
|
8364
|
-
"kind": "
|
|
8365
|
-
"name": "
|
|
8366
|
-
"
|
|
8367
|
-
"
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
}
|
|
8372
|
-
],
|
|
8373
|
-
"exports": [
|
|
8473
|
+
"kind": "js",
|
|
8474
|
+
"name": "HeadlessRestoreOutcome",
|
|
8475
|
+
"declaration": {
|
|
8476
|
+
"name": "HeadlessRestoreOutcome",
|
|
8477
|
+
"module": "./headless.types"
|
|
8478
|
+
}
|
|
8479
|
+
},
|
|
8374
8480
|
{
|
|
8375
8481
|
"kind": "js",
|
|
8376
|
-
"name": "
|
|
8482
|
+
"name": "HeadlessSendOptions",
|
|
8377
8483
|
"declaration": {
|
|
8378
|
-
"name": "
|
|
8379
|
-
"module": "
|
|
8484
|
+
"name": "HeadlessSendOptions",
|
|
8485
|
+
"module": "./headless.types"
|
|
8380
8486
|
}
|
|
8381
|
-
}
|
|
8382
|
-
]
|
|
8383
|
-
},
|
|
8384
|
-
{
|
|
8385
|
-
"kind": "javascript-module",
|
|
8386
|
-
"path": "src/genesis/value-compare.ts",
|
|
8387
|
-
"declarations": [],
|
|
8388
|
-
"exports": []
|
|
8389
|
-
},
|
|
8390
|
-
{
|
|
8391
|
-
"kind": "javascript-module",
|
|
8392
|
-
"path": "src/genesis/write-commit.ts",
|
|
8393
|
-
"declarations": [],
|
|
8394
|
-
"exports": []
|
|
8395
|
-
},
|
|
8396
|
-
{
|
|
8397
|
-
"kind": "javascript-module",
|
|
8398
|
-
"path": "src/genesis/write-op.ts",
|
|
8399
|
-
"declarations": [],
|
|
8400
|
-
"exports": []
|
|
8401
|
-
},
|
|
8402
|
-
{
|
|
8403
|
-
"kind": "javascript-module",
|
|
8404
|
-
"path": "src/genesis/write-outcome.ts",
|
|
8405
|
-
"declarations": [],
|
|
8406
|
-
"exports": []
|
|
8407
|
-
},
|
|
8408
|
-
{
|
|
8409
|
-
"kind": "javascript-module",
|
|
8410
|
-
"path": "src/genesis/write-payload.ts",
|
|
8411
|
-
"declarations": [
|
|
8487
|
+
},
|
|
8412
8488
|
{
|
|
8413
|
-
"kind": "
|
|
8414
|
-
"name": "
|
|
8415
|
-
"
|
|
8416
|
-
"
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
"parameters": [
|
|
8421
|
-
{
|
|
8422
|
-
"name": "fields",
|
|
8423
|
-
"type": {
|
|
8424
|
-
"text": "readonly GenesisEventField[]"
|
|
8425
|
-
}
|
|
8426
|
-
},
|
|
8427
|
-
{
|
|
8428
|
-
"name": "row",
|
|
8429
|
-
"type": {
|
|
8430
|
-
"text": "unknown"
|
|
8431
|
-
}
|
|
8432
|
-
},
|
|
8433
|
-
{
|
|
8434
|
-
"name": "{ op, preImage, unchecked }",
|
|
8435
|
-
"type": {
|
|
8436
|
-
"text": "BuildPayloadOptions"
|
|
8437
|
-
}
|
|
8438
|
-
}
|
|
8439
|
-
]
|
|
8440
|
-
}
|
|
8441
|
-
],
|
|
8442
|
-
"exports": [
|
|
8489
|
+
"kind": "js",
|
|
8490
|
+
"name": "HeadlessSessionOptions",
|
|
8491
|
+
"declaration": {
|
|
8492
|
+
"name": "HeadlessSessionOptions",
|
|
8493
|
+
"module": "./headless.types"
|
|
8494
|
+
}
|
|
8495
|
+
},
|
|
8443
8496
|
{
|
|
8444
8497
|
"kind": "js",
|
|
8445
|
-
"name": "
|
|
8498
|
+
"name": "HeadlessState",
|
|
8446
8499
|
"declaration": {
|
|
8447
|
-
"name": "
|
|
8448
|
-
"module": "
|
|
8500
|
+
"name": "HeadlessState",
|
|
8501
|
+
"module": "./headless.types"
|
|
8449
8502
|
}
|
|
8450
|
-
}
|
|
8451
|
-
]
|
|
8452
|
-
},
|
|
8453
|
-
{
|
|
8454
|
-
"kind": "javascript-module",
|
|
8455
|
-
"path": "src/genesis/write-plan.ts",
|
|
8456
|
-
"declarations": [
|
|
8503
|
+
},
|
|
8457
8504
|
{
|
|
8458
|
-
"kind": "
|
|
8459
|
-
"name": "
|
|
8460
|
-
"
|
|
8461
|
-
"
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
}
|
|
8466
|
-
],
|
|
8467
|
-
"exports": [
|
|
8505
|
+
"kind": "js",
|
|
8506
|
+
"name": "HeadlessWaitRequest",
|
|
8507
|
+
"declaration": {
|
|
8508
|
+
"name": "HeadlessWaitRequest",
|
|
8509
|
+
"module": "./headless.types"
|
|
8510
|
+
}
|
|
8511
|
+
},
|
|
8468
8512
|
{
|
|
8469
8513
|
"kind": "js",
|
|
8470
|
-
"name": "
|
|
8514
|
+
"name": "HeadlessWaitResult",
|
|
8471
8515
|
"declaration": {
|
|
8472
|
-
"name": "
|
|
8473
|
-
"module": "
|
|
8516
|
+
"name": "HeadlessWaitResult",
|
|
8517
|
+
"module": "./headless.types"
|
|
8474
8518
|
}
|
|
8475
|
-
}
|
|
8476
|
-
]
|
|
8477
|
-
},
|
|
8478
|
-
{
|
|
8479
|
-
"kind": "javascript-module",
|
|
8480
|
-
"path": "src/genesis/write-tools.ts",
|
|
8481
|
-
"declarations": [
|
|
8519
|
+
},
|
|
8482
8520
|
{
|
|
8483
|
-
"kind": "
|
|
8484
|
-
"name": "
|
|
8485
|
-
"
|
|
8486
|
-
"
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
"parameters": [
|
|
8491
|
-
{
|
|
8492
|
-
"name": "resources",
|
|
8493
|
-
"type": {
|
|
8494
|
-
"text": "readonly GenesisAiResource[]"
|
|
8495
|
-
}
|
|
8496
|
-
},
|
|
8497
|
-
{
|
|
8498
|
-
"name": "options",
|
|
8499
|
-
"default": "{}",
|
|
8500
|
-
"type": {
|
|
8501
|
-
"text": "GenesisWriteToolsOptions"
|
|
8502
|
-
}
|
|
8503
|
-
}
|
|
8504
|
-
],
|
|
8505
|
-
"description": "Builds the assistant's write tools from an app's event resources."
|
|
8506
|
-
}
|
|
8507
|
-
],
|
|
8508
|
-
"exports": [
|
|
8521
|
+
"kind": "js",
|
|
8522
|
+
"name": "InteractionDescription",
|
|
8523
|
+
"declaration": {
|
|
8524
|
+
"name": "InteractionDescription",
|
|
8525
|
+
"module": "./headless.types"
|
|
8526
|
+
}
|
|
8527
|
+
},
|
|
8509
8528
|
{
|
|
8510
8529
|
"kind": "js",
|
|
8511
|
-
"name": "
|
|
8530
|
+
"name": "PendingSummary",
|
|
8512
8531
|
"declaration": {
|
|
8513
|
-
"name": "
|
|
8514
|
-
"module": "
|
|
8532
|
+
"name": "PendingSummary",
|
|
8533
|
+
"module": "./headless.types"
|
|
8515
8534
|
}
|
|
8516
8535
|
}
|
|
8517
8536
|
]
|
|
8518
8537
|
},
|
|
8519
|
-
{
|
|
8520
|
-
"kind": "javascript-module",
|
|
8521
|
-
"path": "src/genesis/write-turn.ts",
|
|
8522
|
-
"declarations": [],
|
|
8523
|
-
"exports": []
|
|
8524
|
-
},
|
|
8525
8538
|
{
|
|
8526
8539
|
"kind": "javascript-module",
|
|
8527
8540
|
"path": "src/headless-server/compact.ts",
|
|
@@ -19123,6 +19136,15 @@
|
|
|
19123
19136
|
}
|
|
19124
19137
|
}
|
|
19125
19138
|
},
|
|
19139
|
+
{
|
|
19140
|
+
"kind": "method",
|
|
19141
|
+
"name": "getWaitingCallers",
|
|
19142
|
+
"return": {
|
|
19143
|
+
"type": {
|
|
19144
|
+
"text": "AgentConfig[]"
|
|
19145
|
+
}
|
|
19146
|
+
}
|
|
19147
|
+
},
|
|
19126
19148
|
{
|
|
19127
19149
|
"kind": "method",
|
|
19128
19150
|
"name": "getHandOffData",
|
|
@@ -26248,6 +26270,20 @@
|
|
|
26248
26270
|
"module": "src/components/ai-driver/base-driver-decorator.ts"
|
|
26249
26271
|
}
|
|
26250
26272
|
},
|
|
26273
|
+
{
|
|
26274
|
+
"kind": "method",
|
|
26275
|
+
"name": "getWaitingCallers",
|
|
26276
|
+
"return": {
|
|
26277
|
+
"type": {
|
|
26278
|
+
"text": "AgentConfig[]"
|
|
26279
|
+
}
|
|
26280
|
+
},
|
|
26281
|
+
"description": "{@inheritDoc AiDriver.getWaitingCallers}",
|
|
26282
|
+
"inheritedFrom": {
|
|
26283
|
+
"name": "BaseDriverDecorator",
|
|
26284
|
+
"module": "src/components/ai-driver/base-driver-decorator.ts"
|
|
26285
|
+
}
|
|
26286
|
+
},
|
|
26251
26287
|
{
|
|
26252
26288
|
"kind": "method",
|
|
26253
26289
|
"name": "serializeWaitingCallers",
|