poe-code 3.0.223 → 3.0.225

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 (88) hide show
  1. package/dist/bin/poe-gemini.js +23 -0
  2. package/dist/cli/commands/configure-payload.js +100 -13
  3. package/dist/cli/commands/configure-payload.js.map +1 -1
  4. package/dist/cli/commands/configure.js +2 -2
  5. package/dist/cli/commands/configure.js.map +1 -1
  6. package/dist/cli/commands/pipeline.js +4 -2
  7. package/dist/cli/commands/pipeline.js.map +1 -1
  8. package/dist/cli/commands/provider.d.ts +1 -0
  9. package/dist/cli/commands/provider.js +94 -3
  10. package/dist/cli/commands/provider.js.map +1 -1
  11. package/dist/cli/commands/ralph.js +1 -0
  12. package/dist/cli/commands/ralph.js.map +1 -1
  13. package/dist/cli/commands/shared.d.ts +8 -1
  14. package/dist/cli/commands/shared.js +88 -7
  15. package/dist/cli/commands/shared.js.map +1 -1
  16. package/dist/cli/commands/spawn.js +20 -0
  17. package/dist/cli/commands/spawn.js.map +1 -1
  18. package/dist/cli/commands/test.d.ts +5 -1
  19. package/dist/cli/commands/test.js +58 -6
  20. package/dist/cli/commands/test.js.map +1 -1
  21. package/dist/cli/constants.d.ts +2 -2
  22. package/dist/cli/constants.js +3 -14
  23. package/dist/cli/constants.js.map +1 -1
  24. package/dist/cli/isolated-env.d.ts +2 -1
  25. package/dist/cli/isolated-env.js +20 -2
  26. package/dist/cli/isolated-env.js.map +1 -1
  27. package/dist/cli/options.d.ts +2 -5
  28. package/dist/cli/options.js +10 -1
  29. package/dist/cli/options.js.map +1 -1
  30. package/dist/cli/poe-code-command-runner.js +7 -2
  31. package/dist/cli/poe-code-command-runner.js.map +1 -1
  32. package/dist/cli/prompt-runner.js +4 -2
  33. package/dist/cli/prompt-runner.js.map +1 -1
  34. package/dist/cli/prompts.d.ts +23 -13
  35. package/dist/cli/prompts.js +13 -0
  36. package/dist/cli/prompts.js.map +1 -1
  37. package/dist/cli/service-registry.d.ts +12 -3
  38. package/dist/cli/service-registry.js.map +1 -1
  39. package/dist/index.d.ts +3 -1
  40. package/dist/index.js +4936 -2415
  41. package/dist/index.js.map +4 -4
  42. package/dist/providers/claude-code.js +924 -174
  43. package/dist/providers/claude-code.js.map +4 -4
  44. package/dist/providers/codex.js +916 -178
  45. package/dist/providers/codex.js.map +4 -4
  46. package/dist/providers/create-provider.d.ts +1 -0
  47. package/dist/providers/create-provider.js +1 -0
  48. package/dist/providers/create-provider.js.map +1 -1
  49. package/dist/providers/gemini-cli.d.ts +16 -0
  50. package/dist/providers/gemini-cli.js +11349 -0
  51. package/dist/providers/gemini-cli.js.map +7 -0
  52. package/dist/providers/goose.js +881 -183
  53. package/dist/providers/goose.js.map +4 -4
  54. package/dist/providers/kimi.js +905 -165
  55. package/dist/providers/kimi.js.map +4 -4
  56. package/dist/providers/opencode.js +905 -165
  57. package/dist/providers/opencode.js.map +4 -4
  58. package/dist/providers/poe-agent.js +1155 -357
  59. package/dist/providers/poe-agent.js.map +4 -4
  60. package/dist/providers/spawn-options.d.ts +3 -0
  61. package/dist/sdk/pipeline.d.ts +1 -1
  62. package/dist/sdk/pipeline.js +22 -19
  63. package/dist/sdk/pipeline.js.map +1 -1
  64. package/dist/sdk/ralph.js +5 -0
  65. package/dist/sdk/ralph.js.map +1 -1
  66. package/dist/sdk/spawn-core.d.ts +3 -0
  67. package/dist/sdk/spawn-core.js +6 -8
  68. package/dist/sdk/spawn-core.js.map +1 -1
  69. package/dist/sdk/spawn.d.ts +8 -8
  70. package/dist/sdk/spawn.js +26 -3
  71. package/dist/sdk/spawn.js.map +1 -1
  72. package/dist/sdk/types.d.ts +7 -0
  73. package/dist/utils/command-checks.d.ts +8 -0
  74. package/dist/utils/command-checks.js +35 -9
  75. package/dist/utils/command-checks.js.map +1 -1
  76. package/dist/utils/dry-run.js +7 -1
  77. package/dist/utils/dry-run.js.map +1 -1
  78. package/dist/workflow-templates/github-issue-opened.caller.yml +2 -1
  79. package/dist/workflow-templates/github-issue-opened.ejected.yml +2 -1
  80. package/package.json +2 -1
  81. package/packages/agent-skill-config/dist/configs.js +4 -0
  82. package/packages/agent-skill-config/dist/git-exclude.d.ts +6 -2
  83. package/packages/agent-skill-config/dist/git-exclude.js +12 -12
  84. package/packages/memory/dist/index.js +924 -200
  85. package/packages/memory/dist/index.js.map +4 -4
  86. package/packages/superintendent/dist/index.d.ts +2 -1
  87. package/packages/superintendent/dist/runtime/loop.d.ts +1 -0
  88. package/packages/superintendent/dist/runtime/loop.js +14 -2
@@ -6,7 +6,8 @@ export { runLoop } from "./runtime/loop.js";
6
6
  export { runBuilder } from "./runtime/run-builder.js";
7
7
  export { runInspector, runAllInspectors } from "./runtime/run-inspector.js";
8
8
  export { resolveTemplate } from "./runtime/templates.js";
9
- export type { LoopCallbacks, BuilderResult, InspectorResult, TemplateContext } from "./runtime/types.js";
9
+ export type { LoopCallbacks, RunLoopOptions, AgentRunInput, AgentRunResult } from "./runtime/loop.js";
10
+ export type { BuilderResult, InspectorResult, TemplateContext } from "./runtime/types.js";
10
11
  export { createLoopState, applyTransition, isComplete } from "./state/machine.js";
11
12
  export { superintendentGroup } from "./commands/index.js";
12
13
  export { superintendentConfigScope } from "./config-scope.js";
@@ -86,6 +86,7 @@ export type RunLoopOptions = {
86
86
  fs?: SuperintendentFileSystem;
87
87
  callbacks?: LoopCallbacks;
88
88
  runAgent?: (input: AgentRunInput) => Promise<AgentRunResult>;
89
+ builderAgent?: string;
89
90
  runners?: LoopRunners;
90
91
  signal?: AbortSignal;
91
92
  logDir?: string;
@@ -37,7 +37,16 @@ export async function runLoop(input, callbacks) {
37
37
  options.callbacks.onBuilderStart?.();
38
38
  let builderResult;
39
39
  try {
40
- builderResult = await options.runners.builder(await readDocument(options.fs, options.docPath), createTemplateContext(context), buildRoleOptions(options, "builder"));
40
+ const builderDoc = await readDocument(options.fs, options.docPath);
41
+ builderResult = await options.runners.builder(options.builderAgent
42
+ ? {
43
+ ...builderDoc,
44
+ frontmatter: {
45
+ ...builderDoc.frontmatter,
46
+ builder: { ...builderDoc.frontmatter.builder, agent: options.builderAgent }
47
+ }
48
+ }
49
+ : builderDoc, createTemplateContext(context), buildRoleOptions(options, "builder"));
41
50
  }
42
51
  catch (error) {
43
52
  await restoreDocument(options.fs, options.docPath, roundSnapshot);
@@ -213,6 +222,7 @@ function normalizeOptions(input, callbacks) {
213
222
  callbacks: input.callbacks ?? {},
214
223
  runners: resolveRunners(input.runners),
215
224
  ...(input.runAgent ? { runAgent: input.runAgent } : {}),
225
+ ...(input.builderAgent ? { builderAgent: input.builderAgent } : {}),
216
226
  ...(input.signal ? { signal: input.signal } : {}),
217
227
  ...(input.logDir ? { logDir: input.logDir } : {})
218
228
  };
@@ -431,7 +441,9 @@ async function withInjectedAgentRunner(options, operation) {
431
441
  throw new Error(`Agent \`${agent}\` returned no result.`);
432
442
  }
433
443
  if (result.exitCode !== 0) {
434
- throw new Error(result.stderr || result.stdout || `Agent \`${agent}\` failed with exit code ${result.exitCode}`);
444
+ throw new Error(result.stderr ||
445
+ result.stdout ||
446
+ `Agent \`${agent}\` failed with exit code ${result.exitCode}`);
435
447
  }
436
448
  return result;
437
449
  }, operation);