INNER CODE UNIT · Python

build_all

softaworks/agent-toolkit · scripts/build_plugins.py:117

def build_all(dry_run: bool = False, verbose: bool = False) -> None:
    """Build distribution directories for all plugins."""
    root = get_root()
    marketplace_path = root / ".claude-plugin" / "marketplace.json"

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

    marketplace = load_json(marketplace_path)
    plugins = marketplace.get("plugins", [])
    dist_dir = root / "dist" / "plugins"

    mode = "[DRY RUN] " if dry_run else ""
    print(f"{mode}Building {len(plugins)} plugins...")

    # Clean existing dist
    if not dry_run and dist_dir.exists():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…