/** * `lobu init --from-org ` — bootstrap a complete, re-appliable project * from an existing Lobu Cloud org. The inverse of `lobu apply`: it reads the * org's full declared state through the apply client and writes a runnable * `lobu.config.ts` (plus the file-convention artifacts it references) that * round-trips back through `loadDesiredStateFromConfig`. * * Contract: `load(initFromOrg(org)) ≈ org`, modulo write-only secrets — provider * keys, auth-profile credentials, and MCP client secrets become `secret("ENV")` * placeholders (listed in `.env.example`), never real values. * * This is the inverse of `map-config.ts`'s `mapAgent` / `mapEntityType` / etc: * server → SDK authoring objects → emitted TypeScript source. */ interface InitFromOrgOptions { /** Target directory to scaffold into (must be empty / not a Lobu project). */ targetDir: string; /** Validated project slug used in generated guidance. */ projectName?: string; /** Validated local gateway port. */ gatewayPort?: string; /** Non-conflicting local worker proxy port. */ workerProxyPort?: string; /** Org slug to bootstrap from (defaults to active session). */ org?: string; /** Server URL override. */ url?: string; /** Test seam — inject fetch. */ fetchImpl?: typeof fetch; } export declare function initFromOrg(opts: InitFromOrgOptions): Promise; export {}; //# sourceMappingURL=bootstrap.d.ts.map