How kpaul-create/ace---ai_contextual_editor works
ACE is a contextual coding-workspace product: users configure a workspace, open a project, edit its files, inspect workspace context, and optionally sync files to a cloud endpoint. The documented backend also exposes streamed editor updates and supports Gemini or Grok/xAI, though the sampled frontend excerpts do not show a call to that endpoint. The graph follows the evidenced frontend composition and state flow; backend internals and auth protection details are limited to README documentation.
Main entry points: editor-shell.tsx Editor shell · monaco-editor.tsx Code editor · onboarding-wizard.tsx Preferences wizard · page.tsx Project route
Components 21
Entry and onboarding
- Sign-in and sign-up
app/(auth)/sign-in/[[...sign-in]]/page.tsx - Onboarding route
app/(dashboard)/onboarding/page.tsx - Preferences wizard
components/onboarding/onboarding-wizard.tsx - Project route
app/(editor)/workspace/[projectId]/page.tsx
Editor workspace
- Editor shell
components/editor/editor-shell.tsx - File explorer
components/editor/file-explorer.tsx - Code editor
components/editor/monaco-editor.tsx - Workspace header
components/editor/workspace-header.tsx - Context rail
components/editor/context-rail.tsx - Editor status
components/editor/editor-status-bar.tsx - Cursor tracking
hooks/use-editor-cursor.ts - Language support
lib/editor/languages.ts
Workspace state
- Workspace preferences
stores/workspace-store.ts - File tree state
stores/file-tree-store.ts - Cursor state
stores/editor-store.ts
Backend and sync
- Cloud sync hook
hooks/use-cloud-sync.ts - Cloud sync client
lib/cloud-sync/client.ts - Cloud sync endpoint
- Edit-stream backend
backend/main.py - Gemini or Grok/xAI
Other components
- User
Connections 23
- User → Sign-in and sign-up: signs in
README.md - Onboarding route → Preferences wizard: renders
app/(dashboard)/onboarding/page.tsx - Preferences wizard → Workspace preferences: updates
components/onboarding/onboarding-wizard.tsx - Preferences wizard → Project route: navigates to
components/onboarding/onboarding-wizard.tsx - User → Project route: opens project
- Project route → Editor shell: renders
app/(editor)/workspace/[projectId]/page.tsx - Editor shell → File explorer: renders
components/editor/editor-shell.tsx - Editor shell → Code editor: renders
components/editor/editor-shell.tsx - Editor shell → Workspace header: renders
components/editor/editor-shell.tsx - Editor shell → Context rail: renders
components/editor/editor-shell.tsx - Editor shell → Editor status: renders
components/editor/editor-shell.tsx - File explorer → File tree state: reads and updates
components/editor/file-explorer.tsx - Code editor → File tree state: reads and updates
components/editor/monaco-editor.tsx - Context rail → File tree state: reads
components/editor/context-rail.tsx - Code editor → Cursor tracking: tracks cursor
components/editor/monaco-editor.tsx - Cursor tracking → Cursor state: updates
hooks/use-editor-cursor.ts - Editor status → Cursor tracking: reads
components/editor/editor-status-bar.tsx - Code editor → Language support: configures language
components/editor/monaco-editor.tsx - Editor shell → Cloud sync hook: requests sync
components/editor/editor-shell.tsx - Cloud sync hook → Cloud sync client: calls
hooks/use-cloud-sync.ts - Cloud sync client → Cloud sync endpoint: uploads files
lib/cloud-sync/client.ts - User → Edit-stream backend: requests streamed edits
- Edit-stream backend → Gemini or Grok/xAI: uses model provider
README.md