@liangjiehappy/dsh-plugin-mfgabc 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-mfgabc
2
2
 
3
- mfgabc.com 只读查询插件:标准页、产业带城市、工艺集群、跨境合规、任意站内页。
3
+ Read-only mfgabc.com tools for DeepSeek Harness: standards pages, industrial city guides, process clusters, and cross-border compliance pages.
4
4
 
5
- ## 工具
5
+ 中文说明见 [README.zh-CN.md](README.zh-CN.md).
6
6
 
7
- | 工具 | 作用 |
7
+ ## Tools
8
+
9
+ | Tool | Purpose |
8
10
  |---|---|
9
- | `mfgabc_standard` | 标准号 → 标准页(状态/标题/链接) |
10
- | `mfgabc_city` | 城市产业带页 |
11
- | `mfgabc_process` | 工艺集群页(工艺 + 城市) |
12
- | `mfgabc_compliance` | 跨境合规页(品类 + 国家) |
13
- | `mfgabc_page` | 任意站内路径查询 |
11
+ | `mfgabc_standard` | Standard number → standards page (status/title/link) |
12
+ | `mfgabc_city` | Industrial city guide page |
13
+ | `mfgabc_process` | Process cluster page (process + city) |
14
+ | `mfgabc_compliance` | Cross-border compliance page (category + country) |
15
+ | `mfgabc_page` | Inspect any path on the site |
14
16
 
15
- ## 安装
17
+ ## Install
16
18
 
17
19
  ```bash
18
20
  dsh plugin --profile web add @liangjiehappy/dsh-plugin-mfgabc
19
21
  ```
20
22
 
21
- ## 配置
23
+ ## Config
22
24
 
23
25
  ```yaml
24
26
  - insert:
25
27
  - id: dsh-plugin-mfgabc
26
- name: dsh-plugin-mfgabc
28
+ name: "@liangjiehappy/dsh-plugin-mfgabc"
27
29
  config:
28
30
  baseUrl: "https://www.mfgabc.com"
29
31
  ```
30
32
 
31
- ## 权限声明
33
+ Zero-config works; the default base URL is `https://www.mfgabc.com`.
34
+
35
+ ## Permissions
32
36
 
33
- - 只对 `www.mfgabc.com` 发 HTTPS GET
34
- - 不读写文件、不读凭证、不执行 shell
35
- - 只读:不提交表单、不登录、不写数据
37
+ - Outbound HTTPS GET to `www.mfgabc.com` only (configurable `baseUrl`)
38
+ - No file reads or writes, no credential access, no shell
39
+ - Read-only: no form submission, no login, no writes
36
40
 
37
- ## 限制
41
+ ## Limitations
38
42
 
39
- - mfgabc 以静态页为主,工具返回页面状态/标题/链接,不做全文提取
40
- - 标准页 slug 由标准号规范化生成;个别标准可能 404,工具会如实返回状态码
41
- - 站点对 AI 训练爬虫有 403 策略;本插件以普通 UA 访问公开页面
43
+ - mfgabc is mostly static; tools return page status/title/link, not full text
44
+ - Standard slugs are normalized from the standard number; some may 404 and the real status is returned
45
+ - The site blocks AI training crawlers with 403; this plugin uses a plain UA for public pages
@@ -0,0 +1,43 @@
1
+ # dsh-plugin-mfgabc
2
+
3
+ mfgabc.com 只读查询插件:标准页、产业带城市、工艺集群、跨境合规、任意站内页。
4
+
5
+ English docs: [README.md](README.md).
6
+
7
+ ## 工具
8
+
9
+ | 工具 | 作用 |
10
+ |---|---|
11
+ | `mfgabc_standard` | 标准号 → 标准页(状态/标题/链接) |
12
+ | `mfgabc_city` | 城市产业带页 |
13
+ | `mfgabc_process` | 工艺集群页(工艺 + 城市) |
14
+ | `mfgabc_compliance` | 跨境合规页(品类 + 国家) |
15
+ | `mfgabc_page` | 任意站内路径查询 |
16
+
17
+ ## 安装
18
+
19
+ ```bash
20
+ dsh plugin --profile web add @liangjiehappy/dsh-plugin-mfgabc
21
+ ```
22
+
23
+ ## 配置
24
+
25
+ ```yaml
26
+ - insert:
27
+ - id: dsh-plugin-mfgabc
28
+ name: "@liangjiehappy/dsh-plugin-mfgabc"
29
+ config:
30
+ baseUrl: "https://www.mfgabc.com"
31
+ ```
32
+
33
+ ## 权限声明
34
+
35
+ - 只对 `www.mfgabc.com` 发 HTTPS GET
36
+ - 不读写文件、不读凭证、不执行 shell
37
+ - 只读:不提交表单、不登录、不写数据
38
+
39
+ ## 限制
40
+
41
+ - mfgabc 以静态页为主,工具返回页面状态/标题/链接,不做全文提取
42
+ - 标准页 slug 由标准号规范化生成;个别标准可能 404,工具会如实返回状态码
43
+ - 站点对 AI 训练爬虫有 403 策略;本插件以普通 UA 访问公开页面
package/lib/index.js CHANGED
@@ -28,7 +28,7 @@ export function apply(ctx, config = {}) {
28
28
 
29
29
  ctx.tools.register(defineTool({
30
30
  name: 'mfgabc_standard',
31
- description: '查 mfgabc.com 标准页:给标准号(如 ISO 4703-1977、GB/T 9114-2010),返回页面状态、标题与官方链接。',
31
+ description: '查 mfgabc.com 标准页:给标准号(如 ISO 4703-1977、GB/T 9114-2010),返回页面状态、标题与官方链接。当用户给标准号要查页面时使用。',
32
32
  parameters: {
33
33
  number: { type: 'string', required: true, description: '标准号,如“ISO 4703-1977”' },
34
34
  },
@@ -42,7 +42,7 @@ export function apply(ctx, config = {}) {
42
42
 
43
43
  ctx.tools.register(defineTool({
44
44
  name: 'mfgabc_city',
45
- description: '查 mfgabc.com 产业带城市页(如 dongguan、shenzhen)。',
45
+ description: '查 mfgabc.com 产业带城市页(如 dongguan、shenzhen)。当用户查某地制造业产业带时使用。',
46
46
  parameters: {
47
47
  city: { type: 'string', required: true, description: '城市英文 slug,如 dongguan' },
48
48
  },
@@ -56,7 +56,7 @@ export function apply(ctx, config = {}) {
56
56
 
57
57
  ctx.tools.register(defineTool({
58
58
  name: 'mfgabc_process',
59
- description: '查 mfgabc.com 工艺集群页(城市 + 工艺,如 dongguan + stamping-die)。',
59
+ description: '查 mfgabc.com 工艺集群页(城市 + 工艺,如 dongguan + stamping-die)。当用户查城市+工艺集群时使用。',
60
60
  parameters: {
61
61
  process: { type: 'string', required: true, description: '工艺 slug,如 stamping-die' },
62
62
  city: { type: 'string', required: true, description: '城市 slug,如 dongguan' },
@@ -71,7 +71,7 @@ export function apply(ctx, config = {}) {
71
71
 
72
72
  ctx.tools.register(defineTool({
73
73
  name: 'mfgabc_compliance',
74
- description: '查 mfgabc.com 跨境合规页(品类 + 国家,如 plastic-products + singapore)。',
74
+ description: '查 mfgabc.com 跨境合规页(品类 + 国家,如 plastic-products + singapore)。当用户查品类+国家合规时使用。',
75
75
  parameters: {
76
76
  category: { type: 'string', required: true, description: '品类 slug,如 plastic-products' },
77
77
  country: { type: 'string', required: true, description: '国家 slug,如 singapore' },
@@ -86,7 +86,7 @@ export function apply(ctx, config = {}) {
86
86
 
87
87
  ctx.tools.register(defineTool({
88
88
  name: 'mfgabc_page',
89
- description: '取 mfgabc.com 任意站内页面的状态、标题与最终链接(用于标准/材料/指南等已知路径)。',
89
+ description: '取 mfgabc.com 任意站内页面的状态、标题与最终链接(用于标准/材料/指南等已知路径)。当已知站内路径要核实状态时使用。',
90
90
  parameters: {
91
91
  path: { type: 'string', required: true, description: '站内路径,以 / 开头,如 /standards/' },
92
92
  },
package/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@liangjiehappy/dsh-plugin-mfgabc",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "mfgabc.com 制造业内容查询:标准页、产业带城市、工艺集群、跨境合规。只访问 www.mfgabc.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": "*",