Fix pipelibe issues #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to both the CLI and the parsing logic, as well as minor workflow updates. The main focus is on making the parser more robust and accurate in handling directory structures, especially when inferring root directories and handling various input formats. Additionally, the code has been refactored for better readability and maintainability.
Parser improvements and refactoring:
parseToPlanfunction insrc/parser.tsto more robustly infer the base root directory from the first line, ensure all ancestor directories are included in the plan, and improve handling of directory tokens and branch markers. Also, a customcomputeDepthfunction was added for more accurate depth calculation. [1] [2] [3] [4]src/parser.tsfor clarity and maintainability.CLI improvements:
src/cli.tsto handle input more safely and robustly, and made minor formatting adjustments for readability. [1] [2] [3]Workflow configuration updates:
.github/workflows/ci.ymland.github/workflows/publish.ymlto simplify Node.js version selection (now fixed at 20.x) and adjust thepnpmsetup step for consistency. [1] [2]