Merged
Conversation
Ports the push functionality from hypeman-go/lib/push.go to TypeScript, following the same patterns established by cp.ts. Provides: - pushImage(): Push any OciImageSource to the registry - push(): Convenience to load from Docker daemon and push - pushFromURL(): Convenience with raw URL/apiKey - loadDockerImage(): Load image from local Docker via docker save Uses the OCI Distribution Spec for blob and manifest uploads with JWT bearer auth matching the Go implementation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace hand-rolled docker save shelling and tar parsing with proper libraries: - Use dockerode for Docker daemon interaction (image.get() streams the tar, equivalent to go-containerregistry's daemon.Image) - Use tar-stream for parsing the docker save archive - Add extractPushConfig() to match Go's ExtractPushConfig API - Change PushConfig to use registryHost (matching Go) instead of baseURL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- push.ts: import Docker from 'dockerode' and import * as tar from 'tar-stream' at top level, remove getDockerode/getTarStream wrappers - cp.ts: import WebSocket from 'ws' at top level, remove getWebSocket wrapper and its call sites No bundling concerns for this SDK so lazy loading is unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unit tests cover extractPushConfig, image reference parsing, blob upload flow (auth headers, skip-existing, full upload sequence, error cases), manifest content type, and pushFromURL. Integration tests are gated behind HYPEMAN_INTEGRATION_TESTS=1 env var. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Regenerate pnpm-lock.yaml to include dockerode and tar-stream deps. Fix TS4111 errors by using bracket notation for process.env access. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Default to hypeman-test repo (matching scoped token claims). Allow override via HYPEMAN_TEST_REPO env var. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add push SDK for uploading container images to OCI registry
Contributor
Author
|
🧪 Testing To try out this version of the SDK: Expires at: Mon, 27 Apr 2026 19:31:35 GMT |
Contributor
Author
|
🤖 Release is at https://github.com/kernel/hypeman-ts/releases/tag/v0.2.2 🌻 |
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.
Automated Release PR
0.2.2 (2026-03-28)
Full Changelog: v0.2.1...v0.2.2
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Note
Low Risk
Low risk: this is a metadata-only release bump (manifest + changelog) with no runtime or API logic changes.
Overview
Bumps the release version from
0.2.1to0.2.2and adds a correspondingCHANGELOG.mdentry with the GitHub compare link.Written by Cursor Bugbot for commit 5b37ce2. This will update automatically on new commits. Configure here.