@liangjiehappy/dsh-plugin-mfgabc 0.1.1 → 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.
Files changed (2) hide show
  1. package/lib/index.js +5 -5
  2. package/package.json +6 -3
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangjiehappy/dsh-plugin-mfgabc",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "mfgabc.com 制造业内容查询:标准页、产业带城市、工艺集群、跨境合规。只访问 www.mfgabc.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": "*",