daftari 3.10.0 → 3.12.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/CHANGELOG.md +59 -0
- package/README.md +211 -865
- package/dist/access/rbac.d.ts +2 -0
- package/dist/access/rbac.d.ts.map +1 -1
- package/dist/access/rbac.js +11 -0
- package/dist/access/rbac.js.map +1 -1
- package/dist/board/board.test.js +8 -7
- package/dist/board/board.test.js.map +1 -1
- package/dist/board/ledger.test.js +24 -23
- package/dist/board/ledger.test.js.map +1 -1
- package/dist/board/reconcile.test.js +79 -78
- package/dist/board/reconcile.test.js.map +1 -1
- package/dist/board/sources/lint.d.ts.map +1 -1
- package/dist/board/sources/lint.js +6 -2
- package/dist/board/sources/lint.js.map +1 -1
- package/dist/board/sources/lint.test.js +62 -21
- package/dist/board/sources/lint.test.js.map +1 -1
- package/dist/board/sources/staged.test.js +15 -14
- package/dist/board/sources/staged.test.js.map +1 -1
- package/dist/board/sources/staleness.test.js +43 -42
- package/dist/board/sources/staleness.test.js.map +1 -1
- package/dist/board/sources/tension.test.js +15 -14
- package/dist/board/sources/tension.test.js.map +1 -1
- package/dist/board/sources/tier2.test.js +16 -15
- package/dist/board/sources/tier2.test.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +6 -0
- package/dist/cli.js.map +1 -1
- package/dist/consolidate/index.d.ts.map +1 -1
- package/dist/consolidate/index.js +40 -9
- package/dist/consolidate/index.js.map +1 -1
- package/dist/curation/consumes.d.ts +8 -0
- package/dist/curation/consumes.d.ts.map +1 -1
- package/dist/curation/consumes.js +27 -0
- package/dist/curation/consumes.js.map +1 -1
- package/dist/curation/lint-voice.d.ts.map +1 -1
- package/dist/curation/lint-voice.js +3 -1
- package/dist/curation/lint-voice.js.map +1 -1
- package/dist/curation/lint.d.ts +4 -1
- package/dist/curation/lint.d.ts.map +1 -1
- package/dist/curation/lint.js +20 -2
- package/dist/curation/lint.js.map +1 -1
- package/dist/curation/source-refs.d.ts +42 -0
- package/dist/curation/source-refs.d.ts.map +1 -0
- package/dist/curation/source-refs.js +168 -0
- package/dist/curation/source-refs.js.map +1 -0
- package/dist/curation/tension-blast.d.ts.map +1 -1
- package/dist/curation/tension-blast.js +7 -6
- package/dist/curation/tension-blast.js.map +1 -1
- package/dist/curation/tier0.d.ts +0 -1
- package/dist/curation/tier0.d.ts.map +1 -1
- package/dist/curation/tier0.js +24 -23
- package/dist/curation/tier0.js.map +1 -1
- package/dist/curation/vault-docs.d.ts +3 -3
- package/dist/curation/vault-docs.d.ts.map +1 -1
- package/dist/curation/vault-docs.js +12 -5
- package/dist/curation/vault-docs.js.map +1 -1
- package/dist/distill/extract.d.ts.map +1 -1
- package/dist/distill/extract.js +8 -1
- package/dist/distill/extract.js.map +1 -1
- package/dist/distill/propose.d.ts.map +1 -1
- package/dist/distill/propose.js +2 -7
- package/dist/distill/propose.js.map +1 -1
- package/dist/distill/state.d.ts +9 -1
- package/dist/distill/state.d.ts.map +1 -1
- package/dist/distill/state.js +58 -7
- package/dist/distill/state.js.map +1 -1
- package/dist/eval/llm-openrouter.d.ts.map +1 -1
- package/dist/eval/llm-openrouter.js +5 -22
- package/dist/eval/llm-openrouter.js.map +1 -1
- package/dist/eval/subgraph.d.ts.map +1 -1
- package/dist/eval/subgraph.js +19 -15
- package/dist/eval/subgraph.js.map +1 -1
- package/dist/frontmatter/source-ref.d.ts +24 -0
- package/dist/frontmatter/source-ref.d.ts.map +1 -0
- package/dist/frontmatter/source-ref.js +20 -0
- package/dist/frontmatter/source-ref.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -14
- package/dist/index.js.map +1 -1
- package/dist/integrations/distill.d.ts +16 -0
- package/dist/integrations/distill.d.ts.map +1 -0
- package/dist/integrations/distill.js +164 -0
- package/dist/integrations/distill.js.map +1 -0
- package/dist/integrations/engine.d.ts +134 -0
- package/dist/integrations/engine.d.ts.map +1 -0
- package/dist/integrations/engine.js +571 -0
- package/dist/integrations/engine.js.map +1 -0
- package/dist/integrations/google.d.ts +13 -0
- package/dist/integrations/google.d.ts.map +1 -0
- package/dist/integrations/google.js +551 -0
- package/dist/integrations/google.js.map +1 -0
- package/dist/integrations/notion.d.ts +16 -0
- package/dist/integrations/notion.d.ts.map +1 -0
- package/dist/integrations/notion.js +485 -0
- package/dist/integrations/notion.js.map +1 -0
- package/dist/integrations/oauth.d.ts +14 -0
- package/dist/integrations/oauth.d.ts.map +1 -0
- package/dist/integrations/oauth.js +141 -0
- package/dist/integrations/oauth.js.map +1 -0
- package/dist/integrations/queue.d.ts +30 -0
- package/dist/integrations/queue.d.ts.map +1 -0
- package/dist/integrations/queue.js +255 -0
- package/dist/integrations/queue.js.map +1 -0
- package/dist/integrations/review.d.ts +5 -0
- package/dist/integrations/review.d.ts.map +1 -0
- package/dist/integrations/review.js +36 -0
- package/dist/integrations/review.js.map +1 -0
- package/dist/integrations/routes.d.ts +26 -0
- package/dist/integrations/routes.d.ts.map +1 -0
- package/dist/integrations/routes.js +258 -0
- package/dist/integrations/routes.js.map +1 -0
- package/dist/integrations/runtime.d.ts +33 -0
- package/dist/integrations/runtime.d.ts.map +1 -0
- package/dist/integrations/runtime.js +280 -0
- package/dist/integrations/runtime.js.map +1 -0
- package/dist/integrations/state.d.ts +10 -0
- package/dist/integrations/state.d.ts.map +1 -0
- package/dist/integrations/state.js +238 -0
- package/dist/integrations/state.js.map +1 -0
- package/dist/integrations/types.d.ts +45 -0
- package/dist/integrations/types.d.ts.map +1 -0
- package/dist/integrations/types.js +4 -0
- package/dist/integrations/types.js.map +1 -0
- package/dist/lifecycle/lock.d.ts.map +1 -1
- package/dist/lifecycle/lock.js +15 -1
- package/dist/lifecycle/lock.js.map +1 -1
- package/dist/schema/diff.d.ts +44 -0
- package/dist/schema/diff.d.ts.map +1 -0
- package/dist/schema/diff.js +143 -0
- package/dist/schema/diff.js.map +1 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +164 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/infer.d.ts +23 -0
- package/dist/schema/infer.d.ts.map +1 -0
- package/dist/schema/infer.js +167 -0
- package/dist/schema/infer.js.map +1 -0
- package/dist/schema/render.d.ts +12 -0
- package/dist/schema/render.d.ts.map +1 -0
- package/dist/schema/render.js +103 -0
- package/dist/schema/render.js.map +1 -0
- package/dist/schema/scan.d.ts +14 -0
- package/dist/schema/scan.d.ts.map +1 -0
- package/dist/schema/scan.js +92 -0
- package/dist/schema/scan.js.map +1 -0
- package/dist/search/coverage.d.ts.map +1 -1
- package/dist/search/coverage.js +5 -5
- package/dist/search/coverage.js.map +1 -1
- package/dist/search/graph-expansion.d.ts +55 -0
- package/dist/search/graph-expansion.d.ts.map +1 -0
- package/dist/search/graph-expansion.js +160 -0
- package/dist/search/graph-expansion.js.map +1 -0
- package/dist/search/hybrid.d.ts +4 -0
- package/dist/search/hybrid.d.ts.map +1 -1
- package/dist/search/hybrid.js.map +1 -1
- package/dist/serve/index.d.ts +5 -0
- package/dist/serve/index.d.ts.map +1 -1
- package/dist/serve/index.js +251 -20
- package/dist/serve/index.js.map +1 -1
- package/dist/serve/limits.d.ts +13 -0
- package/dist/serve/limits.d.ts.map +1 -1
- package/dist/serve/limits.js +36 -0
- package/dist/serve/limits.js.map +1 -1
- package/dist/sleep/cycle.d.ts +2 -0
- package/dist/sleep/cycle.d.ts.map +1 -1
- package/dist/sleep/cycle.js +95 -16
- package/dist/sleep/cycle.js.map +1 -1
- package/dist/sleep/index.d.ts.map +1 -1
- package/dist/sleep/index.js +8 -7
- package/dist/sleep/index.js.map +1 -1
- package/dist/sleep/report.d.ts.map +1 -1
- package/dist/sleep/report.js +16 -9
- package/dist/sleep/report.js.map +1 -1
- package/dist/sleep/run-ledger.d.ts.map +1 -1
- package/dist/sleep/run-ledger.js +1 -0
- package/dist/sleep/run-ledger.js.map +1 -1
- package/dist/test-utils/require-defined.d.ts +2 -0
- package/dist/test-utils/require-defined.d.ts.map +1 -0
- package/dist/test-utils/require-defined.js +7 -0
- package/dist/test-utils/require-defined.js.map +1 -0
- package/dist/test-utils/require-defined.test.d.ts +2 -0
- package/dist/test-utils/require-defined.test.d.ts.map +1 -0
- package/dist/test-utils/require-defined.test.js +13 -0
- package/dist/test-utils/require-defined.test.js.map +1 -0
- package/dist/tools/board.test.js +21 -17
- package/dist/tools/board.test.js.map +1 -1
- package/dist/tools/curation.d.ts +2 -0
- package/dist/tools/curation.d.ts.map +1 -1
- package/dist/tools/curation.js +32 -3
- package/dist/tools/curation.js.map +1 -1
- package/dist/tools/edge-staleness.d.ts +2 -0
- package/dist/tools/edge-staleness.d.ts.map +1 -1
- package/dist/tools/edge-staleness.js +46 -4
- package/dist/tools/edge-staleness.js.map +1 -1
- package/dist/tools/erase.d.ts +24 -0
- package/dist/tools/erase.d.ts.map +1 -1
- package/dist/tools/erase.js +125 -20
- package/dist/tools/erase.js.map +1 -1
- package/dist/tools/read.d.ts +2 -0
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/read.js +18 -0
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +31 -3
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +44 -4
- package/dist/tools/write.js.map +1 -1
- package/dist/utils/config.d.ts +17 -0
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +189 -4
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/git-erase.d.ts +2 -0
- package/dist/utils/git-erase.d.ts.map +1 -1
- package/dist/utils/git-erase.js +3 -0
- package/dist/utils/git-erase.js.map +1 -1
- package/dist/utils/git.d.ts +1 -0
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +28 -0
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/vault-gitignore.d.ts +1 -1
- package/dist/utils/vault-gitignore.d.ts.map +1 -1
- package/dist/utils/vault-gitignore.js +23 -3
- package/dist/utils/vault-gitignore.js.map +1 -1
- package/package.json +3 -2
- package/templates/config.yaml +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,65 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.12.0] - 2026-08-26
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Continuous Google Docs and Notion distillation** (#490) — a provider-neutral integration engine ingests external documents (Google Docs, Notion) into the distill pipeline on a refresh/webhook contract, with encrypted integration state, validated adapter capabilities, verified webhook result contracts, deduplicated unavailable-source events, and preserved review retries.
|
|
15
|
+
- **Containerized `daftari serve`** (#488) — a multi-stage Dockerfile (native modules built in-image, git for the auto-commit layer, default embedding model baked in for offline cold starts, non-root under `tini`) plus a `.dockerignore` and Azure Container Apps deployment guidance in `docs/deployment.md` (single pinned replica, Azure Files mount with `nobrl` for SQLite over SMB, secrets as env vars). Also fixes a container-specific process-lock footgun: a crash-orphaned lock naming the replacement process's own pid is now treated as stale rather than mistaken for a live holder.
|
|
16
|
+
- **Graph-augmented retrieval** (#453) — `vault_search` can expand results across the belief graph, surfacing documents connected to a hit rather than only lexical/vector matches. Opt-in and default-off, so existing retrieval behavior is unchanged unless enabled.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **Outcome-driven README** (#482) — the README is reworked into an outcome-driven front door that leads with what Daftari does for a reader before the mechanics.
|
|
21
|
+
- **Dependency bump** (#484) — the npm-minor-and-patch group is bumped with 5 updates.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **Robust model-JSON parsing** (#486) — `completeJson` in the OpenRouter eval path now parses model JSON robustly instead of failing on well-formed-but-unexpected shapes.
|
|
26
|
+
- **Load-sensitive test suite stabilized under concurrency** (#485, mpn.1) — teardown races and tight timeouts in the concurrency-sensitive suite are fixed, eliminating CI false-reds under load.
|
|
27
|
+
|
|
28
|
+
## [3.11.0] - 2026-08-23
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **Frontmatter schema inference and drift diff** (#478) — read-only `daftari schema infer` and `daftari schema diff` commands expose the vault's de facto frontmatter schema. `infer` reports every raw YAML key with occurrence/prevalence, observed types, capped distinct counts, bounded examples, and conservative enum-likeness; `diff` compares observations against built-ins plus `schema_extensions` and reports widely used undeclared fields, null-aware unused extensions, validator drift, and near-miss names. The undeclared-field gate defaults to 2 occurrences (`--min-occurrences` makes the threshold explicit); scope is required and canonical-path confined, symlink escapes and duplicate aliases are skipped as evidence, and hostile YAML/Markdown is converted to bounded safe output. README and adoption docs now put schema inspection before backfill. Fixes #299.
|
|
33
|
+
- **Typed repository-external source references** (#474) — `sources` gains explicit address-space semantics: `vault:` is strict root-relative and tier-0 enforced; `repo:` resolves against the configured `repo_root` with lexical and realpath containment and metadata-only verification; web/mail/distill/opaque references remain provenance rather than dependency edges. Missing, unconfigured, invalid, or escaping repo references surface under advisory `unverifiableSourceRefs`, and only real vault dependencies affect reverse graphs, write warnings, eval traversal, sleep wakeups, and ratification. Repo metadata verification is gated behind the opt-in `verify_repo_sources` role capability. Fixes #454.
|
|
34
|
+
- **Real sample-vault retrieval gate in CI** (#479) — every PR now runs 25 frozen, human-reviewable questions over the real sample vault through the shipped `vault_search` surface, under both pure lexical retrieval and the shipped default MiniLM fusion path. The fusion path is hermetic (35 committed MiniLM vectors replayed, no model load or network), with per-query ranks plus recall@5/recall@10/MRR/nDCG@10 goldens at tolerance 0; the gate fails on missing vectors, fallback, behaviorally inert fusion, lost provenance, or any changed rank/metric. Completes the CI remainder of #301.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- **Sleep-extensions evidence ledger** (#97) — closes the stale umbrella without
|
|
39
|
+
conflating two different loops: the production N=0/1/2/3 experiment kills the
|
|
40
|
+
proposed difficulty-adaptive repeated tension scan, while the separately
|
|
41
|
+
shipped `daftari consolidate` scheduler/panel loop keeps its own calibration
|
|
42
|
+
gates. The current architecture and CLI help now state the real safety
|
|
43
|
+
posture: LLM modes require an explicit `shadow_mode`; `true` journals without
|
|
44
|
+
applying edge writes, while `false` permits admitted consolidation writes.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
|
|
48
|
+
- **Board login autofill** (#463) — the `/board` sign-in form was a lone password input, so browser password managers skipped it (no save/autofill offer, forcing a retype each sign-in). It now pairs the password with a `username` field prefilled from the configured session user (`maps_to.user`), `autocomplete="username"`, `readonly` — the server ignores it, it exists only as an autofill anchor. Fully addresses Chrome; Safari still requires an `https` origin (a bare-IP `http://` origin is non-saveable by design).
|
|
49
|
+
- **Stale `vault_merge` snapshots rejected** (#470) — `vault_merge` composed its three-file write set before acquiring locks, so a concurrent update/create in that gap could be silently overwritten. Each canonical source/target input is now snapshotted and revalidated while holding the complete sorted lock set; any drift rejects the whole operation as `stale merge` before the first write. Closes #469.
|
|
50
|
+
- **Dangling qualified refs no longer retarget by basename** (#471) — a qualified reference that no longer resolves stays dangling instead of inheriting a surviving document that shares its basename; basename fallback is restricted to genuinely bare references and duplicate basenames are treated as ambiguous. Applies through the shared resolver used by lint, blast/backlinks, sleep wake, view rendering, and write advisories. Closes #417.
|
|
51
|
+
- **Historical erasure gated on an acknowledged dependents plan** (#472) — when a live erase target has downstream dependents, the operator must acknowledge the exact current pre-scrub plan (`vaultErasePlan` returns targets, dependents, a coarsened hidden remainder, HEAD, and a deterministic `plan_hash`) before the irreversible rewrite; the plan is recomputed at the last reversible point and any target/graph/permission/HEAD drift aborts. Zero-blast compatibility is preserved; neither `vault_erase` nor its planner is MCP/CLI-registered.
|
|
52
|
+
- **Vanished consolidate endpoints stop retrying** (#473) — a due edge with a vanished endpoint is now a terminal `missing_endpoint` advisory for that consolidate cycle rather than executable revision work; skipped pairs consume no queue budget and cannot create a false unserved-backstop exit. The edge store is untouched (no auto-revoke, contest, panel, or LLM call); valid pairs including directed cycles retain the existing revision path.
|
|
53
|
+
- **Distill sources labeled born-unverifiable** (#475) — `distill:<source-id>#<claim-key>` surfaces as structured born-unverifiable provenance on local and federated `vault_read` with its re-derivation contract, and `vault_lint` and board findings carry the same advisory label even without repo metadata verification. `PRIVACY.md` now states that raw distill input transits Anthropic or OpenRouter and distinguishes Daftari retention from provider retention. Fixes #422.
|
|
54
|
+
- **Compiled-edge coverage gaps surfaced** (#476) — `vault_staleness` report mode carries a separate `compiled_edge_coverage` summary (no-data/partial/complete), so removing the gitignored consumes log flips an instrumented vault to no-data rather than resembling an all-current graph; `vault_lint` exposes the same monitor. Access-controlled counts stay scoped to caller-readable documents and the monitor names no paths. Fixes #420.
|
|
55
|
+
- **Vanished-source wake coverage** (#477) — the circadian sweep now wakes fresh canonical accumulation dependents when an explicit vault source or current compiled unit disappears, and recovery evidence distinguishes a path last seen in Git (with the exact containing commit, recoverable via asof) from one absent from history or unavailable history. The Morning Report renders each wake trigger instead of framing every task as TTL decay; legacy/external references stay opaque and the pass remains advisory. Fixes #421.
|
|
56
|
+
- **Distill proposal staging** (#466) — `assembleBody` no longer prepends a frontmatter fence into the proposal body (which `vault_write` re-added at ratify time, doubling frontmatter on every landed distill draft), and `titleOf` truncates at a word boundary with no ellipsis instead of mid-word at 80 characters.
|
|
57
|
+
- **Test-suite lint cleanup** (#465, #430) — replaced 279 non-null assertions across 16 test files with a runtime-checked `requireDefined` guard and cleared the attestation-template lint infos; no production behavior change.
|
|
58
|
+
|
|
59
|
+
## [3.10.0] - 2026-08-19
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- **Instrument-panel view redesign** (#460) — the `daftari view` / `daftari serve` web surface moves to a single dark instrument-panel system, decided on a design canvas after exploring a refined kanban, a triage queue, and a ledger table against the shipped board: flat, square, hairline rules, mono-dominant chrome, with the epistemic colors as the only color on screen (green = strong, amber = caution, orange = weak/hazard, rose accent = contested — the keystone signal keeps its own channel). The vault board's five kanban columns become a disposition stat strip over one dense findings table grouped by source: disposition is a cell, not a place. Rows carry the certainty word plus tone mark, back-links, evidence, waiting rationale/expiry, an N/A/W/R/D state indicator, and the accept/defer/dismiss/resolve controls unchanged (`data-id`/`data-board-action`/CSRF wiring byte-identical). The table iterates the canonical `FINDING_SOURCES`, so a future source adapter cannot be counted but silently unrendered; the age column derives from an injected clock, keeping the renderer pure; narrow viewports stack rows into cards. `/doc`, `/graph`, the index, dashboard, and `/board/login` all adopt the palette; the graph client and legend resolve colors from the CSS tokens so the palette lives in one place.
|
|
64
|
+
|
|
65
|
+
### Fixed
|
|
66
|
+
|
|
67
|
+
- **`manifest.json` version drift** (#461) — the `.mcpb` manifest was still at 3.7.0, having drifted through the 3.8.0 and 3.9.0 releases; it now tracks the package version again.
|
|
68
|
+
|
|
10
69
|
## [3.9.0] - 2026-08-19
|
|
11
70
|
|
|
12
71
|
### Added
|