feat(new): add tlc new command to write .odoo-dev.json config#21
Draft
trisdoan wants to merge 1 commit into
Draft
feat(new): add tlc new command to write .odoo-dev.json config#21trisdoan wants to merge 1 commit into
trisdoan wants to merge 1 commit into
Conversation
2db1590 to
d3aa788
Compare
d3aa788 to
19b56c5
Compare
Collaborator
Author
|
wait for trobz/odoo-addons-path#14 to be merged |
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.
Summary
tlc newsubcommand that detects the project's Odoo layout and writes.claude/.odoo-dev.jsonfor consumption by Claude agentslocal(fromTLC_CODE_DIR/odoo/odoo/{version}), andwebonlyfallback--global/-gwrites to~/.claude/instead ofCWD/.claude/--forceskips overwrite confirmation; always creates.bakbefore overwritingChanges
trobz_local/odoo_dev_config.py— layout detection, version resolution, atomic write logictrobz_local/assets/odoo-dev.json— JSON schema for validation (bundled with package)trobz_local/main.py— registerstlc newcommandpyproject.toml/uv.lock— addsodoo-addons-path>=1.3.0andjsonschema>=4.0tests/test_new.py— 9 TDD tests covering all layout scenariosTest plan
uv run pytest tests/test_new.py— all 9 tests passuv run pytest— full suite (97 tests) passes with no regressionstlc newin a managed Trobz project writes correctlayoutandsourcePathstlc newin an empty dir writeslayout: webonlyand exits 0tlc new -gwrites to~/.claude/.odoo-dev.jsontlc new --forceon existing file creates.bakand overwritesodookey only