chore(conductor): Mark track 'history_segregation' as complete and migrate local config

This commit is contained in:
2026-02-24 22:09:21 -05:00
parent 754fbe5c30
commit a6c9093961
5 changed files with 40 additions and 111 deletions

View File

@@ -224,9 +224,28 @@ def run(config: dict) -> tuple[str, Path, list[dict]]:
return markdown, output_file, file_items
def main():
with open("config.toml", "rb") as f:
import tomllib
config = tomllib.load(f)
import project_manager
import tomllib
# Load global config to find active project
config_path = Path("config.toml")
if not config_path.exists():
print("config.toml not found.")
return
with open(config_path, "rb") as f:
global_cfg = tomllib.load(f)
active_path = global_cfg.get("projects", {}).get("active")
if not active_path:
print("No active project found in config.toml.")
return
# Use project_manager to load project (handles history segregation)
proj = project_manager.load_project(active_path)
# Use flat_config to make it compatible with aggregate.run()
config = project_manager.flat_config(proj)
markdown, output_file, _ = run(config)
print(f"Written: {output_file}")