@50arms/plugin-sdk 0.2.56 → 0.2.59
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 +186 -132
- package/dist/cli.js +183 -44
- package/dist/publish.js +168 -41
- package/dist/vite.js +186 -58
- package/dist/widgets.js +5 -1
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -28,20 +28,20 @@ declare module "@danxbot/card-kit@1" {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
type CardTypeKey = string;
|
|
31
|
-
type MirrorProviderId = "trello" | "slack" | "asana";
|
|
31
|
+
type MirrorProviderId = "trello" | "slack" | "asana" | "linear";
|
|
32
32
|
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
33
|
-
interface RepoProfileCopy {
|
|
34
|
-
shipped: string;
|
|
35
|
-
repo: string;
|
|
36
|
-
}
|
|
37
|
-
type ProfileNameId = string;
|
|
38
|
-
type ProfileName = StatusReason | ProfileNameMessage;
|
|
39
33
|
|
|
40
34
|
type ListType$1 = "and" | "or" | "semicolon";
|
|
41
35
|
interface ListValue<Item> {
|
|
42
36
|
list: readonly Item[];
|
|
43
37
|
type?: ListType$1;
|
|
44
38
|
}
|
|
39
|
+
interface RepoProfileCopy {
|
|
40
|
+
shipped: string;
|
|
41
|
+
repo: string;
|
|
42
|
+
}
|
|
43
|
+
type ProfileNameId = string;
|
|
44
|
+
type ProfileName = StatusReason | ProfileNameMessage;
|
|
45
45
|
type StatusReasonId = string;
|
|
46
46
|
type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReasonSentences | StatusReasonLines | StatusReasonList>;
|
|
47
47
|
interface ProfileNameMessage {
|
|
@@ -59,16 +59,56 @@ declare module "@danxbot/card-kit@1" {
|
|
|
59
59
|
id: StatusReasonId;
|
|
60
60
|
values: StatusReasonValues;
|
|
61
61
|
}
|
|
62
|
-
type
|
|
62
|
+
type DecisionRecordKind = "business_rule" | "architecture" | "design" | "other";
|
|
63
|
+
type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
|
|
64
|
+
type DecisionMadeBy = "human" | "agent";
|
|
65
|
+
type DecisionApprovalAction = "approve" | "unapprove";
|
|
63
66
|
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
|
|
64
|
-
type ProvenancePartyKind = "
|
|
65
|
-
|
|
67
|
+
type ProvenancePartyKind = "agent" | "person";
|
|
68
|
+
|
|
69
|
+
interface DecisionApprovalState {
|
|
70
|
+
approved: boolean;
|
|
71
|
+
by_user_id: number | null;
|
|
72
|
+
by_name: string | null;
|
|
73
|
+
at: string | null;
|
|
74
|
+
}
|
|
75
|
+
interface DecisionContentView {
|
|
76
|
+
action: DecisionRecordAction;
|
|
77
|
+
title: string;
|
|
78
|
+
text: string;
|
|
79
|
+
kind: DecisionRecordKind;
|
|
80
|
+
impact: number;
|
|
81
|
+
confidence: number;
|
|
82
|
+
made_by: DecisionMadeBy;
|
|
83
|
+
made_by_user_id: number | null;
|
|
84
|
+
made_by_name: string | null;
|
|
85
|
+
made_by_author: AuthorV2;
|
|
86
|
+
made_by_is_writer: boolean;
|
|
87
|
+
provenance: ProvenanceRecordV2[];
|
|
88
|
+
author: string;
|
|
89
|
+
by: AuthorV2;
|
|
90
|
+
via_key: ViaKey | null;
|
|
91
|
+
created_at: string;
|
|
92
|
+
}
|
|
93
|
+
interface DecisionVersionView extends DecisionContentView {
|
|
94
|
+
id: number;
|
|
95
|
+
record_id: number;
|
|
96
|
+
ref: string;
|
|
97
|
+
version_no: number;
|
|
98
|
+
approval: DecisionApprovalState;
|
|
99
|
+
}
|
|
100
|
+
interface DecisionRecordPage {
|
|
101
|
+
offset: number;
|
|
102
|
+
target_found: boolean | null;
|
|
103
|
+
}
|
|
104
|
+
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
105
|
+
type ResourceType = "plan" | "design" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
66
106
|
interface ResourceRef {
|
|
67
107
|
type: ResourceType;
|
|
68
108
|
id: string;
|
|
69
109
|
}
|
|
70
110
|
type RiskScore = "R0" | "R1" | "R2" | "R3" | "R4";
|
|
71
|
-
type WorkMarkResourceType = "plan" | "
|
|
111
|
+
type WorkMarkResourceType = "plan" | "design" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
72
112
|
interface WorkMarkResource extends ResourceRef {
|
|
73
113
|
type: WorkMarkResourceType;
|
|
74
114
|
}
|
|
@@ -130,21 +170,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
130
170
|
compare_url: string | null;
|
|
131
171
|
updated_at: string;
|
|
132
172
|
}
|
|
133
|
-
type DecisionRecordKind = "design" | "business_rule" | "architecture" | "other";
|
|
134
|
-
type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
|
|
135
|
-
type DecisionMadeBy = "agent" | "human";
|
|
136
|
-
type DecisionApprovalAction = "approve" | "unapprove";
|
|
137
|
-
|
|
138
|
-
interface DecisionApprovalState {
|
|
139
|
-
approved: boolean;
|
|
140
|
-
by_user_id: number | null;
|
|
141
|
-
by_name: string | null;
|
|
142
|
-
at: string | null;
|
|
143
|
-
}
|
|
144
|
-
interface DecisionRecordPage {
|
|
145
|
-
offset: number;
|
|
146
|
-
target_found: boolean | null;
|
|
147
|
-
}
|
|
148
173
|
type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
|
|
149
174
|
|
|
150
175
|
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
@@ -275,6 +300,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
275
300
|
}
|
|
276
301
|
interface V2CopyDecisionVersion {
|
|
277
302
|
version_no: number;
|
|
303
|
+
quality_gate_round: V2CopyRoundRef | null;
|
|
278
304
|
action: DecisionRecordAction;
|
|
279
305
|
title: string;
|
|
280
306
|
text: string;
|
|
@@ -301,8 +327,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
301
327
|
}
|
|
302
328
|
interface V2CopyChecklist {
|
|
303
329
|
name: string;
|
|
330
|
+
quality_gate_round: V2CopyRoundRef | null;
|
|
304
331
|
items: V2CopyChecklistItem[];
|
|
305
332
|
}
|
|
333
|
+
interface V2CopyRoundRef {
|
|
334
|
+
gate: string;
|
|
335
|
+
number: number;
|
|
336
|
+
}
|
|
306
337
|
interface V2CopyChecklistItem {
|
|
307
338
|
label: string;
|
|
308
339
|
detail: string;
|
|
@@ -353,7 +384,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
353
384
|
decided_by: string | null;
|
|
354
385
|
owed: boolean;
|
|
355
386
|
}
|
|
356
|
-
type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key">;
|
|
387
|
+
type V2CopyGateRound = Omit<GateRoundV2, "id" | "by" | "via_key" | "decision_versions">;
|
|
357
388
|
interface V2CopySolution extends SolutionContent {
|
|
358
389
|
removed: boolean;
|
|
359
390
|
design_index: number | null;
|
|
@@ -466,7 +497,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
466
497
|
interface HolderAgentPause {
|
|
467
498
|
reason: string;
|
|
468
499
|
since: string;
|
|
469
|
-
until: string;
|
|
500
|
+
until: string | null;
|
|
470
501
|
}
|
|
471
502
|
|
|
472
503
|
interface AgentIdentity {
|
|
@@ -545,6 +576,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
545
576
|
content: string;
|
|
546
577
|
}
|
|
547
578
|
|
|
579
|
+
type NotificationText = {
|
|
580
|
+
kind: "reason";
|
|
581
|
+
reason: StatusReason;
|
|
582
|
+
} | {
|
|
583
|
+
kind: "external";
|
|
584
|
+
text: string;
|
|
585
|
+
};
|
|
586
|
+
|
|
548
587
|
type PreGateHold = {
|
|
549
588
|
kind: "awaiting_person";
|
|
550
589
|
} | {
|
|
@@ -645,11 +684,24 @@ declare module "@danxbot/card-kit@1" {
|
|
|
645
684
|
gate: string;
|
|
646
685
|
detail: string;
|
|
647
686
|
}[];
|
|
687
|
+
runnable_review: string | null;
|
|
648
688
|
picker_routing: PickerRouting;
|
|
649
689
|
dispatch_key_blockers: DispatchKeyBlocker[];
|
|
650
690
|
worker_readiness_blockers: ReadinessBlocker[];
|
|
651
691
|
agent_wait: StatusReason | null;
|
|
652
692
|
}
|
|
693
|
+
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
694
|
+
type PlanContextCategoryKey = "comments" | "architecture" | "records" | "notes" | "open_cards";
|
|
695
|
+
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
|
|
696
|
+
interface ContextCategorySize {
|
|
697
|
+
key: ContextCategoryKey;
|
|
698
|
+
tokens: number;
|
|
699
|
+
items: number;
|
|
700
|
+
}
|
|
701
|
+
interface ContextSize {
|
|
702
|
+
total_tokens: number;
|
|
703
|
+
categories: ContextCategorySize[];
|
|
704
|
+
}
|
|
653
705
|
interface BuildGradeView {
|
|
654
706
|
readonly grade: string;
|
|
655
707
|
readonly model: string;
|
|
@@ -747,6 +799,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
747
799
|
interface ChecklistView {
|
|
748
800
|
id: number;
|
|
749
801
|
name: string;
|
|
802
|
+
quality_gate_round_id: number | null;
|
|
750
803
|
items: ChecklistItemView[];
|
|
751
804
|
}
|
|
752
805
|
type DesignDecisionOutcome = "approved" | "changes_requested" | "rejected";
|
|
@@ -781,23 +834,23 @@ declare module "@danxbot/card-kit@1" {
|
|
|
781
834
|
messages: Array<string>;
|
|
782
835
|
reduced?: undefined | true;
|
|
783
836
|
reduced_text?: undefined | null | string;
|
|
784
|
-
|
|
837
|
+
parent_removed?: undefined | true;
|
|
785
838
|
updated_at: string;
|
|
786
|
-
origin: "" | "trello" | "slack" | "asana" | "danxbot";
|
|
839
|
+
origin: "" | "trello" | "slack" | "asana" | "linear" | "danxbot";
|
|
787
840
|
via_key?: undefined | null | ViaKey;
|
|
788
841
|
metadata?: unknown;
|
|
789
842
|
answers_decision_id?: undefined | null | number;
|
|
790
843
|
sign_off?: undefined | null | CommentSignOffViewV2;
|
|
791
844
|
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; }>;
|
|
792
845
|
resource_tags: Array<CommentResourceTag>;
|
|
793
|
-
|
|
846
|
+
parent_comment_id: null | number;
|
|
794
847
|
reply_phase: null | "ack" | "reply";
|
|
795
848
|
reply_state: null | CommentReplyStateV2;
|
|
796
849
|
}>);
|
|
797
850
|
checklists?: undefined | Array<ChecklistView>;
|
|
798
851
|
attachments?: undefined | (Array<{
|
|
799
852
|
id: number;
|
|
800
|
-
source: "" | "trello" | "slack" | "asana" | "danxbot";
|
|
853
|
+
source: "" | "trello" | "slack" | "asana" | "linear" | "danxbot";
|
|
801
854
|
url: string;
|
|
802
855
|
filename: string;
|
|
803
856
|
mime: string;
|
|
@@ -807,11 +860,64 @@ declare module "@danxbot/card-kit@1" {
|
|
|
807
860
|
thumbnail_error: null | string;
|
|
808
861
|
created_at: string;
|
|
809
862
|
}>);
|
|
810
|
-
title: string;
|
|
811
863
|
description?: undefined | string;
|
|
812
|
-
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
813
864
|
type: string;
|
|
865
|
+
title: string;
|
|
866
|
+
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
814
867
|
priority: number;
|
|
868
|
+
agent_notes?: undefined | (Array<{
|
|
869
|
+
id: string;
|
|
870
|
+
author: string;
|
|
871
|
+
by: AuthorV2;
|
|
872
|
+
via_key: null | ViaKey;
|
|
873
|
+
timestamp: string;
|
|
874
|
+
updated_at: string;
|
|
875
|
+
text: string;
|
|
876
|
+
metadata: unknown;
|
|
877
|
+
}>);
|
|
878
|
+
designs?: undefined | (Array<{
|
|
879
|
+
ref_num: number;
|
|
880
|
+
design_no: number;
|
|
881
|
+
title: string;
|
|
882
|
+
created_by: string;
|
|
883
|
+
created_at: string;
|
|
884
|
+
archived_at: null | string;
|
|
885
|
+
review_state: "approved" | "awaiting_review" | "changes_requested" | "rejected";
|
|
886
|
+
revision_count: number;
|
|
887
|
+
latest_revision_no: number;
|
|
888
|
+
chosen_options: null | OptionSelection;
|
|
889
|
+
comment_count?: undefined | number;
|
|
890
|
+
unread_comment_count?: undefined | number;
|
|
891
|
+
revisions?: undefined | (Array<{
|
|
892
|
+
revision_no: number;
|
|
893
|
+
target: string;
|
|
894
|
+
design_dir: string;
|
|
895
|
+
built_from_commit: string;
|
|
896
|
+
note: string;
|
|
897
|
+
created_by: string;
|
|
898
|
+
created_by_ref: ActorRef;
|
|
899
|
+
created_at: string;
|
|
900
|
+
bundle_bytes: null | number;
|
|
901
|
+
bundle_available: boolean;
|
|
902
|
+
screenshot_available: boolean;
|
|
903
|
+
option_groups: Array<DesignOptionGroup>;
|
|
904
|
+
checklist: Array<string>;
|
|
905
|
+
browser_check: "checked" | "not_checked" | "not_recorded";
|
|
906
|
+
browser_check_note: string;
|
|
907
|
+
source_files?: undefined | Array<DesignSourceFile>;
|
|
908
|
+
}>);
|
|
909
|
+
decisions?: undefined | (Array<{
|
|
910
|
+
decision_id: number;
|
|
911
|
+
revision_no: number;
|
|
912
|
+
outcome: "approved" | "changes_requested" | "rejected";
|
|
913
|
+
note: null | string;
|
|
914
|
+
comment_id: number;
|
|
915
|
+
decided_by: string;
|
|
916
|
+
decided_by_ref: ActorRef;
|
|
917
|
+
created_at: string;
|
|
918
|
+
options: null | OptionSelection;
|
|
919
|
+
}>);
|
|
920
|
+
}>);
|
|
815
921
|
id: string;
|
|
816
922
|
parent_id: null | string;
|
|
817
923
|
rev: number;
|
|
@@ -896,6 +1002,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
896
1002
|
comments_count?: undefined | number;
|
|
897
1003
|
unread_comments_count?: undefined | number;
|
|
898
1004
|
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
1005
|
+
context_size?: undefined | ContextSize;
|
|
1006
|
+
content_compaction?: undefined | null | { requested_at: string; } & { status: "waiting" | "working"; ended_at: null; failure_reason: null; } | { requested_at: string; } & { status: "done"; ended_at: string; failure_reason: null; } | { requested_at: string; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
|
|
899
1007
|
agent_notes_count?: undefined | number;
|
|
900
1008
|
comment_recipient?: undefined | { kind: "agent"; by: AuthorV2; reachability: CommentReachabilityV2; } | { kind: "none"; waiting_on: { kind: "plan"; id: PlanRefNum; ref: string; name: string; } | { kind: "card"; id: string; }; };
|
|
901
1009
|
comment_tags?: undefined | Array<CommentTagOption>;
|
|
@@ -914,27 +1022,18 @@ declare module "@danxbot/card-kit@1" {
|
|
|
914
1022
|
triage_last_status?: undefined | string;
|
|
915
1023
|
triage_last_decision_at?: undefined | null | string;
|
|
916
1024
|
next_pre_gate?: undefined | null | string;
|
|
1025
|
+
review_runnable?: undefined | false | true;
|
|
917
1026
|
dispatchable_explain?: undefined | DispatchableExplainView;
|
|
918
1027
|
copy_payload?: undefined | V2CopyPayload;
|
|
919
1028
|
copy_issue?: undefined | V2CopyIssue;
|
|
920
|
-
agent_notes?: undefined | (Array<{
|
|
921
|
-
id: string;
|
|
922
|
-
author: string;
|
|
923
|
-
by: AuthorV2;
|
|
924
|
-
via_key: null | ViaKey;
|
|
925
|
-
timestamp: string;
|
|
926
|
-
updated_at: string;
|
|
927
|
-
text: string;
|
|
928
|
-
metadata: unknown;
|
|
929
|
-
}>);
|
|
930
1029
|
decision_records?: undefined | (Array<{
|
|
931
|
-
|
|
932
|
-
kind: "
|
|
933
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
934
|
-
made_by: "agent" | "human";
|
|
1030
|
+
made_by: "human" | "agent";
|
|
1031
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
935
1032
|
approved: boolean;
|
|
936
1033
|
impact: number;
|
|
937
1034
|
confidence: number;
|
|
1035
|
+
title: string;
|
|
1036
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
938
1037
|
rev: number;
|
|
939
1038
|
created_at: string;
|
|
940
1039
|
updated_at: string;
|
|
@@ -956,12 +1055,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
956
1055
|
comment_count: number;
|
|
957
1056
|
unread_comment_count: number;
|
|
958
1057
|
versions?: undefined | (Array<{
|
|
959
|
-
|
|
960
|
-
kind: "
|
|
961
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
962
|
-
made_by: "agent" | "human";
|
|
1058
|
+
made_by: "human" | "agent";
|
|
1059
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
963
1060
|
impact: number;
|
|
964
1061
|
confidence: number;
|
|
1062
|
+
title: string;
|
|
1063
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
965
1064
|
id: number;
|
|
966
1065
|
created_at: string;
|
|
967
1066
|
author: string;
|
|
@@ -988,12 +1087,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
988
1087
|
}>);
|
|
989
1088
|
}>);
|
|
990
1089
|
decision_record_versions?: undefined | (Array<{
|
|
991
|
-
|
|
992
|
-
kind: "
|
|
993
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
994
|
-
made_by: "agent" | "human";
|
|
1090
|
+
made_by: "human" | "agent";
|
|
1091
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
995
1092
|
impact: number;
|
|
996
1093
|
confidence: number;
|
|
1094
|
+
title: string;
|
|
1095
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
997
1096
|
id: number;
|
|
998
1097
|
created_at: string;
|
|
999
1098
|
author: string;
|
|
@@ -1027,48 +1126,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1027
1126
|
started_at: string;
|
|
1028
1127
|
expires_at: string;
|
|
1029
1128
|
}>;
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
review_state: "approved" | "awaiting_review" | "changes_requested" | "rejected";
|
|
1038
|
-
revision_count: number;
|
|
1039
|
-
latest_revision_no: number;
|
|
1040
|
-
chosen_options: null | OptionSelection;
|
|
1041
|
-
comment_count?: undefined | number;
|
|
1042
|
-
unread_comment_count?: undefined | number;
|
|
1043
|
-
revisions?: undefined | (Array<{
|
|
1044
|
-
revision_no: number;
|
|
1045
|
-
target: string;
|
|
1046
|
-
design_dir: string;
|
|
1047
|
-
built_from_commit: string;
|
|
1048
|
-
note: string;
|
|
1049
|
-
created_by: string;
|
|
1050
|
-
created_by_ref: ActorRef;
|
|
1051
|
-
created_at: string;
|
|
1052
|
-
bundle_bytes: null | number;
|
|
1053
|
-
bundle_available: boolean;
|
|
1054
|
-
screenshot_available: boolean;
|
|
1055
|
-
option_groups: Array<DesignOptionGroup>;
|
|
1056
|
-
checklist: Array<string>;
|
|
1057
|
-
browser_check: "checked" | "not_checked" | "not_recorded";
|
|
1058
|
-
browser_check_note: string;
|
|
1059
|
-
source_files?: undefined | Array<DesignSourceFile>;
|
|
1060
|
-
}>);
|
|
1061
|
-
decisions?: undefined | (Array<{
|
|
1062
|
-
decision_id: number;
|
|
1063
|
-
revision_no: number;
|
|
1064
|
-
outcome: "approved" | "changes_requested" | "rejected";
|
|
1065
|
-
note: null | string;
|
|
1066
|
-
comment_id: number;
|
|
1067
|
-
decided_by: string;
|
|
1068
|
-
decided_by_ref: ActorRef;
|
|
1069
|
-
created_at: string;
|
|
1070
|
-
options: null | OptionSelection;
|
|
1071
|
-
}>);
|
|
1129
|
+
gate_follow_ups?: undefined | (Array<{
|
|
1130
|
+
id: number;
|
|
1131
|
+
label: string;
|
|
1132
|
+
gate: string;
|
|
1133
|
+
round: number;
|
|
1134
|
+
stacked_to: null | string;
|
|
1135
|
+
stacked_at: null | string;
|
|
1072
1136
|
}>);
|
|
1073
1137
|
pull_request_reviews?: undefined | (Array<{
|
|
1074
1138
|
id: number;
|
|
@@ -1083,16 +1147,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1083
1147
|
occurred_at: string;
|
|
1084
1148
|
}>);
|
|
1085
1149
|
changed_fields?: undefined | Array<string>;
|
|
1086
|
-
code_review_items?: undefined | Array<{
|
|
1087
|
-
gate_name: string;
|
|
1088
|
-
title: string;
|
|
1089
|
-
description: string;
|
|
1090
|
-
status: string;
|
|
1091
|
-
reasoning: string;
|
|
1092
|
-
}>;
|
|
1093
1150
|
children_detail?: undefined | (Array<{
|
|
1094
|
-
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1095
1151
|
type: string;
|
|
1152
|
+
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1096
1153
|
priority: number;
|
|
1097
1154
|
name: string;
|
|
1098
1155
|
id: string;
|
|
@@ -1111,18 +1168,17 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1111
1168
|
name: string;
|
|
1112
1169
|
}>;
|
|
1113
1170
|
mirrors?: undefined | (Array<{
|
|
1114
|
-
target_type: "trello" | "slack" | "asana";
|
|
1171
|
+
target_type: "trello" | "slack" | "asana" | "linear";
|
|
1115
1172
|
target_url: string;
|
|
1116
1173
|
sync_state: "synced" | "out_of_sync" | "error" | "dead" | "unavailable" | "diverged";
|
|
1117
1174
|
dead_reason: "" | "deleted" | "archived";
|
|
1118
1175
|
source_ref: string;
|
|
1119
1176
|
last_error: null | StatusReason;
|
|
1120
|
-
owed: Array<"comments" | "checklists" | "attachments" | "
|
|
1177
|
+
owed: Array<"comments" | "checklists" | "attachments" | "description" | "type" | "title" | "status" | "priority" | "parent_child" | "dependencies" | "card_create" | "card_delete">;
|
|
1121
1178
|
description_unreadable: boolean;
|
|
1122
1179
|
target_ref: string;
|
|
1123
1180
|
target_label: string;
|
|
1124
1181
|
last_synced_at: number;
|
|
1125
|
-
logo_url: string;
|
|
1126
1182
|
}>);
|
|
1127
1183
|
history?: undefined | (Array<{
|
|
1128
1184
|
id: string;
|
|
@@ -1186,13 +1242,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1186
1242
|
type: "design" | "question" | "action" | "decision_review";
|
|
1187
1243
|
open: boolean;
|
|
1188
1244
|
ordinal: number;
|
|
1189
|
-
created_at: string;
|
|
1190
|
-
updated_at: string;
|
|
1191
|
-
content_hash: string;
|
|
1192
|
-
summary: null | string;
|
|
1193
|
-
ref_num: number;
|
|
1194
|
-
comment_count: number;
|
|
1195
|
-
unread_comment_count: number;
|
|
1196
1245
|
decisions: Array<{
|
|
1197
1246
|
id: number;
|
|
1198
1247
|
solution_id: null | number;
|
|
@@ -1208,6 +1257,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1208
1257
|
provenance: null | ProvenanceRecordV2;
|
|
1209
1258
|
content_hash: string;
|
|
1210
1259
|
}>;
|
|
1260
|
+
created_at: string;
|
|
1261
|
+
updated_at: string;
|
|
1262
|
+
content_hash: string;
|
|
1263
|
+
summary: null | string;
|
|
1264
|
+
ref_num: number;
|
|
1265
|
+
comment_count: number;
|
|
1266
|
+
unread_comment_count: number;
|
|
1211
1267
|
issue_id: string;
|
|
1212
1268
|
feedback_consent: boolean;
|
|
1213
1269
|
choice_locked: boolean;
|
|
@@ -1225,12 +1281,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1225
1281
|
answered_version_no: null | number;
|
|
1226
1282
|
choices: Array<{ solution_id: number; kind: DecisionReviewChoiceKind; version_no: number; title: string; }>;
|
|
1227
1283
|
versions?: undefined | (Array<{
|
|
1228
|
-
|
|
1229
|
-
kind: "
|
|
1230
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1231
|
-
made_by: "agent" | "human";
|
|
1284
|
+
made_by: "human" | "agent";
|
|
1285
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1232
1286
|
impact: number;
|
|
1233
1287
|
confidence: number;
|
|
1288
|
+
title: string;
|
|
1289
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1234
1290
|
id: number;
|
|
1235
1291
|
created_at: string;
|
|
1236
1292
|
author: string;
|
|
@@ -1500,6 +1556,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1500
1556
|
issue_id: CardId;
|
|
1501
1557
|
ordinal: number;
|
|
1502
1558
|
name: string;
|
|
1559
|
+
quality_gate_round_id: number | null;
|
|
1503
1560
|
created_at: string;
|
|
1504
1561
|
updated_at: string;
|
|
1505
1562
|
deleted_at: string | null;
|
|
@@ -1556,6 +1613,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1556
1613
|
verdict: GateRoundVerdict;
|
|
1557
1614
|
summary: string;
|
|
1558
1615
|
recorded_at: string;
|
|
1616
|
+
decision_versions: DecisionVersionView[];
|
|
1559
1617
|
}
|
|
1560
1618
|
interface ProvenanceRecordV2 {
|
|
1561
1619
|
id: number;
|
|
@@ -1708,7 +1766,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1708
1766
|
function planCardPath(planId: number, cardId: string, planSearch?: string): string;
|
|
1709
1767
|
function planPathFromCard(planId: number, cardSearch?: string): string;
|
|
1710
1768
|
|
|
1711
|
-
function CardLink({ id, className, onNavigate }: {
|
|
1769
|
+
function CardLink({ id, className, onNavigate, }: {
|
|
1712
1770
|
id: string;
|
|
1713
1771
|
className?: string;
|
|
1714
1772
|
onNavigate?: () => void;
|
|
@@ -1726,7 +1784,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1726
1784
|
card: IssueViewV2;
|
|
1727
1785
|
}): react.JSX.Element;
|
|
1728
1786
|
|
|
1729
|
-
function ChecklistsSection({ card, mutation }: {
|
|
1787
|
+
function ChecklistsSection({ card, mutation, }: {
|
|
1730
1788
|
card: IssueViewV2;
|
|
1731
1789
|
mutation: CardMutation;
|
|
1732
1790
|
}): react.JSX.Element;
|
|
@@ -1751,7 +1809,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1751
1809
|
cardId: IssueViewV2["id"];
|
|
1752
1810
|
} & Omit<ProblemsSectionProps, "card">): react.JSX.Element;
|
|
1753
1811
|
|
|
1754
|
-
function DependenciesSection({ card, mutation }: {
|
|
1812
|
+
function DependenciesSection({ card, mutation, }: {
|
|
1755
1813
|
card: IssueViewV2;
|
|
1756
1814
|
mutation: CardMutation;
|
|
1757
1815
|
}): react.JSX.Element;
|
|
@@ -1760,12 +1818,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1760
1818
|
card: IssueViewV2;
|
|
1761
1819
|
}): react.JSX.Element;
|
|
1762
1820
|
|
|
1763
|
-
function ParentField({ card, mutation }: {
|
|
1821
|
+
function ParentField({ card, mutation, }: {
|
|
1764
1822
|
card: IssueViewV2;
|
|
1765
1823
|
mutation: CardMutation;
|
|
1766
1824
|
}): react.JSX.Element;
|
|
1767
1825
|
|
|
1768
|
-
function PlansField({ card, mutation }: {
|
|
1826
|
+
function PlansField({ card, mutation, }: {
|
|
1769
1827
|
card: IssueViewV2;
|
|
1770
1828
|
mutation: CardMutation;
|
|
1771
1829
|
}): react.JSX.Element;
|
|
@@ -1853,7 +1911,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1853
1911
|
onOpenDependencies?: () => void;
|
|
1854
1912
|
assignee?: boolean;
|
|
1855
1913
|
}
|
|
1856
|
-
function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee }: WorkStateControlProps): react.JSX.Element | null;
|
|
1914
|
+
function WorkStateControl({ cardId, input, size, onOpenHold, onOpenDependencies, assignee, }: WorkStateControlProps): react.JSX.Element | null;
|
|
1857
1915
|
|
|
1858
1916
|
interface ControlProps {
|
|
1859
1917
|
card: IssueViewV2;
|
|
@@ -1884,11 +1942,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1884
1942
|
status: CardStatusPresentation;
|
|
1885
1943
|
list: CardFaceList | null;
|
|
1886
1944
|
to: string;
|
|
1887
|
-
|
|
1888
|
-
id: string;
|
|
1889
|
-
title: string | null;
|
|
1890
|
-
to: string;
|
|
1891
|
-
} | null;
|
|
1945
|
+
cardPath: (cardId: string) => string;
|
|
1892
1946
|
needsHuman: {
|
|
1893
1947
|
questions: number;
|
|
1894
1948
|
actions: number;
|
|
@@ -1944,7 +1998,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1944
1998
|
cover?: ReactNode;
|
|
1945
1999
|
inParentBox?: boolean;
|
|
1946
2000
|
}
|
|
1947
|
-
function CardFace({ card, renderTitle, trailing, statusMark, cover,
|
|
2001
|
+
function CardFace({ card, renderTitle, trailing, statusMark, cover, }: CardFaceProps): react.JSX.Element;
|
|
1948
2002
|
|
|
1949
2003
|
function CardBoard({ state, cardPath, }: {
|
|
1950
2004
|
state: BoardLaneState;
|