@fectivnfy112358/minimax-code-web 0.1.0-preview.1 → 0.1.0-preview.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/bin/mcode-webui.mjs +6 -2
- package/package.json +1 -1
- package/server/package-info.json +1 -1
package/bin/mcode-webui.mjs
CHANGED
|
@@ -26,7 +26,7 @@ const service = new WebuiService({
|
|
|
26
26
|
port: createHarnessPortFromHost(assembled.host),
|
|
27
27
|
host: "127.0.0.1",
|
|
28
28
|
tcpPort,
|
|
29
|
-
dev:
|
|
29
|
+
dev: true,
|
|
30
30
|
clientDir: path.join(packageRoot, "client"),
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -41,7 +41,11 @@ const close = () => {
|
|
|
41
41
|
|
|
42
42
|
try {
|
|
43
43
|
const info = await service.start();
|
|
44
|
-
|
|
44
|
+
// dev mode keeps the per-start credential off, so the shell page and its
|
|
45
|
+
// assets load without a query token. info.boundUrl is the bare ws://
|
|
46
|
+
// endpoint; browsers need the http:// origin.
|
|
47
|
+
const browserUrl = `http://${info.host}:${info.tcpPort}/`;
|
|
48
|
+
console.log(`[mcode-webui] WebUI running at ${browserUrl}`);
|
|
45
49
|
console.log("Press Ctrl+C to stop the server.");
|
|
46
50
|
process.once("SIGINT", () => void close().finally(() => process.exit(0)));
|
|
47
51
|
process.once("SIGTERM", () => void close().finally(() => process.exit(0)));
|
package/package.json
CHANGED
package/server/package-info.json
CHANGED