Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ coverage/
# Claude settings
/.claude/settings.local.json

# Local MCP config
/.mcp.local.json

# Please runtime state
.please/state/
.please/memory/tasklist.json
Expand Down
9 changes: 9 additions & 0 deletions .worktreeinclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# .worktreeinclude — gitignored local files copied into new worktrees
# (gitignore syntax; a file is copied only if it matches here AND is gitignored)
.env
.env.*
Comment thread
amondnet marked this conversation as resolved.
apps/*/.env
packages/*/.env
.claude/settings.local.json
.mcp.local.json
Comment thread
amondnet marked this conversation as resolved.
Comment thread
amondnet marked this conversation as resolved.
.turbo/config.json
22 changes: 22 additions & 0 deletions orca.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# orca.yaml — setup script run when Orca creates a worktree.
#
# Orca (a worktree-native IDE for parallel agents) runs scripts.setup whenever it
# creates a new worktree. This file is committed, so the whole team shares it.
#
# Injected environment variables:
# $ORCA_ROOT_PATH — main checkout (root repo) path; the source for copying gitignored local files
# $ORCA_WORKTREE_PATH — the newly created worktree path; the copy target and the setup working directory

scripts:
setup: |
# -u aborts on an unset ORCA_* variable; cd pins every step to the new worktree.
set -eu
cd "$ORCA_WORKTREE_PATH"
# 1. Trust the new worktree's mise.toml (trust is per-path) and install its pinned tools (node, bun).
mise trust --quiet
mise install
# 2. Copy gitignored local files (.env*, .claude/settings.local.json, ...) from the main checkout,
# as listed in .worktreeinclude.
mise exec -- bunx @pleaseai/worktreeinclude@0.1.0 "$ORCA_ROOT_PATH" "$ORCA_WORKTREE_PATH"
# 3. Install dependencies inside the worktree.
mise exec -- bun install
Comment thread
amondnet marked this conversation as resolved.
Loading