@theholocron/cli 5.0.0-alpha.450 → 5.0.0-alpha.451
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/cli.mjs +260 -260
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-system-CijVTCFk.mjs → config-system-CAYb1d4M.mjs} +68 -68
- package/dist/{index-D0rQ5YD1.d.mts → index-DMoGsKv2.d.mts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugin/capabilities.d.mts +1 -1
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +15 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { resolvePluginPackage } from "@theholocron/kyber/plugins";
|
|
2
|
+
import { resolvePluginPackage as resolvePluginPackage$1 } from "@theholocron/kyber/plugins";
|
|
3
3
|
import { ConfigError, ConfigError as ConfigError$1, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
|
|
4
4
|
import { readGitRemote } from "@theholocron/git-utils";
|
|
5
5
|
import { basename, dirname } from "node:path";
|
|
@@ -46,16 +46,16 @@ function layerEnvironment(slug, layer) {
|
|
|
46
46
|
*/
|
|
47
47
|
function validateEnvironmentChoice(entry, what, required = true) {
|
|
48
48
|
const { environment, layer } = entry;
|
|
49
|
-
if (environment !== void 0 && layer !== void 0) throw new ConfigError(`${what} sets both \`layer\` and \`environment\`: name the Environment one way`);
|
|
49
|
+
if (environment !== void 0 && layer !== void 0) throw new ConfigError$1(`${what} sets both \`layer\` and \`environment\`: name the Environment one way`);
|
|
50
50
|
if (layer !== void 0) {
|
|
51
|
-
if (!isEnvironmentLayer(layer)) throw new ConfigError(`${what} has \`layer\` ${JSON.stringify(layer)}: use ${ENVIRONMENT_LAYERS.map((l) => `"${l}"`).join(", ")}, or \`environment\` for a literal name`);
|
|
51
|
+
if (!isEnvironmentLayer(layer)) throw new ConfigError$1(`${what} has \`layer\` ${JSON.stringify(layer)}: use ${ENVIRONMENT_LAYERS.map((l) => `"${l}"`).join(", ")}, or \`environment\` for a literal name`);
|
|
52
52
|
return layer;
|
|
53
53
|
}
|
|
54
54
|
if (environment !== void 0) {
|
|
55
|
-
if (typeof environment !== "string" || environment.trim() === "") throw new ConfigError(`${what} needs the name of a vault environment, got an empty \`environment\``);
|
|
55
|
+
if (typeof environment !== "string" || environment.trim() === "") throw new ConfigError$1(`${what} needs the name of a vault environment, got an empty \`environment\``);
|
|
56
56
|
return environment;
|
|
57
57
|
}
|
|
58
|
-
if (required) throw new ConfigError(`${what} needs the name of a vault environment (\`environment\`) or a \`layer\``);
|
|
58
|
+
if (required) throw new ConfigError$1(`${what} needs the name of a vault environment (\`environment\`) or a \`layer\``);
|
|
59
59
|
}
|
|
60
60
|
// src/credentials-environments/repo-slug/repo-slug.ts
|
|
61
61
|
/**
|
|
@@ -64,7 +64,7 @@ function validateEnvironmentChoice(entry, what, required = true) {
|
|
|
64
64
|
*/
|
|
65
65
|
async function repoSlug(cwd, exec) {
|
|
66
66
|
const remote = await readGitRemote(cwd, exec ? { exec } : {});
|
|
67
|
-
if (!remote) throw new ConfigError(`cannot derive the 1Password Environment name: the \`origin\` remote of ${cwd} is missing or not an owner/repo URL. Give the \`credentials\` provider an \`environment\` option to name it.`);
|
|
67
|
+
if (!remote) throw new ConfigError$1(`cannot derive the 1Password Environment name: the \`origin\` remote of ${cwd} is missing or not an owner/repo URL. Give the \`credentials\` provider an \`environment\` option to name it.`);
|
|
68
68
|
return remote.slug;
|
|
69
69
|
}
|
|
70
70
|
// src/credentials-environments/unsynced-layer/unsynced-layer.ts
|
|
@@ -96,11 +96,11 @@ function validateSecretsDeploy(secrets) {
|
|
|
96
96
|
for (const entry of secrets?.deploy ?? []) {
|
|
97
97
|
const named = validateEnvironmentChoice(entry, "a `repo.secrets.deploy` entry");
|
|
98
98
|
const label = `\`repo.secrets.deploy\` entry for ${JSON.stringify(named)}`;
|
|
99
|
-
if (isUnsyncedLayer(entry.layer)) throw new ConfigError(unsyncedLayerMessage(label, entry.layer));
|
|
99
|
+
if (isUnsyncedLayer(entry.layer)) throw new ConfigError$1(unsyncedLayerMessage(label, entry.layer));
|
|
100
100
|
const { keys, prefix } = entry;
|
|
101
|
-
if (keys !== void 0 && (!Array.isArray(keys) || keys.some((k) => typeof k !== "string" || k === ""))) throw new ConfigError(`${label} has \`keys\` that is not a list of key names`);
|
|
102
|
-
if (prefix !== void 0 && (typeof prefix !== "string" || prefix === "")) throw new ConfigError(`${label} has an empty \`prefix\``);
|
|
103
|
-
if ((keys === void 0 || keys.length === 0) && prefix === void 0) throw new ConfigError(`${label} needs \`keys\` (a list of names) or \`prefix\` (such as "SENTINEL_"): a deployment never receives every key`);
|
|
101
|
+
if (keys !== void 0 && (!Array.isArray(keys) || keys.some((k) => typeof k !== "string" || k === ""))) throw new ConfigError$1(`${label} has \`keys\` that is not a list of key names`);
|
|
102
|
+
if (prefix !== void 0 && (typeof prefix !== "string" || prefix === "")) throw new ConfigError$1(`${label} has an empty \`prefix\``);
|
|
103
|
+
if ((keys === void 0 || keys.length === 0) && prefix === void 0) throw new ConfigError$1(`${label} needs \`keys\` (a list of names) or \`prefix\` (such as "SENTINEL_"): a deployment never receives every key`);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
// src/config/validate-secrets-sync/validate-secrets-sync.ts
|
|
@@ -121,26 +121,26 @@ function validateSecretsSync(secrets) {
|
|
|
121
121
|
for (const entry of secrets?.sync ?? []) {
|
|
122
122
|
const named = validateEnvironmentChoice(entry, "a `repo.secrets.sync` entry");
|
|
123
123
|
const label = `\`repo.secrets.sync\` entry for ${JSON.stringify(named)}`;
|
|
124
|
-
if (isUnsyncedLayer(entry.layer)) throw new ConfigError(unsyncedLayerMessage(label, entry.layer));
|
|
124
|
+
if (isUnsyncedLayer(entry.layer)) throw new ConfigError$1(unsyncedLayerMessage(label, entry.layer));
|
|
125
125
|
const scope = entry.scope ?? "repo";
|
|
126
126
|
if (!scope.startsWith("org=")) {
|
|
127
|
-
if (entry.visibility !== void 0 || entry.repos !== void 0) throw new ConfigError(`${label} sets \`visibility\` or \`repos\` on scope ${JSON.stringify(scope)}: only an organization scope ("org=<name>") has readers to name`);
|
|
127
|
+
if (entry.visibility !== void 0 || entry.repos !== void 0) throw new ConfigError$1(`${label} sets \`visibility\` or \`repos\` on scope ${JSON.stringify(scope)}: only an organization scope ("org=<name>") has readers to name`);
|
|
128
128
|
continue;
|
|
129
129
|
}
|
|
130
130
|
const org = scope.slice(4);
|
|
131
|
-
if (entry.visibility !== void 0 && entry.visibility !== "selected") throw new ConfigError(`${label} has visibility ${JSON.stringify(entry.visibility)}: a secret is never readable by every repository, so use "selected" with \`repos\``);
|
|
131
|
+
if (entry.visibility !== void 0 && entry.visibility !== "selected") throw new ConfigError$1(`${label} has visibility ${JSON.stringify(entry.visibility)}: a secret is never readable by every repository, so use "selected" with \`repos\``);
|
|
132
132
|
const { repos } = entry;
|
|
133
|
-
if (!Array.isArray(repos) || repos.length === 0 || repos.some((r) => typeof r !== "string" || !/^(?:[^/]+\/)?[^/]+$/.test(r))) throw new ConfigError(`${label} needs \`repos\`, a non-empty list of the repositories (\`name\` or \`<org>/name\`) that can read the secrets: an organization secret is never readable by every repository`);
|
|
133
|
+
if (!Array.isArray(repos) || repos.length === 0 || repos.some((r) => typeof r !== "string" || !/^(?:[^/]+\/)?[^/]+$/.test(r))) throw new ConfigError$1(`${label} needs \`repos\`, a non-empty list of the repositories (\`name\` or \`<org>/name\`) that can read the secrets: an organization secret is never readable by every repository`);
|
|
134
134
|
const names = repos.map((r) => {
|
|
135
135
|
const slash = r.indexOf("/");
|
|
136
|
-
if ((slash < 0 ? org : r.slice(0, slash)) !== org) throw new ConfigError(`${label} lists repository ${JSON.stringify(r)}: use a name in ${JSON.stringify(org)}, such as "holocron"`);
|
|
136
|
+
if ((slash < 0 ? org : r.slice(0, slash)) !== org) throw new ConfigError$1(`${label} lists repository ${JSON.stringify(r)}: use a name in ${JSON.stringify(org)}, such as "holocron"`);
|
|
137
137
|
return r.slice(slash + 1);
|
|
138
138
|
});
|
|
139
139
|
const list = [...new Set(names)].sort().join(", ");
|
|
140
140
|
for (const key of entry.keys ?? []) {
|
|
141
141
|
const id = `${org}/${key.toUpperCase()}`;
|
|
142
142
|
const seen = readers.get(id);
|
|
143
|
-
if (seen !== void 0 && seen !== list) throw new ConfigError(`${label} lists ${key}, which another \`repo.secrets.sync\` entry at org=${org} gives different readers [${seen}]: a secret has one reader list`);
|
|
143
|
+
if (seen !== void 0 && seen !== list) throw new ConfigError$1(`${label} lists ${key}, which another \`repo.secrets.sync\` entry at org=${org} gives different readers [${seen}]: a secret has one reader list`);
|
|
144
144
|
readers.set(id, list);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -159,18 +159,18 @@ const key = (name) => name.toUpperCase();
|
|
|
159
159
|
function validateVariablesSync(variables) {
|
|
160
160
|
const entries = variables?.sync;
|
|
161
161
|
if (!entries || entries.length === 0) return;
|
|
162
|
-
if (variables?.prune === true) throw new ConfigError("`repo.variables.prune` cannot be combined with `repo.variables.sync`: pruning would delete the variables the sync writes");
|
|
162
|
+
if (variables?.prune === true) throw new ConfigError$1("`repo.variables.prune` cannot be combined with `repo.variables.sync`: pruning would delete the variables the sync writes");
|
|
163
163
|
for (const entry of entries) {
|
|
164
164
|
const named = validateEnvironmentChoice(entry, "a `repo.variables.sync` entry");
|
|
165
165
|
const label = `\`repo.variables.sync\` entry for ${JSON.stringify(named)}`;
|
|
166
|
-
if (!Array.isArray(entry.keys) || entry.keys.length === 0 || entry.keys.some((k) => typeof k !== "string" || k === "")) throw new ConfigError(`${label} needs \`keys\`, a list of variable names`);
|
|
166
|
+
if (!Array.isArray(entry.keys) || entry.keys.length === 0 || entry.keys.some((k) => typeof k !== "string" || k === "")) throw new ConfigError$1(`${label} needs \`keys\`, a list of variable names`);
|
|
167
167
|
const scope = entry.scope ?? "repo";
|
|
168
168
|
const org = scope.startsWith("org=") ? scope.slice(4) : void 0;
|
|
169
|
-
if (scope !== "repo" && (org === void 0 || org === "")) throw new ConfigError(`${label} has scope ${JSON.stringify(scope)}: use "repo" or "org=<name>"`);
|
|
170
|
-
if (entry.visibility !== void 0 && entry.visibility !== "all" && entry.visibility !== "private") throw new ConfigError(`${label} has visibility ${JSON.stringify(entry.visibility)}: use "all" or "private"`);
|
|
169
|
+
if (scope !== "repo" && (org === void 0 || org === "")) throw new ConfigError$1(`${label} has scope ${JSON.stringify(scope)}: use "repo" or "org=<name>"`);
|
|
170
|
+
if (entry.visibility !== void 0 && entry.visibility !== "all" && entry.visibility !== "private") throw new ConfigError$1(`${label} has visibility ${JSON.stringify(entry.visibility)}: use "all" or "private"`);
|
|
171
171
|
const literal = new Set(Object.keys((org === void 0 ? variables?.repo : variables?.org) ?? {}).map(key));
|
|
172
172
|
const both = entry.keys.filter((k) => literal.has(key(k)));
|
|
173
|
-
if (both.length > 0) throw new ConfigError(`${label} lists ${both.join(", ")}, which \`repo.variables.${org === void 0 ? "repo" : "org"}\` also gives a value: keep one source per name`);
|
|
173
|
+
if (both.length > 0) throw new ConfigError$1(`${label} lists ${both.join(", ")}, which \`repo.variables.${org === void 0 ? "repo" : "org"}\` also gives a value: keep one source per name`);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
// src/config/config/config.ts
|
|
@@ -181,9 +181,9 @@ const COMMUNITY_PREFIX = "holocron-plugin-";
|
|
|
181
181
|
* Fully-qualified names (scoped or not) are honored verbatim, which
|
|
182
182
|
* is how third-party plugins published outside the org work.
|
|
183
183
|
*/
|
|
184
|
-
function resolvePluginPackage
|
|
185
|
-
if (!provider) throw new ConfigError
|
|
186
|
-
return resolvePluginPackage(provider, PLUGIN_PREFIX, COMMUNITY_PREFIX);
|
|
184
|
+
function resolvePluginPackage(provider) {
|
|
185
|
+
if (!provider) throw new ConfigError("provider name is empty");
|
|
186
|
+
return resolvePluginPackage$1(provider, PLUGIN_PREFIX, COMMUNITY_PREFIX);
|
|
187
187
|
}
|
|
188
188
|
/** A bare `[provider, options]` tuple, with both elements present? */
|
|
189
189
|
function isOptionsTuple(value) {
|
|
@@ -196,13 +196,13 @@ function isOptionsTuple(value) {
|
|
|
196
196
|
function normalizeEntry(entry) {
|
|
197
197
|
if (typeof entry === "string") return {
|
|
198
198
|
provider: entry,
|
|
199
|
-
packageName: resolvePluginPackage
|
|
199
|
+
packageName: resolvePluginPackage(entry),
|
|
200
200
|
options: {}
|
|
201
201
|
};
|
|
202
202
|
const [provider, options] = entry;
|
|
203
203
|
return {
|
|
204
204
|
provider,
|
|
205
|
-
packageName: resolvePluginPackage
|
|
205
|
+
packageName: resolvePluginPackage(provider),
|
|
206
206
|
options
|
|
207
207
|
};
|
|
208
208
|
}
|
|
@@ -210,13 +210,13 @@ function normalizeEntry(entry) {
|
|
|
210
210
|
function resolveEntry(key, raw) {
|
|
211
211
|
const cardinality = CARDINALITY[key];
|
|
212
212
|
if (typeof raw === "string") {
|
|
213
|
-
if (cardinality === "many") throw new ConfigError
|
|
213
|
+
if (cardinality === "many") throw new ConfigError(`\`${key}\` accepts multiple providers; wrap a single one in an array: ["${raw}"]`);
|
|
214
214
|
return {
|
|
215
215
|
cardinality: "single",
|
|
216
216
|
tuple: normalizeEntry(raw)
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
if (!Array.isArray(raw)) throw new ConfigError
|
|
219
|
+
if (!Array.isArray(raw)) throw new ConfigError(`\`${key}\` entry must be a string or array, got ${typeof raw}`);
|
|
220
220
|
if (isOptionsTuple(raw)) {
|
|
221
221
|
if (cardinality === "many") return {
|
|
222
222
|
cardinality: "many",
|
|
@@ -227,13 +227,13 @@ function resolveEntry(key, raw) {
|
|
|
227
227
|
tuple: normalizeEntry(raw)
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
if (cardinality === "single") throw new ConfigError
|
|
230
|
+
if (cardinality === "single") throw new ConfigError(`\`${key}\` accepts exactly one provider; got a multi-provider list with ${raw.length} entries`);
|
|
231
231
|
return {
|
|
232
232
|
cardinality: "many",
|
|
233
233
|
tuples: raw.map((entry, idx) => {
|
|
234
234
|
if (typeof entry === "string") return normalizeEntry(entry);
|
|
235
235
|
if (isOptionsTuple(entry)) return normalizeEntry(entry);
|
|
236
|
-
throw new ConfigError
|
|
236
|
+
throw new ConfigError(`\`${key}[${idx}]\` must be a provider string or [provider, options] tuple`);
|
|
237
237
|
})
|
|
238
238
|
};
|
|
239
239
|
}
|
|
@@ -241,11 +241,11 @@ function resolveEntry(key, raw) {
|
|
|
241
241
|
const HOSTNAME = /^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)+$/;
|
|
242
242
|
/** Throws a {@link ConfigError} naming the first thing wrong with the `githubApps` list. */
|
|
243
243
|
function validateGitHubApps(apps) {
|
|
244
|
-
if (!Array.isArray(apps)) throw new ConfigError
|
|
244
|
+
if (!Array.isArray(apps)) throw new ConfigError("`githubApps` must be a list of { name, manifest, environment }");
|
|
245
245
|
apps.forEach((app, idx) => {
|
|
246
246
|
for (const key of ["name", "manifest"]) {
|
|
247
247
|
const value = app?.[key];
|
|
248
|
-
if (typeof value !== "string" || value.trim() === "") throw new ConfigError
|
|
248
|
+
if (typeof value !== "string" || value.trim() === "") throw new ConfigError(`\`githubApps[${idx}].${key}\` must be a non-empty string`);
|
|
249
249
|
}
|
|
250
250
|
validateEnvironmentChoice(app, `\`githubApps[${idx}]\``);
|
|
251
251
|
});
|
|
@@ -254,11 +254,11 @@ function validateGitHubApps(apps) {
|
|
|
254
254
|
function validateIdeas(ideas) {
|
|
255
255
|
const nonEmpty = (value) => typeof value === "string" && value.trim() !== "";
|
|
256
256
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
257
|
-
if (!isObject(ideas)) throw new ConfigError
|
|
258
|
-
if (ideas.dir !== void 0 && !nonEmpty(ideas.dir)) throw new ConfigError
|
|
257
|
+
if (!isObject(ideas)) throw new ConfigError("`ideas` must be an object: { states?, dir? (deprecated) }");
|
|
258
|
+
if (ideas.dir !== void 0 && !nonEmpty(ideas.dir)) throw new ConfigError("`ideas.dir` must be the path of the notes folder, got an empty value");
|
|
259
259
|
if (ideas.states !== void 0) {
|
|
260
|
-
if (!isObject(ideas.states)) throw new ConfigError
|
|
261
|
-
if (ideas.states.file !== void 0 && !nonEmpty(ideas.states.file)) throw new ConfigError
|
|
260
|
+
if (!isObject(ideas.states)) throw new ConfigError("`ideas.states` must be an object: { file? }");
|
|
261
|
+
if (ideas.states.file !== void 0 && !nonEmpty(ideas.states.file)) throw new ConfigError("`ideas.states.file` must be a state name, got an empty value");
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
/** Throws a {@link ConfigError} naming the first thing wrong with the `dev` block. */
|
|
@@ -266,17 +266,17 @@ function validateDev(dev) {
|
|
|
266
266
|
const nonEmpty = (value) => typeof value === "string" && value.trim() !== "";
|
|
267
267
|
validateEnvironmentChoice(dev, "`dev`", false);
|
|
268
268
|
if (dev.tunnel !== void 0) {
|
|
269
|
-
if (!nonEmpty(dev.tunnel.name)) throw new ConfigError
|
|
270
|
-
if (typeof dev.tunnel.hostname !== "string" || !HOSTNAME.test(dev.tunnel.hostname)) throw new ConfigError
|
|
269
|
+
if (!nonEmpty(dev.tunnel.name)) throw new ConfigError("`dev.tunnel.name` must be a name, got an empty value");
|
|
270
|
+
if (typeof dev.tunnel.hostname !== "string" || !HOSTNAME.test(dev.tunnel.hostname)) throw new ConfigError(`\`dev.tunnel.hostname\` must be a hostname such as sentinel-dev.example.dev (no scheme or path), got ${JSON.stringify(dev.tunnel.hostname)}`);
|
|
271
271
|
}
|
|
272
|
-
if (dev.port !== void 0 && !(Number.isInteger(dev.port) && dev.port >= 1 && dev.port <= 65535)) throw new ConfigError
|
|
273
|
-
if (dev.command !== void 0 && !(Array.isArray(dev.command) && dev.command.length > 0 && dev.command.every(nonEmpty))) throw new ConfigError
|
|
272
|
+
if (dev.port !== void 0 && !(Number.isInteger(dev.port) && dev.port >= 1 && dev.port <= 65535)) throw new ConfigError(`\`dev.port\` must be a port from 1 to 65535, got ${JSON.stringify(dev.port)}`);
|
|
273
|
+
if (dev.command !== void 0 && !(Array.isArray(dev.command) && dev.command.length > 0 && dev.command.every(nonEmpty))) throw new ConfigError("`dev.command` must be the program and its arguments, e.g. [\"pnpm\", \"run\", \"serve\"]");
|
|
274
274
|
if (dev.serve !== void 0) {
|
|
275
275
|
const { serve } = dev;
|
|
276
|
-
if (!nonEmpty(serve.handler)) throw new ConfigError
|
|
277
|
-
if (serve.export !== void 0 && !nonEmpty(serve.export)) throw new ConfigError
|
|
278
|
-
if (serve.required !== void 0 && !(Array.isArray(serve.required) && serve.required.every(nonEmpty))) throw new ConfigError
|
|
279
|
-
if (serve.logging !== void 0 && !(nonEmpty(serve.logging.tokenVar) && nonEmpty(serve.logging.datasetVar))) throw new ConfigError
|
|
276
|
+
if (!nonEmpty(serve.handler)) throw new ConfigError("`dev.serve.handler` must be the path of the module that exports the handler");
|
|
277
|
+
if (serve.export !== void 0 && !nonEmpty(serve.export)) throw new ConfigError("`dev.serve.export` must be the name of the handler's export, got an empty value");
|
|
278
|
+
if (serve.required !== void 0 && !(Array.isArray(serve.required) && serve.required.every(nonEmpty))) throw new ConfigError("`dev.serve.required` must be a list of variable names");
|
|
279
|
+
if (serve.logging !== void 0 && !(nonEmpty(serve.logging.tokenVar) && nonEmpty(serve.logging.datasetVar))) throw new ConfigError("`dev.serve.logging` needs a `tokenVar` and a `datasetVar`, both variable names");
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
/** Throws a {@link ConfigError} when the `vault` entry's options name an Environment two ways, or a `layer` that is no layer word. */
|
|
@@ -301,24 +301,24 @@ function credentialsEnvironment(tuple, config) {
|
|
|
301
301
|
}
|
|
302
302
|
/** Validates a raw `holocron.config` and resolves its provider entries; throws `ConfigError` when `name` or `providers` is missing or an entry is malformed. */
|
|
303
303
|
function resolveConfig(raw) {
|
|
304
|
-
if (!raw.name) throw new ConfigError
|
|
305
|
-
if (!raw.providers || typeof raw.providers !== "object") throw new ConfigError
|
|
304
|
+
if (!raw.name) throw new ConfigError("`name` is required");
|
|
305
|
+
if (!raw.providers || typeof raw.providers !== "object") throw new ConfigError("`providers` block is required");
|
|
306
306
|
const providers = {};
|
|
307
307
|
for (const [key, entry] of Object.entries(raw.providers)) {
|
|
308
308
|
if (entry === void 0) continue;
|
|
309
309
|
providers[key] = resolveEntry(key, entry);
|
|
310
310
|
}
|
|
311
|
-
for (const required of REQUIRED_CAPABILITIES) if (!providers[required]) throw new ConfigError
|
|
311
|
+
for (const required of REQUIRED_CAPABILITIES) if (!providers[required]) throw new ConfigError(`required capability \`${required}\` is missing from providers`);
|
|
312
312
|
let docs;
|
|
313
313
|
if (raw.docs !== void 0) {
|
|
314
|
-
if (!raw.docs.build) throw new ConfigError
|
|
314
|
+
if (!raw.docs.build) throw new ConfigError("`docs.build` is required when `docs` is set");
|
|
315
315
|
docs = raw.docs;
|
|
316
316
|
}
|
|
317
317
|
const docsCoverage = raw.repoValidation?.docsCoverage;
|
|
318
|
-
if (docsCoverage !== void 0 && !DOCS_COVERAGE_MODES.includes(docsCoverage)) throw new ConfigError
|
|
318
|
+
if (docsCoverage !== void 0 && !DOCS_COVERAGE_MODES.includes(docsCoverage)) throw new ConfigError(`\`repoValidation.docsCoverage\` must be one of ${DOCS_COVERAGE_MODES.map((m) => `"${m}"`).join(", ")}, got ${JSON.stringify(docsCoverage)}`);
|
|
319
319
|
if (raw.credentials !== void 0) {
|
|
320
320
|
const environment = raw.credentials.environment;
|
|
321
|
-
if (typeof environment !== "string" || environment.trim() === "") throw new ConfigError
|
|
321
|
+
if (typeof environment !== "string" || environment.trim() === "") throw new ConfigError("`credentials.environment` must be the name of an environment, got an empty value");
|
|
322
322
|
}
|
|
323
323
|
if (raw.dev !== void 0) validateDev(raw.dev);
|
|
324
324
|
if (raw.githubApps !== void 0) validateGitHubApps(raw.githubApps);
|
|
@@ -330,8 +330,8 @@ function resolveConfig(raw) {
|
|
|
330
330
|
const credentialsEntry = providers.credentials;
|
|
331
331
|
if (credentialsEntry?.cardinality === "many") for (const tuple of credentialsEntry.tuples) {
|
|
332
332
|
const own = tuple.options.environment;
|
|
333
|
-
if (own !== void 0 && (typeof own !== "string" || own.trim() === "")) throw new ConfigError
|
|
334
|
-
if (credentialsEnvironment(tuple, raw) === void 0 && !derivesEnvironment(tuple.provider)) throw new ConfigError
|
|
333
|
+
if (own !== void 0 && (typeof own !== "string" || own.trim() === "")) throw new ConfigError(`the \`environment\` option of the \`${tuple.provider}\` credentials provider must be the name of an environment, got an empty value`);
|
|
334
|
+
if (credentialsEnvironment(tuple, raw) === void 0 && !derivesEnvironment(tuple.provider)) throw new ConfigError(`the \`${tuple.provider}\` credentials provider has no environment to read: give it an \`environment\` option or set \`credentials.environment\``);
|
|
335
335
|
}
|
|
336
336
|
const homepage = raw.homepage ?? (docs?.domain ? `https://${docs.domain}/` : void 0);
|
|
337
337
|
return {
|
|
@@ -526,19 +526,19 @@ function withLayout(entry, layout) {
|
|
|
526
526
|
* not set or already has an inline `layout`.
|
|
527
527
|
*/
|
|
528
528
|
function placeNotifications(raw, area) {
|
|
529
|
-
if (typeof area.value !== "object" || area.value === null || Array.isArray(area.value)) throw new ConfigError(`${area.path} must export the notifications layout as an object`);
|
|
529
|
+
if (typeof area.value !== "object" || area.value === null || Array.isArray(area.value)) throw new ConfigError$1(`${area.path} must export the notifications layout as an object`);
|
|
530
530
|
const entry = raw.providers?.notifications;
|
|
531
531
|
const hint = `Set it in one place: remove the inline \`layout\` or delete ${area.path}`;
|
|
532
532
|
let placed;
|
|
533
|
-
if (entry === void 0) throw new ConfigError(`${area.path} holds the notifications layout, but providers.notifications is not set. Add \`notifications: ["discord", { guildId }]\` to providers`);
|
|
533
|
+
if (entry === void 0) throw new ConfigError$1(`${area.path} holds the notifications layout, but providers.notifications is not set. Add \`notifications: ["discord", { guildId }]\` to providers`);
|
|
534
534
|
else if (Array.isArray(entry) && !isTuple$1(entry)) {
|
|
535
535
|
const index = findDiscord(entry);
|
|
536
|
-
if (index === -1) throw new ConfigError(`${area.path} holds the notifications layout, but providers.notifications has no discord entry`);
|
|
536
|
+
if (index === -1) throw new ConfigError$1(`${area.path} holds the notifications layout, but providers.notifications has no discord entry`);
|
|
537
537
|
const target = entry[index];
|
|
538
|
-
if (isTuple$1(target) && target[1].layout !== void 0) throw new ConfigError(`the notifications layout is set in providers.notifications and in ${area.path}. ${hint}`);
|
|
538
|
+
if (isTuple$1(target) && target[1].layout !== void 0) throw new ConfigError$1(`the notifications layout is set in providers.notifications and in ${area.path}. ${hint}`);
|
|
539
539
|
placed = entry.map((item, i) => i === index ? withLayout(item, area.value) : item);
|
|
540
540
|
} else {
|
|
541
|
-
if (isTuple$1(entry) && entry[1].layout !== void 0) throw new ConfigError(`the notifications layout is set in providers.notifications and in ${area.path}. ${hint}`);
|
|
541
|
+
if (isTuple$1(entry) && entry[1].layout !== void 0) throw new ConfigError$1(`the notifications layout is set in providers.notifications and in ${area.path}. ${hint}`);
|
|
542
542
|
placed = withLayout(entry, area.value);
|
|
543
543
|
}
|
|
544
544
|
return {
|
|
@@ -564,16 +564,16 @@ const isTuple = (entry) => Array.isArray(entry) && entry.length === 2 && typeof
|
|
|
564
564
|
* each with a closed list of string options.
|
|
565
565
|
*/
|
|
566
566
|
function validate(area) {
|
|
567
|
-
if (!isObject(area.value)) throw new ConfigError(`${area.path} must export the org settings as an object`);
|
|
567
|
+
if (!isObject(area.value)) throw new ConfigError$1(`${area.path} must export the org settings as an object`);
|
|
568
568
|
const { domain, ...rest } = area.value;
|
|
569
|
-
if (domain !== void 0 && (typeof domain !== "string" || domain === "")) throw new ConfigError(`${area.path}: "domain" must be a non-empty string`);
|
|
569
|
+
if (domain !== void 0 && (typeof domain !== "string" || domain === "")) throw new ConfigError$1(`${area.path}: "domain" must be a non-empty string`);
|
|
570
570
|
for (const [provider, options] of Object.entries(rest)) {
|
|
571
571
|
const allowed = ORG_OPTIONS[provider];
|
|
572
|
-
if (allowed === void 0) throw new ConfigError(`${area.path} has an unknown provider "${provider}". Known: ${Object.keys(ORG_OPTIONS).join(", ")}`);
|
|
573
|
-
if (!isObject(options)) throw new ConfigError(`${area.path}: "${provider}" must be an object of options`);
|
|
572
|
+
if (allowed === void 0) throw new ConfigError$1(`${area.path} has an unknown provider "${provider}". Known: ${Object.keys(ORG_OPTIONS).join(", ")}`);
|
|
573
|
+
if (!isObject(options)) throw new ConfigError$1(`${area.path}: "${provider}" must be an object of options`);
|
|
574
574
|
for (const [option, value] of Object.entries(options)) {
|
|
575
|
-
if (!allowed.includes(option)) throw new ConfigError(`${area.path}: "${provider}.${option}" is not an org option. Known: ${allowed.join(", ")}`);
|
|
576
|
-
if (typeof value !== "string" || value === "") throw new ConfigError(`${area.path}: "${provider}.${option}" must be a non-empty string`);
|
|
575
|
+
if (!allowed.includes(option)) throw new ConfigError$1(`${area.path}: "${provider}.${option}" is not an org option. Known: ${allowed.join(", ")}`);
|
|
576
|
+
if (typeof value !== "string" || value === "") throw new ConfigError$1(`${area.path}: "${provider}.${option}" must be a non-empty string`);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return {
|
|
@@ -614,7 +614,7 @@ function fill(entry, org, capability) {
|
|
|
614
614
|
if (values === void 0 || Object.keys(values).length === 0) return entry;
|
|
615
615
|
const filled = {};
|
|
616
616
|
for (const [option, { value, path }] of Object.entries(values)) {
|
|
617
|
-
if (options[option] !== void 0) throw new ConfigError(`${provider}.${option} is set in providers.${capability} and in ${path}. Set it in one place: remove the inline option or the key from ${path}`);
|
|
617
|
+
if (options[option] !== void 0) throw new ConfigError$1(`${provider}.${option} is set in providers.${capability} and in ${path}. Set it in one place: remove the inline option or the key from ${path}`);
|
|
618
618
|
filled[option] = value;
|
|
619
619
|
}
|
|
620
620
|
return [provider, {
|
|
@@ -634,7 +634,7 @@ function fill(entry, org, capability) {
|
|
|
634
634
|
*/
|
|
635
635
|
function placeOrg(raw, area) {
|
|
636
636
|
const { domain, providers: org } = merge(area);
|
|
637
|
-
if (domain !== void 0 && raw.domain !== void 0) throw new ConfigError(`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}`);
|
|
637
|
+
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}`);
|
|
638
638
|
const withDomain = domain === void 0 ? raw : {
|
|
639
639
|
...raw,
|
|
640
640
|
domain: domain.value
|
|
@@ -654,10 +654,10 @@ function placeOrg(raw, area) {
|
|
|
654
654
|
* both.
|
|
655
655
|
*/
|
|
656
656
|
function placeRepo(raw, area) {
|
|
657
|
-
if (typeof area.value !== "object" || area.value === null || Array.isArray(area.value)) throw new ConfigError(`${area.path} must export the repo settings as an object`);
|
|
657
|
+
if (typeof area.value !== "object" || area.value === null || Array.isArray(area.value)) throw new ConfigError$1(`${area.path} must export the repo settings as an object`);
|
|
658
658
|
const fromFile = area.value;
|
|
659
659
|
const inline = raw.repo ?? {};
|
|
660
|
-
for (const key of Object.keys(fromFile)) if (inline[key] !== void 0) throw new ConfigError(`repo.${key} is set in the config and in ${area.path}. Set it in one place: remove the inline value or the key from ${area.path}`);
|
|
660
|
+
for (const key of Object.keys(fromFile)) if (inline[key] !== void 0) throw new ConfigError$1(`repo.${key} is set in the config and in ${area.path}. Set it in one place: remove the inline value or the key from ${area.path}`);
|
|
661
661
|
return {
|
|
662
662
|
...raw,
|
|
663
663
|
repo: {
|
|
@@ -811,4 +811,4 @@ async function loadConfig(cwd, input = {}) {
|
|
|
811
811
|
* const preset = compose(node(), nextjs());
|
|
812
812
|
*/
|
|
813
813
|
const compose = system.compose;
|
|
814
|
-
export { placeAreas as a, ConfigError
|
|
814
|
+
export { placeAreas as a, ConfigError as c, resolveEntry as d, resolvePluginPackage as f, layerEnvironment as g, isEnvironmentLayer as h, loadConfig as i, credentialsEnvironment as l, ENVIRONMENT_LAYERS as m, compose as n, HOLOCRON_AREAS as o, repoSlug as p, defineConfig as r, SHARED_AREAS as s, ConfigFileError as t, resolveConfig as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProviderApiError } from "@theholocron/http-client";
|
|
2
|
-
import { ConfigError
|
|
2
|
+
import { ConfigError, ConfigFileError } from "@theholocron/kyber/config";
|
|
3
3
|
import { GitExec } from "@theholocron/git-utils";
|
|
4
4
|
import { PackageJson } from "@theholocron/pkg-utils";
|
|
5
5
|
import { DocsCoverageMode, WorkspacePackage } from "@theholocron/astromech";
|
|
@@ -4260,4 +4260,4 @@ declare class WebhookVerificationError extends Error {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
/** Whether `key` is a capability that can have several providers active at once. */
|
|
4262
4262
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
4263
|
-
export { DeploymentTarget as $, TrackerDoctorReport as $n, RepoConfig as $r, NormalizedAuthUser as $t, CapabilityImpls as A, SecretAccess as An, credentialsEnvironment as Ar, IssueOrder as At, CoverageRepoReport as B, SourceSecurity as Bn, DocsConfig as Br, LogsDataset as Bt, BoardStatusCategory as C, ProviderIdentity as Cn, defineConfig as Cr, IdeaRecord as Ct, BoardView as D, RepoSettings as Dn, ComposedPreset as Dr, InspectRelayInput as Dt, BoardTemplateFile as E, RepoRef as En, Capability as Er, ImportResult as Et, CiRun as F, Source as Fn, CapabilityConfigPackage as Fr, Issues as Ft, DeployFunctionConfig as G, SyncResult as Gn, HolocronConfig as Gr, MonitoringAlertSettings as Gt, CreateAuthUserInput as H, StatusCategory as Hn, EnvConfig as Hr, MonitoringAlertChannelInput as Ht, CiRunFilter as I, SourceBranch as In, ChromaticProjectConfig as Ir, LabelDef as It, DeployScriptResult as J, Tooling as Jn, MultiEntry as Jr, MonitoringAssertionSource as Jt, DeployFunctionResult as K, TeamEntry as Kn, IdeasConfig as Kr, MonitoringAssertion as Kt, CiRunStatus as L, SourceFile as Ln, CredentialsConfig as Lr, LifecycleResult as Lt, Cardinality as M, SecretVisibility as Mn, resolveEntry as Mr, IssueRecord as Mt, CardinalityFor as N, Secrets as Nn, resolvePluginPackage as Nr, IssueSearchFilter as Nt, Cache as O, ResolvedCapability as On, TaskEntry as Or, Issue as Ot, Ci as P, ServerInspection as Pn, AppConfig as Pr, IssueSelector as Pt, DeploymentRecord as Q, ToolingExportResult as Qn, RawProvidersConfig as Qr, MoveReport as Qt, ConnectionStringOptions as R, SourceRepoInfo as Rn, DevConfig as Rr, LifecycleSlot as Rt, BoardStatus as S, Projects as Sn, compose as Sr, ExportInfo as St, BoardTemplate as T, RelayState as Tn, LoadedConfig as Tr, ImportOptions as Tt, Credentials as U, Storage as Un, EslintConfig as Ur, MonitoringAlertChannelResult as Ut, CoverageTokenCheck as V, SourceTeamMember as Vn, DoctorConfig as Vr, Monitoring as Vt, CredentialsInspection as W, StorageBranch as Wn, GitHubAppConfig as Wr, MonitoringAlertChannelState as Wt, DeploymentProject as X, ToolingExportInput as Xn, ProviderOptions as Xr, MonitoringCheckInput as Xt, Deployment as Y, ToolingDoctorReport as Yn, OrgConfig as Yr, MonitoringCheck as Yt, DeploymentProjectSettings as Z, ToolingExportIssue as Zn, RawProviderEntry as Zr, MonitoringHttpMethod as Zt, BoardFieldType as _, EnvironmentLayer as _i, NotificationsSignedIn as _n, DeriveProfileInput as _r, Environment as _t, REQUIRED_CAPABILITIES as a, RepoValidationConfig as ai, NotificationsEveryoneLayout as an, Wiki as ar, DnsRecordRequest as at, BoardRule as b, PagesConfig as bn, StackName as br, Environments as bt, AddedItem as c, ResolvedHolocronConfig as ci, NotificationsLinksLayout as cn, WorkerScriptState as cr, EnsureDiscussionInput as ct, AuthDescription as d, ResolvedTuple as di, NotificationsOnboardingLayout as dn, deriveCapabilities as dr, EnsureReport as dt, RepoProperties as ei, Notifications as en, TrackerUser as er, DeploymentTrigger as et, AuthEvent as f, SingleEntry as fi, NotificationsPicture as fn, deriveCompliance as fr, EnsureResult as ft, BoardField as g, WorkflowWithConfig as gi, NotificationsSignIn as gn, readWorkspacePackageJsons as gr, EnsuredTunnel as gt, AuthUser as h, TelemetryConfig as hi, NotificationsServerLayout as hn, missingCapabilities as hr, EnsuredResource as ht, ProviderApiError as i, RepoSecretsSync as ii, NotificationsDelivery as in, WebhookDashboardInfo as ir, DnsRecord as it, CapabilityKey as j, SecretScope as jn, resolveConfig as jr, IssuePriority as jt, CacheTokenCheck as k, Ruleset as kn, ConfigError
|
|
4263
|
+
export { DeploymentTarget as $, TrackerDoctorReport as $n, RepoConfig as $r, NormalizedAuthUser as $t, CapabilityImpls as A, SecretAccess as An, credentialsEnvironment as Ar, IssueOrder as At, CoverageRepoReport as B, SourceSecurity as Bn, DocsConfig as Br, LogsDataset as Bt, BoardStatusCategory as C, ProviderIdentity as Cn, defineConfig as Cr, IdeaRecord as Ct, BoardView as D, RepoSettings as Dn, ComposedPreset as Dr, InspectRelayInput as Dt, BoardTemplateFile as E, RepoRef as En, Capability as Er, ImportResult as Et, CiRun as F, Source as Fn, CapabilityConfigPackage as Fr, Issues as Ft, DeployFunctionConfig as G, SyncResult as Gn, HolocronConfig as Gr, MonitoringAlertSettings as Gt, CreateAuthUserInput as H, StatusCategory as Hn, EnvConfig as Hr, MonitoringAlertChannelInput as Ht, CiRunFilter as I, SourceBranch as In, ChromaticProjectConfig as Ir, LabelDef as It, DeployScriptResult as J, Tooling as Jn, MultiEntry as Jr, MonitoringAssertionSource as Jt, DeployFunctionResult as K, TeamEntry as Kn, IdeasConfig as Kr, MonitoringAssertion as Kt, CiRunStatus as L, SourceFile as Ln, CredentialsConfig as Lr, LifecycleResult as Lt, Cardinality as M, SecretVisibility as Mn, resolveEntry as Mr, IssueRecord as Mt, CardinalityFor as N, Secrets as Nn, resolvePluginPackage as Nr, IssueSearchFilter as Nt, Cache as O, ResolvedCapability as On, TaskEntry as Or, Issue as Ot, Ci as P, ServerInspection as Pn, AppConfig as Pr, IssueSelector as Pt, DeploymentRecord as Q, ToolingExportResult as Qn, RawProvidersConfig as Qr, MoveReport as Qt, ConnectionStringOptions as R, SourceRepoInfo as Rn, DevConfig as Rr, LifecycleSlot as Rt, BoardStatus as S, Projects as Sn, compose as Sr, ExportInfo as St, BoardTemplate as T, RelayState as Tn, LoadedConfig as Tr, ImportOptions as Tt, Credentials as U, Storage as Un, EslintConfig as Ur, MonitoringAlertChannelResult as Ut, CoverageTokenCheck as V, SourceTeamMember as Vn, DoctorConfig as Vr, Monitoring as Vt, CredentialsInspection as W, StorageBranch as Wn, GitHubAppConfig as Wr, MonitoringAlertChannelState as Wt, DeploymentProject as X, ToolingExportInput as Xn, ProviderOptions as Xr, MonitoringCheckInput as Xt, Deployment as Y, ToolingDoctorReport as Yn, OrgConfig as Yr, MonitoringCheck as Yt, DeploymentProjectSettings as Z, ToolingExportIssue as Zn, RawProviderEntry as Zr, MonitoringHttpMethod as Zt, BoardFieldType as _, EnvironmentLayer as _i, NotificationsSignedIn as _n, DeriveProfileInput as _r, Environment as _t, REQUIRED_CAPABILITIES as a, RepoValidationConfig as ai, NotificationsEveryoneLayout as an, Wiki as ar, DnsRecordRequest as at, BoardRule as b, PagesConfig as bn, StackName as br, Environments as bt, AddedItem as c, ResolvedHolocronConfig as ci, NotificationsLinksLayout as cn, WorkerScriptState as cr, EnsureDiscussionInput as ct, AuthDescription as d, ResolvedTuple as di, NotificationsOnboardingLayout as dn, deriveCapabilities as dr, EnsureReport as dt, RepoProperties as ei, Notifications as en, TrackerUser as er, DeploymentTrigger as et, AuthEvent as f, SingleEntry as fi, NotificationsPicture as fn, deriveCompliance as fr, EnsureResult as ft, BoardField as g, WorkflowWithConfig as gi, NotificationsSignIn as gn, readWorkspacePackageJsons as gr, EnsuredTunnel as gt, AuthUser as h, TelemetryConfig as hi, NotificationsServerLayout as hn, missingCapabilities as hr, EnsuredResource as ht, ProviderApiError as i, RepoSecretsSync as ii, NotificationsDelivery as in, WebhookDashboardInfo as ir, DnsRecord as it, CapabilityKey as j, SecretScope as jn, resolveConfig as jr, IssuePriority as jt, CacheTokenCheck as k, Ruleset as kn, ConfigError as kr, IssueComment as kt, Analytics as l, ResolvedProviderEntry as li, NotificationsMember as ln, Workers as lr, EnsureRelayInput as lt, AuthIdentity as m, TaskEntryConfig as mi, NotificationsPrsFeed as mn, deriveStack as mr, EnsuredDiscussion as mt, ElevationRequiredError as n, RepoSecrets as ni, NotificationsApplicationLayout as nn, Tunnels as nr, DiscussionPost as nt, WebhookVerificationError as o, RepoVariables as oi, NotificationsForumTag as on, WikiProvisionOpts as or, DnsRecordType as ot, AuthEventType as p, StorybookDeployProject as pi, NotificationsPinnedLayout as pn, deriveProfile as pr, EnsureWebhookResult as pt, DeployScriptConfig as q, TeamPermission as qn, LogConfig as qr, MonitoringAssertionComparison as qt, MissingTokenError as r, RepoSecretsDeploy as ri, NotificationsChannelLayout as rn, Vault as rr, Dns as rt, isMulti as s, RepoVariablesSync as si, NotificationsLayout as sn, WikiProxyConfig as sr, DuplicateDiscussion as st, CARDINALITY as t, RepoProtection as ti, NotificationsAccess as tn, TunnelRoute as tr, DiscussionPatch as tt, Auth as u, ResolvedProvidersConfig as ui, NotificationsMonitoringFeed as un, KNOWN_STACK_DEPS as ur, EnsureRelayResult as ut, BoardItem as v, NotificationsWelcomeLayout as vn, HolocronProfile as vr, EnvironmentEntry as vt, BoardSummary as w, PullRequest as wn, loadConfig as wr, Ideas as wt, BoardState as x, ParseWebhookInput as xn, ConfigFileError as xr, Errors as xt, BoardItemInput as y, OrganizationSecretScope as yn, PackageJsonLike as yr, EnvironmentReviewer as yt, Coverage as z, SourceRulesetDetail as zn, DevServeConfig as zr, Logs as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DeploymentTarget, $n as TrackerDoctorReport, $r as RepoConfig, $t as NormalizedAuthUser, A as CapabilityImpls, An as SecretAccess, Ar as credentialsEnvironment, At as IssueOrder, B as CoverageRepoReport, Bn as SourceSecurity, Br as DocsConfig, Bt as LogsDataset, C as BoardStatusCategory, Cn as ProviderIdentity, Cr as defineConfig, Ct as IdeaRecord, D as BoardView, Dn as RepoSettings, Dr as ComposedPreset, Dt as InspectRelayInput, E as BoardTemplateFile, En as RepoRef, Er as Capability, Et as ImportResult, F as CiRun, Fn as Source, Fr as CapabilityConfigPackage, Ft as Issues, G as DeployFunctionConfig, Gn as SyncResult, Gr as HolocronConfig, Gt as MonitoringAlertSettings, H as CreateAuthUserInput, Hn as StatusCategory, Hr as EnvConfig, Ht as MonitoringAlertChannelInput, I as CiRunFilter, In as SourceBranch, Ir as ChromaticProjectConfig, It as LabelDef, J as DeployScriptResult, Jn as Tooling, Jr as MultiEntry, Jt as MonitoringAssertionSource, K as DeployFunctionResult, Kn as TeamEntry, Kr as IdeasConfig, Kt as MonitoringAssertion, L as CiRunStatus, Ln as SourceFile, Lr as CredentialsConfig, Lt as LifecycleResult, M as Cardinality, Mn as SecretVisibility, Mr as resolveEntry, Mt as IssueRecord, N as CardinalityFor, Nn as Secrets, Nr as resolvePluginPackage, Nt as IssueSearchFilter, O as Cache, On as ResolvedCapability, Or as TaskEntry, Ot as Issue, P as Ci, Pn as ServerInspection, Pr as AppConfig, Pt as IssueSelector, Q as DeploymentRecord, Qn as ToolingExportResult, Qr as RawProvidersConfig, Qt as MoveReport, R as ConnectionStringOptions, Rn as SourceRepoInfo, Rr as DevConfig, Rt as LifecycleSlot, S as BoardStatus, Sn as Projects, Sr as compose, St as ExportInfo, T as BoardTemplate, Tn as RelayState, Tr as LoadedConfig, Tt as ImportOptions, U as Credentials, Un as Storage, Ur as EslintConfig, Ut as MonitoringAlertChannelResult, V as CoverageTokenCheck, Vn as SourceTeamMember, Vr as DoctorConfig, Vt as Monitoring, W as CredentialsInspection, Wn as StorageBranch, Wr as GitHubAppConfig, Wt as MonitoringAlertChannelState, X as DeploymentProject, Xn as ToolingExportInput, Xr as ProviderOptions, Xt as MonitoringCheckInput, Y as Deployment, Yn as ToolingDoctorReport, Yr as OrgConfig, Yt as MonitoringCheck, Z as DeploymentProjectSettings, Zn as ToolingExportIssue, Zr as RawProviderEntry, Zt as MonitoringHttpMethod, _ as BoardFieldType, _i as EnvironmentLayer, _n as NotificationsSignedIn, _r as DeriveProfileInput, _t as Environment, a as REQUIRED_CAPABILITIES, ai as RepoValidationConfig, an as NotificationsEveryoneLayout, ar as Wiki, at as DnsRecordRequest, b as BoardRule, bn as PagesConfig, br as StackName, bt as Environments, c as AddedItem, ci as ResolvedHolocronConfig, cn as NotificationsLinksLayout, cr as WorkerScriptState, ct as EnsureDiscussionInput, d as AuthDescription, di as ResolvedTuple, dn as NotificationsOnboardingLayout, dr as deriveCapabilities, dt as EnsureReport, ei as RepoProperties, en as Notifications, er as TrackerUser, et as DeploymentTrigger, f as AuthEvent, fi as SingleEntry, fn as NotificationsPicture, fr as deriveCompliance, ft as EnsureResult, g as BoardField, gi as WorkflowWithConfig, gn as NotificationsSignIn, gr as readWorkspacePackageJsons, gt as EnsuredTunnel, h as AuthUser, hi as TelemetryConfig, hn as NotificationsServerLayout, hr as missingCapabilities, ht as EnsuredResource, i as ProviderApiError, ii as RepoSecretsSync, in as NotificationsDelivery, ir as WebhookDashboardInfo, it as DnsRecord, j as CapabilityKey, jn as SecretScope, jr as resolveConfig, jt as IssuePriority, k as CacheTokenCheck, kn as Ruleset, kr as ConfigError, kt as IssueComment, l as Analytics, li as ResolvedProviderEntry, ln as NotificationsMember, lr as Workers, lt as EnsureRelayInput, m as AuthIdentity, mi as TaskEntryConfig, mn as NotificationsPrsFeed, mr as deriveStack, mt as EnsuredDiscussion, n as ElevationRequiredError, ni as RepoSecrets, nn as NotificationsApplicationLayout, nr as Tunnels, nt as DiscussionPost, o as WebhookVerificationError, oi as RepoVariables, on as NotificationsForumTag, or as WikiProvisionOpts, ot as DnsRecordType, p as AuthEventType, pi as StorybookDeployProject, pn as NotificationsPinnedLayout, pr as deriveProfile, pt as EnsureWebhookResult, q as DeployScriptConfig, qn as TeamPermission, qr as LogConfig, qt as MonitoringAssertionComparison, r as MissingTokenError, ri as RepoSecretsDeploy, rn as NotificationsChannelLayout, rr as Vault, rt as Dns, s as isMulti, si as RepoVariablesSync, sn as NotificationsLayout, sr as WikiProxyConfig, st as DuplicateDiscussion, t as CARDINALITY, ti as RepoProtection, tn as NotificationsAccess, tr as TunnelRoute, tt as DiscussionPatch, u as Auth, ui as ResolvedProvidersConfig, un as NotificationsMonitoringFeed, ur as KNOWN_STACK_DEPS, ut as EnsureRelayResult, v as BoardItem, vn as NotificationsWelcomeLayout, vr as HolocronProfile, vt as EnvironmentEntry, w as BoardSummary, wn as PullRequest, wr as loadConfig, wt as Ideas, x as BoardState, xn as ParseWebhookInput, xr as ConfigFileError, xt as Errors, y as BoardItemInput, yn as OrganizationSecretScope, yr as PackageJsonLike, yt as EnvironmentReviewer, z as Coverage, zn as SourceRulesetDetail, zr as DevServeConfig, zt as Logs } from "./index-
|
|
1
|
+
import { $ as DeploymentTarget, $n as TrackerDoctorReport, $r as RepoConfig, $t as NormalizedAuthUser, A as CapabilityImpls, An as SecretAccess, Ar as credentialsEnvironment, At as IssueOrder, B as CoverageRepoReport, Bn as SourceSecurity, Br as DocsConfig, Bt as LogsDataset, C as BoardStatusCategory, Cn as ProviderIdentity, Cr as defineConfig, Ct as IdeaRecord, D as BoardView, Dn as RepoSettings, Dr as ComposedPreset, Dt as InspectRelayInput, E as BoardTemplateFile, En as RepoRef, Er as Capability, Et as ImportResult, F as CiRun, Fn as Source, Fr as CapabilityConfigPackage, Ft as Issues, G as DeployFunctionConfig, Gn as SyncResult, Gr as HolocronConfig, Gt as MonitoringAlertSettings, H as CreateAuthUserInput, Hn as StatusCategory, Hr as EnvConfig, Ht as MonitoringAlertChannelInput, I as CiRunFilter, In as SourceBranch, Ir as ChromaticProjectConfig, It as LabelDef, J as DeployScriptResult, Jn as Tooling, Jr as MultiEntry, Jt as MonitoringAssertionSource, K as DeployFunctionResult, Kn as TeamEntry, Kr as IdeasConfig, Kt as MonitoringAssertion, L as CiRunStatus, Ln as SourceFile, Lr as CredentialsConfig, Lt as LifecycleResult, M as Cardinality, Mn as SecretVisibility, Mr as resolveEntry, Mt as IssueRecord, N as CardinalityFor, Nn as Secrets, Nr as resolvePluginPackage, Nt as IssueSearchFilter, O as Cache, On as ResolvedCapability, Or as TaskEntry, Ot as Issue, P as Ci, Pn as ServerInspection, Pr as AppConfig, Pt as IssueSelector, Q as DeploymentRecord, Qn as ToolingExportResult, Qr as RawProvidersConfig, Qt as MoveReport, R as ConnectionStringOptions, Rn as SourceRepoInfo, Rr as DevConfig, Rt as LifecycleSlot, S as BoardStatus, Sn as Projects, Sr as compose, St as ExportInfo, T as BoardTemplate, Tn as RelayState, Tr as LoadedConfig, Tt as ImportOptions, U as Credentials, Un as Storage, Ur as EslintConfig, Ut as MonitoringAlertChannelResult, V as CoverageTokenCheck, Vn as SourceTeamMember, Vr as DoctorConfig, Vt as Monitoring, W as CredentialsInspection, Wn as StorageBranch, Wr as GitHubAppConfig, Wt as MonitoringAlertChannelState, X as DeploymentProject, Xn as ToolingExportInput, Xr as ProviderOptions, Xt as MonitoringCheckInput, Y as Deployment, Yn as ToolingDoctorReport, Yr as OrgConfig, Yt as MonitoringCheck, Z as DeploymentProjectSettings, Zn as ToolingExportIssue, Zr as RawProviderEntry, Zt as MonitoringHttpMethod, _ as BoardFieldType, _i as EnvironmentLayer, _n as NotificationsSignedIn, _r as DeriveProfileInput, _t as Environment, a as REQUIRED_CAPABILITIES, ai as RepoValidationConfig, an as NotificationsEveryoneLayout, ar as Wiki, at as DnsRecordRequest, b as BoardRule, bn as PagesConfig, br as StackName, bt as Environments, c as AddedItem, ci as ResolvedHolocronConfig, cn as NotificationsLinksLayout, cr as WorkerScriptState, ct as EnsureDiscussionInput, d as AuthDescription, di as ResolvedTuple, dn as NotificationsOnboardingLayout, dr as deriveCapabilities, dt as EnsureReport, ei as RepoProperties, en as Notifications, er as TrackerUser, et as DeploymentTrigger, f as AuthEvent, fi as SingleEntry, fn as NotificationsPicture, fr as deriveCompliance, ft as EnsureResult, g as BoardField, gi as WorkflowWithConfig, gn as NotificationsSignIn, gr as readWorkspacePackageJsons, gt as EnsuredTunnel, h as AuthUser, hi as TelemetryConfig, hn as NotificationsServerLayout, hr as missingCapabilities, ht as EnsuredResource, i as ProviderApiError, ii as RepoSecretsSync, in as NotificationsDelivery, ir as WebhookDashboardInfo, it as DnsRecord, j as CapabilityKey, jn as SecretScope, jr as resolveConfig, jt as IssuePriority, k as CacheTokenCheck, kn as Ruleset, kr as ConfigError, kt as IssueComment, l as Analytics, li as ResolvedProviderEntry, ln as NotificationsMember, lr as Workers, lt as EnsureRelayInput, m as AuthIdentity, mi as TaskEntryConfig, mn as NotificationsPrsFeed, mr as deriveStack, mt as EnsuredDiscussion, n as ElevationRequiredError, ni as RepoSecrets, nn as NotificationsApplicationLayout, nr as Tunnels, nt as DiscussionPost, o as WebhookVerificationError, oi as RepoVariables, on as NotificationsForumTag, or as WikiProvisionOpts, ot as DnsRecordType, p as AuthEventType, pi as StorybookDeployProject, pn as NotificationsPinnedLayout, pr as deriveProfile, pt as EnsureWebhookResult, q as DeployScriptConfig, qn as TeamPermission, qr as LogConfig, qt as MonitoringAssertionComparison, r as MissingTokenError, ri as RepoSecretsDeploy, rn as NotificationsChannelLayout, rr as Vault, rt as Dns, s as isMulti, si as RepoVariablesSync, sn as NotificationsLayout, sr as WikiProxyConfig, st as DuplicateDiscussion, t as CARDINALITY, ti as RepoProtection, tn as NotificationsAccess, tr as TunnelRoute, tt as DiscussionPatch, u as Auth, ui as ResolvedProvidersConfig, un as NotificationsMonitoringFeed, ur as KNOWN_STACK_DEPS, ut as EnsureRelayResult, v as BoardItem, vn as NotificationsWelcomeLayout, vr as HolocronProfile, vt as EnvironmentEntry, w as BoardSummary, wn as PullRequest, wr as loadConfig, wt as Ideas, x as BoardState, xn as ParseWebhookInput, xr as ConfigFileError, xt as Errors, y as BoardItemInput, yn as OrganizationSecretScope, yr as PackageJsonLike, yt as EnvironmentReviewer, z as Coverage, zn as SourceRulesetDetail, zr as DevServeConfig, zt as Logs } from "./index-DMoGsKv2.mjs";
|
|
2
2
|
import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
3
3
|
import { CheckRow } from "@theholocron/kyber/ui";
|
|
4
4
|
import "@theholocron/env-utils/lookup";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, g as layerEnvironment, h as isEnvironmentLayer, i as loadConfig, l as credentialsEnvironment, m as ENVIRONMENT_LAYERS, n as compose, o as HOLOCRON_AREAS, p as repoSlug, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-
|
|
2
|
+
import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, g as layerEnvironment, h as isEnvironmentLayer, i as loadConfig, l as credentialsEnvironment, m as ENVIRONMENT_LAYERS, n as compose, o as HOLOCRON_AREAS, p as repoSlug, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-CAYb1d4M.mjs";
|
|
3
3
|
import { Entry, findCredentials } from "@napi-rs/keyring";
|
|
4
4
|
import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
5
5
|
import { describeError, style } from "@theholocron/kyber/ui";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as DeploymentTarget, $n as TrackerDoctorReport, $t as NormalizedAuthUser, A as CapabilityImpls, An as SecretAccess, At as IssueOrder, B as CoverageRepoReport, Bn as SourceSecurity, Bt as LogsDataset, C as BoardStatusCategory, Cn as ProviderIdentity, Ct as IdeaRecord, D as BoardView, Dn as RepoSettings, Dt as InspectRelayInput, E as BoardTemplateFile, En as RepoRef, Et as ImportResult, F as CiRun, Fn as Source, Ft as Issues, G as DeployFunctionConfig, Gn as SyncResult, Gt as MonitoringAlertSettings, H as CreateAuthUserInput, Hn as StatusCategory, Ht as MonitoringAlertChannelInput, I as CiRunFilter, In as SourceBranch, It as LabelDef, J as DeployScriptResult, Jn as Tooling, Jt as MonitoringAssertionSource, K as DeployFunctionResult, Kn as TeamEntry, Kt as MonitoringAssertion, L as CiRunStatus, Ln as SourceFile, Lt as LifecycleResult, M as Cardinality, Mn as SecretVisibility, Mt as IssueRecord, N as CardinalityFor, Nn as Secrets, Nt as IssueSearchFilter, O as Cache, On as ResolvedCapability, Ot as Issue, P as Ci, Pn as ServerInspection, Pt as IssueSelector, Q as DeploymentRecord, Qn as ToolingExportResult, Qt as MoveReport, R as ConnectionStringOptions, Rn as SourceRepoInfo, Rt as LifecycleSlot, S as BoardStatus, Sn as Projects, St as ExportInfo, T as BoardTemplate, Tn as RelayState, Tt as ImportOptions, U as Credentials, Un as Storage, Ut as MonitoringAlertChannelResult, V as CoverageTokenCheck, Vn as SourceTeamMember, Vt as Monitoring, W as CredentialsInspection, Wn as StorageBranch, Wt as MonitoringAlertChannelState, X as DeploymentProject, Xn as ToolingExportInput, Xt as MonitoringCheckInput, Y as Deployment, Yn as ToolingDoctorReport, Yt as MonitoringCheck, Z as DeploymentProjectSettings, Zn as ToolingExportIssue, Zt as MonitoringHttpMethod, _ as BoardFieldType, _n as NotificationsSignedIn, _t as Environment, a as REQUIRED_CAPABILITIES, an as NotificationsEveryoneLayout, ar as Wiki, at as DnsRecordRequest, b as BoardRule, bn as PagesConfig, bt as Environments, c as AddedItem, cn as NotificationsLinksLayout, cr as WorkerScriptState, ct as EnsureDiscussionInput, d as AuthDescription, dn as NotificationsOnboardingLayout, dt as EnsureReport, en as Notifications, er as TrackerUser, et as DeploymentTrigger, f as AuthEvent, fn as NotificationsPicture, ft as EnsureResult, g as BoardField, gn as NotificationsSignIn, gt as EnsuredTunnel, h as AuthUser, hn as NotificationsServerLayout, ht as EnsuredResource, i as ProviderApiError, in as NotificationsDelivery, ir as WebhookDashboardInfo, it as DnsRecord, j as CapabilityKey, jn as SecretScope, jt as IssuePriority, k as CacheTokenCheck, kn as Ruleset, kt as IssueComment, l as Analytics, ln as NotificationsMember, lr as Workers, lt as EnsureRelayInput, m as AuthIdentity, mn as NotificationsPrsFeed, mt as EnsuredDiscussion, n as ElevationRequiredError, nn as NotificationsApplicationLayout, nr as Tunnels, nt as DiscussionPost, o as WebhookVerificationError, on as NotificationsForumTag, or as WikiProvisionOpts, ot as DnsRecordType, p as AuthEventType, pn as NotificationsPinnedLayout, pt as EnsureWebhookResult, q as DeployScriptConfig, qn as TeamPermission, qt as MonitoringAssertionComparison, r as MissingTokenError, rn as NotificationsChannelLayout, rr as Vault, rt as Dns, s as isMulti, sn as NotificationsLayout, sr as WikiProxyConfig, st as DuplicateDiscussion, t as CARDINALITY, tn as NotificationsAccess, tr as TunnelRoute, tt as DiscussionPatch, u as Auth, un as NotificationsMonitoringFeed, ut as EnsureRelayResult, v as BoardItem, vn as NotificationsWelcomeLayout, vt as EnvironmentEntry, w as BoardSummary, wn as PullRequest, wt as Ideas, x as BoardState, xn as ParseWebhookInput, xt as Errors, y as BoardItemInput, yn as OrganizationSecretScope, yt as EnvironmentReviewer, z as Coverage, zn as SourceRulesetDetail, zt as Logs } from "../index-
|
|
1
|
+
import { $ as DeploymentTarget, $n as TrackerDoctorReport, $t as NormalizedAuthUser, A as CapabilityImpls, An as SecretAccess, At as IssueOrder, B as CoverageRepoReport, Bn as SourceSecurity, Bt as LogsDataset, C as BoardStatusCategory, Cn as ProviderIdentity, Ct as IdeaRecord, D as BoardView, Dn as RepoSettings, Dt as InspectRelayInput, E as BoardTemplateFile, En as RepoRef, Et as ImportResult, F as CiRun, Fn as Source, Ft as Issues, G as DeployFunctionConfig, Gn as SyncResult, Gt as MonitoringAlertSettings, H as CreateAuthUserInput, Hn as StatusCategory, Ht as MonitoringAlertChannelInput, I as CiRunFilter, In as SourceBranch, It as LabelDef, J as DeployScriptResult, Jn as Tooling, Jt as MonitoringAssertionSource, K as DeployFunctionResult, Kn as TeamEntry, Kt as MonitoringAssertion, L as CiRunStatus, Ln as SourceFile, Lt as LifecycleResult, M as Cardinality, Mn as SecretVisibility, Mt as IssueRecord, N as CardinalityFor, Nn as Secrets, Nt as IssueSearchFilter, O as Cache, On as ResolvedCapability, Ot as Issue, P as Ci, Pn as ServerInspection, Pt as IssueSelector, Q as DeploymentRecord, Qn as ToolingExportResult, Qt as MoveReport, R as ConnectionStringOptions, Rn as SourceRepoInfo, Rt as LifecycleSlot, S as BoardStatus, Sn as Projects, St as ExportInfo, T as BoardTemplate, Tn as RelayState, Tt as ImportOptions, U as Credentials, Un as Storage, Ut as MonitoringAlertChannelResult, V as CoverageTokenCheck, Vn as SourceTeamMember, Vt as Monitoring, W as CredentialsInspection, Wn as StorageBranch, Wt as MonitoringAlertChannelState, X as DeploymentProject, Xn as ToolingExportInput, Xt as MonitoringCheckInput, Y as Deployment, Yn as ToolingDoctorReport, Yt as MonitoringCheck, Z as DeploymentProjectSettings, Zn as ToolingExportIssue, Zt as MonitoringHttpMethod, _ as BoardFieldType, _n as NotificationsSignedIn, _t as Environment, a as REQUIRED_CAPABILITIES, an as NotificationsEveryoneLayout, ar as Wiki, at as DnsRecordRequest, b as BoardRule, bn as PagesConfig, bt as Environments, c as AddedItem, cn as NotificationsLinksLayout, cr as WorkerScriptState, ct as EnsureDiscussionInput, d as AuthDescription, dn as NotificationsOnboardingLayout, dt as EnsureReport, en as Notifications, er as TrackerUser, et as DeploymentTrigger, f as AuthEvent, fn as NotificationsPicture, ft as EnsureResult, g as BoardField, gn as NotificationsSignIn, gt as EnsuredTunnel, h as AuthUser, hn as NotificationsServerLayout, ht as EnsuredResource, i as ProviderApiError, in as NotificationsDelivery, ir as WebhookDashboardInfo, it as DnsRecord, j as CapabilityKey, jn as SecretScope, jt as IssuePriority, k as CacheTokenCheck, kn as Ruleset, kt as IssueComment, l as Analytics, ln as NotificationsMember, lr as Workers, lt as EnsureRelayInput, m as AuthIdentity, mn as NotificationsPrsFeed, mt as EnsuredDiscussion, n as ElevationRequiredError, nn as NotificationsApplicationLayout, nr as Tunnels, nt as DiscussionPost, o as WebhookVerificationError, on as NotificationsForumTag, or as WikiProvisionOpts, ot as DnsRecordType, p as AuthEventType, pn as NotificationsPinnedLayout, pt as EnsureWebhookResult, q as DeployScriptConfig, qn as TeamPermission, qt as MonitoringAssertionComparison, r as MissingTokenError, rn as NotificationsChannelLayout, rr as Vault, rt as Dns, s as isMulti, sn as NotificationsLayout, sr as WikiProxyConfig, st as DuplicateDiscussion, t as CARDINALITY, tn as NotificationsAccess, tr as TunnelRoute, tt as DiscussionPatch, u as Auth, un as NotificationsMonitoringFeed, ut as EnsureRelayResult, v as BoardItem, vn as NotificationsWelcomeLayout, vt as EnvironmentEntry, w as BoardSummary, wn as PullRequest, wt as Ideas, x as BoardState, xn as ParseWebhookInput, xt as Errors, y as BoardItemInput, yn as OrganizationSecretScope, yt as EnvironmentReviewer, z as Coverage, zn as SourceRulesetDetail, zt as Logs } from "../index-DMoGsKv2.mjs";
|
|
2
2
|
export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, Coverage, CoverageRepoReport, CoverageTokenCheck, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dr as ComposedPreset, Er as Capability, Sr as compose } from "./index-
|
|
1
|
+
import { Dr as ComposedPreset, Er as Capability, Sr as compose } from "./index-DMoGsKv2.mjs";
|
|
2
2
|
/** Options for the audit capability. */
|
|
3
3
|
interface AuditOptions {
|
|
4
4
|
/** Enable Knip unused-export analysis (default: false). */
|
package/dist/presets.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.451",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -46,32 +46,32 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@axiomhq/pino": "^2.0.0",
|
|
49
|
-
"@inquirer/prompts": "^8.
|
|
50
|
-
"@inquirer/search": "^4.
|
|
49
|
+
"@inquirer/prompts": "^8.8.0",
|
|
50
|
+
"@inquirer/search": "^4.4.0",
|
|
51
51
|
"@napi-rs/keyring": "^2.1.2",
|
|
52
52
|
"@sentry/node": "^11.12.0",
|
|
53
53
|
"chalk": "^6.0.1",
|
|
54
54
|
"clipboardy": "^5.3.2",
|
|
55
|
-
"dotenv": "^18.0.
|
|
55
|
+
"dotenv": "^18.0.10",
|
|
56
56
|
"ora": "^10.0.0",
|
|
57
57
|
"pino": "^10.4.0",
|
|
58
58
|
"pino-pretty": "^13.2.0",
|
|
59
|
-
"posthog-node": "^5.
|
|
59
|
+
"posthog-node": "^5.71.0",
|
|
60
60
|
"tsx": "4.23.15",
|
|
61
61
|
"yargs": "^18.1.0",
|
|
62
|
-
"@theholocron/
|
|
63
|
-
"@theholocron/
|
|
62
|
+
"@theholocron/dagobah": "5.0.0-alpha.451",
|
|
63
|
+
"@theholocron/datapad": "5.0.0-alpha.451",
|
|
64
64
|
"@theholocron/env-utils": "^1.17.0-alpha.4",
|
|
65
|
-
"@theholocron/git-utils": "^1.17.0-alpha.4",
|
|
66
65
|
"@theholocron/fs-utils": "^1.17.0-alpha.4",
|
|
67
|
-
"@theholocron/
|
|
66
|
+
"@theholocron/git-utils": "^1.17.0-alpha.4",
|
|
67
|
+
"@theholocron/astromech": "5.0.0-alpha.451",
|
|
68
68
|
"@theholocron/http-client": "^1.58.0-alpha.35",
|
|
69
|
-
"@theholocron/dagobah": "5.0.0-alpha.450",
|
|
70
69
|
"@theholocron/json-utils": "^1.17.0-alpha.4",
|
|
70
|
+
"@theholocron/kyber": "5.0.0-alpha.451",
|
|
71
71
|
"@theholocron/misc-utils": "^1.17.0-alpha.4",
|
|
72
|
-
"@theholocron/pkg-utils": "^1.17.0-alpha.4",
|
|
73
72
|
"@theholocron/observability": "^0.7.0-alpha.4",
|
|
74
|
-
"@theholocron/
|
|
73
|
+
"@theholocron/github-client": "^1.58.0-alpha.35",
|
|
74
|
+
"@theholocron/pkg-utils": "^1.17.0-alpha.4"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^26",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"eslint": "^10.14.0",
|
|
82
82
|
"eslint-plugin-n": "^18.5.0",
|
|
83
83
|
"globals": "^17.14.0",
|
|
84
|
-
"tsdown": "^0.23.
|
|
84
|
+
"tsdown": "^0.23.7",
|
|
85
85
|
"typescript": "^5.9.3",
|
|
86
86
|
"vitest": "^5.1.0",
|
|
87
87
|
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.17",
|
|
88
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.17",
|
|
88
89
|
"@theholocron/tsconfig": "^8.9.0-alpha.17",
|
|
89
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.17"
|
|
90
|
-
"@theholocron/eslint-config": "^8.9.0-alpha.17"
|
|
90
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.17"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": ">=22.0.0"
|