nextclaw 0.18.12-beta.15 → 0.18.12-beta.17

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.
@@ -2,7 +2,7 @@
2
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
- 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";
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, createExternalCommandEnv, 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";
6
6
  import { Command } from "commander";
7
7
  import fs, { appendFileSync, closeSync, constants, cpSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
8
8
  import path, { basename, delimiter, dirname, extname, isAbsolute, join, relative, resolve, sep, win32 } from "node:path";
@@ -5062,6 +5062,14 @@ function parseSessionKey(sessionKey) {
5062
5062
  };
5063
5063
  }
5064
5064
  //#endregion
5065
+ //#region src/cli/shared/utils/top-level-nextclaw-command-env.utils.ts
5066
+ const NEXTCLAW_RUNTIME_BUNDLE_ENV_KEYS = ["NEXTCLAW_RUNTIME_BUNDLE_CHILD", "NEXTCLAW_DISABLE_RUNTIME_BUNDLE_LAUNCHER"];
5067
+ function createTopLevelNextclawCommandEnv(baseEnv = process.env, extraEnv = {}) {
5068
+ const env = createExternalCommandEnv(baseEnv, extraEnv);
5069
+ for (const key of NEXTCLAW_RUNTIME_BUNDLE_ENV_KEYS) delete env[key];
5070
+ return env;
5071
+ }
5072
+ //#endregion
5065
5073
  //#region src/cli/shared/utils/startup-trace.ts
5066
5074
  const STARTUP_TRACE_ENABLED = process.env.NEXTCLAW_STARTUP_TRACE === "1";
5067
5075
  const STARTUP_TRACE_ORIGIN_MS = Date.now();
@@ -14356,7 +14364,7 @@ function spawnManagedService(params) {
14356
14364
  const childArgs = [...process.execArgv, ...cliLaunch.args];
14357
14365
  appendStartupStage(logPath, `spawning background process: ${cliLaunch.command} ${childArgs.join(" ")}`);
14358
14366
  const child = spawn(cliLaunch.command, childArgs, {
14359
- env: process.env,
14367
+ env: createTopLevelNextclawCommandEnv(process.env),
14360
14368
  stdio: "ignore",
14361
14369
  detached: true
14362
14370
  });
@@ -20942,7 +20950,7 @@ var CliRuntime = class {
20942
20950
  spawn(process.execPath, ["-e", helperScript], {
20943
20951
  detached: true,
20944
20952
  stdio: "ignore",
20945
- env: process.env
20953
+ env: createTopLevelNextclawCommandEnv(process.env)
20946
20954
  }).unref();
20947
20955
  this.selfRelaunchArmed = true;
20948
20956
  console.warn(`Gateway self-restart armed (${reason}).`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextclaw",
3
- "version": "0.18.12-beta.15",
3
+ "version": "0.18.12-beta.17",
4
4
  "description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -41,7 +41,6 @@
41
41
  "commander": "^12.1.0",
42
42
  "jszip": "^3.10.1",
43
43
  "yaml": "^2.8.1",
44
- "@nextclaw/companion": "0.1.1-beta.1",
45
44
  "@nextclaw/core": "0.12.13-beta.1",
46
45
  "@nextclaw/kernel": "0.1.2-beta.2",
47
46
  "@nextclaw/mcp": "0.1.78-beta.1",
@@ -50,12 +49,13 @@
50
49
  "@nextclaw/ncp-mcp": "0.1.80-beta.1",
51
50
  "@nextclaw/ncp-toolkit": "0.5.11-beta.0",
52
51
  "@nextclaw/nextclaw-hermes-acp-bridge": "0.1.5-beta.1",
52
+ "@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.6-beta.1",
53
53
  "@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.5-beta.1",
54
54
  "@nextclaw/openclaw-compat": "1.0.13-beta.1",
55
55
  "@nextclaw/remote": "0.1.90-beta.1",
56
56
  "@nextclaw/runtime": "0.2.45-beta.0",
57
57
  "@nextclaw/server": "0.12.13-beta.1",
58
- "@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.6-beta.1"
58
+ "@nextclaw/companion": "0.1.1-beta.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^20.17.6",