@50arms/plugin-sdk 0.2.82 → 0.2.84
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 +79 -6
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -397,6 +397,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
397
397
|
readonly source: Exclude<ControlSource, "card">;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
+
type LandingBranchSource = "landing_registration" | "landing_profile";
|
|
401
|
+
interface ControlRowFallback {
|
|
402
|
+
readonly value: ControlValue;
|
|
403
|
+
readonly source: ControlFallback["source"] | LandingBranchSource;
|
|
404
|
+
}
|
|
405
|
+
|
|
400
406
|
type ActorKind = "person" | "system" | "dispatch_agent" | "worker" | "agent_profile" | "plan_session" | "unresolved";
|
|
401
407
|
interface ActorRef {
|
|
402
408
|
kind: ActorKind;
|
|
@@ -1261,7 +1267,19 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1261
1267
|
readonly sha: string;
|
|
1262
1268
|
readonly branch: string;
|
|
1263
1269
|
}
|
|
1264
|
-
type DeliveryFlowStep = "card_branch_pushed" | "pull_request_open" | "merged_or_landed";
|
|
1270
|
+
type DeliveryFlowStep = "card_branch_pushed" | "pull_request_open" | "merged_or_landed" | "deployed";
|
|
1271
|
+
|
|
1272
|
+
interface DeployedEnvironment {
|
|
1273
|
+
readonly id: number;
|
|
1274
|
+
readonly name: string;
|
|
1275
|
+
readonly commit: string;
|
|
1276
|
+
readonly deployed_at: string;
|
|
1277
|
+
}
|
|
1278
|
+
interface ChosenEnvironment {
|
|
1279
|
+
readonly id: number;
|
|
1280
|
+
readonly name: string;
|
|
1281
|
+
readonly deploy_target: string;
|
|
1282
|
+
}
|
|
1265
1283
|
|
|
1266
1284
|
type CodeCompleteConditionKey = "step" | "tests" | "gates";
|
|
1267
1285
|
interface CodeCompleteCondition {
|
|
@@ -1545,6 +1563,58 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1545
1563
|
unrecorded_runs: number;
|
|
1546
1564
|
counted_since: string;
|
|
1547
1565
|
}
|
|
1566
|
+
type TestsSelection = "affected" | "critical_sets" | "both";
|
|
1567
|
+
type LandingStep = {
|
|
1568
|
+
readonly kind: "checks";
|
|
1569
|
+
readonly command: string;
|
|
1570
|
+
} | {
|
|
1571
|
+
readonly kind: "tests";
|
|
1572
|
+
readonly command: string;
|
|
1573
|
+
readonly tests: TestsSelection;
|
|
1574
|
+
} | {
|
|
1575
|
+
readonly kind: "merge";
|
|
1576
|
+
readonly branch: string;
|
|
1577
|
+
} | {
|
|
1578
|
+
readonly kind: "deploy";
|
|
1579
|
+
readonly command: string;
|
|
1580
|
+
readonly environment_id: number;
|
|
1581
|
+
} | {
|
|
1582
|
+
readonly kind: "smoke";
|
|
1583
|
+
readonly command: string;
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
type StepView = LandingStep & {
|
|
1587
|
+
readonly environment_name?: string;
|
|
1588
|
+
};
|
|
1589
|
+
interface ProfileChoice {
|
|
1590
|
+
readonly id: number;
|
|
1591
|
+
readonly name: string;
|
|
1592
|
+
readonly enabled: boolean;
|
|
1593
|
+
readonly is_default: boolean;
|
|
1594
|
+
readonly max_risk: RiskScore | null;
|
|
1595
|
+
readonly steps: readonly StepView[];
|
|
1596
|
+
}
|
|
1597
|
+
type BoardProfilesView = {
|
|
1598
|
+
readonly kind: "none";
|
|
1599
|
+
readonly branch: string;
|
|
1600
|
+
} | {
|
|
1601
|
+
readonly kind: "profiles";
|
|
1602
|
+
readonly profiles: readonly ProfileChoice[];
|
|
1603
|
+
};
|
|
1604
|
+
interface CardLandingProfileView {
|
|
1605
|
+
readonly risk_score: RiskScore | null;
|
|
1606
|
+
readonly pinned_profile_id: number | null;
|
|
1607
|
+
readonly unpinned: {
|
|
1608
|
+
readonly profile_id: number;
|
|
1609
|
+
readonly from: "plan" | "risk" | "board";
|
|
1610
|
+
} | null;
|
|
1611
|
+
readonly registration: {
|
|
1612
|
+
readonly id: number;
|
|
1613
|
+
readonly state: string;
|
|
1614
|
+
readonly profile_id: number;
|
|
1615
|
+
} | null;
|
|
1616
|
+
readonly board: BoardProfilesView;
|
|
1617
|
+
}
|
|
1548
1618
|
interface BuildGradeView {
|
|
1549
1619
|
readonly grade: string;
|
|
1550
1620
|
readonly model: string;
|
|
@@ -1737,7 +1807,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1737
1807
|
created_by: string;
|
|
1738
1808
|
created_at: string;
|
|
1739
1809
|
archived_at: null | string;
|
|
1740
|
-
review_state: "rejected" | "approved" | "
|
|
1810
|
+
review_state: "rejected" | "approved" | "changes_requested" | "awaiting_review";
|
|
1741
1811
|
revision_count: number;
|
|
1742
1812
|
latest_revision_no: number;
|
|
1743
1813
|
chosen_options: null | OptionSelection;
|
|
@@ -1865,6 +1935,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1865
1935
|
depends_on_landing_dep_ids?: undefined | Record<string, number>;
|
|
1866
1936
|
conflict_on_active_count?: undefined | number;
|
|
1867
1937
|
code_complete?: undefined | null | CodeCompleteState;
|
|
1938
|
+
deployed_environments?: undefined | Array<DeployedEnvironment>;
|
|
1939
|
+
code_complete_environments?: undefined | Array<ChosenEnvironment>;
|
|
1868
1940
|
children?: undefined | Array<string>;
|
|
1869
1941
|
descendant_ids?: undefined | Array<string>;
|
|
1870
1942
|
descendant_needs_you?: undefined | Array<DescendantNeedsYouView>;
|
|
@@ -1903,13 +1975,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1903
1975
|
dispatchable_explain?: undefined | DispatchableExplainView;
|
|
1904
1976
|
copy_payload?: undefined | V2CopyPayload;
|
|
1905
1977
|
landing_ahead?: undefined | LandingAheadView;
|
|
1978
|
+
landing_profile?: undefined | CardLandingProfileView;
|
|
1906
1979
|
copy_issue?: undefined | V2CopyIssue;
|
|
1907
1980
|
decision_records?: undefined | (Array<{
|
|
1908
1981
|
provenance: null | ProvenanceRecordV2;
|
|
1909
1982
|
text: string;
|
|
1983
|
+
approved: boolean;
|
|
1910
1984
|
made_by: "human" | "agent";
|
|
1911
1985
|
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1912
|
-
approved: boolean;
|
|
1913
1986
|
impact: number;
|
|
1914
1987
|
confidence: number;
|
|
1915
1988
|
title: string;
|
|
@@ -2150,13 +2223,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2150
2223
|
scope: "board" | "team" | "plan" | "card";
|
|
2151
2224
|
scope_id: string;
|
|
2152
2225
|
value: null | string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2153
|
-
source: "board" | "team" | "plan" | "card" | "system" | "inherit";
|
|
2226
|
+
source: "board" | "team" | "plan" | "card" | "system" | "landing_profile" | "inherit" | "landing_registration";
|
|
2154
2227
|
base_hash: string;
|
|
2155
2228
|
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months" | "rule_list";
|
|
2156
2229
|
options: null | Array<string>;
|
|
2157
2230
|
description: string;
|
|
2158
2231
|
system_default: string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2159
|
-
fallback: null |
|
|
2232
|
+
fallback: null | ControlRowFallback;
|
|
2160
2233
|
overridable: boolean;
|
|
2161
2234
|
default_changed: boolean;
|
|
2162
2235
|
}>);
|
|
@@ -2345,7 +2418,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2345
2418
|
created_by: string;
|
|
2346
2419
|
created_at: string;
|
|
2347
2420
|
archived_at: null | string;
|
|
2348
|
-
review_state: "rejected" | "approved" | "
|
|
2421
|
+
review_state: "rejected" | "approved" | "changes_requested" | "awaiting_review";
|
|
2349
2422
|
revision_count: number;
|
|
2350
2423
|
latest_revision_no: number;
|
|
2351
2424
|
chosen_options: null | OptionSelection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.84",
|
|
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",
|