@rebasepro/cli 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/{agent-setup-D9mHRZ5R.js → agent-setup-0uyfC7VX.js} +3 -3
  2. package/dist/{agent-setup-D9mHRZ5R.js.map → agent-setup-0uyfC7VX.js.map} +1 -1
  3. package/dist/{api-keys-CyJ26KEJ.js → api-keys-Dfw5-9s1.js} +23 -2
  4. package/dist/{api-keys-CyJ26KEJ.js.map → api-keys-Dfw5-9s1.js.map} +1 -1
  5. package/dist/{apps-CnLDV5b6.js → apps-BpYRGOaM.js} +3 -3
  6. package/dist/{apps-CnLDV5b6.js.map → apps-BpYRGOaM.js.map} +1 -1
  7. package/dist/{auth-dII2jCO1.js → auth-DifFaOyq.js} +2 -2
  8. package/dist/{auth-dII2jCO1.js.map → auth-DifFaOyq.js.map} +1 -1
  9. package/dist/{build-Cza7ZQrp.js → build-CS-Z75eK.js} +10 -10
  10. package/dist/build-CS-Z75eK.js.map +1 -0
  11. package/dist/{bundle-C6yEtMJ-.js → bundle-C0IBCVpV.js} +124 -22
  12. package/dist/bundle-C0IBCVpV.js.map +1 -0
  13. package/dist/bundle.d.ts +25 -11
  14. package/dist/{cloud-BdnmqQaZ.js → cloud-nwWkzAHu.js} +381 -47
  15. package/dist/cloud-nwWkzAHu.js.map +1 -0
  16. package/dist/commands/agent-setup.d.ts +2 -0
  17. package/dist/commands/cloud/auth.d.ts +13 -0
  18. package/dist/commands/cloud/bundle-deploy.d.ts +8 -15
  19. package/dist/commands/cloud/context.d.ts +18 -0
  20. package/dist/commands/cloud/guests.d.ts +11 -0
  21. package/dist/commands/cloud/index.d.ts +1 -0
  22. package/dist/commands/cloud/projects.d.ts +4 -0
  23. package/dist/commands/cloud/resources.d.ts +22 -0
  24. package/dist/commands/dev.d.ts +12 -0
  25. package/dist/commands/doctor.d.ts +10 -0
  26. package/dist/commands/schema-reconcile.d.ts +9 -0
  27. package/dist/commands/skills.d.ts +3 -0
  28. package/dist/{context-GUxkZm-S.js → context-DvIUbE-b.js} +39 -5
  29. package/dist/context-DvIUbE-b.js.map +1 -0
  30. package/dist/{dev-DTqVMgB3.js → dev-CzOazEHW.js} +17 -3
  31. package/dist/dev-CzOazEHW.js.map +1 -0
  32. package/dist/{doctor-BRWOlqeG.js → doctor-BuqSHNrd.js} +45 -26
  33. package/dist/doctor-BuqSHNrd.js.map +1 -0
  34. package/dist/doctor-environment.d.ts +7 -19
  35. package/dist/{fold-static-BnAK-anQ.js → fold-static-BMO8LC01.js} +3 -3
  36. package/dist/fold-static-BMO8LC01.js.map +1 -0
  37. package/dist/{generate_sdk-BvcWvoUh.js → generate_sdk-_SQuSbJW.js} +2 -2
  38. package/dist/{generate_sdk-BvcWvoUh.js.map → generate_sdk-_SQuSbJW.js.map} +1 -1
  39. package/dist/index.es.js +24 -24
  40. package/dist/index.es.js.map +1 -1
  41. package/dist/{init-CaU6GhwI.js → init-CHtpYLlh.js} +5 -4
  42. package/dist/init-CHtpYLlh.js.map +1 -0
  43. package/dist/{normalize-imports-D0zXlM6g.js → normalize-imports-BN0fzZS8.js} +2 -2
  44. package/dist/{normalize-imports-D0zXlM6g.js.map → normalize-imports-BN0fzZS8.js.map} +1 -1
  45. package/dist/schema-2A0dd-Bv.js +321 -0
  46. package/dist/schema-2A0dd-Bv.js.map +1 -0
  47. package/dist/schema-reconcile-C3ToVnHr.js +2 -0
  48. package/dist/{skills-BU2flMOy.js → skills-CbwV6vw_.js} +170 -5
  49. package/dist/skills-CbwV6vw_.js.map +1 -0
  50. package/dist/{start-mVb6upwY.js → start-21GRsZKc.js} +2 -2
  51. package/dist/{start-mVb6upwY.js.map → start-21GRsZKc.js.map} +1 -1
  52. package/dist/{storage-DtOXGflp.js → storage-CO9ouK76.js} +2 -2
  53. package/dist/{storage-DtOXGflp.js.map → storage-CO9ouK76.js.map} +1 -1
  54. package/dist/utils/bundle-lock.d.ts +9 -0
  55. package/dist/utils/libpq-url.d.ts +8 -0
  56. package/dist/utils/root-pointer.d.ts +43 -0
  57. package/package.json +8 -8
  58. package/templates/overlays/baas/README.md +2 -2
  59. package/templates/overlays/baas/ai-instructions.md +3 -2
  60. package/templates/overlays/baas/package.json +1 -0
  61. package/templates/overlays/baas/pnpm-workspace.yaml +4 -0
  62. package/templates/template/.cursorrules +10 -0
  63. package/templates/template/.env.example +1 -1
  64. package/templates/template/.github/copilot-instructions.md +10 -0
  65. package/templates/template/.windsurfrules +10 -0
  66. package/templates/template/AGENTS.md +10 -0
  67. package/templates/template/CLAUDE.md +10 -0
  68. package/templates/template/ai-instructions.md +5 -4
  69. package/templates/template/pnpm-workspace.yaml +4 -1
  70. package/dist/build-Cza7ZQrp.js.map +0 -1
  71. package/dist/bundle-C6yEtMJ-.js.map +0 -1
  72. package/dist/cloud-BdnmqQaZ.js.map +0 -1
  73. package/dist/context-GUxkZm-S.js.map +0 -1
  74. package/dist/dev-DTqVMgB3.js.map +0 -1
  75. package/dist/doctor-BRWOlqeG.js.map +0 -1
  76. package/dist/fold-static-BnAK-anQ.js.map +0 -1
  77. package/dist/init-CaU6GhwI.js.map +0 -1
  78. package/dist/schema-BSXwZSiI.js +0 -152
  79. package/dist/schema-BSXwZSiI.js.map +0 -1
  80. package/dist/skills-BU2flMOy.js.map +0 -1
package/dist/bundle.d.ts CHANGED
@@ -54,6 +54,12 @@ export interface BuildBundleResult {
54
54
  * not discover during an incident.
55
55
  */
56
56
  vendor: VendorResult;
57
+ /**
58
+ * Lets another build of this project start. Until then this run holds
59
+ * `outDir`, and only a caller still reading it needs to call this: the lock
60
+ * goes with the process. See `lockBundleBuild`.
61
+ */
62
+ release: () => void;
57
63
  }
58
64
  /**
59
65
  * Whether the compiled config package exports a `storageAuthorize` hook.
@@ -292,19 +298,27 @@ export interface VendorResult {
292
298
  /** Size of the installed tree on disk, when one was installed. */
293
299
  bytes?: number;
294
300
  }
301
+ /** What a bundle that installs at boot costs, for whoever says why it does. */
302
+ export declare const UNVENDORED_COST = "They install on every pod start instead, which is ~40-60s of cold start.";
295
303
  /**
296
- * Where a vendored bundle starts being too big to upload.
304
+ * Why a built bundle's dependencies will install at boot, if they will.
297
305
  *
298
- * The control plane refuses a bundle over 100 MB, and that ceiling is not
299
- * arbitrary or easily raised: its pod has a 512Mi memory limit and the upload
300
- * route holds the body while it writes it, so the cap protects the process that
301
- * also serves the console, deploys and billing. Vendoring is the one change that
302
- * can push a bundle near it.
306
+ * Both commands that build a bundle read this, because a deploy that skipped
307
+ * vendoring looks exactly like one that did not: it goes live, it is healthy, and
308
+ * only every later pod start is a minute slower. A bundle with nothing to install
309
+ * answers `undefined`: it already starts as fast as a vendored one, and warning
310
+ * about it would train people to ignore the warning that matters.
311
+ */
312
+ export declare function unvendoredReason(result: Pick<BuildBundleResult, "manifest" | "vendor">): string | undefined;
313
+ /**
314
+ * Where a vendored bundle starts being too big to upload.
303
315
  *
304
- * So the warning is here, at build time, where the remedy is one flag away —
305
- * rather than at deploy time as a 413 nobody can act on without rebuilding. The
306
- * threshold sits below the real cap because this measures the tree on disk and
307
- * the upload is compressed: crossing it means "getting close", not "will fail".
316
+ * The control plane refuses a bundle over 1 GB, and vendoring is the one thing
317
+ * that can push a bundle near it. So the warning is here, at build time, where
318
+ * the remedy is one flag away, rather than at deploy time as a 413 nobody can
319
+ * act on without rebuilding. The threshold sits below the real cap's 2x floor
320
+ * because this measures the tree on disk and the upload is compressed: crossing
321
+ * it means "getting close", not "will fail".
308
322
  */
309
323
  export declare const VENDOR_SIZE_WARN_BYTES: number;
310
324
  /**
@@ -317,7 +331,7 @@ export declare const VENDOR_SIZE_WARN_BYTES: number;
317
331
  * 40–60s of cold start and produces a bundle that uploads; that is the better
318
332
  * side of the trade to be on by default.
319
333
  *
320
- * 200 MB assumes a **2x** floor on compression, which is pessimistic for a tree
334
+ * 2 GB assumes a **2x** floor on compression, which is pessimistic for a tree
321
335
  * of JavaScript (3–5x is typical) and deliberately so: source maps and prebuilt
322
336
  * binaries compress far worse than source, and the failure this prevents is
323
337
  * asymmetric — a bundle refused at the door versus a minute of cold start.