devflow-toolkit 0.3.10__py3-none-any.whl → 0.3.12__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/cli.py CHANGED
@@ -35,7 +35,7 @@ def version() -> None:
35
35
  try:
36
36
  current_version = package_version("devflow-toolkit")
37
37
  except PackageNotFoundError:
38
- current_version = "0.3.10"
38
+ current_version = "0.3.12"
39
39
  console.print(f"DevFlow v{current_version}")
40
40
 
41
41
 
@@ -57,7 +57,7 @@ def _approve(spec_id: str, path: Path, stage: str) -> None:
57
57
  normalized = stage.strip().lower()
58
58
  if normalized != "spec":
59
59
  msg = (
60
- f"Stage '{stage}' is not available in DevFlow 0.3.10. "
60
+ f"Stage '{stage}' is not available in DevFlow 0.3.12. "
61
61
  "Only the 'spec' stage can be approved."
62
62
  )
63
63
  raise UnsupportedStageError(msg)
devflow/core/discovery.py CHANGED
@@ -143,8 +143,6 @@ _SUBMISSION_DECISIONS = {
143
143
  "persisted",
144
144
  "database",
145
145
  "db",
146
- "email",
147
- "correo",
148
146
  "smtp",
149
147
  "send_mail",
150
148
  "confirmation",
@@ -160,6 +158,14 @@ _SUBMISSION_PHRASES = {
160
158
  "solo mostrar",
161
159
  "confirmation message",
162
160
  "mensaje de confirmacion",
161
+ "send an email",
162
+ "send email",
163
+ "email notification",
164
+ "notify by email",
165
+ "enviar un correo",
166
+ "enviar correo",
167
+ "notificacion por correo",
168
+ "notificar por correo",
163
169
  }
164
170
  _NO_PERSISTENCE_PHRASES = {
165
171
  "no persistence",
@@ -145,15 +145,17 @@ def _discovery_language_note(language: str) -> str:
145
145
  """Return the prompt instruction that selects the conversation language."""
146
146
  target = (language or "en").strip() or "en"
147
147
  return (
148
- f"Speak to the user and write every new discovery question, reason, "
148
+ f"Speak to the user and write every discovery question, reason, "
149
149
  f"option, assumption and report in the language identified as "
150
150
  f"`{target}`.\n\n"
151
151
  "The existing discovery record may contain question text in another "
152
- "language. Preserve its ids, categories, blocking flags and stored "
153
- "question text exactly, but translate each question accurately into "
154
- "the target language when you ask it in conversation. Keep paths, "
155
- "field names, category identifiers, `Qn`/`An` identifiers, commands "
156
- "and digests exactly as shown."
152
+ "language. Translate each existing question, reason and option "
153
+ "faithfully into the target language and write the translations into "
154
+ "the discovery record in place. Do not add, remove or re-scope "
155
+ "questions while translating. Preserve every id, category, blocking "
156
+ "flag and option count, and keep paths, field names, category "
157
+ "identifiers, `Qn`/`An` identifiers, commands and digests exactly as "
158
+ "shown."
157
159
  )
158
160
 
159
161
 
@@ -183,7 +185,9 @@ def _discovery_mode_instructions(
183
185
  "a new question with the next `Qn` identifier before continuing. "
184
186
  "Record only explicit answers. Update the same "
185
187
  f"`{discovery_path}` file in place, preserving every existing id, "
186
- "category, blocking flag and question text. Set an answered "
188
+ "category, blocking flag, option count and the meaning of every "
189
+ "question. When the run language differs, translate question, reason "
190
+ "and option text faithfully into it. Set an answered "
187
191
  "question to `status: answered` with `answer`, `answered_by: user` "
188
192
  "and an ISO-8601 `answered_at` timestamp. Set an accepted "
189
193
  "assumption to `status: accepted` with `accepted_by: user` and "
@@ -85,8 +85,11 @@ compatibility and out-of-scope items.
85
85
  pending and explain what decision is needed.
86
86
  - Do not accept assumptions on the user's behalf. Acceptance is an
87
87
  explicit human action.
88
- - Preserve every existing id, question text, category, blocking flag,
89
- option, request, `spec_id`, `change` and `project_mode`.
88
+ - Preserve every existing id, category, blocking flag, option count and
89
+ the meaning of every question. When the target language differs,
90
+ translate question, reason and option text into it instead of adding,
91
+ removing or re-scoping questions.
92
+ - Never change the request, `spec_id`, `change` or `project_mode`.
90
93
  - When you discover a requirement gap, append a new question instead
91
94
  of hiding it in an answer or an assumption.
92
95
  - Record only what the user explicitly said. Do not summarize away
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.10
3
+ Version: 0.3.12
4
4
  Summary: Specification workflow toolkit for AI-assisted software changes
5
5
  Author: DevFlow contributors
6
6
  License-Expression: MIT
@@ -42,7 +42,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
42
42
  selected agent harness is only the execution backend that drafts the
43
43
  specification.
44
44
 
45
- This is the `0.3.10` MVP. It implements the **discovery and
45
+ This is the `0.3.12` MVP. It implements the **discovery and
46
46
  specification stages only**. It supports two specification contexts:
47
47
  **Existing Project** (the default) and **Greenfield**. It is not a
48
48
  complete SDD platform and does not include planning, implementation or
@@ -118,7 +118,7 @@ pip install devflow-toolkit
118
118
  To install a specific built artifact instead:
119
119
 
120
120
  ```bash
121
- pip install devflow_toolkit-0.3.10-py3-none-any.whl
121
+ pip install devflow_toolkit-0.3.12-py3-none-any.whl
122
122
  ```
123
123
 
124
124
  Verify the installation:
@@ -297,7 +297,7 @@ as an architectural constraint when it is present.
297
297
 
298
298
  ### Harnesses
299
299
 
300
- | Harness | Status in 0.3.10 |
300
+ | Harness | Status in 0.3.12 |
301
301
  | --- | --- |
302
302
  | OpenCode | Verified end-to-end in non-interactive mode |
303
303
  | Codex | Integration files are generated, but not verified for this release |
@@ -468,7 +468,7 @@ specification that still lists open questions.
468
468
  8. If artifacts exist without workflow state, diagnose with
469
469
  `devflow doctor <id>` and repair with `devflow recover <id>`.
470
470
 
471
- Available commands in `0.3.10`:
471
+ Available commands in `0.3.12`:
472
472
 
473
473
  | Command | Status |
474
474
  | --- | --- |
@@ -581,7 +581,8 @@ Discovery checkpoint.
581
581
  without changing `.devflow/config.yaml`. Interactive agent Discovery
582
582
  asks existing questions and writes new questions in that language, even
583
583
  when the stored question text was generated in English by the
584
- deterministic planner. Specifications written by an agent use the same
584
+ deterministic planner; the stored question, reason and option text is
585
+ translated in place. Specifications written by an agent use the same
585
586
  language. The deterministic `--no-agent` planner still writes its own
586
587
  stored question text in English.
587
588
 
@@ -659,7 +660,7 @@ devflow approve 001 --stage spec
659
660
  ```
660
661
 
661
662
  Approval is explicit and binds the decision to the current artifact
662
- digests. For a `0.3.10` change it binds `spec.md`, `discovery.yaml` and,
663
+ digests. For a `0.3.12` change it binds `spec.md`, `discovery.yaml` and,
663
664
  when a manifest applies, the architecture manifest digest. Repeating the
664
665
  same approval is a no-op. If an artifact changes after validation,
665
666
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -670,7 +671,7 @@ and names the pending questions and assumptions. Approval also rejects a
670
671
  specification whose section 7 still lists open questions. Legacy `0.2.0`
671
672
  changes without `discovery.yaml` remain approvable with a warning.
672
673
 
673
- Only the `spec` stage is available in `0.3.10`. `--stage plan` and
674
+ Only the `spec` stage is available in `0.3.12`. `--stage plan` and
674
675
  `--stage review` are rejected. There are no `plan`, `implement` or
675
676
  `review` commands in this release.
676
677
 
@@ -1,5 +1,5 @@
1
1
  devflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- devflow/cli.py,sha256=HXnydHRP2HErG4NaGdYxoTv_6z0lSwtwyu5tO0WlyLI,1169
2
+ devflow/cli.py,sha256=yNOKaW5rO9mOPf3b-pQZJQQX0lQ9XEWqntBDG4QrD48,1169
3
3
  devflow/adapters/__init__.py,sha256=WcsjXQTKzHNzMAHx82-sdJQeR3ceHRVqLWTUtRlaraE,867
4
4
  devflow/adapters/agents.py,sha256=OZnz7wAJNcIojtgaQIK1iB6QKWGgv2VCmoBp8M9DUKE,1423
5
5
  devflow/adapters/base.py,sha256=YggY_IwHExdybl5S9NjwZSlmmcw9Y6z7DhQsl3JLvXs,2055
@@ -11,7 +11,7 @@ devflow/adapters/kiro.py,sha256=VxAcwkAdkTbZjDjTJaZfs4kyVHSwR4_Wo3GmFsbmEBU,6754
11
11
  devflow/adapters/opencode.py,sha256=tAsLApXFSUU2-fPgE8wXtgF7OAOA_qYrVJVeS-GiJ3E,7077
12
12
  devflow/adapters/registry.py,sha256=NLd_tf7dAiZUa6gbQFcwPogurZyjbMNbzjjXozAD4xs,1177
13
13
  devflow/commands/__init__.py,sha256=yOLtd_4R4xdlMgAzihzIT35oyV_qcz0br-aoLebRj1c,157
14
- devflow/commands/approve.py,sha256=N29_FIVY5_Rw4TuUj5-tMg0L1g2P6fl9bShVmWbwtuc,2741
14
+ devflow/commands/approve.py,sha256=Ye7UzQzJ71SNvJu-OSsHSviu8RDo1e2MN1PSED-6Su4,2741
15
15
  devflow/commands/doctor.py,sha256=vYk2i3OksbGpHEUFsqi7c4w44mAXRmY0OeEdO8h5j_M,4161
16
16
  devflow/commands/harness.py,sha256=-Tas6OvkM46zRhBEcJokQkrbKixP4y-haabkI-JmQXM,3891
17
17
  devflow/commands/init.py,sha256=B-rW-etZ-Rptt9YW43YZ5mN_l3gfGczuXW9kpmHDOWQ,15420
@@ -23,7 +23,7 @@ devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,
23
23
  devflow/core/clock.py,sha256=KZROv6o51Ln1EzK00ySCxfc7WPZqPlaQhFfjfdc_TMY,1651
24
24
  devflow/core/config.py,sha256=Ft37K1r6zm3QsU6YtuqBjq2Yr9sDscC5QiqAUrsHpUw,22108
25
25
  devflow/core/constitution.py,sha256=nPHyy7BuIyyqkn4y85UyWn2E7f5AWHbg4iZ0frF9SfE,4581
26
- devflow/core/discovery.py,sha256=yIHnuwJGhYBpRm8KA2u6RPCi0gPBLh6boO7j_HN370I,45458
26
+ devflow/core/discovery.py,sha256=zPOXa6puYkyrTtnchIUDBusoCB9Aldq2cmK-SLoqy8Y,45611
27
27
  devflow/core/ports.py,sha256=R6ybjAdJEdtTKFc4FMFTX0TVwRfDwPoWCsu-BHrhI5A,4071
28
28
  devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
29
29
  devflow/core/project.py,sha256=aXJanCK-TjkDy4v_XM14Xj3z7sbHPusjyJrIzmDqeAI,16989
@@ -55,12 +55,12 @@ devflow/profiles/django-backend/profile.yaml,sha256=SNj7a3yamdJx-P69GvIJmLkC2svO
55
55
  devflow/profiles/django-backend/constitution/django-standards.md,sha256=0M-XmxOpEmgIadcaVdf6OVmll8Oec0jEjcJ4C8MfwhQ,2052
56
56
  devflow/profiles/fastapi-backend/profile.yaml,sha256=5_b-zWSX0HV-tw_2ntRCSa4DyP3NUqYWmxOh55pXYmc,321
57
57
  devflow/profiles/fastapi-backend/constitution/fastapi-standards.md,sha256=iFKib4i_9z4wBQ9thl-uftg5g-CHwvmFWzMtLgA7CBk,1949
58
- devflow/prompts/__init__.py,sha256=_drXcHz2EWOplP-Nk3eq-F7QYKZdxc6HjZI_XB8Wvxg,9174
59
- devflow/prompts/discovery.md,sha256=1XA-xMSBFhRbnZVWUV-9UOQetwqlA2lXM4FQ7i2YNhg,6158
58
+ devflow/prompts/__init__.py,sha256=teAVKhVhTu3HGlLoiBdTPj_PRFkqcZfpyjFHBqJ3IsE,9422
59
+ devflow/prompts/discovery.md,sha256=UNdaB4Fbgo0fCA82gyIDZ2a-Za9LHrBpXAEk6CYVT9w,6343
60
60
  devflow/prompts/spec.greenfield.md,sha256=BEKTN7G0B_P0bAevNeShzb_54dYu6j95_B3YqyhYK40,5154
61
61
  devflow/prompts/spec.md,sha256=zXrNA--c8IiQJBMyxidTtLVHUIrn7Ynj6935dyje1SY,3801
62
- devflow_toolkit-0.3.10.dist-info/METADATA,sha256=zJrALR56fuOV7UDky6Ta2PH2uteSbPlyqqvOLFlY-qE,29527
63
- devflow_toolkit-0.3.10.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
64
- devflow_toolkit-0.3.10.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
65
- devflow_toolkit-0.3.10.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
66
- devflow_toolkit-0.3.10.dist-info/RECORD,,
62
+ devflow_toolkit-0.3.12.dist-info/METADATA,sha256=9dk14aYsKShpgMHLrtGQFNR4_YclDj9wrBYbnvLipOw,29595
63
+ devflow_toolkit-0.3.12.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
64
+ devflow_toolkit-0.3.12.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
65
+ devflow_toolkit-0.3.12.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
66
+ devflow_toolkit-0.3.12.dist-info/RECORD,,