poe-code 3.0.201 → 3.0.203
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/experiment.js +11 -4
- package/dist/cli/commands/experiment.js.map +1 -1
- package/dist/cli/commands/ralph.js +12 -5
- package/dist/cli/commands/ralph.js.map +1 -1
- package/dist/cli/commands/runtime-options.d.ts +10 -0
- package/dist/cli/commands/runtime-options.js +23 -0
- package/dist/cli/commands/runtime-options.js.map +1 -0
- package/dist/cli/commands/spawn.js +9 -3
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/index.js +22975 -20513
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +2741 -1706
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +2770 -1735
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/goose.js +2640 -1605
- package/dist/providers/goose.js.map +4 -4
- package/dist/providers/kimi.js +2740 -1705
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +2741 -1706
- package/dist/providers/opencode.js.map +4 -4
- package/dist/providers/poe-agent.js +19779 -17296
- package/dist/providers/poe-agent.js.map +4 -4
- package/dist/providers/spawn-options.d.ts +6 -0
- package/dist/sdk/experiment.js +5 -0
- package/dist/sdk/experiment.js.map +1 -1
- package/dist/sdk/ralph.js +5 -0
- package/dist/sdk/ralph.js.map +1 -1
- package/dist/sdk/spawn.js +17 -1
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/sdk/types.d.ts +11 -0
- package/package.json +1 -1
- package/packages/memory/dist/index.js +2642 -444
- package/packages/memory/dist/index.js.map +4 -4
- package/packages/superintendent/dist/commands/run.d.ts +35 -0
- package/packages/superintendent/dist/commands/run.js +49 -1
- package/packages/superintendent/dist/commands/superintendent-group.d.ts +30 -0
- package/packages/superintendent/dist/runtime/agent-runner.d.ts +30 -0
- package/packages/superintendent/dist/runtime/agent-runner.js +119 -0
- package/packages/superintendent/dist/runtime/loop.d.ts +6 -1
- package/packages/superintendent/dist/runtime/loop.js +3 -11
- package/packages/superintendent/dist/runtime/run-builder.d.ts +1 -0
- package/packages/superintendent/dist/runtime/run-builder.js +3 -25
- package/packages/superintendent/dist/runtime/run-inspector.d.ts +1 -0
- package/packages/superintendent/dist/runtime/run-inspector.js +3 -25
- package/packages/superintendent/dist/runtime/run-owner-review.d.ts +1 -0
- package/packages/superintendent/dist/runtime/run-owner-review.js +3 -25
- package/packages/superintendent/dist/runtime/run-superintendent.d.ts +1 -0
- package/packages/superintendent/dist/runtime/run-superintendent.js +3 -25
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@poe-code/agent-spawn/register-factories";
|
|
2
|
+
import { runAutonomousAgent } from "./agent-runner.js";
|
|
2
3
|
import { resolveRoleCwd } from "./resolve-cwd.js";
|
|
3
4
|
import { buildSuperintendentSystemPrompt, prependSystemPrompt } from "./system-prompt.js";
|
|
4
5
|
import { resolveTemplate } from "./templates.js";
|
|
@@ -14,7 +15,7 @@ export async function runSuperintendent(doc, context, options) {
|
|
|
14
15
|
inspectorNames: Object.keys(doc.frontmatter.inspectors ?? {})
|
|
15
16
|
});
|
|
16
17
|
const prompt = prependSystemPrompt(systemPrompt, userPrompt);
|
|
17
|
-
const result = await
|
|
18
|
+
const result = await runAutonomousAgent({
|
|
18
19
|
agent: doc.frontmatter.superintendent.agent,
|
|
19
20
|
mode: doc.frontmatter.superintendent.mode,
|
|
20
21
|
prompt,
|
|
@@ -71,29 +72,6 @@ function toSpawnMcpServer(config) {
|
|
|
71
72
|
...(config.timeout !== undefined ? { timeout: config.timeout } : {})
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
|
-
async function runAutonomous(input) {
|
|
75
|
-
const spawnApi = spawn;
|
|
76
|
-
if (typeof spawnApi.autonomous === "function") {
|
|
77
|
-
return spawnApi.autonomous(input.agent, {
|
|
78
|
-
cwd: input.cwd,
|
|
79
|
-
prompt: input.prompt,
|
|
80
|
-
mode: input.mode,
|
|
81
|
-
...(input.mcpServers ? { mcpServers: input.mcpServers } : {}),
|
|
82
|
-
...(input.logPath ? { logPath: input.logPath } : {})
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
const result = await spawn(input.agent, {
|
|
86
|
-
cwd: input.cwd,
|
|
87
|
-
prompt: input.prompt,
|
|
88
|
-
mode: input.mode,
|
|
89
|
-
...(input.mcpServers ? { mcpServers: input.mcpServers } : {}),
|
|
90
|
-
...(input.logPath ? { logPath: input.logPath } : {})
|
|
91
|
-
});
|
|
92
|
-
return {
|
|
93
|
-
stdout: result.stdout,
|
|
94
|
-
...(result.logFile ? { logFile: result.logFile } : {})
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
75
|
function extractLogPath(result) {
|
|
98
76
|
if (typeof result === "string")
|
|
99
77
|
return undefined;
|