@danxbot/plugin-sdk 0.2.38 → 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.
@@ -44,10 +44,17 @@ declare module "@danxbot/card-kit@1" {
44
44
  values: StatusReasonValues;
45
45
  }
46
46
  type PacingLimit = "five_hour" | "weekly" | "spend";
47
+ type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
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
+ }
47
54
 
48
55
  type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
49
56
  type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
50
- type IssueProblemType = "question" | "action" | "design" | "decision_review";
57
+ type IssueProblemType = "design" | "question" | "action" | "decision_review";
51
58
  type DecisionOutcome = "answered" | "rejected";
52
59
  type IssueDependencyKind = "depends_on" | "conflict_on";
53
60
  type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
@@ -113,10 +120,9 @@ declare module "@danxbot/card-kit@1" {
113
120
  triage_enabled: boolean;
114
121
  content_hash: string;
115
122
  }
116
- type CommentResourceType = "issue" | "plan" | "problem" | "design" | "decision";
117
123
  interface CommentResourceTag {
118
124
  tag: string;
119
- resource_type: CommentResourceType | null;
125
+ resource_type: ResourceType | null;
120
126
  resource_id: string | null;
121
127
  }
122
128
  interface AuthorV2 {
@@ -212,23 +218,34 @@ declare module "@danxbot/card-kit@1" {
212
218
  deleted_at: string | null;
213
219
  }
214
220
  type QualityGateStatus = "pending" | "pass" | "fail" | "skipped";
215
- type AnswerProvenanceSource = "comment" | "session_thread";
216
- interface DecisionProvenanceV2 {
217
- source: AnswerProvenanceSource;
218
- source_ref: string;
219
- quote: string;
220
- recorded_by: string;
221
- comment_issue_id: string | null;
221
+ interface ProvenanceRecordV2 {
222
+ id: number;
223
+ quote: string | null;
224
+ reasoning: string | null;
225
+ source: ProvenanceSourceV2 | null;
226
+ recorded_by: AuthorV2;
227
+ recorded_at: string;
228
+ }
229
+ interface ProvenanceSourceV2 {
230
+ kind: ProvenanceSourceKind;
231
+ ref: string;
232
+ card_id: string | null;
233
+ author: AuthorV2 | null;
234
+ at: string | null;
222
235
  }
223
236
 
224
- type QualityGatePhase = "plan" | "code";
225
-
226
237
  interface ViaKey {
227
238
  id: number;
228
239
  name: string;
229
240
  }
230
241
  type MirrorProviderId = "trello" | "slack" | "asana";
231
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";
232
249
  type ControlValue = boolean | string;
233
250
 
234
251
  type ControlSource = "card" | "plan" | "board" | "team" | "system";
@@ -260,12 +277,13 @@ declare module "@danxbot/card-kit@1" {
260
277
  } | null;
261
278
  landed_sha: string | null;
262
279
  failure_reason: string | null;
280
+ waiting_board_id: string | null;
263
281
  approve_solution_id: number;
264
282
  withdraw_solution_id: number;
265
283
  }
266
284
  type DecisionRecordKind = "design" | "business_rule" | "architecture" | "other";
267
285
  type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
268
- type DecisionMadeBy = "human" | "agent";
286
+ type DecisionMadeBy = "agent" | "human";
269
287
  type DecisionApprovalAction = "approve" | "unapprove";
270
288
 
271
289
  interface DecisionApprovalState {
@@ -274,11 +292,9 @@ declare module "@danxbot/card-kit@1" {
274
292
  by_name: string | null;
275
293
  at: string | null;
276
294
  }
277
- interface DecisionProvenanceView {
278
- text: string;
279
- problem_id: number | null;
280
- comment_id: number | null;
281
- card_id: string | null;
295
+ interface DecisionRecordPage {
296
+ offset: number;
297
+ target_found: boolean | null;
282
298
  }
283
299
 
284
300
  type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
@@ -392,6 +408,7 @@ declare module "@danxbot/card-kit@1" {
392
408
  interface V2CopyDecisionVersion {
393
409
  version_no: number;
394
410
  action: DecisionRecordAction;
411
+ title: string;
395
412
  text: string;
396
413
  kind: DecisionRecordKind;
397
414
  impact: number;
@@ -400,12 +417,7 @@ declare module "@danxbot/card-kit@1" {
400
417
  made_by_email: string | null;
401
418
  made_by_name: string | null;
402
419
  made_by_team_agent: string | null;
403
- provenance: {
404
- text: string;
405
- problem_index: number | null;
406
- comment_index: number | null;
407
- card_id: string | null;
408
- };
420
+ provenance: V2CopyProvenanceRecord[];
409
421
  author: string;
410
422
  team_agent: string | null;
411
423
  created_at: string;
@@ -499,14 +511,29 @@ declare module "@danxbot/card-kit@1" {
499
511
  decided_by: string;
500
512
  decided_at: string;
501
513
  retracted_at: string | null;
502
- provenance: V2CopyDecisionProvenance | null;
514
+ provenance: V2CopyProvenanceRecord | null;
503
515
  }
504
- interface V2CopyDecisionProvenance {
505
- source: AnswerProvenanceSource;
506
- source_ref: string;
507
- quote: string;
508
- recorded_by: string;
516
+ interface V2CopyProvenanceParty {
517
+ kind: ProvenancePartyKind;
518
+ email: string | null;
519
+ team_agent: string | null;
520
+ name: string;
521
+ }
522
+ interface V2CopyProvenanceSource {
523
+ kind: ProvenanceSourceKind;
524
+ ref: string;
509
525
  comment_index: number | null;
526
+ problem_index: number | null;
527
+ card_linked: boolean;
528
+ author: V2CopyProvenanceParty | null;
529
+ at: string | null;
530
+ }
531
+ interface V2CopyProvenanceRecord {
532
+ quote: string | null;
533
+ reasoning: string | null;
534
+ source: V2CopyProvenanceSource | null;
535
+ recorded_by: V2CopyProvenanceParty;
536
+ recorded_at: string;
510
537
  }
511
538
  interface V2CopyProblem {
512
539
  statement: string;
@@ -576,7 +603,7 @@ declare module "@danxbot/card-kit@1" {
576
603
  name: string;
577
604
  avatar_url: string | null;
578
605
  }
579
- type AssignedAgentKind = "session" | "person" | "worker" | "label";
606
+ type AssignedAgentKind = "person" | "session" | "worker" | "label";
580
607
 
581
608
  interface UsageTokenCounts {
582
609
  input: number;
@@ -941,6 +968,8 @@ declare module "@danxbot/card-kit@1" {
941
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; };
942
969
  problem_total?: undefined | number;
943
970
  decision_record_total?: undefined | number;
971
+ decision_record_page?: undefined | DecisionRecordPage;
972
+ decision_record_approved_total?: undefined | number;
944
973
  lane_header?: undefined | false | true;
945
974
  design_count?: undefined | number;
946
975
  open_action_count?: undefined | number;
@@ -950,7 +979,7 @@ declare module "@danxbot/card-kit@1" {
950
979
  dispatch?: undefined | null | { started_at: string | null; };
951
980
  dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
952
981
  assignment_mode?: undefined | "manual" | "automated";
953
- assigned_agent_kind?: undefined | null | "session" | "person" | "worker" | "label";
982
+ assigned_agent_kind?: undefined | null | "person" | "session" | "worker" | "label";
954
983
  assigned_agent_pause?: undefined | null | HolderAgentPause;
955
984
  assigned_agent_repo_copy?: undefined | null | RepoProfileCopy;
956
985
  latest_work_dispatch?: undefined | null | LatestWorkDispatchViewV2;
@@ -1015,21 +1044,23 @@ declare module "@danxbot/card-kit@1" {
1015
1044
  record_created_at: string;
1016
1045
  updated_at: string;
1017
1046
  action: "created" | "changed" | "deleted" | "restored";
1047
+ title: string;
1018
1048
  text: string;
1019
1049
  kind: "design" | "business_rule" | "architecture" | "other";
1020
1050
  impact: number;
1021
1051
  confidence: number;
1022
- made_by: "human" | "agent";
1052
+ made_by: "agent" | "human";
1023
1053
  made_by_user_id: null | number;
1024
1054
  made_by_name: null | string;
1025
1055
  made_by_author: AuthorV2;
1026
1056
  made_by_is_writer: boolean;
1027
- provenance: DecisionProvenanceView;
1057
+ provenance: Array<ProvenanceRecordV2>;
1028
1058
  author: string;
1029
1059
  by: AuthorV2;
1030
1060
  via_key: null | ViaKey;
1031
1061
  created_at: string;
1032
1062
  comment_count: number;
1063
+ unread_comment_count: number;
1033
1064
  versions?: undefined | (Array<{
1034
1065
  id: number;
1035
1066
  record_id: number;
@@ -1037,16 +1068,17 @@ declare module "@danxbot/card-kit@1" {
1037
1068
  version_no: number;
1038
1069
  approval: DecisionApprovalState;
1039
1070
  action: "created" | "changed" | "deleted" | "restored";
1071
+ title: string;
1040
1072
  text: string;
1041
1073
  kind: "design" | "business_rule" | "architecture" | "other";
1042
1074
  impact: number;
1043
1075
  confidence: number;
1044
- made_by: "human" | "agent";
1076
+ made_by: "agent" | "human";
1045
1077
  made_by_user_id: null | number;
1046
1078
  made_by_name: null | string;
1047
1079
  made_by_author: AuthorV2;
1048
1080
  made_by_is_writer: boolean;
1049
- provenance: DecisionProvenanceView;
1081
+ provenance: Array<ProvenanceRecordV2>;
1050
1082
  author: string;
1051
1083
  by: AuthorV2;
1052
1084
  via_key: null | ViaKey;
@@ -1070,16 +1102,17 @@ declare module "@danxbot/card-kit@1" {
1070
1102
  version_no: number;
1071
1103
  approval: DecisionApprovalState;
1072
1104
  action: "created" | "changed" | "deleted" | "restored";
1105
+ title: string;
1073
1106
  text: string;
1074
1107
  kind: "design" | "business_rule" | "architecture" | "other";
1075
1108
  impact: number;
1076
1109
  confidence: number;
1077
- made_by: "human" | "agent";
1110
+ made_by: "agent" | "human";
1078
1111
  made_by_user_id: null | number;
1079
1112
  made_by_name: null | string;
1080
1113
  made_by_author: AuthorV2;
1081
1114
  made_by_is_writer: boolean;
1082
- provenance: DecisionProvenanceView;
1115
+ provenance: Array<ProvenanceRecordV2>;
1083
1116
  author: string;
1084
1117
  by: AuthorV2;
1085
1118
  via_key: null | ViaKey;
@@ -1095,6 +1128,15 @@ declare module "@danxbot/card-kit@1" {
1095
1128
  by_name: string;
1096
1129
  at: string;
1097
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
+ }>;
1098
1140
  designs?: undefined | (Array<{
1099
1141
  id: number;
1100
1142
  design_no: number;
@@ -1249,7 +1291,7 @@ declare module "@danxbot/card-kit@1" {
1249
1291
  phase: "plan" | "code";
1250
1292
  };
1251
1293
  type ProblemViewV2 = {
1252
- type: "question" | "action" | "design" | "decision_review";
1294
+ type: "design" | "question" | "action" | "decision_review";
1253
1295
  open: boolean;
1254
1296
  ordinal: number;
1255
1297
  id: number;
@@ -1258,6 +1300,7 @@ declare module "@danxbot/card-kit@1" {
1258
1300
  content_hash: string;
1259
1301
  summary: null | string;
1260
1302
  comment_count: number;
1303
+ unread_comment_count: number;
1261
1304
  decisions: Array<{
1262
1305
  id: number;
1263
1306
  problem_id: number;
@@ -1271,7 +1314,7 @@ declare module "@danxbot/card-kit@1" {
1271
1314
  decided_at: string;
1272
1315
  retracted_at: null | string;
1273
1316
  relayed_by_session: null | string;
1274
- provenance: null | DecisionProvenanceV2;
1317
+ provenance: null | ProvenanceRecordV2;
1275
1318
  content_hash: string;
1276
1319
  }>;
1277
1320
  feedback_consent: boolean;
@@ -1296,16 +1339,17 @@ declare module "@danxbot/card-kit@1" {
1296
1339
  version_no: number;
1297
1340
  approval: DecisionApprovalState;
1298
1341
  action: "created" | "changed" | "deleted" | "restored";
1342
+ title: string;
1299
1343
  text: string;
1300
1344
  kind: "design" | "business_rule" | "architecture" | "other";
1301
1345
  impact: number;
1302
1346
  confidence: number;
1303
- made_by: "human" | "agent";
1347
+ made_by: "agent" | "human";
1304
1348
  made_by_user_id: null | number;
1305
1349
  made_by_name: null | string;
1306
1350
  made_by_author: AuthorV2;
1307
1351
  made_by_is_writer: boolean;
1308
- provenance: DecisionProvenanceView;
1352
+ provenance: Array<ProvenanceRecordV2>;
1309
1353
  author: string;
1310
1354
  by: AuthorV2;
1311
1355
  via_key: null | ViaKey;
@@ -1400,7 +1444,7 @@ declare module "@danxbot/card-kit@1" {
1400
1444
  decided_at: string;
1401
1445
  retracted_at: string | null;
1402
1446
  relayed_by_session: string | null;
1403
- provenance: DecisionProvenanceV2 | null;
1447
+ provenance: ProvenanceRecordV2 | null;
1404
1448
  content_hash: string;
1405
1449
  }
1406
1450
  interface CardRefViewV2 {
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.38",
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.14.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",