polydev-ai 1.8.30 → 1.8.32
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 +4 -10
- package/package.json +3 -3
package/lib/cliManager.js
CHANGED
|
@@ -1069,23 +1069,17 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1069
1069
|
const parseCodexOutput = (output) => {
|
|
1070
1070
|
if (!output || !output.trim()) return null;
|
|
1071
1071
|
|
|
1072
|
-
// DEBUG: Log raw output for troubleshooting
|
|
1073
|
-
console.log('[CLI Debug] parseCodexOutput raw input length:', output.length);
|
|
1074
|
-
console.log('[CLI Debug] parseCodexOutput raw input (first 500 chars):', output.substring(0, 500));
|
|
1075
|
-
|
|
1076
1072
|
// First, try to extract the response between "codex" marker and "tokens used"
|
|
1077
|
-
//
|
|
1078
|
-
|
|
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);
|
|
1079
1076
|
if (codexMarkerMatch && codexMarkerMatch[1]) {
|
|
1080
1077
|
const extracted = codexMarkerMatch[1].trim();
|
|
1081
|
-
console.log('[CLI Debug] codexMarkerMatch found:', JSON.stringify(extracted));
|
|
1082
1078
|
if (extracted.length > 0 && !extracted.startsWith('ERROR')) {
|
|
1083
1079
|
return extracted;
|
|
1084
1080
|
}
|
|
1085
|
-
} else {
|
|
1086
|
-
console.log('[CLI Debug] No codexMarkerMatch found');
|
|
1087
1081
|
}
|
|
1088
|
-
|
|
1082
|
+
|
|
1089
1083
|
// Fallback: Try to find bullet point responses
|
|
1090
1084
|
const bulletMatches = output.match(/•\s*(.+)/g);
|
|
1091
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.
|
|
3
|
+
"version": "1.8.32",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "Polydev AI",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"private": false,
|
|
19
|
-
"main": "mcp/
|
|
19
|
+
"main": "mcp/stdio-wrapper.js",
|
|
20
20
|
"bin": {
|
|
21
21
|
"polydev-stdio": "mcp/stdio-wrapper.js"
|
|
22
22
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/polydev-ai/perspectives-mcp.git"
|
|
46
|
+
"url": "git+https://github.com/polydev-ai/perspectives-mcp.git"
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://polydev.ai",
|
|
49
49
|
"bugs": {
|