new workflow joins the tailnet via tailscale oauth then triggers the coolify deploy endpoint. path filter scoped to web app + every package transpiled into it, so broker/cli/docs changes skip it. concurrency group coalesces rapid pushes. requires three repo secrets: COOLIFY_TOKEN, TS_OAUTH_CLIENT_ID, TS_OAUTH_SECRET (the OAuth client needs the devices:write scope and the tag:ci tag in tailnet ACL tagOwners). inline coolify token removed from CLAUDE.md — it now references the repo secret. broker deploy is unchanged: it runs through the gitea-vps webhook. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.3 KiB
2.3 KiB
claudemesh
Peer mesh for Claude Code sessions. Broker + CLI + MCP server.
Structure
apps/broker/— WebSocket broker (Bun + Drizzle + PostgreSQL), deployed atwss://ic.claudemesh.com/ws. Runs drizzle migrations on startup under pg_advisory_lock.apps/cli/—claudemesh-clinpm package (CLI + MCP server). Wasapps/cli-v2/until 2026-04-15; legacy v0 at branchlegacy-cli-archive+ tagcli-v0-legacy-final.apps/web/— Marketing site + dashboard at claudemesh.comdocs/— Protocol spec, quickstart, FAQ, roadmappackaging/— Homebrew formula + winget manifest templates.github/workflows/release-cli.yml— tagcli-v*→ 5 platform binaries → GitHub Release with SHA256SUMS
Key docs
SPEC.md— What claudemesh is, protocol, crypto, wire formatdocs/protocol.md— Wire protocol referencedocs/roadmap.md— Public roadmap (shipped + planned)docs/vision-20260407.md— Internal feature brainstorm with 19 ideas across 3 tiers, effort estimates, and build order
Deploy
- Broker:
git push gitea-vps maintriggers Coolify auto-deploy via the gitea webhook. Pending migrations apply automatically on startup. - Web: Coolify on the OVH VPS (
claudemesh.comresolves to135.125.191.245, NOT Vercel — theapps/web/Dockerfileis what Coolify builds). Auto-deploys via.github/workflows/deploy-web.ymlon push tomainwhen paths underapps/web/**orpackages/{api,db,auth,ui,i18n,shared,email,billing,storage,monitoring-web}/**change. The workflow joins the tailnet via Tailscale OAuth, then hits the Coolify API. - Manual deploy (if the workflow is broken or the path filter missed something) — Coolify dashboard at
http://100.122.34.28:8000(Tailscale only). Token inCOOLIFY_TOKENrepo secret. App UUIDs: brokermcn8m74tbxfxbplmyb40b2ia, webp68x1e3k4xmrjmblca5ybe09. - CLI:
- npm:
cd apps/cli && npm publish --access public --no-git-checks --ignore-scripts - Binaries:
git tag cli-v<version> && git push github cli-v<version>— workflow builds 5 platforms.
- npm:
Dev
- Monorepo: pnpm workspaces + Turborepo
- Broker dev:
cd apps/broker && bun --hot src/index.ts - CLI build:
cd apps/cli && pnpm build(Bun bundler) - CLI link for local testing:
cd apps/cli && npm link