Skip to content

armgit / Ix

Public Imported from GitHub
0

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

Add parser regression and integration tests

CodexSandboxOffline6c95c5d8566c
diff --git a/core-ingestion/dist/queries.d.ts b/core-ingestion/dist/queries.d.ts
index a906b149..dc93d58a 100644
--- a/core-ingestion/dist/queries.d.ts
+++ b/core-ingestion/dist/queries.d.ts
@@ -12,5 +12,5 @@ export declare const PHP_QUERIES = "\n; \u2500\u2500 Namespace \u2500\u2500\u250
export declare const RUBY_QUERIES = "\n; \u2500\u2500 Modules \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(module\n name: (constant) @name) @definition.module\n\n; \u2500\u2500 Classes \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(class\n name: (constant) @name) @definition.class\n\n; \u2500\u2500 Instance methods \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(method\n name: (identifier) @name) @definition.method\n\n; \u2500\u2500 Singleton (class-level) methods \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(singleton_method\n name: (identifier) @name) @definition.method\n\n; \u2500\u2500 Require / require_relative \u2192 IMPORTS \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Capture the string argument so the second pass emits an IMPORTS edge.\n(call\n method: (identifier) @_req\n arguments: (argument_list\n (string (string_content) @import.source))\n (#match? @_req \"^require\")) @import\n\n; \u2500\u2500 All other calls \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call\n method: (identifier) @call.name) @call\n\n; \u2500\u2500 Bare calls without parens (identifiers at statement level are method calls) \u2500\n; NOTE: This may over-capture variable reads as calls (e.g. 'result' at\n; statement level). Ruby's grammar makes bare identifiers ambiguous \u2014 they\n; could be local variables or zero-arity method calls. Post-processing via\n; the BUILTINS set suppresses most false positives.\n(body_statement\n (identifier) @call.name @call)\n\n; \u2500\u2500 Heritage: class < SuperClass \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(class\n name: (constant) @heritage.class\n superclass: (superclass\n (constant) @heritage.extends)) @heritage\n";
export declare const KOTLIN_QUERIES = "\n; \u2500\u2500 Interfaces \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; tree-sitter-kotlin (fwcd) has no interface_declaration node type.\n; Interfaces are class_declaration nodes with an anonymous \"interface\" keyword child.\n(class_declaration\n \"interface\"\n (type_identifier) @name) @definition.interface\n\n; \u2500\u2500 Classes (regular, data, sealed, enum) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; All have the anonymous \"class\" keyword child. enum class has both\n; \"enum\" and \"class\" children \u2014 the \"class\" child still matches.\n(class_declaration\n \"class\"\n (type_identifier) @name) @definition.class\n\n; \u2500\u2500 Object declarations (Kotlin singletons) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(object_declaration\n (type_identifier) @name) @definition.class\n\n; \u2500\u2500 Companion objects (named only) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(companion_object\n (type_identifier) @name) @definition.class\n\n; \u2500\u2500 Functions (top-level, member, extension) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(function_declaration\n (simple_identifier) @name) @definition.function\n\n; \u2500\u2500 Properties \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(property_declaration\n (variable_declaration\n (simple_identifier) @name)) @definition.property\n\n; \u2500\u2500 Enum entries \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(enum_entry\n (simple_identifier) @name) @definition.enum\n\n; \u2500\u2500 Type aliases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(type_alias\n (type_identifier) @name) @definition.type\n\n; \u2500\u2500 Imports \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(import_header\n (identifier) @import.source) @import\n\n; \u2500\u2500 Function calls (direct) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call_expression\n (simple_identifier) @call.name) @call\n\n; \u2500\u2500 Method calls (via navigation: obj.method()) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call_expression\n (navigation_expression\n (navigation_suffix\n (simple_identifier) @call.name))) @call\n\n; \u2500\u2500 Constructor invocations \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(constructor_invocation\n (user_type\n (type_identifier) @call.name)) @call\n\n; \u2500\u2500 Infix function calls (e.g., a to b, x until y) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(infix_expression\n (simple_identifier) @call.name) @call\n\n; \u2500\u2500 Heritage: extends / implements via delegation_specifier \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Interface implementation (bare user_type): class Foo : Bar\n(class_declaration\n (type_identifier) @heritage.class\n (delegation_specifier\n (user_type (type_identifier) @heritage.extends))) @heritage\n\n; Class extension (constructor_invocation): class Foo : Bar()\n(class_declaration\n (type_identifier) @heritage.class\n (delegation_specifier\n (constructor_invocation\n (user_type (type_identifier) @heritage.extends)))) @heritage\n\n; \u2500\u2500 Type references \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(type_reference (user_type (type_identifier) @reference.type))\n";
export declare const SWIFT_QUERIES = "\n; Classes\n(class_declaration \"class\" name: (type_identifier) @name) @definition.class\n\n; Structs\n(class_declaration \"struct\" name: (type_identifier) @name) @definition.struct\n\n; Enums\n(class_declaration \"enum\" name: (type_identifier) @name) @definition.enum\n\n; Extensions (mapped to class \u2014 no dedicated label in schema)\n(class_declaration \"extension\" name: (user_type (type_identifier) @name)) @definition.class\n\n; Actors\n(class_declaration \"actor\" name: (type_identifier) @name) @definition.class\n\n; Protocols (mapped to interface)\n(protocol_declaration name: (type_identifier) @name) @definition.interface\n\n; Type aliases\n(typealias_declaration name: (type_identifier) @name) @definition.type\n\n; Functions (top-level and methods)\n(function_declaration name: (simple_identifier) @name) @definition.function\n\n; Protocol method declarations\n(protocol_function_declaration name: (simple_identifier) @name) @definition.method\n\n; Initializers \u2014 \"init\" is the canonical name; line offset tracked via definition node\n(init_declaration \"init\" @name) @definition.constructor\n\n; Properties (stored and computed)\n(property_declaration (pattern (simple_identifier) @name)) @definition.property\n\n; Imports\n(import_declaration (identifier (simple_identifier) @import.source)) @import\n\n; Calls - direct function calls\n(call_expression (simple_identifier) @call.name) @call\n\n; Calls - member/navigation calls (obj.method())\n(call_expression (navigation_expression (navigation_suffix (simple_identifier) @call.name))) @call\n\n; Heritage - class/struct/enum inheritance and protocol conformance\n(class_declaration name: (type_identifier) @heritage.class\n (inheritance_specifier inherits_from: (user_type (type_identifier) @heritage.extends))) @heritage\n\n; Heritage - protocol inheritance\n(protocol_declaration name: (type_identifier) @heritage.class\n (inheritance_specifier inherits_from: (user_type (type_identifier) @heritage.extends))) @heritage\n\n; Heritage - extension protocol conformance (e.g. extension Foo: SomeProtocol)\n; Extensions wrap the name in user_type unlike class/struct/enum declarations\n(class_declaration \"extension\" name: (user_type (type_identifier) @heritage.class)\n (inheritance_specifier inherits_from: (user_type (type_identifier) @heritage.extends))) @heritage\n\n; Type references \u2014 captures types used in annotations/parameters/return types\n(type_annotation (user_type (type_identifier) @reference.type))\n";
-export declare const SCALA_QUERIES = "\n; \u2500\u2500 Classes (class, case class, abstract class, sealed class) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(class_definition\n name: (identifier) @name) @definition.class\n\n; \u2500\u2500 Traits (mapped to interface) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(trait_definition\n name: (identifier) @name) @definition.interface\n\n; \u2500\u2500 Object definitions (companion objects, case objects, singletons) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(object_definition\n name: (identifier) @name) @definition.class\n\n; \u2500\u2500 Function / method definitions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(function_definition\n name: (identifier) @name) @definition.function\n\n; \u2500\u2500 Abstract method declarations (in traits / abstract classes) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(function_declaration\n name: (identifier) @name) @definition.method\n\n; \u2500\u2500 Type aliases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(type_definition\n name: (type_identifier) @name) @definition.type\n\n; \u2500\u2500 Imports: capture full declaration for dotted-path reconstruction \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Handles: import ix.memory.model._ (wildcard)\n; import ix.memory.model.{NodeKind, GraphNode} (selective)\n; import ix.memory.model.NodeKind (simple)\n(import_declaration) @import.stmt\n\n; \u2500\u2500 Calls: direct function call \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call_expression\n function: (identifier) @call.name) @call\n\n; \u2500\u2500 Calls: method call (obj.method()) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call_expression\n function: (field_expression\n field: (identifier) @call.name)) @call\n\n; \u2500\u2500 Constructor: new Foo() \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(instance_expression\n (type_identifier) @call.name) @call\n\n; \u2500\u2500 Heritage: class / object extends and with \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(class_definition\n name: (identifier) @heritage.class\n extend: (extends_clause\n (type_identifier) @heritage.extends)) @heritage\n\n(trait_definition\n name: (identifier) @heritage.class\n extend: (extends_clause\n (type_identifier) @heritage.extends)) @heritage\n\n(object_definition\n name: (identifier) @heritage.class\n extend: (extends_clause\n (type_identifier) @heritage.extends)) @heritage\n\n; \u2500\u2500 Type references \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Case class parameter types: case class Foo(x: NodeKind)\n(class_parameter (type_identifier) @reference.type)\n; Method parameter types: def foo(x: NodeKind)\n(parameter (type_identifier) @reference.type)\n; Val/var type annotations: val x: NodeKind = ...\n(val_definition (type_identifier) @reference.type)\n(var_definition (type_identifier) @reference.type)\n; Return type annotations: def foo(): NodeKind = ...\n; (type_identifier is a direct child of function_definition, no named field)\n(function_definition (type_identifier) @reference.type)\n; Generic type arguments: Map[NodeId, NodeKind], Option[NodeKind], Set[NodeKind], etc.\n(generic_type (type_arguments (type_identifier) @reference.type))\n\n; \u2500\u2500 Qualified singleton / companion-object member access \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Two grammar shapes arise in practice:\n; expression context: NodeKind.Class \u2192 field_expression\n; pattern context: case Some(NodeKind.Class) => \u2026 \u2192 stable_identifier\n; Both shapes are captured below. The (#match? ^[A-Z]) predicates restrict to\n; UpperCamelCase identifiers (Scala convention for case objects / companion\n; object members), filtering out lowercase method / field names.\n\n; Expression: val x = NodeKind.Decision\n(field_expression\n value: (identifier) @_qualifier\n field: (identifier) @call.name\n (#match? @_qualifier \"^[A-Z]\")\n (#match? @call.name \"^[A-Z]\"))\n\n; Pattern: case Some(NodeKind.Class) | Some(NodeKind.Trait) => \u2026\n(stable_identifier\n (identifier) @_qualifier\n \".\"\n (identifier) @call.name\n (#match? @_qualifier \"^[A-Z]\")\n (#match? @call.name \"^[A-Z]\"))\n";
+export declare const SCALA_QUERIES = "\n; \u2500\u2500 Classes (class, case class, abstract class, sealed class) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(class_definition\n name: (identifier) @name) @definition.class\n\n; \u2500\u2500 Traits (mapped to interface) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(trait_definition\n name: (identifier) @name) @definition.interface\n\n; \u2500\u2500 Object definitions (companion objects, case objects, singletons) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(object_definition\n name: (identifier) @name) @definition.class\n\n; \u2500\u2500 Function / method definitions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(function_definition\n name: (identifier) @name) @definition.function\n\n; \u2500\u2500 Abstract method declarations (in traits / abstract classes) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(function_declaration\n name: (identifier) @name) @definition.method\n\n; \u2500\u2500 Type aliases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(type_definition\n name: (type_identifier) @name) @definition.type\n\n; \u2500\u2500 Val/var definitions (class-level members only, not method-local vars) \u2500\u2500\u2500\u2500\u2500\u2500\n; Restricting to template_body ensures we only capture class/object-level\n; declarations (e.g. companion object implicits) and not local val bindings\n; inside method bodies, which would add noise entities to the graph.\n(template_body\n (val_definition (identifier) @name) @definition.const)\n\n(template_body\n (var_definition (identifier) @name) @definition.const)\n\n; \u2500\u2500 Imports: capture full declaration for dotted-path reconstruction \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Handles: import ix.memory.model._ (wildcard)\n; import ix.memory.model.{NodeKind, GraphNode} (selective)\n; import ix.memory.model.NodeKind (simple)\n(import_declaration) @import.stmt\n\n; \u2500\u2500 Calls: direct function call \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call_expression\n function: (identifier) @call.name) @call\n\n; \u2500\u2500 Calls: method call (obj.method()) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(call_expression\n function: (field_expression\n field: (identifier) @call.name)) @call\n\n; \u2500\u2500 Constructor: new Foo() \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(instance_expression\n (type_identifier) @call.name) @call\n\n; \u2500\u2500 Heritage: class / object extends and with \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n(class_definition\n name: (identifier) @heritage.class\n extend: (extends_clause\n (type_identifier) @heritage.extends)) @heritage\n\n(trait_definition\n name: (identifier) @heritage.class\n extend: (extends_clause\n (type_identifier) @heritage.extends)) @heritage\n\n(object_definition\n name: (identifier) @heritage.class\n extend: (extends_clause\n (type_identifier) @heritage.extends)) @heritage\n\n; \u2500\u2500 Type references \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Case class parameter types: case class Foo(x: NodeKind)\n(class_parameter (type_identifier) @reference.type)\n; Method parameter types: def foo(x: NodeKind)\n(parameter (type_identifier) @reference.type)\n; Val/var type annotations: val x: NodeKind = ...\n(val_definition (type_identifier) @reference.type)\n(var_definition (type_identifier) @reference.type)\n; Return type annotations: def foo(): NodeKind = ...\n; (type_identifier is a direct child of function_definition, no named field)\n(function_definition (type_identifier) @reference.type)\n; Generic type arguments: Map[NodeId, NodeKind], Option[NodeKind], Set[NodeKind], etc.\n(generic_type (type_arguments (type_identifier) @reference.type))\n\n; \u2500\u2500 Qualified singleton / companion-object member access \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n; Two grammar shapes arise in practice:\n; expression context: NodeKind.Class \u2192 field_expression\n; pattern context: case Some(NodeKind.Class) => \u2026 \u2192 stable_identifier\n; Both shapes are captured below. The (#match? ^[A-Z]) predicates restrict to\n; UpperCamelCase identifiers (Scala convention for case objects / companion\n; object members), filtering out lowercase method / field names.\n\n; Expression: val x = NodeKind.Decision\n(field_expression\n value: (identifier) @_qualifier\n field: (identifier) @call.name\n (#match? @_qualifier \"^[A-Z]\")\n (#match? @call.name \"^[A-Z]\"))\n\n; Pattern: case Some(NodeKind.Class) | Some(NodeKind.Trait) => \u2026\n(stable_identifier\n (identifier) @_qualifier\n \".\"\n (identifier) @call.name\n (#match? @_qualifier \"^[A-Z]\")\n (#match? @call.name \"^[A-Z]\"))\n";
export declare const LANGUAGE_QUERIES: Record<SupportedLanguages, string>;
diff --git a/core-ingestion/dist/queries.js b/core-ingestion/dist/queries.js
index 01127c87..6c0c5896 100644
--- a/core-ingestion/dist/queries.js
+++ b/core-ingestion/dist/queries.js
@@ -764,6 +764,16 @@ export const SCALA_QUERIES = `
(type_definition
name: (type_identifier) @name) @definition.type
+; ── Val/var definitions (class-level members only, not method-local vars) ──────
+; Restricting to template_body ensures we only capture class/object-level
+; declarations (e.g. companion object implicits) and not local val bindings
+; inside method bodies, which would add noise entities to the graph.
+(template_body
+ (val_definition (identifier) @name) @definition.const)
+
+(template_body
+ (var_definition (identifier) @name) @definition.const)
+
; ── Imports: capture full declaration for dotted-path reconstruction ─────────
; Handles: import ix.memory.model._ (wildcard)
; import ix.memory.model.{NodeKind, GraphNode} (selective)
diff --git a/core-ingestion/package-lock.json b/core-ingestion/package-lock.json
index e74ce252..fe5c490e 100644
--- a/core-ingestion/package-lock.json
+++ b/core-ingestion/package-lock.json
@@ -24,19 +24,928 @@
},
"devDependencies": {
"@types/node": "^20.0.0",
- "typescript": "^5.4.0"
+ "fast-check": "^4.6.0",
+ "typescript": "^5.4.0",
+ "vitest": "^4.1.0"
}
},
+ "node_modules/@emnapi/core": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.0.tgz",
+ "integrity": "sha512-0DQ98G9ZQZOxfUcQn1waV2yS8aWdZ6kJMbYCJB3oUBecjWYO1fqJ+a1DRfPF3O5JEkwqwP1A9QEN/9mYm2Yd0w==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "1.2.0",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.0.tgz",
+ "integrity": "sha512-QN75eB0IH2ywSpRpNddCRfQIhmJYBCJ1x5Lb3IscKAL8bMnVAKnRg8dCoXbHzVLLH7P38N2Z3mtulB7W0J0FKw==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",
+ "integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@napi-rs/wasm-runtime": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",
+ "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.7.1",
+ "@emnapi/runtime": "^1.7.1",
+ "@tybys/wasm-util": "^0.10.1"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@oxc-project/runtime": {
+ "version": "0.115.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/runtime/-/runtime-0.115.0.tgz",
+ "integrity": "sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxc-project/types": {
+ "version": "0.115.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.115.0.tgz",
+ "integrity": "sha512-4n91DKnebUS4yjUHl2g3/b2T+IUdCfmoZGhmwsovZCDaJSs+QkVAM+0AqqTxHSsHfeiMuueT75cZaZcT/m0pSw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/Boshen"
+ }
+ },
+ "node_modules/@rolldown/binding-android-arm64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-lcJL0bN5hpgJfSIz/8PIf02irmyL43P+j1pTCfbD1DbLkmGRuFIA4DD3B3ZOvGqG0XiVvRznbKtN0COQVaKUTg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-darwin-arm64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-J7Zk3kLYFsLtuH6U+F4pS2sYVzac0qkjcO5QxHS7OS7yZu2LRs+IXo+uvJ/mvpyUljDJ3LROZPoQfgBIpCMhdQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-darwin-x64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-iwtmmghy8nhfRGeNAIltcNXzD0QMNaaA5U/NyZc1Ia4bxrzFByNMDoppoC+hl7cDiUq5/1CnFthpT9n+UtfFyg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-freebsd-x64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-DLFYI78SCiZr5VvdEplsVC2Vx53lnA4/Ga5C65iyldMVaErr86aiqCoNBLl92PXPfDtUYjUh+xFFor40ueNs4Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.9.tgz",
+ "integrity": "sha512-CsjTmTwd0Hri6iTw/DRMK7kOZ7FwAkrO4h8YWKoX/kcj833e4coqo2wzIFywtch/8Eb5enQ/lwLM7w6JX1W5RQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm64-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-2x9O2JbSPxpxMDhP9Z74mahAStibTlrBMW0520+epJH5sac7/LwZW5Bmg/E6CXuEF53JJFW509uP+lSedaUNxg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm64-musl": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.9.tgz",
+ "integrity": "sha512-JA1QRW31ogheAIRhIg9tjMfsYbglXXYGNPLdPEYrwFxdbkQCAzvpSCSHCDWNl4hTtrol8WeboCSEpjdZK8qrCg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-ppc64-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-aOKU9dJheda8Kj8Y3w9gnt9QFOO+qKPAl8SWd7JPHP+Cu0EuDAE5wokQubLzIDQWg2myXq2XhTpOVS07qqvT+w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-s390x-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-OalO94fqj7IWRn3VdXWty75jC5dk4C197AWEuMhIpvVv2lw9fiPhud0+bW2ctCxb3YoBZor71QHbY+9/WToadA==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-gnu": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.9.tgz",
+ "integrity": "sha512-cVEl1vZtBsBZna3YMjGXNvnYYrOJ7RzuWvZU0ffvJUexWkukMaDuGhUXn0rjnV0ptzGVkvc+vW9Yqy6h8YX4pg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-musl": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.9.tgz",
+ "integrity": "sha512-UzYnKCIIc4heAKgI4PZ3dfBGUZefGCJ1TPDuLHoCzgrMYPb5Rv6TLFuYtyM4rWyHM7hymNdsg5ik2C+UD9VDbA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-openharmony-arm64": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.9.tgz",
+ "integrity": "sha512-+6zoiF+RRyf5cdlFQP7nm58mq7+/2PFaY2DNQeD4B87N36JzfF/l9mdBkkmTvSYcYPE8tMh/o3cRlsx1ldLfog==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-wasm32-wasi": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.9.tgz",
+ "integrity": "sha512-rgFN6sA/dyebil3YTlL2evvi/M+ivhfnyxec7AccTpRPccno/rPoNlqybEZQBkcbZu8Hy+eqNJCqfBR8P7Pg8g==",
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@napi-rs/wasm-runtime": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@rolldown/binding-win32-arm64-msvc": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.9.tgz",
+ "integrity": "sha512-lHVNUG/8nlF1IQk1C0Ci574qKYyty2goMiPlRqkC5R+3LkXDkL5Dhx8ytbxq35m+pkHVIvIxviD+TWLdfeuadA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-win32-x64-msvc": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.9.tgz",
+ "integrity": "sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.9.tgz",
+ "integrity": "sha512-w6oiRWgEBl04QkFZgmW+jnU1EC9b57Oihi2ot3HNWIQRqgHp5PnYDia5iZ5FF7rpa4EQdiqMDXjlqKGXBhsoXw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@standard-schema/spec": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
+ "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/chai": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/deep-eql": "*",
+ "assertion-error": "^2.0.1"
+ }
+ },
+ "node_modules/@types/deep-eql": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/node": {
"version": "20.19.37",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.37.tgz",
"integrity": "sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"undici-types": "~6.21.0"
}
},
+ "node_modules/@vitest/expect": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.0.tgz",
+ "integrity": "sha512-EIxG7k4wlWweuCLG9Y5InKFwpMEOyrMb6ZJ1ihYu02LVj/bzUwn2VMU+13PinsjRW75XnITeFrQBMH5+dLvCDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/spec": "^1.1.0",
+ "@types/chai": "^5.2.2",
+ "@vitest/spy": "4.1.0",
+ "@vitest/utils": "4.1.0",
+ "chai": "^6.2.2",
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.0.tgz",
+ "integrity": "sha512-evxREh+Hork43+Y4IOhTo+h5lGmVRyjqI739Rz4RlUPqwrkFFDF6EMvOOYjTx4E8Tl6gyCLRL8Mu7Ry12a13Tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "4.1.0",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^0.30.21"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "msw": "^2.4.9",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/pretty-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.0.tgz",
+ "integrity": "sha512-3RZLZlh88Ib0J7NQTRATfc/3ZPOnSUn2uDBUoGNn5T36+bALixmzphN26OUD3LRXWkJu4H0s5vvUeqBiw+kS0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/runner": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.0.tgz",
+ "integrity": "sha512-Duvx2OzQ7d6OjchL+trw+aSrb9idh7pnNfxrklo14p3zmNL4qPCDeIJAK+eBKYjkIwG96Bc6vYuxhqDXQOWpoQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/utils": "4.1.0",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/snapshot": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.0.tgz",
+ "integrity": "sha512-0Vy9euT1kgsnj1CHttwi9i9o+4rRLEaPRSOJ5gyv579GJkNpgJK+B4HSv/rAWixx2wdAFci1X4CEPjiu2bXIMg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "4.1.0",
+ "@vitest/utils": "4.1.0",
+ "magic-string": "^0.30.21",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/spy": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.0.tgz",
+ "integrity": "sha512-pz77k+PgNpyMDv2FV6qmk5ZVau6c3R8HC8v342T2xlFxQKTrSeYw9waIJG8KgV9fFwAtTu4ceRzMivPTH6wSxw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/utils": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.0.tgz",
+ "integrity": "sha512-XfPXT6a8TZY3dcGY8EdwsBulFCIw+BeeX0RZn2x/BtiY/75YGh8FeWGG8QISN/WhaqSrE2OrlDgtF8q5uhOTmw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "4.1.0",
+ "convert-source-map": "^2.0.0",
+ "tinyrainbow": "^3.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/chai": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",
+ "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz",
+ "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",
+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/fast-check": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.6.0.tgz",
+ "integrity": "sha512-h7H6Dm0Fy+H4ciQYFxFjXnXkzR2kr9Fb22c0UBpHnm59K2zpr2t13aPTHlltFiNT6zuxp6HMPAVVvgur4BLdpA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/dubzzz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fast-check"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "pure-rand": "^8.0.0"
+ },
+ "engines": {
+ "node": ">=12.17.0"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.32.0",
+ "lightningcss-darwin-arm64": "1.32.0",
+ "lightningcss-darwin-x64": "1.32.0",
+ "lightningcss-freebsd-x64": "1.32.0",
+ "lightningcss-linux-arm-gnueabihf": "1.32.0",
+ "lightningcss-linux-arm64-gnu": "1.32.0",
+ "lightningcss-linux-arm64-musl": "1.32.0",
+ "lightningcss-linux-x64-gnu": "1.32.0",
+ "lightningcss-linux-x64-musl": "1.32.0",
+ "lightningcss-win32-arm64-msvc": "1.32.0",
+ "lightningcss-win32-x64-msvc": "1.32.0"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
"node_modules/node-addon-api": {
"version": "8.6.0",
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.6.0.tgz",
@@ -57,6 +966,200 @@
"node-gyp-build-test": "build-test.js"
}
},
+ "node_modules/obug": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz",
+ "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==",
+ "dev": true,
+ "funding": [
+ "https://github.com/sponsors/sxzz",
+ "https://opencollective.com/debug"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.8",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/pure-rand": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-8.2.0.tgz",
+ "integrity": "sha512-KHnUjm68KSO/hqpWlVwagMDPrIjnDNY9r0DbKN79xEa5RU2MLUe0lICBGpWDF8cwmhUiN8r9A8DLGPVcFB62/A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/dubzzz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fast-check"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/rolldown": {
+ "version": "1.0.0-rc.9",
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.9.tgz",
+ "integrity": "sha512-9EbgWge7ZH+yqb4d2EnELAntgPTWbfL8ajiTW+SyhJEC4qhBbkCKbqFV4Ge4zmu5ziQuVbWxb/XwLZ+RIO7E8Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@oxc-project/types": "=0.115.0",
+ "@rolldown/pluginutils": "1.0.0-rc.9"
+ },
+ "bin": {
+ "rolldown": "bin/cli.mjs"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "optionalDependencies": {
+ "@rolldown/binding-android-arm64": "1.0.0-rc.9",
+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.9",
+ "@rolldown/binding-darwin-x64": "1.0.0-rc.9",
+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.9",
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.9",
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.9",
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.9",
+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.9",
+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.9",
+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.9",
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.9",
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.9"
+ }
+ },
+ "node_modules/siginfo": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stackback": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/std-env": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.0.0.tgz",
+ "integrity": "sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinybench": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.4.tgz",
+ "integrity": "sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.15",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyrainbow": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz",
+ "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
"node_modules/tree-sitter": {
"version": "0.21.1",
"resolved": "https://registry.npmjs.org/tree-sitter/-/tree-sitter-0.21.1.tgz",
@@ -309,6 +1412,14 @@
}
}
},
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "dev": true,
+ "license": "0BSD",
+ "optional": true
+ },
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
@@ -329,6 +1440,185 @@
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
+ },
+ "node_modules/vite": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.0.tgz",
+ "integrity": "sha512-fPGaRNj9Zytaf8LEiBhY7Z6ijnFKdzU/+mL8EFBaKr7Vw1/FWcTBAMW0wLPJAGMPX38ZPVCVgLceWiEqeoqL2Q==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@oxc-project/runtime": "0.115.0",
+ "lightningcss": "^1.32.0",
+ "picomatch": "^4.0.3",
+ "postcss": "^8.5.8",
+ "rolldown": "1.0.0-rc.9",
+ "tinyglobby": "^0.2.15"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "@vitejs/devtools": "^0.0.0-alpha.31",
+ "esbuild": "^0.27.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "@vitejs/devtools": {
+ "optional": true
+ },
+ "esbuild": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vitest": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.0.tgz",
+ "integrity": "sha512-YbDrMF9jM2Lqc++2530UourxZHmkKLxrs4+mYhEwqWS97WJ7wOYEkcr+QfRgJ3PW9wz3odRijLZjHEaRLTNbqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/expect": "4.1.0",
+ "@vitest/mocker": "4.1.0",
+ "@vitest/pretty-format": "4.1.0",
+ "@vitest/runner": "4.1.0",
+ "@vitest/snapshot": "4.1.0",
+ "@vitest/spy": "4.1.0",
+ "@vitest/utils": "4.1.0",
+ "es-module-lexer": "^2.0.0",
+ "expect-type": "^1.3.0",
+ "magic-string": "^0.30.21",
+ "obug": "^2.1.1",
+ "pathe": "^2.0.3",
+ "picomatch": "^4.0.3",
+ "std-env": "^4.0.0-rc.1",
+ "tinybench": "^2.9.0",
+ "tinyexec": "^1.0.2",
+ "tinyglobby": "^0.2.15",
+ "tinyrainbow": "^3.0.3",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0",
+ "why-is-node-running": "^2.3.0"
+ },
+ "bin": {
+ "vitest": "vitest.mjs"
+ },
+ "engines": {
+ "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@edge-runtime/vm": "*",
+ "@opentelemetry/api": "^1.9.0",
+ "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
+ "@vitest/browser-playwright": "4.1.0",
+ "@vitest/browser-preview": "4.1.0",
+ "@vitest/browser-webdriverio": "4.1.0",
+ "@vitest/ui": "4.1.0",
+ "happy-dom": "*",
+ "jsdom": "*",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@edge-runtime/vm": {
+ "optional": true
+ },
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@vitest/browser-playwright": {
+ "optional": true
+ },
+ "@vitest/browser-preview": {
+ "optional": true
+ },
+ "@vitest/browser-webdriverio": {
+ "optional": true
+ },
+ "@vitest/ui": {
+ "optional": true
+ },
+ "happy-dom": {
+ "optional": true
+ },
+ "jsdom": {
+ "optional": true
+ },
+ "vite": {
+ "optional": false
+ }
+ }
+ },
+ "node_modules/why-is-node-running": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "siginfo": "^2.0.0",
+ "stackback": "0.0.2"
+ },
+ "bin": {
+ "why-is-node-running": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ }
}
}
}
diff --git a/core-ingestion/package.json b/core-ingestion/package.json
index c04c8e47..a692e64f 100644
--- a/core-ingestion/package.json
+++ b/core-ingestion/package.json
@@ -12,7 +12,9 @@
"./types": "./dist/types.js"
},
"scripts": {
- "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json"
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json",
+ "test": "vitest run --pool threads",
+ "test:watch": "vitest --pool threads"
},
"dependencies": {
"tree-sitter": "^0.21.0",
@@ -31,6 +33,8 @@
},
"devDependencies": {
"@types/node": "^20.0.0",
- "typescript": "^5.4.0"
+ "fast-check": "^4.6.0",
+ "typescript": "^5.4.0",
+ "vitest": "^4.1.0"
}
}
diff --git a/core-ingestion/src/__tests__/__snapshots__/parseFile.test.ts.snap b/core-ingestion/src/__tests__/__snapshots__/parseFile.test.ts.snap
new file mode 100644
index 00000000..63c6ea01
--- /dev/null
+++ b/core-ingestion/src/__tests__/__snapshots__/parseFile.test.ts.snap
@@ -0,0 +1,1332 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`parseFile snapshots > snapshots Identifiers.scala 1`] = `
+{
+ "entities": [
+ {
+ "kind": "file",
+ "language": "scala",
+ "lineEnd": 42,
+ "lineStart": 1,
+ "name": "Identifiers.scala",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 7,
+ "lineStart": 7,
+ "name": "NodeId",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 11,
+ "lineStart": 8,
+ "name": "NodeId",
+ },
+ {
+ "container": "NodeId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 9,
+ "lineStart": 9,
+ "name": "encoder",
+ },
+ {
+ "container": "NodeId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 10,
+ "lineStart": 10,
+ "name": "decoder",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 13,
+ "lineStart": 13,
+ "name": "EdgeId",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 17,
+ "lineStart": 14,
+ "name": "EdgeId",
+ },
+ {
+ "container": "EdgeId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 15,
+ "lineStart": 15,
+ "name": "encoder",
+ },
+ {
+ "container": "EdgeId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 16,
+ "lineStart": 16,
+ "name": "decoder",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 19,
+ "lineStart": 19,
+ "name": "PatchId",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 23,
+ "lineStart": 20,
+ "name": "PatchId",
+ },
+ {
+ "container": "PatchId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 21,
+ "lineStart": 21,
+ "name": "encoder",
+ },
+ {
+ "container": "PatchId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 22,
+ "lineStart": 22,
+ "name": "decoder",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 25,
+ "lineStart": 25,
+ "name": "ClaimId",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 29,
+ "lineStart": 26,
+ "name": "ClaimId",
+ },
+ {
+ "container": "ClaimId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 27,
+ "lineStart": 27,
+ "name": "encoder",
+ },
+ {
+ "container": "ClaimId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 28,
+ "lineStart": 28,
+ "name": "decoder",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 31,
+ "lineStart": 31,
+ "name": "ConflictId",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 35,
+ "lineStart": 32,
+ "name": "ConflictId",
+ },
+ {
+ "container": "ConflictId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 33,
+ "lineStart": 33,
+ "name": "encoder",
+ },
+ {
+ "container": "ConflictId",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 34,
+ "lineStart": 34,
+ "name": "decoder",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 37,
+ "lineStart": 37,
+ "name": "Rev",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 41,
+ "lineStart": 38,
+ "name": "Rev",
+ },
+ {
+ "container": "Rev",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 39,
+ "lineStart": 39,
+ "name": "encoder",
+ },
+ {
+ "container": "Rev",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 40,
+ "lineStart": 40,
+ "name": "decoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 3,
+ "lineStart": 3,
+ "name": "java.util.UUID",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 5,
+ "lineStart": 5,
+ "name": "io.circe.Decoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 5,
+ "lineStart": 5,
+ "name": "io.circe.Encoder",
+ },
+ ],
+ "filePath": "memory-layer/src/main/scala/ix/memory/model/Identifiers.scala",
+ "language": "scala",
+ "relationships": [
+ {
+ "dstName": "NodeId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "AnyVal",
+ "predicate": "EXTENDS",
+ "srcName": "NodeId",
+ },
+ {
+ "dstName": "NodeId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "NodeId",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "NodeId",
+ },
+ {
+ "dstName": "EdgeId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "AnyVal",
+ "predicate": "EXTENDS",
+ "srcName": "EdgeId",
+ },
+ {
+ "dstName": "EdgeId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "EdgeId",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "EdgeId",
+ },
+ {
+ "dstName": "PatchId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "AnyVal",
+ "predicate": "EXTENDS",
+ "srcName": "PatchId",
+ },
+ {
+ "dstName": "PatchId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "PatchId",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "PatchId",
+ },
+ {
+ "dstName": "ClaimId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "AnyVal",
+ "predicate": "EXTENDS",
+ "srcName": "ClaimId",
+ },
+ {
+ "dstName": "ClaimId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "ClaimId",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "ClaimId",
+ },
+ {
+ "dstName": "ConflictId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "AnyVal",
+ "predicate": "EXTENDS",
+ "srcName": "ConflictId",
+ },
+ {
+ "dstName": "ConflictId",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "ConflictId",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "ConflictId",
+ },
+ {
+ "dstName": "Rev",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "AnyVal",
+ "predicate": "EXTENDS",
+ "srcName": "Rev",
+ },
+ {
+ "dstName": "Rev",
+ "predicate": "CONTAINS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "Rev",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "Rev",
+ },
+ {
+ "dstName": "java.util.UUID",
+ "predicate": "IMPORTS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "io.circe.Decoder",
+ "predicate": "IMPORTS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "io.circe.Encoder",
+ "predicate": "IMPORTS",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "UUID",
+ "predicate": "REFERENCES",
+ "srcName": "NodeId",
+ },
+ {
+ "dstName": "NodeId",
+ "predicate": "REFERENCES",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "NodeId.encoder",
+ },
+ {
+ "dstName": "NodeId",
+ "predicate": "CALLS",
+ "srcName": "NodeId.decoder",
+ },
+ {
+ "dstName": "UUID",
+ "predicate": "REFERENCES",
+ "srcName": "EdgeId",
+ },
+ {
+ "dstName": "EdgeId",
+ "predicate": "REFERENCES",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "EdgeId.encoder",
+ },
+ {
+ "dstName": "EdgeId",
+ "predicate": "CALLS",
+ "srcName": "EdgeId.decoder",
+ },
+ {
+ "dstName": "UUID",
+ "predicate": "REFERENCES",
+ "srcName": "PatchId",
+ },
+ {
+ "dstName": "PatchId",
+ "predicate": "REFERENCES",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "PatchId.encoder",
+ },
+ {
+ "dstName": "PatchId",
+ "predicate": "CALLS",
+ "srcName": "PatchId.decoder",
+ },
+ {
+ "dstName": "UUID",
+ "predicate": "REFERENCES",
+ "srcName": "ClaimId",
+ },
+ {
+ "dstName": "ClaimId",
+ "predicate": "REFERENCES",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "ClaimId.encoder",
+ },
+ {
+ "dstName": "ClaimId",
+ "predicate": "CALLS",
+ "srcName": "ClaimId.decoder",
+ },
+ {
+ "dstName": "UUID",
+ "predicate": "REFERENCES",
+ "srcName": "ConflictId",
+ },
+ {
+ "dstName": "ConflictId",
+ "predicate": "REFERENCES",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "ConflictId.encoder",
+ },
+ {
+ "dstName": "ConflictId",
+ "predicate": "CALLS",
+ "srcName": "ConflictId.decoder",
+ },
+ {
+ "dstName": "Rev",
+ "predicate": "REFERENCES",
+ "srcName": "Identifiers.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "Rev.encoder",
+ },
+ {
+ "dstName": "Rev",
+ "predicate": "CALLS",
+ "srcName": "Rev.decoder",
+ },
+ ],
+}
+`;
+
+exports[`parseFile snapshots > snapshots Node.scala 1`] = `
+{
+ "entities": [
+ {
+ "kind": "file",
+ "language": "scala",
+ "lineEnd": 97,
+ "lineStart": 1,
+ "name": "Node.scala",
+ },
+ {
+ "container": undefined,
+ "kind": "interface",
+ "language": "scala",
+ "lineEnd": 8,
+ "lineStart": 8,
+ "name": "NodeKind",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 77,
+ "lineStart": 9,
+ "name": "NodeKind",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 10,
+ "lineStart": 10,
+ "name": "Module",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 11,
+ "lineStart": 11,
+ "name": "File",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 12,
+ "lineStart": 12,
+ "name": "Class",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 13,
+ "lineStart": 13,
+ "name": "Function",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 14,
+ "lineStart": 14,
+ "name": "Variable",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 15,
+ "lineStart": 15,
+ "name": "Config",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 16,
+ "lineStart": 16,
+ "name": "ConfigEntry",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 17,
+ "lineStart": 17,
+ "name": "Service",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 18,
+ "lineStart": 18,
+ "name": "Endpoint",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 19,
+ "lineStart": 19,
+ "name": "Intent",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 20,
+ "lineStart": 20,
+ "name": "Decision",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 21,
+ "lineStart": 21,
+ "name": "Doc",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 22,
+ "lineStart": 22,
+ "name": "Object",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 23,
+ "lineStart": 23,
+ "name": "Trait",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 24,
+ "lineStart": 24,
+ "name": "Interface",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 25,
+ "lineStart": 25,
+ "name": "Method",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 26,
+ "lineStart": 26,
+ "name": "Plan",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 27,
+ "lineStart": 27,
+ "name": "Task",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 28,
+ "lineStart": 28,
+ "name": "Bug",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 50,
+ "lineStart": 30,
+ "name": "nameMap",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 72,
+ "lineStart": 52,
+ "name": "encoder",
+ },
+ {
+ "container": "NodeKind",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 76,
+ "lineStart": 74,
+ "name": "decoder",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 89,
+ "lineStart": 79,
+ "name": "GraphNode",
+ },
+ {
+ "container": undefined,
+ "kind": "class",
+ "language": "scala",
+ "lineEnd": 96,
+ "lineStart": 91,
+ "name": "GraphNode",
+ },
+ {
+ "container": "GraphNode",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 94,
+ "lineStart": 94,
+ "name": "encoder",
+ },
+ {
+ "container": "GraphNode",
+ "kind": "function",
+ "language": "scala",
+ "lineEnd": 95,
+ "lineStart": 95,
+ "name": "decoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 3,
+ "lineStart": 3,
+ "name": "java.time.Instant",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 5,
+ "lineStart": 5,
+ "name": "io.circe.Decoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 5,
+ "lineStart": 5,
+ "name": "io.circe.Encoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 5,
+ "lineStart": 5,
+ "name": "io.circe.Json",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 6,
+ "lineStart": 6,
+ "name": "io.circe.generic.semiauto.deriveDecoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 6,
+ "lineStart": 6,
+ "name": "io.circe.generic.semiauto.deriveEncoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 92,
+ "lineStart": 92,
+ "name": "Provenance.instantEncoder",
+ },
+ {
+ "kind": "module",
+ "language": "scala",
+ "lineEnd": 92,
+ "lineStart": 92,
+ "name": "Provenance.instantDecoder",
+ },
+ ],
+ "filePath": "memory-layer/src/main/scala/ix/memory/model/Node.scala",
+ "language": "scala",
+ "relationships": [
+ {
+ "dstName": "NodeKind",
+ "predicate": "CONTAINS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "CONTAINS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "Module",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Module",
+ },
+ {
+ "dstName": "File",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "File",
+ },
+ {
+ "dstName": "Class",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Class",
+ },
+ {
+ "dstName": "Function",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Function",
+ },
+ {
+ "dstName": "Variable",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Variable",
+ },
+ {
+ "dstName": "Config",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Config",
+ },
+ {
+ "dstName": "ConfigEntry",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "ConfigEntry",
+ },
+ {
+ "dstName": "Service",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Service",
+ },
+ {
+ "dstName": "Endpoint",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Endpoint",
+ },
+ {
+ "dstName": "Intent",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Intent",
+ },
+ {
+ "dstName": "Decision",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Decision",
+ },
+ {
+ "dstName": "Doc",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Doc",
+ },
+ {
+ "dstName": "Object",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Object",
+ },
+ {
+ "dstName": "Trait",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Trait",
+ },
+ {
+ "dstName": "Interface",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Interface",
+ },
+ {
+ "dstName": "Method",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Method",
+ },
+ {
+ "dstName": "Plan",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Plan",
+ },
+ {
+ "dstName": "Task",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Task",
+ },
+ {
+ "dstName": "Bug",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "EXTENDS",
+ "srcName": "Bug",
+ },
+ {
+ "dstName": "nameMap",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "NodeKind",
+ },
+ {
+ "dstName": "GraphNode",
+ "predicate": "CONTAINS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "GraphNode",
+ "predicate": "CONTAINS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "encoder",
+ "predicate": "CONTAINS",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "decoder",
+ "predicate": "CONTAINS",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "java.time.Instant",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "io.circe.Decoder",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "io.circe.Encoder",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "io.circe.Json",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "io.circe.generic.semiauto.deriveDecoder",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "io.circe.generic.semiauto.deriveEncoder",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "REFERENCES",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "contramap",
+ "predicate": "CALLS",
+ "srcName": "NodeKind.encoder",
+ },
+ {
+ "dstName": "emap",
+ "predicate": "CALLS",
+ "srcName": "NodeKind.decoder",
+ },
+ {
+ "dstName": "get",
+ "predicate": "CALLS",
+ "srcName": "NodeKind.decoder",
+ },
+ {
+ "dstName": "toRight",
+ "predicate": "CALLS",
+ "srcName": "NodeKind.decoder",
+ },
+ {
+ "dstName": "NodeId",
+ "predicate": "REFERENCES",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "NodeKind",
+ "predicate": "REFERENCES",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "Json",
+ "predicate": "REFERENCES",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "Provenance",
+ "predicate": "REFERENCES",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "Rev",
+ "predicate": "REFERENCES",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "Instant",
+ "predicate": "REFERENCES",
+ "srcName": "GraphNode",
+ },
+ {
+ "dstName": "Provenance.instantEncoder",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "Provenance.instantDecoder",
+ "predicate": "IMPORTS",
+ "srcName": "Node.scala",
+ },
+ {
+ "dstName": "GraphNode",
+ "predicate": "REFERENCES",
+ "srcName": "Node.scala",
+ },
+ ],
+}
+`;
+
+exports[`parseFile snapshots > snapshots doctor.ts 1`] = `
+{
+ "entities": [
+ {
+ "kind": "file",
+ "language": "typescript",
+ "lineEnd": 99,
+ "lineStart": 1,
+ "name": "doctor.ts",
+ },
+ {
+ "container": undefined,
+ "kind": "interface",
+ "language": "typescript",
+ "lineEnd": 9,
+ "lineStart": 6,
+ "name": "Check",
+ },
+ {
+ "container": undefined,
+ "kind": "function",
+ "language": "typescript",
+ "lineEnd": 98,
+ "lineStart": 11,
+ "name": "registerDoctorCommand",
+ },
+ {
+ "kind": "module",
+ "language": "typescript",
+ "lineEnd": 1,
+ "lineStart": 1,
+ "name": "commander",
+ },
+ {
+ "kind": "module",
+ "language": "typescript",
+ "lineEnd": 2,
+ "lineStart": 2,
+ "name": "chalk",
+ },
+ {
+ "kind": "module",
+ "language": "typescript",
+ "lineEnd": 3,
+ "lineStart": 3,
+ "name": "api.js",
+ },
+ {
+ "kind": "module",
+ "language": "typescript",
+ "lineEnd": 4,
+ "lineStart": 4,
+ "name": "config.js",
+ },
+ ],
+ "filePath": "ix-cli/src/cli/commands/doctor.ts",
+ "language": "typescript",
+ "relationships": [
+ {
+ "dstName": "Check",
+ "predicate": "CONTAINS",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "registerDoctorCommand",
+ "predicate": "CONTAINS",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "commander",
+ "predicate": "IMPORTS",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "chalk",
+ "predicate": "IMPORTS",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "api.js",
+ "predicate": "IMPORTS",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "config.js",
+ "predicate": "IMPORTS",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "Command",
+ "predicate": "REFERENCES",
+ "srcName": "doctor.ts",
+ },
+ {
+ "dstName": "command",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "description",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "option",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "action",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "getEndpoint",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "IxClient",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "health",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "stats",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "conflicts",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "isArray",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "run",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "push",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "every",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "stringify",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "bold",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "green",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "red",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ {
+ "dstName": "dim",
+ "predicate": "CALLS",
+ "srcName": "registerDoctorCommand",
+ },
+ ],
+}
+`;
diff --git a/core-ingestion/src/__tests__/parseFile.test.ts b/core-ingestion/src/__tests__/parseFile.test.ts
new file mode 100644
index 00000000..5842b5ae
--- /dev/null
+++ b/core-ingestion/src/__tests__/parseFile.test.ts
@@ -0,0 +1,62 @@
+import { readFileSync } from 'node:fs';
+import path from 'node:path';
+
+import { describe, expect, it } from 'vitest';
+
+import { parseFile, resolveEdges } from '../index.js';
+
+const repoRoot = path.resolve(import.meta.dirname, '../../..');
+
+function readRepoFile(relativePath: string): string {
+ return readFileSync(path.join(repoRoot, relativePath), 'utf8');
+}
+
+function snapshotParse(relativePath: string) {
+ const source = readRepoFile(relativePath);
+ const result = parseFile(relativePath, source);
+
+ expect(result).not.toBeNull();
+ expect(result).toMatchSnapshot();
+}
+
+describe('parseFile snapshots', () => {
+ it('snapshots Node.scala', () => {
+ snapshotParse('memory-layer/src/main/scala/ix/memory/model/Node.scala');
+ });
+
+ it('snapshots Identifiers.scala', () => {
+ snapshotParse('memory-layer/src/main/scala/ix/memory/model/Identifiers.scala');
+ });
+
+ it('snapshots doctor.ts', () => {
+ snapshotParse('ix-cli/src/cli/commands/doctor.ts');
+ });
+});
+
+describe('mixed-language fixture integration', () => {
+ it('never resolves a TypeScript run() call to Scala when a TypeScript target exists', () => {
+ const fixtureRoot = path.join(repoRoot, 'core-ingestion/test-fixtures/mini-repo/src');
+ const files = ['foo.ts', 'Main.scala', 'Bar.ts']
+ .map(name => path.join(fixtureRoot, name))
+ .map(filePath => {
+ const relativePath = path.relative(repoRoot, filePath).replace(/\\/g, '/');
+ const result = parseFile(relativePath, readFileSync(filePath, 'utf8'));
+ expect(result).not.toBeNull();
+ return result!;
+ });
+
+ const resolved = resolveEdges(files);
+ expect(resolved).toContainEqual({
+ srcFilePath: 'core-ingestion/test-fixtures/mini-repo/src/foo.ts',
+ srcName: 'callRun',
+ dstFilePath: 'core-ingestion/test-fixtures/mini-repo/src/Bar.ts',
+ dstName: 'run',
+ dstQualifiedKey: 'run',
+ predicate: 'CALLS',
+ confidence: 0.5,
+ });
+ expect(
+ resolved.some(edge => edge.srcFilePath.endsWith('.ts') && edge.dstFilePath.endsWith('.scala')),
+ ).toBe(false);
+ });
+});
diff --git a/core-ingestion/src/__tests__/patchBuilder.test.ts b/core-ingestion/src/__tests__/patchBuilder.test.ts
new file mode 100644
index 00000000..03a533b7
--- /dev/null
+++ b/core-ingestion/src/__tests__/patchBuilder.test.ts
@@ -0,0 +1,20 @@
+import { describe, expect, it } from 'vitest';
+
+import { extractorName, PREVIOUS_EXTRACTORS } from '../patch-builder.js';
+
+describe('patch-builder extractor policy', () => {
+ it('tracks the immediate predecessor when the extractor version is bumped', () => {
+ const current = extractorName();
+ const match = /^tree-sitter\/(\d+)\.(\d+)$/.exec(current);
+
+ expect(match).not.toBeNull();
+
+ const major = Number(match![1]);
+ const minor = Number(match![2]);
+ const previous = `tree-sitter/${major}.${minor - 1}`;
+
+ expect(PREVIOUS_EXTRACTORS).toContain(previous);
+ expect(PREVIOUS_EXTRACTORS).not.toContain(current);
+ expect(PREVIOUS_EXTRACTORS.every(version => /^tree-sitter\/\d+\.\d+$/.test(version))).toBe(true);
+ });
+});
diff --git a/core-ingestion/src/__tests__/queries.python.test.ts b/core-ingestion/src/__tests__/queries.python.test.ts
new file mode 100644
index 00000000..e0f35e10
--- /dev/null
+++ b/core-ingestion/src/__tests__/queries.python.test.ts
@@ -0,0 +1,58 @@
+import { describe, expect, it } from 'vitest';
+
+import { parseFile } from '../index.js';
+
+describe('Python queries', () => {
+ it('captures classes, functions, imports, inheritance, and attribute calls', () => {
+ const result = parseFile(
+ '/repo/example.py',
+ `
+from .models import User
+from package.helpers import helper
+
+class Service(BaseService):
+ def run(self, value: User):
+ helper()
+ value.save()
+
+def top_level():
+ return Service()
+ `,
+ );
+
+ expect(result).not.toBeNull();
+ expect(result!.entities.map(entity => entity.name)).toEqual(
+ expect.arrayContaining(['Service', 'run', 'top_level']),
+ );
+ expect(result!.relationships).toContainEqual({
+ srcName: 'example.py',
+ dstName: 'models',
+ predicate: 'IMPORTS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'example.py',
+ dstName: 'User',
+ predicate: 'IMPORTS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'example.py',
+ dstName: 'package.helpers',
+ predicate: 'IMPORTS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Service',
+ dstName: 'BaseService',
+ predicate: 'EXTENDS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Service.run',
+ dstName: 'helper',
+ predicate: 'CALLS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Service.run',
+ dstName: 'save',
+ predicate: 'CALLS',
+ });
+ });
+});
diff --git a/core-ingestion/src/__tests__/queries.scala.test.ts b/core-ingestion/src/__tests__/queries.scala.test.ts
new file mode 100644
index 00000000..728b2b99
--- /dev/null
+++ b/core-ingestion/src/__tests__/queries.scala.test.ts
@@ -0,0 +1,67 @@
+import { describe, expect, it } from 'vitest';
+
+import { parseFile } from '../index.js';
+
+describe('Scala queries', () => {
+ it('captures class-level val and var definitions but not method-local vals', () => {
+ const result = parseFile(
+ '/repo/Foo.scala',
+ `
+ class Foo {
+ val bar: String = "hello"
+ var baz: NodeKind = NodeKind.File
+
+ def method(): Unit = {
+ val local = 42
+ }
+ }
+ `,
+ );
+
+ expect(result).not.toBeNull();
+ expect(result!.entities.map(entity => entity.name)).toContain('bar');
+ expect(result!.entities.map(entity => entity.name)).toContain('baz');
+ expect(result!.entities.map(entity => entity.name)).not.toContain('local');
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Foo',
+ dstName: 'NodeKind',
+ predicate: 'REFERENCES',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Foo.baz',
+ dstName: 'NodeKind.File',
+ predicate: 'CALLS',
+ });
+ });
+
+ it('captures selective imports and singleton/member references', () => {
+ const result = parseFile(
+ '/repo/Imports.scala',
+ `
+ import ix.memory.model.{NodeId, NodeKind}
+
+ object Imports {
+ def choose(): NodeKind = NodeKind.File
+ def use(value: NodeId): NodeId = value
+ }
+ `,
+ );
+
+ expect(result).not.toBeNull();
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Imports.scala',
+ dstName: 'ix.memory.model.NodeId',
+ predicate: 'IMPORTS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Imports.scala',
+ dstName: 'ix.memory.model.NodeKind',
+ predicate: 'IMPORTS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Imports.choose',
+ dstName: 'NodeKind.File',
+ predicate: 'CALLS',
+ });
+ });
+});
diff --git a/core-ingestion/src/__tests__/queries.typescript.test.ts b/core-ingestion/src/__tests__/queries.typescript.test.ts
new file mode 100644
index 00000000..7e535616
--- /dev/null
+++ b/core-ingestion/src/__tests__/queries.typescript.test.ts
@@ -0,0 +1,53 @@
+import { describe, expect, it } from 'vitest';
+
+import { parseFile } from '../index.js';
+
+describe('TypeScript queries', () => {
+ it('captures definitions, imports, heritage edges, and method calls', () => {
+ const result = parseFile(
+ '/repo/example.ts',
+ `
+ import { Foo } from './bar'
+
+ interface Greeter {
+ greet(): void
+ }
+
+ class Example extends Base implements Greeter {
+ method(): Foo {
+ return foo.bar()
+ }
+ }
+
+ function helper(): void {}
+
+ const arrow = () => helper()
+ `,
+ );
+
+ expect(result).not.toBeNull();
+ expect(result!.entities.map(entity => entity.name)).toEqual(
+ expect.arrayContaining(['Greeter', 'Example', 'method', 'helper', 'arrow']),
+ );
+ expect(result!.relationships).toContainEqual({
+ srcName: 'example.ts',
+ dstName: 'bar',
+ predicate: 'IMPORTS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Example',
+ dstName: 'Base',
+ predicate: 'EXTENDS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Example',
+ dstName: 'Greeter',
+ predicate: 'EXTENDS',
+ });
+ expect(result!.relationships).toContainEqual({
+ srcName: 'Example.method',
+ dstName: 'bar',
+ predicate: 'CALLS',
+ });
+ });
+});
diff --git a/core-ingestion/src/__tests__/resolveEdges.integration.test.ts b/core-ingestion/src/__tests__/resolveEdges.integration.test.ts
new file mode 100644
index 00000000..f4f30fab
--- /dev/null
+++ b/core-ingestion/src/__tests__/resolveEdges.integration.test.ts
@@ -0,0 +1,38 @@
+import { readFileSync, readdirSync } from 'node:fs';
+import path from 'node:path';
+
+import { describe, expect, it } from 'vitest';
+
+import { parseFile, resolveEdges } from '../index.js';
+
+const repoRoot = path.resolve(import.meta.dirname, '../../..');
+const scalaRoot = path.join(repoRoot, 'memory-layer/src/main/scala');
+
+function walkScalaFiles(dir: string): string[] {
+ return readdirSync(dir, { withFileTypes: true }).flatMap(entry => {
+ const fullPath = path.join(dir, entry.name);
+ if (entry.isDirectory()) return walkScalaFiles(fullPath);
+ return entry.name.endsWith('.scala') ? [fullPath] : [];
+ });
+}
+
+describe('resolveEdges integration on real Scala files', () => {
+ it('resolves GraphQueryApi NodeKind references back to Node.scala', () => {
+ const parsed = walkScalaFiles(scalaRoot)
+ .map(filePath => {
+ const relativePath = path.relative(repoRoot, filePath).replace(/\\/g, '/');
+ return parseFile(relativePath, readFileSync(filePath, 'utf8'));
+ })
+ .filter((result): result is NonNullable<typeof result> => result !== null);
+
+ const resolved = resolveEdges(parsed);
+ const graphQueryApiNodeKindRefs = resolved.filter(edge =>
+ edge.srcFilePath.endsWith('GraphQueryApi.scala')
+ && edge.predicate === 'REFERENCES'
+ && edge.dstName === 'NodeKind'
+ );
+
+ expect(graphQueryApiNodeKindRefs.length).toBeGreaterThan(0);
+ expect(graphQueryApiNodeKindRefs.every(edge => edge.dstFilePath.endsWith('Node.scala'))).toBe(true);
+ });
+});
diff --git a/core-ingestion/src/__tests__/resolveEdges.property.test.ts b/core-ingestion/src/__tests__/resolveEdges.property.test.ts
new file mode 100644
index 00000000..84af7bd1
--- /dev/null
+++ b/core-ingestion/src/__tests__/resolveEdges.property.test.ts
@@ -0,0 +1,116 @@
+import fc from 'fast-check';
+import { describe, expect, it } from 'vitest';
+
+import { resolveEdges, type FileParseResult, type ParsedEntity } from '../index.js';
+import { SupportedLanguages } from '../languages.js';
+
+const languages = [SupportedLanguages.TypeScript, SupportedLanguages.Scala] as const;
+const symbolNames = ['run', 'helperFn', 'NodeKind', 'execute', 'transform'] as const;
+
+function filePathFor(language: SupportedLanguages, index: number): string {
+ return `/repo/file-${index}${language === SupportedLanguages.TypeScript ? '.ts' : '.scala'}`;
+}
+
+function makeEntity(name: string, language: SupportedLanguages): ParsedEntity {
+ return { name, kind: 'function', lineStart: 1, lineEnd: 1, language };
+}
+
+describe('resolveEdges property invariants', () => {
+ it('never crosses language boundaries and only emits supported confidences without self-loops', () => {
+ const arb = fc.array(
+ fc.record({
+ language: fc.constantFrom(...languages),
+ symbol: fc.constantFrom(...symbolNames),
+ includeCall: fc.boolean(),
+ }),
+ { minLength: 2, maxLength: 8 },
+ );
+
+ fc.assert(
+ fc.property(arb, defs => {
+ const results: FileParseResult[] = defs.map((def, index) => ({
+ filePath: filePathFor(def.language, index),
+ language: def.language,
+ entities: [
+ { name: `file-${index}`, kind: 'file', lineStart: 1, lineEnd: 1, language: def.language },
+ makeEntity(def.symbol, def.language),
+ ...(def.includeCall ? [makeEntity(`caller${index}`, def.language)] : []),
+ ],
+ relationships: def.includeCall
+ ? [{ srcName: `caller${index}`, dstName: def.symbol, predicate: 'CALLS' }]
+ : [],
+ }));
+
+ const resolved = resolveEdges(results);
+ for (const edge of resolved) {
+ const src = results.find(result => result.filePath === edge.srcFilePath);
+ const dst = results.find(result => result.filePath === edge.dstFilePath);
+
+ expect(src).toBeDefined();
+ expect(dst).toBeDefined();
+ expect(src!.language).toBe(dst!.language);
+ expect(edge.srcFilePath).not.toBe(edge.dstFilePath);
+ expect([0.9, 0.8, 0.7, 0.5]).toContain(edge.confidence);
+ }
+ }),
+ { numRuns: 100 },
+ );
+ });
+
+ it('does not emit tier-3 edges when there are zero or multiple same-language global matches', () => {
+ const noMatch = resolveEdges([
+ {
+ filePath: '/repo/caller.ts',
+ language: SupportedLanguages.TypeScript,
+ entities: [
+ { name: 'caller.ts', kind: 'file', lineStart: 1, lineEnd: 1, language: SupportedLanguages.TypeScript },
+ makeEntity('caller', SupportedLanguages.TypeScript),
+ ],
+ relationships: [{ srcName: 'caller', dstName: 'missing', predicate: 'CALLS' }],
+ },
+ {
+ filePath: '/repo/other.scala',
+ language: SupportedLanguages.Scala,
+ entities: [
+ { name: 'other.scala', kind: 'file', lineStart: 1, lineEnd: 1, language: SupportedLanguages.Scala },
+ makeEntity('missing', SupportedLanguages.Scala),
+ ],
+ relationships: [],
+ },
+ ]);
+
+ expect(noMatch).toEqual([]);
+
+ const ambiguous = resolveEdges([
+ {
+ filePath: '/repo/caller.ts',
+ language: SupportedLanguages.TypeScript,
+ entities: [
+ { name: 'caller.ts', kind: 'file', lineStart: 1, lineEnd: 1, language: SupportedLanguages.TypeScript },
+ makeEntity('caller', SupportedLanguages.TypeScript),
+ ],
+ relationships: [{ srcName: 'caller', dstName: 'run', predicate: 'CALLS' }],
+ },
+ {
+ filePath: '/repo/a.ts',
+ language: SupportedLanguages.TypeScript,
+ entities: [
+ { name: 'a.ts', kind: 'file', lineStart: 1, lineEnd: 1, language: SupportedLanguages.TypeScript },
+ makeEntity('run', SupportedLanguages.TypeScript),
+ ],
+ relationships: [],
+ },
+ {
+ filePath: '/repo/b.ts',
+ language: SupportedLanguages.TypeScript,
+ entities: [
+ { name: 'b.ts', kind: 'file', lineStart: 1, lineEnd: 1, language: SupportedLanguages.TypeScript },
+ makeEntity('run', SupportedLanguages.TypeScript),
+ ],
+ relationships: [],
+ },
+ ]);
+
+ expect(ambiguous).toEqual([]);
+ });
+});
diff --git a/core-ingestion/src/__tests__/resolveEdges.test.ts b/core-ingestion/src/__tests__/resolveEdges.test.ts
new file mode 100644
index 00000000..4c949d1d
--- /dev/null
+++ b/core-ingestion/src/__tests__/resolveEdges.test.ts
@@ -0,0 +1,335 @@
+import { describe, expect, it } from 'vitest';
+
+import { resolveEdges, type FileParseResult, type ParsedEntity, type ParsedRelationship } from '../index.js';
+import { SupportedLanguages } from '../languages.js';
+
+function entity(
+ name: string,
+ language: SupportedLanguages,
+ kind = 'function',
+ container?: string,
+): ParsedEntity {
+ return {
+ name,
+ kind,
+ lineStart: 1,
+ lineEnd: 1,
+ language,
+ container,
+ };
+}
+
+function fileResult(
+ filePath: string,
+ language: SupportedLanguages,
+ entities: ParsedEntity[],
+ relationships: ParsedRelationship[] = [],
+): FileParseResult {
+ return {
+ filePath,
+ language,
+ entities: [
+ { name: filePath.split(/[\\/]/).pop() ?? filePath, kind: 'file', lineStart: 1, lineEnd: 1, language },
+ ...entities,
+ ],
+ relationships,
+ };
+}
+
+describe('resolveEdges', () => {
+ it('blocks the registerDoctorCommand -> run false positive when only Scala defines run', () => {
+ const doctor = fileResult(
+ '/repo/doctor.ts',
+ SupportedLanguages.TypeScript,
+ [entity('registerDoctorCommand', SupportedLanguages.TypeScript)],
+ [{ srcName: 'registerDoctorCommand', dstName: 'run', predicate: 'CALLS' }],
+ );
+ const main = fileResult(
+ '/repo/Main.scala',
+ SupportedLanguages.Scala,
+ [entity('run', SupportedLanguages.Scala)],
+ );
+
+ expect(resolveEdges([doctor, main])).toEqual([]);
+ });
+
+ it('resolves tier-3 only to same-language files when both Scala and TypeScript define run', () => {
+ const doctor = fileResult(
+ '/repo/doctor.ts',
+ SupportedLanguages.TypeScript,
+ [entity('registerDoctorCommand', SupportedLanguages.TypeScript)],
+ [{ srcName: 'registerDoctorCommand', dstName: 'run', predicate: 'CALLS' }],
+ );
+ const main = fileResult(
+ '/repo/Main.scala',
+ SupportedLanguages.Scala,
+ [entity('run', SupportedLanguages.Scala)],
+ );
+ const helper = fileResult(
+ '/repo/run-helper.ts',
+ SupportedLanguages.TypeScript,
+ [entity('run', SupportedLanguages.TypeScript)],
+ );
+
+ expect(resolveEdges([doctor, main, helper])).toEqual([
+ {
+ srcFilePath: '/repo/doctor.ts',
+ srcName: 'registerDoctorCommand',
+ dstFilePath: '/repo/run-helper.ts',
+ dstName: 'run',
+ dstQualifiedKey: 'run',
+ predicate: 'CALLS',
+ confidence: 0.5,
+ },
+ ]);
+ });
+
+ it('skips same-file symbols in tier 1', () => {
+ const file = fileResult(
+ '/repo/helper.ts',
+ SupportedLanguages.TypeScript,
+ [
+ entity('caller', SupportedLanguages.TypeScript),
+ entity('helperFn', SupportedLanguages.TypeScript),
+ ],
+ [{ srcName: 'caller', dstName: 'helperFn', predicate: 'CALLS' }],
+ );
+
+ expect(resolveEdges([file])).toEqual([]);
+ });
+
+ it('resolves qualifier-assisted imports to a qualified member', () => {
+ const caller = fileResult(
+ '/repo/consumer.scala',
+ SupportedLanguages.Scala,
+ [entity('useNodeKind', SupportedLanguages.Scala)],
+ [
+ { srcName: 'consumer.scala', dstName: 'NodeKind', predicate: 'IMPORTS' },
+ { srcName: 'useNodeKind', dstName: 'NodeKind.File', predicate: 'REFERENCES' },
+ ],
+ );
+ const callee = fileResult(
+ '/repo/NodeKind.scala',
+ SupportedLanguages.Scala,
+ [
+ entity('NodeKind', SupportedLanguages.Scala, 'class'),
+ entity('File', SupportedLanguages.Scala, 'class', 'NodeKind'),
+ ],
+ );
+
+ expect(resolveEdges([caller, callee])).toContainEqual({
+ srcFilePath: '/repo/consumer.scala',
+ srcName: 'useNodeKind',
+ dstFilePath: '/repo/NodeKind.scala',
+ dstName: 'NodeKind.File',
+ dstQualifiedKey: 'NodeKind.File',
+ predicate: 'REFERENCES',
+ confidence: 0.9,
+ });
+ });
+
+ it('does not resolve qualifier-assisted edges when the member is missing or the qualifier is ambiguous', () => {
+ const caller = fileResult(
+ '/repo/consumer.scala',
+ SupportedLanguages.Scala,
+ [entity('useNodeKind', SupportedLanguages.Scala)],
+ [{ srcName: 'useNodeKind', dstName: 'NodeKind.File', predicate: 'REFERENCES' }],
+ );
+ const noMember = fileResult(
+ '/repo/NodeKind.scala',
+ SupportedLanguages.Scala,
+ [entity('NodeKind', SupportedLanguages.Scala, 'class')],
+ );
+
+ expect(resolveEdges([caller, noMember])).toEqual([]);
+
+ const duplicateQualifierA = fileResult(
+ '/repo/NodeKindA.scala',
+ SupportedLanguages.Scala,
+ [
+ entity('NodeKind', SupportedLanguages.Scala, 'class'),
+ entity('File', SupportedLanguages.Scala, 'class', 'NodeKind'),
+ ],
+ );
+ const duplicateQualifierB = fileResult(
+ '/repo/NodeKindB.scala',
+ SupportedLanguages.Scala,
+ [
+ entity('NodeKind', SupportedLanguages.Scala, 'class'),
+ entity('File', SupportedLanguages.Scala, 'class', 'NodeKind'),
+ ],
+ );
+
+ expect(resolveEdges([caller, duplicateQualifierA, duplicateQualifierB])).toEqual([]);
+ });
+
+ it('resolves tier-2 import-scoped edges and rejects ambiguous imports', () => {
+ const caller = fileResult(
+ '/repo/consumer.ts',
+ SupportedLanguages.TypeScript,
+ [entity('consumer', SupportedLanguages.TypeScript)],
+ [
+ { srcName: 'consumer.ts', dstName: 'bar', predicate: 'IMPORTS' },
+ { srcName: 'consumer', dstName: 'helperFn', predicate: 'CALLS' },
+ ],
+ );
+ const imported = fileResult(
+ '/repo/bar.ts',
+ SupportedLanguages.TypeScript,
+ [entity('helperFn', SupportedLanguages.TypeScript)],
+ );
+
+ expect(resolveEdges([caller, imported])).toContainEqual({
+ srcFilePath: '/repo/consumer.ts',
+ srcName: 'consumer',
+ dstFilePath: '/repo/bar.ts',
+ dstName: 'helperFn',
+ dstQualifiedKey: 'helperFn',
+ predicate: 'CALLS',
+ confidence: 0.9,
+ });
+
+ const ambiguousCaller = fileResult(
+ '/repo/ambiguous.ts',
+ SupportedLanguages.TypeScript,
+ [entity('consumer', SupportedLanguages.TypeScript)],
+ [
+ { srcName: 'ambiguous.ts', dstName: 'bar', predicate: 'IMPORTS' },
+ { srcName: 'ambiguous.ts', dstName: 'baz', predicate: 'IMPORTS' },
+ { srcName: 'consumer', dstName: 'helperFn', predicate: 'CALLS' },
+ ],
+ );
+ const baz = fileResult(
+ '/repo/baz.ts',
+ SupportedLanguages.TypeScript,
+ [entity('helperFn', SupportedLanguages.TypeScript)],
+ );
+
+ expect(resolveEdges([ambiguousCaller, imported, baz])).toEqual([]);
+ });
+
+ it('resolves tier-2.5 transitive imports', () => {
+ const caller = fileResult(
+ '/repo/consumer.ts',
+ SupportedLanguages.TypeScript,
+ [entity('consumer', SupportedLanguages.TypeScript)],
+ [
+ { srcName: 'consumer.ts', dstName: 'index', predicate: 'IMPORTS' },
+ { srcName: 'consumer', dstName: 'helperFn', predicate: 'CALLS' },
+ ],
+ );
+ const index = fileResult(
+ '/repo/index.ts',
+ SupportedLanguages.TypeScript,
+ [],
+ [{ srcName: 'index.ts', dstName: 'helpermod', predicate: 'IMPORTS' }],
+ );
+ const helper = fileResult(
+ '/repo/helpermod.ts',
+ SupportedLanguages.TypeScript,
+ [entity('helperFn', SupportedLanguages.TypeScript)],
+ );
+
+ expect(resolveEdges([caller, index, helper])).toContainEqual({
+ srcFilePath: '/repo/consumer.ts',
+ srcName: 'consumer',
+ dstFilePath: '/repo/helpermod.ts',
+ dstName: 'helperFn',
+ dstQualifiedKey: 'helperFn',
+ predicate: 'CALLS',
+ confidence: 0.8,
+ });
+ });
+
+ it('does not emit tier-2.5 edges when transitive matches are ambiguous', () => {
+ const caller = fileResult(
+ '/repo/consumer.ts',
+ SupportedLanguages.TypeScript,
+ [entity('consumer', SupportedLanguages.TypeScript)],
+ [
+ { srcName: 'consumer.ts', dstName: 'index', predicate: 'IMPORTS' },
+ { srcName: 'consumer', dstName: 'helperFn', predicate: 'CALLS' },
+ ],
+ );
+ const index = fileResult(
+ '/repo/index.ts',
+ SupportedLanguages.TypeScript,
+ [],
+ [
+ { srcName: 'index.ts', dstName: 'helper-a', predicate: 'IMPORTS' },
+ { srcName: 'index.ts', dstName: 'helper-b', predicate: 'IMPORTS' },
+ ],
+ );
+ const helperA = fileResult(
+ '/repo/helper-a.ts',
+ SupportedLanguages.TypeScript,
+ [entity('helperFn', SupportedLanguages.TypeScript)],
+ );
+ const helperB = fileResult(
+ '/repo/helper-b.ts',
+ SupportedLanguages.TypeScript,
+ [entity('helperFn', SupportedLanguages.TypeScript)],
+ );
+
+ expect(resolveEdges([caller, index, helperA, helperB])).toEqual([]);
+ });
+
+ it('keeps tier-3 same-language fallback working for TypeScript and Scala and rejects ambiguous globals', () => {
+ const tsCaller = fileResult(
+ '/repo/app.ts',
+ SupportedLanguages.TypeScript,
+ [entity('caller', SupportedLanguages.TypeScript)],
+ [{ srcName: 'caller', dstName: 'helperFn', predicate: 'CALLS' }],
+ );
+ const tsTarget = fileResult(
+ '/repo/helper.ts',
+ SupportedLanguages.TypeScript,
+ [entity('helperFn', SupportedLanguages.TypeScript)],
+ );
+ const scalaCaller = fileResult(
+ '/repo/App.scala',
+ SupportedLanguages.Scala,
+ [entity('caller', SupportedLanguages.Scala)],
+ [{ srcName: 'caller', dstName: 'helperFn', predicate: 'CALLS' }],
+ );
+ const scalaTarget = fileResult(
+ '/repo/Helper.scala',
+ SupportedLanguages.Scala,
+ [entity('helperFn', SupportedLanguages.Scala)],
+ );
+
+ expect(resolveEdges([tsCaller, tsTarget])).toEqual([
+ {
+ srcFilePath: '/repo/app.ts',
+ srcName: 'caller',
+ dstFilePath: '/repo/helper.ts',
+ dstName: 'helperFn',
+ dstQualifiedKey: 'helperFn',
+ predicate: 'CALLS',
+ confidence: 0.5,
+ },
+ ]);
+ expect(resolveEdges([scalaCaller, scalaTarget])).toEqual([
+ {
+ srcFilePath: '/repo/App.scala',
+ srcName: 'caller',
+ dstFilePath: '/repo/Helper.scala',
+ dstName: 'helperFn',
+ dstQualifiedKey: 'helperFn',
+ predicate: 'CALLS',
+ confidence: 0.5,
+ },
+ ]);
+
+ const ambiguousGlobal = fileResult(
+ '/repo/ambiguous.ts',
+ SupportedLanguages.TypeScript,
+ [entity('caller', SupportedLanguages.TypeScript)],
+ [{ srcName: 'caller', dstName: 'helperFn', predicate: 'CALLS' }],
+ );
+ const helperA = fileResult('/repo/helper-a.ts', SupportedLanguages.TypeScript, [entity('helperFn', SupportedLanguages.TypeScript)]);
+ const helperB = fileResult('/repo/helper-b.ts', SupportedLanguages.TypeScript, [entity('helperFn', SupportedLanguages.TypeScript)]);
+
+ expect(resolveEdges([ambiguousGlobal, helperA, helperB])).toEqual([]);
+ });
+});
diff --git a/core-ingestion/src/patch-builder.ts b/core-ingestion/src/patch-builder.ts
index d453ba34..f6d1e421 100644
--- a/core-ingestion/src/patch-builder.ts
+++ b/core-ingestion/src/patch-builder.ts
@@ -37,12 +37,12 @@ function sourceType(filePath: string): string {
return 'code';
}
-function extractorName(): string {
+export function extractorName(): string {
return `tree-sitter/1.11`;
}
/** Previous extractor versions — their patches are superseded when re-ingesting. */
-const PREVIOUS_EXTRACTORS = ['tree-sitter/1.10', 'tree-sitter/1.9', 'tree-sitter/1.8', 'tree-sitter/1.7', 'tree-sitter/1.6', 'tree-sitter/1.5', 'tree-sitter/1.4', 'tree-sitter/1.3', 'tree-sitter/1.2', 'tree-sitter/1.1'];
+export const PREVIOUS_EXTRACTORS = ['tree-sitter/1.10', 'tree-sitter/1.9', 'tree-sitter/1.8', 'tree-sitter/1.7', 'tree-sitter/1.6', 'tree-sitter/1.5', 'tree-sitter/1.4', 'tree-sitter/1.3', 'tree-sitter/1.2', 'tree-sitter/1.1'];
/** Compute a patchId for a (filePath, sourceHash, extractorVersion) triple. */
function computePatchId(filePath: string, sourceHash: string, extractor: string): string {
diff --git a/core-ingestion/src/queries.ts b/core-ingestion/src/queries.ts
index b99ceea5..c3ecc2e1 100644
--- a/core-ingestion/src/queries.ts
+++ b/core-ingestion/src/queries.ts
@@ -191,8 +191,8 @@ export const PYTHON_QUERIES = `
(identifier) @heritage.extends)) @heritage
; Type references — captures types used in type annotations / hints
-(typed_parameter type: (identifier) @reference.type)
-(typed_default_parameter type: (identifier) @reference.type)
+(typed_parameter type: (type (identifier) @reference.type))
+(typed_default_parameter type: (type (identifier) @reference.type))
`;
// Java queries - works with tree-sitter-java
@@ -779,6 +779,16 @@ export const SCALA_QUERIES = `
(type_definition
name: (type_identifier) @name) @definition.type
+; ── Val/var definitions (class-level members only, not method-local vars) ──────
+; Restricting to template_body ensures we only capture class/object-level
+; declarations (e.g. companion object implicits) and not local val bindings
+; inside method bodies, which would add noise entities to the graph.
+(template_body
+ (val_definition (identifier) @name) @definition.const)
+
+(template_body
+ (var_definition (identifier) @name) @definition.const)
+
; ── Imports: capture full declaration for dotted-path reconstruction ─────────
; Handles: import ix.memory.model._ (wildcard)
; import ix.memory.model.{NodeKind, GraphNode} (selective)
diff --git a/core-ingestion/test-fixtures/mini-repo/src/Bar.ts b/core-ingestion/test-fixtures/mini-repo/src/Bar.ts
new file mode 100644
index 00000000..67ba124b
--- /dev/null
+++ b/core-ingestion/test-fixtures/mini-repo/src/Bar.ts
@@ -0,0 +1,3 @@
+export function run() {
+ return 'ts';
+}
diff --git a/core-ingestion/test-fixtures/mini-repo/src/Main.scala b/core-ingestion/test-fixtures/mini-repo/src/Main.scala
new file mode 100644
index 00000000..cd33d1df
--- /dev/null
+++ b/core-ingestion/test-fixtures/mini-repo/src/Main.scala
@@ -0,0 +1,3 @@
+object Main {
+ def run(): String = "scala"
+}
diff --git a/core-ingestion/test-fixtures/mini-repo/src/foo.ts b/core-ingestion/test-fixtures/mini-repo/src/foo.ts
new file mode 100644
index 00000000..a48e5b2d
--- /dev/null
+++ b/core-ingestion/test-fixtures/mini-repo/src/foo.ts
@@ -0,0 +1,3 @@
+export function callRun() {
+ return run();
+}
diff --git a/core-ingestion/tsconfig.json b/core-ingestion/tsconfig.json
index 77af2577..ba273d54 100644
--- a/core-ingestion/tsconfig.json
+++ b/core-ingestion/tsconfig.json
@@ -9,7 +9,7 @@
"esModuleInterop": true,
"declaration": true,
"skipLibCheck": true,
- "types": ["node"]
+ "types": ["node", "vitest/globals"]
},
"include": ["src"]
}