@nodii/dev 0.6.110 → 0.6.112
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 +1 -1
- package/dist/figma.js +9 -2
- package/package.json +1 -1
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.112";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/figma.js
CHANGED
|
@@ -912,6 +912,12 @@ export function figmaPublishPlanText(plan) {
|
|
|
912
912
|
const leave = plan.leaveUnchecked ?? [];
|
|
913
913
|
return [
|
|
914
914
|
`Publish plan for ${plan.fileKey}${plan.sinceVersion ? ` (changes since version ${plan.sinceVersion})` : ""}`,
|
|
915
|
+
...(plan.readBy === "lane"
|
|
916
|
+
? [
|
|
917
|
+
"Read by this lane: Dev ran no job and made no Figma call; it checked the lane's reads and planned from them.",
|
|
918
|
+
...(plan.restReads?.length ? ["REST reads made in this session, on its own token:", ...plan.restReads.map((r) => ` ${r}`)] : []),
|
|
919
|
+
]
|
|
920
|
+
: []),
|
|
915
921
|
`publish (${publish.length}): sets awaiting publish`,
|
|
916
922
|
...(publish.length ? publish.map(planLine) : [" nothing awaiting publish"]),
|
|
917
923
|
`leave unchecked (${leave.length}): sets still editing or in review`,
|
|
@@ -1021,7 +1027,7 @@ export function laneReadsRefusal(error) {
|
|
|
1021
1027
|
if (error?.code !== "FIGMA_READS_NEEDED") return error;
|
|
1022
1028
|
const ids = error.details?.nodeIds ?? [];
|
|
1023
1029
|
const next = error.details?.read === "base"
|
|
1024
|
-
? "Compare each with the set's base, add it to base.atBase or base.offBase in the lane-reads file, and say how in base.how. Then send this again."
|
|
1030
|
+
? "Compare each with the set's base, add it to base.atBase or base.offBase in the lane-reads file (base.absent if the base version didn't have it, such as the component a create made), and say how in base.how. Then send this again."
|
|
1025
1031
|
: ids.length
|
|
1026
1032
|
? `Add them with the MCP: nodii-dev figma lane-reads-script --nodes ${ids.join(",")}\nThen send this again.`
|
|
1027
1033
|
: "This check has no MCP path yet: tell the Steward (hub-295).";
|
|
@@ -1036,7 +1042,8 @@ export function laneReadsScript(nodes) {
|
|
|
1036
1042
|
if (!ids.length) throw new CliError("USAGE", "figma lane-reads-script --nodes ID[,ID]", 2);
|
|
1037
1043
|
return `// Run through the Figma MCP's use_figma. It only reads. Set figmaVersion in the
|
|
1038
1044
|
// result to the version you read at (for a new claim, the file's newest version), and add
|
|
1039
|
-
// base: { atBase, offBase, how } if Dev asks for a base comparison
|
|
1045
|
+
// base: { atBase, offBase, absent, how } if Dev asks for a base comparison (absent: not in
|
|
1046
|
+
// the file at the set's base version).
|
|
1040
1047
|
const ids = ${JSON.stringify(ids)};
|
|
1041
1048
|
const nodes = [];
|
|
1042
1049
|
const gone = [];
|