Skip to content

Commit 06003c1

Browse files
feat(config): add Jean worktree setup script (#764)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2db0cfb commit 06003c1

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

jean.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"scripts": {
3+
"setup": "bash \"$JEAN_ROOT_PATH/scripts/jean-setup.sh\""
4+
}
5+
}

scripts/jean-setup.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
echo "Setting up Jean worktree..."
5+
6+
# JEAN_ROOT_PATH is set by Jean to the main repo checkout.
7+
# We copy local config files from there into this worktree so each
8+
# worktree can be modified independently.
9+
if [ -z "${JEAN_ROOT_PATH:-}" ]; then
10+
echo " JEAN_ROOT_PATH is not set — skipping config file copy."
11+
else
12+
copy_if_exists() {
13+
local src="$JEAN_ROOT_PATH/$1"
14+
if [ -f "$src" ]; then
15+
mkdir -p "$(dirname "$1")"
16+
cp "$src" "$1"
17+
echo " copied $1"
18+
else
19+
echo " skipped $1 (not found in root)"
20+
fi
21+
}
22+
23+
echo "Copying local config files..."
24+
copy_if_exists "server/application-server/src/main/resources/application-local.yml"
25+
copy_if_exists "server/application-server/src/test/resources/application-live-local.yml"
26+
copy_if_exists "server/application-server/.env"
27+
copy_if_exists "server/intelligence-service/.env"
28+
copy_if_exists "server/webhook-ingest/.env"
29+
copy_if_exists "docker/.env"
30+
copy_if_exists ".claude/settings.local.json"
31+
fi
32+
33+
echo "Installing npm dependencies..."
34+
npm install
35+
36+
echo "✅ Jean worktree setup complete."

0 commit comments

Comments
 (0)