@50arms/plugin-sdk 0.2.75 → 0.2.76
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 +63 -30
- 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[];
|
|
@@ -767,7 +771,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
767
771
|
decided_by: string;
|
|
768
772
|
decided_at: string;
|
|
769
773
|
retracted_at: string | null;
|
|
770
|
-
provenance: V2CopyProvenanceRecord | null;
|
|
771
774
|
}
|
|
772
775
|
interface V2CopyProvenanceParty {
|
|
773
776
|
kind: ProvenancePartyKind;
|
|
@@ -790,16 +793,42 @@ declare module "@danxbot/card-kit@1" {
|
|
|
790
793
|
added_by: V2CopyProvenanceParty;
|
|
791
794
|
added_at: string;
|
|
792
795
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
796
|
+
type V2CopyProvenanceLinkItem = {
|
|
797
|
+
kind: "problem_answer";
|
|
798
|
+
problem_index: number;
|
|
799
|
+
decision_index: number;
|
|
800
|
+
} | {
|
|
801
|
+
kind: "decision" | "evidence_hypothesis" | "evidence_verdict";
|
|
802
|
+
record_index: number;
|
|
803
|
+
version_index: number;
|
|
804
|
+
} | {
|
|
805
|
+
kind: "comment";
|
|
806
|
+
comment_index: number;
|
|
807
|
+
item_version: string | null;
|
|
808
|
+
} | {
|
|
809
|
+
kind: "card_justification";
|
|
810
|
+
item_version: string | null;
|
|
811
|
+
} | {
|
|
812
|
+
kind: "plan_record";
|
|
813
|
+
record_id: number;
|
|
814
|
+
item_version: string | null;
|
|
815
|
+
} | {
|
|
816
|
+
kind: "plan_section";
|
|
817
|
+
section_id: number;
|
|
818
|
+
item_version: string | null;
|
|
819
|
+
};
|
|
820
|
+
type V2CopyProvenanceLink = V2CopyProvenanceLinkItem & {
|
|
821
|
+
linked_by: V2CopyProvenanceParty;
|
|
822
|
+
linked_at: string;
|
|
823
|
+
link_no: number;
|
|
824
|
+
};
|
|
797
825
|
interface V2CopyProvenanceRecord {
|
|
798
826
|
reasoning: string | null;
|
|
799
827
|
confidence: number | null;
|
|
800
828
|
sources: V2CopyProvenanceSource[];
|
|
801
829
|
recorded_by: V2CopyProvenanceParty;
|
|
802
830
|
recorded_at: string;
|
|
831
|
+
links: V2CopyProvenanceLink[];
|
|
803
832
|
}
|
|
804
833
|
interface V2CopyProblemEvidenceRecord {
|
|
805
834
|
record_index: number | null;
|
|
@@ -840,7 +869,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
840
869
|
comments: V2CopyComment[];
|
|
841
870
|
agent_notes: V2CopyAgentNote[];
|
|
842
871
|
decision_records: V2CopyDecisionRecord[];
|
|
843
|
-
|
|
872
|
+
provenance_records: V2CopyProvenanceRecord[];
|
|
844
873
|
evidence_records: V2CopyEvidenceRecord[];
|
|
845
874
|
behavior_policies_pinned_at: string | null;
|
|
846
875
|
behavior_policies_pin_no: number | null;
|
|
@@ -873,7 +902,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
873
902
|
|
|
874
903
|
interface BehaviorDecisionView {
|
|
875
904
|
readonly signoff_id: number;
|
|
876
|
-
readonly status: Exclude<
|
|
905
|
+
readonly status: Exclude<RuleStatus, "unverified">;
|
|
877
906
|
readonly note: string | null;
|
|
878
907
|
readonly confidence: number | null;
|
|
879
908
|
readonly review: "surfaced" | "auto_approved" | null;
|
|
@@ -885,10 +914,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
885
914
|
readonly pin_no: number;
|
|
886
915
|
readonly signed_at: string;
|
|
887
916
|
}
|
|
888
|
-
interface
|
|
889
|
-
readonly
|
|
890
|
-
readonly gate_on_card: boolean;
|
|
891
|
-
readonly status: SlotStatus;
|
|
917
|
+
interface BehaviorRuleDecisionView {
|
|
918
|
+
readonly status: RuleStatus;
|
|
892
919
|
readonly settled: boolean;
|
|
893
920
|
readonly signoff_id: number | null;
|
|
894
921
|
readonly note: string | null;
|
|
@@ -900,13 +927,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
900
927
|
readonly signed_at: string | null;
|
|
901
928
|
readonly problem: {
|
|
902
929
|
readonly ref: string;
|
|
903
|
-
readonly state:
|
|
930
|
+
readonly state: BehaviorRowProblemState;
|
|
904
931
|
readonly reviewed_by_name: string | null;
|
|
905
932
|
readonly reviewed_at: string | null;
|
|
906
933
|
} | null;
|
|
907
934
|
readonly earlier: BehaviorDecisionView[];
|
|
908
935
|
}
|
|
909
|
-
interface
|
|
936
|
+
interface BehaviorRuleFactsView {
|
|
910
937
|
readonly rule_id: number;
|
|
911
938
|
readonly ref: string;
|
|
912
939
|
readonly text: string;
|
|
@@ -914,9 +941,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
914
941
|
readonly requires_reasoning: boolean;
|
|
915
942
|
readonly confidence_threshold: number;
|
|
916
943
|
readonly kind: BehaviorRuleKind;
|
|
944
|
+
readonly expected_roles: string[];
|
|
917
945
|
readonly provenance: ProvenanceRecordV2;
|
|
918
|
-
readonly slots: BehaviorSlotView[];
|
|
919
946
|
}
|
|
947
|
+
type BehaviorRuleView = BehaviorRuleFactsView & BehaviorRuleDecisionView;
|
|
920
948
|
interface BehaviorPolicyView {
|
|
921
949
|
readonly ref: string;
|
|
922
950
|
readonly name: string;
|
|
@@ -931,7 +959,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
931
959
|
readonly behavior_policies_pinned_at: string | null;
|
|
932
960
|
readonly behavior_policies_pin_no: number | null;
|
|
933
961
|
readonly stale: boolean;
|
|
934
|
-
readonly
|
|
962
|
+
readonly open_rule_count: number;
|
|
935
963
|
readonly policies: BehaviorPolicyView[];
|
|
936
964
|
}
|
|
937
965
|
|
|
@@ -946,9 +974,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
946
974
|
readonly rule_id: number;
|
|
947
975
|
readonly rule_ref: string;
|
|
948
976
|
readonly rule_text: string;
|
|
949
|
-
readonly
|
|
950
|
-
readonly gate_on_card: boolean;
|
|
951
|
-
readonly state: BehaviorSlotProblemState;
|
|
977
|
+
readonly state: BehaviorRowProblemState;
|
|
952
978
|
readonly decision: BehaviorDecisionView;
|
|
953
979
|
readonly reviews: BehaviorRuleReviewView[];
|
|
954
980
|
}
|
|
@@ -1460,7 +1486,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1460
1486
|
commits: string[];
|
|
1461
1487
|
tests: RetroTestViewV2[];
|
|
1462
1488
|
commit_url_base?: string | null;
|
|
1463
|
-
behavior_signoffs:
|
|
1489
|
+
behavior_signoffs: BehaviorSignoffReportWire;
|
|
1464
1490
|
}
|
|
1465
1491
|
interface AttachmentViewV2 {
|
|
1466
1492
|
id: number;
|
|
@@ -2168,6 +2194,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2168
2194
|
checked_by: null | string;
|
|
2169
2195
|
steps: Array<SolutionStepViewV2>;
|
|
2170
2196
|
}>;
|
|
2197
|
+
confidence: null | number;
|
|
2171
2198
|
title: string;
|
|
2172
2199
|
id: number;
|
|
2173
2200
|
content_hash: string;
|
|
@@ -2495,6 +2522,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2495
2522
|
sources: ProvenanceSourceV2[];
|
|
2496
2523
|
recorded_by: AuthorV2;
|
|
2497
2524
|
recorded_at: string;
|
|
2525
|
+
maker: ProvenanceMakerV2;
|
|
2526
|
+
}
|
|
2527
|
+
interface ProvenanceMakerV2 {
|
|
2528
|
+
kind: "person" | "agent";
|
|
2529
|
+
name: string;
|
|
2530
|
+
quotes_person: boolean;
|
|
2498
2531
|
}
|
|
2499
2532
|
interface ProvenanceSourceV2 {
|
|
2500
2533
|
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.76",
|
|
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",
|