Repository navigation
Expose complete XChat failure codes - #6
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
|
|
Add an event_failure_b64 vector to tests/fixtures/sdk_vectors.json (an unsigned RATE_LIMIT_UPSELL failure carrying the PREMIUM tier, fully deterministic since failure events carry no crypto) and pin the decoded failure type, rate-limit tier, and JSON casing in every binding suite: Rust core, JS/WASM, Python, Go, JVM, and .NET. The generator gains a frame_failure_event helper in the feature-gated internals module, which does not affect the shipped bindings or the committed Go static libs. Also reword the FailureEvent.rate_limit_tier doc comment to describe the tier as backend-populated rather than an SDK-enforced invariant, and give the rateLimitUpsell discriminator value in both JS and PascalCase forms in docs/API.md, matching the section's dual-casing convention.
Summary
RATE_LIMIT_UPSELLfailuresTesting
make ciNotes