A modern web interface for the CodingAgent loop.
The server in the sibling directory (../server) exposes an HTTP API for the CodingAgent.
This module contains a TypeScript-based web UI for the Loop service. The TypeScript code is compiled into JavaScript using esbuild, and the resulting bundle is served by the Go server.
# Install dependencies make install # Build the TypeScript code make build # Type checking only make check
For development, you can use watch mode:
make dev
This will rebuild the TypeScript files whenever they change.
The TypeScript code is bundled into JavaScript using esbuild and then served by the Go HTTP server. The integration happens through the webui package, which provides a function to retrieve the built bundle.
The server code accesses the built web UI through the webui.GetBundle() function, which returns a filesystem that can be used to serve the files.
src/: TypeScript source filesdist/: Generated JavaScript bundleesbuild.go: Go code for bundling TypeScript filesMakefile: Build tasks