@liangjiehappy/dsh-plugin-cadpop 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-plugin-cadpop
2
2
 
3
+ Repository: https://github.com/moldkey/dsh-plugin-cadpop
4
+
3
5
  Read-only CADPOP entry tools for DeepSeek Harness: parametric templates, help center, DFM entry, online editor, and drawing tools.
4
6
 
5
7
  中文说明见 [README.zh-CN.md](README.zh-CN.md).
package/README.zh-CN.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-plugin-cadpop
2
2
 
3
+ Repository: https://github.com/moldkey/dsh-plugin-cadpop
4
+
3
5
  CADPOP(cadpop.com)只读入口插件:参数化模板清单、帮助中心、DFM 入口、在线编辑器、图纸工具页。
4
6
 
5
7
  English docs: [README.md](README.md).
package/lib/index.js CHANGED
@@ -22,7 +22,7 @@ export function apply(ctx, config = {}) {
22
22
 
23
23
  ctx.tools.register(defineTool({
24
24
  name: 'cadpop_templates',
25
- description: '列出 CADPOP 参数化模板(法兰/支架/外壳/齿轮等),返回模板名与帮助页链接。',
25
+ description: '列出 CADPOP 参数化模板(法兰/支架/外壳/齿轮等),返回模板名与帮助页链接。当用户问有哪些参数化模板时使用。',
26
26
  parameters: {},
27
27
  output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
28
28
  isConcurrencySafe: () => true,
@@ -35,7 +35,7 @@ export function apply(ctx, config = {}) {
35
35
 
36
36
  ctx.tools.register(defineTool({
37
37
  name: 'cadpop_help',
38
- description: '打开 CADPOP 帮助中心指定主题(如 templates、getting-started、save-export),返回标题与链接。',
38
+ description: '打开 CADPOP 帮助中心指定主题(如 templates、getting-started、save-export),返回标题与链接。当用户要打开帮助主题时使用。',
39
39
  parameters: {
40
40
  topic: { type: 'string', required: true, description: '帮助主题 slug,如 templates' },
41
41
  },
@@ -51,7 +51,7 @@ export function apply(ctx, config = {}) {
51
51
 
52
52
  ctx.tools.register(defineTool({
53
53
  name: 'cadpop_dfm',
54
- description: '返回 CADPOP DFM 制造分析/报价入口(人工确认价格,不自动报价)。',
54
+ description: '返回 CADPOP DFM 制造分析/报价入口(人工确认价格,不自动报价)。当用户要做可制造性检查或报价入口时使用。',
55
55
  parameters: {},
56
56
  output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
57
57
  isConcurrencySafe: () => true,
@@ -62,7 +62,7 @@ export function apply(ctx, config = {}) {
62
62
 
63
63
  ctx.tools.register(defineTool({
64
64
  name: 'cadpop_app',
65
- description: '返回 CADPOP 在线 CAD 编辑器入口(浏览器打开,可导入图纸手工修改)。',
65
+ description: '返回 CADPOP 在线 CAD 编辑器入口(浏览器打开,可导入图纸手工修改)。当用户要打开在线编辑器时使用。',
66
66
  parameters: {},
67
67
  output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
68
68
  isConcurrencySafe: () => true,
@@ -73,7 +73,7 @@ export function apply(ctx, config = {}) {
73
73
 
74
74
  ctx.tools.register(defineTool({
75
75
  name: 'cadpop_tools',
76
- description: '返回 CADPOP 工具集合页(DWG→DXF、DXF→PDF、BOM 导出等)标题与链接。',
76
+ description: '返回 CADPOP 工具集合页(DWG→DXF、DXF→PDF、BOM 导出等)标题与链接。当用户要图纸工具集合页时使用。',
77
77
  parameters: {},
78
78
  output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
79
79
  isConcurrencySafe: () => true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangjiehappy/dsh-plugin-cadpop",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "CADPOP 在线 CAD 工具入口:模板清单、帮助中心、DFM 制造分析、编辑器与图纸工具页。只访问 cadpop.com。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13,10 +13,13 @@
13
13
  "dsh": {
14
14
  "bundle": {
15
15
  "patch": "./cordis.patch.yml"
16
- }
16
+ },
17
+ "permissions": [
18
+ "network"
19
+ ]
17
20
  },
18
21
  "engines": {
19
- "dsh": ">=0.2.0"
22
+ "dsh": ">=0.2.0-rc.2"
20
23
  },
21
24
  "peerDependencies": {
22
25
  "@deepseek-ai/cordis": "*",
@@ -34,5 +37,13 @@
34
37
  "license": "MIT",
35
38
  "scripts": {
36
39
  "test": "node --test"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/moldkey/dsh-plugin-cadpop.git"
44
+ },
45
+ "homepage": "https://github.com/moldkey/dsh-plugin-cadpop",
46
+ "bugs": {
47
+ "url": "https://github.com/moldkey/dsh-plugin-cadpop/issues"
37
48
  }
38
49
  }