Commit Graph
17 Commits
Author SHA1 Message Date
Mao Nakamoto e61b97f21a docs(home): correct setup docs that pointed at the retired Brain
Dogfooding the local dispatch loop (drive orangecat from FleetCrown) dead-ends
immediately: the documented way to boot the engine references files deleted in
a3f470d. That commit retired the standalone Brain (home/server.ts, :3001) and
its scripts/home-start.sh launcher — Fleet Runner desktop is now the sole local
executor — but explicitly deferred the doc cleanup to a "Session 4c" that never
happened. So a reader following the docs runs commands for files that don't
exist.

home/README.md:
- Title/intro/diagram no longer present the 3-process Brain stack as current;
  they describe the 2 remaining pieces (watcher + worker) + Fleet Runner.
- "## Run": drop `bash scripts/home-start.sh` and `npx tsx home/server.ts`;
  document the real per-piece `--start` iteration path.
- Smoke-test sections: replace dead `POST :3001/api/dispatch|/api/cancel` with
  the verified current path — appending bridge.dispatch / bridge.cancel events
  straight to ~/.<slug>/events.jsonl (the worker's actual contract).
- Files table: drop the deleted server.ts row; add the real state.ts / log.ts.
- Testing note: server.ts HTTP testing claim removed.

CLAUDE.md: home/ stack description + Dev Commands updated to match (Fleet
Runner is the executor; no home-start.sh).

Docs-only; every remaining server.ts/home-start mention is explicitly historical.
2026-06-15 11:57:14 +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
Georgy Butaev c4aaa654a0 fix: correct naming - fleetcrown not fleetwave (user correction)
- 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.
2026-06-02 16:23:07 +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
g-but 94d50da677 fix(agent): advertise hosted installer command 2026-05-26 13:26:21 +02:00
g-butandCursor 87e6104b35 fix(mobile): redesign bottom nav, Control layout, and page chrome
Mobile was cramped by six bottom tabs plus a floating FAB. Consolidate to five slots with Ask Ivy in the bar, put Control's brain panel first, and tighten spacing/safe-area padding across shell pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 17:33:41 +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-but 9e2888e60b docs: stop hardcoding test counts in README + CLAUDE.md
home/README.md said 'state.ts # 15 tests' and CLAUDE.md said '76 inline
tests' — both stale already (3ff199f added 2 state regressions so the
true count is 17/78). Every test-add commit was implicitly creating
a doc-rot debt. Replaced the hardcoded numbers with semantic labels
('event projection', 'autonomy + confidence', etc.) and added one
short note that 'npm run test:home' aggregates the actual N/M total —
the real count lives in the test runner output, not in prose.

No code change. tsc clean.
2026-05-20 07:20:52 +02:00
g-but 6bdc08a2f6 docs(claude): document the home/ local-first stack and pre-push hook
CLAUDE.md is the first file future agents read when entering this
repo. It described src/ tree, design system, conventions, and dev
commands — but never mentioned the home/ stack (server.ts + watcher.ts
+ worker.ts) that's been the focus of the last twenty commits. A new
agent walking in cold would only find the local Brain by accident.

Added a home/ block right after the src/ tree explaining the three
processes, the JSONL log, the UI port (3001), and pointing at the
boot command + npm run test:home + home/README.md for the full
breakdown. Also added 'npm run test:home' and 'bash scripts/
home-start.sh' to the Dev Commands section and a note about the
pre-push hook's gate.

No code change. Pure docs.
2026-05-20 06:58:01 +02:00
g-butandClaude Sonnet 4.6 1416d5b7c5 refactor(design): eliminate all SSOT/DRY violations; write design philosophy
globals.css:
- Add --text-nano (8px), --modal-max-height (85vh), --page-min-height (60vh) tokens
- Add .ui-empty-page class (centers error/empty/placeholder pages)
- Add .ui-channel-* classes (WhatsApp/Telegram/Phone/In-person brand colors)
- Add .ui-lang-* classes (TypeScript/JS/Python/Go/Rust/Ruby/C#/Java badge colors)

Components — eliminate every flagged violation:
- channels.ts: raw Tailwind color strings → ui-channel-* class names
- onboarding/page.tsx: LANG_COLORS raw classes → ui-lang-* class names
- MobileNav.tsx, modal.tsx: shadow-[var(--shadow-panel-strong)] → shadow-panel-strong
- HabitHeatmap.tsx: text-[8px] → text-nano
- ready-banner.tsx, page.tsx, whitepaper/page.tsx: text-[10px] → text-micro
- not-found.tsx, error.tsx, PlaceholderView.tsx: min-h-[60vh] → ui-empty-page
- ActionButtons.tsx: min-h-[44px] min-w-[44px] → min-h-11 min-w-11
- u/[username]/page.tsx: h-[72px] w-[72px] → h-18 w-18

CLAUDE.md: replace vague styling section with full four-layer design philosophy —
decision tree, audit command, complete ui-* class catalog, what is/isn't allowed in JSX.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 12:40:18 +02:00
g-butandClaude Sonnet 4.6 24a7bdc26a fix(ux+multi-user): nav copy SSOT + multi-tenancy read path + mission
Navigation:
- Add description field to NavItem type (navigation.ts is now SSOT)
- Write real per-item descriptions for all 12 nav items
  - Control: "Dispatch agents across projects" (was "Brain switching")
  - 9 generic items: specific descriptions (was "Tracked view" x9)
- Sidebar reads item.description instead of hardcoded ternary
- Control page subtitle: "Dispatch AI agents across your projects — pick an intent and fire"
  (was "Switch brains, models, and terminal sessions")

Multi-user read path fix:
- today.ts: all 5 functions now accept userId param (was DEFAULT_USER_ID)
- goals.ts: getGoals/getGoalStats now accept userId param
- goals/page.tsx, prompts/page.tsx: call getCurrentUserId()
- CommitmentsCard, GoalsDueCard, SubscriptionsCard, SummaryBar: call getCurrentUserId()
- actions.ts fulfillCommitment: call getCurrentUserId() in server action

CLAUDE.md:
- Add Mission section (2-sentence product definition)
- Add control/ to Architecture component list
- Add /control, /thoughts, /settings to Views table
- Update /control description to match actual fleet command feature

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 03:32:14 +02:00
g-butandClaude Sonnet 4.6 e84b6d4f0a feat: GitHub OAuth, design system rebuild, reliability fixes (M1-M7)
Auth & multi-user:
- GitHub OAuth via next-auth DrizzleAdapter; signIn callback absorbs first
  login into is_default=true user so all pre-auth data stays accessible
- getCurrentUserId() helper; onboarding + profile pages
- normalizeUsername() extracted to lib/username.ts (DRY fix)

Design system:
- All public pages (landing, sign-in, onboarding, settings) rebuilt to use
  ui-* classes and semantic tokens only — zero raw Tailwind color violations
- ui-input, ui-btn-*, ui-panel, bg-surface-*, text-text-* throughout

Reliability (M1–M7):
- M1: Stale claude-stop-active lock cleanup on stop hook entry
- M2: /api/inject validates tab exists in Zellij before writing /tmp
- M3: Prompt SSOT unified — claude-prompts.json single array format
- M4: DBUS UID hardcode removed (already in dotfiles)
- M5: auth.ts signIn callback + AdapterAccountType cast
- M6: project_states DB table — persists ready/closing/closed/session/prompt
  across reboots; stop.sh PATCHes on stop/close; control falls back to DB
  when /tmp is empty (24h window); inject writes currentPrompt to DB
- M7: scheduleOpenClawWorker now async; waits for spawn event (2s timeout);
  marks run as error in DB if worker fails to start

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 18:20:46 +02:00
g-butandClaude Opus 4.7 bceacc8222 chore(husky): add pre-commit hook running tsc + eslint
Adds husky as a dev dep and wires .husky/pre-commit to run:
  npx tsc --noEmit
  npx eslint src/

Both must pass for the commit to land. Smoke is intentionally NOT in
the hook because it needs a live dev server — run `npm run smoke`
manually before opening a PR.

Catches the regressions a 100-commit refactor sweep can introduce
(broken zod schema, missed import, accidentally-disabled rule)
before they reach origin/main, complementing the human / cron /
agent commit flow we've established.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 11:35:54 +02:00
g-butandClaude Opus 4.7 b9aa7e657c chore(scripts): add npm run smoke — route-level regression check
Until now the codebase had zero automated coverage; every refactor
relied on a manual curl loop. scripts/smoke.sh runs that loop in one
command: probe BASE/, then GET every page route and assert 2xx/3xx.

- Routes match config/navigation.ts NAV_ITEMS plus the / redirect
- BASE env var override for prod smoke (defaults to localhost:3000)
- Fast-fails with a clear "start the dev server first" message if
  the base is unreachable, instead of dribbling 11 curl errors
- No new dependencies — bash + curl only

Verified: all 11 routes return 200 against the running dev server.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 18:30:20 +02:00
g-butandClaude Opus 4.7 6384f60847 docs(claude): bring CLAUDE.md back in sync with the shipped codebase
Audit caught documentation drift:
- Views table listed 7 routes; the codebase ships 10. Add Habits,
  Events, Prompts and refresh the Status column for the routes whose
  capabilities have grown (inline editors, daily habit check-off,
  archive flow, etc.).
- Architecture tree missed components/{events,habits,goals,money,
  prompts,system}, the projects subdir's split, and the new hooks
  beyond useFetch (useCreateMutation, useInlineEdit). Updated.
- SSOT Rules block didn't list the new shared primitives or helpers
  worth knowing — Modal/Drawer, Field/FIELD_INPUT_CLASS{,_COMPACT},
  HABIT_HISTORY_DAYS, useInlineEdit, useCreateMutation, lib/dates.ts.

CLAUDE.md is the project-root contract for future sessions and
contributors; keeping it in sync is a real user-impact fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 18:18:10 +02:00
g-butandClaude Opus 4.6 afcc318468 feat: CLAUDE.md, real goals, zellij tab mapping
- CLAUDE.md with full project conventions, architecture, SSOT rules
- Seed 10 real goals: God Mode, Financial Independence, Civilizational Stack, Health, Relationships + 5 sub-goals with milestones
- Add Cockpit to ~/.config/claude-projects.conf for zellij auto-detect

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 00:36:24 +02:00