diff --git a/.config/wt.toml b/.config/wt.toml new file mode 100644 index 0000000000..4690e8d918 --- /dev/null +++ b/.config/wt.toml @@ -0,0 +1,23 @@ +# Prowler worktree automation for worktrunk (wt CLI). +# Runs automatically on `wt switch --create`. + +# Block 1: setup + copy gitignored env files (.envrc, ui/.env.local) +# from the primary worktree — patterns selected via .worktreeinclude. +[[pre-start]] +skills = "./skills/setup.sh --claude" +python = "poetry env use python3.12" +envs = "wt step copy-ignored" + +# Block 2: install Python deps (requires `poetry env use` from block 1). +[[pre-start]] +deps = "poetry install --with dev" + +# Block 3: reminder — last visible output before `wt switch` returns. +# Hooks can't mutate the parent shell, so venv activation is manual. +[[pre-start]] +reminder = "echo '>> Reminder: activate the venv in this shell with: eval $(poetry env activate)'" + +# Background: pnpm install runs while you start working. +# Tail logs via `wt config state logs`. +[post-start] +ui = "cd ui && pnpm install" diff --git a/.worktreeinclude b/.worktreeinclude new file mode 100644 index 0000000000..a9fce75e0f --- /dev/null +++ b/.worktreeinclude @@ -0,0 +1,2 @@ +.envrc +ui/.env.local