Dashboardsentrysentry-cli (new TS/Bun) chunk-upload co…

sentry-cli (new TS/Bun) chunk-upload code surface

Category: architecture
Confidence: 0.90
ID: 019db768-e114-7d48-8584-d0b356c7d4a8
Project ID: 702228c8-56bc-4694-8d5a-174ac2f29105
Cross-project: No
Recalled in other projects: 1
Source session: (none)
Created: 2026-07-30 15:46:04
Updated: 2026-07-30 15:46:04

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 12h ago

Content

sentry-cli (new TS/Bun) chunk-upload code surface: Entire pipeline in src/lib/api/sourcemaps.ts (~500 lines). Key exports: ChunkServerOptionsSchema (Zod, camelCase), getChunkUploadOptions, uploadArtifactBundle, pickUploadEncoding (prefers zstd>gzip>plain), encodeChunk. Compression: Bun.zstdCompressSync(buf, {level:3}) for zstd, Node zlib gzip L6. Content-Encoding header passes through prepareHeaders() in sentry-client.ts untouched. Build: bun run builddist-bin/sentry-<platform>. Tests: test/lib/api/sourcemaps.test.ts. All packages must be in devDependencies (CI enforces via bun run check:deps); Bun has native zstd — no new npm dep needed.

Move to: