From d7fcb2d0e657a6a122ce09c6d70b9b1eb4af5579 Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 6 Aug 2025 12:30:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/benchmark/bin/claude-flow-non-interactive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1754483411.json | 1 + .claude/checkpoints/1754483413.json | 1 + benchmark/bin/claude-flow-non-interactive | 44 +++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .claude/checkpoints/1754483411.json create mode 100644 .claude/checkpoints/1754483413.json create mode 100644 benchmark/bin/claude-flow-non-interactive diff --git a/.claude/checkpoints/1754483411.json b/.claude/checkpoints/1754483411.json new file mode 100644 index 0000000000..d5c7163a62 --- /dev/null +++ b/.claude/checkpoints/1754483411.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250806-123011", "file": "/workspaces/claude-code-flow/benchmark/config/non_interactive_defaults.yaml", "timestamp": "2025-08-06T12:30:11Z", "type": "pre-edit", "original_branch": "alpha-88"} diff --git a/.claude/checkpoints/1754483413.json b/.claude/checkpoints/1754483413.json new file mode 100644 index 0000000000..528981af6f --- /dev/null +++ b/.claude/checkpoints/1754483413.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250806-123013", "file": "/workspaces/claude-code-flow/benchmark/config/non_interactive_defaults.yaml", "timestamp": "2025-08-06T12:30:13Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 +++++++++++++ .claude-flow/metrics/task-metrics.json | 6 ++-- .claude/checkpoints/1754483395.json | 1 + .claude/checkpoints/1754483397.json | 1 + benchmark/config/non_interactive_defaults.yaml | 47 ++++++++++++++++++++++++++ claude-flow-wiki | 0 7 files changed, 77 insertions(+), 4 deletions(-) "} diff --git a/benchmark/bin/claude-flow-non-interactive b/benchmark/bin/claude-flow-non-interactive new file mode 100644 index 0000000000..2b6d1965b2 --- /dev/null +++ b/benchmark/bin/claude-flow-non-interactive @@ -0,0 +1,44 @@ +#!/bin/bash +# Claude Flow Non-Interactive Wrapper +# Ensures all claude-flow commands run in non-interactive mode + +# Get the directory where this script is located +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +CLAUDE_FLOW_PATH="${SCRIPT_DIR}/../../claude-flow" + +# Check if claude-flow exists +if [ ! -f "$CLAUDE_FLOW_PATH" ]; then + echo "❌ Error: claude-flow not found at $CLAUDE_FLOW_PATH" + exit 1 +fi + +# Parse command and add non-interactive flags +COMMAND="$1" +shift + +case "$COMMAND" in + "swarm") + # Always add non-interactive flags for swarm + exec "$CLAUDE_FLOW_PATH" swarm "$@" --executor --analysis + ;; + + "hive-mind") + # Always add non-interactive flags for hive-mind + exec "$CLAUDE_FLOW_PATH" hive-mind "$@" --executor --analysis + ;; + + "sparc") + # Add verbose flag for sparc + exec "$CLAUDE_FLOW_PATH" sparc "$@" --verbose + ;; + + "task") + # Add non-interactive flags for task + exec "$CLAUDE_FLOW_PATH" task "$@" --executor + ;; + + *) + # Pass through other commands with executor flag + exec "$CLAUDE_FLOW_PATH" "$COMMAND" "$@" --executor + ;; +esac \ No newline at end of file