deepflow 0.1.60 → 0.1.62

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.
@@ -461,10 +461,10 @@ run_single_spike() {
461
461
  auto_log "Worktree already exists at ${worktree_path}, reusing"
462
462
  else
463
463
  local wt_err
464
- wt_err="$(git worktree add -b "$branch_name" "$worktree_path" HEAD 2>&1)" || {
464
+ wt_err="$(git -C "$PROJECT_ROOT" worktree add -b "$branch_name" "$worktree_path" HEAD 2>&1)" || {
465
465
  auto_log "worktree add -b failed: ${wt_err}"
466
466
  # Branch may already exist from a previous run
467
- wt_err="$(git worktree add "$worktree_path" "$branch_name" 2>&1)" || {
467
+ wt_err="$(git -C "$PROJECT_ROOT" worktree add "$worktree_path" "$branch_name" 2>&1)" || {
468
468
  auto_log "ERROR: failed to create worktree for ${slug}: ${wt_err}"
469
469
  echo "Worktree error for ${slug}: ${wt_err}" >&2
470
470
  return 1
@@ -1232,6 +1232,15 @@ run_spec_cycle() {
1232
1232
  main() {
1233
1233
  parse_flags "$@"
1234
1234
 
1235
+ # Ensure git repository exists (needed for worktree-based parallel spikes)
1236
+ if ! git -C "$PROJECT_ROOT" rev-parse --git-dir &>/dev/null; then
1237
+ echo "Initializing git repository in ${PROJECT_ROOT}..."
1238
+ git -C "$PROJECT_ROOT" init -q
1239
+ git -C "$PROJECT_ROOT" add -A
1240
+ git -C "$PROJECT_ROOT" commit -q -m "initial commit"
1241
+ auto_log "Auto-initialized git repository in ${PROJECT_ROOT}"
1242
+ fi
1243
+
1235
1244
  auto_log "deepflow-auto started (parallel=${PARALLEL}, hypotheses=${HYPOTHESES}, max_cycles=${MAX_CYCLES}, continue=${CONTINUE}, fresh=${FRESH})"
1236
1245
 
1237
1246
  echo "deepflow-auto: discovering specs..."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepflow",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "description": "Stay in flow state - lightweight spec-driven task orchestration for Claude Code",
5
5
  "keywords": [
6
6
  "claude",