Skip to content

new sources, pins removed, three source fixes, npm apisurface (#226, #232, #240, #244) - #245

Merged
adssib merged 37 commits into
mainfrom
pl-all-sources
Nov 21, 2026
Merged

adssib merged 37 commits into
mainfrom
pl-all-sources

Conversation

@adssib

@adssib adssib commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Four open PRs merged into one. Each branch is merged unchanged, so their commits stay in history:

Conflicts resolved (docs and one comment only):

make check passes on the merged result, including TestNoPinnedReleaseInPluginCode over every new source.

Merge this one instead of the four; they show as merged by themselves. Closes #179, #212, #222, #223, #224.

After merging, run the Release workflow by hand with minor: new exported API, and openai/python-sdk is now openai/python-surface.

🤖 Generated with Claude Code

adssib and others added 30 commits November 20, 2026 20:50
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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
…spec

Three specs committed several times a day, versioned by the day: a spec
read from its commits is now one version per day, at the day's last
commit (Daily), for every commit-listed adapter, so no version ID is
listed twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
…alls back on 503 too

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>
The classifier reads the SDK changelogs' shapes: release-please's
"⚠ BREAKING CHANGES", changesets' "Major Changes", Stripe's ⚠️ bullets,
"**[BREAKING]**" and "feat!:" marks, an area, issue or commit a bullet
starts with, passive removals and renames from an owner, and semantic-
release's "# [X.0.0]" major headings. A File can read each GitHub
release's notes (Notes), list releases from the repo's tags for an
ecosystem with no registry lister, and names a Go module at its major.

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>
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>
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>
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>
A rename whose new name the same release renames again or removes now
points to where the chain ends (or to nothing). A bullet of names alone
is a removal only under a Removed heading, and a change word
("Deprecated:") is never read past as an area.

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>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
7.2.0's events came from bare names under a heading about removed body
params: the methods still exist. With names alone read only under a
Removed heading, 7.2.0 has no event; 7.1.0's rename is the golden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
…t announced twice

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>
Registers anthropic, stripe, google-genai, sentry-sdk, pymongo, redis,
numpy, supabase, algoliasearch, elasticsearch, ddtrace, cloudflare,
textual and urllib3, each with a golden pair and a drop pair of real
releases. openai/python-sdk is now openai/python-surface: anthropic's
python-sdk id is its migration guide's, and every API-surface source is
named <provider>/<...>-surface.

The reader now drops what scanning recent releases of these packages
showed to be no removal: a name its module still binds (an alias, an
import, a star import or __getattr__ it can't list), a property's
setter, self or cls gone, modules named internal or vendor, and an
__init__'s imports from outside its own modules. A star import re-exports
in any module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
adssib and others added 7 commits November 20, 2026 21:54
dtsurface reads a tarball's .d.ts, .d.mts and .d.cts files as text (a
tokenizer and a parser of declarations, standard library only): every
entry point package.json declares, what each exports, and below classes
and namespaces their public members, with parameters compared by
position. Nothing in the package runs.

Registers ten npm sources (openai, @anthropic-ai/sdk, stripe,
@google/genai, @sentry/node, mongodb, @redis/client, @supabase/supabase-js,
@neondatabase/serverless, convex), each with a golden and a drop pair of
real releases. One declaration reachable at several import paths is now
one event for both ecosystems, its paths in the subject's symbols.
new-plugin's apisurface template takes the ecosystem (an npm: package
picks the npm reader).

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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Under another name it may have been inserted before the optional one, so changed_default (and its wording) applies only when the name is the same. Also: OpenAI's Lister check beside its adapter; the class-by-name gap on the npm pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
…ources

Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>

# Conflicts:
#	docs/writing-a-plugin.md
#	plugins/changelog/changelog.go
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>

# Conflicts:
#	AGENTS.md
#	docs/which-kind.md
#	docs/writing-a-plugin.md
@claude

claude Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Claude finished @adssib's task in 2m 17s —— View job


✅ Ready to merge. The merge builds, vets, is gofmt-clean, passes go test -race ./... (including TestNoPinnedReleaseInPluginCode and the page check) and the leak guard, and I found no bugs in the code I read.

Rules

Rule Status Evidence
Metadata in registration (Rule 1) ✅ All new sources go through plugin.RegisterProvider: apisurface/pypi.go (15), apisurface/npm_packages.go (10), the changelog sdk(...) helper (stripe.go, sentry.go, cloudflare.go, octokit.go, ioredis.go, posthog.go), notices.go (gemini-models, vertex-model-retirements), and the catalog and openapi registrations. RegisterProvider panics when a provider is registered twice with different metadata, so Google, Stripe, Sentry and the others have one name, category and homepage everywhere. There's no hand-kept list: plugins.json and docs/plugins.md only appear in docs and the Release workflow.
Provider page ✅ There's a providers/<provider>-<source>.md for every new source (the go test that requires each page passes). openai-python-sdk.md became openai-python-surface.md along with the id. I spot-read pages, and the ones I read have Why this source.
Golden test + dated quote ✅ There's a golden file for every new source. The testdata/README.md rows I checked carry the URL, the date and the trim notes (npm and PyPI excerpts and per-version files). Two existing goldens were edited, and both edits are explained by the PR: openapi/.../convex.json only changes get-convex → convex in the source URLs (#224), and the openai golden was renamed to openai-python-surface.json with the new id, its two import paths merged into one event.
Drop test ✅ Included in the test suites that pass, e.g. the apisurface notes for positional params, chained() and the graphql filters.
Fetch only via env ✅ net/http appears only in core/fetch, core/kit and plugins/openapi/adapter. No os, io/ioutil or database/sql in non-test plugin code. npm tarballs are read in memory, with only package.json and .d.ts/.d.mts/.d.cts kept and size caps.
Nothing private (Rule 2) ✅ leak_guard.py --all is clean. I saw no credentials, internal hostnames or session links in code, docs, commit messages or the PR body.
DCO ✅ All 37 commits are signed off.

Bugs

None found. I read changelog.go (Notes, chained, installed, the dedupe), catalog/redis.go, catalog/graphql.go, the notices/retire/eol changes, apisurface.go (comparePositional, merge, notGone), npm.go, pypi.go, npm_packages.go and the core versions/github/plugin changes. I skimmed rather than fully read dtsurface/parse.go and surface.go (~1,500 lines); the tests and goldens cover them.

Verified

  • go build ./...: ok
  • go vet ./...: ok
  • gofmt -l .: nothing printed
  • go test -race ./...: all packages ok
  • python3 scripts/leak_guard.py --all: "no banned terms (8 hashed terms checked)"
  • Searched for TODO(new-plugin) in plugins/: none left
  • Not run: make check and go run ./cmd/list-plugins, because this environment needs approval for them. The individual steps above cover most of make check, but not make imports or make tidy.

Non-blocking

  • Changelog ecosystems (inline, plugins/changelog/changelog.go:319): any ecosystem the switch doesn't name now falls back to GitHub tags, so a typo in a new File won't fail. You could name the tag-based ecosystems and keep an error for the rest.
  • Redis precision (inline, plugins/catalog/redis.go:131): a removal is keyed on the file name, so a renamed file would read as a removed command. It's unlikely given how Redis names these files.
  • openai/python-sdk → openai/python-surface: events patch-it's hosted ingestion service already stored under the old id won't dedupe against the new fingerprints. That's expected with the minor bump you plan, but worth noting in the release notes.
  • Doc wording (catalog/graphql.go:123): the comment "dated before to's commit or not at all excluded" reads garbled.

I read every new source's registered metadata (watches, URLs, packages) against its code, and it matches. You still need to say in the PR that you read them (Rule 1).

Comment thread plugins/catalog/redis.go
return plugin.Result{}, fmt.Errorf("reading %s: %w", to.SourceURL, err)
}
var made []event.Event
for _, file := range before {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Non-blocking (precision): this counts a command as removed when its file name is missing from the next tag's listing. If a file is ever renamed or split while the command stays (e.g. client-kill.json → client-kill-cmd.json), this emits a false removed_symbol. Redis names these files after the command, so it's unlikely today. A cheap guard would be to skip a removed file whose name is still the name of a file in after once you lowercase it and drop - and .json. A stronger guard would key on the command name, but you only fetch the removed files, so you'd need to fetch the added files' names too. Fine to leave as is if you prefer the single listing call.

vs, err = versions.NPMReleases(ctx, env.Get, f.Package)
default:
return nil, fmt.Errorf("%s: no registry to list %q releases from", f.Package, f.Ecosystem)
// No registry patch-it lists from: the repo's release tags.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Non-blocking: default now catches every ecosystem the switch doesn't name, so a typo in a new File ("pypy", "nmp") silently lists GitHub tags instead of failing. You could name the ecosystems the comment on File.Ecosystem lists (go, maven, nuget, rubygems, packagist, terraform) and keep the old error for anything else.

@adssib
adssib merged commit b1abc9c into main Nov 21, 2026
9 checks passed
@adssib
adssib deleted the pl-all-sources branch November 21, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant