Skip to content

refactor: adopt bomly-sdk v0.13.0's package split - #7

Merged
bomly-guy merged 1 commit into
mainfrom
claude/sdk-v013-migration
Sep 16, 2026
Merged

bomly-guy merged 1 commit into
mainfrom
claude/sdk-v013-migration

Conversation

@bomly-guy

Copy link
Copy Markdown
Contributor

Summary

bomly-sdk v0.13.0
dissolves the SDK root package into four packages, split by the question each
answers. Every identifier keeps its name; only the package that owns it moves:

Before (sdk.) After
graph, node, package, registry, vulnerability, vocabulary, scope, origin, digest, contact, normalization, merge, policy types model.
Detector/Matcher/Auditor/Analyzer, Base*, *Descriptor, *Request/*Result, Module, HostContext, ConfigSchemaFor, PluginKind* plugin.
ServeModule, Serve*, Client, HandshakeConfig, ClientPluginMap, DecodePluginConfigFromEnv runtime.
HTTPClientProvider, HTTPClientConfig, NewHTTPClientProvider*, EnvHTTP* httpkit.ClientProvider, httpkit.ClientConfig, httpkit.NewClientProvider*, httpkit.EnvHTTP*

The wire protocol is unchanged, so a binary built from this branch speaks the
same bomly.plugin.v1 as before and interoperates with an unmigrated host.

This module's own package is named plugin, so the SDK's contract package is
imported as sdkplugin.

How it was done

Applied with the migration tooling written alongside the SDK split: it
type-checks each package against the old single-package layout to learn what
every sdk.X reference actually is, then rewrites it to the package that owns
it now. That is why aliases, shadowed names, and build-tagged files are handled
rather than guessed at.

Verification

go build ./..., go vet ./..., and go test ./... pass, plus go vet under
each build tag this module uses.

🤖 Generated with Claude Code

v0.13.0 dissolves the SDK root package into model (the domain types),
plugin (the component contract), runtime (the managed-plugin transport),
and httpkit (outbound HTTP policy). Every identifier keeps its name; only
the package that owns it changes, so this is a mechanical move.

This module's own package is named plugin, so the SDK's contract package is
imported as sdkplugin.

Applied with the SDK's migration tooling, which resolves each reference by
type-checking against the old layout rather than by pattern-matching text.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bomly-guy
bomly-guy merged commit 81ab34f into main Sep 16, 2026
1 check passed
@bomly-guy
bomly-guy deleted the claude/sdk-v013-migration branch September 16, 2026 15:12
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.

1 participant