@dsh-plugin/dsh-image-annotate 0.0.0-stage → 0.0.1

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/lib/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * dsh-image-annotate 宿主半区(host half)。
3
+ *
4
+ * 本插件是纯客户端外观插件:宿主侧只负责让包作为 cordis bundle 行挂载
5
+ * (loader entry),使 client-modules 扫描到 package.json 里的 dsh.client
6
+ * 声明与 exports["./client"],把浏览器半区编入 Web 清单。
7
+ *
8
+ * 浏览器半区的全部实现见 lib/client.js(手写、无构建步骤)。
9
+ */
10
+ export const name = 'image-annotate';
11
+
12
+ export function apply(ctx) {
13
+ ctx.logger?.debug?.('[dsh-image-annotate] host half loaded (client-only image annotation)');
14
+ }
package/package.json CHANGED
@@ -1,6 +1,66 @@
1
1
  {
2
2
  "name": "@dsh-plugin/dsh-image-annotate",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "An annotation pen for the DeepSeek Harness image lightbox: draw, label, then move / resize / re-edit any mark, and send the annotated PNG straight into the composer. 给 DSH 图片预览加一支画笔。",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./client": "./lib/client.js",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "files": [
13
+ "lib",
14
+ "cordis.patch.yml",
15
+ "README.md",
16
+ "README.en.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "check": "node --check lib/index.js && node --check lib/client.js",
21
+ "test": "python test/test_annotate.py && python test/test_edit.py",
22
+ "test:e2e": "python test/e2e_dsh.py",
23
+ "pack:dry": "npm pack --dry-run",
24
+ "publish:npm": "npm publish --registry=https://registry.npmjs.org --access public"
25
+ },
26
+ "dsh": {
27
+ "bundle": {
28
+ "patch": "./cordis.patch.yml"
29
+ },
30
+ "client": {
31
+ "inject": [],
32
+ "platform": "web"
33
+ }
34
+ },
35
+ "engines": {
36
+ "node": ">=20"
37
+ },
38
+ "license": "MIT",
39
+ "keywords": [
40
+ "dsh",
41
+ "dsh-plugin",
42
+ "dsh-plugins",
43
+ "deepseek",
44
+ "deepseek-harness",
45
+ "cordis",
46
+ "plugin",
47
+ "annotation",
48
+ "annotate",
49
+ "markup",
50
+ "image",
51
+ "lightbox",
52
+ "screenshot",
53
+ "review"
54
+ ],
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/zhishengplus/dsh-image-annotate.git"
58
+ },
59
+ "homepage": "https://github.com/zhishengplus/dsh-image-annotate",
60
+ "bugs": {
61
+ "url": "https://github.com/zhishengplus/dsh-image-annotate/issues"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ }
66
+ }