polydev-ai 1.8.29 → 1.8.31

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/lib/cliManager.js CHANGED
@@ -1070,15 +1070,16 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
1070
1070
  if (!output || !output.trim()) return null;
1071
1071
 
1072
1072
  // First, try to extract the response between "codex" marker and "tokens used"
1073
- // This is the most reliable pattern for Codex CLI output
1074
- const codexMarkerMatch = output.match(/\bcodex\s*\n([\s\S]*?)(?:\n\s*tokens used|\n\s*$)/i);
1073
+ // IMPORTANT: Use (?:^|\n) to match "codex" only at the start of a line
1074
+ // This prevents matching "codex" in model names like "gpt-5.2-codex"
1075
+ const codexMarkerMatch = output.match(/(?:^|\n)codex\s*\n([\s\S]*?)(?:\n\s*tokens used|\n\s*$)/i);
1075
1076
  if (codexMarkerMatch && codexMarkerMatch[1]) {
1076
1077
  const extracted = codexMarkerMatch[1].trim();
1077
1078
  if (extracted.length > 0 && !extracted.startsWith('ERROR')) {
1078
1079
  return extracted;
1079
1080
  }
1080
1081
  }
1081
-
1082
+
1082
1083
  // Fallback: Try to find bullet point responses
1083
1084
  const bulletMatches = output.match(/•\s*(.+)/g);
1084
1085
  if (bulletMatches && bulletMatches.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.29",
3
+ "version": "1.8.31",
4
4
  "description": "Agentic workflow assistant with CLI integration - get diverse perspectives from multiple LLMs when stuck or need enhanced reasoning",
5
5
  "keywords": [
6
6
  "mcp",