claude-codex-wechat 0.1.34 → 0.1.35

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.
Files changed (2) hide show
  1. package/dist/server/cli.js +0 -14
  2. package/package.json +1 -1
@@ -11,7 +11,6 @@ import { networkInterfaces } from "node:os";
11
11
 
12
12
  // src/daemon/server.ts
13
13
  import { mkdtempSync, existsSync as existsSync9, writeFileSync as writeFileSync2 } from "node:fs";
14
- import { execSync } from "node:child_process";
15
14
  import { tmpdir as tmpdir2 } from "node:os";
16
15
  import { dirname as dirname7, join as join11 } from "node:path";
17
16
  import { fileURLToPath as fileURLToPath2 } from "node:url";
@@ -4928,18 +4927,6 @@ function readUpdateStatusBestEffort(configPath) {
4928
4927
  return { ok: false };
4929
4928
  }
4930
4929
  }
4931
- function ensureCodexMcpRegistered(mediaServerPath, bridgePort) {
4932
- try {
4933
- execSync("codex --version", { stdio: "ignore" });
4934
- const list = execSync("codex mcp list", { encoding: "utf8", stdio: ["pipe", "pipe", "ignore"] });
4935
- if (list.includes("wechat-media")) return;
4936
- execSync(
4937
- `codex mcp add wechat-media --env "BRIDGE_API_URL=http://localhost:${bridgePort}" -- node "${mediaServerPath}"`,
4938
- { stdio: "ignore" }
4939
- );
4940
- } catch {
4941
- }
4942
- }
4943
4930
  function createDaemonServer(options = {}) {
4944
4931
  const app = Fastify({ logger: true });
4945
4932
  const events = new BridgeEventHub();
@@ -4996,7 +4983,6 @@ function createDaemonServer(options = {}) {
4996
4983
  }
4997
4984
  }
4998
4985
  }, null, 2) + "\n");
4999
- ensureCodexMcpRegistered(useTs ? mcpMediaServerTs : mcpMediaServerJs, bridgePort);
5000
4986
  const providerAdapters = options.providers ?? createDefaultProviders({
5001
4987
  claudeCommand: options.providerCommands?.claude?.command,
5002
4988
  codexCommand: options.providerCommands?.codex?.command,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-codex-wechat",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.5.0",