@50arms/plugin-sdk 0.2.83 → 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 +61 -2
- 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;
|
|
@@ -1557,6 +1563,58 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1557
1563
|
unrecorded_runs: number;
|
|
1558
1564
|
counted_since: string;
|
|
1559
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
|
+
}
|
|
1560
1618
|
interface BuildGradeView {
|
|
1561
1619
|
readonly grade: string;
|
|
1562
1620
|
readonly model: string;
|
|
@@ -1917,6 +1975,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1917
1975
|
dispatchable_explain?: undefined | DispatchableExplainView;
|
|
1918
1976
|
copy_payload?: undefined | V2CopyPayload;
|
|
1919
1977
|
landing_ahead?: undefined | LandingAheadView;
|
|
1978
|
+
landing_profile?: undefined | CardLandingProfileView;
|
|
1920
1979
|
copy_issue?: undefined | V2CopyIssue;
|
|
1921
1980
|
decision_records?: undefined | (Array<{
|
|
1922
1981
|
provenance: null | ProvenanceRecordV2;
|
|
@@ -2164,13 +2223,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2164
2223
|
scope: "board" | "team" | "plan" | "card";
|
|
2165
2224
|
scope_id: string;
|
|
2166
2225
|
value: null | string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2167
|
-
source: "board" | "team" | "plan" | "card" | "system" | "inherit";
|
|
2226
|
+
source: "board" | "team" | "plan" | "card" | "system" | "landing_profile" | "inherit" | "landing_registration";
|
|
2168
2227
|
base_hash: string;
|
|
2169
2228
|
kind: "boolean" | "enum" | "branch" | "markdown" | "seconds" | "months" | "rule_list";
|
|
2170
2229
|
options: null | Array<string>;
|
|
2171
2230
|
description: string;
|
|
2172
2231
|
system_default: string | false | true | (Array<AlwaysRule | WhenRule>);
|
|
2173
|
-
fallback: null |
|
|
2232
|
+
fallback: null | ControlRowFallback;
|
|
2174
2233
|
overridable: boolean;
|
|
2175
2234
|
default_changed: boolean;
|
|
2176
2235
|
}>);
|
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",
|