Skip to content

release: sync develop → main for v0.6.0 - #496

Merged
ajianaz merged 35 commits into
mainfrom
release/v0.6.0-main
Jun 29, 2026
Merged

ajianaz merged 35 commits into
mainfrom
release/v0.6.0-main

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Sync develop (34 commits ahead) → main for v0.6.0 release.

Changes since v0.5.0:

CI: will validate on push.

ajianaz and others added 30 commits June 26, 2026 10:10
* feat: configurable embedding endpoint path (#473)

Add endpoint_path config field and UTEKE_EMBEDDING_ENDPOINT_PATH env var
for OpenAI-compatible backends that use non-standard paths (e.g. CodeCora
Embed uses /embed instead of /embeddings).

Changes:
- openai.rs: add endpoint_path field, DEFAULT_ENDPOINT_PATH constant,
  normalize leading slash, update all tests
- config.rs: add endpoint_path to EmbeddingConfig, TOML merge, ENV override
- lib.rs: add endpoint_path to EmbeddingSettings, resolve_with_defaults,
  pass to OpenAiEmbedder::new() in ensure_embedder

Zero breaking change: defaults to /embeddings (OpenAI standard).
Cora review: clean.

* fix: add missing endpoint_path to EmbeddingSettings literals

- main.rs: CLI EmbeddingSettings construction
- lib.rs: 3 test struct literals
- cargo fmt applied

CI failures expected: missing field, format.

* fix: restore original test credential values corrupted by patch

The fuzzy patch tool replaced real credential-like test strings (sk-*-config,
sk-config-only) with literal '***'. Restore original values to fix CI test
failures.

---------

Co-authored-by: ajianaz <[email protected]>
- engine.rs: MAX_SEQ_LEN constant 256→2048
- config.rs: EmbeddingConfig default 256→2048
- Add UTEKE_MAX_SEQ_LENGTH env var override
- Update 4 test assertions for new default

Aligns with CodeCora Embed Modal API and practical use cases.
Zero breaking change for explicit config users.

Closes #472

Co-authored-by: ajianaz <[email protected]>
- Add Unreleased section in CHANGELOG for:
  - #473: configurable embedding endpoint_path + ENV override
  - #472: max_seq_length 256→2048 default + ENV override
- Fix docs/configuration.md:
  - max_seq_length default: 256 → 2048
  - Add endpoint_path config field and table row
  - Add UTEKE_EMBEDDING_ENDPOINT_PATH env var
  - Add UTEKE_MAX_SEQ_LENGTH env var

Co-authored-by: ajianaz <[email protected]>
Cora LLM flags struct field declarations named api_key as
'Hardcoded password or secret in variable' — these are identifiers,
not hardcoded values. rules field (soft LLM instruction) is insufficient;
add deterministic ignore filter that matches on issue title.

Also remove the non-effective LLM-only rule that was added
attempting to suppress the same issue.

Co-authored-by: ajianaz <[email protected]>
* feat(import): add opt-in LLM fact extraction (--extract)

Raw source material (chat transcripts, long notes, exported dumps) is
noisy and pollutes recall when imported verbatim. `uteke import --extract`
distills the input into atomic facts via an OpenAI-compatible
chat-completions endpoint and stores one memory per fact.

Opt-in and offline-first: without --extract the importer makes no network
calls and behaves exactly as before. Settings resolve CLI flag >
UTEKE_EXTRACTION_* env > [extraction] config > default, and the API key
falls back to the embedding/OPENAI_API_KEY credential so an existing
OpenAI-compatible setup needs no duplication.

Follows the existing embedding-backend pattern (reqwest blocking, bearer
auth, base_url/endpoint_path, URL validation). No new dependencies.

Relates to #46 (Obsidian/CSV import was partially landed; this completes
the "import from external knowledge sources" goal for noisy free-form text).

* chore(cora): suppress false-positive secret findings on api_key identifiers

CodeCora's static scanner flags struct fields and CLI flags named
`api_key` / `extract_api_key` as "hardcoded password or secret", but
these are identifiers populated at runtime from env/config/CLI input,
never literal secrets. Mirrors the existing `embed/openai.rs` api_key
field. Adds a suppression rule following the same pattern already used
for the SQL-injection false positive.

---------

Co-authored-by: Anaz S. Aji <[email protected]>
…pattern (#480)

subprocess.run(cmd) in __init__.py.tmpl uses controlled args
(self._bin + hardcoded literals), not dynamic user input.
Add context rule + ignore rule to prevent Cora/CodeCora false positives.

Co-authored-by: ajianaz <[email protected]>
Adds `uteke init --agent hermes --memory-provider`, which installs a
MemoryProvider plugin to ~/.hermes/plugins/uteke/ that makes uteke
Hermes's default long-term memory:

- automatic recall prefetched + injected into the prompt each turn
- opt-in LLM fact extraction on session end / pre-compress
- direct subprocess to the uteke binary (no uteke-serve daemon)
- circuit breaker so a bad endpoint never blocks the agent

Plugin templates live in extensions/hermes-memory-provider/ and are
embedded via include_str! so the generated plugin always matches the
binary. Complements the existing uteke-tool plugin (manual HTTP actions)
rather than replacing it.

Docs: docs/integrations/hermes.md documents both modes (tool vs
memory-provider). Zero new dependencies.

Co-authored-by: Anaz S. Aji <[email protected]>
- CHANGELOG: add store() accessor (#466) and rusqlite 0.40 upgrade
- Roadmap: add v0.4.x and v0.5.0 entries (previously stuck at v0.3.0)
- Getting started: mention --extract flag and Hermes memory-provider

Co-authored-by: ajianaz <[email protected]>
* docs: add marketing assets + fix install URL + test count

README updates:
- Add banner image (docs/assets/uteke-banner.png)
- Add architecture diagram (docs/assets/uteke-architecture.png)
  with HNSW + FTS5 + RRF pipeline description
- Add comparison infographic (docs/assets/uteke-comparison.png)
- Fix install URL: raw.githubusercontent → codecora.dev/install
  (CF Worker redirect, cleaner)
- Fix test count: 295 → 312 unit tests (verified)

README.id.md: same install URL + test count fixes.

* docs: update test count 312 → 327

---------

Co-authored-by: ajianaz <[email protected]>
* release: bump version to v0.5.0

Features:
- Hermes memory-provider plugin (--memory-provider)
- LLM-backed fact extraction on import (--extract)
- Configurable embedding endpoint path
- Default max_seq_length 256 → 2048
- Public store() accessor
- rusqlite 0.31 → 0.40

* release: bump inter-crate dependency versions to 0.5.0

---------

Co-authored-by: ajianaz <[email protected]>
- FallbackEmbedder: local ONNX primary with optional cloud fallback
- EmbedFallbackConfig in CLI config + env var resolution
- FallbackSettings in core + set_fallback_settings() method
- Wire fallback wrapping in ensure_embedder() with dim validation
- Batch import: discover_files, determine_strategy, run_import_batch
- import_single_document via doc_upsert_with_parent
- Sequential memory extraction loop with error bail-out
- Dry-run mode, JSON output, progress summary

Tasks #1-7 of v0.6.0 milestone (#17)
- Add --batch-dir, --as-doc, --as-memory, --extract-parallel (1-10),
  --dry-run, --max-size, --recursive flags to Import command
- Wire batch mode dispatch in commands/mod.rs
- Make ImportStrategy pub(crate) for cross-module access
- conflicts_with/requires clap constraints for UX safety

Task #10 of v0.6.0
Tests: discover_files (md/txt/jsonl, recursive, max_size, not-dir),
determine_strategy (default, force, extract flag), slug_from_path,
title_from_slug.

Task #12 of v0.6.0
Task #13 — final commit for v0.6.0 batch import & embed fallback feature.
…pped_facts

Cora review: ambiguous 'skipped' field mixed file-level and fact-level
skip counts. Now tracks them separately for clearer batch import reporting.

All 287 tests pass.
…_str_replace

- Allow clippy::too_many_arguments on run_import_batch (11 args, intentional)
- Allow dead_code on BatchFileResult (used by JSON output, not constructed yet)
- Collapse consecutive str::replace into single call

CI should pass: fmt + clippy clean, 10/10 tests pass.
…ation

- README.md: add batch import + embed fallback to Key Features
- README.id.md: same (Indonesian)
- docs/cli-reference.md: add --batch-dir section with flags table and examples
- docs/configuration.md: add [embed_fallback] section with env vars and dim validation

Rule: every code change must update related documentation.
docs: batch import + embed fallback documentation
Adds documentation for the lightest uteke-Hermes integration:
- Standalone Python handler, no plugin/daemon needed
- Wire protocol reference (stdin/stdout JSON)
- Comparison table (Mode A vs B vs C)
- Quick setup guide with full handler.py example
- Recommended combo: Mode A (manual tool) + Mode C (auto recall)
Root cause: v0.5.0 added hierarchical document indexes
(idx_documents_path/parent/depth/sort) to the SCHEMA constant,
which runs via execute_batch() BEFORE versioned migrations. For DBs
upgrading from v0.4.x, the documents table already exists (skipped
by IF NOT EXISTS) but lacks the hierarchy columns, so CREATE INDEX
references non-existent columns and the entire init_schema() fails.

The indexes already exist in migrate_v11_to_v12() with proper
column-existence guards. Removing them from SCHEMA eliminates the
duplication and ordering conflict.

Also adds:
- Store::from_conn() test helper for pre-seeded DB migration tests
- Regression test: simulates v0.4.x DB (schema_version=11, documents
  table without hierarchy columns) and verifies migration v11→v12
  succeeds with all columns and indexes present
…ex-order

fix: remove duplicate document indexes from SCHEMA constant (#492)
After merging #491 (Mode C docs), the getting-started Hermes callout
still referenced only Mode B. Update to list all 3 modes with links
to the full integration docs.

Ported from #490 (closed as duplicate).
…callout

docs: update getting-started Hermes callout with 3 integration modes
docs: add Mode C — pre_llm_call shell hook integration
ajianaz and others added 5 commits June 29, 2026 23:10
v0.6.0 release prep with all fixes from deep code review.

## Features
- Batch directory import (--batch-dir) with dual strategy
- Cloud embedding fallback when local ONNX fails
- Mode C (shell hook) documentation
- Migration upgrade regression test

## Bug Fixes
- #492: Schema migration crash on upgrade from v0.4.x
- Path canonicalization on --batch-dir (C1)
- read_dir errors no longer silently swallowed (C2)
- Partial fallback config produces warning instead of crash (C3)

## Cleanup
- --as-doc/--as-memory now mutually exclusive (W1)
- total_facts renamed to total_items (W2)
- .text extension removed, .markdown added (W3)
- Dead extract_parallel flag removed (W4)
- Dead BatchFileResult struct removed (W5)

## Housekeeping
- Version bump 0.5.0 → 0.6.0 (workspace + all dep pins)
- Dockerfile VERSION v0.0.10 → v0.6.0
- README badges v0.5.0 → v0.6.0
- CHANGELOG: added Fixed section, Mode C docs, migration test
- docs/roadmap: v0.5.0 marked released, v0.6.0 added
- docs/integrations/hermes.md: two ways → three ways, PATH fix
- docs sidebar: added Hermes Integration link
The tracing::warn! call had only one {} placeholder but three format
arguments (if expressions). Rust treats the if expressions as unused
formatting arguments. Fix by building the missing fields string
separately with join() and passing as a single named argument.
release: v0.6.0 — batch import, embed fallback, bug fixes
@github-actions

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 e142b5b into main Jun 29, 2026
1 check passed
@ajianaz
ajianaz deleted the release/v0.6.0-main branch June 29, 2026 17:20
ajianaz added a commit that referenced this pull request Aug 13, 2026
release: sync develop → main for v0.6.0
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.

2 participants