🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/bin/claude-flow-non-interactive

This commit is contained in:
rUv committed 2025-08-06 12:30:26 +00:00
1 parent 6101a328a4
commit d7fcb2d0e6
3 files changed
+46

No files matched your search

+1
View File
@@ -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"}
+1
View File
@@ -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(-) "}
+44
View File
@@ -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