forge-pipeline 0.7.2 → 0.7.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.
Files changed (2) hide show
  1. package/lib/agent.sh +10 -0
  2. package/package.json +1 -1
package/lib/agent.sh CHANGED
@@ -55,6 +55,13 @@ spawn_agent_foreground() {
55
55
  local log_file="${forge_root}/.forge/logs/${name}.log"
56
56
  local done_file="${forge_root}/.forge/status/${name}.done"
57
57
 
58
+ # Touch log file immediately so dashboard can detect the agent
59
+ touch "$log_file"
60
+
61
+ # Write a marker that gets updated every few seconds to keep mtime fresh
62
+ (while [ ! -f "$done_file" ]; do touch "$log_file"; sleep 5; done) &
63
+ local keepalive_pid=$!
64
+
58
65
  cd "$worktree_path" && \
59
66
  claude -p "$(cat /tmp/forge-prompt-"${name}".md)" --output-format text --allowedTools "$allowed_tools" 2>&1 | \
60
67
  while IFS= read -r line; do
@@ -62,6 +69,9 @@ spawn_agent_foreground() {
62
69
  echo "$line" >> "$log_file"
63
70
  done
64
71
 
72
+ # Stop the keepalive
73
+ kill "$keepalive_pid" 2>/dev/null || true
74
+
65
75
  echo "done" > "$done_file"
66
76
  log_agent "$name" "Foreground agent completed"
67
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-pipeline",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Autonomous multi-agent coding pipeline",
5
5
  "bin": {
6
6
  "forge": "./bin/forge.js"