@50arms/plugin-sdk 0.2.59 → 0.2.60
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 -63
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export { Link, useNavigate } from 'react-router';
|
|
6
6
|
|
|
7
|
+
type RiskScore = "R0" | "R1" | "R2" | "R3" | "R4";
|
|
8
|
+
|
|
7
9
|
const BOARD_ID: unique symbol;
|
|
8
10
|
const CARD_ID: unique symbol;
|
|
9
11
|
type BoardId = number & {
|
|
@@ -28,43 +30,17 @@ declare module "@danxbot/card-kit@1" {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
type CardTypeKey = string;
|
|
31
|
-
type MirrorProviderId = "trello" | "slack" | "asana" | "linear";
|
|
32
|
-
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type?: ListType$1;
|
|
38
|
-
}
|
|
39
|
-
interface RepoProfileCopy {
|
|
40
|
-
shipped: string;
|
|
41
|
-
repo: string;
|
|
42
|
-
}
|
|
43
|
-
type ProfileNameId = string;
|
|
44
|
-
type ProfileName = StatusReason | ProfileNameMessage;
|
|
45
|
-
type StatusReasonId = string;
|
|
46
|
-
type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReasonSentences | StatusReasonLines | StatusReasonList>;
|
|
47
|
-
interface ProfileNameMessage {
|
|
48
|
-
id: ProfileNameId;
|
|
49
|
-
values: StatusReasonValues;
|
|
50
|
-
}
|
|
51
|
-
type StatusReasonList = ListValue<string | number | StatusReason | ProfileNameMessage>;
|
|
52
|
-
interface StatusReasonLines {
|
|
53
|
-
lines: StatusReason[];
|
|
54
|
-
}
|
|
55
|
-
interface StatusReasonSentences {
|
|
56
|
-
sentences: StatusReason[];
|
|
57
|
-
}
|
|
58
|
-
interface StatusReason {
|
|
59
|
-
id: StatusReasonId;
|
|
60
|
-
values: StatusReasonValues;
|
|
34
|
+
interface Justification {
|
|
35
|
+
quote: string;
|
|
36
|
+
reasoning: string;
|
|
61
37
|
}
|
|
38
|
+
type MirrorProviderId = "trello" | "slack" | "asana" | "linear";
|
|
39
|
+
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
62
40
|
type DecisionRecordKind = "business_rule" | "architecture" | "design" | "other";
|
|
63
41
|
type DecisionRecordAction = "created" | "changed" | "deleted" | "restored";
|
|
64
42
|
type DecisionMadeBy = "human" | "agent";
|
|
65
43
|
type DecisionApprovalAction = "approve" | "unapprove";
|
|
66
|
-
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
|
|
67
|
-
type ProvenancePartyKind = "agent" | "person";
|
|
68
44
|
|
|
69
45
|
interface DecisionApprovalState {
|
|
70
46
|
approved: boolean;
|
|
@@ -97,18 +73,44 @@ declare module "@danxbot/card-kit@1" {
|
|
|
97
73
|
version_no: number;
|
|
98
74
|
approval: DecisionApprovalState;
|
|
99
75
|
}
|
|
100
|
-
interface
|
|
101
|
-
|
|
102
|
-
|
|
76
|
+
interface RepoProfileCopy {
|
|
77
|
+
shipped: string;
|
|
78
|
+
repo: string;
|
|
79
|
+
}
|
|
80
|
+
type ProfileNameId = string;
|
|
81
|
+
type ProfileName = StatusReason | ProfileNameMessage;
|
|
82
|
+
|
|
83
|
+
type ListType$1 = "and" | "or" | "semicolon";
|
|
84
|
+
interface ListValue<Item> {
|
|
85
|
+
list: readonly Item[];
|
|
86
|
+
type?: ListType$1;
|
|
87
|
+
}
|
|
88
|
+
type StatusReasonId = string;
|
|
89
|
+
type StatusReasonValues = Record<string, string | number | boolean | null | StatusReason | ProfileNameMessage | StatusReasonSentences | StatusReasonLines | StatusReasonList>;
|
|
90
|
+
interface ProfileNameMessage {
|
|
91
|
+
id: ProfileNameId;
|
|
92
|
+
values: StatusReasonValues;
|
|
93
|
+
}
|
|
94
|
+
type StatusReasonList = ListValue<string | number | StatusReason | ProfileNameMessage>;
|
|
95
|
+
interface StatusReasonLines {
|
|
96
|
+
lines: StatusReason[];
|
|
97
|
+
}
|
|
98
|
+
interface StatusReasonSentences {
|
|
99
|
+
sentences: StatusReason[];
|
|
100
|
+
}
|
|
101
|
+
interface StatusReason {
|
|
102
|
+
id: StatusReasonId;
|
|
103
|
+
values: StatusReasonValues;
|
|
103
104
|
}
|
|
104
105
|
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
105
|
-
type
|
|
106
|
+
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
|
|
107
|
+
type ProvenancePartyKind = "agent" | "person";
|
|
108
|
+
type ResourceType = "design" | "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
106
109
|
interface ResourceRef {
|
|
107
110
|
type: ResourceType;
|
|
108
111
|
id: string;
|
|
109
112
|
}
|
|
110
|
-
type
|
|
111
|
-
type WorkMarkResourceType = "plan" | "design" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
113
|
+
type WorkMarkResourceType = "design" | "plan" | "problem" | "plan_record" | "plan_section" | "decision";
|
|
112
114
|
interface WorkMarkResource extends ResourceRef {
|
|
113
115
|
type: WorkMarkResourceType;
|
|
114
116
|
}
|
|
@@ -170,6 +172,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
170
172
|
compare_url: string | null;
|
|
171
173
|
updated_at: string;
|
|
172
174
|
}
|
|
175
|
+
interface DecisionRecordPage {
|
|
176
|
+
offset: number;
|
|
177
|
+
target_found: boolean | null;
|
|
178
|
+
}
|
|
173
179
|
type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
|
|
174
180
|
|
|
175
181
|
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
@@ -689,9 +695,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
689
695
|
dispatch_key_blockers: DispatchKeyBlocker[];
|
|
690
696
|
worker_readiness_blockers: ReadinessBlocker[];
|
|
691
697
|
agent_wait: StatusReason | null;
|
|
698
|
+
orchestrator_profile: string | null;
|
|
692
699
|
}
|
|
693
700
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
694
|
-
type PlanContextCategoryKey = "
|
|
701
|
+
type PlanContextCategoryKey = "architecture" | "comments" | "records" | "notes" | "open_cards";
|
|
695
702
|
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
|
|
696
703
|
interface ContextCategorySize {
|
|
697
704
|
key: ContextCategoryKey;
|
|
@@ -860,10 +867,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
860
867
|
thumbnail_error: null | string;
|
|
861
868
|
created_at: string;
|
|
862
869
|
}>);
|
|
863
|
-
description?: undefined | string;
|
|
864
|
-
type: string;
|
|
865
870
|
title: string;
|
|
871
|
+
description?: undefined | string;
|
|
866
872
|
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
873
|
+
type: string;
|
|
867
874
|
priority: number;
|
|
868
875
|
agent_notes?: undefined | (Array<{
|
|
869
876
|
id: string;
|
|
@@ -936,6 +943,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
936
943
|
blocked?: undefined | null | { at: string; reason: string; by: AuthorV2 | null; };
|
|
937
944
|
board_id?: undefined | BoardRefNum;
|
|
938
945
|
ready_at?: undefined | null | string;
|
|
946
|
+
started_at?: undefined | null | string;
|
|
939
947
|
archived_at?: undefined | null | string;
|
|
940
948
|
completed_at?: undefined | null | string;
|
|
941
949
|
cancelled_at?: undefined | null | string;
|
|
@@ -959,7 +967,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
959
967
|
pull_request_url?: undefined | null | string;
|
|
960
968
|
risk_score?: undefined | null | "R0" | "R1" | "R2" | "R3" | "R4";
|
|
961
969
|
risk_reason?: undefined | null | string;
|
|
970
|
+
risk_set?: undefined | null | { at: string; by: AuthorV2; };
|
|
962
971
|
risk_raise_reason?: undefined | null | string;
|
|
972
|
+
justification?: undefined | null | Justification;
|
|
963
973
|
start_commit?: undefined | null | { at: string; sha: string | null; error: "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected" | null; error_detail: string | null; };
|
|
964
974
|
problem_total?: undefined | number;
|
|
965
975
|
decision_record_total?: undefined | number;
|
|
@@ -1027,13 +1037,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1027
1037
|
copy_payload?: undefined | V2CopyPayload;
|
|
1028
1038
|
copy_issue?: undefined | V2CopyIssue;
|
|
1029
1039
|
decision_records?: undefined | (Array<{
|
|
1030
|
-
|
|
1040
|
+
title: string;
|
|
1031
1041
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1042
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1043
|
+
made_by: "human" | "agent";
|
|
1032
1044
|
approved: boolean;
|
|
1033
1045
|
impact: number;
|
|
1034
1046
|
confidence: number;
|
|
1035
|
-
title: string;
|
|
1036
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1037
1047
|
rev: number;
|
|
1038
1048
|
created_at: string;
|
|
1039
1049
|
updated_at: string;
|
|
@@ -1055,12 +1065,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1055
1065
|
comment_count: number;
|
|
1056
1066
|
unread_comment_count: number;
|
|
1057
1067
|
versions?: undefined | (Array<{
|
|
1058
|
-
|
|
1068
|
+
title: string;
|
|
1059
1069
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1070
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1071
|
+
made_by: "human" | "agent";
|
|
1060
1072
|
impact: number;
|
|
1061
1073
|
confidence: number;
|
|
1062
|
-
title: string;
|
|
1063
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1064
1074
|
id: number;
|
|
1065
1075
|
created_at: string;
|
|
1066
1076
|
author: string;
|
|
@@ -1087,12 +1097,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1087
1097
|
}>);
|
|
1088
1098
|
}>);
|
|
1089
1099
|
decision_record_versions?: undefined | (Array<{
|
|
1090
|
-
|
|
1100
|
+
title: string;
|
|
1091
1101
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1102
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1103
|
+
made_by: "human" | "agent";
|
|
1092
1104
|
impact: number;
|
|
1093
1105
|
confidence: number;
|
|
1094
|
-
title: string;
|
|
1095
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1096
1106
|
id: number;
|
|
1097
1107
|
created_at: string;
|
|
1098
1108
|
author: string;
|
|
@@ -1126,14 +1136,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1126
1136
|
started_at: string;
|
|
1127
1137
|
expires_at: string;
|
|
1128
1138
|
}>;
|
|
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;
|
|
1136
|
-
}>);
|
|
1137
1139
|
pull_request_reviews?: undefined | (Array<{
|
|
1138
1140
|
id: number;
|
|
1139
1141
|
kind: "comment" | "review" | "thread";
|
|
@@ -1148,8 +1150,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1148
1150
|
}>);
|
|
1149
1151
|
changed_fields?: undefined | Array<string>;
|
|
1150
1152
|
children_detail?: undefined | (Array<{
|
|
1151
|
-
type: string;
|
|
1152
1153
|
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1154
|
+
type: string;
|
|
1153
1155
|
priority: number;
|
|
1154
1156
|
name: string;
|
|
1155
1157
|
id: string;
|
|
@@ -1171,10 +1173,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1171
1173
|
target_type: "trello" | "slack" | "asana" | "linear";
|
|
1172
1174
|
target_url: string;
|
|
1173
1175
|
sync_state: "synced" | "out_of_sync" | "error" | "dead" | "unavailable" | "diverged";
|
|
1174
|
-
dead_reason: "" | "deleted" | "archived";
|
|
1176
|
+
dead_reason: "" | "deleted" | "archived" | "left";
|
|
1175
1177
|
source_ref: string;
|
|
1176
1178
|
last_error: null | StatusReason;
|
|
1177
|
-
owed: Array<"comments" | "checklists" | "attachments" | "
|
|
1179
|
+
owed: Array<"comments" | "checklists" | "attachments" | "title" | "description" | "status" | "type" | "priority" | "parent_child" | "dependencies" | "card_create" | "card_delete">;
|
|
1178
1180
|
description_unreadable: boolean;
|
|
1179
1181
|
target_ref: string;
|
|
1180
1182
|
target_label: string;
|
|
@@ -1281,12 +1283,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1281
1283
|
answered_version_no: null | number;
|
|
1282
1284
|
choices: Array<{ solution_id: number; kind: DecisionReviewChoiceKind; version_no: number; title: string; }>;
|
|
1283
1285
|
versions?: undefined | (Array<{
|
|
1284
|
-
|
|
1286
|
+
title: string;
|
|
1285
1287
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1288
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1289
|
+
made_by: "human" | "agent";
|
|
1286
1290
|
impact: number;
|
|
1287
1291
|
confidence: number;
|
|
1288
|
-
title: string;
|
|
1289
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1290
1292
|
id: number;
|
|
1291
1293
|
created_at: string;
|
|
1292
1294
|
author: string;
|
|
@@ -1425,7 +1427,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1425
1427
|
pull_request_url: string | null;
|
|
1426
1428
|
risk_score: RiskScore | null;
|
|
1427
1429
|
risk_reason: string | null;
|
|
1430
|
+
risk_set_at: string | null;
|
|
1431
|
+
risk_set_by: string | null;
|
|
1432
|
+
risk_set_via_key_id: number | null;
|
|
1433
|
+
risk_set_via_key_name: string | null;
|
|
1434
|
+
risk_set_team_agent_id: number | null;
|
|
1428
1435
|
risk_raise_reason: string | null;
|
|
1436
|
+
justification_quote: string | null;
|
|
1437
|
+
justification_reasoning: string | null;
|
|
1429
1438
|
start_commit_sha: string | null;
|
|
1430
1439
|
start_commit_at: string | null;
|
|
1431
1440
|
start_commit_error: StartCommitError | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.60",
|
|
4
4
|
"description": "SDK for building 50 Arms plugins (DX-5170): the card kit's type declarations, the Widget declaration kit, 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",
|