devflow-toolkit 0.4.6__tar.gz → 0.4.7__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.
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/CHANGELOG.md +16 -1
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/PKG-INFO +7 -7
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/README.md +1 -1
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/docs/REFERENCE.md +6 -6
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/pyproject.toml +1 -1
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/spec.py +47 -2
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_security_fixes.py +39 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/.gitignore +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/LICENSE +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/docs/PRESENTATION.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/docs/PUBLISHING.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/antigravity.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/codex.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/cli.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/approve.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/config.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/reopen.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/security.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/commands/status.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/config.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/discovery.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/file_types.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/model_tiers.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/safe_files.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/security_baseline.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/security_tools.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/sessions.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/spec_workflow.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/specification.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/signing.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/hooks/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/hooks/claude_guard.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/prompts/__init__.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/prompts/discovery-repair.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/prompts/discovery.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/prompts/spec.md +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/conftest.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_cli.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_discovery.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_discovery_decisions.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_harness_adapters.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_security_baseline.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_security_tools.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_spec_workflow.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_state.py +0 -0
- {devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to DevFlow Toolkit are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.4.7 - 2026-11-30
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- The configured model is only used with the harness it belongs to.
|
|
10
|
+
Choosing another harness in `devflow spec` (for example Codex after
|
|
11
|
+
configuring OpenCode with `anthropic/claude-haiku-4-5`) no longer sends
|
|
12
|
+
that model id to it: in a terminal DevFlow asks for a model of the new
|
|
13
|
+
harness, otherwise it uses the harness default and warns. `--model`
|
|
14
|
+
still sets the model for one run.
|
|
15
|
+
|
|
16
|
+
### Package
|
|
17
|
+
|
|
18
|
+
- Package version is `0.4.7`.
|
|
19
|
+
|
|
5
20
|
## 0.4.6 - 2026-11-30
|
|
6
21
|
|
|
7
22
|
### Added
|
|
@@ -44,7 +59,7 @@ All notable changes to DevFlow Toolkit are documented in this file.
|
|
|
44
59
|
|
|
45
60
|
### Package
|
|
46
61
|
|
|
47
|
-
- Package version is `0.4.6
|
|
62
|
+
- Package version is `0.4.6`, published on TestPyPI and PyPI.
|
|
48
63
|
|
|
49
64
|
## 0.4.5 - 2026-11-30
|
|
50
65
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.7
|
|
4
4
|
Summary: Specification workflow toolkit for AI-assisted software changes
|
|
5
5
|
Author: DevFlow contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -32,7 +32,7 @@ Description-Content-Type: text/markdown
|
|
|
32
32
|
|
|
33
33
|
# DevFlow Toolkit
|
|
34
34
|
|
|
35
|
-
**Current version: `0.4.
|
|
35
|
+
**Current version: `0.4.7`.**
|
|
36
36
|
|
|
37
37
|
Before any code is written, you and the AI agree on what will be built
|
|
38
38
|
and approve it as a spec. The agent then implements once, on something
|
|
@@ -210,7 +210,7 @@ pip install devflow-toolkit
|
|
|
210
210
|
To install a specific built artifact instead:
|
|
211
211
|
|
|
212
212
|
```bash
|
|
213
|
-
pip install devflow_toolkit-0.4.
|
|
213
|
+
pip install devflow_toolkit-0.4.7-py3-none-any.whl
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
Verify the installation:
|
|
@@ -527,7 +527,7 @@ as an architectural constraint when it is present.
|
|
|
527
527
|
|
|
528
528
|
### Harnesses
|
|
529
529
|
|
|
530
|
-
| Harness | Status in 0.4.
|
|
530
|
+
| Harness | Status in 0.4.7 |
|
|
531
531
|
| --- | --- |
|
|
532
532
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
533
533
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -984,7 +984,7 @@ reference.
|
|
|
984
984
|
8. If artifacts exist without workflow state, diagnose with
|
|
985
985
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
986
986
|
|
|
987
|
-
Available commands in `0.4.
|
|
987
|
+
Available commands in `0.4.7`:
|
|
988
988
|
|
|
989
989
|
| Command | Status |
|
|
990
990
|
| --- | --- |
|
|
@@ -1275,7 +1275,7 @@ devflow approve 001
|
|
|
1275
1275
|
```
|
|
1276
1276
|
|
|
1277
1277
|
Approval is explicit and binds the decision to the current artifact
|
|
1278
|
-
digests. For a `0.4.
|
|
1278
|
+
digests. For a `0.4.7` change it binds `spec.md`, `discovery.yaml` and,
|
|
1279
1279
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1280
1280
|
same approval is a no-op. If an artifact changes after validation,
|
|
1281
1281
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1295,7 +1295,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1295
1295
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1296
1296
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1297
1297
|
|
|
1298
|
-
Only the `spec` stage is available in `0.4.
|
|
1298
|
+
Only the `spec` stage is available in `0.4.7`, so `--stage` is optional
|
|
1299
1299
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1300
1300
|
rejected. There are no `plan`, `implement` or
|
|
1301
1301
|
`review` commands in this release.
|
|
@@ -32,7 +32,7 @@ tokens, which cost several times more than input tokens.
|
|
|
32
32
|
The goal is not to generate code faster, but to decide better before
|
|
33
33
|
generating it. Thinking is cheap; redoing code is expensive.
|
|
34
34
|
|
|
35
|
-
Current version: `0.4.
|
|
35
|
+
Current version: `0.4.7` · Python 3.11+ · Linux and macOS
|
|
36
36
|
|
|
37
37
|
## Install
|
|
38
38
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DevFlow Toolkit
|
|
2
2
|
|
|
3
|
-
**Current version: `0.4.
|
|
3
|
+
**Current version: `0.4.7`.**
|
|
4
4
|
|
|
5
5
|
Before any code is written, you and the AI agree on what will be built
|
|
6
6
|
and approve it as a spec. The agent then implements once, on something
|
|
@@ -178,7 +178,7 @@ pip install devflow-toolkit
|
|
|
178
178
|
To install a specific built artifact instead:
|
|
179
179
|
|
|
180
180
|
```bash
|
|
181
|
-
pip install devflow_toolkit-0.4.
|
|
181
|
+
pip install devflow_toolkit-0.4.7-py3-none-any.whl
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
Verify the installation:
|
|
@@ -495,7 +495,7 @@ as an architectural constraint when it is present.
|
|
|
495
495
|
|
|
496
496
|
### Harnesses
|
|
497
497
|
|
|
498
|
-
| Harness | Status in 0.4.
|
|
498
|
+
| Harness | Status in 0.4.7 |
|
|
499
499
|
| --- | --- |
|
|
500
500
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
501
501
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -952,7 +952,7 @@ reference.
|
|
|
952
952
|
8. If artifacts exist without workflow state, diagnose with
|
|
953
953
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
954
954
|
|
|
955
|
-
Available commands in `0.4.
|
|
955
|
+
Available commands in `0.4.7`:
|
|
956
956
|
|
|
957
957
|
| Command | Status |
|
|
958
958
|
| --- | --- |
|
|
@@ -1243,7 +1243,7 @@ devflow approve 001
|
|
|
1243
1243
|
```
|
|
1244
1244
|
|
|
1245
1245
|
Approval is explicit and binds the decision to the current artifact
|
|
1246
|
-
digests. For a `0.4.
|
|
1246
|
+
digests. For a `0.4.7` change it binds `spec.md`, `discovery.yaml` and,
|
|
1247
1247
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1248
1248
|
same approval is a no-op. If an artifact changes after validation,
|
|
1249
1249
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1263,7 +1263,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1263
1263
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1264
1264
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1265
1265
|
|
|
1266
|
-
Only the `spec` stage is available in `0.4.
|
|
1266
|
+
Only the `spec` stage is available in `0.4.7`, so `--stage` is optional
|
|
1267
1267
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1268
1268
|
rejected. There are no `plan`, `implement` or
|
|
1269
1269
|
`review` commands in this release.
|
|
@@ -15,6 +15,7 @@ from devflow.adapters.base import execute_invocation
|
|
|
15
15
|
from devflow.commands.harness import (
|
|
16
16
|
adapter_for,
|
|
17
17
|
print_setup_result,
|
|
18
|
+
prompt_for_model,
|
|
18
19
|
resolve_harness,
|
|
19
20
|
validate_harness_name,
|
|
20
21
|
)
|
|
@@ -252,8 +253,6 @@ def _create_specification(
|
|
|
252
253
|
config = ConfigManager(root).set_documentation_language(
|
|
253
254
|
documentation_language
|
|
254
255
|
)
|
|
255
|
-
effective_model = (model or config.model or "").strip() or None
|
|
256
|
-
|
|
257
256
|
allow_prompt = sys.stdin.isatty()
|
|
258
257
|
selected_harness, selection_warnings = resolve_harness(
|
|
259
258
|
requested_harness,
|
|
@@ -262,6 +261,14 @@ def _create_specification(
|
|
|
262
261
|
force_prompt=not explicit_harness,
|
|
263
262
|
)
|
|
264
263
|
adapter = adapter_for(selected_harness) if selected_harness else None
|
|
264
|
+
effective_model = _model_for_run(
|
|
265
|
+
model,
|
|
266
|
+
config,
|
|
267
|
+
selected_harness,
|
|
268
|
+
adapter,
|
|
269
|
+
allow_prompt=allow_prompt,
|
|
270
|
+
warnings=selection_warnings,
|
|
271
|
+
)
|
|
265
272
|
if adapter is not None:
|
|
266
273
|
config = _confirm_source_changes(
|
|
267
274
|
config,
|
|
@@ -555,6 +562,44 @@ def _execution_mode(mode: str) -> tuple[str, list[str]]:
|
|
|
555
562
|
return normalized, warnings
|
|
556
563
|
|
|
557
564
|
|
|
565
|
+
def _model_for_run(
|
|
566
|
+
model: str | None,
|
|
567
|
+
config: DevFlowConfig,
|
|
568
|
+
harness: str | None,
|
|
569
|
+
adapter,
|
|
570
|
+
*,
|
|
571
|
+
allow_prompt: bool,
|
|
572
|
+
warnings: list[str],
|
|
573
|
+
) -> str | None:
|
|
574
|
+
"""Return the model for this run.
|
|
575
|
+
|
|
576
|
+
The configured model belongs to the configured harness: model ids are
|
|
577
|
+
harness-specific, so another harness never receives it. When the run
|
|
578
|
+
uses a different harness, the user picks its model or its default is
|
|
579
|
+
used.
|
|
580
|
+
"""
|
|
581
|
+
explicit = (model or "").strip()
|
|
582
|
+
if explicit:
|
|
583
|
+
return explicit
|
|
584
|
+
configured = config.model.strip()
|
|
585
|
+
if not configured or harness == config.agent_harness:
|
|
586
|
+
return configured or None
|
|
587
|
+
if adapter is not None and allow_prompt:
|
|
588
|
+
console.print(
|
|
589
|
+
f"The configured model {escape(configured)} belongs to "
|
|
590
|
+
f"{escape(config.agent_harness)}; choose one for "
|
|
591
|
+
f"{escape(adapter.display_name)}."
|
|
592
|
+
)
|
|
593
|
+
return prompt_for_model(adapter)
|
|
594
|
+
warnings.append(
|
|
595
|
+
f"The configured model '{configured}' belongs to "
|
|
596
|
+
f"{config.agent_harness}, so {harness} uses its default model. Pass "
|
|
597
|
+
"--model to choose one, or run 'devflow harness use "
|
|
598
|
+
f"{harness}' to make it the configured harness."
|
|
599
|
+
)
|
|
600
|
+
return None
|
|
601
|
+
|
|
602
|
+
|
|
558
603
|
def _confirm_source_changes(
|
|
559
604
|
config: DevFlowConfig,
|
|
560
605
|
harness_name: str,
|
|
@@ -899,3 +899,42 @@ def test_request_naming_a_module_skips_the_location_question(
|
|
|
899
899
|
change = next((tmp_path / ".devflow" / "specs").iterdir())
|
|
900
900
|
data = yaml.safe_load((change / "discovery.yaml").read_text())
|
|
901
901
|
assert all(q["category"] != "code_location" for q in data["questions"])
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
def test_configured_model_is_not_sent_to_another_harness(
|
|
905
|
+
tmp_path: Path,
|
|
906
|
+
monkeypatch: pytest.MonkeyPatch,
|
|
907
|
+
) -> None:
|
|
908
|
+
_project(tmp_path)
|
|
909
|
+
path = tmp_path / ".devflow" / "config.yaml"
|
|
910
|
+
data = yaml.safe_load(path.read_text(encoding="utf-8"))
|
|
911
|
+
data["agent"]["harness"] = "opencode"
|
|
912
|
+
data["agent"]["model"] = "anthropic/claude-haiku-4-5"
|
|
913
|
+
path.write_text(yaml.safe_dump(data), encoding="utf-8")
|
|
914
|
+
invocations = _record_invocations(monkeypatch)
|
|
915
|
+
|
|
916
|
+
result = runner.invoke(
|
|
917
|
+
app,
|
|
918
|
+
["spec", "Add a health endpoint", str(tmp_path), "--harness", "codex",
|
|
919
|
+
"--mode", "non-interactive"],
|
|
920
|
+
)
|
|
921
|
+
|
|
922
|
+
assert result.exit_code == 0, result.output
|
|
923
|
+
assert "anthropic/claude-haiku-4-5" not in invocations[0].argv
|
|
924
|
+
assert "belongs to opencode" in " ".join(result.output.split())
|
|
925
|
+
|
|
926
|
+
explicit = runner.invoke(
|
|
927
|
+
app,
|
|
928
|
+
["spec", "Add a ping endpoint", str(tmp_path), "--harness", "codex",
|
|
929
|
+
"--mode", "non-interactive", "--model", "gpt-5-codex"],
|
|
930
|
+
)
|
|
931
|
+
assert explicit.exit_code == 0, explicit.output
|
|
932
|
+
assert "gpt-5-codex" in invocations[-1].argv
|
|
933
|
+
|
|
934
|
+
same = runner.invoke(
|
|
935
|
+
app,
|
|
936
|
+
["spec", "Add a pong endpoint", str(tmp_path), "--harness", "opencode",
|
|
937
|
+
"--mode", "non-interactive"],
|
|
938
|
+
)
|
|
939
|
+
assert same.exit_code == 0, same.output
|
|
940
|
+
assert "anthropic/claude-haiku-4-5" in invocations[-1].argv
|
|
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
|
|
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
|
{devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/django-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.4.6 → devflow_toolkit-0.4.7}/src/devflow/profiles/fastapi-backend/profile.yaml
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
|