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>
* 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>
The feedback widget is a complete product now; give it the product surface:
- /releases (+/changelog): new PLATFORM_CHANGELOG SSOT in config/changelog.ts
with a dated milestone entry; page retitled to cover platform + runner
- /docs/feedback-widget: full guide (enable, install via agent, remote
control, report→fix pipeline, security model) + card on /docs
- Landing PRODUCT_SURFACES: Feedback card ('Your visitors file the work')
plus Terminal card so the 2-col grid stays balanced — both real surfaces
- Thoughts essay 'The Visitor Is Part of the Fleet Now': the shipped loop
with four real prod screenshots (widget open on the live customer site,
the inbox holding real AI-reviewer findings, the setup card with
install/remove/pause controls, the Control fleet strip) and a token-themed
pipeline SVG; the contrast story it tells is the one that actually ran
- .gitignore: whitelist public/thoughts/*.png (essay screenshot assets)
Co-authored-by: test <test@test>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Mermaid fails to load on the prod standalone build (import("mermaid") never
fetches a chunk — every essay's diagram is an empty box), so use the renderer's
inline-SVG path instead: zero client JS, reads design tokens (theme-aware),
accent (#f97316) marks the two durable layers. Immune to the mermaid defect,
which is tracked separately.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The build↔find initiative captured as an essay: markets index supply and let
demand evaporate in a search box — a bias toward those who already have, living
in one hardcoded list. Grounded in the shipped work (indexing wishlists+projects,
two-sided introduction, Loki economy search, the flywheel), honest that the
economy is nascent (infra proven, not yet busy). Three theme-aware token-driven
SVG diagrams: the asymmetry, pull→push, the flywheel. Distinct from the
complement essay — this is the FIND thesis specifically.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Two objective fixes from the design audit:
- Thoughts SVG diagrams now inline into the DOM (readLocalSvg + the image
block renderer) and use design tokens (var(--surface-*/text-*/status-*))
instead of hardcoded hex — so they're SSOT-clean and flip with the theme
(verified in both light and dark). Removes the one real hardcoded-color
gap the audit found (which I'd introduced with the diagrams).
- Global prefers-reduced-motion catch-all in globals.css: the 5 remaining
infinite pulses/waves (fleet-live-pulse, ui-voice-pulse/-wave,
ui-palette-mic-pulse, sidebar-tooltip-in) now stop for users who ask the
OS to reduce motion.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Three hand-crafted diagrams for 'Each Built the Other's Missing Half',
matching the design tokens (near-black surface, muted borders, restrained
green/red/amber): the two missing halves with opposing fill-the-gap arrows,
the tag→settlement→grant pattern mirrored both ways, and the mutual-anchor
image (each self-scoring loop grounded by the other's ground-truth fact).
Renderer: image blocks whose src ends in .svg render at natural aspect,
uncropped, and bypass the optimizer (which can't resize SVG) — photos keep
the 16:9 cover crop. Benefits every future essay that wants diagrams.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
One source for the brand mark (src/config/brand-mark.ts): a dense Archimedean
spiral that pulls into the center. `npm run generate:brand` renders every asset
from it — favicon, apple icon, 1024px app icon, the monochrome tray glyph, and
the OG marks — replacing the divergent hand-drawn copies and the wrong
"control-window" tray glyph. The desktop step now verifies committed icons
instead of redrawing them.
Also: switch typography to Geist + Geist Mono (the x.ai/grok grotesk) via the
--font-* token SSOT, default the theme to dark (Settings toggle still
overrides), and give the in-app mark a slow rotation + soft glow
(reduced-motion safe).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The window-open handler only whitelisted github.com, so X (x.com/
twitter.com) and Google (accounts.google.com) authorize pages fell
through to shell.openExternal and escaped to the system browser. The
pkce/state cookie set at /api/auth/signin/<provider> then never reached
/api/auth/callback/<provider> (different cookie jar), and sign-in died
with "pkceCodeVerifier value could not be parsed" — exactly the X
login failure seen on desktop.
Whitelist every configured OAuth provider host (subdomains included) so
the full signin → authorize → callback round-trip stays in one window.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Thorough cleanup after a full investigation of "so many things are wrong".
DEPLOYMENT — the "This deployment is temporarily paused" ghost. The canonical
host already moved to fleetcrown.orangecat.ch (Hetzner); the message came from
leftover references to the paused fleetcrown.vercel.app deployment:
- vercel.json: drop the `alias: ["fleetcrown.vercel.app"]` (the paused domain).
- scripts/fleet: install-cli POSTs to fleetcrown.orangecat.ch, not the dead URL.
- package.json: `ship` just pushes (the pre-push hook deploys to Hetzner);
replace `wait:vercel` with `deploy` → scripts/deploy-hetzner.sh.
- delete scripts/wait-for-vercel.sh and orphaned desktop/.vercel/.
- repoint stale Vercel URLs in scripts/db/*.md and the local VAPID_SUBJECT.
(Fleet Runner already targets orangecat.ch in source — the user's "paused"
view is a stale installed build; the current v0.8.0 build/.deb is in desktop/dist.)
ICON — the browser-tab icon was blank/wrong:
- public/icon.svg drew the spiral at ~23% of the canvas with 0.7/0.95 opacity,
so it vanished at 16px. Rescaled to fill ~62% at full contrast (shape
unchanged, matches BrandMark.tsx).
- delete the stale src/app/favicon.ico (still the Next.js starter triangle);
metadata already declares /icon.svg, so browsers now show the brand mark.
CONTROL honesty:
- Autopilot badge no longer shows a pulsing "Building" on every autopilot-on
project (the default), which made idle projects look actively worked. It's now
a static "Auto"/"Paused" policy chip; the pulse is reserved for real `working`.
- /activity stats (promptsSent/runsStarted) now come from real count(*)
aggregates instead of the 200-capped row arrays (showed "200" when the true
30-day count was 277).
- "Previous automated run" shows a crashed `running` row (no terminal write,
>30min old) as "interrupted" instead of a live-looking "running" tag.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The publicly-served copy is public/import-from-local.sh (Next static), a
duplicate of scripts/import-from-local.sh — the previous commit only fixed
the scripts/ copy, so /import-from-local.sh still handed new users the dead
fleetcrown.vercel.app default (402). Sync the served copy. The two files are
byte-identical; the duplication is a DRY smell worth collapsing later.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Closes the second-most-common project-source gap (after GitHub) caught
during dogfooding: builders' projects live in github repos AND on disk
in ~/dev. The GitHub side already had bulk-import via /control/import;
this adds the parallel for local folders.
Pieces:
1. POST /api/projects/import-from-local — accepts { folders: [...] },
creates one project per folder, dedupes by name. Auth via Bearer
ck_* agent token (validateAgentToken — reuses the existing token
surface, no new auth path).
2. scripts/import-from-local.sh (+ public/import-from-local.sh mirror) —
bash one-liner that walks $HOME/dev, $HOME/code, $HOME/Code,
$HOME/Projects (configurable via FC_ROOTS), finds .git directories
(max depth 3), extracts name + path + origin URL + last-commit ISO,
POSTs the batch. Safe to re-run; duplicates are reported, not errored.
3. /control/import-local — new page that walks the user through:
(a) mint a ck_* token at /settings (with link),
(b) paste the one-liner with their token,
(c) refresh /control to see imports.
4. EmptyStateWelcome on /control gets a fourth CTA card: "Import from
~/dev — paste one terminal line." Grid is now 2-col on md, 4-col
on lg so the four import paths fit cleanly.
5. CopyableCommand component (components/control/) for the one-line
bash block with a copy-to-clipboard button. Promotable to
components/ui/ if a second feature needs it.
UX flow:
/control empty → click "Import from ~/dev" → mint token at /settings
→ paste curl|bash in terminal → script scans local repos → refresh
/control → projects appear alongside GitHub imports.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- FleetCrown is customer of OrangeCat (stakeholder 'customer' edge, shared wallet).
- Both + FleetWave as projects/profiles on orangecat.ch for Mao Nakamoto.
- Added integration banner in /money page (visible UX for the customer relationship).
- Updated CLAUDE.md, README, legal/IP memo, marketing-content to reflect current names, FleetWave customer, rebrand.
- Legacy 'cockpit' paths kept per branding-design for transition.
- Data updated live in DB (rename, wallets, relations, new FleetWave project).
- Makes the full stack work for real customer FleetWave; scales to others.
Changes in both cockpit and orangecat for good UX and functioning product.
- desktop build clean, tsc clean, lint 0, home/ 89/89
- advances desktop-2/3: dispatches now produce durable events in ~/.fleetcrown/events.jsonl with proper runId/sentinel so stop-hooks and web control plane treat them as first-class
- still no embedded watcher (idle via co-running home/watcher.ts for now)
Refs: desktop-app.md phases, Cockpit.roadmap T1/T2, prior landing 2d98638
- Split ProfileSettings into Profile (public identity) and Account (auth/security) tabs
- Add LocationSettings with two-tier model: homeCity/timezone/locale + currentCity/timezone/until for travelers
- Add AccountSettings with email display, password change, connected OAuth providers, danger zone
- New SettingsTabs with 7-tab horizontal nav (Profile · Account · Location · Agent · Projects · Team · Billing)
- New user_preferences DB table with getUserPreferences/upsertUserPreferences query functions
- New API routes: GET/PATCH /api/me/preferences, GET/DELETE /api/me/connected-accounts/[provider]
- Wire user's active city into weather API; active timezone into cron default
- beacon: replace "Waiting for Claude…" spinner with clean Standby screen (logo + text)
- beacon: fix grep pipeline crash in agent-hook-bridge.sh (|| true guards), fix token lookup
- beacon: fix _PROJECT_ROOT via agent-projects.conf, fix auto-start without zenity dialog
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>