vibe-forge 0.3.2 → 0.3.4
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/cli.js +7 -2
- package/bin/forge-spawn.sh +11 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -228,13 +228,18 @@ async function updateCommand() {
|
|
|
228
228
|
logInfo('Updating Vibe Forge...');
|
|
229
229
|
|
|
230
230
|
try {
|
|
231
|
-
|
|
231
|
+
// Fetch and reset to origin/main - works even without tracking branch
|
|
232
|
+
execSync('git fetch origin', {
|
|
233
|
+
stdio: 'inherit',
|
|
234
|
+
cwd: targetDir,
|
|
235
|
+
});
|
|
236
|
+
execSync('git reset --hard origin/main', {
|
|
232
237
|
stdio: 'inherit',
|
|
233
238
|
cwd: targetDir,
|
|
234
239
|
});
|
|
235
240
|
logSuccess('Update complete');
|
|
236
241
|
} catch {
|
|
237
|
-
logError('Failed to update.
|
|
242
|
+
logError('Failed to update. Check your network connection or try deleting _vibe-forge and running init again.');
|
|
238
243
|
process.exit(1);
|
|
239
244
|
}
|
|
240
245
|
}
|
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 -w 0 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 -w 0 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
|