@design-parity/action 0.1.39 → 0.1.40

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.
@@ -10,6 +10,19 @@ interface Args {
10
10
  shard?: ShardSelector;
11
11
  /** Print the components/previews NOT in this shard (render exclusion lists). */
12
12
  complement: boolean;
13
+ /**
14
+ * Preview ids the module can draw, for `--complement --field previewId`.
15
+ *
16
+ * Without it the complement is taken within the *design map*, which is the
17
+ * wrong universe for a render exclusion list whenever the module holds
18
+ * previews no component maps to. m3-catalog is the worked example: 1,095
19
+ * previews, 77 of them carrying `@CatalogComponent(reference = …)` and so 77
20
+ * entries in `design-map.json`. A map-relative complement names the ~64
21
+ * previews the *other shards* own and says nothing about the 1,018 unmapped
22
+ * ones — so every shard still renders the whole module, which is the cost
23
+ * sharding exists to divide.
24
+ */
25
+ previewUniverse?: string;
13
26
  }
14
27
  export declare function parseArgs(args: string[]): Args;
15
28
  /**
@@ -20,6 +33,18 @@ export declare function parseArgs(args: string[]): Args;
20
33
  * a component's variants across shards would give each shard half a triptych.
21
34
  */
22
35
  export declare function previewIdsFor(map: Parameters<typeof findAllByCode>[0], code: string): string[];
36
+ /**
37
+ * Every preview id the module can draw, read from `--preview-universe`.
38
+ *
39
+ * Accepts either a `compose-preview` discovery manifest (`{"previews":[{"id":…}]}`)
40
+ * or a plain newline-delimited list of ids, so a consumer can point straight at
41
+ * the manifest its discovery pass already wrote instead of reshaping it in shell.
42
+ *
43
+ * Order is the file's, de-duplicated. Callers that need determinism sort the
44
+ * result themselves — the render does not care, and preserving manifest order
45
+ * keeps a hand-written list readable in the log.
46
+ */
47
+ export declare function parsePreviewUniverse(raw: string): string[];
23
48
  export declare function main(rawArgs?: string[]): Promise<number>;
24
49
  export {};
25
50
  //# sourceMappingURL=shard-cli.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shard-cli.d.ts","sourceRoot":"","sources":["../../src/cli/shard-cli.ts"],"names":[],"mappings":";AAyB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AAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CA6C9C;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,EACxC,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,CAIV;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAkB1D;AAED,wBAAsB,IAAI,CAAC,OAAO,GAAE,MAAM,EAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyE7E"}
@@ -4,6 +4,9 @@
4
4
  *
5
5
  * design-parity shard --shard 2/6 --repo . # component handles
6
6
  * design-parity shard --shard 2/6 --repo . --field previewId # render ids
7
+ * design-parity shard --shard 2/6 --repo . --field previewId --complement \
8
+ * --preview-universe catalog/build/compose-previews/previews.json
9
+ * # render exclusions
7
10
  *
8
11
  * A sharded run has two sides that MUST agree on the partition: the render step
9
12
  * (which previews this job draws) and `design-parity run --shard` (which
@@ -18,8 +21,14 @@
18
21
  * Output is one item per line (empty for an empty slice, which is a legitimate
19
22
  * no-op when there are more shards than components), so it drops straight into
20
23
  * `mapfile` / `xargs` / a `--id` loop.
24
+ *
25
+ * `--complement` prints what this shard does NOT own, which is what a render
26
+ * step passes to `--exclude-preview-id`. Pair it with `--preview-universe` — the
27
+ * complement is only as complete as the set it is taken against, and the design
28
+ * map is not that set whenever the module holds previews no component maps to.
21
29
  */
22
30
  import { argv, cwd, exit, stderr, stdout } from "node:process";
31
+ import { readFile } from "node:fs/promises";
23
32
  import { join, resolve as resolvePath } from "node:path";
24
33
  import { pathToFileURL } from "node:url";
25
34
  import { entryPreviewIds, findAllByCode, loadDesignMap } from "@design-parity/core";
@@ -52,8 +61,20 @@ export function parseArgs(args) {
52
61
  case "--complement":
53
62
  out.complement = true;
54
63
  break;
64
+ case "--preview-universe":
65
+ out.previewUniverse = resolvePath(next() ?? ".");
66
+ break;
55
67
  default:
56
- if (a && !a.startsWith("--"))
68
+ // An unknown `--flag` is rejected rather than ignored, because ignoring
69
+ // it does not skip its VALUE: `--preview-universe path/previews.json` on
70
+ // a CLI predating that flag would fall through here and push the PATH
71
+ // into `components`, so the run would compare a component named after a
72
+ // file and scope the render off a list of one nonexistent handle. A CLI
73
+ // too old for the caller's workflow has to fail loudly.
74
+ if (a?.startsWith("--")) {
75
+ throw new Error(`unknown option: ${a}`);
76
+ }
77
+ if (a)
57
78
  out.components.push(a);
58
79
  }
59
80
  }
@@ -69,11 +90,48 @@ export function parseArgs(args) {
69
90
  export function previewIdsFor(map, code) {
70
91
  return findAllByCode(map, code).flatMap((entry) => entryPreviewIds(entry).map((v) => v.previewId));
71
92
  }
93
+ /**
94
+ * Every preview id the module can draw, read from `--preview-universe`.
95
+ *
96
+ * Accepts either a `compose-preview` discovery manifest (`{"previews":[{"id":…}]}`)
97
+ * or a plain newline-delimited list of ids, so a consumer can point straight at
98
+ * the manifest its discovery pass already wrote instead of reshaping it in shell.
99
+ *
100
+ * Order is the file's, de-duplicated. Callers that need determinism sort the
101
+ * result themselves — the render does not care, and preserving manifest order
102
+ * keeps a hand-written list readable in the log.
103
+ */
104
+ export function parsePreviewUniverse(raw) {
105
+ const trimmed = raw.trim();
106
+ let ids;
107
+ if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
108
+ const parsed = JSON.parse(trimmed);
109
+ const previews = Array.isArray(parsed)
110
+ ? parsed
111
+ : (parsed?.previews ?? []);
112
+ if (!Array.isArray(previews)) {
113
+ throw new Error("preview universe: expected a `previews` array");
114
+ }
115
+ ids = previews.map((p) => typeof p === "string" ? p : String(p?.id ?? ""));
116
+ }
117
+ else {
118
+ ids = trimmed.length === 0 ? [] : trimmed.split("\n");
119
+ }
120
+ return [...new Set(ids.map((id) => id.trim()).filter(Boolean))];
121
+ }
72
122
  export async function main(rawArgs = argv.slice(2)) {
73
- const args = parseArgs(rawArgs);
123
+ let args;
124
+ try {
125
+ args = parseArgs(rawArgs);
126
+ }
127
+ catch (e) {
128
+ stderr.write(`${e instanceof Error ? e.message : String(e)}\n`);
129
+ return 2;
130
+ }
74
131
  if (!args.shard) {
75
132
  stdout.write("design-parity shard --shard <index>/<total> [--repo .] " +
76
- "[--components <code,...>] [--field code|previewId] [--complement]\n");
133
+ "[--components <code,...>] [--field code|previewId] [--complement] " +
134
+ "[--preview-universe <previews.json|ids.txt>]\n");
77
135
  return 2;
78
136
  }
79
137
  // The component universe: whatever was passed, else every component in the
@@ -88,6 +146,28 @@ export async function main(rawArgs = argv.slice(2)) {
88
146
  return 1;
89
147
  }
90
148
  const mine = partitionComponents(components, args.shard);
149
+ // The exclusion list a render step wants: every preview the module can draw
150
+ // MINUS the ones this shard compares. Taken against the module's own preview
151
+ // set, not the design map's — see `Args.previewUniverse` for why the
152
+ // difference is the whole point of the flag.
153
+ if (args.complement && args.field === "previewId" && args.previewUniverse) {
154
+ const universe = parsePreviewUniverse(await readFile(args.previewUniverse, "utf8"));
155
+ const keep = new Set(mine.flatMap((code) => previewIdsFor(map, code)));
156
+ const missing = [...keep].filter((id) => !universe.includes(id));
157
+ if (missing.length > 0) {
158
+ // The map names a preview the module does not draw — the shard would
159
+ // compare a component with no candidate render. Warn rather than fail:
160
+ // the run is still meaningful for the rest of the slice, and a hard exit
161
+ // here would take down a fan-out over one stale annotation.
162
+ stderr.write(`warning: ${missing.length} mapped preview id(s) absent from the ` +
163
+ `preview universe (${missing.slice(0, 5).join(", ")}` +
164
+ `${missing.length > 5 ? ", …" : ""})\n`);
165
+ }
166
+ const excluded = universe.filter((id) => !keep.has(id));
167
+ if (excluded.length > 0)
168
+ stdout.write(excluded.join("\n") + "\n");
169
+ return 0;
170
+ }
91
171
  const selected = args.complement
92
172
  ? [...new Set(components)].sort().filter((c) => !mine.includes(c))
93
173
  : mine;
@@ -1 +1 @@
1
- {"version":3,"file":"shard-cli.js","sourceRoot":"","sources":["../../src/cli/shard-cli.ts"],"names":[],"mappings":";AACA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,CAAC;QAClE,OAAO,CAAC,CAAC;IACX,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;QAC9B,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,IAAI,CAAC;IAET,MAAM,KAAK,GACT,IAAI,CAAC,KAAK,KAAK,WAAW;QACxB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,GAAI,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC,CAAC,QAAQ,CAAC;IAEf,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAC5D,OAAO,CAAC,CAAC;AACX,CAAC;AAED,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1D,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;AACrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-parity/action",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "Integration layer: wires resolver, adapters, candidate, checks, diff, and policy into a parity run, and surfaces the verdict (CLI now; GitHub Action surface to follow).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "ajv": "^8.17.1",
27
- "@design-parity/core": "^0.1.39",
28
- "@design-parity/resolver": "^0.1.39",
29
- "@design-parity/policy": "^0.1.39",
30
- "@design-parity/diff": "^0.1.39",
31
- "@design-parity/report-html": "^0.1.39",
32
- "@design-parity/checks": "^0.1.39",
33
- "@design-parity/candidate": "^0.1.39",
34
- "@design-parity/adapter-figma": "^0.1.39",
35
- "@design-parity/adapter-stitch": "^0.1.39",
36
- "@design-parity/adapter-claude-design": "^0.1.39",
37
- "@design-parity/adapter-bundle": "^0.1.39"
27
+ "@design-parity/core": "^0.1.40",
28
+ "@design-parity/resolver": "^0.1.40",
29
+ "@design-parity/policy": "^0.1.40",
30
+ "@design-parity/diff": "^0.1.40",
31
+ "@design-parity/report-html": "^0.1.40",
32
+ "@design-parity/checks": "^0.1.40",
33
+ "@design-parity/candidate": "^0.1.40",
34
+ "@design-parity/adapter-figma": "^0.1.40",
35
+ "@design-parity/adapter-stitch": "^0.1.40",
36
+ "@design-parity/adapter-claude-design": "^0.1.40",
37
+ "@design-parity/adapter-bundle": "^0.1.40"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",