Skip to content

Commit 988dad1

Browse files
authored
Merge pull request #13 from ryanmac/migrate-github-native-state
feat: Migrate to GitHub-native state management (v2.0.0)
2 parents 80a2897 + fc5a4dc commit 988dad1

21 files changed

+2779
-1002
lines changed

.conductor/scripts/archive-completed.py

Lines changed: 312 additions & 171 deletions
Large diffs are not rendered by default.

.conductor/scripts/bootstrap.sh

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ if [ ! -f "$CONFIG_FILE" ]; then
1414
exit 1
1515
fi
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
1831
AGENT_ROLE=${AGENT_ROLE:-$(echo "$1" | tr '[:upper:]' '[:lower:]')}
1932
if [ -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

218235
else
219236
echo "❌ Unexpected task status: $TASK_STATUS"
220237
exit 1
221-
fi
238+
fi

0 commit comments

Comments
 (0)