devflow-toolkit 0.3.19__py3-none-any.whl → 0.3.20__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 +0 -1
- devflow/core/spec_workflow.py +8 -1
- devflow/prompts/__init__.py +7 -2
- {devflow_toolkit-0.3.19.dist-info → devflow_toolkit-0.3.20.dist-info}/METADATA +31 -13
- {devflow_toolkit-0.3.19.dist-info → devflow_toolkit-0.3.20.dist-info}/RECORD +8 -8
- {devflow_toolkit-0.3.19.dist-info → devflow_toolkit-0.3.20.dist-info}/WHEEL +0 -0
- {devflow_toolkit-0.3.19.dist-info → devflow_toolkit-0.3.20.dist-info}/entry_points.txt +0 -0
- {devflow_toolkit-0.3.19.dist-info → devflow_toolkit-0.3.20.dist-info}/licenses/LICENSE +0 -0
devflow/commands/spec.py
CHANGED
devflow/core/spec_workflow.py
CHANGED
|
@@ -326,11 +326,13 @@ class SpecWorkflow:
|
|
|
326
326
|
|
|
327
327
|
adapter = request.adapter
|
|
328
328
|
setup_result: SetupResult | None = None
|
|
329
|
+
discovery_session = False
|
|
329
330
|
if (
|
|
330
331
|
not discovery.is_complete
|
|
331
332
|
and self._can_run_discovery(adapter, request, config)
|
|
332
333
|
):
|
|
333
334
|
assert adapter is not None
|
|
335
|
+
discovery_session = True
|
|
334
336
|
setup_result = self._setup_adapter(
|
|
335
337
|
adapter=adapter,
|
|
336
338
|
config=config,
|
|
@@ -430,7 +432,12 @@ class SpecWorkflow:
|
|
|
430
432
|
directory=prepared.directory,
|
|
431
433
|
)
|
|
432
434
|
|
|
433
|
-
|
|
435
|
+
# A new change always pauses after Discovery. A continuation pauses
|
|
436
|
+
# only when it opened a Discovery session, so one command never
|
|
437
|
+
# chains two agent sessions unless --auto is used.
|
|
438
|
+
if request.stop_after_discovery and (
|
|
439
|
+
discovery_session or not continuation
|
|
440
|
+
):
|
|
434
441
|
return self._build_result(
|
|
435
442
|
spec=None,
|
|
436
443
|
harness_name=(
|
devflow/prompts/__init__.py
CHANGED
|
@@ -425,7 +425,9 @@ def _discovery_mode_instructions(
|
|
|
425
425
|
"a new question with the next `Qn` identifier. Update "
|
|
426
426
|
f"`{discovery_path}` in place. Do not write or modify `spec.md` in "
|
|
427
427
|
"this phase. Stop and report only when DevFlow can validate "
|
|
428
|
-
"Discovery as complete."
|
|
428
|
+
"Discovery as complete. Then tell the user that Discovery is "
|
|
429
|
+
"recorded and that they must exit this session so DevFlow can "
|
|
430
|
+
"validate it."
|
|
429
431
|
)
|
|
430
432
|
|
|
431
433
|
|
|
@@ -444,7 +446,10 @@ def _mode_instructions(
|
|
|
444
446
|
"genuinely missing, do not write the specification: report it as "
|
|
445
447
|
"a numbered item in section 7 so DevFlow can return it to "
|
|
446
448
|
"Discovery. Do not finish until the file exists and contains the "
|
|
447
|
-
"complete document."
|
|
449
|
+
"complete document. Then tell the user that the specification is "
|
|
450
|
+
"written and that they must exit this session so DevFlow can "
|
|
451
|
+
"validate it. Exiting earlier makes DevFlow replace it with a "
|
|
452
|
+
"deterministic draft."
|
|
448
453
|
)
|
|
449
454
|
return (
|
|
450
455
|
"You are running interactively, but specification writes are "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.20
|
|
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.3.
|
|
35
|
+
**Current version: `0.3.20`.**
|
|
36
36
|
|
|
37
37
|
DevFlow is a command-line toolkit for leading AI models and coding
|
|
38
38
|
agents through specification-driven changes in real software projects.
|
|
@@ -152,7 +152,7 @@ pip install devflow-toolkit
|
|
|
152
152
|
To install a specific built artifact instead:
|
|
153
153
|
|
|
154
154
|
```bash
|
|
155
|
-
pip install devflow_toolkit-0.3.
|
|
155
|
+
pip install devflow_toolkit-0.3.20-py3-none-any.whl
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
Verify the installation:
|
|
@@ -428,7 +428,7 @@ as an architectural constraint when it is present.
|
|
|
428
428
|
|
|
429
429
|
### Harnesses
|
|
430
430
|
|
|
431
|
-
| Harness | Status in 0.3.
|
|
431
|
+
| Harness | Status in 0.3.20 |
|
|
432
432
|
| --- | --- |
|
|
433
433
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
434
434
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -696,7 +696,7 @@ specification that still lists open questions.
|
|
|
696
696
|
8. If artifacts exist without workflow state, diagnose with
|
|
697
697
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
698
698
|
|
|
699
|
-
Available commands in `0.3.
|
|
699
|
+
Available commands in `0.3.20`:
|
|
700
700
|
|
|
701
701
|
| Command | Status |
|
|
702
702
|
| --- | --- |
|
|
@@ -743,12 +743,13 @@ The command:
|
|
|
743
743
|
architecture to `context.md`;
|
|
744
744
|
6. stops without `spec.md` when any question or assumption remains
|
|
745
745
|
unresolved;
|
|
746
|
-
7. in an interactive run, stops after Discovery
|
|
746
|
+
7. in an interactive run, stops after the Discovery session and prints
|
|
747
747
|
the next command, so you can choose the harness for the
|
|
748
748
|
specification;
|
|
749
|
-
8. on `--continue` (or with `--auto`)
|
|
750
|
-
the
|
|
751
|
-
binds it to the Discovery
|
|
749
|
+
8. on `--continue` with Discovery already complete (or with `--auto`)
|
|
750
|
+
invokes the selected harness with the specification prompt,
|
|
751
|
+
validates the returned specification, and binds it to the Discovery
|
|
752
|
+
digest;
|
|
752
753
|
9. writes `spec.md` and registers the Discovery and specification
|
|
753
754
|
digests in the event log and the workflow projection.
|
|
754
755
|
|
|
@@ -762,6 +763,20 @@ devflow spec "Add a GET /patients endpoint"
|
|
|
762
763
|
devflow spec --continue 006 . --harness opencode
|
|
763
764
|
```
|
|
764
765
|
|
|
766
|
+
Without `--auto`, one interactive command opens at most one agent
|
|
767
|
+
session. When a session ends, exit the harness (for example with
|
|
768
|
+
`/exit`) so DevFlow can validate the result locally, without spending
|
|
769
|
+
tokens:
|
|
770
|
+
|
|
771
|
+
- after a Discovery session, DevFlow stops and prints the next command,
|
|
772
|
+
also when the session was opened by `--continue`;
|
|
773
|
+
- after a specification session, DevFlow validates and registers
|
|
774
|
+
`spec.md`.
|
|
775
|
+
|
|
776
|
+
Exit the specification session only after the agent says `spec.md` is
|
|
777
|
+
written. If the file is missing or invalid, DevFlow writes its
|
|
778
|
+
deterministic draft instead.
|
|
779
|
+
|
|
765
780
|
When no `--harness` is passed, an interactive `devflow spec` asks which
|
|
766
781
|
installed harness to use before starting, even if `.devflow/config.yaml`
|
|
767
782
|
already names one. The configured harness is offered as the default.
|
|
@@ -783,7 +798,9 @@ devflow spec --continue 006
|
|
|
783
798
|
|
|
784
799
|
`--continue` is not a new specification. It reuses the stored request
|
|
785
800
|
and project mode, loads Discovery, and stops until no decision is
|
|
786
|
-
pending and every assumption is accepted.
|
|
801
|
+
pending and every assumption is accepted. If it opened a Discovery
|
|
802
|
+
session, it stops at the Discovery checkpoint; run `--continue` again to
|
|
803
|
+
write the specification. It reuses a current
|
|
787
804
|
validated specification when the Discovery digest still matches;
|
|
788
805
|
otherwise it archives the old specification and generates a new one. If
|
|
789
806
|
an interrupted run left a complete `discovery.yaml` without
|
|
@@ -808,7 +825,8 @@ devflow spec --continue 006 --harness opencode
|
|
|
808
825
|
|
|
809
826
|
`--auto` keeps the older one-shot flow: Discovery and the specification
|
|
810
827
|
run in the same invocation. Without it, an interactive run stops at the
|
|
811
|
-
Discovery checkpoint
|
|
828
|
+
Discovery checkpoint, including a `--continue` run that answered the
|
|
829
|
+
remaining Discovery questions.
|
|
812
830
|
|
|
813
831
|
`spec --language <code>` selects the language for this run and stores it
|
|
814
832
|
as the project default in `.devflow/config.yaml`, so later `--continue`
|
|
@@ -895,7 +913,7 @@ devflow approve 001 --stage spec
|
|
|
895
913
|
```
|
|
896
914
|
|
|
897
915
|
Approval is explicit and binds the decision to the current artifact
|
|
898
|
-
digests. For a `0.3.
|
|
916
|
+
digests. For a `0.3.20` change it binds `spec.md`, `discovery.yaml` and,
|
|
899
917
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
900
918
|
same approval is a no-op. If an artifact changes after validation,
|
|
901
919
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -906,7 +924,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
906
924
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
907
925
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
908
926
|
|
|
909
|
-
Only the `spec` stage is available in `0.3.
|
|
927
|
+
Only the `spec` stage is available in `0.3.20`. `--stage plan` and
|
|
910
928
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
911
929
|
`review` commands in this release.
|
|
912
930
|
|
|
@@ -18,7 +18,7 @@ devflow/commands/doctor.py,sha256=vYk2i3OksbGpHEUFsqi7c4w44mAXRmY0OeEdO8h5j_M,41
|
|
|
18
18
|
devflow/commands/harness.py,sha256=0IH_PPeYmW3aQ_WnUSkFzxpe3A4FtSyjWfHq-Ug7Eos,10549
|
|
19
19
|
devflow/commands/init.py,sha256=G2LDYDElWDSDPk3-1DfRtv8sW_z-9ITJH1Co6C5jiyw,17188
|
|
20
20
|
devflow/commands/recover.py,sha256=sV9x5-30E_3XRBe7JItDiSG-pqrowRzjqOkC_eyrhFQ,2165
|
|
21
|
-
devflow/commands/spec.py,sha256=
|
|
21
|
+
devflow/commands/spec.py,sha256=7glxFHKuJd33mL6YayrxRJ6TViUmmQk5rijbNepsbig,16353
|
|
22
22
|
devflow/commands/status.py,sha256=0B6ZxVst8OVsdPowZFtKte3jBSBoD1_ZQcSkP7YYW6Q,4521
|
|
23
23
|
devflow/core/__init__.py,sha256=hN7i4-PDaZ7y4P8qRpZl_lJvIiPyQaN1TDGnw2BecYU,427
|
|
24
24
|
devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,13692
|
|
@@ -31,7 +31,7 @@ devflow/core/ports.py,sha256=6jlqeR40MNaz-IuZIAPimXpRKew-wMUab3KzelcTXsU,4541
|
|
|
31
31
|
devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
|
|
32
32
|
devflow/core/project.py,sha256=4OnudghY5N5rCOmafWO5Hk68M7T3-mOV0j0k0dh2luE,16891
|
|
33
33
|
devflow/core/recovery.py,sha256=W2If6Ymb3ISwMN8IVQYCwptDUzhxejlF-P2NvMYyZP0,8818
|
|
34
|
-
devflow/core/spec_workflow.py,sha256=
|
|
34
|
+
devflow/core/spec_workflow.py,sha256=qRKWeGc90NAkMAzX7Vdzgn25o2Ry_Z5V9kioZO6ODZ4,39830
|
|
35
35
|
devflow/core/specification.py,sha256=wRFrS64YGS6YOMQeNjdD73TlEWaSSs6_mTTg7flRlHQ,64851
|
|
36
36
|
devflow/core/artifacts/__init__.py,sha256=gt9xahPynoxv75FMq1ZJx91ILTIv4ExuvX1Ymrxwr2c,627
|
|
37
37
|
devflow/core/artifacts/errors.py,sha256=hwZxnLFcUTtEjDWtN6rUCkM69EN19LGVlc6HD-pNZyk,493
|
|
@@ -58,12 +58,12 @@ devflow/profiles/django-backend/profile.yaml,sha256=SNj7a3yamdJx-P69GvIJmLkC2svO
|
|
|
58
58
|
devflow/profiles/django-backend/constitution/django-standards.md,sha256=0M-XmxOpEmgIadcaVdf6OVmll8Oec0jEjcJ4C8MfwhQ,2052
|
|
59
59
|
devflow/profiles/fastapi-backend/profile.yaml,sha256=5_b-zWSX0HV-tw_2ntRCSa4DyP3NUqYWmxOh55pXYmc,321
|
|
60
60
|
devflow/profiles/fastapi-backend/constitution/fastapi-standards.md,sha256=iFKib4i_9z4wBQ9thl-uftg5g-CHwvmFWzMtLgA7CBk,1949
|
|
61
|
-
devflow/prompts/__init__.py,sha256=
|
|
61
|
+
devflow/prompts/__init__.py,sha256=FxVGrfvitbWHLOeKosi-5mcvjX_cj-KC0UwYTx8wq6M,16960
|
|
62
62
|
devflow/prompts/discovery-repair.md,sha256=YfTfrrw5uUZvC_x6X2lrYEDkMNhanhoe0ER3Yc2-rgI,1135
|
|
63
63
|
devflow/prompts/discovery.md,sha256=NejWiC1QU5hfgQ90M1qRHkDmIoBS4v5INPp1eUYxy44,11540
|
|
64
64
|
devflow/prompts/spec.md,sha256=ZbZXS_76mWqihqRD4BeHpCc62Rbqoeb-F9XmkKL3_ww,7153
|
|
65
|
-
devflow_toolkit-0.3.
|
|
66
|
-
devflow_toolkit-0.3.
|
|
67
|
-
devflow_toolkit-0.3.
|
|
68
|
-
devflow_toolkit-0.3.
|
|
69
|
-
devflow_toolkit-0.3.
|
|
65
|
+
devflow_toolkit-0.3.20.dist-info/METADATA,sha256=oNCJ7wyMeBSgFRx1oR-83xXjBYevzc835KnuIj6aF_I,44756
|
|
66
|
+
devflow_toolkit-0.3.20.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
67
|
+
devflow_toolkit-0.3.20.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
|
|
68
|
+
devflow_toolkit-0.3.20.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
|
|
69
|
+
devflow_toolkit-0.3.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|