Commit 01c0d91
committed
feat(examples): CLI interface improvements
changes:
- file: example_standalone.py
area: core
added: [example_1_basic_usage, example_4_model_configuration, example_2_with_openai, my_llm_client, example_3_custom_client]
- file: builder.py
area: core
added: [build_strategy, ask_llm_questions, __init__, LLXStrategyBuilder, answers_to_strategy, create_strategy_command, +2 more]
- file: commands.py
area: cli
modified: [_execute_apply_strategy]
- file: examples.py
area: core
added: [example_validate_strategy, example_run_strategy, example_verify_strategy, example_programmatic_strategy, example_create_strategy]
- file: executor_standalone.py
area: core
added: [_default_config, _get_project_metrics, _execute_task, StrategyExecutor, client_func, __init__, +8 more]
- file: models.py
area: model
added: [Goal, convert_enums, model_dump_yaml, model_validate_yaml, validate_sprint_ids, convert_enum_fields]
modified: [TaskType, Sprint, Strategy]
- file: models_v2.py
area: model
added: [to_llx_format]
modified: [Strategy]
- file: runner.py
area: core
added: [apply_strategy_to_tickets, run_strategy, analyze_project_metrics, verify_strategy_post_execution, load_valid_strategy]
modified: [review_strategy]
removed: [__init__, StrategyRunner, apply_strategy, _create_ticket_for_task, _get_sprint_tickets, _find_task_pattern]
- file: ci_runner.py
area: core
added: [run_code_analysis, TestResult, BugReport, __init__, run_loop, auto_fix_bugs, +7 more]
- file: auto_loop.py
area: cli
added: [_save_results_if_needed, ci_status, _display_ticket_summary, _display_final_status, _display_summary_table, get_backend, +3 more]
- file: comprehensive_example.py
area: core
added: [main, run_command]
- file: 02_mcp_integration.py
area: core
added: [simulate_planfile_apply, run_mcp_tool, example_mcp_session, create_mcp_tool_definitions, simulate_planfile_review, simulate_planfile_generate]
- file: 03_proxy_routing.py
area: core
added: [example_budget_tracking, get_usage_stats, __init__, create_proxy_config_example, ProxyClient, get_routing_decision, +2 more]
- file: 04_llx_integration.py
area: core
added: [_calculate_complexity_score, select_model, _basic_analysis, example_metric_driven_planning, LLXIntegration, __init__, +5 more]
- file: test_interactive_mode.py
area: test
added: [run_interactive_planfile, main]
new_tests: 2
- file: llx_validator.py
area: core
added: [create_validation_script, validate_strategy, _is_llx_available, __init__, analyze_generated_code, _parse_llx_analysis, +2 more]
- file: summary.py
area: core
added: [create_summary]
- file: test_all_examples.py
area: test
added: [_validate_yaml, _validate_file, _validate_json, __init__, _call_llm, _test_python_example, +7 more]
new_tests: 1
- file: test_litellm_integration.py
area: test
added: [create_test_prompt, generate_summary, __init__, run_comprehensive_test, main, LiteLLMStrategyTester]
new_tests: 2
- file: test_llm_adapters.py
area: test
added: [main]
- file: test_strategies.py
area: test
added: [main, validate_strategy_yaml]
new_tests: 2
- file: executor_v2.py
area: core
added: [_get_project_metrics, _execute_task, StrategyExecutor, __init__, _select_model, _build_prompt, +2 more]
- file: base.py
area: core
added: [create_ticket, _validate_config, __init__, update_ticket, search_tickets, list_tickets, +7 more]
- file: generic.py
area: core
added: [create_ticket, _validate_config, __init__, update_ticket, search_tickets, GenericBackend, +3 more]
- file: github.py
area: core
added: [create_ticket, GitHubBackend, _validate_config, __init__, update_ticket, search_tickets, +2 more]
- file: gitlab.py
area: core
added: [create_ticket, _validate_config, __init__, update_ticket, search_tickets, get_ticket, +2 more]
- file: jira.py
area: core
added: [_map_task_type_to_jira, _map_priority_to_jira, create_ticket, _validate_config, __init__, update_ticket, +4 more]
- file: adapters.py
area: core
added: [LLMTestResult, _test_ollama, BaseLLMAdapter, register_adapter, __init__, LiteLLMAdapter, +6 more]
new_tests: 2
- file: client.py
area: cli
added: [call_llm]
- file: generator.py
area: core
added: [_fix_yaml_formatting, _auto_select_model, generate_strategy, _collect_metrics, _parse_strategy_response, _basic_metrics]
- file: prompts.py
area: core
added: [build_strategy_prompt]
- file: cli_loader.py
area: cli
added: [save_strategy_to_json, _md_summary, _md_sprints, _md_metrics, save_to_json, _md_header, +4 more]
- file: yaml_loader.py
area: core
added: [_validate_sprints, load_tasks_yaml, validate_strategy_schema, load_strategy_yaml, save_yaml, _check_required_keys, +5 more]
- file: metrics.py
area: util
added: [calculate_strategy_health, _count_files_by_language, _collect_git_metrics, _check_project_files, analyze_project_metrics]
- file: priorities.py
area: util
added: [map_priority_to_system, calculate_task_priority, get_priority_color]
testing:
new_tests: 9
scenarios:
- expect_script
- interactive_mode
- all_examples
- model_with_prompt
- specific_strategy
- strategy_generation
- strategy_validation
- strategy_generation
- strategy_with_all_adapters
dependencies:
flow: "executor_v2→models_v2, __main__→commands→auto_loop, executor_standalone→models_v2"
- commands.py -> auto_loop.py
- executor_standalone.py -> models_v2.py
- __main__.py -> commands.py
- executor_v2.py -> models_v2.py
stats:
lines: "+13986/-295 (net +13691)"
files: 59
complexity: "Large structural change (normalized)"1 parent 2fd2248 commit 01c0d91
File tree
71 files changed
+14010
-298
lines changed- planfile_backup_20260326_151546
- cli
- examples
- bash-generation
- ecosystem
- interactive-tests
- readme-tests
- strategies
- tasks
- integrations
- llm
- loaders
- utils
- planfile
- cli
- examples
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
71 files changed
+14010
-298
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
10 | 31 | | |
11 | 32 | | |
12 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
0 commit comments