Skip to content

Update plugin for proto v0.60 - #11

Merged
konomae merged 1 commit into
mainfrom
codex/proto-v0-60-support
Aug 18, 2026
Merged

Update plugin for proto v0.60#11
konomae merged 1 commit into
mainfrom
codex/proto-v0-60-support

Conversation

@konomae

@konomae konomae commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • upgrade the proto PDK and test dependencies for proto v0.60
  • migrate the version and host-environment APIs to match the current Bun and Deno plugins
  • update the shim registry snapshot for the v0.60 schema
  • bump the plugin version to 0.12.0 for the compatibility release

Why

The previous WASM was built against an older PDK context shape. When loaded by proto v0.60, plugin calls could fail while deserializing the context with missing field tool_dir.

This also includes the proto v0.59-era VersionSpec::Semantic to VersionSpec::Version migration required before applying the v0.60 changes.

Impact

The newly built WASM requires proto 0.60.0 or newer. Zig release versions and master/canary builds continue to resolve and install through the same plugin interface.

Validation

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets
  • PROTO_LOOKUP_DIR=/opt/homebrew/bin cargo test --no-default-features (26 tests passed)
  • cargo build --release --target wasm32-wasip1
  • proto 0.60.2: proto versions zig-test

@konomae
konomae marked this pull request as ready for review August 18, 2026 13:26
Copilot AI lite review requested due to automatic review settings August 18, 2026 13:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Zig proto plugin to be compatible with proto v0.60 by upgrading the proto PDK/test utilities and aligning plugin API usage (version spec + host env) with the updated schema and conventions.

Changes:

  • Bump proto compatibility (minimum_proto_version) to 0.60.0 and update PDK usage (Default::default(), check_supported_os_and_arch call shape, VersionSpec::Version pattern).
  • Adjust version/build handling to the new build: Option<_> representation (is_some() checks).
  • Refresh test expectations and shim registry snapshot to the v0.60 schema.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/proto.rs Updates minimum proto version and adapts to new host env + version spec/build metadata APIs.
tests/versions_test.rs Updates master alias assertion for new build metadata representation.
tests/snapshots/shims_test__creates_shims.snap Updates shim registry snapshot keys/shape to match v0.60 schema.
Cargo.toml Bumps crate/plugin version and updates proto PDK + dev dependency versions.
Cargo.lock Lockfile refresh reflecting upgraded dependency graph for v0.60 compatibility.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@konomae
konomae merged commit 87abd57 into main Aug 18, 2026
9 checks passed
@konomae
konomae deleted the codex/proto-v0-60-support branch August 18, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants