@liangjiehappy/dsh-plugin-mj7 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 +24 -24
- package/README.zh-CN.md +46 -0
- package/lib/index.js +6 -6
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
# dsh-plugin-mj7
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Read-only mj7.cn data tools for DeepSeek Harness: standards/product search, HS lookup, Incoterms, trade documents, and CNY FX rates.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
中文说明见 [README.zh-CN.md](README.zh-CN.md).
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Tools
|
|
8
|
+
|
|
9
|
+
| Tool | Purpose |
|
|
8
10
|
|---|---|
|
|
9
|
-
| `mj7_search` |
|
|
10
|
-
| `mj7_hot` |
|
|
11
|
-
| `mj7_hs` | HS
|
|
12
|
-
| `mj7_terms` | Incoterms
|
|
13
|
-
| `mj7_docs` |
|
|
14
|
-
| `mj7_fx` |
|
|
11
|
+
| `mj7_search` | Search standards, materials and industrial products by keyword |
|
|
12
|
+
| `mj7_hot` | Hot categories on mj7.cn |
|
|
13
|
+
| `mj7_hs` | Look up standards related to an HS code |
|
|
14
|
+
| `mj7_terms` | Incoterms responsibilities |
|
|
15
|
+
| `mj7_docs` | Export/trade document checklist |
|
|
16
|
+
| `mj7_fx` | CNY FX rates (default USD) |
|
|
15
17
|
|
|
16
|
-
##
|
|
18
|
+
## Install
|
|
17
19
|
|
|
18
20
|
```bash
|
|
19
|
-
dsh plugin --profile web add dsh-plugin-mj7
|
|
21
|
+
dsh plugin --profile web add @liangjiehappy/dsh-plugin-mj7
|
|
20
22
|
```
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## 配置
|
|
24
|
+
## Config
|
|
25
25
|
|
|
26
26
|
```yaml
|
|
27
27
|
- insert:
|
|
28
28
|
- id: dsh-plugin-mj7
|
|
29
|
-
name: dsh-plugin-mj7
|
|
29
|
+
name: "@liangjiehappy/dsh-plugin-mj7"
|
|
30
30
|
config:
|
|
31
31
|
baseUrl: "https://www.mj7.cn"
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Zero-config works; the default base URL is `https://www.mj7.cn`.
|
|
35
35
|
|
|
36
|
-
##
|
|
36
|
+
## Permissions
|
|
37
37
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
38
|
+
- Outbound HTTPS GET to `www.mj7.cn` only (configurable `baseUrl`)
|
|
39
|
+
- No file reads or writes, no credential access, no shell
|
|
40
|
+
- Read-only: no login, no orders, no writes
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Limitations
|
|
43
43
|
|
|
44
|
-
-
|
|
45
|
-
- API
|
|
46
|
-
-
|
|
44
|
+
- Depends on public mj7.cn APIs (`/api/search`, `/api/hot`, `/api/hs`, `/api/terms`, `/api/docs`, `/api/fx`)
|
|
45
|
+
- API changes can break a tool; failures surface the real HTTP error
|
|
46
|
+
- Results are summaries with filters; open the site for full content
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# dsh-plugin-mj7
|
|
2
|
+
|
|
3
|
+
模极社(mj7.cn)只读数据插件:在 DSH 里查标准、产品、HS 关联、贸易术语、单证和汇率。
|
|
4
|
+
|
|
5
|
+
English docs: [README.md](README.md).
|
|
6
|
+
|
|
7
|
+
## 工具
|
|
8
|
+
|
|
9
|
+
| 工具 | 作用 |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `mj7_search` | 关键词搜索标准/产品/材料 |
|
|
12
|
+
| `mj7_hot` | 热门品类 |
|
|
13
|
+
| `mj7_hs` | HS 编码联想标准 |
|
|
14
|
+
| `mj7_terms` | Incoterms 术语 |
|
|
15
|
+
| `mj7_docs` | 外贸单证清单 |
|
|
16
|
+
| `mj7_fx` | 人民币汇率 |
|
|
17
|
+
|
|
18
|
+
## 安装
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
dsh plugin --profile web add @liangjiehappy/dsh-plugin-mj7
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 配置
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
- insert:
|
|
28
|
+
- id: dsh-plugin-mj7
|
|
29
|
+
name: "@liangjiehappy/dsh-plugin-mj7"
|
|
30
|
+
config:
|
|
31
|
+
baseUrl: "https://www.mj7.cn"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
零配置可用,默认 https://www.mj7.cn。
|
|
35
|
+
|
|
36
|
+
## 权限声明
|
|
37
|
+
|
|
38
|
+
- 只对 `www.mj7.cn` 发 HTTPS GET(可配置 baseUrl)
|
|
39
|
+
- 不读写文件、不读凭证、不执行 shell
|
|
40
|
+
- 只读:不登录、不下单、不写数据
|
|
41
|
+
|
|
42
|
+
## 限制
|
|
43
|
+
|
|
44
|
+
- 依赖 mj7.cn 公开 API(`/api/search`、`/api/hot`、`/api/hs`、`/api/terms`、`/api/docs`、`/api/fx`)
|
|
45
|
+
- API 变更可能导致工具失败;失败会返回真实 HTTP 错误
|
|
46
|
+
- 结果只做摘要与筛选,完整内容请打开站内页面
|
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,21 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liangjiehappy/dsh-plugin-mj7",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "模极社 mj7.cn 只读数据工具:标准/产品搜索、HS 联想、Incoterms、贸易单证、人民币汇率。只访问 www.mj7.cn。",
|
|
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": "*",
|