Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

ci(api-parity): classify the header builder's debug label

KageBinary57b1b2b98c6b
diff --git a/ix-cli/scripts/check-api-parity.mjs b/ix-cli/scripts/check-api-parity.mjs
index bb8e894d..8cf5da00 100644
--- a/ix-cli/scripts/check-api-parity.mjs
+++ b/ix-cli/scripts/check-api-parity.mjs
@@ -193,8 +193,10 @@ const apiLines = apiSrc.split(/\r?\n/);
// (as first arg or later) is a call pattern this gate does not know how to
// classify — report it so the surface cannot grow a silent hole. Known
// helpers whose string args are captured by their own pass (runReset) are
-// excluded.
-const KNOWN_HELPERS = new Set(["runReset"]);
+// excluded. So is `headers`: the method and path it is given only label the
+// IX_DEBUG line, and repeat the `fetch` beside it, which the fetch pass below
+// classifies.
+const KNOWN_HELPERS = new Set(["runReset", "headers"]);
for (let i = 0; i < apiLines.length; i++) {
const call = apiLines[i].match(/this\.([a-zA-Z_$][\w$]*)(?:<.*?>)?\(/);
if (!call) continue;