bin/lib/be.js + wtlog.js — repo discovery + wtlog reader
The SDK foundation: locate a .be store/worktree and read the wtlog ULOG. Part of JS-027. Method: Issues.
.be discovery is awalk up from cwd (like require's resolve); the wtlog is a ULOG (anchor row 0, get/post/patch/put/del rows, ts stamp-set). JABC has a ULOG codec already.
be.js: .be discovery walk → {root, wt, storePath, project}; respect HOME.wtlog.js: open the wtlog ULOG → cur tip (?branch#sha), baseline tip, pd/patch
boundaries, has(ts) stamp-set test, iterate put/del rows since a floor.
abc ONLY (ULOG + io). Sequential ULOG drain; if has(ts) random accessis too slow, note a libdog ULOG-index leaf for JS-034 — never link a dog.
has(ts) v1 = build a ron60→idx abc.index from the drained rows (pure JS).bin/refs.js: print cur branch + baseline sha for the live repo.test/bin/): assert cur/baseline match be status's header on a
toy repo. Test with a stable jabc (no rebuild needed for this ticket).