Skip to content

feat: add :pull endpoint support with fallback and update examples#13

Merged
justinmerrell merged 1 commit into
mainfrom
feat/pull-endpoint-and-examples
Mar 28, 2026
Merged

feat: add :pull endpoint support with fallback and update examples#13
justinmerrell merged 1 commit into
mainfrom
feat/pull-endpoint-and-examples

Conversation

@justinmerrell

Copy link
Copy Markdown
Contributor

Summary

  • Add pullVersion and pullHubVersion methods to BundlesResource for fetching all bundle assets in a single :pull request, with a three-tier fallback strategy (namespace :pull → hub :pull → individual asset fetches)
  • Add PullAssetOutputSchema and PullBundleVersionOutputSchema Zod schemas, plus signing fields (isSigned, signerType, signedAt) to the resolve schema
  • Update all examples to use musher-examples namespace with real bundle/skill references, switch asset lookup from asset ID to logical path, and add tsx workspace dev dependency

Test plan

  • Verify task check passes (format, lint, types, tests)
  • Run pull-bundle.ts example against musher-examples/code-review-kit:1.2.0
  • Confirm fallback path works when namespace :pull returns 403/404

🤖 Generated with Claude Code

Implement pullVersion and pullHubVersion methods on BundlesResource to
fetch all bundle assets in a single request. The client now tries the
namespace :pull endpoint first, falls back to the hub :pull endpoint for
public bundles, and finally falls back to individual asset fetches.

Also updates all examples to use the musher-examples namespace with real
bundle references, adds signing fields to the resolve schema, switches
asset lookup to use logical paths, and adds tsx as a workspace dev
dependency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@justinmerrell justinmerrell merged commit 64d6068 into main Mar 28, 2026
5 checks passed
@justinmerrell justinmerrell deleted the feat/pull-endpoint-and-examples branch March 28, 2026 15:40
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