openmagic 0.26.2 → 0.26.3
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/dist/cli.js +11 -9
- package/dist/cli.js.map +1 -1
- package/dist/toolbar/index.global.js +1 -1
- package/dist/toolbar/index.global.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1447,7 +1447,7 @@ async function handleLlmChat(params, onChunk, onDone, onError) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
1449
|
// src/server.ts
|
|
1450
|
-
var VERSION = "0.26.
|
|
1450
|
+
var VERSION = "0.26.3";
|
|
1451
1451
|
var __dirname = dirname2(fileURLToPath(import.meta.url));
|
|
1452
1452
|
function attachOpenMagic(httpServer, roots) {
|
|
1453
1453
|
function handleRequest(req, res) {
|
|
@@ -1981,7 +1981,7 @@ process.on("uncaughtException", (err) => {
|
|
|
1981
1981
|
});
|
|
1982
1982
|
var childProcesses = [];
|
|
1983
1983
|
var lastDetectedPort = null;
|
|
1984
|
-
var VERSION2 = "0.26.
|
|
1984
|
+
var VERSION2 = "0.26.3";
|
|
1985
1985
|
function ask(question) {
|
|
1986
1986
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
1987
1987
|
return new Promise((resolve3) => {
|
|
@@ -2403,13 +2403,15 @@ async function offerToStartDevServer(expectedPort) {
|
|
|
2403
2403
|
return false;
|
|
2404
2404
|
}
|
|
2405
2405
|
if (!isUp) {
|
|
2406
|
-
const
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2406
|
+
for (const scanPort of [3e3, 3001, 5173, 5174, 4200, 8080, 8e3, 4e3, 1234, 4321, 3333, 8081]) {
|
|
2407
|
+
if (scanPort === port) continue;
|
|
2408
|
+
if (await isPortOpen(scanPort)) {
|
|
2409
|
+
console.log(
|
|
2410
|
+
chalk.green(` \u2713 Dev server found on port ${scanPort}.`)
|
|
2411
|
+
);
|
|
2412
|
+
lastDetectedPort = scanPort;
|
|
2413
|
+
return true;
|
|
2414
|
+
}
|
|
2413
2415
|
}
|
|
2414
2416
|
console.log(
|
|
2415
2417
|
chalk.yellow(` \u26A0 Port ${port} didn't open after 30s.`)
|