nextclaw 0.18.12-beta.6 → 0.18.12-beta.8

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { _ as resolveUiConfig, a as compareNpmRuntimeVersions, c as getPackageVersion$1, d as openBrowser, f as printAgentResponse, g as resolveUiApiBase, h as resolveServiceLogPath, i as NpmRuntimeBundleService, l as isLoopbackHost, m as resolvePublicIp, n as NpmRuntimeUpdateSourceService, o as NpmRuntimeBundleLayoutStore, p as prompt, s as findExecutableOnPath, t as NpmRuntimeUpdateStateStore, u as isProcessRunning, v as resolveUiStaticDir, y as waitForExit } from "../../npm-runtime-update-state.store-BwM_B6eP.js";
2
+ import { S as waitForExit, _ as resolvePublicIp, a as compareNpmRuntimeVersions, b as resolveUiConfig, c as NpmRuntimeBundleLayoutStore, d as getPackageVersion$1, f as isLoopbackHost, g as prompt, h as printAgentResponse, i as NpmRuntimeBundleService, l as findExecutableOnPath, m as openBrowser, n as NpmRuntimeUpdateSourceService, o as resolveEffectiveNpmRuntimeVersion, p as isProcessRunning, t as NpmRuntimeUpdateStateStore, u as findListeningProcessByPort, v as resolveServiceLogPath, x as resolveUiStaticDir, y as resolveUiApiBase } from "../../npm-runtime-update-state.store-75vzvn0B.js";
3
3
  import { createRequire } from "node:module";
4
4
  import * as NextclawCore from "@nextclaw/core";
5
5
  import { APP_NAME, APP_TAGLINE, AgentRouteResolver, BUILTIN_MAIN_AGENT_ID, ChannelManager, CommandRegistry, ConfigSchema, ContextBuilder, CronService, CronTool, DEFAULT_WORKSPACE_DIR, DEFAULT_WORKSPACE_PATH, DisposableStore, EditFileTool, ExecTool, ExtensionToolAdapter, FileLogSink, GatewayTool, InputBudgetPruner, LLMProvider, ListDirTool, MemoryGetTool, MemorySearchTool, MessageBus, MessageTool, ProviderManager, ReadFileTool, RequestedSkillsMetadataReader, SessionManager, SessionsHistoryTool, SessionsListTool, SkillsLoader, Tool, ToolRegistry, WebFetchTool, WebSearchTool, WriteFileTool, buildConfigSchema, buildMinimalSystemExecutionPrompt, buildReloadPlan, buildToolCatalogEntries, createAgentProfile, createAssistantStreamDeltaControlMessage, createAssistantStreamResetControlMessage, createGlobalTypedEventBus, createTypedEventKey, createTypingStopControlMessage, diffConfigPaths, expandHome, findEffectiveAgentProfile, getAppLogger, getConfigPath, getDataDir, getDataPath, getLoggingRuntime, getWorkspacePath, hasSecretRef, loadConfig, normalizeInlineSecretRefs, parseAgentScopedSessionKey, parseThinkingLevel, readSessionProjectRoot, redactConfigObject, removeAgentProfile, resolveAppLogPath, resolveConfigSecrets, resolveDefaultAgentProfileId, resolveEffectiveAgentProfiles, resolveLocalUiBaseUrl, resolveProviderRuntime, resolveSessionWorkspacePath, resolveThinkingLevel, saveConfig, toDisposable, updateAgentProfile } from "@nextclaw/core";
@@ -5236,10 +5236,14 @@ var NpmRuntimeUpdateManager = class {
5236
5236
  };
5237
5237
  syncStateFromCurrentPointer = () => {
5238
5238
  const currentPointer = this.options.layout.readCurrentPointer();
5239
- if (!currentPointer) return;
5239
+ const effectiveCurrentVersion = resolveEffectiveNpmRuntimeVersion({
5240
+ launcherVersion: this.launcherVersion,
5241
+ currentBundleVersion: currentPointer?.version ?? null
5242
+ });
5243
+ if (!effectiveCurrentVersion) return;
5240
5244
  this.options.stateStore.update((state) => ({
5241
5245
  ...state,
5242
- currentVersion: state.currentVersion ?? currentPointer.version
5246
+ currentVersion: effectiveCurrentVersion
5243
5247
  }));
5244
5248
  };
5245
5249
  toSnapshotFromState = (state, patch) => {
@@ -16286,7 +16290,7 @@ async function startUiShell(params) {
16286
16290
  if (!uiConfig.enabled) return null;
16287
16291
  let publishUiEvent = null;
16288
16292
  const deferredNcpAgent = createDeferredUiNcpAgent();
16289
- const uiServer = startUiServer({
16293
+ const uiServer = await startUiServer({
16290
16294
  host: uiConfig.host,
16291
16295
  port: uiConfig.port,
16292
16296
  configPath,
@@ -18477,7 +18481,7 @@ var MacosLaunchAgentAutostartService = class {
18477
18481
  ` <string>${this.escapeXml(homeDir)}</string>`,
18478
18482
  " </dict>",
18479
18483
  " <key>RunAtLoad</key><true/>",
18480
- " <key>KeepAlive</key><true/>",
18484
+ " <key>KeepAlive</key><false/>",
18481
18485
  ` <key>StandardOutPath</key><string>${this.escapeXml(stdoutPath)}</string>`,
18482
18486
  ` <key>StandardErrorPath</key><string>${this.escapeXml(stderrPath)}</string>`,
18483
18487
  "</dict>",
@@ -20413,17 +20417,31 @@ var RestartCommands = class {
20413
20417
  uiPort: opts.uiPort,
20414
20418
  forcedPublicHost: this.deps.forcedPublicHost
20415
20419
  });
20420
+ const targetUi = resolveUiConfig(loadConfig(), uiOverrides);
20416
20421
  const state = managedServiceStateStore.read();
20417
20422
  if (state && isProcessRunning(state.pid)) {
20418
20423
  console.log(`Restarting ${APP_NAME}...`);
20419
20424
  await this.deps.runtimeCommandService.stopService();
20420
20425
  } else {
20426
+ const foregroundRuntime = localUiRuntimeStore.read();
20427
+ const foregroundMatchesTarget = Boolean(foregroundRuntime && isProcessRunning(foregroundRuntime.pid) && foregroundRuntime.uiPort === targetUi.port);
20428
+ if (foregroundRuntime && foregroundMatchesTarget) {
20429
+ if (!await this.restartForegroundRuntime(foregroundRuntime.pid)) return;
20430
+ await this.deps.startCommands.run(opts);
20431
+ return;
20432
+ }
20421
20433
  if (state) {
20422
20434
  managedServiceStateStore.clear();
20423
20435
  console.log("Service state was stale and has been cleaned up.");
20424
20436
  }
20425
20437
  const unmanagedHealthyServiceMessage = await describeUnmanagedHealthyTargetMessage({ uiOverrides });
20426
20438
  if (unmanagedHealthyServiceMessage) {
20439
+ const adoptedRuntimePid = this.resolveAdoptableForegroundRuntimePid(targetUi.port);
20440
+ if (adoptedRuntimePid) {
20441
+ if (!await this.restartForegroundRuntime(adoptedRuntimePid)) return;
20442
+ await this.deps.startCommands.run(opts);
20443
+ return;
20444
+ }
20427
20445
  console.error(`Error: Cannot restart ${APP_NAME} because the target UI/API port is already served by a healthy unmanaged instance.`);
20428
20446
  console.error(unmanagedHealthyServiceMessage);
20429
20447
  return;
@@ -20432,6 +20450,40 @@ var RestartCommands = class {
20432
20450
  }
20433
20451
  await this.deps.startCommands.run(opts);
20434
20452
  };
20453
+ restartForegroundRuntime = async (pid) => {
20454
+ console.log(`Restarting ${APP_NAME} foreground runtime (PID ${pid})...`);
20455
+ try {
20456
+ process.kill(pid, "SIGTERM");
20457
+ } catch (error) {
20458
+ console.error(`Failed to stop foreground runtime: ${String(error)}`);
20459
+ return false;
20460
+ }
20461
+ if (!await waitForExit(pid, 3e3)) {
20462
+ try {
20463
+ process.kill(pid, "SIGKILL");
20464
+ } catch (error) {
20465
+ console.error(`Failed to force stop foreground runtime: ${String(error)}`);
20466
+ return false;
20467
+ }
20468
+ if (!await waitForExit(pid, 2e3)) {
20469
+ console.error(`Failed to stop foreground runtime PID ${pid}.`);
20470
+ return false;
20471
+ }
20472
+ }
20473
+ localUiRuntimeStore.clearIfOwnedByProcess(pid);
20474
+ console.log(`✓ ${APP_NAME} foreground runtime stopped`);
20475
+ return true;
20476
+ };
20477
+ resolveAdoptableForegroundRuntimePid = (port) => {
20478
+ const listeningProcess = findListeningProcessByPort(port);
20479
+ if (!listeningProcess || !isProcessRunning(listeningProcess.pid)) return null;
20480
+ return this.isAdoptableNextclawRuntimeCommand(listeningProcess.command) ? listeningProcess.pid : null;
20481
+ };
20482
+ isAdoptableNextclawRuntimeCommand = (command) => {
20483
+ const normalized = command?.trim() ?? "";
20484
+ if (!normalized) return false;
20485
+ return /\bserve\b/.test(normalized) && (normalized.includes("/dist/cli/app/index.js") || normalized.includes("/src/cli/app/index.js") || normalized.includes("/runtime/dist/cli/app/index.js"));
20486
+ };
20435
20487
  };
20436
20488
  //#endregion
20437
20489
  //#region src/cli/commands/serve/index.ts
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as getPackageVersion$1, i as NpmRuntimeBundleService, o as NpmRuntimeBundleLayoutStore, r as inferDefaultNpmRuntimeReleaseChannel, t as NpmRuntimeUpdateStateStore } from "../../npm-runtime-update-state.store-BwM_B6eP.js";
2
+ import { c as NpmRuntimeBundleLayoutStore, d as getPackageVersion$1, i as NpmRuntimeBundleService, r as inferDefaultNpmRuntimeReleaseChannel, s as shouldPreferPackagedNpmRuntime, t as NpmRuntimeUpdateStateStore } from "../../npm-runtime-update-state.store-75vzvn0B.js";
3
3
  import { createExternalCommandEnv } from "@nextclaw/core";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
@@ -33,7 +33,12 @@ var NpmRuntimeLauncher = class {
33
33
  launcherVersion: getPackageVersion$1()
34
34
  });
35
35
  try {
36
- return bundleService.resolveCurrentBundle()?.runtimeScriptPath ?? this.resolvePackagedAppEntrypoint();
36
+ const currentBundle = bundleService.resolveCurrentBundle();
37
+ if (currentBundle && shouldPreferPackagedNpmRuntime({
38
+ launcherVersion: getPackageVersion$1(),
39
+ currentBundleVersion: currentBundle.manifest.runtimeVersion ?? currentBundle.manifest.bundleVersion
40
+ })) return this.resolvePackagedAppEntrypoint();
41
+ return currentBundle?.runtimeScriptPath ?? this.resolvePackagedAppEntrypoint();
37
42
  } catch (error) {
38
43
  console.error(`Cannot start current runtime bundle: ${error instanceof Error ? error.message : String(error)}`);
39
44
  console.error("Falling back to the packaged npm launcher runtime.");
@@ -2,7 +2,7 @@ import { createExternalCommandEnv, getDataDir, getLogsPath, getPackageVersion, r
2
2
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
3
3
  import { dirname, join, resolve } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- import { spawn } from "node:child_process";
5
+ import { spawn, spawnSync } from "node:child_process";
6
6
  import { isIP } from "node:net";
7
7
  import { cp, readdir, rename, rm } from "node:fs/promises";
8
8
  //#region src/cli/shared/utils/cli.utils.ts
@@ -71,6 +71,98 @@ async function waitForExit(pid, timeoutMs) {
71
71
  }
72
72
  return !isProcessRunning(pid);
73
73
  }
74
+ function runLookupCommand(command, args) {
75
+ try {
76
+ const result = spawnSync(command, args, {
77
+ encoding: "utf8",
78
+ env: createExternalCommandEnv(process.env)
79
+ });
80
+ if (result.error || result.status !== 0) return {
81
+ ok: false,
82
+ stdout: ""
83
+ };
84
+ return {
85
+ ok: true,
86
+ stdout: result.stdout ?? ""
87
+ };
88
+ } catch {
89
+ return {
90
+ ok: false,
91
+ stdout: ""
92
+ };
93
+ }
94
+ }
95
+ function parseListeningPidFromLsof(raw) {
96
+ for (const line of raw.split("\n")) {
97
+ if (!line.startsWith("p")) continue;
98
+ const pid = Number(line.slice(1));
99
+ if (Number.isFinite(pid) && pid > 0) return pid;
100
+ }
101
+ return null;
102
+ }
103
+ function parseListeningPidFromNetstat(raw, port) {
104
+ const portSuffix = `:${port}`;
105
+ for (const line of raw.split("\n")) {
106
+ const trimmed = line.trim();
107
+ if (!trimmed || !trimmed.includes("LISTEN")) continue;
108
+ const columns = trimmed.split(/\s+/);
109
+ if (columns.length < 5) continue;
110
+ if (!(columns[1] ?? "").endsWith(portSuffix)) continue;
111
+ const pid = Number(columns[4]);
112
+ if (Number.isFinite(pid) && pid > 0) return pid;
113
+ }
114
+ return null;
115
+ }
116
+ function lookupProcessCommandByPid(pid) {
117
+ if (!Number.isFinite(pid) || pid <= 0) return null;
118
+ if (process.platform === "win32") {
119
+ const result = runLookupCommand("powershell", [
120
+ "-NoProfile",
121
+ "-Command",
122
+ `(Get-CimInstance Win32_Process -Filter "ProcessId = ${pid}").CommandLine`
123
+ ]);
124
+ if (!result.ok) return null;
125
+ const command = result.stdout.trim();
126
+ return command.length > 0 ? command : null;
127
+ }
128
+ const result = runLookupCommand("ps", [
129
+ "-p",
130
+ String(pid),
131
+ "-o",
132
+ "command="
133
+ ]);
134
+ if (!result.ok) return null;
135
+ const command = result.stdout.trim();
136
+ return command.length > 0 ? command : null;
137
+ }
138
+ function findListeningProcessByPort(port) {
139
+ if (!Number.isFinite(port) || port <= 0) return null;
140
+ let pid = null;
141
+ if (process.platform === "win32") {
142
+ const result = runLookupCommand("netstat", [
143
+ "-ano",
144
+ "-p",
145
+ "tcp"
146
+ ]);
147
+ if (!result.ok) return null;
148
+ pid = parseListeningPidFromNetstat(result.stdout, port);
149
+ } else {
150
+ const result = runLookupCommand("lsof", [
151
+ "-nP",
152
+ `-iTCP:${port}`,
153
+ "-sTCP:LISTEN",
154
+ "-F",
155
+ "p"
156
+ ]);
157
+ if (!result.ok) return null;
158
+ pid = parseListeningPidFromLsof(result.stdout);
159
+ }
160
+ if (!pid) return null;
161
+ return {
162
+ pid,
163
+ command: lookupProcessCommandByPid(pid)
164
+ };
165
+ }
74
166
  function findNearestPackageManifest(startDir, expectedName) {
75
167
  let current = resolve(startDir);
76
168
  while (current.length > 0) {
@@ -379,6 +471,19 @@ function compareNpmRuntimeVersions(left, right) {
379
471
  }
380
472
  return left.localeCompare(right);
381
473
  }
474
+ function resolveEffectiveNpmRuntimeVersion(params) {
475
+ const launcherVersion = params.launcherVersion?.trim() || null;
476
+ const currentBundleVersion = params.currentBundleVersion?.trim() || null;
477
+ if (!launcherVersion) return currentBundleVersion;
478
+ if (!currentBundleVersion) return launcherVersion;
479
+ return compareNpmRuntimeVersions(launcherVersion, currentBundleVersion) > 0 ? launcherVersion : currentBundleVersion;
480
+ }
481
+ function shouldPreferPackagedNpmRuntime(params) {
482
+ const launcherVersion = params.launcherVersion?.trim() || null;
483
+ const currentBundleVersion = params.currentBundleVersion?.trim() || null;
484
+ if (!launcherVersion || !currentBundleVersion) return false;
485
+ return resolveEffectiveNpmRuntimeVersion(params) === launcherVersion;
486
+ }
382
487
  function parseVersionParts(version) {
383
488
  return version.split(/[.-]/).map((part) => Number(part)).map((part) => Number.isFinite(part) ? part : 0);
384
489
  }
@@ -525,4 +630,4 @@ var NpmRuntimeUpdateStateStore = class {
525
630
  };
526
631
  };
527
632
  //#endregion
528
- export { resolveUiConfig as _, compareNpmRuntimeVersions as a, getPackageVersion$1 as c, openBrowser as d, printAgentResponse as f, resolveUiApiBase as g, resolveServiceLogPath as h, NpmRuntimeBundleService as i, isLoopbackHost as l, resolvePublicIp as m, NpmRuntimeUpdateSourceService as n, NpmRuntimeBundleLayoutStore as o, prompt as p, inferDefaultNpmRuntimeReleaseChannel as r, findExecutableOnPath as s, NpmRuntimeUpdateStateStore as t, isProcessRunning as u, resolveUiStaticDir as v, waitForExit as y };
633
+ export { waitForExit as S, resolvePublicIp as _, compareNpmRuntimeVersions as a, resolveUiConfig as b, NpmRuntimeBundleLayoutStore as c, getPackageVersion$1 as d, isLoopbackHost as f, prompt as g, printAgentResponse as h, NpmRuntimeBundleService as i, findExecutableOnPath as l, openBrowser as m, NpmRuntimeUpdateSourceService as n, resolveEffectiveNpmRuntimeVersion as o, isProcessRunning as p, inferDefaultNpmRuntimeReleaseChannel as r, shouldPreferPackagedNpmRuntime as s, NpmRuntimeUpdateStateStore as t, findListeningProcessByPort as u, resolveServiceLogPath as v, resolveUiStaticDir as x, resolveUiApiBase as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextclaw",
3
- "version": "0.18.12-beta.6",
3
+ "version": "0.18.12-beta.8",
4
4
  "description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -41,21 +41,21 @@
41
41
  "commander": "^12.1.0",
42
42
  "jszip": "^3.10.1",
43
43
  "yaml": "^2.8.1",
44
- "@nextclaw/mcp": "0.1.78-beta.0",
45
- "@nextclaw/companion": "0.1.1-beta.0",
44
+ "@nextclaw/companion": "0.1.1-beta.1",
45
+ "@nextclaw/mcp": "0.1.78-beta.1",
46
46
  "@nextclaw/core": "0.12.13-beta.1",
47
- "@nextclaw/kernel": "0.1.2-beta.1",
48
- "@nextclaw/ncp-agent-runtime": "0.3.16-beta.0",
49
- "@nextclaw/ncp-mcp": "0.1.80-beta.0",
50
- "@nextclaw/nextclaw-hermes-acp-bridge": "0.1.5-beta.0",
51
- "@nextclaw/ncp-toolkit": "0.5.11-beta.0",
52
- "@nextclaw/openclaw-compat": "1.0.13-beta.0",
53
- "@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.5-beta.0",
54
47
  "@nextclaw/ncp": "0.5.6-beta.0",
48
+ "@nextclaw/kernel": "0.1.2-beta.2",
49
+ "@nextclaw/ncp-mcp": "0.1.80-beta.1",
50
+ "@nextclaw/ncp-agent-runtime": "0.3.16-beta.1",
51
+ "@nextclaw/nextclaw-hermes-acp-bridge": "0.1.5-beta.1",
52
+ "@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.5-beta.1",
53
+ "@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.6-beta.1",
54
+ "@nextclaw/ncp-toolkit": "0.5.11-beta.0",
55
+ "@nextclaw/remote": "0.1.90-beta.1",
56
+ "@nextclaw/openclaw-compat": "1.0.13-beta.1",
55
57
  "@nextclaw/runtime": "0.2.45-beta.0",
56
- "@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.6-beta.0",
57
- "@nextclaw/server": "0.12.13-beta.0",
58
- "@nextclaw/remote": "0.1.90-beta.0"
58
+ "@nextclaw/server": "0.12.13-beta.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^20.17.6",
@@ -63,7 +63,7 @@
63
63
  "tsx": "^4.19.2",
64
64
  "typescript": "^5.6.3",
65
65
  "vitest": "^4.1.2",
66
- "@nextclaw/ui": "0.12.20-beta.0"
66
+ "@nextclaw/ui": "0.12.20-beta.1"
67
67
  },
68
68
  "scripts": {
69
69
  "dev": "tsx watch --tsconfig tsconfig.json src/cli/app/index.ts",
@@ -189,6 +189,7 @@ When the gateway is already running, config changes from the UI or `nextclaw con
189
189
  - `agents.defaults.model`
190
190
  - `agents.context.*`
191
191
  - `tools.*`
192
+ - `companion.enabled`
192
193
  - `plugins.*` (v1 hot plugin runtime: plugin registry/channel gateways/channels are hot-reloaded)
193
194
 
194
195
  Restart is still required for:
@@ -211,6 +212,40 @@ Useful commands:
211
212
 
212
213
  UI note: **Model** page save persists `agents.defaults.model` only.
213
214
 
215
+ ### Companion feature
216
+
217
+ NextClaw companion is a persistent system feature backed by `companion.enabled`, not just a one-off background process.
218
+
219
+ Recommended control path:
220
+
221
+ - Open the runtime settings page in the UI.
222
+ - Toggle **Companion enabled**.
223
+ - Save the runtime settings.
224
+
225
+ Behavior:
226
+
227
+ - enabling starts the companion immediately when a local runtime is available
228
+ - disabling stops any running companion process
229
+ - if it remains enabled, it auto-starts again after the NextClaw runtime restarts
230
+
231
+ CLI equivalents:
232
+
233
+ ```bash
234
+ nextclaw companion enable
235
+ nextclaw companion disable
236
+ nextclaw companion status --json
237
+ ```
238
+
239
+ Lower-level process controls are also available:
240
+
241
+ ```bash
242
+ nextclaw companion start
243
+ nextclaw companion stop
244
+ ```
245
+
246
+ Use `enable/disable` when you want the feature state to persist in config.
247
+ Use `start/stop` only for direct process control or debugging.
248
+
214
249
  ### Multi-agent routing & session isolation (OpenClaw-aligned)
215
250
 
216
251
  For agent identities themselves, do **not** create them through `Routing & Runtime` or direct `agents.list` edits.
@@ -464,6 +499,11 @@ Skill loading contract:
464
499
  | `nextclaw start` | Start gateway + UI in the background |
465
500
  | `nextclaw restart` | Restart the background service with optional start flags |
466
501
  | `nextclaw stop` | Stop the background service |
502
+ | `nextclaw companion enable` | Persistently enable the companion feature and start it when a local runtime is available |
503
+ | `nextclaw companion disable` | Persistently disable the companion feature and stop any running companion process |
504
+ | `nextclaw companion status` | Show current companion process/config status (`--json`) |
505
+ | `nextclaw companion start` | Start the companion process without changing the persisted feature toggle |
506
+ | `nextclaw companion stop` | Stop the companion process without changing the persisted feature toggle (`--force` supported) |
467
507
  | `nextclaw service install-systemd --user` | Install a user-level Linux `systemd` service for NextClaw |
468
508
  | `sudo nextclaw service install-systemd --system` | Install a system-wide Linux `systemd` service for NextClaw |
469
509
  | `nextclaw service uninstall-systemd --user` | Remove a user-level Linux `systemd` service |
@@ -531,7 +571,7 @@ Autostart notes:
531
571
 
532
572
  - `npm i -g nextclaw` installs the CLI only. It does not register host autostart by itself.
533
573
  - On Linux, use `nextclaw service install-systemd --user` for a user-level login autostart path.
534
- - On macOS, use `nextclaw service install-launch-agent` for a LaunchAgent-based login autostart path.
574
+ - On macOS, use `nextclaw service install-launch-agent` for a LaunchAgent-based login autostart path. The agent runs once at login and does not supervise retries after the runtime exits.
535
575
  - On Windows, use `nextclaw service install-task` for a Scheduled Task based login autostart path.
536
576
  - For machine-wide Linux startup after boot, use `sudo nextclaw service install-systemd --system`.
537
577
  - `nextclaw service autostart status` and `nextclaw service autostart doctor` are read-only inspection commands; add `--user` or `--system` only when you need an explicit Linux `systemd` scope.