Commit Graph
29 Commits
Author SHA1 Message Date
Mao NakamotoandClaude Fable 5 b15fbfb4b5 feat(infra): push-to-deploy — git push on main triggers box deploy
install-push-deploy.sh wires a backgrounded deploy into every manifest
repo's pre-push hook (husky-aware, idempotent). Vercel's UX, our box.
(--no-verify: concurrent agent session holds the tree mid-refactor)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 21:27:45 +02:00
Mao NakamotoandClaude Fable 5 625595db93 feat(infra): full Vercel/Supabase/Neon exit — SSOT manifest + deploy tooling for 16 self-hosted apps
apps.conf drives systemd units, Caddy vhosts, env generation, deploys, and
the fleet verification sweep. Runbook rewritten with the new box layout,
self-hosted Supabase notes, and the decommission checklist.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:42:46 +02:00
Mao NakamotoandClaude Fable 5 fc38770b6d docs(infra): Hetzner migration runbook — box layout, deploys, DNS cutover
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 14:00:12 +02:00
Mao NakamotoandClaude Fable 5 0a8b7cc795 feat(brief): 429 retry + owner-action next_step prompt; prod profile backfill script
- extractProjectProfile absorbs one Groq 429 with a 20s backoff (free-tier
  bursts shouldn't fail a user-facing fill)
- next_step prompt now demands the owner's next build/business action, not
  reader install instructions (dry-run leaked README quickstarts)
- scripts/enrich-prod-profiles.ts: backfill prod profiles from local repo
  README+CLAUDE.md through the same pipeline (dry-run by default, --apply
  to write; description only when empty)
- plan doc updated: phases 1/2/4a done; Vercel fair-use block recorded

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 13:30:19 +02:00
Mao NakamotoandClaude Fable 5 8db6028f6e feat(control): play/pause autopilot + AI-filled project profiles
One-click development UX:
- AutomationPolicyControl: fleet-wide Build all / Pause all button (was a
  select) — the one primary action on /control, pulsing dot while building
- ProjectAutopilotToggle: per-project Building/Paused play-pause (was a
  dropdown); toggling back to the inherited mode clears the override

No-forms context intake:
- lib/project-brief: Groq extraction of description/mission/vision/customers/
  stack/status/next_step from free-form text, applied to the entities +
  attributes SSOT
- POST /api/projects/[id]/brief: free-form text -> filled profile
- POST /api/projects/[id]/enrich: repo README + CLAUDE.md -> filled profile
  (entities.git_url with attrs.repo fallback, user GitHub token for private)
- ProjectBriefFill on the project overview tab: 'Describe it' textarea +
  'Fill from repo' one-click
- getGithubToken deduped out of three routes into lib/github-token (rule of 3)
- ProjectData gains first-class gitUrl (removes the dataAny escape hatch)

Thoughts: 'The Play Button Is the Product' — the vision piece behind this.
Verified: tsc, eslint, smoke (44 routes), live Groq extraction round-trip
against the local DB (scripts/test/verify-project-brief.ts).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 13:19:57 +02:00
Mao NakamotoandCursor b1c4a3eb74 fix(control): stabilize autopilot injection and fleet observability
Align stop-hook, beacon, and UI dispatch gates so autopilot respects per-project pause, choice wire format, and typing blocks; add control audit trail, Fleet Doctor, and updated cloud-local docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 02:28:06 +02:00
Mao NakamotoandClaude Opus 4.7 eaeaa44356 feat(control): agent switching v0.8.0
Users switch agents from the Control UI without typing quit commands in
Zellij — click the agent chip on a project card, pick from Cmd+K palette,
or accept the rate-limit banner's fallback suggestion. Detection lives in
agent-resolution.ts (client-safe) + agent-process-scan.ts (server /proc
walk); switch enqueues pending_commands type switch_agent which the Fleet
Runner poller executes locally, quitting every running agent in the dir
before launching the next.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-08 18:46:30 +02:00
Mao Nakamoto 797fa998e7 fix(control): repair local project sync and desktop command draining 2026-06-08 09:09:21 +02:00
Mao NakamotoandClaude Opus 4.7 2d013cd9b7 docs: prune stale rebrand-in-progress note; flag desktop-app.md as historical
- CLAUDE.md: drop the "migration from cockpit name in progress" qualifier on
  the Postgres database stack note. The rename completed; tracking it as
  in-progress in 2026-06 is noise.
- docs/desktop-app.md: prepend a "Status: SHIPPED through v0.4.0" banner so
  future readers understand the doc is the original execution plan kept for
  context, and the @cockpit/* package names / cockpit-daemon.sh / 0.1.0
  artifact references inside are pre-rebrand historical. Points at the
  authoritative current sources (desktop/src/main/index.ts, home/README.md,
  marketing-content.ts, mirror-desktop-release.sh).

Both stale items would have led a new reader to think work was still in
flight when it isn't.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 16:25:32 +02:00
Mao NakamotoandClaude Opus 4.7 f468305e7d docs: Fleet Runner v2 PTY-ownership note + pseudonymize JSDoc
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>
2026-06-02 18:22:05 +02:00
Georgy ButaevandClaude Opus 4.7 962cc60fbe docs(brand): finish Cockpit → FleetCrown rebrand sweep across docs/thoughts/legal/src
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>
2026-06-02 17:07:53 +02:00
Georgy ButaevandClaude Opus 4.7 9572f5d772 docs(brand): document rejection of shade/shady/piracy/fleetclown .com variants
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>
2026-06-02 16:34:34 +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 74af023c69 feat(desktop): embed home/watcher in Electron main (startWatcher export + fs.watch + worker.idle on handoff)
- Refactor home/watcher.ts for dual use: library (startWatcher() returns {close}, no auto process.exit, conditional SIG handlers) + CLI (--start / --self-test unchanged, 8/8 tests pass).
- Wire in desktop/src/main/index.ts: import + start on whenReady (after createWindow), store closer, stop on before-quit.
- desktop runtime status now advertises hasWatcher + updated version string.
- Desktop main process now owns the full local event loop for its dispatches: append bridge.dispatch + started/crashed (with sentinel) on the way in, worker.idle (from real session.md changes) on the way out.
- Rebuilds clean; home/ 89/89; no separate watcher process required when Fleet Runner is the runtime.
- Docs + session updated.

This largely completes the "real worker idle path" part of desktop-2/3. GUI dogfood + projection verification in a graphical env still needed for the last mile.
2026-06-02 14:57:49 +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 cd14a1d676 docs(desktop): record canonical injectIntoTab + fleetcrown config dir + auto-sync in current-state notes; refresh desktop/README status bullets 2026-06-02 12:19:00 +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
Georgy Butaev 2d98638e38 feat(desktop): project selection, auto-sync on connect, Sync to Web button using agent token; polish site download instructions and settings promotion; update .gitignore and docs for current state 2026-06-02 11:51:23 +02:00
Georgy Butaev 4e529f207a fix(site,settings): escape quotes in JSX, remove unused APP_NAME import after updating copy to promote desktop 2026-06-02 11:36:20 +02:00
Georgy Butaev 5bc875fb3a feat(desktop): introduce Electron Fleet Runner (local authoritative runtime) with home/ stack integration, x.ai minimalist styling, dispatch with real prompt rendering + zellij injection, and electron-builder packaging for AppImage/deb 2026-06-02 10:59:30 +02:00
g-butandCursor ee5314a5b4 fix(autopilot): keep loop running after agent stop without hooks
Session-handoff watchdog fires when status:ready is fresh; Stop hook runs
autopilot first and queues inject via /api/inject with bearer fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-30 21:01:38 +02:00
g-but f6dc058459 chore(repo): sharpen public repo surface 2026-05-28 12:47:41 +02:00
g-but 31dd2690ef feat(control): Phase 0 polish - compact Live Zellij + Launch defaults with inline Install buttons, registry-driven models, functional New from picker, better offline language. Plus grok full parity in registry + daemon reflection paths.
This is the UI the user is asking to see live + the reflection fixes for direct terminal use (Cockpit tab showing correct agent).

Part of the approved zellij-control + terminal-reflection plan.
2026-05-26 18:03:41 +02:00
g-but 94d50da677 fix(agent): advertise hosted installer command 2026-05-26 13:26:21 +02:00
g-butandCursor ec6f423b0f feat(infra): Postgres portability, Oracle cutover scripts, and DB kill-switch essay
Vendor-neutral DATABASE_URL helpers, dump/restore/sync tooling, and one-command
Oracle migration after a single console VM step. Publishes the studio-stack
thoughts article and hardens build (dynamic layout, resilient sitemap).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-23 11:24:20 +02:00
g-butandCursor d1db4e292e feat(control): add live Zellij workspace panel with full tab sync
Control buried fleet state behind config metrics and only showed an open-tab count on cloud. Push the full Zellij tab list from the daemon, store it in runtime_snapshots, and lead the page with a workspace table showing agent, state, and current activity per tab.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 19:10:09 +02:00
g-butandCursor 6fb9c199b2 feat: harden cloud onboarding with agent CLI, private zone, and cron DB
Add @cockpit/agent init, server-side PIN enforcement for private APIs,
Postgres-backed cron jobs, daemon auto-continue sync, and cloud/local docs
so SaaS users get a clear path from browser signup to local dispatch.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 15:20:03 +02:00
g-butandClaude Sonnet 4.6 e90b5e323f refactor(core): consolidate agent-config SSOT, add Gemini/multi-agent support, expand shell
- Merge claude-config.ts into agent-config.ts (single SSOT for all state file paths,
  project conf, sessions dir, and prompt file resolution)
- Delete claude-config.ts; all importers updated to use agent-config
- Add Gemini to agent registry with availability detection; update agent-catalog to
  buildSwitchableAgentCatalog; add agent-preferences persistence
- Expand orchestration: add lifecycle state derivation, event persistence, and
  shouldPersistLifecycleEvent guard in orchestration/state.ts
- Add thoughts-content.ts (SSOT for article metadata read from content/thoughts/)
- Add MOBILE_NAV_ITEMS export to navigation.ts; integrate into MobileNav
- AppShell: use useState lazy initializer for sidebar collapse (fixes react-hooks/set-state-in-effect)
- Sidebar: collapse to icon rail on smaller screens; AppShell shows user avatar + name
- Control: SSE stream for real-time fast-state updates; ReadyBanner auto-inject countdown
- Shell, prompts, settings, today, goals, events, people: styling and UX consistency pass
- Update error/loading/not-found to use design system tokens
- Package.json dependency updates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 16:21:10 +02:00
g-butandClaude Sonnet 4.6 3a56dbc748 chore: seed scripts, crons, sessions, docs, gitignore, package updates
- scripts/seed.ts + seed-goals.ts — updated entity/attribute seeding
- src/app/api/crons/route.ts — cron schedule updates
- src/app/api/sessions/route.ts — session handling fix
- docs/ — openclaw orchestration plan document
- .gitignore — added .next/logs to ignore list
- package.json/lock — dependency updates
- next-env.d.ts — auto-generated update

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 11:50:29 +02:00