@danxbot/plugin-sdk 0.2.25 → 0.2.27

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 +25 -12
  2. package/package.json +1 -1
@@ -40,7 +40,7 @@ declare module "@danxbot/card-kit@1" {
40
40
  type IssueAuthoredProblemType = "question" | "action";
41
41
  type DecisionOutcome = "answered" | "rejected";
42
42
  type IssueDependencyKind = "depends_on" | "conflict_on";
43
- type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
43
+ type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
44
44
  type IssueAssignmentMode = "automated" | "manual";
45
45
  type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
46
46
  interface IssueV2 {
@@ -184,17 +184,17 @@ declare module "@danxbot/card-kit@1" {
184
184
  reason: StatusReason | ProfileName | null;
185
185
  }
186
186
 
187
- interface AgentIdentity {
188
- id: number;
189
- name: string;
190
- avatar_url: string | null;
191
- }
192
-
193
187
  interface HolderAgentPause {
194
188
  reason: string;
195
189
  since: string;
196
190
  until: string;
197
191
  }
192
+
193
+ interface AgentIdentity {
194
+ id: number;
195
+ name: string;
196
+ avatar_url: string | null;
197
+ }
198
198
  type AssignedAgentKind = "session" | "person" | "worker" | "label";
199
199
 
200
200
  interface UsageTokenCounts {
@@ -257,6 +257,18 @@ declare module "@danxbot/card-kit@1" {
257
257
  content: string;
258
258
  }
259
259
 
260
+ type PreGateHold = {
261
+ kind: "awaiting_person";
262
+ } | {
263
+ kind: "repo_designs_setting_up";
264
+ plan: {
265
+ id: number;
266
+ name: string;
267
+ };
268
+ } | {
269
+ kind: "repo_designs_off";
270
+ };
271
+
260
272
  interface CodeGateStatus {
261
273
  gate: string;
262
274
  status: QualityGateStatus;
@@ -316,6 +328,8 @@ declare module "@danxbot/card-kit@1" {
316
328
  ancestor_blocked: boolean;
317
329
  next_pre_gate: string | null;
318
330
  next_code_gate: string | null;
331
+ pre_gate_hold: PreGateHold | null;
332
+ pre_gate_hold_reason: StatusReason | null;
319
333
  blocking_gates: {
320
334
  gate: string;
321
335
  detail: string;
@@ -657,7 +671,7 @@ declare module "@danxbot/card-kit@1" {
657
671
  ac?: undefined | Array<AcItemViewV2>;
658
672
  triage_enabled?: undefined | false | true;
659
673
  dispatch?: undefined | null | { started_at: string | null; };
660
- dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
674
+ dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
661
675
  assignment_mode?: undefined | "manual" | "automated";
662
676
  assigned_agent_kind?: undefined | null | "session" | "person" | "worker" | "label";
663
677
  assigned_agent_pause?: undefined | null | HolderAgentPause;
@@ -859,7 +873,6 @@ declare module "@danxbot/card-kit@1" {
859
873
  updated_at: string;
860
874
  content_hash: string;
861
875
  summary: null | string;
862
- by: null | AuthorV2;
863
876
  decisions: Array<{
864
877
  id: number;
865
878
  problem_id: number;
@@ -887,7 +900,6 @@ declare module "@danxbot/card-kit@1" {
887
900
  title: string;
888
901
  id: number;
889
902
  content_hash: string;
890
- by: null | AuthorV2;
891
903
  body: string;
892
904
  steps_hash: string;
893
905
  steps: Array<{
@@ -974,7 +986,7 @@ declare module "@danxbot/card-kit@1" {
974
986
  url: string;
975
987
  }
976
988
 
977
- type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "escalate" | "gate_release" | "gate_repin" | "claim_repin" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
989
+ type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "escalate" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
978
990
 
979
991
  type LifecycleAction = Extract<TransitionAction, "ready" | "unready" | "complete" | "cancel" | "reopen">;
980
992
 
@@ -1113,10 +1125,11 @@ declare module "@danxbot/card-kit@1" {
1113
1125
  choiceLocked: boolean;
1114
1126
  }
1115
1127
 
1116
- function ProblemsSection({ cardId, problems, canAnswer, mutation, }: {
1128
+ function ProblemsSection({ cardId, problems, canAnswer, designGatePending, mutation, }: {
1117
1129
  cardId: string;
1118
1130
  problems: ProblemAttention[];
1119
1131
  canAnswer: boolean;
1132
+ designGatePending: boolean;
1120
1133
  mutation: CardMutation;
1121
1134
  }): react.JSX.Element;
1122
1135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/plugin-sdk",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
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",