Release Shield 2.1.0 with AI SDK inspection tool - #2
Merged
Merged
Conversation
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.
Adds
shieldCheckat@zeroleaks/shield/ai-sdk/toolsfor AI SDK 5, 6, and 7. Detection stays local unless hosted detection is explicitly configured. Invalid and oversized input, incomplete hosted coverage, hosted failures, and cancellation reject without producing a verdict. Results omit input text and matching patterns; the optionalaiimport stays confined to the new subpath.Prepares version 2.1.0, README/changelog, and an upstream registry entry and issue draft. The verified example pairs the tool with middleware, and the integration guide explains enforcement and error-handling limits. No issue or PR is submitted to vercel/ai.
Validation: 1,263 Shield tests passed (2 existing optional model tests skipped), typecheck and build passed. Isolated packed-package consumers passed generation, streaming, malformed input, hosted errors, middleware gating, and strict ESM/CommonJS types on SDK 5.0.267, 6.0.292, and 7.0.127. The exact registry snippet passed a mocked two-step Gateway roundtrip. Root and middleware imports pass without optional SDKs. These checks run in CI and before npm publication.
The public guide is prepared in ZeroLeaks app PR #229 and deploys after that repository's required review. This release will use the existing npm trusted-publishing workflow.