Skip to content

release: v0.6.4 — develop → main - #537

Merged
ajianaz merged 29 commits into
mainfrom
sync/v0.6.4-to-main
Jul 3, 2026
Merged

ajianaz merged 29 commits into
mainfrom
sync/v0.6.4-to-main

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Sync develop → main for v0.6.4 release. See CHANGELOG.md for full details.

dependabot Bot and others added 29 commits July 1, 2026 16:51
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.23.3 to 1.23.4.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](uuid-rs/uuid@v1.23.3...v1.23.4)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 1.23.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Split 1,840-line main.rs into 4 focused files:
- types.rs: request/response structs, helpers, constants
- context.rs: ReqCtx, auth, CORS middleware
- handlers.rs: route() dispatcher (all endpoint logic)
- main.rs: CLI args, config loading, server startup

Zero behavior change. All endpoints return identical responses.
Closes #514
- handlers.rs: add serde::Deserialize for local struct derives
- main.rs: add tiny_http::Server, remove unused Cursor import
- main.rs: use imported Server instead of tiny_http::Server::http
- types.rs: remove unused Cursor import (clippy error)
- context.rs: rustfmt function signature wrapping
- main.rs: rustfmt module declaration order + trailing comma
…e-514

refactor: split uteke-server monolith into modules (#514)
Read-only token was blocking ALL POST endpoints (403), but many POST
endpoints are reads (/recall, /search, /list, /stats, /room/recall, etc.).

Changed: blanket 'method != GET' check → per-endpoint allowlist based on
operation semantics. ReadOnly tokens can now:
- POST /recall, /search, /list, /stats (read queries)
- POST /room/recall, /room/summary, /room/document, /room/stats (room reads)
- POST /doc/get, /doc/list, /doc/search (document reads)
- All GET endpoints (unchanged)

Still blocked:
- POST /remember, /forget, /room/create, /room/delete, /doc/create,
  /doc/move, /doc/delete, /context, /dream, /mcp (all writes)
…d-endpoints-524

fix: allow read-only token on read POST endpoints (#524)
When namespace is None, list() and list_at_time() now return memories
from ALL namespaces instead of forcing DEFAULT_NAMESPACE.

Pattern matches the fix in #448 for recall/search — consistent behavior
across all query functions.

4-way match on (namespace, tag):
- (Some(ns), Some(t)) — filtered by both
- (Some(ns), None) — filtered by namespace only
- (None, Some(t)) — cross-namespace tag search
- (None, None) — all memories across all namespaces

Also adds content_type and slug columns to list_at_time SELECT
(previously missing, inconsistent with list()).
cargo fmt expects method chain format (self\n.conn\n.prepare) not
self.conn.prepare(...). Fix for CI Format check failure.
…espace

fix(#526): /list and /list_at_time cross-namespace support
#527 — GET /namespaces?with_counts=true
Returns [{name, count}] per namespace instead of plain string array.
Eliminates N× full-list fetches by clients just to get counts.
Core: list_namespaces_with_counts() in tags.rs + operations.rs

#528 — GET /recent?limit=20&namespace=X&offset=0
Returns most recent memories across all (or specified) namespaces.
Thin GET wrapper over list() — leverages #526 cross-namespace fix.
Params: limit (default 20), offset (default 0), namespace (optional)
Namespace count query returned integer from SQLite but tried to
deserialize as usize — rusqlite doesn't implement FromSql for
usize. Use u32 which is safe for any realistic count and supported
by rusqlite directly.
handlers.rs passed Option<String> ns to list() which expects
Option<&str>. Use .as_deref() for the conversion.
…th-counts

feat(#527,#528): /namespaces?with_counts=true + GET /recent endpoint
chore(deps): bump uuid from 1.23.3 to 1.23.4
…te-4.6.6

chore(deps): bump clap_complete from 4.6.5 to 4.6.6
Bridge recall and doc search into a single query surface via client-side RRF merge.
No schema changes, zero migration risk.

- Add UnifiedSearchResult, SearchResultType, SearchType types
- Add recall_unified() to Uteke (core) with 3 modes:
  - All (default): memories + documents merged via RRF
  - Memory: memories only (backward compatible)
  - Document: documents only
- CLI: --type flag (all|memory|doc) on recall command
- CLI: [mem]/[doc] labels in human output
- MCP: uteke_recall now returns unified results with type field
- API: POST /recall accepts optional search_type parameter
- Tests: serde roundtrip, type defaults, field serialization

Fixes from original PR:
- Remove clap::ValueEnum from uteke-core (no clap dep) — use String in CLI
- Rename test is_numbered_list → test_numbered_list (shadows free fn)
- Apply min_score in recall_unified_all (Cora review)
- Entity/category filters force legacy memory-only path (Cora review)
- Fix serde test assertions: use "document" not "doc", "result_type" not "type"
- Rustfmt all files

Breaking: none — --type defaults to 'all' but falls back to memory-only
path when memory-specific flags are used (--at, --related, --salience,
--recency, --entity, --category, --where).
- recall_unified_documents now accepts and applies min_score filter
  (previously ignored, causing functional inconsistency)
- recall_unified_all: replace unwrap_or_default() with match + tracing::warn
  so backend failures produce log entries instead of silent empty results
  (partial degradation is intentional — one source failing shouldn't block the other)
feat: unified search across memories and documents (#531)
Add optional 'onnx' feature (default enabled) to uteke-core that gates
ort, ndarray, tokenizers, and sha2. External consumers (e.g. CorIn) can
use default-features = false to skip ONNX compilation while still
accessing SQLite, usearch, and remote embedders (Ollama, OpenAI).

All uteke binaries (CLI, Server, MCP) explicitly enable 'onnx' feature.
Verified: compiles both with and without onnx feature. All tests pass.

Closes #533
Closes #534
…te-ort

feat: gate ONNX dependencies behind 'onnx' feature
docs: update CHANGELOG for v0.6.4
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. Cora produced an empty result. Check the workflow logs for errors.


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit d6fb662 into main Jul 3, 2026
1 check passed
@ajianaz
ajianaz deleted the sync/v0.6.4-to-main branch July 3, 2026 15:45
ajianaz added a commit that referenced this pull request Aug 13, 2026
release: v0.6.4 — develop → main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant