@genesislcap/ai-assistant 15.100.0 → 15.101.0-public-telemetry.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +829 -829
- package/dist/dts/react.d.ts +10 -10
- package/dist/react.cjs +18 -18
- package/dist/react.mjs +17 -17
- package/package.json +17 -17
|
@@ -5318,6 +5318,237 @@
|
|
|
5318
5318
|
}
|
|
5319
5319
|
]
|
|
5320
5320
|
},
|
|
5321
|
+
{
|
|
5322
|
+
"kind": "javascript-module",
|
|
5323
|
+
"path": "src/config/config.ts",
|
|
5324
|
+
"declarations": [
|
|
5325
|
+
{
|
|
5326
|
+
"kind": "function",
|
|
5327
|
+
"name": "defineAgent",
|
|
5328
|
+
"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```"
|
|
5329
|
+
}
|
|
5330
|
+
],
|
|
5331
|
+
"exports": [
|
|
5332
|
+
{
|
|
5333
|
+
"kind": "js",
|
|
5334
|
+
"name": "CachePolicy",
|
|
5335
|
+
"declaration": {
|
|
5336
|
+
"name": "CachePolicy",
|
|
5337
|
+
"module": "src/config/config.ts"
|
|
5338
|
+
}
|
|
5339
|
+
},
|
|
5340
|
+
{
|
|
5341
|
+
"kind": "js",
|
|
5342
|
+
"name": "ChatFallback",
|
|
5343
|
+
"declaration": {
|
|
5344
|
+
"name": "ChatFallback",
|
|
5345
|
+
"module": "src/config/config.ts"
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
5348
|
+
{
|
|
5349
|
+
"kind": "js",
|
|
5350
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5351
|
+
"declaration": {
|
|
5352
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5353
|
+
"module": "src/config/config.ts"
|
|
5354
|
+
}
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
"kind": "js",
|
|
5358
|
+
"name": "ChatThinkingPolicy",
|
|
5359
|
+
"declaration": {
|
|
5360
|
+
"name": "ChatThinkingPolicy",
|
|
5361
|
+
"module": "src/config/config.ts"
|
|
5362
|
+
}
|
|
5363
|
+
},
|
|
5364
|
+
{
|
|
5365
|
+
"kind": "js",
|
|
5366
|
+
"name": "ChatToolChoice",
|
|
5367
|
+
"declaration": {
|
|
5368
|
+
"name": "ChatToolChoice",
|
|
5369
|
+
"module": "src/config/config.ts"
|
|
5370
|
+
}
|
|
5371
|
+
},
|
|
5372
|
+
{
|
|
5373
|
+
"kind": "js",
|
|
5374
|
+
"name": "defineAgent",
|
|
5375
|
+
"declaration": {
|
|
5376
|
+
"name": "defineAgent",
|
|
5377
|
+
"module": "src/config/config.ts"
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
]
|
|
5381
|
+
},
|
|
5382
|
+
{
|
|
5383
|
+
"kind": "javascript-module",
|
|
5384
|
+
"path": "src/config/define-stateful-agent.ts",
|
|
5385
|
+
"declarations": [
|
|
5386
|
+
{
|
|
5387
|
+
"kind": "function",
|
|
5388
|
+
"name": "restoreMachine",
|
|
5389
|
+
"return": {
|
|
5390
|
+
"type": {
|
|
5391
|
+
"text": "void"
|
|
5392
|
+
}
|
|
5393
|
+
},
|
|
5394
|
+
"parameters": [
|
|
5395
|
+
{
|
|
5396
|
+
"name": "machine",
|
|
5397
|
+
"type": {
|
|
5398
|
+
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5399
|
+
},
|
|
5400
|
+
"description": "the machine to restore (already constructed/started)."
|
|
5401
|
+
},
|
|
5402
|
+
{
|
|
5403
|
+
"name": "restored",
|
|
5404
|
+
"type": {
|
|
5405
|
+
"text": "unknown"
|
|
5406
|
+
},
|
|
5407
|
+
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5408
|
+
},
|
|
5409
|
+
{
|
|
5410
|
+
"name": "key",
|
|
5411
|
+
"default": "'machine'",
|
|
5412
|
+
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
5413
|
+
}
|
|
5414
|
+
],
|
|
5415
|
+
"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."
|
|
5416
|
+
},
|
|
5417
|
+
{
|
|
5418
|
+
"kind": "function",
|
|
5419
|
+
"name": "defineStatefulAgent",
|
|
5420
|
+
"return": {
|
|
5421
|
+
"type": {
|
|
5422
|
+
"text": "AgentConfig"
|
|
5423
|
+
}
|
|
5424
|
+
},
|
|
5425
|
+
"parameters": [
|
|
5426
|
+
{
|
|
5427
|
+
"name": "opts",
|
|
5428
|
+
"type": {
|
|
5429
|
+
"text": "StatefulAgentInit<S>"
|
|
5430
|
+
}
|
|
5431
|
+
}
|
|
5432
|
+
],
|
|
5433
|
+
"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."
|
|
5434
|
+
},
|
|
5435
|
+
{
|
|
5436
|
+
"kind": "function",
|
|
5437
|
+
"name": "defineAutopilot",
|
|
5438
|
+
"return": {
|
|
5439
|
+
"type": {
|
|
5440
|
+
"text": "AutopilotConfig<S>"
|
|
5441
|
+
}
|
|
5442
|
+
},
|
|
5443
|
+
"parameters": [
|
|
5444
|
+
{
|
|
5445
|
+
"name": "config",
|
|
5446
|
+
"type": {
|
|
5447
|
+
"text": "AutopilotConfig<S>"
|
|
5448
|
+
}
|
|
5449
|
+
}
|
|
5450
|
+
],
|
|
5451
|
+
"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."
|
|
5452
|
+
}
|
|
5453
|
+
],
|
|
5454
|
+
"exports": [
|
|
5455
|
+
{
|
|
5456
|
+
"kind": "js",
|
|
5457
|
+
"name": "restoreMachine",
|
|
5458
|
+
"declaration": {
|
|
5459
|
+
"name": "restoreMachine",
|
|
5460
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
5461
|
+
}
|
|
5462
|
+
},
|
|
5463
|
+
{
|
|
5464
|
+
"kind": "js",
|
|
5465
|
+
"name": "defineStatefulAgent",
|
|
5466
|
+
"declaration": {
|
|
5467
|
+
"name": "defineStatefulAgent",
|
|
5468
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
5469
|
+
}
|
|
5470
|
+
},
|
|
5471
|
+
{
|
|
5472
|
+
"kind": "js",
|
|
5473
|
+
"name": "defineAutopilot",
|
|
5474
|
+
"declaration": {
|
|
5475
|
+
"name": "defineAutopilot",
|
|
5476
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
5477
|
+
}
|
|
5478
|
+
}
|
|
5479
|
+
]
|
|
5480
|
+
},
|
|
5481
|
+
{
|
|
5482
|
+
"kind": "javascript-module",
|
|
5483
|
+
"path": "src/config/fallback-agents.ts",
|
|
5484
|
+
"declarations": [
|
|
5485
|
+
{
|
|
5486
|
+
"kind": "variable",
|
|
5487
|
+
"name": "friendlyFallbackAgent",
|
|
5488
|
+
"type": {
|
|
5489
|
+
"text": "FallbackAgentConfig"
|
|
5490
|
+
},
|
|
5491
|
+
"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}",
|
|
5492
|
+
"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."
|
|
5493
|
+
},
|
|
5494
|
+
{
|
|
5495
|
+
"kind": "variable",
|
|
5496
|
+
"name": "strictFallbackAgent",
|
|
5497
|
+
"type": {
|
|
5498
|
+
"text": "FallbackAgentConfig"
|
|
5499
|
+
},
|
|
5500
|
+
"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}",
|
|
5501
|
+
"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."
|
|
5502
|
+
}
|
|
5503
|
+
],
|
|
5504
|
+
"exports": [
|
|
5505
|
+
{
|
|
5506
|
+
"kind": "js",
|
|
5507
|
+
"name": "friendlyFallbackAgent",
|
|
5508
|
+
"declaration": {
|
|
5509
|
+
"name": "friendlyFallbackAgent",
|
|
5510
|
+
"module": "src/config/fallback-agents.ts"
|
|
5511
|
+
}
|
|
5512
|
+
},
|
|
5513
|
+
{
|
|
5514
|
+
"kind": "js",
|
|
5515
|
+
"name": "strictFallbackAgent",
|
|
5516
|
+
"declaration": {
|
|
5517
|
+
"name": "strictFallbackAgent",
|
|
5518
|
+
"module": "src/config/fallback-agents.ts"
|
|
5519
|
+
}
|
|
5520
|
+
}
|
|
5521
|
+
]
|
|
5522
|
+
},
|
|
5523
|
+
{
|
|
5524
|
+
"kind": "javascript-module",
|
|
5525
|
+
"path": "src/config/index.ts",
|
|
5526
|
+
"declarations": [],
|
|
5527
|
+
"exports": [
|
|
5528
|
+
{
|
|
5529
|
+
"kind": "js",
|
|
5530
|
+
"name": "*",
|
|
5531
|
+
"declaration": {
|
|
5532
|
+
"name": "*",
|
|
5533
|
+
"package": "./config"
|
|
5534
|
+
}
|
|
5535
|
+
},
|
|
5536
|
+
{
|
|
5537
|
+
"kind": "js",
|
|
5538
|
+
"name": "*",
|
|
5539
|
+
"declaration": {
|
|
5540
|
+
"name": "*",
|
|
5541
|
+
"package": "./fallback-agents"
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
]
|
|
5545
|
+
},
|
|
5546
|
+
{
|
|
5547
|
+
"kind": "javascript-module",
|
|
5548
|
+
"path": "src/config/validate-providers.ts",
|
|
5549
|
+
"declarations": [],
|
|
5550
|
+
"exports": []
|
|
5551
|
+
},
|
|
5321
5552
|
{
|
|
5322
5553
|
"kind": "javascript-module",
|
|
5323
5554
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -5844,254 +6075,23 @@
|
|
|
5844
6075
|
},
|
|
5845
6076
|
{
|
|
5846
6077
|
"kind": "javascript-module",
|
|
5847
|
-
"path": "src/
|
|
6078
|
+
"path": "src/genesis/calendar.ts",
|
|
6079
|
+
"declarations": [],
|
|
6080
|
+
"exports": []
|
|
6081
|
+
},
|
|
6082
|
+
{
|
|
6083
|
+
"kind": "javascript-module",
|
|
6084
|
+
"path": "src/genesis/config.ts",
|
|
5848
6085
|
"declarations": [
|
|
5849
6086
|
{
|
|
5850
|
-
"kind": "
|
|
5851
|
-
"name": "
|
|
5852
|
-
"
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
"name": "CachePolicy",
|
|
5859
|
-
"declaration": {
|
|
5860
|
-
"name": "CachePolicy",
|
|
5861
|
-
"module": "src/config/config.ts"
|
|
5862
|
-
}
|
|
5863
|
-
},
|
|
5864
|
-
{
|
|
5865
|
-
"kind": "js",
|
|
5866
|
-
"name": "ChatFallback",
|
|
5867
|
-
"declaration": {
|
|
5868
|
-
"name": "ChatFallback",
|
|
5869
|
-
"module": "src/config/config.ts"
|
|
5870
|
-
}
|
|
5871
|
-
},
|
|
5872
|
-
{
|
|
5873
|
-
"kind": "js",
|
|
5874
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5875
|
-
"declaration": {
|
|
5876
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5877
|
-
"module": "src/config/config.ts"
|
|
5878
|
-
}
|
|
5879
|
-
},
|
|
5880
|
-
{
|
|
5881
|
-
"kind": "js",
|
|
5882
|
-
"name": "ChatThinkingPolicy",
|
|
5883
|
-
"declaration": {
|
|
5884
|
-
"name": "ChatThinkingPolicy",
|
|
5885
|
-
"module": "src/config/config.ts"
|
|
5886
|
-
}
|
|
5887
|
-
},
|
|
5888
|
-
{
|
|
5889
|
-
"kind": "js",
|
|
5890
|
-
"name": "ChatToolChoice",
|
|
5891
|
-
"declaration": {
|
|
5892
|
-
"name": "ChatToolChoice",
|
|
5893
|
-
"module": "src/config/config.ts"
|
|
5894
|
-
}
|
|
5895
|
-
},
|
|
5896
|
-
{
|
|
5897
|
-
"kind": "js",
|
|
5898
|
-
"name": "defineAgent",
|
|
5899
|
-
"declaration": {
|
|
5900
|
-
"name": "defineAgent",
|
|
5901
|
-
"module": "src/config/config.ts"
|
|
5902
|
-
}
|
|
5903
|
-
}
|
|
5904
|
-
]
|
|
5905
|
-
},
|
|
5906
|
-
{
|
|
5907
|
-
"kind": "javascript-module",
|
|
5908
|
-
"path": "src/config/define-stateful-agent.ts",
|
|
5909
|
-
"declarations": [
|
|
5910
|
-
{
|
|
5911
|
-
"kind": "function",
|
|
5912
|
-
"name": "restoreMachine",
|
|
5913
|
-
"return": {
|
|
5914
|
-
"type": {
|
|
5915
|
-
"text": "void"
|
|
5916
|
-
}
|
|
5917
|
-
},
|
|
5918
|
-
"parameters": [
|
|
5919
|
-
{
|
|
5920
|
-
"name": "machine",
|
|
5921
|
-
"type": {
|
|
5922
|
-
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5923
|
-
},
|
|
5924
|
-
"description": "the machine to restore (already constructed/started)."
|
|
5925
|
-
},
|
|
5926
|
-
{
|
|
5927
|
-
"name": "restored",
|
|
5928
|
-
"type": {
|
|
5929
|
-
"text": "unknown"
|
|
5930
|
-
},
|
|
5931
|
-
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5932
|
-
},
|
|
5933
|
-
{
|
|
5934
|
-
"name": "key",
|
|
5935
|
-
"default": "'machine'",
|
|
5936
|
-
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
5937
|
-
}
|
|
5938
|
-
],
|
|
5939
|
-
"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."
|
|
5940
|
-
},
|
|
5941
|
-
{
|
|
5942
|
-
"kind": "function",
|
|
5943
|
-
"name": "defineStatefulAgent",
|
|
5944
|
-
"return": {
|
|
5945
|
-
"type": {
|
|
5946
|
-
"text": "AgentConfig"
|
|
5947
|
-
}
|
|
5948
|
-
},
|
|
5949
|
-
"parameters": [
|
|
5950
|
-
{
|
|
5951
|
-
"name": "opts",
|
|
5952
|
-
"type": {
|
|
5953
|
-
"text": "StatefulAgentInit<S>"
|
|
5954
|
-
}
|
|
5955
|
-
}
|
|
5956
|
-
],
|
|
5957
|
-
"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."
|
|
5958
|
-
},
|
|
5959
|
-
{
|
|
5960
|
-
"kind": "function",
|
|
5961
|
-
"name": "defineAutopilot",
|
|
5962
|
-
"return": {
|
|
5963
|
-
"type": {
|
|
5964
|
-
"text": "AutopilotConfig<S>"
|
|
5965
|
-
}
|
|
5966
|
-
},
|
|
5967
|
-
"parameters": [
|
|
5968
|
-
{
|
|
5969
|
-
"name": "config",
|
|
5970
|
-
"type": {
|
|
5971
|
-
"text": "AutopilotConfig<S>"
|
|
5972
|
-
}
|
|
5973
|
-
}
|
|
5974
|
-
],
|
|
5975
|
-
"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."
|
|
5976
|
-
}
|
|
5977
|
-
],
|
|
5978
|
-
"exports": [
|
|
5979
|
-
{
|
|
5980
|
-
"kind": "js",
|
|
5981
|
-
"name": "restoreMachine",
|
|
5982
|
-
"declaration": {
|
|
5983
|
-
"name": "restoreMachine",
|
|
5984
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5985
|
-
}
|
|
5986
|
-
},
|
|
5987
|
-
{
|
|
5988
|
-
"kind": "js",
|
|
5989
|
-
"name": "defineStatefulAgent",
|
|
5990
|
-
"declaration": {
|
|
5991
|
-
"name": "defineStatefulAgent",
|
|
5992
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5993
|
-
}
|
|
5994
|
-
},
|
|
5995
|
-
{
|
|
5996
|
-
"kind": "js",
|
|
5997
|
-
"name": "defineAutopilot",
|
|
5998
|
-
"declaration": {
|
|
5999
|
-
"name": "defineAutopilot",
|
|
6000
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
6001
|
-
}
|
|
6002
|
-
}
|
|
6003
|
-
]
|
|
6004
|
-
},
|
|
6005
|
-
{
|
|
6006
|
-
"kind": "javascript-module",
|
|
6007
|
-
"path": "src/config/fallback-agents.ts",
|
|
6008
|
-
"declarations": [
|
|
6009
|
-
{
|
|
6010
|
-
"kind": "variable",
|
|
6011
|
-
"name": "friendlyFallbackAgent",
|
|
6012
|
-
"type": {
|
|
6013
|
-
"text": "FallbackAgentConfig"
|
|
6014
|
-
},
|
|
6015
|
-
"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}",
|
|
6016
|
-
"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."
|
|
6017
|
-
},
|
|
6018
|
-
{
|
|
6019
|
-
"kind": "variable",
|
|
6020
|
-
"name": "strictFallbackAgent",
|
|
6021
|
-
"type": {
|
|
6022
|
-
"text": "FallbackAgentConfig"
|
|
6023
|
-
},
|
|
6024
|
-
"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}",
|
|
6025
|
-
"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."
|
|
6026
|
-
}
|
|
6027
|
-
],
|
|
6028
|
-
"exports": [
|
|
6029
|
-
{
|
|
6030
|
-
"kind": "js",
|
|
6031
|
-
"name": "friendlyFallbackAgent",
|
|
6032
|
-
"declaration": {
|
|
6033
|
-
"name": "friendlyFallbackAgent",
|
|
6034
|
-
"module": "src/config/fallback-agents.ts"
|
|
6035
|
-
}
|
|
6036
|
-
},
|
|
6037
|
-
{
|
|
6038
|
-
"kind": "js",
|
|
6039
|
-
"name": "strictFallbackAgent",
|
|
6040
|
-
"declaration": {
|
|
6041
|
-
"name": "strictFallbackAgent",
|
|
6042
|
-
"module": "src/config/fallback-agents.ts"
|
|
6043
|
-
}
|
|
6044
|
-
}
|
|
6045
|
-
]
|
|
6046
|
-
},
|
|
6047
|
-
{
|
|
6048
|
-
"kind": "javascript-module",
|
|
6049
|
-
"path": "src/config/index.ts",
|
|
6050
|
-
"declarations": [],
|
|
6051
|
-
"exports": [
|
|
6052
|
-
{
|
|
6053
|
-
"kind": "js",
|
|
6054
|
-
"name": "*",
|
|
6055
|
-
"declaration": {
|
|
6056
|
-
"name": "*",
|
|
6057
|
-
"package": "./config"
|
|
6058
|
-
}
|
|
6059
|
-
},
|
|
6060
|
-
{
|
|
6061
|
-
"kind": "js",
|
|
6062
|
-
"name": "*",
|
|
6063
|
-
"declaration": {
|
|
6064
|
-
"name": "*",
|
|
6065
|
-
"package": "./fallback-agents"
|
|
6066
|
-
}
|
|
6067
|
-
}
|
|
6068
|
-
]
|
|
6069
|
-
},
|
|
6070
|
-
{
|
|
6071
|
-
"kind": "javascript-module",
|
|
6072
|
-
"path": "src/config/validate-providers.ts",
|
|
6073
|
-
"declarations": [],
|
|
6074
|
-
"exports": []
|
|
6075
|
-
},
|
|
6076
|
-
{
|
|
6077
|
-
"kind": "javascript-module",
|
|
6078
|
-
"path": "src/genesis/calendar.ts",
|
|
6079
|
-
"declarations": [],
|
|
6080
|
-
"exports": []
|
|
6081
|
-
},
|
|
6082
|
-
{
|
|
6083
|
-
"kind": "javascript-module",
|
|
6084
|
-
"path": "src/genesis/config.ts",
|
|
6085
|
-
"declarations": [
|
|
6086
|
-
{
|
|
6087
|
-
"kind": "variable",
|
|
6088
|
-
"name": "DEFAULT_MAX_ROWS",
|
|
6089
|
-
"type": {
|
|
6090
|
-
"text": "number"
|
|
6091
|
-
},
|
|
6092
|
-
"default": "50",
|
|
6093
|
-
"description": "The default read cap, and the ceiling the config may raise it to."
|
|
6094
|
-
},
|
|
6087
|
+
"kind": "variable",
|
|
6088
|
+
"name": "DEFAULT_MAX_ROWS",
|
|
6089
|
+
"type": {
|
|
6090
|
+
"text": "number"
|
|
6091
|
+
},
|
|
6092
|
+
"default": "50",
|
|
6093
|
+
"description": "The default read cap, and the ceiling the config may raise it to."
|
|
6094
|
+
},
|
|
6095
6095
|
{
|
|
6096
6096
|
"kind": "variable",
|
|
6097
6097
|
"name": "MAX_ROWS_CEILING",
|
|
@@ -17997,137 +17997,209 @@
|
|
|
17997
17997
|
},
|
|
17998
17998
|
{
|
|
17999
17999
|
"kind": "javascript-module",
|
|
18000
|
-
"path": "src/components/agent-
|
|
18000
|
+
"path": "src/components/agent-picker/agent-picker.constants.ts",
|
|
18001
18001
|
"declarations": [
|
|
18002
18002
|
{
|
|
18003
|
-
"kind": "
|
|
18004
|
-
"
|
|
18005
|
-
"
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18003
|
+
"kind": "variable",
|
|
18004
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18005
|
+
"type": {
|
|
18006
|
+
"text": "string"
|
|
18007
|
+
},
|
|
18008
|
+
"default": "'__auto__'",
|
|
18009
|
+
"description": "Sentinel value representing \"Auto\" where a menu row needs a string value."
|
|
18010
|
+
},
|
|
18011
|
+
{
|
|
18012
|
+
"kind": "variable",
|
|
18013
|
+
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
18014
|
+
"type": {
|
|
18015
|
+
"text": "string"
|
|
18016
|
+
},
|
|
18017
|
+
"default": "'Orchestration'",
|
|
18018
|
+
"description": "The picker's default name for orchestration: the assistant routes each message to the agent it\nsuits, as opposed to a pinned agent. Not \"Auto\", which other tools use for picking a model tier;\n\"Orchestration\" says that several agents stand behind it."
|
|
18019
|
+
},
|
|
18020
|
+
{
|
|
18021
|
+
"kind": "variable",
|
|
18022
|
+
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18023
|
+
"type": {
|
|
18024
|
+
"text": "string"
|
|
18025
|
+
},
|
|
18026
|
+
"default": "'Orchestration'",
|
|
18027
|
+
"description": "The same choice as the picker menu's first row. The same word by default; separate so a host can say more there."
|
|
18028
|
+
},
|
|
18029
|
+
{
|
|
18030
|
+
"kind": "variable",
|
|
18031
|
+
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18032
|
+
"type": {
|
|
18033
|
+
"text": "string"
|
|
18034
|
+
},
|
|
18035
|
+
"default": "'Each message goes to the specialist it suits.'",
|
|
18036
|
+
"description": "What orchestration does, as the menu row's hint and the pill's tooltip."
|
|
18037
|
+
}
|
|
18038
|
+
],
|
|
18039
|
+
"exports": [
|
|
18040
|
+
{
|
|
18041
|
+
"kind": "js",
|
|
18042
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18043
|
+
"declaration": {
|
|
18044
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18045
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18046
|
+
}
|
|
18047
|
+
},
|
|
18048
|
+
{
|
|
18049
|
+
"kind": "js",
|
|
18050
|
+
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
18051
|
+
"declaration": {
|
|
18052
|
+
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
18053
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18054
|
+
}
|
|
18055
|
+
},
|
|
18056
|
+
{
|
|
18057
|
+
"kind": "js",
|
|
18058
|
+
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18059
|
+
"declaration": {
|
|
18060
|
+
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18061
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18062
|
+
}
|
|
18063
|
+
},
|
|
18064
|
+
{
|
|
18065
|
+
"kind": "js",
|
|
18066
|
+
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18067
|
+
"declaration": {
|
|
18068
|
+
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18069
|
+
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
18070
|
+
}
|
|
18071
|
+
}
|
|
18072
|
+
]
|
|
18073
|
+
},
|
|
18074
|
+
{
|
|
18075
|
+
"kind": "javascript-module",
|
|
18076
|
+
"path": "src/components/agent-picker/agent-picker.styles.ts",
|
|
18077
|
+
"declarations": [
|
|
18078
|
+
{
|
|
18079
|
+
"kind": "variable",
|
|
18080
|
+
"name": "styles",
|
|
18081
|
+
"default": "css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* The picker owns the ROWS only. The panel around them — surface, border,\n shadow, position, open/close animation — is the assistant's, so the agent\n menu and the session menu are the same object with different contents.\n See the composer-menu rules in main.styles.ts. */\n .menu {\n display: flex;\n flex-direction: column;\n gap: 1px;\n }\n\n ${menuItemStyles}\n`"
|
|
18082
|
+
}
|
|
18083
|
+
],
|
|
18084
|
+
"exports": [
|
|
18085
|
+
{
|
|
18086
|
+
"kind": "js",
|
|
18087
|
+
"name": "styles",
|
|
18088
|
+
"declaration": {
|
|
18089
|
+
"name": "styles",
|
|
18090
|
+
"module": "src/components/agent-picker/agent-picker.styles.ts"
|
|
18091
|
+
}
|
|
18092
|
+
}
|
|
18093
|
+
]
|
|
18094
|
+
},
|
|
18095
|
+
{
|
|
18096
|
+
"kind": "javascript-module",
|
|
18097
|
+
"path": "src/components/agent-picker/agent-picker.template.ts",
|
|
18098
|
+
"declarations": [],
|
|
18099
|
+
"exports": []
|
|
18100
|
+
},
|
|
18101
|
+
{
|
|
18102
|
+
"kind": "javascript-module",
|
|
18103
|
+
"path": "src/components/agent-picker/agent-picker.ts",
|
|
18104
|
+
"declarations": [
|
|
18105
|
+
{
|
|
18106
|
+
"kind": "class",
|
|
18107
|
+
"description": "The agent menu shown from the composer's agent button.\n\nRenders `Auto` plus each top-level agent with `manualSelection.enabled`, one\nrow apiece, tinted with the same pin colour the composer button shows once\nthat agent is pinned. Sub-agents and non-selectable specialists are excluded.\nHidden when fewer than two agents are configured or none are manually\nselectable.\n\nThe rows are all this element owns. The panel around them — surface, border,\nposition, open/close animation — belongs to the assistant, which renders this\nmenu and the session (⋮) menu into the same container so the two match.",
|
|
18108
|
+
"name": "AgentPicker",
|
|
18109
|
+
"members": [
|
|
18023
18110
|
{
|
|
18024
18111
|
"kind": "field",
|
|
18025
|
-
"name": "
|
|
18112
|
+
"name": "mode",
|
|
18026
18113
|
"type": {
|
|
18027
|
-
"text": "
|
|
18114
|
+
"text": "AgentPickerMode"
|
|
18028
18115
|
},
|
|
18029
|
-
"
|
|
18030
|
-
"
|
|
18031
|
-
"description": "Sticky user pick from the picker (or the host's `setAgent` API). Only changes on explicit\nuser action. Survives flow completion: when a stateful agent releases, the user-pin stays put\nand routing falls back to it on the next turn."
|
|
18116
|
+
"default": "'disabled'",
|
|
18117
|
+
"description": "Picker variant, sourced from the assistant's `chatConfig.picker.mode`.\n`'disabled'` hides the picker; every other value renders the same menu —\n`'select'` and `'segmented-control'` are retained so existing configuration\nstays valid, but no longer select between two layouts."
|
|
18032
18118
|
},
|
|
18033
18119
|
{
|
|
18034
18120
|
"kind": "field",
|
|
18035
|
-
"name": "
|
|
18121
|
+
"name": "agents",
|
|
18036
18122
|
"type": {
|
|
18037
|
-
"text": "
|
|
18123
|
+
"text": "AgentConfig[]"
|
|
18038
18124
|
},
|
|
18039
|
-
"
|
|
18040
|
-
"
|
|
18041
|
-
"description": "Transient flow lock — set when a stateful agent activates, cleared on release. While\nnon-null, routing precedence goes to this agent and the picker is locked. Independent of\nthe user pin so completing a flow doesn't wipe the user's sticky choice."
|
|
18125
|
+
"default": "[]",
|
|
18126
|
+
"description": "Top-level agents passed to the assistant."
|
|
18042
18127
|
},
|
|
18043
18128
|
{
|
|
18044
18129
|
"kind": "field",
|
|
18045
|
-
"name": "
|
|
18130
|
+
"name": "pinnedAgentName",
|
|
18046
18131
|
"type": {
|
|
18047
|
-
"text": "
|
|
18132
|
+
"text": "string | null"
|
|
18048
18133
|
},
|
|
18049
|
-
"
|
|
18050
|
-
"
|
|
18051
|
-
"description": "Per-agent restored state for a rehydrated session, keyed by agent name. Primed by the host on\nrestore; each entry is passed to that agent's `onActivate` as `ctx.restored` on its next\nactivation, then deleted so a later re-activation starts fresh."
|
|
18134
|
+
"default": "null",
|
|
18135
|
+
"description": "Currently pinned agent name, or `null` for Auto."
|
|
18052
18136
|
},
|
|
18053
18137
|
{
|
|
18054
18138
|
"kind": "field",
|
|
18055
|
-
"name": "
|
|
18139
|
+
"name": "disablePinColours",
|
|
18056
18140
|
"type": {
|
|
18057
|
-
"text": "
|
|
18141
|
+
"text": "boolean"
|
|
18058
18142
|
},
|
|
18059
|
-
"
|
|
18060
|
-
"description": "
|
|
18143
|
+
"default": "false",
|
|
18144
|
+
"description": "When true, rows show a neutral dot instead of the per-agent brand tint."
|
|
18061
18145
|
},
|
|
18062
18146
|
{
|
|
18063
18147
|
"kind": "field",
|
|
18064
|
-
"name": "
|
|
18148
|
+
"name": "orchestrationLabel",
|
|
18065
18149
|
"type": {
|
|
18066
|
-
"text": "
|
|
18150
|
+
"text": "string"
|
|
18067
18151
|
},
|
|
18068
|
-
"
|
|
18069
|
-
"
|
|
18070
|
-
"description": "Callers waiting in a hand-off (GENC-1737), oldest first: still live, so never deactivated by\nthe hand-off, and resumed without `onActivate`. Empty after a reload, when a caller has no live\nstate and is activated again from its saved state instead."
|
|
18152
|
+
"default": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
18153
|
+
"description": "The orchestration row's name, from `chatConfig.picker.orchestrationMenuLabel` (resolved by the host)."
|
|
18071
18154
|
},
|
|
18072
18155
|
{
|
|
18073
18156
|
"kind": "field",
|
|
18074
|
-
"name": "
|
|
18075
|
-
"
|
|
18076
|
-
|
|
18077
|
-
"description": "The `data` of the hand-off that activated each agent (GENC-1737), for its tool handlers: kept\nwhile it is active or waits as a caller, and dropped when its activation ends."
|
|
18078
|
-
},
|
|
18079
|
-
{
|
|
18080
|
-
"kind": "method",
|
|
18081
|
-
"name": "getActive",
|
|
18082
|
-
"return": {
|
|
18083
|
-
"type": {
|
|
18084
|
-
"text": "AgentConfig | undefined"
|
|
18085
|
-
}
|
|
18157
|
+
"name": "orchestrationDescription",
|
|
18158
|
+
"type": {
|
|
18159
|
+
"text": "string"
|
|
18086
18160
|
},
|
|
18087
|
-
"
|
|
18161
|
+
"default": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
18162
|
+
"description": "The orchestration row's hint, from `chatConfig.picker.orchestrationDescription` (resolved by the host)."
|
|
18088
18163
|
},
|
|
18089
18164
|
{
|
|
18090
|
-
"kind": "
|
|
18091
|
-
"name": "
|
|
18092
|
-
"
|
|
18093
|
-
"
|
|
18094
|
-
"text": "string | null"
|
|
18095
|
-
}
|
|
18165
|
+
"kind": "field",
|
|
18166
|
+
"name": "selectableAgents",
|
|
18167
|
+
"type": {
|
|
18168
|
+
"text": "AgentConfig[]"
|
|
18096
18169
|
},
|
|
18097
|
-
"description": "
|
|
18170
|
+
"description": "Top-level agents that opted in to manual selection.",
|
|
18171
|
+
"readonly": true
|
|
18098
18172
|
},
|
|
18099
18173
|
{
|
|
18100
|
-
"kind": "
|
|
18101
|
-
"name": "
|
|
18102
|
-
"
|
|
18103
|
-
"
|
|
18104
|
-
"text": "string | null"
|
|
18105
|
-
}
|
|
18174
|
+
"kind": "field",
|
|
18175
|
+
"name": "visible",
|
|
18176
|
+
"type": {
|
|
18177
|
+
"text": "boolean"
|
|
18106
18178
|
},
|
|
18107
|
-
"description": "
|
|
18179
|
+
"description": "Whether the picker should render at all.",
|
|
18180
|
+
"readonly": true
|
|
18108
18181
|
},
|
|
18109
18182
|
{
|
|
18110
18183
|
"kind": "method",
|
|
18111
|
-
"name": "
|
|
18184
|
+
"name": "markStyleFor",
|
|
18112
18185
|
"return": {
|
|
18113
18186
|
"type": {
|
|
18114
|
-
"text": "string
|
|
18187
|
+
"text": "string"
|
|
18115
18188
|
}
|
|
18116
18189
|
},
|
|
18117
18190
|
"parameters": [
|
|
18118
18191
|
{
|
|
18119
|
-
"name": "
|
|
18120
|
-
"default": "this.pinned",
|
|
18192
|
+
"name": "agent",
|
|
18121
18193
|
"type": {
|
|
18122
|
-
"text": "
|
|
18194
|
+
"text": "AgentConfig"
|
|
18123
18195
|
}
|
|
18124
18196
|
}
|
|
18125
18197
|
],
|
|
18126
|
-
"description": "
|
|
18198
|
+
"description": "Inline `--menu-item-mark` for one row, or `''` to leave the dot neutral.\n\nIndexed against the FULL agents array rather than `selectableAgents` so a\nrow's tint matches what the composer button shows when that agent is\npinned — the assistant resolves its pin colour the same way, and the two\ndisagreeing is exactly the bug this shares `pinColourAt` to avoid."
|
|
18127
18199
|
},
|
|
18128
18200
|
{
|
|
18129
18201
|
"kind": "method",
|
|
18130
|
-
"name": "
|
|
18202
|
+
"name": "selectAgent",
|
|
18131
18203
|
"return": {
|
|
18132
18204
|
"type": {
|
|
18133
18205
|
"text": "void"
|
|
@@ -18140,12 +18212,11 @@
|
|
|
18140
18212
|
"text": "string | null"
|
|
18141
18213
|
}
|
|
18142
18214
|
}
|
|
18143
|
-
]
|
|
18144
|
-
"description": "Set the sticky user pin. `null` returns to automatic routing."
|
|
18215
|
+
]
|
|
18145
18216
|
},
|
|
18146
18217
|
{
|
|
18147
18218
|
"kind": "method",
|
|
18148
|
-
"name": "
|
|
18219
|
+
"name": "selectByValue",
|
|
18149
18220
|
"return": {
|
|
18150
18221
|
"type": {
|
|
18151
18222
|
"text": "void"
|
|
@@ -18153,43 +18224,275 @@
|
|
|
18153
18224
|
},
|
|
18154
18225
|
"parameters": [
|
|
18155
18226
|
{
|
|
18156
|
-
"name": "
|
|
18227
|
+
"name": "value",
|
|
18157
18228
|
"type": {
|
|
18158
|
-
"text": "string
|
|
18229
|
+
"text": "string"
|
|
18159
18230
|
}
|
|
18160
18231
|
}
|
|
18161
18232
|
],
|
|
18162
|
-
"description": "
|
|
18233
|
+
"description": "Maps a value using AGENT_PICKER_AUTO_VALUE for Auto back to the\n`string | null` form AgentPicker.selectAgent expects. Retained for\nhosts driving the picker from a value rather than a name."
|
|
18163
18234
|
},
|
|
18164
18235
|
{
|
|
18165
|
-
"kind": "
|
|
18166
|
-
"name": "
|
|
18167
|
-
"
|
|
18168
|
-
"
|
|
18169
|
-
"text": "void"
|
|
18170
|
-
}
|
|
18236
|
+
"kind": "field",
|
|
18237
|
+
"name": "currentValue",
|
|
18238
|
+
"type": {
|
|
18239
|
+
"text": "string"
|
|
18171
18240
|
},
|
|
18172
|
-
"
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
}
|
|
18178
|
-
}
|
|
18179
|
-
],
|
|
18180
|
-
"description": "Prime per-agent restored state for a rehydrated session. Replaces any pending entries."
|
|
18181
|
-
},
|
|
18241
|
+
"description": "Current pinned agent name as a bindable value.",
|
|
18242
|
+
"readonly": true
|
|
18243
|
+
}
|
|
18244
|
+
],
|
|
18245
|
+
"events": [
|
|
18182
18246
|
{
|
|
18183
|
-
"
|
|
18184
|
-
"name": "
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
-
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18247
|
+
"description": "Fired when the user changes selection with the agent name or `null` for Auto. detail: `string | null`",
|
|
18248
|
+
"name": "agent-pinned"
|
|
18249
|
+
}
|
|
18250
|
+
],
|
|
18251
|
+
"superclass": {
|
|
18252
|
+
"name": "GenesisElement",
|
|
18253
|
+
"package": "@genesislcap/web-core"
|
|
18254
|
+
},
|
|
18255
|
+
"tagName": "foundation-ai-agent-picker",
|
|
18256
|
+
"customElement": true
|
|
18257
|
+
}
|
|
18258
|
+
],
|
|
18259
|
+
"exports": [
|
|
18260
|
+
{
|
|
18261
|
+
"kind": "js",
|
|
18262
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18263
|
+
"declaration": {
|
|
18264
|
+
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
18265
|
+
"module": "src/components/agent-picker/agent-picker.ts"
|
|
18266
|
+
}
|
|
18267
|
+
},
|
|
18268
|
+
{
|
|
18269
|
+
"kind": "js",
|
|
18270
|
+
"name": "AgentPicker",
|
|
18271
|
+
"declaration": {
|
|
18272
|
+
"name": "AgentPicker",
|
|
18273
|
+
"module": "src/components/agent-picker/agent-picker.ts"
|
|
18274
|
+
}
|
|
18275
|
+
},
|
|
18276
|
+
{
|
|
18277
|
+
"kind": "custom-element-definition",
|
|
18278
|
+
"name": "foundation-ai-agent-picker",
|
|
18279
|
+
"declaration": {
|
|
18280
|
+
"name": "AgentPicker",
|
|
18281
|
+
"module": "src/components/agent-picker/agent-picker.ts"
|
|
18282
|
+
}
|
|
18283
|
+
}
|
|
18284
|
+
]
|
|
18285
|
+
},
|
|
18286
|
+
{
|
|
18287
|
+
"kind": "javascript-module",
|
|
18288
|
+
"path": "src/components/agent-picker/index.ts",
|
|
18289
|
+
"declarations": [],
|
|
18290
|
+
"exports": [
|
|
18291
|
+
{
|
|
18292
|
+
"kind": "js",
|
|
18293
|
+
"name": "*",
|
|
18294
|
+
"declaration": {
|
|
18295
|
+
"name": "*",
|
|
18296
|
+
"package": "./agent-picker"
|
|
18297
|
+
}
|
|
18298
|
+
}
|
|
18299
|
+
]
|
|
18300
|
+
},
|
|
18301
|
+
{
|
|
18302
|
+
"kind": "javascript-module",
|
|
18303
|
+
"path": "src/components/agent-session/agent-session.ts",
|
|
18304
|
+
"declarations": [
|
|
18305
|
+
{
|
|
18306
|
+
"kind": "class",
|
|
18307
|
+
"description": "The stateful-agent contract: which agent is active, whether a flow or a user pin holds routing,\nand the `onActivate` / `onDeactivate` lifecycle around a swap. Either driver can own one.\n\nKnows nothing about routing, tool surfaces or transcripts — whether an agent is terminal, the\nhand-off stack, the divider in history all stay with the orchestrator, which is the only thing\nwith agents to route between.",
|
|
18308
|
+
"name": "AgentSession",
|
|
18309
|
+
"members": [
|
|
18310
|
+
{
|
|
18311
|
+
"kind": "field",
|
|
18312
|
+
"name": "lifecycleAbortController",
|
|
18313
|
+
"privacy": "private",
|
|
18314
|
+
"readonly": true,
|
|
18315
|
+
"default": "new AbortController()",
|
|
18316
|
+
"description": "Aborted on disposal. Threaded into `AgentLifecycleContext.signal` so long-running\n`onActivate` work can bail if the session disconnects."
|
|
18317
|
+
},
|
|
18318
|
+
{
|
|
18319
|
+
"kind": "field",
|
|
18320
|
+
"name": "active",
|
|
18321
|
+
"type": {
|
|
18322
|
+
"text": "AgentConfig | undefined"
|
|
18323
|
+
},
|
|
18324
|
+
"privacy": "private"
|
|
18325
|
+
},
|
|
18326
|
+
{
|
|
18327
|
+
"kind": "field",
|
|
18328
|
+
"name": "pinned",
|
|
18329
|
+
"type": {
|
|
18330
|
+
"text": "string | null"
|
|
18331
|
+
},
|
|
18332
|
+
"privacy": "private",
|
|
18333
|
+
"default": "null",
|
|
18334
|
+
"description": "Sticky user pick from the picker (or the host's `setAgent` API). Only changes on explicit\nuser action. Survives flow completion: when a stateful agent releases, the user-pin stays put\nand routing falls back to it on the next turn."
|
|
18335
|
+
},
|
|
18336
|
+
{
|
|
18337
|
+
"kind": "field",
|
|
18338
|
+
"name": "flowOwner",
|
|
18339
|
+
"type": {
|
|
18340
|
+
"text": "string | null"
|
|
18341
|
+
},
|
|
18342
|
+
"privacy": "private",
|
|
18343
|
+
"default": "null",
|
|
18344
|
+
"description": "Transient flow lock — set when a stateful agent activates, cleared on release. While\nnon-null, routing precedence goes to this agent and the picker is locked. Independent of\nthe user pin so completing a flow doesn't wipe the user's sticky choice."
|
|
18345
|
+
},
|
|
18346
|
+
{
|
|
18347
|
+
"kind": "field",
|
|
18348
|
+
"name": "restoredStates",
|
|
18349
|
+
"type": {
|
|
18350
|
+
"text": "Record<string, unknown>"
|
|
18351
|
+
},
|
|
18352
|
+
"privacy": "private",
|
|
18353
|
+
"default": "{}",
|
|
18354
|
+
"description": "Per-agent restored state for a rehydrated session, keyed by agent name. Primed by the host on\nrestore; each entry is passed to that agent's `onActivate` as `ctx.restored` on its next\nactivation, then deleted so a later re-activation starts fresh."
|
|
18355
|
+
},
|
|
18356
|
+
{
|
|
18357
|
+
"kind": "field",
|
|
18358
|
+
"name": "activation",
|
|
18359
|
+
"type": {
|
|
18360
|
+
"text": "Promise<unknown>"
|
|
18361
|
+
},
|
|
18362
|
+
"privacy": "private",
|
|
18363
|
+
"description": "The tail of the activation queue — see AgentSession.activate."
|
|
18364
|
+
},
|
|
18365
|
+
{
|
|
18366
|
+
"kind": "field",
|
|
18367
|
+
"name": "suspended",
|
|
18368
|
+
"type": {
|
|
18369
|
+
"text": "AgentConfig[]"
|
|
18370
|
+
},
|
|
18371
|
+
"privacy": "private",
|
|
18372
|
+
"default": "[]",
|
|
18373
|
+
"description": "Callers waiting in a hand-off (GENC-1737), oldest first: still live, so never deactivated by\nthe hand-off, and resumed without `onActivate`. Empty after a reload, when a caller has no live\nstate and is activated again from its saved state instead."
|
|
18374
|
+
},
|
|
18375
|
+
{
|
|
18376
|
+
"kind": "field",
|
|
18377
|
+
"name": "handOffData",
|
|
18378
|
+
"privacy": "private",
|
|
18379
|
+
"default": "new Map<string, unknown>()",
|
|
18380
|
+
"description": "The `data` of the hand-off that activated each agent (GENC-1737), for its tool handlers: kept\nwhile it is active or waits as a caller, and dropped when its activation ends."
|
|
18381
|
+
},
|
|
18382
|
+
{
|
|
18383
|
+
"kind": "method",
|
|
18384
|
+
"name": "getActive",
|
|
18385
|
+
"return": {
|
|
18386
|
+
"type": {
|
|
18387
|
+
"text": "AgentConfig | undefined"
|
|
18388
|
+
}
|
|
18389
|
+
},
|
|
18390
|
+
"description": "The active agent, or `undefined` before the first activation and after a release."
|
|
18391
|
+
},
|
|
18392
|
+
{
|
|
18393
|
+
"kind": "method",
|
|
18394
|
+
"name": "getPinned",
|
|
18395
|
+
"return": {
|
|
18396
|
+
"type": {
|
|
18397
|
+
"text": "string | null"
|
|
18398
|
+
}
|
|
18399
|
+
},
|
|
18400
|
+
"description": "The sticky user pin, or `null` for automatic routing."
|
|
18401
|
+
},
|
|
18402
|
+
{
|
|
18403
|
+
"kind": "method",
|
|
18404
|
+
"name": "getFlowOwner",
|
|
18405
|
+
"return": {
|
|
18406
|
+
"type": {
|
|
18407
|
+
"text": "string | null"
|
|
18408
|
+
}
|
|
18409
|
+
},
|
|
18410
|
+
"description": "The transient flow lock, or `null` when no flow holds routing."
|
|
18411
|
+
},
|
|
18412
|
+
{
|
|
18413
|
+
"kind": "method",
|
|
18414
|
+
"name": "getLockedName",
|
|
18415
|
+
"return": {
|
|
18416
|
+
"type": {
|
|
18417
|
+
"text": "string | null"
|
|
18418
|
+
}
|
|
18419
|
+
},
|
|
18420
|
+
"parameters": [
|
|
18421
|
+
{
|
|
18422
|
+
"name": "pin",
|
|
18423
|
+
"default": "this.pinned",
|
|
18424
|
+
"type": {
|
|
18425
|
+
"text": "string | null"
|
|
18426
|
+
}
|
|
18427
|
+
}
|
|
18428
|
+
],
|
|
18429
|
+
"description": "The name routing is locked to, flow lock first. A flow in progress outranks the user's\nsticky pick for the duration of the flow; neither being set means automatic routing.\n`pin`, when given, stands in for the sticky pick: one message routed its own way."
|
|
18430
|
+
},
|
|
18431
|
+
{
|
|
18432
|
+
"kind": "method",
|
|
18433
|
+
"name": "setPinned",
|
|
18434
|
+
"return": {
|
|
18435
|
+
"type": {
|
|
18436
|
+
"text": "void"
|
|
18437
|
+
}
|
|
18438
|
+
},
|
|
18439
|
+
"parameters": [
|
|
18440
|
+
{
|
|
18441
|
+
"name": "name",
|
|
18442
|
+
"type": {
|
|
18443
|
+
"text": "string | null"
|
|
18444
|
+
}
|
|
18445
|
+
}
|
|
18446
|
+
],
|
|
18447
|
+
"description": "Set the sticky user pin. `null` returns to automatic routing."
|
|
18448
|
+
},
|
|
18449
|
+
{
|
|
18450
|
+
"kind": "method",
|
|
18451
|
+
"name": "setFlowOwner",
|
|
18452
|
+
"return": {
|
|
18453
|
+
"type": {
|
|
18454
|
+
"text": "void"
|
|
18455
|
+
}
|
|
18456
|
+
},
|
|
18457
|
+
"parameters": [
|
|
18458
|
+
{
|
|
18459
|
+
"name": "name",
|
|
18460
|
+
"type": {
|
|
18461
|
+
"text": "string | null"
|
|
18462
|
+
}
|
|
18463
|
+
}
|
|
18464
|
+
],
|
|
18465
|
+
"description": "Set the flow-owner lock directly — used to restore state on driver reconstruction\n(agents-array changes, pop-in/pop-out), not to steer routing. Writes without firing hooks or\nreporting a transition, because the flow it names is already running."
|
|
18466
|
+
},
|
|
18467
|
+
{
|
|
18468
|
+
"kind": "method",
|
|
18469
|
+
"name": "primeRestoredStates",
|
|
18470
|
+
"return": {
|
|
18471
|
+
"type": {
|
|
18472
|
+
"text": "void"
|
|
18473
|
+
}
|
|
18474
|
+
},
|
|
18475
|
+
"parameters": [
|
|
18476
|
+
{
|
|
18477
|
+
"name": "snapshots",
|
|
18478
|
+
"type": {
|
|
18479
|
+
"text": "Record<string, unknown>"
|
|
18480
|
+
}
|
|
18481
|
+
}
|
|
18482
|
+
],
|
|
18483
|
+
"description": "Prime per-agent restored state for a rehydrated session. Replaces any pending entries."
|
|
18484
|
+
},
|
|
18485
|
+
{
|
|
18486
|
+
"kind": "method",
|
|
18487
|
+
"name": "hasRestoredState",
|
|
18488
|
+
"return": {
|
|
18489
|
+
"type": {
|
|
18490
|
+
"text": "boolean"
|
|
18491
|
+
}
|
|
18492
|
+
},
|
|
18493
|
+
"parameters": [
|
|
18494
|
+
{
|
|
18495
|
+
"name": "agentName",
|
|
18193
18496
|
"type": {
|
|
18194
18497
|
"text": "string"
|
|
18195
18498
|
}
|
|
@@ -28384,560 +28687,257 @@
|
|
|
28384
28687
|
}
|
|
28385
28688
|
]
|
|
28386
28689
|
},
|
|
28387
|
-
{
|
|
28388
|
-
"kind": "javascript-module",
|
|
28389
|
-
"path": "src/state/persistence/resume-verdict.ts",
|
|
28390
|
-
"declarations": [],
|
|
28391
|
-
"exports": []
|
|
28392
|
-
},
|
|
28393
|
-
{
|
|
28394
|
-
"kind": "javascript-module",
|
|
28395
|
-
"path": "src/state/persistence/session-persistence-provider.ts",
|
|
28396
|
-
"declarations": [
|
|
28397
|
-
{
|
|
28398
|
-
"kind": "class",
|
|
28399
|
-
"description": "A SessionPersistenceProvider backed by a Web Storage area. Both\n`window.sessionStorage` and `window.localStorage` implement the `Storage`\nAPI, so one class serves both: point it at `sessionStorage` for\nrefresh-survival that clears on tab close (the showcase default, O6), or at\n`localStorage` for durable local persistence.\n\nOpt-in: a host constructs it and passes it through `chatConfig`; the library\nnever instantiates it on its own.",
|
|
28400
|
-
"name": "WebStorageSessionProvider",
|
|
28401
|
-
"members": [
|
|
28402
|
-
{
|
|
28403
|
-
"kind": "field",
|
|
28404
|
-
"name": "storage",
|
|
28405
|
-
"type": {
|
|
28406
|
-
"text": "Storage"
|
|
28407
|
-
},
|
|
28408
|
-
"privacy": "private",
|
|
28409
|
-
"readonly": true,
|
|
28410
|
-
"default": "storage"
|
|
28411
|
-
},
|
|
28412
|
-
{
|
|
28413
|
-
"kind": "field",
|
|
28414
|
-
"name": "keyPrefix",
|
|
28415
|
-
"type": {
|
|
28416
|
-
"text": "string"
|
|
28417
|
-
},
|
|
28418
|
-
"privacy": "private",
|
|
28419
|
-
"readonly": true
|
|
28420
|
-
},
|
|
28421
|
-
{
|
|
28422
|
-
"kind": "field",
|
|
28423
|
-
"name": "saveDebounceMs",
|
|
28424
|
-
"type": {
|
|
28425
|
-
"text": "number"
|
|
28426
|
-
},
|
|
28427
|
-
"readonly": true,
|
|
28428
|
-
"description": "Web storage is synchronous and cheap, so the default is `0` — save as\nsoon as the tick settles, no throttle. Override via `options.saveDebounceMs`\n(e.g. if pointing at `localStorage` and you'd rather coalesce large writes)."
|
|
28429
|
-
},
|
|
28430
|
-
{
|
|
28431
|
-
"kind": "method",
|
|
28432
|
-
"name": "storageKey",
|
|
28433
|
-
"privacy": "private",
|
|
28434
|
-
"return": {
|
|
28435
|
-
"type": {
|
|
28436
|
-
"text": "string"
|
|
28437
|
-
}
|
|
28438
|
-
},
|
|
28439
|
-
"parameters": [
|
|
28440
|
-
{
|
|
28441
|
-
"name": "sessionKey",
|
|
28442
|
-
"type": {
|
|
28443
|
-
"text": "string"
|
|
28444
|
-
}
|
|
28445
|
-
}
|
|
28446
|
-
]
|
|
28447
|
-
},
|
|
28448
|
-
{
|
|
28449
|
-
"kind": "method",
|
|
28450
|
-
"name": "preferencesKey",
|
|
28451
|
-
"privacy": "private",
|
|
28452
|
-
"return": {
|
|
28453
|
-
"type": {
|
|
28454
|
-
"text": "string"
|
|
28455
|
-
}
|
|
28456
|
-
},
|
|
28457
|
-
"parameters": [
|
|
28458
|
-
{
|
|
28459
|
-
"name": "sessionKey",
|
|
28460
|
-
"type": {
|
|
28461
|
-
"text": "string"
|
|
28462
|
-
}
|
|
28463
|
-
}
|
|
28464
|
-
],
|
|
28465
|
-
"description": "Preferences key, namespaced apart from the session key so `clear` leaves it."
|
|
28466
|
-
},
|
|
28467
|
-
{
|
|
28468
|
-
"kind": "method",
|
|
28469
|
-
"name": "load",
|
|
28470
|
-
"return": {
|
|
28471
|
-
"type": {
|
|
28472
|
-
"text": "Promise<PersistedSession | null>"
|
|
28473
|
-
}
|
|
28474
|
-
},
|
|
28475
|
-
"parameters": [
|
|
28476
|
-
{
|
|
28477
|
-
"name": "sessionKey",
|
|
28478
|
-
"type": {
|
|
28479
|
-
"text": "string"
|
|
28480
|
-
}
|
|
28481
|
-
}
|
|
28482
|
-
]
|
|
28483
|
-
},
|
|
28484
|
-
{
|
|
28485
|
-
"kind": "method",
|
|
28486
|
-
"name": "save",
|
|
28487
|
-
"return": {
|
|
28488
|
-
"type": {
|
|
28489
|
-
"text": "Promise<void>"
|
|
28490
|
-
}
|
|
28491
|
-
},
|
|
28492
|
-
"parameters": [
|
|
28493
|
-
{
|
|
28494
|
-
"name": "sessionKey",
|
|
28495
|
-
"type": {
|
|
28496
|
-
"text": "string"
|
|
28497
|
-
}
|
|
28498
|
-
},
|
|
28499
|
-
{
|
|
28500
|
-
"name": "snapshot",
|
|
28501
|
-
"type": {
|
|
28502
|
-
"text": "PersistedSession"
|
|
28503
|
-
}
|
|
28504
|
-
}
|
|
28505
|
-
]
|
|
28506
|
-
},
|
|
28507
|
-
{
|
|
28508
|
-
"kind": "method",
|
|
28509
|
-
"name": "clear",
|
|
28510
|
-
"return": {
|
|
28511
|
-
"type": {
|
|
28512
|
-
"text": "Promise<void>"
|
|
28513
|
-
}
|
|
28514
|
-
},
|
|
28515
|
-
"parameters": [
|
|
28516
|
-
{
|
|
28517
|
-
"name": "sessionKey",
|
|
28518
|
-
"type": {
|
|
28519
|
-
"text": "string"
|
|
28520
|
-
}
|
|
28521
|
-
}
|
|
28522
|
-
]
|
|
28523
|
-
},
|
|
28524
|
-
{
|
|
28525
|
-
"kind": "method",
|
|
28526
|
-
"name": "loadPreferences",
|
|
28527
|
-
"return": {
|
|
28528
|
-
"type": {
|
|
28529
|
-
"text": "Promise<SessionPreferences | undefined>"
|
|
28530
|
-
}
|
|
28531
|
-
},
|
|
28532
|
-
"parameters": [
|
|
28533
|
-
{
|
|
28534
|
-
"name": "sessionKey",
|
|
28535
|
-
"type": {
|
|
28536
|
-
"text": "string"
|
|
28537
|
-
}
|
|
28538
|
-
}
|
|
28539
|
-
]
|
|
28540
|
-
},
|
|
28541
|
-
{
|
|
28542
|
-
"kind": "method",
|
|
28543
|
-
"name": "savePreferences",
|
|
28544
|
-
"return": {
|
|
28545
|
-
"type": {
|
|
28546
|
-
"text": "Promise<void>"
|
|
28547
|
-
}
|
|
28548
|
-
},
|
|
28549
|
-
"parameters": [
|
|
28550
|
-
{
|
|
28551
|
-
"name": "sessionKey",
|
|
28552
|
-
"type": {
|
|
28553
|
-
"text": "string"
|
|
28554
|
-
}
|
|
28555
|
-
},
|
|
28556
|
-
{
|
|
28557
|
-
"name": "preferences",
|
|
28558
|
-
"type": {
|
|
28559
|
-
"text": "SessionPreferences"
|
|
28560
|
-
}
|
|
28561
|
-
}
|
|
28562
|
-
]
|
|
28563
|
-
}
|
|
28564
|
-
]
|
|
28565
|
-
}
|
|
28566
|
-
],
|
|
28567
|
-
"exports": [
|
|
28568
|
-
{
|
|
28569
|
-
"kind": "js",
|
|
28570
|
-
"name": "WebStorageSessionProvider",
|
|
28571
|
-
"declaration": {
|
|
28572
|
-
"name": "WebStorageSessionProvider",
|
|
28573
|
-
"module": "src/state/persistence/session-persistence-provider.ts"
|
|
28574
|
-
}
|
|
28575
|
-
}
|
|
28576
|
-
]
|
|
28577
|
-
},
|
|
28578
|
-
{
|
|
28579
|
-
"kind": "javascript-module",
|
|
28580
|
-
"path": "src/state/persistence/session-persister.ts",
|
|
28581
|
-
"declarations": [],
|
|
28582
|
-
"exports": []
|
|
28583
|
-
},
|
|
28584
|
-
{
|
|
28585
|
-
"kind": "javascript-module",
|
|
28586
|
-
"path": "src/state/persistence/session-snapshot.ts",
|
|
28587
|
-
"declarations": [
|
|
28588
|
-
{
|
|
28589
|
-
"kind": "variable",
|
|
28590
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28591
|
-
"type": {
|
|
28592
|
-
"text": "number"
|
|
28593
|
-
},
|
|
28594
|
-
"default": "1",
|
|
28595
|
-
"description": "Schema version of the persisted session shape. Bump on an incompatible\nchange; a snapshot whose `version` doesn't match is discarded on load rather\nthan risk feeding a stale shape into restore.",
|
|
28596
|
-
"privacy": "public"
|
|
28597
|
-
},
|
|
28598
|
-
{
|
|
28599
|
-
"kind": "function",
|
|
28600
|
-
"name": "unknownAgentSnapshots",
|
|
28601
|
-
"return": {
|
|
28602
|
-
"type": {
|
|
28603
|
-
"text": "string[]"
|
|
28604
|
-
}
|
|
28605
|
-
},
|
|
28606
|
-
"parameters": [
|
|
28607
|
-
{
|
|
28608
|
-
"name": "snapshot",
|
|
28609
|
-
"type": {
|
|
28610
|
-
"text": "PersistedSession"
|
|
28611
|
-
}
|
|
28612
|
-
},
|
|
28613
|
-
{
|
|
28614
|
-
"name": "knownAgentNames",
|
|
28615
|
-
"type": {
|
|
28616
|
-
"text": "Iterable<string>"
|
|
28617
|
-
}
|
|
28618
|
-
}
|
|
28619
|
-
],
|
|
28620
|
-
"description": "Names of agents the restored session holds machine/state snapshots for but\nwhich are **not** in the currently-configured agent set — their flow cannot\nresume. Common when the host's agent array is dynamic (agents gated by feature\nflags, project state, or permissions; e.g. genesis-create). Callers should\nsurface these; the restore is otherwise non-fatal (the transcript and any\nknown agents still restore). Returns `[]` when `knownAgentNames` is empty —\nthe agent set isn't known yet, so we can't classify without false positives."
|
|
28621
|
-
}
|
|
28622
|
-
],
|
|
28623
|
-
"exports": [
|
|
28624
|
-
{
|
|
28625
|
-
"kind": "js",
|
|
28626
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28627
|
-
"declaration": {
|
|
28628
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28629
|
-
"module": "src/state/persistence/session-snapshot.ts"
|
|
28630
|
-
}
|
|
28631
|
-
},
|
|
28632
|
-
{
|
|
28633
|
-
"kind": "js",
|
|
28634
|
-
"name": "unknownAgentSnapshots",
|
|
28635
|
-
"declaration": {
|
|
28636
|
-
"name": "unknownAgentSnapshots",
|
|
28637
|
-
"module": "src/state/persistence/session-snapshot.ts"
|
|
28638
|
-
}
|
|
28639
|
-
}
|
|
28640
|
-
]
|
|
28641
|
-
},
|
|
28642
|
-
{
|
|
28643
|
-
"kind": "javascript-module",
|
|
28644
|
-
"path": "src/components/agent-picker/agent-picker.constants.ts",
|
|
28645
|
-
"declarations": [
|
|
28646
|
-
{
|
|
28647
|
-
"kind": "variable",
|
|
28648
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28649
|
-
"type": {
|
|
28650
|
-
"text": "string"
|
|
28651
|
-
},
|
|
28652
|
-
"default": "'__auto__'",
|
|
28653
|
-
"description": "Sentinel value representing \"Auto\" where a menu row needs a string value."
|
|
28654
|
-
},
|
|
28655
|
-
{
|
|
28656
|
-
"kind": "variable",
|
|
28657
|
-
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
28658
|
-
"type": {
|
|
28659
|
-
"text": "string"
|
|
28660
|
-
},
|
|
28661
|
-
"default": "'Orchestration'",
|
|
28662
|
-
"description": "The picker's default name for orchestration: the assistant routes each message to the agent it\nsuits, as opposed to a pinned agent. Not \"Auto\", which other tools use for picking a model tier;\n\"Orchestration\" says that several agents stand behind it."
|
|
28663
|
-
},
|
|
28664
|
-
{
|
|
28665
|
-
"kind": "variable",
|
|
28666
|
-
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28667
|
-
"type": {
|
|
28668
|
-
"text": "string"
|
|
28669
|
-
},
|
|
28670
|
-
"default": "'Orchestration'",
|
|
28671
|
-
"description": "The same choice as the picker menu's first row. The same word by default; separate so a host can say more there."
|
|
28672
|
-
},
|
|
28673
|
-
{
|
|
28674
|
-
"kind": "variable",
|
|
28675
|
-
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28676
|
-
"type": {
|
|
28677
|
-
"text": "string"
|
|
28678
|
-
},
|
|
28679
|
-
"default": "'Each message goes to the specialist it suits.'",
|
|
28680
|
-
"description": "What orchestration does, as the menu row's hint and the pill's tooltip."
|
|
28681
|
-
}
|
|
28682
|
-
],
|
|
28683
|
-
"exports": [
|
|
28684
|
-
{
|
|
28685
|
-
"kind": "js",
|
|
28686
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28687
|
-
"declaration": {
|
|
28688
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28689
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28690
|
-
}
|
|
28691
|
-
},
|
|
28692
|
-
{
|
|
28693
|
-
"kind": "js",
|
|
28694
|
-
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
28695
|
-
"declaration": {
|
|
28696
|
-
"name": "DEFAULT_ORCHESTRATION_LABEL",
|
|
28697
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28698
|
-
}
|
|
28699
|
-
},
|
|
28700
|
-
{
|
|
28701
|
-
"kind": "js",
|
|
28702
|
-
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28703
|
-
"declaration": {
|
|
28704
|
-
"name": "DEFAULT_ORCHESTRATION_MENU_LABEL",
|
|
28705
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28706
|
-
}
|
|
28707
|
-
},
|
|
28708
|
-
{
|
|
28709
|
-
"kind": "js",
|
|
28710
|
-
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28711
|
-
"declaration": {
|
|
28712
|
-
"name": "DEFAULT_ORCHESTRATION_DESCRIPTION",
|
|
28713
|
-
"module": "src/components/agent-picker/agent-picker.constants.ts"
|
|
28714
|
-
}
|
|
28715
|
-
}
|
|
28716
|
-
]
|
|
28717
|
-
},
|
|
28718
|
-
{
|
|
28719
|
-
"kind": "javascript-module",
|
|
28720
|
-
"path": "src/components/agent-picker/agent-picker.styles.ts",
|
|
28721
|
-
"declarations": [
|
|
28722
|
-
{
|
|
28723
|
-
"kind": "variable",
|
|
28724
|
-
"name": "styles",
|
|
28725
|
-
"default": "css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* The picker owns the ROWS only. The panel around them — surface, border,\n shadow, position, open/close animation — is the assistant's, so the agent\n menu and the session menu are the same object with different contents.\n See the composer-menu rules in main.styles.ts. */\n .menu {\n display: flex;\n flex-direction: column;\n gap: 1px;\n }\n\n ${menuItemStyles}\n`"
|
|
28726
|
-
}
|
|
28727
|
-
],
|
|
28728
|
-
"exports": [
|
|
28729
|
-
{
|
|
28730
|
-
"kind": "js",
|
|
28731
|
-
"name": "styles",
|
|
28732
|
-
"declaration": {
|
|
28733
|
-
"name": "styles",
|
|
28734
|
-
"module": "src/components/agent-picker/agent-picker.styles.ts"
|
|
28735
|
-
}
|
|
28736
|
-
}
|
|
28737
|
-
]
|
|
28738
|
-
},
|
|
28739
|
-
{
|
|
28740
|
-
"kind": "javascript-module",
|
|
28741
|
-
"path": "src/components/agent-picker/agent-picker.template.ts",
|
|
28742
|
-
"declarations": [],
|
|
28743
|
-
"exports": []
|
|
28744
|
-
},
|
|
28745
|
-
{
|
|
28746
|
-
"kind": "javascript-module",
|
|
28747
|
-
"path": "src/components/agent-picker/agent-picker.ts",
|
|
28748
|
-
"declarations": [
|
|
28749
|
-
{
|
|
28750
|
-
"kind": "class",
|
|
28751
|
-
"description": "The agent menu shown from the composer's agent button.\n\nRenders `Auto` plus each top-level agent with `manualSelection.enabled`, one\nrow apiece, tinted with the same pin colour the composer button shows once\nthat agent is pinned. Sub-agents and non-selectable specialists are excluded.\nHidden when fewer than two agents are configured or none are manually\nselectable.\n\nThe rows are all this element owns. The panel around them — surface, border,\nposition, open/close animation — belongs to the assistant, which renders this\nmenu and the session (⋮) menu into the same container so the two match.",
|
|
28752
|
-
"name": "AgentPicker",
|
|
28753
|
-
"members": [
|
|
28754
|
-
{
|
|
28755
|
-
"kind": "field",
|
|
28756
|
-
"name": "mode",
|
|
28757
|
-
"type": {
|
|
28758
|
-
"text": "AgentPickerMode"
|
|
28759
|
-
},
|
|
28760
|
-
"default": "'disabled'",
|
|
28761
|
-
"description": "Picker variant, sourced from the assistant's `chatConfig.picker.mode`.\n`'disabled'` hides the picker; every other value renders the same menu —\n`'select'` and `'segmented-control'` are retained so existing configuration\nstays valid, but no longer select between two layouts."
|
|
28762
|
-
},
|
|
28763
|
-
{
|
|
28764
|
-
"kind": "field",
|
|
28765
|
-
"name": "agents",
|
|
28766
|
-
"type": {
|
|
28767
|
-
"text": "AgentConfig[]"
|
|
28768
|
-
},
|
|
28769
|
-
"default": "[]",
|
|
28770
|
-
"description": "Top-level agents passed to the assistant."
|
|
28771
|
-
},
|
|
28690
|
+
{
|
|
28691
|
+
"kind": "javascript-module",
|
|
28692
|
+
"path": "src/state/persistence/resume-verdict.ts",
|
|
28693
|
+
"declarations": [],
|
|
28694
|
+
"exports": []
|
|
28695
|
+
},
|
|
28696
|
+
{
|
|
28697
|
+
"kind": "javascript-module",
|
|
28698
|
+
"path": "src/state/persistence/session-persistence-provider.ts",
|
|
28699
|
+
"declarations": [
|
|
28700
|
+
{
|
|
28701
|
+
"kind": "class",
|
|
28702
|
+
"description": "A SessionPersistenceProvider backed by a Web Storage area. Both\n`window.sessionStorage` and `window.localStorage` implement the `Storage`\nAPI, so one class serves both: point it at `sessionStorage` for\nrefresh-survival that clears on tab close (the showcase default, O6), or at\n`localStorage` for durable local persistence.\n\nOpt-in: a host constructs it and passes it through `chatConfig`; the library\nnever instantiates it on its own.",
|
|
28703
|
+
"name": "WebStorageSessionProvider",
|
|
28704
|
+
"members": [
|
|
28772
28705
|
{
|
|
28773
28706
|
"kind": "field",
|
|
28774
|
-
"name": "
|
|
28707
|
+
"name": "storage",
|
|
28775
28708
|
"type": {
|
|
28776
|
-
"text": "
|
|
28709
|
+
"text": "Storage"
|
|
28777
28710
|
},
|
|
28778
|
-
"
|
|
28779
|
-
"
|
|
28711
|
+
"privacy": "private",
|
|
28712
|
+
"readonly": true,
|
|
28713
|
+
"default": "storage"
|
|
28780
28714
|
},
|
|
28781
28715
|
{
|
|
28782
28716
|
"kind": "field",
|
|
28783
|
-
"name": "
|
|
28717
|
+
"name": "keyPrefix",
|
|
28784
28718
|
"type": {
|
|
28785
|
-
"text": "
|
|
28719
|
+
"text": "string"
|
|
28786
28720
|
},
|
|
28787
|
-
"
|
|
28788
|
-
"
|
|
28721
|
+
"privacy": "private",
|
|
28722
|
+
"readonly": true
|
|
28789
28723
|
},
|
|
28790
28724
|
{
|
|
28791
28725
|
"kind": "field",
|
|
28792
|
-
"name": "
|
|
28726
|
+
"name": "saveDebounceMs",
|
|
28793
28727
|
"type": {
|
|
28794
|
-
"text": "
|
|
28728
|
+
"text": "number"
|
|
28795
28729
|
},
|
|
28796
|
-
"
|
|
28797
|
-
"description": "
|
|
28730
|
+
"readonly": true,
|
|
28731
|
+
"description": "Web storage is synchronous and cheap, so the default is `0` — save as\nsoon as the tick settles, no throttle. Override via `options.saveDebounceMs`\n(e.g. if pointing at `localStorage` and you'd rather coalesce large writes)."
|
|
28798
28732
|
},
|
|
28799
28733
|
{
|
|
28800
|
-
"kind": "
|
|
28801
|
-
"name": "
|
|
28802
|
-
"
|
|
28803
|
-
|
|
28734
|
+
"kind": "method",
|
|
28735
|
+
"name": "storageKey",
|
|
28736
|
+
"privacy": "private",
|
|
28737
|
+
"return": {
|
|
28738
|
+
"type": {
|
|
28739
|
+
"text": "string"
|
|
28740
|
+
}
|
|
28804
28741
|
},
|
|
28805
|
-
"
|
|
28806
|
-
|
|
28742
|
+
"parameters": [
|
|
28743
|
+
{
|
|
28744
|
+
"name": "sessionKey",
|
|
28745
|
+
"type": {
|
|
28746
|
+
"text": "string"
|
|
28747
|
+
}
|
|
28748
|
+
}
|
|
28749
|
+
]
|
|
28807
28750
|
},
|
|
28808
28751
|
{
|
|
28809
|
-
"kind": "
|
|
28810
|
-
"name": "
|
|
28811
|
-
"
|
|
28812
|
-
|
|
28752
|
+
"kind": "method",
|
|
28753
|
+
"name": "preferencesKey",
|
|
28754
|
+
"privacy": "private",
|
|
28755
|
+
"return": {
|
|
28756
|
+
"type": {
|
|
28757
|
+
"text": "string"
|
|
28758
|
+
}
|
|
28813
28759
|
},
|
|
28814
|
-
"
|
|
28815
|
-
|
|
28760
|
+
"parameters": [
|
|
28761
|
+
{
|
|
28762
|
+
"name": "sessionKey",
|
|
28763
|
+
"type": {
|
|
28764
|
+
"text": "string"
|
|
28765
|
+
}
|
|
28766
|
+
}
|
|
28767
|
+
],
|
|
28768
|
+
"description": "Preferences key, namespaced apart from the session key so `clear` leaves it."
|
|
28816
28769
|
},
|
|
28817
28770
|
{
|
|
28818
|
-
"kind": "
|
|
28819
|
-
"name": "
|
|
28820
|
-
"
|
|
28821
|
-
"
|
|
28771
|
+
"kind": "method",
|
|
28772
|
+
"name": "load",
|
|
28773
|
+
"return": {
|
|
28774
|
+
"type": {
|
|
28775
|
+
"text": "Promise<PersistedSession | null>"
|
|
28776
|
+
}
|
|
28822
28777
|
},
|
|
28823
|
-
"
|
|
28824
|
-
|
|
28778
|
+
"parameters": [
|
|
28779
|
+
{
|
|
28780
|
+
"name": "sessionKey",
|
|
28781
|
+
"type": {
|
|
28782
|
+
"text": "string"
|
|
28783
|
+
}
|
|
28784
|
+
}
|
|
28785
|
+
]
|
|
28825
28786
|
},
|
|
28826
28787
|
{
|
|
28827
28788
|
"kind": "method",
|
|
28828
|
-
"name": "
|
|
28789
|
+
"name": "save",
|
|
28829
28790
|
"return": {
|
|
28830
28791
|
"type": {
|
|
28831
|
-
"text": "
|
|
28792
|
+
"text": "Promise<void>"
|
|
28832
28793
|
}
|
|
28833
28794
|
},
|
|
28834
28795
|
"parameters": [
|
|
28835
28796
|
{
|
|
28836
|
-
"name": "
|
|
28797
|
+
"name": "sessionKey",
|
|
28837
28798
|
"type": {
|
|
28838
|
-
"text": "
|
|
28799
|
+
"text": "string"
|
|
28800
|
+
}
|
|
28801
|
+
},
|
|
28802
|
+
{
|
|
28803
|
+
"name": "snapshot",
|
|
28804
|
+
"type": {
|
|
28805
|
+
"text": "PersistedSession"
|
|
28839
28806
|
}
|
|
28840
28807
|
}
|
|
28841
|
-
]
|
|
28842
|
-
"description": "Inline `--menu-item-mark` for one row, or `''` to leave the dot neutral.\n\nIndexed against the FULL agents array rather than `selectableAgents` so a\nrow's tint matches what the composer button shows when that agent is\npinned — the assistant resolves its pin colour the same way, and the two\ndisagreeing is exactly the bug this shares `pinColourAt` to avoid."
|
|
28808
|
+
]
|
|
28843
28809
|
},
|
|
28844
28810
|
{
|
|
28845
28811
|
"kind": "method",
|
|
28846
|
-
"name": "
|
|
28812
|
+
"name": "clear",
|
|
28847
28813
|
"return": {
|
|
28848
28814
|
"type": {
|
|
28849
|
-
"text": "void"
|
|
28815
|
+
"text": "Promise<void>"
|
|
28850
28816
|
}
|
|
28851
28817
|
},
|
|
28852
28818
|
"parameters": [
|
|
28853
28819
|
{
|
|
28854
|
-
"name": "
|
|
28820
|
+
"name": "sessionKey",
|
|
28855
28821
|
"type": {
|
|
28856
|
-
"text": "string
|
|
28822
|
+
"text": "string"
|
|
28857
28823
|
}
|
|
28858
28824
|
}
|
|
28859
28825
|
]
|
|
28860
28826
|
},
|
|
28861
28827
|
{
|
|
28862
28828
|
"kind": "method",
|
|
28863
|
-
"name": "
|
|
28829
|
+
"name": "loadPreferences",
|
|
28864
28830
|
"return": {
|
|
28865
28831
|
"type": {
|
|
28866
|
-
"text": "
|
|
28832
|
+
"text": "Promise<SessionPreferences | undefined>"
|
|
28867
28833
|
}
|
|
28868
28834
|
},
|
|
28869
28835
|
"parameters": [
|
|
28870
28836
|
{
|
|
28871
|
-
"name": "
|
|
28837
|
+
"name": "sessionKey",
|
|
28872
28838
|
"type": {
|
|
28873
28839
|
"text": "string"
|
|
28874
28840
|
}
|
|
28875
28841
|
}
|
|
28876
|
-
]
|
|
28877
|
-
"description": "Maps a value using AGENT_PICKER_AUTO_VALUE for Auto back to the\n`string | null` form AgentPicker.selectAgent expects. Retained for\nhosts driving the picker from a value rather than a name."
|
|
28842
|
+
]
|
|
28878
28843
|
},
|
|
28879
28844
|
{
|
|
28880
|
-
"kind": "
|
|
28881
|
-
"name": "
|
|
28882
|
-
"
|
|
28883
|
-
"
|
|
28845
|
+
"kind": "method",
|
|
28846
|
+
"name": "savePreferences",
|
|
28847
|
+
"return": {
|
|
28848
|
+
"type": {
|
|
28849
|
+
"text": "Promise<void>"
|
|
28850
|
+
}
|
|
28884
28851
|
},
|
|
28885
|
-
"
|
|
28886
|
-
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
|
|
28891
|
-
|
|
28892
|
-
|
|
28852
|
+
"parameters": [
|
|
28853
|
+
{
|
|
28854
|
+
"name": "sessionKey",
|
|
28855
|
+
"type": {
|
|
28856
|
+
"text": "string"
|
|
28857
|
+
}
|
|
28858
|
+
},
|
|
28859
|
+
{
|
|
28860
|
+
"name": "preferences",
|
|
28861
|
+
"type": {
|
|
28862
|
+
"text": "SessionPreferences"
|
|
28863
|
+
}
|
|
28864
|
+
}
|
|
28865
|
+
]
|
|
28893
28866
|
}
|
|
28894
|
-
]
|
|
28895
|
-
"superclass": {
|
|
28896
|
-
"name": "GenesisElement",
|
|
28897
|
-
"package": "@genesislcap/web-core"
|
|
28898
|
-
},
|
|
28899
|
-
"tagName": "foundation-ai-agent-picker",
|
|
28900
|
-
"customElement": true
|
|
28867
|
+
]
|
|
28901
28868
|
}
|
|
28902
28869
|
],
|
|
28903
28870
|
"exports": [
|
|
28904
28871
|
{
|
|
28905
28872
|
"kind": "js",
|
|
28906
|
-
"name": "
|
|
28907
|
-
"declaration": {
|
|
28908
|
-
"name": "AGENT_PICKER_AUTO_VALUE",
|
|
28909
|
-
"module": "src/components/agent-picker/agent-picker.ts"
|
|
28910
|
-
}
|
|
28911
|
-
},
|
|
28912
|
-
{
|
|
28913
|
-
"kind": "js",
|
|
28914
|
-
"name": "AgentPicker",
|
|
28915
|
-
"declaration": {
|
|
28916
|
-
"name": "AgentPicker",
|
|
28917
|
-
"module": "src/components/agent-picker/agent-picker.ts"
|
|
28918
|
-
}
|
|
28919
|
-
},
|
|
28920
|
-
{
|
|
28921
|
-
"kind": "custom-element-definition",
|
|
28922
|
-
"name": "foundation-ai-agent-picker",
|
|
28873
|
+
"name": "WebStorageSessionProvider",
|
|
28923
28874
|
"declaration": {
|
|
28924
|
-
"name": "
|
|
28925
|
-
"module": "src/
|
|
28875
|
+
"name": "WebStorageSessionProvider",
|
|
28876
|
+
"module": "src/state/persistence/session-persistence-provider.ts"
|
|
28926
28877
|
}
|
|
28927
28878
|
}
|
|
28928
28879
|
]
|
|
28929
28880
|
},
|
|
28930
28881
|
{
|
|
28931
28882
|
"kind": "javascript-module",
|
|
28932
|
-
"path": "src/
|
|
28883
|
+
"path": "src/state/persistence/session-persister.ts",
|
|
28933
28884
|
"declarations": [],
|
|
28885
|
+
"exports": []
|
|
28886
|
+
},
|
|
28887
|
+
{
|
|
28888
|
+
"kind": "javascript-module",
|
|
28889
|
+
"path": "src/state/persistence/session-snapshot.ts",
|
|
28890
|
+
"declarations": [
|
|
28891
|
+
{
|
|
28892
|
+
"kind": "variable",
|
|
28893
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28894
|
+
"type": {
|
|
28895
|
+
"text": "number"
|
|
28896
|
+
},
|
|
28897
|
+
"default": "1",
|
|
28898
|
+
"description": "Schema version of the persisted session shape. Bump on an incompatible\nchange; a snapshot whose `version` doesn't match is discarded on load rather\nthan risk feeding a stale shape into restore.",
|
|
28899
|
+
"privacy": "public"
|
|
28900
|
+
},
|
|
28901
|
+
{
|
|
28902
|
+
"kind": "function",
|
|
28903
|
+
"name": "unknownAgentSnapshots",
|
|
28904
|
+
"return": {
|
|
28905
|
+
"type": {
|
|
28906
|
+
"text": "string[]"
|
|
28907
|
+
}
|
|
28908
|
+
},
|
|
28909
|
+
"parameters": [
|
|
28910
|
+
{
|
|
28911
|
+
"name": "snapshot",
|
|
28912
|
+
"type": {
|
|
28913
|
+
"text": "PersistedSession"
|
|
28914
|
+
}
|
|
28915
|
+
},
|
|
28916
|
+
{
|
|
28917
|
+
"name": "knownAgentNames",
|
|
28918
|
+
"type": {
|
|
28919
|
+
"text": "Iterable<string>"
|
|
28920
|
+
}
|
|
28921
|
+
}
|
|
28922
|
+
],
|
|
28923
|
+
"description": "Names of agents the restored session holds machine/state snapshots for but\nwhich are **not** in the currently-configured agent set — their flow cannot\nresume. Common when the host's agent array is dynamic (agents gated by feature\nflags, project state, or permissions; e.g. genesis-create). Callers should\nsurface these; the restore is otherwise non-fatal (the transcript and any\nknown agents still restore). Returns `[]` when `knownAgentNames` is empty —\nthe agent set isn't known yet, so we can't classify without false positives."
|
|
28924
|
+
}
|
|
28925
|
+
],
|
|
28934
28926
|
"exports": [
|
|
28935
28927
|
{
|
|
28936
28928
|
"kind": "js",
|
|
28937
|
-
"name": "
|
|
28929
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28938
28930
|
"declaration": {
|
|
28939
|
-
"name": "
|
|
28940
|
-
"
|
|
28931
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28932
|
+
"module": "src/state/persistence/session-snapshot.ts"
|
|
28933
|
+
}
|
|
28934
|
+
},
|
|
28935
|
+
{
|
|
28936
|
+
"kind": "js",
|
|
28937
|
+
"name": "unknownAgentSnapshots",
|
|
28938
|
+
"declaration": {
|
|
28939
|
+
"name": "unknownAgentSnapshots",
|
|
28940
|
+
"module": "src/state/persistence/session-snapshot.ts"
|
|
28941
28941
|
}
|
|
28942
28942
|
}
|
|
28943
28943
|
]
|