Rip out Theia, bump submodules, retire platform/ scaffold, snapshot docs + design assets

Theia rip-out (parent):
- Remove theia submodule entry (the local fork, Gitea repo, Coolify app,
  Cloud Run services, and Artifact Registry image are all gone)
- Drop README.md + INFRASTRUCTURE.md (obsolete "Project OS" snapshots
  that also leaked API tokens) and setup.sh (Theia clone bootstrap)
- Delete UI-DESIGN-GUIDE.md, BACKEND_AGENTS_PLAN.md, VIBN_BUILD_PLAN.md,
  VISUAL_EDITOR_PLAN.md, core-packages.md, ai-packages.md, tools-list.md
  (all 100% Theia-specific or superseded)
- Surgical scrubs of remaining Theia mentions in
  AGENT_EXECUTION_ARCHITECTURE.md and TURBOREPO_MIGRATION_PLAN.md

Submodule bumps:
- vibn-agent-runner: Theia rip-out + MCP refactor (api/wrapper/server
  pattern across shell/file/git/memory/prd/search/agent/gitea/coolify)
- vibn-frontend: Theia rip-out + P5.1 attach E2E + Justine UI WIP

Retire platform/ scaffold:
- Remove platform/backend/ (control-plane, executors, mcp-adapter),
  platform/client-ide/ (gcp-productos extension), platform/contracts/,
  platform/infra/terraform/, platform/scripts/templates/turborepo/
  (replaced by vibn-agent-runner + vibn-frontend + Coolify direct)
- Drop architecture.md, technical_spec.md, vision-ext.md,
  "1.Generate Control Plane API scaffold.md" (same era)

Docs / planning snapshots (new):
- AI_CAPABILITIES.md, AI_CAPABILITIES_ROADMAP.md
- AGENT_TELEMETRY_STREAMING_PROJECT.md
- VIBN_PRD.md, product-idea-a.md

Design assets (new):
- branding/{coolify,gitea,ux-testing}/ static brand collateral
- justine/ HTML mockups for the new onboarding/build flows
- preview-assist-ui/ Vite scratch app
- master-ai.code-workspace

Infra helpers (new):
- setup-coolify-montreal.sh provisioner
- gitea-docker-compose.yml
- vibn-coolify-schema.sql for the Coolify Postgres extensions
- prd-agent-prompt.pdf, prompt, root.txt, remixed-9edec9e9.tsx scratch
- flatten.sh helper

.gitignore: ignore **/node_modules, **/.next, **/.turbo, **/coverage

Made-with: Cursor
This commit is contained in:
2026-04-22 18:06:37 -07:00
parent 54da4c96da
commit 99deb546c8
153 changed files with 22844 additions and 9496 deletions

View File

@@ -89,7 +89,7 @@ This is the difference between a founder who has a COO (talks to one person who
└─────────────┘ └─────────────┘ └─────────────┘
↓ ↓ ↓
┌─────────────────────────────────────────────────────────────────────┐
│ EXECUTION RUNTIME (Theia + vibn-agent-runner) │
│ EXECUTION RUNTIME (vibn-agent-runner)
│ │
│ - Persistent dev environment: Node, Python, npm, git │
│ - Agent executes commands, writes files, runs builds │
@@ -278,16 +278,6 @@ If yes → delegates to Code Advisor
│ - Auto-commits to Gitea on completion │
│ - Triggers Coolify redeploy automatically │
│ - Session persists even if browser tab is closed │
└──────────────────────┬────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────────────┐
│ Theia container (persistent dev environment) │
│ │
│ - Node.js, Python, npm, git — full dev toolchain │
│ - sync-server.js (port 3001): git pull trigger from agent │
│ - startup.sh: clones project repo from Gitea on boot │
│ - PTY available for Terminal tab (Phase 5) │
└──────────────────────┬────────────────────────────────────────────┘
│ git push (auto on completion)
@@ -420,15 +410,12 @@ CREATE TABLE advisor_memory (
| Auto-commit + push to Gitea on completion | ✅ |
| Gitea webhook triggers Coolify auto-deploy | ✅ |
| Browse tab shows latest committed files | ✅ |
| "Open in Theia →" links to theia.vibnai.com | ✅ |
| Theia sync-server running on port 3001 | ✅ |
| Project tabs (Atlas/PRD/Build/Growth/Assist/Analytics) in sidebar | ✅ |
### In Progress
| Step | Status |
|------|--------|
| Agent `execute_command` routes through Theia container | 🔶 Phase 2 |
| Assist COO + specialist advisor architecture | 🔶 Designing |
### Not Yet Started
@@ -444,7 +431,7 @@ CREATE TABLE advisor_memory (
| Proactive monitoring (anomaly detection, briefings) | ⬜ |
| Parallel task execution | ⬜ |
| WebSocket streaming (replace polling) | ⬜ |
| Terminal tab (xterm.js → Theia PTY) | ⬜ |
| Terminal tab (xterm.js → live container PTY) | ⬜ |
---
@@ -461,11 +448,11 @@ CREATE TABLE advisor_memory (
- [x] Context-aware task input (locked while running)
- [x] Project tabs moved to sidebar (Atlas/PRD/Build/Growth/Assist/Analytics)
### Phase 2 — Execution in Theia 🔶 In Progress
- [x] Theia container with sync-server.js on port 3001
- [x] startup.sh clones/pulls project repo on boot
- [ ] Agent `execute_command` routes through Theia (docker exec or HTTP)
- [ ] "Open in Theia →" reflects live agent workspace
### Phase 2 — Per-project Sandboxed Workspaces
- [ ] Per-project ephemeral container (cold tier — wakes on demand)
- [ ] Agent `execute_command` routes through the project workspace container
- [ ] Persistent volume per project for caches / installed deps
- [ ] In-browser file viewer reflects live agent workspace
### Phase 3 — Assist COO + Specialist Advisors
- [ ] `advisor_conversations` + `advisor_memory` DB tables + API
@@ -488,7 +475,7 @@ CREATE TABLE advisor_memory (
- [ ] WebSocket replaces polling for live output
- [ ] Browser reconnect: full log replay from Postgres + live tail
- [ ] Background notifications (in-app + email) on completion/failure
- [ ] Terminal tab: xterm.js connected to Theia PTY
- [ ] Terminal tab: xterm.js connected to project workspace PTY
### Phase 6 — Proactive Intelligence
- [ ] Assist monitors for anomalies and surfaces them without being asked
@@ -519,8 +506,5 @@ Once a specialist Advisor has produced a clear, structured plan, decomposing it
**Why auto-commit by default?**
The target user is a non-technical founder. Requiring approval on every task creates friction and undermines the "describe it, it ships" value proposition. Gitea + Coolify already provide a rollback path if something goes wrong.
**Why Theia as the runtime?**
Theia provides a persistent, pre-configured dev environment — Node, Python, git, PTY — with no cold-start cost. We use it as infrastructure; the user never sees the Theia UI. VIBN is the product.
**Why store everything in Postgres?**
Browser sessions end. Postgres is the source of truth. Every conversation turn, every memory item, every execution step, every outcome is written immediately. The WebSocket stream (Phase 5) is a convenience layer on top of the database, not a replacement.