@danxbot/plugin-sdk 0.2.27 → 0.2.30
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 +307 -151
- package/dist/cli.js +1 -1
- package/dist/publish.js +1 -1
- package/dist/vite.js +1 -1
- package/package.json +3 -3
package/dist/card-kit.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export { Link, useNavigate } from 'react-router';
|
|
6
6
|
|
|
7
|
+
interface DesignOptionGroup {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
recommended: string[];
|
|
13
|
+
}
|
|
14
|
+
type OptionSelection = Record<string, string[]>;
|
|
15
|
+
|
|
7
16
|
type CardTypeKey = string;
|
|
8
17
|
interface RepoProfileCopy {
|
|
9
18
|
shipped: string;
|
|
@@ -34,10 +43,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
34
43
|
id: StatusReasonId;
|
|
35
44
|
values: StatusReasonValues;
|
|
36
45
|
}
|
|
46
|
+
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
37
47
|
|
|
38
48
|
type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
39
49
|
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
40
|
-
type
|
|
50
|
+
type IssueProblemType = "question" | "action" | "design";
|
|
41
51
|
type DecisionOutcome = "answered" | "rejected";
|
|
42
52
|
type IssueDependencyKind = "depends_on" | "conflict_on";
|
|
43
53
|
type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
|
|
@@ -102,7 +112,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
102
112
|
status_derived: IssueStatus$1;
|
|
103
113
|
in_progress_derived: boolean;
|
|
104
114
|
dispatchable_derived: boolean;
|
|
105
|
-
self_dispatchable_derived: boolean;
|
|
106
115
|
triage_enabled: boolean;
|
|
107
116
|
content_hash: string;
|
|
108
117
|
}
|
|
@@ -113,10 +122,49 @@ declare module "@danxbot/card-kit@1" {
|
|
|
113
122
|
reason: StatusReason | null;
|
|
114
123
|
team_agent_id: number | null;
|
|
115
124
|
}
|
|
116
|
-
|
|
125
|
+
type CommentReplyStateName = "sent" | "seen" | "responded";
|
|
126
|
+
type CommentRecipientV2 = {
|
|
127
|
+
kind: "agent";
|
|
117
128
|
by: AuthorV2;
|
|
118
|
-
|
|
119
|
-
|
|
129
|
+
reachability: CommentReachabilityV2;
|
|
130
|
+
} | {
|
|
131
|
+
kind: "none";
|
|
132
|
+
waiting_on: {
|
|
133
|
+
kind: "plan";
|
|
134
|
+
id: number;
|
|
135
|
+
name: string;
|
|
136
|
+
} | {
|
|
137
|
+
kind: "card";
|
|
138
|
+
id: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
type CommentReachabilityV2 = {
|
|
142
|
+
state: "listening";
|
|
143
|
+
} | {
|
|
144
|
+
state: "busy";
|
|
145
|
+
} | {
|
|
146
|
+
state: "compacting";
|
|
147
|
+
since: string;
|
|
148
|
+
} | {
|
|
149
|
+
state: "listener_down";
|
|
150
|
+
} | {
|
|
151
|
+
state: "paused_by_agent";
|
|
152
|
+
reason: string;
|
|
153
|
+
} | {
|
|
154
|
+
state: "usage_limit";
|
|
155
|
+
limit: PacingLimit;
|
|
156
|
+
until: string;
|
|
157
|
+
};
|
|
158
|
+
type ReplyRecipientV2 = {
|
|
159
|
+
kind: "agent";
|
|
160
|
+
by: AuthorV2;
|
|
161
|
+
} | Extract<CommentRecipientV2, {
|
|
162
|
+
kind: "none";
|
|
163
|
+
}>;
|
|
164
|
+
interface CommentReplyStateV2 {
|
|
165
|
+
state: CommentReplyStateName;
|
|
166
|
+
recipient: ReplyRecipientV2;
|
|
167
|
+
reply_comment_id: number | null;
|
|
120
168
|
}
|
|
121
169
|
type ChecklistItemStatus$1 = "incomplete" | "failing" | "passing" | "cancelled" | "deferred";
|
|
122
170
|
interface ChecklistV2 {
|
|
@@ -171,7 +219,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
171
219
|
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
172
220
|
type ControlValue = boolean | string;
|
|
173
221
|
|
|
174
|
-
type ControlSource = "card" | "plan" | "board" | "
|
|
222
|
+
type ControlSource = "card" | "plan" | "board" | "system";
|
|
175
223
|
interface ControlFallback {
|
|
176
224
|
readonly value: ControlValue;
|
|
177
225
|
readonly source: Exclude<ControlSource, "card">;
|
|
@@ -184,6 +232,229 @@ declare module "@danxbot/card-kit@1" {
|
|
|
184
232
|
reason: StatusReason | ProfileName | null;
|
|
185
233
|
}
|
|
186
234
|
|
|
235
|
+
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
236
|
+
|
|
237
|
+
interface SolutionContent {
|
|
238
|
+
title: string;
|
|
239
|
+
body: string;
|
|
240
|
+
pro: string;
|
|
241
|
+
con: string;
|
|
242
|
+
recommended: boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface V2CopyComment {
|
|
246
|
+
author: string;
|
|
247
|
+
text: string;
|
|
248
|
+
metadata: unknown | null;
|
|
249
|
+
answers_decision: V2CopyDecisionRef | null;
|
|
250
|
+
tags: V2CopyCommentTag[];
|
|
251
|
+
team_agent: string | null;
|
|
252
|
+
author_email: string | null;
|
|
253
|
+
created_at: string;
|
|
254
|
+
updated_at: string;
|
|
255
|
+
}
|
|
256
|
+
interface V2CopyDecisionRef {
|
|
257
|
+
problem: number;
|
|
258
|
+
decision: number;
|
|
259
|
+
}
|
|
260
|
+
type V2CopyCommentTag = {
|
|
261
|
+
kind: "problem";
|
|
262
|
+
index: number;
|
|
263
|
+
} | {
|
|
264
|
+
kind: "design";
|
|
265
|
+
index: number;
|
|
266
|
+
};
|
|
267
|
+
interface V2CopyBlobRef {
|
|
268
|
+
sha256: string;
|
|
269
|
+
size: number;
|
|
270
|
+
}
|
|
271
|
+
interface V2CopyAttachment {
|
|
272
|
+
filename: string;
|
|
273
|
+
primary: boolean;
|
|
274
|
+
created_at: string;
|
|
275
|
+
updated_at: string;
|
|
276
|
+
blob: V2CopyBlobRef;
|
|
277
|
+
}
|
|
278
|
+
interface V2CopyDesignRevision {
|
|
279
|
+
revision_no: number;
|
|
280
|
+
target: string;
|
|
281
|
+
design_dir: string;
|
|
282
|
+
source_files: {
|
|
283
|
+
path: string;
|
|
284
|
+
content: string;
|
|
285
|
+
}[];
|
|
286
|
+
option_groups: DesignOptionGroup[];
|
|
287
|
+
built_from_commit: string;
|
|
288
|
+
note: string;
|
|
289
|
+
created_by: string;
|
|
290
|
+
created_at: string;
|
|
291
|
+
bundle: {
|
|
292
|
+
blob: V2CopyBlobRef;
|
|
293
|
+
} | null;
|
|
294
|
+
screenshot: {
|
|
295
|
+
blob: V2CopyBlobRef;
|
|
296
|
+
} | null;
|
|
297
|
+
}
|
|
298
|
+
interface V2CopyDesignDecision {
|
|
299
|
+
revision_no: number;
|
|
300
|
+
outcome: DesignDecisionOutcome;
|
|
301
|
+
note: string | null;
|
|
302
|
+
decided_by: string;
|
|
303
|
+
created_at: string;
|
|
304
|
+
retracted_at: string | null;
|
|
305
|
+
options: OptionSelection | null;
|
|
306
|
+
}
|
|
307
|
+
interface V2CopyDesign {
|
|
308
|
+
design_no: number;
|
|
309
|
+
title: string;
|
|
310
|
+
created_by: string;
|
|
311
|
+
created_at: string;
|
|
312
|
+
revisions: V2CopyDesignRevision[];
|
|
313
|
+
decisions: V2CopyDesignDecision[];
|
|
314
|
+
}
|
|
315
|
+
interface V2CopyControlOverride {
|
|
316
|
+
key: string;
|
|
317
|
+
value: unknown;
|
|
318
|
+
}
|
|
319
|
+
interface V2CopyAgentNote {
|
|
320
|
+
author: string;
|
|
321
|
+
text: string;
|
|
322
|
+
team_agent: string | null;
|
|
323
|
+
metadata: Record<string, unknown> | null;
|
|
324
|
+
ordinal: number;
|
|
325
|
+
created_at: string;
|
|
326
|
+
updated_at: string;
|
|
327
|
+
}
|
|
328
|
+
interface V2CopyAc {
|
|
329
|
+
title: string;
|
|
330
|
+
checked: boolean;
|
|
331
|
+
}
|
|
332
|
+
interface V2CopyChecklist {
|
|
333
|
+
name: string;
|
|
334
|
+
items: V2CopyChecklistItem[];
|
|
335
|
+
}
|
|
336
|
+
interface V2CopyChecklistItem {
|
|
337
|
+
label: string;
|
|
338
|
+
detail: string;
|
|
339
|
+
status: ChecklistItemStatus$1;
|
|
340
|
+
}
|
|
341
|
+
interface V2CopyDependency {
|
|
342
|
+
kind: IssueDependencyKind;
|
|
343
|
+
target_id: string;
|
|
344
|
+
reason: string;
|
|
345
|
+
}
|
|
346
|
+
interface V2CopyRetro {
|
|
347
|
+
good: string;
|
|
348
|
+
bad: string;
|
|
349
|
+
correctable_danxbot_problem: boolean;
|
|
350
|
+
correctable_danxbot_problem_description: string;
|
|
351
|
+
action_item_ids: string[];
|
|
352
|
+
commits: {
|
|
353
|
+
sha: string;
|
|
354
|
+
subject: string;
|
|
355
|
+
}[];
|
|
356
|
+
tests: V2CopyRetroTest[];
|
|
357
|
+
}
|
|
358
|
+
interface V2CopyRetroTest {
|
|
359
|
+
name: string;
|
|
360
|
+
kind: "group" | "e2e";
|
|
361
|
+
num_tests: number;
|
|
362
|
+
num_assertions: number | null;
|
|
363
|
+
num_passing_tests: number;
|
|
364
|
+
num_passing_assertions: number | null;
|
|
365
|
+
duration_ms: number;
|
|
366
|
+
}
|
|
367
|
+
interface V2CopyMirror {
|
|
368
|
+
target_type: MirrorProviderId;
|
|
369
|
+
target_ref: string;
|
|
370
|
+
target_url: string;
|
|
371
|
+
source_ref: string;
|
|
372
|
+
}
|
|
373
|
+
type SourceMirrorLocation = Record<MirrorProviderId, string | null>;
|
|
374
|
+
interface V2CopyQualityGate {
|
|
375
|
+
gate: string;
|
|
376
|
+
decision_note: string;
|
|
377
|
+
effort_level: EffortLevelName | null;
|
|
378
|
+
status: QualityGateStatus;
|
|
379
|
+
message: string;
|
|
380
|
+
completed_at: string | null;
|
|
381
|
+
attempts: number;
|
|
382
|
+
reviewed_ref: string | null;
|
|
383
|
+
decided_by: string | null;
|
|
384
|
+
owed: boolean;
|
|
385
|
+
}
|
|
386
|
+
interface V2CopySolution extends SolutionContent {
|
|
387
|
+
removed: boolean;
|
|
388
|
+
design_index: number | null;
|
|
389
|
+
steps: V2CopyStep[];
|
|
390
|
+
}
|
|
391
|
+
interface V2CopyStep {
|
|
392
|
+
title: string;
|
|
393
|
+
description: string | null;
|
|
394
|
+
steps: V2CopyStep[];
|
|
395
|
+
}
|
|
396
|
+
interface V2CopyDecision {
|
|
397
|
+
solution_index: number | null;
|
|
398
|
+
outcome: DecisionOutcome;
|
|
399
|
+
freeform: string | null;
|
|
400
|
+
note: string | null;
|
|
401
|
+
decided_by: string;
|
|
402
|
+
decided_at: string;
|
|
403
|
+
retracted_at: string | null;
|
|
404
|
+
}
|
|
405
|
+
interface V2CopyProblem {
|
|
406
|
+
statement: string;
|
|
407
|
+
context: string | null;
|
|
408
|
+
type: IssueProblemType;
|
|
409
|
+
summary: string | null;
|
|
410
|
+
removed: boolean;
|
|
411
|
+
solutions: V2CopySolution[];
|
|
412
|
+
decisions: V2CopyDecision[];
|
|
413
|
+
}
|
|
414
|
+
interface V2CopyIssue {
|
|
415
|
+
id: string;
|
|
416
|
+
parent_id: string | null;
|
|
417
|
+
type: CardTypeKey;
|
|
418
|
+
title: string;
|
|
419
|
+
description: string;
|
|
420
|
+
summary: string | null;
|
|
421
|
+
priority: number;
|
|
422
|
+
effort_level: EffortLevelName | null;
|
|
423
|
+
assigned_agent: string | null;
|
|
424
|
+
ready_at: string | null;
|
|
425
|
+
completed_at: string | null;
|
|
426
|
+
cancelled_at: string | null;
|
|
427
|
+
archived_at: string | null;
|
|
428
|
+
blocked_at: string | null;
|
|
429
|
+
blocked_reason: string | null;
|
|
430
|
+
ac: V2CopyAc[];
|
|
431
|
+
checklists: V2CopyChecklist[];
|
|
432
|
+
comments: V2CopyComment[];
|
|
433
|
+
agent_notes: V2CopyAgentNote[];
|
|
434
|
+
dependencies: V2CopyDependency[];
|
|
435
|
+
retro: V2CopyRetro | null;
|
|
436
|
+
mirrors: V2CopyMirror[];
|
|
437
|
+
quality_gates: V2CopyQualityGate[];
|
|
438
|
+
problems: V2CopyProblem[];
|
|
439
|
+
triage_enabled: boolean;
|
|
440
|
+
attachments: V2CopyAttachment[];
|
|
441
|
+
designs: V2CopyDesign[];
|
|
442
|
+
list_name: string | null;
|
|
443
|
+
list_type: ListType | null;
|
|
444
|
+
control_overrides: V2CopyControlOverride[];
|
|
445
|
+
unknown_fields: V2CopyUnknownField[];
|
|
446
|
+
}
|
|
447
|
+
interface V2CopyUnknownField {
|
|
448
|
+
path: string;
|
|
449
|
+
value: unknown;
|
|
450
|
+
}
|
|
451
|
+
interface V2CopyPayload {
|
|
452
|
+
schema_version: number;
|
|
453
|
+
issues: V2CopyIssue[];
|
|
454
|
+
source_mirror_location: SourceMirrorLocation;
|
|
455
|
+
blobs: Record<string, string>;
|
|
456
|
+
}
|
|
457
|
+
|
|
187
458
|
interface HolderAgentPause {
|
|
188
459
|
reason: string;
|
|
189
460
|
since: string;
|
|
@@ -232,6 +503,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
232
503
|
linesAdded: number;
|
|
233
504
|
linesRemoved: number;
|
|
234
505
|
}
|
|
506
|
+
interface UsageActivity {
|
|
507
|
+
activeMinutes: number;
|
|
508
|
+
agentMinutes: number;
|
|
509
|
+
tokens: number;
|
|
510
|
+
costUsd: number;
|
|
511
|
+
tokensPerMinute: number;
|
|
512
|
+
measuredSince: number;
|
|
513
|
+
}
|
|
235
514
|
interface UsageSummary {
|
|
236
515
|
totals: UsageTotals;
|
|
237
516
|
costUsd: number;
|
|
@@ -242,6 +521,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
242
521
|
operatorAttributionSince: number | null;
|
|
243
522
|
timing: UsageTiming;
|
|
244
523
|
timingMeasuredSince: number | null;
|
|
524
|
+
activity: UsageActivity | null;
|
|
245
525
|
}
|
|
246
526
|
type UsageErrorCode = "unattributable_dispatch" | "usage_inconsistent";
|
|
247
527
|
interface UsageError {
|
|
@@ -267,6 +547,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
267
547
|
};
|
|
268
548
|
} | {
|
|
269
549
|
kind: "repo_designs_off";
|
|
550
|
+
} | {
|
|
551
|
+
kind: "decided_by_person";
|
|
552
|
+
gate: string;
|
|
553
|
+
decided_by: string;
|
|
270
554
|
};
|
|
271
555
|
|
|
272
556
|
interface CodeGateStatus {
|
|
@@ -320,7 +604,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
320
604
|
detail: string;
|
|
321
605
|
}
|
|
322
606
|
|
|
323
|
-
type PickerRouting = "gate" | "
|
|
607
|
+
type PickerRouting = "gate" | "queued" | "not_queued" | "skip" | "terminal_or_container";
|
|
324
608
|
interface DispatchableExplainView {
|
|
325
609
|
id: string;
|
|
326
610
|
dispatchable: boolean;
|
|
@@ -337,147 +621,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
337
621
|
picker_routing: PickerRouting;
|
|
338
622
|
dispatch_key_blockers: DispatchKeyBlocker[];
|
|
339
623
|
worker_readiness_blockers: ReadinessBlocker[];
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
interface SolutionContent {
|
|
343
|
-
title: string;
|
|
344
|
-
body: string;
|
|
345
|
-
pro: string;
|
|
346
|
-
con: string;
|
|
347
|
-
recommended: boolean;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
interface V2CopyComment {
|
|
351
|
-
author: string;
|
|
352
|
-
text: string;
|
|
353
|
-
}
|
|
354
|
-
interface V2CopyAgentNote {
|
|
355
|
-
author: string;
|
|
356
|
-
text: string;
|
|
357
|
-
metadata: Record<string, unknown> | null;
|
|
358
|
-
ordinal: number;
|
|
359
|
-
created_at: string;
|
|
360
|
-
updated_at: string;
|
|
361
|
-
}
|
|
362
|
-
interface V2CopyAc {
|
|
363
|
-
title: string;
|
|
364
|
-
checked: boolean;
|
|
365
|
-
}
|
|
366
|
-
interface V2CopyChecklist {
|
|
367
|
-
name: string;
|
|
368
|
-
items: V2CopyChecklistItem[];
|
|
369
|
-
}
|
|
370
|
-
interface V2CopyChecklistItem {
|
|
371
|
-
label: string;
|
|
372
|
-
detail: string;
|
|
373
|
-
status: ChecklistItemStatus$1;
|
|
374
|
-
}
|
|
375
|
-
interface V2CopyDependency {
|
|
376
|
-
kind: IssueDependencyKind;
|
|
377
|
-
target_id: string;
|
|
378
|
-
reason: string;
|
|
379
|
-
}
|
|
380
|
-
interface V2CopyRetro {
|
|
381
|
-
good: string;
|
|
382
|
-
bad: string;
|
|
383
|
-
correctable_danxbot_problem: boolean;
|
|
384
|
-
correctable_danxbot_problem_description: string;
|
|
385
|
-
action_item_ids: string[];
|
|
386
|
-
commits: {
|
|
387
|
-
sha: string;
|
|
388
|
-
subject: string;
|
|
389
|
-
}[];
|
|
390
|
-
tests: V2CopyRetroTest[];
|
|
391
|
-
}
|
|
392
|
-
interface V2CopyRetroTest {
|
|
393
|
-
name: string;
|
|
394
|
-
kind: "group" | "e2e";
|
|
395
|
-
num_tests: number;
|
|
396
|
-
num_assertions: number | null;
|
|
397
|
-
num_passing_tests: number;
|
|
398
|
-
num_passing_assertions: number | null;
|
|
399
|
-
duration_ms: number;
|
|
400
|
-
}
|
|
401
|
-
interface V2CopyMirror {
|
|
402
|
-
target_type: MirrorProviderId;
|
|
403
|
-
target_ref: string;
|
|
404
|
-
target_url: string;
|
|
405
|
-
source_ref: string;
|
|
406
|
-
}
|
|
407
|
-
type SourceMirrorLocation = Record<MirrorProviderId, string | null>;
|
|
408
|
-
interface V2CopyQualityGate {
|
|
409
|
-
gate: string;
|
|
410
|
-
decision_note: string;
|
|
411
|
-
effort_level: EffortLevelName | null;
|
|
412
|
-
status: QualityGateStatus;
|
|
413
|
-
message: string;
|
|
414
|
-
completed_at: string | null;
|
|
415
|
-
attempts: number;
|
|
416
|
-
reviewed_ref: string | null;
|
|
417
|
-
}
|
|
418
|
-
interface V2CopySolution extends SolutionContent {
|
|
419
|
-
removed: boolean;
|
|
420
|
-
steps: V2CopyStep[];
|
|
421
|
-
}
|
|
422
|
-
interface V2CopyStep {
|
|
423
|
-
title: string;
|
|
424
|
-
description: string | null;
|
|
425
|
-
steps: V2CopyStep[];
|
|
426
|
-
}
|
|
427
|
-
interface V2CopyDecision {
|
|
428
|
-
solution_index: number | null;
|
|
429
|
-
outcome: DecisionOutcome;
|
|
430
|
-
freeform: string | null;
|
|
431
|
-
note: string | null;
|
|
432
|
-
decided_by: string;
|
|
433
|
-
decided_at: string;
|
|
434
|
-
retracted_at: string | null;
|
|
435
|
-
}
|
|
436
|
-
interface V2CopyProblem {
|
|
437
|
-
statement: string;
|
|
438
|
-
context: string | null;
|
|
439
|
-
type: IssueAuthoredProblemType;
|
|
440
|
-
summary: string | null;
|
|
441
|
-
removed: boolean;
|
|
442
|
-
solutions: V2CopySolution[];
|
|
443
|
-
decisions: V2CopyDecision[];
|
|
444
|
-
}
|
|
445
|
-
interface V2CopyIssue {
|
|
446
|
-
id: string;
|
|
447
|
-
parent_id: string | null;
|
|
448
|
-
type: CardTypeKey;
|
|
449
|
-
title: string;
|
|
450
|
-
description: string;
|
|
451
|
-
summary: string | null;
|
|
452
|
-
priority: number;
|
|
453
|
-
effort_level: EffortLevelName | null;
|
|
454
|
-
assigned_agent: string | null;
|
|
455
|
-
ready_at: string | null;
|
|
456
|
-
completed_at: string | null;
|
|
457
|
-
cancelled_at: string | null;
|
|
458
|
-
archived_at: string | null;
|
|
459
|
-
blocked_at: string | null;
|
|
460
|
-
blocked_reason: string | null;
|
|
461
|
-
ac: V2CopyAc[];
|
|
462
|
-
checklists: V2CopyChecklist[];
|
|
463
|
-
comments: V2CopyComment[];
|
|
464
|
-
agent_notes: V2CopyAgentNote[];
|
|
465
|
-
dependencies: V2CopyDependency[];
|
|
466
|
-
retro: V2CopyRetro | null;
|
|
467
|
-
mirrors: V2CopyMirror[];
|
|
468
|
-
quality_gates: V2CopyQualityGate[];
|
|
469
|
-
problems: V2CopyProblem[];
|
|
470
|
-
triage_enabled: boolean;
|
|
471
|
-
unknown_fields: V2CopyUnknownField[];
|
|
472
|
-
}
|
|
473
|
-
interface V2CopyUnknownField {
|
|
474
|
-
path: string;
|
|
475
|
-
value: unknown;
|
|
476
|
-
}
|
|
477
|
-
interface V2CopyPayload {
|
|
478
|
-
schema_version: number;
|
|
479
|
-
issues: V2CopyIssue[];
|
|
480
|
-
source_mirror_location: SourceMirrorLocation;
|
|
624
|
+
agent_wait: StatusReason | null;
|
|
481
625
|
}
|
|
482
626
|
|
|
483
627
|
type IssueStatus = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
@@ -569,6 +713,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
569
713
|
name: string;
|
|
570
714
|
items: ChecklistItemView[];
|
|
571
715
|
}
|
|
716
|
+
type DesignDecisionOutcome = "rejected" | "changes_requested" | "approved";
|
|
572
717
|
interface ChecklistHistoryViewV2 {
|
|
573
718
|
action: "create" | "rename" | "remove" | "add_item" | "update_item" | "remove_item";
|
|
574
719
|
checklist: string;
|
|
@@ -603,7 +748,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
603
748
|
metadata?: unknown;
|
|
604
749
|
answers_decision_id?: undefined | null | number;
|
|
605
750
|
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; }>;
|
|
606
|
-
|
|
751
|
+
reply_to_comment_id: null | number;
|
|
752
|
+
reply_phase: null | "ack" | "reply";
|
|
753
|
+
reply_state: null | CommentReplyStateV2;
|
|
607
754
|
}>);
|
|
608
755
|
checklists?: undefined | Array<ChecklistView>;
|
|
609
756
|
attachments?: undefined | (Array<{
|
|
@@ -697,6 +844,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
697
844
|
ac_items?: undefined | (Array<{ title: string; status: "incomplete" | "failing" | "passing" | "cancelled" | "deferred"; }>);
|
|
698
845
|
comments_count?: undefined | number;
|
|
699
846
|
agent_notes_count?: undefined | number;
|
|
847
|
+
comment_recipient?: undefined | { kind: "agent"; by: AuthorV2; reachability: CommentReachabilityV2; } | { kind: "none"; waiting_on: { kind: "plan"; id: number; name: string; } | { kind: "card"; id: string; }; };
|
|
700
848
|
has_retro?: undefined | false | true;
|
|
701
849
|
primary_attachment?: undefined | null | AttachmentPreviewV2;
|
|
702
850
|
in_progress_derived?: undefined | false | true;
|
|
@@ -735,6 +883,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
735
883
|
review_state: "rejected" | "awaiting_review" | "changes_requested" | "approved";
|
|
736
884
|
revision_count: number;
|
|
737
885
|
latest_revision_no: number;
|
|
886
|
+
chosen_options: null | OptionSelection;
|
|
738
887
|
revisions?: undefined | (Array<{
|
|
739
888
|
revision_no: number;
|
|
740
889
|
target: string;
|
|
@@ -747,6 +896,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
747
896
|
bundle_bytes: null | number;
|
|
748
897
|
bundle_available: boolean;
|
|
749
898
|
screenshot_available: boolean;
|
|
899
|
+
option_groups: Array<DesignOptionGroup>;
|
|
750
900
|
source_files?: undefined | Array<DesignSourceFile>;
|
|
751
901
|
}>);
|
|
752
902
|
decisions?: undefined | (Array<{
|
|
@@ -757,6 +907,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
757
907
|
decided_by: string;
|
|
758
908
|
decided_by_ref: ActorRef;
|
|
759
909
|
created_at: string;
|
|
910
|
+
options: null | OptionSelection;
|
|
760
911
|
}>);
|
|
761
912
|
}>);
|
|
762
913
|
pull_request_reviews?: undefined | (Array<{
|
|
@@ -833,7 +984,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
833
984
|
scope: "board" | "plan" | "card";
|
|
834
985
|
scope_id: string;
|
|
835
986
|
value: null | string | false | true;
|
|
836
|
-
source: "board" | "plan" | "card" | "
|
|
987
|
+
source: "board" | "plan" | "card" | "system" | "inherit";
|
|
837
988
|
base_hash: string;
|
|
838
989
|
kind: "boolean" | "enum" | "branch" | "markdown";
|
|
839
990
|
options: null | Array<string>;
|
|
@@ -861,6 +1012,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
861
1012
|
completed_at: null | string;
|
|
862
1013
|
message: string;
|
|
863
1014
|
reviewed_ref: null | string;
|
|
1015
|
+
decided_by: null | string;
|
|
864
1016
|
effort_level: null | "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
865
1017
|
phase: "plan" | "code";
|
|
866
1018
|
};
|
|
@@ -928,6 +1080,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
928
1080
|
review_state: "rejected" | "awaiting_review" | "changes_requested" | "approved";
|
|
929
1081
|
revision_count: number;
|
|
930
1082
|
latest_revision_no: number;
|
|
1083
|
+
chosen_options: null | OptionSelection;
|
|
931
1084
|
revisions?: undefined | (Array<{
|
|
932
1085
|
revision_no: number;
|
|
933
1086
|
target: string;
|
|
@@ -940,6 +1093,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
940
1093
|
bundle_bytes: null | number;
|
|
941
1094
|
bundle_available: boolean;
|
|
942
1095
|
screenshot_available: boolean;
|
|
1096
|
+
option_groups: Array<DesignOptionGroup>;
|
|
943
1097
|
source_files?: undefined | Array<DesignSourceFile>;
|
|
944
1098
|
}>);
|
|
945
1099
|
decisions?: undefined | (Array<{
|
|
@@ -950,6 +1104,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
950
1104
|
decided_by: string;
|
|
951
1105
|
decided_by_ref: ActorRef;
|
|
952
1106
|
created_at: string;
|
|
1107
|
+
options: null | OptionSelection;
|
|
953
1108
|
}>);
|
|
954
1109
|
}>);
|
|
955
1110
|
};
|
|
@@ -1234,8 +1389,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1234
1389
|
size?: "sm" | "2xs";
|
|
1235
1390
|
onOpenHold?: () => void;
|
|
1236
1391
|
onOpenDependencies?: () => void;
|
|
1392
|
+
assignee?: boolean;
|
|
1237
1393
|
}
|
|
1238
|
-
function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies }: WorkStateControlProps): react.JSX.Element | null;
|
|
1394
|
+
function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee }: WorkStateControlProps): react.JSX.Element | null;
|
|
1239
1395
|
|
|
1240
1396
|
interface ControlProps {
|
|
1241
1397
|
card: IssueViewV2;
|
package/dist/cli.js
CHANGED
|
@@ -5891,7 +5891,7 @@ var CARD_KIT_LIBRARY = "@danxbot/card-kit";
|
|
|
5891
5891
|
var PLUGIN_RUNTIME_LIBRARIES = [
|
|
5892
5892
|
{ name: "react", major: 19 },
|
|
5893
5893
|
{ name: "react-dom", major: 19 },
|
|
5894
|
-
{ name: "@danxbot/ui", major:
|
|
5894
|
+
{ name: "@danxbot/ui", major: 28 },
|
|
5895
5895
|
{ name: CARD_KIT_LIBRARY, major: CARD_KIT_MAJOR }
|
|
5896
5896
|
];
|
|
5897
5897
|
var PLUGIN_RUNTIME_SPECIFIERS = [
|
package/dist/publish.js
CHANGED
|
@@ -5886,7 +5886,7 @@ var CARD_KIT_LIBRARY = "@danxbot/card-kit";
|
|
|
5886
5886
|
var PLUGIN_RUNTIME_LIBRARIES = [
|
|
5887
5887
|
{ name: "react", major: 19 },
|
|
5888
5888
|
{ name: "react-dom", major: 19 },
|
|
5889
|
-
{ name: "@danxbot/ui", major:
|
|
5889
|
+
{ name: "@danxbot/ui", major: 28 },
|
|
5890
5890
|
{ name: CARD_KIT_LIBRARY, major: CARD_KIT_MAJOR }
|
|
5891
5891
|
];
|
|
5892
5892
|
var PLUGIN_RUNTIME_SPECIFIERS = [
|
package/dist/vite.js
CHANGED
|
@@ -4,7 +4,7 @@ var CARD_KIT_LIBRARY = "@danxbot/card-kit";
|
|
|
4
4
|
var PLUGIN_RUNTIME_LIBRARIES = [
|
|
5
5
|
{ name: "react", major: 19 },
|
|
6
6
|
{ name: "react-dom", major: 19 },
|
|
7
|
-
{ name: "@danxbot/ui", major:
|
|
7
|
+
{ name: "@danxbot/ui", major: 28 },
|
|
8
8
|
{ name: CARD_KIT_LIBRARY, major: CARD_KIT_MAJOR }
|
|
9
9
|
];
|
|
10
10
|
var PLUGIN_RUNTIME_SPECIFIERS = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danxbot/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.30",
|
|
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",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node": ">=20"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@danxbot/ui": "^
|
|
36
|
+
"@danxbot/ui": "^28.0.0",
|
|
37
37
|
"@types/react": "^19.0.0",
|
|
38
38
|
"react": "^19.0.0",
|
|
39
39
|
"react-router": "^7.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test": "vitest run"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@danxbot/ui": "
|
|
49
|
+
"@danxbot/ui": "28.0.0",
|
|
50
50
|
"@types/node": "^22.0.0",
|
|
51
51
|
"@types/react": "^19.2.2",
|
|
52
52
|
"esbuild": "^0.25.0",
|