mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 12:07:28 +01:00
feat/parallel-implement
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e0b321212d |
chore(fixtures): HamsterCheek -> Zeitkastli, drop concealment wording (#731)
bitbaum/hamstercheek was renamed to bitbaum/zeitkastli because its framing read as a tool for concealing assets. This repo is public and carried the same wording in test fixtures and code comments: "A box you hide outside." "HamsterCheek is a weatherproof box for valuables." "HamsterCheek allows people to hide physical items in various locations." "a hiding box" Fixture text only — no behaviour changes. Each replacement preserves what its test was actually checking: - "a hiding box" -> "a time capsule" still clears the 10-char brief floor - the one-sentence brief is still under KICKOFF_THIN_DESCRIPTION, so it is still flagged as thin - the hero-note fixture is still under 80 chars, so it still passes through publicHeroNote unchanged - site-cd.ts used "Hamster Cheek" to test slugifying a TWO-WORD display name; "Time Capsule" -> "time-capsule" keeps that exact property The comment on KICKOFF_THIN_DESCRIPTION records that the project was called HamsterCheek when the incident it describes happened, so renaming the fixtures does not quietly falsify the history they document. Verified: 181/181 unit test files pass, tsc --noEmit clean, prettier clean. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
95c40a9cd8 |
refactor: rename the product from FleetCrown to Loki (#695)
The product, its assistant, the repo, the host and every unit on the box now share one name. 638 files, ~3,000 mentions: UI copy, config, env keys (FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs, articles, the deploy workflow other repos reuse, and nine file names. - Three article slugs carried the old name and had been shared; permanent redirects keep those links alive (next.config.ts). - test-no-retired-name.sh now also forbids the old product name across the whole repo, so the rename cannot creep back through templates and examples. - ASSISTANT_STACK collapses the product and the assistant into one entry, because they are now the same name. Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki` database and role, loki.orangecat.ch (old host 308s to it; /api, /widget, /embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases. The Resend sending domain stays fleetcrown.orangecat.ch until the new domain is verified in DNS. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
caa0e41c3b |
chore: add a formatter (#449)
* chore: add a formatter, matching the style this repo already writes singleQuote=false was chosen by counting this repo's own imports, not by fleet decree. The fleet is genuinely split and the two repos that already had a .prettierrc disagreed with each other, so there was no standard to restore. Quote style does not cross repo boundaries; having a gate does. Markdown is ignored for now — prettier rewraps prose, which would bury the real diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format with prettier (1062 files) Mechanical. No behaviour change. This SHA is listed in .git-blame-ignore-revs so `git blame` skips it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: teach git blame to skip the reformat Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(lint): reattach two guards the reformat detached Both effects were one-liners, so a trailing eslint-disable-line covered the setState call: useEffect(() => { setSelected(new Set()); }, [q.length]); // eslint-disable-line ... prettier expanded the block. The comment stayed on the closing line while the call moved above it, so the guard protected nothing and the rule its author had deliberately silenced failed the build. This is the second shape of the same defect — hirnli had the eslint-disable-NEXT-line variant. Both come from the same fact: an eslint directive binds to a line number, so reformatting can silently unbind it, which makes 'mechanical, no behaviour change' false for any bulk reformat. * chore(desktop): bump the runner version the reformat requires desktop-release-drift enforces that anything built into Fleet Runner which differs from the last released tag must carry a version ahead of that tag — main read 0.8.15 and fleet-runner-v0.8.15 already shipped. A whole-repo reformat changes bytes under desktop/, so the gate fires. The alternative was adding desktop/ to .prettierignore, which would buy a quiet PR by carving a permanent hole in the formatter's coverage — the precise shape of silent drift this test was written to catch. Bumping is what the rule asks for and costs one patch release whose only content is whitespace. * chore: merge main and re-format A whole-repo reformat conflicts with any concurrent commit, and a conflicting PR runs no checks at all while reporting nothing. Conflicts resolved to main, which is correct because this branch changes formatting and nothing else. * chore: leave desktop/ out of this reformat desktop-release-drift is right to refuse this. Everything under desktop/ is built into Fleet Runner, so changing it means shipping: bump the version AND add a FLEET_RUNNER_RELEASES entry, whose stated audience is 'person who installed Fleet Runner and wants to know what changed'. For a whitespace-only build the honest answer is 'nothing', so that release should not exist — and I should not write release notes claiming otherwise. I had bumped to 0.8.16 to get the gate green. That was the wrong direction: publishing a build to three OS runners to keep a formatting PR quiet. Reverted. desktop/ is excluded in .prettierignore with the reasoning recorded there, to be formatted alongside the next real runner change, where the bump and the notes are true anyway. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
848172b610 |
fix(control): unbroken run-outcome chips, no leaked template text, a Next best that looks like one (#326)
* fix(mobile): honest dispatch status everywhere, and fewer things to scroll past to get there
Three audits (stats/fake numbers, dispatch follow-through, per-screen noise)
against the mobile-visible surface. Findings and fixes:
Dispatch honesty — "did it actually do anything?" had four silent gaps:
- RunModal "Send to terminal" and TerminalComposer's Send both discarded the
tab-inject response body and showed a static "Sent"/"Sent ✓" whether the
prompt ran immediately or queued behind an offline builder — and neither
checked res.ok, so a 401/500 also showed as success. Both now read mode/
commandId/runId/blocked and poll the real lifecycle via a new shared
useDispatchLiveStatus hook (extracted from Loki's proven DispatchFooter).
- The `blocked: true` case (runner detected you typing in that exact session,
silently no-op'd) was invisible; both surfaces now say so.
- Control's per-project dispatch banner had no way to go watch the work —
only a dismiss (X). Added a Watch link to /terminal for that project.
- Loki's fan-out dispatch ("develop these 3 projects") badge always showed
generic green "Dispatched" regardless of how many actually started; it now
reads deriveMultiDispatchView from the real per-project attempts, and the
Control/Terminal link points at a project that actually started rather
than whichever was selected first.
Nonsensical numbers — the stats audit found this codebase mostly clean (prior
passes already fixed this class of bug), with one real miss: FleetBriefCard's
"Tokens" tile was `count(*) FROM agent_tokens` — the number of auth
credentials registered for connecting a machine, not LLM usage — sitting next
to "Runs (week)" where it reads as API spend. Removed. StuckGoalsCard's
"30+ days idle" was a literal string coincidentally matching
STALE_GOALS_DAYS; now interpolated so the two can't drift apart.
Noise and hierarchy:
- /today: ActionQueueCard (the only card with real Approve/Decline buttons)
sat 7th, below two read-only recap cards, contradicting the page's own
"Actionable first" comment. Reordered to match it.
- /money: a company-level integration banner (OrangeCat wallet address,
internal stakeholder wiring) rendered unconditionally above the actual
subscription list — for every signed-in tenant on this multi-user SaaS,
not just the founder. Gated to founder-only (same isDefault check
RevenueCard already uses for platform MRR) and moved below the fold.
- StatRow (shared by Goals/Money/Habits/Memory) was a cramped 3-up grid even
on a 320px phone; now 2-up below sm.
- Control's ProjectCard defaulted to 8-10 visible tap targets before any
scrolling. The three always-visible secondary intent chips (Test & fix /
Quality / Commit) now join MORE_INTENTS behind the existing "More"
disclosure on mobile — unchanged at sm and up.
New coverage in scripts/test/dispatch-status.ts and the existing project-
mention/terminal-viewport suites; 91/91 unit test files pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019imtHmWBrC94hVK1EMTpzi
* fix(control): unbroken run-outcome chips, no leaked template text, a Next best that looks like one
Quality-control pass against the live Control page on mobile after PR #325,
prompted by screenshots of "~" and "✗" floating unstyled next to a project's
status pill, and "Suggested next (profile): Keep projects/<name>.md accu…"
shown as if it were a real next step.
- OutcomeStreak (the 5-glyph recent-run-outcomes row) applied ui-tag-warning/
-negative without the base .ui-tag class that supplies border-width, radius
and padding — every other consumer of the same outcome data
(ProjectDossierSections, project-card-helpers) pairs them correctly. Without
it, border-color was a no-op and the glyphs rendered as bare colored
characters: indistinguishable from a text-rendering glitch, not a
deliberate status widget.
- answer() — the SSOT gating every profile attribute shown to a user or fed
into an agent prompt — now rejects an unsubstituted <word> template
placeholder, not just the existing exact-match "Unknown"/"N/A" set. The
enrichment model occasionally leaks its own prompt template verbatim into a
field; that's dead text same as "Unknown" and belongs in the same net. The
guard needs a non-word character before "<" so it doesn't fire on genuine
generic-type syntax like `List<T>`.
- Three icon-only buttons in the project card header (project details,
external URL, run-setup toggle) had a title but no aria-label — title
tooltips don't fire on touch, so a mobile user's only way to learn what
they do was tapping blind. The other two buttons in the same row already
had aria-label; now all five agree.
- ui-btn-nextbest ("Next best" — the single dispatch-immediately CTA and the
reason Control exists) was a bespoke 10%-opacity tint, the same visual
weight as a read-only chip, competing for attention with a dozen other
elements on the mobile view. It's the only consumer of that treatment.
Now solid, matching .ui-btn-primary's actual full-strength accent-warm
color used everywhere else in the app for exactly this purpose.
Verified: tsc, lint, check:design, and test:unit (91/91, including new
project-display.ts cases for the placeholder guard and its List<T> false-
positive guard) all pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019imtHmWBrC94hVK1EMTpzi
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
5e31824594 |
fix(design): stop leaking internal notes on the public hero (#209)
The live homepage rendered full project descriptions, including dogfood dumps and a known-bug writeup. Hero notes are now one public-safe line, test artifacts stay off the landing, and the page drops the essay below the four surfaces a first visitor needs. Pre-commit tsc is already red on origin/main (missing @noble/secp256k1 in solon-message.ts) — unrelated to this change. eslint + project-display unit test pass. Co-authored-by: test <test@test> |