Skip to content

Conversation

@felixrieseberg
Copy link
Collaborator

Introduces a —schema-version flag for init and pack commands to allow users to specify which manifest schema version to use. Sets version 0.2 as the default since no clients currently support version 0.3.

  • Added --schema-version option to mcpb init and mcpb pack commands
  • Created DEFAULT_MANIFEST_VERSION constant set to "0.2"
  • Updated LATEST_MANIFEST_VERSION to remain at "0.3" (newest schema)
  • Both commands now default to schema version 0.2 instead of 0.3
  • Added validation to ensure only valid versions (0.1, 0.2, 0.3) can be specified

Usage

# Create manifest with default 0.2 schema (client-supported)
mcpb init

# Create manifest with specific version
mcpb init --schema-version 0.3

# Pack with default 0.2 schema
mcpb pack

# Pack with specific version  
mcpb pack --schema-version 0.1


return {
manifest_version: LATEST_MANIFEST_VERSION,
manifest_version: schemaVersion as "0.1" | "0.2" | "0.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll probably want to update this so that the contents actually reflect the schema for the particular manifest version (ie, no localization field pre-v0.3)

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.

3 participants