@rebasepro/cli 0.19.1 → 0.19.2-canary.g09316f6
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/index.es.js +83 -36
- package/dist/index.es.js.map +1 -1
- package/dist/telemetry/consent.d.ts +25 -3
- package/package.json +7 -7
- package/templates/overlays/baas/backend/package.json +1 -1
- package/templates/overlays/baas/config/package.json +1 -1
- package/templates/overlays/baas/package.json +1 -1
- package/templates/template/backend/package.json +2 -1
- package/templates/template/config/package.json +1 -1
- package/templates/template/frontend/package.json +4 -4
- package/templates/template/frontend/vite.config.ts +5 -1
- package/templates/template/package.json +1 -1
|
@@ -23,8 +23,30 @@ import { TelemetryEventName } from "./payload.js";
|
|
|
23
23
|
* the same builder the sender uses, so it cannot drift into a comfortable
|
|
24
24
|
* fiction.
|
|
25
25
|
*/
|
|
26
|
-
/**
|
|
27
|
-
export
|
|
26
|
+
/** Where the question is being asked from, which decides how often it may be. */
|
|
27
|
+
export interface PromptOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Ask again even though this machine already declined.
|
|
30
|
+
*
|
|
31
|
+
* Set by `rebase init`, and only there. Scaffolding a project is a
|
|
32
|
+
* deliberate, occasional act with a natural pause in it — not something
|
|
33
|
+
* anyone does in a loop — so asking each time is an offer rather than
|
|
34
|
+
* nagging, and it reaches the person whose first answer was a reflex before
|
|
35
|
+
* they had seen the tool do anything.
|
|
36
|
+
*
|
|
37
|
+
* It does **not** re-ask someone who accepted: they are already sharing, so
|
|
38
|
+
* the only thing another prompt could do is talk them out of it.
|
|
39
|
+
*
|
|
40
|
+
* Nothing else changes. `DO_NOT_TRACK`, `REBASE_TELEMETRY_DISABLED`, `CI`
|
|
41
|
+
* and a project's `"telemetry": false` are answers, not questions, and they
|
|
42
|
+
* still suppress the prompt entirely — a re-ask that could override a
|
|
43
|
+
* committed repository policy would be exactly the consent-by-proxy the
|
|
44
|
+
* policy exists to prevent.
|
|
45
|
+
*/
|
|
46
|
+
reAskDeclined?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** True when we may ask: nothing forbids it, and there is a question to ask. */
|
|
49
|
+
export declare function shouldPrompt(env?: NodeJS.ProcessEnv, { reAskDeclined }?: PromptOptions): boolean;
|
|
28
50
|
export declare function renderPreview(event: TelemetryEventName, properties: Record<string, unknown>): string;
|
|
29
51
|
/**
|
|
30
52
|
* Ask, record the answer, and report it.
|
|
@@ -33,6 +55,6 @@ export declare function renderPreview(event: TelemetryEventName, properties: Rec
|
|
|
33
55
|
* CI must behave exactly as it does today, which means not asking and not
|
|
34
56
|
* sending.
|
|
35
57
|
*/
|
|
36
|
-
export declare function promptForConsent(event: TelemetryEventName, properties: Record<string, unknown
|
|
58
|
+
export declare function promptForConsent(event: TelemetryEventName, properties: Record<string, unknown>, options?: PromptOptions): Promise<boolean>;
|
|
37
59
|
/** Human-readable current state, for `rebase telemetry status`. */
|
|
38
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.19.
|
|
3
|
+
"version": "0.19.2-canary.g09316f6",
|
|
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.19.
|
|
47
|
-
"@rebasepro/
|
|
48
|
-
"@rebasepro/
|
|
49
|
-
"@rebasepro/server": "0.19.
|
|
50
|
-
"@rebasepro/server-postgres": "0.19.
|
|
51
|
-
"@rebasepro/types": "0.19.
|
|
46
|
+
"@rebasepro/agent-skills": "0.19.2-canary.g09316f6",
|
|
47
|
+
"@rebasepro/codegen": "0.19.2-canary.g09316f6",
|
|
48
|
+
"@rebasepro/client": "0.19.2-canary.g09316f6",
|
|
49
|
+
"@rebasepro/server": "0.19.2-canary.g09316f6",
|
|
50
|
+
"@rebasepro/server-postgres": "0.19.2-canary.g09316f6",
|
|
51
|
+
"@rebasepro/types": "0.19.2-canary.g09316f6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^26.1.2",
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"build": "rebase schema generate --collections ../config/collections && tsc && rebase normalize-imports dist"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
+
"@ariga/atlas": "^1.2.3",
|
|
10
11
|
"{{PROJECT_NAME}}-config": "*",
|
|
11
12
|
"@rebasepro/cms-types": "workspace:*",
|
|
12
13
|
"@rebasepro/server": "workspace:*",
|
|
@@ -26,6 +27,6 @@
|
|
|
26
27
|
"@types/node": "^22.19.4",
|
|
27
28
|
"@types/ws": "^8.5.10",
|
|
28
29
|
"tsx": "^4.20.6",
|
|
29
|
-
"typescript": "^
|
|
30
|
+
"typescript": "^6.0.3"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"@types/node": "^22.19.4",
|
|
43
43
|
"@types/react": "^19.0.8",
|
|
44
44
|
"@types/react-dom": "^19.0.3",
|
|
45
|
-
"@vitejs/plugin-react": "^
|
|
45
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
46
46
|
"tailwindcss": "^4.1.3",
|
|
47
|
-
"typescript": "^
|
|
48
|
-
"vite": "^
|
|
49
|
-
"vite-plugin-svgr": "^
|
|
47
|
+
"typescript": "^6.0.3",
|
|
48
|
+
"vite": "^8.1.5",
|
|
49
|
+
"vite-plugin-svgr": "^5.2.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -31,7 +31,11 @@ export default defineConfig({
|
|
|
31
31
|
build: {
|
|
32
32
|
minify: true,
|
|
33
33
|
outDir: "./dist",
|
|
34
|
-
|
|
34
|
+
// `es2022`, matching the reference app. Vite 8 minifies CSS with
|
|
35
|
+
// lightningcss, whose target conversion refuses `"ESNEXT"` outright —
|
|
36
|
+
// `[lightningcss minify] Unsupported target "ESNEXT"`, after a
|
|
37
|
+
// successful JS transform, so the build fails at the very end.
|
|
38
|
+
target: "es2022",
|
|
35
39
|
sourcemap: true,
|
|
36
40
|
rollupOptions: {
|
|
37
41
|
output: {
|