poe-code 3.0.130 → 3.0.132
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/README.md +15 -1
- package/dist/cli/commands/spawn.js +175 -130
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/cli/poe-agent-main.js +10 -9
- package/dist/cli/poe-agent-main.js.map +1 -1
- package/dist/cli/program.js +0 -2
- package/dist/cli/program.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 +10217 -9564
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +67 -33
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +67 -33
- 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 +76 -33
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +67 -33
- 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/launch.js +17 -1
- package/dist/sdk/launch.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-core.d.ts +1 -1
- package/dist/sdk/spawn-core.js +54 -57
- package/dist/sdk/spawn-core.js.map +1 -1
- package/dist/sdk/spawn.js +95 -12
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/sdk/types.d.ts +9 -1
- package/dist/workspace/resolve-spawn-workspace.d.ts +15 -0
- package/dist/workspace/resolve-spawn-workspace.js +28 -0
- package/dist/workspace/resolve-spawn-workspace.js.map +1 -0
- package/package.json +21 -3
- package/dist/cli/commands/research.d.ts +0 -13
- package/dist/cli/commands/research.js +0 -158
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/sdk/research.d.ts +0 -62
- package/dist/sdk/research.js +0 -343
- package/dist/sdk/research.js.map +0 -1
|
@@ -732,6 +732,7 @@ var init_acp_client = __esm({
|
|
|
732
732
|
clientProtocolVersion;
|
|
733
733
|
clientCapabilities;
|
|
734
734
|
clientInfo;
|
|
735
|
+
skipAuth;
|
|
735
736
|
permissionHandler;
|
|
736
737
|
fsHandler;
|
|
737
738
|
terminalHandler;
|
|
@@ -759,6 +760,7 @@ var init_acp_client = __esm({
|
|
|
759
760
|
this.clientProtocolVersion = options.protocolVersion ?? 1;
|
|
760
761
|
this.clientCapabilities = options.clientCapabilities;
|
|
761
762
|
this.clientInfo = options.clientInfo;
|
|
763
|
+
this.skipAuth = options.skipAuth ?? false;
|
|
762
764
|
this.permissionHandler = options.handlers?.permission ?? options.permissionHandler;
|
|
763
765
|
this.fsHandler = options.handlers?.fs ?? options.fsHandler;
|
|
764
766
|
this.terminalHandler = options.handlers?.terminal ?? options.terminalHandler;
|
|
@@ -821,7 +823,8 @@ var init_acp_client = __esm({
|
|
|
821
823
|
this.negotiatedAgentCapabilities = response.agentCapabilities;
|
|
822
824
|
this.negotiatedAgentInfo = response.agentInfo;
|
|
823
825
|
this.availableAuthMethods = response.authMethods ? [...response.authMethods] : [];
|
|
824
|
-
|
|
826
|
+
const requiresAuth = this.availableAuthMethods.length > 0 && !this.skipAuth;
|
|
827
|
+
this.lifecycleState = requiresAuth ? "initialized" : "ready";
|
|
825
828
|
return {
|
|
826
829
|
protocolVersion: negotiatedProtocolVersion,
|
|
827
830
|
...this.negotiatedAgentCapabilities !== void 0 ? { agentCapabilities: this.negotiatedAgentCapabilities } : {},
|
|
@@ -1378,23 +1381,23 @@ var init_src = __esm({
|
|
|
1378
1381
|
}
|
|
1379
1382
|
});
|
|
1380
1383
|
|
|
1381
|
-
// src/templates/
|
|
1384
|
+
// src/templates/py-poe-spawn/env.hbs
|
|
1382
1385
|
var require_env = __commonJS({
|
|
1383
|
-
"src/templates/
|
|
1386
|
+
"src/templates/py-poe-spawn/env.hbs"(exports, module) {
|
|
1384
1387
|
module.exports = "POE_API_KEY={{apiKey}}\nPOE_BASE_URL=https://api.poe.com/v1\nMODEL={{model}}\n";
|
|
1385
1388
|
}
|
|
1386
1389
|
});
|
|
1387
1390
|
|
|
1388
|
-
// src/templates/
|
|
1391
|
+
// src/templates/py-poe-spawn/main.py.hbs
|
|
1389
1392
|
var require_main_py = __commonJS({
|
|
1390
|
-
"src/templates/
|
|
1393
|
+
"src/templates/py-poe-spawn/main.py.hbs"(exports, module) {
|
|
1391
1394
|
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';
|
|
1392
1395
|
}
|
|
1393
1396
|
});
|
|
1394
1397
|
|
|
1395
|
-
// src/templates/
|
|
1398
|
+
// src/templates/py-poe-spawn/requirements.txt.hbs
|
|
1396
1399
|
var require_requirements_txt = __commonJS({
|
|
1397
|
-
"src/templates/
|
|
1400
|
+
"src/templates/py-poe-spawn/requirements.txt.hbs"(exports, module) {
|
|
1398
1401
|
module.exports = "openai>=1.0.0\npython-dotenv>=1.0.0\n";
|
|
1399
1402
|
}
|
|
1400
1403
|
});
|
|
@@ -6445,9 +6448,9 @@ async function runInstallStep(step, context) {
|
|
|
6445
6448
|
|
|
6446
6449
|
// src/providers/create-provider.ts
|
|
6447
6450
|
var templateImports = {
|
|
6448
|
-
"
|
|
6449
|
-
"
|
|
6450
|
-
"
|
|
6451
|
+
"py-poe-spawn/env.hbs": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
|
|
6452
|
+
"py-poe-spawn/main.py.hbs": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
|
|
6453
|
+
"py-poe-spawn/requirements.txt.hbs": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
|
|
6451
6454
|
"codex/config.toml.hbs": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
|
|
6452
6455
|
};
|
|
6453
6456
|
async function loadTemplate(templateId) {
|