@rebasepro/cli 0.20.0 → 0.20.1-canary.g4d882ca

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.
@@ -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(event: TelemetryEventName, properties: Record<string, unknown>, options?: PromptOptions): Promise<boolean>;
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.20.0",
3
+ "version": "0.20.1-canary.g4d882ca",
4
4
  "description": "Developer tools for Rebase projects",
5
5
  "keywords": [
6
6
  "cli",
@@ -43,12 +43,12 @@
43
43
  "inquirer": "14.0.2",
44
44
  "jiti": "^2.7.0",
45
45
  "pg": "^8.22.0",
46
- "@rebasepro/agent-skills": "0.20.0",
47
- "@rebasepro/client": "0.20.0",
48
- "@rebasepro/codegen": "0.20.0",
49
- "@rebasepro/server": "0.20.0",
50
- "@rebasepro/server-postgres": "0.20.0",
51
- "@rebasepro/types": "0.20.0"
46
+ "@rebasepro/client": "0.20.1-canary.g4d882ca",
47
+ "@rebasepro/codegen": "0.20.1-canary.g4d882ca",
48
+ "@rebasepro/agent-skills": "0.20.1-canary.g4d882ca",
49
+ "@rebasepro/server-postgres": "0.20.1-canary.g4d882ca",
50
+ "@rebasepro/server": "0.20.1-canary.g4d882ca",
51
+ "@rebasepro/types": "0.20.1-canary.g4d882ca"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^26.1.2",
@@ -11,7 +11,8 @@
11
11
  "root": "frontend",
12
12
  "build": "npm run build --workspace frontend",
13
13
  "output": "frontend/dist",
14
- "path": "/"
14
+ "path": "/",
15
+ "cms": "/"
15
16
  }
16
17
  }
17
18
  }