@clawos-dev/clawd 0.2.722 → 0.2.724

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.cjs CHANGED
@@ -54757,6 +54757,7 @@ function codexMcpCliArgs(defs) {
54757
54757
  ...d2.args && d2.args.length > 0 ? { args: d2.args } : {},
54758
54758
  ...d2.env && Object.keys(d2.env).length > 0 ? { env: d2.env } : {}
54759
54759
  };
54760
+ if (d2.daemonOwned) cfg.default_tools_approval_mode = "approve";
54760
54761
  const key = /^[A-Za-z0-9_-]+$/.test(d2.name) ? d2.name : JSON.stringify(d2.name);
54761
54762
  out.push("-c", `mcp_servers.${key}=${tomlValue(cfg)}`);
54762
54763
  }
@@ -55000,7 +55001,9 @@ function loadMcpServerDefs(args) {
55000
55001
  const out = [];
55001
55002
  const seen = /* @__PURE__ */ new Set();
55002
55003
  const sources = [...args.mcpConfigPaths, import_node_path25.default.join(args.cwd, ".mcp.json")];
55004
+ const daemonOwned = new Set(args.daemonOwnedPaths ?? []);
55003
55005
  for (const file of sources) {
55006
+ const owned = daemonOwned.has(file) ? { daemonOwned: true } : {};
55004
55007
  let parsed;
55005
55008
  try {
55006
55009
  parsed = JSON.parse(import_node_fs26.default.readFileSync(file, "utf8"));
@@ -55032,7 +55035,8 @@ function loadMcpServerDefs(args) {
55032
55035
  name,
55033
55036
  url: def.url,
55034
55037
  ...Object.keys(headers).length > 0 ? { httpHeaders: headers } : {},
55035
- ...bearerTokenEnvVar ? { bearerTokenEnvVar } : {}
55038
+ ...bearerTokenEnvVar ? { bearerTokenEnvVar } : {},
55039
+ ...owned
55036
55040
  });
55037
55041
  continue;
55038
55042
  }
@@ -55059,7 +55063,8 @@ function loadMcpServerDefs(args) {
55059
55063
  name,
55060
55064
  command: def.command,
55061
55065
  ...Array.isArray(def.args) && def.args.every((a2) => typeof a2 === "string") ? { args: def.args } : {},
55062
- ...Object.keys(env).length > 0 ? { env } : {}
55066
+ ...Object.keys(env).length > 0 ? { env } : {},
55067
+ ...owned
55063
55068
  });
55064
55069
  }
55065
55070
  }
@@ -55259,6 +55264,8 @@ function createCodexSession(ctx, sink, deps = {}) {
55259
55264
  ...codexMcpCliArgs(
55260
55265
  loadMcpServerDefs({
55261
55266
  mcpConfigPaths: (ctx.mcpConfigs ?? []).map((m3) => m3.path),
55267
+ // persona-secrets 是 persona 自己 .mcp.json 的渲染产物,不算 daemon 自带
55268
+ daemonOwnedPaths: (ctx.mcpConfigs ?? []).filter((m3) => !m3.id.startsWith(PERSONA_SECRET_MCP_ID_PREFIX)).map((m3) => m3.path),
55262
55269
  cwd: ctx.cwd,
55263
55270
  baseEnv: clawdEnv,
55264
55271
  logger: deps.logger
@@ -76126,7 +76133,7 @@ function computeMethodAccess(args) {
76126
76133
  }
76127
76134
 
76128
76135
  // src/version.ts
76129
- var version = "0.2.722".length > 0 ? "0.2.722" : "dev";
76136
+ var version = "0.2.724".length > 0 ? "0.2.724" : "dev";
76130
76137
 
76131
76138
  // src/cli-probe/probe.ts
76132
76139
  var fs87 = __toESM(require("fs"), 1);