@danxbot/plugin-sdk 0.2.27 → 0.2.28

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.
Files changed (2) hide show
  1. package/dist/card-kit.d.ts +32 -7
  2. package/package.json +2 -2
@@ -113,10 +113,25 @@ declare module "@danxbot/card-kit@1" {
113
113
  reason: StatusReason | null;
114
114
  team_agent_id: number | null;
115
115
  }
116
- interface CommentRespondingV2 {
116
+ type CommentReplyStateName = "sent" | "seen" | "responded";
117
+ type CommentRecipientV2 = {
118
+ kind: "agent";
117
119
  by: AuthorV2;
118
- started_at: string;
119
- expires_at: string;
120
+ } | {
121
+ kind: "none";
122
+ waiting_on: {
123
+ kind: "plan";
124
+ id: number;
125
+ name: string;
126
+ } | {
127
+ kind: "card";
128
+ id: string;
129
+ };
130
+ };
131
+ interface CommentReplyStateV2 {
132
+ state: CommentReplyStateName;
133
+ recipient: CommentRecipientV2;
134
+ reply_comment_id: number | null;
120
135
  }
121
136
  type ChecklistItemStatus$1 = "incomplete" | "failing" | "passing" | "cancelled" | "deferred";
122
137
  interface ChecklistV2 {
@@ -171,7 +186,7 @@ declare module "@danxbot/card-kit@1" {
171
186
  type SourceOrigin = "danxbot" | MirrorProviderId | "";
172
187
  type ControlValue = boolean | string;
173
188
 
174
- type ControlSource = "card" | "plan" | "board" | "parent" | "system";
189
+ type ControlSource = "card" | "plan" | "board" | "system";
175
190
  interface ControlFallback {
176
191
  readonly value: ControlValue;
177
192
  readonly source: Exclude<ControlSource, "card">;
@@ -267,6 +282,10 @@ declare module "@danxbot/card-kit@1" {
267
282
  };
268
283
  } | {
269
284
  kind: "repo_designs_off";
285
+ } | {
286
+ kind: "decided_by_person";
287
+ gate: string;
288
+ decided_by: string;
270
289
  };
271
290
 
272
291
  interface CodeGateStatus {
@@ -337,6 +356,7 @@ declare module "@danxbot/card-kit@1" {
337
356
  picker_routing: PickerRouting;
338
357
  dispatch_key_blockers: DispatchKeyBlocker[];
339
358
  worker_readiness_blockers: ReadinessBlocker[];
359
+ agent_wait: StatusReason | null;
340
360
  }
341
361
 
342
362
  interface SolutionContent {
@@ -414,6 +434,7 @@ declare module "@danxbot/card-kit@1" {
414
434
  completed_at: string | null;
415
435
  attempts: number;
416
436
  reviewed_ref: string | null;
437
+ decided_by: string | null;
417
438
  }
418
439
  interface V2CopySolution extends SolutionContent {
419
440
  removed: boolean;
@@ -603,7 +624,9 @@ declare module "@danxbot/card-kit@1" {
603
624
  metadata?: unknown;
604
625
  answers_decision_id?: undefined | null | number;
605
626
  tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; }>;
606
- responding: null | CommentRespondingV2;
627
+ reply_to_comment_id: null | number;
628
+ reply_phase: null | "ack" | "reply";
629
+ reply_state: null | CommentReplyStateV2;
607
630
  }>);
608
631
  checklists?: undefined | Array<ChecklistView>;
609
632
  attachments?: undefined | (Array<{
@@ -833,7 +856,7 @@ declare module "@danxbot/card-kit@1" {
833
856
  scope: "board" | "plan" | "card";
834
857
  scope_id: string;
835
858
  value: null | string | false | true;
836
- source: "board" | "plan" | "card" | "parent" | "system" | "inherit";
859
+ source: "board" | "plan" | "card" | "system" | "inherit";
837
860
  base_hash: string;
838
861
  kind: "boolean" | "enum" | "branch" | "markdown";
839
862
  options: null | Array<string>;
@@ -861,6 +884,7 @@ declare module "@danxbot/card-kit@1" {
861
884
  completed_at: null | string;
862
885
  message: string;
863
886
  reviewed_ref: null | string;
887
+ decided_by: null | string;
864
888
  effort_level: null | "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
865
889
  phase: "plan" | "code";
866
890
  };
@@ -1234,8 +1258,9 @@ declare module "@danxbot/card-kit@1" {
1234
1258
  size?: "sm" | "2xs";
1235
1259
  onOpenHold?: () => void;
1236
1260
  onOpenDependencies?: () => void;
1261
+ assignee?: boolean;
1237
1262
  }
1238
- function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies }: WorkStateControlProps): react.JSX.Element | null;
1263
+ function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee }: WorkStateControlProps): react.JSX.Element | null;
1239
1264
 
1240
1265
  interface ControlProps {
1241
1266
  card: IssueViewV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/plugin-sdk",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "SDK for building 50 Arms card-type plugins (DX-5170): the card kit's type declarations, 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",
@@ -46,7 +46,7 @@
46
46
  "test": "vitest run"
47
47
  },
48
48
  "devDependencies": {
49
- "@danxbot/ui": "27.44.1",
49
+ "@danxbot/ui": "27.46.0",
50
50
  "@types/node": "^22.0.0",
51
51
  "@types/react": "^19.2.2",
52
52
  "esbuild": "^0.25.0",