Skip to content

Commit 10272d2

Browse files
authored
chore: remove web-harness and update rollup to fix vulnerability (#463)
* fix: prevent spurious agent startup in dev mode and remove tiktoken dep When running `agentcore dev` with multiple agents, useDevServer would start the first agent's server before the user selected one, because getDevConfig defaults to agents[0] when agentName is undefined. Guard config resolution on agentName being set so the server only starts after explicit selection. Also remove tiktoken from the LangChain template dependencies as the package no longer resolves correctly. * chore: remove web-harness and update rollup to fix vulnerability
1 parent ca5644f commit 10272d2

40 files changed

+103
-4996
lines changed

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export default tseslint.config(
8383
'node_modules',
8484
'src/assets',
8585
'src/schema/llm-compacted',
86-
'web-harness',
8786
'.agentcore',
8887
'**/.agentcore/**',
8988
'.venv',

package-lock.json

Lines changed: 103 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/AGENTS.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,6 @@ The TUI is defined using ink, a library that converts React definitions to termi
5656

5757
Ink supports a subset of React features and components should be directly imported from ink.
5858

59-
## Testing UI changes E2E
60-
61-
At the top level `web-harness/` directory a shim over Ink, as well as a mock of Node API and CLI business logic is
62-
defined. By running the vite local host dev server, a web app based on the same visual source of truth as the terminal
63-
is hosted. Always launch a web-harness web server and use the browser MCP tool to test changes E2E. Create mocks as
64-
appropriate to test the relevant surface area.
65-
66-
If start up issues are encountered, read the console error to troubleshoot bugs and update the harness.
67-
68-
## Dev Server Architecture
69-
7059
The `dev` command uses a strategy pattern with a `DevServer` base class and two implementations:
7160

7261
- **CodeZipDevServer**: Runs uvicorn locally with Python venv hot-reload

web-harness/AGENTS.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

web-harness/README.md

Lines changed: 0 additions & 225 deletions
This file was deleted.

0 commit comments

Comments
 (0)