@theholocron/cli 5.0.0-alpha.424 → 5.0.0-alpha.426

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.d.mts CHANGED
@@ -51,6 +51,14 @@ interface PluginToken {
51
51
  * Default `false`.
52
52
  */
53
53
  optional?: boolean;
54
+ /**
55
+ * What this token must and must not be able to do in each layer that holds it (`local`, `dev`, `ci`, `prod`; a layer
56
+ * left out has no declared expectations). The permission names are the plugin's own and `required` or `absent` is the
57
+ * rule: a laptop token might need all of a provider's permissions, while `ci` needs one and must not have the rest.
58
+ * A token probe (`holocron probe <provider> token --environment <layer>`) judges the token against it, and the
59
+ * permission table in `docs/src/content/docs/tokens.mdx` says the same in prose.
60
+ */
61
+ expect?: Readonly<Record<string, Readonly<Partial<Record<string, "required" | "absent">>>>>;
54
62
  }
55
63
  /** Options for a token resolver, without the keyring lookup, which the CLI supplies itself. */
56
64
  type ResolveTokenConfig = Omit<ResolveTokenConfig$1, "keyring" | "orgEnvName">;
@@ -178,6 +186,12 @@ interface Probe {
178
186
  * for a pipe) sets `stderr`, so the rows never mix with it.
179
187
  */
180
188
  reportsTo?: "stderr";
189
+ /**
190
+ * Whether the probe is about a token, so `holocron probe` may point it at a different one: `--token <provider>=<value>`,
191
+ * `--environment <layer or name>` (the provider's token from that vault Environment), or, on a terminal with neither,
192
+ * a question that asks which. Unset, the probe uses the token the provider normally resolves.
193
+ */
194
+ acceptsToken?: boolean;
181
195
  /** Runs the probe, reporting and changing things only through `ctx`. */
182
196
  run(ctx: ProbeContext): Promise<void>;
183
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.424",
3
+ "version": "5.0.0-alpha.426",
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.64.0",
60
60
  "tsx": "4.23.15",
61
61
  "yargs": "^18.1.0",
62
- "@theholocron/astromech": "5.0.0-alpha.424",
63
- "@theholocron/dagobah": "5.0.0-alpha.424",
64
- "@theholocron/datapad": "5.0.0-alpha.424",
65
- "@theholocron/fs-utils": "^1.17.0-alpha.4",
66
- "@theholocron/env-utils": "^1.17.0-alpha.4",
62
+ "@theholocron/astromech": "5.0.0-alpha.426",
63
+ "@theholocron/dagobah": "5.0.0-alpha.426",
64
+ "@theholocron/datapad": "5.0.0-alpha.426",
67
65
  "@theholocron/github-client": "^1.58.0-alpha.29",
68
- "@theholocron/http-client": "^1.58.0-alpha.29",
69
- "@theholocron/json-utils": "^1.17.0-alpha.4",
70
66
  "@theholocron/git-utils": "^1.17.0-alpha.4",
67
+ "@theholocron/env-utils": "^1.17.0-alpha.4",
68
+ "@theholocron/fs-utils": "^1.17.0-alpha.4",
69
+ "@theholocron/http-client": "^1.58.0-alpha.29",
70
+ "@theholocron/kyber": "5.0.0-alpha.426",
71
71
  "@theholocron/observability": "^0.7.0-alpha.4",
72
+ "@theholocron/json-utils": "^1.17.0-alpha.4",
72
73
  "@theholocron/misc-utils": "^1.17.0-alpha.4",
73
- "@theholocron/pkg-utils": "^1.17.0-alpha.4",
74
- "@theholocron/kyber": "5.0.0-alpha.424"
74
+ "@theholocron/pkg-utils": "^1.17.0-alpha.4"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/node": "^26",
@@ -85,8 +85,8 @@
85
85
  "typescript": "^5.9.3",
86
86
  "vitest": "^5.1.0",
87
87
  "@theholocron/eslint-config": "^8.9.0-alpha.17",
88
- "@theholocron/tsconfig": "^8.9.0-alpha.17",
89
88
  "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.17",
89
+ "@theholocron/tsconfig": "^8.9.0-alpha.17",
90
90
  "@theholocron/vitest-config": "^8.9.0-alpha.17"
91
91
  },
92
92
  "engines": {