poe-code 3.0.202 → 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.
Files changed (49) hide show
  1. package/dist/cli/commands/experiment.js +11 -4
  2. package/dist/cli/commands/experiment.js.map +1 -1
  3. package/dist/cli/commands/ralph.js +12 -5
  4. package/dist/cli/commands/ralph.js.map +1 -1
  5. package/dist/cli/commands/runtime-options.d.ts +10 -0
  6. package/dist/cli/commands/runtime-options.js +23 -0
  7. package/dist/cli/commands/runtime-options.js.map +1 -0
  8. package/dist/cli/commands/spawn.js +9 -3
  9. package/dist/cli/commands/spawn.js.map +1 -1
  10. package/dist/index.js +21873 -20138
  11. package/dist/index.js.map +4 -4
  12. package/dist/providers/claude-code.js +2741 -1706
  13. package/dist/providers/claude-code.js.map +4 -4
  14. package/dist/providers/codex.js +2770 -1735
  15. package/dist/providers/codex.js.map +4 -4
  16. package/dist/providers/goose.js +2640 -1605
  17. package/dist/providers/goose.js.map +4 -4
  18. package/dist/providers/kimi.js +2740 -1705
  19. package/dist/providers/kimi.js.map +4 -4
  20. package/dist/providers/opencode.js +2741 -1706
  21. package/dist/providers/opencode.js.map +4 -4
  22. package/dist/providers/poe-agent.js +19451 -17229
  23. package/dist/providers/poe-agent.js.map +4 -4
  24. package/dist/providers/spawn-options.d.ts +6 -0
  25. package/dist/sdk/experiment.js +5 -0
  26. package/dist/sdk/experiment.js.map +1 -1
  27. package/dist/sdk/ralph.js +5 -0
  28. package/dist/sdk/ralph.js.map +1 -1
  29. package/dist/sdk/spawn.js +17 -1
  30. package/dist/sdk/spawn.js.map +1 -1
  31. package/dist/sdk/types.d.ts +11 -0
  32. package/package.json +1 -1
  33. package/packages/memory/dist/index.js +2353 -420
  34. package/packages/memory/dist/index.js.map +4 -4
  35. package/packages/superintendent/dist/commands/run.d.ts +35 -0
  36. package/packages/superintendent/dist/commands/run.js +49 -1
  37. package/packages/superintendent/dist/commands/superintendent-group.d.ts +30 -0
  38. package/packages/superintendent/dist/runtime/agent-runner.d.ts +30 -0
  39. package/packages/superintendent/dist/runtime/agent-runner.js +119 -0
  40. package/packages/superintendent/dist/runtime/loop.d.ts +6 -1
  41. package/packages/superintendent/dist/runtime/loop.js +3 -11
  42. package/packages/superintendent/dist/runtime/run-builder.d.ts +1 -0
  43. package/packages/superintendent/dist/runtime/run-builder.js +3 -25
  44. package/packages/superintendent/dist/runtime/run-inspector.d.ts +1 -0
  45. package/packages/superintendent/dist/runtime/run-inspector.js +3 -25
  46. package/packages/superintendent/dist/runtime/run-owner-review.d.ts +1 -0
  47. package/packages/superintendent/dist/runtime/run-owner-review.js +3 -25
  48. package/packages/superintendent/dist/runtime/run-superintendent.d.ts +1 -0
  49. package/packages/superintendent/dist/runtime/run-superintendent.js +3 -25
@@ -1,4 +1,5 @@
1
- import { spawn } from "@poe-code/agent-spawn";
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 runAutonomous({
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;