Ensure Component Registered - Complete Component Registration System
Ensures all components are:
- Indexed in SQLite (context.db)
- Registered in framework-registry.json
- Activated in component-activation-status.json
Part of CODITECT Component Activation Infrastructure Created: 2025-12-29
File: ensure_component_registered.py
Functions
discover_filesystem_components()
Discover all components on filesystem including nested directories.
get_indexed_components()
Get components indexed in SQLite.
get_registered_components()
Get components registered in framework-registry.json.
get_activated_components()
Get components activated in component-activation-status.json.
extract_component_metadata(comp_type, comp_id)
Extract metadata from component file.
add_to_registry(comp_type, comp_id, metadata)
Add component to framework-registry.json.
add_to_activation(comp_type, comp_id, metadata)
Add component to component-activation-status.json.
ensure_all_registered(quiet, dry_run)
Ensure all filesystem components are indexed, registered, and activated.
main()
No description
log(msg)
No description
Usage
python ensure_component_registered.py