From f31c5717e9744f902a87dce106b421eccdecc0fe Mon Sep 17 00:00:00 2001 From: Andoni Alonso <14891798+andoniaf@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:45:04 +0200 Subject: [PATCH] chore(devex): add worktrunk worktree bootstrap config (#10867) --- .config/wt.toml | 23 +++++++++++++++++++++++ .worktreeinclude | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 .config/wt.toml create mode 100644 .worktreeinclude 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