graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Release v0.302.35
justrachfe840b1544e2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f1d72ac2..06c1bc40 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,18 @@ The release workflow uses a tag's section here as its release notes (ahand-written `docs/releases/<tag>.md` wins if present), so keeping this filecurrent is part of cutting a release.+## v0.302.35++### Hosted gateway++- Gateway models are priced from the gateway's own catalog, which now publishes each model's rate. A model the gateway adds is priced on day one, and a changed rate bills correctly without a graff release; the baked snapshot stays the offline fallback (#1631).+- `graff models` shows gateway models at the gateway's rate. It had looked them up by their direct-provider price, so many showed `(unpriced)` or the wrong number (#1631).++### Models++- `--model` on a model whose direct provider has no credential now also names the hosted route, `--model codegraff/<model>`, when the gateway serves it (#1630).+- Flag errors say `graff --help` (#1631).+## v0.302.34### Google Geminidiff --git a/docs/releases/v0.302.35.md b/docs/releases/v0.302.35.mdnew file mode 100644index 00000000..44b5ec4c--- /dev/null+++ b/docs/releases/v0.302.35.md@@ -0,0 +1,28 @@+# Codegraff v0.302.35++Hosted-gateway models are priced from the gateway itself.++## Prices come from the gateway++The hosted gateway's model list now carries each model's price. graff used to+price gateway models from a snapshot baked into each release, so a model the+gateway added showed as unpriced, and a changed rate kept billing at the old one+until the next graff release. graff now reads the price from the catalog it+already fetches, for the session meter and for `graff models`, and keeps the+snapshot as the offline fallback.++`graff models` also listed gateway models under their direct-provider price, so+many showed `(unpriced)` or the wrong rate. It now shows what the gateway+charges.++## Clearer model errors++A model whose direct provider has no credential still fails rather than+switching to the gateway on its own, but the error now names the hosted route+when the gateway serves the model:++```+'<model>' is served by <provider>, which has no valid credential — run `graff login <provider>`, or use your Codegraff sign-in with `--model codegraff/<model>`+```++Flag errors now say `graff --help`.diff --git a/scripts/eval/tier1-manifest.json b/scripts/eval/tier1-manifest.jsonindex 13016b2b..2dde2137 100644--- a/scripts/eval/tier1-manifest.json+++ b/scripts/eval/tier1-manifest.json@@ -14,7 +14,7 @@"src/main.zig","src/repl.zig"],- "test_count_baseline": 3248,+ "test_count_baseline": 3252,"test_count_slack": 25,"required_invariants": [{diff --git a/src/cli.zig b/src/cli.zigindex 79970d68..cfa1eef6 100644--- a/src/cli.zig+++ b/src/cli.zig@@ -24,6 +24,11 @@ const update_target = @import("update_target.zig");pub const changelog_text =\\What's new\\──────────+ \\0.302.35+ \\ • gateway models are priced from the gateway itself; new models show their cost+ \\ • graff models shows each gateway model's real rate+ \\ • a model without its provider's login names --model codegraff/<model>+ \\\\0.302.34\\ • Gemini API key sign-in works again\\ • Gemini 4 Argon shows its cost; /effort minimal runs as low on Gemini