@50arms/plugin-sdk 0.2.61 → 0.2.63
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 +281 -16
- package/dist/publish.d.ts +10 -1
- package/dist/vite.d.ts +10 -1
- package/dist/vite.js +2 -1
- package/dist/widgets.d.ts +16 -1
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -103,9 +103,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
103
103
|
values: StatusReasonValues;
|
|
104
104
|
}
|
|
105
105
|
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
106
|
-
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url";
|
|
106
|
+
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url" | "evidence";
|
|
107
107
|
type ProvenancePartyKind = "agent" | "person";
|
|
108
|
-
type ResourceType = "design" | "plan" | "problem" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
108
|
+
type ResourceType = "design" | "plan" | "problem" | "evidence" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
109
109
|
interface ResourceRef {
|
|
110
110
|
type: ResourceType;
|
|
111
111
|
id: string;
|
|
@@ -176,6 +176,137 @@ declare module "@danxbot/card-kit@1" {
|
|
|
176
176
|
offset: number;
|
|
177
177
|
target_found: boolean | null;
|
|
178
178
|
}
|
|
179
|
+
type EvidenceBlockType = "note" | "steps" | "command" | "table" | "code" | "diff" | "log";
|
|
180
|
+
type EvidenceMadeBy = "human" | "agent";
|
|
181
|
+
type EvidenceColumnType = "number" | "boolean" | "text" | "date";
|
|
182
|
+
type EvidenceAttachmentRole = "file" | "csv";
|
|
183
|
+
|
|
184
|
+
interface EvidenceColumn {
|
|
185
|
+
name: string;
|
|
186
|
+
type: EvidenceColumnType;
|
|
187
|
+
unit: string | null;
|
|
188
|
+
}
|
|
189
|
+
type EvidenceCell = string | number | boolean | null;
|
|
190
|
+
interface EvidenceNoteData {
|
|
191
|
+
markdown: string;
|
|
192
|
+
}
|
|
193
|
+
interface EvidenceStepsData {
|
|
194
|
+
steps: Array<{
|
|
195
|
+
text: string;
|
|
196
|
+
expected: string | null;
|
|
197
|
+
actual: string | null;
|
|
198
|
+
}>;
|
|
199
|
+
}
|
|
200
|
+
interface EvidenceTableRows {
|
|
201
|
+
columns: EvidenceColumn[];
|
|
202
|
+
rows: EvidenceCell[][];
|
|
203
|
+
}
|
|
204
|
+
interface EvidenceCommandData {
|
|
205
|
+
command: string;
|
|
206
|
+
language: string;
|
|
207
|
+
exit_code: number | null;
|
|
208
|
+
output: {
|
|
209
|
+
kind: "text";
|
|
210
|
+
text: string;
|
|
211
|
+
} | ({
|
|
212
|
+
kind: "table";
|
|
213
|
+
} & EvidenceTableRows);
|
|
214
|
+
}
|
|
215
|
+
interface EvidenceTableData extends EvidenceTableRows {
|
|
216
|
+
source: "inline" | "csv";
|
|
217
|
+
}
|
|
218
|
+
interface EvidenceCodeData {
|
|
219
|
+
repo: string;
|
|
220
|
+
path: string;
|
|
221
|
+
commit_sha: string;
|
|
222
|
+
start_line: number;
|
|
223
|
+
end_line: number;
|
|
224
|
+
highlight_lines: number[];
|
|
225
|
+
text: string;
|
|
226
|
+
}
|
|
227
|
+
interface EvidenceDiffData {
|
|
228
|
+
patch: string;
|
|
229
|
+
}
|
|
230
|
+
interface EvidenceLogData {
|
|
231
|
+
source: string;
|
|
232
|
+
from: string;
|
|
233
|
+
to: string;
|
|
234
|
+
highlight_lines: number[];
|
|
235
|
+
text: string;
|
|
236
|
+
}
|
|
237
|
+
interface EvidenceBlockDataByType {
|
|
238
|
+
note: EvidenceNoteData;
|
|
239
|
+
steps: EvidenceStepsData;
|
|
240
|
+
command: EvidenceCommandData;
|
|
241
|
+
table: EvidenceTableData;
|
|
242
|
+
code: EvidenceCodeData;
|
|
243
|
+
diff: EvidenceDiffData;
|
|
244
|
+
log: EvidenceLogData;
|
|
245
|
+
}
|
|
246
|
+
interface EvidenceWriterView {
|
|
247
|
+
author: string;
|
|
248
|
+
by: AuthorV2;
|
|
249
|
+
via_key: ViaKey | null;
|
|
250
|
+
created_at: string;
|
|
251
|
+
}
|
|
252
|
+
interface EvidenceMakerView {
|
|
253
|
+
made_by: EvidenceMadeBy;
|
|
254
|
+
made_by_user_id: number | null;
|
|
255
|
+
made_by_name: string | null;
|
|
256
|
+
made_by_author: AuthorV2;
|
|
257
|
+
made_by_is_writer: boolean;
|
|
258
|
+
}
|
|
259
|
+
interface EvidenceExhibitView {
|
|
260
|
+
key: string;
|
|
261
|
+
letter: string;
|
|
262
|
+
title: string;
|
|
263
|
+
block_type: EvidenceBlockType;
|
|
264
|
+
method: string;
|
|
265
|
+
}
|
|
266
|
+
interface EvidenceHypothesisVersionView extends EvidenceWriterView, EvidenceMakerView {
|
|
267
|
+
id: number;
|
|
268
|
+
version_no: number;
|
|
269
|
+
question: string;
|
|
270
|
+
expected_answer: string;
|
|
271
|
+
exhibits: EvidenceExhibitView[];
|
|
272
|
+
reasoning: string;
|
|
273
|
+
confidence: number;
|
|
274
|
+
}
|
|
275
|
+
interface EvidenceVerdictVersionView extends EvidenceWriterView, EvidenceMakerView {
|
|
276
|
+
id: number;
|
|
277
|
+
version_no: number;
|
|
278
|
+
answer: string;
|
|
279
|
+
confidence: number;
|
|
280
|
+
reasoning: string;
|
|
281
|
+
cites: string[];
|
|
282
|
+
}
|
|
283
|
+
interface EvidenceBlockAttachmentView {
|
|
284
|
+
role: EvidenceAttachmentRole;
|
|
285
|
+
attachment_id: number | null;
|
|
286
|
+
filename: string | null;
|
|
287
|
+
content_type: string | null;
|
|
288
|
+
size_bytes: number | null;
|
|
289
|
+
removed: boolean;
|
|
290
|
+
}
|
|
291
|
+
interface EvidenceBlockViewBase<T extends EvidenceBlockType> {
|
|
292
|
+
block_no: number;
|
|
293
|
+
label: string;
|
|
294
|
+
ref: string;
|
|
295
|
+
round_no: number;
|
|
296
|
+
type: T;
|
|
297
|
+
data: EvidenceBlockDataByType[T];
|
|
298
|
+
caption: string | null;
|
|
299
|
+
exhibit_key: string | null;
|
|
300
|
+
generic_reason: string | null;
|
|
301
|
+
attachments: EvidenceBlockAttachmentView[];
|
|
302
|
+
}
|
|
303
|
+
interface EvidenceExhibitStatusView {
|
|
304
|
+
key: string;
|
|
305
|
+
letter: string;
|
|
306
|
+
title: string;
|
|
307
|
+
block_count: number;
|
|
308
|
+
gathered: boolean;
|
|
309
|
+
}
|
|
179
310
|
type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
|
|
180
311
|
|
|
181
312
|
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
@@ -229,6 +360,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
229
360
|
} | {
|
|
230
361
|
kind: "decision";
|
|
231
362
|
index: number;
|
|
363
|
+
} | {
|
|
364
|
+
kind: "evidence";
|
|
365
|
+
index: number;
|
|
232
366
|
} | {
|
|
233
367
|
kind: "label";
|
|
234
368
|
text: string;
|
|
@@ -329,6 +463,67 @@ declare module "@danxbot/card-kit@1" {
|
|
|
329
463
|
ref_num: number;
|
|
330
464
|
versions: V2CopyDecisionVersion[];
|
|
331
465
|
}
|
|
466
|
+
interface V2CopyEvidenceMaker {
|
|
467
|
+
made_by: EvidenceMadeBy;
|
|
468
|
+
made_by_email: string | null;
|
|
469
|
+
made_by_name: string | null;
|
|
470
|
+
made_by_team_agent: string | null;
|
|
471
|
+
author: string;
|
|
472
|
+
team_agent: string | null;
|
|
473
|
+
created_at: string;
|
|
474
|
+
}
|
|
475
|
+
interface V2CopyEvidenceExhibit {
|
|
476
|
+
key: string;
|
|
477
|
+
title: string;
|
|
478
|
+
block_type: EvidenceBlockType;
|
|
479
|
+
method: string;
|
|
480
|
+
}
|
|
481
|
+
interface V2CopyEvidenceHypothesisVersion extends V2CopyEvidenceMaker {
|
|
482
|
+
version_no: number;
|
|
483
|
+
question: string;
|
|
484
|
+
expected_answer: string;
|
|
485
|
+
reasoning: string;
|
|
486
|
+
confidence: number;
|
|
487
|
+
exhibits: V2CopyEvidenceExhibit[];
|
|
488
|
+
}
|
|
489
|
+
interface V2CopyEvidenceVerdictVersion extends V2CopyEvidenceMaker {
|
|
490
|
+
version_no: number;
|
|
491
|
+
answer: string;
|
|
492
|
+
confidence: number;
|
|
493
|
+
reasoning: string;
|
|
494
|
+
cites: number[];
|
|
495
|
+
}
|
|
496
|
+
interface V2CopyEvidenceBlockAttachment {
|
|
497
|
+
role: EvidenceAttachmentRole;
|
|
498
|
+
attachment_index: number | null;
|
|
499
|
+
}
|
|
500
|
+
interface V2CopyEvidenceBlock {
|
|
501
|
+
block_no: number;
|
|
502
|
+
type: EvidenceBlockType;
|
|
503
|
+
data: Record<string, unknown>;
|
|
504
|
+
caption: string | null;
|
|
505
|
+
exhibit_key: string | null;
|
|
506
|
+
generic_reason: string | null;
|
|
507
|
+
attachments: V2CopyEvidenceBlockAttachment[];
|
|
508
|
+
}
|
|
509
|
+
interface V2CopyEvidenceRound {
|
|
510
|
+
round_no: number;
|
|
511
|
+
hypothesis_version: number;
|
|
512
|
+
environment: string;
|
|
513
|
+
commit_sha: string;
|
|
514
|
+
author: string;
|
|
515
|
+
team_agent: string | null;
|
|
516
|
+
created_at: string;
|
|
517
|
+
blocks: V2CopyEvidenceBlock[];
|
|
518
|
+
}
|
|
519
|
+
interface V2CopyEvidenceRecord {
|
|
520
|
+
ref_num: number;
|
|
521
|
+
last_exhibit_no: number;
|
|
522
|
+
created_at: string;
|
|
523
|
+
hypothesis_versions: V2CopyEvidenceHypothesisVersion[];
|
|
524
|
+
rounds: V2CopyEvidenceRound[];
|
|
525
|
+
verdict_versions: V2CopyEvidenceVerdictVersion[];
|
|
526
|
+
}
|
|
332
527
|
interface V2CopyAc {
|
|
333
528
|
title: string;
|
|
334
529
|
checked: boolean;
|
|
@@ -433,6 +628,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
433
628
|
ref: string;
|
|
434
629
|
comment_index: number | null;
|
|
435
630
|
problem_index: number | null;
|
|
631
|
+
evidence_index: number | null;
|
|
436
632
|
card_linked: boolean;
|
|
437
633
|
author: V2CopyProvenanceParty | null;
|
|
438
634
|
at: string | null;
|
|
@@ -477,6 +673,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
477
673
|
comments: V2CopyComment[];
|
|
478
674
|
agent_notes: V2CopyAgentNote[];
|
|
479
675
|
decision_records: V2CopyDecisionRecord[];
|
|
676
|
+
evidence_records: V2CopyEvidenceRecord[];
|
|
480
677
|
created_tags: V2CopyCommentTag[];
|
|
481
678
|
dependencies: V2CopyDependency[];
|
|
482
679
|
retro: V2CopyRetro | null;
|
|
@@ -884,7 +1081,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
884
1081
|
answers_decision_id?: undefined | null | number;
|
|
885
1082
|
sign_off?: undefined | null | CommentSignOffViewV2;
|
|
886
1083
|
quoted_request?: undefined | null | ProvenanceRecordV2;
|
|
887
|
-
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; }>;
|
|
1084
|
+
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; } | { kind: "evidence"; ref: number; }>;
|
|
888
1085
|
resource_tags: Array<CommentResourceTag>;
|
|
889
1086
|
parent_comment_id: null | number;
|
|
890
1087
|
reply_phase: null | "ack" | "reply";
|
|
@@ -1010,6 +1207,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1010
1207
|
justification?: undefined | null | Justification;
|
|
1011
1208
|
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; };
|
|
1012
1209
|
problem_total?: undefined | number;
|
|
1210
|
+
evidence_record_total?: undefined | number;
|
|
1013
1211
|
decision_record_total?: undefined | number;
|
|
1014
1212
|
decision_record_page?: undefined | DecisionRecordPage;
|
|
1015
1213
|
decision_record_approved_total?: undefined | number;
|
|
@@ -1038,6 +1236,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1038
1236
|
conflict_on_reverse?: undefined | Array<ConflictEntryViewV2>;
|
|
1039
1237
|
conflict_on_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
1040
1238
|
conflict_dep_ids?: undefined | Record<string, number>;
|
|
1239
|
+
depends_on_landing?: undefined | Array<ConflictEntryViewV2>;
|
|
1240
|
+
depends_on_landing_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
1241
|
+
depends_on_landing_dep_ids?: undefined | Record<string, number>;
|
|
1041
1242
|
conflict_on_active_count?: undefined | number;
|
|
1042
1243
|
children?: undefined | Array<string>;
|
|
1043
1244
|
descendant_ids?: undefined | Array<string>;
|
|
@@ -1050,6 +1251,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1050
1251
|
comments_count?: undefined | number;
|
|
1051
1252
|
unread_comments_count?: undefined | number;
|
|
1052
1253
|
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
1254
|
+
unread_evidence_comment_counts?: undefined | Record<string, number>;
|
|
1053
1255
|
context_size?: undefined | ContextSize;
|
|
1054
1256
|
content_compaction?: undefined | null | { id: number; requested_at: string; } & { status: "waiting"; ended_at: null; failure_reason: null; } | { id: number; requested_at: string; } & { status: "working"; ended_at: null; failure_reason: null; job: CompactionJob; } | { id: number; requested_at: string; } & { status: "done"; ended_at: string; failure_reason: null; sizes: CompactionSizes; } | { id: number; requested_at: string; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
|
|
1055
1257
|
agent_notes_count?: undefined | number;
|
|
@@ -1082,6 +1284,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1082
1284
|
approved: boolean;
|
|
1083
1285
|
impact: number;
|
|
1084
1286
|
confidence: number;
|
|
1287
|
+
text: string;
|
|
1085
1288
|
rev: number;
|
|
1086
1289
|
created_at: string;
|
|
1087
1290
|
updated_at: string;
|
|
@@ -1089,7 +1292,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1089
1292
|
author: string;
|
|
1090
1293
|
by: AuthorV2;
|
|
1091
1294
|
via_key: null | ViaKey;
|
|
1092
|
-
text: string;
|
|
1093
1295
|
ref: string;
|
|
1094
1296
|
ref_num: number;
|
|
1095
1297
|
current_version: number;
|
|
@@ -1109,12 +1311,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1109
1311
|
made_by: "human" | "agent";
|
|
1110
1312
|
impact: number;
|
|
1111
1313
|
confidence: number;
|
|
1314
|
+
text: string;
|
|
1112
1315
|
id: number;
|
|
1113
1316
|
created_at: string;
|
|
1114
1317
|
author: string;
|
|
1115
1318
|
by: AuthorV2;
|
|
1116
1319
|
via_key: null | ViaKey;
|
|
1117
|
-
text: string;
|
|
1118
1320
|
ref: string;
|
|
1119
1321
|
approval: DecisionApprovalState;
|
|
1120
1322
|
made_by_user_id: null | number;
|
|
@@ -1133,6 +1335,67 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1133
1335
|
by_user_id: null | number;
|
|
1134
1336
|
by_name: string;
|
|
1135
1337
|
}>);
|
|
1338
|
+
}>);
|
|
1339
|
+
evidence_records?: undefined | (Array<{
|
|
1340
|
+
rev: number;
|
|
1341
|
+
created_at: string;
|
|
1342
|
+
updated_at: string;
|
|
1343
|
+
ref: string;
|
|
1344
|
+
ref_num: number;
|
|
1345
|
+
hypothesis: EvidenceHypothesisVersionView;
|
|
1346
|
+
verdict: null | EvidenceVerdictVersionView;
|
|
1347
|
+
exhibits: Array<EvidenceExhibitStatusView>;
|
|
1348
|
+
other_block_count: number;
|
|
1349
|
+
round_count: number;
|
|
1350
|
+
block_count: number;
|
|
1351
|
+
comment_count: number;
|
|
1352
|
+
unread_comment_count: number;
|
|
1353
|
+
rounds?: undefined | (Array<{
|
|
1354
|
+
created_at: string;
|
|
1355
|
+
author: string;
|
|
1356
|
+
by: AuthorV2;
|
|
1357
|
+
via_key: null | ViaKey;
|
|
1358
|
+
round_no: number;
|
|
1359
|
+
hypothesis_version: number;
|
|
1360
|
+
environment: string;
|
|
1361
|
+
commit_sha: string;
|
|
1362
|
+
blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log">>;
|
|
1363
|
+
}>);
|
|
1364
|
+
hypothesis_versions?: undefined | (Array<{
|
|
1365
|
+
id: number;
|
|
1366
|
+
version_no: number;
|
|
1367
|
+
question: string;
|
|
1368
|
+
expected_answer: string;
|
|
1369
|
+
exhibits: Array<EvidenceExhibitView>;
|
|
1370
|
+
reasoning: string;
|
|
1371
|
+
confidence: number;
|
|
1372
|
+
author: string;
|
|
1373
|
+
by: AuthorV2;
|
|
1374
|
+
via_key: null | ViaKey;
|
|
1375
|
+
created_at: string;
|
|
1376
|
+
made_by: "human" | "agent";
|
|
1377
|
+
made_by_user_id: null | number;
|
|
1378
|
+
made_by_name: null | string;
|
|
1379
|
+
made_by_author: AuthorV2;
|
|
1380
|
+
made_by_is_writer: boolean;
|
|
1381
|
+
}>);
|
|
1382
|
+
verdict_versions?: undefined | (Array<{
|
|
1383
|
+
id: number;
|
|
1384
|
+
version_no: number;
|
|
1385
|
+
answer: string;
|
|
1386
|
+
confidence: number;
|
|
1387
|
+
reasoning: string;
|
|
1388
|
+
cites: Array<string>;
|
|
1389
|
+
author: string;
|
|
1390
|
+
by: AuthorV2;
|
|
1391
|
+
via_key: null | ViaKey;
|
|
1392
|
+
created_at: string;
|
|
1393
|
+
made_by: "human" | "agent";
|
|
1394
|
+
made_by_user_id: null | number;
|
|
1395
|
+
made_by_name: null | string;
|
|
1396
|
+
made_by_author: AuthorV2;
|
|
1397
|
+
made_by_is_writer: boolean;
|
|
1398
|
+
}>);
|
|
1136
1399
|
}>);
|
|
1137
1400
|
decision_record_versions?: undefined | (Array<{
|
|
1138
1401
|
title: string;
|
|
@@ -1141,12 +1404,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1141
1404
|
made_by: "human" | "agent";
|
|
1142
1405
|
impact: number;
|
|
1143
1406
|
confidence: number;
|
|
1407
|
+
text: string;
|
|
1144
1408
|
id: number;
|
|
1145
1409
|
created_at: string;
|
|
1146
1410
|
author: string;
|
|
1147
1411
|
by: AuthorV2;
|
|
1148
1412
|
via_key: null | ViaKey;
|
|
1149
|
-
text: string;
|
|
1150
1413
|
ref: string;
|
|
1151
1414
|
approval: DecisionApprovalState;
|
|
1152
1415
|
made_by_user_id: null | number;
|
|
@@ -1165,15 +1428,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1165
1428
|
by_user_id: null | number;
|
|
1166
1429
|
by_name: string;
|
|
1167
1430
|
}>);
|
|
1168
|
-
work_marks?: undefined | Array<{
|
|
1431
|
+
work_marks?: undefined | (Array<{
|
|
1169
1432
|
id: number;
|
|
1170
1433
|
via_key_id: number;
|
|
1171
1434
|
resource: WorkMarkResource;
|
|
1172
1435
|
note: string;
|
|
1173
1436
|
by: AuthorV2;
|
|
1174
1437
|
started_at: string;
|
|
1175
|
-
expires_at: string;
|
|
1176
|
-
}
|
|
1438
|
+
expires_at: null | string;
|
|
1439
|
+
}>);
|
|
1177
1440
|
pull_request_reviews?: undefined | (Array<{
|
|
1178
1441
|
id: number;
|
|
1179
1442
|
kind: "comment" | "review" | "thread";
|
|
@@ -1226,7 +1489,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1226
1489
|
actor: string;
|
|
1227
1490
|
actor_ref: ActorRef;
|
|
1228
1491
|
via_key: undefined | null | ViaKey;
|
|
1229
|
-
event: "created" | "blocked" | "activity" | "status_change" | "unblocked" | "field_change" | "dependency_added" | "dependency_removed" | "conflict_added" | "conflict_removed";
|
|
1492
|
+
event: "created" | "blocked" | "activity" | "status_change" | "unblocked" | "field_change" | "dependency_added" | "dependency_removed" | "conflict_added" | "conflict_removed" | "landing_dependency_added" | "landing_dependency_removed";
|
|
1230
1493
|
label: undefined | StatusReason;
|
|
1231
1494
|
from: undefined | "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1232
1495
|
to: undefined | "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
@@ -1327,12 +1590,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1327
1590
|
made_by: "human" | "agent";
|
|
1328
1591
|
impact: number;
|
|
1329
1592
|
confidence: number;
|
|
1593
|
+
text: string;
|
|
1330
1594
|
id: number;
|
|
1331
1595
|
created_at: string;
|
|
1332
1596
|
author: string;
|
|
1333
1597
|
by: AuthorV2;
|
|
1334
1598
|
via_key: null | ViaKey;
|
|
1335
|
-
text: string;
|
|
1336
1599
|
ref: string;
|
|
1337
1600
|
approval: DecisionApprovalState;
|
|
1338
1601
|
made_by_user_id: null | number;
|
|
@@ -1346,10 +1609,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1346
1609
|
};
|
|
1347
1610
|
type SolutionViewV2 = {
|
|
1348
1611
|
title: string;
|
|
1349
|
-
id: number;
|
|
1350
|
-
content_hash: string;
|
|
1351
|
-
body: string;
|
|
1352
|
-
steps_hash: string;
|
|
1353
1612
|
steps: Array<{
|
|
1354
1613
|
id: number;
|
|
1355
1614
|
solution_id: number;
|
|
@@ -1362,6 +1621,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1362
1621
|
checked_by: null | string;
|
|
1363
1622
|
steps: Array<SolutionStepViewV2>;
|
|
1364
1623
|
}>;
|
|
1624
|
+
id: number;
|
|
1625
|
+
content_hash: string;
|
|
1626
|
+
body: string;
|
|
1627
|
+
steps_hash: string;
|
|
1365
1628
|
removed: boolean;
|
|
1366
1629
|
pro: string;
|
|
1367
1630
|
con: string;
|
|
@@ -1448,7 +1711,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1448
1711
|
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
1449
1712
|
type IssueProblemType = "design" | "question" | "action" | "decision_review";
|
|
1450
1713
|
type DecisionOutcome = "rejected" | "answered";
|
|
1451
|
-
type
|
|
1714
|
+
type GatingDependencyKind = "conflict_on" | "depends_on";
|
|
1715
|
+
type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
|
|
1452
1716
|
type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
|
|
1453
1717
|
type IssueAssignmentMode = "automated" | "manual";
|
|
1454
1718
|
type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
|
|
@@ -1902,6 +2166,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1902
2166
|
interface AttachmentViewer {
|
|
1903
2167
|
open: (attachmentId: number) => void;
|
|
1904
2168
|
element: ReactNode;
|
|
2169
|
+
live: ReadonlyMap<number, ShownAttachment>;
|
|
1905
2170
|
}
|
|
1906
2171
|
|
|
1907
2172
|
function AttachmentsTab({ cardId, actions, viewer, }: {
|
package/dist/publish.d.ts
CHANGED
|
@@ -8,8 +8,17 @@ declare function sourceFiles(projectDir: string): Promise<string[]>;
|
|
|
8
8
|
/** The project's source as a gzip-compressed tar archive, ready for `source_archive_base64`. The same files give the same bytes (fixed mtime, `portable`). */
|
|
9
9
|
declare function archiveSource(projectDir: string): Promise<Buffer>;
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* DX-6233 (PLAN-96 G-6) - the shapes of the widget-surface domain that the server and the app both read. Plan section "Extensibility: widgets and
|
|
13
|
+
* plugins" is the spec. Pure and import-free of Node, because the app imports this module at runtime (`@backend/widget-surfaces/model.js`).
|
|
14
|
+
*
|
|
15
|
+
* The surface-wide settings are system-defined: every Widget knows they exist and a Widget receives only the ones it declares it reads. For now they are a
|
|
16
|
+
* date range (primary), a keyword search and (DX-7166) the alert areas to show. A surface stores all of them as its defaults (a writer seeds them when it creates the surface; a reader never
|
|
17
|
+
* fills a missing one in), and a person's override is sparse: a key absent from it means the person has chosen nothing for that setting.
|
|
18
|
+
*/
|
|
19
|
+
|
|
11
20
|
/** The names of the surface-wide settings, one per member of {@link SurfaceWideSettings} (a new member fails `tsc` here). */
|
|
12
|
-
declare const SURFACE_WIDE_SETTING_KEYS: readonly ["date_range", "keyword"];
|
|
21
|
+
declare const SURFACE_WIDE_SETTING_KEYS: readonly ["date_range", "keyword", "areas"];
|
|
13
22
|
type SurfaceWideSettingKey = (typeof SURFACE_WIDE_SETTING_KEYS)[number];
|
|
14
23
|
|
|
15
24
|
/**
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* DX-6233 (PLAN-96 G-6) - the shapes of the widget-surface domain that the server and the app both read. Plan section "Extensibility: widgets and
|
|
5
|
+
* plugins" is the spec. Pure and import-free of Node, because the app imports this module at runtime (`@backend/widget-surfaces/model.js`).
|
|
6
|
+
*
|
|
7
|
+
* The surface-wide settings are system-defined: every Widget knows they exist and a Widget receives only the ones it declares it reads. For now they are a
|
|
8
|
+
* date range (primary), a keyword search and (DX-7166) the alert areas to show. A surface stores all of them as its defaults (a writer seeds them when it creates the surface; a reader never
|
|
9
|
+
* fills a missing one in), and a person's override is sparse: a key absent from it means the person has chosen nothing for that setting.
|
|
10
|
+
*/
|
|
11
|
+
|
|
3
12
|
/** The names of the surface-wide settings, one per member of {@link SurfaceWideSettings} (a new member fails `tsc` here). */
|
|
4
|
-
declare const SURFACE_WIDE_SETTING_KEYS: readonly ["date_range", "keyword"];
|
|
13
|
+
declare const SURFACE_WIDE_SETTING_KEYS: readonly ["date_range", "keyword", "areas"];
|
|
5
14
|
type SurfaceWideSettingKey = (typeof SURFACE_WIDE_SETTING_KEYS)[number];
|
|
6
15
|
|
|
7
16
|
/**
|
package/dist/vite.js
CHANGED
package/dist/widgets.d.ts
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
+
/** The areas an alert belongs to; the Performance tab's Areas filter (DX-7166) picks among them. */
|
|
2
|
+
declare const ALERT_AREAS: readonly ["machine", "agents", "pacing", "delivery"];
|
|
3
|
+
type AlertArea = (typeof ALERT_AREAS)[number];
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* DX-6233 (PLAN-96 G-6) - the shapes of the widget-surface domain that the server and the app both read. Plan section "Extensibility: widgets and
|
|
7
|
+
* plugins" is the spec. Pure and import-free of Node, because the app imports this module at runtime (`@backend/widget-surfaces/model.js`).
|
|
8
|
+
*
|
|
9
|
+
* The surface-wide settings are system-defined: every Widget knows they exist and a Widget receives only the ones it declares it reads. For now they are a
|
|
10
|
+
* date range (primary), a keyword search and (DX-7166) the alert areas to show. A surface stores all of them as its defaults (a writer seeds them when it creates the surface; a reader never
|
|
11
|
+
* fills a missing one in), and a person's override is sparse: a key absent from it means the person has chosen nothing for that setting.
|
|
12
|
+
*/
|
|
13
|
+
|
|
1
14
|
declare const DATE_RANGES: readonly ["24h", "7d", "30d"];
|
|
2
15
|
type DateRange = (typeof DATE_RANGES)[number];
|
|
3
16
|
/** Every surface-wide setting a surface stores a default for. */
|
|
4
17
|
interface SurfaceWideSettings {
|
|
5
18
|
date_range: DateRange;
|
|
6
19
|
keyword: string;
|
|
20
|
+
/** DX-7166: the alert areas the surface's Widgets show; none picked (an empty list) shows every area. */
|
|
21
|
+
areas: AlertArea[];
|
|
7
22
|
}
|
|
8
23
|
/** The names of the surface-wide settings, one per member of {@link SurfaceWideSettings} (a new member fails `tsc` here). */
|
|
9
|
-
declare const SURFACE_WIDE_SETTING_KEYS: readonly ["date_range", "keyword"];
|
|
24
|
+
declare const SURFACE_WIDE_SETTING_KEYS: readonly ["date_range", "keyword", "areas"];
|
|
10
25
|
type SurfaceWideSettingKey = (typeof SURFACE_WIDE_SETTING_KEYS)[number];
|
|
11
26
|
|
|
12
27
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.63",
|
|
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",
|