@50arms/plugin-sdk 0.2.77 → 0.2.79
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 +154 -50
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
99
99
|
values: StatusReasonValues;
|
|
100
100
|
}
|
|
101
101
|
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
102
|
-
type ProvenanceSourceKind = "design" | "agent" | "plan" | "card" | "comment" | "session_thread" | "problem" | "evidence" | "url" | "decision" | "plan_record" | "plan_section" | "behavior_rule" | "behavior_policy" | "docs_page" | "commit" | "user" | "system";
|
|
102
|
+
type ProvenanceSourceKind = "design" | "agent" | "plan" | "card" | "comment" | "session_thread" | "problem" | "evidence" | "url" | "decision" | "plan_record" | "plan_section" | "behavior_rule" | "behavior_policy" | "docs_page" | "commit" | "user" | "system" | "provenance";
|
|
103
103
|
type ProvenancePartyKind = "agent" | "person";
|
|
104
104
|
type ResourceType = "design" | "plan" | "problem" | "evidence" | "decision" | "plan_record" | "plan_section" | "behavior_policy" | "issue" | "behavior_policy_group";
|
|
105
105
|
interface ResourceRef {
|
|
@@ -149,8 +149,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
149
149
|
type EvidenceAttachmentRole = "samples" | "file" | "csv";
|
|
150
150
|
type EvidencePart = "hypothesis" | "verdict";
|
|
151
151
|
type EvidenceApprovalAction = "approve" | "reject";
|
|
152
|
-
type EvidenceAutoBasis = "threshold" | "pre_gate" | "subjects_only";
|
|
153
|
-
type
|
|
152
|
+
type EvidenceAutoBasis = "threshold" | "pre_gate" | "subjects_only" | "rules";
|
|
153
|
+
type ResolvedLayer = "board" | "team" | "default";
|
|
154
154
|
|
|
155
155
|
interface EvidenceColumn {
|
|
156
156
|
name: string;
|
|
@@ -268,7 +268,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
268
268
|
by_name: string | null;
|
|
269
269
|
basis: EvidenceAutoBasis | null;
|
|
270
270
|
threshold: string | null;
|
|
271
|
-
layer:
|
|
271
|
+
layer: ResolvedLayer | null;
|
|
272
272
|
reason: string | null;
|
|
273
273
|
at: string;
|
|
274
274
|
}
|
|
@@ -307,7 +307,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
307
307
|
confidence_reason: string | null;
|
|
308
308
|
unverified: string[];
|
|
309
309
|
method: string | null;
|
|
310
|
-
reproduced_failure: boolean;
|
|
311
310
|
implications: EvidenceImplications;
|
|
312
311
|
}
|
|
313
312
|
interface EvidenceRaisedProblemView {
|
|
@@ -347,6 +346,20 @@ declare module "@danxbot/card-kit@1" {
|
|
|
347
346
|
by_user_id: number | null;
|
|
348
347
|
by_name: string;
|
|
349
348
|
}
|
|
349
|
+
|
|
350
|
+
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
351
|
+
|
|
352
|
+
type QualityGatePhase = "plan" | "code";
|
|
353
|
+
|
|
354
|
+
type NotificationText = {
|
|
355
|
+
kind: "reason";
|
|
356
|
+
reason: StatusReason;
|
|
357
|
+
} | {
|
|
358
|
+
kind: "external";
|
|
359
|
+
text: string;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
type EffortLevelName$1 = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
350
363
|
interface DecisionRecordPage {
|
|
351
364
|
offset: number;
|
|
352
365
|
target_found: boolean | null;
|
|
@@ -364,9 +377,19 @@ declare module "@danxbot/card-kit@1" {
|
|
|
364
377
|
type: WorkMarkResourceType;
|
|
365
378
|
}
|
|
366
379
|
|
|
367
|
-
|
|
380
|
+
interface AlwaysRule {
|
|
381
|
+
readonly always: true;
|
|
382
|
+
}
|
|
383
|
+
interface WhenRule {
|
|
384
|
+
readonly when: {
|
|
385
|
+
readonly impact_at_least?: number;
|
|
386
|
+
readonly confidence_at_most?: number;
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
type ProblemRule = AlwaysRule | WhenRule;
|
|
390
|
+
type ProblemRuleList = readonly ProblemRule[];
|
|
368
391
|
|
|
369
|
-
type ControlValue = boolean | string;
|
|
392
|
+
type ControlValue = boolean | string | ProblemRuleList;
|
|
370
393
|
|
|
371
394
|
type ControlSource = "card" | "plan" | "board" | "team" | "system";
|
|
372
395
|
interface ControlFallback {
|
|
@@ -402,7 +425,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
402
425
|
confidence: number | null;
|
|
403
426
|
}
|
|
404
427
|
type ReviewChoiceKind = "reject" | "accept" | "revert" | "restore" | "inconclusive" | "archive";
|
|
405
|
-
type EvidenceReviewReason = "threshold" | "rejected_before" | "refreshed";
|
|
428
|
+
type EvidenceReviewReason = "threshold" | "rules" | "rejected_before" | "refreshed" | "reopened";
|
|
406
429
|
|
|
407
430
|
interface V2CopyComment {
|
|
408
431
|
author: string;
|
|
@@ -559,7 +582,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
559
582
|
by_name: string | null;
|
|
560
583
|
basis: EvidenceAutoBasis | null;
|
|
561
584
|
threshold: string | null;
|
|
562
|
-
layer:
|
|
585
|
+
layer: ResolvedLayer | null;
|
|
563
586
|
at: string;
|
|
564
587
|
}
|
|
565
588
|
interface V2CopyEvidenceHypothesisVersion extends V2CopyEvidenceMaker {
|
|
@@ -588,7 +611,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
588
611
|
confidence_reason: string | null;
|
|
589
612
|
unverified: string[];
|
|
590
613
|
method: string | null;
|
|
591
|
-
reproduced_failure: boolean;
|
|
592
614
|
implications: EvidenceImplications;
|
|
593
615
|
approvals: V2CopyEvidenceApproval[];
|
|
594
616
|
}
|
|
@@ -607,7 +629,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
607
629
|
}
|
|
608
630
|
interface V2CopyEvidenceRound {
|
|
609
631
|
round_no: number;
|
|
610
|
-
hypothesis_version: number;
|
|
632
|
+
hypothesis_version: number | null;
|
|
611
633
|
environment: string;
|
|
612
634
|
commit_sha: string;
|
|
613
635
|
author: string;
|
|
@@ -622,6 +644,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
622
644
|
}
|
|
623
645
|
interface V2CopyEvidenceRecord {
|
|
624
646
|
ref_num: number;
|
|
647
|
+
question: string | null;
|
|
625
648
|
last_exhibit_no: number;
|
|
626
649
|
created_at: string;
|
|
627
650
|
archived: V2CopyEvidenceArchived | null;
|
|
@@ -633,7 +656,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
633
656
|
live_position: number;
|
|
634
657
|
rule_version: string;
|
|
635
658
|
position: number;
|
|
636
|
-
|
|
659
|
+
signoff_required: boolean;
|
|
637
660
|
confidence_threshold: number | null;
|
|
638
661
|
kind: BehaviorRuleKind | null;
|
|
639
662
|
}
|
|
@@ -643,6 +666,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
643
666
|
position: number;
|
|
644
667
|
quality_gate_types: string[] | null;
|
|
645
668
|
attached_at: string;
|
|
669
|
+
signoff_required: boolean;
|
|
670
|
+
signoff_board_ids: number[];
|
|
671
|
+
pin_no: number;
|
|
646
672
|
violation_instructions: string;
|
|
647
673
|
confidence_threshold: number;
|
|
648
674
|
rules: V2CopyBehaviorRule[];
|
|
@@ -736,7 +762,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
736
762
|
decided_by: string | null;
|
|
737
763
|
owed: boolean;
|
|
738
764
|
}
|
|
739
|
-
type
|
|
765
|
+
type V2CopyRoundDecision = Omit<GateRoundDecisionV2, "by">;
|
|
766
|
+
interface V2CopyRoundDecisions {
|
|
767
|
+
reviewer: V2CopyRoundDecision | null;
|
|
768
|
+
orchestrator: V2CopyRoundDecision | null;
|
|
769
|
+
}
|
|
770
|
+
type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key" | "decision_versions" | "decisions"> & {
|
|
771
|
+
decisions: V2CopyRoundDecisions;
|
|
772
|
+
};
|
|
740
773
|
interface V2CopySolution extends SolutionContent {
|
|
741
774
|
removed: boolean;
|
|
742
775
|
design_index: number | null;
|
|
@@ -786,6 +819,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
786
819
|
problem_index: number | null;
|
|
787
820
|
evidence_index: number | null;
|
|
788
821
|
design_index: number | null;
|
|
822
|
+
provenance_index: number | null;
|
|
789
823
|
card_linked: boolean;
|
|
790
824
|
author: V2CopyProvenanceParty | null;
|
|
791
825
|
at: string | null;
|
|
@@ -838,6 +872,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
838
872
|
interface V2CopyProvenanceRecord {
|
|
839
873
|
reasoning: string | null;
|
|
840
874
|
confidence: number | null;
|
|
875
|
+
impact: number | null;
|
|
841
876
|
sources: V2CopyProvenanceSource[];
|
|
842
877
|
recorded_by: V2CopyProvenanceParty;
|
|
843
878
|
recorded_at: string;
|
|
@@ -951,9 +986,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
951
986
|
readonly ref: string;
|
|
952
987
|
readonly text: string;
|
|
953
988
|
readonly rule_version: string;
|
|
954
|
-
readonly
|
|
989
|
+
readonly signoff_required: boolean;
|
|
955
990
|
readonly confidence_threshold: number;
|
|
956
991
|
readonly kind: BehaviorRuleKind;
|
|
992
|
+
readonly gates: string[];
|
|
993
|
+
readonly any_agent: boolean;
|
|
957
994
|
readonly expected_roles: string[];
|
|
958
995
|
readonly provenance: ProvenanceRecordV2;
|
|
959
996
|
}
|
|
@@ -966,6 +1003,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
966
1003
|
readonly stale: boolean;
|
|
967
1004
|
readonly violation_instructions: string;
|
|
968
1005
|
readonly confidence_threshold: number;
|
|
1006
|
+
readonly signoff_required: boolean;
|
|
1007
|
+
readonly signoff_board_ids: number[];
|
|
969
1008
|
readonly rules: BehaviorRuleView[];
|
|
970
1009
|
}
|
|
971
1010
|
interface CardBehaviorPoliciesView {
|
|
@@ -1005,6 +1044,41 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1005
1044
|
readonly pin_no: number | null;
|
|
1006
1045
|
readonly groups: BehaviorRuleGroupView[];
|
|
1007
1046
|
}
|
|
1047
|
+
type ChecklistReviewReason = "rules" | "reopened" | "settings" | "replaces_person";
|
|
1048
|
+
|
|
1049
|
+
interface ChecklistReviewEvaluation {
|
|
1050
|
+
readonly verdict: "accept" | "reject";
|
|
1051
|
+
readonly note: string | null;
|
|
1052
|
+
readonly commentId: number | null;
|
|
1053
|
+
readonly evaluatedByName: string;
|
|
1054
|
+
readonly createdAt: string;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
type ChecklistReviewRowState = "waiting_on_person" | "accepted" | "rejected" | "outdated";
|
|
1058
|
+
interface ChecklistReviewRowView {
|
|
1059
|
+
readonly row_id: number;
|
|
1060
|
+
readonly item_id: number;
|
|
1061
|
+
readonly label: string;
|
|
1062
|
+
readonly checklist_id: number;
|
|
1063
|
+
readonly checklist: string;
|
|
1064
|
+
readonly item_status: ChecklistItemStatus | null;
|
|
1065
|
+
readonly reason: ChecklistReviewReason;
|
|
1066
|
+
readonly state: ChecklistReviewRowState;
|
|
1067
|
+
readonly provenance: ProvenanceRecordV2 | null;
|
|
1068
|
+
readonly evaluation: {
|
|
1069
|
+
readonly verdict: ChecklistReviewEvaluation["verdict"];
|
|
1070
|
+
readonly note: string | null;
|
|
1071
|
+
readonly evaluated_by_name: string;
|
|
1072
|
+
readonly comment_id: number | null;
|
|
1073
|
+
readonly created_at: string;
|
|
1074
|
+
} | null;
|
|
1075
|
+
readonly created_at: string;
|
|
1076
|
+
}
|
|
1077
|
+
interface ChecklistReviewProblemView {
|
|
1078
|
+
readonly total_count: number;
|
|
1079
|
+
readonly waiting_count: number;
|
|
1080
|
+
readonly rows: readonly ChecklistReviewRowView[];
|
|
1081
|
+
}
|
|
1008
1082
|
interface DesignSourceFile {
|
|
1009
1083
|
path: string;
|
|
1010
1084
|
content: string;
|
|
@@ -1087,14 +1161,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1087
1161
|
};
|
|
1088
1162
|
}
|
|
1089
1163
|
type CardUsage = UsageSummary | UsageError | null;
|
|
1090
|
-
|
|
1091
|
-
type NotificationText = {
|
|
1092
|
-
kind: "reason";
|
|
1093
|
-
reason: StatusReason;
|
|
1094
|
-
} | {
|
|
1095
|
-
kind: "external";
|
|
1096
|
-
text: string;
|
|
1097
|
-
};
|
|
1098
1164
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
1099
1165
|
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "open_cards";
|
|
1100
1166
|
type BehaviorPolicyContextCategoryKey = "rules";
|
|
@@ -1110,8 +1176,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1110
1176
|
categories: ContextCategorySize[];
|
|
1111
1177
|
}
|
|
1112
1178
|
|
|
1113
|
-
type EffortLevelName$1 = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
1114
|
-
|
|
1115
1179
|
interface CompactionGradeView {
|
|
1116
1180
|
grade: EffortLevelName$1;
|
|
1117
1181
|
model: string | null;
|
|
@@ -1193,6 +1257,27 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1193
1257
|
readonly sha: string;
|
|
1194
1258
|
readonly branch: string;
|
|
1195
1259
|
}
|
|
1260
|
+
type DeliveryFlowStep = "card_branch_pushed" | "pull_request_open" | "merged_or_landed";
|
|
1261
|
+
|
|
1262
|
+
type CodeCompleteConditionKey = "step" | "tests" | "gates";
|
|
1263
|
+
interface CodeCompleteCondition {
|
|
1264
|
+
readonly key: CodeCompleteConditionKey;
|
|
1265
|
+
readonly required: string;
|
|
1266
|
+
readonly met: boolean;
|
|
1267
|
+
readonly unavailable: boolean;
|
|
1268
|
+
readonly reason: string | null;
|
|
1269
|
+
readonly detail: string | null;
|
|
1270
|
+
}
|
|
1271
|
+
interface CodeCompleteState {
|
|
1272
|
+
readonly met: boolean;
|
|
1273
|
+
readonly step_reached: DeliveryFlowStep | null;
|
|
1274
|
+
readonly judged_sha: string | null;
|
|
1275
|
+
readonly conditions: readonly CodeCompleteCondition[];
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
interface CodeCompleteRelease {
|
|
1279
|
+
readonly sha: string;
|
|
1280
|
+
}
|
|
1196
1281
|
|
|
1197
1282
|
type PreGateHold = {
|
|
1198
1283
|
kind: "awaiting_person";
|
|
@@ -1210,6 +1295,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1210
1295
|
kind: "decided_by_person";
|
|
1211
1296
|
gate: string;
|
|
1212
1297
|
decided_by: string;
|
|
1298
|
+
} | {
|
|
1299
|
+
kind: "awaits_round_decision";
|
|
1300
|
+
gate: string;
|
|
1301
|
+
round: number;
|
|
1213
1302
|
};
|
|
1214
1303
|
|
|
1215
1304
|
interface CodeGateStatus {
|
|
@@ -1222,8 +1311,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1222
1311
|
card_id: CardRef | null;
|
|
1223
1312
|
}
|
|
1224
1313
|
|
|
1225
|
-
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
1226
|
-
|
|
1227
1314
|
type MoveKind = "create" | "archive" | "snooze" | "delete" | "retype" | "edit" | "other";
|
|
1228
1315
|
|
|
1229
1316
|
type SignoffScope = {
|
|
@@ -1233,8 +1320,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1233
1320
|
board: string | null;
|
|
1234
1321
|
card_type: string | null;
|
|
1235
1322
|
card: string | null;
|
|
1236
|
-
agent_profile:
|
|
1237
|
-
runtime:
|
|
1323
|
+
agent_profile: null;
|
|
1324
|
+
runtime: null;
|
|
1238
1325
|
};
|
|
1239
1326
|
interface SignedRule {
|
|
1240
1327
|
ref: string;
|
|
@@ -1604,6 +1691,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1604
1691
|
title: string;
|
|
1605
1692
|
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1606
1693
|
priority: number;
|
|
1694
|
+
stored_row?: undefined | IssueDisplayV2;
|
|
1607
1695
|
agent_notes?: undefined | (Array<{
|
|
1608
1696
|
id: string;
|
|
1609
1697
|
author: string;
|
|
@@ -1669,7 +1757,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1669
1757
|
content_hash: string;
|
|
1670
1758
|
retro?: undefined | RetroViewV2;
|
|
1671
1759
|
behavior_policies?: undefined | CardBehaviorPoliciesView;
|
|
1672
|
-
stored_row?: undefined | IssueDisplayV2;
|
|
1673
1760
|
stored_checklists?: undefined | Array<ChecklistWithItemsV2>;
|
|
1674
1761
|
stored_attachments?: undefined | Array<IssueAttachmentV2>;
|
|
1675
1762
|
retro_commit_shas?: undefined | Array<string>;
|
|
@@ -1740,6 +1827,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1740
1827
|
waiting_on_dep_ids?: undefined | Record<string, number>;
|
|
1741
1828
|
dependency_pull_requests?: undefined | Record<string, DependencyPullRequestViewV2>;
|
|
1742
1829
|
dependency_landings?: undefined | Record<string, DependencyLanding>;
|
|
1830
|
+
dependency_code_complete?: undefined | Record<string, CodeCompleteRelease>;
|
|
1743
1831
|
conflict_on?: undefined | Array<ConflictEntryViewV2>;
|
|
1744
1832
|
conflict_on_reverse?: undefined | Array<ConflictEntryViewV2>;
|
|
1745
1833
|
conflict_on_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
@@ -1748,6 +1836,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1748
1836
|
depends_on_landing_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
1749
1837
|
depends_on_landing_dep_ids?: undefined | Record<string, number>;
|
|
1750
1838
|
conflict_on_active_count?: undefined | number;
|
|
1839
|
+
code_complete?: undefined | null | CodeCompleteState;
|
|
1751
1840
|
children?: undefined | Array<string>;
|
|
1752
1841
|
descendant_ids?: undefined | Array<string>;
|
|
1753
1842
|
descendant_needs_you?: undefined | Array<DescendantNeedsYouView>;
|
|
@@ -1755,7 +1844,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1755
1844
|
child_assignments?: undefined | Array<ChildAssignmentViewV2>;
|
|
1756
1845
|
ac_total?: undefined | number;
|
|
1757
1846
|
ac_done?: undefined | number;
|
|
1758
|
-
ac_items?: undefined | (Array<{ title: string; status: "
|
|
1847
|
+
ac_items?: undefined | (Array<{ title: string; status: "cancelled" | "incomplete" | "failing" | "passing" | "deferred"; }>);
|
|
1759
1848
|
comments_count?: undefined | number;
|
|
1760
1849
|
unread_comments_count?: undefined | number;
|
|
1761
1850
|
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
@@ -1788,6 +1877,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1788
1877
|
landing_ahead?: undefined | LandingAheadView;
|
|
1789
1878
|
copy_issue?: undefined | V2CopyIssue;
|
|
1790
1879
|
decision_records?: undefined | (Array<{
|
|
1880
|
+
provenance: null | ProvenanceRecordV2;
|
|
1791
1881
|
text: string;
|
|
1792
1882
|
made_by: "human" | "agent";
|
|
1793
1883
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -1812,10 +1902,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1812
1902
|
made_by_name: null | string;
|
|
1813
1903
|
made_by_author: AuthorV2;
|
|
1814
1904
|
made_by_is_writer: boolean;
|
|
1815
|
-
provenance: null | ProvenanceRecordV2;
|
|
1816
1905
|
comment_count: number;
|
|
1817
1906
|
unread_comment_count: number;
|
|
1818
1907
|
versions?: undefined | (Array<{
|
|
1908
|
+
provenance: null | ProvenanceRecordV2;
|
|
1819
1909
|
text: string;
|
|
1820
1910
|
made_by: "human" | "agent";
|
|
1821
1911
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -1834,7 +1924,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1834
1924
|
made_by_name: null | string;
|
|
1835
1925
|
made_by_author: AuthorV2;
|
|
1836
1926
|
made_by_is_writer: boolean;
|
|
1837
|
-
provenance: null | ProvenanceRecordV2;
|
|
1838
1927
|
version_no: number;
|
|
1839
1928
|
}>);
|
|
1840
1929
|
approvals?: undefined | (Array<{
|
|
@@ -1848,9 +1937,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1848
1937
|
}>);
|
|
1849
1938
|
}>);
|
|
1850
1939
|
evidence_records?: undefined | (Array<{
|
|
1851
|
-
hypothesis: EvidenceHypothesisVersionView;
|
|
1940
|
+
hypothesis: null | EvidenceHypothesisVersionView;
|
|
1852
1941
|
verdict: null | EvidenceVerdictVersionView;
|
|
1853
1942
|
archived: null | EvidenceArchivedView;
|
|
1943
|
+
question: string;
|
|
1854
1944
|
rev: number;
|
|
1855
1945
|
created_at: string;
|
|
1856
1946
|
updated_at: string;
|
|
@@ -1869,7 +1959,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1869
1959
|
by: AuthorV2;
|
|
1870
1960
|
via_key: null | ViaKey;
|
|
1871
1961
|
round_no: number;
|
|
1872
|
-
hypothesis_version: number;
|
|
1962
|
+
hypothesis_version: null | number;
|
|
1873
1963
|
environment: string;
|
|
1874
1964
|
commit_sha: string;
|
|
1875
1965
|
blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log"> | EvidenceBlockViewBase<"samples">>;
|
|
@@ -1908,7 +1998,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1908
1998
|
confidence_reason: null | string;
|
|
1909
1999
|
unverified: Array<string>;
|
|
1910
2000
|
method: null | string;
|
|
1911
|
-
reproduced_failure: boolean;
|
|
1912
2001
|
implications: EvidenceImplications;
|
|
1913
2002
|
author: string;
|
|
1914
2003
|
by: AuthorV2;
|
|
@@ -1925,6 +2014,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1925
2014
|
}>);
|
|
1926
2015
|
}>);
|
|
1927
2016
|
decision_record_versions?: undefined | (Array<{
|
|
2017
|
+
provenance: null | ProvenanceRecordV2;
|
|
1928
2018
|
text: string;
|
|
1929
2019
|
made_by: "human" | "agent";
|
|
1930
2020
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -1943,7 +2033,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1943
2033
|
made_by_name: null | string;
|
|
1944
2034
|
made_by_author: AuthorV2;
|
|
1945
2035
|
made_by_is_writer: boolean;
|
|
1946
|
-
provenance: null | ProvenanceRecordV2;
|
|
1947
2036
|
version_no: number;
|
|
1948
2037
|
}>);
|
|
1949
2038
|
decision_record_approvals?: undefined | (Array<{
|
|
@@ -2032,13 +2121,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2032
2121
|
key: string;
|
|
2033
2122
|
scope: "board" | "team" | "plan" | "card";
|
|
2034
2123
|
scope_id: string;
|
|
2035
|
-
value: null | string | false | true;
|
|
2124
|
+
value: null | string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2036
2125
|
source: "board" | "team" | "plan" | "card" | "system" | "inherit";
|
|
2037
2126
|
base_hash: string;
|
|
2038
|
-
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months";
|
|
2127
|
+
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months" | "rule_list";
|
|
2039
2128
|
options: null | Array<string>;
|
|
2040
2129
|
description: string;
|
|
2041
|
-
system_default: string | false | true;
|
|
2130
|
+
system_default: string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2042
2131
|
fallback: null | ControlFallback;
|
|
2043
2132
|
overridable: boolean;
|
|
2044
2133
|
default_changed: boolean;
|
|
@@ -2055,12 +2144,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2055
2144
|
interface QualityGateChipV2 {
|
|
2056
2145
|
gate: string;
|
|
2057
2146
|
phase: QualityGatePhase;
|
|
2058
|
-
status:
|
|
2147
|
+
status: QualityGateStatus;
|
|
2059
2148
|
}
|
|
2060
2149
|
type QualityGateViewV2 = {
|
|
2061
2150
|
gate: string;
|
|
2062
2151
|
decision_note: string;
|
|
2063
|
-
status: "pending" | "pass" | "fail" | "skipped";
|
|
2152
|
+
status: "pending" | "pass" | "fail" | "skipped" | "fixed";
|
|
2064
2153
|
completed_at: null | string;
|
|
2065
2154
|
message: string;
|
|
2066
2155
|
reviewed_ref: null | string;
|
|
@@ -2068,9 +2157,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2068
2157
|
budget_started_at: string;
|
|
2069
2158
|
rounds: Array<GateRoundV2>;
|
|
2070
2159
|
phase: "plan" | "code";
|
|
2160
|
+
awaits_round_decision: boolean;
|
|
2071
2161
|
};
|
|
2072
2162
|
type ProblemViewV2 = {
|
|
2073
|
-
type: "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
2163
|
+
type: "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules" | "checklist_review";
|
|
2074
2164
|
open: boolean;
|
|
2075
2165
|
ordinal: number;
|
|
2076
2166
|
decisions: Array<{
|
|
@@ -2096,7 +2186,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2096
2186
|
comment_count: number;
|
|
2097
2187
|
unread_comment_count: number;
|
|
2098
2188
|
issue_id: string;
|
|
2099
|
-
shown_type: "design" | "question" | "action" | "decision_review" | "behavior_rules" | "hypothesis_review" | "verdict_review";
|
|
2189
|
+
shown_type: "design" | "question" | "action" | "decision_review" | "behavior_rules" | "checklist_review" | "hypothesis_review" | "verdict_review";
|
|
2100
2190
|
feedback_consent: boolean;
|
|
2101
2191
|
choice_locked: boolean;
|
|
2102
2192
|
docs_land: boolean;
|
|
@@ -2113,6 +2203,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2113
2203
|
answered_version_no: null | number;
|
|
2114
2204
|
choices: Array<{ solution_id: number; kind: ReviewChoiceKind; version_no: number; title: string; }>;
|
|
2115
2205
|
versions?: undefined | (Array<{
|
|
2206
|
+
provenance: null | ProvenanceRecordV2;
|
|
2116
2207
|
text: string;
|
|
2117
2208
|
made_by: "human" | "agent";
|
|
2118
2209
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -2131,7 +2222,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2131
2222
|
made_by_name: null | string;
|
|
2132
2223
|
made_by_author: AuthorV2;
|
|
2133
2224
|
made_by_is_writer: boolean;
|
|
2134
|
-
provenance: null | ProvenanceRecordV2;
|
|
2135
2225
|
version_no: number;
|
|
2136
2226
|
}>);
|
|
2137
2227
|
}>);
|
|
@@ -2143,7 +2233,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2143
2233
|
answered_version_no: null | number;
|
|
2144
2234
|
choices: Array<{ solution_id: number; kind: ReviewChoiceKind; version_no: number; title: string; }>;
|
|
2145
2235
|
part: "hypothesis" | "verdict";
|
|
2146
|
-
asked_because: null | "threshold" | "rejected_before" | "refreshed";
|
|
2236
|
+
asked_because: null | "threshold" | "rules" | "rejected_before" | "refreshed" | "reopened";
|
|
2147
2237
|
hypothesis_versions?: undefined | (Array<{
|
|
2148
2238
|
id: number;
|
|
2149
2239
|
version_no: number;
|
|
@@ -2178,7 +2268,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2178
2268
|
confidence_reason: null | string;
|
|
2179
2269
|
unverified: Array<string>;
|
|
2180
2270
|
method: null | string;
|
|
2181
|
-
reproduced_failure: boolean;
|
|
2182
2271
|
implications: EvidenceImplications;
|
|
2183
2272
|
author: string;
|
|
2184
2273
|
by: AuthorV2;
|
|
@@ -2195,6 +2284,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2195
2284
|
}>);
|
|
2196
2285
|
}>);
|
|
2197
2286
|
behavior_rules?: undefined | null | BehaviorRulesProblemView;
|
|
2287
|
+
checklist_review?: undefined | null | ChecklistReviewProblemView;
|
|
2198
2288
|
};
|
|
2199
2289
|
type SolutionViewV2 = {
|
|
2200
2290
|
steps: Array<{
|
|
@@ -2299,8 +2389,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2299
2389
|
|
|
2300
2390
|
type IssueStatus = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
2301
2391
|
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
2302
|
-
type IssueProblemType = "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
2303
|
-
type ShownProblemType = "design" | "question" | "action" | "decision_review" | "behavior_rules" | "hypothesis_review" | "verdict_review";
|
|
2392
|
+
type IssueProblemType = "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules" | "checklist_review";
|
|
2393
|
+
type ShownProblemType = "design" | "question" | "action" | "decision_review" | "behavior_rules" | "checklist_review" | "hypothesis_review" | "verdict_review";
|
|
2304
2394
|
type DecisionOutcome = "rejected" | "answered";
|
|
2305
2395
|
type GatingDependencyKind = "conflict_on" | "depends_on";
|
|
2306
2396
|
type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
|
|
@@ -2465,7 +2555,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2465
2555
|
recipient: ReplyRecipientV2;
|
|
2466
2556
|
reply_comment_id: number | null;
|
|
2467
2557
|
}
|
|
2468
|
-
type ChecklistItemStatus = "
|
|
2558
|
+
type ChecklistItemStatus = "cancelled" | "incomplete" | "failing" | "passing" | "deferred";
|
|
2469
2559
|
interface ChecklistV2 {
|
|
2470
2560
|
id: number;
|
|
2471
2561
|
issue_id: CardId;
|
|
@@ -2507,7 +2597,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2507
2597
|
updated_at: string;
|
|
2508
2598
|
deleted_at: string | null;
|
|
2509
2599
|
}
|
|
2510
|
-
type QualityGateStatus = "pending" | "pass" | "fail" | "skipped";
|
|
2600
|
+
type QualityGateStatus = "pending" | "pass" | "fail" | "skipped" | "fixed";
|
|
2511
2601
|
type GateRoundReviewerKind = "session" | "dispatch" | "person";
|
|
2512
2602
|
type GateRoundVerdict = "pass" | "fail" | "retry" | "skipped";
|
|
2513
2603
|
interface GateRoundV2 {
|
|
@@ -2529,11 +2619,25 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2529
2619
|
summary: string;
|
|
2530
2620
|
recorded_at: string;
|
|
2531
2621
|
decision_versions: DecisionVersionView[];
|
|
2622
|
+
decisions: GateRoundDecisions;
|
|
2623
|
+
}
|
|
2624
|
+
interface GateRoundDecisionV2 {
|
|
2625
|
+
required: boolean;
|
|
2626
|
+
reason: string;
|
|
2627
|
+
fix_ref: string | null;
|
|
2628
|
+
decided_by_name: string;
|
|
2629
|
+
by: AuthorV2;
|
|
2630
|
+
decided_at: string;
|
|
2631
|
+
}
|
|
2632
|
+
interface GateRoundDecisions {
|
|
2633
|
+
reviewer: GateRoundDecisionV2 | null;
|
|
2634
|
+
orchestrator: GateRoundDecisionV2 | null;
|
|
2532
2635
|
}
|
|
2533
2636
|
interface ProvenanceRecordV2 {
|
|
2534
2637
|
id: number;
|
|
2535
2638
|
reasoning: string | null;
|
|
2536
2639
|
confidence: number | null;
|
|
2640
|
+
impact: number | null;
|
|
2537
2641
|
sources: ProvenanceSourceV2[];
|
|
2538
2642
|
recorded_by: AuthorV2;
|
|
2539
2643
|
recorded_at: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.79",
|
|
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",
|