@biffo/cli 0.249.1 → 0.249.3

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.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -613,6 +613,10 @@ var DivergenceConfigSchema = z3.object({
613
613
  note: z3.string().optional(),
614
614
  warnOnly: z3.array(DivergenceEntrySchema).default([])
615
615
  });
616
+ function classifyRepoOwnership(repoRoot) {
617
+ if (isInstanceRepo(repoRoot)) return "instance";
618
+ return existsSync4(join4(repoRoot, CORE_MANIFEST_FILE)) ? "template" : "satellite";
619
+ }
616
620
  function readDivergenceConfig(repoRoot) {
617
621
  const path = join4(repoRoot, DIVERGENCE_FILE);
618
622
  if (!existsSync4(path)) return { warnOnly: [] };
@@ -9682,10 +9686,17 @@ async function runOwnershipCheck(argv) {
9682
9686
  const staged = stagedFlag !== -1;
9683
9687
  const messageFile = staged ? args[stagedFlag + 1] : void 0;
9684
9688
  const root = (await execa7("git", ["rev-parse", "--show-toplevel"])).stdout.trim();
9685
- if (!isInstanceRepo(root)) {
9689
+ const ownership = classifyRepoOwnership(root);
9690
+ if (ownership === "template") {
9686
9691
  console.log("\u2713 core ownership guard: skipped \u2014 this is the template, which owns these paths.");
9687
9692
  return;
9688
9693
  }
9694
+ if (ownership === "satellite") {
9695
+ console.log(
9696
+ "\u2713 core ownership guard: skipped \u2014 this repo is not an instance, so it holds no template-owned paths."
9697
+ );
9698
+ return;
9699
+ }
9689
9700
  let changedFiles;
9690
9701
  let deletedFiles = [];
9691
9702
  let commitMessage = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.249.1",
3
+ "version": "0.249.3",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",