@theholocron/cli 5.0.0-alpha.27 → 5.0.0-alpha.271

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/index.mjs CHANGED
@@ -1,14 +1,18 @@
1
- import { CARDINALITY, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
1
+ import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
2
+ import { a as resolvePluginPackage, i as resolveEntry, n as ConfigError, r as resolveConfig, t as compose } from "./compose-CDyegVKe.mjs";
2
3
  import { AuthError, createResolveToken as createResolveToken$1, createRestClient } from "@theholocron/http-client";
3
- import { createEnvLookup } from "@theholocron/env-utils";
4
+ import { createEnvLookup, withEnvPrefix } from "@theholocron/env-utils";
4
5
  import { Entry, findCredentials } from "@napi-rs/keyring";
5
- import { readFile } from "node:fs/promises";
6
6
  import { basename, dirname, join } from "node:path";
7
- import { execFile } from "node:child_process";
8
- import { promisify } from "node:util";
7
+ import { readPackageJson } from "@theholocron/pkg-utils";
9
8
  import { loadTasksConfig } from "@theholocron/astromech/config";
10
9
  import { ConfigFileError, ConfigFileError as ConfigFileError$1, loadConfigFile } from "@theholocron/datapad";
11
- createEnvLookup();
10
+ import { readGitRemote } from "@theholocron/git-utils";
11
+ import { lookup } from "node:dns/promises";
12
+ // src/env/env.ts
13
+ /** Singleton env for simple global lookups throughout the CLI. */
14
+ const env = createEnvLookup();
15
+ withEnvPrefix(env, "HOLOCRON");
12
16
  /**
13
17
  * Create an injectable env for commands that accept a fake env in tests.
14
18
  * Pass `input.env` when available, falls back to `process.env`.
@@ -16,8 +20,7 @@ createEnvLookup();
16
20
  function makeEnv(source) {
17
21
  return createEnvLookup(source);
18
22
  }
19
- //#endregion
20
- //#region src/auth/keyring.ts
23
+ // src/auth/keyring/keyring.ts
21
24
  /**
22
25
  * Keyring-backed bootstrap credential store.
23
26
  *
@@ -86,15 +89,18 @@ function listStoredProviders() {
86
89
  return [];
87
90
  }
88
91
  }
89
- //#endregion
90
- //#region src/auth/auth-resolver.ts
92
+ // src/auth/auth-resolver/auth-resolver.ts
91
93
  /** Wraps `createResolveToken` from `@theholocron/http` and injects the
92
94
  * system keyring so plugins stay at a one-liner call site. */
93
95
  function createResolveToken(config) {
94
- return createResolveToken$1({
96
+ return Object.assign(createResolveToken$1({
95
97
  ...config,
96
98
  getKeyringToken: getToken
97
- });
99
+ }), { token: {
100
+ envName: config.envName,
101
+ vendorEnvName: config.vendorEnvName,
102
+ keyringKey: config.keyringService
103
+ } });
98
104
  }
99
105
  /**
100
106
  * Build a strict, single-feature token resolver.
@@ -104,16 +110,19 @@ function createResolveToken(config) {
104
110
  * operation fails with a message naming the exact env var to set.
105
111
  */
106
112
  function createFeatureResolver(config) {
107
- return function resolveFeatureToken(input = {}) {
113
+ const resolveFeatureToken = (input = {}) => {
108
114
  const env = makeEnv(input.env);
109
115
  const keyring = input.keyring ?? getToken;
110
116
  const token = input.cliToken || env.get(config.envName) || keyring(config.keyringKey);
111
- if (!token) throw new AuthError(`no GitHub token found for this operation. Pass --token <PAT>, set ${config.envName}, or run: holocron auth set ${config.keyringKey} <PAT>`);
117
+ if (!token) throw new AuthError(`no ${config.vendor ?? "GitHub"} token found for this operation. Pass --token <token>, set ${config.envName}, or run: holocron auth set ${config.keyringKey} <token>`);
112
118
  return token;
113
119
  };
120
+ return Object.assign(resolveFeatureToken, { token: {
121
+ envName: config.envName,
122
+ keyringKey: config.keyringKey
123
+ } });
114
124
  }
115
- //#endregion
116
- //#region src/commands/setup/derived-properties.ts
125
+ // src/commands/setup/derived-properties/derived-properties.ts
117
126
  /**
118
127
  * Repo archetype, in priority order:
119
128
  * 1. `*-template` repo name → `template` (independent of package shape).
@@ -184,7 +193,7 @@ function deriveCapabilities(providers) {
184
193
  return Object.keys(providers ?? {}).sort();
185
194
  }
186
195
  /**
187
- * `source` + `ci` are the minimal baseline every repo `holocron setup`
196
+ * `source` + `ci` are the minimal baseline every repo `holocron repo setup`
188
197
  * touches wires — every `holocron.config.ts` in this org already satisfies
189
198
  * this, so `non-compliant` here means drift (a provider manually removed
190
199
  * after setup), not an unmet aspirational policy. Deliberately not a richer
@@ -213,215 +222,17 @@ function missingCapabilities(capabilities) {
213
222
  */
214
223
  async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
215
224
  const results = [];
216
- for (const { slug, dir = "packages" } of workspacePackages) try {
217
- const raw = await readFile(join(repoRoot, dir, slug, "package.json"), "utf8");
218
- results.push(JSON.parse(raw));
219
- } catch {}
220
- return results;
221
- }
222
- //#endregion
223
- //#region src/config/config.ts
224
- var ConfigError = class extends Error {
225
- name = "ConfigError";
226
- };
227
- const PLUGIN_PREFIX = "@theholocron/holocron-plugin-";
228
- const COMMUNITY_PREFIX = "holocron-plugin-";
229
- /**
230
- * Resolve `"github"` → `"@theholocron/holocron-plugin-github"`.
231
- * Fully-qualified names (scoped or not) are honored verbatim, which
232
- * is how third-party plugins published outside the org work.
233
- */
234
- function resolvePluginPackage(provider) {
235
- if (!provider) throw new ConfigError("provider name is empty");
236
- if (provider.startsWith("@")) return provider;
237
- if (provider.startsWith(COMMUNITY_PREFIX)) return provider;
238
- if (provider.includes("/")) return provider;
239
- return PLUGIN_PREFIX + provider;
240
- }
241
- /** A bare `[provider, options]` tuple, with both elements present? */
242
- function isOptionsTuple(value) {
243
- if (!Array.isArray(value)) return false;
244
- if (value.length !== 2) return false;
245
- if (typeof value[0] !== "string") return false;
246
- const opt = value[1];
247
- return typeof opt === "object" && opt !== null && !Array.isArray(opt);
248
- }
249
- function normalizeEntry(entry) {
250
- if (typeof entry === "string") return {
251
- provider: entry,
252
- packageName: resolvePluginPackage(entry),
253
- options: {}
254
- };
255
- const [provider, options] = entry;
256
- return {
257
- provider,
258
- packageName: resolvePluginPackage(provider),
259
- options
260
- };
261
- }
262
- function resolveEntry(key, raw) {
263
- const cardinality = CARDINALITY[key];
264
- if (typeof raw === "string") {
265
- if (cardinality === "many") throw new ConfigError(`\`${key}\` accepts multiple providers; wrap a single one in an array: ["${raw}"]`);
266
- return {
267
- cardinality: "single",
268
- tuple: normalizeEntry(raw)
269
- };
270
- }
271
- if (!Array.isArray(raw)) throw new ConfigError(`\`${key}\` entry must be a string or array, got ${typeof raw}`);
272
- if (isOptionsTuple(raw)) {
273
- if (cardinality === "many") return {
274
- cardinality: "many",
275
- tuples: [normalizeEntry(raw)]
276
- };
277
- return {
278
- cardinality: "single",
279
- tuple: normalizeEntry(raw)
280
- };
281
- }
282
- if (cardinality === "single") throw new ConfigError(`\`${key}\` accepts exactly one provider; got a multi-provider list with ${raw.length} entries`);
283
- return {
284
- cardinality: "many",
285
- tuples: raw.map((entry, idx) => {
286
- if (typeof entry === "string") return normalizeEntry(entry);
287
- if (isOptionsTuple(entry)) return normalizeEntry(entry);
288
- throw new ConfigError(`\`${key}[${idx}]\` must be a provider string or [provider, options] tuple`);
289
- })
290
- };
291
- }
292
- function resolveConfig(raw) {
293
- if (!raw.name) throw new ConfigError("`name` is required");
294
- if (!raw.providers || typeof raw.providers !== "object") throw new ConfigError("`providers` block is required");
295
- const providers = {};
296
- for (const [key, entry] of Object.entries(raw.providers)) {
297
- if (entry === void 0) continue;
298
- providers[key] = resolveEntry(key, entry);
299
- }
300
- for (const required of REQUIRED_CAPABILITIES) if (!providers[required]) throw new ConfigError(`required capability \`${required}\` is missing from providers`);
301
- let docs;
302
- if (raw.docs !== void 0) {
303
- if (!raw.docs.build) throw new ConfigError("`docs.build` is required when `docs` is set");
304
- docs = raw.docs;
305
- }
306
- const homepage = raw.homepage ?? (docs?.domain ? `https://${docs.domain}/` : void 0);
307
- return {
308
- name: raw.name,
309
- description: raw.description,
310
- homepage,
311
- org: raw.org,
312
- domain: raw.domain,
313
- repo: raw.repo,
314
- tasks: raw.tasks,
315
- syncScripts: raw.syncScripts,
316
- holocronScript: raw.holocronScript,
317
- extraRequiredChecks: raw.extraRequiredChecks,
318
- hooks: raw.hooks,
319
- providers,
320
- apps: raw.apps ?? [],
321
- doctor: raw.doctor ?? {},
322
- agent: raw.agent,
323
- skills: raw.skills,
324
- docs,
325
- env: raw.env,
326
- log: raw.log,
327
- telemetry: raw.telemetry
328
- };
329
- }
330
- //#endregion
331
- //#region src/config/compose.ts
332
- function taskName(e) {
333
- return typeof e === "string" ? e : e.name;
334
- }
335
- /**
336
- * Merge any number of capability fragments into a single preset object that
337
- * spreads directly into `defineConfig()`.
338
- *
339
- * - Accepts individual capabilities or nested arrays (for bundle presets).
340
- * - Deduplicates by `id` — when the same ID appears more than once, the last
341
- * occurrence wins. This lets callers override bundle defaults by listing an
342
- * explicit capability after the bundle.
343
- * - Validates all `requires` at call time and throws `ConfigError` if any are
344
- * unmet, listing every missing dependency in a single message.
345
- *
346
- * @example
347
- * // docs-only site — no typecheck
348
- * const preset = compose(node(), docs());
349
- *
350
- * // library with docs
351
- * const preset = compose(node(), typecheck(), docs());
352
- *
353
- * // nextjs() is a bundle that returns Capability[]
354
- * const preset = compose(node(), nextjs());
355
- */
356
- function compose(...args) {
357
- const flat = args.flat();
358
- const byId = /* @__PURE__ */ new Map();
359
- for (const cap of flat) byId.set(cap.id, cap);
360
- const caps = [...byId.values()];
361
- const available = new Set(caps.map((c) => c.id));
362
- const errors = [];
363
- for (const cap of caps) for (const req of cap.requires ?? []) if (!available.has(req)) errors.push(`"${cap.id}" requires "${req}"`);
364
- if (errors.length > 0) throw new ConfigError(`compose(): unmet dependencies — ${errors.join(", ")}`);
365
- const taskMap = /* @__PURE__ */ new Map();
366
- for (const cap of caps) for (const entry of cap.tasks ?? []) taskMap.set(taskName(entry), entry);
367
- let providers = {};
368
- for (const cap of caps) if (cap.providers) providers = {
369
- ...providers,
370
- ...cap.providers
371
- };
372
- const checksSeen = /* @__PURE__ */ new Set();
373
- const extraRequiredChecks = [];
374
- for (const cap of caps) for (const check of cap.extraRequiredChecks ?? []) if (!checksSeen.has(check)) {
375
- checksSeen.add(check);
376
- extraRequiredChecks.push(check);
225
+ for (const { slug, dir = "packages", path } of workspacePackages) {
226
+ const pkg = await readPackageJson(join(repoRoot, path ?? join(dir, slug)));
227
+ if (pkg) results.push(pkg);
377
228
  }
378
- let repo = {};
379
- for (const cap of caps) {
380
- if (!cap.repo) continue;
381
- const { properties, topics, teams, ...scalars } = cap.repo;
382
- repo = {
383
- ...repo,
384
- ...scalars
385
- };
386
- if (properties) repo.properties = {
387
- ...repo.properties,
388
- ...properties
389
- };
390
- if (topics) {
391
- const merged = /* @__PURE__ */ new Set([...repo.topics ?? [], ...topics]);
392
- repo.topics = [...merged];
393
- }
394
- if (teams) {
395
- const teamMap = new Map((repo.teams ?? []).map((t) => [typeof t === "string" ? t : t.slug, t]));
396
- for (const t of teams) teamMap.set(typeof t === "string" ? t : t.slug, t);
397
- repo.teams = [...teamMap.values()];
398
- }
399
- }
400
- let org;
401
- let domain;
402
- let docs;
403
- for (const cap of caps) {
404
- if (cap.org !== void 0) org = cap.org;
405
- if (cap.domain !== void 0) domain = cap.domain;
406
- if (cap.docs !== void 0) docs = cap.docs;
407
- }
408
- return {
409
- tasks: [...taskMap.values()],
410
- providers,
411
- repo,
412
- extraRequiredChecks,
413
- ...org !== void 0 ? { org } : {},
414
- ...domain !== void 0 ? { domain } : {},
415
- ...docs !== void 0 ? { docs } : {}
416
- };
229
+ return results;
417
230
  }
418
- //#endregion
419
- //#region src/config/define-config.ts
231
+ // src/config/define-config/define-config.ts
420
232
  function defineConfig(config) {
421
233
  return config;
422
234
  }
423
- //#endregion
424
- //#region src/config/load-config.ts
235
+ // src/config/load-config/load-config.ts
425
236
  /**
426
237
  * `holocron.config.{ts,js,mjs,cjs,json}` loader.
427
238
  *
@@ -433,34 +244,40 @@ function defineConfig(config) {
433
244
  * Probe order is TS-first (`.ts` → `.js` → `.mjs` → `.cjs` → `.json`) —
434
245
  * see ADR-0010 / issue #75 / #81.
435
246
  */
436
- const execFileAsync = promisify(execFile);
437
247
  /**
438
- * Read + parse + resolve `holocron.config.*` from the given directory.
248
+ * Read + parse + resolve `holocron.config.*` starting from the given
249
+ * directory, walking up through ancestors to the nearest `.git` boundary
250
+ * when `cwd` itself has no match — every command is usable from any
251
+ * subdirectory of a repo, not only its exact root (see
252
+ * `@theholocron/datapad`'s own doc comment for the stop conditions).
439
253
  * Throws {@link ConfigFileError} when nothing is found or a file cannot
440
- * be loaded, or `ConfigError` when the config is invalid.
254
+ * be loaded, or `ConfigError` when the config fails schema checks.
441
255
  */
442
256
  async function loadConfig(cwd) {
443
257
  const found = await loadConfigFile({
444
258
  cwd,
445
- name: "holocron"
259
+ name: "holocron",
260
+ walkUp: true
446
261
  });
447
262
  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.`);
263
+ const withDefaults = await deriveDefaults(found);
448
264
  return {
449
- resolved: resolveConfig(await deriveDefaults(dirname(found.filepath), found.config)),
265
+ resolved: resolveConfig(withDefaults),
450
266
  filepath: found.filepath
451
267
  };
452
268
  }
453
- async function deriveDefaults(configDir, raw) {
454
- const result = { ...raw };
269
+ async function deriveDefaults(found) {
270
+ const configDir = dirname(found.filepath);
271
+ const result = { ...found.config };
455
272
  if (!result.name) result.name = await readPackageJsonName(configDir) ?? basename(configDir);
456
273
  if (result.repo && !result.repo.name) {
457
- const repoName = await readGitRemote(configDir);
458
- if (repoName) result.repo = {
274
+ const remote = await readGitRemote(configDir);
275
+ if (remote?.host === "github.com") result.repo = {
459
276
  ...result.repo,
460
- name: repoName
277
+ name: remote.slug
461
278
  };
462
279
  }
463
- const manifest = await loadTasksConfig(configDir);
280
+ const manifest = await loadTasksConfig(configDir, { holocron: found });
464
281
  if (manifest.tasks) result.tasks = manifest.tasks;
465
282
  if (manifest.syncScripts !== void 0) result.syncScripts = manifest.syncScripts;
466
283
  if (manifest.holocronScript !== void 0) result.holocronScript = manifest.holocronScript;
@@ -469,31 +286,144 @@ async function deriveDefaults(configDir, raw) {
469
286
  return result;
470
287
  }
471
288
  async function readPackageJsonName(dir) {
472
- try {
473
- const content = await readFile(join(dir, "package.json"), "utf8");
474
- const pkg = JSON.parse(content);
475
- return typeof pkg.name === "string" ? pkg.name.replace(/^@[^/]+\//, "") : void 0;
476
- } catch {
477
- return;
289
+ const name = (await readPackageJson(dir))?.name;
290
+ return name === void 0 ? void 0 : name.replace(/^@[^/]+\//, "");
291
+ }
292
+ // src/plugin/connection-probe/connection-probe.ts
293
+ const TLS_CODES = /* @__PURE__ */ new Set([
294
+ "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
295
+ "SELF_SIGNED_CERT_IN_CHAIN",
296
+ "DEPTH_ZERO_SELF_SIGNED_CERT",
297
+ "CERT_HAS_EXPIRED",
298
+ "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
299
+ "ERR_TLS_CERT_ALTNAME_INVALID"
300
+ ]);
301
+ /** The code Node attaches to a network failure, with that error's message: on the error itself, or on its `cause` (where `fetch` puts it). */
302
+ function codeOf(err) {
303
+ for (let e = err, depth = 0; e && depth < 4; depth++) {
304
+ if (typeof e.code === "string") return {
305
+ code: e.code,
306
+ message: String(e.message ?? "")
307
+ };
308
+ e = e.cause;
478
309
  }
479
310
  }
480
- async function readGitRemote(dir) {
481
- try {
482
- const { stdout } = await execFileAsync("git", [
483
- "remote",
484
- "get-url",
485
- "origin"
486
- ], { cwd: dir });
487
- return parseGitRemoteUrl(stdout.trim());
488
- } catch {
489
- return;
311
+ /** A network failure in plain words, with what usually causes it. Never includes anything from a request. */
312
+ function describeNetworkError(err, timeoutMs) {
313
+ const found = codeOf(err);
314
+ const code = found?.code;
315
+ const name = err?.name;
316
+ if (name === "TimeoutError" || name === "AbortError" || code === "UND_ERR_CONNECT_TIMEOUT" || code === "ETIMEDOUT") return `no answer within ${timeoutMs / 1e3}s (${code ?? name}): a firewall, VPN or proxy may be dropping it`;
317
+ switch (code) {
318
+ case "ENOTFOUND":
319
+ case "EAI_AGAIN": return `${code}: the name did not resolve; check your network and DNS`;
320
+ case "ECONNREFUSED": return "ECONNREFUSED: the host refused the connection";
321
+ case "ECONNRESET":
322
+ case "UND_ERR_SOCKET": return `${code}: the connection was cut off; a proxy or firewall may be interfering`;
323
+ case "ENETUNREACH":
324
+ case "EHOSTUNREACH": return `${code}: no route to the host; check that you are online`;
325
+ default:
326
+ if (code && TLS_CODES.has(code)) return `${code}: the TLS certificate was not trusted; a corporate proxy that re-signs traffic needs NODE_EXTRA_CA_CERTS`;
327
+ return found ? `${found.code}: ${found.message}` : String(err?.message ?? err);
490
328
  }
491
329
  }
492
- function parseGitRemoteUrl(url) {
493
- const httpsMatch = url.match(/github\.com\/([^/]+\/[^/]+?)(?:\.git)?$/);
494
- if (httpsMatch) return httpsMatch[1];
495
- const sshMatch = url.match(/github\.com:([^/]+\/[^/]+?)(?:\.git)?$/);
496
- if (sshMatch) return sshMatch[1];
330
+ /**
331
+ * The `connection` probe every provider offers, for telling a network problem from a credential problem: does the name
332
+ * resolve, does the host answer, is there a token, and does the provider accept it. A step that cannot work because an
333
+ * earlier one failed is reported as not tried rather than failing a second time for the same reason.
334
+ */
335
+ function connectionProbe(input) {
336
+ const timeoutMs = input.timeoutMs ?? 1e4;
337
+ return {
338
+ summary: `Check the network path to ${input.provider} and that it accepts your token.`,
339
+ writes: false,
340
+ async run(probe) {
341
+ let reachable = true;
342
+ if (input.url) {
343
+ const host = new URL(input.url).hostname;
344
+ const lookup$1 = input.lookup ?? (input.fetch ? void 0 : (h) => lookup(h));
345
+ if (lookup$1) try {
346
+ const { address } = await lookup$1(host);
347
+ probe.say({
348
+ status: "ok",
349
+ label: `DNS ${host}`,
350
+ detail: address
351
+ });
352
+ } catch (err) {
353
+ reachable = false;
354
+ probe.say({
355
+ status: "fail",
356
+ label: `DNS ${host}`,
357
+ detail: describeNetworkError(err, timeoutMs)
358
+ });
359
+ }
360
+ if (reachable) {
361
+ const started = Date.now();
362
+ try {
363
+ const res = await (input.fetch ?? fetch)(input.url, {
364
+ method: "GET",
365
+ signal: AbortSignal.timeout(timeoutMs)
366
+ });
367
+ probe.say({
368
+ status: "ok",
369
+ label: `reach ${host}`,
370
+ detail: `HTTP ${res.status} in ${Date.now() - started} ms`
371
+ });
372
+ } catch (err) {
373
+ reachable = false;
374
+ probe.say({
375
+ status: "fail",
376
+ label: `reach ${host}`,
377
+ detail: describeNetworkError(err, timeoutMs)
378
+ });
379
+ }
380
+ } else probe.say({
381
+ status: "info",
382
+ label: `reach ${host}`,
383
+ detail: "not tried: the name did not resolve"
384
+ });
385
+ }
386
+ let token;
387
+ try {
388
+ token = await input.token();
389
+ } catch (err) {
390
+ probe.say({
391
+ status: "fail",
392
+ label: "token",
393
+ detail: err.message
394
+ });
395
+ probe.say({
396
+ status: "info",
397
+ label: "accepted",
398
+ detail: "not tried: there is no token"
399
+ });
400
+ return;
401
+ }
402
+ probe.secret(token);
403
+ probe.say({
404
+ status: "ok",
405
+ label: "token",
406
+ detail: "found"
407
+ });
408
+ if (!reachable) {
409
+ probe.say({
410
+ status: "info",
411
+ label: "accepted",
412
+ detail: "not tried: the host could not be reached"
413
+ });
414
+ return;
415
+ }
416
+ const result = await input.verify(token);
417
+ probe.say(result.ok ? {
418
+ status: "ok",
419
+ label: "accepted",
420
+ detail: result.subject
421
+ } : {
422
+ status: "fail",
423
+ label: "accepted",
424
+ detail: result.message
425
+ });
426
+ }
427
+ };
497
428
  }
498
- //#endregion
499
- export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, getToken, isMulti, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
429
+ export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, describeNetworkError, getToken, isMulti, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };