Repository navigation
chore(examples): migrate to v3 authoring and lifecycle APIs - #1456
Closed
zrosenbauer wants to merge 3 commits into
Closed
zrosenbauer wants to merge 3 commits into
zrosenbauer wants to merge 3 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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 |
3 tasks done
🦋 Changeset detectedLatest commit: 681f108 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Bugs / Features
What is the current behavior?
Examples and generators teach constructor-based authoring and implicit startup, so newly scaffolded applications do not match the v3 API.
What is the new behavior?
Testing
Notes for reviewers
Layer 3 of 4. Depends on #1454 and #1455; merge those first.
This cross-fork draft targets upstream
next, so its diff initially includes layers 1–2. The examples/scaffolding-specific commit is681f108d. Rebase this branch ontonextafter its dependencies merge, preserving that commit.Review order: #1454 → #1455 → this PR → documentation.
Summary by cubic
Migrates repository examples and generated starter code to the v3 authoring and lifecycle APIs so newly scaffolded applications match the v3 core API.
new Agent(...),tool(...), andnew VoltAgent(...)in examples withdefineAgent,defineTool, and thevoltagentfactory.voltagent(...).ready()instead of relying on implicit construction-time startup.create-voltagent-apptemplates and the example generator to use the canonical factories.await app.ready()before creating serverless handlers.AgentandVoltAgentare now type-only exports; their runtime classes are internal.Notes for reviewers
create-voltagent-appbuilds, the LibSQL dependency, the base example, lint, and Markdown/whitespace checks passed; the full example catalog was not built or run against external services.Written for commit 681f108. Summary will update on new commits.