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.
package/dist/index.js CHANGED
@@ -23348,6 +23348,17 @@ function parseSuperintendentDoc(filePath, content) {
23348
23348
  frontmatter: parseFrontmatter(resolvedFilePath, parsedFrontmatter)
23349
23349
  };
23350
23350
  }
23351
+ function readExplicitBuilderAgent(filePath, content) {
23352
+ const resolvedFilePath = path18.resolve(filePath);
23353
+ const { frontmatterText } = splitFrontmatter(resolvedFilePath, content);
23354
+ const parsedFrontmatter = parseYamlFrontmatter(resolvedFilePath, frontmatterText);
23355
+ const frontmatter = expectRecord(parsedFrontmatter, "frontmatter", resolvedFilePath);
23356
+ if (frontmatter.builder === void 0) {
23357
+ return void 0;
23358
+ }
23359
+ const builder = expectRecord(frontmatter.builder, "builder", resolvedFilePath);
23360
+ return builder.agent === void 0 ? void 0 : expectString(builder.agent, "builder.agent", resolvedFilePath);
23361
+ }
23351
23362
  function splitFrontmatter(filePath, content) {
23352
23363
  const normalizedContent = content.startsWith("\uFEFF") ? content.slice(1) : content;
23353
23364
  const openingLineBreak = readOpeningLineBreak(normalizedContent);
@@ -27612,10 +27623,13 @@ async function runSuperintendentCommand(options) {
27612
27623
  runner: "superintendent",
27613
27624
  homeDir: options.homeDir
27614
27625
  });
27615
- const document = parseSuperintendentDoc(selectedDocPath, await fs19.readFile(selectedDocPath, "utf8"));
27626
+ const documentContent = await fs19.readFile(selectedDocPath, "utf8");
27627
+ const document = parseSuperintendentDoc(selectedDocPath, documentContent);
27616
27628
  const selectedBuilder = await resolveLoopAgent({
27617
27629
  providedAgent: normalizeAgentSelection(options.builderAgent),
27618
- frontmatterAgent: normalizeAgentSelection(document.frontmatter.builder.agent),
27630
+ frontmatterAgent: normalizeAgentSelection(
27631
+ readExplicitBuilderAgent(selectedDocPath, documentContent)
27632
+ ),
27619
27633
  configuredDefaultAgent: normalizeAgentSelection(options.configuredDefaultAgent) ?? null,
27620
27634
  assumeYes,
27621
27635
  fallbackAgent: "claude-code",
@@ -56649,7 +56663,7 @@ var init_package2 = __esm({
56649
56663
  "package.json"() {
56650
56664
  package_default2 = {
56651
56665
  name: "poe-code",
56652
- version: "3.0.192",
56666
+ version: "3.0.193",
56653
56667
  description: "CLI tool to configure Poe API for developer workflows.",
56654
56668
  type: "module",
56655
56669
  main: "./dist/index.js",