Files
webstudio/packages/http-client
Oleg Isonen d6375096ff fix: improve asset upload retries and diagnostics (#6364)
## Summary
- retry only transient asset upload failures after a short backoff
- return ASSET_UPLOAD_RETRY_EXHAUSTED with retryability and HTTP status
for persistent failures
- preserve successful batch uploads and support retrying the failed JPEG
alone

## Verification
- pnpm --filter @webstudio-is/http-client test -- src/index.test.ts
- pnpm --filter @webstudio-is/http-client typecheck
- pnpm --filter webstudio test -- src/error-codes.test.ts

Fixes #6363
2026-09-10 23:01:51 +02:00
..

Webstudio HTTP Client

Function-call client for Webstudio HTTP and TRPC APIs.

This package owns network details for Builder/project calls so callers do not need route URLs, TRPC procedure paths, auth header names, staged upload details, or response validation details.

  • parsing Builder project URLs
  • project bundle load/import helpers and sync bundle normalization
  • staged uploads, asset uploads, and import-with-assets orchestration
  • project API read/write helpers
  • API compatibility headers and error messages

CLI command names, help text, manuals, and command-specific output formatting belong in the CLI package, not here.