wayfinder_cli 0.4.0
wayfinder_cli: ^0.4.0 copied to clipboard
Local OKF validation, knowledge indexing and semantic search.
0.4.0 #
-
Add
queryto CLI and MCP for exact concept metadata views and saved project query IDs. JSON/row/group contracts match the core API, disclose totals and pagination, refuse incomplete source reads and open no embedding model or index. Query performs no update check. -
Every
index, includingindex --forceand one that finds the index current, deletes the index generations superseded more than ten minutes before, so repeated forced indexes no longer leavegeneration-*folders and.supersededmarkers behind until the knowledge changes. -
searchand the MCPsearchtool no longer report a concept's source path, such assources: [{resource: ../../lib/billing.dart}], as an unresolved relationship. A source that exists on disk adds no notice, and one that names nothing is reported asUnresolved source: <path>(unresolved-source). -
index,searchandwayfinder mcpalso find the embedding model thatEmbeddingModelCacheinstalled in the data directory (models/arctic-embed-xs-q8_0/embedding.gguf), afterWAYFINDER_EMBEDDING_MODEL, the bundle'smodels/,./modelsand the source package, and only when its size and SHA-256 match the pin. A source-built command used to report the model missing beside a model a host such as Stargate had installed. When no model is found, the failure now lists every location searched, in order, as absolute paths, says thatWAYFINDER_EMBEDDING_MODELis not set, and names each remedy: setting it, reinstalling the bundle, preparing the model in a source checkout, or installing it into the data directory with an application that provisions it. It used to name onlymodels/embedding.gguf, a relative path it had not searched alone. A cached model that fails its size or SHA-256 check, with no other copy found, is reported asmodel-invalidnaming that file, and aWAYFINDER_EMBEDDING_MODELthat is empty or names no file asmodel-missingnaming the setting and the path, instead of as a missing model. -
Quote the bundle path in generated git hooks, and reject control characters and a leading
-in--bundle, so the path cannot become shell source. -
Fix
wayfinder mcpcommand dispatch to use the server's persistent retrieval service instead of the one-shot CLI default. Preserve explicit Dart knowledge factory overrides and ordinary one-shot command behavior. -
Reuse parsed snapshots across bundles in persistent MCP services when each canonical index directory, generation, and reread complete JSON text are unchanged. Cap retained JSON at 64 MiB UTF-8 with LRU eviction; larger records bypass the cache. Preserve source freshness, per-call store closure, exact search output, and one-shot CLI behavior. Failures, missing records, and disconnect clear the entry.
-
BREAKING: Search is dense-only. Remove CLI
--mode(including dense) and MCPmode. Retired inputs are rejected explicitly; unsupported MCP fields are not silently discarded. Every actual search requires the verified local encoder and compatible vectors; there is no model-free fallback. Existing compatible saved indexes need no rebuild solely for this cutoff. Model/input identity, snapshot format, context behavior, and bundle/Profile rules are unchanged. -
Reuse a lazy encoder across serialized MCP retrieval calls. Preserve source freshness and per-bundle locks; evict on failure and dispose on disconnect.
-
getandupgraderefuse a file or symbolic link where a Profile skill directory goes, as they refuse a directory without Wayfinder's marker, before writing anything; they used to writewayfinder.lockand then fail while moving the skill into place. -
get,upgradeandvalidatestop reading a Profile package whose rule tests run past ten seconds, as apatternthat backtracks without end can make them:getfails naming the rule, andvalidatereportswayfinder/profile-timeout, so the gate isINCOMPLETE(exit code 2) unless OKF failed it, instead of running forever. A package whose parse stops on an error, such as a stack overflow in a rule's tests, is reported the same way aswayfinder/profile-invalidinstead of stopping the command. -
getandupgradestop a Git command that writes more than 64 MiB, and no longer wait for a helper, such as an SSH connection master, that holds Git's stderr open after the command exits. A helper that holds Git's stdout open fails the command ten seconds after it exits, rather than holding it forever or reading part of its output. -
validateand the MCPvalidatetool warnwayfinder/profile-skill-stalefor a Profile skill whose.wayfinder-profilemarker cannot be read, instead of reportingwayfinder/profile-unresolved, so the gate no longer turnsINCOMPLETE(exit code 2) over it.getreports such a directory as one it did not install, as it does an unmarked one. A marker that is not a regular file when checked, such as a named pipe, which made the command wait forever, or that is larger than 64 KiB counts the same way, andgetrefuses to install the skill of a Profile whose release is too long for its marker to stay within 64 KiB. -
validate --fixholds okf's exclusive bundle lock while it loads the bundle again, writes the generated indexes and validates, so it waits for an okf read or write of the bundle in another process instead of interleaving with it. One with nothing to write takes no lock, and a lock it cannot take, as in a bundle it may not write, is reported aswayfinder/fix-failedwith exit code 1, as a failed write always was. -
Like okf's own writes, a
validate --fixthat writes leaves.okf.lockat the bundle root. Add.okf.lockto the project's.gitignore.indexandsearchleave the file out of the bundle inventory they compare, at any depth, as okf's loader does; before, a bundle holding one failedindexwithKnowledge changed while loadingandsearchreported the index stale. -
Requires
wayfinderandwayfinder_embeddings^0.4.0. -
Project discovery, Profile resolution, selection, Profile skills and the graph projection now come from
package:wayfinder/project.dart; the command and MCP server keep their output and exit codes. -
validatereads each locked package from the filegetkeeps underprofiles/packages/in the data directory and runs no Git. On a cache 0.2 wrote, which has no such files,validatecopies each one out of its source's cached mirror withgit showthe first time, without fetching, so verdicts and exit codes are unchanged. -
BREAKING:
getandupgradeignore inheritedGIT_*variables other thanGIT_CONFIG_GLOBAL,GIT_CONFIG_SYSTEM,GIT_CONFIG_NOSYSTEM,GIT_SSH_COMMAND,GIT_SSHandGIT_SSH_VARIANT. Move a setting such asGIT_SSL_CAINFOorGIT_ASKPASSinto Git's configuration (http.sslCAInfo, a credential helper). -
getandupgraderun Git without prompts or hooks. SSH runs the command Git would choose (GIT_SSH_COMMAND,core.sshCommand,GIT_SSH, thenssh) with-o BatchMode=yesadded for OpenSSH, so it fails instead of asking for a passphrase or host key. A Git command that writes nothing for five minutes is stopped; clones report progress, so a long clone keeps running. A secondgeton the same project fails at once while the first runs, andgets that share a Profile source wait for each other. -
Builds with Dart
objectbox5.3.2 throughwayfinder_embeddings0.4.0. -
indexandsearchcome from thewayfinder_embeddingsknowledge store, and the MCP server's tools with them. The CLI finds the model in its bundle and passes it in. It does not load ObjectBox. Output and exit codes are unchanged except as listed below. -
Errors for an unusable index name what is wrong:
Index is missing,Index is stale,Saved index is incomplete or incompatible,The saved index has another configuration,Index belongs to another bundleorEmbedding configuration changed, each followed byRun wayfinder index <bundle>.;Index is missing, stale or incompatibleis gone. -
A bundle that holds okf's
.okf.lockindexes and searches; before,indexfailed withKnowledge changed while loading. -
Chunk IDs no longer depend on the bundle's absolute path, so equal scores rank the same in every worktree.
-
With
WAYFINDER_EMBEDDING_MODELset,indexchecks the file before it reports a current index, and so can report one; before, it reloaded the model on every run.index <bundle> --detachchecks it first too, and an invalid setting fails with the foreground's error and exit code 2; before,--detachreportedstartedand the background run failed. -
Native bundles no longer include the
analyzerpackages or their license files. Search and indexing are unchanged; the CLI never chunked Dart source. -
BREAKING:
engine.okfinvalidate --output jsonand the MCPvalidatetool reports the okf release the CLI runs,0.5.1or a later okf 0.5 release, instead of always0.5.0, andvalidate --output sarifnames the same release in itsokftool extension. It no longer equals theversiona Profile'smatches-generatedrule pins, which names okf's index generator revision and stays0.5.0, so a check that expectsengine.okfto be0.5.0, or to equal thatversion, fails. -
Requires
okf^0.5.1. A Profile'smatches-generatedversionnames okf's index generator revision, which stays 0.5.0. Index verdicts are unchanged, and a Profile that pinsversionto0.5.0, such as Bitwild 2026.3, keeps loading. Aversionthat names another revision fails to load with a reason that names the revision this wayfinder runs. -
Builds with
llamadart0.15 throughwayfinder_embeddings0.4.0: native bundles carry llama.cpp fromllamadart-nativev0.7.0-2 instead of v0.4.0, still CPU only.licenses/embedding_runtime/attributes it, and now also the cpp-httplib and JSON for Modern C++ code it contains. Index configuration version 5 names the new runtime, whose vectors differ slightly, so an index an earlier build wrote is not read andindexbuilds each bundle once. Search results on the judged corpus and the OKF evaluation are unchanged. -
search, and the MCP server'ssearchtool, keep working while another command indexes the bundle (#110): they serve the last completed index with arefresh-in-progressnotice. Passages of files edited since are markedsource changed("sourceChanged": truein JSON) and listed in asource-changednotice. Without an index running, a stale index still fails. Onlyindexholds a bundle's lock: a secondindexof the bundle still fails withIndex is busy, andindex --detachreportsrunning. A search's momentary probe of that lock never makes anindexbusy. The MCP server's calls share its encoder one model call at a time, so a search no longer waits for a whole index. -
BREAKING: indexes are plain files in
indexes/bundles/<bundle key>/<configuration key>/generation-*, and theindexfield ofindex --output=jsonnames that directory. The CLI store does not use ObjectBox. An index in an earlier layout, Wayfinder 0.2's or an ObjectBox database inindexes/<bundle-key>/, is never read, changed or deleted, so the firstindexafter upgrading builds each bundle again; delete those directories by hand to reclaim their space. Native bundles no longer ship ObjectBox or its license notice. -
The background-index slot,
background-index.lock, is aflocklock (WayfinderFileLock) like Wayfinder's other lock files, so it excludes other isolates as well as other processes. It does not exclude a background index of an earlier release. -
The MCP server's
searchstops when the client cancels the call, or disconnects while it runs, before it encodes the query or scores passages, instead of finishing a search whose result no one reads. Anindexstill runs to its end. The output ofsearch, and of the MCPsearchtool, is unchanged.
0.2.0 #
- BREAKING: MCP
searchand default CLI textwayfinder searchnow return structured Markdown (## Matchesand## Related Context) with<path>:<lineStart>-<lineEnd>citations, single-line concept metadata, and resolvedsourcesentries instead of the JSON search payload. Callers that require machine-readable JSON must usewayfinder search --output=jsonor remain on0.1.2. wayfinder mcpwithout a bundle now discovers all configured project bundles, matching CLI project search/index. Search ranks them together with one query embedding, a global limit, and bundle-aware citations; index refreshes them all. Validate and graph return independent reports underbundles, with each validation report keeping its own gate andexit_code. No implicit indexing or partial search results are introduced. Explicitmcp <bundle>launches retain their result shapes;WAYFINDER_KNOWLEDGE_DIRremains an explicit single-bundle override. The plugin and newsetupentries default to project mode. Existing entries needwayfinder setup --forceand a host restart; unset the environment override for project-wide search. Bundles and Profile package formats are unchanged.- Requires
ack^1.7.0andwayfinderandwayfinder_embeddings^0.2.0. - The
wayfinderandokfpHomebrew formulas are removed frombtwld/homebrew-tap.wayfinder updatetells a Homebrew installation the formula was removed and to reinstall with the install script. setup --session-hooksadds project-local, context-only startup hooks for Claude, Codex, and Gemini and anAGENTS.mdpointer for Grok. The short bootstrap prompts loadinguse-wayfinderand its related skills; it performs no indexing or network requests. Existing hooks and instructions are preserved.search "<query>"searches all project bundle paths fromwayfinder.json;--bundle <folder-name>optionally filters one. Matches rank across bundles with one query embedding and a global limit, preserving bundle-aware citations.indexwithout a path refreshes the same bundle set. Explicit paths retain their existing behavior and JSON; missing/stale selected indexes still fail search without implicit indexing or partial results.wayfinder getandupgradeinstall the skill of every locked package that names one inskill, from its locked commit, into the project's.claude/skills/<id>/and.agents/skills/<id>/with a.wayfinder-profilemarker, keeping each file's executable bit outside Windows. They never replace or remove a directory without the marker and fail before writing the lock when one is in the way. They remove a marked directory whose Profile no longer ships a skill or is no longer locked, and rewrite nothing when every marker is current. A skill root that a symbolic link at the root or an ancestor places outside the project is never pruned, and it failsgetbefore the lock is written when a locked Profile ships a skill to install there; the message names every such root. Text output lists each skill;--output jsonaddsskillsandremoved_skills.validatereports a missing or outdated copy as thewayfinder/profile-skill-stalewarning without changing the gate.- A project names only the Profile it applies; the package names its parent.
wayfinder getfollows each package'sextends, reading a same-revision parent from the child's commit, composes every chain before it writes the lock, and locks a flatpackagesmap with one source per Profile id, itsgit,ref, andpath, resolved to one commit. Two chains that describe one id with different sources failgetnaming both sources, even when they resolve to the same commit. Run twice with nothing changed,getfetches nothing and leaves the lock's bytes alone. A lock in the oldprofilesshape is rewritten.get --output jsonreportspackagesinstead ofprofilesand dropsdirect. Validation selects through the resolver'sselect, which never fetches and reports each failure as one diagnostic, including a lock whose chain, release or parent disagrees with the cached package, or whose selected package records anothergit,reforpaththan the configuration. wayfinder getreads each configured source'swayfinder-profile.jsonas a format 2 package and composes the chain before writing the lock, so a package this engine cannot read, or a chain that does not compose, failsgetwith the reason and leaves the lock untouched. Awayfinder.jsonkey is the package id, in kebab-case, and the package must declare that id. Bitwild isbitwild-profileatprofiles/bitwild; no chain has to reach it. The runtime archive no longer shipsprofile/.wayfinder validateand MCP validation of a 2026.2 bundle, or any bundle with nowayfinder.jsonabove it, reportwayfinder/config-missingwith the ProfileNOT ASSESSEDand gateINCOMPLETE, exiting 2. An in-bundleprofile.mdno longer selects a Profile. Stay on wayfinder 0.1.x to keep validating a 2026.2 bundle unchanged, or migrate it to awayfinder.jsonbinding. The runtime archive no longer ships the 2026.2 Profile snapshot. The worked example moved toexamples/bitwild, awayfinder.jsonproject whose bundle isexamples/bitwild/knowledge; runwayfinder get examples/bitwildbefore validating it.wayfinder validateand MCP validation end with one derived gate,PASS,FAILorINCOMPLETE, exiting 0, 1 or 2, and list the engine'swayfinder/*diagnostics beside the findings. A run that could not assess everything, such as an unresolved Profile source or a link graph that cannot be built, isINCOMPLETEand neverPASS. JSON dropsjudgment_rulesandautomated_gate. With--output jsonorsarif, a run that stops still prints a result carryingwayfinder/internal-error.wayfinder getdecodes the Profile manifest and rule catalog thatgit showprints as UTF-8, so a non-ASCII character such as§no longer comes back as§on Windows.wayfinder validateand MCP validation report what Profile 2026.3 permits, such as an unresolved planned link, as summary entries: JSONprofile.summary, a textSummary:block, and SARIF informational results. They never change the gate or the exit code. The resolver rejects a composed binding that declares a tag equal to a type, status, trust tier, or relationship name.wayfinder graphand the MCPgraphtool add each concept's typedrelationshipsfrontmatter entries beside okf's graph. JSON keeps every okf key and adds afield_edgesarray; Mermaid and DOT label each added edge with its relationship name, quoted in Mermaid so a name containing|still parses. Search expansion follows the same relationships, before untyped body links, and a context hit reached through one carries itsrelationshipname. Saved indexes stay compatible.- Project bindings accept
relationships, declared liketags, and the resolver composes them throughextendswith the same collision checks. wayfinder validate --fixwrites okf's generated indexes for a Profile 2026.3 bundle, then validates. It writes only index files that differ, never writes a 2026.2 bundle or one that fails OKF, and says which applied.wayfinder validateand MCP validation recognize configured Bitwild Profile 2026.3 bundles; CLI validation accepts--configfor an explicit project file. Both validate read-only from a current lock/cache;getandupgradeare the explicit fetching and lock-writing commands. Graph, index, and search do not resolve unused Profile sources. Legacy 2026.2 bundles remain supported.index --detachruns one background index per machine; while one runs, it reports that and starts nothing. A background index stops after 30 minutes or once its bundle directory is removed. The git hooks fromsetup --hooksskip file checkouts, new clones and worktrees, and changes that leave the bundle alone; rerunwayfinder setup --hooksto update existing hooks.setup --hooksno longer adds Claude Code and Codex Stop hooks, which indexed after every agent turn in every workspace. Rerunning it removes the Stop hooks earlier releases added and keeps every other hook; search still reports a stale index, and the MCPindextool refreshes it.
0.1.2 #
- Refresh the plugin and authoring skills so they copy OKF §5 inline frontmatter and refuse a silent Profile release change.
- An unsupported Profile release is reported as
NEEDS HUMAN, not a 2026.2 judgment failure. Graph CLI filters match the MCP graph tools.
After upgrading, run wayfinder update so the plugin and skills refresh.
Existing 2026.2 bundles stay conformant. Profile validation, the embedding
model, the ObjectBox schema, and index configuration are unchanged.
0.1.1 #
- Recover oversized separators and identifiers without aborting bundle indexing
or editing source files, using
wayfinder_embeddings0.2.0. - Report oversized-input recoveries as structured
warningsin completed/current CLI JSON and MCP index results, and escaped stderr warnings in text mode. - Replay persisted warnings without loading the model, including foreground calls after detached completion; detached status acknowledgements are unchanged.
- Bump application index configuration to 3 for lossless splitting and conditional context omission. Existing indexes require one rebuild; source bundles need no edits.
- Harden the public installers' platform and input validation before network access, including an explicit error for unknown Windows architectures.
After upgrading, run wayfinder index <bundle> once before searching. JSON
consumers must allow the additive warnings field. Profile validation, the
embedding model, and the ObjectBox schema are unchanged.
0.1.0 #
- Report Profile 2026.2 and depend on
okf^0.5.0.wayfinder validateprintsProfile 2026.2and treats a bundle declaring2026.1as an unsupported release. Date-only timestamps surface as okf's non-blockingokf/timestamp-without-offsetadvisory and leave the gate passing.
0.0.4 #
wayfinder graph <bundle>prints the bundle's OKF relationship graph as JSON, Mermaid or DOT, filtered by type, path prefix or link resolution. MCP clients get a read-onlygraphtool.- Native installs also report
sourcespaths that resolve to nothing as validation advisories, and no longer treat adjacent footnote references ([^a][^b]) as a missing-source error. The pub.dev package gains both with the nextwayfindercore release.
0.0.3 #
-
Homebrew installations are directed to the install script because the formula is no longer updated.
-
wayfinder indexreturns without loading the model when the saved index already matches the bundle, and reportscurrentin JSON output. -
index --forcediscards the saved index and re-embeds every passage. -
index --detachreturns at once and indexes in the background only when the bundle changed. -
wayfinder setup --hooksrefreshes the index after Claude Code and Codex turns and after git pulls, checkouts and rebases.
0.0.2 #
wayfinder skills install|status|removeinstalls the bundled agent skills for Claude Code, through thewayfinderplugin when theclaudeCLI is available, and for~/.agents/skillsreaders such as Codex.wayfinder setupadds the Wayfinder MCP server to a project's.mcp.json.wayfinder updateupgrades installer-managed runtimes and refreshes skills and the plugin. Interactive commands mention a newer release at most daily.- Native bundles include the skill family.
0.0.1 #
Application moves from wayfinder to wayfinder_cli. The executable remains wayfinder, including MCP. Core validation comes from wayfinder; native installs no longer require okfp.
Changelog #
0.0.1-dev.1 #
- Use the
wayfinder_embeddingspackage for retrieval. - Preserve saved indexes across the library rename; write compatible schema markers.
- Support
WAYFINDER_EMBEDDING_MODELwhile retaining the legacy override. - Align package setup, native builds and documentation with Wayfinder naming.
0.0.1-dev.0 #
- Validates explicit local OKF bundles through the existing OKF Profile checks.
- Indexes and searches bundle passages using verified local embeddings and persistent ObjectBox storage, preserving original citations.
- Reuses compatible vectors and rejects stale or incompatible indexes.
- Serves validation, indexing, and search over MCP stdio.
- Keeps contextual Profile judgment explicitly unassessed by automated checks.
Indexing and search require separately prepared model weights and native libraries. The Dart package does not include the complete native runtime bundle.