@r_masseater/msch 0.74.0 → 0.75.1

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/cli.mjs CHANGED
@@ -15,7 +15,7 @@ import { n as writeStdout, t as ProblemsFound } from "./output-DrM4OsOJ.mjs";
15
15
  import { t as runCli } from "./runtime-CFZ41rB0.mjs";
16
16
  import "./cli-contract-D7btWrEu.mjs";
17
17
  import { builtinModules } from "node:module";
18
- import { VpToolsError, runVpa } from "@r_masseater/vite-plus-adopt";
18
+ import { VpToolsError, findCiDrift, runVpa } from "@r_masseater/vite-plus-adopt";
19
19
  import { Array, Boolean as Boolean$1, Context, Effect, FileSystem, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate, Record, Result, Schema, SchemaTransformation, Stdio, Stream, String as String$1, pipe } from "effect";
20
20
  import { lockedGraph, lockedPackageIds, parseDependencyPath, updateWorkspaceManifest } from "@r_masseater/kestrion/pnpm";
21
21
  import { ChildProcess } from "effect/process";
@@ -13573,6 +13573,21 @@ const checkFullHistoryCheckout = workflowCheck({
13573
13573
  matches: (value) => value === WHOLE_HISTORY
13574
13574
  })
13575
13575
  });
13576
+ // src/features/check-workflows/model/ci-drift.ts
13577
+ const SETUP_RULE$1 = "ci-setup";
13578
+ const REF_RULE = "ci-template-ref";
13579
+ const SETUP_MESSAGE = "differs from what `vpa ci` writes. Run `vpa ci`: it puts the shared `setup` action where a job runs `vp`, removes the hand-written cache steps and keeps the cache workflow that cleans up old entries.";
13580
+ const REF_MESSAGE = "pins a different commit of the template than the other workflows. Run `vpa ci` to pin them all to one.";
13581
+ const setupProblem$1 = problemInFile(SETUP_RULE$1);
13582
+ const refProblem = problemInFile(REF_RULE);
13583
+ /** @internal */
13584
+ const checkCiDrift = Effect.fn("checkCiDrift")(function* checkCiDrift(root) {
13585
+ const drifts = yield* findCiDrift(root);
13586
+ return pipe(drifts, Array.map(({ file, reason }) => {
13587
+ if (reason === "setup") return setupProblem$1(file, SETUP_MESSAGE);
13588
+ return refProblem(file, REF_MESSAGE);
13589
+ }));
13590
+ });
13576
13591
  // src/features/check-workflows/model/publish-trigger.ts
13577
13592
  const RULE$23 = "publish-trigger";
13578
13593
  const PUBLISH = /\bmsch-publish\s+(?:plan|npm|release)\b/u;
@@ -13672,6 +13687,7 @@ const checkToolUse = Effect.fn("checkToolUse")(function* checkToolUse(root) {
13672
13687
  checkScripts(root),
13673
13688
  checkWorkflowQueues(root),
13674
13689
  checkWorkflowCommits(root),
13690
+ checkCiDrift(root),
13675
13691
  checkFullHistoryCheckout(root),
13676
13692
  checkReleasePlease(root),
13677
13693
  checkPublishTrigger(root),