@theholocron/cli 5.0.0-alpha.518 → 5.0.0-alpha.519
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/README.md +6 -1
- package/dist/cli.mjs +596 -49
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-system-CHEJvjlB.mjs → config-system-WSiPSdwj.mjs} +88 -5
- package/dist/{index-BUyUasR6.d.mts → index-DFp_iLFu.d.mts} +75 -3
- package/dist/index.d.mts +85 -8
- package/dist/index.mjs +278 -86
- package/dist/plugin/capabilities.d.mts +2 -2
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +10 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
|
|
2
2
|
import { resolveTaskName } from "@theholocron/astromech";
|
|
3
|
-
import { basename, dirname } from "node:path";
|
|
4
3
|
import { resolvePluginPackage as resolvePluginPackage$1 } from "@theholocron/kyber/plugins";
|
|
5
4
|
import { ConfigError, ConfigError as ConfigError$1, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
|
|
6
5
|
import { readGitRemote } from "@theholocron/git-utils";
|
|
6
|
+
import { basename, dirname } from "node:path";
|
|
7
7
|
import { readPackageJson } from "@theholocron/pkg-utils";
|
|
8
8
|
import { loadTasksConfig } from "@theholocron/astromech/config";
|
|
9
9
|
// src/credentials-environments/derives-environment/derives-environment.ts
|
|
@@ -80,6 +80,73 @@ function validateEnvironmentChoice(entry, what, required = true) {
|
|
|
80
80
|
}
|
|
81
81
|
if (required) throw new ConfigError$1(`${what} needs the name of a vault environment (\`environment\`) or a \`layer\``);
|
|
82
82
|
}
|
|
83
|
+
// src/config/validate-issue-types/validate-issue-types.ts
|
|
84
|
+
/** The colour words GitHub's issue Types take. */
|
|
85
|
+
const ISSUE_TYPE_COLORS = [
|
|
86
|
+
"gray",
|
|
87
|
+
"blue",
|
|
88
|
+
"green",
|
|
89
|
+
"yellow",
|
|
90
|
+
"orange",
|
|
91
|
+
"red",
|
|
92
|
+
"pink",
|
|
93
|
+
"purple"
|
|
94
|
+
];
|
|
95
|
+
/** The Conventional Commit types a Type's `commit` may name (the ones `start work` and commitlint know). */
|
|
96
|
+
const COMMIT_TYPES = [
|
|
97
|
+
"feat",
|
|
98
|
+
"fix",
|
|
99
|
+
"chore",
|
|
100
|
+
"docs",
|
|
101
|
+
"refactor",
|
|
102
|
+
"perf",
|
|
103
|
+
"test",
|
|
104
|
+
"ci",
|
|
105
|
+
"build",
|
|
106
|
+
"style",
|
|
107
|
+
"revert"
|
|
108
|
+
];
|
|
109
|
+
const isObject$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
110
|
+
const KEYS = [
|
|
111
|
+
"name",
|
|
112
|
+
"description",
|
|
113
|
+
"color",
|
|
114
|
+
"enabled",
|
|
115
|
+
"label",
|
|
116
|
+
"commit"
|
|
117
|
+
];
|
|
118
|
+
/**
|
|
119
|
+
* Checks the organization's `issueTypes` list (spec `tech-org-issue-types`, #2512) and returns it. `at` names where it
|
|
120
|
+
* came from (`.holocron/org.ts` or `issueTypes`) so the error says which file to fix. A name that repeats ignoring
|
|
121
|
+
* case, a `color` that is not one of GitHub's eight words, a `commit` that is not a Conventional Commit type, a key
|
|
122
|
+
* the list does not know or a value that is not text is a {@link ConfigError} naming the entry.
|
|
123
|
+
*/
|
|
124
|
+
function validateIssueTypes(value, at = "issueTypes") {
|
|
125
|
+
if (!Array.isArray(value)) throw new ConfigError$1(`${at} must be a list of { name, description?, color?, ... }`);
|
|
126
|
+
const seen = /* @__PURE__ */ new Set();
|
|
127
|
+
return value.map((entry, index) => {
|
|
128
|
+
const where = `${at}[${index}]`;
|
|
129
|
+
if (!isObject$1(entry)) throw new ConfigError$1(`${where} must be an object with a "name"`);
|
|
130
|
+
for (const key of Object.keys(entry)) if (!KEYS.includes(key)) throw new ConfigError$1(`${where}: "${key}" is not an issue Type option. Known: ${KEYS.join(", ")}`);
|
|
131
|
+
const { name, description, color, enabled, label, commit } = entry;
|
|
132
|
+
if (typeof name !== "string" || name.trim() === "") throw new ConfigError$1(`${where}: "name" must be a non-empty string`);
|
|
133
|
+
const key = name.trim().toLowerCase();
|
|
134
|
+
if (seen.has(key)) throw new ConfigError$1(`${where}: the name "${name}" repeats an earlier Type (names are compared ignoring case)`);
|
|
135
|
+
seen.add(key);
|
|
136
|
+
for (const [option, text] of [["description", description], ["label", label]]) if (text !== void 0 && (typeof text !== "string" || text.trim() === "")) throw new ConfigError$1(`${where}: "${option}" must be a non-empty string`);
|
|
137
|
+
if (color !== void 0 && !ISSUE_TYPE_COLORS.includes(color)) throw new ConfigError$1(`${where}: "color" must be one of ${ISSUE_TYPE_COLORS.join(", ")}, got ${JSON.stringify(color)}`);
|
|
138
|
+
if (commit !== void 0 && !COMMIT_TYPES.includes(commit)) throw new ConfigError$1(`${where}: "commit" must be a Conventional Commit type (${COMMIT_TYPES.join(", ")}), got ${JSON.stringify(commit)}`);
|
|
139
|
+
if (enabled !== void 0 && typeof enabled !== "boolean") throw new ConfigError$1(`${where}: "enabled" must be true or false`);
|
|
140
|
+
return {
|
|
141
|
+
name: name.trim(),
|
|
142
|
+
...description !== void 0 ? { description } : {},
|
|
143
|
+
...color !== void 0 ? { color } : {},
|
|
144
|
+
...enabled !== void 0 ? { enabled } : {},
|
|
145
|
+
...label !== void 0 ? { label } : {},
|
|
146
|
+
...commit !== void 0 ? { commit } : {}
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
}
|
|
83
150
|
// src/config/validate-repo-labels/validate-repo-labels.ts
|
|
84
151
|
/** What an area name may be: the rest of `area:<name>`, so no colon, comma, space or leading symbol. */
|
|
85
152
|
const AREA_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
@@ -407,6 +474,7 @@ function resolveConfig(raw) {
|
|
|
407
474
|
if (raw.dev !== void 0) validateDev(raw.dev);
|
|
408
475
|
if (raw.githubApps !== void 0) validateGitHubApps(raw.githubApps);
|
|
409
476
|
if (raw.ideas !== void 0) validateIdeas(raw.ideas);
|
|
477
|
+
if (raw.issueTypes !== void 0) validateIssueTypes(raw.issueTypes);
|
|
410
478
|
validateRepoLabels(raw.repo?.labels);
|
|
411
479
|
validateVariablesSync(raw.repo?.variables);
|
|
412
480
|
validateSecretsDeploy(raw.repo?.secrets);
|
|
@@ -426,6 +494,7 @@ function resolveConfig(raw) {
|
|
|
426
494
|
homepage,
|
|
427
495
|
org: raw.org,
|
|
428
496
|
domain: raw.domain,
|
|
497
|
+
issueTypes: raw.issueTypes,
|
|
429
498
|
repo: raw.repo,
|
|
430
499
|
repoValidation: raw.repoValidation,
|
|
431
500
|
tasks: raw.tasks,
|
|
@@ -652,8 +721,9 @@ const isTuple = (entry) => Array.isArray(entry) && entry.length === 2 && typeof
|
|
|
652
721
|
*/
|
|
653
722
|
function validate(area) {
|
|
654
723
|
if (!isObject(area.value)) throw new ConfigError$1(`${area.path} must export the org settings as an object`);
|
|
655
|
-
const { domain, ...rest } = area.value;
|
|
724
|
+
const { domain, issueTypes, ...rest } = area.value;
|
|
656
725
|
if (domain !== void 0 && (typeof domain !== "string" || domain === "")) throw new ConfigError$1(`${area.path}: "domain" must be a non-empty string`);
|
|
726
|
+
const types = issueTypes === void 0 ? void 0 : validateIssueTypes(issueTypes, `${area.path}: issueTypes`);
|
|
657
727
|
for (const [provider, options] of Object.entries(rest)) {
|
|
658
728
|
const allowed = ORG_OPTIONS[provider];
|
|
659
729
|
if (allowed === void 0) throw new ConfigError$1(`${area.path} has an unknown provider "${provider}". Known: ${Object.keys(ORG_OPTIONS).join(", ")}`);
|
|
@@ -665,6 +735,7 @@ function validate(area) {
|
|
|
665
735
|
}
|
|
666
736
|
return {
|
|
667
737
|
...domain !== void 0 ? { domain } : {},
|
|
738
|
+
...types !== void 0 ? { issueTypes: types } : {},
|
|
668
739
|
providers: rest
|
|
669
740
|
};
|
|
670
741
|
}
|
|
@@ -675,12 +746,17 @@ function validate(area) {
|
|
|
675
746
|
function merge(area) {
|
|
676
747
|
const providers = {};
|
|
677
748
|
let domain;
|
|
749
|
+
let issueTypes;
|
|
678
750
|
for (const layer of area.root ? [area.root, area] : [area]) {
|
|
679
751
|
const checked = validate(layer);
|
|
680
752
|
if (checked.domain !== void 0) domain = {
|
|
681
753
|
value: checked.domain,
|
|
682
754
|
path: layer.path
|
|
683
755
|
};
|
|
756
|
+
if (checked.issueTypes !== void 0) issueTypes = {
|
|
757
|
+
value: checked.issueTypes,
|
|
758
|
+
path: layer.path
|
|
759
|
+
};
|
|
684
760
|
for (const [provider, options] of Object.entries(checked.providers)) {
|
|
685
761
|
const sourced = providers[provider] ??= {};
|
|
686
762
|
for (const [option, value] of Object.entries(options)) sourced[option] = {
|
|
@@ -691,6 +767,7 @@ function merge(area) {
|
|
|
691
767
|
}
|
|
692
768
|
return {
|
|
693
769
|
...domain ? { domain } : {},
|
|
770
|
+
...issueTypes ? { issueTypes } : {},
|
|
694
771
|
providers
|
|
695
772
|
};
|
|
696
773
|
}
|
|
@@ -711,7 +788,8 @@ function fill(entry, org, capability) {
|
|
|
711
788
|
}
|
|
712
789
|
/**
|
|
713
790
|
* Fill `.holocron/org.*` into the config. Its top-level `domain` (the org's zone) is set on a config that leaves
|
|
714
|
-
* `domain` out; set inline and in the file it is a `ConfigError` naming both. Its
|
|
791
|
+
* `domain` out; set inline and in the file it is a `ConfigError` naming both. Its `issueTypes` (#2512) are placed the
|
|
792
|
+
* same way, a list that the subdirectory file replaces whole. Its provider options go into the
|
|
715
793
|
* providers the config uses. A provider entry (a name, a
|
|
716
794
|
* `[name, options]` tuple, or either inside a list) that names a provider the file holds gets each option it leaves
|
|
717
795
|
* out. An option set inline and in the file is a `ConfigError` naming both (no merge, no precedence); a provider the
|
|
@@ -720,10 +798,15 @@ function fill(entry, org, capability) {
|
|
|
720
798
|
* option by option and the config's own file wins; that is not an error.
|
|
721
799
|
*/
|
|
722
800
|
function placeOrg(raw, area) {
|
|
723
|
-
const { domain, providers: org } = merge(area);
|
|
801
|
+
const { domain, issueTypes, providers: org } = merge(area);
|
|
724
802
|
if (domain !== void 0 && raw.domain !== void 0) throw new ConfigError$1(`domain is set in the config and in ${domain.path}. Set it in one place: remove the inline value or the key from ${domain.path}`);
|
|
725
|
-
|
|
803
|
+
if (issueTypes !== void 0 && raw.issueTypes !== void 0) throw new ConfigError$1(`issueTypes is set in the config and in ${issueTypes.path}. Set it in one place: remove the inline value or the key from ${issueTypes.path}`);
|
|
804
|
+
const withTypes = issueTypes === void 0 ? raw : {
|
|
726
805
|
...raw,
|
|
806
|
+
issueTypes: issueTypes.value
|
|
807
|
+
};
|
|
808
|
+
const withDomain = domain === void 0 ? withTypes : {
|
|
809
|
+
...withTypes,
|
|
727
810
|
domain: domain.value
|
|
728
811
|
};
|
|
729
812
|
if (withDomain.providers === void 0) return withDomain;
|
|
@@ -254,6 +254,13 @@ interface RepoValidationConfig {
|
|
|
254
254
|
* does not use is ignored; a provider or option not listed here is an error.
|
|
255
255
|
*/
|
|
256
256
|
interface OrgConfig {
|
|
257
|
+
/**
|
|
258
|
+
* The organization's issue Types (spec `tech-org-issue-types`, #2512): the one declaration of what the tracker's
|
|
259
|
+
* Types are. The loader sets `issueTypes` on a config that leaves it out (set in both is a `ConfigError`) and hands
|
|
260
|
+
* it to the issues plugins as the option `issueTypes`; a kind that `--type` accepts is the core three plus these
|
|
261
|
+
* names in lower case.
|
|
262
|
+
*/
|
|
263
|
+
issueTypes?: OrgIssueType[];
|
|
257
264
|
/**
|
|
258
265
|
* The organization's DNS zone (`theholocron.dev`). The loader sets `domain` on a config that leaves it out; a
|
|
259
266
|
* config that sets it too is a `ConfigError`. A file that must build a hostname before the loader runs imports
|
|
@@ -287,6 +294,24 @@ interface OrgConfig {
|
|
|
287
294
|
org?: string;
|
|
288
295
|
};
|
|
289
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* One of the organization's issue Types (spec `tech-org-issue-types`, #2512). A tracker with no Type (Linear) carries
|
|
299
|
+
* the kind as a label, which is `label`. Names and words only; no secret.
|
|
300
|
+
*/
|
|
301
|
+
interface OrgIssueType {
|
|
302
|
+
/** The Type's name, the key. Unique ignoring case. */
|
|
303
|
+
name: string;
|
|
304
|
+
/** One line, shown in GitHub's settings. */
|
|
305
|
+
description?: string;
|
|
306
|
+
/** GitHub's colour word: `gray`, `blue`, `green`, `yellow`, `orange`, `red`, `pink` or `purple`. */
|
|
307
|
+
color?: string;
|
|
308
|
+
/** Whether new issues may take it. Default `true`. */
|
|
309
|
+
enabled?: boolean;
|
|
310
|
+
/** The Linear label that stands for it. Default: the name in lower case. */
|
|
311
|
+
label?: string;
|
|
312
|
+
/** The Conventional Commit type `start work` uses for it. Default: none, so `start work` falls back to `chore`. */
|
|
313
|
+
commit?: string;
|
|
314
|
+
}
|
|
290
315
|
/**
|
|
291
316
|
* The label map of the `repo` block (spec `tech-github-area-labels`, #2430). Names only, checked when the config loads
|
|
292
317
|
* (`validateRepoLabels()`). `holocron setup` makes the `area:<name>` labels, `doctor repo` checks them, `--area` on
|
|
@@ -656,6 +681,8 @@ interface HolocronConfig {
|
|
|
656
681
|
* domain as `preview.<domain>`, giving URLs like `<repo>-pr-<n>.<domain>`.
|
|
657
682
|
*/
|
|
658
683
|
domain?: string;
|
|
684
|
+
/** The organization's issue Types, from `.holocron/org.*` (`OrgConfig.issueTypes`) or set here. */
|
|
685
|
+
issueTypes?: OrgIssueType[];
|
|
659
686
|
/**
|
|
660
687
|
* Repository identity and metadata. When set, `PluginLoader` injects
|
|
661
688
|
* `repo.name` into every plugin's `RuntimeContext.repo` so plugins that
|
|
@@ -933,6 +960,8 @@ interface ResolvedHolocronConfig {
|
|
|
933
960
|
org?: string;
|
|
934
961
|
/** Org canonical domain. */
|
|
935
962
|
domain?: string;
|
|
963
|
+
/** The organization's issue Types. */
|
|
964
|
+
issueTypes?: OrgIssueType[];
|
|
936
965
|
/** Repository settings. */
|
|
937
966
|
repo?: RepoConfig;
|
|
938
967
|
/** Which repo-wide checks this repo turns on (`docsCoverage`), validated by `resolveConfig`. */
|
|
@@ -1900,8 +1929,13 @@ interface TrackerDoctorReport {
|
|
|
1900
1929
|
type IssuePriority = "none" | "urgent" | "high" | "medium" | "low";
|
|
1901
1930
|
/** How much work an issue is, in words no tracker owns. GitHub holds it in the `Effort` issue field, Linear as an estimate. */
|
|
1902
1931
|
type IssueEffort = "high" | "medium" | "low";
|
|
1903
|
-
/**
|
|
1904
|
-
type
|
|
1932
|
+
/** The kinds the CLI always knows: GitHub's default issue Types (Bug, Feature, Task). */
|
|
1933
|
+
type CoreIssueKind = "bug" | "feature" | "task";
|
|
1934
|
+
/**
|
|
1935
|
+
* What kind of issue it is: a core kind or the lower-cased name of a Type the organization declares (`issueTypes`,
|
|
1936
|
+
* spec `tech-org-issue-types`, #2512). GitHub holds it as the issue Type; Linear has no Type, so the kind is a label.
|
|
1937
|
+
*/
|
|
1938
|
+
type IssueKind = CoreIssueKind | (string & {});
|
|
1905
1939
|
/** An issue field that `Issues.update` can clear: the value is removed, never replaced by a default. */
|
|
1906
1940
|
type IssueClearable = "assignees" | "milestone" | "parent" | "kind" | "priority" | "effort" | "startDate" | "targetDate";
|
|
1907
1941
|
/**
|
|
@@ -2093,6 +2127,30 @@ interface SyncResult extends ImportResult {
|
|
|
2093
2127
|
changes: string[];
|
|
2094
2128
|
}
|
|
2095
2129
|
/** An issue tracker: finds, reads, creates, moves and comments on issues. */
|
|
2130
|
+
/** One issue Type of the organization (spec `tech-org-issue-types`, #2512). */
|
|
2131
|
+
interface IssueTypeInfo {
|
|
2132
|
+
/** The tracker's id for it. */
|
|
2133
|
+
id: number | string;
|
|
2134
|
+
/** The Type's name. */
|
|
2135
|
+
name: string;
|
|
2136
|
+
/** One line. */
|
|
2137
|
+
description?: string;
|
|
2138
|
+
/** The tracker's colour word. */
|
|
2139
|
+
color?: string;
|
|
2140
|
+
/** Whether new issues may take it. */
|
|
2141
|
+
enabled: boolean;
|
|
2142
|
+
}
|
|
2143
|
+
/** A Type to make: what `OrgIssueType` declares that a tracker's own Type holds. */
|
|
2144
|
+
interface IssueTypeDeclaration {
|
|
2145
|
+
/** The Type's name. */
|
|
2146
|
+
name: string;
|
|
2147
|
+
/** One line. */
|
|
2148
|
+
description?: string;
|
|
2149
|
+
/** The tracker's colour word. */
|
|
2150
|
+
color?: string;
|
|
2151
|
+
/** Whether new issues may take it. Default `true`. */
|
|
2152
|
+
enabled?: boolean;
|
|
2153
|
+
}
|
|
2096
2154
|
interface Issues extends ProviderIdentity {
|
|
2097
2155
|
/** Identifies this provider as the `issues` capability. */
|
|
2098
2156
|
readonly key: "issues";
|
|
@@ -2137,6 +2195,20 @@ interface Issues extends ProviderIdentity {
|
|
|
2137
2195
|
* be a sync target.
|
|
2138
2196
|
*/
|
|
2139
2197
|
sync?(records: IssueRecord[], options?: ImportOptions): Promise<SyncResult[]>;
|
|
2198
|
+
/**
|
|
2199
|
+
* The organization's issue Types (#2512). `undefined` when they cannot be read (no token for it). A tracker with
|
|
2200
|
+
* no Type (Linear) leaves the three Type methods out. Optional.
|
|
2201
|
+
*/
|
|
2202
|
+
listTypes?(): Promise<IssueTypeInfo[] | undefined>;
|
|
2203
|
+
/** Makes a Type; never replaces one that exists. Throws when it cannot (no token, a refusal). Optional. */
|
|
2204
|
+
createType?(type: IssueTypeDeclaration): Promise<IssueTypeInfo>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Sets a Type's description and colour, keeping its name and whether it is enabled. Nothing else changes. Optional.
|
|
2207
|
+
*/
|
|
2208
|
+
updateType?(id: IssueTypeInfo["id"], patch: {
|
|
2209
|
+
description?: string;
|
|
2210
|
+
color?: string;
|
|
2211
|
+
}): Promise<void>;
|
|
2140
2212
|
}
|
|
2141
2213
|
/** Env-var scope on the deploy platform. */
|
|
2142
2214
|
type DeploymentTarget = "development" | "preview" | "production";
|
|
@@ -5288,4 +5360,4 @@ declare class WebhookVerificationError extends Error {
|
|
|
5288
5360
|
}
|
|
5289
5361
|
/** Whether `key` is a capability that can have several providers active at once. */
|
|
5290
5362
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
5291
|
-
export {
|
|
5363
|
+
export { CoverageUploadGroup as $, CredentialsConfig as $i, NotificationsPinnedLayout as $n, ToolingOpenPlan as $r, IssueCreateInput as $t, Cache as A, SingleEntry as Aa, readWorkspacePackageJsons as Ai, MonitoringHeartbeatInput as An, SecretVisibility as Ar, EnsureWebhookResult as At, ConnectionStringOptions as B, Capability as Bi, Notifications as Bn, StatusCategory as Br, ErrorsOrgState as Bt, BoardState as C, RepoValidationConfig as Ca, Workers as Ci, MonitoringAssertion as Cn, RelayState as Cr, EnsureDiscussionInput as Ct, BoardTemplate as D, ResolvedProviderEntry as Da, deriveProfile as Di, MonitoringCheckInput as Dn, Ruleset as Dr, EnsureRelaySourceResult as Dt, BoardSummary as E, ResolvedHolocronConfig as Ea, deriveCompliance as Ei, MonitoringCheck as En, ResolvedCapability as Er, EnsureRelaySourceInput as Et, CardinalityFor as F, EnvironmentLayer as Fa, ConfigFileError as Fi, MonitoringStatusPageInput as Fn, SourceFile as Fr, EnvironmentEntry as Ft, CoverageConfigInput as G, resolveConfig as Gi, NotificationsEveryoneLayout as Gn, TeamPermission as Gr, ImportOptions as Gt, Coverage as H, TaskEntry as Hi, NotificationsApplicationLayout as Hn, StorageBranch as Hr, ExportInfo as Ht, Ci as I, compose as Ii, MonitoringStatusPageResult as In, SourceRepoInfo as Ir, EnvironmentReviewer as It, CoverageRepoReport as J, AgentName as Ji, NotificationsLinksLayout as Jn, ToolingExportInput as Jr, InspectRelayInput as Jt, CoverageExpectations as K, resolveEntry as Ki, NotificationsForumTag as Kn, Tooling as Kr, ImportResult as Kt, CiRun as L, defineConfig as Li, MonitoringStatusPageState as Ln, SourceRulesetDetail as Lr, Environments as Lt, CapabilityImpls as M, TaskEntryConfig as Ma, HolocronProfile as Mi, MonitoringHeartbeatUnit as Mn, ServerInspection as Mr, EnsuredResource as Mt, CapabilityKey as N, TelemetryConfig as Na, PackageJsonLike as Ni, MonitoringHttpMethod as Nn, Source as Nr, EnsuredTunnel as Nt, BoardTemplateFile as O, ResolvedProvidersConfig as Oa, deriveStack as Oi, MonitoringDashboardInput as On, SecretAccess as Or, EnsureReport as Ot, Cardinality as P, WorkflowWithConfig as Pa, StackName as Pi, MonitoringStatusComponentInput as Pn, SourceBranch as Pr, Environment as Pt, CoverageUploadFlagResult as Q, ChromaticProjectConfig as Qi, NotificationsPicture as Qn, ToolingOpenLaunch as Qr, IssueComment as Qt, CiRunFilter as R, loadConfig as Ri, MoveReport as Rn, SourceSecurity as Rr, Errors as Rt, BoardRule as S, RepoSecretsSync as Sa, WorkerScriptState as Si, MonitoringAlertSettings as Sn, RelaySourceState as Sr, EmojiCheck as St, BoardStatusCategory as T, RepoVariablesSync as Ta, deriveCapabilities as Ti, MonitoringAssertionSource as Tn, RepoSettings as Tr, EnsureRelayResult as Tt, CoverageConfigComponent as U, ConfigError as Ui, NotificationsChannelLayout as Un, SyncResult as Ur, IdeaRecord as Ut, CoreIssueKind as V, ComposedPreset as Vi, NotificationsAccess as Vn, Storage as Vr, ErrorsProjectState as Vt, CoverageConfigDocumentation as W, credentialsEnvironment as Wi, NotificationsDelivery as Wn, TeamEntry as Wr, Ideas as Wt, CoverageStatusInput as X, AppConfig as Xi, NotificationsMonitoringFeed as Xn, ToolingExportResult as Xr, Issue as Xt, CoverageStatusContext as Y, AgentOptions as Yi, NotificationsMember as Yn, ToolingExportIssue as Yr, InspectRelaySourceInput as Yt, CoverageTokenCheck as Z, CapabilityConfigPackage as Zi, NotificationsOnboardingLayout as Zn, ToolingOpenInput as Zr, IssueClearable as Zt, BoardFieldType as _, RepoLabels as _a, WikiProbe as _i, LogsDataset as _n, PullRequestLink as _r, Dns as _t, REQUIRED_CAPABILITIES as a, EslintConfig as aa, ToolingWorkspaceState as ai, IssuePriority as an, NotificationsSignedIn as ar, DeployFunctionConfig as at, BoardPullRequest as b, RepoSecrets as ba, WikiPublishedState as bi, MonitoringAlertChannelResult as bn, RelaySourceCapability as br, DnsRecordType as bt, AddedItem as c, IdeasConfig as ca, TunnelRoute as ci, IssueSelector as cn, PagesConfig as cr, DeployScriptResult as ct, AuthDescription as d, OrgConfig as da, WebhookDashboardInfo as di, IssueUpdateResult as dn, ProviderIdentity as dr, DeploymentProjectSettings as dt, DevConfig as ea, ToolingOpenWant as ei, IssueEffort as en, NotificationsPrsFeed as er, CoverageUploadInput as et, AuthEvent as f, OrgIssueType as fa, Wiki as fi, Issues as fn, PullRequest as fr, DeploymentRecord as ft, BoardField as g, RepoConfig as ga, WikiOrganizationState as gi, Logs as gn, PullRequestInput as gr, DiscussionPost as gt, AuthUser as h, RawProvidersConfig as ha, WikiNavigationState as hi, LifecycleSlot as hn, PullRequestFields as hr, DiscussionPatch as ht, ProviderApiError as i, EnvConfig as ia, ToolingWorkspaceSide as ii, IssuePatch as in, NotificationsSignIn as ir, CredentialsInspection as it, CacheTokenCheck as j, StorybookDeployProject as ja, DeriveProfileInput as ji, MonitoringHeartbeatResult as jn, Secrets as jr, EnsuredDiscussion as jt, BoardView as k, ResolvedTuple as ka, missingCapabilities as ki, MonitoringDashboardState as kn, SecretScope as kr, EnsureResult as kt, Analytics as l, LogConfig as la, Tunnels as li, IssueTypeDeclaration as ln, ParseWebhookInput as lr, Deployment as lt, AuthIdentity as m, RawProviderEntry as ma, WikiInstanceState as mi, LifecycleResult as mn, PullRequestChecksState as mr, DeploymentTrigger as mt, ElevationRequiredError as n, DocsConfig as na, ToolingWorkspaceInput as ni, IssueKind as nn, NotificationsRelaySource as nr, CreateAuthUserInput as nt, WebhookVerificationError as o, GitHubAppConfig as oa, TrackerDoctorReport as oi, IssueRecord as on, NotificationsWelcomeLayout as or, DeployFunctionResult as ot, AuthEventType as p, ProviderOptions as pa, WikiInspection as pi, LabelDef as pn, PullRequestChecks as pr, DeploymentTarget as pt, CoverageNameDiff as q, resolvePluginPackage as qi, NotificationsLayout as qn, ToolingDoctorReport as qr, InspectErrorsInput as qt, MissingTokenError as r, DoctorConfig as ra, ToolingWorkspaceResult as ri, IssueOrder as rn, NotificationsServerLayout as rr, Credentials as rt, isMulti as s, HolocronConfig as sa, TrackerUser as si, IssueSearchFilter as sn, OrganizationSecretScope as sr, DeployScriptConfig as st, CARDINALITY as t, DevServeConfig as ta, ToolingWorkspaceFile as ti, IssueFields as tn, NotificationsReaction as tr, CoverageUploadResult as tt, Auth as u, MultiEntry as ua, Vault as ui, IssueTypeInfo as un, Projects as ur, DeploymentProject as ut, BoardItem as v, RepoProperties as va, WikiProvisionOpts as vi, Monitoring as vn, PullRequestPatch as vr, DnsRecord as vt, BoardStatus as w, RepoVariables as wa, KNOWN_STACK_DEPS as wi, MonitoringAssertionComparison as wn, RepoRef as wr, EnsureRelayInput as wt, BoardPullRequestChecks as x, RepoSecretsDeploy as xa, WorkerDeploymentState as xi, MonitoringAlertChannelState as xn, RelaySourceMethods as xr, DuplicateDiscussion as xt, BoardItemInput as y, RepoProtection as ya, WikiProxyConfig as yi, MonitoringAlertChannelInput as yn, PullRequestResult as yr, DnsRecordRequest as yt, CiRunStatus as z, LoadedConfig as zi, NormalizedAuthUser as zn, SourceTeamMember as zr, ErrorsInspection as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as CoverageUploadGroup, $i as CredentialsConfig, $n as NotificationsPinnedLayout, $r as ToolingOpenPlan, $t as IssueCreateInput, A as Cache, Aa as SingleEntry, Ai as readWorkspacePackageJsons, An as MonitoringHeartbeatInput, Ar as SecretVisibility, At as EnsureWebhookResult, B as ConnectionStringOptions, Bi as Capability, Bn as Notifications, Br as StatusCategory, Bt as ErrorsOrgState, C as BoardState, Ca as RepoValidationConfig, Ci as Workers, Cn as MonitoringAssertion, Cr as RelayState, Ct as EnsureDiscussionInput, D as BoardTemplate, Da as ResolvedProviderEntry, Di as deriveProfile, Dn as MonitoringCheckInput, Dr as Ruleset, Dt as EnsureRelaySourceResult, E as BoardSummary, Ea as ResolvedHolocronConfig, Ei as deriveCompliance, En as MonitoringCheck, Er as ResolvedCapability, Et as EnsureRelaySourceInput, F as CardinalityFor, Fa as EnvironmentLayer, Fi as ConfigFileError, Fn as MonitoringStatusPageInput, Fr as SourceFile, Ft as EnvironmentEntry, G as CoverageConfigInput, Gi as resolveConfig, Gn as NotificationsEveryoneLayout, Gr as TeamPermission, Gt as ImportOptions, H as Coverage, Hi as TaskEntry, Hn as NotificationsApplicationLayout, Hr as StorageBranch, Ht as ExportInfo, I as Ci, Ii as compose, In as MonitoringStatusPageResult, Ir as SourceRepoInfo, It as EnvironmentReviewer, J as CoverageRepoReport, Ji as AgentName, Jn as NotificationsLinksLayout, Jr as ToolingExportInput, Jt as InspectRelayInput, K as CoverageExpectations, Ki as resolveEntry, Kn as NotificationsForumTag, Kr as Tooling, Kt as ImportResult, L as CiRun, Li as defineConfig, Ln as MonitoringStatusPageState, Lr as SourceRulesetDetail, Lt as Environments, M as CapabilityImpls, Ma as TaskEntryConfig, Mi as HolocronProfile, Mn as MonitoringHeartbeatUnit, Mr as ServerInspection, Mt as EnsuredResource, N as CapabilityKey, Na as TelemetryConfig, Ni as PackageJsonLike, Nn as MonitoringHttpMethod, Nr as Source, Nt as EnsuredTunnel, O as BoardTemplateFile, Oa as ResolvedProvidersConfig, Oi as deriveStack, On as MonitoringDashboardInput, Or as SecretAccess, Ot as EnsureReport, P as Cardinality, Pa as WorkflowWithConfig, Pi as StackName, Pn as MonitoringStatusComponentInput, Pr as SourceBranch, Pt as Environment, Q as CoverageUploadFlagResult, Qi as ChromaticProjectConfig, Qn as NotificationsPicture, Qr as ToolingOpenLaunch, Qt as IssueComment, R as CiRunFilter, Ri as loadConfig, Rn as MoveReport, Rr as SourceSecurity, Rt as Errors, S as BoardRule, Sa as RepoSecretsSync, Si as WorkerScriptState, Sn as MonitoringAlertSettings, Sr as RelaySourceState, St as EmojiCheck, T as BoardStatusCategory, Ta as RepoVariablesSync, Ti as deriveCapabilities, Tn as MonitoringAssertionSource, Tr as RepoSettings, Tt as EnsureRelayResult, U as CoverageConfigComponent, Ui as ConfigError, Un as NotificationsChannelLayout, Ur as SyncResult, Ut as IdeaRecord, V as CoreIssueKind, Vi as ComposedPreset, Vn as NotificationsAccess, Vr as Storage, Vt as ErrorsProjectState, W as CoverageConfigDocumentation, Wi as credentialsEnvironment, Wn as NotificationsDelivery, Wr as TeamEntry, Wt as Ideas, X as CoverageStatusInput, Xi as AppConfig, Xn as NotificationsMonitoringFeed, Xr as ToolingExportResult, Xt as Issue, Y as CoverageStatusContext, Yi as AgentOptions, Yn as NotificationsMember, Yr as ToolingExportIssue, Yt as InspectRelaySourceInput, Z as CoverageTokenCheck, Zi as CapabilityConfigPackage, Zn as NotificationsOnboardingLayout, Zr as ToolingOpenInput, Zt as IssueClearable, _ as BoardFieldType, _a as RepoLabels, _i as WikiProbe, _n as LogsDataset, _r as PullRequestLink, _t as Dns, a as REQUIRED_CAPABILITIES, aa as EslintConfig, ai as ToolingWorkspaceState, an as IssuePriority, ar as NotificationsSignedIn, at as DeployFunctionConfig, b as BoardPullRequest, ba as RepoSecrets, bi as WikiPublishedState, bn as MonitoringAlertChannelResult, br as RelaySourceCapability, bt as DnsRecordType, c as AddedItem, ca as IdeasConfig, ci as TunnelRoute, cn as IssueSelector, cr as PagesConfig, ct as DeployScriptResult, d as AuthDescription, da as OrgConfig, di as WebhookDashboardInfo, dn as IssueUpdateResult, dr as ProviderIdentity, dt as DeploymentProjectSettings, ea as DevConfig, ei as ToolingOpenWant, en as IssueEffort, er as NotificationsPrsFeed, et as CoverageUploadInput, f as AuthEvent, fa as OrgIssueType, fi as Wiki, fn as Issues, fr as PullRequest, ft as DeploymentRecord, g as BoardField, ga as RepoConfig, gi as WikiOrganizationState, gn as Logs, gr as PullRequestInput, gt as DiscussionPost, h as AuthUser, ha as RawProvidersConfig, hi as WikiNavigationState, hn as LifecycleSlot, hr as PullRequestFields, ht as DiscussionPatch, i as ProviderApiError, ia as EnvConfig, ii as ToolingWorkspaceSide, in as IssuePatch, ir as NotificationsSignIn, it as CredentialsInspection, j as CacheTokenCheck, ja as StorybookDeployProject, ji as DeriveProfileInput, jn as MonitoringHeartbeatResult, jr as Secrets, jt as EnsuredDiscussion, k as BoardView, ka as ResolvedTuple, ki as missingCapabilities, kn as MonitoringDashboardState, kr as SecretScope, kt as EnsureResult, l as Analytics, la as LogConfig, li as Tunnels, ln as IssueTypeDeclaration, lr as ParseWebhookInput, lt as Deployment, m as AuthIdentity, ma as RawProviderEntry, mi as WikiInstanceState, mn as LifecycleResult, mr as PullRequestChecksState, mt as DeploymentTrigger, n as ElevationRequiredError, na as DocsConfig, ni as ToolingWorkspaceInput, nn as IssueKind, nr as NotificationsRelaySource, nt as CreateAuthUserInput, o as WebhookVerificationError, oa as GitHubAppConfig, oi as TrackerDoctorReport, on as IssueRecord, or as NotificationsWelcomeLayout, ot as DeployFunctionResult, p as AuthEventType, pa as ProviderOptions, pi as WikiInspection, pn as LabelDef, pr as PullRequestChecks, pt as DeploymentTarget, q as CoverageNameDiff, qi as resolvePluginPackage, qn as NotificationsLayout, qr as ToolingDoctorReport, qt as InspectErrorsInput, r as MissingTokenError, ra as DoctorConfig, ri as ToolingWorkspaceResult, rn as IssueOrder, rr as NotificationsServerLayout, rt as Credentials, s as isMulti, sa as HolocronConfig, si as TrackerUser, sn as IssueSearchFilter, sr as OrganizationSecretScope, st as DeployScriptConfig, t as CARDINALITY, ta as DevServeConfig, ti as ToolingWorkspaceFile, tn as IssueFields, tr as NotificationsReaction, tt as CoverageUploadResult, u as Auth, ua as MultiEntry, ui as Vault, un as IssueTypeInfo, ur as Projects, ut as DeploymentProject, v as BoardItem, va as RepoProperties, vi as WikiProvisionOpts, vn as Monitoring, vr as PullRequestPatch, vt as DnsRecord, w as BoardStatus, wa as RepoVariables, wi as KNOWN_STACK_DEPS, wn as MonitoringAssertionComparison, wr as RepoRef, wt as EnsureRelayInput, x as BoardPullRequestChecks, xa as RepoSecretsDeploy, xi as WorkerDeploymentState, xn as MonitoringAlertChannelState, xr as RelaySourceMethods, xt as DuplicateDiscussion, y as BoardItemInput, ya as RepoProtection, yi as WikiProxyConfig, yn as MonitoringAlertChannelInput, yr as PullRequestResult, yt as DnsRecordRequest, z as CiRunStatus, zi as LoadedConfig, zn as NormalizedAuthUser, zr as SourceTeamMember, zt as ErrorsInspection } from "./index-DFp_iLFu.mjs";
|
|
2
2
|
import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
3
3
|
import { DocsCoverageMode } from "@theholocron/astromech";
|
|
4
|
-
import { CheckRow } from "@theholocron/kyber/ui";
|
|
5
|
-
import "@theholocron/env-utils/lookup";
|
|
6
4
|
import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
|
|
7
5
|
import "@theholocron/kyber/plugins";
|
|
8
6
|
import { GitExec } from "@theholocron/git-utils";
|
|
7
|
+
import "@theholocron/env-utils/lookup";
|
|
9
8
|
import { ConnectionProbeInput as ConnectionProbeInput$1 } from "@theholocron/kyber/checks";
|
|
9
|
+
import { CheckRow } from "@theholocron/kyber/ui";
|
|
10
10
|
import { Stats } from "node:fs";
|
|
11
11
|
import "@theholocron/observability/core";
|
|
12
12
|
import { ConfigDirArea } from "@theholocron/datapad";
|
|
@@ -133,6 +133,10 @@ export declare function createFeatureResolver(config: FeatureResolverConfig): Fe
|
|
|
133
133
|
* Both lists are sorted. Plugins call this instead of importing the task runner.
|
|
134
134
|
*/
|
|
135
135
|
export declare function coverageExpectations(repoRoot: string, docsCoverage?: DocsCoverageMode): CoverageExpectations;
|
|
136
|
+
/** What a failed Type call means: a refusal of the token, a rate limit, a name that already exists, or anything else. */
|
|
137
|
+
export type TypeErrorKind = "refused" | "rate-limit" | "conflict" | "other";
|
|
138
|
+
/** Reads a thrown error as one of the four things `ensureIssueTypes()` acts on differently. */
|
|
139
|
+
export declare function classifyTypeError(err: unknown): TypeErrorKind;
|
|
136
140
|
/**
|
|
137
141
|
* Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
|
|
138
142
|
* one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
|
|
@@ -267,6 +271,83 @@ export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "veri
|
|
|
267
271
|
* kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
|
|
268
272
|
*/
|
|
269
273
|
export declare function connectionProbe(input: ConnectionProbeInput): Probe;
|
|
274
|
+
/** What {@link ensureIssueTypes} needs. */
|
|
275
|
+
interface EnsureIssueTypesInput {
|
|
276
|
+
/** The Types the org area declares (`config.issueTypes`); none or an empty list is a `skip` row and no write. */
|
|
277
|
+
declared: readonly OrgIssueType[] | undefined;
|
|
278
|
+
/** The loaded `issues` provider, or `undefined` when none could be loaded. */
|
|
279
|
+
issues: Issues | undefined;
|
|
280
|
+
/** Why there is no `issues` provider, when that is so (a plugin that failed to load). */
|
|
281
|
+
missingReason?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Who is asking. `apply` is a person who wanted it done: a refusal, an unreadable list and the limit are `fail` rows
|
|
284
|
+
* and no terminal without `yes` throws `NonInteractiveError`. `setup` is one step of many: the same cases are `skip`
|
|
285
|
+
* rows (a contributor without the permission still passes), and no terminal without `yes` is a `skip` row saying to
|
|
286
|
+
* pass `--yes`.
|
|
287
|
+
*/
|
|
288
|
+
caller: "apply" | "setup";
|
|
289
|
+
/** Also set `description` and `color` on an existing Type that differs. Never `enabled`, never the name. */
|
|
290
|
+
update: boolean;
|
|
291
|
+
/** Write without asking. */
|
|
292
|
+
yes?: boolean;
|
|
293
|
+
/** Read and report only. */
|
|
294
|
+
dryRun?: boolean;
|
|
295
|
+
/** Whether a terminal can be asked. Defaults to whether stdin is one. */
|
|
296
|
+
interactive?: boolean;
|
|
297
|
+
/** Asks the yes/no question. Defaults to an inquirer prompt. */
|
|
298
|
+
confirm?: (message: string) => Promise<boolean>;
|
|
299
|
+
}
|
|
300
|
+
/** What {@link ensureIssueTypes} did. The caller prints `rows` (`printCheckRows`). */
|
|
301
|
+
interface EnsureIssueTypesReport {
|
|
302
|
+
/** `skip` when there was nothing it could do, `cancelled` when the answer was no. */
|
|
303
|
+
status: "ok" | "fail" | "skip" | "cancelled";
|
|
304
|
+
/** One row per declared Type, or the one row that says why nothing was done. */
|
|
305
|
+
rows: CheckRow[];
|
|
306
|
+
/** The names made, or on a dry run the names that would be. */
|
|
307
|
+
created: string[];
|
|
308
|
+
/** The names whose description or colour was set, or on a dry run would be. */
|
|
309
|
+
updated: string[];
|
|
310
|
+
}
|
|
311
|
+
/** The most Types GitHub documents for an organization, the three defaults included (Decision 12; not verified). */
|
|
312
|
+
export declare const MAX_ISSUE_TYPES = 25;
|
|
313
|
+
/** Reads the declared Types against the organization and, unless `dryRun`, writes the difference. See the file comment. */
|
|
314
|
+
export declare function ensureIssueTypes(input: EnsureIssueTypesInput): Promise<EnsureIssueTypesReport>;
|
|
315
|
+
/** One field of an existing Type that differs from the declaration. */
|
|
316
|
+
interface TypeChange {
|
|
317
|
+
/** Which field differs. */
|
|
318
|
+
field: "description" | "color";
|
|
319
|
+
/** The value the organization has now. */
|
|
320
|
+
was: string;
|
|
321
|
+
/** The value the declaration states. */
|
|
322
|
+
to: string;
|
|
323
|
+
}
|
|
324
|
+
/** What to do about one declared Type. */
|
|
325
|
+
type TypeAction = {
|
|
326
|
+
kind: "create";
|
|
327
|
+
declared: IssueTypeDeclaration;
|
|
328
|
+
} | {
|
|
329
|
+
kind: "update";
|
|
330
|
+
declared: IssueTypeDeclaration;
|
|
331
|
+
existing: IssueTypeInfo;
|
|
332
|
+
changes: TypeChange[];
|
|
333
|
+
} | {
|
|
334
|
+
kind: "exists";
|
|
335
|
+
declared: IssueTypeDeclaration;
|
|
336
|
+
existing: IssueTypeInfo;
|
|
337
|
+
};
|
|
338
|
+
/** The plan: one action per declared Type, in declaration order. */
|
|
339
|
+
interface IssueTypesPlan {
|
|
340
|
+
/** One action per declared Type. */
|
|
341
|
+
actions: TypeAction[];
|
|
342
|
+
/** The Types the organization has now plus those the plan would make. */
|
|
343
|
+
total: number;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Compares the declared Types with the organization's, by name ignoring case. A missing one is made; with `update` an
|
|
347
|
+
* existing one whose stated description or colour differs is updated (only those two fields, only when the declaration
|
|
348
|
+
* states them). `enabled` and the name are never compared: a Type is never renamed, turned on or off, or deleted.
|
|
349
|
+
*/
|
|
350
|
+
export declare function planIssueTypes(declared: readonly IssueTypeDeclaration[], existing: readonly IssueTypeInfo[], update: boolean): IssueTypesPlan;
|
|
270
351
|
/**
|
|
271
352
|
* The first server emoji a layout gives two different pictures, or undefined. One name is one emoji, so it can be made
|
|
272
353
|
* from one file only; the same file written twice is fine.
|
|
@@ -617,10 +698,6 @@ export declare const CANONICAL_LABELS: readonly [{
|
|
|
617
698
|
readonly name: "enhancement";
|
|
618
699
|
readonly color: "a2eeef";
|
|
619
700
|
readonly description: "New feature or request";
|
|
620
|
-
}, {
|
|
621
|
-
readonly name: "epic";
|
|
622
|
-
readonly color: "5319e7";
|
|
623
|
-
readonly description: "A body of work made of several issues";
|
|
624
701
|
}, {
|
|
625
702
|
readonly name: "good first issue";
|
|
626
703
|
readonly color: "7057ff";
|
|
@@ -809,4 +886,4 @@ export declare const SHARED_AREAS: readonly ["org"];
|
|
|
809
886
|
* is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
|
|
810
887
|
*/
|
|
811
888
|
export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
|
|
812
|
-
export { AddedItem, type AgentName, type AgentOptions, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, type AuthExportOutKind, AuthIdentity, AuthUser, type BoardDeclaration, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardPullRequest, BoardPullRequestChecks, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, type CustomReaction, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, DuplicateDiscussion, ElevationRequiredError, EmojiCheck, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, InspectRelaySourceInput, Issue, IssueClearable, IssueComment, IssueCreateInput, IssueEffort, IssueFields, IssueKind, IssueOrder, IssuePatch, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, IssueUpdateResult, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, type LayoutEmoji, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsReaction, NotificationsRelaySource, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type ParsedReaction, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, type ProjectOptions, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, PullRequestChecks, PullRequestChecksState, PullRequestFields, PullRequestInput, PullRequestLink, PullRequestPatch, PullRequestResult, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, type RepoConfig, type RepoLabels, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveProjectOptionsResult, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, type UnicodeReaction, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiInspection, WikiInstanceState, WikiNavigationState, WikiOrganizationState, WikiProbe, WikiProvisionOpts, WikiProxyConfig, WikiPublishedState, WorkerDeploymentState, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|
|
889
|
+
export { AddedItem, type AgentName, type AgentOptions, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, type AuthExportOutKind, AuthIdentity, AuthUser, type BoardDeclaration, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardPullRequest, BoardPullRequestChecks, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CoreIssueKind, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, type CustomReaction, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, DuplicateDiscussion, ElevationRequiredError, EmojiCheck, EnsureDiscussionInput, type EnsureIssueTypesInput, type EnsureIssueTypesReport, EnsureRelayInput, EnsureRelayResult, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, InspectRelaySourceInput, Issue, IssueClearable, IssueComment, IssueCreateInput, IssueEffort, IssueFields, IssueKind, IssueOrder, IssuePatch, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, type IssueTypesPlan, IssueUpdateResult, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, type LayoutEmoji, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsReaction, NotificationsRelaySource, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, type OrgIssueType, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type ParsedReaction, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, type ProjectOptions, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, PullRequestChecks, PullRequestChecksState, PullRequestFields, PullRequestInput, PullRequestLink, PullRequestPatch, PullRequestResult, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, type RepoConfig, type RepoLabels, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveProjectOptionsResult, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, type TypeAction, type TypeChange, type UnicodeReaction, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiInspection, WikiInstanceState, WikiNavigationState, WikiOrganizationState, WikiProbe, WikiProvisionOpts, WikiProxyConfig, WikiPublishedState, WorkerDeploymentState, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|