@danxbot/plugin-sdk 0.2.2 → 0.2.4

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 +23 -3
  2. package/package.json +3 -3
@@ -148,7 +148,7 @@ declare module "@danxbot/card-kit@1" {
148
148
  name: string;
149
149
  }
150
150
  type MirrorProviderId = "trello" | "slack" | "asana";
151
- type SourceOrigin = "" | "trello" | "slack" | "asana" | "danxbot" | "card-only";
151
+ type SourceOrigin = "danxbot" | MirrorProviderId | "";
152
152
  type ControlValue = boolean | string;
153
153
 
154
154
  type ControlSource = "card" | "plan" | "board" | "parent" | "system";
@@ -304,6 +304,14 @@ declare module "@danxbot/card-kit@1" {
304
304
  author: string;
305
305
  text: string;
306
306
  }
307
+ interface V2CopyAgentNote {
308
+ author: string;
309
+ text: string;
310
+ metadata: Record<string, unknown> | null;
311
+ ordinal: number;
312
+ created_at: string;
313
+ updated_at: string;
314
+ }
307
315
  interface V2CopyAc {
308
316
  title: string;
309
317
  checked: boolean;
@@ -406,6 +414,7 @@ declare module "@danxbot/card-kit@1" {
406
414
  ac: V2CopyAc[];
407
415
  checklists: V2CopyChecklist[];
408
416
  comments: V2CopyComment[];
417
+ agent_notes: V2CopyAgentNote[];
409
418
  dependencies: V2CopyDependency[];
410
419
  retro: V2CopyRetro | null;
411
420
  mirrors: V2CopyMirror[];
@@ -554,7 +563,7 @@ declare module "@danxbot/card-kit@1" {
554
563
  timestamp: string;
555
564
  text: string;
556
565
  updated_at: string;
557
- origin: "" | "trello" | "slack" | "asana" | "danxbot" | "card-only";
566
+ origin: "" | "trello" | "slack" | "asana" | "danxbot";
558
567
  via_key?: undefined | null | ViaKey;
559
568
  metadata?: unknown;
560
569
  answers_decision_id?: undefined | null | number;
@@ -563,7 +572,7 @@ declare module "@danxbot/card-kit@1" {
563
572
  checklists?: undefined | Array<ChecklistView>;
564
573
  attachments?: undefined | (Array<{
565
574
  id: number;
566
- source: "" | "trello" | "slack" | "asana" | "danxbot" | "card-only";
575
+ source: "" | "trello" | "slack" | "asana" | "danxbot";
567
576
  url: string;
568
577
  filename: string;
569
578
  mime: string;
@@ -647,6 +656,7 @@ declare module "@danxbot/card-kit@1" {
647
656
  ac_done?: undefined | number;
648
657
  ac_items?: undefined | (Array<{ title: string; status: "incomplete" | "failing" | "passing" | "cancelled" | "deferred"; }>);
649
658
  comments_count?: undefined | number;
659
+ agent_notes_count?: undefined | number;
650
660
  has_retro?: undefined | false | true;
651
661
  primary_attachment?: undefined | null | AttachmentPreviewV2;
652
662
  in_progress_derived?: undefined | false | true;
@@ -666,6 +676,15 @@ declare module "@danxbot/card-kit@1" {
666
676
  dispatchable_explain?: undefined | DispatchableExplainView;
667
677
  copy_payload?: undefined | V2CopyPayload;
668
678
  copy_issue?: undefined | V2CopyIssue;
679
+ agent_notes?: undefined | (Array<{
680
+ id: string;
681
+ author: string;
682
+ via_key: null | ViaKey;
683
+ timestamp: string;
684
+ updated_at: string;
685
+ text: string;
686
+ metadata: unknown;
687
+ }>);
669
688
  designs?: undefined | (Array<{
670
689
  design_no: number;
671
690
  title: string;
@@ -778,6 +797,7 @@ declare module "@danxbot/card-kit@1" {
778
797
  fallback: null | ControlFallback;
779
798
  }>);
780
799
  comments_page?: undefined | RelationPageView;
800
+ agent_notes_page?: undefined | RelationPageView;
781
801
  history_page?: undefined | RelationPageView;
782
802
  problems?: undefined | Array<ProblemViewV2>;
783
803
  subtree?: undefined | Array<IssueViewV2>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/plugin-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
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": "^26.0.0",
36
+ "@danxbot/ui": "^27.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": "26.23.0",
49
+ "@danxbot/ui": "27.0.0",
50
50
  "@types/node": "^22.0.0",
51
51
  "@types/react": "^19.2.2",
52
52
  "esbuild": "^0.25.0",