added opencode integration
This commit is contained in:
parent
0a4f870f67
commit
bfd320c5e9
11 changed files with 58 additions and 21 deletions
33
.github/workflows/opencode.yml
vendored
Normal file
33
.github/workflows/opencode.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
name: opencode
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
pull_request_review_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
opencode:
|
||||||
|
if: |
|
||||||
|
contains(github.event.comment.body, ' /oc') ||
|
||||||
|
startsWith(github.event.comment.body, '/oc') ||
|
||||||
|
contains(github.event.comment.body, ' /opencode') ||
|
||||||
|
startsWith(github.event.comment.body, '/opencode')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
issues: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Run opencode
|
||||||
|
uses: anomalyco/opencode/github@latest
|
||||||
|
env:
|
||||||
|
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
|
||||||
|
with:
|
||||||
|
model: opencode/big-pickle
|
||||||
|
|
@ -1 +1 @@
|
||||||
.ralph/events-20260321-235351.jsonl
|
.ralph/events-20260322-001241.jsonl
|
||||||
|
|
@ -1 +1 @@
|
||||||
primary-20260321-235351
|
primary-20260322-001241
|
||||||
|
|
@ -2,3 +2,4 @@
|
||||||
2026-03-21T23:53:51.588132Z INFO ralph: Spawning subprocess for TUI mode child_args=["-c", "ralph.yml", "-H", "builtin:code-assist", "run", "--rpc"]
|
2026-03-21T23:53:51.588132Z INFO ralph: Spawning subprocess for TUI mode child_args=["-c", "ralph.yml", "-H", "builtin:code-assist", "run", "--rpc"]
|
||||||
2026-03-21T23:53:51.588162Z INFO ralph: TUI subprocess stderr redirected to log file log_file=/home/jimmy/inspection_app_n/prototoolagain/.ralph/diagnostics/logs/ralph-2026-03-22T00-53-51-588-32854.log
|
2026-03-21T23:53:51.588162Z INFO ralph: TUI subprocess stderr redirected to log file log_file=/home/jimmy/inspection_app_n/prototoolagain/.ralph/diagnostics/logs/ralph-2026-03-22T00-53-51-588-32854.log
|
||||||
2026-03-21T23:53:51.588319Z INFO ralph: TUI running in subprocess RPC mode
|
2026-03-21T23:53:51.588319Z INFO ralph: TUI running in subprocess RPC mode
|
||||||
|
2026-03-22T00:09:21.753198Z INFO ralph_tui::app: Ctrl+C detected, signaling abort
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,9 @@
|
||||||
[2m2026-03-21T23:59:04.846344Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Looking for memories at: "/home/jimmy/inspection_app_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
|
[2m2026-03-21T23:59:04.846344Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Looking for memories at: "/home/jimmy/inspection_app_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
|
||||||
[2m2026-03-21T23:59:04.846349Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Successfully loaded 0 memories from store
|
[2m2026-03-21T23:59:04.846349Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Successfully loaded 0 memories from store
|
||||||
[2m2026-03-21T23:59:04.846352Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Memory store is empty - no memories to inject
|
[2m2026-03-21T23:59:04.846352Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Memory store is empty - no memories to inject
|
||||||
|
[2m2026-03-22T00:08:06.435267Z[0m [33m WARN[0m [2mralph::loop_runner[0m[2m:[0m Output indicated `ralph emit`, but no event became readable before fallback logic [3mhat[0m[2m=[0mralph
|
||||||
|
[2m2026-03-22T00:08:06.435436Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Memory injection check: enabled=true, inject=Auto, workspace_root="/home/jimmy/inspection_app_n/prototoolagain"
|
||||||
|
[2m2026-03-22T00:08:06.435450Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Looking for memories at: "/home/jimmy/inspection_app_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
|
||||||
|
[2m2026-03-22T00:08:06.435455Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Successfully loaded 0 memories from store
|
||||||
|
[2m2026-03-22T00:08:06.435458Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Memory store is empty - no memories to inject
|
||||||
|
[2m2026-03-22T00:09:21.753530Z[0m [33m WARN[0m [2mralph::rpc_stdin[0m[2m:[0m Failed to write to stdout, stopping emitter
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
[2m2026-03-22T00:12:41.349334Z[0m [33m WARN[0m [2mralph::loop_runner[0m[2m:[0m Interactive mode requested but stdout is not a TTY, falling back to autonomous
|
||||||
|
[2m2026-03-22T00:12:41.349647Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Memory injection check: enabled=true, inject=Auto, workspace_root="/home/jimmy/inspection_app_n/prototoolagain"
|
||||||
|
[2m2026-03-22T00:12:41.349653Z[0m [32m INFO[0m [2mralph2026-03-22T00:13:10.085278Z INFO ralph_tui::app: Ctrl+C detected, signaling abort
|
||||||
|
_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
|
||||||
|
[2m2026-03-22T00:12:41.349657Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Successfully loaded 0 memories from store
|
||||||
|
[2m2026-03-22T00:12:41.349659Z[0m [32m INFO[0m [2mralph_core::event_loop[0m[2m:[0m Memory store is empty - no memories to inject
|
||||||
|
[2m2026-03-22T00:13:10.085422Z[0m [33m WARN[0m [2mralph::rpc_stdin[0m[2m:[0m Failed to write to stdout, stopping emitter
|
||||||
1
.ralph/events-20260322-001241.jsonl
Normal file
1
.ralph/events-20260322-001241.jsonl
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{"ts":"2026-03-22T00:12:41.349526750+00:00","iteration":0,"hat":"loop","topic":"build.start","triggered":"planner","payload":"You are building a production-ready Inspection Reporting and Management web application from scratch. The GitHub remote URL is: https://github.com/pingud98/prototoolagain.git\n\n---\n\n## TECH STACK\n\n- Language: Python 3.11+\n- Web Framework: Flask (with Flask-Login, Flask-WTF, Flask-SQLAlchemy)\n- Database: SQLite via SQLAlchemy ORM\n- PDF Generation: WeasyPrint (A4-formatted output)\n- TLS/HTTPS: Self-signed certificate via trustme or mkcert for local hosting\n- Frontend: Jinja2 templates + Tailwind CS... [truncated, 7198 chars total]"}
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"pid": 32871,
|
"pid": 36460,
|
||||||
"started": "2026-03-21T23:53:51.590496087Z",
|
"started": "2026-03-22T00:12:41.348212015Z",
|
||||||
"prompt": "You are building a production-ready Inspection Reporting and Management web application from scra..."
|
"prompt": "You are building a production-ready Inspection Reporting and Management web application from scra..."
|
||||||
}
|
}
|
||||||
18
PROMPT.md
18
PROMPT.md
|
|
@ -182,9 +182,6 @@ Buttons:
|
||||||
## GITHUB INSTRUCTIONS
|
## GITHUB INSTRUCTIONS
|
||||||
|
|
||||||
- The repository already exists and has been initialised with prior commits
|
- The repository already exists and has been initialised with prior commits
|
||||||
- Completely discard all prior history
|
|
||||||
- Use git checkout --orphan new-branch, add all files, commit, then force-push to main
|
|
||||||
- Commit message: "Initial commit: Inspection reporting app"
|
|
||||||
- Include a comprehensive README.md with:
|
- Include a comprehensive README.md with:
|
||||||
- Project overview
|
- Project overview
|
||||||
- Requirements (Python version, OS)
|
- Requirements (Python version, OS)
|
||||||
|
|
@ -221,17 +218,8 @@ Build in this order:
|
||||||
9. run.py
|
9. run.py
|
||||||
10. README.md
|
10. README.md
|
||||||
11. .gitignore
|
11. .gitignore
|
||||||
12. GitHub force-push
|
12. GitHub push
|
||||||
|
13. Review code
|
||||||
|
14. Implement any issues from the review.
|
||||||
|
|
||||||
Do not proceed to the next step until the current one is complete and internally consistent.
|
Do not proceed to the next step until the current one is complete and internally consistent.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## NOTES FOR THE OPERATOR
|
|
||||||
|
|
||||||
- WeasyPrint requires system-level dependencies. Install them before running setup.py:
|
|
||||||
Debian/Ubuntu: sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0
|
|
||||||
macOS: brew install pango
|
|
||||||
Windows: See https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# Ralph Orchestrator Configuration
|
# Ralph Orchestrator Configuration
|
||||||
# Generated by: ralph init --backend claude
|
# Generated by: ralph init --backend opencode
|
||||||
# Docs: https://github.com/mikeyobrien/ralph-orchestrator
|
# Docs: https://github.com/mikeyobrien/ralph-orchestrator
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
backend: "claude"
|
backend: "opencode"
|
||||||
|
|
||||||
event_loop:
|
event_loop:
|
||||||
prompt_file: "PROMPT.md"
|
prompt_file: "PROMPT.md"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue