cursus.step_catalog.adapters.workspace_discovery

Workspace discovery adapters for backward compatibility.

This module provides adapters that maintain existing workspace discovery APIs during the migration from legacy discovery systems to the unified StepCatalog system.

class WorkspaceDiscoveryManagerAdapter(workspace_root)[source]

Bases: object

Adapter maintaining backward compatibility with WorkspaceDiscoveryManager.

Replaces: src/cursus/workspace/core/discovery.py

discover_workspaces(workspace_root)[source]

Legacy method: discover available workspaces with simplified structure.

discover_components(workspace_ids=None, developer_id=None)[source]

Enhanced method: discover ALL component types with workspace-specific functionality.

When workspace_ids is None: focuses on shared package (cursus/steps - “core” workspace) When workspace_ids specified: discovers from those specific workspaces

Returns comprehensive inventory of all 5 component types: - builders, configs, contracts, specs, scripts

get_file_resolver(developer_id=None, **kwargs)[source]

Legacy method: get file resolver.

get_module_loader(developer_id=None, **kwargs)[source]

Legacy method: get module loader.

list_available_developers()[source]

Legacy method: list available developers with simplified structure.

get_workspace_info(workspace_id=None, developer_id=None)[source]

Legacy method: get workspace info with simplified structure.

refresh_cache()[source]

Legacy method: refresh cache.

get_discovery_summary()[source]

Legacy method: get discovery summary.

get_statistics()[source]

Legacy method: get statistics.