@phystack/cli 6.2.2 → 7.0.0-dev.1

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.
Files changed (2) hide show
  1. package/bin/index.js +9 -1
  2. package/package.json +6 -9
package/bin/index.js CHANGED
@@ -65,7 +65,15 @@ try {
65
65
  process.exit(1);
66
66
  }
67
67
 
68
- const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
68
+ // Mark this process tree as npm-managed. The future `phy update` / axoupdater
69
+ // command MUST early-exit when PHY_MANAGED_BY=npm and direct the user to
70
+ // `npm i -g @phystack/cli@dev` instead — npm installs and the cargo-dist
71
+ // install-receipt updater must not fight over the same binary. No Rust updater
72
+ // exists yet; this just plants the marker so the gate is in place when it lands.
73
+ const result = spawnSync(binPath, process.argv.slice(2), {
74
+ stdio: 'inherit',
75
+ env: { ...process.env, PHY_MANAGED_BY: 'npm' },
76
+ });
69
77
 
70
78
  // `spawnSync` collapses many failure modes into status === null (with `error`
71
79
  // or `signal` set instead) — see explainSpawnFailureIfAny for the full taxonomy.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phystack/cli",
3
- "version": "6.2.2",
3
+ "version": "7.0.0-dev.1",
4
4
  "description": "Phygrid CLI.",
5
5
  "main": "index.js",
6
6
  "homepage": "./",
@@ -37,13 +37,10 @@
37
37
  },
38
38
  "gitHead": "4b0803f6728ceb0665bd999b88ecbb31f8ea025c",
39
39
  "optionalDependencies": {
40
- "@phystack/phy-darwin-arm64": "6.2.2",
41
- "@phystack/phy-darwin-x64": "6.2.2",
42
- "@phystack/phy-linux-arm64": "6.2.2",
43
- "@phystack/phy-linux-x64": "6.2.2",
44
- "@phystack/phy-win32-x64": "6.2.2",
45
- "@phystack/phy-win32-arm64": "6.2.2",
46
- "@phystack/phy-linux-x64-musl": "6.2.2",
47
- "@phystack/phy-linux-arm64-musl": "6.2.2"
40
+ "@phystack/phy-darwin-arm64": "7.0.0-dev.1",
41
+ "@phystack/phy-darwin-x64": "7.0.0-dev.1",
42
+ "@phystack/phy-linux-arm64": "7.0.0-dev.1",
43
+ "@phystack/phy-linux-x64": "7.0.0-dev.1",
44
+ "@phystack/phy-win32-x64": "7.0.0-dev.1"
48
45
  }
49
46
  }