@nomac/cli 0.11.0 → 0.11.1
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/package.json +1 -1
- package/src/cli.mjs +9 -2
- package/src/hosted-sessions.mjs +1 -1
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -10,7 +10,7 @@ Start:
|
|
|
10
10
|
nomac login connect this device (approve in the browser)
|
|
11
11
|
nomac credits credit left; nomac credits buy --packs N adds more
|
|
12
12
|
nomac start start a Mac, or reconnect to yours
|
|
13
|
-
nomac stop stop the Mac: deletes it and its files, billing ends
|
|
13
|
+
nomac stop stop the Mac: deletes it and its files (not ~/drive), billing ends
|
|
14
14
|
|
|
15
15
|
Use it:
|
|
16
16
|
nomac exec -- ls run a command; prints its output, keeps its exit code
|
|
@@ -38,7 +38,7 @@ Use it:
|
|
|
38
38
|
Agents:
|
|
39
39
|
nomac mcp MCP server for Claude Code, Codex, Cursor and others
|
|
40
40
|
|
|
41
|
-
More: nomac start --help, nomac whoami, nomac start --host user@mac (a Mac you own)
|
|
41
|
+
More: nomac start --help, nomac whoami, nomac --version, nomac start --host user@mac (a Mac you own)
|
|
42
42
|
Environment: NOMAC_API_KEY, NOMAC_API_URL`;
|
|
43
43
|
|
|
44
44
|
// The Builder commands act at once (a release build uses one of the plan's builds),
|
|
@@ -188,6 +188,13 @@ export async function main(argv) {
|
|
|
188
188
|
console.log(`auth: ${me.auth?.via ?? "?"}${me.auth?.key_id ? ` (${me.auth.key_id})` : ""}`);
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
+
case "--version":
|
|
192
|
+
case "-v":
|
|
193
|
+
case "version": {
|
|
194
|
+
const { CLI_VERSION } = await import("./client-info.mjs");
|
|
195
|
+
console.log(CLI_VERSION);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
191
198
|
case undefined:
|
|
192
199
|
case "help":
|
|
193
200
|
case "--help":
|
package/src/hosted-sessions.mjs
CHANGED
|
@@ -52,7 +52,7 @@ const HELP = `Nomac cloud Mac sessions
|
|
|
52
52
|
start a screen video; nomac record stop saves it
|
|
53
53
|
as nomac-recording.mp4 (or -o) with a share link
|
|
54
54
|
nomac status [--json] state, cost so far and when it stops
|
|
55
|
-
nomac stop [--wait 60] [--json] stop the Mac: deletes it and its files
|
|
55
|
+
nomac stop [--wait 60] [--json] stop the Mac: deletes it and its files (not ~/drive)
|
|
56
56
|
|
|
57
57
|
Login once with nomac login. The CLI creates a local SSH key; it sends only the
|
|
58
58
|
public key. Sessions use the port-443 gateway and verified guest host keys.
|