@theholocron/cli 5.0.0-alpha.344 → 5.0.0-alpha.346

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.
@@ -1,4 +1,5 @@
1
1
  import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
2
+ import { resolvePluginPackage } from "@theholocron/kyber/plugins";
2
3
  import { ConfigError, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
3
4
  import { basename, dirname } from "node:path";
4
5
  import { readPackageJson } from "@theholocron/pkg-utils";
@@ -13,12 +14,9 @@ const COMMUNITY_PREFIX = "holocron-plugin-";
13
14
  * Fully-qualified names (scoped or not) are honored verbatim, which
14
15
  * is how third-party plugins published outside the org work.
15
16
  */
16
- function resolvePluginPackage(provider) {
17
+ function resolvePluginPackage$1(provider) {
17
18
  if (!provider) throw new ConfigError("provider name is empty");
18
- if (provider.startsWith("@")) return provider;
19
- if (provider.startsWith(COMMUNITY_PREFIX)) return provider;
20
- if (provider.includes("/")) return provider;
21
- return PLUGIN_PREFIX + provider;
19
+ return resolvePluginPackage(provider, PLUGIN_PREFIX, COMMUNITY_PREFIX);
22
20
  }
23
21
  /** A bare `[provider, options]` tuple, with both elements present? */
24
22
  function isOptionsTuple(value) {
@@ -31,13 +29,13 @@ function isOptionsTuple(value) {
31
29
  function normalizeEntry(entry) {
32
30
  if (typeof entry === "string") return {
33
31
  provider: entry,
34
- packageName: resolvePluginPackage(entry),
32
+ packageName: resolvePluginPackage$1(entry),
35
33
  options: {}
36
34
  };
37
35
  const [provider, options] = entry;
38
36
  return {
39
37
  provider,
40
- packageName: resolvePluginPackage(provider),
38
+ packageName: resolvePluginPackage$1(provider),
41
39
  options
42
40
  };
43
41
  }
@@ -338,4 +336,4 @@ const loadConfig = system.loadConfig;
338
336
  * const preset = compose(node(), nextjs());
339
337
  */
340
338
  const compose = system.compose;
341
- export { ConfigError as a, resolveEntry as c, loadConfig as i, resolvePluginPackage as l, compose as n, credentialsEnvironment as o, defineConfig as r, resolveConfig as s, ConfigFileError as t };
339
+ export { ConfigError as a, resolveEntry as c, loadConfig as i, resolvePluginPackage$1 as l, compose as n, credentialsEnvironment as o, defineConfig as r, resolveConfig as s, ConfigFileError as t };
package/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ import { $ as DnsRecordType, $t as ParseWebhookInput, A as Ci, An as WebhookDash
2
2
  import { A as RepoConfig, B as ResolvedTuple, C as EslintConfig, D as ProviderOptions, E as MultiEntry, F as RepoValidationConfig, G as WorkflowWithConfig, H as StorybookDeployProject, I as RepoVariables, L as ResolvedHolocronConfig, M as RepoProtection, N as RepoSecrets, O as RawProviderEntry, P as RepoSecretsSync, R as ResolvedProviderEntry, S as EnvConfig, T as LogConfig, U as TaskEntryConfig, V as SingleEntry, W as TelemetryConfig, _ as CredentialsConfig, a as LoadedConfig, b as DocsConfig, c as TaskEntry, d as resolveConfig, f as resolveEntry, g as ChromaticProjectConfig, h as CapabilityConfigPackage, i as loadConfig, j as RepoProperties, k as RawProvidersConfig, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as HolocronConfig, x as DoctorConfig, y as DevServeConfig, z as ResolvedProvidersConfig } from "./config-system-uaeB3g1g.mjs";
3
3
  import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1 } from "@theholocron/kyber/secrets";
4
4
  import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
5
+ import "@theholocron/kyber/plugins";
5
6
  import { PackageJson } from "@theholocron/pkg-utils";
6
7
  import { WorkspacePackage } from "@theholocron/astromech";
7
8
  import "@theholocron/observability/core";
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 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";
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-CZ0F8Uq7.mjs";
3
3
  import { Entry, findCredentials } from "@napi-rs/keyring";
4
4
  import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1 } from "@theholocron/kyber/secrets";
5
5
  import { describeError, style } from "@theholocron/kyber/ui";
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as compose } from "./config-system-Bq6510iF.mjs";
1
+ import { n as compose } from "./config-system-CZ0F8Uq7.mjs";
2
2
  // src/presets/capabilities/audit.ts
3
3
  /**
4
4
  * Adds bundle-size measuring (`measure-bundle`) + optional Knip (`lint:unused`) and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.344",
3
+ "version": "5.0.0-alpha.346",
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.344",
58
- "@theholocron/dagobah": "5.0.0-alpha.344",
59
- "@theholocron/env-utils": "^1.17.0-alpha.1",
60
- "@theholocron/datapad": "5.0.0-alpha.344",
57
+ "@theholocron/astromech": "5.0.0-alpha.346",
58
+ "@theholocron/dagobah": "5.0.0-alpha.346",
59
+ "@theholocron/datapad": "5.0.0-alpha.346",
61
60
  "@theholocron/fs-utils": "^1.17.0-alpha.1",
61
+ "@theholocron/env-utils": "^1.17.0-alpha.1",
62
62
  "@theholocron/git-utils": "^1.17.0-alpha.1",
63
+ "@theholocron/github-client": "^1.58.0-alpha.10",
63
64
  "@theholocron/http-client": "^1.58.0-alpha.10",
64
- "@theholocron/kyber": "5.0.0-alpha.344",
65
- "@theholocron/misc-utils": "^1.17.0-alpha.1",
66
65
  "@theholocron/json-utils": "^1.17.0-alpha.1",
67
- "@theholocron/github-client": "^1.58.0-alpha.10",
68
- "@theholocron/pkg-utils": "^1.17.0-alpha.1",
69
- "@theholocron/observability": "^0.7.0-alpha.1"
66
+ "@theholocron/misc-utils": "^1.17.0-alpha.1",
67
+ "@theholocron/kyber": "5.0.0-alpha.346",
68
+ "@theholocron/observability": "^0.7.0-alpha.1",
69
+ "@theholocron/pkg-utils": "^1.17.0-alpha.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/node": "^26",
@@ -79,10 +79,10 @@
79
79
  "tsdown": "^0.23.4",
80
80
  "typescript": "^5.9.3",
81
81
  "vitest": "^5.0.5",
82
- "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8",
83
- "@theholocron/tsconfig": "^8.9.0-alpha.8",
82
+ "@theholocron/eslint-config": "^8.9.0-alpha.8",
84
83
  "@theholocron/vitest-config": "^8.9.0-alpha.8",
85
- "@theholocron/eslint-config": "^8.9.0-alpha.8"
84
+ "@theholocron/tsconfig": "^8.9.0-alpha.8",
85
+ "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=22.0.0"