MCPcopy Create free account
hub / github.com/cloudflare/computer / targetSnapshot

Function targetSnapshot

script/computerd-stub-soak.mjs:179–185  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

177}
178
179async function targetSnapshot(port) {
180 const r = await httpGet(`http://127.0.0.1:${port}/__computerd/stubs`);
181 if (r.statusCode !== 200) {
182 throw new Error(`/__computerd/stubs returned ${r.statusCode}: ${r.body.slice(0, 200)}`);
183 }
184 return JSON.parse(r.body);
185}
186
187// ───────────────────────────────────────────────────────────────────
188// Main

Callers 1

sampleFunction · 0.85

Calls 1

httpGetFunction · 0.85

Tested by

no test coverage detected