Skip to main content

Framework Bridge - Automated Sync Between Files and Registries

Maintains consistency between component files (.md, .py, .sh) and JSON registries. Detects drift, auto-updates registries, and validates cross-references.

Part of Component Activation Infrastructure (Phase 4) Created: 2025-11-29

File: framework_bridge.py

Classes

SyncResult

Result of a sync operation

FrameworkBridge

Framework Bridge - File to Registry Synchronization

Functions

main()

Main entry point for framework bridge

compute_file_hash(file_path)

Compute MD5 hash of file contents

scan_component_files()

Scan filesystem for all component files

load_registries()

Load all registries and extract component names

compare_files_vs_registries()

Compare filesystem files against registries

sync_registries_from_files()

Synchronize registries from filesystem

validate_consistency()

Validate consistency between files and registries

generate_sync_report(result, output_path)

Generate sync report in Markdown format

Usage

python framework_bridge.py