refactor: simplify distillation data layout
This commit is contained in:
@@ -618,17 +618,15 @@ def plugin_root() -> Path:
|
||||
|
||||
|
||||
def default_library_path() -> Path:
|
||||
return (
|
||||
plugin_root()
|
||||
/ "workspace"
|
||||
/ "promotion"
|
||||
/ "promoted"
|
||||
/ "library.json"
|
||||
)
|
||||
return plugin_root() / "output" / "library.json"
|
||||
|
||||
|
||||
def parser_root() -> Path:
|
||||
return plugin_root() / "workspace" / "teacher"
|
||||
def input_root() -> Path:
|
||||
return plugin_root() / "input"
|
||||
|
||||
|
||||
def runs_root() -> Path:
|
||||
return plugin_root() / "runs"
|
||||
|
||||
|
||||
def step_files(root: Path) -> list[Path]:
|
||||
@@ -684,7 +682,7 @@ def extract_folder(input_dir: Path, output_dir: Path) -> dict[str, Any]:
|
||||
|
||||
|
||||
def default_review_dir() -> Path:
|
||||
return plugin_root() / "workspace" / "promotion" / "candidates"
|
||||
return runs_root() / "review"
|
||||
|
||||
|
||||
def prepare_semantic_batch(
|
||||
@@ -1088,15 +1086,15 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
|
||||
extract_folder_parser = subparsers.add_parser("extract-folder")
|
||||
extract_folder_parser.add_argument(
|
||||
"--input", type=Path, default=parser_root() / "inbox"
|
||||
"--input", type=Path, default=input_root()
|
||||
)
|
||||
extract_folder_parser.add_argument(
|
||||
"--output", type=Path, default=parser_root() / "evidence"
|
||||
"--output", type=Path, default=runs_root() / "evidence"
|
||||
)
|
||||
|
||||
prepare_parser = subparsers.add_parser("prepare")
|
||||
prepare_parser.add_argument(
|
||||
"--input", type=Path, default=parser_root() / "evidence"
|
||||
"--input", type=Path, default=runs_root() / "evidence"
|
||||
)
|
||||
prepare_parser.add_argument(
|
||||
"--library", type=Path, default=default_library_path()
|
||||
@@ -1110,7 +1108,7 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
publish_parser = subparsers.add_parser("publish")
|
||||
publish_parser.add_argument("--draft", type=Path, required=True)
|
||||
publish_parser.add_argument(
|
||||
"--input", type=Path, default=parser_root() / "evidence"
|
||||
"--input", type=Path, default=runs_root() / "evidence"
|
||||
)
|
||||
publish_parser.add_argument(
|
||||
"--library", type=Path, default=default_library_path()
|
||||
@@ -1125,7 +1123,7 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
help="LLM-authored proposal draft. Without this, publishing is blocked.",
|
||||
)
|
||||
distill_parser.add_argument(
|
||||
"--input", type=Path, default=parser_root() / "evidence"
|
||||
"--input", type=Path, default=runs_root() / "evidence"
|
||||
)
|
||||
distill_parser.add_argument(
|
||||
"--library", type=Path, default=default_library_path()
|
||||
|
||||
Reference in New Issue
Block a user