| |
| |
| |
| |
|
|
| |
| |
| |
|
|
| |
| |
| |
| |
| export const API_BASE_URL = process.env.TEST_SERVER_PORT |
| ? `http://127.0.0.1:${process.env.TEST_SERVER_PORT}` |
| : 'http://127.0.0.1:3108'; |
|
|
| |
| |
| |
| |
| export const WEB_BASE_URL = process.env.TEST_PORT |
| ? `http://127.0.0.1:${process.env.TEST_PORT}` |
| : 'http://127.0.0.1:3107'; |
|
|
| |
| |
| |
| export const API_ENDPOINTS = { |
| worktree: { |
| create: `${API_BASE_URL}/api/worktree/create`, |
| delete: `${API_BASE_URL}/api/worktree/delete`, |
| list: `${API_BASE_URL}/api/worktree/list`, |
| commit: `${API_BASE_URL}/api/worktree/commit`, |
| switchBranch: `${API_BASE_URL}/api/worktree/switch-branch`, |
| listBranches: `${API_BASE_URL}/api/worktree/list-branches`, |
| status: `${API_BASE_URL}/api/worktree/status`, |
| info: `${API_BASE_URL}/api/worktree/info`, |
| }, |
| fs: { |
| browse: `${API_BASE_URL}/api/fs/browse`, |
| read: `${API_BASE_URL}/api/fs/read`, |
| write: `${API_BASE_URL}/api/fs/write`, |
| }, |
| features: { |
| list: `${API_BASE_URL}/api/features/list`, |
| create: `${API_BASE_URL}/api/features/create`, |
| update: `${API_BASE_URL}/api/features/update`, |
| delete: `${API_BASE_URL}/api/features/delete`, |
| }, |
| } as const; |
|
|
| |
| |
| |
|
|
| |
| |
| |
| export const TIMEOUTS = { |
| |
| default: 5000, |
| |
| short: 2000, |
| |
| medium: 10000, |
| |
| long: 30000, |
| |
| extraLong: 60000, |
| |
| animation: 300, |
| |
| settle: 500, |
| |
| network: 1000, |
| } as const; |
|
|
| |
| |
| |
|
|
| |
| |
| |
| export const TEST_IDS = { |
| |
| sidebar: 'sidebar', |
| navBoard: 'nav-board', |
| navSpec: 'nav-spec', |
| navContext: 'nav-context', |
| navAgent: 'nav-agent', |
| settingsButton: 'settings-button', |
| openProjectButton: 'open-project-button', |
|
|
| |
| boardView: 'board-view', |
| specView: 'spec-view', |
| contextView: 'context-view', |
| agentView: 'agent-view', |
| settingsView: 'settings-view', |
| welcomeView: 'welcome-view', |
| dashboardView: 'dashboard-view', |
| setupView: 'setup-view', |
|
|
| |
| addFeatureButton: 'add-feature-button', |
| addFeatureDialog: 'add-feature-dialog', |
| confirmAddFeature: 'confirm-add-feature', |
| featureBranchInput: 'feature-input', |
| featureCategoryInput: 'feature-category-input', |
| worktreeSelector: 'worktree-selector', |
|
|
| |
| specEditor: 'spec-editor', |
|
|
| |
| pathInput: 'path-input', |
| goToPathButton: 'go-to-path-button', |
|
|
| |
| contextFileList: 'context-file-list', |
| addContextButton: 'add-context-button', |
| } as const; |
|
|
| |
| |
| |
|
|
| |
| |
| |
| export const CSS_SELECTORS = { |
| |
| codeMirrorContent: '.cm-content', |
| |
| dialog: '[role="dialog"]', |
| |
| toast: '[data-sonner-toast]', |
| toastError: '[data-sonner-toast][data-type="error"]', |
| toastSuccess: '[data-sonner-toast][data-type="success"]', |
| |
| commandInput: '[cmdk-input]', |
| |
| dialogOverlay: '[data-radix-dialog-overlay]', |
| } as const; |
|
|
| |
| |
| |
|
|
| |
| |
| |
| export const STORAGE_KEYS = { |
| appStorage: 'automaker-storage', |
| setupStorage: 'automaker-setup', |
| } as const; |
|
|
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| export function sanitizeBranchName(branchName: string): string { |
| return branchName.replace(/[^a-zA-Z0-9_-]/g, '-'); |
| } |
|
|
| |
| |
| |
|
|
| |
| |
| |
| export const DEFAULTS = { |
| projectName: 'Test Project', |
| projectPath: '/mock/test-project', |
| theme: 'dark' as const, |
| maxConcurrency: 3, |
| } as const; |
|
|