Skip to content

Commit 4dac832

Browse files
committed
fix(scripts): update orchestrator integration to use spawn-pod.sh
- Change from looking for 'agentic-sdlc-orchestrator' command to finding spawn-pod.sh script - Search for script in multiple locations: - /scripts/spawn-pod.sh - ./scripts/spawn-pod.sh - Relative to installed CLI path - Call script with CLI-style arguments (--task-id, --branch, --repo, --context-dir) - Update warning message to reflect script location instead of pip install - Maintain fallback to standard async delegation if script not found Fixes interface mismatch between spec-kit and orchestrator scripts.
1 parent 36e998a commit 4dac832

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

scripts/bash/implement.sh

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,26 @@ execute_task() {
235235
local branch_name
236236
branch_name=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main")
237237

238-
# Call the orchestrator script if available
239-
if command -v agentic-sdlc-orchestrator &>/dev/null; then
240-
agentic-sdlc-orchestrator spawn \
238+
# Find the orchestrator spawn-pod.sh script
239+
local orchestrator_script=""
240+
if [[ -f "$FEATURE_DIR/scripts/spawn-pod.sh" ]]; then
241+
orchestrator_script="$FEATURE_DIR/scripts/spawn-pod.sh"
242+
elif [[ -f "./scripts/spawn-pod.sh" ]]; then
243+
orchestrator_script="./scripts/spawn-pod.sh"
244+
elif command -v agentic-sdlc-orchestrator &>/dev/null; then
245+
# Try to find spawn-pod.sh relative to the installed CLI
246+
local cli_path
247+
cli_path=$(which agentic-sdlc-orchestrator)
248+
local cli_dir
249+
cli_dir=$(dirname "$cli_path")
250+
if [[ -f "$cli_dir/../scripts/spawn-pod.sh" ]]; then
251+
orchestrator_script="$cli_dir/../scripts/spawn-pod.sh"
252+
fi
253+
fi
254+
255+
if [[ -n "$orchestrator_script" && -f "$orchestrator_script" ]]; then
256+
log_info "Using orchestrator script: $orchestrator_script"
257+
"$orchestrator_script" \
241258
--task-id "$task_id" \
242259
--branch "specs/$(basename "$FEATURE_DIR")/${task_id}-async" \
243260
--repo "$repo_url" \
@@ -250,7 +267,8 @@ execute_task() {
250267
handle_task_failure "$task_id" "Failed to spawn K8s pod"
251268
fi
252269
else
253-
log_warn "agentic-sdlc-orchestrator not installed. Install with: pip install agentic-sdlc-orchestrator"
270+
log_warn "agentic-sdlc-orchestrator script not found. Expected at: ./scripts/spawn-pod.sh"
271+
log_info "Please ensure the agentic-sdlc-orchestrator repository is cloned and scripts are available"
254272
log_info "Falling back to standard async delegation"
255273
# Fall back to standard dispatch_async_task
256274
local task_context="Files: $task_files"

0 commit comments

Comments
 (0)