ppagent 0.0.39 → 0.1.0
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/dist/lib.d.ts +153 -162
- package/dist/lib.js +26 -21
- package/package.json +156 -136
package/package.json
CHANGED
|
@@ -1,137 +1,157 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ppagent",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "PPAgent是一个用于连接大模型和消息客户端的中间件,可以用来实现如钉钉、飞书、微信等平台对接大模型、智能体的功能。",
|
|
5
|
-
"types": "dist/lib.d.ts",
|
|
6
|
-
"main": "dist/lib.js",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"displayName": "PP智能体对接工具",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"lint": "eslint .",
|
|
11
|
-
"build": "esbuild \"src/**/*.ts\" --platform=node --outdir=build --resolve-extensions=.js --out-extension:.js=.js --format=esm",
|
|
12
|
-
"build:docker": "docker build . -t pp-agent --build-arg APP_ENV=production --progress=plain",
|
|
13
|
-
"start": "node build",
|
|
14
|
-
"tsx": "cross-env NODE_ENV=development tsx src/index.ts",
|
|
15
|
-
"dev": "cross-env NODE_ENV=development tsx watch src/index.ts",
|
|
16
|
-
"prod": "cross-env NODE_ENV=production tsx watch src/index.ts",
|
|
17
|
-
"deno": "deno --unstable-sloppy-imports --allow-env --allow-sys --allow-read --allow-write --allow-net --inspect src/index.ts | pino-pretty --colorize",
|
|
18
|
-
"lib": "node build.lib.js",
|
|
19
|
-
"test": "vitest",
|
|
20
|
-
"test:watch": "vitest -w",
|
|
21
|
-
"predocs:build":"typedoc",
|
|
22
|
-
"docs:dev": "vitepress dev docs",
|
|
23
|
-
"docs:build": "vitepress build docs",
|
|
24
|
-
"docs:preview": "vitepress preview docs"
|
|
25
|
-
},
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/ppagent/ppagent.git"
|
|
29
|
-
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"access": "public",
|
|
32
|
-
"registry": "https://registry.npmjs.org/"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"/dist"
|
|
36
|
-
],
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@fastify/
|
|
57
|
-
"@fastify/
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@types/
|
|
67
|
-
"@
|
|
68
|
-
"
|
|
69
|
-
"axios": "^1.7.7",
|
|
70
|
-
"baidu-aip-sdk": "^4.16.16",
|
|
71
|
-
"better-sqlite3": "^11.7.2",
|
|
72
|
-
"cross-env": "^7.0.3",
|
|
73
|
-
"crypto-js": "^4.2.0",
|
|
74
|
-
"dingtalk-stream": "^2.1.4",
|
|
75
|
-
"dotenv": "^16.4.5",
|
|
76
|
-
"emittery": "^1.0.3",
|
|
77
|
-
"fast-xml-parser": "^4.5.0",
|
|
78
|
-
"fastify": "^4.28.1",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"node-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"@
|
|
111
|
-
"@
|
|
112
|
-
"@types/
|
|
113
|
-
"@types/
|
|
114
|
-
"@types/
|
|
115
|
-
"@types/
|
|
116
|
-
"@types/
|
|
117
|
-
"@types/
|
|
118
|
-
"@types/
|
|
119
|
-
"@
|
|
120
|
-
"@
|
|
121
|
-
"
|
|
122
|
-
"eslint": "^
|
|
123
|
-
"eslint
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"prettier": "^
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"vitepress": "^1.
|
|
135
|
-
"
|
|
136
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "ppagent",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "PPAgent是一个用于连接大模型和消息客户端的中间件,可以用来实现如钉钉、飞书、微信等平台对接大模型、智能体的功能。",
|
|
5
|
+
"types": "dist/lib.d.ts",
|
|
6
|
+
"main": "dist/lib.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"displayName": "PP智能体对接工具",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"lint": "eslint .",
|
|
11
|
+
"build": "esbuild \"src/**/*.ts\" --platform=node --outdir=build --resolve-extensions=.js --out-extension:.js=.js --format=esm",
|
|
12
|
+
"build:docker": "docker build . -t pp-agent --build-arg APP_ENV=production --progress=plain",
|
|
13
|
+
"start": "node build",
|
|
14
|
+
"tsx": "cross-env NODE_ENV=development tsx src/index.ts",
|
|
15
|
+
"dev": "cross-env NODE_ENV=development tsx watch src/index.ts",
|
|
16
|
+
"prod": "cross-env NODE_ENV=production tsx watch src/index.ts",
|
|
17
|
+
"deno": "deno --unstable-sloppy-imports --allow-env --allow-sys --allow-read --allow-write --allow-net --inspect src/index.ts | pino-pretty --colorize",
|
|
18
|
+
"lib": "node build.lib.js",
|
|
19
|
+
"test": "vitest",
|
|
20
|
+
"test:watch": "vitest -w",
|
|
21
|
+
"predocs:build": "typedoc",
|
|
22
|
+
"docs:dev": "vitepress dev docs",
|
|
23
|
+
"docs:build": "vitepress build docs",
|
|
24
|
+
"docs:preview": "vitepress preview docs"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/ppagent/ppagent.git"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"/dist"
|
|
36
|
+
],
|
|
37
|
+
"keywords": [
|
|
38
|
+
"chat",
|
|
39
|
+
"wechat",
|
|
40
|
+
"chatbot"
|
|
41
|
+
],
|
|
42
|
+
"author": "ppagent",
|
|
43
|
+
"license": "Apache-2.0",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/ppagent/ppagent/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/ppagent/ppagent",
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@alicloud/dingtalk": "^2.1.52",
|
|
50
|
+
"@alicloud/openapi-client": "^0.4.12",
|
|
51
|
+
"@coze/api": "^1.0.0",
|
|
52
|
+
"@fastify/compress": "^7.0.3",
|
|
53
|
+
"@fastify/cors": "^8.5.0",
|
|
54
|
+
"@fastify/formbody": "^7.4.0",
|
|
55
|
+
"@fastify/http-proxy": "9",
|
|
56
|
+
"@fastify/static": "^7.0.4",
|
|
57
|
+
"@fastify/websocket": "^10.0.1",
|
|
58
|
+
"@formily/core": "^2.3.2",
|
|
59
|
+
"@formily/react": "^2.3.2",
|
|
60
|
+
"@keyv/redis": "^3.0.1",
|
|
61
|
+
"@larksuiteoapi/node-sdk": "^1.40.1",
|
|
62
|
+
"@modelcontextprotocol/sdk": "^1.13.1",
|
|
63
|
+
"@ngrok/ngrok": "^1.4.1",
|
|
64
|
+
"@ppagent/plugin-sample": "0.0.5",
|
|
65
|
+
"@types/baidu-aip-sdk": "^4.16.0",
|
|
66
|
+
"@types/qrcode-terminal": "^0.12.2",
|
|
67
|
+
"@wecom/crypto": "^1.0.1",
|
|
68
|
+
"ai": "^4.3.9",
|
|
69
|
+
"axios": "^1.7.7",
|
|
70
|
+
"baidu-aip-sdk": "^4.16.16",
|
|
71
|
+
"better-sqlite3": "^11.7.2",
|
|
72
|
+
"cross-env": "^7.0.3",
|
|
73
|
+
"crypto-js": "^4.2.0",
|
|
74
|
+
"dingtalk-stream": "^2.1.4",
|
|
75
|
+
"dotenv": "^16.4.5",
|
|
76
|
+
"emittery": "^1.0.3",
|
|
77
|
+
"fast-xml-parser": "^4.5.0",
|
|
78
|
+
"fastify": "^4.28.1",
|
|
79
|
+
"fastify-sse-v2": "^4.2.1",
|
|
80
|
+
"ffmpeg-static": "^5.2.0",
|
|
81
|
+
"file-type": "^19.6.0",
|
|
82
|
+
"fluent-ffmpeg": "^2.1.3",
|
|
83
|
+
"form-data": "^4.0.0",
|
|
84
|
+
"jsonwebtoken": "^9.0.2",
|
|
85
|
+
"keyv": "^5.1.0",
|
|
86
|
+
"md5": "^2.3.0",
|
|
87
|
+
"medium-zoom": "^1.1.0",
|
|
88
|
+
"minio": "^8.0.3",
|
|
89
|
+
"node-schedule": "^2.1.1",
|
|
90
|
+
"node-video-lib": "^2.3.1",
|
|
91
|
+
"openai": "^4.87.3",
|
|
92
|
+
"pino": "^9.5.0",
|
|
93
|
+
"qrcode-terminal": "^0.12.0",
|
|
94
|
+
"recorder-core": "^1.3.24040900",
|
|
95
|
+
"reflect-metadata": "^0.2.2",
|
|
96
|
+
"remove-markdown": "^0.5.5",
|
|
97
|
+
"sharp": "^0.34.4",
|
|
98
|
+
"silk-wasm": "^3.6.1",
|
|
99
|
+
"tencentcloud-sdk-nodejs-asr": "^4.0.975",
|
|
100
|
+
"tencentcloud-sdk-nodejs-tts": "^4.0.985",
|
|
101
|
+
"tweetnacl": "^1.0.3",
|
|
102
|
+
"typeorm": "^0.3.20",
|
|
103
|
+
"uuid": "^10.0.0",
|
|
104
|
+
"vue": "^3.5.13",
|
|
105
|
+
"wav-file-decoder": "^1.0.3",
|
|
106
|
+
"ws": "^8.18.0",
|
|
107
|
+
"zod": "^3.24.3"
|
|
108
|
+
},
|
|
109
|
+
"devDependencies": {
|
|
110
|
+
"@eslint/js": "^9.9.1",
|
|
111
|
+
"@swc/core": "^1.10.4",
|
|
112
|
+
"@types/crypto-js": "^4.2.2",
|
|
113
|
+
"@types/eslint__js": "^8.42.3",
|
|
114
|
+
"@types/fluent-ffmpeg": "^2.1.26",
|
|
115
|
+
"@types/jsonwebtoken": "^9.0.7",
|
|
116
|
+
"@types/localtunnel": "^2.0.4",
|
|
117
|
+
"@types/md5": "^2.3.5",
|
|
118
|
+
"@types/node": "^22.5.1",
|
|
119
|
+
"@types/node-schedule": "^2.1.7",
|
|
120
|
+
"@types/uuid": "^10.0.0",
|
|
121
|
+
"@types/ws": "^8.5.12",
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
123
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
124
|
+
"esbuild": "^0.23.1",
|
|
125
|
+
"eslint": "^9.9.1",
|
|
126
|
+
"eslint-config-prettier": "^9.1.0",
|
|
127
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
128
|
+
"pino-pretty": "^11.3.0",
|
|
129
|
+
"prettier": "^3.3.3",
|
|
130
|
+
"tsup": "^8.3.5",
|
|
131
|
+
"tsx": "^4.21.0",
|
|
132
|
+
"typedoc": "^0.28.0",
|
|
133
|
+
"typedoc-plugin-markdown": "^4.6.2",
|
|
134
|
+
"typedoc-vitepress-theme": "^1.1.2",
|
|
135
|
+
"typescript": "^5.8.3",
|
|
136
|
+
"typescript-eslint": "^8.3.0",
|
|
137
|
+
"vitepress": "^1.6.3",
|
|
138
|
+
"vitest": "^2.0.5"
|
|
139
|
+
},
|
|
140
|
+
"pnpm": {
|
|
141
|
+
"onlyBuiltDependencies": [
|
|
142
|
+
"@swc/core",
|
|
143
|
+
"better-sqlite3",
|
|
144
|
+
"esbuild",
|
|
145
|
+
"ffmpeg-static",
|
|
146
|
+
"protobufjs",
|
|
147
|
+
"sharp"
|
|
148
|
+
],
|
|
149
|
+
"ignoredBuiltDependencies": [
|
|
150
|
+
"@swc/core",
|
|
151
|
+
"better-sqlite3",
|
|
152
|
+
"esbuild",
|
|
153
|
+
"protobufjs",
|
|
154
|
+
"sharp"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
137
157
|
}
|