@rebon/cli-win32-x64 1.10.2 → 1.10.4
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/lib/windows-managed.js +19 -4
- package/package.json +1 -1
- package/payload/rebon-boa-helper.exe +0 -0
- package/payload/rebon-browser-mcp.exe +0 -0
- package/payload/rebon-computer-use.exe +0 -0
- package/payload/rebon-lsp-mcp.exe +0 -0
- package/payload/rebon.exe +2 -2
- package/payload/sandbox-win.exe +0 -0
package/lib/windows-managed.js
CHANGED
|
@@ -326,31 +326,46 @@ function resolveExecutable(packageInfo) {
|
|
|
326
326
|
const info = packageInfo || readPackageInfo();
|
|
327
327
|
const installed = readInstalledExecutable(info);
|
|
328
328
|
if (installed) {
|
|
329
|
-
return { exe: installed, usedFallback: false, installError: null };
|
|
329
|
+
return { exe: installed, packageRoot: info.packageRoot, usedFallback: false, installError: null };
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
let installError = null;
|
|
333
333
|
try {
|
|
334
334
|
const managed = installManagedPackage(info);
|
|
335
335
|
if (managed) {
|
|
336
|
-
return { exe: managed, usedFallback: false, installError: null };
|
|
336
|
+
return { exe: managed, packageRoot: info.packageRoot, usedFallback: false, installError: null };
|
|
337
337
|
}
|
|
338
338
|
} catch (error) {
|
|
339
339
|
installError = error;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
if (fs.existsSync(info.payloadPath)) {
|
|
343
|
-
return { exe: info.payloadPath, usedFallback: true, installError };
|
|
343
|
+
return { exe: info.payloadPath, packageRoot: info.packageRoot, usedFallback: true, installError };
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
return { exe: null, usedFallback: false, installError };
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
function spawnResolvedExecutable(resolved, argv, spawnImpl) {
|
|
350
|
+
const env = { ...process.env, REBON_CODE_MODE_NODE: process.execPath };
|
|
351
|
+
// The wrapper selected this platform package. Preserve that relationship,
|
|
352
|
+
// but replace its JS bin path with the executable we actually start.
|
|
353
|
+
delete env.REBON_NPM_INSTALL;
|
|
354
|
+
try {
|
|
355
|
+
const source = JSON.parse(process.env.REBON_NPM_INSTALL);
|
|
356
|
+
if (typeof source.platform === "string" && resolved.packageRoot &&
|
|
357
|
+
path.resolve(source.platform) === path.resolve(resolved.packageRoot)) {
|
|
358
|
+
env.REBON_NPM_INSTALL = JSON.stringify({
|
|
359
|
+
...source, executable: resolved.exe, node: process.execPath,
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
} catch (_) {
|
|
363
|
+
// A standalone platform launcher has no wrapper provenance to forward.
|
|
364
|
+
}
|
|
350
365
|
const child = spawnImpl(resolved.exe, argv, {
|
|
351
366
|
stdio: "inherit",
|
|
352
367
|
windowsHide: false,
|
|
353
|
-
env
|
|
368
|
+
env,
|
|
354
369
|
});
|
|
355
370
|
|
|
356
371
|
child.on("error", (error) => {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/payload/rebon.exe
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/payload/rebon.exe
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 80065024 bytes
|
|
4
|
+
sha256: 25636d864a9ffad9b70d5bda98ac6a38153a14d96982a1be1ac6f6a151ef8bb2
|
package/payload/sandbox-win.exe
CHANGED
|
Binary file
|