poe-code 3.0.192 → 3.0.193

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.
@@ -19944,6 +19944,17 @@ function parseSuperintendentDoc(filePath, content) {
19944
19944
  frontmatter: parseFrontmatter(resolvedFilePath, parsedFrontmatter)
19945
19945
  };
19946
19946
  }
19947
+ function readExplicitBuilderAgent(filePath, content) {
19948
+ const resolvedFilePath = path17.resolve(filePath);
19949
+ const { frontmatterText } = splitFrontmatter(resolvedFilePath, content);
19950
+ const parsedFrontmatter = parseYamlFrontmatter(resolvedFilePath, frontmatterText);
19951
+ const frontmatter = expectRecord(parsedFrontmatter, "frontmatter", resolvedFilePath);
19952
+ if (frontmatter.builder === void 0) {
19953
+ return void 0;
19954
+ }
19955
+ const builder = expectRecord(frontmatter.builder, "builder", resolvedFilePath);
19956
+ return builder.agent === void 0 ? void 0 : expectString(builder.agent, "builder.agent", resolvedFilePath);
19957
+ }
19947
19958
  function splitFrontmatter(filePath, content) {
19948
19959
  const normalizedContent = content.startsWith("\uFEFF") ? content.slice(1) : content;
19949
19960
  const openingLineBreak = readOpeningLineBreak(normalizedContent);
@@ -23173,10 +23184,13 @@ async function runSuperintendentCommand(options) {
23173
23184
  runner: "superintendent",
23174
23185
  homeDir: options.homeDir
23175
23186
  });
23176
- const document = parseSuperintendentDoc(selectedDocPath, await fs4.readFile(selectedDocPath, "utf8"));
23187
+ const documentContent = await fs4.readFile(selectedDocPath, "utf8");
23188
+ const document = parseSuperintendentDoc(selectedDocPath, documentContent);
23177
23189
  const selectedBuilder = await resolveLoopAgent({
23178
23190
  providedAgent: normalizeAgentSelection(options.builderAgent),
23179
- frontmatterAgent: normalizeAgentSelection(document.frontmatter.builder.agent),
23191
+ frontmatterAgent: normalizeAgentSelection(
23192
+ readExplicitBuilderAgent(selectedDocPath, documentContent)
23193
+ ),
23180
23194
  configuredDefaultAgent: normalizeAgentSelection(options.configuredDefaultAgent) ?? null,
23181
23195
  assumeYes,
23182
23196
  fallbackAgent: "claude-code",