@theholocron/cli 5.0.0-alpha.411 → 5.0.0-alpha.413

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,11 +1,18 @@
1
1
  import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
2
2
  import { resolvePluginPackage } from "@theholocron/kyber/plugins";
3
3
  import { ConfigError, ConfigError as ConfigError$1, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
4
+ import { readGitRemote } from "@theholocron/git-utils";
4
5
  import { basename, dirname } from "node:path";
5
6
  import { readPackageJson } from "@theholocron/pkg-utils";
6
7
  import { resolveTaskName } from "@theholocron/astromech";
7
8
  import { loadTasksConfig } from "@theholocron/astromech/config";
8
- import { readGitRemote } from "@theholocron/git-utils";
9
+ // src/credentials-environments/derives-environment/derives-environment.ts
10
+ /** The providers whose `credentials` entry may leave `environment` out and have it derived (#2063). */
11
+ const DERIVING = /* @__PURE__ */ new Set(["1password"]);
12
+ /** Whether a `credentials` provider with no `environment` option derives its Environment names. */
13
+ function derivesEnvironment(provider) {
14
+ return DERIVING.has(provider);
15
+ }
9
16
  // src/config/validate-secrets-deploy/validate-secrets-deploy.ts
10
17
  /**
11
18
  * Check `repo.secrets.deploy`: each entry names a vault environment and at least one of a non-empty `keys` list and a
@@ -207,7 +214,7 @@ function resolveConfig(raw) {
207
214
  if (credentialsEntry?.cardinality === "many") for (const tuple of credentialsEntry.tuples) {
208
215
  const own = tuple.options.environment;
209
216
  if (own !== void 0 && (typeof own !== "string" || own.trim() === "")) throw new ConfigError$1(`the \`environment\` option of the \`${tuple.provider}\` credentials provider must be the name of an environment, got an empty value`);
210
- if (credentialsEnvironment(tuple, raw) === void 0) throw new ConfigError$1(`the \`${tuple.provider}\` credentials provider has no environment to read: give it an \`environment\` option or set \`credentials.environment\``);
217
+ if (credentialsEnvironment(tuple, raw) === void 0 && !derivesEnvironment(tuple.provider)) throw new ConfigError$1(`the \`${tuple.provider}\` credentials provider has no environment to read: give it an \`environment\` option or set \`credentials.environment\``);
211
218
  }
212
219
  const homepage = raw.homepage ?? (docs?.domain ? `https://${docs.domain}/` : void 0);
213
220
  return {
package/dist/index.d.mts CHANGED
@@ -3,6 +3,7 @@ import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInpu
3
3
  import { CheckRow } from "@theholocron/kyber/ui";
4
4
  import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
5
5
  import "@theholocron/kyber/plugins";
6
+ import "@theholocron/git-utils";
6
7
  import { ConnectionProbeInput as ConnectionProbeInput$1 } from "@theholocron/kyber/checks";
7
8
  import "@theholocron/observability/core";
8
9
  import { ConfigDirArea } from "@theholocron/datapad";
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, i as loadConfig, l as credentialsEnvironment, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-DdlsU8TW.mjs";
2
+ import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, i as loadConfig, l as credentialsEnvironment, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-DYqb53Rd.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";
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as compose } from "./config-system-DdlsU8TW.mjs";
1
+ import { n as compose } from "./config-system-DYqb53Rd.mjs";
2
2
  import { DEFAULT_ORG } from "@theholocron/astromech";
3
3
  // src/presets/capabilities/audit.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.411",
3
+ "version": "5.0.0-alpha.413",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -59,19 +59,19 @@
59
59
  "posthog-node": "^5.61.2",
60
60
  "tsx": "4.23.15",
61
61
  "yargs": "^18.1.0",
62
- "@theholocron/astromech": "5.0.0-alpha.411",
63
- "@theholocron/datapad": "5.0.0-alpha.411",
64
- "@theholocron/dagobah": "5.0.0-alpha.411",
62
+ "@theholocron/dagobah": "5.0.0-alpha.413",
63
+ "@theholocron/datapad": "5.0.0-alpha.413",
65
64
  "@theholocron/env-utils": "^1.17.0-alpha.4",
66
- "@theholocron/github-client": "^1.58.0-alpha.27",
67
- "@theholocron/git-utils": "^1.17.0-alpha.4",
68
- "@theholocron/http-client": "^1.58.0-alpha.27",
69
65
  "@theholocron/fs-utils": "^1.17.0-alpha.4",
66
+ "@theholocron/github-client": "^1.58.0-alpha.27",
70
67
  "@theholocron/json-utils": "^1.17.0-alpha.4",
71
- "@theholocron/kyber": "5.0.0-alpha.411",
72
68
  "@theholocron/misc-utils": "^1.17.0-alpha.4",
69
+ "@theholocron/kyber": "5.0.0-alpha.413",
70
+ "@theholocron/git-utils": "^1.17.0-alpha.4",
71
+ "@theholocron/http-client": "^1.58.0-alpha.27",
73
72
  "@theholocron/observability": "^0.7.0-alpha.4",
74
- "@theholocron/pkg-utils": "^1.17.0-alpha.4"
73
+ "@theholocron/pkg-utils": "^1.17.0-alpha.4",
74
+ "@theholocron/astromech": "5.0.0-alpha.413"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/node": "^26",