@50arms/plugin-sdk 0.2.78 → 0.2.80
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 +143 -46
- 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[];
|
|
@@ -793,6 +819,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
793
819
|
problem_index: number | null;
|
|
794
820
|
evidence_index: number | null;
|
|
795
821
|
design_index: number | null;
|
|
822
|
+
provenance_index: number | null;
|
|
796
823
|
card_linked: boolean;
|
|
797
824
|
author: V2CopyProvenanceParty | null;
|
|
798
825
|
at: string | null;
|
|
@@ -845,6 +872,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
845
872
|
interface V2CopyProvenanceRecord {
|
|
846
873
|
reasoning: string | null;
|
|
847
874
|
confidence: number | null;
|
|
875
|
+
impact: number | null;
|
|
848
876
|
sources: V2CopyProvenanceSource[];
|
|
849
877
|
recorded_by: V2CopyProvenanceParty;
|
|
850
878
|
recorded_at: string;
|
|
@@ -958,7 +986,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
958
986
|
readonly ref: string;
|
|
959
987
|
readonly text: string;
|
|
960
988
|
readonly rule_version: string;
|
|
961
|
-
readonly
|
|
989
|
+
readonly signoff_required: boolean;
|
|
962
990
|
readonly confidence_threshold: number;
|
|
963
991
|
readonly kind: BehaviorRuleKind;
|
|
964
992
|
readonly gates: string[];
|
|
@@ -975,6 +1003,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
975
1003
|
readonly stale: boolean;
|
|
976
1004
|
readonly violation_instructions: string;
|
|
977
1005
|
readonly confidence_threshold: number;
|
|
1006
|
+
readonly signoff_required: boolean;
|
|
1007
|
+
readonly signoff_board_ids: number[];
|
|
978
1008
|
readonly rules: BehaviorRuleView[];
|
|
979
1009
|
}
|
|
980
1010
|
interface CardBehaviorPoliciesView {
|
|
@@ -1014,6 +1044,41 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1014
1044
|
readonly pin_no: number | null;
|
|
1015
1045
|
readonly groups: BehaviorRuleGroupView[];
|
|
1016
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
|
+
}
|
|
1017
1082
|
interface DesignSourceFile {
|
|
1018
1083
|
path: string;
|
|
1019
1084
|
content: string;
|
|
@@ -1096,14 +1161,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1096
1161
|
};
|
|
1097
1162
|
}
|
|
1098
1163
|
type CardUsage = UsageSummary | UsageError | null;
|
|
1099
|
-
|
|
1100
|
-
type NotificationText = {
|
|
1101
|
-
kind: "reason";
|
|
1102
|
-
reason: StatusReason;
|
|
1103
|
-
} | {
|
|
1104
|
-
kind: "external";
|
|
1105
|
-
text: string;
|
|
1106
|
-
};
|
|
1107
1164
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
1108
1165
|
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "open_cards";
|
|
1109
1166
|
type BehaviorPolicyContextCategoryKey = "rules";
|
|
@@ -1119,8 +1176,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1119
1176
|
categories: ContextCategorySize[];
|
|
1120
1177
|
}
|
|
1121
1178
|
|
|
1122
|
-
type EffortLevelName$1 = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
1123
|
-
|
|
1124
1179
|
interface CompactionGradeView {
|
|
1125
1180
|
grade: EffortLevelName$1;
|
|
1126
1181
|
model: string | null;
|
|
@@ -1202,6 +1257,27 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1202
1257
|
readonly sha: string;
|
|
1203
1258
|
readonly branch: string;
|
|
1204
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
|
+
}
|
|
1205
1281
|
|
|
1206
1282
|
type PreGateHold = {
|
|
1207
1283
|
kind: "awaiting_person";
|
|
@@ -1235,8 +1311,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1235
1311
|
card_id: CardRef | null;
|
|
1236
1312
|
}
|
|
1237
1313
|
|
|
1238
|
-
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
1239
|
-
|
|
1240
1314
|
type MoveKind = "create" | "archive" | "snooze" | "delete" | "retype" | "edit" | "other";
|
|
1241
1315
|
|
|
1242
1316
|
type SignoffScope = {
|
|
@@ -1246,8 +1320,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1246
1320
|
board: string | null;
|
|
1247
1321
|
card_type: string | null;
|
|
1248
1322
|
card: string | null;
|
|
1249
|
-
agent_profile:
|
|
1250
|
-
runtime:
|
|
1323
|
+
agent_profile: null;
|
|
1324
|
+
runtime: null;
|
|
1251
1325
|
};
|
|
1252
1326
|
interface SignedRule {
|
|
1253
1327
|
ref: string;
|
|
@@ -1434,6 +1508,24 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1434
1508
|
readonly ahead: readonly LandingAheadRegistration[];
|
|
1435
1509
|
}
|
|
1436
1510
|
|
|
1511
|
+
type CardLandingStatus = "pending" | "testing" | "fixing";
|
|
1512
|
+
type CardLandingFix = "none" | "working" | "submitted" | "rejected";
|
|
1513
|
+
interface CardLandingBatch {
|
|
1514
|
+
readonly opened_at: string;
|
|
1515
|
+
readonly red_at: string | null;
|
|
1516
|
+
readonly failures: number;
|
|
1517
|
+
readonly fix: CardLandingFix;
|
|
1518
|
+
}
|
|
1519
|
+
interface CardLanding {
|
|
1520
|
+
readonly status: CardLandingStatus;
|
|
1521
|
+
readonly waiting: boolean;
|
|
1522
|
+
readonly target_branch: string;
|
|
1523
|
+
readonly sha: string;
|
|
1524
|
+
readonly registered_at: string;
|
|
1525
|
+
readonly batched_at: string | null;
|
|
1526
|
+
readonly batch: CardLandingBatch | null;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1437
1529
|
interface CompactionSavings {
|
|
1438
1530
|
loads: number;
|
|
1439
1531
|
dispatches: number;
|
|
@@ -1617,6 +1709,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1617
1709
|
title: string;
|
|
1618
1710
|
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1619
1711
|
priority: number;
|
|
1712
|
+
stored_row?: undefined | IssueDisplayV2;
|
|
1620
1713
|
agent_notes?: undefined | (Array<{
|
|
1621
1714
|
id: string;
|
|
1622
1715
|
author: string;
|
|
@@ -1682,7 +1775,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1682
1775
|
content_hash: string;
|
|
1683
1776
|
retro?: undefined | RetroViewV2;
|
|
1684
1777
|
behavior_policies?: undefined | CardBehaviorPoliciesView;
|
|
1685
|
-
stored_row?: undefined | IssueDisplayV2;
|
|
1686
1778
|
stored_checklists?: undefined | Array<ChecklistWithItemsV2>;
|
|
1687
1779
|
stored_attachments?: undefined | Array<IssueAttachmentV2>;
|
|
1688
1780
|
retro_commit_shas?: undefined | Array<string>;
|
|
@@ -1740,6 +1832,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1740
1832
|
triage_enabled?: undefined | false | true;
|
|
1741
1833
|
dispatch?: undefined | null | { started_at: string | null; };
|
|
1742
1834
|
dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
|
|
1835
|
+
landing?: undefined | null | CardLanding;
|
|
1743
1836
|
assignment_mode?: undefined | "manual" | "automated";
|
|
1744
1837
|
assigned_agent_kind?: undefined | null | "person" | "session" | "worker" | "label";
|
|
1745
1838
|
assigned_agent_pause?: undefined | null | HolderAgentPause;
|
|
@@ -1753,6 +1846,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1753
1846
|
waiting_on_dep_ids?: undefined | Record<string, number>;
|
|
1754
1847
|
dependency_pull_requests?: undefined | Record<string, DependencyPullRequestViewV2>;
|
|
1755
1848
|
dependency_landings?: undefined | Record<string, DependencyLanding>;
|
|
1849
|
+
dependency_code_complete?: undefined | Record<string, CodeCompleteRelease>;
|
|
1756
1850
|
conflict_on?: undefined | Array<ConflictEntryViewV2>;
|
|
1757
1851
|
conflict_on_reverse?: undefined | Array<ConflictEntryViewV2>;
|
|
1758
1852
|
conflict_on_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
@@ -1761,6 +1855,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1761
1855
|
depends_on_landing_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
1762
1856
|
depends_on_landing_dep_ids?: undefined | Record<string, number>;
|
|
1763
1857
|
conflict_on_active_count?: undefined | number;
|
|
1858
|
+
code_complete?: undefined | null | CodeCompleteState;
|
|
1764
1859
|
children?: undefined | Array<string>;
|
|
1765
1860
|
descendant_ids?: undefined | Array<string>;
|
|
1766
1861
|
descendant_needs_you?: undefined | Array<DescendantNeedsYouView>;
|
|
@@ -1768,7 +1863,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1768
1863
|
child_assignments?: undefined | Array<ChildAssignmentViewV2>;
|
|
1769
1864
|
ac_total?: undefined | number;
|
|
1770
1865
|
ac_done?: undefined | number;
|
|
1771
|
-
ac_items?: undefined | (Array<{ title: string; status: "
|
|
1866
|
+
ac_items?: undefined | (Array<{ title: string; status: "cancelled" | "incomplete" | "failing" | "passing" | "deferred"; }>);
|
|
1772
1867
|
comments_count?: undefined | number;
|
|
1773
1868
|
unread_comments_count?: undefined | number;
|
|
1774
1869
|
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
@@ -1801,6 +1896,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1801
1896
|
landing_ahead?: undefined | LandingAheadView;
|
|
1802
1897
|
copy_issue?: undefined | V2CopyIssue;
|
|
1803
1898
|
decision_records?: undefined | (Array<{
|
|
1899
|
+
provenance: null | ProvenanceRecordV2;
|
|
1804
1900
|
text: string;
|
|
1805
1901
|
made_by: "human" | "agent";
|
|
1806
1902
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -1825,10 +1921,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1825
1921
|
made_by_name: null | string;
|
|
1826
1922
|
made_by_author: AuthorV2;
|
|
1827
1923
|
made_by_is_writer: boolean;
|
|
1828
|
-
provenance: null | ProvenanceRecordV2;
|
|
1829
1924
|
comment_count: number;
|
|
1830
1925
|
unread_comment_count: number;
|
|
1831
1926
|
versions?: undefined | (Array<{
|
|
1927
|
+
provenance: null | ProvenanceRecordV2;
|
|
1832
1928
|
text: string;
|
|
1833
1929
|
made_by: "human" | "agent";
|
|
1834
1930
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -1847,7 +1943,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1847
1943
|
made_by_name: null | string;
|
|
1848
1944
|
made_by_author: AuthorV2;
|
|
1849
1945
|
made_by_is_writer: boolean;
|
|
1850
|
-
provenance: null | ProvenanceRecordV2;
|
|
1851
1946
|
version_no: number;
|
|
1852
1947
|
}>);
|
|
1853
1948
|
approvals?: undefined | (Array<{
|
|
@@ -1861,9 +1956,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1861
1956
|
}>);
|
|
1862
1957
|
}>);
|
|
1863
1958
|
evidence_records?: undefined | (Array<{
|
|
1864
|
-
hypothesis: EvidenceHypothesisVersionView;
|
|
1959
|
+
hypothesis: null | EvidenceHypothesisVersionView;
|
|
1865
1960
|
verdict: null | EvidenceVerdictVersionView;
|
|
1866
1961
|
archived: null | EvidenceArchivedView;
|
|
1962
|
+
question: string;
|
|
1867
1963
|
rev: number;
|
|
1868
1964
|
created_at: string;
|
|
1869
1965
|
updated_at: string;
|
|
@@ -1882,7 +1978,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1882
1978
|
by: AuthorV2;
|
|
1883
1979
|
via_key: null | ViaKey;
|
|
1884
1980
|
round_no: number;
|
|
1885
|
-
hypothesis_version: number;
|
|
1981
|
+
hypothesis_version: null | number;
|
|
1886
1982
|
environment: string;
|
|
1887
1983
|
commit_sha: string;
|
|
1888
1984
|
blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log"> | EvidenceBlockViewBase<"samples">>;
|
|
@@ -1921,7 +2017,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1921
2017
|
confidence_reason: null | string;
|
|
1922
2018
|
unverified: Array<string>;
|
|
1923
2019
|
method: null | string;
|
|
1924
|
-
reproduced_failure: boolean;
|
|
1925
2020
|
implications: EvidenceImplications;
|
|
1926
2021
|
author: string;
|
|
1927
2022
|
by: AuthorV2;
|
|
@@ -1938,6 +2033,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1938
2033
|
}>);
|
|
1939
2034
|
}>);
|
|
1940
2035
|
decision_record_versions?: undefined | (Array<{
|
|
2036
|
+
provenance: null | ProvenanceRecordV2;
|
|
1941
2037
|
text: string;
|
|
1942
2038
|
made_by: "human" | "agent";
|
|
1943
2039
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -1956,7 +2052,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1956
2052
|
made_by_name: null | string;
|
|
1957
2053
|
made_by_author: AuthorV2;
|
|
1958
2054
|
made_by_is_writer: boolean;
|
|
1959
|
-
provenance: null | ProvenanceRecordV2;
|
|
1960
2055
|
version_no: number;
|
|
1961
2056
|
}>);
|
|
1962
2057
|
decision_record_approvals?: undefined | (Array<{
|
|
@@ -2045,13 +2140,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2045
2140
|
key: string;
|
|
2046
2141
|
scope: "board" | "team" | "plan" | "card";
|
|
2047
2142
|
scope_id: string;
|
|
2048
|
-
value: null | string | false | true;
|
|
2143
|
+
value: null | string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2049
2144
|
source: "board" | "team" | "plan" | "card" | "system" | "inherit";
|
|
2050
2145
|
base_hash: string;
|
|
2051
|
-
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months";
|
|
2146
|
+
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months" | "rule_list";
|
|
2052
2147
|
options: null | Array<string>;
|
|
2053
2148
|
description: string;
|
|
2054
|
-
system_default: string | false | true;
|
|
2149
|
+
system_default: string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2055
2150
|
fallback: null | ControlFallback;
|
|
2056
2151
|
overridable: boolean;
|
|
2057
2152
|
default_changed: boolean;
|
|
@@ -2084,7 +2179,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2084
2179
|
awaits_round_decision: boolean;
|
|
2085
2180
|
};
|
|
2086
2181
|
type ProblemViewV2 = {
|
|
2087
|
-
type: "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
2182
|
+
type: "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules" | "checklist_review";
|
|
2088
2183
|
open: boolean;
|
|
2089
2184
|
ordinal: number;
|
|
2090
2185
|
decisions: Array<{
|
|
@@ -2110,7 +2205,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2110
2205
|
comment_count: number;
|
|
2111
2206
|
unread_comment_count: number;
|
|
2112
2207
|
issue_id: string;
|
|
2113
|
-
shown_type: "design" | "question" | "action" | "decision_review" | "behavior_rules" | "hypothesis_review" | "verdict_review";
|
|
2208
|
+
shown_type: "design" | "question" | "action" | "decision_review" | "behavior_rules" | "checklist_review" | "hypothesis_review" | "verdict_review";
|
|
2114
2209
|
feedback_consent: boolean;
|
|
2115
2210
|
choice_locked: boolean;
|
|
2116
2211
|
docs_land: boolean;
|
|
@@ -2127,6 +2222,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2127
2222
|
answered_version_no: null | number;
|
|
2128
2223
|
choices: Array<{ solution_id: number; kind: ReviewChoiceKind; version_no: number; title: string; }>;
|
|
2129
2224
|
versions?: undefined | (Array<{
|
|
2225
|
+
provenance: null | ProvenanceRecordV2;
|
|
2130
2226
|
text: string;
|
|
2131
2227
|
made_by: "human" | "agent";
|
|
2132
2228
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
@@ -2145,7 +2241,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2145
2241
|
made_by_name: null | string;
|
|
2146
2242
|
made_by_author: AuthorV2;
|
|
2147
2243
|
made_by_is_writer: boolean;
|
|
2148
|
-
provenance: null | ProvenanceRecordV2;
|
|
2149
2244
|
version_no: number;
|
|
2150
2245
|
}>);
|
|
2151
2246
|
}>);
|
|
@@ -2157,7 +2252,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2157
2252
|
answered_version_no: null | number;
|
|
2158
2253
|
choices: Array<{ solution_id: number; kind: ReviewChoiceKind; version_no: number; title: string; }>;
|
|
2159
2254
|
part: "hypothesis" | "verdict";
|
|
2160
|
-
asked_because: null | "threshold" | "rejected_before" | "refreshed";
|
|
2255
|
+
asked_because: null | "threshold" | "rules" | "rejected_before" | "refreshed" | "reopened";
|
|
2161
2256
|
hypothesis_versions?: undefined | (Array<{
|
|
2162
2257
|
id: number;
|
|
2163
2258
|
version_no: number;
|
|
@@ -2192,7 +2287,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2192
2287
|
confidence_reason: null | string;
|
|
2193
2288
|
unverified: Array<string>;
|
|
2194
2289
|
method: null | string;
|
|
2195
|
-
reproduced_failure: boolean;
|
|
2196
2290
|
implications: EvidenceImplications;
|
|
2197
2291
|
author: string;
|
|
2198
2292
|
by: AuthorV2;
|
|
@@ -2209,6 +2303,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2209
2303
|
}>);
|
|
2210
2304
|
}>);
|
|
2211
2305
|
behavior_rules?: undefined | null | BehaviorRulesProblemView;
|
|
2306
|
+
checklist_review?: undefined | null | ChecklistReviewProblemView;
|
|
2212
2307
|
};
|
|
2213
2308
|
type SolutionViewV2 = {
|
|
2214
2309
|
steps: Array<{
|
|
@@ -2313,8 +2408,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2313
2408
|
|
|
2314
2409
|
type IssueStatus = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
2315
2410
|
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
2316
|
-
type IssueProblemType = "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
2317
|
-
type ShownProblemType = "design" | "question" | "action" | "decision_review" | "behavior_rules" | "hypothesis_review" | "verdict_review";
|
|
2411
|
+
type IssueProblemType = "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules" | "checklist_review";
|
|
2412
|
+
type ShownProblemType = "design" | "question" | "action" | "decision_review" | "behavior_rules" | "checklist_review" | "hypothesis_review" | "verdict_review";
|
|
2318
2413
|
type DecisionOutcome = "rejected" | "answered";
|
|
2319
2414
|
type GatingDependencyKind = "conflict_on" | "depends_on";
|
|
2320
2415
|
type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
|
|
@@ -2479,7 +2574,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2479
2574
|
recipient: ReplyRecipientV2;
|
|
2480
2575
|
reply_comment_id: number | null;
|
|
2481
2576
|
}
|
|
2482
|
-
type ChecklistItemStatus = "
|
|
2577
|
+
type ChecklistItemStatus = "cancelled" | "incomplete" | "failing" | "passing" | "deferred";
|
|
2483
2578
|
interface ChecklistV2 {
|
|
2484
2579
|
id: number;
|
|
2485
2580
|
issue_id: CardId;
|
|
@@ -2561,6 +2656,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2561
2656
|
id: number;
|
|
2562
2657
|
reasoning: string | null;
|
|
2563
2658
|
confidence: number | null;
|
|
2659
|
+
impact: number | null;
|
|
2564
2660
|
sources: ProvenanceSourceV2[];
|
|
2565
2661
|
recorded_by: AuthorV2;
|
|
2566
2662
|
recorded_at: string;
|
|
@@ -2914,6 +3010,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2914
3010
|
commentsCount: number;
|
|
2915
3011
|
unreadCommentsCount: number;
|
|
2916
3012
|
hasRetro: boolean;
|
|
3013
|
+
landing: NonNullable<IssueViewV2["landing"]> | null;
|
|
2917
3014
|
onPullRequest: boolean;
|
|
2918
3015
|
childrenCount: number;
|
|
2919
3016
|
childrenDetail?: NonNullable<IssueViewV2["children_detail"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.80",
|
|
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",
|