Skip to content

Commit 54baf6c

Browse files
chore: version packages
1 parent 3e6b258 commit 54baf6c

9 files changed

Lines changed: 80 additions & 72 deletions

File tree

‎.changeset/bright-tools-wire-schema.md‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.changeset/drop-preliminary-results.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/from-chat-messages-tool-calls.md‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.changeset/tidy-agents-smile.md‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎packages/agent/CHANGELOG.md‎

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,75 @@
11
# @openrouter/agent
22

3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- [#110](https://github.com/OpenRouterTeam/typescript-agent/pull/110) [`9766f31`](https://github.com/OpenRouterTeam/typescript-agent/commit/9766f31ec2390cd294ca47dd81d0122941c0d586) Thanks [@LukasParke](https://github.com/LukasParke)! - Stop accumulating generator-tool `preliminaryResults` arrays. Yields are still broadcast live; the terminal `tool.result` event and `ToolExecutionResult` no longer carry the full yield history.
8+
9+
### Minor Changes
10+
11+
- [#118](https://github.com/OpenRouterTeam/typescript-agent/pull/118) [`4dce84e`](https://github.com/OpenRouterTeam/typescript-agent/commit/4dce84e4393ec36745875512d6ad1fcd8b38e502) Thanks [@sambarnes](https://github.com/sambarnes)! - Allow manual tools to provide a caller-owned JSON Schema for wire serialization.
12+
13+
```ts
14+
import { tool } from "@openrouter/agent";
15+
import { z } from "zod";
16+
17+
const confirmTool = tool({
18+
name: "confirm_action",
19+
inputSchema: z.object({ action: z.string() }),
20+
wireInputSchema: {
21+
type: "object",
22+
properties: {
23+
action: { type: "string" },
24+
},
25+
required: ["action"],
26+
},
27+
execute: false,
28+
});
29+
```
30+
31+
- [#93](https://github.com/OpenRouterTeam/typescript-agent/pull/93) [`dacf4d1`](https://github.com/OpenRouterTeam/typescript-agent/commit/dacf4d166a8ece1c2aff77727e2db1da5417391b) Thanks [@LukasParke](https://github.com/LukasParke)! - Fix `fromChatMessages` dropping assistant tool calls and give both message converters precise array return types that work with `callModel`, `Item[]`, and the SDK's `InputsUnion`.
32+
33+
Assistant `toolCalls` now become `function_call` items, preserving their already-serialized `arguments`. A message containing both text and tool calls emits both items; an empty assistant message is omitted only when tool calls replace it.
34+
35+
```ts
36+
import {
37+
callModel,
38+
fromChatMessages,
39+
type ChatMessages,
40+
type Item,
41+
} from "@openrouter/agent";
42+
43+
const messages: ChatMessages[] = [
44+
{
45+
role: "assistant",
46+
content: null,
47+
toolCalls: [
48+
{
49+
id: "call_1",
50+
type: "function",
51+
function: { name: "get_weather", arguments: '{"city":"Austin"}' },
52+
},
53+
],
54+
},
55+
];
56+
57+
const input: Item[] = fromChatMessages(messages);
58+
const result = callModel(client, { model: "openai/gpt-4o-mini", input });
59+
```
60+
61+
### Patch Changes
62+
63+
- [#120](https://github.com/OpenRouterTeam/typescript-agent/pull/120) [`ddab365`](https://github.com/OpenRouterTeam/typescript-agent/commit/ddab3652a47edf5ebaa842447864a3dc91b812e5) Thanks [@LukasParke](https://github.com/LukasParke)! - Identify Agent SDK requests with an Agent SDK user-agent suffix that includes the package version.
64+
65+
```ts
66+
import { OpenRouter } from "@openrouter/agent";
67+
68+
const client = new OpenRouter({ apiKey: process.env.OPENROUTER_API_KEY });
69+
// Requests use the Agent SDK user agent by default.
70+
// Pass userAgent to override the default identification.
71+
```
72+
373
## 0.11.0
474

575
### Minor Changes

‎packages/agent/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/agent",
3-
"version": "0.11.0",
3+
"version": "1.0.0",
44
"author": "OpenRouter",
55
"description": "Agent toolkit for building AI applications with OpenRouter — tool orchestration, streaming, multi-turn conversations, and format compatibility.",
66
"keywords": [

‎packages/agent/src/mcp/version.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// Run `pnpm --filter @openrouter/agent gen:version` after bumping the version.
33

44
/** This package's version, self-reported to MCP servers as `clientInfo`. */
5-
export const PACKAGE_VERSION = '0.11.0';
5+
export const PACKAGE_VERSION = '1.0.0';

‎packages/mcp/CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @openrouter/mcp
22

3+
## 1.1.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`4dce84e`](https://github.com/OpenRouterTeam/typescript-agent/commit/4dce84e4393ec36745875512d6ad1fcd8b38e502), [`9766f31`](https://github.com/OpenRouterTeam/typescript-agent/commit/9766f31ec2390cd294ca47dd81d0122941c0d586), [`dacf4d1`](https://github.com/OpenRouterTeam/typescript-agent/commit/dacf4d166a8ece1c2aff77727e2db1da5417391b), [`ddab365`](https://github.com/OpenRouterTeam/typescript-agent/commit/ddab3652a47edf5ebaa842447864a3dc91b812e5)]:
8+
- @openrouter/agent@1.0.0
9+
310
## 1.1.1
411

512
### Patch Changes

‎packages/mcp/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/mcp",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"engines": {
55
"node": ">=20"
66
},

0 commit comments

Comments
 (0)