Skip to content

Commit b5771e8

Browse files
committed
fix: update copy
1 parent 77d20e4 commit b5771e8

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

scripts/copy-assets.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const __dirname = path.dirname(__filename);
88
const srcDir = path.join(__dirname, '..', 'src', 'assets');
99
const destDir = path.join(__dirname, '..', 'dist', 'assets');
1010
const inspectorSrcDir = path.join(__dirname, '..', 'node_modules', '@aws', 'agent-inspector', 'dist-assets');
11-
const inspectorDestDir = path.join(__dirname, '..', 'dist', 'agent-dev-tools');
11+
const inspectorDestDir = path.join(__dirname, '..', 'dist', 'agent-inspector');
1212

1313
/**
1414
* Recursively copy directory contents, excluding specified files at root level only
@@ -47,7 +47,7 @@ try {
4747
copyDir(srcDir, destDir, ['AGENTS.md']);
4848
console.log('Assets copied successfully!');
4949

50-
// Copy @aws/agent-inspector built assets into dist/agent-dev-tools/ for bundled CLI
50+
// Copy @aws/agent-inspector built assets into dist/agent-inspector/ for bundled CLI
5151
if (fs.existsSync(inspectorSrcDir)) {
5252
console.log('Copying @aws/agent-inspector assets...');
5353
copyDir(inspectorSrcDir, inspectorDestDir);

src/cli/operations/dev/web-ui/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Browser mode (`agentcore dev`) launches a local proxy server that serves both th
88
Browser → http://127.0.0.1:8081
99
|
1010
Node.js Server (port: findAvailablePort(8081))
11-
├─ Serves frontend (static files from built agent-dev-tools)
11+
├─ Serves frontend (static files from built agent-inspector)
1212
└─ API endpoints (/api/status, /invocations, etc.)
1313
|
1414
| HTTP (deterministic port: proxyPort + 1 + agentIndex)
@@ -36,9 +36,9 @@ Ports are deterministic relative to the proxy port, so no scanning is needed for
3636

3737
## Frontend
3838

39-
The chat UI lives in `src/agent-dev-tools/` as a self-contained React package. At build time, it produces static files
40-
(index.html, index.js, index.css) that are copied to `dist/agent-dev-tools/`. The Node.js server serves these files for
41-
any non-API GET request, with SPA fallback to `index.html`.
39+
The chat UI lives in the `@aws/agent-inspector` package. At build time, it produces static files (index.html, index.js,
40+
index.css) that are copied to `dist/agent-inspector/`. The Node.js server serves these files for any non-API GET
41+
request, with SPA fallback to `index.html`.
4242

4343
### Frontend Development (Hot Reload)
4444

src/cli/operations/dev/web-ui/web-server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ const CSP_HEADER =
3535
function resolveUIDistDir(): string | null {
3636
const thisDir = path.dirname(fileURLToPath(import.meta.url));
3737
const candidates = [
38-
// Bundled CLI: dist/cli/index.mjs → dist/agent-dev-tools/
39-
path.resolve(thisDir, '..', 'agent-dev-tools'),
38+
// Bundled CLI: dist/cli/index.mjs → dist/agent-inspector/
39+
path.resolve(thisDir, '..', 'agent-inspector'),
4040
// npm package: @aws/agent-inspector/dist-assets/
4141
path.resolve(thisDir, '..', '..', '..', '..', '..', 'node_modules', '@aws', 'agent-inspector', 'dist-assets'),
42-
// Dev via tsx: src/cli/operations/dev/web-ui/ → src/assets/agent-dev-tools/
43-
path.resolve(thisDir, '..', '..', '..', '..', 'assets', 'agent-dev-tools'),
42+
// Dev via tsx: src/cli/operations/dev/web-ui/ → src/assets/agent-inspector/
43+
path.resolve(thisDir, '..', '..', '..', '..', 'assets', 'agent-inspector'),
4444
];
4545
for (const dir of candidates) {
4646
if (fs.existsSync(path.join(dir, 'index.html'))) return dir;
@@ -145,7 +145,7 @@ export interface WebUIOptions {
145145
/**
146146
* Lightweight HTTP server that proxies requests to agent dev servers.
147147
* Agent servers are started on demand when the frontend selects an agent.
148-
* The chat UI is served as static files from the built frontend (src/agent-dev-tools).
148+
* The chat UI is served as static files from the built frontend (agent-inspector).
149149
*
150150
* Route handlers are in ./handlers/ — this class owns lifecycle, CORS, and routing only.
151151
*/

0 commit comments

Comments
 (0)