export type SandboxEnv = { /** * Always "sandbox" in the sandbox environment */ APP_ENV: "sandbox"; FLIPPABLE_ENV: "development" | "test" | "preview" | "production"; /** * The Upstart site ID for the current sandbox */ UP_SITE_ID: string; /** * The Upstart user ID for the current sandbox */ UP_USER_ID: string; /** * The built-in template id used to scaffold the current site * (e.g. "template-default"). Drives template-specific branching in the * sandbox and downstream tooling. */ UP_TEMPLATE_ID: string; /** * Stringified JSON describing the customer's plan, shape: * { code: PlanCode | null, flags: PlanFlags } * Templates parse this once to gate plan-aware features (e.g. branding). */ UP_PLAN: string; /** * The Upstart API token for the current user */ UP_API_TOKEN: string; /** * The Upstart Git token for the current user */ UP_GIT_TOKEN: string; /** * Site URL for the current sandbox */ UP_SITE_URL: string; /** * Public base URL for uploaded assets */ UP_UPLOADS_BASE_URL?: string; /** * The workspace directory for the current sandbox */ WORKSPACE: string; /** * Per-site workspace scratch directory. NOT a POSIX TMPDIR — this is persistent * agent state (tool-results, preview db, todos, lockfiles, screenshots). */ WORKSPACE_TMP: string; /** * The home directory for the current sandbox */ HOME: string; /** * The worktree identifier for the current agent session (the chatSession ID). * The agent's branch is named `wt-{GIT_WORKTREE_ID}` inside the site repo. */ GIT_WORKTREE_ID: string; /** * The system PATH for the current sandbox */ PATH: string; };