@danxbot/plugin-sdk 0.2.1 → 0.2.2

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 +49 -40
  2. package/package.json +1 -1
@@ -8,7 +8,7 @@ declare module "@danxbot/card-kit@1" {
8
8
 
9
9
  type IssueStatus$1 = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
10
10
  type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
11
- type IssueProblemType = "question" | "action";
11
+ type IssueAuthoredProblemType = "question" | "action";
12
12
  type DecisionOutcome = "answered" | "rejected";
13
13
  type IssueDependencyKind = "depends_on" | "conflict_on";
14
14
  type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
@@ -381,7 +381,7 @@ declare module "@danxbot/card-kit@1" {
381
381
  interface V2CopyProblem {
382
382
  statement: string;
383
383
  context: string | null;
384
- type: IssueProblemType;
384
+ type: IssueAuthoredProblemType;
385
385
  summary: string | null;
386
386
  removed: boolean;
387
387
  solutions: V2CopySolution[];
@@ -799,42 +799,14 @@ declare module "@danxbot/card-kit@1" {
799
799
  phase: "plan" | "code";
800
800
  };
801
801
  type ProblemViewV2 = {
802
- id: number;
803
- issue_id: string;
802
+ type: "question" | "action" | "design";
803
+ open: boolean;
804
804
  ordinal: number;
805
- statement: string;
806
- context: null | string;
807
- type: "question" | "action";
808
- summary: null | string;
809
- content_hash: string;
805
+ id: number;
810
806
  created_at: string;
811
807
  updated_at: string;
812
- feedback_consent: boolean;
813
- open: boolean;
814
- solutions: Array<{
815
- id: number;
816
- problem_id: number;
817
- removed: boolean;
818
- title: string;
819
- body: string;
820
- pro: string;
821
- con: string;
822
- recommended: boolean;
823
808
  content_hash: string;
824
- steps_hash: string;
825
- steps: Array<{
826
- id: number;
827
- solution_id: number;
828
- parent_step_id: null | number;
829
- label: string;
830
- title: string;
831
- description: null | string;
832
- content_hash: string;
833
- checked_at: null | string;
834
- checked_by: null | string;
835
- steps: Array<SolutionStepViewV2>;
836
- }>;
837
- }>;
809
+ summary: null | string;
838
810
  decisions: Array<{
839
811
  id: number;
840
812
  problem_id: number;
@@ -849,17 +821,19 @@ declare module "@danxbot/card-kit@1" {
849
821
  relayed_by_session: null | string;
850
822
  content_hash: string;
851
823
  }>;
824
+ feedback_consent: boolean;
825
+ choice_locked: boolean;
826
+ issue_id: string;
827
+ statement: string;
828
+ context: null | string;
829
+ solutions: Array<SolutionViewV2>;
852
830
  };
853
831
  type SolutionViewV2 = {
832
+ title: string;
854
833
  id: number;
834
+ content_hash: string;
855
835
  problem_id: number;
856
- removed: boolean;
857
- title: string;
858
836
  body: string;
859
- pro: string;
860
- con: string;
861
- recommended: boolean;
862
- content_hash: string;
863
837
  steps_hash: string;
864
838
  steps: Array<{
865
839
  id: number;
@@ -873,6 +847,40 @@ declare module "@danxbot/card-kit@1" {
873
847
  checked_by: null | string;
874
848
  steps: Array<SolutionStepViewV2>;
875
849
  }>;
850
+ removed: boolean;
851
+ pro: string;
852
+ con: string;
853
+ recommended: boolean;
854
+ design?: undefined | (Array<{
855
+ design_no: number;
856
+ title: string;
857
+ created_by: string;
858
+ created_at: string;
859
+ review_state: "rejected" | "awaiting_review" | "changes_requested" | "approved";
860
+ revision_count: number;
861
+ latest_revision_no: number;
862
+ revisions?: undefined | (Array<{
863
+ revision_no: number;
864
+ target: string;
865
+ entry: string;
866
+ built_from_commit: string;
867
+ note: string;
868
+ created_by: string;
869
+ created_at: string;
870
+ bundle_bytes: null | number;
871
+ bundle_available: boolean;
872
+ screenshot_available: boolean;
873
+ source_files?: undefined | Array<DesignSourceFile>;
874
+ }>);
875
+ decisions?: undefined | (Array<{
876
+ decision_id: number;
877
+ revision_no: number;
878
+ outcome: "rejected" | "changes_requested" | "approved";
879
+ note: null | string;
880
+ decided_by: string;
881
+ created_at: string;
882
+ }>);
883
+ }>);
876
884
  };
877
885
  interface SolutionStepViewV2 {
878
886
  id: number;
@@ -1040,6 +1048,7 @@ declare module "@danxbot/card-kit@1" {
1040
1048
  solutions: SolutionViewV2[];
1041
1049
  removedSolutionIds: ReadonlySet<number>;
1042
1050
  decisions: DecisionViewV2[];
1051
+ choiceLocked: boolean;
1043
1052
  }
1044
1053
 
1045
1054
  function ProblemsSection({ cardId, problems, comments, canAnswer, mutation, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/plugin-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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",