@genesislcap/ai-assistant 15.88.1 → 15.88.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/custom-elements.json +352 -352
- package/dist/dts/react.d.ts +8 -8
- package/dist/react.cjs +5 -5
- package/dist/react.mjs +4 -4
- package/package.json +17 -17
|
@@ -5209,237 +5209,6 @@
|
|
|
5209
5209
|
}
|
|
5210
5210
|
]
|
|
5211
5211
|
},
|
|
5212
|
-
{
|
|
5213
|
-
"kind": "javascript-module",
|
|
5214
|
-
"path": "src/config/config.ts",
|
|
5215
|
-
"declarations": [
|
|
5216
|
-
{
|
|
5217
|
-
"kind": "function",
|
|
5218
|
-
"name": "defineAgent",
|
|
5219
|
-
"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```"
|
|
5220
|
-
}
|
|
5221
|
-
],
|
|
5222
|
-
"exports": [
|
|
5223
|
-
{
|
|
5224
|
-
"kind": "js",
|
|
5225
|
-
"name": "CachePolicy",
|
|
5226
|
-
"declaration": {
|
|
5227
|
-
"name": "CachePolicy",
|
|
5228
|
-
"module": "src/config/config.ts"
|
|
5229
|
-
}
|
|
5230
|
-
},
|
|
5231
|
-
{
|
|
5232
|
-
"kind": "js",
|
|
5233
|
-
"name": "ChatFallback",
|
|
5234
|
-
"declaration": {
|
|
5235
|
-
"name": "ChatFallback",
|
|
5236
|
-
"module": "src/config/config.ts"
|
|
5237
|
-
}
|
|
5238
|
-
},
|
|
5239
|
-
{
|
|
5240
|
-
"kind": "js",
|
|
5241
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5242
|
-
"declaration": {
|
|
5243
|
-
"name": "ChatInputDuringExecutionMode",
|
|
5244
|
-
"module": "src/config/config.ts"
|
|
5245
|
-
}
|
|
5246
|
-
},
|
|
5247
|
-
{
|
|
5248
|
-
"kind": "js",
|
|
5249
|
-
"name": "ChatThinkingPolicy",
|
|
5250
|
-
"declaration": {
|
|
5251
|
-
"name": "ChatThinkingPolicy",
|
|
5252
|
-
"module": "src/config/config.ts"
|
|
5253
|
-
}
|
|
5254
|
-
},
|
|
5255
|
-
{
|
|
5256
|
-
"kind": "js",
|
|
5257
|
-
"name": "ChatToolChoice",
|
|
5258
|
-
"declaration": {
|
|
5259
|
-
"name": "ChatToolChoice",
|
|
5260
|
-
"module": "src/config/config.ts"
|
|
5261
|
-
}
|
|
5262
|
-
},
|
|
5263
|
-
{
|
|
5264
|
-
"kind": "js",
|
|
5265
|
-
"name": "defineAgent",
|
|
5266
|
-
"declaration": {
|
|
5267
|
-
"name": "defineAgent",
|
|
5268
|
-
"module": "src/config/config.ts"
|
|
5269
|
-
}
|
|
5270
|
-
}
|
|
5271
|
-
]
|
|
5272
|
-
},
|
|
5273
|
-
{
|
|
5274
|
-
"kind": "javascript-module",
|
|
5275
|
-
"path": "src/config/define-stateful-agent.ts",
|
|
5276
|
-
"declarations": [
|
|
5277
|
-
{
|
|
5278
|
-
"kind": "function",
|
|
5279
|
-
"name": "restoreMachine",
|
|
5280
|
-
"return": {
|
|
5281
|
-
"type": {
|
|
5282
|
-
"text": "void"
|
|
5283
|
-
}
|
|
5284
|
-
},
|
|
5285
|
-
"parameters": [
|
|
5286
|
-
{
|
|
5287
|
-
"name": "machine",
|
|
5288
|
-
"type": {
|
|
5289
|
-
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5290
|
-
},
|
|
5291
|
-
"description": "the machine to restore (already constructed/started)."
|
|
5292
|
-
},
|
|
5293
|
-
{
|
|
5294
|
-
"name": "restored",
|
|
5295
|
-
"type": {
|
|
5296
|
-
"text": "unknown"
|
|
5297
|
-
},
|
|
5298
|
-
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5299
|
-
},
|
|
5300
|
-
{
|
|
5301
|
-
"name": "key",
|
|
5302
|
-
"default": "'machine'",
|
|
5303
|
-
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
5304
|
-
}
|
|
5305
|
-
],
|
|
5306
|
-
"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."
|
|
5307
|
-
},
|
|
5308
|
-
{
|
|
5309
|
-
"kind": "function",
|
|
5310
|
-
"name": "defineStatefulAgent",
|
|
5311
|
-
"return": {
|
|
5312
|
-
"type": {
|
|
5313
|
-
"text": "AgentConfig"
|
|
5314
|
-
}
|
|
5315
|
-
},
|
|
5316
|
-
"parameters": [
|
|
5317
|
-
{
|
|
5318
|
-
"name": "opts",
|
|
5319
|
-
"type": {
|
|
5320
|
-
"text": "StatefulAgentInit<S>"
|
|
5321
|
-
}
|
|
5322
|
-
}
|
|
5323
|
-
],
|
|
5324
|
-
"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."
|
|
5325
|
-
},
|
|
5326
|
-
{
|
|
5327
|
-
"kind": "function",
|
|
5328
|
-
"name": "defineAutopilot",
|
|
5329
|
-
"return": {
|
|
5330
|
-
"type": {
|
|
5331
|
-
"text": "AutopilotConfig<S>"
|
|
5332
|
-
}
|
|
5333
|
-
},
|
|
5334
|
-
"parameters": [
|
|
5335
|
-
{
|
|
5336
|
-
"name": "config",
|
|
5337
|
-
"type": {
|
|
5338
|
-
"text": "AutopilotConfig<S>"
|
|
5339
|
-
}
|
|
5340
|
-
}
|
|
5341
|
-
],
|
|
5342
|
-
"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."
|
|
5343
|
-
}
|
|
5344
|
-
],
|
|
5345
|
-
"exports": [
|
|
5346
|
-
{
|
|
5347
|
-
"kind": "js",
|
|
5348
|
-
"name": "restoreMachine",
|
|
5349
|
-
"declaration": {
|
|
5350
|
-
"name": "restoreMachine",
|
|
5351
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5352
|
-
}
|
|
5353
|
-
},
|
|
5354
|
-
{
|
|
5355
|
-
"kind": "js",
|
|
5356
|
-
"name": "defineStatefulAgent",
|
|
5357
|
-
"declaration": {
|
|
5358
|
-
"name": "defineStatefulAgent",
|
|
5359
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5360
|
-
}
|
|
5361
|
-
},
|
|
5362
|
-
{
|
|
5363
|
-
"kind": "js",
|
|
5364
|
-
"name": "defineAutopilot",
|
|
5365
|
-
"declaration": {
|
|
5366
|
-
"name": "defineAutopilot",
|
|
5367
|
-
"module": "src/config/define-stateful-agent.ts"
|
|
5368
|
-
}
|
|
5369
|
-
}
|
|
5370
|
-
]
|
|
5371
|
-
},
|
|
5372
|
-
{
|
|
5373
|
-
"kind": "javascript-module",
|
|
5374
|
-
"path": "src/config/fallback-agents.ts",
|
|
5375
|
-
"declarations": [
|
|
5376
|
-
{
|
|
5377
|
-
"kind": "variable",
|
|
5378
|
-
"name": "friendlyFallbackAgent",
|
|
5379
|
-
"type": {
|
|
5380
|
-
"text": "FallbackAgentConfig"
|
|
5381
|
-
},
|
|
5382
|
-
"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}",
|
|
5383
|
-
"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."
|
|
5384
|
-
},
|
|
5385
|
-
{
|
|
5386
|
-
"kind": "variable",
|
|
5387
|
-
"name": "strictFallbackAgent",
|
|
5388
|
-
"type": {
|
|
5389
|
-
"text": "FallbackAgentConfig"
|
|
5390
|
-
},
|
|
5391
|
-
"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}",
|
|
5392
|
-
"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."
|
|
5393
|
-
}
|
|
5394
|
-
],
|
|
5395
|
-
"exports": [
|
|
5396
|
-
{
|
|
5397
|
-
"kind": "js",
|
|
5398
|
-
"name": "friendlyFallbackAgent",
|
|
5399
|
-
"declaration": {
|
|
5400
|
-
"name": "friendlyFallbackAgent",
|
|
5401
|
-
"module": "src/config/fallback-agents.ts"
|
|
5402
|
-
}
|
|
5403
|
-
},
|
|
5404
|
-
{
|
|
5405
|
-
"kind": "js",
|
|
5406
|
-
"name": "strictFallbackAgent",
|
|
5407
|
-
"declaration": {
|
|
5408
|
-
"name": "strictFallbackAgent",
|
|
5409
|
-
"module": "src/config/fallback-agents.ts"
|
|
5410
|
-
}
|
|
5411
|
-
}
|
|
5412
|
-
]
|
|
5413
|
-
},
|
|
5414
|
-
{
|
|
5415
|
-
"kind": "javascript-module",
|
|
5416
|
-
"path": "src/config/index.ts",
|
|
5417
|
-
"declarations": [],
|
|
5418
|
-
"exports": [
|
|
5419
|
-
{
|
|
5420
|
-
"kind": "js",
|
|
5421
|
-
"name": "*",
|
|
5422
|
-
"declaration": {
|
|
5423
|
-
"name": "*",
|
|
5424
|
-
"package": "./config"
|
|
5425
|
-
}
|
|
5426
|
-
},
|
|
5427
|
-
{
|
|
5428
|
-
"kind": "js",
|
|
5429
|
-
"name": "*",
|
|
5430
|
-
"declaration": {
|
|
5431
|
-
"name": "*",
|
|
5432
|
-
"package": "./fallback-agents"
|
|
5433
|
-
}
|
|
5434
|
-
}
|
|
5435
|
-
]
|
|
5436
|
-
},
|
|
5437
|
-
{
|
|
5438
|
-
"kind": "javascript-module",
|
|
5439
|
-
"path": "src/config/validate-providers.ts",
|
|
5440
|
-
"declarations": [],
|
|
5441
|
-
"exports": []
|
|
5442
|
-
},
|
|
5443
5212
|
{
|
|
5444
5213
|
"kind": "javascript-module",
|
|
5445
5214
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -5944,26 +5713,257 @@
|
|
|
5944
5713
|
"tagName": "ai-waves-indicator",
|
|
5945
5714
|
"customElement": true
|
|
5946
5715
|
}
|
|
5947
|
-
],
|
|
5716
|
+
],
|
|
5717
|
+
"exports": [
|
|
5718
|
+
{
|
|
5719
|
+
"kind": "js",
|
|
5720
|
+
"name": "AiWavesIndicator",
|
|
5721
|
+
"declaration": {
|
|
5722
|
+
"name": "AiWavesIndicator",
|
|
5723
|
+
"module": "src/components/waves-indicator.ts"
|
|
5724
|
+
}
|
|
5725
|
+
},
|
|
5726
|
+
{
|
|
5727
|
+
"kind": "custom-element-definition",
|
|
5728
|
+
"name": "ai-waves-indicator",
|
|
5729
|
+
"declaration": {
|
|
5730
|
+
"name": "AiWavesIndicator",
|
|
5731
|
+
"module": "src/components/waves-indicator.ts"
|
|
5732
|
+
}
|
|
5733
|
+
}
|
|
5734
|
+
]
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"kind": "javascript-module",
|
|
5738
|
+
"path": "src/config/config.ts",
|
|
5739
|
+
"declarations": [
|
|
5740
|
+
{
|
|
5741
|
+
"kind": "function",
|
|
5742
|
+
"name": "defineAgent",
|
|
5743
|
+
"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```"
|
|
5744
|
+
}
|
|
5745
|
+
],
|
|
5746
|
+
"exports": [
|
|
5747
|
+
{
|
|
5748
|
+
"kind": "js",
|
|
5749
|
+
"name": "CachePolicy",
|
|
5750
|
+
"declaration": {
|
|
5751
|
+
"name": "CachePolicy",
|
|
5752
|
+
"module": "src/config/config.ts"
|
|
5753
|
+
}
|
|
5754
|
+
},
|
|
5755
|
+
{
|
|
5756
|
+
"kind": "js",
|
|
5757
|
+
"name": "ChatFallback",
|
|
5758
|
+
"declaration": {
|
|
5759
|
+
"name": "ChatFallback",
|
|
5760
|
+
"module": "src/config/config.ts"
|
|
5761
|
+
}
|
|
5762
|
+
},
|
|
5763
|
+
{
|
|
5764
|
+
"kind": "js",
|
|
5765
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5766
|
+
"declaration": {
|
|
5767
|
+
"name": "ChatInputDuringExecutionMode",
|
|
5768
|
+
"module": "src/config/config.ts"
|
|
5769
|
+
}
|
|
5770
|
+
},
|
|
5771
|
+
{
|
|
5772
|
+
"kind": "js",
|
|
5773
|
+
"name": "ChatThinkingPolicy",
|
|
5774
|
+
"declaration": {
|
|
5775
|
+
"name": "ChatThinkingPolicy",
|
|
5776
|
+
"module": "src/config/config.ts"
|
|
5777
|
+
}
|
|
5778
|
+
},
|
|
5779
|
+
{
|
|
5780
|
+
"kind": "js",
|
|
5781
|
+
"name": "ChatToolChoice",
|
|
5782
|
+
"declaration": {
|
|
5783
|
+
"name": "ChatToolChoice",
|
|
5784
|
+
"module": "src/config/config.ts"
|
|
5785
|
+
}
|
|
5786
|
+
},
|
|
5787
|
+
{
|
|
5788
|
+
"kind": "js",
|
|
5789
|
+
"name": "defineAgent",
|
|
5790
|
+
"declaration": {
|
|
5791
|
+
"name": "defineAgent",
|
|
5792
|
+
"module": "src/config/config.ts"
|
|
5793
|
+
}
|
|
5794
|
+
}
|
|
5795
|
+
]
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"kind": "javascript-module",
|
|
5799
|
+
"path": "src/config/define-stateful-agent.ts",
|
|
5800
|
+
"declarations": [
|
|
5801
|
+
{
|
|
5802
|
+
"kind": "function",
|
|
5803
|
+
"name": "restoreMachine",
|
|
5804
|
+
"return": {
|
|
5805
|
+
"type": {
|
|
5806
|
+
"text": "void"
|
|
5807
|
+
}
|
|
5808
|
+
},
|
|
5809
|
+
"parameters": [
|
|
5810
|
+
{
|
|
5811
|
+
"name": "machine",
|
|
5812
|
+
"type": {
|
|
5813
|
+
"text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
|
|
5814
|
+
},
|
|
5815
|
+
"description": "the machine to restore (already constructed/started)."
|
|
5816
|
+
},
|
|
5817
|
+
{
|
|
5818
|
+
"name": "restored",
|
|
5819
|
+
"type": {
|
|
5820
|
+
"text": "unknown"
|
|
5821
|
+
},
|
|
5822
|
+
"description": "the agent's serialized image (`ctx.restored` in `init`)."
|
|
5823
|
+
},
|
|
5824
|
+
{
|
|
5825
|
+
"name": "key",
|
|
5826
|
+
"default": "'machine'",
|
|
5827
|
+
"description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
|
|
5828
|
+
}
|
|
5829
|
+
],
|
|
5830
|
+
"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."
|
|
5831
|
+
},
|
|
5832
|
+
{
|
|
5833
|
+
"kind": "function",
|
|
5834
|
+
"name": "defineStatefulAgent",
|
|
5835
|
+
"return": {
|
|
5836
|
+
"type": {
|
|
5837
|
+
"text": "AgentConfig"
|
|
5838
|
+
}
|
|
5839
|
+
},
|
|
5840
|
+
"parameters": [
|
|
5841
|
+
{
|
|
5842
|
+
"name": "opts",
|
|
5843
|
+
"type": {
|
|
5844
|
+
"text": "StatefulAgentInit<S>"
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5847
|
+
],
|
|
5848
|
+
"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."
|
|
5849
|
+
},
|
|
5850
|
+
{
|
|
5851
|
+
"kind": "function",
|
|
5852
|
+
"name": "defineAutopilot",
|
|
5853
|
+
"return": {
|
|
5854
|
+
"type": {
|
|
5855
|
+
"text": "AutopilotConfig<S>"
|
|
5856
|
+
}
|
|
5857
|
+
},
|
|
5858
|
+
"parameters": [
|
|
5859
|
+
{
|
|
5860
|
+
"name": "config",
|
|
5861
|
+
"type": {
|
|
5862
|
+
"text": "AutopilotConfig<S>"
|
|
5863
|
+
}
|
|
5864
|
+
}
|
|
5865
|
+
],
|
|
5866
|
+
"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."
|
|
5867
|
+
}
|
|
5868
|
+
],
|
|
5869
|
+
"exports": [
|
|
5870
|
+
{
|
|
5871
|
+
"kind": "js",
|
|
5872
|
+
"name": "restoreMachine",
|
|
5873
|
+
"declaration": {
|
|
5874
|
+
"name": "restoreMachine",
|
|
5875
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
5878
|
+
{
|
|
5879
|
+
"kind": "js",
|
|
5880
|
+
"name": "defineStatefulAgent",
|
|
5881
|
+
"declaration": {
|
|
5882
|
+
"name": "defineStatefulAgent",
|
|
5883
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
5884
|
+
}
|
|
5885
|
+
},
|
|
5886
|
+
{
|
|
5887
|
+
"kind": "js",
|
|
5888
|
+
"name": "defineAutopilot",
|
|
5889
|
+
"declaration": {
|
|
5890
|
+
"name": "defineAutopilot",
|
|
5891
|
+
"module": "src/config/define-stateful-agent.ts"
|
|
5892
|
+
}
|
|
5893
|
+
}
|
|
5894
|
+
]
|
|
5895
|
+
},
|
|
5896
|
+
{
|
|
5897
|
+
"kind": "javascript-module",
|
|
5898
|
+
"path": "src/config/fallback-agents.ts",
|
|
5899
|
+
"declarations": [
|
|
5900
|
+
{
|
|
5901
|
+
"kind": "variable",
|
|
5902
|
+
"name": "friendlyFallbackAgent",
|
|
5903
|
+
"type": {
|
|
5904
|
+
"text": "FallbackAgentConfig"
|
|
5905
|
+
},
|
|
5906
|
+
"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}",
|
|
5907
|
+
"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."
|
|
5908
|
+
},
|
|
5909
|
+
{
|
|
5910
|
+
"kind": "variable",
|
|
5911
|
+
"name": "strictFallbackAgent",
|
|
5912
|
+
"type": {
|
|
5913
|
+
"text": "FallbackAgentConfig"
|
|
5914
|
+
},
|
|
5915
|
+
"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}",
|
|
5916
|
+
"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."
|
|
5917
|
+
}
|
|
5918
|
+
],
|
|
5919
|
+
"exports": [
|
|
5920
|
+
{
|
|
5921
|
+
"kind": "js",
|
|
5922
|
+
"name": "friendlyFallbackAgent",
|
|
5923
|
+
"declaration": {
|
|
5924
|
+
"name": "friendlyFallbackAgent",
|
|
5925
|
+
"module": "src/config/fallback-agents.ts"
|
|
5926
|
+
}
|
|
5927
|
+
},
|
|
5928
|
+
{
|
|
5929
|
+
"kind": "js",
|
|
5930
|
+
"name": "strictFallbackAgent",
|
|
5931
|
+
"declaration": {
|
|
5932
|
+
"name": "strictFallbackAgent",
|
|
5933
|
+
"module": "src/config/fallback-agents.ts"
|
|
5934
|
+
}
|
|
5935
|
+
}
|
|
5936
|
+
]
|
|
5937
|
+
},
|
|
5938
|
+
{
|
|
5939
|
+
"kind": "javascript-module",
|
|
5940
|
+
"path": "src/config/index.ts",
|
|
5941
|
+
"declarations": [],
|
|
5948
5942
|
"exports": [
|
|
5949
5943
|
{
|
|
5950
5944
|
"kind": "js",
|
|
5951
|
-
"name": "
|
|
5945
|
+
"name": "*",
|
|
5952
5946
|
"declaration": {
|
|
5953
|
-
"name": "
|
|
5954
|
-
"
|
|
5947
|
+
"name": "*",
|
|
5948
|
+
"package": "./config"
|
|
5955
5949
|
}
|
|
5956
5950
|
},
|
|
5957
5951
|
{
|
|
5958
|
-
"kind": "
|
|
5959
|
-
"name": "
|
|
5952
|
+
"kind": "js",
|
|
5953
|
+
"name": "*",
|
|
5960
5954
|
"declaration": {
|
|
5961
|
-
"name": "
|
|
5962
|
-
"
|
|
5955
|
+
"name": "*",
|
|
5956
|
+
"package": "./fallback-agents"
|
|
5963
5957
|
}
|
|
5964
5958
|
}
|
|
5965
5959
|
]
|
|
5966
5960
|
},
|
|
5961
|
+
{
|
|
5962
|
+
"kind": "javascript-module",
|
|
5963
|
+
"path": "src/config/validate-providers.ts",
|
|
5964
|
+
"declarations": [],
|
|
5965
|
+
"exports": []
|
|
5966
|
+
},
|
|
5967
5967
|
{
|
|
5968
5968
|
"kind": "javascript-module",
|
|
5969
5969
|
"path": "src/genesis/calendar.ts",
|
|
@@ -17558,6 +17558,119 @@
|
|
|
17558
17558
|
"declarations": [],
|
|
17559
17559
|
"exports": []
|
|
17560
17560
|
},
|
|
17561
|
+
{
|
|
17562
|
+
"kind": "javascript-module",
|
|
17563
|
+
"path": "src/components/activity-halo/activity-halo.ts",
|
|
17564
|
+
"declarations": [
|
|
17565
|
+
{
|
|
17566
|
+
"kind": "class",
|
|
17567
|
+
"description": "Wrapper component that shows an `<ai-halo-overlay>` when the AI assistant\nis executing one of the declared tool names.",
|
|
17568
|
+
"name": "AiActivityHalo",
|
|
17569
|
+
"members": [
|
|
17570
|
+
{
|
|
17571
|
+
"kind": "field",
|
|
17572
|
+
"name": "tools",
|
|
17573
|
+
"type": {
|
|
17574
|
+
"text": "string"
|
|
17575
|
+
},
|
|
17576
|
+
"default": "''",
|
|
17577
|
+
"description": "Comma-separated list of tool names this element reacts to."
|
|
17578
|
+
},
|
|
17579
|
+
{
|
|
17580
|
+
"kind": "field",
|
|
17581
|
+
"name": "minShowTime",
|
|
17582
|
+
"type": {
|
|
17583
|
+
"text": "number"
|
|
17584
|
+
},
|
|
17585
|
+
"default": "600",
|
|
17586
|
+
"description": "Minimum time in ms the halo stays visible after activation."
|
|
17587
|
+
},
|
|
17588
|
+
{
|
|
17589
|
+
"kind": "field",
|
|
17590
|
+
"name": "unsubBus",
|
|
17591
|
+
"type": {
|
|
17592
|
+
"text": "() => void | undefined"
|
|
17593
|
+
},
|
|
17594
|
+
"privacy": "private"
|
|
17595
|
+
},
|
|
17596
|
+
{
|
|
17597
|
+
"kind": "field",
|
|
17598
|
+
"name": "hideTimeout",
|
|
17599
|
+
"type": {
|
|
17600
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
17601
|
+
},
|
|
17602
|
+
"privacy": "private"
|
|
17603
|
+
},
|
|
17604
|
+
{
|
|
17605
|
+
"kind": "field",
|
|
17606
|
+
"name": "startTime",
|
|
17607
|
+
"type": {
|
|
17608
|
+
"text": "number"
|
|
17609
|
+
},
|
|
17610
|
+
"privacy": "private",
|
|
17611
|
+
"default": "0"
|
|
17612
|
+
},
|
|
17613
|
+
{
|
|
17614
|
+
"kind": "method",
|
|
17615
|
+
"name": "activate",
|
|
17616
|
+
"privacy": "private"
|
|
17617
|
+
},
|
|
17618
|
+
{
|
|
17619
|
+
"kind": "method",
|
|
17620
|
+
"name": "scheduleDeactivate",
|
|
17621
|
+
"privacy": "private"
|
|
17622
|
+
}
|
|
17623
|
+
],
|
|
17624
|
+
"attributes": [
|
|
17625
|
+
{
|
|
17626
|
+
"name": "tools",
|
|
17627
|
+
"type": {
|
|
17628
|
+
"text": "string"
|
|
17629
|
+
},
|
|
17630
|
+
"default": "''",
|
|
17631
|
+
"description": "Comma-separated list of tool names this element reacts to.",
|
|
17632
|
+
"fieldName": "tools"
|
|
17633
|
+
},
|
|
17634
|
+
{
|
|
17635
|
+
"name": "min-show-time",
|
|
17636
|
+
"type": {
|
|
17637
|
+
"text": "number"
|
|
17638
|
+
},
|
|
17639
|
+
"default": "DEFAULT_MIN_SHOW_TIME",
|
|
17640
|
+
"description": "Minimum time in ms the halo stays visible after activation.",
|
|
17641
|
+
"resolveInitializer": {
|
|
17642
|
+
"module": "src/components/activity-halo/activity-halo.ts"
|
|
17643
|
+
},
|
|
17644
|
+
"fieldName": "minShowTime"
|
|
17645
|
+
}
|
|
17646
|
+
],
|
|
17647
|
+
"superclass": {
|
|
17648
|
+
"name": "GenesisElement",
|
|
17649
|
+
"package": "@genesislcap/web-core"
|
|
17650
|
+
},
|
|
17651
|
+
"tagName": "ai-activity-halo",
|
|
17652
|
+
"customElement": true
|
|
17653
|
+
}
|
|
17654
|
+
],
|
|
17655
|
+
"exports": [
|
|
17656
|
+
{
|
|
17657
|
+
"kind": "js",
|
|
17658
|
+
"name": "AiActivityHalo",
|
|
17659
|
+
"declaration": {
|
|
17660
|
+
"name": "AiActivityHalo",
|
|
17661
|
+
"module": "src/components/activity-halo/activity-halo.ts"
|
|
17662
|
+
}
|
|
17663
|
+
},
|
|
17664
|
+
{
|
|
17665
|
+
"kind": "custom-element-definition",
|
|
17666
|
+
"name": "ai-activity-halo",
|
|
17667
|
+
"declaration": {
|
|
17668
|
+
"name": "AiActivityHalo",
|
|
17669
|
+
"module": "src/components/activity-halo/activity-halo.ts"
|
|
17670
|
+
}
|
|
17671
|
+
}
|
|
17672
|
+
]
|
|
17673
|
+
},
|
|
17561
17674
|
{
|
|
17562
17675
|
"kind": "javascript-module",
|
|
17563
17676
|
"path": "src/autopilot/hand-back/hand-back.controller.ts",
|
|
@@ -17761,119 +17874,6 @@
|
|
|
17761
17874
|
}
|
|
17762
17875
|
]
|
|
17763
17876
|
},
|
|
17764
|
-
{
|
|
17765
|
-
"kind": "javascript-module",
|
|
17766
|
-
"path": "src/components/activity-halo/activity-halo.ts",
|
|
17767
|
-
"declarations": [
|
|
17768
|
-
{
|
|
17769
|
-
"kind": "class",
|
|
17770
|
-
"description": "Wrapper component that shows an `<ai-halo-overlay>` when the AI assistant\nis executing one of the declared tool names.",
|
|
17771
|
-
"name": "AiActivityHalo",
|
|
17772
|
-
"members": [
|
|
17773
|
-
{
|
|
17774
|
-
"kind": "field",
|
|
17775
|
-
"name": "tools",
|
|
17776
|
-
"type": {
|
|
17777
|
-
"text": "string"
|
|
17778
|
-
},
|
|
17779
|
-
"default": "''",
|
|
17780
|
-
"description": "Comma-separated list of tool names this element reacts to."
|
|
17781
|
-
},
|
|
17782
|
-
{
|
|
17783
|
-
"kind": "field",
|
|
17784
|
-
"name": "minShowTime",
|
|
17785
|
-
"type": {
|
|
17786
|
-
"text": "number"
|
|
17787
|
-
},
|
|
17788
|
-
"default": "600",
|
|
17789
|
-
"description": "Minimum time in ms the halo stays visible after activation."
|
|
17790
|
-
},
|
|
17791
|
-
{
|
|
17792
|
-
"kind": "field",
|
|
17793
|
-
"name": "unsubBus",
|
|
17794
|
-
"type": {
|
|
17795
|
-
"text": "() => void | undefined"
|
|
17796
|
-
},
|
|
17797
|
-
"privacy": "private"
|
|
17798
|
-
},
|
|
17799
|
-
{
|
|
17800
|
-
"kind": "field",
|
|
17801
|
-
"name": "hideTimeout",
|
|
17802
|
-
"type": {
|
|
17803
|
-
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
17804
|
-
},
|
|
17805
|
-
"privacy": "private"
|
|
17806
|
-
},
|
|
17807
|
-
{
|
|
17808
|
-
"kind": "field",
|
|
17809
|
-
"name": "startTime",
|
|
17810
|
-
"type": {
|
|
17811
|
-
"text": "number"
|
|
17812
|
-
},
|
|
17813
|
-
"privacy": "private",
|
|
17814
|
-
"default": "0"
|
|
17815
|
-
},
|
|
17816
|
-
{
|
|
17817
|
-
"kind": "method",
|
|
17818
|
-
"name": "activate",
|
|
17819
|
-
"privacy": "private"
|
|
17820
|
-
},
|
|
17821
|
-
{
|
|
17822
|
-
"kind": "method",
|
|
17823
|
-
"name": "scheduleDeactivate",
|
|
17824
|
-
"privacy": "private"
|
|
17825
|
-
}
|
|
17826
|
-
],
|
|
17827
|
-
"attributes": [
|
|
17828
|
-
{
|
|
17829
|
-
"name": "tools",
|
|
17830
|
-
"type": {
|
|
17831
|
-
"text": "string"
|
|
17832
|
-
},
|
|
17833
|
-
"default": "''",
|
|
17834
|
-
"description": "Comma-separated list of tool names this element reacts to.",
|
|
17835
|
-
"fieldName": "tools"
|
|
17836
|
-
},
|
|
17837
|
-
{
|
|
17838
|
-
"name": "min-show-time",
|
|
17839
|
-
"type": {
|
|
17840
|
-
"text": "number"
|
|
17841
|
-
},
|
|
17842
|
-
"default": "DEFAULT_MIN_SHOW_TIME",
|
|
17843
|
-
"description": "Minimum time in ms the halo stays visible after activation.",
|
|
17844
|
-
"resolveInitializer": {
|
|
17845
|
-
"module": "src/components/activity-halo/activity-halo.ts"
|
|
17846
|
-
},
|
|
17847
|
-
"fieldName": "minShowTime"
|
|
17848
|
-
}
|
|
17849
|
-
],
|
|
17850
|
-
"superclass": {
|
|
17851
|
-
"name": "GenesisElement",
|
|
17852
|
-
"package": "@genesislcap/web-core"
|
|
17853
|
-
},
|
|
17854
|
-
"tagName": "ai-activity-halo",
|
|
17855
|
-
"customElement": true
|
|
17856
|
-
}
|
|
17857
|
-
],
|
|
17858
|
-
"exports": [
|
|
17859
|
-
{
|
|
17860
|
-
"kind": "js",
|
|
17861
|
-
"name": "AiActivityHalo",
|
|
17862
|
-
"declaration": {
|
|
17863
|
-
"name": "AiActivityHalo",
|
|
17864
|
-
"module": "src/components/activity-halo/activity-halo.ts"
|
|
17865
|
-
}
|
|
17866
|
-
},
|
|
17867
|
-
{
|
|
17868
|
-
"kind": "custom-element-definition",
|
|
17869
|
-
"name": "ai-activity-halo",
|
|
17870
|
-
"declaration": {
|
|
17871
|
-
"name": "AiActivityHalo",
|
|
17872
|
-
"module": "src/components/activity-halo/activity-halo.ts"
|
|
17873
|
-
}
|
|
17874
|
-
}
|
|
17875
|
-
]
|
|
17876
|
-
},
|
|
17877
17877
|
{
|
|
17878
17878
|
"kind": "javascript-module",
|
|
17879
17879
|
"path": "src/components/agent-picker/agent-picker.constants.ts",
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -112,23 +112,23 @@ export declare const ChatSuggestions: React.ForwardRefExoticComponent<
|
|
|
112
112
|
>;
|
|
113
113
|
export type ChatSuggestionsRef = ChatSuggestionsWC;
|
|
114
114
|
|
|
115
|
-
export declare const
|
|
115
|
+
export declare const AiActivityHalo: React.ForwardRefExoticComponent<
|
|
116
116
|
React.PropsWithChildren<
|
|
117
|
-
Omit<PublicOf<
|
|
117
|
+
Omit<PublicOf<AiActivityHaloWC>, 'children' | 'style'> &
|
|
118
118
|
HTMLWCProps & {
|
|
119
119
|
}
|
|
120
|
-
> & React.RefAttributes<
|
|
120
|
+
> & React.RefAttributes<AiActivityHaloWC>
|
|
121
121
|
>;
|
|
122
|
-
export type
|
|
122
|
+
export type AiActivityHaloRef = AiActivityHaloWC;
|
|
123
123
|
|
|
124
|
-
export declare const
|
|
124
|
+
export declare const AutopilotHandBack: React.ForwardRefExoticComponent<
|
|
125
125
|
React.PropsWithChildren<
|
|
126
|
-
Omit<PublicOf<
|
|
126
|
+
Omit<PublicOf<AutopilotHandBackWC>, 'children' | 'style'> &
|
|
127
127
|
HTMLWCProps & {
|
|
128
128
|
}
|
|
129
|
-
> & React.RefAttributes<
|
|
129
|
+
> & React.RefAttributes<AutopilotHandBackWC>
|
|
130
130
|
>;
|
|
131
|
-
export type
|
|
131
|
+
export type AutopilotHandBackRef = AutopilotHandBackWC;
|
|
132
132
|
|
|
133
133
|
export declare const AgentPicker: React.ForwardRefExoticComponent<
|
|
134
134
|
React.PropsWithChildren<
|
package/dist/react.cjs
CHANGED
|
@@ -104,14 +104,14 @@ const ChatSuggestions = React.forwardRef(function ChatSuggestions(props, ref) {
|
|
|
104
104
|
return React.createElement(customElements.getName(ChatSuggestionsWC) ?? 'chat-suggestions', { ...rest, ref }, children);
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
const
|
|
107
|
+
const AiActivityHalo = React.forwardRef(function AiActivityHalo(props, ref) {
|
|
108
108
|
const { children, ...rest } = props;
|
|
109
|
-
return React.createElement(customElements.getName(
|
|
109
|
+
return React.createElement(customElements.getName(AiActivityHaloWC) ?? 'ai-activity-halo', { ...rest, ref }, children);
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
const
|
|
112
|
+
const AutopilotHandBack = React.forwardRef(function AutopilotHandBack(props, ref) {
|
|
113
113
|
const { children, ...rest } = props;
|
|
114
|
-
return React.createElement(customElements.getName(
|
|
114
|
+
return React.createElement(customElements.getName(AutopilotHandBackWC) ?? 'AUTOPILOT_HAND_BACK', { ...rest, ref }, children);
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
const AgentPicker = React.forwardRef(function AgentPicker(props, ref) {
|
|
@@ -207,8 +207,8 @@ module.exports = {
|
|
|
207
207
|
AiWavesIndicator,
|
|
208
208
|
FoundationAiAssistant,
|
|
209
209
|
ChatSuggestions,
|
|
210
|
-
AutopilotHandBack,
|
|
211
210
|
AiActivityHalo,
|
|
211
|
+
AutopilotHandBack,
|
|
212
212
|
AgentPicker,
|
|
213
213
|
AiChatBubble,
|
|
214
214
|
AiChatInteractionWrapper,
|
package/dist/react.mjs
CHANGED
|
@@ -102,14 +102,14 @@ export const ChatSuggestions = React.forwardRef(function ChatSuggestions(props,
|
|
|
102
102
|
return React.createElement(customElements.getName(ChatSuggestionsWC) ?? 'chat-suggestions', { ...rest, ref }, children);
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
export const
|
|
105
|
+
export const AiActivityHalo = React.forwardRef(function AiActivityHalo(props, ref) {
|
|
106
106
|
const { children, ...rest } = props;
|
|
107
|
-
return React.createElement(customElements.getName(
|
|
107
|
+
return React.createElement(customElements.getName(AiActivityHaloWC) ?? 'ai-activity-halo', { ...rest, ref }, children);
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
export const
|
|
110
|
+
export const AutopilotHandBack = React.forwardRef(function AutopilotHandBack(props, ref) {
|
|
111
111
|
const { children, ...rest } = props;
|
|
112
|
-
return React.createElement(customElements.getName(
|
|
112
|
+
return React.createElement(customElements.getName(AutopilotHandBackWC) ?? 'AUTOPILOT_HAND_BACK', { ...rest, ref }, children);
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
export const AgentPicker = React.forwardRef(function AgentPicker(props, ref) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/ai-assistant",
|
|
3
3
|
"description": "Genesis AI Assistant micro-frontend",
|
|
4
|
-
"version": "15.88.
|
|
4
|
+
"version": "15.88.2",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -102,31 +102,31 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@genesislcap/foundation-comms": "15.88.
|
|
106
|
-
"@genesislcap/foundation-testing": "15.88.
|
|
107
|
-
"@genesislcap/genx": "15.88.
|
|
108
|
-
"@genesislcap/ts-builder": "15.88.
|
|
109
|
-
"@genesislcap/uvu-playwright-builder": "15.88.
|
|
110
|
-
"@genesislcap/vite-builder": "15.88.
|
|
111
|
-
"@genesislcap/webpack-builder": "15.88.
|
|
105
|
+
"@genesislcap/foundation-comms": "15.88.2",
|
|
106
|
+
"@genesislcap/foundation-testing": "15.88.2",
|
|
107
|
+
"@genesislcap/genx": "15.88.2",
|
|
108
|
+
"@genesislcap/ts-builder": "15.88.2",
|
|
109
|
+
"@genesislcap/uvu-playwright-builder": "15.88.2",
|
|
110
|
+
"@genesislcap/vite-builder": "15.88.2",
|
|
111
|
+
"@genesislcap/webpack-builder": "15.88.2",
|
|
112
112
|
"@types/dompurify": "^3.0.5",
|
|
113
113
|
"@types/marked": "^5.0.2",
|
|
114
114
|
"esbuild": "0.25.12"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
|
-
"@genesislcap/foundation-ai": "15.88.
|
|
118
|
-
"@genesislcap/foundation-logger": "15.88.
|
|
119
|
-
"@genesislcap/foundation-notifications": "15.88.
|
|
120
|
-
"@genesislcap/foundation-redux": "15.88.
|
|
121
|
-
"@genesislcap/foundation-ui": "15.88.
|
|
122
|
-
"@genesislcap/foundation-utils": "15.88.
|
|
123
|
-
"@genesislcap/rapid-design-system": "15.88.
|
|
124
|
-
"@genesislcap/web-core": "15.88.
|
|
117
|
+
"@genesislcap/foundation-ai": "15.88.2",
|
|
118
|
+
"@genesislcap/foundation-logger": "15.88.2",
|
|
119
|
+
"@genesislcap/foundation-notifications": "15.88.2",
|
|
120
|
+
"@genesislcap/foundation-redux": "15.88.2",
|
|
121
|
+
"@genesislcap/foundation-ui": "15.88.2",
|
|
122
|
+
"@genesislcap/foundation-utils": "15.88.2",
|
|
123
|
+
"@genesislcap/rapid-design-system": "15.88.2",
|
|
124
|
+
"@genesislcap/web-core": "15.88.2",
|
|
125
125
|
"dompurify": "^3.3.1",
|
|
126
126
|
"marked": "^17.0.3"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@genesislcap/foundation-comms": "15.88.
|
|
129
|
+
"@genesislcap/foundation-comms": "15.88.2"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@genesislcap/foundation-comms": {
|