@theholocron/cli 5.0.0-alpha.340 → 5.0.0-alpha.342
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 +13 -12
- package/dist/cli.mjs +3014 -3530
- package/dist/cli.mjs.map +1 -1
- package/dist/{compose-DU_NeIR0.mjs → config-system-Bq6510iF.mjs} +141 -102
- package/dist/{index-D9taYHzW.d.mts → config-system-uaeB3g1g.d.mts} +22 -7
- package/dist/index.d.mts +17 -62
- package/dist/index.mjs +41 -240
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -1,65 +1,27 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a as resolveEntry, i as
|
|
3
|
-
import { AuthError, createResolveToken as createResolveToken$1, createRestClient, onRetry } from "@theholocron/http-client";
|
|
4
|
-
import { createKeyring, getCredential } from "@theholocron/kyber/secrets";
|
|
5
|
-
import { createEnvLookup, withEnvPrefix } from "@theholocron/env-utils/lookup";
|
|
2
|
+
import { a as ConfigError, c as resolveEntry, i as loadConfig, l as resolvePluginPackage, n as compose, o as credentialsEnvironment, r as defineConfig, s as resolveConfig, t as ConfigFileError } from "./config-system-Bq6510iF.mjs";
|
|
6
3
|
import { Entry, findCredentials } from "@napi-rs/keyring";
|
|
4
|
+
import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1 } from "@theholocron/kyber/secrets";
|
|
5
|
+
import { describeError, style } from "@theholocron/kyber/ui";
|
|
7
6
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
8
|
-
import {
|
|
7
|
+
import { createRestClient } from "@theholocron/http-client";
|
|
9
8
|
import { lookup } from "node:dns/promises";
|
|
10
|
-
import {
|
|
9
|
+
import { join } from "node:path";
|
|
11
10
|
import { readPackageJson } from "@theholocron/pkg-utils";
|
|
12
|
-
|
|
13
|
-
import { ConfigFileError, ConfigFileError as ConfigFileError$1, loadConfigFile } from "@theholocron/datapad";
|
|
14
|
-
import { readGitRemote } from "@theholocron/git-utils";
|
|
15
|
-
// \0rolldown/runtime.js
|
|
16
|
-
var __defProp = Object.defineProperty;
|
|
17
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
18
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
19
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
20
|
-
var __exportAll = (all, no_symbols) => {
|
|
21
|
-
let target = {};
|
|
22
|
-
for (var name in all) __defProp(target, name, {
|
|
23
|
-
get: all[name],
|
|
24
|
-
enumerable: true
|
|
25
|
-
});
|
|
26
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
var __copyProps = (to, from, except, desc) => {
|
|
30
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
31
|
-
key = keys[i];
|
|
32
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
33
|
-
get: ((k) => from[k]).bind(null, key),
|
|
34
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return to;
|
|
38
|
-
};
|
|
39
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
40
|
-
// src/env/env.ts
|
|
41
|
-
/** Singleton env for simple global lookups throughout the CLI. */
|
|
42
|
-
const env = createEnvLookup();
|
|
43
|
-
withEnvPrefix(env, "HOLOCRON");
|
|
44
|
-
/**
|
|
45
|
-
* Create an injectable env for commands that accept a fake env in tests.
|
|
46
|
-
* Pass `input.env` when available, falls back to `process.env`.
|
|
47
|
-
*/
|
|
48
|
-
function makeEnv(source) {
|
|
49
|
-
return createEnvLookup(source);
|
|
50
|
-
}
|
|
51
|
-
// src/auth/keyring/keyring.ts
|
|
11
|
+
// src/auth.ts
|
|
52
12
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* Every holocron plugin's bootstrap token (the one it needs before it can talk to its vendor's API) can be stored in
|
|
56
|
-
* the OS keyring under a single reverse-DNS service scope. Managed via `holocron auth` subcommands; consulted at
|
|
57
|
-
* position 4 in every plugin's auth precedence chain (after --token / HOLOCRON_<X>_TOKEN / <native>_TOKEN).
|
|
13
|
+
* The CLI's credentials: the OS keyring every plugin's bootstrap token lives in, and the two token resolvers built on
|
|
14
|
+
* it. Both are public, so a plugin's `src/auth.ts` is a one-line call.
|
|
58
15
|
*
|
|
59
16
|
* The keyring itself, with its best-effort failure model and its per-process cache, is `createKeyring` in
|
|
60
|
-
* `@theholocron/kyber/secrets`; this file only names the service
|
|
61
|
-
*
|
|
62
|
-
*
|
|
17
|
+
* `@theholocron/kyber/secrets`; this file only names the service. Managed via `holocron auth` subcommands and consulted
|
|
18
|
+
* last in every plugin's precedence chain (after --token / HOLOCRON_<X>_TOKEN / <native>_TOKEN). See
|
|
19
|
+
* `docs/wiki/specifications/tech-auth-bootstrap.spec.md`.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* The holocron keyring: `get` answers `null` for "not stored" and for "keyring unavailable" alike, so callers fall
|
|
23
|
+
* through to env-var precedence, and remembers the answer for the process (`clearCache` forgets it); `set` and `delete`
|
|
24
|
+
* answer whether they did anything; `list` names the stored providers; `isAvailable` tells an outage from an empty keyring.
|
|
63
25
|
*/
|
|
64
26
|
const keyring = createKeyring({
|
|
65
27
|
service: "com.theholocron.cli",
|
|
@@ -69,46 +31,15 @@ const keyring = createKeyring({
|
|
|
69
31
|
}
|
|
70
32
|
});
|
|
71
33
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
function clearTokenCache() {
|
|
76
|
-
keyring.clearCache();
|
|
77
|
-
}
|
|
78
|
-
/** Store or overwrite a bootstrap token for a provider. Returns true on success, false when the keyring is unsupported or errored. */
|
|
79
|
-
function setToken(provider, token) {
|
|
80
|
-
return keyring.set(provider, token);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Read the bootstrap token for a provider. Returns `null` for both "not stored" and "keyring unavailable", so callers
|
|
84
|
-
* fall through to env-var precedence. The answer is remembered for the rest of the process.
|
|
34
|
+
* Kyber's `createResolveToken` with the keyring, the `HOLOCRON_ORG` variable and the `token` description
|
|
35
|
+
* `holocron doctor tokens` reads filled in, so a plugin stays at a one-liner call site. The chain is the flag, the
|
|
36
|
+
* plugin's variable, the vendor's variable, the `credentials` providers' variables, the keyring.
|
|
85
37
|
*/
|
|
86
|
-
function getToken(provider) {
|
|
87
|
-
return keyring.get(provider);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Whether the OS keyring can be used at all. `getToken` answers `null` for a missing entry and for a keyring that
|
|
91
|
-
* cannot be reached alike; a caller that must tell an outage from an empty keyring asks this first.
|
|
92
|
-
*/
|
|
93
|
-
function isKeyringAvailable() {
|
|
94
|
-
return keyring.isAvailable();
|
|
95
|
-
}
|
|
96
|
-
/** Delete a stored token. Returns true when a token was removed, false when there was nothing to delete or the keyring is unavailable. */
|
|
97
|
-
function deleteToken(provider) {
|
|
98
|
-
return keyring.delete(provider);
|
|
99
|
-
}
|
|
100
|
-
/** List the provider slugs that have a stored token under the holocron service scope. */
|
|
101
|
-
function listStoredProviders() {
|
|
102
|
-
return keyring.list();
|
|
103
|
-
}
|
|
104
|
-
// src/auth/auth-resolver/auth-resolver.ts
|
|
105
|
-
/** Wraps `createResolveToken` from `@theholocron/http` and injects the
|
|
106
|
-
* system keyring so plugins stay at a one-liner call site. */
|
|
107
38
|
function createResolveToken(config) {
|
|
108
|
-
const storedOrKeyring = (provider) => getCredential(config.envName, config.vendorEnvName) ?? getToken(provider);
|
|
109
39
|
return Object.assign(createResolveToken$1({
|
|
110
40
|
...config,
|
|
111
|
-
|
|
41
|
+
keyring: keyring.get,
|
|
42
|
+
orgEnvName: "HOLOCRON_ORG"
|
|
112
43
|
}), { token: {
|
|
113
44
|
envName: config.envName,
|
|
114
45
|
vendorEnvName: config.vendorEnvName,
|
|
@@ -116,47 +47,21 @@ function createResolveToken(config) {
|
|
|
116
47
|
} });
|
|
117
48
|
}
|
|
118
49
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* No broad-token fallback — if the feature-specific token is absent the
|
|
123
|
-
* operation fails with a message naming the exact env var to set.
|
|
50
|
+
* Kyber's `createFeatureResolver` for a strict, single-feature token: the flag, the feature's variable, the
|
|
51
|
+
* `credentials` providers' variable of that name, the keyring. No broad-token fallback; if the feature's token is absent
|
|
52
|
+
* the operation fails with a message naming the exact variable to set and `holocron auth set`.
|
|
124
53
|
*/
|
|
125
54
|
function createFeatureResolver(config) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
return Object.assign(resolveFeatureToken, { token: {
|
|
55
|
+
return Object.assign(createFeatureResolver$1({
|
|
56
|
+
...config,
|
|
57
|
+
vendor: config.vendor ?? "GitHub",
|
|
58
|
+
setCommand: (key) => `holocron auth set ${key} <token>`,
|
|
59
|
+
keyring: keyring.get
|
|
60
|
+
}), { token: {
|
|
134
61
|
envName: config.envName,
|
|
135
62
|
keyringKey: config.keyringKey
|
|
136
63
|
} });
|
|
137
64
|
}
|
|
138
|
-
// src/ui/progress/progress.ts
|
|
139
|
-
/** Says on the spinner when a request is being sent again, so a slow step is not mistaken for a stuck one. */
|
|
140
|
-
const retryNotice = (label, setText) => onRetry((e) => {
|
|
141
|
-
setText(`${label} (retrying ${e.vendor ?? "the request"}, attempt ${e.attempt} of ${e.of})`);
|
|
142
|
-
});
|
|
143
|
-
/** {@link createSpinnerProgress} with the retry notice hooked in. */
|
|
144
|
-
function createProgress$1(print, enabled = progressEnabled) {
|
|
145
|
-
return createProgress(print, enabled, retryNotice);
|
|
146
|
-
}
|
|
147
|
-
/** `fn` under a cleared-when-done spinner named `label`, on a terminal only, with the retry notice hooked in. */
|
|
148
|
-
function withProgress$1(label, fn) {
|
|
149
|
-
return withProgress(label, fn, retryNotice);
|
|
150
|
-
}
|
|
151
|
-
// src/ui/index.ts
|
|
152
|
-
var ui_exports = /* @__PURE__ */ __exportAll({
|
|
153
|
-
createProgress: () => createProgress$1,
|
|
154
|
-
withProgress: () => withProgress$1
|
|
155
|
-
});
|
|
156
|
-
import * as import__theholocron_kyber_prompts from "@theholocron/kyber/prompts";
|
|
157
|
-
__reExport(ui_exports, import__theholocron_kyber_prompts);
|
|
158
|
-
import * as import__theholocron_kyber_ui from "@theholocron/kyber/ui";
|
|
159
|
-
__reExport(ui_exports, import__theholocron_kyber_ui);
|
|
160
65
|
// src/plugin/connection-probe/connection-probe.ts
|
|
161
66
|
const TLS_CODES = /* @__PURE__ */ new Set([
|
|
162
67
|
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
@@ -294,37 +199,6 @@ function connectionProbe(input) {
|
|
|
294
199
|
}
|
|
295
200
|
};
|
|
296
201
|
}
|
|
297
|
-
// src/ui/provider-error/provider-error.ts
|
|
298
|
-
/** Vendor response bodies land in the terminal — cap their length so one
|
|
299
|
-
* oversized error can't flood the report, and strip control characters
|
|
300
|
-
* (newlines and the C1 range, whose 0x9b is an 8-bit CSI) so a crafted body
|
|
301
|
-
* can't forge extra report lines or inject terminal escape sequences. */
|
|
302
|
-
const MAX_DETAIL_LENGTH = 200;
|
|
303
|
-
/** Control characters (newlines and the C1 range included) turned into spaces, whitespace collapsed, no length cap. */
|
|
304
|
-
function stripControl(text) {
|
|
305
|
-
return text.replace(/[\x00-\x1f\x7f-\x9f]/g, " ").replace(/\s+/g, " ").trim();
|
|
306
|
-
}
|
|
307
|
-
function sanitizeDetail(text) {
|
|
308
|
-
const stripped = stripControl(text);
|
|
309
|
-
return stripped.length > MAX_DETAIL_LENGTH ? `${stripped.slice(0, MAX_DETAIL_LENGTH)}…` : stripped;
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* `errorMessage(err)` alone is just `"<Vendor> <METHOD> <path> → <status>"` —
|
|
313
|
-
* the actual reason (what the vendor's response body said) lives in
|
|
314
|
-
* `ProviderApiError.details`, a raw response-body string (not parsed JSON —
|
|
315
|
-
* see AGENTS.md), and was being silently dropped. Appending it (sanitized
|
|
316
|
-
* and length-capped — see `sanitizeDetail`) turns e.g. a bare "→ 403" into
|
|
317
|
-
* something that actually explains itself, without the vendor text being
|
|
318
|
-
* able to overwhelm or manipulate the terminal.
|
|
319
|
-
*/
|
|
320
|
-
function describeProviderError(err) {
|
|
321
|
-
const base = stripControl(errorMessage(err));
|
|
322
|
-
if (err instanceof ProviderApiError && err.details) {
|
|
323
|
-
const detail = sanitizeDetail(String(err.details));
|
|
324
|
-
if (detail) return `${base}: ${detail}`;
|
|
325
|
-
}
|
|
326
|
-
return base;
|
|
327
|
-
}
|
|
328
202
|
// src/commands/notifications-sync-roles/links.ts
|
|
329
203
|
const EMPTY_LINKS = {
|
|
330
204
|
version: 1,
|
|
@@ -456,7 +330,7 @@ async function syncRoles(input) {
|
|
|
456
330
|
skipped: 0
|
|
457
331
|
};
|
|
458
332
|
for (const role of input.roles) {
|
|
459
|
-
print(`\n${
|
|
333
|
+
print(`\n${style.header(`${role.name} ← team ${role.team}`)}`);
|
|
460
334
|
const step = `role ${role.name}`;
|
|
461
335
|
let plan;
|
|
462
336
|
try {
|
|
@@ -469,8 +343,8 @@ async function syncRoles(input) {
|
|
|
469
343
|
links
|
|
470
344
|
});
|
|
471
345
|
} catch (err) {
|
|
472
|
-
const message =
|
|
473
|
-
print(` ${
|
|
346
|
+
const message = describeError(err);
|
|
347
|
+
print(` ${style.fail(`${step}: ${message}`)}`);
|
|
474
348
|
result.failures.push({
|
|
475
349
|
step,
|
|
476
350
|
message
|
|
@@ -486,11 +360,11 @@ async function syncRoles(input) {
|
|
|
486
360
|
};
|
|
487
361
|
result.roles.push(outcome);
|
|
488
362
|
result.skipped += plan.inSync;
|
|
489
|
-
if (plan.inSync > 0) print(` ${
|
|
363
|
+
if (plan.inSync > 0) print(` ${style.skip(`${plan.inSync} already have it`)}`);
|
|
490
364
|
const act = async (verb, who) => {
|
|
491
365
|
const label = `${verb === "add" ? "gave" : "took"} ${role.name} ${verb === "add" ? "to" : "from"} ${who.login} (${who.member})`;
|
|
492
366
|
if (dryRun || verb === "remove" && keep) {
|
|
493
|
-
print(` ${
|
|
367
|
+
print(` ${style.skip(`would ${verb === "add" ? "give" : "take"} ${role.name} ${verb === "add" ? "to" : "from"} ${who.login} (${who.member})${keep && verb === "remove" ? " (kept: --keep)" : ""}`)}`);
|
|
494
368
|
result.skipped++;
|
|
495
369
|
return;
|
|
496
370
|
}
|
|
@@ -498,11 +372,11 @@ async function syncRoles(input) {
|
|
|
498
372
|
if (verb === "add") await notifications.addRoleMember(role.name, who.member);
|
|
499
373
|
else await notifications.removeRoleMember(role.name, who.member);
|
|
500
374
|
(verb === "add" ? outcome.added : outcome.removed).push(who.member);
|
|
501
|
-
print(` ${
|
|
375
|
+
print(` ${style.success(label)}`);
|
|
502
376
|
result.ok++;
|
|
503
377
|
} catch (err) {
|
|
504
|
-
const message =
|
|
505
|
-
print(` ${
|
|
378
|
+
const message = describeError(err);
|
|
379
|
+
print(` ${style.fail(`${step}: ${verb} ${who.login}: ${message}`)}`);
|
|
506
380
|
result.failures.push({
|
|
507
381
|
step: `${step} ${verb} ${who.login}`,
|
|
508
382
|
message
|
|
@@ -512,28 +386,17 @@ async function syncRoles(input) {
|
|
|
512
386
|
for (const who of plan.add) await act("add", who);
|
|
513
387
|
for (const who of plan.remove) await act("remove", who);
|
|
514
388
|
for (const person of plan.unlinked) {
|
|
515
|
-
print(` ${
|
|
389
|
+
print(` ${style.skip(`${person.login} is on the team but has not linked their account`)}`);
|
|
516
390
|
result.skipped++;
|
|
517
391
|
}
|
|
518
392
|
for (const holder of plan.unknownHolders) {
|
|
519
|
-
print(` ${
|
|
393
|
+
print(` ${style.skip(`${holder.name ?? holder.member} holds ${role.name} but is not linked to anyone: left alone`)}`);
|
|
520
394
|
result.skipped++;
|
|
521
395
|
}
|
|
522
396
|
}
|
|
523
397
|
return result;
|
|
524
398
|
}
|
|
525
399
|
// src/commands/notifications-sync-roles/notifications-sync-roles.ts
|
|
526
|
-
/**
|
|
527
|
-
* `holocron notifications sync-roles` — make who holds a server role match a team.
|
|
528
|
-
*
|
|
529
|
-
* A role that declares `team` in the layout is kept equal to that team of the `source` provider (for GitHub,
|
|
530
|
-
* a team in the org). A team member is matched to a server member through the links file, so only people who
|
|
531
|
-
* have linked their account can be given the role; the rest are listed. The role is taken from a linked
|
|
532
|
-
* person who has left the team, but never from someone nobody has linked: an empty or missing links file
|
|
533
|
-
* cannot strip the role from everyone.
|
|
534
|
-
*
|
|
535
|
-
* Idempotent and safe to re-run. `--dry-run` previews it.
|
|
536
|
-
*/
|
|
537
400
|
/** What a source provider needs to be able to do to feed a role sync, or the reason it cannot. */
|
|
538
401
|
function sourceProblem(source) {
|
|
539
402
|
if (!source) return "no `source` provider is available to read the team and the links file";
|
|
@@ -658,66 +521,4 @@ async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
|
|
|
658
521
|
}
|
|
659
522
|
return results;
|
|
660
523
|
}
|
|
661
|
-
|
|
662
|
-
/** Returns the config unchanged; it exists to type and autocomplete a `holocron.config.ts`. */
|
|
663
|
-
function defineConfig(config) {
|
|
664
|
-
return config;
|
|
665
|
-
}
|
|
666
|
-
// src/config/load-config/load-config.ts
|
|
667
|
-
/**
|
|
668
|
-
* `holocron.config.{ts,js,mjs,cjs,json}` loader.
|
|
669
|
-
*
|
|
670
|
-
* File discovery + module loading (typed configs via `tsx`, no build
|
|
671
|
-
* step) is delegated to `@theholocron/datapad`. This module keeps the
|
|
672
|
-
* holocron-specific parts: filling `name` / `repo.name` defaults and
|
|
673
|
-
* running the config through `resolveConfig`.
|
|
674
|
-
*
|
|
675
|
-
* Probe order is TS-first (`.ts` → `.js` → `.mjs` → `.cjs` → `.json`) —
|
|
676
|
-
* see ADR-0010 / issue #75 / #81.
|
|
677
|
-
*/
|
|
678
|
-
/**
|
|
679
|
-
* Read + parse + resolve `holocron.config.*` starting from the given
|
|
680
|
-
* directory, walking up through ancestors to the nearest `.git` boundary
|
|
681
|
-
* when `cwd` itself has no match — every command is usable from any
|
|
682
|
-
* subdirectory of a repo, not only its exact root (see
|
|
683
|
-
* `@theholocron/datapad`'s own doc comment for the stop conditions).
|
|
684
|
-
* Throws {@link ConfigFileError} when nothing is found or a file cannot
|
|
685
|
-
* be loaded, or `ConfigError` when the config fails schema checks.
|
|
686
|
-
*/
|
|
687
|
-
async function loadConfig(cwd) {
|
|
688
|
-
const found = await loadConfigFile({
|
|
689
|
-
cwd,
|
|
690
|
-
name: "holocron",
|
|
691
|
-
walkUp: true
|
|
692
|
-
});
|
|
693
|
-
if (!found) throw new ConfigFileError$1(`no holocron.config.{ts,js,mjs,cjs,json} found in ${cwd}. Create one — see the README for the schema.`);
|
|
694
|
-
const withDefaults = await deriveDefaults(found);
|
|
695
|
-
return {
|
|
696
|
-
resolved: resolveConfig(withDefaults),
|
|
697
|
-
filepath: found.filepath
|
|
698
|
-
};
|
|
699
|
-
}
|
|
700
|
-
async function deriveDefaults(found) {
|
|
701
|
-
const configDir = dirname(found.filepath);
|
|
702
|
-
const result = { ...found.config };
|
|
703
|
-
if (!result.name) result.name = await readPackageJsonName(configDir) ?? basename(configDir);
|
|
704
|
-
if (result.repo && !result.repo.name) {
|
|
705
|
-
const remote = await readGitRemote(configDir);
|
|
706
|
-
if (remote?.host === "github.com") result.repo = {
|
|
707
|
-
...result.repo,
|
|
708
|
-
name: remote.slug
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
const manifest = await loadTasksConfig(configDir, { holocron: found });
|
|
712
|
-
if (manifest.tasks) result.tasks = manifest.tasks;
|
|
713
|
-
if (manifest.syncScripts !== void 0) result.syncScripts = manifest.syncScripts;
|
|
714
|
-
if (manifest.holocronScript !== void 0) result.holocronScript = manifest.holocronScript;
|
|
715
|
-
if (manifest.hooks !== void 0) result.hooks = manifest.hooks;
|
|
716
|
-
if (manifest.extraRequiredChecks) result.extraRequiredChecks = [...result.extraRequiredChecks ?? [], ...manifest.extraRequiredChecks];
|
|
717
|
-
return result;
|
|
718
|
-
}
|
|
719
|
-
async function readPackageJsonName(dir) {
|
|
720
|
-
const name = (await readPackageJson(dir))?.name;
|
|
721
|
-
return name === void 0 ? void 0 : name.replace(/^@[^/]+\//, "");
|
|
722
|
-
}
|
|
723
|
-
export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, clearTokenCache, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, describeNetworkError, getToken, isKeyringAvailable, isMulti, listStoredProviders, loadConfig, missingCapabilities, readLinks, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, roleTeamProblem, setToken, sourceProblem, syncRoles };
|
|
524
|
+
export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, describeNetworkError, isMulti, keyring, loadConfig, missingCapabilities, readLinks, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, roleTeamProblem, sourceProblem, syncRoles };
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-uaeB3g1g.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.342",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"posthog-node": "^5.61.1",
|
|
55
55
|
"tsx": "4.23.15",
|
|
56
56
|
"yargs": "^18.1.0",
|
|
57
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
58
|
-
"@theholocron/dagobah": "5.0.0-alpha.
|
|
59
|
-
"@theholocron/datapad": "5.0.0-alpha.
|
|
57
|
+
"@theholocron/astromech": "5.0.0-alpha.342",
|
|
58
|
+
"@theholocron/dagobah": "5.0.0-alpha.342",
|
|
59
|
+
"@theholocron/datapad": "5.0.0-alpha.342",
|
|
60
60
|
"@theholocron/env-utils": "^1.17.0-alpha.1",
|
|
61
|
-
"@theholocron/git-utils": "^1.17.0-alpha.1",
|
|
62
61
|
"@theholocron/fs-utils": "^1.17.0-alpha.1",
|
|
63
|
-
"@theholocron/github-client": "^1.58.0-alpha.
|
|
64
|
-
"@theholocron/
|
|
62
|
+
"@theholocron/github-client": "^1.58.0-alpha.9",
|
|
63
|
+
"@theholocron/git-utils": "^1.17.0-alpha.1",
|
|
65
64
|
"@theholocron/json-utils": "^1.17.0-alpha.1",
|
|
65
|
+
"@theholocron/kyber": "5.0.0-alpha.342",
|
|
66
66
|
"@theholocron/misc-utils": "^1.17.0-alpha.1",
|
|
67
67
|
"@theholocron/observability": "^0.7.0-alpha.1",
|
|
68
68
|
"@theholocron/pkg-utils": "^1.17.0-alpha.1",
|
|
69
|
-
"@theholocron/
|
|
69
|
+
"@theholocron/http-client": "^1.58.0-alpha.9"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/node": "^26",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
81
|
"vitest": "^5.0.5",
|
|
82
82
|
"@theholocron/eslint-config": "^8.9.0-alpha.8",
|
|
83
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.8",
|
|
83
84
|
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8",
|
|
84
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.8"
|
|
85
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.8"
|
|
85
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.8"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=22.0.0"
|