@chrisdudek/yg 5.2.0 → 5.2.1
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/bin.js +5 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -14678,7 +14678,10 @@ function extractLastVerdict(text2) {
|
|
|
14678
14678
|
}
|
|
14679
14679
|
function parseAspectResponse(output) {
|
|
14680
14680
|
const trimmed = output.trim();
|
|
14681
|
-
if (!trimmed)
|
|
14681
|
+
if (!trimmed) {
|
|
14682
|
+
debugWrite("[parseAspectResponse] reviewer returned an empty reply \u2014 nothing to parse");
|
|
14683
|
+
return void 0;
|
|
14684
|
+
}
|
|
14682
14685
|
try {
|
|
14683
14686
|
return normalizeResponse(JSON.parse(trimmed));
|
|
14684
14687
|
} catch (err) {
|
|
@@ -14696,7 +14699,7 @@ function parseAspectResponse(output) {
|
|
|
14696
14699
|
if (verdict) return normalizeResponse(verdict);
|
|
14697
14700
|
const salvaged = salvageVerdict(trimmed);
|
|
14698
14701
|
if (salvaged) return salvaged;
|
|
14699
|
-
debugWrite(
|
|
14702
|
+
debugWrite(`[parseAspectResponse] no parseable JSON verdict \u2014 classifying as provider error. Raw reply (${output.length} chars): ${output}`);
|
|
14700
14703
|
return { satisfied: false, reason: `Unparseable reviewer response: ${trimmed.slice(0, 160)}`, errorSource: "provider" };
|
|
14701
14704
|
}
|
|
14702
14705
|
var CliAgentProvider = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisdudek/yg",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Architecture rules your AI coding agent can't ignore. It gets the rules for a file before it edits, and every change is checked — by a free local script or an LLM reviewer — before it moves on. Works with Claude Code, Cursor, Copilot, Codex, Cline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|