Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

chore(plugin): sync packaged skill before smoke runs

Bosche4ba5289eef1
diff --git a/.gitignore b/.gitignore
index ab10d389..65681ae2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,6 +51,7 @@ pinchtab-dev
pinchtab-small
pinchtab.exe
plugins/*/.venv/
+plugin/skills/pinchtab/
tests/e2e/results/*
tests/tools/browserbench/results/
/runner
diff --git a/plugin/package.json b/plugin/package.json
index 55a2d095..1f866675 100644
--- a/plugin/package.json
+++ b/plugin/package.json
@@ -4,6 +4,9 @@
"description": "OpenClaw plugin for PinchTab browser control",
"type": "module",
"scripts": {
+ "sync:skills": "node ./scripts/sync-skills.mjs",
+ "pretest": "npm run sync:skills",
+ "prepack": "npm run sync:skills",
"test": "tsx --test *.test.ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"check": "npm run typecheck && npm test"
@@ -24,6 +27,8 @@
"policy.ts",
"session.ts",
"tools/",
+ "skills/",
+ "scripts/",
"openclaw.plugin.json"
],
"license": "MIT",
diff --git a/plugin/scripts/sync-skills.mjs b/plugin/scripts/sync-skills.mjs
new file mode 100644
index 00000000..5dd9342b
--- /dev/null
+++ b/plugin/scripts/sync-skills.mjs
@@ -0,0 +1,19 @@
+import { cpSync, existsSync, mkdirSync, rmSync } from 'node:fs';
+import { dirname, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const scriptDir = dirname(fileURLToPath(import.meta.url));
+const pluginDir = resolve(scriptDir, '..');
+const sourceDir = resolve(pluginDir, '..', 'skills', 'pinchtab');
+const destinationDir = resolve(pluginDir, 'skills', 'pinchtab');
+
+if (!existsSync(sourceDir)) {
+ console.error(`missing source skill directory: ${sourceDir}`);
+ process.exit(1);
+}
+
+mkdirSync(resolve(pluginDir, 'skills'), { recursive: true });
+rmSync(destinationDir, { recursive: true, force: true });
+cpSync(sourceDir, destinationDir, { recursive: true });
+
+console.log(`synced ${sourceDir} -> ${destinationDir}`);