@chatbotkit/agent 1.25.0 → 1.26.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/cjs/agent.cjs +3 -3
- package/dist/esm/agent.js +3 -3
- package/package.json +22 -20
package/dist/cjs/agent.cjs
CHANGED
|
@@ -63,7 +63,7 @@ async function* complete(options) {
|
|
|
63
63
|
data: { name, error: errorMsg },
|
|
64
64
|
});
|
|
65
65
|
await client.channel.publish(String(channel), {
|
|
66
|
-
message:
|
|
66
|
+
message: { error: errorMsg },
|
|
67
67
|
});
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
@@ -75,7 +75,7 @@ async function* complete(options) {
|
|
|
75
75
|
data: { name, result },
|
|
76
76
|
});
|
|
77
77
|
await client.channel.publish(String(channel), {
|
|
78
|
-
message:
|
|
78
|
+
message: { data: result },
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
catch (error) {
|
|
@@ -85,7 +85,7 @@ async function* complete(options) {
|
|
|
85
85
|
data: { name, error: errorMessage },
|
|
86
86
|
});
|
|
87
87
|
await client.channel.publish(String(channel), {
|
|
88
|
-
message:
|
|
88
|
+
message: { error: errorMessage },
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
finally {
|
package/dist/esm/agent.js
CHANGED
|
@@ -59,7 +59,7 @@ export async function* complete(options) {
|
|
|
59
59
|
data: { name, error: errorMsg },
|
|
60
60
|
});
|
|
61
61
|
await client.channel.publish(String(channel), {
|
|
62
|
-
message:
|
|
62
|
+
message: { error: errorMsg },
|
|
63
63
|
});
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
@@ -71,7 +71,7 @@ export async function* complete(options) {
|
|
|
71
71
|
data: { name, result },
|
|
72
72
|
});
|
|
73
73
|
await client.channel.publish(String(channel), {
|
|
74
|
-
message:
|
|
74
|
+
message: { data: result },
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
catch (error) {
|
|
@@ -81,7 +81,7 @@ export async function* complete(options) {
|
|
|
81
81
|
data: { name, error: errorMessage },
|
|
82
82
|
});
|
|
83
83
|
await client.channel.publish(String(channel), {
|
|
84
|
-
message:
|
|
84
|
+
message: { error: errorMessage },
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbotkit/agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "ChatBotKit Agent implementation",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
@@ -74,23 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"./package.json": "./package.json"
|
|
76
76
|
},
|
|
77
|
-
"types": "./dist/cjs/index.d.ts",
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"tslib": "^2.6.2",
|
|
80
|
-
"zod": "^3.25.76",
|
|
81
|
-
"zod-to-json-schema": "^3.24.6",
|
|
82
|
-
"@chatbotkit/sdk": "1.25.0"
|
|
83
|
-
},
|
|
84
|
-
"devDependencies": {
|
|
85
|
-
"npm-run-all": "^4.1.5",
|
|
86
|
-
"typedoc": "^0.28.14",
|
|
87
|
-
"typedoc-plugin-markdown": "^4.9.0",
|
|
88
|
-
"typedoc-plugin-mdn-links": "^5.0.10",
|
|
89
|
-
"typescript": "^5.9"
|
|
90
|
-
},
|
|
91
|
-
"files": [
|
|
92
|
-
"dist/**"
|
|
93
|
-
],
|
|
94
77
|
"scripts": {
|
|
95
78
|
"build": "run-s build:*",
|
|
96
79
|
"build:01-cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -109,6 +92,25 @@
|
|
|
109
92
|
"clean:node_modules": "rimraf node_modules",
|
|
110
93
|
"clean:types": "rimraf types",
|
|
111
94
|
"lint": "eslint .",
|
|
95
|
+
"postpack": "node ../../scripts/create-standard-exports.js",
|
|
96
|
+
"prepack": "node ../../scripts/create-dist-exports.js",
|
|
112
97
|
"test": "true"
|
|
113
|
-
}
|
|
114
|
-
|
|
98
|
+
},
|
|
99
|
+
"types": "./dist/cjs/index.d.ts",
|
|
100
|
+
"dependencies": {
|
|
101
|
+
"@chatbotkit/sdk": "workspace:*",
|
|
102
|
+
"tslib": "^2.6.2",
|
|
103
|
+
"zod": "^3.25.76",
|
|
104
|
+
"zod-to-json-schema": "^3.24.6"
|
|
105
|
+
},
|
|
106
|
+
"devDependencies": {
|
|
107
|
+
"npm-run-all": "^4.1.5",
|
|
108
|
+
"typedoc": "^0.28.14",
|
|
109
|
+
"typedoc-plugin-markdown": "^4.9.0",
|
|
110
|
+
"typedoc-plugin-mdn-links": "^5.0.10",
|
|
111
|
+
"typescript": "^5.9"
|
|
112
|
+
},
|
|
113
|
+
"files": [
|
|
114
|
+
"dist/**"
|
|
115
|
+
]
|
|
116
|
+
}
|