Skip to content

feature: support CLI#6

Merged
pilosus merged 4 commits intomainfrom
feature/cli
Feb 14, 2026
Merged

feature: support CLI#6
pilosus merged 4 commits intomainfrom
feature/cli

Conversation

@pilosus
Copy link
Owner

@pilosus pilosus commented Feb 14, 2026

Added

  • New pathbridge compile CLI command to generate Python modules with
    RAW_RULES and COMPILED_RULES.
  • pathbridge compile supports both import references and file-path
    references for facade/destination/converter inputs.

Changed

  • BREAKING: Renamed pathbridge.extras.trace_converter(...) keyword-only
    parameters:
    • model_module -> destination_module
    • converter -> facade_to_destination
    • lift -> lift_functions
    • root_tag -> facade_root_tag
  • BREAKING: Renamed pathbridge.extras.build_rules(...) keyword-only
    parameters:
    • model_module -> destination_module
    • converter -> facade_to_destination
    • shape -> facade_shape
    • lift -> lift_functions
    • root_tag -> facade_root_tag
  • Removed old keyword aliases for the renamed arguments.
  • BREAKING: Renamed pathbridge compile options:
    • --model-module -> --destination-module
    • --converter -> --facade-to-destination
    • --rules-root-tag -> --facade-root-tag
    • --rules-lift -> --lift-functions
  • BREAKING: --output-package now expects a dotted package name
    (for example generated.rules) instead of a filesystem path.
  • Added --output-dir for choosing where generated package directories are created.

- **BREAKING:** Renamed `pathbridge.extras.trace_converter(...)` keyword-only
  parameters:
  - `model_module` -> `destination_module`
  - `converter` -> `facade_to_destination`
  - `lift` -> `lift_functions`
  - `root_tag` -> `facade_root_tag`

- **BREAKING:** Renamed `pathbridge.extras.build_rules(...)` keyword-only
  parameters:
  - `model_module` -> `destination_module`
  - `converter` -> `facade_to_destination`
  - `shape` -> `facade_shape`
  - `lift` -> `lift_functions`
  - `root_tag` -> `facade_root_tag`
- Removed old keyword aliases for the renamed arguments.
Changed:
- updated argument names to match tracer's params
- support file paths along with pkg.module format for output-package,
  facade-class, destination-module, facade-to-destination options

Added:
- emit option to control raw/compiled/both rules output
`make ci` to run linters, typechecker and test-matrix
@pilosus pilosus merged commit a5d4fbf into main Feb 14, 2026
6 checks passed
@pilosus pilosus deleted the feature/cli branch February 14, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant