@genesislcap/ai-assistant 14.484.1 → 14.484.2-alpha-92fa356.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.
- package/dist/custom-elements.json +150 -150
- package/package.json +17 -17
|
@@ -361,156 +361,6 @@
|
|
|
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
|
-
},
|
|
514
364
|
{
|
|
515
365
|
"kind": "javascript-module",
|
|
516
366
|
"path": "src/components/flowing-waves-indicator.ts",
|
|
@@ -991,6 +841,156 @@
|
|
|
991
841
|
}
|
|
992
842
|
]
|
|
993
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
|
+
}
|
|
962
|
+
}
|
|
963
|
+
]
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"kind": "javascript-module",
|
|
967
|
+
"path": "src/config/index.ts",
|
|
968
|
+
"declarations": [],
|
|
969
|
+
"exports": [
|
|
970
|
+
{
|
|
971
|
+
"kind": "js",
|
|
972
|
+
"name": "*",
|
|
973
|
+
"declaration": {
|
|
974
|
+
"name": "*",
|
|
975
|
+
"package": "./config"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "js",
|
|
980
|
+
"name": "*",
|
|
981
|
+
"declaration": {
|
|
982
|
+
"name": "*",
|
|
983
|
+
"package": "./fallback-agents"
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
]
|
|
987
|
+
},
|
|
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",
|
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.
|
|
4
|
+
"version": "14.484.2-alpha-92fa356.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.484.
|
|
68
|
-
"@genesislcap/genx": "14.484.
|
|
69
|
-
"@genesislcap/rollup-builder": "14.484.
|
|
70
|
-
"@genesislcap/ts-builder": "14.484.
|
|
71
|
-
"@genesislcap/uvu-playwright-builder": "14.484.
|
|
72
|
-
"@genesislcap/vite-builder": "14.484.
|
|
73
|
-
"@genesislcap/webpack-builder": "14.484.
|
|
67
|
+
"@genesislcap/foundation-testing": "14.484.2-alpha-92fa356.0",
|
|
68
|
+
"@genesislcap/genx": "14.484.2-alpha-92fa356.0",
|
|
69
|
+
"@genesislcap/rollup-builder": "14.484.2-alpha-92fa356.0",
|
|
70
|
+
"@genesislcap/ts-builder": "14.484.2-alpha-92fa356.0",
|
|
71
|
+
"@genesislcap/uvu-playwright-builder": "14.484.2-alpha-92fa356.0",
|
|
72
|
+
"@genesislcap/vite-builder": "14.484.2-alpha-92fa356.0",
|
|
73
|
+
"@genesislcap/webpack-builder": "14.484.2-alpha-92fa356.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.484.
|
|
79
|
-
"@genesislcap/foundation-logger": "14.484.
|
|
80
|
-
"@genesislcap/foundation-notifications": "14.484.
|
|
81
|
-
"@genesislcap/foundation-redux": "14.484.
|
|
82
|
-
"@genesislcap/foundation-ui": "14.484.
|
|
83
|
-
"@genesislcap/foundation-utils": "14.484.
|
|
84
|
-
"@genesislcap/rapid-design-system": "14.484.
|
|
85
|
-
"@genesislcap/web-core": "14.484.
|
|
78
|
+
"@genesislcap/foundation-ai": "14.484.2-alpha-92fa356.0",
|
|
79
|
+
"@genesislcap/foundation-logger": "14.484.2-alpha-92fa356.0",
|
|
80
|
+
"@genesislcap/foundation-notifications": "14.484.2-alpha-92fa356.0",
|
|
81
|
+
"@genesislcap/foundation-redux": "14.484.2-alpha-92fa356.0",
|
|
82
|
+
"@genesislcap/foundation-ui": "14.484.2-alpha-92fa356.0",
|
|
83
|
+
"@genesislcap/foundation-utils": "14.484.2-alpha-92fa356.0",
|
|
84
|
+
"@genesislcap/rapid-design-system": "14.484.2-alpha-92fa356.0",
|
|
85
|
+
"@genesislcap/web-core": "14.484.2-alpha-92fa356.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": "
|
|
98
|
+
"gitHead": "efa674fc6417ae0f01c8c0b8a9d267525136c039"
|
|
99
99
|
}
|