@theholocron/cli 5.0.0-alpha.163 → 5.0.0-alpha.164

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +33 -19
  2. package/package.json +3 -3
package/dist/index.d.mts CHANGED
@@ -237,7 +237,8 @@ interface EnvConfig {
237
237
  namespaces?: string[];
238
238
  }
239
239
  /**
240
- * A single Chromatic project entry in a monorepo `run-chromatic` config.
240
+ * A single Chromatic project entry in a `verification.visualRegression`
241
+ * task's `chromatic-projects` config.
241
242
  * Each entry produces one matrix job in CI, publishing to a separate Chromatic project.
242
243
  *
243
244
  * The `tokenName` maps to a repository secret named `CHROMATIC_PROJECT_TOKEN_<TOKENNAME>`.
@@ -299,8 +300,9 @@ interface StorybookDeployProject {
299
300
  /**
300
301
  * Typed `with:` inputs for reusable workflows.
301
302
  *
302
- * `run-chromatic` accepts either a plain boolean (single-project) or a
303
- * `ChromaticProjectConfig[]` object (multi-project monorepo).
303
+ * `chromatic-projects` (on the `verification.visualRegression` task) takes a
304
+ * `ChromaticProjectConfig[]` directly; each entry's `untraced` glob list may
305
+ * be authored as an array and is newline-joined for you.
304
306
  *
305
307
  * `docs` / `storybook` are high-level deploy shorthand that `holocron repo setup`
306
308
  * translates to `type` / `storybook-projects` before writing the thin caller.
@@ -308,9 +310,7 @@ interface StorybookDeployProject {
308
310
  * `paths:` manually for deploy entries.
309
311
  */
310
312
  type WorkflowWithConfig = Record<string, unknown> & {
311
- "run-chromatic"?: boolean | {
312
- projects: ChromaticProjectConfig[];
313
- };
313
+ "chromatic-projects"?: ChromaticProjectConfig[];
314
314
  /**
315
315
  * Docs deployment shorthand. `true` uses the org-standard `docs/` directory;
316
316
  * `{ path: "custom" }` uses a custom directory. Both derive a `paths:` entry automatically.
@@ -390,7 +390,7 @@ interface HolocronConfig {
390
390
  * workflows / `package.json` scripts.
391
391
  *
392
392
  * Supported values (intent-facing vocabulary — epic #672, D3):
393
- * "verification.unitTests" | "verification.typeSafety" | "verification.performance" |
393
+ * "verification.unitTests" | "verification.visualRegression" | "verification.typeSafety" | "verification.performance" |
394
394
  * "sourceQuality.staticAnalysis" | "sourceQuality.formatting" |
395
395
  * "sourceQuality.structuredDataValidation" | "sourceQuality.deadCodeAnalysis" |
396
396
  * "security.secretDetection" | "security.codeScanning" |
@@ -434,23 +434,37 @@ interface HolocronConfig {
434
434
  * { name: "delivery.deploy", with: { docs: { path: "packages/site" } } }
435
435
  * ```
436
436
  *
437
- * ### run-chromatic
438
- * For a single-project repo, use `"run-chromatic": true` with a
439
- * `CHROMATIC_PROJECT_TOKEN` repository secret.
437
+ * ### verification.visualRegression
438
+ * Its own task, not a `verification.unitTests` sub-job (holocron#394/#1062)
439
+ * — GitHub evaluates a job's `if:` before expanding its `strategy.matrix`,
440
+ * so no `chromatic-projects` default can make a *disabled* Chromatic job
441
+ * disappear from PR checks; only not generating the job at all does. Omit
442
+ * this task entirely for a repo that doesn't use Chromatic — no workflow,
443
+ * no job, no check, not even a skipped one.
444
+ *
445
+ * For a single-project repo, use a `CHROMATIC_PROJECT_TOKEN` repository
446
+ * secret with `tokenName: "default"`:
447
+ * ```ts
448
+ * {
449
+ * name: "verification.visualRegression",
450
+ * with: { "chromatic-projects": [{ tokenName: "default", workingDir: "." }] },
451
+ * }
452
+ * ```
440
453
  *
441
- * For monorepos with multiple Storybooks, use the object form:
454
+ * For monorepos with multiple Storybooks, list one entry per project:
442
455
  * ```ts
443
- * "run-chromatic": {
444
- * projects: [
445
- * { tokenName: "WEB", workingDir: "apps/web" },
446
- * { tokenName: "UI", workingDir: "packages/ui" },
447
- * ]
456
+ * {
457
+ * name: "verification.visualRegression",
458
+ * with: {
459
+ * "chromatic-projects": [
460
+ * { tokenName: "WEB", workingDir: "apps/web" },
461
+ * { tokenName: "UI", workingDir: "packages/ui" },
462
+ * ],
463
+ * },
448
464
  * }
449
465
  * ```
450
466
  * Each `tokenName` maps to a repository secret named
451
- * `CHROMATIC_PROJECT_TOKEN_<TOKENNAME>`. `holocron repo setup` expands this
452
- * to the flat `run-chromatic: true` + `chromatic-projects: <json>` inputs
453
- * that the reusable workflow accepts.
467
+ * `CHROMATIC_PROJECT_TOKEN_<TOKENNAME>`.
454
468
  *
455
469
  * @example
456
470
  * ["sourceQuality.staticAnalysis", { "name": "delivery.publish", "with": { "run-build": false } }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.163",
3
+ "version": "5.0.0-alpha.164",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -63,8 +63,8 @@
63
63
  "pino-pretty": "^13.1.3",
64
64
  "posthog-node": "^5.51.6",
65
65
  "yargs": "^18.1.0",
66
- "@theholocron/astromech": "5.0.0-alpha.163",
67
- "@theholocron/datapad": "5.0.0-alpha.163"
66
+ "@theholocron/astromech": "5.0.0-alpha.164",
67
+ "@theholocron/datapad": "5.0.0-alpha.164"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@theholocron/eslint-config": "^8.8.0",