@danxbot/plugin-sdk 0.2.39 → 0.2.41

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.
@@ -46,10 +46,15 @@ declare module "@danxbot/card-kit@1" {
46
46
  type PacingLimit = "five_hour" | "weekly" | "spend";
47
47
  type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
48
48
  type ProvenancePartyKind = "person" | "agent";
49
+ type ResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
50
+ interface ResourceRef {
51
+ type: ResourceType;
52
+ id: string;
53
+ }
49
54
 
50
55
  type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
51
56
  type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
52
- type IssueProblemType = "question" | "action" | "design" | "decision_review";
57
+ type IssueProblemType = "design" | "question" | "action" | "decision_review";
53
58
  type DecisionOutcome = "answered" | "rejected";
54
59
  type IssueDependencyKind = "depends_on" | "conflict_on";
55
60
  type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
@@ -115,10 +120,9 @@ declare module "@danxbot/card-kit@1" {
115
120
  triage_enabled: boolean;
116
121
  content_hash: string;
117
122
  }
118
- type CommentResourceType = "issue" | "plan" | "problem" | "design" | "decision";
119
123
  interface CommentResourceTag {
120
124
  tag: string;
121
- resource_type: CommentResourceType | null;
125
+ resource_type: ResourceType | null;
122
126
  resource_id: string | null;
123
127
  }
124
128
  interface AuthorV2 {
@@ -230,14 +234,18 @@ declare module "@danxbot/card-kit@1" {
230
234
  at: string | null;
231
235
  }
232
236
 
233
- type QualityGatePhase = "plan" | "code";
234
-
235
237
  interface ViaKey {
236
238
  id: number;
237
239
  name: string;
238
240
  }
239
241
  type MirrorProviderId = "trello" | "slack" | "asana";
240
242
  type SourceOrigin = "danxbot" | MirrorProviderId | "";
243
+ type WorkMarkResourceType = "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "design" | "decision";
244
+ interface WorkMarkResource extends ResourceRef {
245
+ type: WorkMarkResourceType;
246
+ }
247
+
248
+ type QualityGatePhase = "plan" | "code";
241
249
  type ControlValue = boolean | string;
242
250
 
243
251
  type ControlSource = "card" | "plan" | "board" | "team" | "system";
@@ -269,6 +277,7 @@ declare module "@danxbot/card-kit@1" {
269
277
  } | null;
270
278
  landed_sha: string | null;
271
279
  failure_reason: string | null;
280
+ waiting_board_id: string | null;
272
281
  approve_solution_id: number;
273
282
  withdraw_solution_id: number;
274
283
  }
@@ -283,6 +292,10 @@ declare module "@danxbot/card-kit@1" {
283
292
  by_name: string | null;
284
293
  at: string | null;
285
294
  }
295
+ interface DecisionRecordPage {
296
+ offset: number;
297
+ target_found: boolean | null;
298
+ }
286
299
 
287
300
  type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
288
301
 
@@ -395,6 +408,7 @@ declare module "@danxbot/card-kit@1" {
395
408
  interface V2CopyDecisionVersion {
396
409
  version_no: number;
397
410
  action: DecisionRecordAction;
411
+ title: string;
398
412
  text: string;
399
413
  kind: DecisionRecordKind;
400
414
  impact: number;
@@ -954,6 +968,7 @@ declare module "@danxbot/card-kit@1" {
954
968
  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; };
955
969
  problem_total?: undefined | number;
956
970
  decision_record_total?: undefined | number;
971
+ decision_record_page?: undefined | DecisionRecordPage;
957
972
  decision_record_approved_total?: undefined | number;
958
973
  lane_header?: undefined | false | true;
959
974
  design_count?: undefined | number;
@@ -1029,6 +1044,7 @@ declare module "@danxbot/card-kit@1" {
1029
1044
  record_created_at: string;
1030
1045
  updated_at: string;
1031
1046
  action: "created" | "changed" | "deleted" | "restored";
1047
+ title: string;
1032
1048
  text: string;
1033
1049
  kind: "design" | "business_rule" | "architecture" | "other";
1034
1050
  impact: number;
@@ -1044,6 +1060,7 @@ declare module "@danxbot/card-kit@1" {
1044
1060
  via_key: null | ViaKey;
1045
1061
  created_at: string;
1046
1062
  comment_count: number;
1063
+ unread_comment_count: number;
1047
1064
  versions?: undefined | (Array<{
1048
1065
  id: number;
1049
1066
  record_id: number;
@@ -1051,6 +1068,7 @@ declare module "@danxbot/card-kit@1" {
1051
1068
  version_no: number;
1052
1069
  approval: DecisionApprovalState;
1053
1070
  action: "created" | "changed" | "deleted" | "restored";
1071
+ title: string;
1054
1072
  text: string;
1055
1073
  kind: "design" | "business_rule" | "architecture" | "other";
1056
1074
  impact: number;
@@ -1084,6 +1102,7 @@ declare module "@danxbot/card-kit@1" {
1084
1102
  version_no: number;
1085
1103
  approval: DecisionApprovalState;
1086
1104
  action: "created" | "changed" | "deleted" | "restored";
1105
+ title: string;
1087
1106
  text: string;
1088
1107
  kind: "design" | "business_rule" | "architecture" | "other";
1089
1108
  impact: number;
@@ -1109,6 +1128,15 @@ declare module "@danxbot/card-kit@1" {
1109
1128
  by_name: string;
1110
1129
  at: string;
1111
1130
  }>);
1131
+ work_marks?: undefined | Array<{
1132
+ id: number;
1133
+ via_key_id: number;
1134
+ resource: WorkMarkResource;
1135
+ note: string;
1136
+ by: AuthorV2;
1137
+ started_at: string;
1138
+ expires_at: string;
1139
+ }>;
1112
1140
  designs?: undefined | (Array<{
1113
1141
  id: number;
1114
1142
  design_no: number;
@@ -1263,7 +1291,7 @@ declare module "@danxbot/card-kit@1" {
1263
1291
  phase: "plan" | "code";
1264
1292
  };
1265
1293
  type ProblemViewV2 = {
1266
- type: "question" | "action" | "design" | "decision_review";
1294
+ type: "design" | "question" | "action" | "decision_review";
1267
1295
  open: boolean;
1268
1296
  ordinal: number;
1269
1297
  id: number;
@@ -1272,6 +1300,7 @@ declare module "@danxbot/card-kit@1" {
1272
1300
  content_hash: string;
1273
1301
  summary: null | string;
1274
1302
  comment_count: number;
1303
+ unread_comment_count: number;
1275
1304
  decisions: Array<{
1276
1305
  id: number;
1277
1306
  problem_id: number;
@@ -1310,6 +1339,7 @@ declare module "@danxbot/card-kit@1" {
1310
1339
  version_no: number;
1311
1340
  approval: DecisionApprovalState;
1312
1341
  action: "created" | "changed" | "deleted" | "restored";
1342
+ title: string;
1313
1343
  text: string;
1314
1344
  kind: "design" | "business_rule" | "architecture" | "other";
1315
1345
  impact: number;
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: 28 },
5894
+ { name: "@danxbot/ui", major: 30 },
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: 28 },
5889
+ { name: "@danxbot/ui", major: 30 },
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: 28 },
7
+ { name: "@danxbot/ui", major: 30 },
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.39",
3
+ "version": "0.2.41",
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": "^28.0.0",
36
+ "@danxbot/ui": "^30.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": "28.16.0",
49
+ "@danxbot/ui": "30.1.0",
50
50
  "@types/node": "^22.0.0",
51
51
  "@types/react": "^19.2.2",
52
52
  "esbuild": "^0.25.0",