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.

套件
dsh-cad-freecad
相容性
待驗證
Harness 依賴範圍
>=0.0.1-rc.1 <1.0.0
版本
1.0.0
授權
MIT
最近更新
2026年11月10日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhaizhoux/dsh-cad-freecad

配置与硬限制

cordis.patch.yml 中的 config 原样传入 apply()。所有数值都会被归一化并夹到硬上限,恶意或写错的 patch 无法放大资源消耗:

项默认硬上限
timeoutSeconds120600
maxFeatures200500
maxDocumentBytes1 MiB4 MiB
maxBoundingBoxMm2000100000
maxArtifactBytes128 MiB256 MiB
maxPreviewPoints20000100000

另有 allowExport、allowModelWrite、enableSkill 三个开关。workDir 为空时解析为 ~/.dsh-cad-freecad,相对路径按 homedir() 解析,绝对路径原样使用。

不可变修订

每次 put() 或参数修改都写入新的 rev-0000N.json 并更新 meta.json,从不覆盖历史。所有路径都经过 ensureWithin() 校验,拒绝 ../ 穿越与绝对路径逃逸;文档 id 与 artifact 文件名使用白名单正则。详见 docs/ARCHITECTURE.md。