Skip to content

fix!: replace agent_definition asset type with agent_spec#18

Merged
justinmerrell merged 1 commit intomainfrom
fix/agent-spec-asset-type
Mar 31, 2026
Merged

fix!: replace agent_definition asset type with agent_spec#18
justinmerrell merged 1 commit intomainfrom
fix/agent-spec-asset-type

Conversation

@justinmerrell
Copy link
Copy Markdown
Contributor

Summary

  • Replaces agent_definition with agent_spec in the AssetType enum to match the platform API's wire format
  • Updates the Bundle constructor to match on agent_spec instead of agent_definition
  • Updates doc comments and tests accordingly

Root cause: The platform API returns "agent_spec" for agent assets, but the SDK only recognized "agent_definition", causing bundle.agentSpecs() to always return an empty array.

Closes: musher-dev/platform#335

Test plan

  • All 141 unit tests pass (task check)
  • Verified against live platform — bundle.agentSpecs() now correctly returns agent specs from sdk-test-bot/e2e-kitchen-sink:0.1.0

🤖 Generated with Claude Code

…h platform API

The platform API returns `agent_spec` as the asset type for agent
definitions, but the SDK only recognized `agent_definition`, causing
agent specs to be silently ignored when pulling bundles.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@justinmerrell justinmerrell merged commit dee16f8 into main Mar 31, 2026
7 checks passed
@justinmerrell justinmerrell deleted the fix/agent-spec-asset-type branch March 31, 2026 21:45
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