Wire real OpenCode selectors and URLs from captured pages

Go page (/workspace/{id}/go): parse three [data-slot=usage-item] frames
(Rolling/Weekly/Monthly) into usage percentages + computed resets_at from the
relative reset-duration text. Zen page (/workspace/{id}): parse
[data-slot=balance] b into remaining + currency unit. Add an offline unit test
against tmp/ captures. Fix pretty renderer (percent display, money format,
day-aware relative times). Update DESIGN.md, README, examples and config
template to the real wrk_ workspace ids.
This commit is contained in:
ocd committed 2026-07-30 01:16:36 +03:00
1 parent 3b1d2a4389
commit 41f35aec34
10 files changed
+257 -104

No files matched your search

+2 -2
View File
@@ -6,10 +6,10 @@ default_ttl_secs = 180
[[account]]
name = "work"
cookie = "${OCD_COOKIE_WORK}"
default_workspace = "ws_REPLACE_ME"
default_workspace = "wrk_REPLACE_ME"
extra_workspaces = []
[[account]]
name = "personal"
cookie = "ocd_session=...."
default_workspace = "ws_REPLACE_ME"
default_workspace = "wrk_REPLACE_ME"