Make the live CLI find its claim and its projects: check diffs from the claim's base, and the D1 front page lists every project it has heard from
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Found in 499's live run on dev-oscabriel, each fixed test-first: - `<cli> check` defaulted `--base` to `main`, so in a clone whose main holds the answer (how a contributor, and the zero-install flow, works) `main...HEAD` was empty: check said ok while the push was refused OutOfScope (405 #8). Online, with a live claim, the default is now the claim's base, which is exactly what the gateway diffs a claim fork's push from (`recordPush`'s `claim.base`); a claim made at a commit this repo lacks says so on stderr and falls back to main; offline it stays main; `--base` still wins. check.test.ts: "diffs from the claim's base, as the gateway does, even when the answer is committed on main" (red by assertion: it exited 0). - `FrontPageD1.projects()` read nothing until W5 514's tables, so live `projects` listed nothing and `status`/`today` without `--project` fanned out over no project and showed no claims (404 #10). Until 514 replaces it, it lists every project the projection has applied events of (its `cursor` rows), with its open asks, posture `open` and no landing time; credits still read nothing. projection-d1.test.ts's "reads no projects" case became "lists every project it has heard from, with its open asks" (red by assertion: []). - ASSUMPTION: a project shows up once its first projected event (an ask opened) reached D1; a project with no ask yet is not listed, which changes nothing a call without a project could reach.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+171 added−17 removed
- tests:+94 added−7 removed
- other:+77 added−10 removed