MCPcopy
hub / github.com/different-ai/openwork / ensureSeed

Function ensureSeed

evals/runner/den-stack.mjs:195–209  ·  view source on GitHub ↗
(log)

Source from the content-addressed store, hash-verified

193}
194
195async function ensureSeed(log) {
196 if (await signInDemoOwner()) {
197 log(`Demo org present (${DEMO_EMAIL})`);
198 return;
199 }
200 log("Seeding demo org (Acme Robotics)...");
201 await run("npx", ["tsx", "scripts/seed-demo-org.ts"], {
202 cwd: join(REPO_ROOT, "ee", "apps", "den-api"),
203 env: { ...process.env, ...DEN_ENV },
204 });
205 if (!(await signInDemoOwner())) {
206 throw new Error("Seed completed but the demo owner still cannot sign in.");
207 }
208 log("Demo org seeded");
209}
210
211async function freeStaleAppPorts(log) {
212 // If CDP is not serving but the dev ports are held, a previous run left a

Callers 1

ensureDenStackFunction · 0.85

Calls 3

signInDemoOwnerFunction · 0.85
runFunction · 0.70
logFunction · 0.50

Tested by

no test coverage detected