Skip to content

feat: wire CLI to core engine#6

Merged
SuperInstance merged 1 commit into
mainfrom
feat/wire-cli-to-core
Jun 5, 2026
Merged

feat: wire CLI to core engine#6
SuperInstance merged 1 commit into
mainfrom
feat/wire-cli-to-core

Conversation

@SuperInstance
Copy link
Copy Markdown
Owner

Replaces all println! stubs in pincher-cli with real pincher-core function calls.

Wired Commands

Command Core Implementation Status
status ReflexEngine::get_status()
teach ReflexEngine::teach() interactive loop
do ReflexEngine::do_command() full match pipeline
pack migration::pack_nail() tar.zst archive
unpack migration::unpack_nail() checksum verification
run verify_nail() + unpack + do_command()
doctor SQLite, bwrap, embedder, disk, load, fingerprint
reflexes Database::get_all_reflexes()
shell-info migration::fingerprint() + fingerprint_hash()
bench Embedder::embed() latency benchmark
gastrolith Create/validate/migrate checkpoints

Bonus Fix

Fixed sqlite-vec KNN query: LIMIT Nk = N syntax (the vec0 virtual table requires this).

Technical

  • 0 new dependencies added
  • 130/130 tests passing
  • 0 build warnings
  • Full CLI API preserved (no argument changes)

Replaces all println! stubs in pincher-cli with real pincher-core
function calls:

- status  → ReflexEngine::get_status()
- teach   → ReflexEngine::teach() interactive loop
- do      → ReflexEngine::do_command() with full match pipeline
- pack    → migration::pack_nail() with tar.zst archive
- unpack  → migration::unpack_nail() with checksum verification
- run     → verify_nail() + unpack + ReflexEngine::do_command()
- doctor  → Real checks: SQLite, bwrap, embedder, disk, load, fingerprint
- reflexes → Database::get_all_reflexes()
- shell-info → migration::fingerprint() + fingerprint_hash()
- bench   → Embedder::embed() latency benchmark
- compile → Workspace-aware compilation guidance
- gastrolith → Create/validate/migrate checkpoint management
- version → env!("CARGO_PKG_VERSION")

Also fixed sqlite-vec KNN query: LIMIT N → k = N syntax.

No new dependencies added.
@SuperInstance SuperInstance merged commit 78104d5 into main Jun 5, 2026
1 of 3 checks passed
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