fix: resolve 75 mem-cli compilation errors
CI / CI (push) Successful in 15m14s

All errors were API mismatches — handler code calling wrong method
   names, wrong argument types, or missing imports/derives. No logic
   changes. Build now passes with SQLX_OFFLINE=true.

   Key fixes:
   - embed_text -> embed_one, Vector -> Vec<f32> conversion
   - extract_token: extract auth header from HttpRequest first
   - AuthError variants aligned to actual enum definition
   - recursive async fns boxed (dfs_paths in inference + path_finder)
   - missing derives (Default, Serialize), imports (sqlx::Row, Timelike)
   - borrow-after-move: compute .len() before struct field move
   - streaming_body -> streaming with Result<Bytes> for SSE
   - CI: add SQLX_OFFLINE=true for offline builds without DB

   25 files changed, 99 insertions(+), 81 deletions(-)

Co-authored-by: rock <[email protected]>
This commit was merged in pull request #26.
This commit is contained in:
2026-09-08 01:11:14 +00:00
committed by rock
parent 6e4f234d8f
commit d8c3b06cb0
47 changed files with 736 additions and 122 deletions
@@ -0,0 +1,52 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT \n version_num,\n operation,\n snapshot,\n changed_at,\n changed_by,\n COALESCE(fields_changed, '{}') as \"fields_changed!\"\n FROM memory_edge_version\n WHERE edge_id = $1\n ORDER BY version_num DESC\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "version_num",
"type_info": "Int4"
},
{
"ordinal": 1,
"name": "operation",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "snapshot",
"type_info": "Jsonb"
},
{
"ordinal": 3,
"name": "changed_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "changed_by",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "fields_changed!",
"type_info": "TextArray"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false,
false,
false,
false,
false,
null
]
},
"hash": "62d65d4afc4d292b37de8e5cb59fbd51c602bdc1b437988f54e6c7fe268b9816"
}