@50arms/plugin-sdk 0.2.76 → 0.2.78
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 +52 -10
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -661,8 +661,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
661
661
|
pin_no: number;
|
|
662
662
|
slot: string;
|
|
663
663
|
status: "compliant" | "incompliant" | "rejected" | "not_applicable";
|
|
664
|
-
|
|
665
|
-
confidence: number | null;
|
|
664
|
+
provenance_index: number | null;
|
|
666
665
|
review: "surfaced" | "auto_approved" | null;
|
|
667
666
|
problem_index: number | null;
|
|
668
667
|
signed_by_kind: "person" | "agent";
|
|
@@ -737,7 +736,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
737
736
|
decided_by: string | null;
|
|
738
737
|
owed: boolean;
|
|
739
738
|
}
|
|
740
|
-
type
|
|
739
|
+
type V2CopyRoundDecision = Omit<GateRoundDecisionV2, "by">;
|
|
740
|
+
interface V2CopyRoundDecisions {
|
|
741
|
+
reviewer: V2CopyRoundDecision | null;
|
|
742
|
+
orchestrator: V2CopyRoundDecision | null;
|
|
743
|
+
}
|
|
744
|
+
type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key" | "decision_versions" | "decisions"> & {
|
|
745
|
+
decisions: V2CopyRoundDecisions;
|
|
746
|
+
};
|
|
741
747
|
interface V2CopySolution extends SolutionContent {
|
|
742
748
|
removed: boolean;
|
|
743
749
|
design_index: number | null;
|
|
@@ -808,6 +814,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
808
814
|
} | {
|
|
809
815
|
kind: "card_justification";
|
|
810
816
|
item_version: string | null;
|
|
817
|
+
} | {
|
|
818
|
+
kind: "checklist_item";
|
|
819
|
+
checklist_index: number;
|
|
820
|
+
item_index: number;
|
|
811
821
|
} | {
|
|
812
822
|
kind: "plan_record";
|
|
813
823
|
record_id: number;
|
|
@@ -816,11 +826,21 @@ declare module "@danxbot/card-kit@1" {
|
|
|
816
826
|
kind: "plan_section";
|
|
817
827
|
section_id: number;
|
|
818
828
|
item_version: string | null;
|
|
829
|
+
} | {
|
|
830
|
+
kind: "behavior_rule";
|
|
831
|
+
policy_index: number;
|
|
832
|
+
rule_index: number;
|
|
833
|
+
item_version: string | null;
|
|
834
|
+
} | {
|
|
835
|
+
kind: "behavior_policy";
|
|
836
|
+
policy_index: number;
|
|
837
|
+
item_version: string | null;
|
|
819
838
|
};
|
|
820
839
|
type V2CopyProvenanceLink = V2CopyProvenanceLinkItem & {
|
|
821
840
|
linked_by: V2CopyProvenanceParty;
|
|
822
841
|
linked_at: string;
|
|
823
842
|
link_no: number;
|
|
843
|
+
overruled_by_link_no: number | null;
|
|
824
844
|
};
|
|
825
845
|
interface V2CopyProvenanceRecord {
|
|
826
846
|
reasoning: string | null;
|
|
@@ -903,8 +923,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
903
923
|
interface BehaviorDecisionView {
|
|
904
924
|
readonly signoff_id: number;
|
|
905
925
|
readonly status: Exclude<RuleStatus, "unverified">;
|
|
906
|
-
readonly
|
|
907
|
-
readonly
|
|
926
|
+
readonly provenance: ProvenanceRecordV2 | null;
|
|
927
|
+
readonly provenance_outdated: boolean;
|
|
908
928
|
readonly review: "surfaced" | "auto_approved" | null;
|
|
909
929
|
readonly signer: {
|
|
910
930
|
readonly kind: "person" | "agent";
|
|
@@ -918,8 +938,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
918
938
|
readonly status: RuleStatus;
|
|
919
939
|
readonly settled: boolean;
|
|
920
940
|
readonly signoff_id: number | null;
|
|
921
|
-
readonly
|
|
922
|
-
readonly
|
|
941
|
+
readonly signoff_provenance: ProvenanceRecordV2 | null;
|
|
942
|
+
readonly signoff_provenance_outdated: boolean;
|
|
923
943
|
readonly review: "surfaced" | "auto_approved" | null;
|
|
924
944
|
readonly signer: BehaviorDecisionView["signer"] | null;
|
|
925
945
|
readonly by: BehaviorDecisionView["by"] | null;
|
|
@@ -941,6 +961,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
941
961
|
readonly requires_reasoning: boolean;
|
|
942
962
|
readonly confidence_threshold: number;
|
|
943
963
|
readonly kind: BehaviorRuleKind;
|
|
964
|
+
readonly gates: string[];
|
|
965
|
+
readonly any_agent: boolean;
|
|
944
966
|
readonly expected_roles: string[];
|
|
945
967
|
readonly provenance: ProvenanceRecordV2;
|
|
946
968
|
}
|
|
@@ -1197,6 +1219,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1197
1219
|
kind: "decided_by_person";
|
|
1198
1220
|
gate: string;
|
|
1199
1221
|
decided_by: string;
|
|
1222
|
+
} | {
|
|
1223
|
+
kind: "awaits_round_decision";
|
|
1224
|
+
gate: string;
|
|
1225
|
+
round: number;
|
|
1200
1226
|
};
|
|
1201
1227
|
|
|
1202
1228
|
interface CodeGateStatus {
|
|
@@ -1518,6 +1544,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1518
1544
|
label: string;
|
|
1519
1545
|
detail: string;
|
|
1520
1546
|
status: ChecklistItemStatus$1;
|
|
1547
|
+
provenance: ProvenanceRecordV2 | null;
|
|
1521
1548
|
}
|
|
1522
1549
|
interface ChecklistView {
|
|
1523
1550
|
id: number;
|
|
@@ -1565,6 +1592,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1565
1592
|
answers_decision_id?: undefined | null | number;
|
|
1566
1593
|
sign_off?: undefined | null | CommentSignOffViewV2;
|
|
1567
1594
|
quoted_request?: undefined | null | ProvenanceRecordV2;
|
|
1595
|
+
quoted_request_card_id?: undefined | null | string;
|
|
1568
1596
|
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; } | { kind: "evidence"; ref: number; }>;
|
|
1569
1597
|
resource_tags: Array<CommentResourceTag>;
|
|
1570
1598
|
parent_comment_id: null | number;
|
|
@@ -2040,12 +2068,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2040
2068
|
interface QualityGateChipV2 {
|
|
2041
2069
|
gate: string;
|
|
2042
2070
|
phase: QualityGatePhase;
|
|
2043
|
-
status:
|
|
2071
|
+
status: QualityGateStatus;
|
|
2044
2072
|
}
|
|
2045
2073
|
type QualityGateViewV2 = {
|
|
2046
2074
|
gate: string;
|
|
2047
2075
|
decision_note: string;
|
|
2048
|
-
status: "pending" | "pass" | "fail" | "skipped";
|
|
2076
|
+
status: "pending" | "pass" | "fail" | "skipped" | "fixed";
|
|
2049
2077
|
completed_at: null | string;
|
|
2050
2078
|
message: string;
|
|
2051
2079
|
reviewed_ref: null | string;
|
|
@@ -2053,6 +2081,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2053
2081
|
budget_started_at: string;
|
|
2054
2082
|
rounds: Array<GateRoundV2>;
|
|
2055
2083
|
phase: "plan" | "code";
|
|
2084
|
+
awaits_round_decision: boolean;
|
|
2056
2085
|
};
|
|
2057
2086
|
type ProblemViewV2 = {
|
|
2058
2087
|
type: "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
@@ -2492,7 +2521,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2492
2521
|
updated_at: string;
|
|
2493
2522
|
deleted_at: string | null;
|
|
2494
2523
|
}
|
|
2495
|
-
type QualityGateStatus = "pending" | "pass" | "fail" | "skipped";
|
|
2524
|
+
type QualityGateStatus = "pending" | "pass" | "fail" | "skipped" | "fixed";
|
|
2496
2525
|
type GateRoundReviewerKind = "session" | "dispatch" | "person";
|
|
2497
2526
|
type GateRoundVerdict = "pass" | "fail" | "retry" | "skipped";
|
|
2498
2527
|
interface GateRoundV2 {
|
|
@@ -2514,6 +2543,19 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2514
2543
|
summary: string;
|
|
2515
2544
|
recorded_at: string;
|
|
2516
2545
|
decision_versions: DecisionVersionView[];
|
|
2546
|
+
decisions: GateRoundDecisions;
|
|
2547
|
+
}
|
|
2548
|
+
interface GateRoundDecisionV2 {
|
|
2549
|
+
required: boolean;
|
|
2550
|
+
reason: string;
|
|
2551
|
+
fix_ref: string | null;
|
|
2552
|
+
decided_by_name: string;
|
|
2553
|
+
by: AuthorV2;
|
|
2554
|
+
decided_at: string;
|
|
2555
|
+
}
|
|
2556
|
+
interface GateRoundDecisions {
|
|
2557
|
+
reviewer: GateRoundDecisionV2 | null;
|
|
2558
|
+
orchestrator: GateRoundDecisionV2 | null;
|
|
2517
2559
|
}
|
|
2518
2560
|
interface ProvenanceRecordV2 {
|
|
2519
2561
|
id: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.78",
|
|
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",
|