akemon 0.1.77 → 0.1.78
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 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -109,4 +109,15 @@ program
|
|
|
109
109
|
.action(async (opts) => {
|
|
110
110
|
await connect({ relay: opts.relay, key: opts.key });
|
|
111
111
|
});
|
|
112
|
+
program
|
|
113
|
+
.command("dashboard")
|
|
114
|
+
.description("Open your agent dashboard in the browser")
|
|
115
|
+
.action(async () => {
|
|
116
|
+
const credentials = await getOrCreateRelayCredentials();
|
|
117
|
+
const url = `${RELAY_HTTP}/owner?account=${credentials.accountId}`;
|
|
118
|
+
console.log(`Opening dashboard: ${url}`);
|
|
119
|
+
const { exec } = await import("child_process");
|
|
120
|
+
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
121
|
+
exec(`${cmd} "${url}"`);
|
|
122
|
+
});
|
|
112
123
|
program.parse();
|