Repository navigation
Move Google file transfer outside model context - #3353
Closed
reachjalil wants to merge 1 commit into
Closed
reachjalil wants to merge 1 commit into
reachjalil wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Member
Author
|
Closing in favor of a narrower replacement. Product direction: fix the model-facing base64 upload problem with a direct, ephemeral workspace-to-Google transfer only—no file-reference persistence, database migration, conversion behavior, or legacy base64 fallback. The branch is preserved for reference. |
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
Moves Gmail and Google Drive file transfer to one byte-outside-model architecture.
fileRefstorage and authenticated staging/materialization routes.fileReffor Gmail draft attachments and Drive uploads.fileRefplus metadata.convertTobehavior.Product behavior
Office files remain Office files. A
.docx,.xlsx, or.pptxis uploaded with its original bytes, filename, and MIME type. Converting it to a native Google Doc, Sheet, or Slides file remains an explicit user action in Google Drive.The model receives and passes opaque references only. References are scoped to the current organization member, expire after 24 hours, and cannot be reused across members.
Upload paths
<= 5 MiB: Google Drive multipart upload.> 5 MiB: Google Drive resumable upload initialization followed by an exact-byte upload to the returned session URL.Verification
pnpm --filter @openwork-ee/den-db test— 10 passed, 3 environment-dependent tests skipped.pnpm --filter @openwork-ee/den-api exec tsc --noEmit— passed.pnpm --filter openwork-server exec tsc --noEmit— passed.pnpm --filter @openwork-ee/den-api exec bun test test/google-workspace-api.test.ts test/google-workspace-capabilities.test.ts— 45 passed, 223 expectations.pnpm --filter openwork-server exec bun test src/extensions/cloud-files.test.ts— 2 passed, 9 expectations.pnpm evals:typecheck— passed.node evals/runner/run.mjs --mode automation --flow google-workspace-gmail-draft-attachments— passed with Fraimz proof generated.pnpm --filter @openwork-ee/den-api build— passed.pnpm --filter @openwork-ee/den-db db:bootstrapagainst an isolated test database — passed.git diff --check— passed.Scope relative to #3327
This is intentionally based directly on
dev, not #3327. It carries forward the useful finding that inline tool-call base64 is impractical, but does not include that PR'sconvertTobehavior.