Doubles the catsitting flow's surface to cover the common idea-shapes:
1. python-fastapi (Python + FastAPI + uv)
Async API. uv-managed deps (pyproject.toml). Runs with
`uv run uvicorn src.main:app --reload`. 4 files.
Use case: AI/ML startups, data pipelines, anything Python-side.
2. hono-cloudflare (Hono on Cloudflare Workers)
Edge-serverless TypeScript. 100k free requests/day, ~5ms cold starts.
wrangler.toml + Hono routes. 6 files.
Use case: lightweight APIs, webhooks, edge functions.
3. html-tailwind (Plain HTML + Tailwind CDN)
No build step. Open index.html in a browser. Perfect for landing pages
or quick demos. 4 files.
Use case: marketing pages, MVPs that need to ship fast.
Plus the existing two:
- bare (just a README)
- nextjs-tailwind (Next.js 15 + Tailwind v4)
Total: 5 templates. The radio selector on /control/new-from-scratch
auto-picks them up via `Object.values(TEMPLATES).map(...)` — no UI change
needed. Endpoint's Zod schema updated to accept the new enum values.
Why these four templates specifically (vs. more):
- next.js+tailwind: covers full-stack TS / "build a real product"
- python+fastapi: covers AI/ML and Python ecosystems
- hono+cf: covers edge/serverless TS
- html-tailwind: covers landing pages / no-build
- bare: covers "I'll set it up myself"
Anything else (Vite SPA, Express, Rails, Django) is one preference removed
from one of these. Keep the list short until a user asks for more.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The cloud bootstrap created a bare repo with just a README. Useful but
not magic. Now users can pick a starter that ships with working code so
their "catsitting startup" is actually runnable from minute one.
Pieces:
1. src/lib/project-templates.ts — SSOT for available starters. Each entry
declares its files inline (no external template-repo to maintain).
Files support {{NAME}} / {{DESCRIPTION}} placeholders rendered server-side.
First starter: "Next.js 15 + Tailwind v4" (9 files: package.json,
tsconfig.json, next.config.ts, postcss.config.js, .gitignore, README.md,
src/app/{page,layout}.tsx, src/app/globals.css).
2. seedTemplate() in /api/projects/create-with-github
After the repo is auto-init'd with a README, we make 4 sequential
GitHub API calls (with N parallel blob creates):
- GET branches/main → get base commit + tree
- POST git/blobs (parallel for each template file)
- POST git/trees with base_tree (so README stays)
- POST git/commits with main as parent
- PATCH git/refs/heads/main → fast-forward
Failure is non-fatal: the repo still exists, user can clone the bare
version. Response carries `templateSeeded: false` so the UI can warn.
3. /control/new-from-scratch UI gains a radio selector for starter:
- Empty (just a README) [default]
- Next.js 15 + Tailwind v4
Both options shown with their human description.
4. Success view notes which starter was seeded.
End-to-end now:
/control empty → "Start a new project" → name "catsitting" → pick
"Next.js 15 + Tailwind v4" → submit → 1.5s later you have a real repo
with a runnable Next.js app + your name on the home page. `git clone`,
`npm install`, `npm run dev`, live at localhost:3000.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two small cleanups continuing from the 2026-06-05 code audit:
1. AGENT_LABELS SSOT in agent-registry.ts
The 3 duplicate label maps in control-presenter.ts (lines 309, 334, 348
in the pre-refactor version) all named the same agents — slight drift
waiting to happen. Now there's one canonical AGENT_LABELS map exported
from the registry; control-presenter imports it. Plus ALL_AGENT_IDS for
tab-name parsing. The "agent" → "Cursor" legacy alias is handled as a
one-line PROCESS_NAME_ALIASES map (process basename ≠ UI id).
2. "Open in Cursor / VS Code" deeplinks on /control/new-from-scratch
After creating a brand-new GitHub repo + project, the success page now
surfaces collapsible deeplinks (cursor://file/, vscode://file/) so the
user can launch their editor in one click after they clone. Assumes the
default ~/dev/<name> clone path; surfaced as a hint in the disclosure.
No behavior change to the existing flows.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closes the catsitting-startup loop for cloud-only users (no local runtime).
Before this commit, the only "scaffold from idea" path was BootstrapModal
which requires the Fleet Runner daemon to write to ~/dev and shell out to
`gh repo create`. Users without the daemon could only IMPORT existing
projects — they had no way to create a fresh one through the website.
What ships:
1. POST /api/projects/create-with-github
- Auth via session cookie (signed-in user)
- Reads user's GitHub OAuth access_token from the accounts table (saved
automatically on GitHub sign-in)
- Calls api.github.com/user/repos with the user's token to create a real
repo (name, description, visibility, auto-init README)
- Slugs the repo name (lowercase, hyphens); preserves original display
name as the FleetCrown project entity name
- Creates the FleetCrown project row pointing at the new repo URL
- Returns { gitUrl, sshUrl, cloneCmd, cloneHttpsCmd, project }
- Graceful failure modes: 400 if no GitHub linked (with hasGithub:false
and a hint to /control/import → Connect GitHub), 409 on duplicate repo
name, 502 on GitHub API errors with the original status surfaced
2. /control/new-from-scratch page
- Form: name (required), description (optional), visibility (private/public)
- Submit → endpoint above → success view with the clone command in a copy
button (SSH primary, HTTPS in a collapsed details)
- "Create another" loop without leaving the page
3. EmptyStateWelcome's first card becomes adaptive:
- With runtime (onBootstrap defined): button → BootstrapModal as before
- Without runtime: link to /control/new-from-scratch (cloud GitHub flow)
- Always visible — no more hidden Bootstrap
The grid is now always 5 columns on lg (5 onboarding paths total: start fresh,
import GitHub, import ~/dev, add manually, install Fleet Runner). 2-col on md.
End-to-end:
/control empty → click "Start a new project" → form → submit →
GitHub repo created with README → FleetCrown row created →
user copies `git clone git@github.com:you/catsitting-startup.git` →
clone wherever they want → start hacking.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Quick UX-visible cleanups from the 2026-06-05 code audit of /control + /projects:
1. Expose Bootstrap as 5th card in EmptyStateWelcome.
The "scaffold a new idea from scratch" flow (BootstrapModal → /api/project/
bootstrap → AI brief + GitHub repo + local folder + agent launch) was the
highest-leverage feature already built but invisible to new users — only
reachable via a small "New" link in the FleetStatus toolbar that requires
the daemon to be running.
The card is conditional on `runtimeAvailable` because /api/project/bootstrap
shells out to `gh repo create` and writes to ~/dev — both require the local
Fleet Runner daemon. Threading `onBootstrap` through ControlPanel maps the
card click to setBootstrapOpen(true).
2. Delete duplicate empty state in ProjectOperationsView.
When data.projects.length === 0, EmptyStateWelcome (5 CTAs) rendered above
AND ProjectOperationsView's inline empty state (3 buttons with different
copy) rendered below — two competing zero-states. The inline one is now
`return null` since the welcome above is canonical. Drops 4 imports.
3. Rename SOURCE_COCKPIT_UI → SOURCE_FLEETCROWN_UI across 8 call sites + the
constant definition. The value was already `${APP_SLUG}-ui` = "fleetcrown-ui"
so this is purely the variable name catching up to the brand SSOT.
Deferred from this commit:
- Cloud-side bootstrap (next: needs Octokit, a new endpoint that doesn't
require local runtime — the actual user-visible "catsitting from cloud" gap)
- Agent label map consolidation in control-presenter.ts (internal hygiene)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The bash one-liner served from /import-from-local.sh (used by users to
scan their ~/dev folder and import repos via curl|bash) was being caught
by the auth-gate proxy matcher and 302-redirected to /sign-in, returning
the signin HTML instead of the script body. Added the path to the
matcher exclusion list so it serves the static file directly.
Co-Authored-By: Claude Opus 4.7 (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>
Non-functional. Three comment edits to reflect the FleetCrown rebrand
where the legacy "Cockpit" name was still showing up in:
- src/auth.config.ts: deployment-URL explanation (clarified that the
internal Vercel project remains legacy-named "cockpit" pending dashboard
rename, hence the cockpit-<hash>.vercel.app URLs)
- src/components/control/ControlPanel.tsx: dogfood note
- src/components/shared/RefreshOnFocus.tsx: refresh-event name doc
NOT TOUCHED (deliberate — backward compat with running Fleet Runner daemons
and existing user installs):
- COCKPIT_* env var fallbacks (process.env.COCKPIT_DAEMON_TOKEN etc.) —
paired with APP_* in code as `APP_X ?? COCKPIT_X`; ripping the fallback
would break daemons in the field
- /tmp/cockpit-* and ~/.config/cockpit/ paths — reflect user-side install
state; renaming server-side would orphan local files
- localStorage keys (cockpit-sidebar-sections-v1, cockpit.palette.recent)
— already marked LEGACY for backward compat; renaming = users lose state
- cockpit-daemon.service systemd unit — kept as fallback in
UNIT_CANDIDATES alongside fleetcrown-daemon.service (preferred)
- stripe metadata cockpitUserId — webhook contract; defer
User-visible product is unaffected (APP_NAME = "FleetCrown" everywhere).
The remaining cockpit references are technical debt to clean up in a
deliberate later pass once running daemons are migrated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
If you signed up via email+password, /control/import was a dead end — it
told you "no GitHub linked" with no way to fix it. Auth.js v5 supports
account linking via signIn("github") while already authenticated; this
adds a button that does exactly that.
After clicking, OAuth roundtrip → access_token saved to the existing
user_id → return to /control/import with hasGithub=true → repo list
appears. No sign-out, no second user account, no duplicate row.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Companion to the new EmptyStateWelcome card. The ProjectOperationsView's
own internal empty state (rendered below the welcome card, as a fallback
for the project list area) now also surfaces the bulk-import affordance.
Three buttons total: Bootstrap project (when runtime live), Register
existing project (manual), Import from GitHub (the new path).
This means a new user sees the bulk-import option in TWO places when they
land empty — the welcome card AND the project list zero-state — closing
the discoverability gap that prompted this change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
A new FleetCrown user with a GitHub account and 10+ repos shouldn't have
to add projects one-by-one through a single-select picker, and a brand-new
user shouldn't land on a blank /control with no guidance. Both gaps caught
during dogfooding of the post-Hetzner cutover (fresh DB, zero projects).
Changes:
1. `POST /api/projects/bulk-from-github` — takes an array of repo IDs,
re-fetches the canonical repo list from GitHub via the user's stored
OAuth token (so callers can't smuggle arbitrary names/descriptions),
and creates N projects in one round-trip. Duplicates by name are
silently skipped, not errored.
2. `RepoMultiPicker` component — checkbox-list version of the existing
single-select `RepoPicker`. Includes a filter input, select-all/none
buttons, and a selected-count display. Skipped repos surface their
reason inline.
3. `/control/import` page — wires the multi-picker to the bulk endpoint
with a search input and a primary "Import N projects" button.
Auto-redirects to /control on a clean import; stays on the page if
anything was skipped so the user can see why.
4. `EmptyStateWelcome` component — replaces the dead-end blank /control
for users with zero projects. Three CTAs: import from GitHub
(recommended, links to the new page), add manually (opens the existing
NewProjectModal), install Fleet Runner. Disappears once any project
exists.
5. Wired the empty-state into `ControlPanel` between the daemon banner
and FleetStatus — exactly where the first-touch user would expect
"what should I do?" guidance.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Phase B (web client):
src/lib/event-stream.ts — useEventStream() hook that opens an
EventSource to the bridge for the component lifetime, mints a
per-session ck_* token via /api/event-stream-token, fires onChange
for every "change" frame. Auto-reconnect with Last-Event-ID replay.
No-op gracefully when NEXT_PUBLIC_FLEETCROWN_BRIDGE_URL is unset.
src/app/api/event-stream-token/route.ts — server-side endpoint that
mints a fresh ck_* labeled "event-stream" for the signed-in user.
no-store headers since the response contains a secret.
src/hooks/use-control-data.ts — when bridge is configured, poll
interval flips from 30s → 5min and SSE drives freshness. Bursts
coalesced into a single refetch via 200ms debounce.
Phase D (desktop daemon):
desktop/src/main/pusher.ts — heartbeat interval bumped from 60s to
5min (now a liveness signal only). New pushNow() helper coalesces
event-driven pushes so a burst of worker.idle events triggers one
POST, not N.
desktop/src/main/index.ts — notifyOnIdle now calls pushNow() so the
cloud learns about agent state changes within seconds instead of
waiting for the next heartbeat. Same code path that already shows
the local OS notification — both ride the same watcher event.
Combined egress reduction once bridge is deployed on Oracle:
/api/control polling: 9 GB → 0.4 GB/user/mo (22x)
Daemon runtime-state heartbeat: 300 MB → 60 MB/user/mo (5x)
+event-driven pushes on agent idle: ~10 MB/user/mo
Total: ~18 GB → ~470 MB/user/month (38x reduction)
Activates by setting NEXT_PUBLIC_FLEETCROWN_BRIDGE_URL on Vercel and
deploying the bridge on Oracle (Phase E).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two cheap egress reductions before deeper restructuring:
1. /api/control GET response carries `Cache-Control: private, max-age=5`.
Multi-tab users, rapid SWR refetches, and sub-component re-mounts now
serve from the browser's local HTTP cache instead of running the full
query chain on every navigation. Per-user payload so we use `private`
(no shared edge cache). 5s freshness keeps the page feeling live while
absorbing burst traffic.
2. Fleet Runner runtime-state pusher: 30s → 60s. The daemonOffline check
considers >90s without a push as offline, so 60s still leaves a 30s
safety margin while halving heartbeat egress. The daemon still shows
"sync 30s ago" worst case, which is fine.
Context: the production Neon DB hit its data-transfer quota a couple of
hours ago, taking down every DB-backed endpoint (/control, /settings,
/system, sign-in, daemon poller, runtime-state pusher). Local Postgres
keeps working, but the prod outage exposed how chatty the cloud paths
were. These two changes plus the upcoming migration to self-hosted PG
(no egress charge) put us on a healthier baseline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two UX bugs surfaced from real-user testing on /control:
1. Command palette didn't close when expected.
- Escape was handled only via the input's onKeyDown — the moment focus
left the input (mic button, result row click, voice transcription
state), Escape did nothing. Fixed by attaching a window-scoped
keydown listener while open.
- Click-outside used `target === currentTarget` on the outer flex
container. The visible backdrop is a separate sibling element, so
any click that hit the backdrop (i.e., every "click outside the panel"
attempt) had target ≠ currentTarget and the close fired never.
Fixed by switching to a panelRef.current?.contains(target) check.
- sessionStorage key migrated from "cockpit.palette.recent" →
"fleetcrown.palette.recent", with a one-shot read of the legacy key
so existing users don't lose their recents.
2. Control loop primitives ordered backwards — "Hard stop" was first
in the palette, "Onboarding audit" was last. Hard stop is a sendNow
kill switch; surfacing it at the top of search results meant a single
click could ship it accidentally.
New order, safest first → destructive last:
1. Orient (read-only diagnostic)
2. Unblock (diagnostic)
3. Roadmap check (read)
4. Onboarding audit (read)
5. Raise blocker (writes a structured file, escalation)
6. Hard stop (destructive kill switch, LAST)
PROMPT_TEMPLATES array order IS the SSOT for palette ordering; this
is the source-of-truth fix, not a UI sort hack.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ControlPanel.tsx had `data!.prompts` and `data!.zellijTabs` on lines 144-145,
non-null assertions that lied to the TS compiler. At runtime, every time
the SWR fetch hadn't resolved yet (cold paint, slow network, post-deploy
client reload) `data` was null and the page crashed before render with:
Cannot read properties of null (reading 'prompts')
The page was shipping a hard error in prod for any visitor whose
useControlData() hook hadn't returned data by the time React tried to
compute cardProps. Every other data-derived value on the page (pageState,
snapshots, liveTabRows, dashboard, attention) was correctly guarded with
`data ? ... : null`; this one slot wasn't.
Fix: `data?.prompts ?? []` / `data?.zellijTabs ?? []`. The cardProps
closure is well-formed with empty arrays. ProjectOperationsView only
invokes the closure when a snapshot is selected — which requires data
to be non-null — so the empty arrays are never actually walked against
a real project, they're just typesafe placeholders for the initial paint.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closes the FC↔OC read loop. The subscription mirror (Loop A) writes
FleetCrown subscriptions into OrangeCat as services. This commit adds the
inverse: the dispatch strategist now reads the actor's OrangeCat services
+ products via @orangecat/sdk's .list() (which is already integration-key
authenticated server-side — no OC change required) and surfaces a brief
"Commercial context" section into the Groq prompt.
src/lib/integrations/orangecat-context.ts (new):
- getOrangeCatContext() — fetches services + products in parallel, caches
5 min in-memory, races a 1.5s timeout. Returns null silently when no
ORANGECAT_API_KEY is set. Falls back to stale cache on transient OC
failure rather than blocking dispatch.
- renderOrangeCatContext(ctx) — compact text rendering for the prompt.
Empty when nothing commercial to report (so the strategist proceeds
with FC-only context, unchanged behavior).
src/app/api/control/dispatch/route.ts:
- buildPrompt() gains an orangeCatContext param.
- Call site fetches OC context in parallel with Groq composition.
- Strictly non-fatal — any OC failure swallowed via .catch(() => "").
This is the smallest end-to-end demonstration of bidirectional FC↔OC
integration. When ORANGECAT_API_KEY is set, the agent's auto-injected
prompts can carry "this actor sells N services on OrangeCat (X, Y, Z)"
context, letting Groq prefer revenue-adjacent work when handoff signals
are weak. When the key is absent, behavior is identical to pre-commit.
Followup gaps (not in this commit):
- @orangecat/sdk lacks .get(id) — would need OC's entityCrudHandler to
switch from supabase.auth.getUser() to resolveRequestAuth before the
SDK could expose it. /list works today; /[id] does not.
- Transaction history endpoint not yet wired — would let the strategist
see "you have $X coming in this month, prioritize delivery work."
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closes the Loop A persistence story. After
syncSubscriptionToOrangeCat() succeeds, the subscription row now stores
the OrangeCat service id back, so the /money page can render a per-row
"OC ✓" badge and future backfill jobs can target only the still-null
rows.
Schema (drizzle migration 0021):
- subscriptions.orangecat_service_id (uuid, nullable). Null = not
mirrored (integration off, sync failed, or row predates the
integration). Apply via `npm run migrate`.
- Partial index on (user_id) WHERE orangecat_service_id IS NULL — the
shape the "what still needs syncing" backfill query will use; the
column is mostly null for now.
orangecat.ts:
- syncSubscriptionToOrangeCat() now writes the back-link after a
successful POST. The DB update is also non-fatal — OrangeCat already
has the truth, and the next /money render still reflects the synced
state once the column is populated.
UI (/money page SubRow):
- New "OC ✓" badge appears next to the subscription name when
orangecatServiceId is present. Hover shows the OrangeCat service id
for cross-system debugging.
SDK bump:
- @orangecat/sdk moved from 0.1.0 → 0.2.0 (file:vendor/). 0.2.0 adds
.list() on every resource, which a future backfill script uses to
enumerate what's already on the OrangeCat side before re-syncing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
queue-list.tsx was 317 lines. Reading the file to find the
drag-and-drop orchestration meant scrolling past 130+ lines of row
rendering (checkbox + drag handle + position pill + content/edit
textarea + send/remove actions), even though the rows are purely
presentational.
Moved QueueItemRow + the SortableQueueItem dnd-kit wrapper + the
RowProps type to queue-item-row.tsx. Behavior is identical — same JSX,
same drag/edit/select interactions, same field-sizing on the edit
textarea. queue-list.tsx drops 9 transitive imports (useSortable, CSS,
GripVertical, Pencil, Send, X, CheckSquare, Square, cn) that were
only used by the row.
queue-list.tsx: 317 → 174 lines.
queue-item-row.tsx: 163 lines (new).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
A real product has a footer with legal links. Adding them.
New surface:
- /privacy — what we collect (account, agent tokens, project records,
minimal ops logs) and what we don't (no analytics, no tracking, no
data sale). Plain-English honest, names the third parties (Vercel,
GitHub, Neon), explains user rights.
- /terms — pre-incorporation framing, acceptable use, no warranty,
security disclosure channel.
- /license — source-available / personal-use friendly with explicit
carve-outs for commercial redistribution. Notes the upstream OSS
licenses for bundled deps (Electron, Zellij, etc.).
- /docs/quickstart — 7-step path from "saw the site" to "first agent
dispatched." Honest about Gatekeeper / SmartScreen warnings, the one
required agent CLI install, and the projects config.
Plumbing:
- PublicFooter component, three groups (Product / Legal / Source), v0.4.0
badge. Rendered by PublicSurface so every public marketing page gets it
automatically — no per-page opt-in.
- Existing ui-public-footer class wired up (was defined in globals.css,
unused until now).
This is web-only — no desktop release needed. Vercel auto-deploys on push.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ProjectGrid.tsx was 330 lines, with a 130-line inner ProjectCard
component defined above the main ProjectGrid render. Reading the file
meant scrolling past the entire tile layout to find the grid's actual
search/filter/sort logic.
Moved the tile to ProjectGridCard.tsx as a self-contained component
with its own ProjectGridRow type. Behavior is identical — same JSX,
same styling, same per-tile imports. The outer ProjectGrid now imports
ProjectGridCard + the type, drops 7 transitive icon/helper imports that
were only used by the tile (ArrowRight, GitBranch, Globe,
IvyDispatchButton, MaturityBar, StatusBadge, HealthBadge,
getProjectLinks, RESERVED, buildProjectIvyPrompt).
Renamed inside the new file from "ProjectCard" → "ProjectGridCard" to
distinguish from src/components/control/ProjectCard.tsx (different
component, different folder). The type "Project" was likewise renamed
to "ProjectGridRow" to make the source-of-truth shape (rows from
getProjects in db/queries/projects) explicit.
ProjectGrid.tsx: 330 → 176 lines.
ProjectGridCard.tsx: 170 lines (new).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ControlPanel.tsx was 405 lines, with ~45 of those dedicated to building
the per-project props bag consumed by <ProjectCard /> — pure callback-
wrapping noise (try/catch around three async ops, plus mechanical prop
shape) that obscured the page's actual render flow.
Moved the factory to control-panel-card-props.ts as a plain function
`buildCardProps(deps)(project)`. Behavior is identical:
- Same closure semantics (a fresh factory per render, same as before).
- Same try/catch around inject/runWithBrain/runCustomPrompt (the
comment about why both setError AND throw are needed is preserved —
mobile dogfood found the global banner was off-screen, so the inline
per-card error in useProjectCardActions is the one users see).
- The 6000ms toast clear is now TOAST_LONG_MS (from the previous
timings constants commit — same value, named intent).
ControlPanel.tsx: 405 → 376 lines. Net total up slightly because the
new file's type definitions are explicit, but the concern separation
is the win: ControlPanel's render flow now reads as state → derived →
effects → JSX without the callback-wiring detour.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two unrelated cleanups bundled because they're both one-line drift fixes:
1. desktop-release.yml: bump actions/checkout, actions/setup-node, and
actions/upload-artifact from v4 → v6. Silences the Node.js 20
deprecation warning that's been showing on every build, ahead of
GitHub forcing Node 24 on 2026-06-16. Other workflows (audit.yml,
ci.yml) were already on v6 — desktop-release was the holdout.
2. marketing-content.ts: revert Intel-mac references that accidentally
landed in 1e96998. The mac binary is still arm64-only — pointing
users at a Fleet-Runner-mac-x64.dmg URL that doesn't exist would
404 in their faces. Brought back in sync with what ships.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
First real cross-product call from FleetCrown into OrangeCat. Whenever a
FleetCrown user adds a subscription on /money, the same record is
mirrored into OrangeCat as a `service` owned by the FleetCrown group
actor. Mao now sees FleetCrown's monthly burn inside the OrangeCat
ledger — the bitbaum studio narrative gets its first real data point.
- Adds @orangecat/sdk@0.1.0 as a file:vendor/ dep
(vendor/orangecat-sdk-0.1.0.tgz committed; mirrors npm-install
semantics for dev + Vercel until the SDK is published).
- src/lib/integrations/orangecat.ts: singleton client, no-ops when
ORANGECAT_API_KEY is unset. syncSubscriptionToOrangeCat() is
fire-and-forget — never throws, never blocks the subscription POST.
Stable Idempotency-Key (`fleetcrown_sub_<id>`) so retries dedupe
cleanly when server-side dedup lands.
- src/db/queries/money.ts: hook fires after the DB insert returns.
Whether the OC sync succeeds or fails is irrelevant to the user
response — the local subscription is already persisted.
- .env.example: documents ORANGECAT_API_KEY + ORANGECAT_API_BASE.
Reliability defaults baked in by the SDK: 20s timeout, 3 exp-backoff
retries on network / 5xx / 429 honouring Retry-After, User-Agent
identifying FleetCrown, AbortSignal-clean.
Failure modes are non-fatal and logged with enough context for backfill:
- ORANGECAT_API_KEY unset → silent no-op (most dev envs today)
- OrangeCat returns OrangeCatError → console.warn with code+status,
subscription still saved locally
- Network error → SDK retries internally, then console.warn
Follow-ups (each its own commit, all post-this-spike):
- schema: add subscriptions.orangecat_service_id column so the link
persists and the UI can render a "Synced ✓" badge
- once /api/v1 exposes GET via integration-key auth, run a backfill
job for existing subscriptions
- when OrangeCat publishes the SDK to npm, replace the vendor/ tarball
with a normal version range
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three small cleanups bundled as one commit.
1. New src/lib/constants/timings.ts — SSOT for UX-intent setTimeout
durations. Previously sites scattered 300/1200/1500/2000/3000/4000/
6000 ms for the same intents (toast clears, copy feedback, modal
auto-close, search debounce) with sibling files disagreeing on the
right number. Seven named constants now describe intent, not
duration:
SEARCH_DEBOUNCE_MS = 300
MODAL_AUTO_CLOSE_MS = 1200
FEEDBACK_SHORT_MS = 1500 ("Sent", quick checkmark)
FEEDBACK_MEDIUM_MS = 2000 ("Copied", saved icon)
TOAST_SHORT_MS = 3000 (single-line informational)
TOAST_MEDIUM_MS = 4000 (errors needing read time)
TOAST_LONG_MS = 6000 (verbose multi-line commit output)
No behavior change — each call site picks the constant that matches
its existing value. 19 files routed through the new constants.
2. src/app/api/ivy/route.ts: the lone console.log in the codebase
("[ivy] falling back to Groq") promoted to console.warn — it's a
non-error operational signal worth surfacing in Vercel logs at a
higher level than log/info.
3. Already shipped in deca859 by accident-merge of staged deletions:
src/components/shell/PlaceholderView.tsx and ThemeToggle.tsx (both
confirmed zero importers).
Skipped intentionally:
- src/app/api/agent/launch/route.ts (3000ms retry interval) and
src/app/beacon/live/BeaconLiveClient.tsx (2000ms SSE reconnect):
different intent (system backoff, not UX feedback). Leaving inline.
- src/components/control/ZellijLivePanel.tsx 700ms post-action refresh
buffers: only used in one file, sub-second propagation guard, not
the same intent as FEEDBACK_*_MS. Leaving inline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wires electron-updater so Fleet Runner checks for new releases on launch
and downloads them in the background. Users on v0.3.0+ never have to
manually re-download — the next-launch upgrade prompt takes care of it.
Implementation:
- Adds electron-updater@^6.8.3 to desktop deps.
- main.ts: setFeedURL points at maonakamoto/fleetcrown-releases (the
canonical public host) regardless of where electron-builder publishes
the build. This decouples the build pipeline's draft target from the
user-visible update channel — the mirror script in
scripts/mirror-desktop-release.sh reconciles them.
- checkForUpdatesAndNotify() fires once at boot, disabled in dev to avoid
interfering with the local Electron cycle.
- Listener on 'update-downloaded' surfaces an OS notification "Update
downloaded — restart Fleet Runner to apply it." The actual install is
staged automatically via autoInstallOnAppQuit.
Caveat: existing v0.2.0 users still need one manual download to v0.3.0
(their binaries don't know about the new feed URL). From v0.3.0 onward,
every subsequent release auto-propagates.
Marketing copy (setup step 02) updated to mention the auto-update flow.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Fleet Runner v0.2.0 GH Actions build produced working binaries for Linux,
macOS (Apple Silicon), and Windows (x64). All three platforms now flip from
status: "comingSoon" → status: "ready" with real /releases/latest/ URLs on
maonakamoto/fleetcrown-releases.
- Marketing URLs use /releases/latest/download/... pattern → future version
bumps don't require a marketing-content edit per release.
- macOS panel: honest Gatekeeper bypass instructions (we're not signed yet).
- Windows panel: honest SmartScreen "Run anyway" instructions.
- Linux command updated for the new artifactName (Fleet-Runner-linux-*.AppImage).
- Prerequisites: Zellij flipped from "required" to "bundled — no install
needed." (v0.2.0 ships Zellij inside the AppImage / .dmg / .deb / .exe.)
- Setup step 03 updated: no more "make sure Zellij is installed" — only
the agent CLI is on the user.
Cleanup:
- ComingSoonPlatformPanel + its Link / coming-soon types removed — every
platform is ready, no dead branches.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The single source of truth for nav items is @/config/navigation, but 13
files across pages and cards still hardcoded the bare path strings
(href="/control", "/goals", "/events", "/system", etc.). If a route URL
ever changed (e.g. /memory → /knowledge), this required a grep-and-
replace across the codebase instead of a single edit in one config.
Changes
- src/config/navigation.ts: export the previously-internal NAV record
(typed via `satisfies Record<string, NavItem>` so callers still get
precise types per-key). Sidebar sections + NAV_ITEMS + MOBILE_NAV_ITEMS
continue consuming the same object — no duplication added.
- 13 files swap hardcoded href strings for NAV.<key>.href:
components/today/RecentRunsCard.tsx (×3 /control)
components/today/GoalsDueCard.tsx (/goals)
components/today/HabitsCard.tsx (/habits)
components/today/EventsDueCard.tsx (/events)
components/today/StuckGoalsCard.tsx (/goals)
components/today/SummaryBar.tsx (×6: /goals×2, /events, /control×3)
components/system/MemorySummaryCard.tsx (/memory)
components/shell/AppFooter.tsx (/system)
components/shell/sidebar/SidebarFooter.tsx (/settings)
components/projects/ProjectDetailHeader.tsx (/control)
components/projects/ProjectPromptsTab.tsx (/prompts)
app/beacon/live/BeaconLiveClient.tsx (/control)
app/(app)/today/page.tsx (/control)
Audit afterward: grep for hardcoded nav hrefs in src/ returns zero hits
outside config/. tsc + eslint clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three additive mobile-UX fixes flagged in product-expert dogfood —
nothing existing changes, no rewrites.
1. Top bar shows the active route label on the left at md:hidden widths
(resolved via NAV_ITEMS + isCurrentPath — same source the bottom nav
uses), giving phone users a "where am I?" cue without relying on the
page-level h1 that scrolls away. The full-width search button now
collapses to icon-only on mobile so the title has room.
2. The Ivy button in the bottom nav was a literal 🌿 emoji; replaced
with Lucide Sparkles for consistent rendering across iOS/Pixel/
Samsung/etc. and visual coherence with the rest of the icon system.
3. Sign-out lived only in the desktop sidebar (.ui-sidebar hidden
md:flex), so phone users had no in-app exit. Added a Sign out row
at the bottom of the "More" sheet using the same next-auth signOut
+ ROUTES.SIGN_IN pattern the sidebar uses.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collapses the new-customer install path from "download → install Zellij →
install agent CLI → copy token → paste in app" into "download → click
Open in Fleet Runner". Bumps Fleet Runner to v0.2.0.
Desktop (Fleet Runner v0.2.0)
- desktop/scripts/download-zellij.mjs (new): prebuild fetches the pinned
Zellij binary (v0.41.2) into desktop/resources/bin/ for the target
platform; electron-builder packs it into the AppImage / .deb / .dmg.
Idempotent — skips if the file is already present; FORCE=1 re-downloads.
Handles linux-x64/arm64, darwin-x64/arm64; PRs add more.
- desktop/src/main/index.ts: bundledBinDir() prepends the bundled binary
dir to process.env.PATH before any home/ or zellij call resolves, so
every existing exec("zellij ...") picks the bundled binary first with
the user's $PATH as fallback. Zero call-site changes.
- desktop/src/main/index.ts: fleetcrown:// protocol handler (single-
instance lock, mac open-url event, Linux/Win argv scan, cold-start
buffering). On a deep-link click, the token in ?token=ck_... is saved
via the same path as manual paste and the poller restarts immediately.
- desktop/package.json: version 0.1.0 → 0.2.0; prebuild now also runs
bundle:zellij so dist:linux/mac/win all ship the binary.
Web
- src/components/settings/AgentTokenSettings.tsx: "Open in Fleet Runner"
button next to the freshly-revealed token, hrefed to
fleetcrown://auth?token=<token>. Falls back gracefully if Fleet Runner
isn't installed or the protocol isn't registered.
- src/components/public/DesktopDownload.tsx: CopyableCommand wraps the
CLI command shown after download with a Copy button (Check icon for
2s on success). Clipboard API failures are silent — the code stays
selectable.
- src/app/globals.css: ui-public-download-command-row + -copy classes
to keep the SoC of the public-download surface intact.
- src/config/marketing-content.ts: install copy rewritten around the
new one-touch story (Linux command uses ~/Downloads/Fleet.Runner-*
wildcard; Claude Code becomes required since shipped agents don't ship
with a bundled CLI; prerequisites prose tightened).
.gitignore: excludes desktop/resources/bin/ — the binary is fetched at
build time, not source-controlled (10MB+ per platform).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ui-control-operations-header was @apply hidden md:flex …, which hid the
"page freshness timestamp + New project" row entirely below 768px. Mobile
users on /control had no top-of-page affordance to create a project.
Removed the hidden md:flex prefix; the class already declares
flex-col gap-4 … sm:flex-row sm:items-center sm:justify-between, so the
row now stacks correctly on phone and reverts to the existing two-column
desktop layout at sm+ widths.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a command poller to the Fleet Runner main process that long-polls
/api/control/commands, executes 'inject' commands via the same
injectIntoTab primitive scripts/fleetcrown-daemon.sh uses, and PATCHes
each row done. Atomic claim (FOR UPDATE SKIP LOCKED) means Fleet Runner
and the bash daemon can run in parallel without collisions.
Desktop
- desktop/src/main/poller.ts — long-poll loop, status state machine
(idle/connecting/connected/error), backoff, token-rejected detection,
pure formatTrayTooltip helper.
- desktop/src/main/index.ts — wires the poller into the tray tooltip,
broadcasts status to all renderers, restarts on save-token, stops
cleanly on before-quit, adds clear-token + get-poller-status IPC.
- desktop/src/preload/index.ts — exposes clearToken, getPollerStatus,
onPollerStatus on window.fleetRunner.
Web (renders inside web-shell mode; null in normal browsers)
- src/components/desktop/FleetRunnerAutoMint.tsx — when window.fleetRunner
is present, mints a "Fleet Runner (auto)" agent token via the same
NextAuth cookie session and persists it via IPC, restarting the poller.
- src/components/desktop/FleetRunnerStatusPill.tsx — top-bar chip
subscribed to live poller status, with detailed tooltip.
- src/components/desktop/types.ts — single Window["fleetRunner"]
declaration shared by both components.
- AppShell + AppTopBar — mount points.
Other command types (focus_tab, launch_agent, switch_agent,
repair_helper, auto_continue) report a clear "not yet supported" error
so they get cleared from the queue instead of jamming it — full
coverage stays with scripts/fleetcrown-daemon.sh until a follow-up.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Desktop:
- Fleet Runner ships in web-shell mode by default — the AppImage loads
https://fleetcrown.vercel.app (the same React tree the browser serves) so
desktop and web stay at parity from one codebase. FLEETCROWN_WEB_URL overrides
for previews/dev; `=local` disables web-shell for IPC dev work.
- Stable artifact naming via `artifactName: Fleet-Runner-${os}-${arch}.${ext}`
so /releases/latest/download permalinks work; package.json publish target
corrected from "cockpit" → "fleetcrown".
CI:
- New desktop-release.yml workflow: build matrix on macos-latest, windows-latest,
ubuntu-latest fires on fleet-runner-v* tag push. Each runner produces signed
installers via electron-builder --publish always and uploads to a GitHub
Release. workflow_dispatch with dry_run=true builds-only for pipeline tests.
Download UX:
- Page redesigned for non-technical visitors: hero → web vs desktop comparison
→ platform-aware CTA → 3-step "what happens next" → plain-language prereqs
with required/optional badges → developer drawer (collapsed).
- mac/Windows surfaces no longer point at the repo as a "download" — they show
a Coming Soon panel with a release-feed subscription and an honest "Use the
web app instead" escape hatch. Build-from-source demoted to a dev drawer.
- ~30 new ui-public-download-* semantic classes for the new patterns; design
guard remains clean.
Navigation:
- /download added to the sidebar Site section so logged-in users have an in-app
entry point to the desktop app.
- Homepage redirect dropped for signed-in users (onboarding flow preserved);
hero + footer CTAs now surface "Open FleetCrown →" when authenticated.
Marketing copy:
- Roadmap NOW phase reflects the desktop ship (web-shell, embedded watcher,
multi-OS pipeline); NEXT phase reframed to "Distribution and auto-update"
with concrete remaining work (signed mac/Win binaries publicly shipping,
auto-update, native package channels, IPC bridge polish).
- Investors "what we have built" copy updated to mention the desktop app + CI.
Pre-existing fixes folded in:
- Control surface: AttentionBar deduplicates the "Needs attention" reason chip;
control-presenter labels the session-with-mtime-but-no-readiness case as Idle.
- Scripts: cockpit → fleetcrown rename sweep across beacon/install/deploy.
- /api/system/daemon route updates.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closes the loop on the github username rename. Replaces every
g-but → maonakamoto reference in:
- desktop/package.json (electron-updater publish.owner — drives auto-update)
- desktop/README.md, src/config/marketing-content.ts (clone/release URLs)
- scripts/install-fleetcrown-{app,daemon,beacon-window}.sh (systemd Documentation=)
- scripts/wait-for-vercel.sh (example output in code comment)
- src/app/api/project/bootstrap/route.ts (default github user fallback)
- legal/IP_ASSIGNMENT_MEMO.md (repository location only — natural-person
identification preserved until bitbaum AG / FleetCrown GmbH incorporate)
Local + global git config (user.name, user.email) and the origin remote
URL already updated outside the tree. GitHub auto-redirects the old URLs
but flipping them eliminates the leak and matches the pseudonymous-founder
direction.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Architecture decision doc proposing Fleet Runner v2 own the agent PTY
directly (node-pty + xterm.js) instead of injecting into zellij. Fixes
both the onboarding wall (zellij + named tabs + agent CLI as prereqs
for any value) and the recurring zellij WouldBlock panic on large
writes. Extends docs/desktop-app.md; doesn't supersede it — proposes
a parallel desktop-7 track shippable alongside packaging work.
Flips real-name JSDoc examples in initials.ts and Avatar.tsx to
"Mao Nakamoto" to match the pseudonymous-founder direction. Legal
docs intentionally untouched — they need a natural person until a
contracting entity exists.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
User walkthrough of /control on prod surfaced three issues:
1. Same value (dashboard.waitingCount) was labeled "waiting" in the page
header and "ready" in the chip strip below — one number, two labels,
reads as broken arithmetic ("2 waiting" vs "1 needs you · 0 working ·
2 ready · 1 open"). Header tags are now dropped; ControlFleetStatus
owns the count display end-to-end with reconciled vocabulary.
2. DaemonStatusBanner showed the "Install Grok/Claude/Cursor/Gemini/Codex"
one-click installer buttons in the cloud-+-daemon-offline state. The
buttons POST to /api/agent/install-cli which queues a command for the
daemon to pick up — with the daemon down and no local daemon reachable
from cloud, the click silently no-ops and the helper text ("When your
Local Agent Helper is running…") directly contradicts the banner above
it. Now suppressed in that state; still rendered in the never-seen
setup flow and on local runs.
3. The desktop Workspaces panel was always-open and rendered the same
project set as the Projects grid above it whenever the daemon was
offline (cloud cached state). Two list layouts of the same fleet read
as duplication. Now wrapped in a <details> that defaults closed when
daemon offline / never-seen and open when live — quick send-to-any-tab
stays one click away when it's useful, doesn't shout when it isn't.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Carried over Grok's in-progress rebrand of user-visible copy: CONTRIBUTING,
SECURITY, all content/thoughts/* essays, whitepaper, IP assignment memo
(also correcting fleetwave GmbH → fleetcrown GmbH per the earlier user
correction), agent-cli-registry-spec, and three src/ comment/identifier
spots (control route, intent panel doc, refresh-event handler name). No
behavior changes — purely copy + comments. Repository directory remains
"cockpit" for git-history continuity per the legal memo's clarification.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Captures post-lock-in evaluation: shadefleet/shadyfleet (sanctioned-tanker
"shadow fleet" association inverts "nothing hidden" trust principle),
piracyfleet (theft/illegality), and especially fleetclown (inverts crown
authority into joke, destroys serious-infrastructure tone). FleetCrown
remains locked; if domain pressure rises, buy fleetcrown.com rather than
swap to any available variant that violates the criteria.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Removed erroneous separate 'FleetWave' project/relations from DB.
- Updated all code, consts, docs, banners, CLAs, legal, READMEs to correctly present FleetCrown itself as the customer of OrangeCat (both as projects/profiles on the platform).
- Integration remains: shared wallet, customer stakeholder edge, live on orangecat.ch.
- Sessions updated.
No separate 'fleetwave' entity; the customer use case is FleetCrown.
- Central config for the real customer FleetWave + OrangeCat/FleetCrown customer model (shared wallet, projects, relations).
- Money page now uses the const (no dup).
- Enables easy surfacing of the integration anywhere.
Part of building complete product for FleetWave customer.
- 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 renderer: refactored App.tsx to eliminate vast majority of raw hex (#000, #1f1f1f, #ff5c00 etc) and arbitrary text-[Npx] by using the existing runner CSS vars + newly added .runner-* component classes (header, card, input, btn, project, result, label, mono). Hero, connect, runtime, projects, command bar, results, footer all now class-driven.
- Extended desktop runner globals.css with additional primitives and --text-micro etc so the ultra-minimal x.ai aesthetic is still 100% defined in one CSS file (SSOT for this surface).
- Small functioning win: status pane now renders a tiny human summary (homeStack, watcher embedded, real log) on top of the raw JSON for debug.
- Public website: added "Download" to PUBLIC_NAV (SSOT) so visitors see the local app path clearly in the marketing nav.
- Fixed last user-facing rebrand leak in a tooltip (cockpit-daemon → fleetcrown-daemon).
- All changes keep strict design system, no new violations. Runner and main site build clean.
This advances "impeccable website and functioning app (web + local)" per the vision. The local Fleet Runner UI is now much closer to the quality bar of the rest of the product while preserving its pure black character. Web surfaces have better discoverability for the desktop download.
- SSOT in marketing-content.ts: fixed investors@cockpitapp.com → investors@fleetcrown.app
- Explicit promises for desktop (macOS/Windows/Linux one-click + auto-update coming; build today), native iOS + Android mobile apps, and "more" runtimes — exactly as requested so the live site can deliver on "apps for... you know".
- Updated /download page (now uses config steps, added dedicated FUTURE DOWNLOADABLE APPS section, web access links via next/link).
- Enhanced the reusable DesktopDownload component (used on landing too) with future vision.
- Zero new design violations; build + lint + tsc clean.
- First principles: honest progressive disclosure (what works today vs. soon), one source of truth for copy, serves the human who opens fleetcrown.vercel.app expecting a real product with a future.
The site (once deployed) will now clearly show: use web now, download/build desktop Fleet Runner now, expect polished desktop binaries + mobile apps.
- 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