openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.1 kB
JavaScript
import{i as e}from"./fs-safe-copy.worker-path-existence-DvAA8vT7.mjs";import{n as t}from"./fs-safe-copy.worker-path-guards-CHyQsMxp.mjs";var SandboxStateOwnerRequiredError=class extends Error{constructor(e){super(`Sandbox workspace preparation cannot run alongside a foreign live owner of the selected state root, or when that ownership cannot be verified. Run this SDK call inside the owning Gateway plugin/runtime, or stop the Gateway through its service owner and wait for any embedded run to finish, then retry offline. Inspect openclaw gateway status; this call does not acquire ownership or route remotely.`,{cause:e}),this.code=`GATEWAY_STATE_OWNER_REQUIRED`,this.name=`SandboxStateOwnerRequiredError`}};function assertCanonicalPath(e,n){let r=process.platform===`win32`?t:String;if(r(n)!==r(e.canonicalPath))throw new SandboxStateOwnerRequiredError(/* @__PURE__ */ Error(`Sandbox state path changed while preparing an operation`))}function assertSandboxStateOwnerPathCurrent(t){assertCanonicalPath(t,e(t.path))}export{assertSandboxStateOwnerPathCurrent as n,SandboxStateOwnerRequiredError as t};