-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
110 lines (110 loc) · 6.17 KB
/
Copy pathpackage.json
File metadata and controls
110 lines (110 loc) · 6.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "rgou-cloudflare",
"version": "1.0.0",
"description": "Offline-first Royal Game of Ur with Rust/WebAssembly AI opponents on Cloudflare Workers",
"license": "MIT",
"private": true,
"type": "module",
"scripts": {
"dev": "npm run build:wasm-assets && npm run generate:sw && vite",
"build": "rm -rf out && npm run generate:sw && npm run build:wasm-assets && npm run type-check && vite build && node scripts/generate-sw.js --built",
"start": "vite preview",
"preview": "vite preview",
"deploy": "npm run build && wrangler deploy --config out/rgou_main/wrangler.json",
"smoke:production": "node scripts/smoke-production.mjs",
"diagrams": "node scripts/render-diagrams.mjs",
"check:diagrams": "node scripts/check-diagrams.mjs",
"check:docs": "node scripts/check-docs.mjs && node --test scripts/format-ai-matrix-md.test.cjs && node scripts/generate-ai-page.mjs --check",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:rust": "cd worker/rust_ai_core && cargo fmt --all -- --check && cargo clippy --all-targets -- -D warnings",
"type-check": "tsc --noEmit",
"generate:sw": "GITHUB_SHA=$GITHUB_SHA node scripts/generate-sw.js",
"generate:ai-page": "node scripts/generate-ai-page.mjs",
"build:wasm": "cd worker/rust_ai_core && wasm-pack build --target web --out-name rgou_ai_worker -- --features wasm --no-default-features",
"build:wasm-assets": "npm run build:wasm && rm -rf public/wasm && mkdir -p public/wasm && cp worker/rust_ai_core/pkg/rgou_ai_worker_bg.wasm public/wasm/rgou_ai_worker_bg.wasm && cp worker/rust_ai_core/pkg/rgou_ai_worker.js public/wasm/rgou_ai_core.js",
"build:rust-ai": "cd worker/rust_ai_core && cargo build --release",
"nuke": "rm -rf out .wrangler node_modules && npm ci && npm run dev",
"check": "npm run lint && npm run check:docs && npm run check:diagrams && npm run type-check && npm run lint:rust && npm run test:rust && npm run test:service-worker && npm run test:smoke-production && npm run test:model-provenance && npm run test:coverage && npm run test:e2e",
"check:slow": "npm run lint && npm run check:docs && npm run check:diagrams && npm run type-check && npm run lint:rust && (cd worker/rust_ai_core && RUN_SLOW_TESTS=1 cargo test --features slow_tests -- --nocapture) && npm run test:service-worker && npm run test:smoke-production && npm run test:model-provenance && npm run test:coverage && npm run test:e2e",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:service-worker": "node --test scripts/generate-sw.test.mjs",
"test:smoke-production": "node --test scripts/smoke-production.test.mjs",
"test:model-provenance": "python3 -m unittest discover -s ml/tests -v && python3 ml/scripts/model_provenance.py verify && python3 ml/scripts/oracle_provenance.py verify",
"test:rust": "cd worker/rust_ai_core && cargo test --all-targets -- --nocapture",
"test:rust:slow": "cd worker/rust_ai_core && RUN_SLOW_TESTS=1 cargo test --features slow_tests -- --nocapture",
"test:ai-comparison": "./scripts/test-ai-comparison.sh",
"test:ai-comparison:fast": "NUM_GAMES=10 ./scripts/test-ai-comparison.sh",
"test:ai-comparison:comprehensive": "NUM_GAMES=100 INCLUDE_SLOW_TESTS=true ./scripts/test-ai-comparison.sh",
"test:ai-deployed": "cd worker/rust_ai_core && AI_MATRIX_DEPLOYED_ONLY=1 NUM_GAMES=400 cargo test test_ai_matrix -- --nocapture",
"test:ai-candidate": "cd worker/rust_ai_core && AI_MATRIX_COMPARE_CANDIDATE=1 NUM_GAMES=400 cargo test test_ai_matrix -- --nocapture",
"test:e2e": "VITE_E2E=true npm run build && playwright test --reporter=line",
"test:e2e:ui": "VITE_E2E=true npm run build && playwright test --ui",
"deps": "npx npm-check-updates",
"deps:update": "npx npm-check-updates -u && npm install",
"train:rust": "./ml/scripts/train.sh --backend rust",
"train:rust:quick": "./ml/scripts/train.sh --backend rust --preset quick",
"train:rust:production": "./ml/scripts/train.sh --backend rust --preset production",
"train:pytorch": "./ml/scripts/train.sh --backend pytorch",
"train:pytorch:quick": "./ml/scripts/train.sh --backend pytorch --preset quick",
"train:pytorch:production": "./ml/scripts/train.sh --backend pytorch --preset production",
"train:oracle:pilot": "./ml/scripts/train_oracle.sh --preset pilot",
"train:oracle:production": "./ml/scripts/train_oracle.sh --preset production",
"load:ml-weights": "./ml/scripts/load-weights.sh",
"load:oracle-weights": "python3 ml/scripts/oracle_provenance.py promote",
"evolve:genetic-params": "cd worker/rust_ai_core && caffeinate cargo run --release --bin evolve_params",
"validate:genetic-params": "cd worker/rust_ai_core && caffeinate cargo test test_genetic_params_comparison -- --nocapture",
"test:ai-matrix:md": "NUM_GAMES=50 ./scripts/write-ai-matrix-report.sh matrix",
"test:ai-deployed:md": "NUM_GAMES=400 ./scripts/write-ai-matrix-report.sh deployed"
},
"dependencies": {
"@sentry/browser": "^10.65.0",
"clsx": "^2.1.1",
"framer-motion": "^12.23.6",
"immer": "^10.1.1",
"lucide-react": "^0.525.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwind-merge": "^3.3.1",
"zod": "^4.4.3",
"zustand": "^5.0.6"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.44.0",
"@cloudflare/workers-types": "5.20260714.1",
"@eslint/js": "^9.39.2",
"@playwright/test": "^1.54.1",
"@sentry/vite-plugin": "^5.4.0",
"@tailwindcss/postcss": "^4",
"@types/node": "^26.1.1",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@vitejs/plugin-react": "^6.0.3",
"@vitest/coverage-v8": "^4.1.8",
"eslint": "^9",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"globals": "^16.5.0",
"jsdom": "^29.1.1",
"npm-check-updates": "^18.0.1",
"prettier": "^3.6.2",
"tailwindcss": "^4",
"typescript": "^5",
"typescript-eslint": "^8.37.0",
"vite": "^8.1.4",
"vitest": "^4.1.8",
"wrangler": "4.110.0"
},
"overrides": {
"@esbuild-kit/core-utils": {
"esbuild": "0.25.12"
},
"postcss": "8.5.15"
},
"engines": {
"node": ">=22.0.0",
"npm": ">=9.0.0"
}
}