@slock-ai/computer 0.0.10 → 0.0.12
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/index.js +14 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -29982,7 +29982,9 @@ async function runLogin(opts) {
|
|
|
29982
29982
|
{ mode: 384 }
|
|
29983
29983
|
);
|
|
29984
29984
|
info(`Logged in. User session written to ${file}`);
|
|
29985
|
-
|
|
29985
|
+
if (!opts.orchestrated) {
|
|
29986
|
+
info(`Next: run \`slock-computer attach <serverSlug>\` to attach this machine.`);
|
|
29987
|
+
}
|
|
29986
29988
|
return;
|
|
29987
29989
|
}
|
|
29988
29990
|
fail("LOGIN_EXPIRED", "Login request expired before approval. Re-run `slock-computer login`.");
|
|
@@ -30198,6 +30200,9 @@ async function runAttach(opts) {
|
|
|
30198
30200
|
info(`Attached. Computer state written to ${file}`);
|
|
30199
30201
|
info(` server: ${formatServerSlugDisplay(attached.serverSlug)}`);
|
|
30200
30202
|
info(` serverMachine: ${attached.serverMachineId}`);
|
|
30203
|
+
if (opts.orchestrated) {
|
|
30204
|
+
return;
|
|
30205
|
+
}
|
|
30201
30206
|
if (opts.run === false) {
|
|
30202
30207
|
info("Next: run `slock-computer start` to run it in the background.");
|
|
30203
30208
|
} else {
|
|
@@ -30573,7 +30578,9 @@ async function runAdoptLegacy(inputs) {
|
|
|
30573
30578
|
info(` legacy daemon: stopped (pid ${stop.pid}, SIGTERM)`);
|
|
30574
30579
|
break;
|
|
30575
30580
|
}
|
|
30576
|
-
|
|
30581
|
+
if (!inputs.orchestrated) {
|
|
30582
|
+
info(`Next: run \`slock-computer start\` to bring this server online under the Computer supervisor.`);
|
|
30583
|
+
}
|
|
30577
30584
|
}
|
|
30578
30585
|
async function appendAdoptionLog(slockHome, line) {
|
|
30579
30586
|
try {
|
|
@@ -31520,7 +31527,7 @@ async function runSetup(opts, deps = {}) {
|
|
|
31520
31527
|
);
|
|
31521
31528
|
}
|
|
31522
31529
|
info("User session: missing or expired; starting login.");
|
|
31523
|
-
await login({ serverUrl: opts.serverUrl });
|
|
31530
|
+
await login({ serverUrl: opts.serverUrl, orchestrated: true });
|
|
31524
31531
|
}
|
|
31525
31532
|
} else {
|
|
31526
31533
|
info("User session: already logged in.");
|
|
@@ -31545,7 +31552,8 @@ async function runSetup(opts, deps = {}) {
|
|
|
31545
31552
|
name: opts.name,
|
|
31546
31553
|
legacyApiKey: opts.legacyApiKey,
|
|
31547
31554
|
legacyApiKeyFile: opts.legacyApiKeyFile,
|
|
31548
|
-
legacyApiKeyStdin: opts.legacyApiKeyStdin
|
|
31555
|
+
legacyApiKeyStdin: opts.legacyApiKeyStdin,
|
|
31556
|
+
orchestrated: true
|
|
31549
31557
|
});
|
|
31550
31558
|
} else if (opts.adoptLegacy && liveLegacy) {
|
|
31551
31559
|
fail(
|
|
@@ -31560,7 +31568,8 @@ async function runSetup(opts, deps = {}) {
|
|
|
31560
31568
|
serverSlug: opts.serverSlug,
|
|
31561
31569
|
serverUrl: opts.serverUrl,
|
|
31562
31570
|
name: opts.name,
|
|
31563
|
-
run: false
|
|
31571
|
+
run: false,
|
|
31572
|
+
orchestrated: true
|
|
31564
31573
|
});
|
|
31565
31574
|
}
|
|
31566
31575
|
attachment = await resolveAttachedServerSlug(slockHome, opts.serverSlug);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slock-ai/computer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Slock Computer — standalone human/local-machine control-plane CLI (login + attach). Distinct from the agent-facing @slock-ai/cli.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"commander": "^12.1.0",
|
|
22
22
|
"proper-lockfile": "^4.1.2",
|
|
23
23
|
"undici": "^7.24.7",
|
|
24
|
-
"@slock-ai/daemon": "0.
|
|
24
|
+
"@slock-ai/daemon": "0.54.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.5.0",
|