devflow-toolkit 0.4.6__py3-none-any.whl → 0.4.7__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.
- devflow/commands/spec.py +47 -2
- {devflow_toolkit-0.4.6.dist-info → devflow_toolkit-0.4.7.dist-info}/METADATA +7 -7
- {devflow_toolkit-0.4.6.dist-info → devflow_toolkit-0.4.7.dist-info}/RECORD +6 -6
- {devflow_toolkit-0.4.6.dist-info → devflow_toolkit-0.4.7.dist-info}/WHEEL +0 -0
- {devflow_toolkit-0.4.6.dist-info → devflow_toolkit-0.4.7.dist-info}/entry_points.txt +0 -0
- {devflow_toolkit-0.4.6.dist-info → devflow_toolkit-0.4.7.dist-info}/licenses/LICENSE +0 -0
devflow/commands/spec.py
CHANGED
|
@@ -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,
|
|
@@ -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.
|
|
@@ -20,7 +20,7 @@ devflow/commands/init.py,sha256=emQJyedhAwBM6Oa1GQ2nRm2KPzI6fIXEo7-0mE0M8Fs,1805
|
|
|
20
20
|
devflow/commands/recover.py,sha256=-kv_aF4vFg-yZK1ZymvLC42E-Pb02xGxa6WZXDUI_T8,2209
|
|
21
21
|
devflow/commands/reopen.py,sha256=4W1ZfP9TgrhZmq1hEaykcuhAbRqEjSDSU0hQZew7shg,3989
|
|
22
22
|
devflow/commands/security.py,sha256=poChADeczuFHrkqrh8JsxwqcS7Udxfiaaz64yA_x_CA,2088
|
|
23
|
-
devflow/commands/spec.py,sha256=
|
|
23
|
+
devflow/commands/spec.py,sha256=hvGakEHIuxr3bJhy0otFYhZ9vgBw1JELVPuADQBOX2Y,20761
|
|
24
24
|
devflow/commands/status.py,sha256=we8u5E97Q5SMDa5P_92xrKJ2NswEQkyJ-o47oTApdrQ,8671
|
|
25
25
|
devflow/core/__init__.py,sha256=hN7i4-PDaZ7y4P8qRpZl_lJvIiPyQaN1TDGnw2BecYU,427
|
|
26
26
|
devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,13692
|
|
@@ -72,8 +72,8 @@ devflow/prompts/__init__.py,sha256=RyHq9Xlu2pxyAQt_zaqU_PXE-UC9eLS8n_yE3D1TL50,2
|
|
|
72
72
|
devflow/prompts/discovery-repair.md,sha256=hpw8pFaUC8OiHK_KTI2nMF45f77CqcFuDYzn9o6X5ao,1240
|
|
73
73
|
devflow/prompts/discovery.md,sha256=XExohXAYCbNo6cpCg_yEd0KqRBVtSdvyC6Ci-jo310Y,11397
|
|
74
74
|
devflow/prompts/spec.md,sha256=g-E7-RtB2DBEHToOOt2ioRxSGo0DMlsJxgnC1Ok7o1Q,7461
|
|
75
|
-
devflow_toolkit-0.4.
|
|
76
|
-
devflow_toolkit-0.4.
|
|
77
|
-
devflow_toolkit-0.4.
|
|
78
|
-
devflow_toolkit-0.4.
|
|
79
|
-
devflow_toolkit-0.4.
|
|
75
|
+
devflow_toolkit-0.4.7.dist-info/METADATA,sha256=e0SGh3lVodaRcoyPYtbJCuiTcH_cMuu-01tqjoTDYcA,65327
|
|
76
|
+
devflow_toolkit-0.4.7.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
77
|
+
devflow_toolkit-0.4.7.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
|
|
78
|
+
devflow_toolkit-0.4.7.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
|
|
79
|
+
devflow_toolkit-0.4.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|