Convert create_build_list function from Python to TypeScript#2
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
Co-authored-by: andreas-prouza <65070910+andreas-prouza@users.noreply.github.com>
Co-authored-by: andreas-prouza <65070910+andreas-prouza@users.noreply.github.com>
Co-authored-by: andreas-prouza <65070910+andreas-prouza@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Convert create_build_list function to TypeScript
Convert create_build_list function from Python to TypeScript
Nov 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Converts the
create_build_listfunction from Python to TypeScript with all required dependencies.Implementation
Core conversion (10 modules):
main.py→src/main.ts- Entry point with createBuildList functionmodule/files.py→src/module/files.ts- File I/O, hashing (MD5), source change detectionmodule/properties.py→src/module/properties.ts- TOML/JSON config managementmodule/dependency.py→src/module/dependency.ts- Dependency tree resolution, level-based build orderingmodule/build_cmds.py→src/module/build_cmds.ts- Command generation, parameter substitutionmodule/results.py→src/module/results.ts- Markdown result document generationmodule/dict_tools.py→src/module/dict_tools.ts- Deep merge utilitiesmodule/toml_tools.py→src/module/toml_tools.ts- Config tree navigationmodule/app_config_tools.py→src/module/app_config_tools.ts- Build step resolution (simplified)module/obi_constants.py→src/module/obi_constants.ts- ConstantsCode quality improvements:
JSON.parse(JSON.stringify())with proper deep clone utility to prevent prototype pollutionUsage
Or programmatically:
Dependencies
@iarna/toml(2.2.5) - TOML parsingtypescript(5.9.3),@types/node(24.10.1) - dev dependenciesLimitations
app_config_tools.tshas simplified extended source processing (regex/shell/script execution not fully implemented)results.tsonly includescreate_result_doc(output extraction functions not needed)Original prompt
Created from VS Code via the GitHub Pull Request extension.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.