Files
FreeCADWasmDev/web/package.json
wangdequan 3a3077c089 teaching: run carrier builds from the toolkit page
Extract the console runner into web/teaching/console-runner.js (classic
script, file:// safe) and mount it on carrier-toolkit.html: per-part 运行本件,
per-group 运行本组, 运行全部 and 运行装配, all fed by lessons.mjs ids at build
time. Fix runButton() emitting a duplicate class attribute that dropped
run-group/run-assembly. Server banner now prints the carrier page URL; new
check:carrier-live gate drives the dry lesson end-to-end.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 21:45:08 +08:00

92 lines
7.5 KiB
JSON

{
"name": "freecad-1-2-web",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"format:coverage": "node ../tools/run_p6_format_coverage_gate.mjs",
"full-parity:gate": "python3 ../tools/run_full_parity_gate.py",
"material:tier1-gate": "node ../tools/run_p6_material_python_family_gate.mjs",
"sync-show-python-family-fixture": "node ../tools/sync_show_python_family_fixture.mjs",
"sync-api-index": "python3 ../tools/generate_python_api_runtime_index.py",
"sync-object-index": "python3 ../tools/generate_object_runtime_index.py",
"sync-format-index": "python3 ../tools/generate_format_runtime_index.py",
"sync-module-registry": "python3 ../tools/generate_web_module_registry.py",
"sync-release-manifest": "python3 ../tools/generate_web_release_manifest.py",
"sync-part-tier2-adapter": "python3 ../tools/generate_part_tier2_adapter_manifest.py",
"sync-partdesign-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py PartDesign tier-2-pure --output docs/p6/partdesign-tier2-adapter-manifest.json",
"sync-sketcher-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Sketcher tier-2-pure --output docs/p6/sketcher-tier2-adapter-manifest.json",
"sync-techdraw-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py TechDraw tier-2-pure --output docs/p6/techdraw-tier2-adapter-manifest.json",
"sync-import-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Import tier-2-pure --output docs/p6/import-tier2-adapter-manifest.json",
"sync-mesh-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Mesh tier-2-pure --output docs/p6/mesh-tier2-adapter-manifest.json",
"sync-material-tier1-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Material tier-1-readonly --output docs/p6/material-tier1-readonly-adapter-manifest.json",
"sync-tier2-remainder": "python3 ../tools/generate_remaining_tier2_adapter_manifests.py",
"sync-tier3-stateful": "python3 ../tools/generate_tier3_stateful_adapter_manifest.py",
"sync-viewprovider-index": "python3 ../tools/generate_viewprovider_runtime_index.py",
"sync-property-index": "python3 ../tools/generate_property_runtime_index.py",
"sync-geometry-index": "python3 ../tools/generate_geometry_runtime_index.py",
"sync-document-graph-index": "python3 ../tools/generate_document_graph_runtime_index.py",
"sync-capability-index": "python3 ../tools/generate_capability_runtime_index.py",
"sync-tier1-readonly": "python3 ../tools/generate_tier1_readonly_adapter_manifest.py",
"sync-tier4-restricted": "python3 ../tools/generate_tier4_restricted_manifest.py",
"sync-api-adapter-fill": "python3 ../tools/generate_api_adapter_fill_manifest.py",
"sync-format-extensions": "python3 ../tools/generate_format_extension_manifest.py",
"sync-kernel": "node tools/sync-assets.mjs",
"build:wasm-modules": "python3 ../tools/build_web_module_artifacts.py",
"sync:wasm-manifest": "node tools/sync-assets.mjs",
"check:geometry-boundary": "node tools/audit-geometry-boundary.mjs",
"sync:ui-mount-inventory": "node ../tools/parity/build-ui-mount-inventory.mjs",
"resume:official": "node ../tools/auto-resume-official-case.mjs --json",
"checkpoint:official": "node ../tools/official-case-checkpoint.mjs",
"check:official-continuation": "node ../tools/auto-resume-official-case.mjs --json && node ../tools/check-official-case-continuation.mjs --json",
"manual:features": "node tools/manual/generate-features.mjs",
"build:manual": "node tools/manual/build-manual.mjs",
"check:manual": "node tools/manual/check-page.mjs",
"manual:tools": "node ../tools/build-tools-manual.mjs",
"check:tools-manual": "node ../tools/build-tools-manual.mjs --verify && node ../tools/check-tools-manual.mjs",
"build:console": "node tools/teaching-console/build-console.mjs",
"check:console": "node tools/teaching-console/build-console.mjs --check && node tools/teaching-console/self-test.mjs",
"teach:console": "node teaching/server.mjs",
"reducer:list": "node ../tools/reducer/list.mjs",
"reducer:part": "node ../tools/reducer/create-part.mjs",
"reducer:all": "node ../tools/reducer/create-all.mjs",
"reducer:assembly": "node ../tools/reducer/create-assembly.mjs",
"build:reducer-page": "node tools/teaching-console/build-reducer-page.mjs",
"check:reducer": "node ../tools/reducer/self-test.mjs && node tools/teaching-console/build-reducer-page.mjs --check && node tools/teaching-console/check-reducer-page.mjs",
"carrier:list": "node ../tools/carrier/list.mjs",
"carrier:part": "node ../tools/carrier/create-part.mjs",
"carrier:all": "node ../tools/carrier/create-all.mjs",
"carrier:assembly": "node ../tools/carrier/create-assembly.mjs",
"carrier:self-test": "node ../tools/carrier/self-test.mjs",
"build:carrier-page": "node tools/teaching-console/build-carrier-page.mjs",
"check:carrier": "node ../tools/carrier/self-test.mjs && node tools/teaching-console/build-carrier-page.mjs --check && node tools/teaching-console/check-carrier-page.mjs",
"check:carrier-live": "node tools/teaching-console/check-carrier-page.mjs --live",
"prebuild": "npm run sync-show-python-family-fixture && npm run check:geometry-boundary",
"dev": "npm run sync-api-index && npm run sync-object-index && npm run sync-format-index && npm run sync-module-registry && npm run sync-part-tier2-adapter && npm run sync-partdesign-tier2-adapter && npm run sync-sketcher-tier2-adapter && npm run sync-techdraw-tier2-adapter && npm run sync-import-tier2-adapter && npm run sync-mesh-tier2-adapter && npm run sync-material-tier1-adapter && npm run sync-tier2-remainder && npm run sync-tier3-stateful && npm run sync-viewprovider-index && npm run sync-property-index && npm run sync-geometry-index && npm run sync-document-graph-index && npm run sync-capability-index && npm run sync-tier1-readonly && npm run sync-tier4-restricted && npm run sync-api-adapter-fill && npm run sync-format-extensions && npm run sync-kernel && npm run sync-release-manifest && vite --host 0.0.0.0",
"build": "npm run sync-api-index && npm run sync-object-index && npm run sync-format-index && npm run sync-module-registry && npm run sync-part-tier2-adapter && npm run sync-partdesign-tier2-adapter && npm run sync-sketcher-tier2-adapter && npm run sync-techdraw-tier2-adapter && npm run sync-import-tier2-adapter && npm run sync-mesh-tier2-adapter && npm run sync-material-tier1-adapter && npm run sync-tier2-remainder && npm run sync-tier3-stateful && npm run sync-viewprovider-index && npm run sync-property-index && npm run sync-geometry-index && npm run sync-document-graph-index && npm run sync-capability-index && npm run sync-tier1-readonly && npm run sync-tier4-restricted && npm run sync-api-adapter-fill && npm run sync-format-extensions && npm run sync-kernel && npm run sync-release-manifest && tsc --noEmit && vite build",
"preview": "vite preview --host 0.0.0.0",
"build-and-publish": "node tools/build-and-publish.mjs"
},
"dependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"lucide": "1.32.0",
"marked": "15.0.12",
"react": "^18.3.1",
"react-arborist": "^4.0.1",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.3.1",
"react-window": "^1.8.11",
"redux": "^5.0.1",
"three": "0.185.1",
"ws": "^8.22.1"
},
"devDependencies": {
"@types/three": "0.185.0",
"playwright": "^1.64.1",
"typescript": "5.9.3",
"vite": "8.2.1"
}
}