Skip to content

Make module registry URL configurable #31

@marklicata

Description

@marklicata

Summary

The module registry URL is now configurable via DEFAULTS.yaml and can be overridden by users in their settings.yaml files.

Changes Made

  1. Added registry_url to DEFAULTS.yaml - Centralized the default registry URL configuration
  2. Created get_system_registry_url() function - Similar to get_system_default_profile(), reads from DEFAULTS.yaml
  3. Updated RegistryClient - Now accepts optional registry_url parameter and defaults to system configuration
  4. Enhanced registry command output:
    • Added 'Installed' column to show which modules are already installed
    • Fixed Version column to use 'latest' field from JSON
    • Fixed Type column to use 'module_type' field from JSON
    • Added Tags column to display module tags

User Override Path

Users can now override the registry URL in their settings.yaml:

registry:
  url: https://example.com/my-custom-registry/index.json

Files Modified

  • amplifier_app_cli/data/profiles/DEFAULTS.yaml - Added registry_url configuration
  • amplifier_app_cli/data/profiles/__init__.py - Added get_system_registry_url() function
  • amplifier_app_cli/registry/client.py - Updated to read from configuration
  • amplifier_app_cli/registry/commands/registry.py - Enhanced table output with installation status, version, type, and tags

Related

This complements the existing profile configuration system and follows the same pattern for system defaults with user overrides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions