Skip to content

Commit 665b300

Browse files
rootclaude
authored andcommitted
Restructure repo: move site to site/, add evaluation framework
- Move Next.js website code to site/ subdirectory - Add webcompass/ evaluation framework with: - Inference: text/image/video to web generation - Checklist: automated checklist generation - Evaluation: scoring and LLM judge - Update GitHub Actions workflow for site/ directory - Add setup.py and requirements.txt for Python package - Exclude large binary packages from git Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 486865d commit 665b300

File tree

315 files changed

+1348065
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+1348065
-63
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,21 @@ jobs:
3131
with:
3232
node-version: 20
3333
cache: npm
34+
cache-dependency-path: site/package-lock.json
3435

3536
- name: Install dependencies
36-
run: npm ci
37+
run: cd site && npm ci
3738

3839
- name: Build static export
39-
run: npm run build
40+
run: cd site && npm run build
4041

4142
- name: Ensure custom domain CNAME
42-
run: echo "webcompass.ai" > out/CNAME
43+
run: echo "webcompass.ai" > site/out/CNAME
4344

4445
- name: Upload artifact
4546
uses: actions/upload-pages-artifact@v3
4647
with:
47-
path: ./out
48+
path: ./site/out
4849

4950
deploy:
5051
environment:

.gitignore

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
1+
# Large binary files
2+
*.tgz
3+
*.tar.gz
4+
webcompass/evaluation/agents/*/packages/opencode*
5+
6+
# Node.js (site/)
17
node_modules
28
.next
39
out
4-
.env*
5-
.DS_Store
610
npm-debug.log*
711
yarn-debug.log*
812
yarn-error.log*
9-
pnpm-debug.log*
13+
pnpm-debug.log*
14+
15+
# Python
16+
__pycache__
17+
*.pyc
18+
*.pyo
19+
*.egg-info
20+
dist
21+
build
22+
.eggs
23+
*.egg
24+
25+
# Environment
26+
.env*
27+
.venv
28+
venv
29+
30+
# OS
31+
.DS_Store
32+
Thumbs.db
33+
34+
# IDE
35+
.idea
36+
.vscode
37+
*.swp

README.md

Lines changed: 184 additions & 56 deletions

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
openai>=1.0.0
2+
tqdm>=4.60.0
3+
Pillow>=9.0.0
4+
opencv-python>=4.5.0

setup.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name="webcompass",
5+
version="1.0.0",
6+
description="WebCompass: A Benchmark for Evaluating LLMs on Web Generation Tasks",
7+
author="WebCompass Team",
8+
packages=find_packages(),
9+
python_requires=">=3.10",
10+
install_requires=[
11+
"openai>=1.0.0",
12+
"tqdm",
13+
"Pillow",
14+
],
15+
extras_require={
16+
"video": ["opencv-python"],
17+
"dev": ["pytest", "black", "isort"],
18+
},
19+
entry_points={
20+
"console_scripts": [
21+
"webcompass-text-inference=webcompass.scripts.run_text_inference:main",
22+
"webcompass-image-inference=webcompass.scripts.run_image_inference:main",
23+
"webcompass-video-inference=webcompass.scripts.run_video_inference:main",
24+
"webcompass-text-checklist=webcompass.scripts.generate_text_checklist:main",
25+
"webcompass-image-checklist=webcompass.scripts.generate_image_checklist:main",
26+
"webcompass-video-checklist=webcompass.scripts.generate_video_checklist:main",
27+
],
28+
},
29+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)