galaxy-opc 0.5.11 → 0.5.13
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/cli.mjs +9 -0
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -835,6 +835,15 @@ async function cmdStart() {
|
|
|
835
835
|
console.error(red("\n ✗ 未找到 openclaw,请先运行 npx galaxy-opc\n"));
|
|
836
836
|
process.exit(1);
|
|
837
837
|
}
|
|
838
|
+
const cfg = readJson(CONFIG_PATH);
|
|
839
|
+
const token = cfg?.gateway?.auth?.token || "";
|
|
840
|
+
const tokenQuery = token ? `?token=${token}` : "";
|
|
841
|
+
separator();
|
|
842
|
+
console.log(bold(" 启动后访问:"));
|
|
843
|
+
console.log(` 对话界面: ${cyan(`http://localhost:18789/${tokenQuery}`)}`);
|
|
844
|
+
console.log(` 管理后台: ${cyan(`http://localhost:18789/opc/admin${tokenQuery}`)}`);
|
|
845
|
+
console.log(` ${dim("注意:不要访问 http://localhost:18791(内部 Browser Control 端口)")}`);
|
|
846
|
+
separator();
|
|
838
847
|
console.log(cyan("\n 启动星环 Galaxy OPC...\n"));
|
|
839
848
|
await runCommand("openclaw", ["gateway"]);
|
|
840
849
|
}
|