@50arms/plugin-sdk 0.2.63 → 0.2.65
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 +68 -3
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export { Link, useNavigate } from 'react-router';
|
|
6
6
|
|
|
7
|
+
type BumpSize = "patch" | "minor" | "major";
|
|
7
8
|
type RiskScore = "R0" | "R1" | "R2" | "R3" | "R4";
|
|
8
9
|
|
|
9
10
|
const BOARD_ID: unique symbol;
|
|
@@ -176,10 +177,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
176
177
|
offset: number;
|
|
177
178
|
target_found: boolean | null;
|
|
178
179
|
}
|
|
179
|
-
type EvidenceBlockType = "note" | "steps" | "command" | "table" | "code" | "diff" | "log";
|
|
180
|
+
type EvidenceBlockType = "note" | "steps" | "command" | "table" | "code" | "diff" | "log" | "samples";
|
|
180
181
|
type EvidenceMadeBy = "human" | "agent";
|
|
181
182
|
type EvidenceColumnType = "number" | "boolean" | "text" | "date";
|
|
182
|
-
type
|
|
183
|
+
type EvidenceChartKind = "line" | "time_series" | "bar";
|
|
184
|
+
type EvidenceAttachmentRole = "samples" | "file" | "csv";
|
|
183
185
|
|
|
184
186
|
interface EvidenceColumn {
|
|
185
187
|
name: string;
|
|
@@ -197,9 +199,16 @@ declare module "@danxbot/card-kit@1" {
|
|
|
197
199
|
actual: string | null;
|
|
198
200
|
}>;
|
|
199
201
|
}
|
|
202
|
+
interface EvidenceChart {
|
|
203
|
+
kind: EvidenceChartKind;
|
|
204
|
+
x: string;
|
|
205
|
+
y: string[];
|
|
206
|
+
title: string | null;
|
|
207
|
+
}
|
|
200
208
|
interface EvidenceTableRows {
|
|
201
209
|
columns: EvidenceColumn[];
|
|
202
210
|
rows: EvidenceCell[][];
|
|
211
|
+
charts: EvidenceChart[];
|
|
203
212
|
}
|
|
204
213
|
interface EvidenceCommandData {
|
|
205
214
|
command: string;
|
|
@@ -234,6 +243,25 @@ declare module "@danxbot/card-kit@1" {
|
|
|
234
243
|
highlight_lines: number[];
|
|
235
244
|
text: string;
|
|
236
245
|
}
|
|
246
|
+
interface EvidenceSamplesStats {
|
|
247
|
+
n: number;
|
|
248
|
+
min: number;
|
|
249
|
+
p50: number;
|
|
250
|
+
p95: number;
|
|
251
|
+
max: number;
|
|
252
|
+
mean: number;
|
|
253
|
+
stddev: number;
|
|
254
|
+
}
|
|
255
|
+
interface EvidenceSamplesVariant {
|
|
256
|
+
name: string;
|
|
257
|
+
values: number[];
|
|
258
|
+
stats: EvidenceSamplesStats;
|
|
259
|
+
}
|
|
260
|
+
interface EvidenceSamplesData {
|
|
261
|
+
source: "inline" | "file";
|
|
262
|
+
unit: string;
|
|
263
|
+
variants: EvidenceSamplesVariant[];
|
|
264
|
+
}
|
|
237
265
|
interface EvidenceBlockDataByType {
|
|
238
266
|
note: EvidenceNoteData;
|
|
239
267
|
steps: EvidenceStepsData;
|
|
@@ -242,6 +270,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
242
270
|
code: EvidenceCodeData;
|
|
243
271
|
diff: EvidenceDiffData;
|
|
244
272
|
log: EvidenceLogData;
|
|
273
|
+
samples: EvidenceSamplesData;
|
|
245
274
|
}
|
|
246
275
|
interface EvidenceWriterView {
|
|
247
276
|
author: string;
|
|
@@ -269,6 +298,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
269
298
|
question: string;
|
|
270
299
|
expected_answer: string;
|
|
271
300
|
exhibits: EvidenceExhibitView[];
|
|
301
|
+
subjects: string[];
|
|
272
302
|
reasoning: string;
|
|
273
303
|
confidence: number;
|
|
274
304
|
}
|
|
@@ -485,6 +515,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
485
515
|
reasoning: string;
|
|
486
516
|
confidence: number;
|
|
487
517
|
exhibits: V2CopyEvidenceExhibit[];
|
|
518
|
+
subjects: string[];
|
|
488
519
|
}
|
|
489
520
|
interface V2CopyEvidenceVerdictVersion extends V2CopyEvidenceMaker {
|
|
490
521
|
version_no: number;
|
|
@@ -821,6 +852,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
821
852
|
before_tokens: number | null;
|
|
822
853
|
after_tokens: number | null;
|
|
823
854
|
}
|
|
855
|
+
type ReleasingRegistrationState = "waiting" | "registered" | "batched" | "landed";
|
|
856
|
+
interface DependencyLanding {
|
|
857
|
+
readonly registration_id: number;
|
|
858
|
+
readonly state: ReleasingRegistrationState;
|
|
859
|
+
readonly sha: string;
|
|
860
|
+
readonly branch: string;
|
|
861
|
+
}
|
|
824
862
|
|
|
825
863
|
type PreGateHold = {
|
|
826
864
|
kind: "awaiting_person";
|
|
@@ -929,6 +967,27 @@ declare module "@danxbot/card-kit@1" {
|
|
|
929
967
|
agent_wait: StatusReason | null;
|
|
930
968
|
orchestrator_profile: string | null;
|
|
931
969
|
}
|
|
970
|
+
|
|
971
|
+
interface StackedOnWire {
|
|
972
|
+
card: string;
|
|
973
|
+
state: PartnerState;
|
|
974
|
+
shas: string[];
|
|
975
|
+
}
|
|
976
|
+
type PartnerState = "live" | "cancelled" | "deleted";
|
|
977
|
+
|
|
978
|
+
interface LandingAheadRegistration {
|
|
979
|
+
readonly card: CardRef;
|
|
980
|
+
readonly sha: string;
|
|
981
|
+
readonly state: "landing" | "queued";
|
|
982
|
+
readonly docs_root: string | null;
|
|
983
|
+
readonly stacked_on: readonly StackedOnWire[];
|
|
984
|
+
}
|
|
985
|
+
interface LandingAheadView {
|
|
986
|
+
readonly target_branch: string;
|
|
987
|
+
readonly docs_root: string | null;
|
|
988
|
+
readonly stacked_on: readonly StackedOnWire[];
|
|
989
|
+
readonly ahead: readonly LandingAheadRegistration[];
|
|
990
|
+
}
|
|
932
991
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
933
992
|
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "notes" | "open_cards";
|
|
934
993
|
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
|
|
@@ -1205,6 +1264,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1205
1264
|
risk_set?: undefined | null | { at: string; by: AuthorV2; };
|
|
1206
1265
|
risk_raise_reason?: undefined | null | string;
|
|
1207
1266
|
justification?: undefined | null | Justification;
|
|
1267
|
+
bump_size?: undefined | "patch" | "minor" | "major";
|
|
1208
1268
|
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; };
|
|
1209
1269
|
problem_total?: undefined | number;
|
|
1210
1270
|
evidence_record_total?: undefined | number;
|
|
@@ -1232,6 +1292,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1232
1292
|
waiting_on_gate?: undefined | null | WaitingOnViewV2;
|
|
1233
1293
|
waiting_on_dep_ids?: undefined | Record<string, number>;
|
|
1234
1294
|
dependency_pull_requests?: undefined | Record<string, DependencyPullRequestViewV2>;
|
|
1295
|
+
dependency_landings?: undefined | Record<string, DependencyLanding>;
|
|
1235
1296
|
conflict_on?: undefined | Array<ConflictEntryViewV2>;
|
|
1236
1297
|
conflict_on_reverse?: undefined | Array<ConflictEntryViewV2>;
|
|
1237
1298
|
conflict_on_partners?: undefined | Record<string, { status: IssueStatus; title: string; }>;
|
|
@@ -1275,6 +1336,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1275
1336
|
review_runnable?: undefined | false | true;
|
|
1276
1337
|
dispatchable_explain?: undefined | DispatchableExplainView;
|
|
1277
1338
|
copy_payload?: undefined | V2CopyPayload;
|
|
1339
|
+
landing_ahead?: undefined | LandingAheadView;
|
|
1278
1340
|
copy_issue?: undefined | V2CopyIssue;
|
|
1279
1341
|
decision_records?: undefined | (Array<{
|
|
1280
1342
|
title: string;
|
|
@@ -1359,7 +1421,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1359
1421
|
hypothesis_version: number;
|
|
1360
1422
|
environment: string;
|
|
1361
1423
|
commit_sha: string;
|
|
1362
|
-
blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log">>;
|
|
1424
|
+
blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log"> | EvidenceBlockViewBase<"samples">>;
|
|
1363
1425
|
}>);
|
|
1364
1426
|
hypothesis_versions?: undefined | (Array<{
|
|
1365
1427
|
id: number;
|
|
@@ -1367,6 +1429,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1367
1429
|
question: string;
|
|
1368
1430
|
expected_answer: string;
|
|
1369
1431
|
exhibits: Array<EvidenceExhibitView>;
|
|
1432
|
+
subjects: Array<string>;
|
|
1370
1433
|
reasoning: string;
|
|
1371
1434
|
confidence: number;
|
|
1372
1435
|
author: string;
|
|
@@ -1737,6 +1800,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1737
1800
|
risk_raise_reason: string | null;
|
|
1738
1801
|
justification_quote: string | null;
|
|
1739
1802
|
justification_reasoning: string | null;
|
|
1803
|
+
bump_size: BumpSize;
|
|
1740
1804
|
start_commit_sha: string | null;
|
|
1741
1805
|
start_commit_at: string | null;
|
|
1742
1806
|
start_commit_error: StartCommitError | null;
|
|
@@ -1984,6 +2048,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1984
2048
|
type?: CardTypeKey;
|
|
1985
2049
|
parent_id?: string | null;
|
|
1986
2050
|
effort_level?: EffortLevelName;
|
|
2051
|
+
bump_size?: BumpSize;
|
|
1987
2052
|
content_hash?: string;
|
|
1988
2053
|
}
|
|
1989
2054
|
function editCard(id: string, patch: CardEditPatch): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.65",
|
|
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",
|