closeclaw 3.0.14 → 3.0.15
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.cjs +8 -2
- package/dist/cli.jsc +0 -0
- package/dist/index.jsc +0 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -8310,7 +8310,7 @@ async function commandOnboard() {
|
|
|
8310
8310
|
console.log(` ${c.green}${c.bold}Setup complete.${c.reset} Start the server with:`);
|
|
8311
8311
|
console.log("");
|
|
8312
8312
|
if (config.domain) {
|
|
8313
|
-
console.log(` ${c.cyan}closeclaw start
|
|
8313
|
+
console.log(` ${c.cyan}closeclaw start${c.reset}`);
|
|
8314
8314
|
console.log("");
|
|
8315
8315
|
console.log(` Then open ${c.bold}https://${config.domain}${c.reset} in your browser.`);
|
|
8316
8316
|
} else if (licenseKey) {
|
|
@@ -8348,7 +8348,13 @@ async function commandStart(args) {
|
|
|
8348
8348
|
const host2 = values.host;
|
|
8349
8349
|
let licenseKey = values.key || getSavedLicenseKey() || "";
|
|
8350
8350
|
const dataDir = values["data-dir"];
|
|
8351
|
-
|
|
8351
|
+
let domain = values.domain;
|
|
8352
|
+
if (!domain) {
|
|
8353
|
+
try {
|
|
8354
|
+
domain = JSON.parse((0, import_node_fs7.readFileSync)((0, import_node_path6.join)(CONFIG_DIR, "config.json"), "utf-8")).domain || "";
|
|
8355
|
+
} catch {
|
|
8356
|
+
}
|
|
8357
|
+
}
|
|
8352
8358
|
process.env.PORT = String(port2);
|
|
8353
8359
|
process.env.HOST = host2;
|
|
8354
8360
|
if (licenseKey) process.env.PLATFORM_LICENSE_KEY = licenseKey;
|
package/dist/cli.jsc
CHANGED
|
Binary file
|
package/dist/index.jsc
CHANGED
|
Binary file
|