mirror of
https://github.com/kerberos-io/agent.git
synced 2026-11-21 22:50:39 +00:00
158 entries in ui/yarn.lock were resolved from an Azure DevOps feed (ms-feed-25.pkgs.visualstudio.com) instead of registry.yarnpkg.com. Point them back at the public registry. Each entry's sha1 was checked against the npm registry before it was rewritten, so the tarballs are identical. The 96 sha1-only integrity values are replaced with the registry's sha512. axios is left as is: #359 moves it to 0.34.0 on the public registry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
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/wwwon port 3000. Runyarn buildfirst.yarn test: runs the test suite once.yarn test:watchkeeps it running.yarn lint: lintssrc/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.jsxis 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 theassets/folder frompublic/.