Spaces:
Running
Running
Commit History
22 days ago
-
feat(agent): replace Lux3D with image input for CAD Running
KaiWu +1: CursorDrop the external mesh API so uploaded images guide build123d directly, and show those images in the chat without another model call. Co-authored-by: Cursor <cursoragent@cursor.com>2d40989 -
feat(agent): shorten CAD turns and keep the verification record
KaiWu +1: CursorDefault to low effort until a check fails, run each build once, and write the checklist in parallel so a saved run still includes verification.json. Co-authored-by: Cursor <cursoragent@cursor.com>769eb08
23 days ago
-
fix(verify): use AddViewProp and save skipped runs once
KaiWu +1: CursorHF conda VTK 9.5+ no longer exposes Renderer.AddActor2D, which aborted verification and caused retries to allocate duplicate runs directories. Co-authored-by: Cursor <cursoragent@cursor.com>bb416ab -
fix(deploy): stop wrapping Gradio with xvfb-run on Spaces
KaiWu +1: Cursorxvfb-run as PID 1 hung the HF Space with empty logs until the 30-minute health check failed. Start the app directly, use xvfb only for the VTK render subprocess, add conda vtk, and disable Gradio SSR. Co-authored-by: Cursor <cursoragent@cursor.com>3e0d585
24 days ago
-
feat(verify): verify build123d models from rendered views before saving
KaiWu +1: CursorAdd a verification loop for execute_build123d: - Hard check: compare the model bounding box against dimensions derived from the request. - Render the STL off-screen with VTK into one 1024x1024 four-view image. - A vision judge reviews the image against a checklist generated once per request (geometry only; colour/material checks are excluded) and returns text feedback for the agent to repair failed critical items. Candidates are built as STL in a scratch directory only. A run directory with STEP + STL + manifest + views.png + verification.json is written only when verification passes; if it never passes within AIGC_MAX_VERIFY_ROUNDS, or the loop stops early, the best candidate is saved with verified=false. AIGC_VERIFY=0 restores direct saving. The judge model can be configured separately via JUDGE_MODEL_ID, JUDGE_BASE_URL and JUDGE_API_KEY. Co-authored-by: Cursor <cursoragent@cursor.com>d4c2386 -
build(docker): run app under xvfb with OpenGL libs for VTK rendering
KaiWu +1: CursorInstall xvfb and Mesa/X11 libraries and wrap the entrypoint with xvfb-run so VTK can render verification views on headless HF Spaces. Co-authored-by: Cursor <cursoragent@cursor.com>c8a7ed0 -
refactor(eval): extract compare_bbox from evaluate_bbox
KaiWu +1: CursorSplit the dimension comparison out of evaluate_bbox so callers that already have a bounding box (e.g. runtime verification) can reuse the same tolerance logic without loading a STEP file. Co-authored-by: Cursor <cursoragent@cursor.com>698d302 -
feat(agent): harden agent loop against stalls and truncation
KaiWu +1: Cursor- Stream responses and raise max_tokens to 64000. - On max_tokens, retry once with low reasoning effort and never keep a truncated tool_use in history; give up with a clear message after that. - Nudge the model once when it replies without a tool call, and let it opt out with NO_TOOL for non-modeling requests. - Turn tool exceptions into tool results instead of crashing the loop. - Roll back the turn's messages in run_chat_turn if the loop raises. - Prompt the model to call the tool directly instead of only planning. Co-authored-by: Cursor <cursoragent@cursor.com>3ce633c
-
feat(eval): expand CAD benchmark to 80 cases
KaiWu6bd7fbe
-
feat(eval): add CAD benchmark runner
KaiWuAdd a CLI runner that executes CAD benchmark cases through the active agent path and writes per-attempt transcripts, copied artifacts, scores, and aggregate summaries under outputs/evals. Add hard metric checks for tool success, manifest validity, STEP/STL export, STEP loadability, and optional bounding-box dimension checks for objectively measurable cases. Document benchmark runner usage and use readable eval directory names in the format <case_count>cases-<model_id>-<timestamp>.e4cff4b
-
Add CAD benchmark v1 cases
KaiWu5a3be35
-
Add build123d CAD execution tool
KaiWu77be2f6
-
Add GLB preview extraction for Lux3D zip outputs
KaiWubfe7d22
-
refactor(app): 移除 Gradio feedback 采集模块
KaiWu- 删除 write_feedback / submit_feedback 函数与对应 UI 组件(Radio、Textbox、Button、Status) - 精简 submit_message / reset_session 返回值数量,移除 feedback 相关占位 - 组件输出列表同步瘦身2aa101f -
chore(ui): 浏览器 tab 标题改为 ForgeCAD
KaiWu24f6cf3 -
fix(deploy): 容器以 root 运行以获得 HF 持久化卷 /data 的写权限
KaiWu- Dockerfile 增加 USER root,绕过 mambaorg/micromamba 默认用户 $MAMBA_USER 对挂载卷无写权限的问题,修复 PermissionError: '/data/outputs' - HF Spaces 容器本身已沙箱隔离,MVP 阶段 root 运行可接受11a5220 -
fix(tools): 隐藏 output_path 以修复 LLM 绕过 ARTIFACT_ROOT 的持久化缺陷
KaiWu- cadquery_tool/lux3d_tool schema: 明确指示 LLM 不要传 output_path, 描述改为推荐省略以使用配置的 artifact 目录 - prompts.py SYSTEM: 在系统提示里再次强调 do NOT pass output_path 根因:LLM 按旧 schema 默认值提示,每次主动传相对路径 outputs/xxx.step, safe_path 拼到 WORKDIR=/app 而非 ARTIFACT_ROOT=/data/outputs, 导致生成物全部写到容器临时目录,HF 持久化卷始终为空。587ef78
-
chore: 停止在仓库中跟踪 inputs/,避免二进制入 git
KaiWu- .gitignore 新增 inputs/ 规则 - 从索引移除 inputs/little-bird.png(本地保留) - HF Spaces 拒绝二进制入 git 对象库,改由本地目录承载测试素材67adaa5
-
feat(app): add lightweight feedback capture
KaiWuab26a21 -
chore(deploy): 新增 Docker 与 HF Spaces 部署配置
KaiWu- Dockerfile: 基于 micromamba 构建 aigc 环境,暴露 7860 端口, 默认 AIGC_ARTIFACT_ROOT=/data/outputs 写入 HF Spaces 持久化卷 - .dockerignore: 排除 .git/.env/outputs/data 等无需入镜像的文件 - README.md: 增加 HF Spaces 所需 front-matter 与 Secrets 说明 - .gitignore: 忽略 data/,避免容器运行时数据进入版本控制d3b5ef6 -
feat(app): 新增 Gradio Web UI 作为 MVP 交互入口
KaiWu- app.py: Gradio Blocks 页面,左侧对话 + 多模态输入(文本/图片), 右侧 3D 预览(Model3D)+ 文件下载 + 运行状态,支持会话隔离与重置 - service.py: run_chat_turn 封装一次对话闭环,从 agent_loop 消息流 抽取 assistant 文本、工具 payload、预览/下载路径,供 Web 层直接消费 - 保留终端入口 cli.py 不受影响219250e -
feat(core): 可配置 artifact root 与 CadQuery STL 预览导出
KaiWu- config: 引入 ARTIFACT_ROOT,支持通过 AIGC_ARTIFACT_ROOT 环境变量 指向工作区外的持久化目录(容器/HF Spaces 场景) - outputs: safe_path 与 workspace_relative 允许 ARTIFACT_ROOT 之下的路径,manifest 增补 generator/preview_path/warning 字段 - cadquery_tool: 每次导出 STEP 的同时生成 preview.stl,供 Web UI 的 3D 预览使用;导出失败以 warning 返回,不影响主流程 - prompts & lux3d_tool: 放宽 image_path 描述,覆盖 workspace 与 artifact 目录两类来源557e100 -
chore(deps): 固定 Python 版本为 3.11 并引入 gradio
KaiWu- 将 python 依赖 pin 到 3.11,保证跨机器构建可复现 - pip 子列表新增 gradio,作为 Web UI 的运行时依赖7574957 -
refactor: 拆分 agent_loop.py 为 agent_core 包与 cli 入口
KaiWu- 将主循环与工具调度抽到 agent_core.agent - 常量与客户端工厂抽到 agent_core.config - SYSTEM prompt 抽到 agent_core.prompts - run_dir/manifest 相关抽到 agent_core.outputs - 通用 json_response/tail_text 抽到 agent_core.utils - CadQuery 与 Lux3D 工具分别放到 agent_core.tools.{cadquery_tool,lux3d_tool} - 新增 cli.py 作为终端入口 - agent_loop.py 保留为向后兼容壳,维持 python agent_loop.py 可用105f2e1
-
chore: 依赖文件单一化,environment.yml 作为唯一 source of truth
KaiWu- 删除 requirements.txt,避免与 environment.yml 重复维护 - AGENTS.md 补充依赖管理约定:改文件 + conda env update -f environment.yml --prune 同步,禁止手工 pip/conda install 不回写21d491d -
feat: 新增图生3D能力,集成 Lux3D API
KaiWu- 新增 generate_3d_model 工具:API Key 解析、签名生成、任务创建/轮询、结果下载、manifest 记录 - 新增 lux3d_api.md 作为 API 参考文档 - 新增 inputs/little-bird.png 作为示例输入图2ff83a9
-
规范outpath的路径
KaiWub5baed0 -
v0
KaiWu8295ef1 -
initial commit
KaiWuab037c6