@50arms/plugin-sdk 0.2.75 → 0.2.77
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/card-kit.d.ts +84 -36
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -107,18 +107,17 @@ declare module "@danxbot/card-kit@1" {
|
|
|
107
107
|
id: string;
|
|
108
108
|
}
|
|
109
109
|
type BehaviorSignoffStatus = "compliant" | "incompliant" | "rejected" | "not_applicable";
|
|
110
|
-
type
|
|
110
|
+
type RuleStatus = BehaviorSignoffStatus | "unverified";
|
|
111
111
|
type BehaviorRuleKind = "journey" | "destination";
|
|
112
|
-
type
|
|
112
|
+
type BehaviorRowProblemState = "waiting_on_person" | "waiting_on_agent" | "accepted";
|
|
113
113
|
|
|
114
|
-
interface
|
|
114
|
+
interface ReportedRule {
|
|
115
115
|
readonly ref: string;
|
|
116
116
|
readonly kind: BehaviorRuleKind;
|
|
117
117
|
readonly text: string;
|
|
118
|
-
readonly slot: string;
|
|
119
118
|
}
|
|
120
|
-
interface ReportedSignoff extends
|
|
121
|
-
readonly status: Exclude<
|
|
119
|
+
interface ReportedSignoff extends ReportedRule {
|
|
120
|
+
readonly status: Exclude<RuleStatus, "unverified">;
|
|
122
121
|
readonly signer: {
|
|
123
122
|
readonly kind: "person" | "agent";
|
|
124
123
|
readonly name: string;
|
|
@@ -128,7 +127,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
128
127
|
}
|
|
129
128
|
interface BehaviorSignoffReport {
|
|
130
129
|
readonly signoffs: readonly ReportedSignoff[];
|
|
131
|
-
readonly unverified: readonly
|
|
130
|
+
readonly unverified: readonly ReportedRule[];
|
|
131
|
+
}
|
|
132
|
+
interface BehaviorSignoffReportWire extends BehaviorSignoffReport {
|
|
133
|
+
readonly signoffs: readonly (ReportedSignoff & {
|
|
134
|
+
readonly slot: string;
|
|
135
|
+
})[];
|
|
136
|
+
readonly unverified: readonly (ReportedRule & {
|
|
137
|
+
readonly slot: string;
|
|
138
|
+
})[];
|
|
132
139
|
}
|
|
133
140
|
type EvidenceBlockType = "note" | "steps" | "command" | "table" | "code" | "diff" | "log" | "samples";
|
|
134
141
|
type EvidenceMadeBy = "human" | "agent";
|
|
@@ -392,6 +399,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
392
399
|
pro: string;
|
|
393
400
|
con: string;
|
|
394
401
|
recommended: boolean;
|
|
402
|
+
confidence: number | null;
|
|
395
403
|
}
|
|
396
404
|
type ReviewChoiceKind = "reject" | "accept" | "revert" | "restore" | "inconclusive" | "archive";
|
|
397
405
|
type EvidenceReviewReason = "threshold" | "rejected_before" | "refreshed";
|
|
@@ -404,7 +412,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
404
412
|
answers_decision: V2CopyDecisionRef | null;
|
|
405
413
|
tags: V2CopyCommentTag[];
|
|
406
414
|
sign_off: V2CopySignOff | null;
|
|
407
|
-
quoted_request: V2CopyProvenanceRecord | null;
|
|
408
415
|
team_agent: string | null;
|
|
409
416
|
author_email: string | null;
|
|
410
417
|
created_at: string;
|
|
@@ -520,7 +527,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
520
527
|
made_by_email: string | null;
|
|
521
528
|
made_by_name: string | null;
|
|
522
529
|
made_by_team_agent: string | null;
|
|
523
|
-
provenance: V2CopyProvenanceRecord | null;
|
|
524
530
|
author: string;
|
|
525
531
|
team_agent: string | null;
|
|
526
532
|
created_at: string;
|
|
@@ -566,7 +572,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
566
572
|
exhibits: V2CopyEvidenceExhibit[];
|
|
567
573
|
subjects: string[];
|
|
568
574
|
approvals: V2CopyEvidenceApproval[];
|
|
569
|
-
provenance: V2CopyProvenanceRecord | null;
|
|
570
575
|
}
|
|
571
576
|
interface V2CopyEvidenceKeyFigure {
|
|
572
577
|
value: string;
|
|
@@ -579,7 +584,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
579
584
|
version_no: number;
|
|
580
585
|
answer: string;
|
|
581
586
|
confidence: number;
|
|
582
|
-
provenance: V2CopyProvenanceRecord;
|
|
583
587
|
key_figures: V2CopyEvidenceKeyFigure[];
|
|
584
588
|
confidence_reason: string | null;
|
|
585
589
|
unverified: string[];
|
|
@@ -657,8 +661,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
657
661
|
pin_no: number;
|
|
658
662
|
slot: string;
|
|
659
663
|
status: "compliant" | "incompliant" | "rejected" | "not_applicable";
|
|
660
|
-
|
|
661
|
-
confidence: number | null;
|
|
664
|
+
provenance_index: number | null;
|
|
662
665
|
review: "surfaced" | "auto_approved" | null;
|
|
663
666
|
problem_index: number | null;
|
|
664
667
|
signed_by_kind: "person" | "agent";
|
|
@@ -767,7 +770,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
767
770
|
decided_by: string;
|
|
768
771
|
decided_at: string;
|
|
769
772
|
retracted_at: string | null;
|
|
770
|
-
provenance: V2CopyProvenanceRecord | null;
|
|
771
773
|
}
|
|
772
774
|
interface V2CopyProvenanceParty {
|
|
773
775
|
kind: ProvenancePartyKind;
|
|
@@ -790,16 +792,56 @@ declare module "@danxbot/card-kit@1" {
|
|
|
790
792
|
added_by: V2CopyProvenanceParty;
|
|
791
793
|
added_at: string;
|
|
792
794
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
type V2CopyProvenanceLinkItem = {
|
|
796
|
+
kind: "problem_answer";
|
|
797
|
+
problem_index: number;
|
|
798
|
+
decision_index: number;
|
|
799
|
+
} | {
|
|
800
|
+
kind: "decision" | "evidence_hypothesis" | "evidence_verdict";
|
|
801
|
+
record_index: number;
|
|
802
|
+
version_index: number;
|
|
803
|
+
} | {
|
|
804
|
+
kind: "comment";
|
|
805
|
+
comment_index: number;
|
|
806
|
+
item_version: string | null;
|
|
807
|
+
} | {
|
|
808
|
+
kind: "card_justification";
|
|
809
|
+
item_version: string | null;
|
|
810
|
+
} | {
|
|
811
|
+
kind: "checklist_item";
|
|
812
|
+
checklist_index: number;
|
|
813
|
+
item_index: number;
|
|
814
|
+
} | {
|
|
815
|
+
kind: "plan_record";
|
|
816
|
+
record_id: number;
|
|
817
|
+
item_version: string | null;
|
|
818
|
+
} | {
|
|
819
|
+
kind: "plan_section";
|
|
820
|
+
section_id: number;
|
|
821
|
+
item_version: string | null;
|
|
822
|
+
} | {
|
|
823
|
+
kind: "behavior_rule";
|
|
824
|
+
policy_index: number;
|
|
825
|
+
rule_index: number;
|
|
826
|
+
item_version: string | null;
|
|
827
|
+
} | {
|
|
828
|
+
kind: "behavior_policy";
|
|
829
|
+
policy_index: number;
|
|
830
|
+
item_version: string | null;
|
|
831
|
+
};
|
|
832
|
+
type V2CopyProvenanceLink = V2CopyProvenanceLinkItem & {
|
|
833
|
+
linked_by: V2CopyProvenanceParty;
|
|
834
|
+
linked_at: string;
|
|
835
|
+
link_no: number;
|
|
836
|
+
overruled_by_link_no: number | null;
|
|
837
|
+
};
|
|
797
838
|
interface V2CopyProvenanceRecord {
|
|
798
839
|
reasoning: string | null;
|
|
799
840
|
confidence: number | null;
|
|
800
841
|
sources: V2CopyProvenanceSource[];
|
|
801
842
|
recorded_by: V2CopyProvenanceParty;
|
|
802
843
|
recorded_at: string;
|
|
844
|
+
links: V2CopyProvenanceLink[];
|
|
803
845
|
}
|
|
804
846
|
interface V2CopyProblemEvidenceRecord {
|
|
805
847
|
record_index: number | null;
|
|
@@ -840,7 +882,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
840
882
|
comments: V2CopyComment[];
|
|
841
883
|
agent_notes: V2CopyAgentNote[];
|
|
842
884
|
decision_records: V2CopyDecisionRecord[];
|
|
843
|
-
|
|
885
|
+
provenance_records: V2CopyProvenanceRecord[];
|
|
844
886
|
evidence_records: V2CopyEvidenceRecord[];
|
|
845
887
|
behavior_policies_pinned_at: string | null;
|
|
846
888
|
behavior_policies_pin_no: number | null;
|
|
@@ -873,9 +915,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
873
915
|
|
|
874
916
|
interface BehaviorDecisionView {
|
|
875
917
|
readonly signoff_id: number;
|
|
876
|
-
readonly status: Exclude<
|
|
877
|
-
readonly
|
|
878
|
-
readonly
|
|
918
|
+
readonly status: Exclude<RuleStatus, "unverified">;
|
|
919
|
+
readonly provenance: ProvenanceRecordV2 | null;
|
|
920
|
+
readonly provenance_outdated: boolean;
|
|
879
921
|
readonly review: "surfaced" | "auto_approved" | null;
|
|
880
922
|
readonly signer: {
|
|
881
923
|
readonly kind: "person" | "agent";
|
|
@@ -885,14 +927,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
885
927
|
readonly pin_no: number;
|
|
886
928
|
readonly signed_at: string;
|
|
887
929
|
}
|
|
888
|
-
interface
|
|
889
|
-
readonly
|
|
890
|
-
readonly gate_on_card: boolean;
|
|
891
|
-
readonly status: SlotStatus;
|
|
930
|
+
interface BehaviorRuleDecisionView {
|
|
931
|
+
readonly status: RuleStatus;
|
|
892
932
|
readonly settled: boolean;
|
|
893
933
|
readonly signoff_id: number | null;
|
|
894
|
-
readonly
|
|
895
|
-
readonly
|
|
934
|
+
readonly signoff_provenance: ProvenanceRecordV2 | null;
|
|
935
|
+
readonly signoff_provenance_outdated: boolean;
|
|
896
936
|
readonly review: "surfaced" | "auto_approved" | null;
|
|
897
937
|
readonly signer: BehaviorDecisionView["signer"] | null;
|
|
898
938
|
readonly by: BehaviorDecisionView["by"] | null;
|
|
@@ -900,13 +940,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
900
940
|
readonly signed_at: string | null;
|
|
901
941
|
readonly problem: {
|
|
902
942
|
readonly ref: string;
|
|
903
|
-
readonly state:
|
|
943
|
+
readonly state: BehaviorRowProblemState;
|
|
904
944
|
readonly reviewed_by_name: string | null;
|
|
905
945
|
readonly reviewed_at: string | null;
|
|
906
946
|
} | null;
|
|
907
947
|
readonly earlier: BehaviorDecisionView[];
|
|
908
948
|
}
|
|
909
|
-
interface
|
|
949
|
+
interface BehaviorRuleFactsView {
|
|
910
950
|
readonly rule_id: number;
|
|
911
951
|
readonly ref: string;
|
|
912
952
|
readonly text: string;
|
|
@@ -914,9 +954,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
914
954
|
readonly requires_reasoning: boolean;
|
|
915
955
|
readonly confidence_threshold: number;
|
|
916
956
|
readonly kind: BehaviorRuleKind;
|
|
957
|
+
readonly expected_roles: string[];
|
|
917
958
|
readonly provenance: ProvenanceRecordV2;
|
|
918
|
-
readonly slots: BehaviorSlotView[];
|
|
919
959
|
}
|
|
960
|
+
type BehaviorRuleView = BehaviorRuleFactsView & BehaviorRuleDecisionView;
|
|
920
961
|
interface BehaviorPolicyView {
|
|
921
962
|
readonly ref: string;
|
|
922
963
|
readonly name: string;
|
|
@@ -931,7 +972,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
931
972
|
readonly behavior_policies_pinned_at: string | null;
|
|
932
973
|
readonly behavior_policies_pin_no: number | null;
|
|
933
974
|
readonly stale: boolean;
|
|
934
|
-
readonly
|
|
975
|
+
readonly open_rule_count: number;
|
|
935
976
|
readonly policies: BehaviorPolicyView[];
|
|
936
977
|
}
|
|
937
978
|
|
|
@@ -946,9 +987,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
946
987
|
readonly rule_id: number;
|
|
947
988
|
readonly rule_ref: string;
|
|
948
989
|
readonly rule_text: string;
|
|
949
|
-
readonly
|
|
950
|
-
readonly gate_on_card: boolean;
|
|
951
|
-
readonly state: BehaviorSlotProblemState;
|
|
990
|
+
readonly state: BehaviorRowProblemState;
|
|
952
991
|
readonly decision: BehaviorDecisionView;
|
|
953
992
|
readonly reviews: BehaviorRuleReviewView[];
|
|
954
993
|
}
|
|
@@ -1460,7 +1499,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1460
1499
|
commits: string[];
|
|
1461
1500
|
tests: RetroTestViewV2[];
|
|
1462
1501
|
commit_url_base?: string | null;
|
|
1463
|
-
behavior_signoffs:
|
|
1502
|
+
behavior_signoffs: BehaviorSignoffReportWire;
|
|
1464
1503
|
}
|
|
1465
1504
|
interface AttachmentViewV2 {
|
|
1466
1505
|
id: number;
|
|
@@ -1492,6 +1531,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1492
1531
|
label: string;
|
|
1493
1532
|
detail: string;
|
|
1494
1533
|
status: ChecklistItemStatus$1;
|
|
1534
|
+
provenance: ProvenanceRecordV2 | null;
|
|
1495
1535
|
}
|
|
1496
1536
|
interface ChecklistView {
|
|
1497
1537
|
id: number;
|
|
@@ -1539,6 +1579,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1539
1579
|
answers_decision_id?: undefined | null | number;
|
|
1540
1580
|
sign_off?: undefined | null | CommentSignOffViewV2;
|
|
1541
1581
|
quoted_request?: undefined | null | ProvenanceRecordV2;
|
|
1582
|
+
quoted_request_card_id?: undefined | null | string;
|
|
1542
1583
|
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; } | { kind: "evidence"; ref: number; }>;
|
|
1543
1584
|
resource_tags: Array<CommentResourceTag>;
|
|
1544
1585
|
parent_comment_id: null | number;
|
|
@@ -2168,6 +2209,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2168
2209
|
checked_by: null | string;
|
|
2169
2210
|
steps: Array<SolutionStepViewV2>;
|
|
2170
2211
|
}>;
|
|
2212
|
+
confidence: null | number;
|
|
2171
2213
|
title: string;
|
|
2172
2214
|
id: number;
|
|
2173
2215
|
content_hash: string;
|
|
@@ -2495,6 +2537,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2495
2537
|
sources: ProvenanceSourceV2[];
|
|
2496
2538
|
recorded_by: AuthorV2;
|
|
2497
2539
|
recorded_at: string;
|
|
2540
|
+
maker: ProvenanceMakerV2;
|
|
2541
|
+
}
|
|
2542
|
+
interface ProvenanceMakerV2 {
|
|
2543
|
+
kind: "person" | "agent";
|
|
2544
|
+
name: string;
|
|
2545
|
+
quotes_person: boolean;
|
|
2498
2546
|
}
|
|
2499
2547
|
interface ProvenanceSourceV2 {
|
|
2500
2548
|
kind: ProvenanceSourceKind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.77",
|
|
4
4
|
"description": "SDK for building 50 Arms plugins (DX-5170): the card kit's type declarations, the Widget declaration kit, a Vite preset that builds a plugin against the app's shared runtime and writes its manifest, and the danx-plugin CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|