Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
# Downstream-only patch releases: versions upstream never published,
# each mapped to the upstream release its tree is ported from.
case "$VERSION" in
0.8.1 | 0.8.2) BASE_VERSION="0.8.0" ;;
0.8.1 | 0.8.2 | 0.8.3) BASE_VERSION="0.8.0" ;;
*) BASE_VERSION="$VERSION" ;;
esac
TAG="@openrouter/agent@${BASE_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "openrouter-agent-sdk"
# says plainly which upstream version it is a port of. The verifier enforces the
# match against upstream's package.json during a sync. See the Package Version
# section of .upstreamer/upstreamer.md.
version = "0.8.2"
version = "0.8.3"
description = "Python port of @openrouter/agent: OpenRouter tool orchestration, streaming, state, and format compatibility."
readme = "README.md"
requires-python = ">=3.10"
Expand Down
11 changes: 11 additions & 0 deletions upstreamer-changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# openrouter-agent-sdk Changelog

## 0.8.3 — tool execution, schema, and lifecycle-hook hardening

Downstream-only fixes on top of the 0.8.0 port; no new upstream work.

- **Security:** gate tool execution on `completed` response status and clear specific forced `tool_choice` after the first turn (`#46`).
- **Security:** enforce `PreToolUse` (and `PermissionRequest`/`PostToolUse`/`PostToolUseFailure`) on schema-parsed tool arguments with mutation re-validation, and run `UserPromptSubmit` on typed SDK messages and structured content arrays (`#47`).
- **Security:** fail closed when a blocking hook chain (`PreToolUse`, `UserPromptSubmit`) is cancelled or timed out (`#43`).
- **Security:** enforce JSON Schema dict validation for tool `input_schema`/`output_schema` and forward validated HITL tool outputs (`#45`), and validate tool context against its schema before storing it (`#44`).
- **Security:** refuse tool batches and approval resumes containing duplicate call IDs (`#38`), and refuse responses whose streamed tool calls differ from the completed response (`#39`).
- **Security:** pass schema-parsed input to `to_model_output` and `next_turn_params`, send the JSON value returned by `to_model_output` (including for unsent results), run `next_turn_params` only after successful tool execution, run `on_response_received` when resumed history holds typed SDK models, and keep only the final generator yield when `event_schema` is a dict (`#36`, `#37`, `#40`, `#41`, `#42`).

## 0.8.2 — stop-condition approval fix

Downstream-only fix on top of the 0.8.0 port; no new upstream work.
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading