Commit Graph
10 Commits
Author SHA1 Message Date
Mao NakamotoandClaude Opus 4.7 3c1f8bf6f5 chore: workflow Node 24 actions + marketing back in sync with shipped mac
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>
2026-06-03 15:29:51 +02:00
Mao NakamotoandClaude Opus 4.7 ab8cf87e4a chore(release): mirror script for desktop releases until PAT is wired
The desktop-release workflow's electron-builder publish lands as a DRAFT
release on maonakamoto/fleetcrown tagged v<version> (no fleet-runner-
prefix — that's an electron-builder limitation). The canonical public
download host is maonakamoto/fleetcrown-releases tagged fleet-runner-v*.

scripts/mirror-desktop-release.sh:
- Downloads the draft assets from fleetcrown by their v<version> tag.
- Creates the fleet-runner-v<version> release on fleetcrown-releases (or
  uploads missing assets if it already exists — idempotent).
- Prints the cleanup command for the now-redundant draft.

Workflow comment updated to point at the script and TODO the cross-repo
PAT path (RELEASES_REPO_TOKEN) that would let electron-builder publish
directly to fleetcrown-releases and eliminate the mirror step entirely.

No runtime changes — purely the post-release tooling.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 14:55:00 +02:00
Mao NakamotoandClaude Opus 4.7 aaab630bd7 feat(desktop+marketing): web-shell default, multi-OS release pipeline, honest download UX
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>
2026-06-03 10:37:30 +02:00
g-but 07bbcfdb17 ci: upgrade github actions runtime 2026-05-28 13:08:59 +02:00
g-but 46a621713d ci: opt actions into node 24 runtime 2026-05-28 12:59:23 +02:00
g-but f6dc058459 chore(repo): sharpen public repo surface 2026-05-28 12:47:41 +02:00
g-butandClaude Opus 4.7 8faa4e2e6a ci: GitHub Actions watches Vercel deploy on push to main
Pair to the local scripts/wait-for-vercel.sh (154c354). When a deploy
fails in production (CRON_SECRET whitespace last incident, build break,
runtime config drift), the workflow turns the commit's check red so the
failure is visible in the GitHub UI without anyone having to invoke the
local script.

Mechanism:
  - Triggers on push to main, runs in parallel with the existing
    ci.yml tsc+lint job.
  - Polls https://api.vercel.com/v6/deployments?projectId=… via
    Authorization: Bearer $VERCEL_TOKEN; matches deployment by
    github.sha so it waits past any stale "previous deploy" reading
    in the first ~30s after push.
  - 480s deadline (Vercel typically 60-120s build). Exits 0 on READY,
    1 on ERROR|CANCELED, 2 on timeout.
  - Skips gracefully when VERCEL_TOKEN / VERCEL_PROJECT_ID secrets
    are not configured — never breaks CI for unconfigured repos.

One-time setup (documented in the workflow header):
  Settings → Secrets → add VERCEL_TOKEN, VERCEL_PROJECT_ID, VERCEL_ORG_ID.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 02:14:02 +02:00
g-butandClaude Opus 4.7 ac800a161c chore(ci): daily Audit workflow surfaces new CVEs as they land
Adds .github/workflows/audit.yml — runs `npm audit --audit-level=high`
every day at 07:13 UTC plus on-demand via the Actions tab. Fails when
a HIGH or CRITICAL severity vulnerability enters the dep graph.

The off-the-hour minute (13 vs 0) spreads fleet load. Moderate vulns
are intentionally not the trigger — the chronic transitive-noise from
esbuild-via-drizzle-kit and postcss-via-next would flap the workflow
constantly without giving us actionable signal.

A failing run is the cue to either run `npm audit fix` (if non-breaking)
or evaluate the breaking-fix path. Verified: workflow YAML parses,
`npm audit --audit-level=high` currently exits 0 since b53421d patched
the Next.js DoS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 20:45:44 +02:00
g-butandClaude Opus 4.7 aa75af712f fix(ci): drop the build step — needs a live DB the workflow can't have
The first run of cca3113 failed because /events (and likely every other
DB-backed page) does its DB query during Next's static pre-render,
hitting the stub DATABASE_URL with ECONNREFUSED.

Two options to fix:
  A) Mark every DB-backed page `export const dynamic = "force-dynamic"`.
     Real fix, but it's a prod-behavior change (every request re-fetches
     instead of serving cached HTML).
  B) Drop `next build` from CI and rely on Vercel's deploy build —
     which has a real DB attached — to catch build issues.

Going with B. Pre-commit + CI now gate type/lint (cheap, fast,
DB-independent); Vercel gates build (slow, DB-aware). Layered checks,
each at the right place.

If the DB-time-of-render coupling becomes a problem later — e.g. a
contributor breaks the build but Vercel doesn't deploy that branch —
revisit and add postgres-service + drizzle-push to the workflow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 11:44:26 +02:00
g-butandClaude Opus 4.7 cca31135c7 chore(ci): add GitHub Actions workflow running tsc + eslint + build
Pre-commit (bceacc8) catches local commits, but anything pushed with
--no-verify or arriving via a PR from a fork bypasses it. Add a
GitHub Actions workflow that runs the same checks on origin (push to
main and every PR) plus a `next build` to catch issues that only
surface during compilation.

- Node 22 with npm cache (subsequent runs reuse node_modules)
- Concurrency: cancels in-progress runs on the same ref so quick
  commit chains don't waste minutes
- DATABASE_URL is set to a syntactically-valid stub so src/db/index.ts
  doesn't throw at module-load; postgres-js pools lazily, no real
  connection happens during build

Belt-and-suspenders with the husky hook and Vercel's own build —
covers the case where Vercel is down or the PR author skipped local
hooks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 11:40:45 +02:00