vibe-forge 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/forge-spawn.sh +11 -2
- package/package.json +1 -1
package/bin/forge-spawn.sh
CHANGED
|
@@ -48,13 +48,22 @@ spawn_windows_terminal() {
|
|
|
48
48
|
local display_name
|
|
49
49
|
display_name=$(get_agent_display_name "$agent")
|
|
50
50
|
|
|
51
|
+
# Convert FORGE_ROOT to Windows path for wt.exe
|
|
52
|
+
# Git Bash paths like /c/foo become C:/foo
|
|
53
|
+
local win_forge_root
|
|
54
|
+
if [[ "$FORGE_ROOT" =~ ^/([a-zA-Z])/ ]]; then
|
|
55
|
+
win_forge_root="${BASH_REMATCH[1]}:${FORGE_ROOT:2}"
|
|
56
|
+
else
|
|
57
|
+
win_forge_root="$FORGE_ROOT"
|
|
58
|
+
fi
|
|
59
|
+
|
|
51
60
|
# Windows Terminal: open new tab with forge command
|
|
52
61
|
# SECURITY: $agent has already been validated through resolve_agent
|
|
53
62
|
if [[ -n "$GIT_BASH_PATH" ]]; then
|
|
54
63
|
local bash_path="${GIT_BASH_PATH//\//\\}"
|
|
55
|
-
wt.exe new-tab --title "$display_name" "$bash_path" -c "cd
|
|
64
|
+
wt.exe -w 0 new-tab --title "$display_name" "$bash_path" -c "cd \"$win_forge_root\" && ./bin/forge.sh start \"$agent\""
|
|
56
65
|
else
|
|
57
|
-
wt.exe new-tab --title "$display_name" bash -c "cd
|
|
66
|
+
wt.exe -w 0 new-tab --title "$display_name" bash -c "cd \"$win_forge_root\" && ./bin/forge.sh start \"$agent\""
|
|
58
67
|
fi
|
|
59
68
|
log_success "$display_name spawned in new Windows Terminal tab"
|
|
60
69
|
else
|