/** * Agent Workflow Configuration * * All settings are read from environment variables at runtime. * This allows users to configure behavior without updating the SDK package. * * Environment Variables: * ---------------------- * ASTRID_AGENT_CREATE_BRANCH - Create feature branches (default: true) * ASTRID_AGENT_CREATE_PR - Create pull requests (default: true) * ASTRID_AGENT_RUN_TESTS - Run tests before committing (default: true) * ASTRID_AGENT_TEST_COMMAND - Test command to run (default: "npm run predeploy") * * ASTRID_AGENT_VERCEL_DEPLOY - Trigger Vercel preview deployment (default: true) * ASTRID_AGENT_VERCEL_USE_API - Use Vercel API instead of CLI (default: false) * ASTRID_AGENT_PREVIEW_DOMAIN - Domain for preview aliases (default: none, uses Vercel URL) * ASTRID_AGENT_PREVIEW_PATTERN - Subdomain pattern, {branch} is replaced (default: "{branch}") * * VERCEL_TOKEN - Vercel API token (required for deployments) * VERCEL_PROJECT_NAME - Vercel project name (default: auto-detect) * VERCEL_TEAM_ID - Vercel team ID (optional) * * GITHUB_TOKEN - GitHub token for PR creation (required) * GITHUB_REPO - Repository in owner/repo format (auto-detected from git) */ export interface AgentWorkflowConfig { createBranch: boolean; createPR: boolean; branchPrefix: string; runTests: boolean; testCommand: string; vercelDeploy: boolean; vercelUseApi: boolean; vercelToken: string | null; vercelProjectName: string | null; vercelTeamId: string | null; previewDomain: string | null; previewSubdomainPattern: string; githubToken: string | null; githubRepo: string | null; } /** * Get the current agent workflow configuration from environment variables. * Call this at runtime to get the latest config (supports hot-reload of env vars). */ export declare function getAgentWorkflowConfig(): AgentWorkflowConfig; /** * Generate a branch name for a task */ export declare function generateBranchName(taskId: string, config?: AgentWorkflowConfig): string; /** * Generate a preview subdomain from branch name */ export declare function generatePreviewSubdomain(branchName: string, config?: AgentWorkflowConfig): string; /** * Generate full preview URL */ export declare function generatePreviewUrl(branchName: string, vercelUrl?: string, config?: AgentWorkflowConfig): string; /** * Build workflow instructions for the agent prompt based on configuration. * Returns instructions that should be included in the agent's prompt. * * Note: Uses plain text (not markdown) for faster Claude CLI processing. */ export declare function buildWorkflowInstructions(taskId: string, taskTitle: string, config?: AgentWorkflowConfig): string; /** * Validate that required configuration is present for the workflow */ export declare function validateWorkflowConfig(config?: AgentWorkflowConfig): { valid: boolean; errors: string[]; warnings: string[]; }; /** * Log current configuration (for debugging) */ export declare function logWorkflowConfig(config?: AgentWorkflowConfig): void; //# sourceMappingURL=agent-workflow.d.ts.map