Skip to content

Commit 1e30ab3

Browse files
authored
Merge pull request #72 from chatbotkit/next
Release node-sdk
2 parents 7615044 + e8f59ee commit 1e30ab3

File tree

29 files changed

+97
-189
lines changed

29 files changed

+97
-189
lines changed

.changeset/gold-eels-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chatbotkit/agent': patch
3+
---
4+
5+
New options and fixed iterator loops.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ This repository also contains the following tools:
4646

4747
## Why ChatBotKit?
4848

49-
**Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our serversnot in your application. This architectural advantage delivers:
49+
**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:
5050

5151
- 🪶 **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.
5252

5353
- 🛡️ **Robust & Streamlined**: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.
5454

55-
- 🔄 **Backward & Forward Compatible**: As AI technology evolvesnew models, new capabilities, new paradigmsyour agents automatically benefit. No code changes required on your end.
55+
- 🔄 **Backward & Forward Compatible**: As AI technology evolves-new models, new capabilities, new paradigms-your agents automatically benefit. No code changes required on your end.
5656

5757
- 🔮 **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.
5858

packages/agent/CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# @chatbotkit/agent
22

3-
## 1.29.1
4-
5-
### Patch Changes
6-
7-
- 9332259: New options and fixed iterator loops.
8-
93
## 1.27.0
104

115
### Minor Changes

packages/agent/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Build autonomous AI agents that can use custom tools and execute complex tasks w
1111

1212
## Why ChatBotKit?
1313

14-
**Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our serversnot in your application. This architectural advantage delivers:
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:
1515

1616
- 🪶 **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.
1717

1818
- 🛡️ **Robust & Streamlined**: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.
1919

20-
- 🔄 **Backward & Forward Compatible**: As AI technology evolvesnew models, new capabilities, new paradigmsyour agents automatically benefit. No code changes required on your end.
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.
2121

2222
- 🔮 **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.
2323

@@ -197,7 +197,7 @@ The `execute` mode provides system tools for task management:
197197
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.
198198

199199
```javascript
200-
import { execute, loadSkills, createSkillsFeature } from '@chatbotkit/agent'
200+
import { createSkillsFeature, execute, loadSkills } from '@chatbotkit/agent'
201201
import { ChatBotKit } from '@chatbotkit/sdk'
202202

203203
const client = new ChatBotKit({ secret: process.env.CHATBOTKIT_API_TOKEN })

packages/agent/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Build autonomous AI agents that can use custom tools and execute complex tasks w
1515

1616
## Why ChatBotKit?
1717

18-
**Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our serversnot in your application. This architectural advantage delivers:
18+
**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:
1919

2020
- 🪶 **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.
2121

2222
- 🛡️ **Robust & Streamlined**: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.
2323

24-
- 🔄 **Backward & Forward Compatible**: As AI technology evolvesnew models, new capabilities, new paradigmsyour agents automatically benefit. No code changes required on your end.
24+
- 🔄 **Backward & Forward Compatible**: As AI technology evolves-new models, new capabilities, new paradigms-your agents automatically benefit. No code changes required on your end.
2525

2626
- 🔮 **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.
2727

packages/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chatbotkit/agent",
3-
"version": "1.29.1",
3+
"version": "1.29.0",
44
"description": "ChatBotKit Agent implementation",
55
"license": "ISC",
66
"engines": {

packages/agent/src/agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function parseAgentFile(content) {
3939
frontMatter = /** @type {Record<string, unknown>} */ (parsed)
4040
}
4141
} catch {
42-
// @note yaml parsing failed treat as no front matter
42+
// @note yaml parsing failed - treat as no front matter
4343
}
4444

4545
return { frontMatter, body: match[2].trim() }

packages/agent/src/execute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ The goal is to complete the assigned task efficiently and effectively. Follow th
531531
}
532532

533533
// The API returns end.reason in the result event. When the reason is "stop"
534-
// the model finished naturally without pending tool calls continuing
534+
// the model finished naturally without pending tool calls - continuing
535535
// would produce empty iterations endlessly unless more messages are
536536
// injected, so we treat it as a successful completion.
537537
if (lastEndReason === 'stop') {

packages/agent/src/skills.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { join, resolve } from 'path'
2727
* @returns {{ name?: string, description?: string }}
2828
*/
2929
function parseFrontMatter(content) {
30-
const frontMatterRegex = /^---\s*\n([\s\S]*?)\n---/
30+
const frontMatterRegex = /^---\r?\n([\s\S]*?)\r?\n---/
3131
const match = content.match(frontMatterRegex)
3232

3333
if (!match) {
@@ -160,14 +160,14 @@ export async function loadSkills(directories, options = {}) {
160160
}
161161
}
162162
} catch (err) {
163-
// @note watcher was aborted or error occurred
163+
// @note ignore abort errors when watcher is closed intentionally
164164

165165
if (
166166
err instanceof Error &&
167167
err.name !== 'AbortError' &&
168168
!err.message.includes('AbortError')
169169
) {
170-
// Silently ignore abort errors
170+
console.error('Skills watcher error:', err)
171171
}
172172
}
173173
})()

packages/cli/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# @chatbotkit/cli
22

3-
## 1.29.1
4-
5-
### Patch Changes
6-
7-
- Updated dependencies [9332259]
8-
- @chatbotkit/agent@1.29.1
9-
103
## 1.27.0
114

125
### Minor Changes

0 commit comments

Comments
 (0)