{
"_comment": "Worktree setup configuration for Omi parallel agents",
"_comment2": "See https://cursor.com/docs/configuration/worktrees for documentation.",
"_comment3": "ROOT_WORKTREE_PATH points to the root worktree directory",
"setup-worktree": [
"# Use the repository-owned, linked-worktree-safe setup for hooks and the locked backend environment",
"make setup",
"",
"# Copy environment files from root worktree if they exist",
"if [ -f \"$ROOT_WORKTREE_PATH/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/.env\" .env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/backend/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/backend/.env\" backend/.env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/app/.dev.env\" ]; then cp \"$ROOT_WORKTREE_PATH/app/.dev.env\" app/.dev.env; fi"
],
"setup-worktree-unix": [
"# Unix/macOS specific setup commands",
"make setup",
"",
"# Copy environment files",
"if [ -f \"$ROOT_WORKTREE_PATH/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/.env\" .env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/backend/.env\" ]; then cp \"$ROOT_WORKTREE_PATH/backend/.env\" backend/.env; fi",
"if [ -f \"$ROOT_WORKTREE_PATH/app/.dev.env\" ]; then cp \"$ROOT_WORKTREE_PATH/app/.dev.env\" app/.dev.env; fi"
],
"setup-worktree-windows": [
"# Windows specific setup commands (PowerShell)",
"make setup",
"",
"# Copy environment files",
"if (Test-Path \"$env:ROOT_WORKTREE_PATH\\.env\") { Copy-Item \"$env:ROOT_WORKTREE_PATH\\.env\" .env }",
"if (Test-Path \"$env:ROOT_WORKTREE_PATH\\backend\\.env\") { Copy-Item \"$env:ROOT_WORKTREE_PATH\\backend\\.env\" backend\\.env }",
"if (Test-Path \"$env:ROOT_WORKTREE_PATH\\app\\.dev.env\") { Copy-Item \"$env:ROOT_WORKTREE_PATH\\app\\.dev.env\" app\\.dev.env }"
]
}