SPB Git

Repository Public Research preview

build-skill.mjs 675 B 9 lines javascript

1// Copies the dependency-free engine from the MCP package into the skill, so both run the same code.2import { copyFileSync, mkdirSync } from "node:fs";3const src = new URL("./mcp/", import.meta.url), dst = new URL("./skill/safari-applescript/", import.meta.url);4mkdirSync(new URL("scripts/lib/", dst), { recursive: true });5for (const f of ["osa.mjs", "safari.mjs", "page.js"]) copyFileSync(new URL(`lib/${f}`, src), new URL(`scripts/lib/${f}`, dst));6copyFileSync(new URL("../anthropic/mcp/LICENSE", import.meta.url), new URL("LICENSE", dst));7copyFileSync(new URL("../anthropic/mcp/LICENSE", import.meta.url), new URL("LICENSE", src));8console.log("skill engine synced");9
Files main
Menu

Theme