@rebasepro/cli 0.12.1-canary.gf4240e3 → 0.13.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.
@@ -54,8 +54,16 @@ export declare function ensureMachineId(): string;
54
54
  /**
55
55
  * The checkout's id, generating one if this project has none.
56
56
  *
57
- * Returns `undefined` when there is nowhere to put it — `.rebase/` is created
58
- * by `rebase init`, so a command run outside a project simply reports no
59
- * project, rather than scattering directories across the filesystem.
57
+ * The directory is created when it is missing, but **only** where a
58
+ * `rebase.json` proves this really is a project root. An earlier version
59
+ * required `.rebase/` to already exist, on the assumption that `rebase init`
60
+ * created it — it does not. It is written only when a scaffold is linked to
61
+ * Rebase Cloud, so every self-hosted project reported no `projectId` at all,
62
+ * for ever. That silently broke the funnel this id exists for, on exactly the
63
+ * population the telemetry is meant to learn about.
64
+ *
65
+ * The `rebase.json` check is what keeps the fix from being "scatter `.rebase/`
66
+ * wherever a command happens to run": no manifest, no project, no directory,
67
+ * and the event simply reports no project.
60
68
  */
61
69
  export declare function ensureProjectId(projectRoot: string): string | undefined;
@@ -34,8 +34,16 @@ export type SuppressionReason = "not_asked" | "declined" | "do_not_track" | "reb
34
34
  */
35
35
  export declare function suppressionReason(env?: NodeJS.ProcessEnv, cwd?: string): SuppressionReason | null;
36
36
  export declare function isEnabled(env?: NodeJS.ProcessEnv, cwd?: string): boolean;
37
- /** Record the user's answer. `false` is final — nothing prompts again. */
38
- export declare function setConsent(enabled: boolean): void;
37
+ /**
38
+ * Record the user's answer. `false` is final — nothing prompts again.
39
+ *
40
+ * Returns whether the choice could actually be persisted. A read-only or full
41
+ * home directory makes `writeConfig` throw, and the direction of that failure
42
+ * matters enormously: someone turning sharing **off** who sees a stack trace,
43
+ * or worse sees nothing, is left sharing. The caller is expected to say so and
44
+ * point at `REBASE_TELEMETRY_DISABLED`, which needs no disk.
45
+ */
46
+ export declare function setConsent(enabled: boolean): boolean;
39
47
  /**
40
48
  * Build the event that *would* be sent, without sending it.
41
49
  *
@@ -71,14 +71,6 @@ export declare function durationBucket(ms: number): string;
71
71
  * neither.
72
72
  */
73
73
  export declare function errorClass(error: unknown): string;
74
- /**
75
- * Drop anything that is not a permitted value type, and clamp strings.
76
- *
77
- * The last line of defence rather than the first. Every call site is supposed
78
- * to pass enumerated values; this is what stops a future one that forgets from
79
- * turning into an incident. Strings are capped at 64 characters because no
80
- * legitimate enumerated value is longer, and a path or a message always is.
81
- */
82
74
  export declare function sanitize(properties: Record<string, unknown>): Record<string, TelemetryValue>;
83
75
  export declare function buildEvent(event: TelemetryEventName, properties: Record<string, unknown>, identity: {
84
76
  machineId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/cli",
3
- "version": "0.12.1-canary.gf4240e3",
3
+ "version": "0.13.0",
4
4
  "description": "Developer tools for Rebase projects",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",
@@ -31,12 +31,12 @@
31
31
  "execa": "^9.6.1",
32
32
  "inquirer": "14.0.2",
33
33
  "jiti": "^2.7.0",
34
- "@rebasepro/client": "0.12.1-canary.gf4240e3",
35
- "@rebasepro/codegen": "0.12.1-canary.gf4240e3",
36
- "@rebasepro/agent-skills": "0.12.1-canary.gf4240e3",
37
- "@rebasepro/server": "0.12.1-canary.gf4240e3",
38
- "@rebasepro/types": "0.12.1-canary.gf4240e3",
39
- "@rebasepro/server-postgres": "0.12.1-canary.gf4240e3"
34
+ "@rebasepro/agent-skills": "0.13.0",
35
+ "@rebasepro/client": "0.13.0",
36
+ "@rebasepro/codegen": "0.13.0",
37
+ "@rebasepro/types": "0.13.0",
38
+ "@rebasepro/server": "0.13.0",
39
+ "@rebasepro/server-postgres": "0.13.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^26.1.2",