specrails-desktop 2.10.1 → 2.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specrails-desktop",
3
- "version": "2.10.1",
3
+ "version": "2.11.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -77,7 +77,12 @@ function spawnCoreInit(args, cwd) {
77
77
  // .cmd shim AND quotes each arg, so spaces (and newlines) survive intact.
78
78
  return (0, win_spawn_1.spawnCli)(bin, fullArgs, {
79
79
  cwd,
80
- env: process.env,
80
+ // Force RELOCATION: specrails-core installs in-repo by DEFAULT now (so a
81
+ // standalone `npx specrails-core init` user's CLI finds the agents in their
82
+ // repo). The desktop manages the cwd (spawns rails with cwd=workspace), so
83
+ // it MUST relocate to keep the user's imported repo pristine — independent of
84
+ // whether the registry mirror already ran. See specrails-core init's gate.
85
+ env: { ...process.env, SPECRAILS_RELOCATE: '1' },
81
86
  stdio: ['ignore', 'pipe', 'pipe'],
82
87
  });
83
88
  }
@@ -98,7 +103,9 @@ function spawnBundledCoreInit(args, cwd) {
98
103
  if (!cli || !coreRoot)
99
104
  return null;
100
105
  const fullArgs = [cli, 'init', ...args];
101
- const env = { ...process.env, SPECRAILS_CORE_SCRIPT_DIR: coreRoot };
106
+ // Force RELOCATION (core installs in-repo by default; the desktop keeps the
107
+ // user's repo pristine + manages the spawn cwd). See spawnCoreInit.
108
+ const env = { ...process.env, SPECRAILS_CORE_SCRIPT_DIR: coreRoot, SPECRAILS_RELOCATE: '1' };
102
109
  // Bundled openspec (offline) — the LAST network step of project-add. When the
103
110
  // app ships @fission-ai/openspec, point specrails-core's `installOpenSpecProject`
104
111
  // at the bundled CLI and the SAME node we run the bundled core with. Tauri