embedlabs 0.1.0-alpha.119 → 0.1.0-alpha.120

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.
@@ -136,9 +136,19 @@ function isEmbedLabsShim(filePath) {
136
136
  }
137
137
 
138
138
  function verifyInstallState() {
139
- // npm owns final bin-link creation. The package only removes stale legacy
140
- // shims during preinstall; writing the command shim here can overwrite the
141
- // package's own bin file when npm lifecycle prefixes differ by platform.
139
+ for (const prefix of installPrefixes()) {
140
+ if (platform() === "win32") {
141
+ const shimPath = join(prefix, "embedlabs.cmd");
142
+ mkdirSync(dirname(shimPath), { recursive: true });
143
+ writeFileSync(shimPath, windowsCmdShim(), "utf8");
144
+ chmodSync(shimPath, 0o755);
145
+ continue;
146
+ }
147
+ const shimPath = join(prefix, "bin", "embedlabs");
148
+ mkdirSync(dirname(shimPath), { recursive: true });
149
+ writeFileSync(shimPath, unixShellShim(), "utf8");
150
+ chmodSync(shimPath, 0o755);
151
+ }
142
152
  }
143
153
 
144
154
  function windowsCmdShim() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "embedlabs",
3
- "version": "0.1.0-alpha.119",
3
+ "version": "0.1.0-alpha.120",
4
4
  "description": "EmbedLabs CLI alias package for local-first embedded agent testing.",
5
5
  "private": false,
6
6
  "type": "module",