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.
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: emem
3
+ name: dsh-emem
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.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.