devflow-toolkit 0.3.11__py3-none-any.whl → 0.3.13__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/adapters/codex.py CHANGED
@@ -62,6 +62,10 @@ class CodexAdapter(HarnessAdapter):
62
62
  sandbox,
63
63
  "--ask-for-approval",
64
64
  "on-request",
65
+ "-c",
66
+ "features.default_mode_request_user_input=true",
67
+ "-c",
68
+ "suppress_unstable_features_warning=true",
65
69
  "-C",
66
70
  str(root),
67
71
  context.prompt,
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.11"
38
+ current_version = "0.3.13"
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.11. "
60
+ f"Stage '{stage}' is not available in DevFlow 0.3.13. "
61
61
  "Only the 'spec' stage can be approved."
62
62
  )
63
63
  raise UnsupportedStageError(msg)
@@ -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
 
@@ -178,12 +180,17 @@ def _discovery_mode_instructions(
178
180
  return (
179
181
  "You are running interactively. Read the discovery record and ask "
180
182
  "the user about every pending question and every proposed "
181
- "assumption, whether or not a question is marked blocking. If "
183
+ "assumption, whether or not a question is marked blocking. Use the "
184
+ "harness's structured question or multiple-choice tool when "
185
+ "available so the user can select an option instead of typing prose; "
186
+ "otherwise present numbered options. If "
182
187
  "reading the request or context reveals a missing decision, append "
183
188
  "a new question with the next `Qn` identifier before continuing. "
184
189
  "Record only explicit answers. Update the same "
185
190
  f"`{discovery_path}` file in place, preserving every existing id, "
186
- "category, blocking flag and question text. Set an answered "
191
+ "category, blocking flag, option count and the meaning of every "
192
+ "question. When the run language differs, translate question, reason "
193
+ "and option text faithfully into it. Set an answered "
187
194
  "question to `status: answered` with `answer`, `answered_by: user` "
188
195
  "and an ISO-8601 `answered_at` timestamp. Set an accepted "
189
196
  "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
@@ -145,6 +148,12 @@ assumption is unaccepted, and to `complete` only when nothing remains.
145
148
 
146
149
  ## Conversation Rules
147
150
 
151
+ - When your harness provides a structured question or multiple-choice
152
+ tool, use it for every question and for assumption acceptance. Put the
153
+ recorded options in the tool, add a free-form/Other choice, and wait
154
+ for the user's selection. If no such tool exists, present the options
155
+ as a numbered list and ask the user to reply with the number or a
156
+ free-form answer.
148
157
  - Ask one focused question at a time.
149
158
  - Explain why the answer changes the specification.
150
159
  - Offer the recorded options when they exist, but accept a free-form
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.11
3
+ Version: 0.3.13
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.11` MVP. It implements the **discovery and
45
+ This is the `0.3.13` 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.11-py3-none-any.whl
121
+ pip install devflow_toolkit-0.3.13-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.11 |
300
+ | Harness | Status in 0.3.13 |
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 |
@@ -309,6 +309,13 @@ Do not treat an unverified adapter as a compatibility guarantee. The
309
309
  generated files and command lines for Codex, Claude Code and Kiro may
310
310
  change as those integrations are tested.
311
311
 
312
+ For interactive Codex runs, DevFlow enables Codex's experimental
313
+ `request_user_input` tool so Discovery questions can be answered by
314
+ selecting an option instead of typing a free-form reply. Claude Code uses
315
+ its native `AskUserQuestion` dialog. Both adapters fall back to numbered
316
+ text options if the installed harness does not expose a structured
317
+ question tool.
318
+
312
319
  For OpenCode, DevFlow generates `AGENTS.md`, `opencode.json` and the
313
320
  agents under `.opencode/agents/`. The project-level `opencode.json` can
314
321
  also select the model used by the agent, for example:
@@ -468,7 +475,7 @@ specification that still lists open questions.
468
475
  8. If artifacts exist without workflow state, diagnose with
469
476
  `devflow doctor <id>` and repair with `devflow recover <id>`.
470
477
 
471
- Available commands in `0.3.11`:
478
+ Available commands in `0.3.13`:
472
479
 
473
480
  | Command | Status |
474
481
  | --- | --- |
@@ -581,7 +588,8 @@ Discovery checkpoint.
581
588
  without changing `.devflow/config.yaml`. Interactive agent Discovery
582
589
  asks existing questions and writes new questions in that language, even
583
590
  when the stored question text was generated in English by the
584
- deterministic planner. Specifications written by an agent use the same
591
+ deterministic planner; the stored question, reason and option text is
592
+ translated in place. Specifications written by an agent use the same
585
593
  language. The deterministic `--no-agent` planner still writes its own
586
594
  stored question text in English.
587
595
 
@@ -659,7 +667,7 @@ devflow approve 001 --stage spec
659
667
  ```
660
668
 
661
669
  Approval is explicit and binds the decision to the current artifact
662
- digests. For a `0.3.11` change it binds `spec.md`, `discovery.yaml` and,
670
+ digests. For a `0.3.13` change it binds `spec.md`, `discovery.yaml` and,
663
671
  when a manifest applies, the architecture manifest digest. Repeating the
664
672
  same approval is a no-op. If an artifact changes after validation,
665
673
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -670,7 +678,7 @@ and names the pending questions and assumptions. Approval also rejects a
670
678
  specification whose section 7 still lists open questions. Legacy `0.2.0`
671
679
  changes without `discovery.yaml` remain approvable with a warning.
672
680
 
673
- Only the `spec` stage is available in `0.3.11`. `--stage plan` and
681
+ Only the `spec` stage is available in `0.3.13`. `--stage plan` and
674
682
  `--stage review` are rejected. There are no `plan`, `implement` or
675
683
  `review` commands in this release.
676
684
 
@@ -1,17 +1,17 @@
1
1
  devflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- devflow/cli.py,sha256=r-rGDvxIy_RaTl7rvZNumRGz_nvLAbjJ_D6TEtlao7A,1169
2
+ devflow/cli.py,sha256=NDbu5IPjk3AxYr1WlwIOssOztX6YsiOjVtde9Y_jrko,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
6
6
  devflow/adapters/claude_code.py,sha256=nJ-J4nwlql6751GYoSX8LbR3zPmdMTut7prZ-6ABzE8,3595
7
- devflow/adapters/codex.py,sha256=ctMQi-qvumkQxCNdiD9d25bDQoxarMl_-9GfBsYxoyQ,3290
7
+ devflow/adapters/codex.py,sha256=DlgQiK6lnTazdb020HePhN0QzL-ILRYgRhNHUwTFdfs,3426
8
8
  devflow/adapters/detector.py,sha256=92BkNAvWs2Vh8H6xJzMweBDCw6yuYVg7sV4LoSZ8KFo,3291
9
9
  devflow/adapters/instructions.py,sha256=ukkPhI2FFZPqERg6PFFyP05BPifrpDHzw082b7D-Teo,10222
10
10
  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=QChexc3PR-qjQJE5XYaxwzQwGMg28J_rnYrtvOwldVg,2741
14
+ devflow/commands/approve.py,sha256=VXzDK7WOks8ibTkBbKSgx4K_SNznqsYTmlGEdrG4bDM,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
@@ -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=3VO8CxG8NYCY5D1PiBzvBavtP05FwYbNrBEDT7qGmUc,9614
59
+ devflow/prompts/discovery.md,sha256=vvrrtm8jHbzKX8hPPupgMjZBTMFY3qdTOoVvgFYJvPY,6717
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.11.dist-info/METADATA,sha256=zNtuCLGVWChED7n9JvRTUGfDps-70zUpNvyvyVJFaU8,29527
63
- devflow_toolkit-0.3.11.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
64
- devflow_toolkit-0.3.11.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
65
- devflow_toolkit-0.3.11.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
66
- devflow_toolkit-0.3.11.dist-info/RECORD,,
62
+ devflow_toolkit-0.3.13.dist-info/METADATA,sha256=16_GZqDNYuqY0n-j9kQ8cH-WCVzHAh97DAe2nJ_ItEI,29958
63
+ devflow_toolkit-0.3.13.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
64
+ devflow_toolkit-0.3.13.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
65
+ devflow_toolkit-0.3.13.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
66
+ devflow_toolkit-0.3.13.dist-info/RECORD,,