Commit d3f7689
chore(cli): make BootstrapResult the indexDeployment param + restore upstream call site
Two adjustments:
- indexDeployment param type: OnlineBootstrap → BootstrapResult.
- Entry-point dispatch reverts to upstream's single line:
const results = await bootstrap();
await indexDeployment(results);
For BootstrapResult (the union) to satisfy indexDeployment's upstream-shaped
destructure, OfflineBootstrap declares its missing fields explicitly as
`?: undefined`:
type OfflineBootstrap = {
buildManifest: BuildManifest;
cliApiClient: CliApiClient;
projectRef?: undefined;
deploymentId?: undefined;
};
Bootstrap's offline branch still returns just `{ buildManifest, cliApiClient }`
(no fake "offline" placeholder strings). The optional-undefined declaration
just makes the union type-compatible with the destructure.
Inside indexDeployment three call sites add `!` non-null assertions where
they pass projectRef / deploymentId to the (real) CliApiClient signatures.
Three characters of divergence from upstream; the offline shim ignores
those values either way, and online always has real strings.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 705b608 commit d3f7689
1 file changed
Lines changed: 10 additions & 13 deletions
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | | - | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | | - | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | | - | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
239 | | - | |
| 243 | + | |
240 | 244 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 245 | + | |
0 commit comments