Live Run

pi-cyberneticsourcetypescript
Path: pi-cybernetic/examples/live-run.tsRelative: examples/live-run.tsSubproject: pi-cyberneticCategory: cybernetic-examples
Lines: 92Bytes: 3,596Imports: 5Exports: 0

Content Preview

  1. /**
  2. * Live-wire smoke run: real opencode-go model through the full 5-loop harness.
  3. *
  4. * set -a && source /home/mikes/.env && set +a && bun examples/live-run.ts
  5. *
  6. * (`set -a` matters: /home/mikes/.env has no `export` statements, so a plain
  7. * `source` leaves OPENCODE_API_KEY invisible to the bun child process — the
  8. * provider then errors every turn until the Ω turn bound stops the run.)
  9. *
  10. * Read-only filesystem tools, tight Ω bounds, compact digest output.
  11. */
  12. import { readdirSync } fro