d86f2bea03
feat(mcp): apps.logs — compose-aware runtime logs
...
Adds apps.logs MCP tool + session REST endpoint for tailing runtime
container logs. Unblocks cold-start debugging for agent-deployed
compose apps (Twenty, Cal.com, Plane, etc.) where Coolify's own
/applications/{uuid}/logs endpoint returns empty.
Architecture:
- dockerfile / nixpacks / static apps → Coolify's REST logs API
- dockercompose apps → SSH into Coolify host,
`docker logs` per service
New SSH path uses a dedicated `vibn-logs` user (docker group, no
sudo, no pty, no port-forwarding, single ed25519 key). Private key
lives in COOLIFY_SSH_PRIVATE_KEY_B64 on the vibn-frontend Coolify
app; authorized_key is installed by scripts/setup-vibn-logs-user.sh
on the Coolify host.
Tool shape:
params: { uuid, service?, lines? (default 200, max 5000) }
returns: { uuid, buildPack, source: 'coolify_api'|'ssh_docker'|'empty',
services: { [name]: { container, lines, bytes, logs, status? } },
warnings: string[], truncated: boolean }
Made-with: Cursor
2026-04-23 13:21:52 -07:00
651ddf1e11
Rip out Theia, ship P5.1 attach E2E + Justine UI work-in-progress
...
Theia rip-out:
- Delete app/api/theia-auth/route.ts (Traefik ForwardAuth shim)
- Delete app/api/projects/[projectId]/workspace/route.ts and
app/api/projects/prewarm/route.ts (Cloud Run Theia provisioning)
- Delete lib/cloud-run-workspace.ts and lib/coolify-workspace.ts
- Strip provisionTheiaWorkspace + theiaWorkspaceUrl/theiaAppUuid/
theiaError from app/api/projects/create/route.ts response
- Remove Theia callbackUrl branch in app/auth/page.tsx
- Drop "Open in Theia" button + xterm/Theia PTY copy in build/page.tsx
- Drop theiaWorkspaceUrl from deployment/page.tsx Project type
- Strip Theia IDE line + theia-code-os from advisor + agent-chat
context strings
- Scrub Theia mention from lib/auth/workspace-auth.ts comment
P5.1 (custom apex domains + DNS):
- lib/coolify.ts + lib/opensrs.ts: nameserver normalization, OpenSRS
XML auth, Cloud DNS plumbing
- scripts/smoke-attach-e2e.ts: full prod GCP + sandbox OpenSRS +
prod Coolify smoke covering register/zone/A/NS/PATCH/cleanup
In-progress (Justine onboarding/build, MVP setup, agent telemetry):
- New (justine)/stories, project (home) layouts, mvp-setup, run, tasks
routes + supporting components
- Project shell + sidebar + nav refactor for the Stackless palette
- Agent session API hardening (sessions, events, stream, approve,
retry, stop) + atlas-chat, advisor, design-surfaces refresh
- New scripts/sync-db-url-from-coolify.mjs +
scripts/prisma-db-push.mjs + docker-compose.local-db.yml for
local Prisma workflows
- lib/dev-bypass.ts, lib/chat-context-refs.ts, lib/prd-sections.ts
- Misc: stories CSS, debug/prisma route, modal-theme, BuildLivePlanPanel
Made-with: Cursor
2026-04-22 18:05:01 -07:00
14835e2e0a
Revert "fix(gitea-bot): add write:organization scope so bot can create repos"
...
This reverts commit 6f79a88abd .
Made-with: Cursor
2026-04-21 11:12:20 -07:00
6f79a88abd
fix(gitea-bot): add write:organization scope so bot can create repos
...
Without this the bot PAT 403s on POST /orgs/{org}/repos, which is
the single most important operation — creating new project repos
inside the workspace's Gitea org.
Made-with: Cursor
2026-04-21 11:05:55 -07:00
9bec2e9b17
feat: replace AtlasChat with assistant-ui Thread component
...
- Install @assistant-ui/react and @assistant-ui/react-markdown
- components/assistant-ui/thread.tsx — full Thread UI with primitives
- components/assistant-ui/markdown-text.tsx — GFM markdown renderer
- AtlasChat.tsx — useLocalRuntime adapter calling existing atlas-chat API
Gives proper markdown rendering, branch switching, copy/retry actions,
cancel button during streaming, and a polished thread experience.
Made-with: Cursor
2026-03-01 16:39:35 -08:00
17056ea00c
fix: restore auth fixes — next-auth prisma adapter, serverExternalPackages, prisma db push on start
...
Made-with: Cursor
2026-02-27 12:30:52 -08:00
fd70fc76a0
Fix: move prisma generate out of postinstall to fix Docker build
2026-02-17 23:57:29 +00:00
65ea7ac180
Fix Dockerfile for NextAuth + Prisma deployment
...
Add Prisma support to Docker build:
- Run 'prisma generate' during Docker build
- Copy Prisma client and schema to production image
- Remove 'prisma db push' from build script (runs at startup)
- Enable Next.js standalone output mode
- Add db-setup.sh script for runtime migrations
This fixes the deployment failure where Prisma wasn't available.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-17 15:36:44 -08:00
bbb22f1c37
Switch from SuperTokens to NextAuth.js
...
BREAKING CHANGE: Replace SuperTokens with NextAuth.js
Why:
- SuperTokens had persistent Traefik routing issues
- SSL certificate not issuing correctly
- Complex infrastructure (separate container)
- NextAuth runs in Next.js app (simpler, no separate service)
Changes:
- Install next-auth, @auth/prisma-adapter, prisma
- Create NextAuth API route: app/api/auth/[...nextauth]/route.ts
- Add Prisma schema for NextAuth tables (users, sessions, accounts)
- Update auth page to use NextAuth signIn()
- Remove all SuperTokens code and dependencies
- Keep same Google OAuth (just simpler integration)
Benefits:
- No separate auth service needed
- No Traefik routing issues
- Sessions stored in Montreal PostgreSQL
- Simpler configuration
- Battle-tested, widely used
All authentication data stays in Montreal!
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-17 15:12:21 -08:00
6764c1feb0
Add SuperTokens authentication integration
...
- Install supertokens-auth-react, supertokens-node, supertokens-web-js
- Create frontend and backend SuperTokens configuration
- Add API route handler for auth endpoints
- Add SuperTokensProvider wrapper in root layout
- Create new auth component with SuperTokens UI
- Configure Google and GitHub OAuth providers
- Ready for SuperTokens core deployment
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-16 15:27:40 -08:00
92a4acb416
Upgrade React to fix @v0-sdk/react peer dependency conflict
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-16 15:01:23 -08:00
40bf8428cd
VIBN Frontend for Coolify deployment
2026-02-15 19:25:52 -08:00