@endgame-build/khub 0.32.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,10 +19,10 @@ Built on top of the [Open Knowledge Format (OKF)](https://github.com/GoogleCloud
19
19
  ## What it does today
20
20
 
21
21
  - **Author** — `add` / `get ID...` / `edit` / `link` / `unlink` / `remove`: schema-validated writes, referential integrity hard-fails, capture never blocked, minimal-diff round-trips. One `get` returns one record; multiple IDs return an all-or-nothing array in argument order. A templated type's `add` seeds the body from its template (`--no-template` opts out).
22
- - **Find** — `query` (frontmatter + edge filters), `search` (BM25 full-text over titles, bodies, and fields: FTS5, built in-memory per call, never stale), `neighbors` / `impact` / `history` (graph walks).
23
- - **Gate** — `validate` (per-entity well-formedness, including body structure against the type's template: required section headings as an ordered subsequence; per-section rules report as `gaps`, which never gate) and `check` (graph-wide completeness, dangling edges, strays, cycles, missing required singletons, body shape; orphans informational unless `--strict`, thin bodies informational as `thin`); `stale` reads git at entity altitude, row-accurate even inside collections.
22
+ - **Find** — `query` (frontmatter + edge filters), `search` (BM25 full-text over titles, bodies, and fields: FTS5, built in-memory per call, never stale), `neighbors` / `impact` / `history` (graph walks), `recent` (what was touched lately, newest first, dated like `stale`).
23
+ - **Gate** — `validate` (per-entity well-formedness, including body structure against the type's template: required section headings as an ordered subsequence; per-section rules report as `gaps`, which never gate) and `check` (graph-wide over the published subgraph — completeness, connectivity, placement, body shape; [every finding and which ones fail the gate](docs/cli.md#reading-check-output)); `stale` reads git at entity altitude, row-accurate even inside collections.
24
24
  - **Project** — `reindex` (OKF `index.md`), `export --okf` (an OKF 0.2 bundle another tool can read), `import --okf` (a bundle read in as drafts), `viz` (Cytoscape HTML), `backfill` (git-derived dates and scaffolding).
25
- - **Store** — per-type `layout` (file / folder / collection / singleton) × `format` (md / json / yaml; collections take json / jsonl / yaml). A singleton is one fixed file whose slug is the type name (`khub get prd`). Non-md entities carry prose in a reserved `body` field. Every existing-workspace mutation holds one workspace-wide lock from scan through publication; atomic writes preserve existing permissions and refuse workspace storage symlinks.
25
+ - **Store** — per-type `layout` (file / folder / collection / singleton) × `format` (md / json / yaml; collections take json / jsonl / yaml). A singleton is one fixed file whose slug is the type name (`khub get prd`). Non-md entities carry prose in a reserved `body` field. Declaring storage: [`docs/schema.md`](docs/schema.md#storage-config-storageyaml). Every existing-workspace mutation holds one workspace-wide lock from scan through publication; atomic writes preserve existing permissions and refuse workspace storage symlinks.
26
26
  - **Scaffold** — presets are directories (`<name>/{ontology,policy,storage}.yaml` + `templates/*.yaml`); `khub init` copies them into `.khub/` and creates every missing md singleton from its template (creations only — an existing file is never touched); `khub upgrade --dry-run` preflights the complete candidate and tails without workspace artifacts. A real upgrade publishes schema, templates and scaffolds transactionally, preserves edited files as `<name>.bak`, writes the version last, then refreshes wiring and `index.md` as non-fatal tails.
27
27
  - **Wire** — `wire`: link the schema into a project's agent files. Bare `wire` updates whichever of `CLAUDE.md` / `AGENTS.md` exist; `--target claude|agents|both` creates one. `CLAUDE.md` gets `@.khub/ontology.yaml` (+ policy/storage) imports, `AGENTS.md` a schema pointer, both with the command surface — so an agent reasons in the ontology with or without the CLI.
28
28
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@endgame-build/khub",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Schema-bound, agent-facing context management. A single static binary; this package carries one per supported platform and launches the matching one.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ENDGAME",