@nodii/dev 0.6.124 → 0.6.125

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/core.js CHANGED
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
4
4
  import { homedir, platform } from "node:os";
5
5
  import { dirname, join } from "node:path";
6
6
 
7
- export const VERSION = "0.6.124";
7
+ export const VERSION = "0.6.125";
8
8
  export const configPath = () =>
9
9
  process.env.NODII_DEV_CONFIG_PATH ??
10
10
  join(homedir(), ".config/nodii-dev/config.json");
package/dist/review.js CHANGED
@@ -904,10 +904,17 @@ export async function runLaneCheck(ref, flags, { request, lane, freeze, current,
904
904
  // Figma (DEV-REV-9): only a lane with a frontend side.
905
905
  let figma;
906
906
  if (!["frontend", "both"].includes(lane.side)) figma = { check: "figma", outcome: "NOT_APPLICABLE", iterationCount: 0, reviewerErrors: [], inputs: { side: lane.side ?? null }, findings: [] };
907
- else if (!Array.isArray(freeze?.boundaries?.figma) || !freeze.boundaries.figma.length) {
908
- // Nothing to compare, so the leg is skipped, not crashed. Dev requires a
909
- // frontend lane's figma check to run (NOT_APPLICABLE is refused there), so
910
- // the skip records as unavailable and the run stays NOT CLEAN until it is set.
907
+ else if (Array.isArray(freeze?.boundaries?.figma) && !freeze.boundaries.figma.length) {
908
+ // hub-364: a Freeze that sets its Figma boundary to [] says the change
909
+ // touches no Figma unit, so nothing counts (as with zero touched units of
910
+ // a DS file). Dev refuses NOT_REQUIRED and NOT_APPLICABLE on a frontend
911
+ // lane's figma check, so this is a CLEAN round over zero frames.
912
+ figma = round("figma", [], { side: lane.side, frames: [], frameComparison: "not_built", boundary: [], notChecked: `${ref}'s Freeze sets its Figma boundary to none (boundaries.figma = []), so the change touches no Figma unit and nothing is counted (hub-364)` });
913
+ } else if (!Array.isArray(freeze?.boundaries?.figma)) {
914
+ // No boundary set at all: nothing to compare, so the leg is skipped, not
915
+ // crashed. Dev requires a frontend lane's figma check to run
916
+ // (NOT_APPLICABLE is refused there), so the skip records as unavailable
917
+ // and the run stays NOT CLEAN until it is set.
911
918
  figma = errorCheck("figma", new ReviewerError(UNAVAILABLE, `skipped: ${ref} is a ${lane.side} lane, but its Freeze names no Figma boundary (boundaries.figma), so there is no frame to check and no design check ran. Dev requires a ${lane.side} lane's figma check to run, so this run is NOT CLEAN until the boundary is set: nodii-dev lane freeze swap ${ref} --section boundaries.`), firstRound("figma"), { side: lane.side, frames: [], frameComparison: "not_built", boundary: null });
912
919
  } else {
913
920
  const boundary = freeze.boundaries.figma;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.124",
3
+ "version": "0.6.125",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {