Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Remove the agent ui-shots screenshot workflow.

debajyoti-truefoundrya461744cbcc0
diff --git a/.gitignore b/.gitignore
index feb8fbc1d..e4809fb91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,5 +14,4 @@ packages/server/src/catalog/modelCatalog.gen.ts
packages/server/src/catalog/mcpCatalog.gen.ts
packages/server/src/catalog/skillCatalog.gen.ts
packages/server/src/catalog/sandboxCatalog.gen.ts
-ui-shots/*.png
data/
diff --git a/package.json b/package.json
index 5982d3599..f108a36d9 100644
--- a/package.json
+++ b/package.json
@@ -31,9 +31,7 @@
"start": "STANDALONE=false NODE_ENV=production pnpm --filter @truefoundry/utils start",
"test:store:local": "bash scripts/test-store-local.sh",
"test": "pnpm --filter @truefoundry/utils-core test && pnpm --filter @truefoundry/trueforge-ui test && pnpm --filter @truefoundry/utils test && pnpm --filter frontend test",
- "typecheck": "pnpm --filter @truefoundry/utils-core typecheck && pnpm --filter @truefoundry/trueforge-ui typecheck && pnpm --filter @truefoundry/utils typecheck && pnpm --filter frontend typecheck",
- "ui:clean": "node ui-shots/clean.mjs",
- "ui:shot": "node ui-shots/shot.mjs"
+ "typecheck": "pnpm --filter @truefoundry/utils-core typecheck && pnpm --filter @truefoundry/trueforge-ui typecheck && pnpm --filter @truefoundry/utils typecheck && pnpm --filter frontend typecheck"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^5.18.0",
diff --git a/packages/frontend/AGENTS.md b/packages/frontend/AGENTS.md
deleted file mode 100644
index c4b880236..000000000
--- a/packages/frontend/AGENTS.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## Visual consistency loop
-
-Only when the user supplies a screenshot or explicit UI feedback that needs visual validation: screenshot with `pnpm ui:shot -- <url> current.png`, compare against the reference, iterate until consistent, then `pnpm ui:clean` (no PNGs left in `ui-shots/`).
diff --git a/packages/frontend/CLAUDE.md b/packages/frontend/CLAUDE.md
deleted file mode 100644
index 43c994c2d..000000000
--- a/packages/frontend/CLAUDE.md
+++ /dev/null
@@ -1 +0,0 @@
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index 34fe59b81..35889b35e 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -35,7 +35,6 @@
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^4.7.0",
- "playwright-core": "^1.61.1",
"tailwindcss": "4.3.3",
"tsx": "^4.16.2",
"typescript": "^5.9.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0de759878..68c871d89 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -82,9 +82,6 @@ importers:
'@vitejs/plugin-react':
specifier: ^4.7.0
- playwright-core:
- specifier: ^1.61.1
- version: 1.61.1
tailwindcss:
specifier: 4.3.3
version: 4.3.3
@@ -5790,11 +5787,6 @@ packages:
resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
- resolution: {integrity: sha512-h7Qlt6m4REp25qvIdvbDtVmD4LqVXfpRxhORv9L0jzETM05p4fuPJ3dKyuSXQxDSbXnmS79HAgi9589lGSpLkg==}
- engines: {node: '>=18'}
- hasBin: true
-
resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
engines: {node: '>= 18'}
@@ -13022,8 +13014,6 @@ snapshots:
mlly: 1.8.2
pathe: 2.0.3
-
dependencies:
lilconfig: 3.1.3
diff --git a/ui-shots/clean.mjs b/ui-shots/clean.mjs
deleted file mode 100644
index a5bc8b0d1..000000000
--- a/ui-shots/clean.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-import { readdir, unlink } from 'node:fs/promises';
-import { URL } from 'node:url';
-
-const directory = import.meta.dirname;
-const entries = await readdir(directory, { withFileTypes: true });
-const screenshots = entries.filter(entry => entry.isFile() && entry.name.endsWith('.png'));
-
-await Promise.all(screenshots.map(entry => unlink(new URL(entry.name, import.meta.url))));
-console.log(`Removed ${String(screenshots.length)} screenshot(s) from ui-shots/`);
diff --git a/ui-shots/shot.mjs b/ui-shots/shot.mjs
deleted file mode 100644
index 10ff47bed..000000000
--- a/ui-shots/shot.mjs
+++ /dev/null
@@ -1,23 +0,0 @@
-import path from 'node:path';
-import { chromium } from '../packages/frontend/node_modules/playwright-core/index.mjs';
-
-// pnpm forwards a literal "--" separator; drop it so both invocation styles work.
-const args = process.argv.slice(2).filter(arg => arg !== '--');
-const url = args[0] ?? 'http://localhost:3000/';
-const filename = args[1] ?? 'current.png';
-const outputPath = path.resolve(import.meta.dirname, filename);
-
-if (path.extname(outputPath) !== '.png' || path.dirname(outputPath) !== import.meta.dirname) {
- throw new Error('Screenshot output must be a PNG filename inside ui-shots/');
-}
-
-const browser = await chromium.launch({ channel: 'chrome', headless: true });
-try {
- const page = await browser.newPage({ viewport: { width: 1440, height: 810 } });
- await page.goto(url, { waitUntil: 'networkidle' });
- await page.waitForTimeout(1200);
- await page.screenshot({ path: outputPath });
- console.log(`Saved ${outputPath}`);
-} finally {
- await browser.close();
-}