ci(changesets): version packages#1029
Conversation
Deploying voltagent with
|
| Latest commit: |
4c96d18
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5c7d0b65.voltagent.pages.dev |
| Branch Preview URL: | https://changeset-release-main.voltagent.pages.dev |
This comment has been minimized.
This comment has been minimized.
📝 WalkthroughWalkthroughThis pull request bumps patch versions across the Voltagent ecosystem, removing a previously staged changeset entry and updating package versions to reflect patch releases (2.3.5 for core, 2.0.5 for server-hono, 2.0.7 for serverless-hono) with corresponding CHANGELOG entries documenting experimental Workspace support. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Fix all issues with AI agents
In `@examples/with-zapier-mcp/package.json`:
- Line 7: The dependency declaration for `@voltagent/core` uses a tilde range
(~2.3.5) unlike other examples; update the version string in
examples/with-zapier-mcp's package.json (the `@voltagent/core` entry) to use the
caret prefix ^2.3.5 so it matches the rest of the examples and allows
minor+patch upgrades.
In `@packages/core/CHANGELOG.md`:
- Around line 11-56: The example uses an undefined model variable and a
top-level await which may break in non-ESM runtimes; add a short model
initialization (e.g., create or import a model instance referenced as model) and
wrap the asynchronous call to Agent.generateText (or document that ESM top-level
await is required) — locate the Agent constructor usage and the await on
agent.generateText in the snippet and either prepend a concise model declaration
(a single line creating/importing the model) and wrap the final await call in an
async IIFE, or add a brief note that the example assumes ESM/top-level await.
In `@packages/sandbox-daytona/CHANGELOG.md`:
- Around line 11-56: The changelog example wrongly imports LocalSandbox from
`@voltagent/core` instead of demonstrating the package-specific Daytona sandbox;
update the example so it imports the Daytona sandbox provider (e.g.,
DaytonaSandbox or the actual exported name) from `@voltagent/sandbox-daytona` and
replace the LocalSandbox usage in the Workspace construction and its options
with the Daytona sandbox class (ensure you reference the same constructor
options like rootDir, isolation, cleanupOnDestroy) so the changelog shows
Daytona-specific usage.
| "author": "", | ||
| "dependencies": { | ||
| "@voltagent/core": "~2.3.4", | ||
| "@voltagent/core": "~2.3.5", |
There was a problem hiding this comment.
Inconsistent version range prefix: ~ (tilde) vs ^ (caret) for @voltagent/core.
This file pins @voltagent/core with ~2.3.5 (patch-only updates), while every other example in this PR uses ^2.3.5 (minor + patch updates). This is likely unintentional — if so, align it with the rest.
Proposed fix
- "@voltagent/core": "~2.3.5",
+ "@voltagent/core": "^2.3.5",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "@voltagent/core": "~2.3.5", | |
| "@voltagent/core": "^2.3.5", |
🤖 Prompt for AI Agents
In `@examples/with-zapier-mcp/package.json` at line 7, The dependency declaration
for `@voltagent/core` uses a tilde range (~2.3.5) unlike other examples; update
the version string in examples/with-zapier-mcp's package.json (the
`@voltagent/core` entry) to use the caret prefix ^2.3.5 so it matches the rest of
the examples and allows minor+patch upgrades.
| ```ts | ||
| import { Agent, Workspace, LocalSandbox, NodeFilesystemBackend } from "@voltagent/core"; | ||
|
|
||
| const workspace = new Workspace({ | ||
| id: "support-workspace", | ||
| operationTimeoutMs: 30_000, | ||
| filesystem: { | ||
| backend: new NodeFilesystemBackend({ | ||
| rootDir: "./.workspace", | ||
| }), | ||
| }, | ||
| sandbox: new LocalSandbox({ | ||
| rootDir: "./.sandbox", | ||
| isolation: { provider: "detect" }, | ||
| cleanupOnDestroy: true, | ||
| }), | ||
| search: { | ||
| autoIndexPaths: ["/notes", "/tickets"], | ||
| }, | ||
| skills: { | ||
| rootPaths: ["/skills"], | ||
| }, | ||
| }); | ||
|
|
||
| const agent = new Agent({ | ||
| name: "support-agent", | ||
| model, | ||
| instructions: "Use workspace tools to review tickets and summarize findings.", | ||
| workspace, | ||
| workspaceToolkits: { | ||
| filesystem: { | ||
| toolPolicies: { | ||
| tools: { write_file: { needsApproval: true } }, | ||
| }, | ||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| const { text } = await agent.generateText( | ||
| [ | ||
| "Scan /tickets and /notes.", | ||
| "Use workspace_search to find urgent issues from the last week.", | ||
| "Summarize the top 3 risks and include file paths as citations.", | ||
| ].join("\n"), | ||
| { maxSteps: 40 } | ||
| ); |
There was a problem hiding this comment.
Clarify missing model definition and top‑level await usage in the example.
The snippet uses model without a definition and relies on top‑level await, which may fail in non‑ESM contexts. Consider defining model in the example and wrapping the call in an async IIFE (or add a brief note that the snippet assumes ESM).
💡 Suggested doc tweak
- import { Agent, Workspace, LocalSandbox, NodeFilesystemBackend } from "@voltagent/core";
+ import { Agent, Workspace, LocalSandbox, NodeFilesystemBackend } from "@voltagent/core";
+ import { openai } from "@ai-sdk/openai";
+
+ const model = openai("gpt-4o-mini");
+
+ const run = async () => {
const workspace = new Workspace({
id: "support-workspace",
operationTimeoutMs: 30_000,
filesystem: {
backend: new NodeFilesystemBackend({
rootDir: "./.workspace",
}),
},
sandbox: new LocalSandbox({
rootDir: "./.sandbox",
isolation: { provider: "detect" },
cleanupOnDestroy: true,
}),
search: {
autoIndexPaths: ["/notes", "/tickets"],
},
skills: {
rootPaths: ["/skills"],
},
});
const agent = new Agent({
name: "support-agent",
model,
instructions: "Use workspace tools to review tickets and summarize findings.",
workspace,
workspaceToolkits: {
filesystem: {
toolPolicies: {
tools: { write_file: { needsApproval: true } },
},
},
},
});
const { text } = await agent.generateText(
[
"Scan /tickets and /notes.",
"Use workspace_search to find urgent issues from the last week.",
"Summarize the top 3 risks and include file paths as citations.",
].join("\n"),
{ maxSteps: 40 }
);
+ };📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ```ts | |
| import { Agent, Workspace, LocalSandbox, NodeFilesystemBackend } from "@voltagent/core"; | |
| const workspace = new Workspace({ | |
| id: "support-workspace", | |
| operationTimeoutMs: 30_000, | |
| filesystem: { | |
| backend: new NodeFilesystemBackend({ | |
| rootDir: "./.workspace", | |
| }), | |
| }, | |
| sandbox: new LocalSandbox({ | |
| rootDir: "./.sandbox", | |
| isolation: { provider: "detect" }, | |
| cleanupOnDestroy: true, | |
| }), | |
| search: { | |
| autoIndexPaths: ["/notes", "/tickets"], | |
| }, | |
| skills: { | |
| rootPaths: ["/skills"], | |
| }, | |
| }); | |
| const agent = new Agent({ | |
| name: "support-agent", | |
| model, | |
| instructions: "Use workspace tools to review tickets and summarize findings.", | |
| workspace, | |
| workspaceToolkits: { | |
| filesystem: { | |
| toolPolicies: { | |
| tools: { write_file: { needsApproval: true } }, | |
| }, | |
| }, | |
| }, | |
| }); | |
| const { text } = await agent.generateText( | |
| [ | |
| "Scan /tickets and /notes.", | |
| "Use workspace_search to find urgent issues from the last week.", | |
| "Summarize the top 3 risks and include file paths as citations.", | |
| ].join("\n"), | |
| { maxSteps: 40 } | |
| ); |
🤖 Prompt for AI Agents
In `@packages/core/CHANGELOG.md` around lines 11 - 56, The example uses an
undefined model variable and a top-level await which may break in non-ESM
runtimes; add a short model initialization (e.g., create or import a model
instance referenced as model) and wrap the asynchronous call to
Agent.generateText (or document that ESM top-level await is required) — locate
the Agent constructor usage and the await on agent.generateText in the snippet
and either prepend a concise model declaration (a single line creating/importing
the model) and wrap the final await call in an async IIFE, or add a brief note
that the example assumes ESM/top-level await.
| ```ts | ||
| import { Agent, Workspace, LocalSandbox, NodeFilesystemBackend } from "@voltagent/core"; | ||
|
|
||
| const workspace = new Workspace({ | ||
| id: "support-workspace", | ||
| operationTimeoutMs: 30_000, | ||
| filesystem: { | ||
| backend: new NodeFilesystemBackend({ | ||
| rootDir: "./.workspace", | ||
| }), | ||
| }, | ||
| sandbox: new LocalSandbox({ | ||
| rootDir: "./.sandbox", | ||
| isolation: { provider: "detect" }, | ||
| cleanupOnDestroy: true, | ||
| }), | ||
| search: { | ||
| autoIndexPaths: ["/notes", "/tickets"], | ||
| }, | ||
| skills: { | ||
| rootPaths: ["/skills"], | ||
| }, | ||
| }); | ||
|
|
||
| const agent = new Agent({ | ||
| name: "support-agent", | ||
| model, | ||
| instructions: "Use workspace tools to review tickets and summarize findings.", | ||
| workspace, | ||
| workspaceToolkits: { | ||
| filesystem: { | ||
| toolPolicies: { | ||
| tools: { write_file: { needsApproval: true } }, | ||
| }, | ||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| const { text } = await agent.generateText( | ||
| [ | ||
| "Scan /tickets and /notes.", | ||
| "Use workspace_search to find urgent issues from the last week.", | ||
| "Summarize the top 3 risks and include file paths as citations.", | ||
| ].join("\n"), | ||
| { maxSteps: 40 } | ||
| ); |
There was a problem hiding this comment.
Changelog example doesn't demonstrate Daytona-specific usage.
The example in the @voltagent/sandbox-daytona changelog imports LocalSandbox from @voltagent/core rather than showing the Daytona sandbox provider. For a package-specific changelog, it would be more helpful to show a DaytonaSandbox (or equivalent) import from @voltagent/sandbox-daytona. This appears to be because the same changeset description was applied across all packages.
🤖 Prompt for AI Agents
In `@packages/sandbox-daytona/CHANGELOG.md` around lines 11 - 56, The changelog
example wrongly imports LocalSandbox from `@voltagent/core` instead of
demonstrating the package-specific Daytona sandbox; update the example so it
imports the Daytona sandbox provider (e.g., DaytonaSandbox or the actual
exported name) from `@voltagent/sandbox-daytona` and replace the LocalSandbox
usage in the Workspace construction and its options with the Daytona sandbox
class (ensure you reference the same constructor options like rootDir,
isolation, cleanupOnDestroy) so the changelog shows Daytona-specific usage.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@voltagent/core@2.3.5
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
@voltagent/sandbox-daytona@2.0.1
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
@voltagent/sandbox-e2b@2.0.1
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
@voltagent/server-core@2.1.4
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
Updated dependencies [
c783943]:@voltagent/server-elysia@2.0.3
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
Updated dependencies [
c783943]:@voltagent/server-hono@2.0.5
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
Updated dependencies [
c783943]:@voltagent/serverless-hono@2.0.7
Patch Changes
#1025
c783943Thanks @omeraplak! - feat: introduce experimental Workspace support with filesystem, sandbox execution, search indexing, and skill discovery; add global workspace defaults and optional sandbox providers (E2B/Daytona). - [FEAT] Support for Workspace Environments and Agent Skills #1008Example:
Updated dependencies [
c783943]:Summary by cubic
Versioned packages to release experimental Workspace support across the stack. Adds E2B and Daytona sandbox providers and updates servers and examples to use the new core.
New Features
Dependencies
Written for commit 4c96d18. Summary will update on new commits.
Summary by CodeRabbit
New Features
Chores