@danxbot/plugin-sdk 0.2.5 → 0.2.7

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 +15 -16
  2. package/package.json +2 -2
@@ -72,6 +72,15 @@ declare module "@danxbot/card-kit@1" {
72
72
  triage_enabled: boolean;
73
73
  content_hash: string;
74
74
  }
75
+ type CommentTagV2 = {
76
+ kind: "problem";
77
+ ref: number;
78
+ };
79
+ interface AuthorV2 {
80
+ name: string;
81
+ kind: "agent" | "person";
82
+ avatar_url: string | null;
83
+ }
75
84
  type ChecklistItemStatus$1 = "incomplete" | "failing" | "passing" | "cancelled" | "deferred";
76
85
  interface ChecklistV2 {
77
86
  id: number;
@@ -486,18 +495,6 @@ declare module "@danxbot/card-kit@1" {
486
495
  tests: RetroTestViewV2[];
487
496
  commit_url_base?: string | null;
488
497
  }
489
- interface CommentViewV2 {
490
- id: string;
491
- author: string;
492
- timestamp: string;
493
- text: string;
494
- updated_at: string;
495
- origin: SourceOrigin;
496
- via_key?: ViaKey | null;
497
- metadata?: unknown | null;
498
- answers_decision_id?: number | null;
499
- problem_id?: number | null;
500
- }
501
498
  interface AttachmentViewV2 {
502
499
  id: number;
503
500
  source: SourceOrigin;
@@ -560,6 +557,7 @@ declare module "@danxbot/card-kit@1" {
560
557
  comments?: undefined | (Array<{
561
558
  id: string;
562
559
  author: string;
560
+ by: AuthorV2;
563
561
  timestamp: string;
564
562
  text: string;
565
563
  updated_at: string;
@@ -567,7 +565,7 @@ declare module "@danxbot/card-kit@1" {
567
565
  via_key?: undefined | null | ViaKey;
568
566
  metadata?: unknown;
569
567
  answers_decision_id?: undefined | null | number;
570
- problem_id?: undefined | null | number;
568
+ tags: Array<CommentTagV2>;
571
569
  }>);
572
570
  checklists?: undefined | Array<ChecklistView>;
573
571
  attachments?: undefined | (Array<{
@@ -679,6 +677,7 @@ declare module "@danxbot/card-kit@1" {
679
677
  agent_notes?: undefined | (Array<{
680
678
  id: string;
681
679
  author: string;
680
+ by: AuthorV2;
682
681
  via_key: null | ViaKey;
683
682
  timestamp: string;
684
683
  updated_at: string;
@@ -843,6 +842,7 @@ declare module "@danxbot/card-kit@1" {
843
842
  }>;
844
843
  feedback_consent: boolean;
845
844
  choice_locked: boolean;
845
+ comment_count: number;
846
846
  issue_id: string;
847
847
  statement: string;
848
848
  context: null | string;
@@ -852,7 +852,6 @@ declare module "@danxbot/card-kit@1" {
852
852
  title: string;
853
853
  id: number;
854
854
  content_hash: string;
855
- problem_id: number;
856
855
  body: string;
857
856
  steps_hash: string;
858
857
  steps: Array<{
@@ -867,6 +866,7 @@ declare module "@danxbot/card-kit@1" {
867
866
  checked_by: null | string;
868
867
  steps: Array<SolutionStepViewV2>;
869
868
  }>;
869
+ problem_id: number;
870
870
  removed: boolean;
871
871
  pro: string;
872
872
  con: string;
@@ -1071,10 +1071,9 @@ declare module "@danxbot/card-kit@1" {
1071
1071
  choiceLocked: boolean;
1072
1072
  }
1073
1073
 
1074
- function ProblemsSection({ cardId, problems, comments, canAnswer, mutation, }: {
1074
+ function ProblemsSection({ cardId, problems, canAnswer, mutation, }: {
1075
1075
  cardId: string;
1076
1076
  problems: ProblemAttention[];
1077
- comments: readonly CommentViewV2[];
1078
1077
  canAnswer: boolean;
1079
1078
  mutation: CardMutation;
1080
1079
  }): react.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/plugin-sdk",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
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.2.0",
49
+ "@danxbot/ui": "27.7.0",
50
50
  "@types/node": "^22.0.0",
51
51
  "@types/react": "^19.2.2",
52
52
  "esbuild": "^0.25.0",