@50arms/plugin-sdk 0.2.79 → 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.
- package/dist/card-kit.d.ts +38 -13
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -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
|
|
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
|
} | {
|
|
@@ -1508,6 +1508,24 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1508
1508
|
readonly ahead: readonly LandingAheadRegistration[];
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
|
+
type CardLandingStatus = "pending" | "testing" | "fixing";
|
|
1512
|
+
type CardLandingFix = "none" | "working" | "submitted" | "rejected";
|
|
1513
|
+
interface CardLandingBatch {
|
|
1514
|
+
readonly opened_at: string;
|
|
1515
|
+
readonly red_at: string | null;
|
|
1516
|
+
readonly failures: number;
|
|
1517
|
+
readonly fix: CardLandingFix;
|
|
1518
|
+
}
|
|
1519
|
+
interface CardLanding {
|
|
1520
|
+
readonly status: CardLandingStatus;
|
|
1521
|
+
readonly waiting: boolean;
|
|
1522
|
+
readonly target_branch: string;
|
|
1523
|
+
readonly sha: string;
|
|
1524
|
+
readonly registered_at: string;
|
|
1525
|
+
readonly batched_at: string | null;
|
|
1526
|
+
readonly batch: CardLandingBatch | null;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1511
1529
|
interface CompactionSavings {
|
|
1512
1530
|
loads: number;
|
|
1513
1531
|
dispatches: number;
|
|
@@ -1649,6 +1667,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1649
1667
|
issue_title: string;
|
|
1650
1668
|
}
|
|
1651
1669
|
type IssueViewV2 = {
|
|
1670
|
+
landing?: undefined | null | CardLanding;
|
|
1652
1671
|
comments?: undefined | (Array<{
|
|
1653
1672
|
id: string;
|
|
1654
1673
|
rev: number;
|
|
@@ -1781,6 +1800,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1781
1800
|
refs?: undefined | Array<CardRefViewV2>;
|
|
1782
1801
|
parent_title?: undefined | null | string;
|
|
1783
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;
|
|
1784
1806
|
parent_created_at?: undefined | null | number;
|
|
1785
1807
|
parent_updated_at?: undefined | null | number;
|
|
1786
1808
|
parent_blocked?: undefined | null | false | true;
|
|
@@ -1813,7 +1835,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1813
1835
|
triage?: undefined | TriageViewV2;
|
|
1814
1836
|
triage_enabled?: undefined | false | true;
|
|
1815
1837
|
dispatch?: undefined | null | { started_at: string | null; };
|
|
1816
|
-
dispatch_kind?: undefined | null | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" |
|
|
1838
|
+
dispatch_kind?: undefined | null | "landing" | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
|
|
1817
1839
|
assignment_mode?: undefined | "manual" | "automated";
|
|
1818
1840
|
assigned_agent_kind?: undefined | null | "person" | "session" | "worker" | "label";
|
|
1819
1841
|
assigned_agent_pause?: undefined | null | HolderAgentPause;
|
|
@@ -2394,7 +2416,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2394
2416
|
type DecisionOutcome = "rejected" | "answered";
|
|
2395
2417
|
type GatingDependencyKind = "conflict_on" | "depends_on";
|
|
2396
2418
|
type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
|
|
2397
|
-
type IssueDispatchKind = "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" |
|
|
2419
|
+
type IssueDispatchKind = "landing" | "work" | "triage" | "recovery" | "flesh-out" | "chat" | "main-sync-repair" | "worktree-maintenance" | "manual" | `gate-${string}`;
|
|
2398
2420
|
type IssueAssignmentMode = "automated" | "manual";
|
|
2399
2421
|
type StartCommitError = "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected";
|
|
2400
2422
|
interface IssueV2 {
|
|
@@ -2636,7 +2658,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2636
2658
|
interface ProvenanceRecordV2 {
|
|
2637
2659
|
id: number;
|
|
2638
2660
|
reasoning: string | null;
|
|
2639
|
-
confidence: number
|
|
2661
|
+
confidence: number;
|
|
2640
2662
|
impact: number | null;
|
|
2641
2663
|
sources: ProvenanceSourceV2[];
|
|
2642
2664
|
recorded_by: AuthorV2;
|
|
@@ -2775,6 +2797,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2775
2797
|
readonly kind: "board";
|
|
2776
2798
|
readonly board: BoardRefNum;
|
|
2777
2799
|
readonly boards: readonly BoardRefNum[];
|
|
2800
|
+
readonly jobType?: string;
|
|
2778
2801
|
} | {
|
|
2779
2802
|
readonly kind: "plan";
|
|
2780
2803
|
readonly planId: number;
|
|
@@ -2991,6 +3014,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2991
3014
|
commentsCount: number;
|
|
2992
3015
|
unreadCommentsCount: number;
|
|
2993
3016
|
hasRetro: boolean;
|
|
3017
|
+
landing: NonNullable<IssueViewV2["landing"]> | null;
|
|
2994
3018
|
onPullRequest: boolean;
|
|
2995
3019
|
childrenCount: number;
|
|
2996
3020
|
childrenDetail?: NonNullable<IssueViewV2["children_detail"]>;
|
|
@@ -3035,9 +3059,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
3035
3059
|
}
|
|
3036
3060
|
function CardFace({ card, renderTitle, trailing, statusMark, cover, }: CardFaceProps): react.JSX.Element;
|
|
3037
3061
|
|
|
3038
|
-
function CardBoard({ state, cardPath, }: {
|
|
3062
|
+
function CardBoard({ state, cardPath, laneControls, }: {
|
|
3039
3063
|
state: BoardLaneState;
|
|
3040
3064
|
cardPath?: (cardId: string) => string;
|
|
3065
|
+
laneControls?: ReactNode;
|
|
3041
3066
|
}): react.JSX.Element;
|
|
3042
3067
|
|
|
3043
3068
|
type CardViewProps = StandardCardPageProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
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",
|