Repository navigation
Version Packages: B4 0.9.0 - #746
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
blove
temporarily deployed
to
vercel-preview
September 19, 2026 02:47 — with
GitHub Actions
Inactive
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 19, 2026 16:14
dbf57e2 to
f64004a
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 19, 2026 16:16
f64004a to
29cc319
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 19, 2026 18:14
29cc319 to
f07a34f
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 19, 2026 19:52
f07a34f to
f91bd0e
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
September 20, 2026 04:36
067b4ea to
62a72ca
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
September 20, 2026 05:06
2db2700 to
fc304b8
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 20, 2026 06:06
fc304b8 to
ed8c563
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 20, 2026 06:27
ed8c563 to
0009a96
Compare
blove
temporarily deployed
to
vercel-preview
September 20, 2026 15:48 — with
GitHub Actions
Inactive
Merged
This branch was successfully deployed
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish 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
@b4run/[email protected]
Minor Changes
ManagedWorkspaceProvidergains an optionalopenWorkspaceReaderaddressed by the publishedReadyWorkspace(implemented for Docker as a read-only bind of the managed volume in a separate networkless container that never touches a session),@b4run/sqlite-storagegainsopenWorkspaceInstallationReader(a lock-free read-only view of an installation another process owns), and@b4run/cli/workspacegainsopenManagedWorkspaceReader/withManagedWorkspaceReader, which resolve a thread to its published workspace through that store.scopedWorkspaceReaderis exported from@b4run/workspaceas the shared always-close lifetime.Patch Changes
7c9627f: Apply a client-supplied
hashbrown.responseSchemaon the AG-UI run body to the route's root model, or reject the run.POST /agui/:routeIdused to accept the field and read nothing from it, so a Hashbrown client that expected the final message to match its UI schema got an unconstrained model and found out only when a reply failed to parse. On anagentroute the schema is now bound as the provider's native schema-constrained output alongside the route's tools — OpenAIresponse_format(json_schema,strict: true) and Anthropicoutput_config.format— so tool-calling turns are untouched and only the final message is constrained. A malformed schema, a non-agent route, or a provider with no such mode is refused with422and the newB4_E5402(invalid_response_schema/response_schema_not_supported) before any run side effect. Runs without the field are unchanged.@b4run/langchaingainsJsonSchemaResponseFormat,createChatModel({ responseFormat }),streamAgent({ responseFormat })and theJSON_SCHEMA_RESPONSE_FORMAT_PROVIDERSlist.67b18fe:
createAgentHarnessaccepts amiddlewareContextoption — a value or a(run) => contextfunction evaluated perrun()/resume()— so tools that readctx.middlewarecan be exercised in-process even though the harness bypassesmiddleware.ts.defineEvalaccepts the same field andb4 evalforwards it to the harness.6a59e00: Add an
afterhook to the middleware lifecycle definition.defineMiddleware({ handle, after })runsafteronce per AG-UI run with the agent's final assistant message and the contexthandleallowed, before the client sees the message: return nothing to keep it,{ finalMessage }to replace it, orreject(...)to end the run with aRUN_ERROR(codemiddleware_rejected). With the hook defined the final assistant message is buffered and delivered whole beforeRUN_FINISHED; text before a tool call still streams live, and an app without the hook emits exactly the events it did before.@b4run/ag-ui'stoAguiEventsnow forwards a stringcodefrom an upstream error ontoRUN_ERROR.7410154: Add a read-only way for a trusted host process to read one thread's sandbox workspace.
SandboxProvidergains an optionalopenWorkspaceReader, and@b4run/workspaceexports
withWorkspaceReaderplus theSandboxWorkspaceReader,ReadOnlyFilesystemBackend,WorkspaceReadSourceandOpenWorkspaceReaderInputcontracts.
inspectWorkspacenow accepts anyWorkspaceReadSource, so a readerworks wherever a
SandboxHandledid.dockerSandboximplements the capability by attaching the thread's existingworkspace into a separate, ephemeral, networkless container as a read-only bind
of the volume's backing directory: the thread's keeper container is never
inspected, started, stopped or replaced, and writes fail at the kernel rather
than at a policy check. It also reads a thread whose compute was already
released. A named-volume mount is deliberately avoided because it would create a
missing volume, so a reader racing a thread delete would resurrect that thread's
workspace as an empty volume. A
close()that cannot remove its containerreports the failure instead of swallowing it, and reads after close are refused
with a clear error.
kubernetesSandboxomits the capability because aReadWriteOnceclaim cannotbe mounted by a second Pod unless it lands on the same node.
fakeSandboximplements it in memory and gained the
lstat,readBinaryFileandstatFilemembers the Docker backend already had.
runProviderConformancetakes aworkspaceReadsdeclaration and verifies it, so the contract is covered withoutskipping a test for providers that omit the capability.
This is a host-side API for an already-trusted caller. It is not an authorization
boundary, not a model tool, and not an HTTP endpoint.
@b4run/clialso gains a./workspacesubpath exportingwithWorkspace,WithWorkspaceOptionsandcleanupWorkspaces, so a host process can own managedworkspace lifecycle without importing the package root, which is the command
program.
9927409: Derive tool schemas with the app's own
tsconfig.jsonand fail loudly on unresolved input types. The tool programextractToolSchemasForRoute/extractToolTypesForRoutebuild now reads the nearesttsconfig.jsonabove the app root (honoringextends,paths, andbaseUrl; an explicittsconfigoption is also accepted), so an input type imported through a path alias no longer resolves toanyand derives its real schema. When a declared input type still resolves toany/unknown, or an import it depends on does not resolve, extraction throwsUnresolvedToolInputTypeErrornaming the tool file, the type, and the tsconfig used;b4 typegenandb4 verifysurface it as a failure instead of writing{ properties: {} }. Tools that take no input ({},Record<string, never>, no parameter) keep working.Updated dependencies [7c9627f]
Updated dependencies [516c038]
Updated dependencies [6a59e00]
Updated dependencies [7410154]
Updated dependencies [16ef75f]
Updated dependencies [9927409]
@b4run/[email protected]
Minor Changes
ManagedWorkspaceProvidergains an optionalopenWorkspaceReaderaddressed by the publishedReadyWorkspace(implemented for Docker as a read-only bind of the managed volume in a separate networkless container that never touches a session),@b4run/sqlite-storagegainsopenWorkspaceInstallationReader(a lock-free read-only view of an installation another process owns), and@b4run/cli/workspacegainsopenManagedWorkspaceReader/withManagedWorkspaceReader, which resolve a thread to its published workspace through that store.scopedWorkspaceReaderis exported from@b4run/workspaceas the shared always-close lifetime.Patch Changes
7410154: Add a read-only way for a trusted host process to read one thread's sandbox workspace.
SandboxProvidergains an optionalopenWorkspaceReader, and@b4run/workspaceexports
withWorkspaceReaderplus theSandboxWorkspaceReader,ReadOnlyFilesystemBackend,WorkspaceReadSourceandOpenWorkspaceReaderInputcontracts.
inspectWorkspacenow accepts anyWorkspaceReadSource, so a readerworks wherever a
SandboxHandledid.dockerSandboximplements the capability by attaching the thread's existingworkspace into a separate, ephemeral, networkless container as a read-only bind
of the volume's backing directory: the thread's keeper container is never
inspected, started, stopped or replaced, and writes fail at the kernel rather
than at a policy check. It also reads a thread whose compute was already
released. A named-volume mount is deliberately avoided because it would create a
missing volume, so a reader racing a thread delete would resurrect that thread's
workspace as an empty volume. A
close()that cannot remove its containerreports the failure instead of swallowing it, and reads after close are refused
with a clear error.
kubernetesSandboxomits the capability because aReadWriteOnceclaim cannotbe mounted by a second Pod unless it lands on the same node.
fakeSandboximplements it in memory and gained the
lstat,readBinaryFileandstatFilemembers the Docker backend already had.
runProviderConformancetakes aworkspaceReadsdeclaration and verifies it, so the contract is covered withoutskipping a test for providers that omit the capability.
This is a host-side API for an already-trusted caller. It is not an authorization
boundary, not a model tool, and not an HTTP endpoint.
@b4run/clialso gains a./workspacesubpath exportingwithWorkspace,WithWorkspaceOptionsandcleanupWorkspaces, so a host process can own managedworkspace lifecycle without importing the package root, which is the command
program.
Updated dependencies [7c9627f]
Updated dependencies [516c038]
Updated dependencies [6a59e00]
Updated dependencies [7410154]
@b4run/[email protected]
Minor Changes
ManagedWorkspaceProvidergains an optionalopenWorkspaceReaderaddressed by the publishedReadyWorkspace(implemented for Docker as a read-only bind of the managed volume in a separate networkless container that never touches a session),@b4run/sqlite-storagegainsopenWorkspaceInstallationReader(a lock-free read-only view of an installation another process owns), and@b4run/cli/workspacegainsopenManagedWorkspaceReader/withManagedWorkspaceReader, which resolve a thread to its published workspace through that store.scopedWorkspaceReaderis exported from@b4run/workspaceas the shared always-close lifetime.Patch Changes
@b4run/[email protected]
Minor Changes
ManagedWorkspaceProvidergains an optionalopenWorkspaceReaderaddressed by the publishedReadyWorkspace(implemented for Docker as a read-only bind of the managed volume in a separate networkless container that never touches a session),@b4run/sqlite-storagegainsopenWorkspaceInstallationReader(a lock-free read-only view of an installation another process owns), and@b4run/cli/workspacegainsopenManagedWorkspaceReader/withManagedWorkspaceReader, which resolve a thread to its published workspace through that store.scopedWorkspaceReaderis exported from@b4run/workspaceas the shared always-close lifetime.Patch Changes
7410154: Add a read-only way for a trusted host process to read one thread's sandbox workspace.
SandboxProvidergains an optionalopenWorkspaceReader, and@b4run/workspaceexports
withWorkspaceReaderplus theSandboxWorkspaceReader,ReadOnlyFilesystemBackend,WorkspaceReadSourceandOpenWorkspaceReaderInputcontracts.
inspectWorkspacenow accepts anyWorkspaceReadSource, so a readerworks wherever a
SandboxHandledid.dockerSandboximplements the capability by attaching the thread's existingworkspace into a separate, ephemeral, networkless container as a read-only bind
of the volume's backing directory: the thread's keeper container is never
inspected, started, stopped or replaced, and writes fail at the kernel rather
than at a policy check. It also reads a thread whose compute was already
released. A named-volume mount is deliberately avoided because it would create a
missing volume, so a reader racing a thread delete would resurrect that thread's
workspace as an empty volume. A
close()that cannot remove its containerreports the failure instead of swallowing it, and reads after close are refused
with a clear error.
kubernetesSandboxomits the capability because aReadWriteOnceclaim cannotbe mounted by a second Pod unless it lands on the same node.
fakeSandboximplements it in memory and gained the
lstat,readBinaryFileandstatFilemembers the Docker backend already had.
runProviderConformancetakes aworkspaceReadsdeclaration and verifies it, so the contract is covered withoutskipping a test for providers that omit the capability.
This is a host-side API for an already-trusted caller. It is not an authorization
boundary, not a model tool, and not an HTTP endpoint.
@b4run/clialso gains a./workspacesubpath exportingwithWorkspace,WithWorkspaceOptionsandcleanupWorkspaces, so a host process can own managedworkspace lifecycle without importing the package root, which is the command
program.
Updated dependencies [7c9627f]
Updated dependencies [6a59e00]
@b4run/[email protected]
Patch Changes
afterhook to the middleware lifecycle definition.defineMiddleware({ handle, after })runsafteronce per AG-UI run with the agent's final assistant message and the contexthandleallowed, before the client sees the message: return nothing to keep it,{ finalMessage }to replace it, orreject(...)to end the run with aRUN_ERROR(codemiddleware_rejected). With the hook defined the final assistant message is buffered and delivered whole beforeRUN_FINISHED; text before a tool call still streams live, and an app without the hook emits exactly the events it did before.@b4run/ag-ui'stoAguiEventsnow forwards a stringcodefrom an upstream error ontoRUN_ERROR.@b4run/[email protected]
Patch Changes
tsconfig.jsonand fail loudly on unresolved input types. The tool programextractToolSchemasForRoute/extractToolTypesForRoutebuild now reads the nearesttsconfig.jsonabove the app root (honoringextends,paths, andbaseUrl; an explicittsconfigoption is also accepted), so an input type imported through a path alias no longer resolves toanyand derives its real schema. When a declared input type still resolves toany/unknown, or an import it depends on does not resolve, extraction throwsUnresolvedToolInputTypeErrornaming the tool file, the type, and the tsconfig used;b4 typegenandb4 verifysurface it as a failure instead of writing{ properties: {} }. Tools that take no input ({},Record<string, never>, no parameter) keep working.[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
createAgentHarnessaccepts amiddlewareContextoption — a value or a(run) => contextfunction evaluated perrun()/resume()— so tools that readctx.middlewarecan be exercised in-process even though the harness bypassesmiddleware.ts.defineEvalaccepts the same field andb4 evalforwards it to the harness.@b4run/[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
7c9627f: Apply a client-supplied
hashbrown.responseSchemaon the AG-UI run body to the route's root model, or reject the run.POST /agui/:routeIdused to accept the field and read nothing from it, so a Hashbrown client that expected the final message to match its UI schema got an unconstrained model and found out only when a reply failed to parse. On anagentroute the schema is now bound as the provider's native schema-constrained output alongside the route's tools — OpenAIresponse_format(json_schema,strict: true) and Anthropicoutput_config.format— so tool-calling turns are untouched and only the final message is constrained. A malformed schema, a non-agent route, or a provider with no such mode is refused with422and the newB4_E5402(invalid_response_schema/response_schema_not_supported) before any run side effect. Runs without the field are unchanged.@b4run/langchaingainsJsonSchemaResponseFormat,createChatModel({ responseFormat }),streamAgent({ responseFormat })and theJSON_SCHEMA_RESPONSE_FORMAT_PROVIDERSlist.16ef75f: Emit a
tool_resultwhen a tool throws, so AG-UI clients seeTOOL_CALL_RESULT.@b4run/langchain's agent adapter mappedon_tool_endto atool_resultchunk and emitted nothing for a non-interrupt
on_tool_error, so a client sawTOOL_CALL_START,TOOL_CALL_ARGSandTOOL_CALL_ENDfor a failing tool andnever a
TOOL_CALL_RESULT; the error ToolMessage LangGraph hands the modelappeared only inside
RUN_FINISHED.result.messages. The adapter now holds athrown root execution and resolves it from the
status: "error"ToolMessagethe tool node appends for the model, emitting a
tool_resultkeyed by the sametool-call id whose
outputis that ToolMessage — serialized exactly like asuccessful result.
interrupt()throws are unaffected.@b4run/testing'scollectRunResultnow buildsrun.toolResultsfrom thestreamed
tool_resultchunks (reading a ToolMessage, a Command's ToolMessage,or a plain output), so a thrown tool is marked
isErrorwithout reading thefinal messages; a stream that carried no tool results still falls back to
deriveToolResultsover the final messages.Updated dependencies [7c9627f]
Updated dependencies [516c038]
Updated dependencies [6a59e00]
Updated dependencies [7410154]
Updated dependencies [9927409]
@b4run/[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
@b4run/[email protected]
Patch Changes
hashbrown.responseSchemaon the AG-UI run body to the route's root model, or reject the run.POST /agui/:routeIdused to accept the field and read nothing from it, so a Hashbrown client that expected the final message to match its UI schema got an unconstrained model and found out only when a reply failed to parse. On anagentroute the schema is now bound as the provider's native schema-constrained output alongside the route's tools — OpenAIresponse_format(json_schema,strict: true) and Anthropicoutput_config.format— so tool-calling turns are untouched and only the final message is constrained. A malformed schema, a non-agent route, or a provider with no such mode is refused with422and the newB4_E5402(invalid_response_schema/response_schema_not_supported) before any run side effect. Runs without the field are unchanged.@b4run/langchaingainsJsonSchemaResponseFormat,createChatModel({ responseFormat }),streamAgent({ responseFormat })and theJSON_SCHEMA_RESPONSE_FORMAT_PROVIDERSlist.afterhook to the middleware lifecycle definition.defineMiddleware({ handle, after })runsafteronce per AG-UI run with the agent's final assistant message and the contexthandleallowed, before the client sees the message: return nothing to keep it,{ finalMessage }to replace it, orreject(...)to end the run with aRUN_ERROR(codemiddleware_rejected). With the hook defined the final assistant message is buffered and delivered whole beforeRUN_FINISHED; text before a tool call still streams live, and an app without the hook emits exactly the events it did before.@b4run/ag-ui'stoAguiEventsnow forwards a stringcodefrom an upstream error ontoRUN_ERROR.@b4run/[email protected]
Patch Changes
67b18fe:
createAgentHarnessaccepts amiddlewareContextoption — a value or a(run) => contextfunction evaluated perrun()/resume()— so tools that readctx.middlewarecan be exercised in-process even though the harness bypassesmiddleware.ts.defineEvalaccepts the same field andb4 evalforwards it to the harness.16ef75f: Emit a
tool_resultwhen a tool throws, so AG-UI clients seeTOOL_CALL_RESULT.@b4run/langchain's agent adapter mappedon_tool_endto atool_resultchunk and emitted nothing for a non-interrupt
on_tool_error, so a client sawTOOL_CALL_START,TOOL_CALL_ARGSandTOOL_CALL_ENDfor a failing tool andnever a
TOOL_CALL_RESULT; the error ToolMessage LangGraph hands the modelappeared only inside
RUN_FINISHED.result.messages. The adapter now holds athrown root execution and resolves it from the
status: "error"ToolMessagethe tool node appends for the model, emitting a
tool_resultkeyed by the sametool-call id whose
outputis that ToolMessage — serialized exactly like asuccessful result.
interrupt()throws are unaffected.@b4run/testing'scollectRunResultnow buildsrun.toolResultsfrom thestreamed
tool_resultchunks (reading a ToolMessage, a Command's ToolMessage,or a plain output), so a thrown tool is marked
isErrorwithout reading thefinal messages; a stream that carried no tool results still falls back to
deriveToolResultsover the final messages.Updated dependencies [7c9627f]
Updated dependencies [67b18fe]
Updated dependencies [516c038]
Updated dependencies [6a59e00]
Updated dependencies [7410154]
Updated dependencies [9927409]
@b4run/[email protected]
Patch Changes
tsconfig.jsonand fail loudly on unresolved input types. The tool programextractToolSchemasForRoute/extractToolTypesForRoutebuild now reads the nearesttsconfig.jsonabove the app root (honoringextends,paths, andbaseUrl; an explicittsconfigoption is also accepted), so an input type imported through a path alias no longer resolves toanyand derives its real schema. When a declared input type still resolves toany/unknown, or an import it depends on does not resolve, extraction throwsUnresolvedToolInputTypeErrornaming the tool file, the type, and the tsconfig used;b4 typegenandb4 verifysurface it as a failure instead of writing{ properties: {} }. Tools that take no input ({},Record<string, never>, no parameter) keep working.@b4run/[email protected]
@b4run/[email protected]
@b4run/[email protected]
@b4-example/[email protected]
Patch Changes
@b4-example/[email protected]
Patch Changes
@b4-example/[email protected]
Patch Changes
@b4-example/[email protected]
Patch Changes
@b4-example/[email protected]
Patch Changes
@b4-example/[email protected]
Patch Changes
@b4-example/[email protected]
Patch Changes