@luosuqwq/dsh-diagram 0.1.1 → 0.1.4

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/AGENTS.md CHANGED
@@ -11,6 +11,8 @@ A DSH bundle that adds four model-facing tools for turning HTML, a web page or a
11
11
  ## Install
12
12
 
13
13
  ```sh
14
+ dsh plugin --profile <profile> add @luosuqwq/dsh-diagram
15
+
14
16
  git clone https://github.com/LuosuQWQ/dsh-diagram.git
15
17
  dsh plugin --profile <profile> add link:<absolute path>/dsh-diagram
16
18
  # restart DSH; settings shows nothing extra, the tools are simply mounted
@@ -78,4 +80,4 @@ dsh plugin --profile <profile> add link:<本地绝对路径>/dsh-diagram
78
80
  - 不引入 npm 依赖,只用 Node 内置模块和浏览器 CDP;
79
81
  - 不写死浏览器路径,用 `DSH_DIAGRAM_BROWSER` 或探测列表;
80
82
  - 输出保持可移植:相对路径按会话 cwd 解析;
81
- - 没有 `npm test`;最低门槛是 `node --check index.js lib/*.js`。
83
+ - 没有 `npm test`;最低门槛是 `node --check index.js lib/*.js`。
package/README.md CHANGED
@@ -17,6 +17,10 @@ A DeepSeek Harness answer is text, but some explanations are really about a flow
17
17
  - **Inline in chat.** Every tool returns a `markdown` line served from the bundle's own asset route; paste it as-is and the picture appears in the answer.
18
18
  - **Real files on disk.** Each render is also saved as a file, by default under `.dsh/diagram/` in the session working directory.
19
19
 
20
+ ![Annotations drawn one by one](docs/preview/annotate.gif)
21
+
22
+ One `image_annotate` call per step: the focal point, the gaze line, the body diagonal, negative space, then the warm/cool accent — all shapes, arrows and labels are drawn at render time.
23
+
20
24
  ## Example
21
25
 
22
26
  ![An annotated composition study](docs/preview/annotation.jpg)
@@ -43,16 +47,18 @@ Install it from the checkout with the plugin manager:
43
47
  plugin_manager: { action: "install_bundle", target: "<path-to-checkout>" }
44
48
  ```
45
49
 
50
+ dsh plugin --profile <profile> add @luosuqwq/dsh-diagram
51
+
46
52
  Or add it to a profile by hand — in the profile's `package.json`:
47
53
 
48
54
  ```json
49
55
  {
50
56
  "dependencies": {
51
- "dsh-diagram": "link:<path-to-checkout>"
57
+ "@luosuqwq/dsh-diagram": "link:<path-to-checkout>"
52
58
  },
53
59
  "dsh": {
54
60
  "profile": {
55
- "bundles": ["dsh-diagram"]
61
+ "bundles": ["@luosuqwq/dsh-diagram"]
56
62
  }
57
63
  }
58
64
  }
@@ -139,4 +145,4 @@ node test/tool-path.mjs
139
145
 
140
146
  ## License
141
147
 
142
- MIT. See [LICENSE](LICENSE).
148
+ MIT. See [LICENSE](LICENSE).
package/README.zh-CN.md CHANGED
@@ -17,6 +17,10 @@ DeepSeek Harness 的回答本身是文字,但有些解释说的是流程、结
17
17
  - **直接内联。** 每个工具都返回一行 `markdown`,指向本 bundle 自己的取图路由;原样放进回答,图就出现在对话里。
18
18
  - **文件真实落盘。** 每次出图同时写一个文件,默认在会话工作目录的 `.dsh/diagram/` 下。
19
19
 
20
+ ![逐层添加的标注](docs/preview/annotate.gif)
21
+
22
+ 每一步一次 `image_annotate` 调用:焦点、视线、对角线、负空间,最后是冷暖对比——框、箭头、文字都是渲染时画上去的。
23
+
20
24
  ## 示例
21
25
 
22
26
  ![构图要点标注](docs/preview/annotation.jpg)
@@ -139,4 +143,4 @@ node test/tool-path.mjs
139
143
 
140
144
  ## 许可证
141
145
 
142
- MIT,见 [LICENSE](LICENSE)。
146
+ MIT,见 [LICENSE](LICENSE)。
package/cordis.patch.yml CHANGED
@@ -2,4 +2,5 @@
2
2
  # whole bundle, and the per-row switch writes `{ id, disabled }` here.
3
3
  - insert:
4
4
  - id: dsh-diagram
5
- name: @luosuqwq/dsh-diagram
5
+ name: '@luosuqwq/dsh-diagram'
6
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luosuqwq/dsh-diagram",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Renders explanatory diagrams, web pages and annotated images to PNG, and shows them inline in answers.",
5
5
  "author": "LuoSu <2681153600@qq.com>",
6
6
  "keywords": [