@danxbot/plugin-sdk 0.2.17 → 0.2.19
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 +54 -29
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -5,6 +5,35 @@ declare module "@danxbot/card-kit@1" {
|
|
|
5
5
|
export { Link, useNavigate } from 'react-router';
|
|
6
6
|
|
|
7
7
|
type CardTypeKey = string;
|
|
8
|
+
interface RepoProfileCopy {
|
|
9
|
+
shipped: string;
|
|
10
|
+
repo: string;
|
|
11
|
+
}
|
|
12
|
+
type ProfileNameId = string;
|
|
13
|
+
type ProfileName = StatusReason | ProfileNameMessage;
|
|
14
|
+
|
|
15
|
+
type ListType$1 = "and" | "or" | "semicolon";
|
|
16
|
+
interface ListValue<Item> {
|
|
17
|
+
list: readonly Item[];
|
|
18
|
+
type?: ListType$1;
|
|
19
|
+
}
|
|
20
|
+
type StatusReasonId = string;
|
|
21
|
+
type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReasonSentences | StatusReasonLines | StatusReasonList>;
|
|
22
|
+
interface ProfileNameMessage {
|
|
23
|
+
id: ProfileNameId;
|
|
24
|
+
values: StatusReasonValues;
|
|
25
|
+
}
|
|
26
|
+
type StatusReasonList = ListValue<string | number | StatusReason | ProfileNameMessage>;
|
|
27
|
+
interface StatusReasonLines {
|
|
28
|
+
lines: StatusReason[];
|
|
29
|
+
}
|
|
30
|
+
interface StatusReasonSentences {
|
|
31
|
+
sentences: StatusReason[];
|
|
32
|
+
}
|
|
33
|
+
interface StatusReason {
|
|
34
|
+
id: StatusReasonId;
|
|
35
|
+
values: StatusReasonValues;
|
|
36
|
+
}
|
|
8
37
|
|
|
9
38
|
type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
10
39
|
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
@@ -13,6 +42,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
13
42
|
type IssueDependencyKind = "depends_on" | "conflict_on";
|
|
14
43
|
type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
|
|
15
44
|
type IssueAssignmentMode = "automated" | "manual";
|
|
45
|
+
type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
|
|
16
46
|
interface IssueV2 {
|
|
17
47
|
id: string;
|
|
18
48
|
repo_name: string;
|
|
@@ -23,6 +53,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
23
53
|
description: string;
|
|
24
54
|
summary: string | null;
|
|
25
55
|
pull_request_url: string | null;
|
|
56
|
+
start_commit_sha: string | null;
|
|
57
|
+
start_commit_at: string | null;
|
|
58
|
+
start_commit_error: StartCommitError | null;
|
|
59
|
+
start_commit_error_detail: string | null;
|
|
26
60
|
parent_id: string | null;
|
|
27
61
|
effort_level: EffortLevelName;
|
|
28
62
|
escalation_rung: EffortLevelName | null;
|
|
@@ -80,6 +114,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
80
114
|
name: string;
|
|
81
115
|
kind: "agent" | "person";
|
|
82
116
|
avatar_url: string | null;
|
|
117
|
+
reason: StatusReason | null;
|
|
83
118
|
}
|
|
84
119
|
interface CommentRespondingV2 {
|
|
85
120
|
by: AuthorV2;
|
|
@@ -129,32 +164,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
129
164
|
}
|
|
130
165
|
type QualityGateStatus = "pending" | "pass" | "fail" | "skipped";
|
|
131
166
|
|
|
132
|
-
interface RepoProfileCopy {
|
|
133
|
-
shipped: string;
|
|
134
|
-
repo: string;
|
|
135
|
-
}
|
|
136
|
-
type ProfileNameId = string;
|
|
137
|
-
|
|
138
|
-
type ListType$1 = "and" | "or" | "semicolon";
|
|
139
|
-
interface ListValue<Item> {
|
|
140
|
-
list: readonly Item[];
|
|
141
|
-
type?: ListType$1;
|
|
142
|
-
}
|
|
143
|
-
type StatusReasonId = string;
|
|
144
|
-
type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReason[] | StatusReasonLines | StatusReasonList>;
|
|
145
|
-
interface ProfileNameMessage {
|
|
146
|
-
id: ProfileNameId;
|
|
147
|
-
values: StatusReasonValues;
|
|
148
|
-
}
|
|
149
|
-
type StatusReasonList = ListValue<string | number | StatusReason | ProfileNameMessage>;
|
|
150
|
-
interface StatusReasonLines {
|
|
151
|
-
lines: StatusReason[];
|
|
152
|
-
}
|
|
153
|
-
interface StatusReason {
|
|
154
|
-
id: StatusReasonId;
|
|
155
|
-
values: StatusReasonValues;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
167
|
type QualityGatePhase = "plan" | "code";
|
|
159
168
|
|
|
160
169
|
interface ViaKey {
|
|
@@ -171,6 +180,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
171
180
|
readonly source: Exclude<ControlSource, "card">;
|
|
172
181
|
}
|
|
173
182
|
|
|
183
|
+
type ActorKind = "person" | "system" | "dispatch_agent" | "worker" | "agent_profile" | "plan_session" | "unresolved";
|
|
184
|
+
interface ActorRef {
|
|
185
|
+
kind: ActorKind;
|
|
186
|
+
name: string;
|
|
187
|
+
reason: StatusReason | ProfileName | null;
|
|
188
|
+
}
|
|
189
|
+
|
|
174
190
|
interface HolderAgentPause {
|
|
175
191
|
reason: string;
|
|
176
192
|
since: string;
|
|
@@ -558,7 +574,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
558
574
|
issue_title: string;
|
|
559
575
|
}
|
|
560
576
|
type IssueViewV2 = {
|
|
561
|
-
triage?: undefined | TriageViewV2;
|
|
562
577
|
comments?: undefined | (Array<{
|
|
563
578
|
id: string;
|
|
564
579
|
author: string;
|
|
@@ -586,6 +601,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
586
601
|
thumbnail_error: null | string;
|
|
587
602
|
created_at: string;
|
|
588
603
|
}>);
|
|
604
|
+
triage?: undefined | TriageViewV2;
|
|
589
605
|
title: string;
|
|
590
606
|
description?: undefined | string;
|
|
591
607
|
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
@@ -628,6 +644,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
628
644
|
projection_error?: undefined | null | string;
|
|
629
645
|
summary?: undefined | null | string;
|
|
630
646
|
pull_request_url?: undefined | null | string;
|
|
647
|
+
start_commit?: undefined | null | { at: string; sha: string | null; error: "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected" | null; error_detail: string | null; };
|
|
631
648
|
problem_total?: undefined | number;
|
|
632
649
|
lane_header?: undefined | false | true;
|
|
633
650
|
design_count?: undefined | number;
|
|
@@ -702,10 +719,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
702
719
|
revisions?: undefined | (Array<{
|
|
703
720
|
revision_no: number;
|
|
704
721
|
target: string;
|
|
705
|
-
|
|
722
|
+
design_dir: string;
|
|
706
723
|
built_from_commit: string;
|
|
707
724
|
note: string;
|
|
708
725
|
created_by: string;
|
|
726
|
+
created_by_ref: ActorRef;
|
|
709
727
|
created_at: string;
|
|
710
728
|
bundle_bytes: null | number;
|
|
711
729
|
bundle_available: boolean;
|
|
@@ -718,6 +736,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
718
736
|
outcome: "rejected" | "changes_requested" | "approved";
|
|
719
737
|
note: null | string;
|
|
720
738
|
decided_by: string;
|
|
739
|
+
decided_by_ref: ActorRef;
|
|
721
740
|
created_at: string;
|
|
722
741
|
}>);
|
|
723
742
|
}>);
|
|
@@ -777,6 +796,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
777
796
|
id: string;
|
|
778
797
|
timestamp: string;
|
|
779
798
|
actor: string;
|
|
799
|
+
actor_ref: ActorRef;
|
|
780
800
|
via_key: undefined | null | ViaKey;
|
|
781
801
|
event: "created" | "blocked" | "activity" | "status_change" | "unblocked" | "field_change" | "dependency_added" | "dependency_removed" | "conflict_added" | "conflict_removed";
|
|
782
802
|
label: undefined | StatusReason;
|
|
@@ -801,6 +821,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
801
821
|
description: string;
|
|
802
822
|
system_default: string | false | true;
|
|
803
823
|
fallback: null | ControlFallback;
|
|
824
|
+
overridable: boolean;
|
|
804
825
|
}>);
|
|
805
826
|
comments_page?: undefined | RelationPageView;
|
|
806
827
|
agent_notes_page?: undefined | RelationPageView;
|
|
@@ -842,6 +863,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
842
863
|
freeform: null | string;
|
|
843
864
|
note: null | string;
|
|
844
865
|
decided_by: string;
|
|
866
|
+
decided_by_ref: ActorRef;
|
|
845
867
|
decided_at: string;
|
|
846
868
|
retracted_at: null | string;
|
|
847
869
|
relayed_by_session: null | string;
|
|
@@ -889,10 +911,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
889
911
|
revisions?: undefined | (Array<{
|
|
890
912
|
revision_no: number;
|
|
891
913
|
target: string;
|
|
892
|
-
|
|
914
|
+
design_dir: string;
|
|
893
915
|
built_from_commit: string;
|
|
894
916
|
note: string;
|
|
895
917
|
created_by: string;
|
|
918
|
+
created_by_ref: ActorRef;
|
|
896
919
|
created_at: string;
|
|
897
920
|
bundle_bytes: null | number;
|
|
898
921
|
bundle_available: boolean;
|
|
@@ -905,6 +928,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
905
928
|
outcome: "rejected" | "changes_requested" | "approved";
|
|
906
929
|
note: null | string;
|
|
907
930
|
decided_by: string;
|
|
931
|
+
decided_by_ref: ActorRef;
|
|
908
932
|
created_at: string;
|
|
909
933
|
}>);
|
|
910
934
|
}>);
|
|
@@ -930,6 +954,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
930
954
|
freeform: string | null;
|
|
931
955
|
note: string | null;
|
|
932
956
|
decided_by: string;
|
|
957
|
+
decided_by_ref: ActorRef;
|
|
933
958
|
decided_at: string;
|
|
934
959
|
retracted_at: string | null;
|
|
935
960
|
relayed_by_session: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danxbot/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
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.36.2",
|
|
50
50
|
"@types/node": "^22.0.0",
|
|
51
51
|
"@types/react": "^19.2.2",
|
|
52
52
|
"esbuild": "^0.25.0",
|