Repository navigation
okf-parser 0.45.8
okf-parser 0.45.8
-
schemaexports a type whoseConceptSpecificationalready has a sibling.schema.sqleven when the bundle has not produced its first concrete document of that type yet. -
Discovery reads the authored
concept_typefrom the specification, preserving type identity instead of reverse-engineering it from filesystem slugs. -
JSON Schema, Zod and Pydantic therefore support contract-first workflows such as agent run scaffolds and future event types.
-
Fix the manual release entrypoint: validate an explicit semantic version against
main, create or safely reuse the matching immutablevX.Y.Ztag at the currentmainSHA, and explicitly dispatch the existing release workflow on that tag. This keeps manual publication behind the same build, manifest, PyPI, public smoke-test, and GitHub Release gates as tag-driven releases. -
Reduce cold-load allocation in the Rust semantic engine by consuming loaded concept documents by value and borrowing canonical LF-only source through
Cow<str>instead of always cloning/normalizing full source strings. Preserve byte-for-byte semantic parity and same-host benchmark evidence showing a modest 3–8% end-to-end improvement that grows with bytes per document. -
Add a semantics-preserving fast path for the canonical simple frontmatter order (
type,title,description, then lexical remaining keys), while falling back to the existing YAML parser for complex or out-of-order YAML. Align Python and TypeScript canonical writers and preserve same-host benchmark evidence showing roughly 18–21% lower end-to-end load latency on the measured simple-frontmatter corpus. -
Add
OKFRepresentation,OKFDocument, the structuralSupportsOKF/__okf__protocol,to_okf()conversion, anddumps()canonical rendering. -
Infer the required OKF
typefrom a producer class by default while allowing valid metadata or caller overrides; require an explicit type for bare mappings rather than emittingtype: dict. -
Support JSON-like mappings directly and mapping-shaped Pydantic models through
model_dump(mode="json"); root/scalar Pydantic models opt in explicitly with__okf__()instead of being wrapped in an invented metadata field. -
Resolve an explicit
__okf__hook once and invoke it once; reject non-callable explicit hooks rather than silently falling back to another projection. -
Normalize JSON scalars into OKF's spelling-preserving scalar domain while keeping YAML syntax, canonical physical ordering, and authored-document edit preservation inside
okf-parser. -
Allow
release/vX.Y.Zbranch pushes to enter the existing guarded release dispatcher when the branch SHA is exactly the currentmain; version validation, immutable tag creation/reuse, and delegation topublish.ymlremain unchanged. This gives automation that can create Git refs a fail-closed path to initiate the official release without adding a second publisher. -
Prefer DuckDB FTS/BM25 for lexical search only when the
ftsextension is already installed and locally loadable. -
Disable DuckDB known-extension autoinstall and autoload before extension discovery, never issue
INSTALL, and fall back tobuiltin_lexical_v1on any local FTS failure. -
Build the FTS table and index only in an in-memory DuckDB connection for the current search invocation; no persistent sidecar or canonical Markdown state is changed.
-
Add RFC 0014 and a measured SQLite physical-materialization target derived from canonical relations for exact identity lookup and immediate adjacency. DuckDB remains the relational/transformation baseline; SQLite is private, disposable derived state with parity tests and explicit build/break-even measurements rather than a new public backend semantic.