Sync the CLI contract with InferenceInfra's Wally Code India API

Merged
SA
10d ago
+27-3

Do not merge yet. Merge order: Runanywhere-monorepo #279 and this PR first, then InferenceInfra #6351 once its consumer-impact gate reruns green.

InferenceInfra #6351 (Wally Code India) adds six control-plane error codes that the CLI contract carries through ApiError:
coding_plan_closed, coding_plan_already_applied, student_email_required, student_email_unverified, student_code_invalid, coding_plan_full. No CLI operation changed.

FileChange
contracts/wally-cli-v1.openapi.jsonRe-vendored from InferenceInfra b80286a6 (feat/coding-plan-applications) with contracts/sync_from_inferenceinfra.py
src/account/console_contract.rsRegenerated: six enum members, new contract hash

Only console.rs reads ApiErrorCode, comparing it to KCardRequired, so behaviour is unchanged.

Validation: ./actor.sh check passed; sync_from_inferenceinfra.py --check lock OK; cargo fmt --check clean. Not run here: the full ./actor.sh build/test/lint (needs the pinned kit).


Summary by cubic

Syncs the CLI contract with InferenceInfra's Wally Code India API, adding six error codes to ApiErrorCode. No CLI operation changes behavior; only console.rs reads ApiErrorCode, comparing against KCardRequired.

Migration

  • Merge order matters: land after Runanywhere-monorepo #279 and before InferenceInfra #6351's consumer-impact gate reruns green.

Summary by CodeRabbit

  • New Features
    • Added API error responses for coding plan applications, including cases where a plan is closed, full, or already applied to.
    • Added error responses for student eligibility checks, covering missing or unverified email addresses and invalid student codes.