Automated task orchestration system for YouTrack + Gitea + Woodpecker CI: - runner.py: Main orchestration engine with state machine workflow - agent.py: Claude Code subprocess pool management - youtrack_client.py: YouTrack API wrapper - gitea_client.py: Gitea API + git CLI operations - woodpecker_client.py: CI build monitoring - webhook_server.py: Real-time event handling - prompts/: Agent prompt templates (developer, qa, librarian) Workflow: Ready → In Progress → Build → Verify → Document → Review → Done 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
122 lines
4.0 KiB
Plaintext
122 lines
4.0 KiB
Plaintext
# =============================================================================
|
|
# ClearGrow Agent Runner Configuration
|
|
# Generated: Wed Dec 10 08:08:27 AM MST 2025
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Polling Configuration
|
|
# -----------------------------------------------------------------------------
|
|
poll_interval_seconds: 10
|
|
max_parallel_agents: 10
|
|
agent_timeout_seconds: 1800
|
|
auto_push: true
|
|
health_check_interval: 300
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# YouTrack Configuration
|
|
# -----------------------------------------------------------------------------
|
|
youtrack:
|
|
base_url: https://track.cleargrow.io
|
|
# Admin token (for state transitions)
|
|
token: YOUR_TOKEN_HERE:YOUR_TOKEN_HERE
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Agent-Specific YouTrack Tokens (for comments)
|
|
# -----------------------------------------------------------------------------
|
|
agent_tokens:
|
|
developer: perm:YOUR_TOKEN_HERE
|
|
qa: perm:YOUR_TOKEN_HERE
|
|
librarian: perm:YOUR_TOKEN_HERE
|
|
build: perm:YOUR_TOKEN_HERE
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Gitea Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# IMPORTANT: Add your Gitea token below after creating it!
|
|
gitea:
|
|
base_url: https://git.cleargrow.io
|
|
token: YOUR_TOKEN_HERE
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Woodpecker CI Configuration (for build verification)
|
|
# -----------------------------------------------------------------------------
|
|
woodpecker:
|
|
base_url: https://ci.cleargrow.io
|
|
token: YOUR_TOKEN_HERE.YOUR_JWT_TOKEN_HERE
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Build Type Mapping (Woodpecker repo full names)
|
|
# -----------------------------------------------------------------------------
|
|
build_types:
|
|
controller: cleargrow/controller
|
|
probe: cleargrow/probe
|
|
docs: cleargrow/docs
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Project Configuration
|
|
# -----------------------------------------------------------------------------
|
|
project:
|
|
name: CG
|
|
states:
|
|
triage: Triage
|
|
backlog: Backlog
|
|
ready: Ready
|
|
in_progress: In Progress
|
|
build: Build
|
|
verify: Verify
|
|
document: Document
|
|
review: Review
|
|
done: Done
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Repository Mapping
|
|
# -----------------------------------------------------------------------------
|
|
repos:
|
|
controller:
|
|
name: cleargrow/controller
|
|
path: /opt/repos/controller
|
|
platform: controller
|
|
project: CG
|
|
probe:
|
|
name: cleargrow/probe
|
|
path: /opt/repos/probe
|
|
platform: probe
|
|
project: CG
|
|
docs:
|
|
name: cleargrow/docs
|
|
path: /opt/repos/docs
|
|
platform: docs
|
|
project: CG
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Claude Code Configuration
|
|
# -----------------------------------------------------------------------------
|
|
claude:
|
|
command: claude
|
|
flags:
|
|
- "--allowedTools"
|
|
- "Bash,Read,Write,Edit,MultiEdit"
|
|
- "--permission-mode"
|
|
- "acceptEdits"
|
|
- "--disallowedTools"
|
|
- "Bash(idf.py build),Bash(west build),Bash(make),Bash(cmake)"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Prompt Templates
|
|
# -----------------------------------------------------------------------------
|
|
prompts_dir: ./prompts
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Logging
|
|
# -----------------------------------------------------------------------------
|
|
log_file: /var/log/cleargrow_agent_runner.log
|
|
log_level: INFO
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Webhook Server (Optional)
|
|
# -----------------------------------------------------------------------------
|
|
webhook:
|
|
enabled: true
|
|
host: 0.0.0.0
|
|
port: 8765
|