@chatbotkit/agent 1.24.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 +27 -25
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,12 +74,34 @@
|
|
|
74
74
|
},
|
|
75
75
|
"./package.json": "./package.json"
|
|
76
76
|
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "run-s build:*",
|
|
79
|
+
"build:01-cjs": "tsc -p tsconfig.cjs.json",
|
|
80
|
+
"build:01-cjs_rename": "node ../../scripts/rename-cjs.js",
|
|
81
|
+
"build:01-cjs_rewrite_cjs": "node ../../scripts/rewrite-cjs.js",
|
|
82
|
+
"build:01-cjs_rewrite_ts": "node ../../scripts/rewrite-ts.js",
|
|
83
|
+
"build:03-docs": "typedoc",
|
|
84
|
+
"build:02-esm": "tsc -p tsconfig.esm.json",
|
|
85
|
+
"build:00-exports": "node ../../scripts/create-standard-exports.js",
|
|
86
|
+
"build:00-types": "tsc -p tsconfig.types.json",
|
|
87
|
+
"check": "tsc -p tsconfig.check.json",
|
|
88
|
+
"clean": "run-p clean:*",
|
|
89
|
+
"clean:buildinfo": "rimraf *.tsbuildinfo",
|
|
90
|
+
"clean:dists": "rimraf dist",
|
|
91
|
+
"clean:exports": "run-s build:exports",
|
|
92
|
+
"clean:node_modules": "rimraf node_modules",
|
|
93
|
+
"clean:types": "rimraf types",
|
|
94
|
+
"lint": "eslint .",
|
|
95
|
+
"postpack": "node ../../scripts/create-standard-exports.js",
|
|
96
|
+
"prepack": "node ../../scripts/create-dist-exports.js",
|
|
97
|
+
"test": "true"
|
|
98
|
+
},
|
|
77
99
|
"types": "./dist/cjs/index.d.ts",
|
|
78
100
|
"dependencies": {
|
|
101
|
+
"@chatbotkit/sdk": "workspace:*",
|
|
79
102
|
"tslib": "^2.6.2",
|
|
80
103
|
"zod": "^3.25.76",
|
|
81
|
-
"zod-to-json-schema": "^3.24.6"
|
|
82
|
-
"@chatbotkit/sdk": "1.24.0"
|
|
104
|
+
"zod-to-json-schema": "^3.24.6"
|
|
83
105
|
},
|
|
84
106
|
"devDependencies": {
|
|
85
107
|
"npm-run-all": "^4.1.5",
|
|
@@ -90,25 +112,5 @@
|
|
|
90
112
|
},
|
|
91
113
|
"files": [
|
|
92
114
|
"dist/**"
|
|
93
|
-
]
|
|
94
|
-
|
|
95
|
-
"build": "run-s build:*",
|
|
96
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
97
|
-
"build:cjs_rename": "node ../../scripts/rename-cjs.js",
|
|
98
|
-
"build:cjs_rewrite_cjs": "node ../../scripts/rewrite-cjs.js",
|
|
99
|
-
"build:cjs_rewrite_ts": "node ../../scripts/rewrite-ts.js",
|
|
100
|
-
"build:docs": "typedoc",
|
|
101
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
102
|
-
"build:exports": "node ../../scripts/create-standard-exports.js",
|
|
103
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
104
|
-
"check": "tsc -p tsconfig.check.json",
|
|
105
|
-
"clean": "run-p clean:*",
|
|
106
|
-
"clean:buildinfo": "rimraf *.tsbuildinfo",
|
|
107
|
-
"clean:dists": "rimraf dist",
|
|
108
|
-
"clean:exports": "run-s build:exports",
|
|
109
|
-
"clean:node_modules": "rimraf node_modules",
|
|
110
|
-
"clean:types": "rimraf types",
|
|
111
|
-
"lint": "eslint .",
|
|
112
|
-
"test": "true"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
+
]
|
|
116
|
+
}
|