@danxbot/plugin-sdk 0.2.16 → 0.2.18

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 +48 -27
  2. package/package.json +2 -2
@@ -5,6 +5,32 @@ 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 | StatusReason[] | 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 StatusReason {
31
+ id: StatusReasonId;
32
+ values: StatusReasonValues;
33
+ }
8
34
 
9
35
  type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
10
36
  type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
@@ -13,6 +39,7 @@ declare module "@danxbot/card-kit@1" {
13
39
  type IssueDependencyKind = "depends_on" | "conflict_on";
14
40
  type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
15
41
  type IssueAssignmentMode = "automated" | "manual";
42
+ type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
16
43
  interface IssueV2 {
17
44
  id: string;
18
45
  repo_name: string;
@@ -23,6 +50,10 @@ declare module "@danxbot/card-kit@1" {
23
50
  description: string;
24
51
  summary: string | null;
25
52
  pull_request_url: string | null;
53
+ start_commit_sha: string | null;
54
+ start_commit_at: string | null;
55
+ start_commit_error: StartCommitError | null;
56
+ start_commit_error_detail: string | null;
26
57
  parent_id: string | null;
27
58
  effort_level: EffortLevelName;
28
59
  escalation_rung: EffortLevelName | null;
@@ -80,6 +111,7 @@ declare module "@danxbot/card-kit@1" {
80
111
  name: string;
81
112
  kind: "agent" | "person";
82
113
  avatar_url: string | null;
114
+ reason: StatusReason | null;
83
115
  }
84
116
  interface CommentRespondingV2 {
85
117
  by: AuthorV2;
@@ -129,32 +161,6 @@ declare module "@danxbot/card-kit@1" {
129
161
  }
130
162
  type QualityGateStatus = "pending" | "pass" | "fail" | "skipped";
131
163
 
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
164
  type QualityGatePhase = "plan" | "code";
159
165
 
160
166
  interface ViaKey {
@@ -171,6 +177,13 @@ declare module "@danxbot/card-kit@1" {
171
177
  readonly source: Exclude<ControlSource, "card">;
172
178
  }
173
179
 
180
+ type ActorKind = "person" | "system" | "dispatch_agent" | "worker" | "agent_profile" | "plan_session" | "unresolved";
181
+ interface ActorRef {
182
+ kind: ActorKind;
183
+ name: string;
184
+ reason: StatusReason | ProfileName | null;
185
+ }
186
+
174
187
  interface HolderAgentPause {
175
188
  reason: string;
176
189
  since: string;
@@ -558,7 +571,6 @@ declare module "@danxbot/card-kit@1" {
558
571
  issue_title: string;
559
572
  }
560
573
  type IssueViewV2 = {
561
- triage?: undefined | TriageViewV2;
562
574
  comments?: undefined | (Array<{
563
575
  id: string;
564
576
  author: string;
@@ -586,6 +598,7 @@ declare module "@danxbot/card-kit@1" {
586
598
  thumbnail_error: null | string;
587
599
  created_at: string;
588
600
  }>);
601
+ triage?: undefined | TriageViewV2;
589
602
  title: string;
590
603
  description?: undefined | string;
591
604
  status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
@@ -628,6 +641,7 @@ declare module "@danxbot/card-kit@1" {
628
641
  projection_error?: undefined | null | string;
629
642
  summary?: undefined | null | string;
630
643
  pull_request_url?: undefined | null | string;
644
+ 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
645
  problem_total?: undefined | number;
632
646
  lane_header?: undefined | false | true;
633
647
  design_count?: undefined | number;
@@ -706,6 +720,7 @@ declare module "@danxbot/card-kit@1" {
706
720
  built_from_commit: string;
707
721
  note: string;
708
722
  created_by: string;
723
+ created_by_ref: ActorRef;
709
724
  created_at: string;
710
725
  bundle_bytes: null | number;
711
726
  bundle_available: boolean;
@@ -718,6 +733,7 @@ declare module "@danxbot/card-kit@1" {
718
733
  outcome: "rejected" | "changes_requested" | "approved";
719
734
  note: null | string;
720
735
  decided_by: string;
736
+ decided_by_ref: ActorRef;
721
737
  created_at: string;
722
738
  }>);
723
739
  }>);
@@ -777,6 +793,7 @@ declare module "@danxbot/card-kit@1" {
777
793
  id: string;
778
794
  timestamp: string;
779
795
  actor: string;
796
+ actor_ref: ActorRef;
780
797
  via_key: undefined | null | ViaKey;
781
798
  event: "created" | "blocked" | "activity" | "status_change" | "unblocked" | "field_change" | "dependency_added" | "dependency_removed" | "conflict_added" | "conflict_removed";
782
799
  label: undefined | StatusReason;
@@ -842,6 +859,7 @@ declare module "@danxbot/card-kit@1" {
842
859
  freeform: null | string;
843
860
  note: null | string;
844
861
  decided_by: string;
862
+ decided_by_ref: ActorRef;
845
863
  decided_at: string;
846
864
  retracted_at: null | string;
847
865
  relayed_by_session: null | string;
@@ -893,6 +911,7 @@ declare module "@danxbot/card-kit@1" {
893
911
  built_from_commit: string;
894
912
  note: string;
895
913
  created_by: string;
914
+ created_by_ref: ActorRef;
896
915
  created_at: string;
897
916
  bundle_bytes: null | number;
898
917
  bundle_available: boolean;
@@ -905,6 +924,7 @@ declare module "@danxbot/card-kit@1" {
905
924
  outcome: "rejected" | "changes_requested" | "approved";
906
925
  note: null | string;
907
926
  decided_by: string;
927
+ decided_by_ref: ActorRef;
908
928
  created_at: string;
909
929
  }>);
910
930
  }>);
@@ -930,6 +950,7 @@ declare module "@danxbot/card-kit@1" {
930
950
  freeform: string | null;
931
951
  note: string | null;
932
952
  decided_by: string;
953
+ decided_by_ref: ActorRef;
933
954
  decided_at: string;
934
955
  retracted_at: string | null;
935
956
  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.16",
3
+ "version": "0.2.18",
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.32.0",
49
+ "@danxbot/ui": "27.35.0",
50
50
  "@types/node": "^22.0.0",
51
51
  "@types/react": "^19.2.2",
52
52
  "esbuild": "^0.25.0",