@50arms/plugin-sdk 0.2.58 → 0.2.59

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.
@@ -28,20 +28,20 @@ declare module "@danxbot/card-kit@1" {
28
28
  }
29
29
 
30
30
  type CardTypeKey = string;
31
- type MirrorProviderId = "trello" | "slack" | "asana";
31
+ type MirrorProviderId = "trello" | "slack" | "asana" | "linear";
32
32
  type SourceOrigin = "danxbot" | MirrorProviderId | "";
33
- interface RepoProfileCopy {
34
- shipped: string;
35
- repo: string;
36
- }
37
- type ProfileNameId = string;
38
- type ProfileName = StatusReason | ProfileNameMessage;
39
33
 
40
34
  type ListType$1 = "and" | "or" | "semicolon";
41
35
  interface ListValue<Item> {
42
36
  list: readonly Item[];
43
37
  type?: ListType$1;
44
38
  }
39
+ interface RepoProfileCopy {
40
+ shipped: string;
41
+ repo: string;
42
+ }
43
+ type ProfileNameId = string;
44
+ type ProfileName = StatusReason | ProfileNameMessage;
45
45
  type StatusReasonId = string;
46
46
  type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReasonSentences | StatusReasonLines | StatusReasonList>;
47
47
  interface ProfileNameMessage {
@@ -59,16 +59,56 @@ declare module "@danxbot/card-kit@1" {
59
59
  id: StatusReasonId;
60
60
  values: StatusReasonValues;
61
61
  }
62
- type PacingLimit = "five_hour" | "weekly" | "spend";
62
+ type DecisionRecordKind = "business_rule" | "architecture" | "design" | "other";
63
+ type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
64
+ type DecisionMadeBy = "human" | "agent";
65
+ type DecisionApprovalAction = "approve" | "unapprove";
63
66
  type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
64
- type ProvenancePartyKind = "person" | "agent";
65
- type ResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
67
+ type ProvenancePartyKind = "agent" | "person";
68
+
69
+ interface DecisionApprovalState {
70
+ approved: boolean;
71
+ by_user_id: number | null;
72
+ by_name: string | null;
73
+ at: string | null;
74
+ }
75
+ interface DecisionContentView {
76
+ action: DecisionRecordAction;
77
+ title: string;
78
+ text: string;
79
+ kind: DecisionRecordKind;
80
+ impact: number;
81
+ confidence: number;
82
+ made_by: DecisionMadeBy;
83
+ made_by_user_id: number | null;
84
+ made_by_name: string | null;
85
+ made_by_author: AuthorV2;
86
+ made_by_is_writer: boolean;
87
+ provenance: ProvenanceRecordV2[];
88
+ author: string;
89
+ by: AuthorV2;
90
+ via_key: ViaKey | null;
91
+ created_at: string;
92
+ }
93
+ interface DecisionVersionView extends DecisionContentView {
94
+ id: number;
95
+ record_id: number;
96
+ ref: string;
97
+ version_no: number;
98
+ approval: DecisionApprovalState;
99
+ }
100
+ interface DecisionRecordPage {
101
+ offset: number;
102
+ target_found: boolean | null;
103
+ }
104
+ type PacingLimit = "five_hour" | "weekly" | "spend";
105
+ type ResourceType = "plan" | "design" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
66
106
  interface ResourceRef {
67
107
  type: ResourceType;
68
108
  id: string;
69
109
  }
70
110
  type RiskScore = "R0" | "R1" | "R2" | "R3" | "R4";
71
- type WorkMarkResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
111
+ type WorkMarkResourceType = "plan" | "design" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
72
112
  interface WorkMarkResource extends ResourceRef {
73
113
  type: WorkMarkResourceType;
74
114
  }
@@ -130,21 +170,6 @@ declare module "@danxbot/card-kit@1" {
130
170
  compare_url: string | null;
131
171
  updated_at: string;
132
172
  }
133
- type DecisionRecordKind = "design" | "business_rule" | "architecture" | "other";
134
- type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
135
- type DecisionMadeBy = "agent" | "human";
136
- type DecisionApprovalAction = "approve" | "unapprove";
137
-
138
- interface DecisionApprovalState {
139
- approved: boolean;
140
- by_user_id: number | null;
141
- by_name: string | null;
142
- at: string | null;
143
- }
144
- interface DecisionRecordPage {
145
- offset: number;
146
- target_found: boolean | null;
147
- }
148
173
  type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
149
174
 
150
175
  type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
@@ -275,6 +300,7 @@ declare module "@danxbot/card-kit@1" {
275
300
  }
276
301
  interface V2CopyDecisionVersion {
277
302
  version_no: number;
303
+ quality_gate_round: V2CopyRoundRef | null;
278
304
  action: DecisionRecordAction;
279
305
  title: string;
280
306
  text: string;
@@ -301,8 +327,13 @@ declare module "@danxbot/card-kit@1" {
301
327
  }
302
328
  interface V2CopyChecklist {
303
329
  name: string;
330
+ quality_gate_round: V2CopyRoundRef | null;
304
331
  items: V2CopyChecklistItem[];
305
332
  }
333
+ interface V2CopyRoundRef {
334
+ gate: string;
335
+ number: number;
336
+ }
306
337
  interface V2CopyChecklistItem {
307
338
  label: string;
308
339
  detail: string;
@@ -353,7 +384,7 @@ declare module "@danxbot/card-kit@1" {
353
384
  decided_by: string | null;
354
385
  owed: boolean;
355
386
  }
356
- type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key">;
387
+ type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key" | "decision_versions">;
357
388
  interface V2CopySolution extends SolutionContent {
358
389
  removed: boolean;
359
390
  design_index: number | null;
@@ -466,7 +497,7 @@ declare module "@danxbot/card-kit@1" {
466
497
  interface HolderAgentPause {
467
498
  reason: string;
468
499
  since: string;
469
- until: string;
500
+ until: string | null;
470
501
  }
471
502
 
472
503
  interface AgentIdentity {
@@ -545,6 +576,14 @@ declare module "@danxbot/card-kit@1" {
545
576
  content: string;
546
577
  }
547
578
 
579
+ type NotificationText = {
580
+ kind: "reason";
581
+ reason: StatusReason;
582
+ } | {
583
+ kind: "external";
584
+ text: string;
585
+ };
586
+
548
587
  type PreGateHold = {
549
588
  kind: "awaiting_person";
550
589
  } | {
@@ -760,6 +799,7 @@ declare module "@danxbot/card-kit@1" {
760
799
  interface ChecklistView {
761
800
  id: number;
762
801
  name: string;
802
+ quality_gate_round_id: number | null;
763
803
  items: ChecklistItemView[];
764
804
  }
765
805
  type DesignDecisionOutcome = "approved" | "changes_requested" | "rejected";
@@ -796,7 +836,7 @@ declare module "@danxbot/card-kit@1" {
796
836
  reduced_text?: undefined | null | string;
797
837
  parent_removed?: undefined | true;
798
838
  updated_at: string;
799
- origin: "" | "trello" | "slack" | "asana" | "danxbot";
839
+ origin: "" | "trello" | "slack" | "asana" | "linear" | "danxbot";
800
840
  via_key?: undefined | null | ViaKey;
801
841
  metadata?: unknown;
802
842
  answers_decision_id?: undefined | null | number;
@@ -810,7 +850,7 @@ declare module "@danxbot/card-kit@1" {
810
850
  checklists?: undefined | Array<ChecklistView>;
811
851
  attachments?: undefined | (Array<{
812
852
  id: number;
813
- source: "" | "trello" | "slack" | "asana" | "danxbot";
853
+ source: "" | "trello" | "slack" | "asana" | "linear" | "danxbot";
814
854
  url: string;
815
855
  filename: string;
816
856
  mime: string;
@@ -820,10 +860,10 @@ declare module "@danxbot/card-kit@1" {
820
860
  thumbnail_error: null | string;
821
861
  created_at: string;
822
862
  }>);
823
- title: string;
824
863
  description?: undefined | string;
825
- status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
826
864
  type: string;
865
+ title: string;
866
+ status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
827
867
  priority: number;
828
868
  agent_notes?: undefined | (Array<{
829
869
  id: string;
@@ -963,6 +1003,7 @@ declare module "@danxbot/card-kit@1" {
963
1003
  unread_comments_count?: undefined | number;
964
1004
  unread_decision_comment_counts?: undefined | Record<string, number>;
965
1005
  context_size?: undefined | ContextSize;
1006
+ content_compaction?: undefined | null | { requested_at: string; } & { status: "waiting" | "working"; ended_at: null; failure_reason: null; } | { requested_at: string; } & { status: "done"; ended_at: string; failure_reason: null; } | { requested_at: string; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
966
1007
  agent_notes_count?: undefined | number;
967
1008
  comment_recipient?: undefined | { kind: "agent"; by: AuthorV2; reachability: CommentReachabilityV2; } | { kind: "none"; waiting_on: { kind: "plan"; id: PlanRefNum; ref: string; name: string; } | { kind: "card"; id: string; }; };
968
1009
  comment_tags?: undefined | Array<CommentTagOption>;
@@ -986,13 +1027,13 @@ declare module "@danxbot/card-kit@1" {
986
1027
  copy_payload?: undefined | V2CopyPayload;
987
1028
  copy_issue?: undefined | V2CopyIssue;
988
1029
  decision_records?: undefined | (Array<{
989
- title: string;
990
- kind: "design" | "business_rule" | "architecture" | "other";
991
- action: "created" | "changed" | "deleted" | "restored";
992
- made_by: "agent" | "human";
1030
+ made_by: "human" | "agent";
1031
+ kind: "business_rule" | "architecture" | "design" | "other";
993
1032
  approved: boolean;
994
1033
  impact: number;
995
1034
  confidence: number;
1035
+ title: string;
1036
+ action: "created" | "changed" | "deleted" | "restored";
996
1037
  rev: number;
997
1038
  created_at: string;
998
1039
  updated_at: string;
@@ -1014,12 +1055,12 @@ declare module "@danxbot/card-kit@1" {
1014
1055
  comment_count: number;
1015
1056
  unread_comment_count: number;
1016
1057
  versions?: undefined | (Array<{
1017
- title: string;
1018
- kind: "design" | "business_rule" | "architecture" | "other";
1019
- action: "created" | "changed" | "deleted" | "restored";
1020
- made_by: "agent" | "human";
1058
+ made_by: "human" | "agent";
1059
+ kind: "business_rule" | "architecture" | "design" | "other";
1021
1060
  impact: number;
1022
1061
  confidence: number;
1062
+ title: string;
1063
+ action: "created" | "changed" | "deleted" | "restored";
1023
1064
  id: number;
1024
1065
  created_at: string;
1025
1066
  author: string;
@@ -1046,12 +1087,12 @@ declare module "@danxbot/card-kit@1" {
1046
1087
  }>);
1047
1088
  }>);
1048
1089
  decision_record_versions?: undefined | (Array<{
1049
- title: string;
1050
- kind: "design" | "business_rule" | "architecture" | "other";
1051
- action: "created" | "changed" | "deleted" | "restored";
1052
- made_by: "agent" | "human";
1090
+ made_by: "human" | "agent";
1091
+ kind: "business_rule" | "architecture" | "design" | "other";
1053
1092
  impact: number;
1054
1093
  confidence: number;
1094
+ title: string;
1095
+ action: "created" | "changed" | "deleted" | "restored";
1055
1096
  id: number;
1056
1097
  created_at: string;
1057
1098
  author: string;
@@ -1085,6 +1126,14 @@ declare module "@danxbot/card-kit@1" {
1085
1126
  started_at: string;
1086
1127
  expires_at: string;
1087
1128
  }>;
1129
+ gate_follow_ups?: undefined | (Array<{
1130
+ id: number;
1131
+ label: string;
1132
+ gate: string;
1133
+ round: number;
1134
+ stacked_to: null | string;
1135
+ stacked_at: null | string;
1136
+ }>);
1088
1137
  pull_request_reviews?: undefined | (Array<{
1089
1138
  id: number;
1090
1139
  kind: "comment" | "review" | "thread";
@@ -1098,16 +1147,9 @@ declare module "@danxbot/card-kit@1" {
1098
1147
  occurred_at: string;
1099
1148
  }>);
1100
1149
  changed_fields?: undefined | Array<string>;
1101
- code_review_items?: undefined | Array<{
1102
- gate_name: string;
1103
- title: string;
1104
- description: string;
1105
- status: string;
1106
- reasoning: string;
1107
- }>;
1108
1150
  children_detail?: undefined | (Array<{
1109
- status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
1110
1151
  type: string;
1152
+ status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
1111
1153
  priority: number;
1112
1154
  name: string;
1113
1155
  id: string;
@@ -1126,18 +1168,17 @@ declare module "@danxbot/card-kit@1" {
1126
1168
  name: string;
1127
1169
  }>;
1128
1170
  mirrors?: undefined | (Array<{
1129
- target_type: "trello" | "slack" | "asana";
1171
+ target_type: "trello" | "slack" | "asana" | "linear";
1130
1172
  target_url: string;
1131
1173
  sync_state: "synced" | "out_of_sync" | "error" | "dead" | "unavailable" | "diverged";
1132
1174
  dead_reason: "" | "deleted" | "archived";
1133
1175
  source_ref: string;
1134
1176
  last_error: null | StatusReason;
1135
- owed: Array<"comments" | "checklists" | "attachments" | "title" | "description" | "status" | "type" | "priority" | "parent_child" | "dependencies" | "card_create" | "card_delete">;
1177
+ owed: Array<"comments" | "checklists" | "attachments" | "description" | "type" | "title" | "status" | "priority" | "parent_child" | "dependencies" | "card_create" | "card_delete">;
1136
1178
  description_unreadable: boolean;
1137
1179
  target_ref: string;
1138
1180
  target_label: string;
1139
1181
  last_synced_at: number;
1140
- logo_url: string;
1141
1182
  }>);
1142
1183
  history?: undefined | (Array<{
1143
1184
  id: string;
@@ -1240,12 +1281,12 @@ declare module "@danxbot/card-kit@1" {
1240
1281
  answered_version_no: null | number;
1241
1282
  choices: Array<{ solution_id: number; kind: DecisionReviewChoiceKind; version_no: number; title: string; }>;
1242
1283
  versions?: undefined | (Array<{
1243
- title: string;
1244
- kind: "design" | "business_rule" | "architecture" | "other";
1245
- action: "created" | "changed" | "deleted" | "restored";
1246
- made_by: "agent" | "human";
1284
+ made_by: "human" | "agent";
1285
+ kind: "business_rule" | "architecture" | "design" | "other";
1247
1286
  impact: number;
1248
1287
  confidence: number;
1288
+ title: string;
1289
+ action: "created" | "changed" | "deleted" | "restored";
1249
1290
  id: number;
1250
1291
  created_at: string;
1251
1292
  author: string;
@@ -1515,6 +1556,7 @@ declare module "@danxbot/card-kit@1" {
1515
1556
  issue_id: CardId;
1516
1557
  ordinal: number;
1517
1558
  name: string;
1559
+ quality_gate_round_id: number | null;
1518
1560
  created_at: string;
1519
1561
  updated_at: string;
1520
1562
  deleted_at: string | null;
@@ -1571,6 +1613,7 @@ declare module "@danxbot/card-kit@1" {
1571
1613
  verdict: GateRoundVerdict;
1572
1614
  summary: string;
1573
1615
  recorded_at: string;
1616
+ decision_versions: DecisionVersionView[];
1574
1617
  }
1575
1618
  interface ProvenanceRecordV2 {
1576
1619
  id: number;
@@ -1723,7 +1766,7 @@ declare module "@danxbot/card-kit@1" {
1723
1766
  function planCardPath(planId: number, cardId: string, planSearch?: string): string;
1724
1767
  function planPathFromCard(planId: number, cardSearch?: string): string;
1725
1768
 
1726
- function CardLink({ id, className, onNavigate }: {
1769
+ function CardLink({ id, className, onNavigate, }: {
1727
1770
  id: string;
1728
1771
  className?: string;
1729
1772
  onNavigate?: () => void;
@@ -1741,7 +1784,7 @@ declare module "@danxbot/card-kit@1" {
1741
1784
  card: IssueViewV2;
1742
1785
  }): react.JSX.Element;
1743
1786
 
1744
- function ChecklistsSection({ card, mutation }: {
1787
+ function ChecklistsSection({ card, mutation, }: {
1745
1788
  card: IssueViewV2;
1746
1789
  mutation: CardMutation;
1747
1790
  }): react.JSX.Element;
@@ -1766,7 +1809,7 @@ declare module "@danxbot/card-kit@1" {
1766
1809
  cardId: IssueViewV2["id"];
1767
1810
  } & Omit<ProblemsSectionProps, "card">): react.JSX.Element;
1768
1811
 
1769
- function DependenciesSection({ card, mutation }: {
1812
+ function DependenciesSection({ card, mutation, }: {
1770
1813
  card: IssueViewV2;
1771
1814
  mutation: CardMutation;
1772
1815
  }): react.JSX.Element;
@@ -1775,12 +1818,12 @@ declare module "@danxbot/card-kit@1" {
1775
1818
  card: IssueViewV2;
1776
1819
  }): react.JSX.Element;
1777
1820
 
1778
- function ParentField({ card, mutation }: {
1821
+ function ParentField({ card, mutation, }: {
1779
1822
  card: IssueViewV2;
1780
1823
  mutation: CardMutation;
1781
1824
  }): react.JSX.Element;
1782
1825
 
1783
- function PlansField({ card, mutation }: {
1826
+ function PlansField({ card, mutation, }: {
1784
1827
  card: IssueViewV2;
1785
1828
  mutation: CardMutation;
1786
1829
  }): react.JSX.Element;
@@ -1868,7 +1911,7 @@ declare module "@danxbot/card-kit@1" {
1868
1911
  onOpenDependencies?: () => void;
1869
1912
  assignee?: boolean;
1870
1913
  }
1871
- function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee }: WorkStateControlProps): react.JSX.Element | null;
1914
+ function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee, }: WorkStateControlProps): react.JSX.Element | null;
1872
1915
 
1873
1916
  interface ControlProps {
1874
1917
  card: IssueViewV2;
@@ -1955,7 +1998,7 @@ declare module "@danxbot/card-kit@1" {
1955
1998
  cover?: ReactNode;
1956
1999
  inParentBox?: boolean;
1957
2000
  }
1958
- function CardFace({ card, renderTitle, trailing, statusMark, cover }: CardFaceProps): react.JSX.Element;
2001
+ function CardFace({ card, renderTitle, trailing, statusMark, cover, }: CardFaceProps): react.JSX.Element;
1959
2002
 
1960
2003
  function CardBoard({ state, cardPath, }: {
1961
2004
  state: BoardLaneState;