Release 2.0.0
Important
This is a breaking change release! But we've made it easy to migrate automatically. See Migration Guide to make it painless and explain changes or use npx @agentuity/migrate to migrate your project for you
🥇 a special thanks to @Huijiro for leading the v2 development effort (along with his trusty agent, Agentuity Coder)
New Features
- #1167 Major v2 architecture: agents and routes are now explicitly registered via
createApp()instead of auto-discovered from the filesystem — Gabriel Rodrigues Campos - #1167 New
@agentuity/migratepackage (npx @agentuity/migrate) to automate v1→v2 migration, including deletingsrc/generated/, rewriting routes to chained Hono style, generating barrel files, and removingbootstrapRuntimeEnv()— Gabriel Rodrigues Campos - #1167 Version mismatch detection warns when
@agentuity/*packages have conflicting versions — Gabriel Rodrigues Campos - #1167 Deprecation warnings when v1 packages are used with the v2 runtime — Gabriel Rodrigues Campos
- #1291 Add
scopesoption to sandbox creation for fine-grained permission opt-in, andwarning/warningTitlefields to OAuth permission levels — Jeff Haynie - #1289 Add
agentuity cloud sandbox job logscommand to stream stdout/stderr from sandbox jobs, with--follow,--stderr,--timestamps,--grep, and--tailoptions — Jeff Haynie
Breaking Changes
- #1167 Agents must be explicitly imported and passed to
createApp({ agents })— file-based auto-discovery fromsrc/agent/*/agent.tsis removed — Gabriel Rodrigues Campos - #1167 Routes must use an explicit Hono router passed to
createApp({ router })— file-based routing fromsrc/api/*.tsis removed — Gabriel Rodrigues Campos - #1167
createRouter()wrapper is removed; usenew Hono<Env>()with chained methods directly — Gabriel Rodrigues Campos - #1167
setupandshutdownhooks removed fromcreateApp(); use module-level initialization andprocess.on("beforeExit", ...)instead — Gabriel Rodrigues Campos - #1167
createClient,useAPI,useEventStream, anduseWebsocketremoved from@agentuity/react; usehc<AppRouter>()fromhono/clientor any data-fetching library instead — Gabriel Rodrigues Campos - #1167 Client helpers (
eventstream,websocket,stream) removed from@agentuity/frontend; usehono/clientdirectly — Gabriel Rodrigues Campos - #1167
agentuity.config.tsno longer handles Vite configuration; use a standardvite.config.tsand move runtime settings tocreateApp()— Gabriel Rodrigues Campos
Improvements
- #1167 Removed ~5,000 lines of build-time AST-based code generation (
ast.ts,entry-generator.ts,workbench.ts,route-migration.ts) in favor of a simplified config extractor — Gabriel Rodrigues Campos - #1167 Dev server now uses
bun --hotfor backend HMR instead of manual file-watching restart loop — Gabriel Rodrigues Campos - #1167 Server lifecycle (analytics, workbench, static serving, middleware) extracted from
createApp()into dedicated bootstrap helpers — Gabriel Rodrigues Campos - #1289 Centralized streaming into a shared utility with consistent cancellation, byte/chunk reporting, line/raw modes, and filtering/tailing behavior — Jeff Haynie
Bug Fixes
- #1288 Fixed
create-agentuitydist-tag logic sobun create agentuity@nextcorrectly resolves beta versions (e.g.,2.0.0-beta.1now maps to thebetadist-tag instead ofnext) — Gabriel Rodrigues Campos
Documentation
- #1290 Reorganized documentation: consolidated APIs content into Agents and Routes sections, added "Agents vs Routes" guide and "Calling Agents from Routes" page, and set up redirects from old API doc URLs — Parteek Singh
- #1167 Added v1→v2 migration guide — Gabriel Rodrigues Campos