@liangjiehappy/dsh-plugin-cadpop 0.1.0 → 0.1.2

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,41 +1,45 @@
1
1
  # dsh-plugin-cadpop
2
2
 
3
- CADPOP(cadpop.com)只读入口插件:参数化模板清单、帮助中心、DFM 入口、在线编辑器、图纸工具页。
3
+ Read-only CADPOP entry tools for DeepSeek Harness: parametric templates, help center, DFM entry, online editor, and drawing tools.
4
4
 
5
- ## 工具
5
+ 中文说明见 [README.zh-CN.md](README.zh-CN.md).
6
6
 
7
- | 工具 | 作用 |
7
+ ## Tools
8
+
9
+ | Tool | Purpose |
8
10
  |---|---|
9
- | `cadpop_templates` | 列出参数化模板 |
10
- | `cadpop_help` | 打开帮助主题 |
11
- | `cadpop_dfm` | DFM 制造分析/报价入口 |
12
- | `cadpop_app` | 在线 CAD 编辑器入口 |
13
- | `cadpop_tools` | 图纸工具集合页 |
11
+ | `cadpop_templates` | List parametric templates |
12
+ | `cadpop_help` | Open a help topic |
13
+ | `cadpop_dfm` | DFM manufacturability/quotation entry |
14
+ | `cadpop_app` | Online CAD editor entry |
15
+ | `cadpop_tools` | Drawing tools collection page |
14
16
 
15
- ## 安装
17
+ ## Install
16
18
 
17
19
  ```bash
18
20
  dsh plugin --profile web add @liangjiehappy/dsh-plugin-cadpop
19
21
  ```
20
22
 
21
- ## 配置
23
+ ## Config
22
24
 
23
25
  ```yaml
24
26
  - insert:
25
27
  - id: dsh-plugin-cadpop
26
- name: dsh-plugin-cadpop
28
+ name: "@liangjiehappy/dsh-plugin-cadpop"
27
29
  config:
28
30
  baseUrl: "https://cadpop.com"
29
31
  ```
30
32
 
31
- ## 权限声明
33
+ Zero-config works; the default base URL is `https://cadpop.com`.
34
+
35
+ ## Permissions
32
36
 
33
- - 只对 `cadpop.com` 发 HTTPS GET
34
- - 不读写文件、不读凭证、不执行 shell
35
- - 只读:不上传图纸、不发起支付
37
+ - Outbound HTTPS GET to `cadpop.com` only (configurable `baseUrl`)
38
+ - No file reads or writes, no credential access, no shell
39
+ - Read-only: no drawing upload, no payment
36
40
 
37
- ## 限制
41
+ ## Limitations
38
42
 
39
- - 不自动报价:DFM 价格以页面结果为准
40
- - 模板清单从 `/help/templates/` 解析,页面改版可能影响解析
41
- - 生成图纸等能力属于 cadpop 站内/其它插件,不在本插件范围
43
+ - No automatic pricing: DFM prices come from the page, never promised by the AI
44
+ - Template list is parsed from `/help/templates/`; page redesigns may affect parsing
45
+ - Drawing generation belongs to the site/other plugins, not this one
@@ -0,0 +1,43 @@
1
+ # dsh-plugin-cadpop
2
+
3
+ CADPOP(cadpop.com)只读入口插件:参数化模板清单、帮助中心、DFM 入口、在线编辑器、图纸工具页。
4
+
5
+ English docs: [README.md](README.md).
6
+
7
+ ## 工具
8
+
9
+ | 工具 | 作用 |
10
+ |---|---|
11
+ | `cadpop_templates` | 列出参数化模板 |
12
+ | `cadpop_help` | 打开帮助主题 |
13
+ | `cadpop_dfm` | DFM 制造分析/报价入口 |
14
+ | `cadpop_app` | 在线 CAD 编辑器入口 |
15
+ | `cadpop_tools` | 图纸工具集合页 |
16
+
17
+ ## 安装
18
+
19
+ ```bash
20
+ dsh plugin --profile web add @liangjiehappy/dsh-plugin-cadpop
21
+ ```
22
+
23
+ ## 配置
24
+
25
+ ```yaml
26
+ - insert:
27
+ - id: dsh-plugin-cadpop
28
+ name: "@liangjiehappy/dsh-plugin-cadpop"
29
+ config:
30
+ baseUrl: "https://cadpop.com"
31
+ ```
32
+
33
+ ## 权限声明
34
+
35
+ - 只对 `cadpop.com` 发 HTTPS GET
36
+ - 不读写文件、不读凭证、不执行 shell
37
+ - 只读:不上传图纸、不发起支付
38
+
39
+ ## 限制
40
+
41
+ - 不自动报价:DFM 价格以页面结果为准
42
+ - 模板清单从 `/help/templates/` 解析,页面改版可能影响解析
43
+ - 生成图纸等能力属于 cadpop 站内/其它插件,不在本插件范围
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,21 +1,25 @@
1
1
  {
2
2
  "name": "@liangjiehappy/dsh-plugin-cadpop",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CADPOP 在线 CAD 工具入口:模板清单、帮助中心、DFM 制造分析、编辑器与图纸工具页。只访问 cadpop.com。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "files": [
8
8
  "lib",
9
9
  "cordis.patch.yml",
10
- "README.md"
10
+ "README.md",
11
+ "README.zh-CN.md"
11
12
  ],
12
13
  "dsh": {
13
14
  "bundle": {
14
15
  "patch": "./cordis.patch.yml"
15
- }
16
+ },
17
+ "permissions": [
18
+ "network"
19
+ ]
16
20
  },
17
21
  "engines": {
18
- "dsh": ">=0.2.0"
22
+ "dsh": ">=0.2.0-rc.2"
19
23
  },
20
24
  "peerDependencies": {
21
25
  "@deepseek-ai/cordis": "*",