gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbf8af0dcbf8af0dcRecords: v1.4 checkedmrebf8af0dc/plugins/fetch/fetch_response.hl

1.3 KB

  1. \* One answered request. Handed back by `fetch()` and by `PendingFetch.response()`
  2. — never `new`ed. Its shape is exactly what the native side builds
  3. (`buildResponse` in fetch.zig): status, ok, url, headers, body, tag, folded in
  4. with `>`.
  5. RESTORED 2026-08-29 (mission 257). `pending_fetch.hl` has always ended in
  6. `r > new FetchResponse()`, but this file was not in the tree — so EVERY
  7. `fetch()` and every `.response()` died with a bare `error.UndefinedVariable`
  8. at `pending_fetch.hl:42`, which is the second half of the wall the creator
  9. hit. It was invisible for the same reason the stale `.so` was: no gate ever
  10. ran a fetch against a server it started itself. *\
  11. Number status = 0 \\ the HTTP status of the final response (after redirects)
  12. Boolean ok = false \\ true for 2xx
  13. String url = '' \\ the FINAL url — the last hop of a redirect chain
  14. Hybrid headers = {} \\ response headers, names LOWERCASED
  15. String body = '' \\ the body as it arrived (empty for a streamed fetch)
  16. String tag = '' \\ whatever `tag` the request carried, echoed back
  17. // The body as a String. The bytes are already here — this is a reader, not a
  18. // second wait — so it is safe to call as often as you like.
  19. text() {
  20. return body
  21. }
  22. // The body parsed as JSON. A body that is not JSON raises, like JSON.parse
  23. // anywhere else; `on Error` catches it.
  24. json() {
  25. return JSON.parse(body)
  26. }

Branches

Latest commits

  • bf8af0dcRecords: v1.4 checkedmre
  • 44af321bRecords: contract v1.4mre
  • 310f3fd0Records: outdated semanticsmre
  • 268ebfe6Records: #11 proven live and closedmre
  • 88e8aad3Records: K11 verified and deployedmre
  • cd4cb09cNo review and status error when the model's tools did not run (kunibert#11)Kunibert
  • a6b54efaStatus updatemre
  • 5a72268eRecords: #4-#10 done, #11 started, review package on #1mre
  • 194c7da6Records: real proof greenmre
  • cdfa94a9Records: AppArmor profile for the review sandboxmre
  • c1bf02d8Status: sandbox blockermre
  • 88aaacc5Records: real proof part 2 (posting works, sandbox blocked by AppArmor userns)mre
  • 401df4e8Records: review user logged inmre
  • 6ca681b3Records: login command, status cleanupmre
  • 6b8d763cRecords: review user, device login startedKunibert
  • 07025b99Open the job worktree read-only for the review user before each model runKunibert
  • 2a44bd54Runner CLI: --review-user/--codex-bin/--work-dir work in every modeKunibert
  • 2177f66fReview model runs as its own unix user (reviewUser, codexBin, workDir)Kunibert
  • 35df8306Records: live service on byrodin, real proof part 1Kunibert
  • 7480a98dkunibert.service: SIGTERM stop is a clean exitKunibert