@50arms/plugin-sdk 0.2.80 → 0.2.82

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 +30 -19
  2. package/package.json +1 -1
@@ -523,7 +523,9 @@ declare module "@danxbot/card-kit@1" {
523
523
  }
524
524
  interface V2CopyAgentNote {
525
525
  author: string;
526
- text: string;
526
+ title: string | null;
527
+ summary: string | null;
528
+ body: string | null;
527
529
  reduced_text: string | null;
528
530
  team_agent: string | null;
529
531
  metadata: Record<string, unknown> | null;
@@ -658,6 +660,7 @@ declare module "@danxbot/card-kit@1" {
658
660
  position: number;
659
661
  signoff_required: boolean;
660
662
  confidence_threshold: number | null;
663
+ violation_instructions: string | null;
661
664
  kind: BehaviorRuleKind | null;
662
665
  }
663
666
  interface V2CopyBehaviorPolicy {
@@ -670,7 +673,7 @@ declare module "@danxbot/card-kit@1" {
670
673
  signoff_board_ids: number[];
671
674
  pin_no: number;
672
675
  violation_instructions: string;
673
- confidence_threshold: number;
676
+ confidence_threshold: number | null;
674
677
  rules: V2CopyBehaviorRule[];
675
678
  }
676
679
  interface V2CopyBehaviorReview {
@@ -871,7 +874,7 @@ declare module "@danxbot/card-kit@1" {
871
874
  };
872
875
  interface V2CopyProvenanceRecord {
873
876
  reasoning: string | null;
874
- confidence: number | null;
877
+ confidence: number;
875
878
  impact: number | null;
876
879
  sources: V2CopyProvenanceSource[];
877
880
  recorded_by: V2CopyProvenanceParty;
@@ -987,7 +990,8 @@ declare module "@danxbot/card-kit@1" {
987
990
  readonly text: string;
988
991
  readonly rule_version: string;
989
992
  readonly signoff_required: boolean;
990
- readonly confidence_threshold: number;
993
+ readonly confidence_threshold: number | null;
994
+ readonly violation_instructions: string | null;
991
995
  readonly kind: BehaviorRuleKind;
992
996
  readonly gates: string[];
993
997
  readonly any_agent: boolean;
@@ -1001,8 +1005,8 @@ declare module "@danxbot/card-kit@1" {
1001
1005
  readonly quality_gate_types: string[] | null;
1002
1006
  readonly attached_at: string | null;
1003
1007
  readonly stale: boolean;
1004
- readonly violation_instructions: string;
1005
- readonly confidence_threshold: number;
1008
+ readonly violation_instructions: string | null;
1009
+ readonly confidence_threshold: number | null;
1006
1010
  readonly signoff_required: boolean;
1007
1011
  readonly signoff_board_ids: number[];
1008
1012
  readonly rules: BehaviorRuleView[];
@@ -1329,7 +1333,7 @@ declare module "@danxbot/card-kit@1" {
1329
1333
  text: string;
1330
1334
  status: "compliant" | "rejected" | "not_applicable";
1331
1335
  confidence: number;
1332
- threshold: number;
1336
+ threshold: number | null;
1333
1337
  note: string | null;
1334
1338
  }
1335
1339
  interface SignedPolicy {
@@ -1357,7 +1361,7 @@ declare module "@danxbot/card-kit@1" {
1357
1361
  ref: string;
1358
1362
  version: string;
1359
1363
  text: string;
1360
- threshold: number;
1364
+ threshold: number | null;
1361
1365
  };
1362
1366
  policies: {
1363
1367
  policy: string;
@@ -1449,8 +1453,6 @@ declare module "@danxbot/card-kit@1" {
1449
1453
  type DispatchKeyRefusal = {
1450
1454
  reason: "role_exceeds_owner";
1451
1455
  missingPermissions: readonly string[];
1452
- } | {
1453
- reason: "owner_terms_not_accepted";
1454
1456
  } | {
1455
1457
  reason: "owner_not_member";
1456
1458
  } | {
@@ -1519,6 +1521,7 @@ declare module "@danxbot/card-kit@1" {
1519
1521
  interface CardLanding {
1520
1522
  readonly status: CardLandingStatus;
1521
1523
  readonly waiting: boolean;
1524
+ readonly held_gates: readonly string[];
1522
1525
  readonly target_branch: string;
1523
1526
  readonly sha: string;
1524
1527
  readonly registered_at: string;
@@ -1667,6 +1670,7 @@ declare module "@danxbot/card-kit@1" {
1667
1670
  issue_title: string;
1668
1671
  }
1669
1672
  type IssueViewV2 = {
1673
+ landing?: undefined | null | CardLanding;
1670
1674
  comments?: undefined | (Array<{
1671
1675
  id: string;
1672
1676
  rev: number;
@@ -1712,16 +1716,19 @@ declare module "@danxbot/card-kit@1" {
1712
1716
  stored_row?: undefined | IssueDisplayV2;
1713
1717
  agent_notes?: undefined | (Array<{
1714
1718
  id: string;
1715
- author: string;
1719
+ title: null | string;
1720
+ summary: null | string;
1716
1721
  by: AuthorV2;
1717
- via_key: null | ViaKey;
1718
1722
  timestamp: string;
1719
1723
  updated_at: string;
1724
+ body_chars: number;
1725
+ author?: undefined | string;
1726
+ via_key?: undefined | null | ViaKey;
1720
1727
  content_hash?: undefined | string;
1721
- text: string;
1728
+ body?: undefined | null | string;
1722
1729
  reduced?: undefined | true;
1723
1730
  reduced_text?: undefined | null | string;
1724
- metadata: unknown;
1731
+ metadata?: unknown;
1725
1732
  }>);
1726
1733
  designs?: undefined | (Array<{
1727
1734
  ref_num: number;
@@ -1799,6 +1806,9 @@ declare module "@danxbot/card-kit@1" {
1799
1806
  refs?: undefined | Array<CardRefViewV2>;
1800
1807
  parent_title?: undefined | null | string;
1801
1808
  parent_type?: undefined | null | string;
1809
+ parent_priority?: undefined | null | number;
1810
+ parent_status?: undefined | null | "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
1811
+ parent_board_id?: undefined | null | BoardRefNum;
1802
1812
  parent_created_at?: undefined | null | number;
1803
1813
  parent_updated_at?: undefined | null | number;
1804
1814
  parent_blocked?: undefined | null | false | true;
@@ -1831,8 +1841,7 @@ declare module "@danxbot/card-kit@1" {
1831
1841
  triage?: undefined | TriageViewV2;
1832
1842
  triage_enabled?: undefined | false | true;
1833
1843
  dispatch?: undefined | null | { started_at: string | null; };
1834
- dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
1835
- landing?: undefined | null | CardLanding;
1844
+ dispatch_kind?: undefined | null | "landing" | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
1836
1845
  assignment_mode?: undefined | "manual" | "automated";
1837
1846
  assigned_agent_kind?: undefined | null | "person" | "session" | "worker" | "label";
1838
1847
  assigned_agent_pause?: undefined | null | HolderAgentPause;
@@ -2413,7 +2422,7 @@ declare module "@danxbot/card-kit@1" {
2413
2422
  type DecisionOutcome = "rejected" | "answered";
2414
2423
  type GatingDependencyKind = "conflict_on" | "depends_on";
2415
2424
  type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
2416
- type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
2425
+ type IssueDispatchKind = "landing" | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
2417
2426
  type IssueAssignmentMode = "automated" | "manual";
2418
2427
  type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
2419
2428
  interface IssueV2 {
@@ -2655,7 +2664,7 @@ declare module "@danxbot/card-kit@1" {
2655
2664
  interface ProvenanceRecordV2 {
2656
2665
  id: number;
2657
2666
  reasoning: string | null;
2658
- confidence: number | null;
2667
+ confidence: number;
2659
2668
  impact: number | null;
2660
2669
  sources: ProvenanceSourceV2[];
2661
2670
  recorded_by: AuthorV2;
@@ -2794,6 +2803,7 @@ declare module "@danxbot/card-kit@1" {
2794
2803
  readonly kind: "board";
2795
2804
  readonly board: BoardRefNum;
2796
2805
  readonly boards: readonly BoardRefNum[];
2806
+ readonly jobType?: string;
2797
2807
  } | {
2798
2808
  readonly kind: "plan";
2799
2809
  readonly planId: number;
@@ -3055,9 +3065,10 @@ declare module "@danxbot/card-kit@1" {
3055
3065
  }
3056
3066
  function CardFace({ card, renderTitle, trailing, statusMark, cover, }: CardFaceProps): react.JSX.Element;
3057
3067
 
3058
- function CardBoard({ state, cardPath, }: {
3068
+ function CardBoard({ state, cardPath, laneControls, }: {
3059
3069
  state: BoardLaneState;
3060
3070
  cardPath?: (cardId: string) => string;
3071
+ laneControls?: ReactNode;
3061
3072
  }): react.JSX.Element;
3062
3073
 
3063
3074
  type CardViewProps = StandardCardPageProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/plugin-sdk",
3
- "version": "0.2.80",
3
+ "version": "0.2.82",
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",