wechat-to-anything 0.6.9 → 0.6.11

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.
@@ -8,7 +8,6 @@
8
8
  * - cli://gemini → 内置 Gemini CLI 适配器
9
9
  */
10
10
 
11
- import { execFile } from "node:child_process";
12
11
  import { writeFile, readFile, unlink, mkdir } from "node:fs/promises";
13
12
  import { join } from "node:path";
14
13
  import { tmpdir } from "node:os";
@@ -219,7 +218,7 @@ function runClaude(prompt) {
219
218
 
220
219
  function runOpenClaw(prompt) {
221
220
  return new Promise((resolve, reject) => {
222
- const child = spawn("openclaw", [
221
+ const child = crossSpawn("openclaw", [
223
222
  "agent", "--agent", "main",
224
223
  "--message", prompt, "--json",
225
224
  ], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechat-to-anything",
3
- "version": "0.6.9",
3
+ "version": "0.6.11",
4
4
  "description": "一条命令,把微信变成任何 AI Agent 的入口",
5
5
  "type": "module",
6
6
  "bin": {