Commit 6f04299
authored
fix(skills): skip the index on GitHub transport errors instead of failing the build (#108)
PR #95 rewrote the generator and dropped the deploy-safe error handling
from PR #89, so any GitHub outage, 5xx, or exhausted rate limit aborted
the whole production build via bun run generate.
Restore the intended two-tier split:
- Transport errors (fetch network failures, non-ok GitHub responses,
rate limits) are classified as GitHubTransportError. The entrypoint
warns and exits 0, leaving the index absent for that deploy.
- Schema, packaging, validation, and filesystem errors still throw and
fail the build, so a malformed index can never ship.
The script writes nothing before every artifact validates, so skipping
on a transport error leaves no partial output behind.1 parent 9437e27 commit 6f04299
2 files changed
Lines changed: 95 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
285 | 303 | | |
286 | 304 | | |
287 | 305 | | |
| |||
295 | 313 | | |
296 | 314 | | |
297 | 315 | | |
298 | | - | |
| 316 | + | |
299 | 317 | | |
300 | 318 | | |
301 | 319 | | |
| |||
310 | 328 | | |
311 | 329 | | |
312 | 330 | | |
313 | | - | |
| 331 | + | |
314 | 332 | | |
315 | 333 | | |
316 | 334 | | |
317 | | - | |
318 | | - | |
319 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
320 | 339 | | |
321 | 340 | | |
322 | 341 | | |
| |||
332 | 351 | | |
333 | 352 | | |
334 | 353 | | |
335 | | - | |
| 354 | + | |
336 | 355 | | |
337 | 356 | | |
338 | 357 | | |
| |||
364 | 383 | | |
365 | 384 | | |
366 | 385 | | |
367 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
368 | 396 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
0 commit comments