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.
- package/cli/agent-adapter.mjs +1 -2
- package/package.json +1 -1
package/cli/agent-adapter.mjs
CHANGED
|
@@ -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 =
|
|
221
|
+
const child = crossSpawn("openclaw", [
|
|
223
222
|
"agent", "--agent", "main",
|
|
224
223
|
"--message", prompt, "--json",
|
|
225
224
|
], {
|