Repository navigation
fix(den-api): preserve Gmail draft formatting - #3449
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No new security issues found in this diff (ffe3cdcd1c761f562cfb692a9807da390dd1ecaa). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
benjaminshafii
pushed a commit
that referenced
this pull request
Aug 3, 2026
…ext, storage-free (#3458) Revives #3354 by @reachjalil onto current dev. - apps/server: new openwork-cloud-uploads extension (drive_upload_file, gmail_create_draft_with_attachments) — authorized workspace paths in, multipart FormData out to Den; 4 MiB total enforced before network I/O; realpath containment incl. symlink escapes. - den-api: POST /v1/direct-uploads/google-workspace/{drive-files,gmail-drafts} behind new cloudTransportRoute() (MCP bearer + mcp:write + org membership); bytes forward straight to Google, never persisted. - Removes the model-facing base64 lanes: gmail-draft attachments field and the drive-files base64 upload capability. Gmail draft logic extracted into executeGmailDraft, shared by the JSON capability and the multipart route, preserving dev behavior (#3441 binary read lanes and #3449 formatting kept). - Legacy flow deleted per the frozen corpus; successor proof is evals/specs/google-workspace-direct-uploads.slow.test.ts (real Den boot, mock-Google byte-exact witness, pre-network 413, no bytes in results). - evals/tsconfig.json stops typechecking the frozen flow corpus, fixing the pre-existing red evals:typecheck (FlowContext.page in den-trim-page-headers). Co-authored-by: Jalil <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
pnpm --filter @openwork-ee/den-api exec bun test test/gmail-draft.test.ts— 17 passedpnpm --filter @openwork-ee/den-api exec bun test test/google-workspace-capabilities.test.ts— 34 passedpnpm --dir evals exec node --test packages/labs/test/mock-google.test.ts— 3 passedpnpm --filter @openwork-ee/den-api build— passedpnpm evals:spec— 6 passed, 1 skipped (skill-grant-access, requires configured Infisical service token)pnpm evals:typecheck— pre-existing failure onorigin/dev:evals/flows/den-trim-page-headers.flow.tsreferences missingFlowContext.pageEvidence
This server MIME change has deterministic raw-message, route, and nested Google witness coverage. A live Gmail desktop send was not run because that requires a real external mailbox; the MIME assertions cover the exact serialization boundary changed here.