@rebasepro/cli 0.20.0 → 0.21.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.
- package/dist/bundle.d.ts +4 -0
- package/dist/commands/build.d.ts +26 -0
- package/dist/commands/cloud/bundle-deploy.d.ts +37 -0
- package/dist/commands/cloud/context.d.ts +54 -0
- package/dist/commands/cloud/databases.d.ts +2 -0
- package/dist/commands/cloud/db-connect.d.ts +70 -0
- package/dist/commands/cloud/projects.d.ts +2 -3
- package/dist/commands/init.d.ts +36 -1
- package/dist/fold-static.d.ts +3 -0
- package/dist/index.es.js +685 -122
- package/dist/index.es.js.map +1 -1
- package/dist/manifest.d.ts +20 -1
- package/dist/telemetry/consent.d.ts +1 -1
- package/package.json +10 -8
- package/templates/template/rebase.json +2 -1
package/dist/manifest.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ManagedCompatibility, type RebaseAppConfig, type RebaseBackendAppConfig, type RebaseProjectManifest } from "@rebasepro/types";
|
|
1
|
+
import { type ManagedCompatibility, type RebaseAppConfig, type RebaseBackendAppConfig, type RebaseProjectManifest, type RebaseStaticAppConfig } from "@rebasepro/types";
|
|
2
2
|
/** Runtime range written into new manifests. */
|
|
3
3
|
export declare const CURRENT_RUNTIME_RANGE = "^1";
|
|
4
4
|
/** Conventional locations, matching what `rebase init` scaffolds. */
|
|
@@ -76,6 +76,25 @@ export declare function findBackendApp(manifest: RebaseProjectManifest): {
|
|
|
76
76
|
name: string;
|
|
77
77
|
app: RebaseBackendAppConfig;
|
|
78
78
|
} | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Where this project mounts the Rebase CMS, if it says.
|
|
81
|
+
*
|
|
82
|
+
* The CMS is a component inside a developer's own app, so its address is a
|
|
83
|
+
* client-side route: no build artifact, no running server and no control plane
|
|
84
|
+
* can observe it. {@link RebaseStaticAppConfig.cms} is the only place that fact
|
|
85
|
+
* is ever written down, and this is the one reader of it — so that "the
|
|
86
|
+
* project's CMS" means the same thing to `rebase dev`, `rebase apps list`, the
|
|
87
|
+
* bundle it builds and the console that shows it.
|
|
88
|
+
*
|
|
89
|
+
* Returns the *serving* app alongside the path, because a caller with a base URL
|
|
90
|
+
* needs to know which app answers there — and because the path alone cannot say
|
|
91
|
+
* whether the CMS is the whole of an app or one route of it.
|
|
92
|
+
*/
|
|
93
|
+
export declare function cmsMountOf(manifest: RebaseProjectManifest): {
|
|
94
|
+
appName: string;
|
|
95
|
+
app: RebaseStaticAppConfig;
|
|
96
|
+
path: string;
|
|
97
|
+
} | undefined;
|
|
79
98
|
/**
|
|
80
99
|
* The app a deploy targets: the one named, or the obvious one.
|
|
81
100
|
*
|
|
@@ -55,6 +55,6 @@ export declare function renderPreview(event: TelemetryEventName, properties: Rec
|
|
|
55
55
|
* CI must behave exactly as it does today, which means not asking and not
|
|
56
56
|
* sending.
|
|
57
57
|
*/
|
|
58
|
-
export declare function promptForConsent(
|
|
58
|
+
export declare function promptForConsent(options?: PromptOptions): Promise<boolean>;
|
|
59
59
|
/** Human-readable current state, for `rebase telemetry status`. */
|
|
60
60
|
export declare function describeState(env?: NodeJS.ProcessEnv): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Developer tools for Rebase projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -43,19 +43,21 @@
|
|
|
43
43
|
"inquirer": "14.0.2",
|
|
44
44
|
"jiti": "^2.7.0",
|
|
45
45
|
"pg": "^8.22.0",
|
|
46
|
-
"@rebasepro/agent-skills": "0.
|
|
47
|
-
"@rebasepro/client": "0.
|
|
48
|
-
"@rebasepro/codegen": "0.
|
|
49
|
-
"@rebasepro/server": "0.
|
|
50
|
-
"@rebasepro/
|
|
51
|
-
"@rebasepro/
|
|
46
|
+
"@rebasepro/agent-skills": "0.21.0",
|
|
47
|
+
"@rebasepro/client": "0.21.0",
|
|
48
|
+
"@rebasepro/codegen": "0.21.0",
|
|
49
|
+
"@rebasepro/server": "0.21.0",
|
|
50
|
+
"@rebasepro/types": "0.21.0",
|
|
51
|
+
"@rebasepro/server-postgres": "0.21.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^26.1.2",
|
|
55
55
|
"@types/pg": "^8.20.0",
|
|
56
|
+
"@types/ws": "^8.18.1",
|
|
56
57
|
"typescript": "^6.0.3",
|
|
57
58
|
"vite": "^8.1.5",
|
|
58
|
-
"vitest": "4.1.10"
|
|
59
|
+
"vitest": "4.1.10",
|
|
60
|
+
"ws": "^8.21.1"
|
|
59
61
|
},
|
|
60
62
|
"files": [
|
|
61
63
|
"bin/",
|