@nextclaw/server 0.10.21 → 0.10.23

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.d.ts CHANGED
@@ -1146,6 +1146,7 @@ declare function executeConfigAction(configPath: string, actionId: string, reque
1146
1146
  declare function loadConfigOrDefault(configPath: string): Config;
1147
1147
  declare function updateModel(configPath: string, patch: {
1148
1148
  model?: string;
1149
+ workspace?: string;
1149
1150
  }): ConfigView;
1150
1151
  declare function updateSearch(configPath: string, patch: SearchConfigUpdate): ConfigView["search"];
1151
1152
  declare function updateProvider(configPath: string, providerName: string, patch: ProviderConfigUpdate): ProviderConfigView | null;
package/dist/index.js CHANGED
@@ -556,6 +556,7 @@ import {
556
556
  loadConfig as loadConfig2,
557
557
  saveConfig as saveConfig2,
558
558
  ConfigSchema as ConfigSchema2,
559
+ DEFAULT_WORKSPACE_PATH,
559
560
  probeFeishu,
560
561
  LiteLLMProvider,
561
562
  buildConfigSchema,
@@ -1308,6 +1309,9 @@ function updateModel(configPath, patch) {
1308
1309
  if (typeof patch.model === "string") {
1309
1310
  config.agents.defaults.model = patch.model;
1310
1311
  }
1312
+ if (typeof patch.workspace === "string") {
1313
+ config.agents.defaults.workspace = normalizeOptionalString(patch.workspace) ?? DEFAULT_WORKSPACE_PATH;
1314
+ }
1311
1315
  const next = ConfigSchema2.parse(config);
1312
1316
  saveConfig2(next, configPath);
1313
1317
  return buildConfigView(next);
@@ -3062,13 +3066,18 @@ var ConfigRoutesController = class {
3062
3066
  return c.json(err("INVALID_BODY", "model is required"), 400);
3063
3067
  }
3064
3068
  const view = updateModel(this.options.configPath, {
3065
- model: body.data.model
3069
+ model: body.data.model,
3070
+ workspace: body.data.workspace
3066
3071
  });
3067
3072
  if (hasModel) {
3068
3073
  this.options.publish({ type: "config.updated", payload: { path: "agents.defaults.model" } });
3069
3074
  }
3075
+ if (typeof body.data.workspace === "string") {
3076
+ this.options.publish({ type: "config.updated", payload: { path: "agents.defaults.workspace" } });
3077
+ }
3070
3078
  return c.json(ok({
3071
- model: view.agents.defaults.model
3079
+ model: view.agents.defaults.model,
3080
+ workspace: view.agents.defaults.workspace
3072
3081
  }));
3073
3082
  };
3074
3083
  updateConfigSearch = async (c) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/server",
3
- "version": "0.10.21",
3
+ "version": "0.10.23",
4
4
  "private": false,
5
5
  "description": "Nextclaw UI/API server.",
6
6
  "type": "module",
@@ -18,12 +18,12 @@
18
18
  "@hono/node-server": "^1.13.3",
19
19
  "hono": "^4.6.2",
20
20
  "ws": "^8.18.0",
21
- "@nextclaw/mcp": "0.1.21",
22
- "@nextclaw/runtime": "0.2.8",
23
- "@nextclaw/core": "0.9.8",
21
+ "@nextclaw/mcp": "0.1.23",
22
+ "@nextclaw/ncp": "0.3.1",
24
23
  "@nextclaw/ncp-http-agent-server": "0.3.1",
25
24
  "@nextclaw/openclaw-compat": "0.3.11",
26
- "@nextclaw/ncp": "0.3.1"
25
+ "@nextclaw/runtime": "0.2.8",
26
+ "@nextclaw/core": "0.9.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^20.17.6",