teddy-cli 0.2.3.dev1531__py3-none-any.whl → 0.2.3.dev1533__py3-none-any.whl
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.
- {teddy_cli-0.2.3.dev1531.dist-info → teddy_cli-0.2.3.dev1533.dist-info}/METADATA +43 -1
- {teddy_cli-0.2.3.dev1531.dist-info → teddy_cli-0.2.3.dev1533.dist-info}/RECORD +17 -17
- teddy_executor/__main__.py +9 -2
- teddy_executor/adapters/inbound/session_cli_handlers.py +36 -23
- teddy_executor/adapters/outbound/litellm_adapter.py +25 -18
- teddy_executor/core/domain/models/config_schema.py +94 -1
- teddy_executor/core/ports/inbound/get_context_use_case.py +4 -1
- teddy_executor/core/ports/outbound/llm_client.py +4 -1
- teddy_executor/core/services/context_service.py +18 -4
- teddy_executor/core/services/planning_service.py +59 -26
- teddy_executor/core/services/session_orchestrator.py +20 -2
- teddy_executor/core/services/session_service.py +4 -1
- teddy_executor/core/services/update_checker.py +15 -9
- teddy_executor/resources/config/config.yaml +15 -0
- {teddy_cli-0.2.3.dev1531.dist-info → teddy_cli-0.2.3.dev1533.dist-info}/WHEEL +0 -0
- {teddy_cli-0.2.3.dev1531.dist-info → teddy_cli-0.2.3.dev1533.dist-info}/entry_points.txt +0 -0
- {teddy_cli-0.2.3.dev1531.dist-info → teddy_cli-0.2.3.dev1533.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: teddy-cli
|
|
3
|
-
Version: 0.2.3.
|
|
3
|
+
Version: 0.2.3.dev1533
|
|
4
4
|
Summary: The local-first, test-driven agentic engineering harness. Because you should own the means of development.
|
|
5
5
|
Author: Raphael Atteritano
|
|
6
6
|
License: AGPL-3.0-only
|
|
@@ -194,6 +194,35 @@ uv tool install teddy-cli --pre --force
|
|
|
194
194
|
> [!WARNING]
|
|
195
195
|
> Experimental versions are published as PEP 440 dev pre-releases on PyPI and may include breaking changes or unstable features.
|
|
196
196
|
|
|
197
|
+
### Installing From a Fork or Private Index
|
|
198
|
+
|
|
199
|
+
TeDDy can run from a fork or a private package index, and the update check can follow the same source. Because the version check reads the installed `teddy-cli` distribution metadata, every install shape must keep the distribution name `teddy-cli` — a git install, a local wheel, and a private index all do. Only a public PyPI upload under a different name would need a second knob.
|
|
200
|
+
|
|
201
|
+
Install from a git URL:
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
uv tool install git+https://github.com/<you>/teddy
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Install from a private index:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
uv tool install teddy-cli --default-index https://packages.example.com/simple
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Then point the update check at your own source by setting `update.index_url` in `.teddy/config.yaml`:
|
|
214
|
+
|
|
215
|
+
```yaml
|
|
216
|
+
update:
|
|
217
|
+
index_url: "https://packages.example.com/pypi/teddy-cli/json"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
The source only needs to be PyPI-JSON-shaped. A static `version.json` served from your fork's repository works too, as long as it carries `{"info": {"version": "x.y.z"}}`. That `info.version` fallback ignores `--experimental`, so a static source reports the same version with or without the flag.
|
|
221
|
+
|
|
222
|
+
`uv tool upgrade teddy-cli` re-resolves the upgrade from the index recorded in its install receipt, so a fork installed from a private index upgrades in place. A git install upgrades by reinstalling from the same git URL.
|
|
223
|
+
|
|
224
|
+
`teddy update` reads `.teddy/config.yaml` from the current directory, so run it from the project root. The `checks.update: false` toggle silences the startup notice only; the background fetch still runs, and `teddy update` always compares against the configured source.
|
|
225
|
+
|
|
197
226
|
### Initialize
|
|
198
227
|
|
|
199
228
|
```bash
|
|
@@ -212,6 +241,19 @@ Each subcommand rewrites only the files whose content differs from the bundled d
|
|
|
212
241
|
|
|
213
242
|
The first execution of `teddy start` runs an interactive setup to configure your API key and preferred editor. For deeper customization, edit `.teddy/config.yaml`. All `llm.*` settings pass directly through to [LiteLLM](https://docs.litellm.ai/docs/completion/input), allowing you to route to cloud providers or local endpoints (Ollama, llama.cpp, or any OpenAI-compatible server via `api_base`). The config file also lets you adjust your external editor, command execution timeouts, diff similarity thresholds, and automated context pruning budgets.
|
|
214
243
|
|
|
244
|
+
To route one agent persona to its own model while `llm.*` stays the shared default, add an `agents` block. The effective model resolves from the `--model` flag first, then `agents.<persona>.model`, then `llm.model`, and every key the persona omits still falls back to the global `llm` block. `--model` replaces only the `model` key, so a persona-level `api_key` or `api_base` still applies. The merge is one level deep: a mapping-valued key such as `extra_headers` replaces the global value wholesale rather than merging key by key. An empty or whitespace-only persona model falls back to `llm.model`, and persona names match case-insensitively.
|
|
245
|
+
|
|
246
|
+
```yaml
|
|
247
|
+
llm:
|
|
248
|
+
model: "openai/gpt-4o"
|
|
249
|
+
timeout: 300
|
|
250
|
+
agents:
|
|
251
|
+
architect:
|
|
252
|
+
model: "anthropic/claude-sonnet-4-5"
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
The API-key setup prompt reads only the global `llm.api_key`, so a persona-level `api_key` does not suppress it: when `llm.api_key` is empty the prompt still fires, and validation then reports against the merged key.
|
|
256
|
+
|
|
215
257
|
### Environment Variables
|
|
216
258
|
|
|
217
259
|
TeDDy checks the following process environment variables at startup and during a session.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
teddy_executor/__init__.py,sha256=xZ4r3lFwNLQ4C4vOl7Q_-5dh3TlWw3-nXR8O8yjV2o0,58
|
|
2
|
-
teddy_executor/__main__.py,sha256=
|
|
2
|
+
teddy_executor/__main__.py,sha256=GFCEQ-huv7Yuqr2CY0KhXLORPoJGuL-caa6jnA-07kE,22721
|
|
3
3
|
teddy_executor/container.py,sha256=84cvKQJ3Rxg5gqTdTMSYgzehzKtIzS8dItgrpQ3qH14,16366
|
|
4
4
|
teddy_executor/prompts.py,sha256=GXYGu4RuNhv67fbdREHUvPapi2JH9fKqBe8rhDR6z6U,2150
|
|
5
5
|
teddy_executor/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
teddy_executor/adapters/inbound/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
teddy_executor/adapters/inbound/cli_formatter.py,sha256=9bWL2S-3vZFBJZPd4RG2xTBYWu1Tim6U0AMGRjcUHB8,3548
|
|
8
8
|
teddy_executor/adapters/inbound/cli_helpers.py,sha256=yXGJYEPPMCmH2AKBwEhW-CkWmHGf7OgDTOE-qMLR4d0,9377
|
|
9
|
-
teddy_executor/adapters/inbound/session_cli_handlers.py,sha256=
|
|
9
|
+
teddy_executor/adapters/inbound/session_cli_handlers.py,sha256=h0-Glgs2nJo_GhIZM5nNFRJ2_IFE2hBe1mZ0gPao1kU,63246
|
|
10
10
|
teddy_executor/adapters/inbound/textual_plan_reviewer.py,sha256=lJHoqaJShuvTVz7SvEdikHN_rMCXPbgolUVlYVkoc4s,3678
|
|
11
11
|
teddy_executor/adapters/inbound/textual_plan_reviewer_app.py,sha256=ipOw8QLoOfoGcZdo3R4-zaMBQ2RuHilk2dXsMGoYrBc,15209
|
|
12
12
|
teddy_executor/adapters/inbound/textual_plan_reviewer_editor.py,sha256=LbYlIXSoEc3PQ8o28O4lzybMBig9r0QKYFNKg90iso0,22235
|
|
@@ -21,7 +21,7 @@ teddy_executor/adapters/outbound/console_interactor_ask_loop.py,sha256=b5s5jMDJV
|
|
|
21
21
|
teddy_executor/adapters/outbound/console_interactor_helpers.py,sha256=uQRTp-952xb18vloQHSVLrqOG0L7efFXZsgk29lUxyE,2397
|
|
22
22
|
teddy_executor/adapters/outbound/console_tooling.py,sha256=iy854Kxh8JI-7rhA4xeFyshnluHoiHzf0xFUn6kYr5U,6366
|
|
23
23
|
teddy_executor/adapters/outbound/filesystem_helpers.py,sha256=cnk46Xz9yryvTwDECYMHh7n4FBXTswqhazvxqDOCF2k,2606
|
|
24
|
-
teddy_executor/adapters/outbound/litellm_adapter.py,sha256=
|
|
24
|
+
teddy_executor/adapters/outbound/litellm_adapter.py,sha256=awctwJCpzDl6xUkPGE94CWlWuBDLFLsJN4F8kixa0AI,32018
|
|
25
25
|
teddy_executor/adapters/outbound/local_file_system_adapter.py,sha256=H9lnuCnVy_Lm7ZKLUJMX3P1-3oEf6GYrTRIyjfBpteA,13536
|
|
26
26
|
teddy_executor/adapters/outbound/local_repo_tree_generator.py,sha256=2lR7u240-u-BdvghuCifFmMWKsWy2R_JngxIW4WJKBM,6903
|
|
27
27
|
teddy_executor/adapters/outbound/openrouter_hydrator.py,sha256=I9yooXmq-fBXTfEoFwnEZrcTd486UZzC4HYANBimG8M,6464
|
|
@@ -40,7 +40,7 @@ teddy_executor/core/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
40
40
|
teddy_executor/core/domain/models/__init__.py,sha256=yok7EZ3_cUwVGPGjBwTLg-zL4XTyQs2xAi_4VPKdKCk,1062
|
|
41
41
|
teddy_executor/core/domain/models/action_ports.py,sha256=vCMBtLS1thqT1YcGRScwapQ9MXKbvKg3zWeEGpJ5IhE,733
|
|
42
42
|
teddy_executor/core/domain/models/change_set.py,sha256=FgR553--lmcX-3tqjEkRhpwPpvEnLXWZ14Vkc2XgV_k,207
|
|
43
|
-
teddy_executor/core/domain/models/config_schema.py,sha256=
|
|
43
|
+
teddy_executor/core/domain/models/config_schema.py,sha256=L3oJdYSHf4Oduslrz4i1qNsUIuFcU9n75xZn9E0RCAk,16009
|
|
44
44
|
teddy_executor/core/domain/models/drift_report.py,sha256=K1R6OkySD2RfKU9bV0D5mVGl1PMfwlIKgFp5YSBJm0E,1406
|
|
45
45
|
teddy_executor/core/domain/models/exceptions.py,sha256=kR6-vUECe06kVem0KoeHo9OEdQIFFB2AP58eWNo9qYs,1243
|
|
46
46
|
teddy_executor/core/domain/models/execution_report.py,sha256=1jUI1YHhx0FruuMh6gYyOTlRye9ubFtnxpEgLNdu53g,1801
|
|
@@ -55,7 +55,7 @@ teddy_executor/core/domain/models/web_search_results.py,sha256=ZugVr76XB2QdS-vum
|
|
|
55
55
|
teddy_executor/core/ports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
56
|
teddy_executor/core/ports/inbound/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
57
|
teddy_executor/core/ports/inbound/edit_simulator.py,sha256=Pu4tBJxK4ensZO1gH_YE_NuVMG99qzy6v5Q4pN_VT5s,1087
|
|
58
|
-
teddy_executor/core/ports/inbound/get_context_use_case.py,sha256=
|
|
58
|
+
teddy_executor/core/ports/inbound/get_context_use_case.py,sha256=2Nr65Y4DeLCPCluMUlSxBhhzmMSWLL-fA4WimPZlHek,1497
|
|
59
59
|
teddy_executor/core/ports/inbound/init.py,sha256=3iJH2I2ljpZq2-f-XditbmRySUgFuBFUF_j7UkY6p_E,2496
|
|
60
60
|
teddy_executor/core/ports/inbound/plan_parser.py,sha256=BaH1XQM23ys6l4YMcb2VTXs7IjW2TgklUqQ-8dthSYQ,1603
|
|
61
61
|
teddy_executor/core/ports/inbound/plan_reviewer.py,sha256=iHJfl4P7P6kOr2QERBAuXRaQwtgE7eiqOdQDpeMotmY,1247
|
|
@@ -67,7 +67,7 @@ teddy_executor/core/ports/outbound/config_service.py,sha256=DIQhico2ot0F7E7wPIeu
|
|
|
67
67
|
teddy_executor/core/ports/outbound/environment_inspector.py,sha256=hXerjBVQfarrv8rU8TfTlSN9i778EFPS1kiHOEmYBEE,855
|
|
68
68
|
teddy_executor/core/ports/outbound/execution_report_assembler.py,sha256=dKfnE5dvUy_tlpJOIti307KfQEa2FIByZqpYK6TmBPs,521
|
|
69
69
|
teddy_executor/core/ports/outbound/file_system_manager.py,sha256=v7FMRM-Iib1JozzyqG_N77wbV6MxCpJjSlSBsezZ2Y4,4703
|
|
70
|
-
teddy_executor/core/ports/outbound/llm_client.py,sha256=
|
|
70
|
+
teddy_executor/core/ports/outbound/llm_client.py,sha256=Y0h9onrhO_M8lMnoh05BDj8FDSN7fWf61NqnDLO_WfA,2838
|
|
71
71
|
teddy_executor/core/ports/outbound/markdown_report_formatter.py,sha256=xjSFrQHL4o-3H9H6f_XBhBxgwJhOswQU3RySX-Ux9bk,558
|
|
72
72
|
teddy_executor/core/ports/outbound/prompt_manager.py,sha256=eUlBy_h0NB6fGat0jeBaCnF17MnAffcAeTASt9he5xY,1965
|
|
73
73
|
teddy_executor/core/ports/outbound/quit_key_listener.py,sha256=XfbW6rm1THi4IYQYpstC0xUAsDiBxVIw9PPRPYoBDD8,1238
|
|
@@ -89,7 +89,7 @@ teddy_executor/core/services/action_executor.py,sha256=kjlQM3Hx4Cmq95HKQyeYM3M0Y
|
|
|
89
89
|
teddy_executor/core/services/action_factory.py,sha256=-FV_V4sy7CcuuPU8Xb3mqvQp_-BaoVodorVcVjUjzVo,9305
|
|
90
90
|
teddy_executor/core/services/action_parser_complex.py,sha256=7vDUsHFvclElkdngCypZdzka1fZy0O4f__q4-MsulPI,6848
|
|
91
91
|
teddy_executor/core/services/action_parser_strategies.py,sha256=o_aBiMRiHsepmsNveYxmr1_Ll73KVhMSBaUA7nBE604,2705
|
|
92
|
-
teddy_executor/core/services/context_service.py,sha256=
|
|
92
|
+
teddy_executor/core/services/context_service.py,sha256=Nr1KmDECF82aQSimqAvP7IbXrOm724BZ3CAgxMEBelA,22223
|
|
93
93
|
teddy_executor/core/services/edit_simulator.py,sha256=5Z_SCBfGHTaGi-JVIgyIDeTGr-5Pulm6A5Ifqn7SSmU,5512
|
|
94
94
|
teddy_executor/core/services/execution_orchestrator.py,sha256=jnfUR52_JKsDep0BVTTAhokiEQIOUx1WSjl9_d4y-qU,15047
|
|
95
95
|
teddy_executor/core/services/execution_report_assembler.py,sha256=227YExXeAtf0GQLnc4IDLKqZi1QsxOYKqvMcWSs2NVo,2396
|
|
@@ -100,17 +100,17 @@ teddy_executor/core/services/parser_infrastructure.py,sha256=joDtWf3rXsEaDSasTff
|
|
|
100
100
|
teddy_executor/core/services/parser_metadata.py,sha256=HEbzQpISeEQqD8xGiXQhaOtV8FdJz5pOnkb9hk1cVII,8493
|
|
101
101
|
teddy_executor/core/services/parser_reporting.py,sha256=shD3UAiFTooQH_AvLk5GR3rZmqoXmIZXuxymqxwggwQ,9988
|
|
102
102
|
teddy_executor/core/services/plan_validator.py,sha256=fHCuMo3ETkJgP5Nbcy0JuFGucUyk5Pgo-GoQB7XPiT0,2906
|
|
103
|
-
teddy_executor/core/services/planning_service.py,sha256=
|
|
103
|
+
teddy_executor/core/services/planning_service.py,sha256=rnf_T5TI8Pf0aRPzKiXhhf1Xc6m9Q2sdUXj59lV2ygw,13562
|
|
104
104
|
teddy_executor/core/services/prompt_manager.py,sha256=NJpgeqxwPaYfrmC5ZrGfmIs-HC4bHoTwu3uaKcfFSxA,10613
|
|
105
105
|
teddy_executor/core/services/session_lifecycle_manager.py,sha256=AzbjYzlc968bEGVH8257s-dYYW5yTqHYS1y0PJ4XEPo,36213
|
|
106
106
|
teddy_executor/core/services/session_loop_guard.py,sha256=_z45KXaF7VQJTXQT18M6QR5Lq6VCzKqrbhugXg7UWVk,4480
|
|
107
|
-
teddy_executor/core/services/session_orchestrator.py,sha256=
|
|
107
|
+
teddy_executor/core/services/session_orchestrator.py,sha256=3ohAkyYQxrxmzEZ5u1ZOei7RaoJ2rlcB4_Y9Yhka5rU,28459
|
|
108
108
|
teddy_executor/core/services/session_planner.py,sha256=hrb3EBXzNAfV1qyCKR159oUMRB29Vv02ZmyPwLhcYpc,1695
|
|
109
109
|
teddy_executor/core/services/session_pruning_service.py,sha256=ZufCk452G3V1iYUbFpGNq6mZZHG6Zwk_6QvXYqx1tgk,16100
|
|
110
110
|
teddy_executor/core/services/session_replanner.py,sha256=-6r0wGSz9TMOPZi9rKe2OWMhufQso45yrA93z4FA6Fc,2629
|
|
111
111
|
teddy_executor/core/services/session_repository.py,sha256=vgcXOrHQ0xoUVvLE-t_QNpxXIDe3vM0eWwbJTcSBbeQ,9356
|
|
112
|
-
teddy_executor/core/services/session_service.py,sha256=
|
|
113
|
-
teddy_executor/core/services/update_checker.py,sha256=
|
|
112
|
+
teddy_executor/core/services/session_service.py,sha256=kPblB3N4zlNz7Rgc4PCx7gAeeuwjHhfjK0DqnV081Sw,25859
|
|
113
|
+
teddy_executor/core/services/update_checker.py,sha256=rdH8NhF6ndICEij6Stb3E4GDUQ5HUoWXH1tJS8EJaoQ,7223
|
|
114
114
|
teddy_executor/core/services/templates/execution_report.md.j2,sha256=j40t2RYuI87Bjqzu4XWWjMKoRPNKUh1h3Pmz7XI2Ylg,12895
|
|
115
115
|
teddy_executor/core/services/validation_rules/__init__.py,sha256=Pe0dCWgssakypne3Yi0R1UK_T7gn6WZjjAk7YHcLUT8,128
|
|
116
116
|
teddy_executor/core/services/validation_rules/edit.py,sha256=uVHrbmxXQXQuVXDCR-1fsEsdyCpkjL5kau0HWf2d7bA,7712
|
|
@@ -141,7 +141,7 @@ teddy_executor/registries/validators.py,sha256=82SNpawuzWV2dtJcMAVP7wOpjoJ0hViR2
|
|
|
141
141
|
teddy_executor/resources/MRP.md,sha256=j9Z_UZRxZpDTK5vtG6yuwhCThgYGpaDvMU17YJntbVs,16722
|
|
142
142
|
teddy_executor/resources/__init__.py,sha256=h835ykuoc9Xv0E4UIaHmi8iVnhPKYqhwkLzHV5jRQEs,45
|
|
143
143
|
teddy_executor/resources/config/__init__.py,sha256=R96a_JS3GOty_5vsGg8AcR3cQYotYXCELrIzWFhn4kE,61
|
|
144
|
-
teddy_executor/resources/config/config.yaml,sha256=
|
|
144
|
+
teddy_executor/resources/config/config.yaml,sha256=a1WDREEJ_M-Br7Wpj18-ELSg-gdeUsPCRhwhq3QN3mY,3819
|
|
145
145
|
teddy_executor/resources/config/init.context,sha256=9J70exhvHAzqHX8kin2PuVtPi2JZp-TAzZr-PV8EYSg,87
|
|
146
146
|
teddy_executor/resources/config/prompts/architect.md,sha256=aVU16aeCmTCon_Qvo8eiozujTBfuoLD_3UsnP-qKj4o,7517
|
|
147
147
|
teddy_executor/resources/config/prompts/assistant.md,sha256=GKlQ-JJ08zTcb-gWjuZtv2TDK8AqbIlEiS4Ov4r1J1A,2466
|
|
@@ -159,8 +159,8 @@ teddy_executor/resources/templates/milestone.md,sha256=PwHedgzqRQnKQq4M4GILmmv7Y
|
|
|
159
159
|
teddy_executor/resources/templates/pre-commit.md,sha256=NqllfAw8Z0yvt51QJ6OBW18dccrJniLGibSylkatvRM,7684
|
|
160
160
|
teddy_executor/resources/templates/specification-document.md,sha256=skYPZ7E0m2n2STEWOKCHeiuqNtsshYzI49rmsNSKAuA,671
|
|
161
161
|
teddy_executor/resources/templates/vertical-slice.md,sha256=Cn8Y_rb6BZvy9bKBDNXhGfoSgMpsZbIBfyFQgrdx8Jg,5563
|
|
162
|
-
teddy_cli-0.2.3.
|
|
163
|
-
teddy_cli-0.2.3.
|
|
164
|
-
teddy_cli-0.2.3.
|
|
165
|
-
teddy_cli-0.2.3.
|
|
166
|
-
teddy_cli-0.2.3.
|
|
162
|
+
teddy_cli-0.2.3.dev1533.dist-info/METADATA,sha256=wMzLZCRU07LIhLm-p7VAAI3KmKSfn5ND1DT6r51EZmA,33253
|
|
163
|
+
teddy_cli-0.2.3.dev1533.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
164
|
+
teddy_cli-0.2.3.dev1533.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
|
|
165
|
+
teddy_cli-0.2.3.dev1533.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
|
|
166
|
+
teddy_cli-0.2.3.dev1533.dist-info/RECORD,,
|
teddy_executor/__main__.py
CHANGED
|
@@ -400,12 +400,19 @@ def update(
|
|
|
400
400
|
fetch_latest_version,
|
|
401
401
|
compare_versions,
|
|
402
402
|
is_prerelease,
|
|
403
|
-
|
|
403
|
+
resolve_index_url,
|
|
404
404
|
)
|
|
405
405
|
|
|
406
|
+
# The check resolves configuration read-only: it never anchors or
|
|
407
|
+
# initializes a project, so a missing `.teddy/config.yaml` falls back to
|
|
408
|
+
# the bundled defaults and the official endpoint.
|
|
409
|
+
container = get_container()
|
|
410
|
+
config_service = _resolve_config_or_exit(container)
|
|
411
|
+
index_url = resolve_index_url(config_service.get_setting("update.index_url"))
|
|
412
|
+
|
|
406
413
|
# Dev pre-releases are published to PyPI (see .github/workflows/publish.yml),
|
|
407
414
|
# so --experimental only widens the check to include prereleases.
|
|
408
|
-
latest = fetch_latest_version(
|
|
415
|
+
latest = fetch_latest_version(index_url, stable_only=not experimental)
|
|
409
416
|
|
|
410
417
|
if latest is None:
|
|
411
418
|
typer.echo("Could not check for updates: network error.")
|
|
@@ -14,6 +14,10 @@ from teddy_executor.core.ports.inbound.init import IInitUseCase
|
|
|
14
14
|
from teddy_executor.core.ports.inbound.run_plan_use_case import IRunPlanUseCase
|
|
15
15
|
from teddy_executor.core.ports.outbound.session_manager import ISessionManager
|
|
16
16
|
from teddy_executor.core.ports.outbound.system_environment import ISystemEnvironment
|
|
17
|
+
from teddy_executor.core.domain.models.config_schema import (
|
|
18
|
+
resolve_agent_llm_overrides,
|
|
19
|
+
resolve_effective_model,
|
|
20
|
+
)
|
|
17
21
|
from teddy_executor.core.domain.models.session import SessionOptions
|
|
18
22
|
from teddy_executor.core.ports.outbound.user_interactor import IUserInteractor
|
|
19
23
|
from teddy_executor.core.ports.outbound.session_loop_guard import ISessionLoopGuard
|
|
@@ -35,6 +39,7 @@ from teddy_executor.core.services.update_checker import (
|
|
|
35
39
|
get_current_version,
|
|
36
40
|
is_prerelease,
|
|
37
41
|
read_update_cache,
|
|
42
|
+
resolve_index_url,
|
|
38
43
|
)
|
|
39
44
|
|
|
40
45
|
|
|
@@ -406,17 +411,21 @@ def _update_cache_path() -> Path:
|
|
|
406
411
|
return find_project_root() / ".teddy" / ".update_cache.json"
|
|
407
412
|
|
|
408
413
|
|
|
409
|
-
def _start_background_update_check() -> None:
|
|
414
|
+
def _start_background_update_check(container: Container) -> None:
|
|
410
415
|
"""Start the daemon version fetch that fills the cache for the next run.
|
|
411
416
|
|
|
412
|
-
The fetch never blocks startup and never prints. The
|
|
413
|
-
the
|
|
417
|
+
The fetch never blocks startup and never prints. The configured source
|
|
418
|
+
resolves before the thread spawns, so the daemon never touches the
|
|
419
|
+
container. The startup preamble emits the notice from the cache this fetch
|
|
420
|
+
leaves behind.
|
|
414
421
|
"""
|
|
415
422
|
import threading
|
|
416
423
|
|
|
424
|
+
config_service = container.resolve(IConfigService)
|
|
425
|
+
index_url = resolve_index_url(config_service.get_setting("update.index_url"))
|
|
417
426
|
thread = threading.Thread(
|
|
418
427
|
target=background_check,
|
|
419
|
-
args=(_update_cache_path(),),
|
|
428
|
+
args=(_update_cache_path(), index_url),
|
|
420
429
|
daemon=True,
|
|
421
430
|
)
|
|
422
431
|
thread.start()
|
|
@@ -800,9 +809,6 @@ def _display_update_notification(container: Container, cache_path: Path) -> list
|
|
|
800
809
|
)
|
|
801
810
|
return ["checks.update"]
|
|
802
811
|
except Exception:
|
|
803
|
-
import logging
|
|
804
|
-
|
|
805
|
-
logger = logging.getLogger(__name__)
|
|
806
812
|
logger.debug("Failed to display update notification", exc_info=True)
|
|
807
813
|
return []
|
|
808
814
|
|
|
@@ -823,7 +829,7 @@ def handle_new_session( # noqa: PLR0913
|
|
|
823
829
|
max_cost: Optional[float] = None,
|
|
824
830
|
):
|
|
825
831
|
"""Logic for the 'start' command."""
|
|
826
|
-
_start_background_update_check()
|
|
832
|
+
_start_background_update_check(container)
|
|
827
833
|
|
|
828
834
|
try:
|
|
829
835
|
# 0. An empty or whitespace-only -m means the flag was omitted: the
|
|
@@ -902,13 +908,23 @@ def _echo_config_success(
|
|
|
902
908
|
container: The DI container with resolved services.
|
|
903
909
|
agent: Optional agent name to display.
|
|
904
910
|
model: Optional model override from CLI. If provided, this takes
|
|
905
|
-
precedence over the config file value.
|
|
911
|
+
precedence over the config file value. When omitted, a configured
|
|
912
|
+
``agents.<persona>.model`` wins over ``llm.model``.
|
|
906
913
|
"""
|
|
907
914
|
config_service = container.resolve(IConfigService)
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
915
|
+
persona_model = None
|
|
916
|
+
if agent:
|
|
917
|
+
# Report the same effective model the planner resolves, so the
|
|
918
|
+
# persona's configured model is visible before the first turn.
|
|
919
|
+
overlay = resolve_agent_llm_overrides(
|
|
920
|
+
config_service.get_setting("agents", {}), agent
|
|
921
|
+
)
|
|
922
|
+
persona_model = overlay.get("model")
|
|
923
|
+
# One resolver owns the flag > persona > llm.model order for the banner too,
|
|
924
|
+
# so the display can never drift from the model the planner uses.
|
|
925
|
+
resolved_model = resolve_effective_model(
|
|
926
|
+
model, persona_model, config_service.get_setting("llm.model", "unknown")
|
|
927
|
+
)
|
|
912
928
|
identity_lines: list[str] = []
|
|
913
929
|
if agent:
|
|
914
930
|
identity_lines.append(f"Agent: {canonical_agent_name(agent)}")
|
|
@@ -1479,16 +1495,13 @@ def _sync_and_display_session_meta(
|
|
|
1479
1495
|
model: Optional[str] = None,
|
|
1480
1496
|
agent: Optional[str] = None,
|
|
1481
1497
|
) -> None:
|
|
1482
|
-
"""Reads latest turn meta.yaml,
|
|
1498
|
+
"""Reads latest turn meta.yaml, applies the resume --model override, and clears actual_model.
|
|
1483
1499
|
|
|
1484
1500
|
The identity banner reflects the EFFECTIVE agent: the ``-a/--agent`` override
|
|
1485
1501
|
when one was passed, otherwise the session's persisted ``agent_name``.
|
|
1486
1502
|
"""
|
|
1487
|
-
from teddy_executor.core.ports.outbound.config_service import IConfigService
|
|
1488
|
-
|
|
1489
1503
|
session_manager = container.resolve(ISessionManager)
|
|
1490
1504
|
repository: ISessionRepository = container.resolve(ISessionRepository)
|
|
1491
|
-
config_service: IConfigService = container.resolve(IConfigService)
|
|
1492
1505
|
|
|
1493
1506
|
latest_turn_path = session_manager.get_latest_turn(session_name)
|
|
1494
1507
|
meta = repository.load_meta(latest_turn_path)
|
|
@@ -1502,13 +1515,13 @@ def _sync_and_display_session_meta(
|
|
|
1502
1515
|
|
|
1503
1516
|
_echo_config_success(container, agent=agent or meta.get("agent_name"), model=model)
|
|
1504
1517
|
|
|
1505
|
-
#
|
|
1506
|
-
|
|
1518
|
+
# Only an explicit --model writes metadata. A configuration-derived model
|
|
1519
|
+
# must never be stamped into the per-turn record: resolution reads
|
|
1520
|
+
# ``model_override`` and the persona re-resolves every turn, so a stamped
|
|
1521
|
+
# ``model`` would mask the persona in the telemetry display line.
|
|
1507
1522
|
if model:
|
|
1508
1523
|
meta["model"] = model
|
|
1509
|
-
|
|
1510
|
-
elif config_model != "unknown" and meta.get("model") != config_model:
|
|
1511
|
-
meta["model"] = config_model
|
|
1524
|
+
meta["model_override"] = model
|
|
1512
1525
|
changed = True
|
|
1513
1526
|
if changed:
|
|
1514
1527
|
repository.save_meta(f"{latest_turn_path}/meta.yaml", meta)
|
|
@@ -1529,7 +1542,7 @@ def handle_resume_session( # noqa: PLR0913
|
|
|
1529
1542
|
max_cost: Optional[float] = None,
|
|
1530
1543
|
):
|
|
1531
1544
|
"""Logic for the 'resume' command."""
|
|
1532
|
-
_start_background_update_check()
|
|
1545
|
+
_start_background_update_check(container)
|
|
1533
1546
|
|
|
1534
1547
|
try:
|
|
1535
1548
|
# 1. Shared startup preamble (preflight only; workspace repairs are start-only)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
import math
|
|
3
|
-
from typing import Any, Dict, List, Optional, Protocol
|
|
3
|
+
from typing import Any, Dict, List, Mapping, Optional, Protocol
|
|
4
4
|
from teddy_executor.core.ports.outbound.config_service import IConfigService
|
|
5
5
|
from teddy_executor.core.domain.models.exceptions import ConfigurationError
|
|
6
6
|
from teddy_executor.core.ports.outbound.llm_client import ILlmClient, LlmApiError
|
|
@@ -112,11 +112,17 @@ class LiteLLMAdapter(ILlmClient):
|
|
|
112
112
|
# Request, retry, and hydration form one linear flow whose branching is
|
|
113
113
|
# inherent to the provider protocol. Extracting it is outside this change.
|
|
114
114
|
def get_completion( # noqa: C901
|
|
115
|
-
self,
|
|
115
|
+
self,
|
|
116
|
+
messages: List[Dict[str, str]],
|
|
117
|
+
model: Optional[str] = None,
|
|
118
|
+
llm_overrides: Optional[Mapping[str, Any]] = None,
|
|
119
|
+
**kwargs: Any,
|
|
116
120
|
) -> Any:
|
|
117
121
|
"""
|
|
118
122
|
Sends a request to an LLM via litellm and returns the raw response object.
|
|
119
123
|
Values in the 'llm' section of the config are passed directly to LiteLLM.
|
|
124
|
+
``llm_overrides`` layers the active persona's settings over that block,
|
|
125
|
+
below the per-call ``model``.
|
|
120
126
|
"""
|
|
121
127
|
litellm = self._get_litellm()
|
|
122
128
|
|
|
@@ -129,20 +135,9 @@ class LiteLLMAdapter(ILlmClient):
|
|
|
129
135
|
raise ConfigurationError(errors[0])
|
|
130
136
|
self._validated = True
|
|
131
137
|
|
|
132
|
-
final_params = self._prepare_completion_params(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if not self._validated:
|
|
136
|
-
with self._init_lock:
|
|
137
|
-
if not self._validated:
|
|
138
|
-
from teddy_executor.core.domain.models.exceptions import (
|
|
139
|
-
ConfigurationError as _ConfigError,
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
errors = self.validate_config()
|
|
143
|
-
if errors:
|
|
144
|
-
raise _ConfigError(errors[0])
|
|
145
|
-
self._validated = True
|
|
138
|
+
final_params = self._prepare_completion_params(
|
|
139
|
+
model, llm_overrides=llm_overrides, **kwargs
|
|
140
|
+
)
|
|
146
141
|
|
|
147
142
|
max_attempts_val = final_params.get("max_retries")
|
|
148
143
|
max_attempts = int(max_attempts_val) if max_attempts_val is not None else 3
|
|
@@ -167,9 +162,18 @@ class LiteLLMAdapter(ILlmClient):
|
|
|
167
162
|
raise LlmApiError(f"LLM Completion failed: {final_msg}") from last_exception
|
|
168
163
|
|
|
169
164
|
def _prepare_completion_params(
|
|
170
|
-
self,
|
|
165
|
+
self,
|
|
166
|
+
model: Optional[str] = None,
|
|
167
|
+
llm_overrides: Optional[Mapping[str, Any]] = None,
|
|
168
|
+
**kwargs: Any,
|
|
171
169
|
) -> Dict[str, Any]:
|
|
172
|
-
"""Resolves and layers configuration for the completion request.
|
|
170
|
+
"""Resolves and layers configuration for the completion request.
|
|
171
|
+
|
|
172
|
+
Precedence, lowest first: runtime kwargs, the global ``llm`` block, the
|
|
173
|
+
persona overlay, then the per-call model. The overlay replaces a key's
|
|
174
|
+
complete value (one level deep), so a persona ``extra_headers`` mapping
|
|
175
|
+
supersedes the global one wholesale.
|
|
176
|
+
"""
|
|
173
177
|
from typing import cast
|
|
174
178
|
|
|
175
179
|
params = {**kwargs}
|
|
@@ -177,6 +181,9 @@ class LiteLLMAdapter(ILlmClient):
|
|
|
177
181
|
llm_config = cast(Dict[str, Any], self._config_service.get_setting("llm", {}))
|
|
178
182
|
params.update(llm_config)
|
|
179
183
|
|
|
184
|
+
if llm_overrides:
|
|
185
|
+
params.update(llm_overrides)
|
|
186
|
+
|
|
180
187
|
# Drop an empty/blank api_key so litellm applies the provider's own
|
|
181
188
|
# default (e.g. a dummy key for keyless local models). Forwarding "" is
|
|
182
189
|
# equivalent to a missing key and raises AuthenticationError.
|
|
@@ -65,6 +65,11 @@ class ChecksConfig:
|
|
|
65
65
|
update: bool = True
|
|
66
66
|
|
|
67
67
|
|
|
68
|
+
@dataclass(frozen=True)
|
|
69
|
+
class UpdateConfig:
|
|
70
|
+
index_url: str = ""
|
|
71
|
+
|
|
72
|
+
|
|
68
73
|
@dataclass(frozen=True)
|
|
69
74
|
class AutoPruningConfig:
|
|
70
75
|
enabled: bool = True
|
|
@@ -93,6 +98,7 @@ class AppConfig:
|
|
|
93
98
|
context: ContextConfig = field(default_factory=ContextConfig)
|
|
94
99
|
research: ResearchConfig = field(default_factory=ResearchConfig)
|
|
95
100
|
checks: ChecksConfig = field(default_factory=ChecksConfig)
|
|
101
|
+
update: UpdateConfig = field(default_factory=UpdateConfig)
|
|
96
102
|
auto_pruning: AutoPruningConfig = field(default_factory=AutoPruningConfig)
|
|
97
103
|
guardrails: GuardrailsConfig = field(default_factory=GuardrailsConfig)
|
|
98
104
|
editor: str = ""
|
|
@@ -224,6 +230,7 @@ _SCHEMA_FIELDS: tuple[_FieldSpec, ...] = (
|
|
|
224
230
|
_FieldSpec("checks.prompts", "checks", "prompts", bool),
|
|
225
231
|
_FieldSpec("checks.templates", "checks", "templates", bool),
|
|
226
232
|
_FieldSpec("checks.update", "checks", "update", bool),
|
|
233
|
+
_FieldSpec("update.index_url", "update", "index_url", str),
|
|
227
234
|
_FieldSpec("auto_pruning.enabled", "auto_pruning", "enabled", bool),
|
|
228
235
|
_FieldSpec(
|
|
229
236
|
"auto_pruning.turn_context_threshold",
|
|
@@ -269,9 +276,93 @@ _DECLARED_KEY_TARGETS: dict[str, tuple[str | None, str]] = {
|
|
|
269
276
|
_KNOWN_TOP_LEVEL = frozenset(
|
|
270
277
|
{spec.group for spec in _SCHEMA_FIELDS if spec.group is not None}
|
|
271
278
|
| {spec.key for spec in _SCHEMA_FIELDS if spec.group is None}
|
|
272
|
-
| {"llm"}
|
|
279
|
+
| {"llm", "agents"}
|
|
273
280
|
)
|
|
274
281
|
|
|
282
|
+
_AGENTS_GROUP = "agents"
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def resolve_agent_llm_overrides(agents_block: Any, persona: str) -> dict[str, Any]:
|
|
286
|
+
"""Return the per-persona ``llm`` overlay from the ``agents`` block.
|
|
287
|
+
|
|
288
|
+
The overlay is a copy of the persona entry, so a caller can merge it without
|
|
289
|
+
mutating the lazily interpolated merged configuration. Persona matching is
|
|
290
|
+
case-insensitive, mirroring the prompt resolver's casefold stem rule. A blank
|
|
291
|
+
``model`` is dropped, because an empty model would reach the provider as an
|
|
292
|
+
unresolvable identifier. Any malformed input (a non-mapping block, a
|
|
293
|
+
non-mapping entry) resolves to an empty overlay, so runtime extraction is
|
|
294
|
+
total; ``construct_app_config`` is the raising seam at load time.
|
|
295
|
+
"""
|
|
296
|
+
if not isinstance(agents_block, Mapping):
|
|
297
|
+
return {}
|
|
298
|
+
entry: Any = None
|
|
299
|
+
for key, value in agents_block.items():
|
|
300
|
+
if isinstance(key, str) and key.casefold() == persona.casefold():
|
|
301
|
+
entry = value
|
|
302
|
+
break
|
|
303
|
+
if not isinstance(entry, Mapping):
|
|
304
|
+
return {}
|
|
305
|
+
overlay = dict(entry)
|
|
306
|
+
model = overlay.get("model")
|
|
307
|
+
if isinstance(model, str) and not model.strip():
|
|
308
|
+
del overlay["model"]
|
|
309
|
+
return overlay
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
def resolve_effective_model(
|
|
313
|
+
override: Any, persona_model: Any, global_model: Any
|
|
314
|
+
) -> str:
|
|
315
|
+
"""Resolve the effective model by the slice precedence.
|
|
316
|
+
|
|
317
|
+
The explicit ``--model`` flag override wins, then the persona entry, then the
|
|
318
|
+
global ``llm.model``. A blank or non-string candidate is skipped so an empty
|
|
319
|
+
identifier never propagates to the provider. When every candidate is blank
|
|
320
|
+
the resolver returns an empty string.
|
|
321
|
+
"""
|
|
322
|
+
for candidate in (override, persona_model, global_model):
|
|
323
|
+
if isinstance(candidate, str) and candidate.strip():
|
|
324
|
+
return candidate
|
|
325
|
+
return ""
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def _validate_agents_block(merged: Mapping[str, Any]) -> None:
|
|
329
|
+
"""Reject an unusable ``agents`` block at load time.
|
|
330
|
+
|
|
331
|
+
A non-mapping block, a non-mapping persona entry, and two persona keys that
|
|
332
|
+
differ only in case each raise a ``ConfigurationError`` naming the offending
|
|
333
|
+
key. The duplicate case fails because case-insensitive matching would
|
|
334
|
+
otherwise make the winning entry depend on YAML key order.
|
|
335
|
+
"""
|
|
336
|
+
if _AGENTS_GROUP not in merged:
|
|
337
|
+
return
|
|
338
|
+
block = merged[_AGENTS_GROUP]
|
|
339
|
+
if block is None:
|
|
340
|
+
return
|
|
341
|
+
if not isinstance(block, Mapping):
|
|
342
|
+
raise ConfigurationError(
|
|
343
|
+
f"Configuration key '{_AGENTS_GROUP}' expected a mapping of persona "
|
|
344
|
+
f"names, got {block!r}."
|
|
345
|
+
)
|
|
346
|
+
seen: set[str] = set()
|
|
347
|
+
for persona, entry in block.items():
|
|
348
|
+
if not isinstance(persona, str):
|
|
349
|
+
raise ConfigurationError(
|
|
350
|
+
f"Configuration key '{_AGENTS_GROUP}' expected string persona "
|
|
351
|
+
f"names, got {persona!r}."
|
|
352
|
+
)
|
|
353
|
+
folded = persona.casefold()
|
|
354
|
+
if folded in seen:
|
|
355
|
+
raise ConfigurationError(
|
|
356
|
+
f"Configuration key '{_AGENTS_GROUP}' declares the persona "
|
|
357
|
+
f"{persona!r} more than once when ignoring case. Keep one spelling."
|
|
358
|
+
)
|
|
359
|
+
seen.add(folded)
|
|
360
|
+
if not isinstance(entry, Mapping):
|
|
361
|
+
raise ConfigurationError(
|
|
362
|
+
f"Configuration key '{_AGENTS_GROUP}.{persona}' expected a mapping "
|
|
363
|
+
f"of llm settings, got {entry!r}."
|
|
364
|
+
)
|
|
365
|
+
|
|
275
366
|
|
|
276
367
|
def is_declared_key(key: str) -> bool:
|
|
277
368
|
"""Report whether ``key`` is a schema-declared configuration key."""
|
|
@@ -338,6 +429,7 @@ def construct_app_config(merged: Mapping[str, Any]) -> AppConfig:
|
|
|
338
429
|
Undeclared top-level groups are ignored so future keys stay forward
|
|
339
430
|
compatible.
|
|
340
431
|
"""
|
|
432
|
+
_validate_agents_block(merged)
|
|
341
433
|
_log_unknown_keys(merged)
|
|
342
434
|
group_overrides: dict[str, dict[str, Any]] = {}
|
|
343
435
|
top_level_overrides: dict[str, Any] = {}
|
|
@@ -360,6 +452,7 @@ def construct_app_config(merged: Mapping[str, Any]) -> AppConfig:
|
|
|
360
452
|
context=ContextConfig(**group_overrides.get("context", {})),
|
|
361
453
|
research=ResearchConfig(**group_overrides.get("research", {})),
|
|
362
454
|
checks=ChecksConfig(**group_overrides.get("checks", {})),
|
|
455
|
+
update=UpdateConfig(**group_overrides.get("update", {})),
|
|
363
456
|
auto_pruning=AutoPruningConfig(**group_overrides.get("auto_pruning", {})),
|
|
364
457
|
guardrails=GuardrailsConfig(**group_overrides.get("guardrails", {})),
|
|
365
458
|
**top_level_overrides,
|
|
@@ -8,7 +8,7 @@ class IGetContextUseCase(Protocol):
|
|
|
8
8
|
This defines the contract for the primary entry point for gathering project context.
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
|
-
def get_context( # noqa: PLR0913 - inbound-port seam; additive
|
|
11
|
+
def get_context( # noqa: PLR0913 - inbound-port seam; additive keywords
|
|
12
12
|
self,
|
|
13
13
|
context_files: Optional[Dict[str, Sequence[str]]] = None,
|
|
14
14
|
include_tokens: bool = True,
|
|
@@ -18,6 +18,7 @@ class IGetContextUseCase(Protocol):
|
|
|
18
18
|
current_turn: Optional[str] = None,
|
|
19
19
|
system_prompt_tokens: int = 0,
|
|
20
20
|
session_root: Optional[str] = None,
|
|
21
|
+
model: Optional[str] = None,
|
|
21
22
|
) -> ProjectContext:
|
|
22
23
|
"""
|
|
23
24
|
Gathers all project context information.
|
|
@@ -28,6 +29,8 @@ class IGetContextUseCase(Protocol):
|
|
|
28
29
|
system_prompt_tokens: Token count of the system prompt (pre-computed).
|
|
29
30
|
session_root: Optional root of the rendering session, used to gate
|
|
30
31
|
session-history classification.
|
|
32
|
+
model: Optional effective model used for token counting. Omitted,
|
|
33
|
+
the provider's configured model is used.
|
|
31
34
|
|
|
32
35
|
Returns:
|
|
33
36
|
ProjectContext: A data object containing the aggregated context.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from abc import ABC, abstractmethod
|
|
2
|
-
from typing import Any, Dict, List, Optional
|
|
2
|
+
from typing import Any, Dict, List, Mapping, Optional
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class LlmApiError(Exception):
|
|
@@ -18,6 +18,7 @@ class ILlmClient(ABC):
|
|
|
18
18
|
self,
|
|
19
19
|
messages: List[Dict[str, str]],
|
|
20
20
|
model: Optional[str] = None,
|
|
21
|
+
llm_overrides: Optional[Mapping[str, Any]] = None,
|
|
21
22
|
**kwargs: Any,
|
|
22
23
|
) -> Any:
|
|
23
24
|
"""
|
|
@@ -26,6 +27,8 @@ class ILlmClient(ABC):
|
|
|
26
27
|
Args:
|
|
27
28
|
messages: A list of message dictionaries (role/content).
|
|
28
29
|
model: Optional identifier for the target model (overrides config).
|
|
30
|
+
llm_overrides: Optional per-persona overlay merged over the global
|
|
31
|
+
``llm`` block, with ``model`` still applied last.
|
|
29
32
|
**kwargs: Additional parameters for the LLM provider.
|
|
30
33
|
|
|
31
34
|
Returns:
|
|
@@ -55,6 +55,7 @@ class ContextService(IGetContextUseCase):
|
|
|
55
55
|
current_turn: Optional[str] = None,
|
|
56
56
|
system_prompt_tokens: int = 0,
|
|
57
57
|
session_root: Optional[str] = None,
|
|
58
|
+
model: Optional[str] = None,
|
|
58
59
|
) -> ProjectContext:
|
|
59
60
|
"""
|
|
60
61
|
Gathers all project context information by orchestrating its dependencies.
|
|
@@ -113,7 +114,7 @@ class ContextService(IGetContextUseCase):
|
|
|
113
114
|
repo_tree, scoped_paths, file_contents, git_status, session_root
|
|
114
115
|
)
|
|
115
116
|
content_tokens = (
|
|
116
|
-
self.
|
|
117
|
+
self._count_text_tokens(content, model) if include_tokens else 0
|
|
117
118
|
)
|
|
118
119
|
|
|
119
120
|
return ProjectContext(
|
|
@@ -122,7 +123,7 @@ class ContextService(IGetContextUseCase):
|
|
|
122
123
|
scoped_paths=scoped_paths,
|
|
123
124
|
git_status=git_status,
|
|
124
125
|
items=self._collect_items(
|
|
125
|
-
scoped_paths, file_contents, git_status, include_tokens
|
|
126
|
+
scoped_paths, file_contents, git_status, include_tokens, model
|
|
126
127
|
),
|
|
127
128
|
agent_name=agent_name,
|
|
128
129
|
total_window=total_window,
|
|
@@ -277,6 +278,7 @@ class ContextService(IGetContextUseCase):
|
|
|
277
278
|
file_contents: Dict[str, Optional[str]],
|
|
278
279
|
git_status: Optional[str],
|
|
279
280
|
include_tokens: bool,
|
|
281
|
+
model: Optional[str] = None,
|
|
280
282
|
) -> List[ContextItem]:
|
|
281
283
|
"""
|
|
282
284
|
Orchestrates the assembly of ContextItem metadata DTOs.
|
|
@@ -284,7 +286,7 @@ class ContextService(IGetContextUseCase):
|
|
|
284
286
|
"""
|
|
285
287
|
parsed_status = self._parse_git_status(git_status)
|
|
286
288
|
path_to_tokens = self._get_path_to_tokens(
|
|
287
|
-
scoped_paths, file_contents, include_tokens
|
|
289
|
+
scoped_paths, file_contents, include_tokens, model
|
|
288
290
|
)
|
|
289
291
|
|
|
290
292
|
# Deduplication map: path -> ContextItem
|
|
@@ -308,11 +310,23 @@ class ContextService(IGetContextUseCase):
|
|
|
308
310
|
|
|
309
311
|
return list(items_map.values())
|
|
310
312
|
|
|
313
|
+
def _count_text_tokens(self, text: str, model: Optional[str]) -> int:
|
|
314
|
+
"""Count tokens with the effective model, preserving the no-model shape.
|
|
315
|
+
|
|
316
|
+
A caller without an effective model issues the same single-argument call
|
|
317
|
+
as before, so existing call-argument assertions and side-effect fakes
|
|
318
|
+
that accept only the text stay valid.
|
|
319
|
+
"""
|
|
320
|
+
if model:
|
|
321
|
+
return self._llm_client.get_text_token_count(text, model=model)
|
|
322
|
+
return self._llm_client.get_text_token_count(text)
|
|
323
|
+
|
|
311
324
|
def _get_path_to_tokens(
|
|
312
325
|
self,
|
|
313
326
|
scoped_paths: Dict[str, List[str]],
|
|
314
327
|
file_contents: Dict[str, Optional[str]],
|
|
315
328
|
include_tokens: bool,
|
|
329
|
+
model: Optional[str] = None,
|
|
316
330
|
) -> Dict[str, int]:
|
|
317
331
|
"""Calculates token counts for all unique files in parallel."""
|
|
318
332
|
if not include_tokens:
|
|
@@ -326,7 +340,7 @@ class ContextService(IGetContextUseCase):
|
|
|
326
340
|
|
|
327
341
|
def get_count(path: str) -> tuple[str, int]:
|
|
328
342
|
content = file_contents.get(path) or ""
|
|
329
|
-
return path, self.
|
|
343
|
+
return path, self._count_text_tokens(content, model)
|
|
330
344
|
|
|
331
345
|
# Parallelize to handle large repositories without stalling the UI.
|
|
332
346
|
# We use a ThreadPoolExecutor as token counting is often offloaded or involves latency.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
from typing import Any, Dict, Optional, Sequence
|
|
3
3
|
from teddy_executor.core.domain.models import ProjectContext
|
|
4
|
+
from teddy_executor.core.domain.models.config_schema import (
|
|
5
|
+
resolve_agent_llm_overrides,
|
|
6
|
+
resolve_effective_model,
|
|
7
|
+
)
|
|
4
8
|
from teddy_executor.core.ports.inbound.planning_use_case import IPlanningUseCase
|
|
5
9
|
from teddy_executor.core.utils.interruptible_call import run_interruptible
|
|
6
10
|
|
|
@@ -60,10 +64,21 @@ class PlanningService(IPlanningUseCase):
|
|
|
60
64
|
|
|
61
65
|
system_prompt = self._prompt_manager.fetch_system_prompt(agent_name, turn_path)
|
|
62
66
|
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
# One resolution feeds both the effective model and the completion
|
|
68
|
+
# overlay, so the two can never disagree. An absent persona block yields
|
|
69
|
+
# an empty overlay, leaving the global ``llm`` path unchanged.
|
|
70
|
+
llm_overrides = resolve_agent_llm_overrides(
|
|
71
|
+
self._config_service.get_setting("agents", {}), agent_name
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# The explicit ``--model`` flag (carried as ``model_override``) wins,
|
|
75
|
+
# then the persona entry, then the global default. The carried ``model``
|
|
76
|
+
# key is display data only and never a resolution input, so a persona
|
|
77
|
+
# switched on resume re-resolves every turn.
|
|
78
|
+
model = resolve_effective_model(
|
|
79
|
+
meta.get("model_override"),
|
|
80
|
+
llm_overrides.get("model"),
|
|
81
|
+
self._config_service.get_setting("llm.model"),
|
|
67
82
|
)
|
|
68
83
|
try:
|
|
69
84
|
system_token_count = self._llm_client.get_text_token_count(
|
|
@@ -80,6 +95,7 @@ class PlanningService(IPlanningUseCase):
|
|
|
80
95
|
system_prompt_tokens=system_token_count,
|
|
81
96
|
cache_dir=session_root,
|
|
82
97
|
session_root=session_root,
|
|
98
|
+
model=model,
|
|
83
99
|
)
|
|
84
100
|
|
|
85
101
|
# Context is purely project state (including initial_request.md via session.context).
|
|
@@ -97,7 +113,7 @@ class PlanningService(IPlanningUseCase):
|
|
|
97
113
|
)
|
|
98
114
|
|
|
99
115
|
response, token_count, plan_content, turn_cost = run_interruptible(
|
|
100
|
-
lambda: self._run_planning_phase(messages, model, meta)
|
|
116
|
+
lambda: self._run_planning_phase(messages, model, meta, llm_overrides)
|
|
101
117
|
)
|
|
102
118
|
|
|
103
119
|
# Persist the explicit recorded-cost signal (Option B): a real price was
|
|
@@ -126,6 +142,7 @@ class PlanningService(IPlanningUseCase):
|
|
|
126
142
|
messages: list[Dict[str, str]],
|
|
127
143
|
model: str,
|
|
128
144
|
meta: Dict[str, Any],
|
|
145
|
+
llm_overrides: Optional[Dict[str, Any]] = None,
|
|
129
146
|
) -> tuple[Any, int, str, float]:
|
|
130
147
|
"""Perform every blocking planning call on the interruptible worker.
|
|
131
148
|
|
|
@@ -140,17 +157,20 @@ class PlanningService(IPlanningUseCase):
|
|
|
140
157
|
self._llm_client.get_context_window(model=model)
|
|
141
158
|
|
|
142
159
|
token_count = int(
|
|
143
|
-
self._safe_float(
|
|
160
|
+
self._safe_float(
|
|
161
|
+
self._llm_client.get_token_count(messages=messages, model=model)
|
|
162
|
+
)
|
|
144
163
|
)
|
|
145
164
|
|
|
146
165
|
if self._user_interactor:
|
|
147
|
-
self._display_telemetry(meta, token_count)
|
|
166
|
+
self._display_telemetry(meta, token_count, model)
|
|
148
167
|
|
|
149
168
|
self._check_context_budget(token_count, model)
|
|
150
169
|
|
|
151
170
|
response, plan_content, turn_cost = self._perform_generation_with_retry(
|
|
152
171
|
messages,
|
|
153
172
|
model=model,
|
|
173
|
+
llm_overrides=llm_overrides,
|
|
154
174
|
)
|
|
155
175
|
return response, token_count, plan_content, turn_cost
|
|
156
176
|
|
|
@@ -158,6 +178,7 @@ class PlanningService(IPlanningUseCase):
|
|
|
158
178
|
self,
|
|
159
179
|
messages: list[Dict[str, str]],
|
|
160
180
|
model: str,
|
|
181
|
+
llm_overrides: Optional[Dict[str, Any]] = None,
|
|
161
182
|
) -> tuple[Any, str, float]:
|
|
162
183
|
"""Implements retry loop for empty LLM content."""
|
|
163
184
|
max_retries_val = self._config_service.get_setting("llm.max_retries")
|
|
@@ -167,7 +188,13 @@ class PlanningService(IPlanningUseCase):
|
|
|
167
188
|
turn_cost = 0.0
|
|
168
189
|
|
|
169
190
|
for attempt in range(max_retries):
|
|
170
|
-
|
|
191
|
+
# The overlay key is added only when the persona configures one, so a
|
|
192
|
+
# project without an ``agents`` block issues the same call shape as
|
|
193
|
+
# before this feature existed.
|
|
194
|
+
completion_kwargs: Dict[str, Any] = {"messages": messages, "model": model}
|
|
195
|
+
if llm_overrides:
|
|
196
|
+
completion_kwargs["llm_overrides"] = llm_overrides
|
|
197
|
+
response = self._llm_client.get_completion(**completion_kwargs)
|
|
171
198
|
plan_content = self._extract_plan_content(response)
|
|
172
199
|
attempt_cost = self._llm_client.get_completion_cost(
|
|
173
200
|
response, model_override=model
|
|
@@ -184,17 +211,14 @@ class PlanningService(IPlanningUseCase):
|
|
|
184
211
|
|
|
185
212
|
return response, plan_content, turn_cost
|
|
186
213
|
|
|
187
|
-
# Class-level cache to ensure remote preflight is performed exactly once per process.
|
|
188
|
-
# This eliminates the 10s timeout lag on subsequent turns in a session.
|
|
189
|
-
_PREFLIGHT_DONE = False
|
|
190
|
-
|
|
191
|
-
@classmethod
|
|
192
|
-
def reset_preflight(cls) -> None:
|
|
193
|
-
"""Resets the preflight cache (used primarily for testing)."""
|
|
194
|
-
cls._PREFLIGHT_DONE = False
|
|
195
|
-
|
|
196
214
|
def _run_preflight_check(self) -> None:
|
|
197
|
-
"""Ensures system is configured before attempting generation.
|
|
215
|
+
"""Ensures system is configured before attempting generation.
|
|
216
|
+
|
|
217
|
+
Validation runs on every turn, so a persona switched mid-session is
|
|
218
|
+
always checked against the active configuration. There is deliberately
|
|
219
|
+
no process-wide preflight cache: a cache keyed on nothing would only
|
|
220
|
+
suppress re-validating a different persona, and the local check is cheap.
|
|
221
|
+
"""
|
|
198
222
|
from teddy_executor.core.domain.models.exceptions import ConfigurationError
|
|
199
223
|
|
|
200
224
|
# Perform local validation only. Remote connectivity is checked lazily
|
|
@@ -202,12 +226,9 @@ class PlanningService(IPlanningUseCase):
|
|
|
202
226
|
# and eliminates redundant remote lag for sessions.
|
|
203
227
|
errors = self._llm_client.validate_config(include_remote=False)
|
|
204
228
|
|
|
205
|
-
if
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
error_msg = f"Configuration Error: {', '.join(errors)}"
|
|
210
|
-
raise ConfigurationError(error_msg)
|
|
229
|
+
if errors:
|
|
230
|
+
error_msg = f"Configuration Error: {', '.join(errors)}"
|
|
231
|
+
raise ConfigurationError(error_msg)
|
|
211
232
|
|
|
212
233
|
def _extract_plan_content(self, response: Any) -> str:
|
|
213
234
|
"""Robustly extracts content from the LLM response object."""
|
|
@@ -215,11 +236,23 @@ class PlanningService(IPlanningUseCase):
|
|
|
215
236
|
return getattr(response.choices[0].message, "content", "") or ""
|
|
216
237
|
return ""
|
|
217
238
|
|
|
218
|
-
def _display_telemetry(
|
|
219
|
-
|
|
239
|
+
def _display_telemetry(
|
|
240
|
+
self,
|
|
241
|
+
meta: Dict[str, Any],
|
|
242
|
+
token_count: int,
|
|
243
|
+
effective_model: Optional[str] = None,
|
|
244
|
+
) -> None:
|
|
245
|
+
"""Displays real-time telemetry about the upcoming LLM call.
|
|
246
|
+
|
|
247
|
+
The served ``actual_model`` wins for an already-answered turn, then the
|
|
248
|
+
carried ``model`` (display data), then the freshly resolved effective
|
|
249
|
+
model. The ordering keeps a fresh turn's banner on the effective model
|
|
250
|
+
without disturbing an existing display value.
|
|
251
|
+
"""
|
|
220
252
|
model = str(
|
|
221
253
|
meta.get("actual_model")
|
|
222
254
|
or meta.get("model")
|
|
255
|
+
or effective_model
|
|
223
256
|
or self._config_service.get_setting("llm.model")
|
|
224
257
|
or "unknown"
|
|
225
258
|
)
|
|
@@ -4,6 +4,10 @@ from dataclasses import is_dataclass, replace
|
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from typing import Any, Optional, cast
|
|
6
6
|
|
|
7
|
+
from teddy_executor.core.domain.models.config_schema import (
|
|
8
|
+
resolve_agent_llm_overrides,
|
|
9
|
+
resolve_effective_model,
|
|
10
|
+
)
|
|
7
11
|
from teddy_executor.core.domain.models.execution_report import (
|
|
8
12
|
ExecutionReport,
|
|
9
13
|
)
|
|
@@ -453,7 +457,21 @@ class SessionOrchestrator(IRunPlanUseCase):
|
|
|
453
457
|
else "Unknown"
|
|
454
458
|
)
|
|
455
459
|
)
|
|
456
|
-
|
|
460
|
+
# Resolve the effective model exactly as the planner does: the turn's
|
|
461
|
+
# explicit ``model_override``, then the persona entry, then ``llm.model``.
|
|
462
|
+
# The carried ``model`` key is display data and never a resolution input.
|
|
463
|
+
turn_dir = str(Path(plan_path).parent)
|
|
464
|
+
turn_meta = self._session_service.load_turn_meta(turn_dir)
|
|
465
|
+
llm_overrides = resolve_agent_llm_overrides(
|
|
466
|
+
self._config_service.get_setting("agents", {}), agent_name
|
|
467
|
+
)
|
|
468
|
+
model = resolve_effective_model(
|
|
469
|
+
turn_meta.get("model_override"),
|
|
470
|
+
llm_overrides.get("model"),
|
|
471
|
+
self._config_service.get_setting("llm.model"),
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
total_window = self._llm_client.get_context_window(model=model)
|
|
457
475
|
|
|
458
476
|
cache_dir = str(Path(plan_path).parent.parent)
|
|
459
477
|
# Compute system prompt token count BEFORE context construction so the
|
|
@@ -461,7 +479,6 @@ class SessionOrchestrator(IRunPlanUseCase):
|
|
|
461
479
|
system_prompt = self._prompt_manager.fetch_system_prompt(
|
|
462
480
|
agent_name, Path(plan_path).parent
|
|
463
481
|
)
|
|
464
|
-
model = str(self._config_service.get_setting("llm.model") or "")
|
|
465
482
|
try:
|
|
466
483
|
system_token_count = self._llm_client.get_text_token_count(
|
|
467
484
|
system_prompt, model=model
|
|
@@ -476,6 +493,7 @@ class SessionOrchestrator(IRunPlanUseCase):
|
|
|
476
493
|
cache_dir=cache_dir,
|
|
477
494
|
system_prompt_tokens=system_token_count,
|
|
478
495
|
session_root=cache_dir,
|
|
496
|
+
model=model,
|
|
479
497
|
)
|
|
480
498
|
|
|
481
499
|
if is_dataclass(project_context) and agent_name != getattr(
|
|
@@ -137,6 +137,9 @@ class SessionService(ISessionManager):
|
|
|
137
137
|
}
|
|
138
138
|
if options.model:
|
|
139
139
|
meta_data["model"] = options.model
|
|
140
|
+
# The explicit flag is the only resolution input; ``model`` records
|
|
141
|
+
# the per-turn effective value for display.
|
|
142
|
+
meta_data["model_override"] = options.model
|
|
140
143
|
return meta_data
|
|
141
144
|
|
|
142
145
|
def _resolve_agent_prompt(self, agent_name: str) -> tuple[str, str]:
|
|
@@ -484,7 +487,7 @@ class SessionService(ISessionManager):
|
|
|
484
487
|
}
|
|
485
488
|
|
|
486
489
|
# Carry over LLM overrides and actual_model for display continuity
|
|
487
|
-
for key in ["model", "actual_model", "provider"]:
|
|
490
|
+
for key in ["model", "model_override", "actual_model", "provider"]:
|
|
488
491
|
if key in current_meta:
|
|
489
492
|
meta[key] = current_meta[key]
|
|
490
493
|
|
|
@@ -8,6 +8,7 @@ functions use stdlib only (plus the
|
|
|
8
8
|
|
|
9
9
|
from __future__ import annotations
|
|
10
10
|
|
|
11
|
+
import logging
|
|
11
12
|
from pathlib import Path
|
|
12
13
|
from typing import TYPE_CHECKING, Optional
|
|
13
14
|
|
|
@@ -16,6 +17,8 @@ from packaging.version import Version
|
|
|
16
17
|
if TYPE_CHECKING:
|
|
17
18
|
import ssl
|
|
18
19
|
|
|
20
|
+
logger = logging.getLogger(__name__)
|
|
21
|
+
|
|
19
22
|
# --- Constants ---
|
|
20
23
|
|
|
21
24
|
PYPI_URL = "https://pypi.org/pypi/teddy-cli/json"
|
|
@@ -54,6 +57,18 @@ def _create_ssl_context() -> ssl.SSLContext:
|
|
|
54
57
|
# --- Public API ---
|
|
55
58
|
|
|
56
59
|
|
|
60
|
+
def resolve_index_url(configured: Optional[str]) -> str:
|
|
61
|
+
"""Resolve the configured update source, falling back to the official endpoint.
|
|
62
|
+
|
|
63
|
+
``None``, an empty string, or a whitespace-only value means "unset", so the
|
|
64
|
+
official ``PYPI_URL`` is returned. Any other value is stripped of
|
|
65
|
+
surrounding whitespace, because a stray space would otherwise make
|
|
66
|
+
``urllib`` fail with no visible cause.
|
|
67
|
+
"""
|
|
68
|
+
stripped = (configured or "").strip()
|
|
69
|
+
return stripped or PYPI_URL
|
|
70
|
+
|
|
71
|
+
|
|
57
72
|
def get_current_version() -> str:
|
|
58
73
|
"""
|
|
59
74
|
Read installed version from importlib.metadata.
|
|
@@ -118,9 +133,6 @@ def fetch_latest_version(
|
|
|
118
133
|
highest = max(valid_versions)
|
|
119
134
|
return str(highest)
|
|
120
135
|
except (urllib.error.URLError, OSError, json.JSONDecodeError, KeyError) as e:
|
|
121
|
-
import logging
|
|
122
|
-
|
|
123
|
-
logger = logging.getLogger(__name__)
|
|
124
136
|
logger.debug("fetch_latest_version failed: %s", e)
|
|
125
137
|
return None
|
|
126
138
|
|
|
@@ -196,9 +208,6 @@ def write_update_cache(cache_path: Path, latest_version: str) -> None:
|
|
|
196
208
|
)
|
|
197
209
|
tmp_path.rename(cache_path)
|
|
198
210
|
except OSError as e:
|
|
199
|
-
import logging
|
|
200
|
-
|
|
201
|
-
logger = logging.getLogger(__name__)
|
|
202
211
|
logger.debug("Failed to write update cache: %s", e)
|
|
203
212
|
if tmp_path.exists():
|
|
204
213
|
tmp_path.unlink()
|
|
@@ -211,12 +220,9 @@ def background_check(cache_path: Path, index_url: str = PYPI_URL) -> None:
|
|
|
211
220
|
and writes it to cache. Every error is swallowed and logged at debug
|
|
212
221
|
level, so a late cache write can never fail the owning process.
|
|
213
222
|
"""
|
|
214
|
-
import logging
|
|
215
|
-
|
|
216
223
|
try:
|
|
217
224
|
latest = fetch_latest_version(index_url)
|
|
218
225
|
if latest is not None:
|
|
219
226
|
write_update_cache(cache_path, latest)
|
|
220
227
|
except Exception as e:
|
|
221
|
-
logger = logging.getLogger(__name__)
|
|
222
228
|
logger.debug("background_check failed: %s", e)
|
|
@@ -32,6 +32,9 @@ checks:
|
|
|
32
32
|
templates: true # Warn when local docs/templates/ differ from bundled defaults.
|
|
33
33
|
update: true # Warn when a newer TeDDy release is available on PyPI.
|
|
34
34
|
|
|
35
|
+
# update:
|
|
36
|
+
# index_url: "" # Override the PyPI JSON endpoint for the update check (a fork's index or a static version.json); empty uses official PyPI.
|
|
37
|
+
|
|
35
38
|
yolo_default: false # When true, skips the plan review by default; overridden per-command by -n / --no-yolo.
|
|
36
39
|
|
|
37
40
|
guardrails: # Limits for yolo runs (--yolo) and pipeline runs. Counters reset on 'teddy resume' and on message turns if message_reset: true.
|
|
@@ -71,3 +74,15 @@ llm:
|
|
|
71
74
|
# model: "openai/qwen3-coder-30b"
|
|
72
75
|
# api_base: "http://localhost:8080/v1"
|
|
73
76
|
# api_key: "dummy-key-custom-endpoints"
|
|
77
|
+
|
|
78
|
+
# Per-persona LLM overrides (optional). Each entry layers over the global `llm`
|
|
79
|
+
# block for that agent: the model resolves from --model, then agents.<persona>.model,
|
|
80
|
+
# then llm.model, and any key the persona omits still falls back to the global block.
|
|
81
|
+
# Matching is case-insensitive. --model replaces only the model key. The merge is
|
|
82
|
+
# one level deep, so a mapping-valued key such as extra_headers replaces the global
|
|
83
|
+
# value wholesale.
|
|
84
|
+
# agents:
|
|
85
|
+
# architect:
|
|
86
|
+
# model: "anthropic/claude-sonnet-4-5"
|
|
87
|
+
# pathfinder:
|
|
88
|
+
# model: "openrouter/~deepseek/deepseek-flash-latest"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|