lofting 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -4,7 +4,7 @@ Copy a web page, or a whole site, into Figma as editable layers: frames, text yo
4
4
  layers named after the page's UI components (MUI, shadcn/ui and others).
5
5
 
6
6
  This is Lofting's command line and MCP server. Lofting is also a browser extension for Chrome and Firefox. See
7
- [lofting.dev](https://lofting.dev).
7
+ [lofting.dev](https://lofting.dev). The code is on [GitHub](https://github.com/Matthew-odea/lofting).
8
8
 
9
9
  Needs Node.js 20 or later, and Google Chrome.
10
10
 
package/dist/lofting.mjs CHANGED
@@ -419,7 +419,7 @@ ${clipboard}
419
419
  Saved to ${file}` }] };
420
420
  }
421
421
  async function serve() {
422
- const server = new McpServer({ name: "lofting", version: "0.1.0" });
422
+ const server = new McpServer({ name: "lofting", version: "0.1.1" });
423
423
  server.registerTool("copy_page", {
424
424
  title: "Copy a page into Figma",
425
425
  description: `Opens a web page in a headless Chrome and copies it as Figma layers, named after its UI components (MUI, shadcn/ui and others). ${PASTE} Pages behind a login can't be reached: the browser isn't signed in.`,
@@ -484,7 +484,7 @@ async function main() {
484
484
  allowPositionals: true,
485
485
  options: { site: { type: "boolean" }, pages: { type: "string" }, width: { type: "string" }, out: { type: "string" }, copy: { type: "boolean" }, help: { type: "boolean", short: "h" }, version: { type: "boolean", short: "v" } }
486
486
  });
487
- if (values.version) return console.log("0.1.0");
487
+ if (values.version) return console.log("0.1.1");
488
488
  if (positionals[0] === "mcp") return (await Promise.resolve().then(() => (init_mcp(), mcp_exports))).serve();
489
489
  if (values.help || positionals.length !== 1) {
490
490
  console.log(HELP);