@lovelymai/agent 1.0.2 → 1.0.5
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/index.d.ts +1 -1
- package/dist/services/loop.d.ts +1 -1
- package/package.json +9 -4
package/dist/index.d.ts
CHANGED
package/dist/services/loop.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type AgentManager = {
|
|
|
16
16
|
/** 环境参数对象 */
|
|
17
17
|
environment: Record<string, any>;
|
|
18
18
|
/** 事件回调 */
|
|
19
|
-
onEvent
|
|
19
|
+
onEvent: ((event: Event) => void) | undefined;
|
|
20
20
|
/** 更新工具 */
|
|
21
21
|
readonly updateTools: (tools: Tool[]) => void;
|
|
22
22
|
/** 开始 */
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovelymai/agent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "一个纯净极简易于使用的 Agent 框架",
|
|
5
|
+
"keywords": ["agent"],
|
|
5
6
|
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"module": "dist/agent.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
7
|
"files": ["dist"],
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/agent.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
10
15
|
"scripts": {
|
|
11
16
|
"build": "vite build && tsc --declaration --emitDeclarationOnly --outDir dist"
|
|
12
17
|
},
|