openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
22 lines (21 loc) • 746 B
JavaScript
import path from "node:path";
//#region src/worker/skills-worker-entry.ts
try {
const [workspace, home, operation, ...extra] = process.argv.slice(2);
if (!workspace || !home || !operation || extra.length) throw new Error("Skills worker requires workspace, home, and operation");
console.log = console.info = (...values) => console.error(...values);
const { serveWorkspaceSkills } = await import("../workspace-worker-DczIhMq3.mjs");
await serveWorkspaceSkills({
workspace: path.resolve(workspace),
home: path.resolve(home),
operation,
input: process.stdin,
output: process.stdout
});
process.exit(0);
} catch (error) {
process.stderr.write(`Skills worker failed: ${String(error)}\n`);
process.exit(1);
}
//#endregion
export {};