INNER CODE UNIT · Python

bump_plugin_version

softaworks/agent-toolkit · scripts/bump_version.py:62

def bump_plugin_version(bump_type: str) -> None:
    """Bump the version in marketplace.json."""
    root = get_root()

    # Path
    marketplace_path = root / ".claude-plugin" / "marketplace.json"

    if not marketplace_path.exists():
        print(f"✗ marketplace.json not found at {marketplace_path}")
        sys.exit(1)

    # Load file
    marketplace = load_json(marketplace_path)

    # Get current version from metadata
    current_version = marketplace.get("metadata", {}).get("version", "1.0.0")
    new_version = bump_version(current_version, bump_type)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…