Repository navigation
Conversation
A fresh copy of the source plugins and everything they build on, laid out as this module: plugin/ (the interface, registry and Env), the format plugins under plugins/, kit/ and kit/kittest/, the OpenAPI diff engine (diff/, normalize/, hint/, adapter/), retire/, sdkguide/, event/, migrate/, fetch/ and the contract fixtures. Import paths are rewritten for this module; the package that was called source is now plugin. Vendor documentation pages in testdata are trimmed to the parts the tests read, and the contract fixtures' _comment fields are reworded for a public repo. No golden file changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Comments named the old package paths and the hosted service's private review threads; they now name this repo's packages and "patch-it's hosted ingestion service". The source package's file is plugin.go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Each saved source now lists its URL, the date it was fetched, its license and a short quote. Vendor documentation pages say they are excerpts for testing and what was left out of them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
CI_contract clones patch-it anonymously (no token) on every PR and weekly, and fails when contract/fixtures holds different events from patch-it's fixtures/. Top-level _comment fields may differ. While patch-it isn't publicly readable the check passes with a notice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
9 tasks done
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.
What this changes
The plugin code arrives: a fresh copy of the 12 source plugins and everything they build on, moved here from patch-it's hosted ingestion service. Module
github.com/patch-it-dev/patch-it-plugins, Go 1.27.1, one dependency (gopkg.in/yaml.v3).Commits
sourcerenamed toplugin, one test helper renamed (plugin()→newPlugin(), it clashed with the package), and the two../../contract/fixtures/paths inevent/andmigrate/tests now../contract/fixtures/. Two things were done before this first commit so they never appear in public history: vendor documentation pages in testdata were trimmed (below), and the_commentfields of six contract fixtures were reworded (they described private tooling).CI_contract+scripts/check_contract.py.Goldens are byte-identical
All 23 golden files (
plugins/*/testdata/golden/*.json,normalize/testdata/golden/*/*, and thechange-events-v2*.jsonfixtures thatmigrate/eventregenerate with-update) were compared withcmpagainst the source they were copied from: 23 identical, 0 different. No test runs with-update.Testdata trimmed (vendor docs pages only)
hint/testdata/polymorphic-billing-cycle-anchor.mdhint/testdata/remove-payment-method-types-checkout-sessions.mdhint/testdata/removed-payto-fields.mdhint/testdata/removes-the-payment-method-types-parameter-from-payment-intents-and-setup-intents.mdhint/testdata/trial-offer-ga.mdretire/testdata/openai-deprecations.mdretire/testdata/anthropic-deprecations.mdplugins/feed/testdata/github-changelog-actions.rss.xmlEvery kept line is copied unchanged. Each trim was checked by parsing the full and the trimmed copy with the real parser (
hint.Parse,retire.Parse,Feed.Findings) and comparing the results withreflect.DeepEqual: identical, so no golden changed. Openly licensed files are kept whole (Textual, urllib3, anthropic-sdk-python, NumPy, the Vertex AI Atom feed, and the Datadog / GitHub / GitLab spec excerpts, which were already minimal).hint/testdata/endive.mdwas already a trimmed index.CI_contract
Clones
patch-it-dev/patch-itanonymously (no token, no credential helper) on PRs, merge queue and weekly (Mon 05:17 UTC), and fails whencontract/fixtures/holds different events from itsfixtures/change-events*.json. Top-level_commentfields may differ (that's where this copy is worded for a public repo); everything else is compared as parsed JSON. patch-it isn't publicly readable yet, so until it is, the job sees a 404 and passes with a notice. Locally both copies match:contract/fixtures matches patch-it's fixtures/ (11 files).Checklist
docs/plugins.md. Not applicable: the 12 rows are already there and match the registry (plugins/allregisters exactlyanthropic, anthropic-models, datadog, github, github-actions, gitlab, numpy, openai-models, stripe, textual, urllib3, vertex-ai-models). The rows link to provider pages in the follow-up PR.git commit -s, DCO)testdata/README.mdin every testdata dir: URL, date fetched, license, quoteTestUnsureEntriesAreDropped,TestOnlyTextModelsCodeSendsAreKept)providers/<api>.md: in the follow-up PR (stacked on this one)env.Get/kit/: thenet/httpguard passes locally (onlyfetch/,kit/,adapter/import it)go build ./... && go vet ./... && gofmt -l . && go test -race ./...pass locally;go mod tidyleaves no diff; the import allowlist passes (only this module +gopkg.in/yaml.v3)python3 scripts/leak_guard.py --alland--diff origin/main HEAD: no banned terms. A pattern grep for common token formats found nothing. gitleaks wasn't available locally;CI_leak_guardruns it.Notes for the reviewer
_comments differ from patch-it's (six files). patch-it's own copies still carry the original wording, which should be reworded there too before patch-it goes public.GITHUB_TOKEN(optional) is the only environment variable read: the adapters send it to the GitHub API when looking up release tags. Documented in the README.v0.1.0frommain.Related PRs
🤖 Generated with Claude Code