How colmugx/cetas works
Cetas is a coding agent whose principal workflow is to accept a task, run an agent turn, and stream tool activity and responses to the user. In the sampled terminal host, application lifecycle and bridge coordination feed parsed events into a router that updates transcript components. The README also documents model setup, extensions, session browsing and rewind, plus ACP and automation hosts; the web host is explicitly under development. Edges reflect excerpts, SOURCE INDEX references, or README statements; unsampled host and core internals are not inferred.
Main entry points: application.ts Application lifecycle · terminal-shell.ts Interactive terminal · event-router.ts Event router · runtime.svelte.ts Web runtime
Components 27
Terminal host
- Interactive terminal
cetas-js/ui/terminal-shell.ts - Application lifecycle
cetas-js/src/app/application.ts - MoonBit bridge
cetas-js/src/app/moonbit-bridge.ts - Operation coordination
cetas-js/src/app/operation-coordinator.ts - Extension packages
cetas-js/src/app/pi-packages.ts - Module mirror
cetas-js/src/app/pi-module-mirror.ts - Session browser
cetas-js/ui/sessions-overlay.ts - OAuth progress
cetas-js/ui/oauth-overlay.ts
Conversation display
- Event protocol
cetas-js/src/events.ts - Event router
cetas-js/src/controllers/event-router.ts - Streaming UI
cetas-js/src/controllers/streaming-ui.ts - Subagent activity
cetas-js/src/controllers/subagent-activity.ts - Transcript rows
cetas-js/src/transcript/components.ts - Tool renderers
cetas-js/src/tool-renderers/registry.ts - Thinking display
cetas-js/src/transcript/thinking.ts - Terminal theme
cetas-js/ui/theme.ts
Web host
- Web interface
cetas-web/web/src/routes/+page.svelte - Web runtime
cetas-web/web/src/lib/runtime.svelte.ts - Web API
cetas-web/web/src/lib/api.ts - Web socket
cetas-web/web/src/lib/socket.ts - Web transport
cetas-web/web/src/lib/transport.ts - Web transcript
cetas-web/web/src/lib/transcript.ts
Product documentation
- Guides and search
cetas-website/src/components/ui/search/search.client.ts
Other components
- Task author
- Posoco framework
- ACP editor
- Automation script
Connections 28
- Task author → Interactive terminal: enters task
README.md - Interactive terminal → Application lifecycle: submits work
- Application lifecycle → MoonBit bridge: uses bridge
cetas-js/src/app/application.ts - Application lifecycle → Operation coordination: coordinates turns
cetas-js/src/app/application.ts - Application lifecycle → Extension packages: loads extensions
cetas-js/src/app/application.ts - Extension packages → Module mirror: mirrors entries
cetas-js/src/app/pi-packages.ts - MoonBit bridge → Event protocol: emits events
cetas-js/src/events.ts - Event protocol → Event router: parses events
cetas-js/src/controllers/event-router.ts - Event router → Streaming UI: updates stream
cetas-js/src/controllers/event-router.ts - Event router → Transcript rows: updates rows
cetas-js/src/controllers/event-router.ts - Event router → Subagent activity: refreshes activity
cetas-js/src/controllers/event-router.ts - Transcript rows → Tool renderers: selects renderer
cetas-js/src/transcript/components.ts - Thinking display → Tool renderers: uses registry
cetas-js/src/transcript/thinking.ts - Transcript rows → Terminal theme: styles rows
cetas-js/src/transcript/components.ts - Thinking display → Terminal theme: styles text
cetas-js/src/transcript/thinking.ts - Interactive terminal → Session browser: browses sessions
README.md - Interactive terminal → OAuth progress: shows login progress
README.md - ACP editor → Application lifecycle: uses ACP host
README.md - Automation script → Application lifecycle: runs one task
README.md - Application lifecycle → Posoco framework: builds on
README.md - Web interface → Web runtime: uses runtime
- Web runtime → Web API: calls API
cetas-web/web/src/lib/runtime.svelte.ts - Web runtime → Web socket: uses socket
cetas-web/web/src/lib/runtime.svelte.ts - Web runtime → Web transcript: uses transcript
cetas-web/web/src/lib/runtime.svelte.ts - Web API → Web transport: uses transport
cetas-web/web/src/lib/api.ts - Web API → Web transcript: uses transcript
cetas-web/web/src/lib/api.ts - Web socket → Web transport: uses transport
cetas-web/web/src/lib/socket.ts - Guides and search → Task author: guides setup
README.md