@liangjiehappy/dsh-plugin-mj7 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 +2 -0
- package/README.zh-CN.md +2 -0
- package/lib/index.js +6 -6
- package/package.json +14 -3
package/README.md
CHANGED
package/README.zh-CN.md
CHANGED
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: 'mj7_search',
|
|
25
|
-
description: '搜索模极社(mj7.cn
|
|
25
|
+
description: '搜索模极社(mj7.cn):标准、产品、材料。返回总数与分组摘要,含站内详情标识。当用户要查某个标准/材料/产品关键词时使用。',
|
|
26
26
|
parameters: {
|
|
27
27
|
kw: { type: 'string', required: true, description: '关键词,如“法兰”“ISO 4703”' },
|
|
28
28
|
limit: { type: 'number', description: '每组返回条数,默认 6' },
|
|
@@ -37,7 +37,7 @@ export function apply(ctx, config = {}) {
|
|
|
37
37
|
|
|
38
38
|
ctx.tools.register(defineTool({
|
|
39
39
|
name: 'mj7_hot',
|
|
40
|
-
description: '
|
|
40
|
+
description: '模极社热门品类/关键词列表。当用户想了解平台热门制造品类时使用。',
|
|
41
41
|
parameters: {},
|
|
42
42
|
output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
|
|
43
43
|
isConcurrencySafe: () => true,
|
|
@@ -48,7 +48,7 @@ export function apply(ctx, config = {}) {
|
|
|
48
48
|
|
|
49
49
|
ctx.tools.register(defineTool({
|
|
50
50
|
name: 'mj7_hs',
|
|
51
|
-
description: '按 HS 编码联想相关标准(mj7.cn HS
|
|
51
|
+
description: '按 HS 编码联想相关标准(mj7.cn HS 检索)。当用户给出 HS 编码要找关联标准时使用。',
|
|
52
52
|
parameters: {
|
|
53
53
|
code: { type: 'string', required: true, description: 'HS 编码,如 73181500' },
|
|
54
54
|
limit: { type: 'number', description: '返回条数,默认 10' },
|
|
@@ -63,7 +63,7 @@ export function apply(ctx, config = {}) {
|
|
|
63
63
|
|
|
64
64
|
ctx.tools.register(defineTool({
|
|
65
65
|
name: 'mj7_terms',
|
|
66
|
-
description: '查 Incoterms 贸易术语(EXW/FOB/CIF
|
|
66
|
+
description: '查 Incoterms 贸易术语(EXW/FOB/CIF 等)的责任划分。当用户问贸易术语责任时使用。',
|
|
67
67
|
parameters: { q: { type: 'string', description: '关键词,留空返回全部' } },
|
|
68
68
|
output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
|
|
69
69
|
isConcurrencySafe: () => true,
|
|
@@ -74,7 +74,7 @@ export function apply(ctx, config = {}) {
|
|
|
74
74
|
|
|
75
75
|
ctx.tools.register(defineTool({
|
|
76
76
|
name: 'mj7_docs',
|
|
77
|
-
description: '
|
|
77
|
+
description: '查外贸单证清单(商业发票、装箱单、原产地证等)。当用户问出口需要哪些单证时使用。',
|
|
78
78
|
parameters: { q: { type: 'string', description: '关键词,留空返回全部' } },
|
|
79
79
|
output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
|
|
80
80
|
isConcurrencySafe: () => true,
|
|
@@ -85,7 +85,7 @@ export function apply(ctx, config = {}) {
|
|
|
85
85
|
|
|
86
86
|
ctx.tools.register(defineTool({
|
|
87
87
|
name: 'mj7_fx',
|
|
88
|
-
description: '查人民币汇率(基准 CNY,默认 USD
|
|
88
|
+
description: '查人民币汇率(基准 CNY,默认 USD)。当用户问人民币兑某币种汇率时使用。',
|
|
89
89
|
parameters: { currency: { type: 'string', description: '目标币种,默认 USD' } },
|
|
90
90
|
output: { schema: { type: 'json' }, render: (_a, v) => text(v) },
|
|
91
91
|
isConcurrencySafe: () => true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liangjiehappy/dsh-plugin-mj7",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "模极社 mj7.cn 只读数据工具:标准/产品搜索、HS 联想、Incoterms、贸易单证、人民币汇率。只访问 www.mj7.cn。",
|
|
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-mj7.git"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/moldkey/dsh-plugin-mj7",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/moldkey/dsh-plugin-mj7/issues"
|
|
37
48
|
}
|
|
38
49
|
}
|