zhaizhoux/dsh-cad-freecad ↗★ 0
dsh-cad-freecad
DeepSeek Harness plugin that turns a local FreeCAD installation into a safe, declarative CAD modeling backend: parametric solids, exact geometry reports, STEP/IGES/STL/BREP/SVG/DXF export, a standalone CLI and a local browser UI.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhaizhoux/dsh-cad-freecad说明文档
阅读完整 README ↗配置与硬限制
cordis.patch.yml 中的 config 原样传入 apply()。所有数值都会被归一化并夹到硬上限,恶意或写错的 patch 无法放大资源消耗:
| 项 | 默认 | 硬上限 |
|---|---|---|
timeoutSeconds | 120 | 600 |
maxFeatures | 200 | 500 |
maxDocumentBytes | 1 MiB | 4 MiB |
maxBoundingBoxMm | 2000 | 100000 |
maxArtifactBytes | 128 MiB | 256 MiB |
maxPreviewPoints | 20000 | 100000 |
另有 allowExport、allowModelWrite、enableSkill 三个开关。workDir 为空时解析为 ~/.dsh-cad-freecad,相对路径按 homedir() 解析,绝对路径原样使用。
不可变修订
每次 put() 或参数修改都写入新的 rev-0000N.json 并更新 meta.json,从不覆盖历史。所有路径都经过 ensureWithin() 校验,拒绝 ../ 穿越与绝对路径逃逸;文档 id 与 artifact 文件名使用白名单正则。详见 docs/ARCHITECTURE.md。