@50arms/plugin-sdk 0.2.80 → 0.2.81

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 +19 -14
  2. package/package.json +1 -1
@@ -658,6 +658,7 @@ declare module "@danxbot/card-kit@1" {
658
658
  position: number;
659
659
  signoff_required: boolean;
660
660
  confidence_threshold: number | null;
661
+ violation_instructions: string | null;
661
662
  kind: BehaviorRuleKind | null;
662
663
  }
663
664
  interface V2CopyBehaviorPolicy {
@@ -670,7 +671,7 @@ declare module "@danxbot/card-kit@1" {
670
671
  signoff_board_ids: number[];
671
672
  pin_no: number;
672
673
  violation_instructions: string;
673
- confidence_threshold: number;
674
+ confidence_threshold: number | null;
674
675
  rules: V2CopyBehaviorRule[];
675
676
  }
676
677
  interface V2CopyBehaviorReview {
@@ -871,7 +872,7 @@ declare module "@danxbot/card-kit@1" {
871
872
  };
872
873
  interface V2CopyProvenanceRecord {
873
874
  reasoning: string | null;
874
- confidence: number | null;
875
+ confidence: number;
875
876
  impact: number | null;
876
877
  sources: V2CopyProvenanceSource[];
877
878
  recorded_by: V2CopyProvenanceParty;
@@ -987,7 +988,8 @@ declare module "@danxbot/card-kit@1" {
987
988
  readonly text: string;
988
989
  readonly rule_version: string;
989
990
  readonly signoff_required: boolean;
990
- readonly confidence_threshold: number;
991
+ readonly confidence_threshold: number | null;
992
+ readonly violation_instructions: string | null;
991
993
  readonly kind: BehaviorRuleKind;
992
994
  readonly gates: string[];
993
995
  readonly any_agent: boolean;
@@ -1001,8 +1003,8 @@ declare module "@danxbot/card-kit@1" {
1001
1003
  readonly quality_gate_types: string[] | null;
1002
1004
  readonly attached_at: string | null;
1003
1005
  readonly stale: boolean;
1004
- readonly violation_instructions: string;
1005
- readonly confidence_threshold: number;
1006
+ readonly violation_instructions: string | null;
1007
+ readonly confidence_threshold: number | null;
1006
1008
  readonly signoff_required: boolean;
1007
1009
  readonly signoff_board_ids: number[];
1008
1010
  readonly rules: BehaviorRuleView[];
@@ -1329,7 +1331,7 @@ declare module "@danxbot/card-kit@1" {
1329
1331
  text: string;
1330
1332
  status: "compliant" | "rejected" | "not_applicable";
1331
1333
  confidence: number;
1332
- threshold: number;
1334
+ threshold: number | null;
1333
1335
  note: string | null;
1334
1336
  }
1335
1337
  interface SignedPolicy {
@@ -1357,7 +1359,7 @@ declare module "@danxbot/card-kit@1" {
1357
1359
  ref: string;
1358
1360
  version: string;
1359
1361
  text: string;
1360
- threshold: number;
1362
+ threshold: number | null;
1361
1363
  };
1362
1364
  policies: {
1363
1365
  policy: string;
@@ -1449,8 +1451,6 @@ declare module "@danxbot/card-kit@1" {
1449
1451
  type DispatchKeyRefusal = {
1450
1452
  reason: "role_exceeds_owner";
1451
1453
  missingPermissions: readonly string[];
1452
- } | {
1453
- reason: "owner_terms_not_accepted";
1454
1454
  } | {
1455
1455
  reason: "owner_not_member";
1456
1456
  } | {
@@ -1667,6 +1667,7 @@ declare module "@danxbot/card-kit@1" {
1667
1667
  issue_title: string;
1668
1668
  }
1669
1669
  type IssueViewV2 = {
1670
+ landing?: undefined | null | CardLanding;
1670
1671
  comments?: undefined | (Array<{
1671
1672
  id: string;
1672
1673
  rev: number;
@@ -1799,6 +1800,9 @@ declare module "@danxbot/card-kit@1" {
1799
1800
  refs?: undefined | Array<CardRefViewV2>;
1800
1801
  parent_title?: undefined | null | string;
1801
1802
  parent_type?: undefined | null | string;
1803
+ parent_priority?: undefined | null | number;
1804
+ parent_status?: undefined | null | "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
1805
+ parent_board_id?: undefined | null | BoardRefNum;
1802
1806
  parent_created_at?: undefined | null | number;
1803
1807
  parent_updated_at?: undefined | null | number;
1804
1808
  parent_blocked?: undefined | null | false | true;
@@ -1831,8 +1835,7 @@ declare module "@danxbot/card-kit@1" {
1831
1835
  triage?: undefined | TriageViewV2;
1832
1836
  triage_enabled?: undefined | false | true;
1833
1837
  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;
1838
+ dispatch_kind?: undefined | null | "landing" | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
1836
1839
  assignment_mode?: undefined | "manual" | "automated";
1837
1840
  assigned_agent_kind?: undefined | null | "person" | "session" | "worker" | "label";
1838
1841
  assigned_agent_pause?: undefined | null | HolderAgentPause;
@@ -2413,7 +2416,7 @@ declare module "@danxbot/card-kit@1" {
2413
2416
  type DecisionOutcome = "rejected" | "answered";
2414
2417
  type GatingDependencyKind = "conflict_on" | "depends_on";
2415
2418
  type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
2416
- type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | "landing" | `gate-${string}`;
2419
+ type IssueDispatchKind = "landing" | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
2417
2420
  type IssueAssignmentMode = "automated" | "manual";
2418
2421
  type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
2419
2422
  interface IssueV2 {
@@ -2655,7 +2658,7 @@ declare module "@danxbot/card-kit@1" {
2655
2658
  interface ProvenanceRecordV2 {
2656
2659
  id: number;
2657
2660
  reasoning: string | null;
2658
- confidence: number | null;
2661
+ confidence: number;
2659
2662
  impact: number | null;
2660
2663
  sources: ProvenanceSourceV2[];
2661
2664
  recorded_by: AuthorV2;
@@ -2794,6 +2797,7 @@ declare module "@danxbot/card-kit@1" {
2794
2797
  readonly kind: "board";
2795
2798
  readonly board: BoardRefNum;
2796
2799
  readonly boards: readonly BoardRefNum[];
2800
+ readonly jobType?: string;
2797
2801
  } | {
2798
2802
  readonly kind: "plan";
2799
2803
  readonly planId: number;
@@ -3055,9 +3059,10 @@ declare module "@danxbot/card-kit@1" {
3055
3059
  }
3056
3060
  function CardFace({ card, renderTitle, trailing, statusMark, cover, }: CardFaceProps): react.JSX.Element;
3057
3061
 
3058
- function CardBoard({ state, cardPath, }: {
3062
+ function CardBoard({ state, cardPath, laneControls, }: {
3059
3063
  state: BoardLaneState;
3060
3064
  cardPath?: (cardId: string) => string;
3065
+ laneControls?: ReactNode;
3061
3066
  }): react.JSX.Element;
3062
3067
 
3063
3068
  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.81",
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",