@rebasepro/cli 0.10.0 → 0.10.1-canary.18115ba

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.
@@ -19,14 +19,38 @@ export interface PMCommands {
19
19
  /** The workspace dependency protocol: `"workspace:*"` for pnpm, `"*"` for npm. */
20
20
  workspaceProtocol: string;
21
21
  }
22
+ /**
23
+ * Decide availability from a `spawnSync` outcome.
24
+ *
25
+ * Split out from the spawn itself so the decision is testable without starting
26
+ * a process — which is what made the old test load-sensitive and occasionally
27
+ * red for reasons that had nothing to do with the code under test.
28
+ *
29
+ * The three outcomes are distinguishable, and the old code conflated two of
30
+ * them by asking only `status === 0`:
31
+ *
32
+ * not installed status null, signal null, error.code ENOENT
33
+ * timed out status null, signal SIGTERM, error.code ETIMEDOUT
34
+ * broken install status non-zero, no error
35
+ */
36
+ export declare function pnpmAvailabilityFromProbe(res: {
37
+ status: number | null;
38
+ signal?: NodeJS.Signals | null;
39
+ error?: {
40
+ code?: string;
41
+ } | Error;
42
+ }): boolean;
22
43
  /**
23
44
  * Whether pnpm is runnable on this machine.
24
45
  *
25
46
  * Used to decide whether a fresh project can be scaffolded with pnpm. Kept
26
- * cheap and non-interactive (short timeout, output discarded) so it never
27
- * hangs detection if a corepack shim misbehaves.
47
+ * cheap and non-interactive (bounded timeout, output discarded) so it never
48
+ * hangs detection if a corepack shim misbehaves, and memoised so that repeated
49
+ * detection in one CLI run costs one process rather than one per call.
28
50
  */
29
51
  export declare function isPnpmAvailable(): boolean;
52
+ /** Forget the memoised probe. For tests; nothing in a CLI run needs it. */
53
+ export declare function resetPnpmAvailabilityCache(): void;
30
54
  /**
31
55
  * Detect the package manager for a Rebase project.
32
56
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/cli",
3
- "version": "0.10.0",
3
+ "version": "0.10.1-canary.18115ba",
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/agent-skills": "0.10.0",
35
- "@rebasepro/codegen": "0.10.0",
36
- "@rebasepro/client": "0.10.0",
37
- "@rebasepro/server-postgres": "0.10.0",
38
- "@rebasepro/types": "0.10.0",
39
- "@rebasepro/server": "0.10.0"
34
+ "@rebasepro/client": "0.10.1-canary.18115ba",
35
+ "@rebasepro/agent-skills": "0.10.1-canary.18115ba",
36
+ "@rebasepro/codegen": "0.10.1-canary.18115ba",
37
+ "@rebasepro/types": "0.10.1-canary.18115ba",
38
+ "@rebasepro/server": "0.10.1-canary.18115ba",
39
+ "@rebasepro/server-postgres": "0.10.1-canary.18115ba"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^25.9.3",