tmp: snapshot of ~/projects/research/codegraph-rust (2026-05-04)#1
Draft
sashml wants to merge 4 commits into
Draft
tmp: snapshot of ~/projects/research/codegraph-rust (2026-05-04)#1sashml wants to merge 4 commits into
sashml wants to merge 4 commits into
Conversation
Breaking API changes from 2.x to 3.x required updates across graph storage, graph functions, migrations, and schema files. Changes: - Bump surrealdb dep to "3" in codegraph-graph and codegraph-mcp Cargo.toml - Replace all `type::thing(...)` with `type::record(...)` in SurrealQL strings and schema files (renamed in 3.x) - Remove `surrealdb::Value` / `surrealdb::sql` usage (removed in 3.x); replace surreal_to_json/sql_value_to_json with json_decompress_walk that operates on native serde_json::Value - Fix `.take::<T>()` calls: use Vec<serde_json::Value> or Option<serde_json::Value> intermediaries (SurrealValue trait requirement) - Fix `.bind()` / `.content()`: convert custom structs via serde_json::to_value() since only SurrealValue types are accepted - Add strip_nulls() helper: SurrealDB 3.x distinguishes NULL from NONE; option<T> fields reject JSON null — strip nulls before every bind/content - Fix auth structs Root/Database: fields are now String not &str - Fix RecordIdKey: use .as_str() instead of &String references - Add avg_coverage_score field to project_metadata table in schema - Update Cargo.lock for surrealdb 3.0.4 dependency tree
…ngs-onnx feature chain - EmbeddingGenerator::with_config() now initializes AdvancedEmbeddingGenerator when provider = "onnx", loading model from CODEGRAPH_LOCAL_MODEL env var - Add embeddings-onnx feature to codegraph-mcp and codegraph-mcp-server, enabling the full feature chain: server -> mcp -> vector/onnx - Enables local BAAI/bge-small-en-v1.5 embeddings (384-dim) without any external API calls via ORT_DYLIB_PATH + ort crate
… (TASK-13..16) - TASK-13: Add Language::FreePascal enum variant to codegraph-core/types.rs - TASK-14: Register tree-sitter-pascal 0.10.2 grammar in LanguageRegistry with extensions: .pas .pp .lpr .lrs .inc (ABI version compatible) - TASK-15: Add freepascal/pascal/fpc aliases to file_collect.rs extension map and universal auto-detection extension list - TASK-16: Implement FreePascalExtractor in languages/freepascal.rs Extracts: Module (unit/program/library), Function (defProc/defFunc), Struct (record), Class (class with Extends edges), Interface, Import (uses clause with Imports edges), Calls edges (exprCall) 5/5 unit tests pass including node extraction and language detection
…degraph-rust (20260504) Automated preservation before Side B cleanup. Original branch: surrealdb-3x-migration Files staged: 8 Source: cbi snapshot (codebase-intelligence)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Preservation snapshot of dirty working tree from
~/projects/research/codegraph-rustbefore Side B cleanup.DO NOT MERGE until reconciliation decision is made.
Context
Captured via
cbi snapshot(svaiml/codebase-intelligence) as part of cross-workspace drift audit.surrealdb-3x-migrationJakedismo/codegraph-rust(third party)sashml/codegraph-rustDirty file notes
codegraph-mcp.sh— MCP launch script; API key redacted (REDACTED_OPENROUTER_API_KEY) before pushhistory.txt/schema/history.txt— local query history filespatches/objc_exception/— local patch for macOS ObjC exception handlingsetup-surrealdb-service.sh— local SurrealDB setup scriptcodegraph-mcp.sh:23contained a live OpenRouter API key — redacted toREDACTED_OPENROUTER_API_KEYbefore push. Rotate that key at openrouter.ai if it was still active.Next steps
surrealdb-3x-migrationbranch work should move to zombocrafteco~/projects/research/codegraph-rustonce confirmed