@happyvertical/smrt-personas 0.38.19 → 0.38.21

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 (39) hide show
  1. package/AGENTS.md +119 -7
  2. package/dist/__smrt-register__.d.ts +2 -0
  3. package/dist/__smrt-register__.d.ts.map +1 -0
  4. package/dist/agent-persona.d.ts +161 -0
  5. package/dist/agent-persona.d.ts.map +1 -0
  6. package/dist/directive-approval.d.ts +94 -0
  7. package/dist/directive-approval.d.ts.map +1 -0
  8. package/dist/directive-principal.d.ts +56 -0
  9. package/dist/directive-principal.d.ts.map +1 -0
  10. package/dist/directive-proposal.d.ts +103 -0
  11. package/dist/directive-proposal.d.ts.map +1 -0
  12. package/dist/feedback.d.ts +127 -0
  13. package/dist/feedback.d.ts.map +1 -0
  14. package/dist/index.d.ts +11 -294
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +829 -19
  17. package/dist/index.js.map +1 -1
  18. package/dist/manifest.json +919 -3
  19. package/dist/persona-instance.d.ts +249 -0
  20. package/dist/persona-instance.d.ts.map +1 -0
  21. package/dist/persona-memory.d.ts +45 -0
  22. package/dist/persona-memory.d.ts.map +1 -0
  23. package/dist/persona-prompt.d.ts +77 -0
  24. package/dist/persona-prompt.d.ts.map +1 -0
  25. package/dist/persona-resolver.d.ts +134 -0
  26. package/dist/persona-resolver.d.ts.map +1 -0
  27. package/dist/reflection-runner.d.ts +113 -0
  28. package/dist/reflection-runner.d.ts.map +1 -0
  29. package/dist/smrt-knowledge.json +519 -11
  30. package/dist/svelte/components/DirectiveReviewQueue.svelte +185 -0
  31. package/dist/svelte/components/DirectiveReviewQueue.svelte.d.ts +15 -0
  32. package/dist/svelte/components/DirectiveReviewQueue.svelte.d.ts.map +1 -0
  33. package/dist/svelte/index.d.ts +16 -0
  34. package/dist/svelte/index.d.ts.map +1 -0
  35. package/dist/svelte/index.js +13 -0
  36. package/dist/svelte/types.d.ts +46 -0
  37. package/dist/svelte/types.d.ts.map +1 -0
  38. package/dist/svelte/types.js +39 -0
  39. package/package.json +23 -7
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1783562557011,
3
+ "timestamp": 1783580645734,
4
4
  "packageName": "@happyvertical/smrt-personas",
5
- "packageVersion": "0.38.19",
5
+ "packageVersion": "0.38.21",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-personas:AgentPersona": {
8
8
  "name": "agentpersona",
@@ -386,12 +386,928 @@
386
386
  ],
387
387
  "version": "48e54c2f"
388
388
  }
389
+ },
390
+ "@happyvertical/smrt-personas:DirectiveProposal": {
391
+ "name": "directiveproposal",
392
+ "className": "DirectiveProposal",
393
+ "qualifiedName": "@happyvertical/smrt-personas:DirectiveProposal",
394
+ "collection": "directiveproposals",
395
+ "filePath": "/home/runner/_work/smrt/smrt/packages/personas/src/directive-proposal.ts",
396
+ "packageName": "@happyvertical/smrt-personas",
397
+ "fields": {
398
+ "tenantId": {
399
+ "type": "text",
400
+ "required": true,
401
+ "_meta": {
402
+ "sqlType": "UUID",
403
+ "__tenancy": {
404
+ "isTenantIdField": true,
405
+ "autoFilter": true,
406
+ "required": true,
407
+ "autoPopulate": true,
408
+ "nullable": false,
409
+ "mode": "required",
410
+ "field": "tenantId",
411
+ "allowSuperAdminBypass": false
412
+ }
413
+ }
414
+ },
415
+ "personaId": {
416
+ "type": "foreignKey",
417
+ "required": true,
418
+ "related": "AgentPersona",
419
+ "_meta": {
420
+ "required": true
421
+ }
422
+ },
423
+ "agentClass": {
424
+ "type": "text",
425
+ "required": false,
426
+ "_meta": {}
427
+ },
428
+ "promptKey": {
429
+ "type": "text",
430
+ "required": false,
431
+ "_meta": {}
432
+ },
433
+ "proposedInstructions": {
434
+ "type": "text",
435
+ "required": false,
436
+ "_meta": {}
437
+ },
438
+ "currentInstructions": {
439
+ "type": "text",
440
+ "required": false,
441
+ "_meta": {}
442
+ },
443
+ "rationale": {
444
+ "type": "text",
445
+ "required": false,
446
+ "_meta": {}
447
+ },
448
+ "evidence": {
449
+ "type": "text",
450
+ "required": false,
451
+ "_meta": {}
452
+ },
453
+ "status": {
454
+ "type": "text",
455
+ "required": false,
456
+ "_meta": {}
457
+ },
458
+ "fingerprint": {
459
+ "type": "text",
460
+ "required": false,
461
+ "_meta": {}
462
+ },
463
+ "confidence": {
464
+ "type": "decimal",
465
+ "required": false,
466
+ "default": 0
467
+ },
468
+ "proposedBy": {
469
+ "type": "text",
470
+ "required": false,
471
+ "_meta": {}
472
+ },
473
+ "reviewedBy": {
474
+ "type": "text",
475
+ "required": false,
476
+ "_meta": {
477
+ "nullable": true
478
+ }
479
+ },
480
+ "reviewedAt": {
481
+ "type": "datetime",
482
+ "required": false,
483
+ "_meta": {
484
+ "nullable": true
485
+ }
486
+ },
487
+ "reviewNote": {
488
+ "type": "text",
489
+ "required": false,
490
+ "_meta": {
491
+ "nullable": true
492
+ }
493
+ },
494
+ "activatedOverrideId": {
495
+ "type": "text",
496
+ "required": false,
497
+ "_meta": {
498
+ "nullable": true
499
+ }
500
+ }
501
+ },
502
+ "methods": {
503
+ "getEvidence": {
504
+ "name": "getEvidence",
505
+ "async": false,
506
+ "parameters": [],
507
+ "returnType": "DirectiveEvidence",
508
+ "isStatic": false,
509
+ "isPublic": true
510
+ },
511
+ "setEvidence": {
512
+ "name": "setEvidence",
513
+ "async": false,
514
+ "parameters": [
515
+ {
516
+ "name": "value",
517
+ "type": "DirectiveEvidence",
518
+ "optional": false
519
+ }
520
+ ],
521
+ "returnType": "void",
522
+ "isStatic": false,
523
+ "isPublic": true
524
+ },
525
+ "isPending": {
526
+ "name": "isPending",
527
+ "async": false,
528
+ "parameters": [],
529
+ "returnType": "boolean",
530
+ "isStatic": false,
531
+ "isPublic": true
532
+ }
533
+ },
534
+ "decoratorConfig": {
535
+ "tableName": "directive_proposals",
536
+ "api": {
537
+ "include": [
538
+ "list",
539
+ "get"
540
+ ]
541
+ },
542
+ "cli": {
543
+ "include": [
544
+ "list",
545
+ "get"
546
+ ]
547
+ },
548
+ "mcp": {
549
+ "include": [
550
+ "list",
551
+ "get"
552
+ ]
553
+ },
554
+ "tenantScoped": {
555
+ "mode": "required"
556
+ }
557
+ },
558
+ "extends": "SmrtObject",
559
+ "exportName": "DirectiveProposal",
560
+ "collectionExportName": "DirectiveProposalCollection",
561
+ "validationRules": [
562
+ {
563
+ "field": "tenantId",
564
+ "rule": "required",
565
+ "fieldType": "text"
566
+ },
567
+ {
568
+ "field": "personaId",
569
+ "rule": "required",
570
+ "fieldType": "foreignKey"
571
+ }
572
+ ],
573
+ "schema": {
574
+ "tableName": "directive_proposals",
575
+ "ddl": "CREATE TABLE IF NOT EXISTS \"directive_proposals\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"persona_id\" UUID NOT NULL,\n \"agent_class\" TEXT,\n \"prompt_key\" TEXT,\n \"proposed_instructions\" TEXT,\n \"current_instructions\" TEXT,\n \"rationale\" TEXT,\n \"evidence\" TEXT,\n \"status\" TEXT,\n \"fingerprint\" TEXT,\n \"confidence\" REAL DEFAULT 0,\n \"proposed_by\" TEXT,\n \"reviewed_by\" TEXT,\n \"reviewed_at\" TIMESTAMP,\n \"review_note\" TEXT,\n \"activated_override_id\" TEXT\n);",
576
+ "columns": {
577
+ "id": {
578
+ "type": "UUID",
579
+ "primaryKey": true,
580
+ "referenceKind": "id",
581
+ "notNull": true
582
+ },
583
+ "slug": {
584
+ "type": "TEXT",
585
+ "notNull": true
586
+ },
587
+ "context": {
588
+ "type": "TEXT",
589
+ "notNull": true,
590
+ "default": ""
591
+ },
592
+ "created_at": {
593
+ "type": "TIMESTAMP",
594
+ "notNull": true,
595
+ "default": "current_timestamp"
596
+ },
597
+ "updated_at": {
598
+ "type": "TIMESTAMP",
599
+ "notNull": true,
600
+ "default": "current_timestamp"
601
+ },
602
+ "tenant_id": {
603
+ "type": "UUID",
604
+ "referenceKind": "tenantId",
605
+ "notNull": true,
606
+ "unique": false
607
+ },
608
+ "persona_id": {
609
+ "type": "UUID",
610
+ "referenceKind": "foreignKey",
611
+ "notNull": true,
612
+ "unique": false
613
+ },
614
+ "agent_class": {
615
+ "type": "TEXT",
616
+ "notNull": false,
617
+ "unique": false
618
+ },
619
+ "prompt_key": {
620
+ "type": "TEXT",
621
+ "notNull": false,
622
+ "unique": false
623
+ },
624
+ "proposed_instructions": {
625
+ "type": "TEXT",
626
+ "notNull": false,
627
+ "unique": false
628
+ },
629
+ "current_instructions": {
630
+ "type": "TEXT",
631
+ "notNull": false,
632
+ "unique": false
633
+ },
634
+ "rationale": {
635
+ "type": "TEXT",
636
+ "notNull": false,
637
+ "unique": false
638
+ },
639
+ "evidence": {
640
+ "type": "TEXT",
641
+ "notNull": false,
642
+ "unique": false
643
+ },
644
+ "status": {
645
+ "type": "TEXT",
646
+ "notNull": false,
647
+ "unique": false
648
+ },
649
+ "fingerprint": {
650
+ "type": "TEXT",
651
+ "notNull": false,
652
+ "unique": false
653
+ },
654
+ "confidence": {
655
+ "type": "REAL",
656
+ "notNull": false,
657
+ "unique": false,
658
+ "default": 0
659
+ },
660
+ "proposed_by": {
661
+ "type": "TEXT",
662
+ "notNull": false,
663
+ "unique": false
664
+ },
665
+ "reviewed_by": {
666
+ "type": "TEXT",
667
+ "notNull": false,
668
+ "unique": false
669
+ },
670
+ "reviewed_at": {
671
+ "type": "TIMESTAMP",
672
+ "notNull": false,
673
+ "unique": false
674
+ },
675
+ "review_note": {
676
+ "type": "TEXT",
677
+ "notNull": false,
678
+ "unique": false
679
+ },
680
+ "activated_override_id": {
681
+ "type": "TEXT",
682
+ "notNull": false,
683
+ "unique": false
684
+ }
685
+ },
686
+ "indexes": [
687
+ {
688
+ "name": "directive_proposals_id_idx",
689
+ "columns": [
690
+ "id"
691
+ ]
692
+ },
693
+ {
694
+ "name": "directive_proposals_slug_context_idx",
695
+ "columns": [
696
+ "slug",
697
+ "context"
698
+ ],
699
+ "unique": true
700
+ }
701
+ ],
702
+ "version": "4bd9414b"
703
+ }
704
+ },
705
+ "@happyvertical/smrt-personas:DirectiveProposalCollection": {
706
+ "name": "directiveproposalcollection",
707
+ "className": "DirectiveProposalCollection",
708
+ "qualifiedName": "@happyvertical/smrt-personas:DirectiveProposalCollection",
709
+ "collection": "directiveproposals",
710
+ "filePath": "/home/runner/_work/smrt/smrt/packages/personas/src/directive-proposal.ts",
711
+ "packageName": "@happyvertical/smrt-personas",
712
+ "fields": {},
713
+ "methods": {
714
+ "pending": {
715
+ "name": "pending",
716
+ "async": true,
717
+ "parameters": [
718
+ {
719
+ "name": "options",
720
+ "type": "object",
721
+ "optional": true
722
+ }
723
+ ],
724
+ "returnType": "Promise<DirectiveProposal[]>",
725
+ "isStatic": false,
726
+ "isPublic": true
727
+ },
728
+ "findByFingerprint": {
729
+ "name": "findByFingerprint",
730
+ "async": true,
731
+ "parameters": [
732
+ {
733
+ "name": "personaId",
734
+ "type": "string",
735
+ "optional": false
736
+ },
737
+ {
738
+ "name": "fingerprint",
739
+ "type": "string",
740
+ "optional": false
741
+ }
742
+ ],
743
+ "returnType": "Promise<DirectiveProposal[]>",
744
+ "isStatic": false,
745
+ "isPublic": true
746
+ }
747
+ },
748
+ "decoratorConfig": {
749
+ "tableName": "directive_proposals"
750
+ },
751
+ "extends": "SmrtCollection",
752
+ "extendsTypeArg": "DirectiveProposal",
753
+ "exportName": "DirectiveProposalCollection",
754
+ "collectionExportName": "DirectiveProposalCollectionCollection",
755
+ "schema": {
756
+ "tableName": "directive_proposals",
757
+ "ddl": "CREATE TABLE IF NOT EXISTS \"directive_proposals\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
758
+ "columns": {
759
+ "id": {
760
+ "type": "UUID",
761
+ "primaryKey": true,
762
+ "referenceKind": "id",
763
+ "notNull": true
764
+ },
765
+ "slug": {
766
+ "type": "TEXT",
767
+ "notNull": true
768
+ },
769
+ "context": {
770
+ "type": "TEXT",
771
+ "notNull": true,
772
+ "default": ""
773
+ },
774
+ "created_at": {
775
+ "type": "TIMESTAMP",
776
+ "notNull": true,
777
+ "default": "current_timestamp"
778
+ },
779
+ "updated_at": {
780
+ "type": "TIMESTAMP",
781
+ "notNull": true,
782
+ "default": "current_timestamp"
783
+ }
784
+ },
785
+ "indexes": [
786
+ {
787
+ "name": "directive_proposals_id_idx",
788
+ "columns": [
789
+ "id"
790
+ ]
791
+ },
792
+ {
793
+ "name": "directive_proposals_slug_context_idx",
794
+ "columns": [
795
+ "slug",
796
+ "context"
797
+ ],
798
+ "unique": true
799
+ }
800
+ ],
801
+ "version": "f9669b44"
802
+ }
803
+ },
804
+ "@happyvertical/smrt-personas:Feedback": {
805
+ "name": "feedback",
806
+ "className": "Feedback",
807
+ "qualifiedName": "@happyvertical/smrt-personas:Feedback",
808
+ "collection": "feedbacks",
809
+ "filePath": "/home/runner/_work/smrt/smrt/packages/personas/src/feedback.ts",
810
+ "packageName": "@happyvertical/smrt-personas",
811
+ "fields": {
812
+ "tenantId": {
813
+ "type": "text",
814
+ "required": false,
815
+ "_meta": {
816
+ "sqlType": "UUID",
817
+ "nullable": true,
818
+ "__tenancy": {
819
+ "isTenantIdField": true,
820
+ "autoFilter": true,
821
+ "required": false,
822
+ "autoPopulate": true,
823
+ "nullable": true,
824
+ "mode": "optional",
825
+ "field": "tenantId",
826
+ "allowSuperAdminBypass": false
827
+ }
828
+ }
829
+ },
830
+ "personaId": {
831
+ "type": "foreignKey",
832
+ "required": true,
833
+ "related": "AgentPersona",
834
+ "_meta": {
835
+ "required": true
836
+ }
837
+ },
838
+ "agentClass": {
839
+ "type": "text",
840
+ "required": false,
841
+ "_meta": {}
842
+ },
843
+ "memoryScope": {
844
+ "type": "text",
845
+ "required": false,
846
+ "_meta": {}
847
+ },
848
+ "scope": {
849
+ "type": "text",
850
+ "required": false,
851
+ "_meta": {}
852
+ },
853
+ "key": {
854
+ "type": "text",
855
+ "required": false,
856
+ "_meta": {}
857
+ },
858
+ "signalType": {
859
+ "type": "text",
860
+ "required": false,
861
+ "_meta": {}
862
+ },
863
+ "source": {
864
+ "type": "text",
865
+ "required": false,
866
+ "_meta": {}
867
+ },
868
+ "correlationId": {
869
+ "type": "text",
870
+ "required": true,
871
+ "_meta": {
872
+ "required": true
873
+ }
874
+ },
875
+ "correlationType": {
876
+ "type": "text",
877
+ "required": false,
878
+ "_meta": {
879
+ "nullable": true
880
+ }
881
+ },
882
+ "rating": {
883
+ "type": "decimal",
884
+ "required": false,
885
+ "_meta": {
886
+ "nullable": true
887
+ }
888
+ },
889
+ "metric": {
890
+ "type": "decimal",
891
+ "required": false,
892
+ "_meta": {
893
+ "nullable": true
894
+ }
895
+ },
896
+ "success": {
897
+ "type": "boolean",
898
+ "required": false,
899
+ "_meta": {
900
+ "nullable": true
901
+ }
902
+ },
903
+ "correction": {
904
+ "type": "text",
905
+ "required": false,
906
+ "_meta": {
907
+ "nullable": true
908
+ }
909
+ },
910
+ "comment": {
911
+ "type": "text",
912
+ "required": false,
913
+ "_meta": {
914
+ "nullable": true
915
+ }
916
+ },
917
+ "actorId": {
918
+ "type": "text",
919
+ "required": false,
920
+ "_meta": {
921
+ "nullable": true
922
+ }
923
+ },
924
+ "metadata": {
925
+ "type": "text",
926
+ "required": false,
927
+ "_meta": {}
928
+ },
929
+ "reinforcedAt": {
930
+ "type": "datetime",
931
+ "required": false,
932
+ "_meta": {
933
+ "nullable": true
934
+ }
935
+ }
936
+ },
937
+ "methods": {
938
+ "isHuman": {
939
+ "name": "isHuman",
940
+ "async": false,
941
+ "parameters": [],
942
+ "returnType": "boolean",
943
+ "isStatic": false,
944
+ "isPublic": true
945
+ },
946
+ "getMetadata": {
947
+ "name": "getMetadata",
948
+ "async": false,
949
+ "parameters": [],
950
+ "returnType": "Record<string>",
951
+ "isStatic": false,
952
+ "isPublic": true
953
+ },
954
+ "setMetadata": {
955
+ "name": "setMetadata",
956
+ "async": false,
957
+ "parameters": [
958
+ {
959
+ "name": "value",
960
+ "type": "Record<string>",
961
+ "optional": false
962
+ }
963
+ ],
964
+ "returnType": "void",
965
+ "isStatic": false,
966
+ "isPublic": true
967
+ },
968
+ "updateMetadata": {
969
+ "name": "updateMetadata",
970
+ "async": false,
971
+ "parameters": [
972
+ {
973
+ "name": "patch",
974
+ "type": "Record<string>",
975
+ "optional": false
976
+ }
977
+ ],
978
+ "returnType": "void",
979
+ "isStatic": false,
980
+ "isPublic": true
981
+ },
982
+ "getCorrectionValue": {
983
+ "name": "getCorrectionValue",
984
+ "async": false,
985
+ "parameters": [],
986
+ "returnType": "string | undefined",
987
+ "isStatic": false,
988
+ "isPublic": true
989
+ },
990
+ "toLearningOutcome": {
991
+ "name": "toLearningOutcome",
992
+ "async": false,
993
+ "parameters": [
994
+ {
995
+ "name": "options",
996
+ "type": "FeedbackOutcomeOptions",
997
+ "optional": true
998
+ }
999
+ ],
1000
+ "returnType": "LearningOutcome | null",
1001
+ "isStatic": false,
1002
+ "isPublic": true
1003
+ }
1004
+ },
1005
+ "decoratorConfig": {
1006
+ "tableName": "agent_feedback",
1007
+ "api": {
1008
+ "include": [
1009
+ "list",
1010
+ "get",
1011
+ "create"
1012
+ ]
1013
+ },
1014
+ "cli": {
1015
+ "include": [
1016
+ "list",
1017
+ "get"
1018
+ ]
1019
+ },
1020
+ "mcp": {
1021
+ "include": [
1022
+ "list",
1023
+ "get"
1024
+ ]
1025
+ },
1026
+ "tenantScoped": {
1027
+ "mode": "optional"
1028
+ }
1029
+ },
1030
+ "extends": "SmrtObject",
1031
+ "exportName": "Feedback",
1032
+ "collectionExportName": "FeedbackCollection",
1033
+ "validationRules": [
1034
+ {
1035
+ "field": "personaId",
1036
+ "rule": "required",
1037
+ "fieldType": "foreignKey"
1038
+ },
1039
+ {
1040
+ "field": "correlationId",
1041
+ "rule": "required",
1042
+ "fieldType": "text"
1043
+ }
1044
+ ],
1045
+ "schema": {
1046
+ "tableName": "agent_feedback",
1047
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agent_feedback\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"persona_id\" UUID NOT NULL,\n \"agent_class\" TEXT,\n \"memory_scope\" TEXT,\n \"scope\" TEXT,\n \"key\" TEXT,\n \"signal_type\" TEXT,\n \"source\" TEXT,\n \"correlation_id\" TEXT NOT NULL,\n \"correlation_type\" TEXT,\n \"rating\" REAL,\n \"metric\" REAL,\n \"success\" BOOLEAN,\n \"correction\" TEXT,\n \"comment\" TEXT,\n \"actor_id\" TEXT,\n \"metadata\" TEXT,\n \"reinforced_at\" TIMESTAMP\n);",
1048
+ "columns": {
1049
+ "id": {
1050
+ "type": "UUID",
1051
+ "primaryKey": true,
1052
+ "referenceKind": "id",
1053
+ "notNull": true
1054
+ },
1055
+ "slug": {
1056
+ "type": "TEXT",
1057
+ "notNull": true
1058
+ },
1059
+ "context": {
1060
+ "type": "TEXT",
1061
+ "notNull": true,
1062
+ "default": ""
1063
+ },
1064
+ "created_at": {
1065
+ "type": "TIMESTAMP",
1066
+ "notNull": true,
1067
+ "default": "current_timestamp"
1068
+ },
1069
+ "updated_at": {
1070
+ "type": "TIMESTAMP",
1071
+ "notNull": true,
1072
+ "default": "current_timestamp"
1073
+ },
1074
+ "tenant_id": {
1075
+ "type": "UUID",
1076
+ "referenceKind": "tenantId",
1077
+ "notNull": false,
1078
+ "unique": false
1079
+ },
1080
+ "persona_id": {
1081
+ "type": "UUID",
1082
+ "referenceKind": "foreignKey",
1083
+ "notNull": true,
1084
+ "unique": false
1085
+ },
1086
+ "agent_class": {
1087
+ "type": "TEXT",
1088
+ "notNull": false,
1089
+ "unique": false
1090
+ },
1091
+ "memory_scope": {
1092
+ "type": "TEXT",
1093
+ "notNull": false,
1094
+ "unique": false
1095
+ },
1096
+ "scope": {
1097
+ "type": "TEXT",
1098
+ "notNull": false,
1099
+ "unique": false
1100
+ },
1101
+ "key": {
1102
+ "type": "TEXT",
1103
+ "notNull": false,
1104
+ "unique": false
1105
+ },
1106
+ "signal_type": {
1107
+ "type": "TEXT",
1108
+ "notNull": false,
1109
+ "unique": false
1110
+ },
1111
+ "source": {
1112
+ "type": "TEXT",
1113
+ "notNull": false,
1114
+ "unique": false
1115
+ },
1116
+ "correlation_id": {
1117
+ "type": "TEXT",
1118
+ "notNull": true,
1119
+ "unique": false
1120
+ },
1121
+ "correlation_type": {
1122
+ "type": "TEXT",
1123
+ "notNull": false,
1124
+ "unique": false
1125
+ },
1126
+ "rating": {
1127
+ "type": "REAL",
1128
+ "notNull": false,
1129
+ "unique": false
1130
+ },
1131
+ "metric": {
1132
+ "type": "REAL",
1133
+ "notNull": false,
1134
+ "unique": false
1135
+ },
1136
+ "success": {
1137
+ "type": "BOOLEAN",
1138
+ "notNull": false,
1139
+ "unique": false
1140
+ },
1141
+ "correction": {
1142
+ "type": "TEXT",
1143
+ "notNull": false,
1144
+ "unique": false
1145
+ },
1146
+ "comment": {
1147
+ "type": "TEXT",
1148
+ "notNull": false,
1149
+ "unique": false
1150
+ },
1151
+ "actor_id": {
1152
+ "type": "TEXT",
1153
+ "notNull": false,
1154
+ "unique": false
1155
+ },
1156
+ "metadata": {
1157
+ "type": "TEXT",
1158
+ "notNull": false,
1159
+ "unique": false
1160
+ },
1161
+ "reinforced_at": {
1162
+ "type": "TIMESTAMP",
1163
+ "notNull": false,
1164
+ "unique": false
1165
+ }
1166
+ },
1167
+ "indexes": [
1168
+ {
1169
+ "name": "agent_feedback_id_idx",
1170
+ "columns": [
1171
+ "id"
1172
+ ]
1173
+ },
1174
+ {
1175
+ "name": "agent_feedback_slug_context_idx",
1176
+ "columns": [
1177
+ "slug",
1178
+ "context"
1179
+ ],
1180
+ "unique": true
1181
+ }
1182
+ ],
1183
+ "version": "65f8e99e"
1184
+ }
1185
+ },
1186
+ "@happyvertical/smrt-personas:FeedbackCollection": {
1187
+ "name": "feedbackcollection",
1188
+ "className": "FeedbackCollection",
1189
+ "qualifiedName": "@happyvertical/smrt-personas:FeedbackCollection",
1190
+ "collection": "feedbacks",
1191
+ "filePath": "/home/runner/_work/smrt/smrt/packages/personas/src/feedback.ts",
1192
+ "packageName": "@happyvertical/smrt-personas",
1193
+ "fields": {},
1194
+ "methods": {
1195
+ "forPersona": {
1196
+ "name": "forPersona",
1197
+ "async": true,
1198
+ "parameters": [
1199
+ {
1200
+ "name": "personaId",
1201
+ "type": "string",
1202
+ "optional": false
1203
+ },
1204
+ {
1205
+ "name": "options",
1206
+ "type": "object",
1207
+ "optional": true
1208
+ }
1209
+ ],
1210
+ "returnType": "Promise<Feedback[]>",
1211
+ "isStatic": false,
1212
+ "isPublic": true
1213
+ },
1214
+ "forScope": {
1215
+ "name": "forScope",
1216
+ "async": true,
1217
+ "parameters": [
1218
+ {
1219
+ "name": "memoryScope",
1220
+ "type": "string",
1221
+ "optional": false
1222
+ },
1223
+ {
1224
+ "name": "options",
1225
+ "type": "object",
1226
+ "optional": true
1227
+ }
1228
+ ],
1229
+ "returnType": "Promise<Feedback[]>",
1230
+ "isStatic": false,
1231
+ "isPublic": true
1232
+ },
1233
+ "byCorrelation": {
1234
+ "name": "byCorrelation",
1235
+ "async": true,
1236
+ "parameters": [
1237
+ {
1238
+ "name": "correlationId",
1239
+ "type": "string",
1240
+ "optional": false
1241
+ }
1242
+ ],
1243
+ "returnType": "Promise<Feedback[]>",
1244
+ "isStatic": false,
1245
+ "isPublic": true
1246
+ }
1247
+ },
1248
+ "decoratorConfig": {
1249
+ "tableName": "agent_feedback"
1250
+ },
1251
+ "extends": "SmrtCollection",
1252
+ "extendsTypeArg": "Feedback",
1253
+ "exportName": "FeedbackCollection",
1254
+ "collectionExportName": "FeedbackCollectionCollection",
1255
+ "schema": {
1256
+ "tableName": "agent_feedback",
1257
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agent_feedback\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1258
+ "columns": {
1259
+ "id": {
1260
+ "type": "UUID",
1261
+ "primaryKey": true,
1262
+ "referenceKind": "id",
1263
+ "notNull": true
1264
+ },
1265
+ "slug": {
1266
+ "type": "TEXT",
1267
+ "notNull": true
1268
+ },
1269
+ "context": {
1270
+ "type": "TEXT",
1271
+ "notNull": true,
1272
+ "default": ""
1273
+ },
1274
+ "created_at": {
1275
+ "type": "TIMESTAMP",
1276
+ "notNull": true,
1277
+ "default": "current_timestamp"
1278
+ },
1279
+ "updated_at": {
1280
+ "type": "TIMESTAMP",
1281
+ "notNull": true,
1282
+ "default": "current_timestamp"
1283
+ }
1284
+ },
1285
+ "indexes": [
1286
+ {
1287
+ "name": "agent_feedback_id_idx",
1288
+ "columns": [
1289
+ "id"
1290
+ ]
1291
+ },
1292
+ {
1293
+ "name": "agent_feedback_slug_context_idx",
1294
+ "columns": [
1295
+ "slug",
1296
+ "context"
1297
+ ],
1298
+ "unique": true
1299
+ }
1300
+ ],
1301
+ "version": "c8bb487d"
1302
+ }
389
1303
  }
390
1304
  },
391
1305
  "moduleType": "smrt",
392
1306
  "smrtDependencies": [
393
1307
  "@happyvertical/smrt-agents",
394
1308
  "@happyvertical/smrt-core",
395
- "@happyvertical/smrt-tenancy"
1309
+ "@happyvertical/smrt-prompts",
1310
+ "@happyvertical/smrt-tenancy",
1311
+ "@happyvertical/smrt-users"
396
1312
  ]
397
1313
  }