figma-relai 0.7.6 → 0.7.7
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/{chunk-L3JSJSM5.js → chunk-PQGMCFD7.js} +8 -5
- package/dist/chunk-PQGMCFD7.js.map +1 -0
- package/dist/index.js +58 -8
- package/dist/index.js.map +1 -1
- package/dist/{manifest-MDHNEVWO.js → manifest-ASJDLEEP.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-L3JSJSM5.js.map +0 -1
- /package/dist/{manifest-MDHNEVWO.js.map → manifest-ASJDLEEP.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-2H7UOFLK.js";
|
|
12
12
|
|
|
13
13
|
// src/version.ts
|
|
14
|
-
var VERSION = "0.7.
|
|
14
|
+
var VERSION = "0.7.7";
|
|
15
15
|
|
|
16
16
|
// src/server.ts
|
|
17
17
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -2455,10 +2455,10 @@ var ACTIONS2 = {
|
|
|
2455
2455
|
list: ["list_rulesets", []],
|
|
2456
2456
|
save: ["save_ruleset", ["name", "conventions", "fromFile", "autoRestore", "provenance"]],
|
|
2457
2457
|
delete: ["delete_ruleset", ["name"]],
|
|
2458
|
-
link: ["link_ruleset", ["name", "restore"]],
|
|
2458
|
+
link: ["link_ruleset", ["name", "restore", "force"]],
|
|
2459
2459
|
unlink: ["unlink_ruleset", []],
|
|
2460
2460
|
status: ["ruleset_status", []],
|
|
2461
|
-
restore: ["restore_from_ruleset", []],
|
|
2461
|
+
restore: ["restore_from_ruleset", ["force"]],
|
|
2462
2462
|
push: ["push_to_ruleset", []],
|
|
2463
2463
|
promote: ["promote_precedent", ["id"]],
|
|
2464
2464
|
export: ["export_ruleset", ["name"]],
|
|
@@ -2467,7 +2467,7 @@ var ACTIONS2 = {
|
|
|
2467
2467
|
function register17(server, sendCommand) {
|
|
2468
2468
|
server.tool(
|
|
2469
2469
|
"manage_rulesets",
|
|
2470
|
-
"Kits (rulesets) \u2014 named common-ancestor law the plugin keeps on the designer's machine, spanning every file it opens (one designer usually runs one product; its files share the same law). The panel shows this as the KIT row in the connection cluster \u2014 when speaking to the designer, call it a kit, not a ruleset. A file LINKS to one ruleset; the file's own carried conventions stay the working copy. Figma DISCARDS file-carried law on branch\u2192main merges \u2014 a linked ruleset is the recovery: status shows 'file-empty' after a merge, restore (or the set's autoRestore switch) re-seeds it. Actions: list / status (this file's state: in-sync, file-empty, drifted\u2026) / save (name + conventions, or fromFile:true to capture this file's law) / link (optionally restore:true) / unlink / restore (ruleset\u2192file, also seeds promoted precedents) / push (file\u2192ruleset \u2014 the file's law becomes the ancestor) / promote (id \u2014 copy one precedent into the linked ruleset so every linked file inherits it) / delete / export (markdown package with provenance frontmatter) / import (markdown). Pass only the fields the action needs.",
|
|
2470
|
+
"Kits (rulesets) \u2014 named common-ancestor law the plugin keeps on the designer's machine, spanning every file it opens (one designer usually runs one product; its files share the same law). The panel shows this as the KIT row in the connection cluster \u2014 when speaking to the designer, call it a kit, not a ruleset. A file LINKS to one ruleset; the file's own carried conventions stay the working copy. Figma DISCARDS file-carried law on branch\u2192main merges \u2014 a linked ruleset is the recovery: status shows 'file-empty' after a merge, restore (or the set's autoRestore switch) re-seeds it. Actions: list / status (this file's state: in-sync, file-empty, drifted\u2026) / save (name + conventions, or fromFile:true to capture this file's law) / link (optionally restore:true) / unlink / restore (ruleset\u2192file, also seeds promoted precedents; REFUSED when the file's law is newer than the kit's \u2014 status.newer says which side is, and push is usually the fix \u2014 pass force:true to override) / push (file\u2192ruleset \u2014 the file's law becomes the ancestor) / promote (id \u2014 copy one precedent into the linked ruleset so every linked file inherits it) / delete / export (markdown package with provenance frontmatter) / import (markdown). Pass only the fields the action needs.",
|
|
2471
2471
|
{
|
|
2472
2472
|
action: z18.enum(Object.keys(ACTIONS2)),
|
|
2473
2473
|
name: z18.string().optional().describe("Ruleset name (save/link/delete/export; import fallback)"),
|
|
@@ -2476,6 +2476,9 @@ function register17(server, sendCommand) {
|
|
|
2476
2476
|
autoRestore: z18.boolean().optional().describe("save: restore without asking when a linked file's law is found wiped"),
|
|
2477
2477
|
provenance: z18.string().optional().describe("save: where this law comes from (author/repo)"),
|
|
2478
2478
|
restore: z18.boolean().optional().describe("link: immediately restore the ruleset into the file"),
|
|
2479
|
+
force: z18.boolean().optional().describe(
|
|
2480
|
+
"restore/link: replace the file's law even when it is NEWER than the kit's. Without this, a restore that would walk backwards is refused \u2014 say which side you mean to keep."
|
|
2481
|
+
),
|
|
2479
2482
|
id: z18.string().optional().describe("promote: precedent id (list_precedents shows them)"),
|
|
2480
2483
|
markdown: z18.string().optional().describe("import: a ruleset package exported earlier")
|
|
2481
2484
|
},
|
|
@@ -4482,4 +4485,4 @@ export {
|
|
|
4482
4485
|
listToolCatalog,
|
|
4483
4486
|
registerPrompts
|
|
4484
4487
|
};
|
|
4485
|
-
//# sourceMappingURL=chunk-
|
|
4488
|
+
//# sourceMappingURL=chunk-PQGMCFD7.js.map
|