@danxbot/plugin-sdk 0.2.26 → 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.
- package/dist/card-kit.d.ts +41 -18
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -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
|
-
|
|
116
|
+
type CommentReplyStateName = "sent" | "seen" | "responded";
|
|
117
|
+
type CommentRecipientV2 = {
|
|
118
|
+
kind: "agent";
|
|
117
119
|
by: AuthorV2;
|
|
118
|
-
|
|
119
|
-
|
|
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" | "
|
|
189
|
+
type ControlSource = "card" | "plan" | "board" | "system";
|
|
175
190
|
interface ControlFallback {
|
|
176
191
|
readonly value: ControlValue;
|
|
177
192
|
readonly source: Exclude<ControlSource, "card">;
|
|
@@ -184,17 +199,17 @@ declare module "@danxbot/card-kit@1" {
|
|
|
184
199
|
reason: StatusReason | ProfileName | null;
|
|
185
200
|
}
|
|
186
201
|
|
|
187
|
-
interface AgentIdentity {
|
|
188
|
-
id: number;
|
|
189
|
-
name: string;
|
|
190
|
-
avatar_url: string | null;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
202
|
interface HolderAgentPause {
|
|
194
203
|
reason: string;
|
|
195
204
|
since: string;
|
|
196
205
|
until: string;
|
|
197
206
|
}
|
|
207
|
+
|
|
208
|
+
interface AgentIdentity {
|
|
209
|
+
id: number;
|
|
210
|
+
name: string;
|
|
211
|
+
avatar_url: string | null;
|
|
212
|
+
}
|
|
198
213
|
type AssignedAgentKind = "session" | "person" | "worker" | "label";
|
|
199
214
|
|
|
200
215
|
interface UsageTokenCounts {
|
|
@@ -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
|
-
|
|
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<{
|
|
@@ -671,7 +694,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
671
694
|
ac?: undefined | Array<AcItemViewV2>;
|
|
672
695
|
triage_enabled?: undefined | false | true;
|
|
673
696
|
dispatch?: undefined | null | { started_at: string | null; };
|
|
674
|
-
dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
|
|
697
|
+
dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
|
|
675
698
|
assignment_mode?: undefined | "manual" | "automated";
|
|
676
699
|
assigned_agent_kind?: undefined | null | "session" | "person" | "worker" | "label";
|
|
677
700
|
assigned_agent_pause?: undefined | null | HolderAgentPause;
|
|
@@ -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" | "
|
|
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
|
};
|
|
@@ -873,7 +897,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
873
897
|
updated_at: string;
|
|
874
898
|
content_hash: string;
|
|
875
899
|
summary: null | string;
|
|
876
|
-
by: null | AuthorV2;
|
|
877
900
|
decisions: Array<{
|
|
878
901
|
id: number;
|
|
879
902
|
problem_id: number;
|
|
@@ -901,7 +924,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
901
924
|
title: string;
|
|
902
925
|
id: number;
|
|
903
926
|
content_hash: string;
|
|
904
|
-
by: null | AuthorV2;
|
|
905
927
|
body: string;
|
|
906
928
|
steps_hash: string;
|
|
907
929
|
steps: Array<{
|
|
@@ -988,7 +1010,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
988
1010
|
url: string;
|
|
989
1011
|
}
|
|
990
1012
|
|
|
991
|
-
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "escalate" | "gate_release" | "gate_repin" | "claim_repin" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
1013
|
+
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "escalate" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
992
1014
|
|
|
993
1015
|
type LifecycleAction = Extract<TransitionAction, "ready" | "unready" | "complete" | "cancel" | "reopen">;
|
|
994
1016
|
|
|
@@ -1236,8 +1258,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1236
1258
|
size?: "sm" | "2xs";
|
|
1237
1259
|
onOpenHold?: () => void;
|
|
1238
1260
|
onOpenDependencies?: () => void;
|
|
1261
|
+
assignee?: boolean;
|
|
1239
1262
|
}
|
|
1240
|
-
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;
|
|
1241
1264
|
|
|
1242
1265
|
interface ControlProps {
|
|
1243
1266
|
card: IssueViewV2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danxbot/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
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",
|