Commit graph

20 commits

Author SHA1 Message Date
bbb052fdc7 ANW-40 Watcher: emit both deletes for a vanished .md path
A directory can be named *.md too, and a vanished path cannot be probed,
so the suffix test alone stranded its notes in the index. Emit the note
delete and the prefix delete together; the two key sets are disjoint.
2026-07-24 21:32:51 +03:00
275c6ecfa0 ANW-36 Watcher: drop index entries when note files are deleted 2026-07-24 21:19:13 +03:00
23ce90e103 ANW-37 Telemetry: request metrics + selective traces over OTLP
Optional OTLP export of request-level metrics (request and response-byte
counters keyed by route/status/conditional-GET, a duration histogram out
to 600s) plus server spans for slow or 5xx requests, nested under the
incoming W3C trace context. Off unless an OTLP endpoint or uptrace DSN is
configured; a config-less server is byte-for-byte unchanged.
2026-07-24 21:08:07 +03:00
ed1759da59 ANW-27 CLI: anwesen merge -- one-shot local markdown-merge to stdout
Thin local front-end over ANW-26's merge engine (query::execute_merge):
walk the vault once (vault::scan, same as doctor), evaluate the --query
string, assemble the merged document, write it to stdout. No HTTP, no
watcher, no index. Byte-identical to the HTTP merge mode for the same
vault and query.
2026-06-14 21:24:19 +03:00
03cc12e640 ANW-26 HTTP /query markdown-merge mode
Accept: text/markdown on /query concatenates matched note bodies into one
markdown document, each fragment preceded by an HTML-comment source marker.
Adds __anw-order (frontmatter-key ordering, asc/desc, missing-key-last) and
__anw-kind (homogeneity guard, 400 on a mixed merge). Both evaluate over the
full matched set before __anw-limit truncates. Merge mode uses its own
body-cloning projection; the JSON path is unchanged (no body clone).
2026-06-14 18:35:20 +03:00
44d6bb995e ANW-25 process_wrap axum middleware for request isolation 2026-05-14 19:33:41 +02:00
05013df061 ANW-24 http_server as a plain process with graceful shutdown 2026-05-14 19:28:51 +02:00
ec650e6c66 ANW-23 remove tantivy from v1; NoteStore is the only authoritative store 2026-05-14 18:58:39 +02:00
30c42131b7 ANW-9 doctor frontmatter type-drift detection 2026-05-14 18:47:44 +02:00
e7eea4b3aa ANW-18 doctor base checks + FrontmatterNotMapping variant 2026-05-14 18:29:49 +02:00
1e4d2a7b7c ANW-8 /health endpoint + ANW-15 local follow-ups 2026-05-14 16:31:13 +02:00
b045efd1f0 ANW-15 /query endpoint + restart-replay pin + UTC canonicalization 2026-05-14 16:17:26 +02:00
da2dfbbd6d ANW-14 GET /notes/<folder>/ directory listing 2026-05-14 16:03:45 +02:00
e1fe1dcb4e ANW-13 GET /notes/<path>: NoteStore + axum HttpServer wiring 2026-05-14 15:47:00 +02:00
095ea7fbf0 ANW-16 filesystem watcher: notify, debouncer, overflow recovery + batched commits 2026-05-14 15:34:17 +02:00
cd337202ee ANW-12 tantivy index: schema, upsert, rebuild on startup, scanner->writer wire 2026-05-14 15:06:41 +02:00
929e498f66 ANW-17 wire hydra supervisor tree with four permanent processes 2026-05-14 14:51:28 +02:00
49fc34f8d7 ANW-11 vault scanner: walk, parse frontmatter, compute ETag 2026-05-14 14:42:28 +02:00
36492c8058 ANW-10 address review: drop ANWESEN_LOG, validate --bind at parse 2026-05-14 14:35:44 +02:00
317667cce7 ANW-10 bootstrap anwesen crate and CLI skeleton 2026-05-14 14:28:11 +02:00