You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(cli): restore upstream-style param destructure in indexDeployment
The discriminated `OnlineBootstrap | OfflineBootstrap` union forced
indexDeployment's param to stay opaque (`result: BootstrapResult`) and
required `result.mode === "offline"` checks at every branch. Collapse
the union into a single shape with the API-mode fields optional, then
restore upstream's destructured param signature:
async function indexDeployment({
cliApiClient,
projectRef,
deploymentId,
buildManifest,
}: BootstrapResult)
Offline mode is detected by `!cliApiClient` instead of a `mode` tag.
Bootstrap returns `{ buildManifest }` for offline and the full record
for online. The three offline branches (env vars / metadata write /
error write) all use `!cliApiClient` (or pair it with `!deploymentId`
where the type checker needs both narrowed).
Net: same behavior, but `indexDeployment`'s shape now matches upstream.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments