Skip to content

chore(contract): regenerate types for ora contract 1.41.0 - #94

Merged
liady merged 1 commit into
mainfrom
ccr-2c205559-31t3tt
Nov 14, 2026
Merged

liady merged 1 commit into
mainfrom
ccr-2c205559-31t3tt

Conversation

@liady

@liady liady commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

What

This regenerates src/contract/types.gen.ts and src/contract/version.ts from production ora.ai, which now serves contract 1.41.0 (BUILT_AGAINST moves from 1.40.0 to 1.41.0). The only shape change is that partner keys can now have a daily usage limit as well as the monthly one: GET /api/usage gains a day period next to month, and the usage_limit_reached 429 can carry period: "day". CLI users stop getting the stale-contract warning. A daily-limit refusal already renders as "...for the day", because src/api/shared.ts prints period as given, so no code change is needed. The rest of the diff is regenerated description text and the contractVersion literals.

Why

The scheduled "Contract drift vs production" job has failed on main every day since 2026-11-10, because ora.ai shipped 1.41.0 after #93 regenerated against 1.40.0. Regenerated with pnpm contract:gen. Nothing is hand-edited (AGENTS.md rule 2).

Checks

  • pnpm lint && pnpm typecheck && pnpm test pass locally: pnpm test:ci ran 263 tests, all passed, and skipped the 2 live tests. pnpm build, pnpm smoke and pnpm verify:pack also pass.
  • Behavior change is covered by a test: no behavior change. The new fields are additive and only appear in generated types. The 429 message path that reads period is already covered for the monthly case.

Generated by Claude Code

Production now serves 1.41.0, which adds a daily usage limit for partner
keys (a `day` period on GET /api/usage and period "day" on the
usage_limit_reached 429). Regenerated with pnpm contract:gen to clear the
scheduled contract-drift job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NWyUpEjizn6zSU5ewC9Wis
@liady
liady requested a review from a team as a code owner November 14, 2026 10:23
@liady
liady merged commit b8ddbf9 into main Nov 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants