MCPcopy Create free account
hub / github.com/acoyfellow/cloudbox / assertVerify

Function assertVerify

src/run.ts:68–72  ·  view source on GitHub ↗
(verify: string[])

Source from the content-addressed store, hash-verified

66}
67
68function assertVerify(verify: string[]) {
69 if (!Array.isArray(verify) || verify.length === 0 || verify.some((cmd) => !cmd.trim())) {
70 throw new CloudboxRunError("invalid_verify", "verify must contain at least one command");
71 }
72}
73
74function tail(s: string, max = 4000) {
75 return s.length > max ? s.slice(-max) : s;

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected