Skip to content

feat(new-entry): support direct HTTPS tarball URL channels - #101

Merged
Myriad-Dreamin merged 1 commit into
mainfrom
feat/new-entry-url-channel
Dec 3, 2026
Merged

Myriad-Dreamin merged 1 commit into
mainfrom
feat/new-entry-url-channel

Conversation

@Myriad-Dreamin

Copy link
Copy Markdown
Collaborator

Adds direct HTTPS tarball URL channel support to pnpm new-entry so submissions distributed via GitHub Releases (or other URL channels without npm) can generate entries through the repository's own tooling instead of authoring manifest.toml and integrity by hand.

Changes

  • packages/penguin-plugin-index/src/lib/new-entry.ts & src/new-entry.ts:
    • Support pnpm new-entry <https://...tarball.tgz> [--kind <channel>] (and --url <https://...>) alongside existing pnpm new-entry <name>@<version>.
    • Automatically infers kind = "github" for github.com / objects.githubusercontent.com URLs and "tarball" otherwise (overridable via --kind, rejecting reserved "npm" and invalid kinds).
    • Fetches the tarball, enforces MAX_ENTRY_BYTES, computes exact sha512- integrity matching checkChannels(), installs into a scratch prefix with --ignore-scripts, reads package.json, runs static probePackage(), filters/deduplicates valid keywords (up to 5), and writes keyless manifest.toml without package-lock.json.
  • packages/penguin-plugin-index/src/lib/new-entry.test.ts:
    • Added 6 unit tests covering argument parsing, channel kind inference, URL validation, tarball integrity computation, manifest generation without lockfile, and HTTP error handling.
  • CONTRIBUTING.md, skills/penguin-plugin-index/SKILL.md, .github/pull_request_template.md:
    • Updated submission protocol, skill instructions, and PR template checklist together in the same PR.

Verification

  • Live end-to-end smoke test against https://github.com/Prism-Shadow/penguin-harness/releases/download/plugins/2026-12/penguinharness-agent-state-gix-0.1.0.tgz generated a valid manifest.toml with matching sha512- integrity and kind = "github".
  • pnpm format:check, pnpm typecheck, pnpm test (14 files / 105 tests), pnpm validate, pnpm build, and pnpm check-harness all passed.

@Myriad-Dreamin
Myriad-Dreamin merged commit e414311 into main Dec 3, 2026
2 checks passed
@Myriad-Dreamin
Myriad-Dreamin deleted the feat/new-entry-url-channel branch December 3, 2026 12:36
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