@rebasepro/cli 0.29.2 → 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.
|
@@ -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
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
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
|
/**
|
package/dist/index.es.js
CHANGED
|
@@ -126,7 +126,7 @@ async function commandVocabulary(command) {
|
|
|
126
126
|
aliases: {}
|
|
127
127
|
};
|
|
128
128
|
case "cloud": {
|
|
129
|
-
const cloud = await import("./cloud-
|
|
129
|
+
const cloud = await import("./cloud-Cj5ey3l_.js");
|
|
130
130
|
return {
|
|
131
131
|
subcommands: cloud.CLOUD_GROUP_NAMES,
|
|
132
132
|
aliases: cloud.GROUP_ALIASES
|
|
@@ -386,7 +386,7 @@ async function dispatch(command, effectiveSubcommand, args, parsedArgs, namespac
|
|
|
386
386
|
break;
|
|
387
387
|
}
|
|
388
388
|
case "cloud": {
|
|
389
|
-
const { cloudCommand } = await import("./cloud-
|
|
389
|
+
const { cloudCommand } = await import("./cloud-Cj5ey3l_.js");
|
|
390
390
|
await cloudCommand(effectiveSubcommand, args);
|
|
391
391
|
break;
|
|
392
392
|
}
|
|
@@ -395,7 +395,7 @@ async function dispatch(command, effectiveSubcommand, args, parsedArgs, namespac
|
|
|
395
395
|
await telemetryCommand(args);
|
|
396
396
|
break;
|
|
397
397
|
}
|
|
398
|
-
default: unknownCommand(command, namespacedCommands, "", { cloud: (await import("./cloud-
|
|
398
|
+
default: unknownCommand(command, namespacedCommands, "", { cloud: (await import("./cloud-Cj5ey3l_.js")).CLOUD_GROUP_NAMES });
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
/** The global help. Exported so its Options block can be held against {@link ROOT_FLAGS}. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/cli",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.3",
|
|
4
4
|
"description": "Developer tools for Rebase projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"inquirer": "14.0.2",
|
|
45
45
|
"jiti": "^2.7.0",
|
|
46
46
|
"pg": "^8.22.0",
|
|
47
|
-
"@rebasepro/
|
|
48
|
-
"@rebasepro/
|
|
49
|
-
"@rebasepro/
|
|
50
|
-
"@rebasepro/
|
|
51
|
-
"@rebasepro/
|
|
52
|
-
"@rebasepro/server-postgres": "0.29.
|
|
53
|
-
"@rebasepro/types": "0.29.
|
|
47
|
+
"@rebasepro/client": "0.29.3",
|
|
48
|
+
"@rebasepro/agent-skills": "0.29.3",
|
|
49
|
+
"@rebasepro/codegen": "0.29.3",
|
|
50
|
+
"@rebasepro/rls-check": "0.29.3",
|
|
51
|
+
"@rebasepro/server": "0.29.3",
|
|
52
|
+
"@rebasepro/server-postgres": "0.29.3",
|
|
53
|
+
"@rebasepro/types": "0.29.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^26.1.2",
|