devflow-toolkit 0.3.1__py3-none-any.whl → 0.3.2__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
@@ -6,7 +6,9 @@ import typer
6
6
  from rich.console import Console
7
7
 
8
8
  from devflow.commands.approve import approve as approve_command
9
+ from devflow.commands.doctor import doctor as doctor_command
9
10
  from devflow.commands.init import init as init_command
11
+ from devflow.commands.recover import recover as recover_command
10
12
  from devflow.commands.spec import spec as spec_command
11
13
  from devflow.commands.status import status as status_command
12
14
 
@@ -23,6 +25,8 @@ app.command("init")(init_command)
23
25
  app.command("spec")(spec_command)
24
26
  app.command("approve")(approve_command)
25
27
  app.command("status")(status_command)
28
+ app.command("doctor")(doctor_command)
29
+ app.command("recover")(recover_command)
26
30
 
27
31
 
28
32
  @app.command()
@@ -31,7 +35,7 @@ def version() -> None:
31
35
  try:
32
36
  current_version = package_version("devflow-toolkit")
33
37
  except PackageNotFoundError:
34
- current_version = "0.3.1"
38
+ current_version = "0.3.2"
35
39
  console.print(f"DevFlow v{current_version}")
36
40
 
37
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.1. "
60
+ f"Stage '{stage}' is not available in DevFlow 0.3.2. "
61
61
  "Only the 'spec' stage can be approved."
62
62
  )
63
63
  raise UnsupportedStageError(msg)
@@ -0,0 +1,133 @@
1
+ """Implementation of the devflow doctor command."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pathlib import Path
6
+
7
+ import typer
8
+ from rich.console import Console
9
+
10
+ from devflow.core.artifacts.errors import ArtifactError
11
+ from devflow.core.config import ConfigError, ConfigManager
12
+ from devflow.core.discovery import DiscoveryError
13
+ from devflow.core.project import ProjectDetector
14
+ from devflow.core.recovery import ChangeInspection, inspect_change
15
+ from devflow.core.state import StateError, WorkflowLocator
16
+
17
+ console = Console()
18
+ error_console = Console(stderr=True)
19
+
20
+
21
+ def doctor(
22
+ spec_id: str = typer.Argument(
23
+ ...,
24
+ help="Change id (001) or change directory (001-add-health).",
25
+ ),
26
+ path: Path = typer.Argument(
27
+ Path("."),
28
+ help="Project root or a path inside it.",
29
+ ),
30
+ ) -> None:
31
+ """Diagnose a change, including artifacts written without state."""
32
+ try:
33
+ healthy = _doctor(spec_id, path)
34
+ except (
35
+ ArtifactError,
36
+ ConfigError,
37
+ DiscoveryError,
38
+ StateError,
39
+ FileNotFoundError,
40
+ NotADirectoryError,
41
+ OSError,
42
+ ) as error:
43
+ error_console.print(f"[red]Error:[/red] {error}")
44
+ raise typer.Exit(code=1) from error
45
+ if not healthy:
46
+ raise typer.Exit(code=1)
47
+
48
+
49
+ def _doctor(spec_id: str, path: Path) -> bool:
50
+ root = ProjectDetector().find_root(path)
51
+ config = ConfigManager(root).load()
52
+ location = WorkflowLocator(config.specifications_path).find(spec_id)
53
+ inspection = inspect_change(config, location)
54
+
55
+ console.print(f"[bold]Change:[/bold] {location.change}")
56
+ console.print(f"[bold]Directory:[/bold] {location.directory}")
57
+ console.print(
58
+ "[bold]Workflow:[/bold] "
59
+ + (
60
+ f"present ({inspection.workflow_status})"
61
+ if inspection.workflow_present
62
+ else "[yellow]missing[/yellow]"
63
+ )
64
+ )
65
+ console.print(
66
+ "[bold]Events:[/bold] "
67
+ + ("present" if inspection.events_present else "[yellow]missing[/yellow]")
68
+ )
69
+ _print_discovery(inspection)
70
+ _print_spec(inspection)
71
+
72
+ if inspection.warnings:
73
+ console.print("\n[bold]Warnings[/bold]")
74
+ for warning in inspection.warnings:
75
+ console.print(f"[yellow]- {warning}[/yellow]")
76
+ if inspection.orphans:
77
+ console.print("\n[bold]Orphan artifacts[/bold]")
78
+ for orphan in inspection.orphans:
79
+ console.print(f"[yellow]- {orphan} is not registered[/yellow]")
80
+
81
+ if inspection.healthy:
82
+ console.print("\n[bold green]Diagnosis: healthy.[/bold green]")
83
+ return True
84
+
85
+ if inspection.can_recover:
86
+ console.print(
87
+ "\n[bold yellow]Diagnosis: recoverable without regenerating the "
88
+ "artifacts.[/bold yellow]"
89
+ )
90
+ console.print(
91
+ "[bold]Next:[/bold] "
92
+ f"devflow recover {location.spec_id} {root}"
93
+ )
94
+ else:
95
+ console.print(
96
+ "\n[bold yellow]Diagnosis: needs attention.[/bold yellow]"
97
+ )
98
+ console.print(
99
+ "[dim]Resolve the issues above before approving or continuing "
100
+ "this change.[/dim]"
101
+ )
102
+ return False
103
+
104
+
105
+ def _print_discovery(inspection: ChangeInspection) -> None:
106
+ console.print("\n[bold]Discovery[/bold]")
107
+ if not inspection.discovery_present:
108
+ console.print(" [yellow]missing discovery.yaml[/yellow]")
109
+ return
110
+ if inspection.discovery_error:
111
+ console.print(
112
+ f" [yellow]invalid: {inspection.discovery_error}[/yellow]"
113
+ )
114
+ return
115
+ console.print(
116
+ f" status: {inspection.discovery_status} · "
117
+ f"digest: {inspection.discovery_digest}"
118
+ )
119
+
120
+
121
+ def _print_spec(inspection: ChangeInspection) -> None:
122
+ console.print("\n[bold]Specification[/bold]")
123
+ if not inspection.spec_present:
124
+ console.print(" [yellow]missing spec.md[/yellow]")
125
+ return
126
+ if inspection.spec_valid:
127
+ console.print(
128
+ f" valid · digest: {inspection.spec_digest}"
129
+ )
130
+ else:
131
+ console.print(
132
+ f" [yellow]invalid: {inspection.spec_error}[/yellow]"
133
+ )
@@ -0,0 +1,78 @@
1
+ """Implementation of the devflow recover command."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pathlib import Path
6
+
7
+ import typer
8
+ from rich.console import Console
9
+
10
+ from devflow.core.artifacts.errors import ArtifactError
11
+ from devflow.core.config import ConfigError, ConfigManager
12
+ from devflow.core.discovery import DiscoveryError
13
+ from devflow.core.project import ProjectDetector
14
+ from devflow.core.recovery import recover_change
15
+ from devflow.core.state import StateError, WorkflowLocator
16
+
17
+ console = Console()
18
+ error_console = Console(stderr=True)
19
+
20
+
21
+ def recover(
22
+ spec_id: str = typer.Argument(
23
+ ...,
24
+ help="Change id (001) or change directory (001-add-health).",
25
+ ),
26
+ path: Path = typer.Argument(
27
+ Path("."),
28
+ help="Project root or a path inside it.",
29
+ ),
30
+ ) -> None:
31
+ """Register existing valid artifacts in a missing workflow state."""
32
+ try:
33
+ _recover(spec_id, path)
34
+ except (
35
+ ArtifactError,
36
+ ConfigError,
37
+ DiscoveryError,
38
+ StateError,
39
+ FileNotFoundError,
40
+ NotADirectoryError,
41
+ OSError,
42
+ ) as error:
43
+ error_console.print(f"[red]Error:[/red] {error}")
44
+ raise typer.Exit(code=1) from error
45
+
46
+
47
+ def _recover(spec_id: str, path: Path) -> None:
48
+ root = ProjectDetector().find_root(path)
49
+ config = ConfigManager(root).load()
50
+ location = WorkflowLocator(config.specifications_path).find(spec_id)
51
+ result = recover_change(config, location)
52
+
53
+ if not result.recovered:
54
+ console.print(
55
+ f"[bold]{location.change}[/bold] already has workflow state "
56
+ f"([bold]{result.state.status}[/bold]). Nothing to recover."
57
+ )
58
+ console.print(
59
+ f"[dim]Run 'devflow status {location.spec_id}' to inspect it.[/dim]"
60
+ )
61
+ return
62
+
63
+ console.print(
64
+ f"[bold green]Recovered[/bold green] {location.change} without "
65
+ "regenerating its artifacts."
66
+ )
67
+ console.print(f"Workflow status: {result.state.status}")
68
+ console.print(
69
+ "Registered: discovery "
70
+ f"{result.inspection.discovery_digest}"
71
+ )
72
+ console.print(
73
+ f"Registered: spec {result.inspection.spec_digest}"
74
+ )
75
+ console.print(
76
+ "\n[bold]Next:[/bold] review the specification, then run "
77
+ f"'devflow approve {location.spec_id}'."
78
+ )
@@ -0,0 +1,259 @@
1
+ """Inspect and recover changes written without workflow state."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import dataclass
6
+
7
+ from devflow.core.architecture import (
8
+ ArchitectureError,
9
+ ArchitectureManifest,
10
+ ArchitectureManifestLoader,
11
+ )
12
+ from devflow.core.artifacts.errors import ArtifactError
13
+ from devflow.core.artifacts.store import ArtifactStore
14
+ from devflow.core.config import DevFlowConfig
15
+ from devflow.core.discovery import DiscoveryError, DiscoveryManager
16
+ from devflow.core.specification import SpecificationManager
17
+ from devflow.core.state import (
18
+ ChangeLocation,
19
+ StateError,
20
+ WorkflowLocator,
21
+ WorkflowStateManager,
22
+ )
23
+ from devflow.core.state.models import WorkflowState
24
+
25
+
26
+ @dataclass(frozen=True)
27
+ class ChangeInspection:
28
+ """Read-only diagnostic view of one change directory."""
29
+
30
+ location: ChangeLocation
31
+ events_present: bool
32
+ workflow_present: bool
33
+ workflow_status: str
34
+ discovery_present: bool
35
+ discovery_complete: bool
36
+ discovery_status: str
37
+ discovery_digest: str
38
+ discovery_error: str
39
+ spec_present: bool
40
+ spec_valid: bool
41
+ spec_digest: str
42
+ spec_error: str
43
+ architecture_digest: str
44
+ warnings: tuple[str, ...] = ()
45
+ orphans: tuple[str, ...] = ()
46
+ can_recover: bool = False
47
+
48
+ @property
49
+ def healthy(self) -> bool:
50
+ """Return whether the change has a complete, current workflow."""
51
+ return (
52
+ self.events_present
53
+ and self.workflow_present
54
+ and not self.warnings
55
+ and not self.orphans
56
+ )
57
+
58
+
59
+ @dataclass(frozen=True)
60
+ class RecoveryResult:
61
+ """Outcome of registering orphaned artifacts."""
62
+
63
+ inspection: ChangeInspection
64
+ state: WorkflowState
65
+ recovered: bool = True
66
+
67
+
68
+ def inspect_change(
69
+ config: DevFlowConfig,
70
+ location: ChangeLocation,
71
+ ) -> ChangeInspection:
72
+ """Inspect workflow, Discovery and specification without repairing."""
73
+ store = ArtifactStore(config.root)
74
+ manager = WorkflowStateManager(
75
+ config.specifications_path,
76
+ project_root=config.root,
77
+ )
78
+ events_present = location.events_path.is_file()
79
+ workflow_present = location.workflow_path.is_file()
80
+ warnings: list[str] = []
81
+ orphans: tuple[str, ...] = ()
82
+ workflow_status = ""
83
+
84
+ if events_present:
85
+ try:
86
+ current = manager.status(location)
87
+ except StateError as error:
88
+ warnings.append(str(error))
89
+ else:
90
+ workflow_status = current.state.status
91
+ warnings.extend(current.warnings)
92
+ orphans = current.orphans
93
+ elif workflow_present:
94
+ warnings.append(
95
+ "workflow.yaml exists without events.jsonl; the projection cannot "
96
+ "be trusted. Restore the event log or remove the orphan projection."
97
+ )
98
+
99
+ discovery_path = location.directory / "discovery.yaml"
100
+ discovery_present = discovery_path.is_file()
101
+ discovery_complete = False
102
+ discovery_status = ""
103
+ discovery_digest = ""
104
+ discovery_error = ""
105
+ if discovery_present:
106
+ try:
107
+ discovery = DiscoveryManager(config.root).load(
108
+ location.directory,
109
+ required=True,
110
+ )
111
+ except DiscoveryError as error:
112
+ discovery_error = str(error)
113
+ else:
114
+ if discovery is not None:
115
+ discovery_complete = discovery.is_complete
116
+ discovery_status = discovery.status
117
+ if not discovery_error:
118
+ try:
119
+ discovery_digest = store.digest_file(discovery_path)
120
+ except ArtifactError as error:
121
+ discovery_error = str(error)
122
+
123
+ architecture: ArchitectureManifest | None = None
124
+ architecture_digest = ""
125
+ try:
126
+ architecture = ArchitectureManifestLoader().load(
127
+ config.root,
128
+ required=config.project_mode == "greenfield",
129
+ )
130
+ except ArchitectureError as error:
131
+ warnings.append(f"Architecture manifest: {error}")
132
+ else:
133
+ if architecture is not None:
134
+ architecture_digest = architecture.digest
135
+
136
+ spec_path = location.directory / "spec.md"
137
+ spec_present = spec_path.is_file()
138
+ spec_valid = False
139
+ spec_digest = ""
140
+ spec_error = ""
141
+ if spec_present:
142
+ try:
143
+ spec_digest = store.digest_file(spec_path)
144
+ spec_text = spec_path.read_text(encoding="utf-8")
145
+ spec_valid, spec_error = SpecificationManager().validate(
146
+ spec_text,
147
+ project_mode=config.project_mode,
148
+ architecture=architecture,
149
+ discovery_digest=discovery_digest or None,
150
+ )
151
+ except (ArtifactError, OSError) as error:
152
+ spec_error = str(error)
153
+ else:
154
+ spec_error = "spec.md is missing"
155
+
156
+ can_recover = (
157
+ not events_present
158
+ and not workflow_present
159
+ and discovery_complete
160
+ and spec_valid
161
+ )
162
+
163
+ return ChangeInspection(
164
+ location=location,
165
+ events_present=events_present,
166
+ workflow_present=workflow_present,
167
+ workflow_status=workflow_status,
168
+ discovery_present=discovery_present,
169
+ discovery_complete=discovery_complete,
170
+ discovery_status=discovery_status,
171
+ discovery_digest=discovery_digest,
172
+ discovery_error=discovery_error,
173
+ spec_present=spec_present,
174
+ spec_valid=spec_valid,
175
+ spec_digest=spec_digest,
176
+ spec_error=spec_error,
177
+ architecture_digest=architecture_digest,
178
+ warnings=tuple(warnings),
179
+ orphans=orphans,
180
+ can_recover=can_recover,
181
+ )
182
+
183
+
184
+ def recover_change(
185
+ config: DevFlowConfig,
186
+ location: ChangeLocation,
187
+ ) -> RecoveryResult:
188
+ """Register existing valid artifacts in a missing workflow state.
189
+
190
+ Running this function again once a workflow exists is safe: it returns
191
+ the current state without changing it.
192
+ """
193
+ inspection = inspect_change(config, location)
194
+ manager = WorkflowStateManager(
195
+ config.specifications_path,
196
+ project_root=config.root,
197
+ )
198
+ if inspection.events_present:
199
+ return RecoveryResult(
200
+ inspection=inspection,
201
+ state=manager.status(location).state,
202
+ recovered=False,
203
+ )
204
+ if inspection.workflow_present:
205
+ raise StateError(
206
+ f"Cannot recover {location.change}: workflow.yaml exists without "
207
+ "events.jsonl. Restore the event log or remove the orphan "
208
+ "projection, then run 'devflow doctor' again."
209
+ )
210
+ if not inspection.discovery_present:
211
+ raise StateError(
212
+ f"Cannot recover {location.change}: discovery.yaml is missing. "
213
+ "Run 'devflow spec' first."
214
+ )
215
+ if not inspection.discovery_complete:
216
+ detail = inspection.discovery_error or (
217
+ f"Discovery status is '{inspection.discovery_status}'."
218
+ )
219
+ raise StateError(
220
+ f"Cannot recover {location.change}: Discovery is not complete. "
221
+ f"{detail} Resolve it with 'devflow spec --continue "
222
+ f"{location.spec_id}'."
223
+ )
224
+ if not inspection.spec_present:
225
+ raise StateError(
226
+ f"Cannot recover {location.change}: spec.md is missing. "
227
+ f"Run 'devflow spec --continue {location.spec_id}' first."
228
+ )
229
+ if not inspection.spec_valid:
230
+ raise StateError(
231
+ f"Cannot recover {location.change}: spec.md is invalid. "
232
+ f"{inspection.spec_error}"
233
+ )
234
+
235
+ manager.initialize_change(location.directory)
236
+ location = WorkflowLocator(config.specifications_path).from_directory(
237
+ location.directory
238
+ )
239
+ manager.record_artifact(
240
+ location,
241
+ stage="discovery",
242
+ path=location.directory / "discovery.yaml",
243
+ validated=True,
244
+ source="existing",
245
+ )
246
+ metadata: dict[str, str] = {
247
+ "discovery_digest": inspection.discovery_digest,
248
+ }
249
+ if inspection.architecture_digest:
250
+ metadata["architecture_digest"] = inspection.architecture_digest
251
+ state = manager.record_artifact(
252
+ location,
253
+ stage="spec",
254
+ path=location.directory / "spec.md",
255
+ validated=True,
256
+ source="existing",
257
+ metadata=metadata,
258
+ )
259
+ return RecoveryResult(inspection=inspection, state=state)
@@ -842,7 +842,9 @@ class WorkflowStateManager:
842
842
  raise InvalidStateError(msg)
843
843
  msg = (
844
844
  f"No workflow state found for {location.change}. "
845
- "Run 'devflow spec' first."
845
+ "Run 'devflow spec' first, or run 'devflow doctor "
846
+ f"{location.spec_id}' if the change already has context.md, "
847
+ "discovery.yaml and spec.md."
846
848
  )
847
849
  raise ChangeNotFoundError(msg)
848
850
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.1
3
+ Version: 0.3.2
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.1` MVP. It implements the **discovery and
45
+ This is the `0.3.2` 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
@@ -114,7 +114,7 @@ pip install devflow-toolkit
114
114
  To install a specific built artifact instead:
115
115
 
116
116
  ```bash
117
- pip install devflow_toolkit-0.3.1-py3-none-any.whl
117
+ pip install devflow_toolkit-0.3.2-py3-none-any.whl
118
118
  ```
119
119
 
120
120
  Verify the installation:
@@ -278,7 +278,7 @@ as an architectural constraint when it is present.
278
278
 
279
279
  ### Harnesses
280
280
 
281
- | Harness | Status in 0.3.1 |
281
+ | Harness | Status in 0.3.2 |
282
282
  | --- | --- |
283
283
  | OpenCode | Verified end-to-end in non-interactive mode |
284
284
  | Codex | Integration files are generated, but not verified for this release |
@@ -409,8 +409,10 @@ require Discovery.
409
409
  5. Review `spec.md` and resolve any remaining non-blocking questions.
410
410
  6. Record the approval.
411
411
  7. Inspect the state, artifacts and approval digests.
412
+ 8. If artifacts exist without workflow state, diagnose with
413
+ `devflow doctor <id>` and repair with `devflow recover <id>`.
412
414
 
413
- Available commands in `0.3.1`:
415
+ Available commands in `0.3.2`:
414
416
 
415
417
  | Command | Status |
416
418
  | --- | --- |
@@ -418,6 +420,8 @@ Available commands in `0.3.1`:
418
420
  | `devflow spec` | Implemented: Discovery, specification, and `--continue` |
419
421
  | `devflow approve <id> --stage spec` | Implemented |
420
422
  | `devflow status <id>` | Implemented |
423
+ | `devflow doctor <id>` | Implemented: read-only diagnostics |
424
+ | `devflow recover <id>` | Implemented: register existing artifacts |
421
425
  | `devflow version` | Implemented |
422
426
  | `devflow plan` | Not implemented |
423
427
  | `devflow approve <id> --stage plan` | Rejected |
@@ -504,6 +508,45 @@ devflow status 001-add-a-get-patients-endpoint
504
508
  approvals, stale artifacts and orphan files. It reconciles
505
509
  `workflow.yaml` from `events.jsonl` before reporting.
506
510
 
511
+ ### Diagnose and recover a change
512
+
513
+ If `context.md`, `discovery.yaml` or `spec.md` were written outside
514
+ `devflow spec`, the change can exist on disk without `workflow.yaml`,
515
+ `events.jsonl` or `runs/`. In that case `status` reports that no workflow
516
+ state was found.
517
+
518
+ Diagnose the change without changing anything:
519
+
520
+ ```bash
521
+ devflow doctor 001
522
+ ```
523
+
524
+ `doctor` checks the workflow, Discovery and specification, reports
525
+ orphan artifacts, and exits non-zero when the change is unhealthy.
526
+
527
+ If `discovery.yaml` is complete and `spec.md` is structurally valid,
528
+ register the existing artifacts without regenerating them:
529
+
530
+ ```bash
531
+ devflow recover 001
532
+ ```
533
+
534
+ `recover` creates the missing workflow state and registers Discovery and
535
+ the specification with `source: existing`. It preserves the artifact
536
+ bytes and their digests, does not modify `spec.md`, and does not approve
537
+ the change. Running it again after recovery is a no-op.
538
+
539
+ Recovery does not bypass review. After recovering, inspect
540
+ `devflow status 001`, then approve explicitly:
541
+
542
+ ```bash
543
+ devflow approve 001 --stage spec
544
+ ```
545
+
546
+ If Discovery is incomplete or `spec.md` is invalid, `recover` refuses to
547
+ register the artifacts and names the problem. Resolve it with
548
+ `devflow spec --continue 001` first.
549
+
507
550
  ### Approve the specification
508
551
 
509
552
  ```bash
@@ -511,7 +554,7 @@ devflow approve 001 --stage spec
511
554
  ```
512
555
 
513
556
  Approval is explicit and binds the decision to the current artifact
514
- digests. For a `0.3.1` change it binds `spec.md`, `discovery.yaml` and,
557
+ digests. For a `0.3.2` change it binds `spec.md`, `discovery.yaml` and,
515
558
  when a manifest applies, the architecture manifest digest. Repeating the
516
559
  same approval is a no-op. If an artifact changes after validation,
517
560
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -521,7 +564,7 @@ Discovery must be complete before approval. If it is not, approval fails
521
564
  and names the pending questions and assumptions. Legacy `0.2.0` changes
522
565
  without `discovery.yaml` remain approvable with a warning.
523
566
 
524
- Only the `spec` stage is available in `0.3.1`. `--stage plan` and
567
+ Only the `spec` stage is available in `0.3.2`. `--stage plan` and
525
568
  `--stage review` are rejected. There are no `plan`, `implement` or
526
569
  `review` commands in this release.
527
570
 
@@ -545,6 +588,7 @@ my-project/
545
588
  │ ├── spec.md # only when Discovery is complete
546
589
  │ ├── workflow.yaml # projection of events.jsonl
547
590
  │ ├── events.jsonl # append-only source of truth
591
+ │ ├── runs/ # agent run metadata
548
592
  │ └── .lock # per-change advisory lock
549
593
  ├── AGENTS.md
550
594
  ├── opencode.json # when OpenCode is selected
@@ -1,5 +1,5 @@
1
1
  devflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- devflow/cli.py,sha256=lCnMvIA62Tew5E1VEn7T6ZKCyWZnHDYUpmvbv57HSdM,965
2
+ devflow/cli.py,sha256=V1G0D8yMDYeEtLoU7E0W_mbpw0CkqeVBmT61Ftt-kt0,1168
3
3
  devflow/adapters/__init__.py,sha256=WcsjXQTKzHNzMAHx82-sdJQeR3ceHRVqLWTUtRlaraE,867
4
4
  devflow/adapters/agents.py,sha256=4d54hDfBgnIP4zOKcZqAG-Qa-jfuuxzFL-akZS2qYtw,1309
5
5
  devflow/adapters/base.py,sha256=YggY_IwHExdybl5S9NjwZSlmmcw9Y6z7DhQsl3JLvXs,2055
@@ -11,9 +11,11 @@ devflow/adapters/kiro.py,sha256=8l5y7ZYffg_T9eciM28NKGHil_zgdT96mAdYK4oBZ0U,6111
11
11
  devflow/adapters/opencode.py,sha256=DonmvAKyWK2v5-X2XrL0n2iptFp7qLgOlh-X8n_8I-w,6492
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=WzDItynHqnvAWzn_1kzo2ZkRsRbAEtLNsc20ySC6WHw,2740
14
+ devflow/commands/approve.py,sha256=h9X6noFrjxWFIQfJ7lVvLfIb0jaxDduFm1xwL5VaREQ,2740
15
+ devflow/commands/doctor.py,sha256=7LQMl26arw-ofoET8BL18_AcBpIniapYDrVPhCb_Mik,3791
15
16
  devflow/commands/harness.py,sha256=r_RSAi7gXK8QNucC6eV-RzXHJycmmR03dzihqLVgdiU,2791
16
17
  devflow/commands/init.py,sha256=B-rW-etZ-Rptt9YW43YZ5mN_l3gfGczuXW9kpmHDOWQ,15420
18
+ devflow/commands/recover.py,sha256=sV9x5-30E_3XRBe7JItDiSG-pqrowRzjqOkC_eyrhFQ,2165
17
19
  devflow/commands/spec.py,sha256=_h2-QIXxVME2iPPD9mIk6uabPnkQTdXwK9dfqp_cDZ0,14558
18
20
  devflow/commands/status.py,sha256=HtBCIF8U0bmkyS6wS7IEvggo89FzGRGBCsFfPrKzLpU,4369
19
21
  devflow/core/__init__.py,sha256=hN7i4-PDaZ7y4P8qRpZl_lJvIiPyQaN1TDGnw2BecYU,427
@@ -25,6 +27,7 @@ devflow/core/discovery.py,sha256=xFlY9aLLs8NgJGe13PmjYIB8dibUgOv1i6e8i5QG650,352
25
27
  devflow/core/ports.py,sha256=R6ybjAdJEdtTKFc4FMFTX0TVwRfDwPoWCsu-BHrhI5A,4071
26
28
  devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
27
29
  devflow/core/project.py,sha256=SINU6KSRIpX5rPlPy8nWMfQuHas_VF1bAIVafhbcgCg,13330
30
+ devflow/core/recovery.py,sha256=n_-sOc7SAwzMajlXBIJiJ9MX8xx56yd88g3bl300BSA,7535
28
31
  devflow/core/spec_workflow.py,sha256=uCpvImVIL7kVyVjUsiePccSy3RNw9jX6Pj06r47gCao,28534
29
32
  devflow/core/specification.py,sha256=aHAL_U8Tl0YBokUJKneqUyCPenY6xtcPlZUgKmUsEMw,65719
30
33
  devflow/core/artifacts/__init__.py,sha256=gt9xahPynoxv75FMq1ZJx91ILTIv4ExuvX1Ymrxwr2c,627
@@ -36,7 +39,7 @@ devflow/core/state/errors.py,sha256=dgF-x4TCxQTXc1OifyT8UZSU-0PBhATjO1x6OTMagac,
36
39
  devflow/core/state/events.py,sha256=IfwFCC0jbrQsH1tzADyqwm8HtWo5fR7QDD85M6JH8N0,20698
37
40
  devflow/core/state/locator.py,sha256=J6ZnVzcY_KzwKqBXbAOnfG9FrRzSCaYMqFeMQ7ptjIc,3256
38
41
  devflow/core/state/lock.py,sha256=94llvwHtCc5WOw-Uq8kDCu4iOBpRM4ccp6Q6fLZpYZ0,2089
39
- devflow/core/state/manager.py,sha256=eCCylS-qcECTGOBJi_qS54nv86u-bYKMcNauHDz7sFk,27850
42
+ devflow/core/state/manager.py,sha256=L7Ksn91rI4rlr7bZbIENUS2_ntS0CmRKEdO2dTAWA3I,27982
40
43
  devflow/core/state/models.py,sha256=4GTrS34ymbJIyBeZkcCi0z0e1bsq67vdxRSnSQ9O3gc,4654
41
44
  devflow/core/state/transitions.py,sha256=Go0zLhxcujWhaZEGg7JMqcC_UJU_nEFEBbpKIqrCtrs,3581
42
45
  devflow/models/__init__.py,sha256=hXX3IDZbHgklmuzVVlpiRs5SSPnrkO5kN1-k2hIEk7E,156
@@ -56,8 +59,8 @@ devflow/prompts/__init__.py,sha256=j30n28MIIGJtTV-9jAutke0icTj5WXJbfUBYbQUA_QI,7
56
59
  devflow/prompts/discovery.md,sha256=rwuCgD70yhFCw3MbygPr5jOxGof2_naKcKUVOlvmRRc,3716
57
60
  devflow/prompts/spec.greenfield.md,sha256=HEq2_rC-Aom9XFzYyyHdtedSECJe0aK8jz5WbNLL5MY,4724
58
61
  devflow/prompts/spec.md,sha256=b1cVZNlOG197JxhMZlL5xA1sThDPsCDcAuLTrmkXzBk,3392
59
- devflow_toolkit-0.3.1.dist-info/METADATA,sha256=C_h2XeyCEVDXgjO7emxt5QcbTlVAiPIkfUPkjySTtkw,23010
60
- devflow_toolkit-0.3.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
61
- devflow_toolkit-0.3.1.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
62
- devflow_toolkit-0.3.1.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
63
- devflow_toolkit-0.3.1.dist-info/RECORD,,
62
+ devflow_toolkit-0.3.2.dist-info/METADATA,sha256=sGdZiE4WRYSyz5FXtBmjl1_14mdBxMz5-69T1A6Psz4,24573
63
+ devflow_toolkit-0.3.2.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
64
+ devflow_toolkit-0.3.2.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
65
+ devflow_toolkit-0.3.2.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
66
+ devflow_toolkit-0.3.2.dist-info/RECORD,,