chore: version packages#57
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
⚠️ APPROVE unavailable — the maintainer GitHub App lackspull_requests: writeonOpenRouterTeam. Verdict posted as COMMENT; event-level approval must be added out-of-band.
Perry's Review
Automated changeset-release PR bumping @openrouter/agent to 0.8.0 and @openrouter/mcp to 0.2.0, with matching CHANGELOG entries and consumed changeset files.
Verdict: ✅ LGTM
Details
Risk: 🟢 Low
CI: no required checks reported
Findings: none
Security: no concerns — pure changelog/version/changeset files, no code changes
Test coverage: N/A (no code changed)
Unresolved threads: none
Scope: first review (full)
Review: tier=small · model=claude-sonnet-latest · score=0.7
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 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
@openrouter/agent@0.8.0
Minor Changes
#56
209499aThanks @mattapperson! - Add asourcediscriminant to tool results so untyped MCP tools no longer collapse the type safety of typed tools.Previously, mixing an MCP tool (whose output schema is
unknown) with fully-typed tools in onecallModel({ tools })array collapsed the entire result union tounknown— one untyped tool poisoned every other tool's result type.ToolExecutionResult(andToolExecutionResultUnion) now carrysource: 'client' | 'mcp'. Narrowing onsource === 'client'recovers the precise, schema-derived results for your own tools; MCP results stay isolated asunknownundersource === 'mcp'.ToolResultEvent(streaming:getFullResponsesStream,getToolStream) gains the samesourcefield. Breaking: thetool.resultevent payload now includessource; consumers that constructed or exhaustively matched these events may need to account for it.@openrouter/agentexports amarkMcp()helper, anisMcpTool()guard, and theMcpBrandedtype.@openrouter/mcpbrands every wrapped tool (including syntheticlist_resources/read_resource) so the discrimination is automatic — callers just spreadmcp.toolsas before.type: 'function'; the brand is purely informational and does not change runtime behavior.@openrouter/mcp@0.2.0
Minor Changes
#56
209499aThanks @mattapperson! - Add asourcediscriminant to tool results so untyped MCP tools no longer collapse the type safety of typed tools.Previously, mixing an MCP tool (whose output schema is
unknown) with fully-typed tools in onecallModel({ tools })array collapsed the entire result union tounknown— one untyped tool poisoned every other tool's result type.ToolExecutionResult(andToolExecutionResultUnion) now carrysource: 'client' | 'mcp'. Narrowing onsource === 'client'recovers the precise, schema-derived results for your own tools; MCP results stay isolated asunknownundersource === 'mcp'.ToolResultEvent(streaming:getFullResponsesStream,getToolStream) gains the samesourcefield. Breaking: thetool.resultevent payload now includessource; consumers that constructed or exhaustively matched these events may need to account for it.@openrouter/agentexports amarkMcp()helper, anisMcpTool()guard, and theMcpBrandedtype.@openrouter/mcpbrands every wrapped tool (including syntheticlist_resources/read_resource) so the discrimination is automatic — callers just spreadmcp.toolsas before.type: 'function'; the brand is purely informational and does not change runtime behavior.#56
26336b5Thanks @mattapperson! - Add@openrouter/mcp: expose remote MCP server tools (Streamable HTTP / SSE) ascallModeltools.createMCPTools()connects to a non-stdio MCP server, authenticates once (bearer token, custom headers, or a pluggableOAuthClientProvider), and returns a handle whose.toolsdrop straight intocallModel({ tools }). The same auth is reused for tool discovery and every tool call.convertMcpInputSchema) so the model sees real parameters; tool output schemas are mapped too.serialize()/rehydrateMCPTools()/ pluggableMCPCacheStore+InMemoryMCPCacheStore) that skips re-listing and, opt-in, re-authentication. Credential caching is off by default.tools/list_changedauto-refresh, cancellation via an abort signal, resources exposed as syntheticlist_resources/read_resourcetools, and elicitation with an optional handler (auto-declines when none is provided).Patch Changes
209499a]: