import type { Logger } from "@onenomad/przm-cortex-core"; /** * Seed the workspace's `self` person from environment variables. The * intended caller is the Cortex Cloud startup path on Fly — pyre-web's * deploy action stamps the owner's identity onto the Fly machine env, * and a freshly-provisioned tenant comes up with `get_user_identity` * already configured. * * Idempotent: if a `self` person already exists in the active * workspace, the seed becomes an upsert that patches the supplied * fields (no surprise overwrites of identity edits the user has * since made via the MCP tool). * * Env contract: * PRZM_CORTEX_SEED_SELF_SLUG required to fire the seed * PRZM_CORTEX_SEED_SELF_NAME required * PRZM_CORTEX_SEED_SELF_EMAIL required * PRZM_CORTEX_SEED_SELF_ROLE optional * PRZM_CORTEX_SEED_SELF_TEAM optional * PRZM_CORTEX_SEED_SELF_TIMEZONE optional * PRZM_CORTEX_SEED_SELF_WORKSPACE optional — workspace slug to seed. * Defaults to the active workspace, or * "personal" when no workspace exists yet * (auto-creates + activates it). * * No-op when PRZM_CORTEX_SEED_SELF_SLUG is unset — self-hosted Cortex * installs don't carry the env vars and continue with the existing * web setup-wizard flow. */ export declare function seedSelfFromEnv(logger: Logger): Promise; //# sourceMappingURL=seed-self.d.ts.map