Commit 630f4f4
V48 Gate 3 (implementation-only): deposit host selection — InlineHost (dev) / VercelSandboxHost (prod)
Closes the prod-host loose end: resolveDepositPipelineHost now selects the Host implementation. selectDepositHostKind (pure, tested) honors an explicit BITCODE_PIPELINE_HOST, else routes a Vercel serverless runtime (no git/FS) to the sandbox host and a local/dev runtime to the in-process InlineHost. The sandbox path constructs VercelSandboxHost via loadVercelSandboxFactory() (the @vercel/sandbox SDK) with Vercel auth (OIDC-preferred, else access token). resolveDepositPipelineHost is now async; the route awaits it.
Both implement the same primitive, so provisioning is identical downstream: the host clones the full checkout, readWorkspaceSources materializes the verbatim source into the inventory, and measurement reads it — on either host.
selectDepositHostKind unit tests (explicit override, Vercel→sandbox, local→inline); provisioning + route suites 8/8; tsc clean. Prod deposit now rides the sandbox host (its infra — @vercel/sandbox + VERCEL_* creds + git in the sandbox image — is deployment config). Known follow-on: the sandbox workspace reads files per-call (readFileToBuffer); batch via tar for large repos.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 33a6408 commit 630f4f4
3 files changed
Lines changed: 58 additions & 6 deletions
File tree
- uapi
- app/api/deposit/synthesize-options
- lib
- tests/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
61 | 87 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
65 | 93 | | |
66 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
67 | 103 | | |
68 | 104 | | |
69 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
0 commit comments