mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 03:56:59 +01:00
feat(infra): exit Vercel — FleetCrown lives at fleetcrown.orangecat.ch
- swap dead fleetcrown.vercel.app for fleetcrown.orangecat.ch across src/, desktop/, README (Vercel team blocked for fair-use; serving 402s) - scripts/deploy-hetzner.sh: build + rsync standalone + restart the fleetcrown-app unit on the bitbaum box (Caddy already vhosts the domain) - brand.ts APP_DOMAIN remains the SSOT; historical thoughts essays keep the old domain as written Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47a0b66a45
commit
4c8ab5425c
18 files changed
+78
-35
No files matched your search
@@ -7,7 +7,7 @@ The product thesis is simple: AI agents are becoming cheap execution capacity,
|
||||
but serious users still need a trustworthy command center. FleetCrown provides the
|
||||
state, queues, handoffs, guardrails, and business context around that capacity.
|
||||
|
||||
Production: https://fleetcrown.vercel.app
|
||||
Production: https://fleetcrown.orangecat.ch
|
||||
|
||||
## What It Does
|
||||
|
||||
@@ -139,7 +139,7 @@ On a fresh database, visit `/setup` to create the first user.
|
||||
Agent dispatch from the hosted app needs a connected machine:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://fleetcrown.vercel.app/api/agent/install | node - init --base-url https://fleetcrown.vercel.app
|
||||
curl -fsSL https://fleetcrown.orangecat.ch/api/agent/install | node - init --base-url https://fleetcrown.orangecat.ch
|
||||
```
|
||||
|
||||
The runtime requires Zellij and at least one supported CLI on `PATH`: `claude`,
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@ See `docs/desktop-app.md` (at repo root) for the full plan, stack decision, arch
|
||||
## Current status
|
||||
|
||||
- Packaged native app (AppImage + .deb produced via electron-builder; macOS/Windows builds wire up via `.github/workflows/desktop-release.yml`).
|
||||
- **Ships in web-shell mode by default**: the main window loads `https://fleetcrown.vercel.app` directly and the user gets the exact same React tree the browser serves, plus native bits (tray, OS notifications on agent idle, persistent NextAuth cookies). One UI, two surfaces.
|
||||
- **Ships in web-shell mode by default**: the main window loads `https://fleetcrown.orangecat.ch` directly and the user gets the exact same React tree the browser serves, plus native bits (tray, OS notifications on agent idle, persistent NextAuth cookies). One UI, two surfaces.
|
||||
- Native IPC remains available via the preload-injected `window.fleetRunner` bridge — the web app can detect Fleet Runner via the `FleetRunner/<version>` UA suffix and call into the local runtime where it makes sense.
|
||||
- Real `home/` stack integration in the main process: loads your projects config from agent-projects.conf, uses `decide()`, renders actual prompts via the orchestration layer (renderTaskForAdapter) on every dispatch.
|
||||
- Dispatch uses the *canonical* `injectIntoTab` (same code path as the daemon/worker): go-to-tab + focus poll guard (prevents typing into wrong pane) + write-chars + Enter + best-effort restore of previous tab.
|
||||
@@ -34,7 +34,7 @@ FLEETCROWN_WEB_URL=local npm run dev
|
||||
|
||||
## Get the runnable app
|
||||
|
||||
End users should grab a signed installer from the [download page](https://fleetcrown.vercel.app/download). For a local build from source:
|
||||
End users should grab a signed installer from the [download page](https://fleetcrown.orangecat.ch/download). For a local build from source:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/maonakamoto/fleetcrown.git
|
||||
|
||||
@@ -4,7 +4,7 @@ import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
||||
// v0.7.4 — bundled renderer removed.
|
||||
//
|
||||
// Pre-0.7.4 the desktop app shipped TWO UI implementations:
|
||||
// 1. The Next.js app at fleetcrown.vercel.app (the real UI, all features)
|
||||
// 1. The Next.js app at fleetcrown.orangecat.ch (the real UI, all features)
|
||||
// 2. A 407-line bundled renderer in src/renderer/ that read agent-projects.conf
|
||||
// and never reached feature parity with /control
|
||||
//
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"main": "./out/main/index.js",
|
||||
"author": {
|
||||
"name": "FleetCrown",
|
||||
"email": "team@fleetcrown.vercel.app"
|
||||
"email": "team@fleetcrown.orangecat.ch"
|
||||
},
|
||||
"homepage": "https://fleetcrown.vercel.app",
|
||||
"homepage": "https://fleetcrown.orangecat.ch",
|
||||
"scripts": {
|
||||
"generate:icons": "node scripts/generate-tray-icon.mjs",
|
||||
"bundle:zellij": "node scripts/download-zellij.mjs",
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
import { loadToken } from './token-store'
|
||||
import type { Handoff } from '@/lib/events'
|
||||
|
||||
const BASE_URL = (process.env.FLEETCROWN_WEB_URL || '').trim() || 'https://fleetcrown.vercel.app'
|
||||
const BASE_URL = (process.env.FLEETCROWN_WEB_URL || '').trim() || 'https://fleetcrown.orangecat.ch'
|
||||
const COOLDOWN_MS = Number(process.env.FLEETCROWN_AUTOPILOT_COOLDOWN_S || 300) * 1000
|
||||
const MAX_ATTEMPTS = 3
|
||||
const BACKOFF_MS = [0, 1000, 4000]
|
||||
|
||||
+10
-10
@@ -24,7 +24,7 @@ import { loadToken, saveToken, clearToken, tokenDir } from './token-store'
|
||||
|
||||
// v0.7.4 — bundled renderer removed; one UI surface only.
|
||||
//
|
||||
// Fleet Runner wraps fleetcrown.vercel.app in a BrowserWindow + adds native
|
||||
// Fleet Runner wraps fleetcrown.orangecat.ch in a BrowserWindow + adds native
|
||||
// integrations (tray, deep-link auth, IPC for Peek + auto-mint + local-dev
|
||||
// scan, auto-update, splash, persisted window bounds). There is no longer
|
||||
// a parallel local renderer — the cloud /control IS the UI.
|
||||
@@ -32,7 +32,7 @@ import { loadToken, saveToken, clearToken, tokenDir } from './token-store'
|
||||
// Env overrides:
|
||||
// - FLEETCROWN_WEB_URL=https://... → load a preview/dev URL instead of
|
||||
// the production cloud (for testing).
|
||||
// - FLEETCROWN_WEB_URL unset/cloud → fleetcrown.vercel.app (default).
|
||||
// - FLEETCROWN_WEB_URL unset/cloud → fleetcrown.orangecat.ch (default).
|
||||
//
|
||||
// On load failure (Vercel down, no wifi, OAuth callback to unreachable
|
||||
// host) the user sees a branded offline page with a retry button, NOT
|
||||
@@ -317,7 +317,7 @@ function buildAppMenu(): Menu {
|
||||
defaultId: 1,
|
||||
cancelId: 1,
|
||||
}).then(({ response }) => {
|
||||
if (response === 0) void shell.openExternal('https://fleetcrown.vercel.app')
|
||||
if (response === 0) void shell.openExternal('https://fleetcrown.orangecat.ch')
|
||||
})
|
||||
}
|
||||
|
||||
@@ -403,14 +403,14 @@ function buildAppMenu(): Menu {
|
||||
{
|
||||
label: 'Help',
|
||||
submenu: [
|
||||
{ label: 'FleetCrown Website', click: openExternal('https://fleetcrown.vercel.app') },
|
||||
{ label: 'Quickstart Docs', click: openExternal('https://fleetcrown.vercel.app/docs/quickstart') },
|
||||
{ label: 'FleetCrown Website', click: openExternal('https://fleetcrown.orangecat.ch') },
|
||||
{ label: 'Quickstart Docs', click: openExternal('https://fleetcrown.orangecat.ch/docs/quickstart') },
|
||||
{ label: 'Report an Issue', click: openExternal('https://github.com/maonakamoto/fleetcrown/issues/new') },
|
||||
{ label: 'View Releases', click: openExternal('https://github.com/maonakamoto/fleetcrown-releases/releases') },
|
||||
{ type: 'separator' },
|
||||
{ label: 'Privacy', click: openExternal('https://fleetcrown.vercel.app/privacy') },
|
||||
{ label: 'Terms', click: openExternal('https://fleetcrown.vercel.app/terms') },
|
||||
{ label: 'License', click: openExternal('https://fleetcrown.vercel.app/license') },
|
||||
{ label: 'Privacy', click: openExternal('https://fleetcrown.orangecat.ch/privacy') },
|
||||
{ label: 'Terms', click: openExternal('https://fleetcrown.orangecat.ch/terms') },
|
||||
{ label: 'License', click: openExternal('https://fleetcrown.orangecat.ch/license') },
|
||||
...(isMac ? [] : [
|
||||
{ type: 'separator' as const },
|
||||
{ label: 'About Fleet Runner', click: showAbout },
|
||||
@@ -829,7 +829,7 @@ app.whenReady().then(async () => {
|
||||
applicationName: 'Fleet Runner',
|
||||
applicationVersion: app.getVersion(),
|
||||
copyright: '© 2026 Mao Nakamoto · FleetCrown',
|
||||
website: 'https://fleetcrown.vercel.app',
|
||||
website: 'https://fleetcrown.orangecat.ch',
|
||||
credits: 'Bundled Zellij, deep-link auth, auto-update.\nPart of the FleetCrown agent-fleet platform.',
|
||||
})
|
||||
|
||||
@@ -889,7 +889,7 @@ app.whenReady().then(async () => {
|
||||
|
||||
// Wire the command poller — the cable that closes the web → local Zellij
|
||||
// loop. Status updates flow to the tray tooltip and to any renderer window
|
||||
// that wants to surface "connected to fleetcrown.vercel.app" in the UI.
|
||||
// that wants to surface "connected to fleetcrown.orangecat.ch" in the UI.
|
||||
onPollerStatus((status) => {
|
||||
if (tray) tray.setToolTip(formatTrayTooltip(status))
|
||||
// Push to all renderer windows — web-shell mode means the in-window
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { contextBridge, ipcRenderer } from 'electron'
|
||||
|
||||
// `window.fleetRunner` — the IPC bridge from the web shell (Next.js app
|
||||
// loaded from fleetcrown.vercel.app) into Fleet Runner's main process.
|
||||
// loaded from fleetcrown.orangecat.ch) into Fleet Runner's main process.
|
||||
//
|
||||
// Every method must justify itself with a real local-only capability:
|
||||
// something the cloud literally cannot do because it requires reaching
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
# deploy-hetzner.sh — ship the production build to the bitbaum Hetzner box.
|
||||
#
|
||||
# The box serves FleetCrown at https://fleetcrown.orangecat.ch (Caddy →
|
||||
# 127.0.0.1:4002, systemd unit fleetcrown-app). Box-side .env, launch.sh and
|
||||
# backups/ are owned by the box and never touched by a deploy.
|
||||
#
|
||||
# Usage:
|
||||
# bash scripts/deploy-hetzner.sh # build + rsync + restart
|
||||
# bash scripts/deploy-hetzner.sh --no-build # rsync an existing build
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
HOST="root@${HETZNER_IP:-167.233.22.31}"
|
||||
APP_DIR="/opt/fleetcrown/app"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
STANDALONE="$PROJECT_DIR/.next/standalone"
|
||||
|
||||
if [ "${1:-}" != "--no-build" ]; then
|
||||
(cd "$PROJECT_DIR" && npm run build)
|
||||
fi
|
||||
|
||||
if [ ! -d "$STANDALONE/.next/static" ]; then
|
||||
echo "✗ $STANDALONE missing static assets — run npm run build first" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "→ rsync standalone → $HOST:$APP_DIR"
|
||||
rsync -az --delete \
|
||||
--exclude '.env' \
|
||||
--exclude 'launch.sh' \
|
||||
--exclude 'backups' \
|
||||
"$STANDALONE/" "$HOST:$APP_DIR/"
|
||||
|
||||
echo "→ restart fleetcrown-app on box"
|
||||
ssh "$HOST" "chown -R ubuntu:ubuntu $APP_DIR \
|
||||
&& systemctl restart fleetcrown-app \
|
||||
&& sleep 3 \
|
||||
&& systemctl is-active fleetcrown-app \
|
||||
&& curl -s -o /dev/null -w 'box app HTTP %{http_code}\n' http://127.0.0.1:4002/sign-in"
|
||||
|
||||
echo "✓ deployed $(cd "$PROJECT_DIR" && git rev-parse --short HEAD) to Hetzner"
|
||||
@@ -21,7 +21,7 @@ export default async function SystemPage() {
|
||||
// listCronJobsForUser is the only direct DB await on this route. When it
|
||||
// throws (cloud Neon DB connectivity blip, table not provisioned on a
|
||||
// fresh branch, etc.) the entire page crashes into the global error
|
||||
// boundary — caught live on fleetcrown.vercel.app/system showing
|
||||
// boundary — caught live on fleetcrown.orangecat.ch/system showing
|
||||
// "Something went wrong" with the Server Components render error.
|
||||
// Defensive: fall back to an empty list so the rest of the page renders
|
||||
// (AutopilotCard handles empty initialJobs cleanly). The error is
|
||||
|
||||
@@ -153,7 +153,7 @@ export async function GET() {
|
||||
token && envToken === token ? "daemon.env matches fleet-runner-token." : "daemon.env and fleet-runner-token differ.",
|
||||
));
|
||||
|
||||
const remoteBase = (env.FLEETCROWN_BASE_URL || "https://fleetcrown.vercel.app").replace(/\/$/, "");
|
||||
const remoteBase = (env.FLEETCROWN_BASE_URL || "https://fleetcrown.orangecat.ch").replace(/\/$/, "");
|
||||
if (token) {
|
||||
try {
|
||||
const res = await fetch(`${remoteBase}/api/beacon-settings`, {
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function QuickstartPage() {
|
||||
</p>
|
||||
<ul className="list-disc pl-6 space-y-2">
|
||||
<li>
|
||||
<strong>Web</strong> (<Link href="/" className="ui-public-link">fleetcrown.vercel.app</Link>) — works in any browser. Best for monitoring fleets, reviewing handoffs, and dispatching when you're not at the agent's machine.
|
||||
<strong>Web</strong> (<Link href="/" className="ui-public-link">fleetcrown.orangecat.ch</Link>) — works in any browser. Best for monitoring fleets, reviewing handoffs, and dispatching when you're not at the agent's machine.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Desktop</strong> (<Link href="/download" className="ui-public-link">Fleet Runner</Link>) — required if you want agents to actually run on this machine. Same UI as the web app, plus the local runtime that drives terminals and the OS notifications when runs finish.
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ export const authConfig = {
|
||||
|
||||
// On Vercel, the Edge Runtime sees the raw deployment URL (the internal
|
||||
// Vercel project is legacy-named "cockpit" pending rename, so URLs are
|
||||
// cockpit-<hash>-<org>.vercel.app) not the custom fleetcrown.vercel.app
|
||||
// cockpit-<hash>-<org>.vercel.app) not the custom fleetcrown.orangecat.ch
|
||||
// alias. x-forwarded-host carries the real host the user typed.
|
||||
const host =
|
||||
request.headers.get("x-forwarded-host") ?? request.nextUrl.host;
|
||||
|
||||
@@ -217,7 +217,7 @@ export function DaemonStatusBanner({
|
||||
and paste this in a terminal:
|
||||
</p>
|
||||
<pre className="ui-card-shell p-2 overflow-x-auto text-xs">
|
||||
<code>curl -fsSL https://fleetcrown.vercel.app/api/agent/install | node - init --token ck_xxxxxxxx</code>
|
||||
<code>curl -fsSL https://fleetcrown.orangecat.ch/api/agent/install | node - init --token ck_xxxxxxxx</code>
|
||||
</pre>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ export const ROUTES = {
|
||||
// - "link" → single direct link in the top nav
|
||||
// - "external" → link to another origin (sibling product, etc.)
|
||||
// Rendered with an explicit external-target indicator so
|
||||
// visitors know they are leaving fleetcrown.vercel.app.
|
||||
// visitors know they are leaving fleetcrown.orangecat.ch.
|
||||
// The shape is per-entry so we never paint a one-item dropdown.
|
||||
|
||||
export type PublicNavItem = NavLink & { description: string };
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@
|
||||
|
||||
export const APP_NAME = "FleetCrown";
|
||||
export const APP_SLUG = "fleetcrown";
|
||||
export const APP_DOMAIN = "fleetcrown.vercel.app";
|
||||
export const APP_DOMAIN = "fleetcrown.orangecat.ch";
|
||||
export const APP_KICKER = "Personal Systems";
|
||||
export const APP_DESCRIPTION = "Command your agents, projects, and personal systems from one workspace.";
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ export const FLEET_RUNNER_RELEASES: ReleaseEntry[] = [
|
||||
"Switch-agent commands now scan /proc and quit every running agent in the project directory before launching the replacement.",
|
||||
],
|
||||
breaking: [],
|
||||
notes: "Mostly a web UI + API release — deploys immediately on fleetcrown.vercel.app. Fleet Runner v0.8.0 picks up the improved remote switch_agent poller when you next update the desktop app; until then, cloud-queued switches still work on the existing runner.",
|
||||
notes: "Mostly a web UI + API release — deploys immediately on fleetcrown.orangecat.ch. Fleet Runner v0.8.0 picks up the improved remote switch_agent poller when you next update the desktop app; until then, cloud-queued switches still work on the existing runner.",
|
||||
},
|
||||
{
|
||||
version: "0.7.9",
|
||||
@@ -142,7 +142,7 @@ export const FLEET_RUNNER_RELEASES: ReleaseEntry[] = [
|
||||
date: "2026-06-06T12:51:05Z",
|
||||
highlights: [
|
||||
"Reverted the v0.7.0 'bundled-renderer-as-primary' boot flip.",
|
||||
"Fleet Runner opens fleetcrown.vercel.app inside Electron again — the same UI you know from the browser.",
|
||||
"Fleet Runner opens fleetcrown.orangecat.ch inside Electron again — the same UI you know from the browser.",
|
||||
"Updated download CTA on the marketing site to point at the latest release dynamically.",
|
||||
],
|
||||
breaking: [],
|
||||
|
||||
@@ -220,7 +220,7 @@ export const ROADMAP = {
|
||||
"Subscriptions as assets — FleetCrown's Money tab knows what the operator pays for; OrangeCat coordinates funding, lending, and shared-asset ownership so dragging subscriptions can be refinanced or sublet without leaving the platform.",
|
||||
"FleetCrown pricing on Lightning rails — FleetCrown's own revenue settles through OrangeCat. No Stripe in the path. Pseudonymous customers welcome.",
|
||||
],
|
||||
note: "The pieces exist in production today on both platforms (fleetcrown.vercel.app and orangecat.ch). FleetCrown is a customer of OrangeCat (via typed stakeholder 'customer' edge in the shared graph). See the live projects 'OrangeCat' and 'FleetCrown' on orangecat.ch under Mao Nakamoto. The integration is engineering, not invention. See the Thoughts essay \"The Two Halves of the Individual Singularity\" for the full strategic argument.",
|
||||
note: "The pieces exist in production today on both platforms (fleetcrown.orangecat.ch and orangecat.ch). FleetCrown is a customer of OrangeCat (via typed stakeholder 'customer' edge in the shared graph). See the live projects 'OrangeCat' and 'FleetCrown' on orangecat.ch under Mao Nakamoto. The integration is engineering, not invention. See the Thoughts essay \"The Two Halves of the Individual Singularity\" for the full strategic argument.",
|
||||
},
|
||||
{
|
||||
marker: "ROBOTICS",
|
||||
@@ -475,7 +475,7 @@ export const DESKTOP_DOWNLOAD = {
|
||||
body:
|
||||
"For CI runners, headless servers, or operators who prefer a pure CLI flow. Fleet Runner is the recommended path; the daemon remains available during the transition.",
|
||||
command:
|
||||
"curl -fsSL https://fleetcrown.vercel.app/api/agent/install | node - init",
|
||||
"curl -fsSL https://fleetcrown.orangecat.ch/api/agent/install | node - init",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -547,7 +547,7 @@ export const ORANGECAT_INTEGRATION = {
|
||||
fleetCrown: {
|
||||
title: "FleetCrown",
|
||||
projectUrl: "https://www.orangecat.ch/projects/8130c927-114a-45b7-8cc2-99efd5224025",
|
||||
site: "https://fleetcrown.vercel.app",
|
||||
site: "https://fleetcrown.orangecat.ch",
|
||||
},
|
||||
wallet: {
|
||||
btc: "bc1q3hh4yklcmwtpnqmxyksw36yedg7zyfy6tzzqwz",
|
||||
|
||||
@@ -183,7 +183,7 @@ const NEXTJS_README = `# {{NAME}}
|
||||
|
||||
{{DESCRIPTION}}
|
||||
|
||||
> Generated by [FleetCrown](https://fleetcrown.vercel.app/) — the captain-mode command center for your AI agent fleet.
|
||||
> Generated by [FleetCrown](https://fleetcrown.orangecat.ch/) — the captain-mode command center for your AI agent fleet.
|
||||
|
||||
## Stack
|
||||
|
||||
@@ -265,7 +265,7 @@ const FASTAPI_README = `# {{NAME}}
|
||||
|
||||
{{DESCRIPTION}}
|
||||
|
||||
> Generated by [FleetCrown](https://fleetcrown.vercel.app/).
|
||||
> Generated by [FleetCrown](https://fleetcrown.orangecat.ch/).
|
||||
|
||||
## Stack
|
||||
|
||||
@@ -395,7 +395,7 @@ const HONO_README = `# {{NAME}}
|
||||
|
||||
{{DESCRIPTION}}
|
||||
|
||||
> Generated by [FleetCrown](https://fleetcrown.vercel.app/).
|
||||
> Generated by [FleetCrown](https://fleetcrown.orangecat.ch/).
|
||||
|
||||
## Stack
|
||||
|
||||
@@ -473,7 +473,7 @@ const HTML_README = `# {{NAME}}
|
||||
|
||||
{{DESCRIPTION}}
|
||||
|
||||
> Generated by [FleetCrown](https://fleetcrown.vercel.app/).
|
||||
> Generated by [FleetCrown](https://fleetcrown.orangecat.ch/).
|
||||
|
||||
## Stack
|
||||
|
||||
|
||||
Reference in new issue
Block a user