@50arms/plugin-sdk 0.2.63 → 0.2.64

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.
Files changed (2) hide show
  1. package/dist/card-kit.d.ts +51 -3
  2. package/package.json +1 -1
@@ -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 EvidenceAttachmentRole = "file" | "csv";
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;
@@ -929,6 +960,18 @@ declare module "@danxbot/card-kit@1" {
929
960
  agent_wait: StatusReason | null;
930
961
  orchestrator_profile: string | null;
931
962
  }
963
+
964
+ interface LandingAheadRegistration {
965
+ readonly card: CardRef;
966
+ readonly sha: string;
967
+ readonly state: "landing" | "queued";
968
+ readonly docs_root: string | null;
969
+ }
970
+ interface LandingAheadView {
971
+ readonly target_branch: string;
972
+ readonly docs_root: string | null;
973
+ readonly ahead: readonly LandingAheadRegistration[];
974
+ }
932
975
  type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
933
976
  type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "notes" | "open_cards";
934
977
  type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
@@ -1205,6 +1248,7 @@ declare module "@danxbot/card-kit@1" {
1205
1248
  risk_set?: undefined | null | { at: string; by: AuthorV2; };
1206
1249
  risk_raise_reason?: undefined | null | string;
1207
1250
  justification?: undefined | null | Justification;
1251
+ bump_size?: undefined | "patch" | "minor" | "major";
1208
1252
  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
1253
  problem_total?: undefined | number;
1210
1254
  evidence_record_total?: undefined | number;
@@ -1275,6 +1319,7 @@ declare module "@danxbot/card-kit@1" {
1275
1319
  review_runnable?: undefined | false | true;
1276
1320
  dispatchable_explain?: undefined | DispatchableExplainView;
1277
1321
  copy_payload?: undefined | V2CopyPayload;
1322
+ landing_ahead?: undefined | LandingAheadView;
1278
1323
  copy_issue?: undefined | V2CopyIssue;
1279
1324
  decision_records?: undefined | (Array<{
1280
1325
  title: string;
@@ -1359,7 +1404,7 @@ declare module "@danxbot/card-kit@1" {
1359
1404
  hypothesis_version: number;
1360
1405
  environment: string;
1361
1406
  commit_sha: string;
1362
- blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log">>;
1407
+ blocks: Array<EvidenceBlockViewBase<"note"> | EvidenceBlockViewBase<"steps"> | EvidenceBlockViewBase<"command"> | EvidenceBlockViewBase<"table"> | EvidenceBlockViewBase<"code"> | EvidenceBlockViewBase<"diff"> | EvidenceBlockViewBase<"log"> | EvidenceBlockViewBase<"samples">>;
1363
1408
  }>);
1364
1409
  hypothesis_versions?: undefined | (Array<{
1365
1410
  id: number;
@@ -1367,6 +1412,7 @@ declare module "@danxbot/card-kit@1" {
1367
1412
  question: string;
1368
1413
  expected_answer: string;
1369
1414
  exhibits: Array<EvidenceExhibitView>;
1415
+ subjects: Array<string>;
1370
1416
  reasoning: string;
1371
1417
  confidence: number;
1372
1418
  author: string;
@@ -1737,6 +1783,7 @@ declare module "@danxbot/card-kit@1" {
1737
1783
  risk_raise_reason: string | null;
1738
1784
  justification_quote: string | null;
1739
1785
  justification_reasoning: string | null;
1786
+ bump_size: BumpSize;
1740
1787
  start_commit_sha: string | null;
1741
1788
  start_commit_at: string | null;
1742
1789
  start_commit_error: StartCommitError | null;
@@ -1984,6 +2031,7 @@ declare module "@danxbot/card-kit@1" {
1984
2031
  type?: CardTypeKey;
1985
2032
  parent_id?: string | null;
1986
2033
  effort_level?: EffortLevelName;
2034
+ bump_size?: BumpSize;
1987
2035
  content_hash?: string;
1988
2036
  }
1989
2037
  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.63",
3
+ "version": "0.2.64",
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",