poe-code 3.0.130 → 3.0.131
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/commands/spawn.js +59 -18
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/codegen/agent-spawn-py-types.d.ts +19 -0
- package/dist/codegen/agent-spawn-py-types.js +330 -0
- package/dist/codegen/agent-spawn-py-types.js.map +1 -0
- package/dist/index.js +9029 -8402
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +38 -10
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +38 -10
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/create-provider.js +3 -3
- package/dist/providers/create-provider.js.map +1 -1
- package/dist/providers/kimi.js +47 -10
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +38 -10
- package/dist/providers/opencode.js.map +4 -4
- package/dist/providers/poe-agent.js +13 -10
- package/dist/providers/poe-agent.js.map +3 -3
- package/dist/providers/spawn-options.d.ts +2 -0
- package/dist/sdk/experiment.js +23 -10
- package/dist/sdk/experiment.js.map +1 -1
- package/dist/sdk/pipeline.js +25 -11
- package/dist/sdk/pipeline.js.map +1 -1
- package/dist/sdk/ralph.js +23 -10
- package/dist/sdk/ralph.js.map +1 -1
- package/dist/sdk/spawn.js +70 -6
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/sdk/types.d.ts +8 -0
- package/package.json +20 -3
package/dist/providers/codex.js
CHANGED
|
@@ -80,23 +80,23 @@ var require_src = __commonJS({
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
// src/templates/
|
|
83
|
+
// src/templates/py-poe-spawn/env.hbs
|
|
84
84
|
var require_env = __commonJS({
|
|
85
|
-
"src/templates/
|
|
85
|
+
"src/templates/py-poe-spawn/env.hbs"(exports, module) {
|
|
86
86
|
module.exports = "POE_API_KEY={{apiKey}}\nPOE_BASE_URL=https://api.poe.com/v1\nMODEL={{model}}\n";
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
// src/templates/
|
|
90
|
+
// src/templates/py-poe-spawn/main.py.hbs
|
|
91
91
|
var require_main_py = __commonJS({
|
|
92
|
-
"src/templates/
|
|
92
|
+
"src/templates/py-poe-spawn/main.py.hbs"(exports, module) {
|
|
93
93
|
module.exports = 'import os\nfrom openai import OpenAI\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\nclient = OpenAI(\n api_key=os.getenv("POE_API_KEY"),\n base_url=os.getenv("POE_BASE_URL")\n)\n\nresponse = client.chat.completions.create(\n model=os.getenv("MODEL", "{{model}}"),\n messages=[{"role": "user", "content": "Tell me a joke"}]\n)\n\nprint(response.choices[0].message.content)\n';
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
// src/templates/
|
|
97
|
+
// src/templates/py-poe-spawn/requirements.txt.hbs
|
|
98
98
|
var require_requirements_txt = __commonJS({
|
|
99
|
-
"src/templates/
|
|
99
|
+
"src/templates/py-poe-spawn/requirements.txt.hbs"(exports, module) {
|
|
100
100
|
module.exports = "openai>=1.0.0\npython-dotenv>=1.0.0\n";
|
|
101
101
|
}
|
|
102
102
|
});
|
|
@@ -360,6 +360,13 @@ var openCodeSpawnConfig = {
|
|
|
360
360
|
resumeCommand: (threadId, cwd) => [cwd, "--session", threadId],
|
|
361
361
|
mcpEnv: serializeOpenCodeMcpEnv
|
|
362
362
|
};
|
|
363
|
+
var openCodeAcpSpawnConfig = {
|
|
364
|
+
kind: "acp",
|
|
365
|
+
agentId: "opencode",
|
|
366
|
+
acpArgs: ["acp"],
|
|
367
|
+
skipAuth: true,
|
|
368
|
+
mcpEnv: serializeOpenCodeMcpEnv
|
|
369
|
+
};
|
|
363
370
|
|
|
364
371
|
// packages/agent-spawn/src/configs/kimi.ts
|
|
365
372
|
var kimiSpawnConfig = {
|
|
@@ -388,6 +395,11 @@ var kimiSpawnConfig = {
|
|
|
388
395
|
},
|
|
389
396
|
resumeCommand: (threadId, cwd) => ["--session", threadId, "--work-dir", cwd]
|
|
390
397
|
};
|
|
398
|
+
var kimiAcpSpawnConfig = {
|
|
399
|
+
kind: "acp",
|
|
400
|
+
agentId: "kimi",
|
|
401
|
+
acpArgs: ["acp"]
|
|
402
|
+
};
|
|
391
403
|
|
|
392
404
|
// packages/agent-spawn/src/configs/index.ts
|
|
393
405
|
var allSpawnConfigs = [
|
|
@@ -400,6 +412,9 @@ var lookup2 = /* @__PURE__ */ new Map();
|
|
|
400
412
|
for (const config of allSpawnConfigs) {
|
|
401
413
|
lookup2.set(config.agentId, config);
|
|
402
414
|
}
|
|
415
|
+
var acpLookup = /* @__PURE__ */ new Map();
|
|
416
|
+
acpLookup.set(openCodeAcpSpawnConfig.agentId, openCodeAcpSpawnConfig);
|
|
417
|
+
acpLookup.set(kimiAcpSpawnConfig.agentId, kimiAcpSpawnConfig);
|
|
403
418
|
function getSpawnConfig(input) {
|
|
404
419
|
const resolvedId = resolveAgentId(input);
|
|
405
420
|
if (!resolvedId) {
|
|
@@ -936,9 +951,22 @@ import chalk15 from "chalk";
|
|
|
936
951
|
// packages/agent-spawn/src/acp/spawn.ts
|
|
937
952
|
import { spawn as spawnChildProcess3 } from "node:child_process";
|
|
938
953
|
|
|
954
|
+
// packages/poe-acp-client/src/acp-client.ts
|
|
955
|
+
import { isAbsolute } from "node:path";
|
|
956
|
+
|
|
957
|
+
// packages/poe-acp-client/src/acp-transport.ts
|
|
958
|
+
import {
|
|
959
|
+
spawn as spawnChildProcess4
|
|
960
|
+
} from "node:child_process";
|
|
961
|
+
|
|
962
|
+
// packages/poe-acp-client/src/run-report.ts
|
|
963
|
+
import * as fsPromises from "node:fs/promises";
|
|
964
|
+
import { homedir } from "node:os";
|
|
965
|
+
import { join } from "node:path";
|
|
966
|
+
|
|
939
967
|
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
940
968
|
import path from "node:path";
|
|
941
|
-
import { homedir } from "node:os";
|
|
969
|
+
import { homedir as homedir2 } from "node:os";
|
|
942
970
|
import { mkdir, open } from "node:fs/promises";
|
|
943
971
|
|
|
944
972
|
// src/utils/command-checks.ts
|
|
@@ -2070,9 +2098,9 @@ async function runInstallStep(step, context) {
|
|
|
2070
2098
|
|
|
2071
2099
|
// src/providers/create-provider.ts
|
|
2072
2100
|
var templateImports = {
|
|
2073
|
-
"
|
|
2074
|
-
"
|
|
2075
|
-
"
|
|
2101
|
+
"py-poe-spawn/env.hbs": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
|
|
2102
|
+
"py-poe-spawn/main.py.hbs": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
|
|
2103
|
+
"py-poe-spawn/requirements.txt.hbs": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
|
|
2076
2104
|
"codex/config.toml.hbs": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
|
|
2077
2105
|
};
|
|
2078
2106
|
async function loadTemplate(templateId) {
|