@hunyed15/codecgc 0.2.6 → 0.2.7
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.
|
@@ -57,13 +57,19 @@ try {
|
|
|
57
57
|
reason = 'CodeCGC: shared paths require split-first routing. Use /cgc to split into backend/frontend steps.';
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
var response = {
|
|
61
61
|
decision: 'deny',
|
|
62
62
|
reason: reason
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
};
|
|
64
|
+
console.log(JSON.stringify(response));
|
|
65
|
+
} catch (err) {
|
|
66
|
+
// On any error, allow the operation (fail-open for safety)
|
|
67
|
+
// Log error to stderr for debugging, but don't block the operation
|
|
68
|
+
if (err && err.message) {
|
|
69
|
+
console.error('edit-guard.js error:', err.message);
|
|
70
|
+
}
|
|
66
71
|
}
|
|
72
|
+
process.exit(0);
|
|
67
73
|
|
|
68
74
|
// ── Helpers ──
|
|
69
75
|
|