@@ -14,6 +14,19 @@ if [ ! -f "$CONFIG_FILE" ]; then
1414 exit 1
1515fi
1616
17+ # Check for GitHub CLI
18+ if ! command -v gh & > /dev/null; then
19+ echo " ❌ GitHub CLI (gh) not found. Please install it first:"
20+ echo " https://cli.github.com/"
21+ exit 1
22+ fi
23+
24+ # Check GitHub authentication
25+ if ! gh auth status > /dev/null 2>&1 ; then
26+ echo " ❌ GitHub CLI not authenticated. Run 'gh auth login' first."
27+ exit 1
28+ fi
29+
1730# Determine agent role
1831AGENT_ROLE=${AGENT_ROLE:- $(echo " $1 " | tr ' [:upper:]' ' [:lower:]' )}
1932if [ -z " $AGENT_ROLE " ] || [ " $AGENT_ROLE " = " unknown" ]; then
@@ -77,7 +90,9 @@ if [ "$TASK_STATUS" = "IDLE" ]; then
7790 echo " "
7891 echo " 💡 To create tasks:"
7992 echo " - Create a GitHub Issue with 'conductor:task' label"
80- echo " - Or manually add tasks to .conductor/workflow-state.json"
93+ echo " - Or use: gh issue create --label 'conductor:task' --title 'Task title' --body 'Description'"
94+ echo " "
95+ echo " 📋 View all tasks: gh issue list -l 'conductor:task'"
8196 echo " "
8297 echo " 🔄 Check back later when new tasks are available."
8398 exit 0
@@ -206,16 +221,18 @@ except:
206221 echo " "
207222 echo " 📚 Task Resources:"
208223 echo " - Role guide: $ROLE_FILE "
209- echo " - System state: .conductor/workflow-state.json"
210- echo " - Task specs: Check task description for documentation links"
224+ echo " - View task: gh issue view $TASK_ID "
225+ echo " - Add progress: gh issue comment $TASK_ID --body 'Progress update...'"
226+ echo " - View all tasks: gh issue list -l 'conductor:task'"
211227
212228 echo " "
213229 echo " 💡 Pro Tips:"
214230 echo " - Commit frequently with clear messages"
215231 echo " - Run tests before pushing"
216- echo " - Update task status via PR description"
232+ echo " - Update task progress via issue comments"
233+ echo " - Complete task: gh issue close $TASK_ID "
217234
218235else
219236 echo " ❌ Unexpected task status: $TASK_STATUS "
220237 exit 1
221- fi
238+ fi
0 commit comments