Defines core node and edge types for a semantic code knowledge graph system. Reuse when parsing, querying, or analyzing code structures.
// Source: https://github.com/colbymchenry/codegraph | License: MIT | Copyright 2026 Colby Mchenry // Provided via justclaw.it.com; keep this notice with the code. /** * CodeGraph Type Definitions * * Core types for the semantic knowledge graph system. */ // ============================================================================= // Union Types // ============================================================================= /** * Types of nodes in the knowledge graph. * * Defined as a runtime-iterable `as const` array so the same source * of truth backs both the TS type and any runtime validation * (e.g. the search query parser). * * The ARRAY ORDER is part of the native kernel's wire contract (kinds cross * the boundary as indexes — see src/extraction/kernel/layout.ts); ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key