dsh-3d-magic-house 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +22 -9
- package/README.zh.md +17 -8
- package/client.js +663 -316
- package/docs/design.png +0 -0
- package/docs/ideas.png +0 -0
- package/docs/overview.png +0 -0
- package/docs/printer.png +0 -0
- package/package.json +2 -1
- package/test/render.test.mjs +165 -162
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
- The panel is now **five pages** behind a tab bar — Overview, Ideas, Design, Projects, Printer —
|
|
6
|
+
instead of one long scroll. The last page is remembered, the tab that still needs work is marked,
|
|
7
|
+
and each tab follows the same five-step order as before.
|
|
8
|
+
- Overview page: dashboard with the project in progress, a live progress ring, the next step and the
|
|
9
|
+
finished list.
|
|
10
|
+
- Design page: the 3D view now auto-frames the design itself, progress is drawn as one glowing plane
|
|
11
|
+
instead of a second solid, and volume / weight / fit sit in a HUD strip.
|
|
12
|
+
- Printer page: device console with a radial progress ring, temperature bars with target ticks,
|
|
13
|
+
layer and job metrics, and a read-only footer.
|
|
14
|
+
- Ideas page: difficulty filter, equal-height cards with bottom-anchored actions, and adding a card
|
|
15
|
+
now jumps straight to Design.
|
|
16
|
+
- Visual pass: monospace numerals and kickers, corner brackets, a masked micro-grid background,
|
|
17
|
+
viewport scanline and HUD corners, a pulsing status dot and tab ticks. All motion respects
|
|
18
|
+
`prefers-reduced-motion`.
|
|
19
|
+
- The render suite now drives every page: navigation, per-page content, canvas painting on Design,
|
|
20
|
+
the live console on Printer, and an all-routes-down fallback.
|
|
21
|
+
|
|
3
22
|
## 0.1.0
|
|
4
23
|
|
|
5
24
|
First public version.
|
package/README.md
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
# 3D magic house · 3D魔法屋
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-3d-magic-house)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
3
6
|
A five-step 3D-printing workshop for a child, as a [DeepSeek Harness](https://github.com/deepseek-ai/dsh) plugin. It lives in the left sidebar and walks a kid from *"what should I make"* to *"look, it's done, I got a star"* on a **Bambu Lab P2S**.
|
|
4
7
|
|
|
8
|
+

|
|
9
|
+
|
|
5
10
|
> ⚠️ The panel is a workshop, not a slicer. It never slices, never starts a print, and never talks to Bambu's cloud.
|
|
6
11
|
|
|
7
12
|
[中文说明 →](README.zh.md)
|
|
8
13
|
|
|
9
|
-
##
|
|
14
|
+
## Five pages, one job each
|
|
15
|
+
|
|
16
|
+
The panel is split the way slicers and printer hosts split their work — Bambu Studio puts setup, preview and monitoring on separate tabs, OctoPrint gives state, files and temperature their own pages. Here each tab is one step of the flow, the tab still needing work is marked, and the last page is remembered.
|
|
10
17
|
|
|
11
|
-
|
|
|
12
|
-
| --- | --- |
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
+
| Page | What actually happens |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| **Overview** | Dashboard: the project in progress, a live progress ring with nozzle/bed readouts, the next step to take, and the finished prints with the star total. |
|
|
21
|
+
| **Ideas** | Spin a wheel of *subject × job × limit* (dinosaur / it must glow / smaller than a hand), or pick one of ten curated kid-sized projects, filterable by difficulty. Every card carries rough time, rough grams and three steps. |
|
|
22
|
+
| **Design** | A hand-written 3D view. Drag to rotate, scroll to zoom, choose box / cylinder / sphere / cone / ring, set length × width × height; volume, a solid-PLA weight guess and an oversized warning update live, and the size is saved onto the project. While a job runs, the printed height is drawn as a glowing plane. |
|
|
23
|
+
| **Projects** | The board: idea → design → printing → done, one click per stage, Done earning a star. Plus the six-item pre-print checklist and four safety rules. |
|
|
24
|
+
| **Printer** | LAN address + serial + access code, then a read-only device console: progress ring, remaining minutes, layer count, nozzle / bed / chamber temperatures and the job name. |
|
|
18
25
|
|
|
19
26
|
Anything in step 1 or 2 can be handed to a conversation with one click: the prompt is built from the card or from the exact 3D dimensions, so the model starts from "256 × 256 × 256 mm, 0.4 mm nozzle, PLA" instead of guessing.
|
|
20
27
|
|
|
28
|
+

|
|
29
|
+
|
|
21
30
|
## Install
|
|
22
31
|
|
|
23
32
|
The plugin is a plain directory — no build step, no dependencies.
|
|
@@ -67,13 +76,17 @@ So a child can ask "打到哪了" (how far along is it) or say "帮我把今天
|
|
|
67
76
|
index.js host: same-origin routes + the magic_house tool + JSON storage
|
|
68
77
|
lib/mqtt-lite.js dependency-free MQTT 3.1.1 client (TLS, subscribe, keepalive, reconnect)
|
|
69
78
|
lib/printer-link.js printer config, connection lifecycle, report merging
|
|
70
|
-
client.js sidebar entry +
|
|
79
|
+
client.js sidebar entry + five pages + the 3D renderer (plain JS, only `react`)
|
|
71
80
|
data/ideas.json idea cards and spin words
|
|
72
81
|
locale/{en,zh}.json Plugin Manager title and description
|
|
73
82
|
icon.svg plugin icon
|
|
83
|
+
docs/ the preview images above
|
|
74
84
|
test/ the checks below: `npm test`
|
|
75
85
|
```
|
|
76
86
|
|
|
87
|
+
The page screenshots in this README are rendered from the panel's own components and stylesheet in a
|
|
88
|
+
headless browser; the data in them is a fixture, not a live printer.
|
|
89
|
+
|
|
77
90
|
## Tests
|
|
78
91
|
|
|
79
92
|
```sh
|
package/README.zh.md
CHANGED
|
@@ -6,18 +6,24 @@
|
|
|
6
6
|
|
|
7
7
|
[English →](README.md)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+

|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
11
|
+
## 五个页面,各干一件事
|
|
12
|
+
|
|
13
|
+
拆法照着切片器和打印机上位机的成熟做法来——Bambu Studio 把准备、预览、设备监控放在不同标签页,OctoPrint 把状态、文件、温度各占一页。这里每个页面就是流程中的一步,还没做完的那步会标出来,上次停在哪页会记住。
|
|
14
|
+
|
|
15
|
+
| 页面 | 实际发生什么 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| **总览** | 仪表盘:正在做的作品、实时进度环 + 喷嘴/热床读数、下一步该做什么、已完成作品和星星总数。 |
|
|
18
|
+
| **灵感** | 转「主题 × 功能 × 限制」的转盘(恐龙 / 必须能发光 / 比手掌小),或从 10 张准备好的灵感卡里挑一张,可按难度筛选。每张卡都有预估时间、预估克数和三步做法。 |
|
|
19
|
+
| **设计** | 自己写的 3D 视图。拖动旋转、滚轮缩放,选方块/圆柱/球/圆锥/圆环,改长宽高;体积、按实心 PLA 估的克数、「装不装得下」实时变,尺寸记在这件作品上。正在打印时,已经打出来的高度会画成一片发光的面。 |
|
|
20
|
+
| **作品** | 清单:想法 → 建模 → 打印 → 完成,点一下往前推,推到完成得一颗星。旁边是六项打印前检查和四条安全须知。 |
|
|
21
|
+
| **打印机** | 填局域网地址、序列号、访问码,然后是只读的设备控制台:进度环、剩余时间、层数、喷嘴/热床/腔温和当前作品名。 |
|
|
18
22
|
|
|
19
23
|
第一步和第二步都能一键交给对话:提示词里带着卡片内容或你刚设的精确尺寸,模型不用猜「多大、什么喷嘴、什么料」。
|
|
20
24
|
|
|
25
|
+

|
|
26
|
+
|
|
21
27
|
## 安装
|
|
22
28
|
|
|
23
29
|
插件就是一个目录,没有依赖、没有构建步骤。
|
|
@@ -71,9 +77,12 @@ client.js 侧栏入口 + 面板 + 3D 渲染器(纯 JS,只用 rea
|
|
|
71
77
|
data/ideas.json 灵感卡与转盘词库
|
|
72
78
|
locale/{en,zh}.json Plugin Manager 里的标题和说明
|
|
73
79
|
icon.svg 插件图标
|
|
80
|
+
docs/ 上面那些预览图
|
|
74
81
|
test/ 下面的检查:`npm test`
|
|
75
82
|
```
|
|
76
83
|
|
|
84
|
+
README 里的页面截图是用面板自己的组件和样式在无头浏览器里渲染出来的,里面的数据是测试用的假数据,不是真机。
|
|
85
|
+
|
|
77
86
|
## 测试
|
|
78
87
|
|
|
79
88
|
```sh
|