MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / list

Function list

apps/host-cloudflare/scripts/preview.ts:304–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302};
303
304const list = async (): Promise<void> => {
305 const scripts = await cfList(`/accounts/${ACCOUNT}/workers/scripts`);
306 const previews = scripts
307 .map((script: any) => String(script.id))
308 .filter((id) => new RegExp(`^${WORKER_PREFIX}\\d+$`).test(id))
309 .map((id) => ({ pr: Number(id.slice(WORKER_PREFIX.length)), name: id }))
310 .sort((a, b) => a.pr - b.pr);
311 process.stdout.write(`${JSON.stringify(previews)}\n`);
312};
313
314// E2e stacks are worker `executor-e2e-<8 hex>` + D1 `…-db` + Access app of the
315// same name; the fixed-name workers are this account's persistent e2e infra.

Callers 1

preview.tsFile · 0.70

Calls 1

cfListFunction · 0.85

Tested by

no test coverage detected