@nomac/cli 0.11.4 → 0.11.5
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/hosted-sessions.mjs +4 -1
package/package.json
CHANGED
package/src/hosted-sessions.mjs
CHANGED
|
@@ -299,7 +299,10 @@ export async function hostedSessionCommand(command, argv, { store = sessionStore
|
|
|
299
299
|
: `Cost so far: $${(Number(result.session?.cost?.accrued_microunits ?? 0) / 1_000_000).toFixed(2)} ($0.80/hour, billed by the minute while the Mac is ready). Credit left: nomac credits`;
|
|
300
300
|
const next = result.session.state === "ready" ? "Next: nomac sync . → nomac ssh"
|
|
301
301
|
: result.session.failure_code === "capacity_unavailable" ? "No Mac was free within 5 minutes; nothing was charged. Run nomac start again in a few minutes."
|
|
302
|
-
: result.session.state === "queued" ? "Waiting for a free Mac (waiting is free). Check again: nomac start"
|
|
302
|
+
: result.session.state === "queued" ? "Waiting for a free Mac (waiting is free). Check again: nomac start"
|
|
303
|
+
: ["stopped", "failed"].includes(result.session.state) ? `${result.session.drive ? "The drive saves in the background (nomac drive shows it). " : ""}Start another: nomac start`
|
|
304
|
+
: result.session.state === "stopping" ? "Stopping. Check: nomac status"
|
|
305
|
+
: "Check: nomac status";
|
|
303
306
|
print(`${result.attached ? `${result.attached}\n` : ""}${result.session.id}: ${result.session.state}\n${next}\n${usage}${result.warning ? `\n${result.warning}` : ""}`);
|
|
304
307
|
return result;
|
|
305
308
|
};
|