/** * Project-scope `cleo.db` — consolidated **nexus code-graph** domain (4 tables). * * ## Residency move (ADR-090 · T11538 — residency step 1) * * The four per-project code/knowledge-graph tables — `nexus_nodes`, * `nexus_relations`, `nexus_contracts`, `nexus_code_index` (ADR-090 "Category A") * — wrongly lived in the GLOBAL-scope `cleo.db` (`../cleo-global/nexus.ts`), * each carrying a redundant `project_id text NOT NULL` soft FK to * `nexus_project_registry`. Per ADR-090 §2.1 they MUST reside in the consolidated * PROJECT-scope `cleo.db` (`/.cleo/cleo.db`) so that `.cleo/` * becomes the complete portable living brain (tasks + memory + conduit + docs + * code-graph). * * This module authors that **target shape** for the PROJECT scope. It is * purely ADDITIVE: it DEFINES the four tables (minus `project_id`) so the * type-checker and the project-scope schema barrel see them. It does NOT yet * remove the global copies, move data, or rewire the live accessor — those are: * - T11539: remove the four tables from `cleo-global/nexus.ts` + the * extract-by-project data move (nexus global table count 10 → 6). * - T11545: partition the Hebbian plasticity columns out of `nexus_relations` * into the sibling `nexus_relation_weights` table (ADR-090 §5.3). That table * also belongs in THIS module and MUST land with the move, not after — until * then the plasticity columns (`weight`, `last_accessed_at`, * `co_accessed_count`) stay inline on `nexus_relations` as they are in the * global source. * * ## `project_id` DROPPED (ADR-090 §2.1) * * The `project_id` column is REMOVED from all four tables — scope is now * implicit in which project's `.cleo/cleo.db` is open. Consequently every * `idx_*_project*` index that LED with `project_id` is dropped or collapsed: * - `idx_nexus_nodes_project` → dropped. * - `idx_nexus_nodes_project_kind(project_id, kind)` → collapses to the * already-present `idx_nexus_nodes_kind(kind)`. * - `idx_nexus_nodes_project_file(project_id, file_path)` → collapses to the * already-present `idx_nexus_nodes_file(file_path)`. * - `idx_nexus_relations_project` → dropped; * `idx_nexus_relations_project_type(project_id, type)` → collapses to * `idx_nexus_relations_type(type)`. * - `idx_nexus_contracts_project` → dropped; * `idx_nexus_contracts_project_type(project_id, type)` → collapses to * `idx_nexus_contracts_type(type)`. * - `idx_nexus_code_index_project` → dropped. * Every other column, index, and intra-graph soft FK is preserved BYTE-FOR-BYTE * from the global source. * * ## FK reconciliation — intra-scope soft FKs preserved (ADR-090 §2.1) * * All graph references are intra-scope (within the same project DB) and stay * plain `text` soft FKs exactly as in the global source — the graph stores * unresolved external module specifiers in the same columns, so they were never * enforced FKs: * - `nexus_relations.{source_id,target_id}` → `nexus_nodes.id`. * - `nexus_nodes.{parent_id,community_id}` → `nexus_nodes.id`. * - `nexus_contracts.{source_symbol_id,route_node_id}` → `nexus_nodes.id`. * Post-split these tables hold NO machine-specific absolute paths and NO * cross-scope refs, so they are move-safe (ADR-090 §4 portability). * * ## E10 typing — inherited unchanged from the global source * * The enum const arrays ({@link NEXUS_NODE_KINDS}, {@link NEXUS_RELATION_TYPES}, * {@link NEXUS_CONTRACT_TYPES}, {@link CODE_INDEX_KINDS}) and typed booleans * (`is_exported`, `is_external`, `exported` with `{ mode: 'boolean' }`) are * re-minted here verbatim to keep this scope module self-contained, mirroring * how `../cleo-global/nexus.ts` mints them in-module (no cross-package * contracts SSoT exists for these). The two barrels live in DISJOINT Drizzle * namespaces (`CleoProjectSchemaTypes` vs `CleoGlobalSchemaTypes` in * `store/dual-scope-db.ts`), so the duplicated identifiers never collide. * * @task T11538 * @epic T11535 * @saga T11242 * @see ../cleo-global/nexus.ts (the GLOBAL source these four tables move OUT of) * @see docs/migration/sqlite-schema-canonical.md §4 · §5b * @see cleo docs fetch adr-090-nexus-graph-residency-split */ /** * All node kind values — matches `GraphNodeKind` in `@cleocode/contracts`. * Kept as a const tuple for the Drizzle enum column. Ordering intentional: * structural → module → callable → type → value-level → language-specific → * graph-level → legacy. * * @task T11538 (project-scope target shape) · T529 (original) */ export declare const NEXUS_NODE_KINDS: readonly ["file", "folder", "module", "namespace", "function", "method", "constructor", "class", "interface", "struct", "trait", "impl", "type_alias", "enum", "property", "constant", "variable", "static", "record", "delegate", "macro", "union", "typedef", "annotation", "template", "community", "process", "route", "tool", "section", "import", "export", "type"]; /** TypeScript type derived from {@link NEXUS_NODE_KINDS}. */ export type NexusNodeKind = (typeof NEXUS_NODE_KINDS)[number]; /** * All relation type values — matches `GraphRelationType` in `@cleocode/contracts`. * * @task T11538 (project-scope target shape) · T529 (original) */ export declare const NEXUS_RELATION_TYPES: readonly ["contains", "defines", "imports", "accesses", "calls", "extends", "implements", "method_overrides", "method_implements", "has_method", "has_property", "member_of", "step_in_process", "handles_route", "fetches", "handles_tool", "entry_point_of", "wraps", "queries", "documents", "applies_to", "co_changed", "co_cited_in_task"]; /** TypeScript type derived from {@link NEXUS_RELATION_TYPES}. */ export type NexusRelationType = (typeof NEXUS_RELATION_TYPES)[number]; /** * All contract type values for cross-project API extraction. * * @task T11538 (project-scope target shape) · T1065 (original) */ export declare const NEXUS_CONTRACT_TYPES: readonly ["http", "grpc", "topic"]; /** TypeScript type derived from {@link NEXUS_CONTRACT_TYPES}. */ export type NexusContractType = (typeof NEXUS_CONTRACT_TYPES)[number]; /** * Legal `nexus_code_index.kind` values — tree-sitter symbol capture kinds. * * E10 §5b: `code_index.kind` was bare `text('kind')`. The legal set is the * symbol-kind taxonomy documented on the source column (the tree-sitter capture * groups): structural / module / callable / type-hierarchy / value-level * constructs. Kept as an in-module const so the exodus CHECK derives from this * identifier rather than a hand-typed literal. * * @task T11538 (project-scope target shape) · T11361 (global source) */ export declare const CODE_INDEX_KINDS: readonly ["function", "method", "class", "interface", "type", "enum", "variable", "constant", "module", "import", "export", "struct", "trait", "impl"]; /** TypeScript union derived from {@link CODE_INDEX_KINDS}. */ export type CodeIndexKind = (typeof CODE_INDEX_KINDS)[number]; /** * `nexus_nodes` — one row per symbol or structural element in the code * intelligence graph. PROJECT-scope: `project_id` dropped (ADR-090 §2.1) — * scope is implicit in the owning `.cleo/cleo.db`. * * @task T11538 (project-scope target shape) · T11361 (global source) · T529 (original) */ export declare const nexusNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{ name: "nexus_nodes"; schema: undefined; columns: { id: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string enum"; data: "function" | "file" | "enum" | "folder" | "module" | "namespace" | "method" | "constructor" | "class" | "interface" | "struct" | "trait" | "impl" | "type_alias" | "property" | "constant" | "variable" | "static" | "record" | "delegate" | "macro" | "union" | "typedef" | "annotation" | "template" | "community" | "process" | "route" | "tool" | "section" | "import" | "export" | "type"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["file", "folder", "module", "namespace", "function", "method", "constructor", "class", "interface", "struct", "trait", "impl", "type_alias", "enum", "property", "constant", "variable", "static", "record", "delegate", "macro", "union", "typedef", "annotation", "template", "community", "process", "route", "tool", "section", "import", "export", "type"]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; label: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; name: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; filePath: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; startLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "number int53"; data: number; driverParam: number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; endLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "number int53"; data: number; driverParam: number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; language: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; isExported: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "boolean"; data: boolean; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; parentId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; parametersJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; returnType: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; docSummary: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; communityId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; metaJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; isExternal: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "boolean"; data: boolean; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_nodes"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; }; dialect: "sqlite"; }>; /** * `nexus_relations` — one row per directed graph edge. PROJECT-scope: * `project_id` dropped (ADR-090 §2.1). The Hebbian plasticity columns * (`weight`, `last_accessed_at`, `co_accessed_count`) were PARTITIONED out into * the sibling {@link nexusRelationWeights} table by T11545 (ADR-090 §5.3). * * @task T11545 (plasticity partition) · T11538 (project-scope target shape) · T11361 (global source) · T529 (original) */ export declare const nexusRelations: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{ name: "nexus_relations"; schema: undefined; columns: { id: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; sourceId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; targetId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; type: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "string enum"; data: "contains" | "defines" | "imports" | "accesses" | "calls" | "extends" | "implements" | "method_overrides" | "method_implements" | "has_method" | "has_property" | "member_of" | "step_in_process" | "handles_route" | "fetches" | "handles_tool" | "entry_point_of" | "wraps" | "queries" | "documents" | "applies_to" | "co_changed" | "co_cited_in_task"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["contains", "defines", "imports", "accesses", "calls", "extends", "implements", "method_overrides", "method_implements", "has_method", "has_property", "member_of", "step_in_process", "handles_route", "fetches", "handles_tool", "entry_point_of", "wraps", "queries", "documents", "applies_to", "co_changed", "co_cited_in_task"]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; confidence: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "number double"; data: number; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; reason: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; step: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "number int53"; data: number; driverParam: number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relations"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; }; dialect: "sqlite"; }>; /** * `nexus_relation_weights` — plasticity weights for `nexus_relations` edges * (Hebbian co-access, T998). PROJECT-scope sibling 1:1 table keyed by * `relation_id`, partitioned out of `nexus_relations` by T11545 (ADR-090 §5.3) * to keep the read-mostly structural graph row narrow and isolate the * write-heavy plasticity hot path. * * A relation has at most one weights row; rows are created lazily on the first * co-access strengthening event (UPSERT in `nexus-plasticity.ts`), so absence * means "never strengthened" (treat as weight 0.0). `relation_id` is an * intra-scope soft FK to `nexus_relations.id` (symmetric with the graph's * soft-FK convention — no DB-level FK). Move-safe (no absolute paths, no * cross-scope refs) per ADR-090 §4. * * @task T11545 (project-scope target shape) · T998 (original plasticity columns) * @epic T11535 */ export declare const nexusRelationWeights: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{ name: "nexus_relation_weights"; schema: undefined; columns: { relationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relation_weights"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; weight: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relation_weights"; dataType: "number double"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; lastAccessedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relation_weights"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; coAccessedCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_relation_weights"; dataType: "number int53"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; }; dialect: "sqlite"; }>; /** * `nexus_contracts` — HTTP/gRPC/topic contract registry extracted from the * project's code. PROJECT-scope: `project_id` dropped (ADR-090 §2.1). * * @task T11538 (project-scope target shape) · T11361 (global source) · T1065 (original) */ export declare const nexusContracts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{ name: "nexus_contracts"; schema: undefined; columns: { contractId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; type: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string enum"; data: "http" | "grpc" | "topic"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["http", "grpc", "topic"]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; path: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; method: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; requestSchemaJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; responseSchemaJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; sourceSymbolId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; routeNodeId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; confidence: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "number double"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; description: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_contracts"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; }; dialect: "sqlite"; }>; /** * `nexus_code_index` — persistent index of code symbols extracted by * tree-sitter (one row per symbol per file). PROJECT-scope: `project_id` * dropped (ADR-090 §2.1). * * @task T11538 (project-scope target shape) · T11361 (global source) */ export declare const nexusCodeIndex: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{ name: "nexus_code_index"; schema: undefined; columns: { id: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; filePath: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; symbolName: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string enum"; data: "function" | "enum" | "module" | "method" | "class" | "interface" | "struct" | "trait" | "impl" | "constant" | "variable" | "import" | "export" | "type"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["function", "method", "class", "interface", "type", "enum", "variable", "constant", "module", "import", "export", "struct", "trait", "impl"]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; startLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "number int53"; data: number; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; endLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "number int53"; data: number; driverParam: number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; language: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; exported: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "boolean"; data: boolean; driverParam: number; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; parent: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; returnType: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; docSummary: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "nexus_code_index"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; }; dialect: "sqlite"; }>; /** Row type for `nexus_nodes` SELECT queries (project-scope target shape). */ export type NexusNodeRow = typeof nexusNodes.$inferSelect; /** Row type for `nexus_nodes` INSERT operations (project-scope target shape). */ export type NewNexusNodeRow = typeof nexusNodes.$inferInsert; /** Row type for `nexus_relations` SELECT queries (project-scope target shape). */ export type NexusRelationRow = typeof nexusRelations.$inferSelect; /** Row type for `nexus_relations` INSERT operations (project-scope target shape). */ export type NewNexusRelationRow = typeof nexusRelations.$inferInsert; /** Row type for `nexus_relation_weights` SELECT queries (project-scope target shape). */ export type NexusRelationWeightRow = typeof nexusRelationWeights.$inferSelect; /** Row type for `nexus_relation_weights` INSERT operations (project-scope target shape). */ export type NewNexusRelationWeightRow = typeof nexusRelationWeights.$inferInsert; /** Row type for `nexus_contracts` SELECT queries (project-scope target shape). */ export type NexusContractRow = typeof nexusContracts.$inferSelect; /** Row type for `nexus_contracts` INSERT operations (project-scope target shape). */ export type NewNexusContractRow = typeof nexusContracts.$inferInsert; /** Row type for `nexus_code_index` SELECT queries (project-scope target shape). */ export type NexusCodeIndexRow = typeof nexusCodeIndex.$inferSelect; /** Row type for `nexus_code_index` INSERT operations (project-scope target shape). */ export type NewNexusCodeIndexRow = typeof nexusCodeIndex.$inferInsert; //# sourceMappingURL=nexus-graph.d.ts.map