refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto committed 2026-09-29 16:29:23 +08:00
1 parent 36aeec9586
commit 2f08c7c932
202 files changed
+2314 -3072

No files matched your search

@@ -97,12 +97,13 @@ const node = (
role: string,
properties: Record<string, string | number | boolean | null> = {},
functionNodeId: string | null = null,
modulePath = "bundle.js",
): JavaScriptSemanticGraphNode =>
createJavaScriptSemanticGraphNode({
kind,
identity: {
artifact_sha256: SHA,
module_path: "bundle.js",
module_path: modulePath,
source_range: {
start: { line: 1, column: role.length },
end: { line: 1, column: role.length + 1 },
@@ -116,6 +117,13 @@ const node = (
evidence: evidence(),
});
it("accepts semantic module paths longer than the former schema ceiling", () => {
const modulePath = `${"segment/".repeat(600)}entry.js`;
expect(
node("module", "long-path", {}, null, modulePath).identity.module_path,
).toBe(modulePath);
});
const fixtureGraph = (withUnknown = false): JavaScriptSemanticGraph => {
const module = node("module", "module");
const literal = node("literal", "literal", { value: "TOKEN" });