@decocms/parity 0.33.40 → 0.33.42

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/cli.js +5 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -64104,7 +64104,7 @@ function disposition(c) {
64104
64104
  return "settled";
64105
64105
  if (c.status === "as-is")
64106
64106
  return "as-is";
64107
- if (c.verified)
64107
+ if (c.verified && c.verified.verdict !== "inconclusive")
64108
64108
  return "settled";
64109
64109
  if (c.status === "upgrade")
64110
64110
  return c.reference ? "validate" : "upgrade";
@@ -69168,8 +69168,8 @@ function planSetReferenceCommand(dir, name, opts) {
69168
69168
  return 0;
69169
69169
  }
69170
69170
  function planVerifyCommand(dir, name, verdict, opts) {
69171
- if (verdict !== "pass" && verdict !== "fail") {
69172
- console.error(chalk21.red(`Invalid verdict "${verdict}". Use pass or fail.`));
69171
+ if (verdict !== "pass" && verdict !== "fail" && verdict !== "inconclusive") {
69172
+ console.error(chalk21.red(`Invalid verdict "${verdict}". Use pass, fail or inconclusive.`));
69173
69173
  return 1;
69174
69174
  }
69175
69175
  const plan = loadPlan(dir);
@@ -69183,7 +69183,7 @@ function planVerifyCommand(dir, name, verdict, opts) {
69183
69183
  return 1;
69184
69184
  }
69185
69185
  savePlan(dir, plan);
69186
- const mark = verdict === "pass" ? chalk21.green("✓") : chalk21.red("✗");
69186
+ const mark = verdict === "pass" ? chalk21.green("✓") : verdict === "inconclusive" ? chalk21.yellow("?") : chalk21.red("✗");
69187
69187
  console.log(`${mark} ${component.name} → ${verdict} (against ${component.verified?.against})`);
69188
69188
  return 0;
69189
69189
  }
@@ -76329,7 +76329,7 @@ program.command("plan").description("Inspect/update the migration-plan.json comp
76329
76329
  }));
76330
76330
  })).addCommand(new Command("merge").description("Bring a freshly captured plan into the canonical one, keeping every recorded decision (ported / as-is / upgrade / verified). Use this instead of copying the file — a copy reverts the decisions.").argument("<source>", "Directory holding the freshly captured migration-plan.json").option("--dir <path>", "Destination directory holding the canonical migration-plan.json", ".parity").action((source, opts) => {
76331
76331
  process.exit(planMergeCommand(opts.dir, source));
76332
- })).addCommand(new Command("verify").description("Record that a component was actually compared against its reference. A `done` row with no verification only means the code exists.").argument("<name>", "Component name (case- and separator-insensitive)").argument("<verdict>", "pass | fail").option("--note <text>", "What was seen").option("--at <iso>", "Timestamp (default: now)").option("--dir <path>", "Directory holding migration-plan.json (default: the target repo's .parity/)", ".parity").action((name, verdict, opts) => {
76332
+ })).addCommand(new Command("verify").description("Record that a component was actually compared against its reference. A `done` row with no verification only means the code exists.").argument("<name>", "Component name (case- and separator-insensitive)").argument("<verdict>", "pass | fail | inconclusive. `inconclusive` means the comparison could not be made (wrong element count, different sizes, an unstable reference) — the row stays open rather than settling, because nothing was measured.").option("--note <text>", "What was seen").option("--at <iso>", "Timestamp (default: now)").option("--dir <path>", "Directory holding migration-plan.json (default: the target repo's .parity/)", ".parity").action((name, verdict, opts) => {
76333
76333
  process.exit(planVerifyCommand(opts.dir, name, verdict, { note: opts.note, at: opts.at }));
76334
76334
  }));
76335
76335
  program.command("cms").description("Read and write VTEX Content Platform entries — the CMS behind FastStore v4. Every write is a commit on a branch carrying the baseHash it was read at, so a concurrent edit fails the commit instead of silently winning. Needs PARITY_CMS_ACCOUNT + PARITY_CMS_STORE and a `vtex login` session (or PARITY_CMS_TOKEN).").addCommand(new Command("doctor").description("Compare the sections the repo declares against the ones published on the account. A section that exists in code but was never uploaded commits fine and renders nothing — this is the check that catches it.").option("--repo <path>", "Repo holding cms/faststore/pages/", ".").option("--json", "Emit structured JSON instead of human-readable text", false).action(async (opts) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/parity",
3
- "version": "0.33.40",
3
+ "version": "0.33.42",
4
4
  "description": "E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.",
5
5
  "type": "module",
6
6
  "license": "MIT",