@chatbotkit/agent 1.29.1 â 1.30.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/README.md +3 -3
- package/dist/cjs/agent.cjs +4 -2
- package/dist/cjs/skills.cjs +6 -3
- package/dist/esm/skills.js +2 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -11,13 +11,13 @@ Build autonomous AI agents that can use custom tools and execute complex tasks w
|
|
|
11
11
|
|
|
12
12
|
## Why ChatBotKit?
|
|
13
13
|
|
|
14
|
-
**Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our servers
|
|
14
|
+
**Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our servers-not in your application. This architectural advantage delivers:
|
|
15
15
|
|
|
16
16
|
- ðŠķ **Lightweight Agents**: Your agents stay lean because complex AI processing, model orchestration, and tool execution happen server-side. Less code in your app means faster load times and simpler maintenance.
|
|
17
17
|
|
|
18
18
|
- ðĄïļ **Robust & Streamlined**: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.
|
|
19
19
|
|
|
20
|
-
- ð **Backward & Forward Compatible**: As AI technology evolves
|
|
20
|
+
- ð **Backward & Forward Compatible**: As AI technology evolves-new models, new capabilities, new paradigms-your agents automatically benefit. No code changes required on your end.
|
|
21
21
|
|
|
22
22
|
- ðŪ **Future-Proof**: Agents you build today will remain capable tomorrow. When we add support for new AI models or capabilities, your existing agents gain those powers without any updates to your codebase.
|
|
23
23
|
|
|
@@ -197,7 +197,7 @@ The `execute` mode provides system tools for task management:
|
|
|
197
197
|
Load skills from local directories and pass them as a feature to the agent. Skills are defined using `SKILL.md` files with front matter containing name and description.
|
|
198
198
|
|
|
199
199
|
```javascript
|
|
200
|
-
import { execute, loadSkills
|
|
200
|
+
import { createSkillsFeature, execute, loadSkills } from '@chatbotkit/agent'
|
|
201
201
|
import { ChatBotKit } from '@chatbotkit/sdk'
|
|
202
202
|
|
|
203
203
|
const client = new ChatBotKit({ secret: process.env.CHATBOTKIT_API_TOKEN })
|
package/dist/cjs/agent.cjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.loadAgent = loadAgent;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
7
|
const promises_1 = require("fs/promises");
|
|
6
|
-
const js_yaml_1 =
|
|
8
|
+
const js_yaml_1 = __importDefault(require("js-yaml"));
|
|
7
9
|
const path_1 = require("path");
|
|
8
10
|
function parseAgentFile(content) {
|
|
9
11
|
const frontMatterRegex = /^---\s*\n([\s\S]*?)\n---\s*\n?([\s\S]*)/;
|
package/dist/cjs/skills.cjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.loadSkills = loadSkills;
|
|
4
7
|
exports.createSkillsFeature = createSkillsFeature;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
8
|
const promises_1 = require("fs/promises");
|
|
7
|
-
const js_yaml_1 =
|
|
9
|
+
const js_yaml_1 = __importDefault(require("js-yaml"));
|
|
8
10
|
const path_1 = require("path");
|
|
9
11
|
function parseFrontMatter(content) {
|
|
10
|
-
const frontMatterRegex = /^---\
|
|
12
|
+
const frontMatterRegex = /^---\r?\n([\s\S]*?)\r?\n---/;
|
|
11
13
|
const match = content.match(frontMatterRegex);
|
|
12
14
|
if (!match) {
|
|
13
15
|
return {};
|
|
@@ -94,6 +96,7 @@ async function loadSkills(directories, options = {}) {
|
|
|
94
96
|
if (err instanceof Error &&
|
|
95
97
|
err.name !== 'AbortError' &&
|
|
96
98
|
!err.message.includes('AbortError')) {
|
|
99
|
+
console.error('Skills watcher error:', err);
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
})();
|
package/dist/esm/skills.js
CHANGED
|
@@ -2,7 +2,7 @@ import { readFile, readdir, stat, watch } from 'fs/promises';
|
|
|
2
2
|
import yaml from 'js-yaml';
|
|
3
3
|
import { join, resolve } from 'path';
|
|
4
4
|
function parseFrontMatter(content) {
|
|
5
|
-
const frontMatterRegex = /^---\
|
|
5
|
+
const frontMatterRegex = /^---\r?\n([\s\S]*?)\r?\n---/;
|
|
6
6
|
const match = content.match(frontMatterRegex);
|
|
7
7
|
if (!match) {
|
|
8
8
|
return {};
|
|
@@ -89,6 +89,7 @@ export async function loadSkills(directories, options = {}) {
|
|
|
89
89
|
if (err instanceof Error &&
|
|
90
90
|
err.name !== 'AbortError' &&
|
|
91
91
|
!err.message.includes('AbortError')) {
|
|
92
|
+
console.error('Skills watcher error:', err);
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbotkit/agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "ChatBotKit Agent implementation",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
@@ -137,10 +137,9 @@
|
|
|
137
137
|
"types": "./dist/cjs/index.d.ts",
|
|
138
138
|
"dependencies": {
|
|
139
139
|
"js-yaml": "^4.1.0",
|
|
140
|
-
"tslib": "^2.6.2",
|
|
141
140
|
"zod": "^3.25.76",
|
|
142
141
|
"zod-to-json-schema": "^3.24.6",
|
|
143
|
-
"@chatbotkit/sdk": "1.
|
|
142
|
+
"@chatbotkit/sdk": "1.30.0"
|
|
144
143
|
},
|
|
145
144
|
"devDependencies": {
|
|
146
145
|
"@types/js-yaml": "^4.0.9",
|