@nodii/dev 0.6.135 → 0.6.136
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.js +2 -2
- package/dist/core.js +1 -1
- package/dist/design.js +2 -2
- package/dist/figma.js +6 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -216,8 +216,8 @@ Usage: nodii-dev <command> [options] [--json]
|
|
|
216
216
|
figma submit CHANGE_SET --file SUBMIT.json [--sync] [--dry-run] [--lane-reads FILE]
|
|
217
217
|
# --dry-run (submit and resubmit) runs Dev's dry run of the
|
|
218
218
|
# submit gate on the same body, as design check --change-set; never writes
|
|
219
|
-
# --lane-reads (submit, resubmit, --dry-run): Dev runs
|
|
220
|
-
#
|
|
219
|
+
# --lane-reads (submit, resubmit, --dry-run): Dev runs the gate on your MCP and
|
|
220
|
+
# REST reads as a polled job (no Figma call; --sync answers on the request); it names any read it still needs
|
|
221
221
|
# reads over 8 MB go up to the set in chunks first (hub-310), and a chunk
|
|
222
222
|
# that drops is sent again; the dry run of a submit past 300 node ids
|
|
223
223
|
# runs in parts and reports once
|
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.
|
|
7
|
+
export const VERSION = "0.6.136";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/design.js
CHANGED
|
@@ -482,8 +482,8 @@ function mergedReports(reports) {
|
|
|
482
482
|
*/
|
|
483
483
|
export async function designCheckChangeSet(target, flags, { request = devRequest, send, progress, read = (f) => readFile(f, "utf8"), laneReads, split = false } = {}) {
|
|
484
484
|
const id = flags["change-set"];
|
|
485
|
-
// On the lane's reads Dev
|
|
486
|
-
const sync =
|
|
485
|
+
// On the lane's reads too Dev runs the dry run as a job (hub-448); --sync sends the plain call.
|
|
486
|
+
const sync = submitMode(flags);
|
|
487
487
|
if (id === true || !id) throw new CliError("USAGE", "--change-set needs a change set id, e.g. --change-set CS-123", 2);
|
|
488
488
|
if (target !== undefined) throw new CliError("USAGE", "design check --change-set CS takes no file: Dev checks the set's own items", 2);
|
|
489
489
|
if (flags["figma-version"] === true) throw new CliError("USAGE", "--figma-version needs a version id", 2);
|
package/dist/figma.js
CHANGED
|
@@ -368,9 +368,10 @@ export async function figmaResubmit(id, file, { request = devRequest, read = (f)
|
|
|
368
368
|
}
|
|
369
369
|
const body = assertContext(resubmitPayload(text, file), { resubmit: true, file });
|
|
370
370
|
try {
|
|
371
|
-
// On the lane's reads Dev
|
|
371
|
+
// On the lane's reads Dev runs the gate as a submit job too (hub-448), so
|
|
372
|
+
// they go async like any re-submit; --sync still sends the plain call.
|
|
372
373
|
const reads = await laneReadsBody(id, laneReads, { request, ...(options.progress ? { progress: options.progress } : {}) });
|
|
373
|
-
return await submitCall(id, "resubmit", { ...body, ...reads }, { request, ...options
|
|
374
|
+
return await submitCall(id, "resubmit", { ...body, ...reads }, { request, ...options });
|
|
374
375
|
} catch (error) {
|
|
375
376
|
if (error?.code === "FIGMA_READS_NEEDED") throw laneReadsRefusal(error);
|
|
376
377
|
const say = RESUBMIT_REFUSALS[error?.code];
|
|
@@ -754,10 +755,10 @@ export function checkSubmitPayload(payload, file = "the submit body") {
|
|
|
754
755
|
|
|
755
756
|
export async function figmaSubmit(id, payload, { request = devRequest, file = "the submit body", laneReads, progress, ...options } = {}) {
|
|
756
757
|
checkSubmitPayload(payload, file);
|
|
757
|
-
// On the lane's reads Dev
|
|
758
|
-
|
|
758
|
+
// On the lane's reads Dev runs the gate as a submit job too (hub-448), so
|
|
759
|
+
// they go async like any submit; --sync still sends the plain call.
|
|
759
760
|
const reads = await laneReadsBody(id, laneReads, { request, ...(progress ? { progress } : {}) });
|
|
760
|
-
return changeSetCall(id, (method, path, body) => submitCall(id, "submit", body, { request, ...options, ...(progress ? { progress } : {})
|
|
761
|
+
return changeSetCall(id, (method, path, body) => submitCall(id, "submit", body, { request, ...options, ...(progress ? { progress } : {}) }))(
|
|
761
762
|
"POST", `/api/v1/design/change-sets/${encode(id)}/submit`, { ...payload, ...reads }).catch((error) => {
|
|
762
763
|
throw laneReadsRefusal(error);
|
|
763
764
|
});
|