Files
agent/ui
Cédric VerstraetenandClaude Opus 5.5 6cd077daa3 ui: vendor @kerberos-io/ui 1.77.1 to clear the last Dependabot alerts
@kerberos-io/ui 1.77.1 moves its build tools (@svgr/webpack,
svg-react-loader, sass-loader, Storybook, Rollup plugins) out of its
runtime dependencies. Those pulled svgo 1 and decode-uri-component 0.2
into the agent's lockfile.

1.77.1 is tagged on GitHub but was never published to npm, so install
it from a tarball built from kerberos-io/ui@ae1faa7 (tag v1.77.1) and
committed under ui/vendor. Compared with the published 1.77.0 the
exports are identical; the only code change is the bundled uuid (8 -> 11).

The Dockerfile copies ui/vendor before `yarn --frozen-lockfile`.
ui/vendor/README.md records the checksum and how to switch back to the
registry once a fixed version is published.

Clears the remaining 5 Dependabot alerts (svgo, decode-uri-component).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:42:30 +00:00
..
2022-06-05 21:36:22 +02:00
2022-08-15 22:08:08 +02:00

Kerberos Agent UI

The web interface of the Kerberos Agent: a React app built with Vite and tested with Vitest. Requires Node.js 20.19 or newer.

Scripts

Command What it does
yarn start Starts the dev server on http://localhost:3000 with hot reload.
yarn build Builds for production and moves the output to ../machinery/www, where the Agent serves it.
yarn preview Serves the production build from ../machinery/www on port 3000. Run yarn build first.
yarn test Runs the test suite once. yarn test:watch keeps it running.
yarn lint Lints src/ with ESLint.
yarn format Formats the code with Prettier.

Configuration

In development the UI talks to the Agent API on port 8082 of the same host. Override it with VITE_AGENT_API_PORT:

VITE_AGENT_API_PORT=9090 yarn start

In production builds the UI uses the host and port it was served from.

Runtime settings that differ per deployment (such as demo mode) live in public/env.js, which the Agent can replace without rebuilding the UI.

Layout

  • index.html: the HTML entry point; Vite injects the bundle here.
  • src/: application code. src/index.jsx is the entry module.
  • public/: copied unchanged to the build root (favicons, fonts, locales, env.js).
  • Bundled JS, CSS and assets go to static/ in the build, so they don't mix with the assets/ folder from public/.