@danxbot/plugin-sdk 0.2.1 → 0.2.3
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.
- package/dist/card-kit.d.ts +72 -43
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -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
|
|
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}`;
|
|
@@ -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 = "" |
|
|
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;
|
|
@@ -381,7 +389,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
381
389
|
interface V2CopyProblem {
|
|
382
390
|
statement: string;
|
|
383
391
|
context: string | null;
|
|
384
|
-
type:
|
|
392
|
+
type: IssueAuthoredProblemType;
|
|
385
393
|
summary: string | null;
|
|
386
394
|
removed: boolean;
|
|
387
395
|
solutions: V2CopySolution[];
|
|
@@ -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"
|
|
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"
|
|
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>;
|
|
@@ -799,42 +819,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
799
819
|
phase: "plan" | "code";
|
|
800
820
|
};
|
|
801
821
|
type ProblemViewV2 = {
|
|
802
|
-
|
|
803
|
-
|
|
822
|
+
type: "question" | "action" | "design";
|
|
823
|
+
open: boolean;
|
|
804
824
|
ordinal: number;
|
|
805
|
-
|
|
806
|
-
context: null | string;
|
|
807
|
-
type: "question" | "action";
|
|
808
|
-
summary: null | string;
|
|
809
|
-
content_hash: string;
|
|
825
|
+
id: number;
|
|
810
826
|
created_at: string;
|
|
811
827
|
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
|
-
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
828
|
content_hash: string;
|
|
833
|
-
|
|
834
|
-
checked_by: null | string;
|
|
835
|
-
steps: Array<SolutionStepViewV2>;
|
|
836
|
-
}>;
|
|
837
|
-
}>;
|
|
829
|
+
summary: null | string;
|
|
838
830
|
decisions: Array<{
|
|
839
831
|
id: number;
|
|
840
832
|
problem_id: number;
|
|
@@ -849,17 +841,19 @@ declare module "@danxbot/card-kit@1" {
|
|
|
849
841
|
relayed_by_session: null | string;
|
|
850
842
|
content_hash: string;
|
|
851
843
|
}>;
|
|
844
|
+
feedback_consent: boolean;
|
|
845
|
+
choice_locked: boolean;
|
|
846
|
+
issue_id: string;
|
|
847
|
+
statement: string;
|
|
848
|
+
context: null | string;
|
|
849
|
+
solutions: Array<SolutionViewV2>;
|
|
852
850
|
};
|
|
853
851
|
type SolutionViewV2 = {
|
|
852
|
+
title: string;
|
|
854
853
|
id: number;
|
|
854
|
+
content_hash: string;
|
|
855
855
|
problem_id: number;
|
|
856
|
-
removed: boolean;
|
|
857
|
-
title: string;
|
|
858
856
|
body: string;
|
|
859
|
-
pro: string;
|
|
860
|
-
con: string;
|
|
861
|
-
recommended: boolean;
|
|
862
|
-
content_hash: string;
|
|
863
857
|
steps_hash: string;
|
|
864
858
|
steps: Array<{
|
|
865
859
|
id: number;
|
|
@@ -873,6 +867,40 @@ declare module "@danxbot/card-kit@1" {
|
|
|
873
867
|
checked_by: null | string;
|
|
874
868
|
steps: Array<SolutionStepViewV2>;
|
|
875
869
|
}>;
|
|
870
|
+
removed: boolean;
|
|
871
|
+
pro: string;
|
|
872
|
+
con: string;
|
|
873
|
+
recommended: boolean;
|
|
874
|
+
design?: undefined | (Array<{
|
|
875
|
+
design_no: number;
|
|
876
|
+
title: string;
|
|
877
|
+
created_by: string;
|
|
878
|
+
created_at: string;
|
|
879
|
+
review_state: "rejected" | "awaiting_review" | "changes_requested" | "approved";
|
|
880
|
+
revision_count: number;
|
|
881
|
+
latest_revision_no: number;
|
|
882
|
+
revisions?: undefined | (Array<{
|
|
883
|
+
revision_no: number;
|
|
884
|
+
target: string;
|
|
885
|
+
entry: string;
|
|
886
|
+
built_from_commit: string;
|
|
887
|
+
note: string;
|
|
888
|
+
created_by: string;
|
|
889
|
+
created_at: string;
|
|
890
|
+
bundle_bytes: null | number;
|
|
891
|
+
bundle_available: boolean;
|
|
892
|
+
screenshot_available: boolean;
|
|
893
|
+
source_files?: undefined | Array<DesignSourceFile>;
|
|
894
|
+
}>);
|
|
895
|
+
decisions?: undefined | (Array<{
|
|
896
|
+
decision_id: number;
|
|
897
|
+
revision_no: number;
|
|
898
|
+
outcome: "rejected" | "changes_requested" | "approved";
|
|
899
|
+
note: null | string;
|
|
900
|
+
decided_by: string;
|
|
901
|
+
created_at: string;
|
|
902
|
+
}>);
|
|
903
|
+
}>);
|
|
876
904
|
};
|
|
877
905
|
interface SolutionStepViewV2 {
|
|
878
906
|
id: number;
|
|
@@ -1040,6 +1068,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1040
1068
|
solutions: SolutionViewV2[];
|
|
1041
1069
|
removedSolutionIds: ReadonlySet<number>;
|
|
1042
1070
|
decisions: DecisionViewV2[];
|
|
1071
|
+
choiceLocked: boolean;
|
|
1043
1072
|
}
|
|
1044
1073
|
|
|
1045
1074
|
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.
|
|
3
|
+
"version": "0.2.3",
|
|
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": "26.
|
|
49
|
+
"@danxbot/ui": "26.27.0",
|
|
50
50
|
"@types/node": "^22.0.0",
|
|
51
51
|
"@types/react": "^19.2.2",
|
|
52
52
|
"esbuild": "^0.25.0",
|