@theholocron/cli 5.0.0-alpha.340 → 5.0.0-alpha.341
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 +7 -7
- package/dist/cli.mjs +3009 -3321
- package/dist/cli.mjs.map +1 -1
- package/dist/{compose-DU_NeIR0.mjs → compose-BucaYv2k.mjs} +117 -100
- package/dist/{index-D9taYHzW.d.mts → index-BfArEnkX.d.mts} +1 -5
- package/dist/index.d.mts +18 -43
- package/dist/index.mjs +49 -219
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -1,65 +1,28 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a 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 resolveConfig, i as credentialsEnvironment, n as system, o as resolveEntry, r as ConfigError, s as resolvePluginPackage, t as compose } from "./compose-BucaYv2k.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 { ConfigFileError } from "@theholocron/kyber/config";
|
|
10
|
+
import { join } from "node:path";
|
|
11
11
|
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
|
|
12
|
+
// src/auth.ts
|
|
52
13
|
/**
|
|
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).
|
|
14
|
+
* The CLI's credentials: the OS keyring every plugin's bootstrap token lives in, and the two token resolvers built on
|
|
15
|
+
* it. Both are public, so a plugin's `src/auth.ts` is a one-line call.
|
|
58
16
|
*
|
|
59
17
|
* 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
|
-
*
|
|
18
|
+
* `@theholocron/kyber/secrets`; this file only names the service. Managed via `holocron auth` subcommands and consulted
|
|
19
|
+
* last in every plugin's precedence chain (after --token / HOLOCRON_<X>_TOKEN / <native>_TOKEN). See
|
|
20
|
+
* `docs/wiki/specifications/tech-auth-bootstrap.spec.md`.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* The holocron keyring: `get` answers `null` for "not stored" and for "keyring unavailable" alike, so callers fall
|
|
24
|
+
* through to env-var precedence, and remembers the answer for the process (`clearCache` forgets it); `set` and `delete`
|
|
25
|
+
* answer whether they did anything; `list` names the stored providers; `isAvailable` tells an outage from an empty keyring.
|
|
63
26
|
*/
|
|
64
27
|
const keyring = createKeyring({
|
|
65
28
|
service: "com.theholocron.cli",
|
|
@@ -69,46 +32,15 @@ const keyring = createKeyring({
|
|
|
69
32
|
}
|
|
70
33
|
});
|
|
71
34
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
35
|
+
* Kyber's `createResolveToken` with the keyring, the `HOLOCRON_ORG` variable and the `token` description
|
|
36
|
+
* `holocron doctor tokens` reads filled in, so a plugin stays at a one-liner call site. The chain is the flag, the
|
|
37
|
+
* plugin's variable, the vendor's variable, the `credentials` providers' variables, the keyring.
|
|
74
38
|
*/
|
|
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.
|
|
85
|
-
*/
|
|
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
39
|
function createResolveToken(config) {
|
|
108
|
-
const storedOrKeyring = (provider) => getCredential(config.envName, config.vendorEnvName) ?? getToken(provider);
|
|
109
40
|
return Object.assign(createResolveToken$1({
|
|
110
41
|
...config,
|
|
111
|
-
|
|
42
|
+
keyring: keyring.get,
|
|
43
|
+
orgEnvName: "HOLOCRON_ORG"
|
|
112
44
|
}), { token: {
|
|
113
45
|
envName: config.envName,
|
|
114
46
|
vendorEnvName: config.vendorEnvName,
|
|
@@ -116,47 +48,21 @@ function createResolveToken(config) {
|
|
|
116
48
|
} });
|
|
117
49
|
}
|
|
118
50
|
/**
|
|
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.
|
|
51
|
+
* Kyber's `createFeatureResolver` for a strict, single-feature token: the flag, the feature's variable, the
|
|
52
|
+
* `credentials` providers' variable of that name, the keyring. No broad-token fallback; if the feature's token is absent
|
|
53
|
+
* the operation fails with a message naming the exact variable to set and `holocron auth set`.
|
|
124
54
|
*/
|
|
125
55
|
function createFeatureResolver(config) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
return Object.assign(resolveFeatureToken, { token: {
|
|
56
|
+
return Object.assign(createFeatureResolver$1({
|
|
57
|
+
...config,
|
|
58
|
+
vendor: config.vendor ?? "GitHub",
|
|
59
|
+
setCommand: (key) => `holocron auth set ${key} <token>`,
|
|
60
|
+
keyring: keyring.get
|
|
61
|
+
}), { token: {
|
|
134
62
|
envName: config.envName,
|
|
135
63
|
keyringKey: config.keyringKey
|
|
136
64
|
} });
|
|
137
65
|
}
|
|
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
66
|
// src/plugin/connection-probe/connection-probe.ts
|
|
161
67
|
const TLS_CODES = /* @__PURE__ */ new Set([
|
|
162
68
|
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
@@ -294,37 +200,6 @@ function connectionProbe(input) {
|
|
|
294
200
|
}
|
|
295
201
|
};
|
|
296
202
|
}
|
|
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
203
|
// src/commands/notifications-sync-roles/links.ts
|
|
329
204
|
const EMPTY_LINKS = {
|
|
330
205
|
version: 1,
|
|
@@ -456,7 +331,7 @@ async function syncRoles(input) {
|
|
|
456
331
|
skipped: 0
|
|
457
332
|
};
|
|
458
333
|
for (const role of input.roles) {
|
|
459
|
-
print(`\n${
|
|
334
|
+
print(`\n${style.header(`${role.name} ← team ${role.team}`)}`);
|
|
460
335
|
const step = `role ${role.name}`;
|
|
461
336
|
let plan;
|
|
462
337
|
try {
|
|
@@ -469,8 +344,8 @@ async function syncRoles(input) {
|
|
|
469
344
|
links
|
|
470
345
|
});
|
|
471
346
|
} catch (err) {
|
|
472
|
-
const message =
|
|
473
|
-
print(` ${
|
|
347
|
+
const message = describeError(err);
|
|
348
|
+
print(` ${style.fail(`${step}: ${message}`)}`);
|
|
474
349
|
result.failures.push({
|
|
475
350
|
step,
|
|
476
351
|
message
|
|
@@ -486,11 +361,11 @@ async function syncRoles(input) {
|
|
|
486
361
|
};
|
|
487
362
|
result.roles.push(outcome);
|
|
488
363
|
result.skipped += plan.inSync;
|
|
489
|
-
if (plan.inSync > 0) print(` ${
|
|
364
|
+
if (plan.inSync > 0) print(` ${style.skip(`${plan.inSync} already have it`)}`);
|
|
490
365
|
const act = async (verb, who) => {
|
|
491
366
|
const label = `${verb === "add" ? "gave" : "took"} ${role.name} ${verb === "add" ? "to" : "from"} ${who.login} (${who.member})`;
|
|
492
367
|
if (dryRun || verb === "remove" && keep) {
|
|
493
|
-
print(` ${
|
|
368
|
+
print(` ${style.skip(`would ${verb === "add" ? "give" : "take"} ${role.name} ${verb === "add" ? "to" : "from"} ${who.login} (${who.member})${keep && verb === "remove" ? " (kept: --keep)" : ""}`)}`);
|
|
494
369
|
result.skipped++;
|
|
495
370
|
return;
|
|
496
371
|
}
|
|
@@ -498,11 +373,11 @@ async function syncRoles(input) {
|
|
|
498
373
|
if (verb === "add") await notifications.addRoleMember(role.name, who.member);
|
|
499
374
|
else await notifications.removeRoleMember(role.name, who.member);
|
|
500
375
|
(verb === "add" ? outcome.added : outcome.removed).push(who.member);
|
|
501
|
-
print(` ${
|
|
376
|
+
print(` ${style.success(label)}`);
|
|
502
377
|
result.ok++;
|
|
503
378
|
} catch (err) {
|
|
504
|
-
const message =
|
|
505
|
-
print(` ${
|
|
379
|
+
const message = describeError(err);
|
|
380
|
+
print(` ${style.fail(`${step}: ${verb} ${who.login}: ${message}`)}`);
|
|
506
381
|
result.failures.push({
|
|
507
382
|
step: `${step} ${verb} ${who.login}`,
|
|
508
383
|
message
|
|
@@ -512,28 +387,17 @@ async function syncRoles(input) {
|
|
|
512
387
|
for (const who of plan.add) await act("add", who);
|
|
513
388
|
for (const who of plan.remove) await act("remove", who);
|
|
514
389
|
for (const person of plan.unlinked) {
|
|
515
|
-
print(` ${
|
|
390
|
+
print(` ${style.skip(`${person.login} is on the team but has not linked their account`)}`);
|
|
516
391
|
result.skipped++;
|
|
517
392
|
}
|
|
518
393
|
for (const holder of plan.unknownHolders) {
|
|
519
|
-
print(` ${
|
|
394
|
+
print(` ${style.skip(`${holder.name ?? holder.member} holds ${role.name} but is not linked to anyone: left alone`)}`);
|
|
520
395
|
result.skipped++;
|
|
521
396
|
}
|
|
522
397
|
}
|
|
523
398
|
return result;
|
|
524
399
|
}
|
|
525
400
|
// 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
401
|
/** What a source provider needs to be able to do to feed a role sync, or the reason it cannot. */
|
|
538
402
|
function sourceProblem(source) {
|
|
539
403
|
if (!source) return "no `source` provider is available to read the team and the links file";
|
|
@@ -661,16 +525,15 @@ async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
|
|
|
661
525
|
// src/config/define-config/define-config.ts
|
|
662
526
|
/** Returns the config unchanged; it exists to type and autocomplete a `holocron.config.ts`. */
|
|
663
527
|
function defineConfig(config) {
|
|
664
|
-
return config;
|
|
528
|
+
return system.defineConfig(config);
|
|
665
529
|
}
|
|
666
530
|
// src/config/load-config/load-config.ts
|
|
667
531
|
/**
|
|
668
532
|
* `holocron.config.{ts,js,mjs,cjs,json}` loader.
|
|
669
533
|
*
|
|
670
|
-
* File discovery
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
* running the config through `resolveConfig`.
|
|
534
|
+
* File discovery, the walk up to `.git`, module loading (typed configs via `tsx`) and the derive-then-resolve flow come
|
|
535
|
+
* from `@theholocron/kyber/config`. The holocron-specific parts are `deriveDefaults` (name, `repo.name`, the task
|
|
536
|
+
* manifest) and `resolveConfig`; see `../system`.
|
|
674
537
|
*
|
|
675
538
|
* Probe order is TS-first (`.ts` → `.js` → `.mjs` → `.cjs` → `.json`) —
|
|
676
539
|
* see ADR-0010 / issue #75 / #81.
|
|
@@ -681,43 +544,10 @@ function defineConfig(config) {
|
|
|
681
544
|
* when `cwd` itself has no match — every command is usable from any
|
|
682
545
|
* subdirectory of a repo, not only its exact root (see
|
|
683
546
|
* `@theholocron/datapad`'s own doc comment for the stop conditions).
|
|
684
|
-
* Throws
|
|
547
|
+
* Throws `ConfigFileError` when nothing is found or a file cannot
|
|
685
548
|
* be loaded, or `ConfigError` when the config fails schema checks.
|
|
686
549
|
*/
|
|
687
|
-
|
|
688
|
-
|
|
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(/^@[^/]+\//, "");
|
|
550
|
+
function loadConfig(cwd) {
|
|
551
|
+
return system.loadConfig(cwd);
|
|
722
552
|
}
|
|
723
|
-
export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError,
|
|
553
|
+
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 Capability, r as ComposedPreset, t as compose } from "./index-
|
|
1
|
+
import { n as Capability, r as ComposedPreset, t as compose } from "./index-BfArEnkX.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.341",
|
|
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.341",
|
|
58
|
+
"@theholocron/dagobah": "5.0.0-alpha.341",
|
|
59
|
+
"@theholocron/datapad": "5.0.0-alpha.341",
|
|
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/http-client": "^1.58.0-alpha.
|
|
65
|
-
"@theholocron/
|
|
62
|
+
"@theholocron/github-client": "^1.58.0-alpha.9",
|
|
63
|
+
"@theholocron/http-client": "^1.58.0-alpha.9",
|
|
64
|
+
"@theholocron/kyber": "5.0.0-alpha.341",
|
|
65
|
+
"@theholocron/git-utils": "^1.17.0-alpha.1",
|
|
66
66
|
"@theholocron/misc-utils": "^1.17.0-alpha.1",
|
|
67
67
|
"@theholocron/observability": "^0.7.0-alpha.1",
|
|
68
|
-
"@theholocron/
|
|
69
|
-
"@theholocron/
|
|
68
|
+
"@theholocron/json-utils": "^1.17.0-alpha.1",
|
|
69
|
+
"@theholocron/pkg-utils": "^1.17.0-alpha.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/node": "^26",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"tsdown": "^0.23.4",
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
81
|
"vitest": "^5.0.5",
|
|
82
|
-
"@theholocron/eslint-config": "^8.9.0-alpha.8",
|
|
83
82
|
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8",
|
|
83
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.8",
|
|
84
84
|
"@theholocron/tsconfig": "^8.9.0-alpha.8",
|
|
85
85
|
"@theholocron/vitest-config": "^8.9.0-alpha.8"
|
|
86
86
|
},
|