Commit graph

5 commits

Author SHA1 Message Date
sknr
651bd04ec7
feat(core): decouple MCP server and hub sync, add query filters and staleness engine
- Move MCP server implementation and tool schemas from cmd/okf into pkg/okf
- Move hub vault operations and lifecycle management from cmd/okf into pkg/sync
- Implement generic frontmatter --filter AST evaluation in pkg/okf/filter.go
- Implement --stale-within temporal horizon staleness engine in pkg/okf
- Introduce okf.SaveOptions and HubOp structures for clean API ergonomics
2026-09-25 12:53:43 +02:00
sknr
c8eaa2b226
feat(sync): add optimistic retry loop and append-only log auto-merge
- Wrap Engine.Sync reconcile and commit phases in a retry loop (DefaultMaxSyncRetries = 5) with exponential backoff and jitter on concurrent 409 head conflicts
- Implement MergeLogContent to automatically union divergent entries in log.md by ISO date heading while preserving ordering and deduplicating
- Prevent spurious collision forking for log.md during parallel agent sync cycles
2026-09-17 16:11:09 +02:00
sknr
6a243451e1 fix(security): add nosec annotations and harden http server timeouts in hub and sync engine 2026-09-15 14:47:07 +02:00
sknr
4493be7531 fix(lint): fix make lint fallback logic and resolve errcheck issues 2026-09-14 15:38:07 +02:00
sknr
79cf3b0395 feat(sync): implement CAS client, embedded server, reconcile engine, and okf hub CLI 2026-09-14 15:27:29 +02:00