@genesislcap/ai-assistant 14.493.0 → 14.494.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +189 -189
  2. package/package.json +17 -17
@@ -385,195 +385,6 @@
385
385
  "declarations": [],
386
386
  "exports": []
387
387
  },
388
- {
389
- "kind": "javascript-module",
390
- "path": "src/config/config.ts",
391
- "declarations": [
392
- {
393
- "kind": "function",
394
- "name": "defineAgent",
395
- "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```"
396
- }
397
- ],
398
- "exports": [
399
- {
400
- "kind": "js",
401
- "name": "CachePolicy",
402
- "declaration": {
403
- "name": "CachePolicy",
404
- "module": "src/config/config.ts"
405
- }
406
- },
407
- {
408
- "kind": "js",
409
- "name": "ChatInputDuringExecutionMode",
410
- "declaration": {
411
- "name": "ChatInputDuringExecutionMode",
412
- "module": "src/config/config.ts"
413
- }
414
- },
415
- {
416
- "kind": "js",
417
- "name": "ChatToolChoice",
418
- "declaration": {
419
- "name": "ChatToolChoice",
420
- "module": "src/config/config.ts"
421
- }
422
- },
423
- {
424
- "kind": "js",
425
- "name": "defineAgent",
426
- "declaration": {
427
- "name": "defineAgent",
428
- "module": "src/config/config.ts"
429
- }
430
- }
431
- ]
432
- },
433
- {
434
- "kind": "javascript-module",
435
- "path": "src/config/define-stateful-agent.ts",
436
- "declarations": [
437
- {
438
- "kind": "function",
439
- "name": "restoreMachine",
440
- "return": {
441
- "type": {
442
- "text": "void"
443
- }
444
- },
445
- "parameters": [
446
- {
447
- "name": "machine",
448
- "type": {
449
- "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
450
- },
451
- "description": "the machine to restore (already constructed/started)."
452
- },
453
- {
454
- "name": "restored",
455
- "type": {
456
- "text": "unknown"
457
- },
458
- "description": "the agent's serialized image (`ctx.restored` in `init`)."
459
- },
460
- {
461
- "name": "key",
462
- "default": "'machine'",
463
- "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
464
- }
465
- ],
466
- "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."
467
- },
468
- {
469
- "kind": "function",
470
- "name": "defineStatefulAgent",
471
- "return": {
472
- "type": {
473
- "text": "AgentConfig"
474
- }
475
- },
476
- "parameters": [
477
- {
478
- "name": "opts",
479
- "type": {
480
- "text": "StatefulAgentInit<S>"
481
- }
482
- }
483
- ],
484
- "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."
485
- }
486
- ],
487
- "exports": [
488
- {
489
- "kind": "js",
490
- "name": "restoreMachine",
491
- "declaration": {
492
- "name": "restoreMachine",
493
- "module": "src/config/define-stateful-agent.ts"
494
- }
495
- },
496
- {
497
- "kind": "js",
498
- "name": "defineStatefulAgent",
499
- "declaration": {
500
- "name": "defineStatefulAgent",
501
- "module": "src/config/define-stateful-agent.ts"
502
- }
503
- }
504
- ]
505
- },
506
- {
507
- "kind": "javascript-module",
508
- "path": "src/config/fallback-agents.ts",
509
- "declarations": [
510
- {
511
- "kind": "variable",
512
- "name": "friendlyFallbackAgent",
513
- "type": {
514
- "text": "FallbackAgentConfig"
515
- },
516
- "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}",
517
- "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."
518
- },
519
- {
520
- "kind": "variable",
521
- "name": "strictFallbackAgent",
522
- "type": {
523
- "text": "FallbackAgentConfig"
524
- },
525
- "default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. Respond with a single short sentence stating what you can assist with. Do not elaborate. The available specialists are: {{agents}}.`,\n}",
526
- "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."
527
- }
528
- ],
529
- "exports": [
530
- {
531
- "kind": "js",
532
- "name": "friendlyFallbackAgent",
533
- "declaration": {
534
- "name": "friendlyFallbackAgent",
535
- "module": "src/config/fallback-agents.ts"
536
- }
537
- },
538
- {
539
- "kind": "js",
540
- "name": "strictFallbackAgent",
541
- "declaration": {
542
- "name": "strictFallbackAgent",
543
- "module": "src/config/fallback-agents.ts"
544
- }
545
- }
546
- ]
547
- },
548
- {
549
- "kind": "javascript-module",
550
- "path": "src/config/index.ts",
551
- "declarations": [],
552
- "exports": [
553
- {
554
- "kind": "js",
555
- "name": "*",
556
- "declaration": {
557
- "name": "*",
558
- "package": "./config"
559
- }
560
- },
561
- {
562
- "kind": "js",
563
- "name": "*",
564
- "declaration": {
565
- "name": "*",
566
- "package": "./fallback-agents"
567
- }
568
- }
569
- ]
570
- },
571
- {
572
- "kind": "javascript-module",
573
- "path": "src/config/validate-providers.ts",
574
- "declarations": [],
575
- "exports": []
576
- },
577
388
  {
578
389
  "kind": "javascript-module",
579
390
  "path": "src/components/flowing-waves-indicator.ts",
@@ -3725,6 +3536,195 @@
3725
3536
  }
3726
3537
  ]
3727
3538
  },
3539
+ {
3540
+ "kind": "javascript-module",
3541
+ "path": "src/config/config.ts",
3542
+ "declarations": [
3543
+ {
3544
+ "kind": "function",
3545
+ "name": "defineAgent",
3546
+ "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```"
3547
+ }
3548
+ ],
3549
+ "exports": [
3550
+ {
3551
+ "kind": "js",
3552
+ "name": "CachePolicy",
3553
+ "declaration": {
3554
+ "name": "CachePolicy",
3555
+ "module": "src/config/config.ts"
3556
+ }
3557
+ },
3558
+ {
3559
+ "kind": "js",
3560
+ "name": "ChatInputDuringExecutionMode",
3561
+ "declaration": {
3562
+ "name": "ChatInputDuringExecutionMode",
3563
+ "module": "src/config/config.ts"
3564
+ }
3565
+ },
3566
+ {
3567
+ "kind": "js",
3568
+ "name": "ChatToolChoice",
3569
+ "declaration": {
3570
+ "name": "ChatToolChoice",
3571
+ "module": "src/config/config.ts"
3572
+ }
3573
+ },
3574
+ {
3575
+ "kind": "js",
3576
+ "name": "defineAgent",
3577
+ "declaration": {
3578
+ "name": "defineAgent",
3579
+ "module": "src/config/config.ts"
3580
+ }
3581
+ }
3582
+ ]
3583
+ },
3584
+ {
3585
+ "kind": "javascript-module",
3586
+ "path": "src/config/define-stateful-agent.ts",
3587
+ "declarations": [
3588
+ {
3589
+ "kind": "function",
3590
+ "name": "restoreMachine",
3591
+ "return": {
3592
+ "type": {
3593
+ "text": "void"
3594
+ }
3595
+ },
3596
+ "parameters": [
3597
+ {
3598
+ "name": "machine",
3599
+ "type": {
3600
+ "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
3601
+ },
3602
+ "description": "the machine to restore (already constructed/started)."
3603
+ },
3604
+ {
3605
+ "name": "restored",
3606
+ "type": {
3607
+ "text": "unknown"
3608
+ },
3609
+ "description": "the agent's serialized image (`ctx.restored` in `init`)."
3610
+ },
3611
+ {
3612
+ "name": "key",
3613
+ "default": "'machine'",
3614
+ "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
3615
+ }
3616
+ ],
3617
+ "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."
3618
+ },
3619
+ {
3620
+ "kind": "function",
3621
+ "name": "defineStatefulAgent",
3622
+ "return": {
3623
+ "type": {
3624
+ "text": "AgentConfig"
3625
+ }
3626
+ },
3627
+ "parameters": [
3628
+ {
3629
+ "name": "opts",
3630
+ "type": {
3631
+ "text": "StatefulAgentInit<S>"
3632
+ }
3633
+ }
3634
+ ],
3635
+ "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."
3636
+ }
3637
+ ],
3638
+ "exports": [
3639
+ {
3640
+ "kind": "js",
3641
+ "name": "restoreMachine",
3642
+ "declaration": {
3643
+ "name": "restoreMachine",
3644
+ "module": "src/config/define-stateful-agent.ts"
3645
+ }
3646
+ },
3647
+ {
3648
+ "kind": "js",
3649
+ "name": "defineStatefulAgent",
3650
+ "declaration": {
3651
+ "name": "defineStatefulAgent",
3652
+ "module": "src/config/define-stateful-agent.ts"
3653
+ }
3654
+ }
3655
+ ]
3656
+ },
3657
+ {
3658
+ "kind": "javascript-module",
3659
+ "path": "src/config/fallback-agents.ts",
3660
+ "declarations": [
3661
+ {
3662
+ "kind": "variable",
3663
+ "name": "friendlyFallbackAgent",
3664
+ "type": {
3665
+ "text": "FallbackAgentConfig"
3666
+ },
3667
+ "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}",
3668
+ "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."
3669
+ },
3670
+ {
3671
+ "kind": "variable",
3672
+ "name": "strictFallbackAgent",
3673
+ "type": {
3674
+ "text": "FallbackAgentConfig"
3675
+ },
3676
+ "default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. Respond with a single short sentence stating what you can assist with. Do not elaborate. The available specialists are: {{agents}}.`,\n}",
3677
+ "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."
3678
+ }
3679
+ ],
3680
+ "exports": [
3681
+ {
3682
+ "kind": "js",
3683
+ "name": "friendlyFallbackAgent",
3684
+ "declaration": {
3685
+ "name": "friendlyFallbackAgent",
3686
+ "module": "src/config/fallback-agents.ts"
3687
+ }
3688
+ },
3689
+ {
3690
+ "kind": "js",
3691
+ "name": "strictFallbackAgent",
3692
+ "declaration": {
3693
+ "name": "strictFallbackAgent",
3694
+ "module": "src/config/fallback-agents.ts"
3695
+ }
3696
+ }
3697
+ ]
3698
+ },
3699
+ {
3700
+ "kind": "javascript-module",
3701
+ "path": "src/config/index.ts",
3702
+ "declarations": [],
3703
+ "exports": [
3704
+ {
3705
+ "kind": "js",
3706
+ "name": "*",
3707
+ "declaration": {
3708
+ "name": "*",
3709
+ "package": "./config"
3710
+ }
3711
+ },
3712
+ {
3713
+ "kind": "js",
3714
+ "name": "*",
3715
+ "declaration": {
3716
+ "name": "*",
3717
+ "package": "./fallback-agents"
3718
+ }
3719
+ }
3720
+ ]
3721
+ },
3722
+ {
3723
+ "kind": "javascript-module",
3724
+ "path": "src/config/validate-providers.ts",
3725
+ "declarations": [],
3726
+ "exports": []
3727
+ },
3728
3728
  {
3729
3729
  "kind": "javascript-module",
3730
3730
  "path": "src/state/ai-assistant-slice.ts",
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": "14.493.0",
4
+ "version": "14.494.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/ai-assistant.d.ts",
@@ -64,25 +64,25 @@
64
64
  }
65
65
  },
66
66
  "devDependencies": {
67
- "@genesislcap/foundation-testing": "14.493.0",
68
- "@genesislcap/genx": "14.493.0",
69
- "@genesislcap/rollup-builder": "14.493.0",
70
- "@genesislcap/ts-builder": "14.493.0",
71
- "@genesislcap/uvu-playwright-builder": "14.493.0",
72
- "@genesislcap/vite-builder": "14.493.0",
73
- "@genesislcap/webpack-builder": "14.493.0",
67
+ "@genesislcap/foundation-testing": "14.494.0",
68
+ "@genesislcap/genx": "14.494.0",
69
+ "@genesislcap/rollup-builder": "14.494.0",
70
+ "@genesislcap/ts-builder": "14.494.0",
71
+ "@genesislcap/uvu-playwright-builder": "14.494.0",
72
+ "@genesislcap/vite-builder": "14.494.0",
73
+ "@genesislcap/webpack-builder": "14.494.0",
74
74
  "@types/dompurify": "^3.0.5",
75
75
  "@types/marked": "^5.0.2"
76
76
  },
77
77
  "dependencies": {
78
- "@genesislcap/foundation-ai": "14.493.0",
79
- "@genesislcap/foundation-logger": "14.493.0",
80
- "@genesislcap/foundation-notifications": "14.493.0",
81
- "@genesislcap/foundation-redux": "14.493.0",
82
- "@genesislcap/foundation-ui": "14.493.0",
83
- "@genesislcap/foundation-utils": "14.493.0",
84
- "@genesislcap/rapid-design-system": "14.493.0",
85
- "@genesislcap/web-core": "14.493.0",
78
+ "@genesislcap/foundation-ai": "14.494.0",
79
+ "@genesislcap/foundation-logger": "14.494.0",
80
+ "@genesislcap/foundation-notifications": "14.494.0",
81
+ "@genesislcap/foundation-redux": "14.494.0",
82
+ "@genesislcap/foundation-ui": "14.494.0",
83
+ "@genesislcap/foundation-utils": "14.494.0",
84
+ "@genesislcap/rapid-design-system": "14.494.0",
85
+ "@genesislcap/web-core": "14.494.0",
86
86
  "dompurify": "^3.3.1",
87
87
  "marked": "^17.0.3"
88
88
  },
@@ -95,5 +95,5 @@
95
95
  "access": "public"
96
96
  },
97
97
  "customElements": "dist/custom-elements.json",
98
- "gitHead": "2b0151c9b97de599b533df22aa48c7c79b6f6bf4"
98
+ "gitHead": "df845b67dcc681aa3775bdc87b9d91b404791868"
99
99
  }