devflow-toolkit 0.3.26__py3-none-any.whl → 0.3.28__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.
@@ -3,6 +3,8 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import json
6
+ import shlex
7
+ import sys
6
8
 
7
9
  from devflow.adapters.base import (
8
10
  FileChange,
@@ -51,10 +53,13 @@ class ClaudeCodeAdapter(HarnessAdapter):
51
53
  return SetupResult(changes=tuple(changes))
52
54
 
53
55
  def build_run(self, context: RunContext) -> Invocation:
54
- settings = json.dumps(
55
- {"permissions": self._permission_rules(context)},
56
- separators=(",", ":"),
57
- )
56
+ settings_data: dict[str, object] = {
57
+ "permissions": self._permission_rules(context),
58
+ }
59
+ hooks = self._write_guard(context)
60
+ if hooks:
61
+ settings_data["hooks"] = hooks
62
+ settings = json.dumps(settings_data, separators=(",", ":"))
58
63
  root = context.root
59
64
  permission_mode = (
60
65
  "manual" if context.mode == "interactive" else "dontAsk"
@@ -112,6 +117,31 @@ class ClaudeCodeAdapter(HarnessAdapter):
112
117
  return []
113
118
  return ["Read", "Grep", "Glob"]
114
119
 
120
+ def _write_guard(self, context: RunContext) -> dict[str, object]:
121
+ """Block writes outside the specs directory without asking the user."""
122
+ permissions = context.permissions
123
+ if permissions.allow_source_code_changes or not (
124
+ permissions.allow_spec_write
125
+ ):
126
+ return {}
127
+ allowed = context.spec_directory.parent
128
+ command = " ".join(
129
+ [
130
+ shlex.quote(sys.executable),
131
+ "-m",
132
+ "devflow.hooks.claude_guard",
133
+ shlex.quote(str(allowed)),
134
+ ]
135
+ )
136
+ return {
137
+ "PreToolUse": [
138
+ {
139
+ "matcher": "Write|Edit|MultiEdit|NotebookEdit",
140
+ "hooks": [{"type": "command", "command": command}],
141
+ }
142
+ ]
143
+ }
144
+
115
145
  def _permission_rules(
116
146
  self,
117
147
  context: RunContext,
@@ -245,6 +245,9 @@ def _print_discovery(
245
245
  soft_wrap=True,
246
246
  )
247
247
 
248
+ for note in discovery.notes:
249
+ console.print(f" [yellow]corrected: {note}[/yellow]", soft_wrap=True)
250
+
248
251
  suggestions = discovery.suggested_next_specs()
249
252
  if suggestions:
250
253
  console.print("\n[bold]Suggested next specifications[/bold]")
devflow/core/discovery.py CHANGED
@@ -105,6 +105,50 @@ _CATEGORY_MATERIALITY = {
105
105
  "deployment": MATERIALITY_TECHNICAL,
106
106
  }
107
107
 
108
+ # Categories agents commonly invent, mapped to the closest valid one.
109
+ # Unknown categories fall back to functional_scope; the materiality the
110
+ # agent wrote is kept, so a critical decision stays critical.
111
+ _CATEGORY_ALIASES = {
112
+ "api": "functional_scope",
113
+ "api_contract": "functional_scope",
114
+ "api_design": "functional_scope",
115
+ "interface": "functional_scope",
116
+ "scope": "functional_scope",
117
+ "functional": "functional_scope",
118
+ "validation": "functional_scope",
119
+ "business_rules": "functional_scope",
120
+ "error_handling": "functional_scope",
121
+ "ui": "user_behavior",
122
+ "ux": "user_behavior",
123
+ "user_interface": "user_behavior",
124
+ "user_experience": "user_behavior",
125
+ "navigation": "user_behavior",
126
+ "i18n": "user_behavior",
127
+ "localization": "user_behavior",
128
+ "data": "data_persistence",
129
+ "data_model": "data_persistence",
130
+ "database": "data_persistence",
131
+ "persistence": "data_persistence",
132
+ "storage": "data_persistence",
133
+ "security": "security_authentication",
134
+ "authentication": "security_authentication",
135
+ "authorization": "security_authentication",
136
+ "auth": "security_authentication",
137
+ "permissions": "security_authentication",
138
+ "privacy": "security_authentication",
139
+ "integration": "external_integration",
140
+ "external": "external_integration",
141
+ "third_party": "external_integration",
142
+ "architecture": "architecture_boundary",
143
+ "performance": "architecture_boundary",
144
+ "scalability": "architecture_boundary",
145
+ "configuration": "architecture_boundary",
146
+ "dependency": "dependencies",
147
+ "libraries": "dependencies",
148
+ "infrastructure": "deployment",
149
+ "operations": "deployment",
150
+ }
151
+
108
152
  ASSUMPTION_PENDING = "pending_acceptance"
109
153
  ASSUMPTION_ACCEPTED = "accepted"
110
154
  ASSUMPTION_STATUSES = (ASSUMPTION_PENDING, ASSUMPTION_ACCEPTED)
@@ -685,6 +729,9 @@ class DiscoveryDocument:
685
729
  questions: tuple[DiscoveryQuestion, ...] = ()
686
730
  assumptions: tuple[DiscoveryAssumption, ...] = ()
687
731
  deferred: tuple[DeferredItem, ...] = ()
732
+ # Minor problems DevFlow corrected while reading the record. They are
733
+ # reported to the user and never written back by themselves.
734
+ notes: tuple[str, ...] = ()
688
735
 
689
736
  def suggested_next_specs(self) -> tuple[DeferredItem, ...]:
690
737
  """Return next-level improvements to propose as later specs.
@@ -1182,8 +1229,9 @@ class DiscoveryManager:
1182
1229
  )
1183
1230
  raise DiscoveryError(msg)
1184
1231
 
1232
+ notes: list[str] = []
1185
1233
  questions = tuple(
1186
- self._question(item, index)
1234
+ self._question(item, index, notes=notes, default_time=updated_at)
1187
1235
  for index, item in enumerate(questions_data, start=1)
1188
1236
  )
1189
1237
  question_ids = {question.id for question in questions}
@@ -1244,6 +1292,7 @@ class DiscoveryManager:
1244
1292
  questions=questions,
1245
1293
  assumptions=assumptions,
1246
1294
  deferred=deferred,
1295
+ notes=tuple(notes),
1247
1296
  )
1248
1297
  return document
1249
1298
 
@@ -1251,18 +1300,26 @@ class DiscoveryManager:
1251
1300
  self,
1252
1301
  data: object,
1253
1302
  index: int,
1303
+ *,
1304
+ notes: list[str] | None = None,
1305
+ default_time: str = "",
1254
1306
  ) -> DiscoveryQuestion:
1255
1307
  mapping = _mapping(data, f"questions[{index}]")
1256
1308
  identifier = _text(mapping.get("id"), "question id")
1257
1309
  if not _QUESTION_ID.fullmatch(identifier):
1258
1310
  msg = f"Invalid discovery question id: {identifier!r}"
1259
1311
  raise DiscoveryError(msg)
1312
+ if notes is None:
1313
+ notes = []
1260
1314
  category = _text(mapping.get("category"), "question category")
1261
1315
  if category not in QUESTION_CATEGORIES:
1262
- msg = (
1263
- f"Invalid discovery question category: {category!r}"
1316
+ key = category.strip().lower().replace("-", "_").replace(" ", "_")
1317
+ corrected = _CATEGORY_ALIASES.get(key, "functional_scope")
1318
+ notes.append(
1319
+ f"{identifier}: unknown category {category!r} read as "
1320
+ f"{corrected!r}."
1264
1321
  )
1265
- raise DiscoveryError(msg)
1322
+ category = corrected
1266
1323
  question = _limited_text(
1267
1324
  mapping.get("question"),
1268
1325
  f"{identifier}.question",
@@ -1277,11 +1334,11 @@ class DiscoveryManager:
1277
1334
  f"{identifier}.materiality",
1278
1335
  ) or ""
1279
1336
  if materiality and materiality not in MATERIALITIES:
1280
- msg = (
1281
- f"Invalid materiality for {identifier}: {materiality!r}. "
1282
- f"Expected one of: {', '.join(MATERIALITIES)}."
1337
+ notes.append(
1338
+ f"{identifier}: unknown materiality {materiality!r} ignored; "
1339
+ "the category default applies."
1283
1340
  )
1284
- raise DiscoveryError(msg)
1341
+ materiality = ""
1285
1342
  status = _text(mapping.get("status"), f"{identifier}.status")
1286
1343
  if status in QUESTION_PENDING_ALIASES:
1287
1344
  status = QUESTION_PENDING
@@ -1380,12 +1437,16 @@ class DiscoveryManager:
1380
1437
  f"{identifier} is resolved but has no answer."
1381
1438
  )
1382
1439
  if not answered_by:
1383
- raise DiscoveryError(
1384
- f"{identifier} is resolved but has no answered_by."
1385
- )
1440
+ answered_by = "user"
1441
+ notes.append(f"{identifier}: missing answered_by read as user.")
1386
1442
  if not answered_at:
1387
- raise DiscoveryError(
1388
- f"{identifier} is resolved but has no answered_at."
1443
+ if not default_time:
1444
+ raise DiscoveryError(
1445
+ f"{identifier} is resolved but has no answered_at."
1446
+ )
1447
+ answered_at = default_time
1448
+ notes.append(
1449
+ f"{identifier}: missing answered_at read as {default_time}."
1389
1450
  )
1390
1451
  elif resolution_source == RESOLUTION_ASSUMPTION:
1391
1452
  raise DiscoveryError(
@@ -932,6 +932,7 @@ class SpecWorkflow:
932
932
  updated, digest = repaired_result
933
933
  repaired = True
934
934
  self._discard_unexpected_spec(prepared, spec_existed, warnings)
935
+ warnings.extend(f"discovery.yaml: {note}" for note in updated.notes)
935
936
  if not repaired:
936
937
  digest = self._discovery_digest(
937
938
  discovery_manager,
@@ -0,0 +1 @@
1
+ """Guards that DevFlow installs into agent harness sessions."""
@@ -0,0 +1,76 @@
1
+ """Claude Code PreToolUse hook that keeps writes inside a directory.
2
+
3
+ DevFlow passes this hook to specification sessions. Claude Code asks
4
+ the user about any write that is neither allowed nor denied, and a deny
5
+ rule for writes would also block `.devflow/specs/`. The hook decides
6
+ instead: a write outside the allowed directory is blocked without a
7
+ prompt, and the reason is returned to the agent.
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import json
13
+ import sys
14
+ from pathlib import Path
15
+ from typing import Any
16
+
17
+ BLOCKED_EXIT_CODE = 2
18
+ _PATH_KEYS = ("file_path", "notebook_path", "path")
19
+
20
+
21
+ def blocked_reason(payload: dict[str, Any], allowed: Path) -> str | None:
22
+ """Return why a tool call must be blocked, or None to let it run."""
23
+ tool_input = payload.get("tool_input")
24
+ if not isinstance(tool_input, dict):
25
+ tool_input = {}
26
+ raw = next(
27
+ (
28
+ tool_input[key]
29
+ for key in _PATH_KEYS
30
+ if isinstance(tool_input.get(key), str) and tool_input[key]
31
+ ),
32
+ None,
33
+ )
34
+ if raw is None:
35
+ return (
36
+ "DevFlow: this session may only write files under "
37
+ f"{allowed}. The write has no file path, so it was blocked."
38
+ )
39
+ cwd = payload.get("cwd")
40
+ base = Path(cwd) if isinstance(cwd, str) and cwd else Path.cwd()
41
+ target = Path(raw)
42
+ if not target.is_absolute():
43
+ target = base / target
44
+ try:
45
+ target.resolve().relative_to(allowed.resolve())
46
+ except ValueError:
47
+ return (
48
+ f"DevFlow: this session may only write files under {allowed}. "
49
+ f"Writing {raw} was blocked. Do not create scripts or helper "
50
+ "files: DevFlow validates discovery.yaml and spec.md itself when "
51
+ "the session ends."
52
+ )
53
+ return None
54
+
55
+
56
+ def main(argv: list[str] | None = None) -> int:
57
+ args = sys.argv[1:] if argv is None else argv
58
+ if len(args) != 1:
59
+ print("usage: claude_guard <allowed-directory>", file=sys.stderr)
60
+ return BLOCKED_EXIT_CODE
61
+ try:
62
+ payload = json.load(sys.stdin)
63
+ except (OSError, ValueError):
64
+ print("DevFlow: unreadable hook input; write blocked.", file=sys.stderr)
65
+ return BLOCKED_EXIT_CODE
66
+ if not isinstance(payload, dict):
67
+ payload = {}
68
+ reason = blocked_reason(payload, Path(args[0]))
69
+ if reason is None:
70
+ return 0
71
+ print(reason, file=sys.stderr)
72
+ return BLOCKED_EXIT_CODE
73
+
74
+
75
+ if __name__ == "__main__":
76
+ raise SystemExit(main())
@@ -1,23 +1,22 @@
1
- # Discovery YAML Repair
1
+ # Discovery Record Repair
2
+
3
+ {{language_note}}
2
4
 
3
5
  You are repairing the DevFlow Discovery record `{{discovery_path}}`.
4
6
 
5
- DevFlow could not parse the file as valid YAML:
7
+ DevFlow could not accept the file:
6
8
 
7
9
  ```text
8
10
  {{error}}
9
11
  ```
10
12
 
11
- ## Language
12
-
13
- {{language_note}}
14
-
15
13
  ## Task
16
14
 
17
- Fix only the YAML syntax. Do not change the request, decisions, answers,
18
- categories, materiality, statuses, evidence, options or assumptions.
19
- Do not add, remove or re-scope a decision. Do not write or modify
20
- `spec.md` or any application source file.
15
+ Fix only what the error above describes: the YAML syntax or the invalid
16
+ field it names. Do not change the request or the meaning of any
17
+ decision, answer, evidence, option or assumption. Do not add, remove or
18
+ re-scope a decision. Do not write or modify `spec.md` or any application
19
+ source file.
21
20
 
22
21
  ## YAML Safety Rules
23
22
 
@@ -27,10 +26,12 @@ Do not add, remove or re-scope a decision. Do not write or modify
27
26
  - Use a block scalar (`|` or `>`) for long prose instead of leaving it
28
27
  unquoted.
29
28
  - Preserve the existing indentation, list structure and field names.
30
- - Re-read the complete file after editing and verify that every scalar
31
- and list item is valid YAML.
29
+ - Re-read the complete file after editing. Do not create scripts or run
30
+ commands to validate it: DevFlow validates the record when this
31
+ session ends.
32
32
  - Keep all text in the language already used by the record unless the
33
33
  task prompt asks for another language.
34
34
 
35
- When you finish, report that the file is valid YAML and list the lines
36
- you repaired. Do not generate a specification.
35
+ When you finish, list the lines you repaired and tell the user to exit
36
+ this session so DevFlow can validate the file. Do not generate a
37
+ specification.
@@ -273,9 +273,10 @@ it is a real improvement.
273
273
  multi-line value unquoted.
274
274
  - Keep one root mapping and preserve the existing indentation. Do not
275
275
  write duplicate keys.
276
- - Before finishing, re-read the complete `discovery.yaml` file and
277
- verify that it parses as YAML. Never leave a partially written or
278
- unquoted value in the file.
276
+ - Before finishing, re-read the complete `discovery.yaml` file. Never
277
+ leave a partially written or unquoted value in it. Do not create
278
+ scripts or run commands to validate it: DevFlow validates the record
279
+ when the session ends.
279
280
 
280
281
  Valid question categories are `functional_scope`, `user_behavior`,
281
282
  `data_persistence`, `security_authentication`,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.26
3
+ Version: 0.3.28
4
4
  Summary: Specification workflow toolkit for AI-assisted software changes
5
5
  Author: DevFlow contributors
6
6
  License-Expression: MIT
@@ -32,17 +32,75 @@ Description-Content-Type: text/markdown
32
32
 
33
33
  # DevFlow Toolkit
34
34
 
35
- **Current version: `0.3.26`.**
35
+ **Current version: `0.3.28`.**
36
+
37
+ Before any code is written, you and the AI agree on what will be built
38
+ and approve it as a spec. The agent then implements once, on something
39
+ clear, instead of trying, failing and redoing. Questions are cheap;
40
+ redoing code is expensive.
41
+
42
+ **The expensive part of an agent is not writing, it is correcting.**
43
+ Give it something ambiguous and it explores the whole repository, writes
44
+ code and tests, you reject it, and it starts again with an ever larger
45
+ context. Every round costs more than the last, and it is paid in output
46
+ tokens, which cost several times more than input tokens.
47
+
48
+ **DevFlow trades code rounds for question rounds.**
49
+
50
+ - **Discovery asks first.** Authentication, permissions, validation,
51
+ what stays out of scope. These rounds are cheap: mostly reading, no
52
+ code.
53
+ - **Validation spends no tokens.** DevFlow checks that Discovery is
54
+ complete and that the spec has the right shape with local Python
55
+ code.
56
+ - **The approved spec guides the agent.** It says which files to touch,
57
+ which requirements to meet (`FR`) and how to prove it is done (`AC`).
58
+ The agent explores less, stays in scope and writes nothing nobody
59
+ asked for.
60
+ - **Each phase reads only what it needs.** Code style rules are loaded
61
+ when implementing, not while specifying.
62
+ - **Context is never lost.** Everything stays in your repository, in a
63
+ few files under `.devflow/`. Switch sessions or agents and there is
64
+ nothing to explain again.
65
+
66
+ The goal is not to generate code faster, but to decide better before
67
+ generating it. Thinking is cheap; redoing code is expensive.
68
+
69
+ ## Install
70
+
71
+ ```bash
72
+ pip install devflow-toolkit
73
+ devflow version
74
+ ```
75
+
76
+ You also need an AI agent installed on your machine, for example
77
+ [OpenCode](https://opencode.ai) or Claude Code.
78
+
79
+ ## The flow
80
+
81
+ ```text
82
+ devflow init once per project
83
+ │
84
+ devflow spec "your change" Discovery: the agent asks, you answer
85
+ │
86
+ devflow spec --continue 001 repeat until the spec is written
87
+ │
88
+ devflow approve 001 you approve the spec
89
+ │
90
+ "Implement .devflow/specs/001-…/spec.md" ask your agent to build it
91
+
92
+ Need to change an approved spec? devflow reopen 001
93
+ Not sure what comes next? devflow status 001
94
+ ```
95
+
96
+ The rest of this page is the full reference: every command, option,
97
+ file and rule.
98
+
99
+ ## What DevFlow covers
36
100
 
37
101
  DevFlow is a command-line toolkit for leading AI models and coding
38
102
  agents through specification-driven changes in real software projects.
39
103
 
40
- The goal is simple: keep models and agents inside a process defined by
41
- people. AI can write code quickly, but without clear limits it can also
42
- produce unnecessary code, duplicate logic, invent scope or build things
43
- nobody asked for. DevFlow exists to prevent that. The team decides what
44
- will be built, why and under which rules **before** an agent writes code.
45
-
46
104
  Discovery is the centre of that process. It is not a one-shot chat or a
47
105
  form to fill in; it is a joint exploration between the human team and the
48
106
  AI model. Both review the project, ask questions, challenge assumptions
@@ -152,7 +210,7 @@ pip install devflow-toolkit
152
210
  To install a specific built artifact instead:
153
211
 
154
212
  ```bash
155
- pip install devflow_toolkit-0.3.26-py3-none-any.whl
213
+ pip install devflow_toolkit-0.3.28-py3-none-any.whl
156
214
  ```
157
215
 
158
216
  Verify the installation:
@@ -457,7 +515,7 @@ as an architectural constraint when it is present.
457
515
 
458
516
  ### Harnesses
459
517
 
460
- | Harness | Status in 0.3.26 |
518
+ | Harness | Status in 0.3.28 |
461
519
  | --- | --- |
462
520
  | OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
463
521
  | Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
@@ -551,6 +609,13 @@ pre-approved, while shell, web and task tools remain denied.
551
609
  Non-interactive runs keep the locked `dontAsk` mode and do not allow the
552
610
  question tool.
553
611
 
612
+ Manual mode would ask you about any other write, such as a helper
613
+ script in `/tmp`. To avoid that prompt, DevFlow also passes a
614
+ `PreToolUse` hook (`devflow.hooks.claude_guard`) that blocks every
615
+ `Write`, `Edit`, `MultiEdit` and `NotebookEdit` outside
616
+ `.devflow/specs/` without asking, and tells the agent why. The hook is
617
+ not added when `allow_source_code_changes` is enabled.
618
+
554
619
  ## Discovery
555
620
 
556
621
  Discovery is separate from specification. The project context decides
@@ -731,6 +796,17 @@ specification and asks you to run `devflow spec --continue`, which
731
796
  repairs the file first. When an agent lists questions in section 7,
732
797
  nested bullets stay part of the same question.
733
798
 
799
+ DevFlow corrects minor mistakes instead of starting a repair session,
800
+ and lists each correction as a warning and in `devflow status`: an
801
+ unknown category is read as the closest valid one (for example
802
+ `api_contract` as `functional_scope`, `security` as
803
+ `security_authentication`), an unknown materiality falls back to the
804
+ category default, and a user answer without `answered_by` or
805
+ `answered_at` is read as `user` at the record's `updated_at`. The
806
+ materiality the agent wrote is kept, so a `critical` decision can still
807
+ never be assumed. Unreadable YAML, answers on pending decisions and
808
+ assumed critical decisions still require a repair.
809
+
734
810
  DevFlow derives completeness from the decisions themselves: a record
735
811
  marked `complete` with pending questions is treated as
736
812
  `awaiting_clarification`, and a question written with
@@ -800,7 +876,7 @@ for each item; the agent does not write it.
800
876
  8. If artifacts exist without workflow state, diagnose with
801
877
  `devflow doctor <id>` and repair with `devflow recover <id>`.
802
878
 
803
- Available commands in `0.3.26`:
879
+ Available commands in `0.3.28`:
804
880
 
805
881
  | Command | Status |
806
882
  | --- | --- |
@@ -1033,7 +1109,7 @@ devflow approve 001
1033
1109
  ```
1034
1110
 
1035
1111
  Approval is explicit and binds the decision to the current artifact
1036
- digests. For a `0.3.26` change it binds `spec.md`, `discovery.yaml` and,
1112
+ digests. For a `0.3.28` change it binds `spec.md`, `discovery.yaml` and,
1037
1113
  when a manifest applies, the architecture manifest digest. Repeating the
1038
1114
  same approval is a no-op. If an artifact changes after validation,
1039
1115
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -1044,7 +1120,7 @@ and names the pending questions and assumptions. Approval also rejects a
1044
1120
  specification whose section 7 still lists open questions. Legacy `0.2.0`
1045
1121
  changes without `discovery.yaml` remain approvable with a warning.
1046
1122
 
1047
- Only the `spec` stage is available in `0.3.26`, so `--stage` is optional
1123
+ Only the `spec` stage is available in `0.3.28`, so `--stage` is optional
1048
1124
  and defaults to `spec`. `--stage plan` and `--stage review` are
1049
1125
  rejected. There are no `plan`, `implement` or
1050
1126
  `review` commands in this release.
@@ -4,7 +4,7 @@ devflow/adapters/__init__.py,sha256=WcsjXQTKzHNzMAHx82-sdJQeR3ceHRVqLWTUtRlaraE,
4
4
  devflow/adapters/agents.py,sha256=OZnz7wAJNcIojtgaQIK1iB6QKWGgv2VCmoBp8M9DUKE,1423
5
5
  devflow/adapters/antigravity.py,sha256=tbhAWUNQt5fPemN_N8zEEdaBMPDRExpcXfF6obvvXvo,9124
6
6
  devflow/adapters/base.py,sha256=YggY_IwHExdybl5S9NjwZSlmmcw9Y6z7DhQsl3JLvXs,2055
7
- devflow/adapters/claude_code.py,sha256=El4wYuEgLMr4NAmZG58cVlpkSn_MCOAtQ7Qq2zFIOuI,3689
7
+ devflow/adapters/claude_code.py,sha256=Z43hjVFTcWh3OAGn2mVECpg425XCRptLZ_dyMoEhrtQ,4548
8
8
  devflow/adapters/codex.py,sha256=5EVBRlYg3ClYhvN1NmUfxhBrEURLryIZTpHQkyFtzx8,3616
9
9
  devflow/adapters/detector.py,sha256=92BkNAvWs2Vh8H6xJzMweBDCw6yuYVg7sV4LoSZ8KFo,3291
10
10
  devflow/adapters/instructions.py,sha256=AUje2tYnyI8yxnZQ5JlUjBON8Nz_yq4_yxpCz_DQoys,10885
@@ -21,20 +21,20 @@ devflow/commands/recover.py,sha256=sV9x5-30E_3XRBe7JItDiSG-pqrowRzjqOkC_eyrhFQ,2
21
21
  devflow/commands/reopen.py,sha256=bZiX-dyKgmtdKdV4FHwEwRCFvuuX5jezBCI7wIpkHYU,2971
22
22
  devflow/commands/security.py,sha256=lZlbMo34JHX46kBHRTSsZd4ANZ1mvxh6I-Nc6jNzuLI,2049
23
23
  devflow/commands/spec.py,sha256=7glxFHKuJd33mL6YayrxRJ6TViUmmQk5rijbNepsbig,16353
24
- devflow/commands/status.py,sha256=dLleIMLK39hRuQ3JdaUval70o0cIkMPKZOKTsNeML4Q,7407
24
+ devflow/commands/status.py,sha256=2rIPAZZnFvS3aAsHUNw8JaBrFq_l_8UGbURrKHIgXCo,7514
25
25
  devflow/core/__init__.py,sha256=hN7i4-PDaZ7y4P8qRpZl_lJvIiPyQaN1TDGnw2BecYU,427
26
26
  devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,13692
27
27
  devflow/core/clock.py,sha256=KZROv6o51Ln1EzK00ySCxfc7WPZqPlaQhFfjfdc_TMY,1651
28
28
  devflow/core/config.py,sha256=g_9ocRsrDLSsZZ5Sy1qlI7gi8WA2WlyiLUOZhcID2Ig,27065
29
29
  devflow/core/constitution.py,sha256=rPLc8Puv9nUMC_GZwzOqvr1B-4urdxAISr655od2IPM,5333
30
- devflow/core/discovery.py,sha256=drquy0yxRKblEEgnOBDNYkeyPKc2SXo6SIwQyZgDB2w,60337
30
+ devflow/core/discovery.py,sha256=YxCUvyfA0HLp2xEAI4frCks-5APNyTP0yBNCuVHDWZc,62649
31
31
  devflow/core/file_types.py,sha256=5S5YywOaTESDiln4kP7qyJFEjxHoiF6tSBbwuXNpDDc,566
32
32
  devflow/core/ports.py,sha256=6jlqeR40MNaz-IuZIAPimXpRKew-wMUab3KzelcTXsU,4541
33
33
  devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
34
34
  devflow/core/project.py,sha256=4OnudghY5N5rCOmafWO5Hk68M7T3-mOV0j0k0dh2luE,16891
35
35
  devflow/core/recovery.py,sha256=W2If6Ymb3ISwMN8IVQYCwptDUzhxejlF-P2NvMYyZP0,8818
36
36
  devflow/core/security_tools.py,sha256=F-JdGzycS-Vov_1SE5qciNVi31DqnnJXVqHqoDocSAA,8912
37
- devflow/core/spec_workflow.py,sha256=Ngma_-7MLsp96gNd2avVC81_SjWTAk4jscsQinmCml4,43961
37
+ devflow/core/spec_workflow.py,sha256=CTBDdKX8EkfHfrhUpjXY1r3QYwN-w5Du9cjSiViIhZg,44034
38
38
  devflow/core/specification.py,sha256=6b1-MRJjlPyzTwk5FzWCZJneAe0xy-xpnsmLZgMcA6Y,70036
39
39
  devflow/core/artifacts/__init__.py,sha256=gt9xahPynoxv75FMq1ZJx91ILTIv4ExuvX1Ymrxwr2c,627
40
40
  devflow/core/artifacts/errors.py,sha256=hwZxnLFcUTtEjDWtN6rUCkM69EN19LGVlc6HD-pNZyk,493
@@ -48,6 +48,8 @@ devflow/core/state/lock.py,sha256=94llvwHtCc5WOw-Uq8kDCu4iOBpRM4ccp6Q6fLZpYZ0,20
48
48
  devflow/core/state/manager.py,sha256=o4Qo2C3pJOpOS6Id-NB4hNeKbvvoTDwbf6E2Jv_j-pE,31876
49
49
  devflow/core/state/models.py,sha256=4GTrS34ymbJIyBeZkcCi0z0e1bsq67vdxRSnSQ9O3gc,4654
50
50
  devflow/core/state/transitions.py,sha256=Go0zLhxcujWhaZEGg7JMqcC_UJU_nEFEBbpKIqrCtrs,3581
51
+ devflow/hooks/__init__.py,sha256=WM0gYOH-p2ZFvJhE351jkPi7wXKduskvj5Mw_LUQqnY,64
52
+ devflow/hooks/claude_guard.py,sha256=VL4KKVR-GNqFo8S2fmpsod65zXcZyFJ0IOus_pRWeQY,2325
51
53
  devflow/models/__init__.py,sha256=hXX3IDZbHgklmuzVVlpiRs5SSPnrkO5kN1-k2hIEk7E,156
52
54
  devflow/models/profile.py,sha256=j8KifeDQSN-wvzDJe1GGQQN9Vw7S2oncj75NNHpwpZs,2001
53
55
  devflow/models/project.py,sha256=fbxNk2db6Tsa8DXPzAFf8OqgbbY6gWJ7e07_kBO_QHw,973
@@ -62,11 +64,11 @@ devflow/profiles/django-backend/constitution/django-standards.md,sha256=0M-XmxOp
62
64
  devflow/profiles/fastapi-backend/profile.yaml,sha256=5_b-zWSX0HV-tw_2ntRCSa4DyP3NUqYWmxOh55pXYmc,321
63
65
  devflow/profiles/fastapi-backend/constitution/fastapi-standards.md,sha256=iFKib4i_9z4wBQ9thl-uftg5g-CHwvmFWzMtLgA7CBk,1949
64
66
  devflow/prompts/__init__.py,sha256=DttfMavd0nfmhKkVE46VhpIHkGS-4amYfufABEM20xI,19120
65
- devflow/prompts/discovery-repair.md,sha256=YfTfrrw5uUZvC_x6X2lrYEDkMNhanhoe0ER3Yc2-rgI,1135
66
- devflow/prompts/discovery.md,sha256=4eApdy5QwT9nFeXpgMA4IfPaw5uCciZysOWKgpZ4vPM,14852
67
+ devflow/prompts/discovery-repair.md,sha256=hpw8pFaUC8OiHK_KTI2nMF45f77CqcFuDYzn9o6X5ao,1240
68
+ devflow/prompts/discovery.md,sha256=QDwfcjmb76yJH4DKMyoZ4QRtrdkDwljrWr3gn2MYCn8,14920
67
69
  devflow/prompts/spec.md,sha256=Kze_ZvE5yn0tfncvr98Nw6GQLEZlJmcZFWDNUpLMnlc,7689
68
- devflow_toolkit-0.3.26.dist-info/METADATA,sha256=PKCGqkfPEz1q1SrvI1i81pwS4n4LXRCckNhh7xGfC_I,52023
69
- devflow_toolkit-0.3.26.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
70
- devflow_toolkit-0.3.26.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
71
- devflow_toolkit-0.3.26.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
72
- devflow_toolkit-0.3.26.dist-info/RECORD,,
70
+ devflow_toolkit-0.3.28.dist-info/METADATA,sha256=R78t2XrXxUh0-lKvALghxTcVr_SvX3iBPmxg-BUNego,55027
71
+ devflow_toolkit-0.3.28.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
72
+ devflow_toolkit-0.3.28.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
73
+ devflow_toolkit-0.3.28.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
74
+ devflow_toolkit-0.3.28.dist-info/RECORD,,