fix(meta): support pi 0.87 (peer range + 0.87.1 devDeps + TranscriptContext test helper) - #21
Merged
Merged
Conversation
….87.1 Pi 0.86 changed pi-ai stream inputs from Context to a branded TranscriptContext produced by normalizeContext(). The extension itself does not call stream functions, but the wire-contract test helper does. - Widen peerDependencies to <0.88.0 - Bump devDependencies to 0.87.1 so CI typechecks and tests current pi - Normalize the test helper's context when normalizeContext exists, keeping the suite loadable on pi 0.83-0.85 - CHANGELOG entry
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Merged
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.
Scope
Compatibility-only update (same shape as #18). No provider runtime or request behavior changes.
>=0.83.0 <0.88.0.Contextto a brandedTranscriptContextbuilt bynormalizeContext(). The only affected code is thecaptureResponsesRequesttest helper; it now normalizes whennormalizeContextexists and passes the plain context on 0.83–0.85 (namespace import keeps the file loadable there).Verification
Hermetic runs (empty HOME, Meta env vars unset, no billable probes):
Smoke test on Pi 0.87.1:
pi --no-extensions -e ./extensions/meta.ts --list-models metashows the extension's models (256K max output) replacing Pi's built-inmetaprovider (131.1K), so the override still works.Note
Pi now ships a built-in
metaprovider with/login metaandMETA_API_KEY. This extension still overrides it; the remaining value-add is the dynamic catalog, Responses cache hints, andmaxeffort mapping. Worth keeping in mind for the package's roadmap, out of scope here.