@rebasepro/cli 0.29.1 → 0.29.3

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 (32) hide show
  1. package/dist/{apps-Dg0NnmmJ.js → apps-MKQbgDtN.js} +3 -3
  2. package/dist/{apps-Dg0NnmmJ.js.map → apps-MKQbgDtN.js.map} +1 -1
  3. package/dist/{build-1Zo35L6a.js → build-BuKTnec8.js} +3 -3
  4. package/dist/{build-1Zo35L6a.js.map → build-BuKTnec8.js.map} +1 -1
  5. package/dist/{bundle-CTkzO2WG.js → bundle-BAH4FCju.js} +2 -2
  6. package/dist/{bundle-CTkzO2WG.js.map → bundle-BAH4FCju.js.map} +1 -1
  7. package/dist/{cloud-CFotGK2-.js → cloud-Cj5ey3l_.js} +139 -53
  8. package/dist/cloud-Cj5ey3l_.js.map +1 -0
  9. package/dist/commands/cloud/context.d.ts +1 -1
  10. package/dist/commands/cloud/rebuild-source.d.ts +27 -6
  11. package/dist/{context-DN1b9pCR.js → context-AXdAh-q8.js} +2 -2
  12. package/dist/{context-DN1b9pCR.js.map → context-AXdAh-q8.js.map} +1 -1
  13. package/dist/eject-DABcDnPN.js.map +1 -1
  14. package/dist/{fold-static-vbZJeo37.js → fold-static-BWzxNn06.js} +2 -2
  15. package/dist/{fold-static-vbZJeo37.js.map → fold-static-BWzxNn06.js.map} +1 -1
  16. package/dist/{generate_sdk-DCUUogIP.js → generate_sdk-DNmNuFuW.js} +2 -2
  17. package/dist/{generate_sdk-DCUUogIP.js.map → generate_sdk-DNmNuFuW.js.map} +1 -1
  18. package/dist/index.es.js +11 -11
  19. package/dist/{init-YzfyEffT.js → init-vL1DWOeC.js} +2 -2
  20. package/dist/{init-YzfyEffT.js.map → init-vL1DWOeC.js.map} +1 -1
  21. package/dist/manifest-BtzDy7KQ.js.map +1 -1
  22. package/dist/{normalize-imports-xpSL_GuU.js → normalize-imports-Bd5Y4yLp.js} +2 -2
  23. package/dist/{normalize-imports-xpSL_GuU.js.map → normalize-imports-Bd5Y4yLp.js.map} +1 -1
  24. package/dist/resources/status.d.ts +2 -2
  25. package/dist/{start-28EztR4R.js → start-YOr3X5Zm.js} +2 -2
  26. package/dist/{start-28EztR4R.js.map → start-YOr3X5Zm.js.map} +1 -1
  27. package/dist/status-BREvtzJm.js.map +1 -1
  28. package/package.json +8 -8
  29. package/templates/generated-schemas/blank.ts +8 -8
  30. package/templates/generated-schemas/blog.ts +33 -33
  31. package/templates/generated-schemas/ecommerce.ts +23 -23
  32. package/dist/cloud-CFotGK2-.js.map +0 -1
@@ -754,7 +754,7 @@ export interface CloudRow {
754
754
  * reads are not in one — so every row arrives as an open
755
755
  * `Record<string, unknown>`. A declared `interface` gets no implicit index
756
756
  * signature, so it does not overlap that, and a direct `as` is refused: which
757
- * is how ten call sites came to write `as unknown as XRow[]`, an assertion
757
+ * is how ten call sites came to double-cast to `XRow[]` through `unknown`, an assertion
758
758
  * about a wire payload with nothing checking it in either direction.
759
759
  *
760
760
  * There is exactly one invariant to check and this checks it. Everything else
@@ -31,19 +31,40 @@ export interface SourceListing {
31
31
  projectPath: string;
32
32
  /** Whether git chose the files. */
33
33
  fromGit: boolean;
34
+ /**
35
+ * Files that do not sit at `root/<path>`: the archive path of each file
36
+ * of a repository a link reached, mapped to where it is on disk. See
37
+ * {@link listSourceFiles}.
38
+ */
39
+ sources?: Record<string, string>;
40
+ /** Files whose archive copy differs from the disk: the manifests whose links were pointed at `.rebase-linked/`. */
41
+ contents?: Record<string, string>;
34
42
  }
35
43
  /** `git -C <cwd> …`, returning stdout. Throws when git is missing or refuses. */
36
44
  export type GitRunner = (cwd: string, args: string[]) => string;
45
+ /** The directory, inside the project, that carries the repositories its links reach outside it. */
46
+ export declare const LINKED_DIR = ".rebase-linked";
37
47
  /**
38
48
  * The files a source upload carries, and where they are rooted.
39
49
  *
40
50
  * The project's repository first — or the project walked, outside git. Then
41
51
  * every repository a local `link:`/`file:` dependency reaches outside it, until
42
- * nothing new is reached, rooted together at their deepest common directory.
43
- * That is dadaki's shape: its Rebase project is a repository of its own, nested
44
- * inside the editor's repository (which ignores it), and its frontend links
45
- * `../../packages/editor` from there. A listing of the project's repository
46
- * alone rebuilt into "Rollup failed to resolve import @dadaki/editor".
52
+ * nothing new is reached. That is dadaki's shape: its Rebase project is a
53
+ * repository of its own, and its frontend links `../../packages/editor`, a
54
+ * package of another repository on the same machine. A listing of the
55
+ * project's repository alone rebuilt into "Rollup failed to resolve import
56
+ * @dadaki/editor".
57
+ *
58
+ * Where those repositories sit on this machine says nothing about where they
59
+ * sit in the archive. They used to keep their places, under the deepest
60
+ * directory every one shares — which was `/` for the deploy that ran from a
61
+ * scratch checkout in `/private/tmp` and reached the editor through a symlink:
62
+ * the archive carried two absolute trees, and the link, read in the archive,
63
+ * named nothing, so every platform rebuild failed. So each such repository is
64
+ * carried inside the project, at `.rebase-linked/<name>/` — below it, where the
65
+ * rebuild installs every lockfile it finds, the repository's own included — and
66
+ * every manifest that links into it is pointed there, in the archive's copy
67
+ * only. Nothing on disk changes.
47
68
  *
48
69
  * Paths are resolved through `realpath` first: git reports its top level with
49
70
  * symlinks resolved (`/private/var/…` for a macOS temp directory), and a
@@ -75,7 +96,7 @@ export declare function listContextFiles(dir: string, git?: GitRunner): string[]
75
96
  * archive, as `packBundle` does; GNU tar accepts both. Every path handed to tar
76
97
  * is absolute, because GNU tar resolves a `-T` file after it has applied `-C`.
77
98
  */
78
- export declare function packSource(listing: Pick<SourceListing, "root" | "files">, outPath: string): Promise<void>;
99
+ export declare function packSource(listing: Pick<SourceListing, "root" | "files" | "sources" | "contents">, outPath: string): Promise<void>;
79
100
  /** Upload a source archive; returns the control plane's id for it. */
80
101
  export declare function uploadRebuildSource(url: string, token: string, projectId: string, tarPath: string): Promise<string>;
81
102
  /**
@@ -1688,7 +1688,7 @@ function openUrl(target, label = "Opening") {
1688
1688
  * reads are not in one — so every row arrives as an open
1689
1689
  * `Record<string, unknown>`. A declared `interface` gets no implicit index
1690
1690
  * signature, so it does not overlap that, and a direct `as` is refused: which
1691
- * is how ten call sites came to write `as unknown as XRow[]`, an assertion
1691
+ * is how ten call sites came to double-cast to `XRow[]` through `unknown`, an assertion
1692
1692
  * about a wire payload with nothing checking it in either direction.
1693
1693
  *
1694
1694
  * There is exactly one invariant to check and this checks it. Everything else
@@ -1722,4 +1722,4 @@ function requireCloudRow(row, what) {
1722
1722
  //#endregion
1723
1723
  export { resolveCloudUrl as $, lookupProjectId as A, projectLinkPath as B, grantForLink as C, isKnownControlPlane as D, isJsonMode as E, printGroupHelp as F, requireClient as G, refuseDirectLink as H, printJson as I, requireKnownAction as J, requireCloudRow as K, probeToken as L, noteBlank as M, openUrl as N, keyValues as O, parseCloudArgs as P, resolveCloudTarget as Q, projectDotenvSetsAppKey as R, getContextOrg as S, initOutputMode as T, removeLink as U, readLink as V, reportError as W, requireProjectRef as X, requireProject as Y, requireSessionClient as Z, fail as _, orgCapabilitiesInScopes as _t, billingAccountIdOf as a, storedGrantForLink as at, forgetEphemeralGrant as b, wantsRawError as bt, colorStatus as c, writeLink as ct, displayProjectRef as d, ORG_CAPABILITY_NAMES as dt, resolveProjectRef as et, dotenvSets as f, TOKEN_CAPABILITIES as ft, ephemeralGrantFor as g, isTokenCapability as gt, envToken as h, isOrgCapability as ht, appKeyExpiryNote as i, setCurrentContext as it, note as j, linkedEphemeralGrant as k, confirmDestructive as l, ALWAYS_SCOPES as lt, emitHelp as m, capabilitiesInScopes as mt, GLOBAL_HELP_FLAGS as n, saveEphemeralGrant as nt, cloudRow as o, success as ot, emit as p, TOKEN_CAPABILITY_NAMES as pt, requireInteractive as q, TOKEN_ENV as r, setContextOrg as rt, cloudRows as s, warn as st, GLOBAL_CLOUD_FLAGS as t, resolveTimeoutMs as tt, createCloudClient as u, ORG_CAPABILITIES as ut, fetchDeployTargets as v, scopesForCapabilities as vt, grantProjectOf as w, freshAccessToken as x, fetchTenantBaseDomain as y, scopesForOrgCapabilities as yt, projectHost as z };
1724
1724
 
1725
- //# sourceMappingURL=context-DN1b9pCR.js.map
1725
+ //# sourceMappingURL=context-AXdAh-q8.js.map