nextclaw 0.17.12 → 0.18.0
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/cli/index.js +15 -2
- package/package.json +12 -11
package/dist/cli/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { McpDoctorFacade, McpMutationService, McpRegistryService, McpServerLifec
|
|
|
18
18
|
import { access, readFile } from "node:fs/promises";
|
|
19
19
|
import { HttpRuntimeConfigResolver, HttpRuntimeNcpAgentRuntime } from "@nextclaw/nextclaw-ncp-runtime-http-client";
|
|
20
20
|
import { StdioRuntimeConfigResolver, StdioRuntimeNcpAgentRuntime, probeStdioRuntime } from "@nextclaw/nextclaw-ncp-runtime-stdio-client";
|
|
21
|
+
import { buildHermesAcpBridgeLaunchEnv, isHermesAcpRuntimeConfig } from "@nextclaw/nextclaw-hermes-acp-bridge";
|
|
21
22
|
import { request } from "node:http";
|
|
22
23
|
import { request as request$1 } from "node:https";
|
|
23
24
|
import { setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
@@ -8784,7 +8785,7 @@ var BuiltinStdioRuntimeSessionTypeService = class {
|
|
|
8784
8785
|
describeInternal = async (describeMode) => {
|
|
8785
8786
|
const resolver = new StdioRuntimeConfigResolver(this.entry.config ?? {});
|
|
8786
8787
|
try {
|
|
8787
|
-
const config = resolver.resolve();
|
|
8788
|
+
const config = applyBuiltinStdioBridgeEnv(resolver.resolve(), { useProbeRoute: describeMode === "probe" });
|
|
8788
8789
|
if (!await resolveExecutablePath(config.command)) return {
|
|
8789
8790
|
ready: false,
|
|
8790
8791
|
reason: "command_missing",
|
|
@@ -8890,7 +8891,7 @@ var BuiltinNarpRuntimeRegistrationService = class {
|
|
|
8890
8891
|
createStdioRuntime = (entry, runtimeParams) => {
|
|
8891
8892
|
const config = readRecord(entry.config) ?? {};
|
|
8892
8893
|
return new StdioRuntimeNcpAgentRuntime({
|
|
8893
|
-
...new StdioRuntimeConfigResolver(config).resolve(),
|
|
8894
|
+
...applyBuiltinStdioBridgeEnv(new StdioRuntimeConfigResolver(config).resolve()),
|
|
8894
8895
|
sessionId: runtimeParams.sessionId,
|
|
8895
8896
|
stateManager: runtimeParams.stateManager,
|
|
8896
8897
|
resolveTools: runtimeParams.resolveTools,
|
|
@@ -8904,6 +8905,18 @@ var BuiltinNarpRuntimeRegistrationService = class {
|
|
|
8904
8905
|
});
|
|
8905
8906
|
};
|
|
8906
8907
|
};
|
|
8908
|
+
function applyBuiltinStdioBridgeEnv(config, params) {
|
|
8909
|
+
if (!isHermesAcpRuntimeConfig(config)) return config;
|
|
8910
|
+
return {
|
|
8911
|
+
...config,
|
|
8912
|
+
env: buildHermesAcpBridgeLaunchEnv({
|
|
8913
|
+
command: config.command,
|
|
8914
|
+
args: config.args,
|
|
8915
|
+
baseEnv: config.env,
|
|
8916
|
+
useProbeRoute: params?.useProbeRoute
|
|
8917
|
+
})
|
|
8918
|
+
};
|
|
8919
|
+
}
|
|
8907
8920
|
//#endregion
|
|
8908
8921
|
//#region src/cli/commands/agent/agent-runtime.ts
|
|
8909
8922
|
function createUnusedRuntime(_params) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -40,18 +40,19 @@
|
|
|
40
40
|
"chokidar": "^3.6.0",
|
|
41
41
|
"commander": "^12.1.0",
|
|
42
42
|
"yaml": "^2.8.1",
|
|
43
|
-
"@nextclaw/mcp": "0.1.
|
|
44
|
-
"@nextclaw/core": "0.12.7",
|
|
43
|
+
"@nextclaw/mcp": "0.1.73",
|
|
45
44
|
"@nextclaw/ncp-agent-runtime": "0.3.12",
|
|
46
|
-
"@nextclaw/ncp-mcp": "0.1.74",
|
|
47
|
-
"@nextclaw/ncp-toolkit": "0.5.7",
|
|
48
|
-
"@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.1",
|
|
49
|
-
"@nextclaw/openclaw-compat": "1.0.7",
|
|
50
45
|
"@nextclaw/ncp": "0.5.2",
|
|
51
|
-
"@nextclaw/
|
|
52
|
-
"@nextclaw/
|
|
53
|
-
"@nextclaw/
|
|
54
|
-
"@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.1"
|
|
46
|
+
"@nextclaw/ncp-mcp": "0.1.75",
|
|
47
|
+
"@nextclaw/ncp-toolkit": "0.5.7",
|
|
48
|
+
"@nextclaw/nextclaw-hermes-acp-bridge": "0.1.1",
|
|
49
|
+
"@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.1",
|
|
50
|
+
"@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.2",
|
|
51
|
+
"@nextclaw/openclaw-compat": "1.0.8",
|
|
52
|
+
"@nextclaw/remote": "0.1.85",
|
|
53
|
+
"@nextclaw/runtime": "0.2.40",
|
|
54
|
+
"@nextclaw/server": "0.12.8",
|
|
55
|
+
"@nextclaw/core": "0.12.8"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@types/node": "^20.17.6",
|