@genesislcap/ai-assistant 14.484.0 → 14.484.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +274 -274
  2. package/package.json +17 -17
@@ -361,6 +361,156 @@
361
361
  "declarations": [],
362
362
  "exports": []
363
363
  },
364
+ {
365
+ "kind": "javascript-module",
366
+ "path": "src/config/config.ts",
367
+ "declarations": [
368
+ {
369
+ "kind": "function",
370
+ "name": "defineAgent",
371
+ "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```"
372
+ }
373
+ ],
374
+ "exports": [
375
+ {
376
+ "kind": "js",
377
+ "name": "CachePolicy",
378
+ "declaration": {
379
+ "name": "CachePolicy",
380
+ "module": "src/config/config.ts"
381
+ }
382
+ },
383
+ {
384
+ "kind": "js",
385
+ "name": "ChatInputDuringExecutionMode",
386
+ "declaration": {
387
+ "name": "ChatInputDuringExecutionMode",
388
+ "module": "src/config/config.ts"
389
+ }
390
+ },
391
+ {
392
+ "kind": "js",
393
+ "name": "ChatToolChoice",
394
+ "declaration": {
395
+ "name": "ChatToolChoice",
396
+ "module": "src/config/config.ts"
397
+ }
398
+ },
399
+ {
400
+ "kind": "js",
401
+ "name": "defineAgent",
402
+ "declaration": {
403
+ "name": "defineAgent",
404
+ "module": "src/config/config.ts"
405
+ }
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "kind": "javascript-module",
411
+ "path": "src/config/define-stateful-agent.ts",
412
+ "declarations": [
413
+ {
414
+ "kind": "function",
415
+ "name": "defineStatefulAgent",
416
+ "return": {
417
+ "type": {
418
+ "text": "AgentConfig"
419
+ }
420
+ },
421
+ "parameters": [
422
+ {
423
+ "name": "opts",
424
+ "type": {
425
+ "text": "StatefulAgentInit<S>"
426
+ }
427
+ }
428
+ ],
429
+ "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."
430
+ }
431
+ ],
432
+ "exports": [
433
+ {
434
+ "kind": "js",
435
+ "name": "defineStatefulAgent",
436
+ "declaration": {
437
+ "name": "defineStatefulAgent",
438
+ "module": "src/config/define-stateful-agent.ts"
439
+ }
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "kind": "javascript-module",
445
+ "path": "src/config/fallback-agents.ts",
446
+ "declarations": [
447
+ {
448
+ "kind": "variable",
449
+ "name": "friendlyFallbackAgent",
450
+ "type": {
451
+ "text": "FallbackAgentConfig"
452
+ },
453
+ "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}",
454
+ "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."
455
+ },
456
+ {
457
+ "kind": "variable",
458
+ "name": "strictFallbackAgent",
459
+ "type": {
460
+ "text": "FallbackAgentConfig"
461
+ },
462
+ "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}",
463
+ "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."
464
+ }
465
+ ],
466
+ "exports": [
467
+ {
468
+ "kind": "js",
469
+ "name": "friendlyFallbackAgent",
470
+ "declaration": {
471
+ "name": "friendlyFallbackAgent",
472
+ "module": "src/config/fallback-agents.ts"
473
+ }
474
+ },
475
+ {
476
+ "kind": "js",
477
+ "name": "strictFallbackAgent",
478
+ "declaration": {
479
+ "name": "strictFallbackAgent",
480
+ "module": "src/config/fallback-agents.ts"
481
+ }
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "kind": "javascript-module",
487
+ "path": "src/config/index.ts",
488
+ "declarations": [],
489
+ "exports": [
490
+ {
491
+ "kind": "js",
492
+ "name": "*",
493
+ "declaration": {
494
+ "name": "*",
495
+ "package": "./config"
496
+ }
497
+ },
498
+ {
499
+ "kind": "js",
500
+ "name": "*",
501
+ "declaration": {
502
+ "name": "*",
503
+ "package": "./fallback-agents"
504
+ }
505
+ }
506
+ ]
507
+ },
508
+ {
509
+ "kind": "javascript-module",
510
+ "path": "src/config/validate-providers.ts",
511
+ "declarations": [],
512
+ "exports": []
513
+ },
364
514
  {
365
515
  "kind": "javascript-module",
366
516
  "path": "src/components/flowing-waves-indicator.ts",
@@ -817,180 +967,30 @@
817
967
  "superclass": {
818
968
  "name": "GenesisElement",
819
969
  "package": "@genesislcap/web-core"
820
- },
821
- "tagName": "ai-waves-indicator",
822
- "customElement": true
823
- }
824
- ],
825
- "exports": [
826
- {
827
- "kind": "js",
828
- "name": "AiWavesIndicator",
829
- "declaration": {
830
- "name": "AiWavesIndicator",
831
- "module": "src/components/waves-indicator.ts"
832
- }
833
- },
834
- {
835
- "kind": "custom-element-definition",
836
- "name": "ai-waves-indicator",
837
- "declaration": {
838
- "name": "AiWavesIndicator",
839
- "module": "src/components/waves-indicator.ts"
840
- }
841
- }
842
- ]
843
- },
844
- {
845
- "kind": "javascript-module",
846
- "path": "src/config/config.ts",
847
- "declarations": [
848
- {
849
- "kind": "function",
850
- "name": "defineAgent",
851
- "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```"
852
- }
853
- ],
854
- "exports": [
855
- {
856
- "kind": "js",
857
- "name": "CachePolicy",
858
- "declaration": {
859
- "name": "CachePolicy",
860
- "module": "src/config/config.ts"
861
- }
862
- },
863
- {
864
- "kind": "js",
865
- "name": "ChatInputDuringExecutionMode",
866
- "declaration": {
867
- "name": "ChatInputDuringExecutionMode",
868
- "module": "src/config/config.ts"
869
- }
870
- },
871
- {
872
- "kind": "js",
873
- "name": "ChatToolChoice",
874
- "declaration": {
875
- "name": "ChatToolChoice",
876
- "module": "src/config/config.ts"
877
- }
878
- },
879
- {
880
- "kind": "js",
881
- "name": "defineAgent",
882
- "declaration": {
883
- "name": "defineAgent",
884
- "module": "src/config/config.ts"
885
- }
886
- }
887
- ]
888
- },
889
- {
890
- "kind": "javascript-module",
891
- "path": "src/config/define-stateful-agent.ts",
892
- "declarations": [
893
- {
894
- "kind": "function",
895
- "name": "defineStatefulAgent",
896
- "return": {
897
- "type": {
898
- "text": "AgentConfig"
899
- }
900
- },
901
- "parameters": [
902
- {
903
- "name": "opts",
904
- "type": {
905
- "text": "StatefulAgentInit<S>"
906
- }
907
- }
908
- ],
909
- "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."
910
- }
911
- ],
912
- "exports": [
913
- {
914
- "kind": "js",
915
- "name": "defineStatefulAgent",
916
- "declaration": {
917
- "name": "defineStatefulAgent",
918
- "module": "src/config/define-stateful-agent.ts"
919
- }
920
- }
921
- ]
922
- },
923
- {
924
- "kind": "javascript-module",
925
- "path": "src/config/fallback-agents.ts",
926
- "declarations": [
927
- {
928
- "kind": "variable",
929
- "name": "friendlyFallbackAgent",
930
- "type": {
931
- "text": "FallbackAgentConfig"
932
- },
933
- "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}",
934
- "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."
935
- },
936
- {
937
- "kind": "variable",
938
- "name": "strictFallbackAgent",
939
- "type": {
940
- "text": "FallbackAgentConfig"
941
- },
942
- "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}",
943
- "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."
944
- }
945
- ],
946
- "exports": [
947
- {
948
- "kind": "js",
949
- "name": "friendlyFallbackAgent",
950
- "declaration": {
951
- "name": "friendlyFallbackAgent",
952
- "module": "src/config/fallback-agents.ts"
953
- }
954
- },
955
- {
956
- "kind": "js",
957
- "name": "strictFallbackAgent",
958
- "declaration": {
959
- "name": "strictFallbackAgent",
960
- "module": "src/config/fallback-agents.ts"
961
- }
970
+ },
971
+ "tagName": "ai-waves-indicator",
972
+ "customElement": true
962
973
  }
963
- ]
964
- },
965
- {
966
- "kind": "javascript-module",
967
- "path": "src/config/index.ts",
968
- "declarations": [],
974
+ ],
969
975
  "exports": [
970
976
  {
971
977
  "kind": "js",
972
- "name": "*",
978
+ "name": "AiWavesIndicator",
973
979
  "declaration": {
974
- "name": "*",
975
- "package": "./config"
980
+ "name": "AiWavesIndicator",
981
+ "module": "src/components/waves-indicator.ts"
976
982
  }
977
983
  },
978
984
  {
979
- "kind": "js",
980
- "name": "*",
985
+ "kind": "custom-element-definition",
986
+ "name": "ai-waves-indicator",
981
987
  "declaration": {
982
- "name": "*",
983
- "package": "./fallback-agents"
988
+ "name": "AiWavesIndicator",
989
+ "module": "src/components/waves-indicator.ts"
984
990
  }
985
991
  }
986
992
  ]
987
993
  },
988
- {
989
- "kind": "javascript-module",
990
- "path": "src/config/validate-providers.ts",
991
- "declarations": [],
992
- "exports": []
993
- },
994
994
  {
995
995
  "kind": "javascript-module",
996
996
  "path": "src/main/index.ts",
@@ -3883,119 +3883,6 @@
3883
3883
  "declarations": [],
3884
3884
  "exports": []
3885
3885
  },
3886
- {
3887
- "kind": "javascript-module",
3888
- "path": "src/components/activity-halo/activity-halo.ts",
3889
- "declarations": [
3890
- {
3891
- "kind": "class",
3892
- "description": "Wrapper component that shows an `<ai-halo-overlay>` when the AI assistant\nis executing one of the declared tool names.",
3893
- "name": "AiActivityHalo",
3894
- "members": [
3895
- {
3896
- "kind": "field",
3897
- "name": "tools",
3898
- "type": {
3899
- "text": "string"
3900
- },
3901
- "default": "''",
3902
- "description": "Comma-separated list of tool names this element reacts to."
3903
- },
3904
- {
3905
- "kind": "field",
3906
- "name": "minShowTime",
3907
- "type": {
3908
- "text": "number"
3909
- },
3910
- "default": "600",
3911
- "description": "Minimum time in ms the halo stays visible after activation."
3912
- },
3913
- {
3914
- "kind": "field",
3915
- "name": "unsubBus",
3916
- "type": {
3917
- "text": "() => void | undefined"
3918
- },
3919
- "privacy": "private"
3920
- },
3921
- {
3922
- "kind": "field",
3923
- "name": "hideTimeout",
3924
- "type": {
3925
- "text": "ReturnType<typeof setTimeout> | undefined"
3926
- },
3927
- "privacy": "private"
3928
- },
3929
- {
3930
- "kind": "field",
3931
- "name": "startTime",
3932
- "type": {
3933
- "text": "number"
3934
- },
3935
- "privacy": "private",
3936
- "default": "0"
3937
- },
3938
- {
3939
- "kind": "method",
3940
- "name": "activate",
3941
- "privacy": "private"
3942
- },
3943
- {
3944
- "kind": "method",
3945
- "name": "scheduleDeactivate",
3946
- "privacy": "private"
3947
- }
3948
- ],
3949
- "attributes": [
3950
- {
3951
- "name": "tools",
3952
- "type": {
3953
- "text": "string"
3954
- },
3955
- "default": "''",
3956
- "description": "Comma-separated list of tool names this element reacts to.",
3957
- "fieldName": "tools"
3958
- },
3959
- {
3960
- "name": "min-show-time",
3961
- "type": {
3962
- "text": "number"
3963
- },
3964
- "default": "DEFAULT_MIN_SHOW_TIME",
3965
- "description": "Minimum time in ms the halo stays visible after activation.",
3966
- "resolveInitializer": {
3967
- "module": "src/components/activity-halo/activity-halo.ts"
3968
- },
3969
- "fieldName": "minShowTime"
3970
- }
3971
- ],
3972
- "superclass": {
3973
- "name": "GenesisElement",
3974
- "package": "@genesislcap/web-core"
3975
- },
3976
- "tagName": "ai-activity-halo",
3977
- "customElement": true
3978
- }
3979
- ],
3980
- "exports": [
3981
- {
3982
- "kind": "js",
3983
- "name": "AiActivityHalo",
3984
- "declaration": {
3985
- "name": "AiActivityHalo",
3986
- "module": "src/components/activity-halo/activity-halo.ts"
3987
- }
3988
- },
3989
- {
3990
- "kind": "custom-element-definition",
3991
- "name": "ai-activity-halo",
3992
- "declaration": {
3993
- "name": "AiActivityHalo",
3994
- "module": "src/components/activity-halo/activity-halo.ts"
3995
- }
3996
- }
3997
- ]
3998
- },
3999
3886
  {
4000
3887
  "kind": "javascript-module",
4001
3888
  "path": "src/utils/animated-panel-toggle.ts",
@@ -4834,6 +4721,119 @@
4834
4721
  }
4835
4722
  ]
4836
4723
  },
4724
+ {
4725
+ "kind": "javascript-module",
4726
+ "path": "src/components/activity-halo/activity-halo.ts",
4727
+ "declarations": [
4728
+ {
4729
+ "kind": "class",
4730
+ "description": "Wrapper component that shows an `<ai-halo-overlay>` when the AI assistant\nis executing one of the declared tool names.",
4731
+ "name": "AiActivityHalo",
4732
+ "members": [
4733
+ {
4734
+ "kind": "field",
4735
+ "name": "tools",
4736
+ "type": {
4737
+ "text": "string"
4738
+ },
4739
+ "default": "''",
4740
+ "description": "Comma-separated list of tool names this element reacts to."
4741
+ },
4742
+ {
4743
+ "kind": "field",
4744
+ "name": "minShowTime",
4745
+ "type": {
4746
+ "text": "number"
4747
+ },
4748
+ "default": "600",
4749
+ "description": "Minimum time in ms the halo stays visible after activation."
4750
+ },
4751
+ {
4752
+ "kind": "field",
4753
+ "name": "unsubBus",
4754
+ "type": {
4755
+ "text": "() => void | undefined"
4756
+ },
4757
+ "privacy": "private"
4758
+ },
4759
+ {
4760
+ "kind": "field",
4761
+ "name": "hideTimeout",
4762
+ "type": {
4763
+ "text": "ReturnType<typeof setTimeout> | undefined"
4764
+ },
4765
+ "privacy": "private"
4766
+ },
4767
+ {
4768
+ "kind": "field",
4769
+ "name": "startTime",
4770
+ "type": {
4771
+ "text": "number"
4772
+ },
4773
+ "privacy": "private",
4774
+ "default": "0"
4775
+ },
4776
+ {
4777
+ "kind": "method",
4778
+ "name": "activate",
4779
+ "privacy": "private"
4780
+ },
4781
+ {
4782
+ "kind": "method",
4783
+ "name": "scheduleDeactivate",
4784
+ "privacy": "private"
4785
+ }
4786
+ ],
4787
+ "attributes": [
4788
+ {
4789
+ "name": "tools",
4790
+ "type": {
4791
+ "text": "string"
4792
+ },
4793
+ "default": "''",
4794
+ "description": "Comma-separated list of tool names this element reacts to.",
4795
+ "fieldName": "tools"
4796
+ },
4797
+ {
4798
+ "name": "min-show-time",
4799
+ "type": {
4800
+ "text": "number"
4801
+ },
4802
+ "default": "DEFAULT_MIN_SHOW_TIME",
4803
+ "description": "Minimum time in ms the halo stays visible after activation.",
4804
+ "resolveInitializer": {
4805
+ "module": "src/components/activity-halo/activity-halo.ts"
4806
+ },
4807
+ "fieldName": "minShowTime"
4808
+ }
4809
+ ],
4810
+ "superclass": {
4811
+ "name": "GenesisElement",
4812
+ "package": "@genesislcap/web-core"
4813
+ },
4814
+ "tagName": "ai-activity-halo",
4815
+ "customElement": true
4816
+ }
4817
+ ],
4818
+ "exports": [
4819
+ {
4820
+ "kind": "js",
4821
+ "name": "AiActivityHalo",
4822
+ "declaration": {
4823
+ "name": "AiActivityHalo",
4824
+ "module": "src/components/activity-halo/activity-halo.ts"
4825
+ }
4826
+ },
4827
+ {
4828
+ "kind": "custom-element-definition",
4829
+ "name": "ai-activity-halo",
4830
+ "declaration": {
4831
+ "name": "AiActivityHalo",
4832
+ "module": "src/components/activity-halo/activity-halo.ts"
4833
+ }
4834
+ }
4835
+ ]
4836
+ },
4837
4837
  {
4838
4838
  "kind": "javascript-module",
4839
4839
  "path": "src/components/agent-picker/agent-picker.constants.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.484.0",
4
+ "version": "14.484.1",
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.484.0",
68
- "@genesislcap/genx": "14.484.0",
69
- "@genesislcap/rollup-builder": "14.484.0",
70
- "@genesislcap/ts-builder": "14.484.0",
71
- "@genesislcap/uvu-playwright-builder": "14.484.0",
72
- "@genesislcap/vite-builder": "14.484.0",
73
- "@genesislcap/webpack-builder": "14.484.0",
67
+ "@genesislcap/foundation-testing": "14.484.1",
68
+ "@genesislcap/genx": "14.484.1",
69
+ "@genesislcap/rollup-builder": "14.484.1",
70
+ "@genesislcap/ts-builder": "14.484.1",
71
+ "@genesislcap/uvu-playwright-builder": "14.484.1",
72
+ "@genesislcap/vite-builder": "14.484.1",
73
+ "@genesislcap/webpack-builder": "14.484.1",
74
74
  "@types/dompurify": "^3.0.5",
75
75
  "@types/marked": "^5.0.2"
76
76
  },
77
77
  "dependencies": {
78
- "@genesislcap/foundation-ai": "14.484.0",
79
- "@genesislcap/foundation-logger": "14.484.0",
80
- "@genesislcap/foundation-notifications": "14.484.0",
81
- "@genesislcap/foundation-redux": "14.484.0",
82
- "@genesislcap/foundation-ui": "14.484.0",
83
- "@genesislcap/foundation-utils": "14.484.0",
84
- "@genesislcap/rapid-design-system": "14.484.0",
85
- "@genesislcap/web-core": "14.484.0",
78
+ "@genesislcap/foundation-ai": "14.484.1",
79
+ "@genesislcap/foundation-logger": "14.484.1",
80
+ "@genesislcap/foundation-notifications": "14.484.1",
81
+ "@genesislcap/foundation-redux": "14.484.1",
82
+ "@genesislcap/foundation-ui": "14.484.1",
83
+ "@genesislcap/foundation-utils": "14.484.1",
84
+ "@genesislcap/rapid-design-system": "14.484.1",
85
+ "@genesislcap/web-core": "14.484.1",
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": "1ec7b2318e2447c2cd3ad877666b6fd1f3b87c05"
98
+ "gitHead": "805c947c8df90977fa68f5da82e358de498ada51"
99
99
  }