Skip to content

Release: Main to build.cloudflare.dev#292

Merged
AshishKumar4 merged 18 commits into
release-livefrom
main
Dec 22, 2025
Merged

Release: Main to build.cloudflare.dev#292
AshishKumar4 merged 18 commits into
release-livefrom
main

Conversation

@AshishKumar4

@AshishKumar4 AshishKumar4 commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

Summary

Release PR merging main to release-live for deployment to build.cloudflare.dev. This release includes version 1.4.0 with significant SDK enhancements (retry logic, blueprint parsing, connection state tracking), improved rate limiting with detailed error messages, and updated model configurations.

Changes

SDK Enhancements (/sdk)

  • HTTP Retry Logic: Added exponential backoff with jitter for transient failures (5xx errors, network issues)
  • Blueprint Utilities: New BlueprintStreamParser for parsing streaming JSON/Markdown blueprints into readable Markdown
  • Timeout Utilities: New withTimeout helper for promise timeout handling
  • Session State Tracking: Enhanced SessionStateStore with connection states (disconnected, connecting, connected) and file generation progress tracking (filesGenerated, currentFile)
  • WebSocket Refactoring: Extracted retry utilities to shared retry.ts module

Worker Improvements (/worker)

  • Rate Limiting Enhancements: Added exceededLimit, limitValue, and periodSeconds to RateLimitResult for better error messaging
  • Model Configuration Updates: Updated AGENT_CONFIG with new model assignments and fallback configurations
  • Inference Handling: Enhanced executeInference with improved model validation and constraint checking

Version Bumps

  • Main package: 1.1.01.4.0
  • SDK package: 0.0.20.0.3

Configuration

  • Updated wrangler.jsonc compatibility date

Motivation

This release consolidates multiple features and improvements from the main branch for production deployment, including improved reliability through retry mechanisms and better user feedback through enhanced rate limiting error messages.

Testing

  • SDK HTTP retry tests added (sdk/test/http.test.ts)
  • Existing test suites should pass
  • Manual testing on staging recommended before production rollout

Breaking Changes

None - all changes are backwards compatible.

Related Issues

See CHANGELOG.md for full list of features, bug fixes, and reverts included in v1.4.0.

AshishKumar4 and others added 18 commits November 30, 2025 15:28
…n--components--vibesdk

chore(main): release 1.2.0
…n--components--vibesdk

chore(main): release 1.3.0
- Add retry module with configurable retry behavior (enabled, delays, max retries)
- Implement exponential backoff with ±20% jitter to prevent thundering herds
- Add HTTP-specific retry defaults (3 retries, 1s-10s delays) vs WebSocket defaults (infinite retries, 1s-30s delays)
- Retry on 5xx server errors and network failures (TypeError), skip 4xx client errors
- Refactor WebSocket connection to use shared retry utilities
- Add comprehensive
…king to SDK

- Add BlueprintStreamParser for handling streaming JSON/Markdown blueprint chunks with graceful partial JSON parsing
- Add blueprintToMarkdown utility to convert Blueprint objects to formatted Markdown
- Add ConnectionState tracking ('disconnected' | 'connecting' | 'connected') to SessionState
- Track filesGenerated count and currentFile path during generation phases
- Add withTimeout utility and TimeoutError for operation
…n--components--vibesdk

chore(main): release 1.4.0
feat: enhance rate limit result with exceeded limit details and limit values
Feat: update model configurations and enhance inference handling
@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file ci/cd worker agent size/L labels Dec 22, 2025
@github-actions

github-actions Bot commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

Claude finished @AshishKumar4's task in 1m 55s —— View job


Code Quality & Security Review

Recommendation: APPROVE

PR Summary

Release PR merging main to release-live (v1.4.0) with SDK enhancements (retry logic, blueprint parsing, connection state tracking), improved rate limiting with detailed error messages, and updated model configurations.

PR Description

  • Updated: Yes
  • Notes: Generated comprehensive description covering all changes, motivation, and testing notes

Addressed Issues

  • See CHANGELOG.md for full feature and bug fix list for v1.4.0

Code Quality

Critical: None

High: None

Medium: None

Low:

  1. sdk/src/blueprint.ts:62 - The regex in extractJsonStringField doesn't handle escaped quotes within JSON strings (\" sequences). This is acceptable for partial JSON extraction where the goal is graceful degradation, not strict parsing.

  2. sdk/src/http.ts:118 - TypeError is used as a proxy for network errors, which is common practice but could theoretically catch other TypeErrors. The implementation is reasonable for SDK usage.


Security

Critical: None

High: None

Medium: None

Low: None

The changes reviewed do not introduce security vulnerabilities:

  • Rate limit enhancements properly sanitize error messages
  • No user input is directly interpolated into sensitive contexts
  • Token handling in HttpClient follows secure patterns with proper caching and expiration checks

Architecture Review

Positive Observations:

  1. DRY Principle Applied - Retry utilities properly extracted to shared sdk/src/retry.ts module, reused by both HTTP client and WebSocket connection
  2. Type Safety - All new code follows strict typing with no any usage
  3. Consistent Patterns - State management in SessionStateStore follows existing event-driven patterns
  4. Good Test Coverage - HTTP retry logic has dedicated tests with edge cases (retries on 5xx, no retry on 4xx, disabled retry)

Model Configuration Changes (worker/agents/inferutils/config.ts):

  • Platform config updated to use Gemini 3 Flash Preview for phase implementation
  • Default config maintains Gemini 2.5 Flash/Pro as fallbacks
  • Changes appear intentional for production optimization

Testing

  • HTTP Retry Tests: Comprehensive coverage added in sdk/test/http.test.ts
  • Recommendation: Run full test suite before deployment (npm test)

Final Recommendation

APPROVE - This release PR consolidates well-tested features from main. Code quality is high, follows project conventions, and introduces no security concerns. The SDK enhancements (retry logic, state tracking) improve reliability and observability for SDK consumers.


Tasks Completed

  • Read CLAUDE.md for project conventions
  • Get PR diff and current description
  • Update PR description
  • Analyze code changes for quality issues
  • Check for security vulnerabilities
  • Post comprehensive review summary

@AshishKumar4
AshishKumar4 merged commit 0a5aad6 into release-live Dec 22, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent ci/cd dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/L worker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant