DECISION: Make the exterior revision the Codex gallery entry
DECISION: Route the existing Codex menu entry to the independent R0.3 exterior workspace on port 8785, with an actual CAD preview and an explicit stage label. WHY: The 2026-11-16 exterior critique led to the decision recorded in design-docs/lh20-r03-exterior-first.md and implemented by "DECISION: Rebuild LH20 exterior proportions before refitting actuators". The user previously requested one menu distinguishing Codex and Claude designs; the same entry should now open the reviewed exterior rather than leave them looking at the rejected version. ALTERNATIVE CONSIDERED AND REJECTED: Replacing the old workspace would lose the internal-design baseline. A separate unlabelled link would preserve the user's confusion about model authorship and revision. WHAT CHANGES: Update the registered Codex workspace, editor URL, preview, labels and launcher documentation. Keep the Claude route and add an explicit old R0.1 comparison link. The exterior card describes 20-axis layout and pending internal adaptation. Checked: The running menu API reported the correct R0.3 workspace online; the browser route loaded hand.py with 146 parts. Python compilation, JavaScript syntax and staged whitespace checks passed. Existing R0.1 and Claude editors were preserved. Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
@@ -7,11 +7,13 @@ python3 examples/hand_gallery/launch.py
|
||||
```
|
||||
|
||||
- `http://127.0.0.1:8764/`:选择菜单。
|
||||
- `http://127.0.0.1:8764/hands/codex`:Codex 的 LH20。
|
||||
- `http://127.0.0.1:8764/hands/codex`:Codex 的 LH20 R0.3 外形重设计(独立端口 8785)。
|
||||
- `http://127.0.0.1:8764/hands/claude`:Claude 的 20 自由度灵巧手。
|
||||
|
||||
顶部菜单可随时切换;浏览器前进、后退和直接刷新路由均支持。已经打开的编辑器保留在各自 iframe 中,切换不会触发整手重新构建。右上角可将当前编辑器放到独立窗口。
|
||||
|
||||
启动器检查现有服务的工作区,复用匹配的 8765 / 8771 编辑器;未启动时使用 `.venv/bin/sca` / `.venv-hand/bin/sca` 启动相应 `hand.py`。遇到无关服务占用端口会报错,不终止其他进程。菜单只绑定本机地址;预览图直接读取两个项目已有的 CAD 渲染结果。
|
||||
启动器检查现有服务的工作区,复用匹配的 8785 / 8771 编辑器;未启动时使用 `.venv/bin/sca` / `.venv-hand/bin/sca` 启动相应 `hand.py`。遇到无关服务占用端口会报错,不终止其他进程。菜单只绑定本机地址;预览图直接读取两个项目已有的 CAD 渲染结果。
|
||||
|
||||
R0.1 仍保留于 `examples/lh20_hand`,原编辑器端口 8765 不受影响,首页保留对照链接。需要单独重开时运行 `.venv/bin/sca edit examples/lh20_hand/hand.py --port 8765`。修改模型注册表后只需重启菜单服务;已有编辑器不必重启。
|
||||
|
||||
`models.py` 管理模型路径与端口,`server.py` 提供只读状态与固定资源路由,`web/` 实现页面;无需新增依赖。日志和 PID 位于忽略提交的 `.runtime/`。本菜单不修改任一 CAD 模型或 SDK 源码。
|
||||
|
||||
@@ -8,11 +8,11 @@ HOST = "127.0.0.1"
|
||||
PORT = 8764
|
||||
MODELS = {
|
||||
"codex": {
|
||||
"name": "LH20 · Codex",
|
||||
"workspace": ROOT / "examples/lh20_hand",
|
||||
"name": "LH20 R0.3 外形 · Codex",
|
||||
"workspace": ROOT / "examples/lh20_hand_r03",
|
||||
"executable": ROOT / ".venv/bin/sca",
|
||||
"port": 8765,
|
||||
"preview": ROOT / "examples/lh20_hand/out/lh20_right_hand_overview.png",
|
||||
"port": 8785,
|
||||
"preview": ROOT / "examples/lh20_hand_r03/out/hand_front.png",
|
||||
},
|
||||
"claude": {
|
||||
"name": "20 自由度灵巧手 · Claude",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const models = {
|
||||
codex: { name: "LH20 · Codex", url: "http://127.0.0.1:8765", state: "checking" },
|
||||
codex: { name: "LH20 R0.3 外形 · Codex", url: "http://127.0.0.1:8785", state: "checking" },
|
||||
claude: { name: "20 自由度灵巧手 · Claude", url: "http://127.0.0.1:8771", state: "checking" },
|
||||
};
|
||||
const labels = { online: "编辑器已连接", loading: "编辑器启动中", offline: "编辑器未启动", mismatch: "端口对应其他项目", checking: "检查连接中", unavailable: "暂时无法检查连接" };
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<a class="brand" href="/" data-route="/" aria-label="灵巧手工作台首页"><span class="brand-mark" aria-hidden="true">S</span><span>灵巧手工作台<small>SIMPLECAD</small></span></a>
|
||||
<nav aria-label="选择模型">
|
||||
<a href="/" data-route="/" class="nav-link" aria-current="page">全部方案</a>
|
||||
<a href="/hands/codex" data-route="/hands/codex" class="nav-link">Codex 版</a>
|
||||
<a href="/hands/codex" data-route="/hands/codex" class="nav-link">Codex R0.3</a>
|
||||
<a href="/hands/claude" data-route="/hands/claude" class="nav-link">Claude 版</a>
|
||||
</nav>
|
||||
<span class="local"><i></i>本地工作区</span>
|
||||
@@ -28,13 +28,13 @@
|
||||
<article class="card codex">
|
||||
<a class="preview" href="/hands/codex" data-route="/hands/codex" aria-label="查看 Codex 版灵巧手">
|
||||
<span class="preview-label">01 / CODEX</span>
|
||||
<svg viewBox="125 430 650 690" role="img" aria-label="Codex LH20 实际 CAD 外形"><defs><clipPath id="front-view"><rect x="125" y="430" width="650" height="690"/></clipPath></defs><image href="/previews/codex.png" width="2700" height="1430" clip-path="url(#front-view)"/></svg>
|
||||
<img src="/previews/codex.png" alt="Codex LH20 R0.3 外形重设计,实际 CAD 掌面">
|
||||
<span class="preview-caption">实际 CAD 模型</span>
|
||||
</a>
|
||||
<div class="card-body">
|
||||
<div class="card-heading"><h2>LH20 <span>Codex 版</span></h2><span class="status checking" data-status="codex">检查连接中</span></div>
|
||||
<p>原创关节与内部传动布局,三档双级行星模块,分节骨架与可拆外盖。</p>
|
||||
<div class="tags"><span>20 个主动轴</span><span>无腱绳传动</span><span>R0.1</span></div>
|
||||
<p>重做纤细指节、圆顶指尖、收腰掌壳和虎口过渡。内部驱动需按新外形重新适配。</p>
|
||||
<div class="tags"><span>20 轴布局</span><span>无腱绳设计方向</span><span>R0.3 · 外形设计</span></div>
|
||||
<a class="enter" href="/hands/codex" data-route="/hands/codex">进入 Codex 模型 <span aria-hidden="true">↗</span></a>
|
||||
</div>
|
||||
</article>
|
||||
@@ -52,7 +52,7 @@
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
<footer><span>模型与参数分别保存在各自项目中,切换不会覆盖另一款设计。</span><span>工程数字原型</span></footer>
|
||||
<footer><span>模型与参数分别保存在各自项目中。<a href="http://127.0.0.1:8765/" target="_blank" rel="noopener">打开 Codex R0.1 旧版对照 ↗</a></span><span>工程数字原型</span></footer>
|
||||
</main>
|
||||
|
||||
<section id="workspace" hidden aria-label="模型编辑器">
|
||||
@@ -60,6 +60,6 @@
|
||||
<div id="connection-notice" role="status" hidden></div>
|
||||
<div id="editors"></div>
|
||||
</section>
|
||||
<noscript><p class="noscript">请启用 JavaScript,或直接打开 <a href="http://127.0.0.1:8765/">Codex 编辑器</a> / <a href="http://127.0.0.1:8771/">Claude 编辑器</a>。</p></noscript>
|
||||
<noscript><p class="noscript">请启用 JavaScript,或直接打开 <a href="http://127.0.0.1:8785/">Codex R0.3 编辑器</a> / <a href="http://127.0.0.1:8771/">Claude 编辑器</a>。</p></noscript>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user