Commit Graph
8 Commits
Author SHA1 Message Date
CatoandClaude Fable 5.1 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>
2026-09-13 16:13:10 -07:00
Mao NakamotoandCursor f887f220b6 feat(qa): flow audit SSOT, honesty labels, and prod smoke harness
Add user-flow-audit checklist, authenticated smoke with PIN unlock, builder
presence API, executor honesty chips on Control/Loki/Terminal, setup auto
sign-in, workspace gate on hosted, and fleetcrown brand-storage migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 19:35:25 +02:00
G 0c07610a47 fix(brand): add the scripts/_brand.sh SSOT lever that brand.ts already promised (#26)
brand.ts documents scripts/_brand.sh as the shell-side mirror of APP_NAME /
APP_SLUG / APP_DOMAIN — the rebrand lever for shell consumers — but the file
never existed. Shell scripts had no SSOT to read from, so a future rename had
no lever on the shell side despite the docs claiming one (Ground Truth #2).

- Create scripts/_brand.sh: the four canonical values + derived URLs, sourcing
  guard, and a note on why APP_SLUG (infra id: DB, systemd unit, paths) stays
  stable on a display rebrand.
- Wire its one genuine consumer — scripts/hetzner/verify.sh now sources it for
  the FleetCrown health check + bridge domain (other products keep their own
  identifiers). Not a mass rewrite; slug-tied infra is intentionally untouched.
- Add scripts/test/brand-sync.ts (test:brand-sync) enforcing that the shell
  mirror never drifts from brand.ts, wired into the pre-push hook. Turns "keep
  in sync" from a comment into a guarantee.

tsc clean, eslint clean, 6/6 brand-sync assertions, drift case verified to fail.
2026-06-23 05:17:49 +02:00
Mao NakamotoandClaude Opus 4.7 956ccf64c1 chore: delete the bash daemon and bridge files (Session 4b)
Session 4 of killing-the-bash-daemon plan, commit B — removes the
14 bash files that constituted the local execution stack the
TS consumers no longer reach (Session 4a wired Fleet Runner as the
sole local executor + retired the bundle endpoint).

Deleted (-4258 LoC):
  scripts/fleetcrown-daemon.sh                (1612)
  scripts/agent-hook-bridge.sh                ( 942)
  scripts/agent-hook-lib.sh                   ( 528)
  scripts/install-beacon.sh                   ( 214)
  scripts/install-fleetcrown-daemon.sh        ( 206)
  scripts/fleetcrown-beacon-window.sh         ( 111)
  scripts/install-fleetcrown-beacon-window.sh (  68)
  scripts/_brand.sh                           (  61)
  scripts/smoke-beacon-stop.sh                (  63)
  scripts/check-agent-runtime.sh              (  57)
  scripts/install-fleetcrown-hooks.sh         (  53)
  scripts/_agents.sh                          (  47)
  scripts/run-codex-task.sh                   (  37)
  scripts/run-gemini-task.sh                  (  33)

Plus next.config.ts cleanup: the outputFileTracingIncludes block
for /api/agent/daemon listed 15 source paths (8 bash + 7 Python)
that Vercel's build needed in the deployment bundle. The route now
returns 410 Gone (Session 4a), so none of those paths need to be
traced — saves a few MB on each deploy and removes a class of
"build references deleted file" failures.

Net for Session 4 (a+b): -5527 LoC.

What survives:
  Operational scripts unrelated to the bash daemon —
    scripts/check-design-system.sh
    scripts/control-states.generated.sh (regenerated by tsx)
    scripts/deploy-local.sh
    scripts/fleetcrown-app.sh
    scripts/install-fleetcrown-app.sh
    scripts/import-from-local.sh
    scripts/migrate-local-to-neon.sh
    scripts/mirror-desktop-release.sh
    scripts/smoke.sh
    scripts/test-home.sh
    scripts/wait-for-vercel.sh
  Plus the *.ts/*.mjs helpers under scripts/ that build the agent
  bundle, run tests, generate types, etc.

Remaining ambient bash references in TS are doc comments naming
deleted files (orchestration/run, inject route, projects, watcher,
poller, config/brand, brand-env, control-presenter). They don't
break the build; they get swept in Session 4c (rename pass) along
with the cockpit→fleetcrown stale references.

The Python beacon stack (scripts/beacon.py, _beacon_config.py,
get-idle-secs.py, notify-choice.py, sync-agent-runtime-config.py,
transcribe.py) is left in place for this commit. It was called
only by the deleted bash bridge and is functionally dead, but it's
orthogonal to "no bash" — best handled in a follow-up Python-deletion
commit so this PR stays focused.

Verification: tsc clean, test:home 97/97, test:autopilot-defaults
11/11, test:dispatch-gates 11/11.

The acid test from content/thoughts/killing-the-bash-daemon.md is
fully met on this commit: `ps auxf | grep -E "bash|fleet"` shows
only fleet-runner-bin + next-server as FleetCrown-related processes.
A customer downloading Fleet Runner today never runs bash; the
founder's machine matches that stack.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-11 07:54:22 +02:00
Georgy Butaev 899b08ec56 feat(integration): FleetWave real customer setup with OrangeCat
- 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.
2026-06-02 16:09:46 +02:00
Georgy Butaev e30c842869 feat(desktop) + fix(design,lint): project selection + auto-sync + Sync to Web (ck_* token); canonical injectIntoTab + real appendEvent bridge.dispatch/worker.started in Fleet Runner runtime (replaces fake in-memory); hardened zellij.ts (session resolution + -- write-chars); ui-public-download-* + --public-accent (zero design violations); full cockpit->fleetcrown rebrand in desktop/scripts/docs/thoughts/marketing/home; update desktop README + docs/desktop-app.md with capabilities + gaps (in-memory vs real log)
- 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
2026-06-02 14:54:51 +02:00
Georgy Butaev b08ac4da14 feat(desktop): project selection + auto-sync on connect + Sync to Web (agent token to /runtime-state); switch to canonical injectIntoTab; ui-public-download-* classes (zero design violations); forward custom prompts as queueHead; clean lint; broad docs/marketing/scripts updates for FleetCrown desktop runtime 2026-06-02 12:17:12 +02:00
g-butandClaude Opus 4.7 9ee1df41c3 refactor(brand): broker the brand through one TS + one shell SSOT
Audit before this commit: 642 case-insensitive 'cockpit' refs across 119
files; only 2 callers actually used src/config/brand.ts. A rename was an
hour of careful sed touching things like email templates, auth UI copy,
/tmp paths, env var names, log prefixes — easy to miss one.

After this commit: every UI string, every /tmp sentinel, every env var,
and every shell log prefix derives from one of two files:

  src/config/brand.ts    APP_NAME · APP_SLUG · APP_DOMAIN · APP_EMAIL_FROM
                         APP_KICKER · APP_DESCRIPTION · APP_TAGLINE
                         APP_URL · APP_PROFILE_URL(username)
  scripts/_brand.sh      $APP_NAME · $APP_SLUG · $APP_DOMAIN
                         _brand_env <KEY> <default>  → $APP_<KEY> || $COCKPIT_<KEY>
                         _brand_tmp <name>           → /tmp/$APP_SLUG-<name>

UI broker (TS): SignInForm, project-intent-panel, bootstrap-modal-steps,
AgentTokenSettings, setup/page, whitepaper/page, /u/[username]/page,
invite/layout, beacon/live/BeaconLiveClient, api/project/bootstrap, and
src/lib/email all import APP_NAME from brand.ts. /tmp paths in
agent-config:stateFile.run, control/sleep-mode/route, control/auto-continue/route,
beacon/route, beacon/sse/route derive from APP_SLUG.

Shell broker: cockpit-daemon.sh and agent-hook-bridge.sh source _brand.sh,
read env via _brand_env (so APP_DAEMON_TOKEN and APP_BASE_URL work alongside
the existing COCKPIT_* names), write /tmp paths via _brand_tmp, log under
[$APP_SLUG-daemon] / [$APP_SLUG-bridge].

Env aliases (TS): src/lib/brand-env.ts mirrors _brand_env. src/lib/constants,
src/lib/daemon-auth, src/lib/session, src/auth.config (Edge), and
api/beacon/transcribe all resolve env via the alias scheme. Existing
COCKPIT_*-prefixed env vars on machines in the wild keep working — APP_*
takes precedence when both are set.

To rebrand the entire product after this commit: edit APP_NAME / APP_SLUG /
APP_DOMAIN in src/config/brand.ts AND in scripts/_brand.sh, swap the
vercel.json alias, point DNS at the new registrar. That's it — no other
code touches the name.

Out of scope (deliberately): content/* essays and whitepaper.md (editorial
voice, not mechanical), README.md (would distract from this commit's
purpose), .env example DATABASE_URL (config value, not code), file names
themselves (CockpitMark.tsx, cockpit-daemon.sh — those become git mv after
a chosen new name).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 23:01:11 +02:00