vibora 0.1.14 → 1.0.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/bin/vibora.js +11 -1
- package/dist/assets/index-BNhD6i8B.js +45 -0
- package/dist/assets/index-ByL08tgg.js +45 -0
- package/dist/assets/index-Co_u49xL.css +1 -0
- package/dist/assets/index-Hcd8Y1ma.js +45 -0
- package/dist/assets/index-f56gTmVJ.css +1 -0
- package/dist/index.html +1 -1
- package/lib/librust_pty.dylib +0 -0
- package/lib/librust_pty_arm64.dylib +0 -0
- package/lib/librust_pty_arm64.so +0 -0
- package/lib/rust_pty.dll +0 -0
- package/package.json +1 -1
- package/server/index.js +63 -3
package/bin/vibora.js
CHANGED
|
@@ -532,7 +532,17 @@ async function handleUpCommand(flags) {
|
|
|
532
532
|
const port = getPort(flags.port);
|
|
533
533
|
const packageRoot = getPackageRoot();
|
|
534
534
|
const serverPath = join3(packageRoot, "server", "index.js");
|
|
535
|
-
const
|
|
535
|
+
const platform = process.platform;
|
|
536
|
+
const arch = process.arch;
|
|
537
|
+
let ptyLibName;
|
|
538
|
+
if (platform === "darwin") {
|
|
539
|
+
ptyLibName = arch === "arm64" ? "librust_pty_arm64.dylib" : "librust_pty.dylib";
|
|
540
|
+
} else if (platform === "win32") {
|
|
541
|
+
ptyLibName = "rust_pty.dll";
|
|
542
|
+
} else {
|
|
543
|
+
ptyLibName = arch === "arm64" ? "librust_pty_arm64.so" : "librust_pty.so";
|
|
544
|
+
}
|
|
545
|
+
const ptyLibPath = join3(packageRoot, "lib", ptyLibName);
|
|
536
546
|
console.error("Starting Vibora server...");
|
|
537
547
|
const serverProc = spawn("bun", [serverPath], {
|
|
538
548
|
detached: true,
|