ara-cli 0.1.9.52__tar.gz → 0.1.9.53__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ara-cli might be problematic. Click here for more details.
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/PKG-INFO +1 -1
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/ara_command_action.py +6 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/ara_config.py +2 -7
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/chat.py +2 -1
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_chat.py +18 -13
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/version.py +1 -1
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli.egg-info/PKG-INFO +1 -1
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/MANIFEST.in +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/README.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/__init__.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/__main__.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/analyse_artefacts.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/ara_command_parser.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_creator.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_deleter.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_fuzzy_search.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_link_updater.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_lister.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/artefact_load.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/artefact_mapping.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/artefact_templates.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/businessgoal_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/capability_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/epic_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/example_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/feature_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/issue_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/keyfeature_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/task_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/userstory_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/vision_artefact_model.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_reader.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_renamer.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_scan.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/classifier.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/codefusionretriever.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/codehierachieretriever.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/commandline_completer.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/directory_navigator.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/file_classifier.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/file_lister.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/filename_validator.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/list_filter.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/output_suppressor.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/prompt_chat.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/prompt_extractor.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/prompt_handler.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/prompt_rag.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/run_file_lister.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tag_extractor.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/template_manager.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/agile.artefacts +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/blueprints/complete_pytest_unittest.blueprint.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/blueprints/empty.blueprint.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/blueprints/task_todo_list_C4_architecture_analysis.blueprint.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/blueprints/task_todo_list_implement_feature_BDD_way.blueprint.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/architecture_C4_analysis.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/architecture_radon_cc_score.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/architecture_radon_halstead_v.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/architecture_radon_maintainability_score.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/artefact_classification.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/artefact_extension.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/artefact_formulation.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/behave_step_generation.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/code_generation_complex.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/code_generation_simple.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/empty.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/error_fixing.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/feature_file_update.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/feature_formulation.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/js_code_generation_simple.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/refactoring.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/refactoring_analysis.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/reverse_engineer_feature_file.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/reverse_engineer_program_flow.commands.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/classify_task.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/empty.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/error_fixing.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_fix_steps_for_scenario.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_formulation.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_reverse_formulation_from_code.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_scenario_implementation.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_scenario_implementation_update.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_scenario_outline_extension.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/feature_update_formulation.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/fibonacci_example_implementation.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/js_implementation_from_task_description.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/js_steps_implementation.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/python_cli_implementation_with_test.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/python_code_understanding.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/task_implementation.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/task_prompt_control_by_status.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/task_stepwise_implementation_by_number.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/task_stepwise_implementation_by_status.intention.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/architecture_analyst.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/code_analyst.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/empty.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/error_analyst.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/gherkin_expert.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/js_expert_developer.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/product_owner.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/python_behave.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/python_developer.rules.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.concept.exploration.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.concept.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.customer.exploration.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.customer.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.persona.exploration.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.persona.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.step.exploration.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.step.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.technology.exploration.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/specification_breakdown_files/template.technology.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.businessgoal +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.businessgoal.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.capability +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.capability.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.epic +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.epic.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.example +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.example.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.feature +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.feature.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.issue +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.issue.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.keyfeature +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.keyfeature.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.steps.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.task +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.task.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.userstory +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.userstory.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.vision +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/template.vision.prompt_log.md +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/__init__.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_ara_command_action.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_ara_config.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_artefact_fuzzy_search.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_artefact_link_updater.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_artefact_lister.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_artefact_reader.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_artefact_renamer.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_artefact_scan.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_classifier.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_directory_navigator.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_file_classifier.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_file_creator.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_file_lister.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_list_filter.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_tag_extractor.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_template_manager.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/tests/test_update_config_prompt.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/update_config_prompt.py +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli.egg-info/SOURCES.txt +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli.egg-info/dependency_links.txt +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli.egg-info/entry_points.txt +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli.egg-info/requires.txt +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli.egg-info/top_level.txt +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/setup.cfg +0 -0
- {ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/setup.py +0 -0
|
@@ -266,6 +266,12 @@ def fetch_templates_action(args):
|
|
|
266
266
|
target = join(target_dir, item)
|
|
267
267
|
shutil.copy2(source, target)
|
|
268
268
|
|
|
269
|
+
custom_prompt_templates_subdir = config.custom_prompt_templates_subdir
|
|
270
|
+
local_prompt_modules_dir = join(prompt_templates_dir, custom_prompt_templates_subdir)
|
|
271
|
+
os.makedirs(local_prompt_modules_dir, exist_ok=True)
|
|
272
|
+
for subdir in subdirs:
|
|
273
|
+
os.makedirs(join(local_prompt_modules_dir, subdir), exist_ok=True)
|
|
274
|
+
|
|
269
275
|
|
|
270
276
|
def read_action(args):
|
|
271
277
|
from ara_cli.artefact_reader import ArtefactReader
|
|
@@ -2,7 +2,7 @@ from typing import List, Dict, Union, Optional
|
|
|
2
2
|
from pydantic import BaseModel
|
|
3
3
|
import json
|
|
4
4
|
import os
|
|
5
|
-
from os.path import exists,
|
|
5
|
+
from os.path import exists, dirname
|
|
6
6
|
from os import makedirs
|
|
7
7
|
from functools import lru_cache
|
|
8
8
|
|
|
@@ -18,6 +18,7 @@ class ARAconfig(BaseModel):
|
|
|
18
18
|
glossary_dir: str = "./glossary"
|
|
19
19
|
doc_dir: str = "./docs"
|
|
20
20
|
local_prompt_templates_dir: str = "./ara/.araconfig"
|
|
21
|
+
custom_prompt_templates_subdir: Optional[str] = "custom-prompt-modules"
|
|
21
22
|
local_ara_templates_dir: str = "./ara/.araconfig/templates/"
|
|
22
23
|
ara_prompt_given_list_includes: List[str] = [
|
|
23
24
|
"*.businessgoal",
|
|
@@ -136,12 +137,6 @@ class ConfigManager:
|
|
|
136
137
|
|
|
137
138
|
if not exists(config_dir):
|
|
138
139
|
makedirs(config_dir)
|
|
139
|
-
# create defined default path structure for custom prompts
|
|
140
|
-
makedirs(join(config_dir, "custom-prompt-modules"))
|
|
141
|
-
makedirs(join(config_dir, "custom-prompt-modules", "commands"))
|
|
142
|
-
makedirs(join(config_dir, "custom-prompt-modules", "rule"))
|
|
143
|
-
makedirs(join(config_dir, "custom-prompt-modules", "intentions"))
|
|
144
|
-
makedirs(join(config_dir, "custom-prompt-modules", "blueprints"))
|
|
145
140
|
|
|
146
141
|
cls._config_instance = read_data(filepath)
|
|
147
142
|
return cls._config_instance
|
|
@@ -662,7 +662,8 @@ Start chatting (type 'HELP'/'h' for available commands, 'QUIT'/'q' to exit chat
|
|
|
662
662
|
local_templates_path = os.path.join(os.getcwd(), local_templates_path)
|
|
663
663
|
os.chdir(original_directory)
|
|
664
664
|
|
|
665
|
-
|
|
665
|
+
custom_prompt_templates_subdir = self.config.custom_prompt_templates_subdir
|
|
666
|
+
template_directory = f"{local_templates_path}/{custom_prompt_templates_subdir}/{plural}"
|
|
666
667
|
self._load_helper(template_directory, template_name, template_type)
|
|
667
668
|
|
|
668
669
|
def _load_template_helper(self, template_name, template_type, default_pattern):
|
|
@@ -930,20 +930,24 @@ def test_do_LOAD_COMMANDS(monkeypatch, temp_chat_file, commands_name, expected_d
|
|
|
930
930
|
mock_load_template_helper.assert_called_once_with(commands_name, "commands", "*.commands.md")
|
|
931
931
|
|
|
932
932
|
|
|
933
|
-
@pytest.mark.parametrize("template_name, template_type, default_pattern, expected_directory, expected_pattern", [
|
|
934
|
-
("global/test_command", "commands", "*.commands.md", "mocked_template_base_path/prompt-modules/commands/", "test_command"),
|
|
935
|
-
("local_command", "commands", "*.commands.md", "/project/mocked_local_templates_path/custom-prompt-modules/commands", "local_command"),
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
("
|
|
939
|
-
|
|
940
|
-
("
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
("
|
|
944
|
-
("
|
|
933
|
+
@pytest.mark.parametrize("template_name, template_type, default_pattern, custom_template_subdir, expected_directory, expected_pattern", [
|
|
934
|
+
("global/test_command", "commands", "*.commands.md", "mocked_custom_modules_path", "mocked_template_base_path/prompt-modules/commands/", "test_command"),
|
|
935
|
+
("local_command", "commands", "*.commands.md", "custom-prompt-modules", "/project/mocked_local_templates_path/custom-prompt-modules/commands", "local_command"),
|
|
936
|
+
("local_command", "commands", "*.commands.md", "mocked_custom_modules_path", "/project/mocked_local_templates_path/mocked_custom_modules_path/commands", "local_command"),
|
|
937
|
+
|
|
938
|
+
("global/test_rule", "rules", "*.rules.md", "mocked_custom_modules_path", "mocked_template_base_path/prompt-modules/rules/", "test_rule"),
|
|
939
|
+
("local_rule", "rules", "*.rules.md", "custom-prompt-modules", "/project/mocked_local_templates_path/custom-prompt-modules/rules", "local_rule"),
|
|
940
|
+
("local_rule", "rules", "*.rules.md", "mocked_custom_modules_path", "/project/mocked_local_templates_path/mocked_custom_modules_path/rules", "local_rule"),
|
|
941
|
+
|
|
942
|
+
("global/test_intention", "intention", "*.intentions.md", "mocked_custom_modules_path", "mocked_template_base_path/prompt-modules/intentions/", "test_intention"),
|
|
943
|
+
("local_intention", "intention", "*.intentions.md", "custom-prompt-modules", "/project/mocked_local_templates_path/custom-prompt-modules/intentions", "local_intention"),
|
|
944
|
+
("local_intention", "intention", "*.intentions.md", "mocked_custom_modules_path", "/project/mocked_local_templates_path/mocked_custom_modules_path/intentions", "local_intention"),
|
|
945
|
+
|
|
946
|
+
("global/test_blueprint", "blueprint", "*.blueprints.md", "mocked_custom_modules_path", "mocked_template_base_path/prompt-modules/blueprints/", "test_blueprint"),
|
|
947
|
+
("local_blueprint", "blueprint", "*.blueprints.md", "custom-prompt-modules", "/project/mocked_local_templates_path/custom-prompt-modules/blueprints", "local_blueprint"),
|
|
948
|
+
("local_blueprint", "blueprint", "*.blueprints.md", "mocked_custom_modules_path", "/project/mocked_local_templates_path/mocked_custom_modules_path/blueprints", "local_blueprint")
|
|
945
949
|
])
|
|
946
|
-
def test_load_template_from_global_or_local(monkeypatch, temp_chat_file, template_name, template_type, default_pattern, expected_directory, expected_pattern):
|
|
950
|
+
def test_load_template_from_global_or_local(monkeypatch, temp_chat_file, template_name, template_type, default_pattern, custom_template_subdir, expected_directory, expected_pattern):
|
|
947
951
|
mock_config = get_default_config()
|
|
948
952
|
with patch('ara_cli.prompt_handler.ConfigManager.get_config', return_value=mock_config):
|
|
949
953
|
chat = Chat(temp_chat_file.name, reset=False)
|
|
@@ -956,6 +960,7 @@ def test_load_template_from_global_or_local(monkeypatch, temp_chat_file, templat
|
|
|
956
960
|
|
|
957
961
|
config = chat.config
|
|
958
962
|
config.local_prompt_templates_dir = mock_local_templates_path
|
|
963
|
+
config.custom_prompt_templates_subdir = custom_template_subdir
|
|
959
964
|
chat.config = config
|
|
960
965
|
|
|
961
966
|
with patch.object(chat, '_load_helper') as mock_load_helper:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# version.py
|
|
2
|
-
__version__ = "0.1.9.
|
|
2
|
+
__version__ = "0.1.9.53" # fith parameter like .0 for local install test purposes only. official numbers should be 4 digit numbers
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/artefact_models/businessgoal_artefact_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/blueprints/empty.blueprint.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/commands/empty.commands.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/intentions/empty.intention.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/code_analyst.rules.md
RENAMED
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/error_analyst.rules.md
RENAMED
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/gherkin_expert.rules.md
RENAMED
|
File without changes
|
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/product_owner.rules.md
RENAMED
|
File without changes
|
{ara_cli-0.1.9.52 → ara_cli-0.1.9.53}/ara_cli/templates/prompt-modules/rules/python_behave.rules.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|