dsh-emem 0.0.0-stage → 0.0.1
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/cordis.patch.yml +3 -0
- package/index.js +22 -0
- package/package.json +16 -6
- package/README.md +0 -3
package/cordis.patch.yml
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const name = 'emem'
|
|
2
|
+
export const inject = ['tools']
|
|
3
|
+
|
|
4
|
+
export function apply(ctx) {
|
|
5
|
+
ctx.tools.register({
|
|
6
|
+
name: 'emem_ping',
|
|
7
|
+
description: '测试工具,返回固定字符串。当用户要求测试 emem 插件时使用。',
|
|
8
|
+
parameters: {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
full_name: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: '三段式全名,如 App.Model.field',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
required: ['full_name'],
|
|
17
|
+
},
|
|
18
|
+
async execute(args) {
|
|
19
|
+
return `emem 收到查询:${args.full_name}`
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-emem",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-emem",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"index.js",
|
|
8
|
+
"cordis.patch.yml"
|
|
9
|
+
],
|
|
10
|
+
"dsh": {
|
|
11
|
+
"bundle": {
|
|
12
|
+
"patch": "./cordis.patch.yml"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT"
|
|
16
|
+
}
|
package/README.md
DELETED