UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 855 B
import{t as drainGlobalSingletonLifecycleState}from"../global-singleton-DolL9xGt.mjs";import path from"node:path"; //!src/worker/skills-worker-entry.ts try{const[e,t,n,...r]=process.argv.slice(2);if(!e||!t||!n||r.length)throw new Error(`Skills worker requires workspace, home, and operation`);console.log=console.info=(...e)=>console.error(...e);const{serveWorkspaceSkills:i}=await import(`../workspace-worker-J2xR3duw.mjs`);await i({workspace:path.resolve(e),home:path.resolve(t),operation:n,input:process.stdin,output:process.stdout})}catch(e){process.stderr.write(`Skills worker failed: ${String(e)}\n`);process.exitCode=1}finally{process.stdin.destroy();try{await drainGlobalSingletonLifecycleState()}catch(e){process.stderr.write(`Skills worker cleanup failed: ${String(e)}\n`);process.exitCode=1}if(process.connected)process.disconnect?.()}export{};