devflow-toolkit 0.3.14__py3-none-any.whl → 0.3.15__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/antigravity.py +282 -0
- devflow/adapters/opencode.py +18 -3
- devflow/adapters/registry.py +2 -0
- devflow/cli.py +1 -1
- devflow/commands/approve.py +1 -1
- devflow/commands/harness.py +2 -1
- devflow/commands/init.py +2 -1
- devflow/commands/spec.py +1 -1
- devflow/core/config.py +4 -0
- devflow/core/spec_workflow.py +1 -0
- devflow/prompts/__init__.py +32 -0
- devflow/prompts/discovery.md +1 -1
- {devflow_toolkit-0.3.14.dist-info → devflow_toolkit-0.3.15.dist-info}/METADATA +34 -11
- {devflow_toolkit-0.3.14.dist-info → devflow_toolkit-0.3.15.dist-info}/RECORD +17 -16
- {devflow_toolkit-0.3.14.dist-info → devflow_toolkit-0.3.15.dist-info}/WHEEL +0 -0
- {devflow_toolkit-0.3.14.dist-info → devflow_toolkit-0.3.15.dist-info}/entry_points.txt +0 -0
- {devflow_toolkit-0.3.14.dist-info → devflow_toolkit-0.3.15.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"""Google Antigravity (``agy``) harness adapter."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
import yaml
|
|
10
|
+
|
|
11
|
+
from devflow.adapters.base import (
|
|
12
|
+
FileChange,
|
|
13
|
+
HarnessAdapter,
|
|
14
|
+
Invocation,
|
|
15
|
+
RunContext,
|
|
16
|
+
SetupContext,
|
|
17
|
+
SetupResult,
|
|
18
|
+
)
|
|
19
|
+
from devflow.adapters.instructions import (
|
|
20
|
+
MANAGED_MARKER,
|
|
21
|
+
render_agent_instructions,
|
|
22
|
+
write_gitignore_entries,
|
|
23
|
+
write_text_managed,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
INTERACTIVE_AGENT = "devflow-spec"
|
|
27
|
+
READONLY_AGENT = "devflow-spec-readonly"
|
|
28
|
+
|
|
29
|
+
_READ_TOOLS = ["read_file"]
|
|
30
|
+
_WRITE_TOOLS = ["write_file"]
|
|
31
|
+
_QUESTION_TOOLS = ["ask_question"]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class AntigravityAdapter(HarnessAdapter):
|
|
35
|
+
"""Generate Antigravity custom agents and invoke ``agy``."""
|
|
36
|
+
|
|
37
|
+
name = "antigravity"
|
|
38
|
+
display_name = "Antigravity"
|
|
39
|
+
executable = "agy"
|
|
40
|
+
|
|
41
|
+
def setup(self, context: SetupContext) -> SetupResult:
|
|
42
|
+
changes: list[FileChange] = []
|
|
43
|
+
warnings: list[str] = []
|
|
44
|
+
ignored: list[str] = []
|
|
45
|
+
|
|
46
|
+
instructions = render_agent_instructions(
|
|
47
|
+
project=context.project,
|
|
48
|
+
profiles=list(context.profiles),
|
|
49
|
+
constitution_files=list(context.constitution_files),
|
|
50
|
+
config=context.config,
|
|
51
|
+
)
|
|
52
|
+
result = write_text_managed(
|
|
53
|
+
context.root / "AGENTS.md",
|
|
54
|
+
instructions,
|
|
55
|
+
root=context.root,
|
|
56
|
+
)
|
|
57
|
+
changes.append(FileChange(path=result.path, status=result.status))
|
|
58
|
+
if result.status != "skipped":
|
|
59
|
+
ignored.append("AGENTS.md")
|
|
60
|
+
else:
|
|
61
|
+
warnings.append(
|
|
62
|
+
"AGENTS.md contains unmanaged content and was left untouched."
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
agents_directory = context.root / ".agents" / "agents"
|
|
66
|
+
interactive = write_text_managed(
|
|
67
|
+
agents_directory / f"{INTERACTIVE_AGENT}.md",
|
|
68
|
+
self._render_agent(
|
|
69
|
+
name=INTERACTIVE_AGENT,
|
|
70
|
+
description=(
|
|
71
|
+
"DevFlow specification agent. Reads the project, asks "
|
|
72
|
+
"clarifying questions and writes only DevFlow specs."
|
|
73
|
+
),
|
|
74
|
+
context=context,
|
|
75
|
+
interactive=True,
|
|
76
|
+
),
|
|
77
|
+
root=context.root,
|
|
78
|
+
)
|
|
79
|
+
changes.append(
|
|
80
|
+
FileChange(path=interactive.path, status=interactive.status)
|
|
81
|
+
)
|
|
82
|
+
if interactive.status != "skipped":
|
|
83
|
+
ignored.append(f".agents/agents/{INTERACTIVE_AGENT}.md")
|
|
84
|
+
else:
|
|
85
|
+
warnings.append(
|
|
86
|
+
f"Existing .agents/agents/{INTERACTIVE_AGENT}.md is unmanaged "
|
|
87
|
+
"and was left untouched."
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
readonly = write_text_managed(
|
|
91
|
+
agents_directory / f"{READONLY_AGENT}.md",
|
|
92
|
+
self._render_agent(
|
|
93
|
+
name=READONLY_AGENT,
|
|
94
|
+
description=(
|
|
95
|
+
"Read-only DevFlow specification agent. Returns a complete "
|
|
96
|
+
"specification without modifying the project."
|
|
97
|
+
),
|
|
98
|
+
context=context,
|
|
99
|
+
interactive=False,
|
|
100
|
+
),
|
|
101
|
+
root=context.root,
|
|
102
|
+
)
|
|
103
|
+
changes.append(
|
|
104
|
+
FileChange(path=readonly.path, status=readonly.status)
|
|
105
|
+
)
|
|
106
|
+
if readonly.status != "skipped":
|
|
107
|
+
ignored.append(f".agents/agents/{READONLY_AGENT}.md")
|
|
108
|
+
else:
|
|
109
|
+
warnings.append(
|
|
110
|
+
f"Existing .agents/agents/{READONLY_AGENT}.md is unmanaged "
|
|
111
|
+
"and was left untouched."
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
if ignored:
|
|
115
|
+
gitignore = write_gitignore_entries(context.root, ignored)
|
|
116
|
+
changes.append(
|
|
117
|
+
FileChange(path=gitignore.path, status=gitignore.status)
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
return SetupResult(changes=tuple(changes), warnings=tuple(warnings))
|
|
121
|
+
|
|
122
|
+
def build_run(self, context: RunContext) -> Invocation:
|
|
123
|
+
root = context.root
|
|
124
|
+
settings = json.dumps(
|
|
125
|
+
self._settings(context),
|
|
126
|
+
separators=(",", ":"),
|
|
127
|
+
)
|
|
128
|
+
if context.mode == "interactive":
|
|
129
|
+
argv = (
|
|
130
|
+
self.executable,
|
|
131
|
+
"--settings",
|
|
132
|
+
settings,
|
|
133
|
+
"--agent",
|
|
134
|
+
INTERACTIVE_AGENT,
|
|
135
|
+
"--prompt-interactive",
|
|
136
|
+
context.prompt,
|
|
137
|
+
)
|
|
138
|
+
return Invocation(argv=argv, cwd=root, interactive=True)
|
|
139
|
+
|
|
140
|
+
argv = (
|
|
141
|
+
self.executable,
|
|
142
|
+
"--settings",
|
|
143
|
+
settings,
|
|
144
|
+
"--agent",
|
|
145
|
+
READONLY_AGENT,
|
|
146
|
+
"--output-format",
|
|
147
|
+
"text",
|
|
148
|
+
"--print",
|
|
149
|
+
context.prompt,
|
|
150
|
+
)
|
|
151
|
+
return Invocation(argv=argv, cwd=root, interactive=False)
|
|
152
|
+
|
|
153
|
+
def permission_warnings(
|
|
154
|
+
self,
|
|
155
|
+
context: RunContext,
|
|
156
|
+
) -> tuple[str, ...]:
|
|
157
|
+
warnings: list[str] = []
|
|
158
|
+
if not context.permissions.allow_project_read:
|
|
159
|
+
warnings.append(
|
|
160
|
+
"Project reads are disabled; Antigravity cannot inspect the "
|
|
161
|
+
"codebase. DevFlow will use deterministic analysis."
|
|
162
|
+
)
|
|
163
|
+
if context.mode == "interactive" and (
|
|
164
|
+
context.permissions.allow_source_code_changes
|
|
165
|
+
):
|
|
166
|
+
warnings.append(
|
|
167
|
+
"Antigravity can write anywhere in the project because source "
|
|
168
|
+
"code changes are allowed. The specification prompt still "
|
|
169
|
+
"forbids implementing the change."
|
|
170
|
+
)
|
|
171
|
+
if context.mode == "non-interactive" and (
|
|
172
|
+
context.permissions.allow_source_code_changes
|
|
173
|
+
):
|
|
174
|
+
warnings.append(
|
|
175
|
+
"Antigravity print mode is read-only, so source code changes "
|
|
176
|
+
"are not granted for this run."
|
|
177
|
+
)
|
|
178
|
+
return tuple(warnings)
|
|
179
|
+
|
|
180
|
+
def _settings(self, context: RunContext) -> dict[str, Any]:
|
|
181
|
+
root = str(context.root)
|
|
182
|
+
allow: list[str] = []
|
|
183
|
+
deny: list[str] = []
|
|
184
|
+
|
|
185
|
+
if context.permissions.allow_project_read:
|
|
186
|
+
allow.append(f"read_file({root})")
|
|
187
|
+
|
|
188
|
+
if context.mode == "interactive":
|
|
189
|
+
if context.permissions.allow_source_code_changes:
|
|
190
|
+
allow.append(f"write_file({root})")
|
|
191
|
+
allow.append("command(*)")
|
|
192
|
+
elif context.permissions.allow_spec_write:
|
|
193
|
+
specs = str(Path(root) / ".devflow" / "specs")
|
|
194
|
+
allow.append(f"write_file({specs})")
|
|
195
|
+
|
|
196
|
+
if not context.permissions.allow_source_code_changes or (
|
|
197
|
+
context.mode != "interactive"
|
|
198
|
+
):
|
|
199
|
+
deny.append("command(*)")
|
|
200
|
+
deny.extend(["read_url(*)", "execute_url(*)", "mcp(*)"])
|
|
201
|
+
|
|
202
|
+
if context.mode != "interactive" or not (
|
|
203
|
+
context.permissions.allow_spec_write
|
|
204
|
+
or context.permissions.allow_source_code_changes
|
|
205
|
+
):
|
|
206
|
+
deny.append(f"write_file({root})")
|
|
207
|
+
|
|
208
|
+
return {
|
|
209
|
+
"trustedWorkspaces": [root],
|
|
210
|
+
"permissions": {"allow": allow, "deny": deny},
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
def _render_agent(
|
|
214
|
+
self,
|
|
215
|
+
*,
|
|
216
|
+
name: str,
|
|
217
|
+
description: str,
|
|
218
|
+
context: SetupContext,
|
|
219
|
+
interactive: bool,
|
|
220
|
+
) -> str:
|
|
221
|
+
tools = list(_READ_TOOLS)
|
|
222
|
+
if interactive:
|
|
223
|
+
if (
|
|
224
|
+
context.permissions.allow_spec_write
|
|
225
|
+
or context.permissions.allow_source_code_changes
|
|
226
|
+
):
|
|
227
|
+
tools.extend(_WRITE_TOOLS)
|
|
228
|
+
tools.extend(_QUESTION_TOOLS)
|
|
229
|
+
frontmatter = yaml.safe_dump(
|
|
230
|
+
{
|
|
231
|
+
"name": name,
|
|
232
|
+
"description": description,
|
|
233
|
+
"mainAgent": True,
|
|
234
|
+
"subagent": False,
|
|
235
|
+
"model": "inherit",
|
|
236
|
+
"commandExecutionPolicy": "sandbox" if interactive else "off",
|
|
237
|
+
"tools": tools,
|
|
238
|
+
},
|
|
239
|
+
sort_keys=False,
|
|
240
|
+
allow_unicode=True,
|
|
241
|
+
).strip()
|
|
242
|
+
|
|
243
|
+
body = [
|
|
244
|
+
MANAGED_MARKER,
|
|
245
|
+
"# System Prompt",
|
|
246
|
+
"",
|
|
247
|
+
"You are the DevFlow specification agent for this project.",
|
|
248
|
+
"",
|
|
249
|
+
"Follow `AGENTS.md` and the project constitution. Analyze the "
|
|
250
|
+
"existing code before writing.",
|
|
251
|
+
"",
|
|
252
|
+
"Write only under `.devflow/specs/`. Never modify application "
|
|
253
|
+
"source code while generating a specification.",
|
|
254
|
+
"",
|
|
255
|
+
]
|
|
256
|
+
if interactive:
|
|
257
|
+
body.extend(
|
|
258
|
+
[
|
|
259
|
+
"During interactive Discovery, call the `ask_question` tool for "
|
|
260
|
+
"every pending question and every assumption acceptance. "
|
|
261
|
+
"Present the recorded options in the dialog instead of asking "
|
|
262
|
+
"in free-form prose, and wait for the user's selection before "
|
|
263
|
+
"recording an answer.",
|
|
264
|
+
"",
|
|
265
|
+
]
|
|
266
|
+
)
|
|
267
|
+
else:
|
|
268
|
+
body.extend(
|
|
269
|
+
[
|
|
270
|
+
"This run is non-interactive. Do not ask questions and do not "
|
|
271
|
+
"write files. Return the complete result as your final message.",
|
|
272
|
+
"",
|
|
273
|
+
]
|
|
274
|
+
)
|
|
275
|
+
body.extend(
|
|
276
|
+
[
|
|
277
|
+
"The complete task, target path and output contract are provided "
|
|
278
|
+
"in the user prompt for each run.",
|
|
279
|
+
"",
|
|
280
|
+
]
|
|
281
|
+
)
|
|
282
|
+
return f"---\n{frontmatter}\n---\n\n" + "\n".join(body)
|
devflow/adapters/opencode.py
CHANGED
|
@@ -190,10 +190,25 @@ class OpenCodeAdapter(HarnessAdapter):
|
|
|
190
190
|
"Write only under `.devflow/specs/`. Never modify application "
|
|
191
191
|
"source code while generating a specification.",
|
|
192
192
|
"",
|
|
193
|
-
"The complete task, target path and output contract are provided "
|
|
194
|
-
"in the user prompt for each run.",
|
|
195
|
-
"",
|
|
196
193
|
]
|
|
194
|
+
if interactive:
|
|
195
|
+
body.extend(
|
|
196
|
+
[
|
|
197
|
+
"During interactive Discovery, call the `question` tool for "
|
|
198
|
+
"every pending question and every assumption acceptance. "
|
|
199
|
+
"Present the recorded options in the dialog instead of asking "
|
|
200
|
+
"in free-form prose, and wait for the user's selection before "
|
|
201
|
+
"recording an answer.",
|
|
202
|
+
"",
|
|
203
|
+
]
|
|
204
|
+
)
|
|
205
|
+
body.extend(
|
|
206
|
+
[
|
|
207
|
+
"The complete task, target path and output contract are provided "
|
|
208
|
+
"in the user prompt for each run.",
|
|
209
|
+
"",
|
|
210
|
+
]
|
|
211
|
+
)
|
|
197
212
|
return f"---\n{frontmatter}\n---\n\n" + "\n".join(body)
|
|
198
213
|
|
|
199
214
|
def _permissions(
|
devflow/adapters/registry.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from devflow.adapters.antigravity import AntigravityAdapter
|
|
5
6
|
from devflow.adapters.base import HarnessAdapter
|
|
6
7
|
from devflow.adapters.claude_code import ClaudeCodeAdapter
|
|
7
8
|
from devflow.adapters.codex import CodexAdapter
|
|
@@ -16,6 +17,7 @@ def _create_registry() -> dict[str, HarnessAdapter]:
|
|
|
16
17
|
OpenCodeAdapter(),
|
|
17
18
|
ClaudeCodeAdapter(),
|
|
18
19
|
KiroAdapter(),
|
|
20
|
+
AntigravityAdapter(),
|
|
19
21
|
]
|
|
20
22
|
return {adapter.name: adapter for adapter in adapters}
|
|
21
23
|
|
devflow/cli.py
CHANGED
devflow/commands/approve.py
CHANGED
|
@@ -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.
|
|
60
|
+
f"Stage '{stage}' is not available in DevFlow 0.3.15. "
|
|
61
61
|
"Only the 'spec' stage can be approved."
|
|
62
62
|
)
|
|
63
63
|
raise UnsupportedStageError(msg)
|
devflow/commands/harness.py
CHANGED
|
@@ -55,7 +55,8 @@ def resolve_harness(
|
|
|
55
55
|
if not names:
|
|
56
56
|
msg = (
|
|
57
57
|
"No supported agent harness was found on PATH. Install a harness "
|
|
58
|
-
"(codex, opencode, claude-code or
|
|
58
|
+
"(codex, opencode, claude-code, kiro or antigravity) or pass "
|
|
59
|
+
"--harness none / "
|
|
59
60
|
"--no-agent to use deterministic static analysis explicitly."
|
|
60
61
|
)
|
|
61
62
|
raise ConfigError(msg)
|
devflow/commands/init.py
CHANGED
devflow/commands/spec.py
CHANGED
devflow/core/config.py
CHANGED
|
@@ -48,11 +48,15 @@ SUPPORTED_HARNESSES = (
|
|
|
48
48
|
"opencode",
|
|
49
49
|
"claude-code",
|
|
50
50
|
"kiro",
|
|
51
|
+
"antigravity",
|
|
51
52
|
"none",
|
|
52
53
|
)
|
|
53
54
|
EXECUTION_MODES = ("interactive", "non-interactive")
|
|
54
55
|
|
|
55
56
|
_HARNESS_ALIASES = {
|
|
57
|
+
"agy": "antigravity",
|
|
58
|
+
"antigravity": "antigravity",
|
|
59
|
+
"anti-gravity": "antigravity",
|
|
56
60
|
"claude": "claude-code",
|
|
57
61
|
"claude_code": "claude-code",
|
|
58
62
|
"claude-code": "claude-code",
|
devflow/core/spec_workflow.py
CHANGED
|
@@ -710,6 +710,7 @@ class SpecWorkflow:
|
|
|
710
710
|
context_path=self._relative(config, context_path),
|
|
711
711
|
discovery_path=self._relative(config, discovery_path),
|
|
712
712
|
harness_name=adapter.display_name,
|
|
713
|
+
harness_id=adapter.name,
|
|
713
714
|
execution_mode=execution_mode,
|
|
714
715
|
permissions=config.permissions,
|
|
715
716
|
language=language,
|
devflow/prompts/__init__.py
CHANGED
|
@@ -103,9 +103,13 @@ def build_discovery_prompt(
|
|
|
103
103
|
execution_mode: str,
|
|
104
104
|
permissions: AgentPermissions,
|
|
105
105
|
language: str = "en",
|
|
106
|
+
harness_id: str = "",
|
|
106
107
|
) -> str:
|
|
107
108
|
"""Render the interactive discovery prompt for any harness."""
|
|
108
109
|
template = load_prompt("discovery.md")
|
|
110
|
+
question_note = _question_tool_note(harness_id, execution_mode)
|
|
111
|
+
if question_note:
|
|
112
|
+
question_note = f"## Structured Questions\n\n{question_note}\n\n"
|
|
109
113
|
replacements = {
|
|
110
114
|
"request": request,
|
|
111
115
|
"project_name": project_name,
|
|
@@ -119,6 +123,7 @@ def build_discovery_prompt(
|
|
|
119
123
|
execution_mode,
|
|
120
124
|
permissions,
|
|
121
125
|
),
|
|
126
|
+
"question_tool_note": question_note,
|
|
122
127
|
"permission_summary": _permission_summary(permissions),
|
|
123
128
|
}
|
|
124
129
|
rendered = template
|
|
@@ -159,6 +164,33 @@ def _discovery_language_note(language: str) -> str:
|
|
|
159
164
|
)
|
|
160
165
|
|
|
161
166
|
|
|
167
|
+
_QUESTION_TOOLS = {
|
|
168
|
+
"opencode": "question",
|
|
169
|
+
"antigravity": "ask_question",
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def _question_tool_note(harness_id: str, execution_mode: str) -> str:
|
|
174
|
+
"""Name the structured question tool for harnesses that expose one."""
|
|
175
|
+
tool = _QUESTION_TOOLS.get((harness_id or "").strip().lower())
|
|
176
|
+
if tool is None:
|
|
177
|
+
return ""
|
|
178
|
+
if execution_mode != "interactive":
|
|
179
|
+
return (
|
|
180
|
+
f"This harness exposes a structured question tool named `{tool}`, "
|
|
181
|
+
"but it is unavailable in non-interactive runs. Report every "
|
|
182
|
+
"pending question in your final message instead of asking it."
|
|
183
|
+
)
|
|
184
|
+
return (
|
|
185
|
+
f"This harness exposes a structured question tool named `{tool}`. "
|
|
186
|
+
f"You must call `{tool}` for every pending Discovery question and for "
|
|
187
|
+
"every assumption acceptance instead of asking in free-form prose. "
|
|
188
|
+
"Put the recorded options in the tool, add a free-form or Other "
|
|
189
|
+
"choice when the tool supports it, and wait for the user's selection "
|
|
190
|
+
"before recording anything."
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
|
|
162
194
|
def _discovery_mode_instructions(
|
|
163
195
|
discovery_path: str,
|
|
164
196
|
execution_mode: str,
|
devflow/prompts/discovery.md
CHANGED
|
@@ -146,7 +146,7 @@ Update `updated_at` whenever the file changes. Set `status` to
|
|
|
146
146
|
`awaiting_clarification` while any question is unanswered or any
|
|
147
147
|
assumption is unaccepted, and to `complete` only when nothing remains.
|
|
148
148
|
|
|
149
|
-
## Conversation Rules
|
|
149
|
+
{{question_tool_note}}## Conversation Rules
|
|
150
150
|
|
|
151
151
|
- When your harness provides a structured question or multiple-choice
|
|
152
152
|
tool, use it for every question and for assumption acceptance. Put the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.15
|
|
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.
|
|
45
|
+
This is the `0.3.15` 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
|
|
@@ -101,9 +101,10 @@ identity for the project:
|
|
|
101
101
|
- A POSIX operating system (Linux or macOS). Windows is not tested and is
|
|
102
102
|
not supported in this release, because the workflow locks require
|
|
103
103
|
`fcntl`.
|
|
104
|
-
- For agent-generated specifications: OpenCode
|
|
105
|
-
authenticated on `PATH`. OpenCode is
|
|
106
|
-
end-to-end
|
|
104
|
+
- For agent-generated specifications: OpenCode or Google Antigravity
|
|
105
|
+
(`agy`) installed and authenticated on `PATH`. OpenCode is verified
|
|
106
|
+
end-to-end; Antigravity agent loading and print mode are verified
|
|
107
|
+
locally.
|
|
107
108
|
- Git is not required. DevFlow does not initialize a repository, commit
|
|
108
109
|
files or run destructive commands.
|
|
109
110
|
|
|
@@ -118,7 +119,7 @@ pip install devflow-toolkit
|
|
|
118
119
|
To install a specific built artifact instead:
|
|
119
120
|
|
|
120
121
|
```bash
|
|
121
|
-
pip install devflow_toolkit-0.3.
|
|
122
|
+
pip install devflow_toolkit-0.3.15-py3-none-any.whl
|
|
122
123
|
```
|
|
123
124
|
|
|
124
125
|
Verify the installation:
|
|
@@ -155,6 +156,7 @@ Common options:
|
|
|
155
156
|
|
|
156
157
|
```bash
|
|
157
158
|
devflow init --harness opencode --mode non-interactive
|
|
159
|
+
devflow init --harness antigravity --mode interactive
|
|
158
160
|
devflow init --profile django-backend --name my-service
|
|
159
161
|
devflow init --project-mode greenfield
|
|
160
162
|
devflow init --language es
|
|
@@ -297,9 +299,10 @@ as an architectural constraint when it is present.
|
|
|
297
299
|
|
|
298
300
|
### Harnesses
|
|
299
301
|
|
|
300
|
-
| Harness | Status in 0.3.
|
|
302
|
+
| Harness | Status in 0.3.15 |
|
|
301
303
|
| --- | --- |
|
|
302
|
-
| OpenCode | Verified end-to-end
|
|
304
|
+
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
305
|
+
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
303
306
|
| Codex | Integration files are generated, but not verified for this release |
|
|
304
307
|
| Claude Code | Integration files are generated, but not verified for this release |
|
|
305
308
|
| Kiro | Integration files are generated, but not verified for this release |
|
|
@@ -316,6 +319,26 @@ its native `AskUserQuestion` dialog. Both adapters fall back to numbered
|
|
|
316
319
|
text options if the installed harness does not expose a structured
|
|
317
320
|
question tool.
|
|
318
321
|
|
|
322
|
+
OpenCode and Antigravity receive an explicit instruction to call their
|
|
323
|
+
structured question tool for every pending Discovery question and for
|
|
324
|
+
every assumption acceptance. OpenCode's tool is `question`; Antigravity's
|
|
325
|
+
tool is `ask_question`. The instruction is injected only for those
|
|
326
|
+
harnesses, so the Codex and Claude Code prompts are unchanged.
|
|
327
|
+
|
|
328
|
+
For Antigravity, DevFlow generates `AGENTS.md` and custom agents under
|
|
329
|
+
`.agents/agents/`. Interactive runs use the writable `devflow-spec`
|
|
330
|
+
agent with `agy --settings <json> --agent devflow-spec
|
|
331
|
+
--prompt-interactive <prompt>`. Non-interactive runs use the read-only
|
|
332
|
+
`devflow-spec-readonly` agent with `agy --settings <json> --agent
|
|
333
|
+
devflow-spec-readonly --print --output-format text <prompt>`. Project
|
|
334
|
+
reads are allowed, writes are scoped to `.devflow/specs` in interactive
|
|
335
|
+
mode, and commands, web access and MCP servers are denied. The alias
|
|
336
|
+
`agy` is accepted for `--harness`.
|
|
337
|
+
|
|
338
|
+
To configure Discovery in Spanish, pass `--language es` to `init`, or to
|
|
339
|
+
a single `spec` run. The conversation and the stored question text use
|
|
340
|
+
the selected language.
|
|
341
|
+
|
|
319
342
|
For OpenCode, DevFlow generates `AGENTS.md`, `opencode.json` and the
|
|
320
343
|
agents under `.opencode/agents/`. The project-level `opencode.json` can
|
|
321
344
|
also select the model used by the agent, for example:
|
|
@@ -480,7 +503,7 @@ specification that still lists open questions.
|
|
|
480
503
|
8. If artifacts exist without workflow state, diagnose with
|
|
481
504
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
482
505
|
|
|
483
|
-
Available commands in `0.3.
|
|
506
|
+
Available commands in `0.3.15`:
|
|
484
507
|
|
|
485
508
|
| Command | Status |
|
|
486
509
|
| --- | --- |
|
|
@@ -672,7 +695,7 @@ devflow approve 001 --stage spec
|
|
|
672
695
|
```
|
|
673
696
|
|
|
674
697
|
Approval is explicit and binds the decision to the current artifact
|
|
675
|
-
digests. For a `0.3.
|
|
698
|
+
digests. For a `0.3.15` change it binds `spec.md`, `discovery.yaml` and,
|
|
676
699
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
677
700
|
same approval is a no-op. If an artifact changes after validation,
|
|
678
701
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -683,7 +706,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
683
706
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
684
707
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
685
708
|
|
|
686
|
-
Only the `spec` stage is available in `0.3.
|
|
709
|
+
Only the `spec` stage is available in `0.3.15`. `--stage plan` and
|
|
687
710
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
688
711
|
`review` commands in this release.
|
|
689
712
|
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
devflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
devflow/cli.py,sha256=
|
|
2
|
+
devflow/cli.py,sha256=jsinMhB5KSpgQroHt7ZQ1l74TwbG_GsuzRzb5PUcDyA,1169
|
|
3
3
|
devflow/adapters/__init__.py,sha256=WcsjXQTKzHNzMAHx82-sdJQeR3ceHRVqLWTUtRlaraE,867
|
|
4
4
|
devflow/adapters/agents.py,sha256=OZnz7wAJNcIojtgaQIK1iB6QKWGgv2VCmoBp8M9DUKE,1423
|
|
5
|
+
devflow/adapters/antigravity.py,sha256=QXcenOmu7XfmldaAPvpuIybKIz7AjUwKroRL3bk5Bjs,7993
|
|
5
6
|
devflow/adapters/base.py,sha256=YggY_IwHExdybl5S9NjwZSlmmcw9Y6z7DhQsl3JLvXs,2055
|
|
6
7
|
devflow/adapters/claude_code.py,sha256=nJ-J4nwlql6751GYoSX8LbR3zPmdMTut7prZ-6ABzE8,3595
|
|
7
8
|
devflow/adapters/codex.py,sha256=DlgQiK6lnTazdb020HePhN0QzL-ILRYgRhNHUwTFdfs,3426
|
|
8
9
|
devflow/adapters/detector.py,sha256=92BkNAvWs2Vh8H6xJzMweBDCw6yuYVg7sV4LoSZ8KFo,3291
|
|
9
10
|
devflow/adapters/instructions.py,sha256=ukkPhI2FFZPqERg6PFFyP05BPifrpDHzw082b7D-Teo,10222
|
|
10
11
|
devflow/adapters/kiro.py,sha256=VxAcwkAdkTbZjDjTJaZfs4kyVHSwR4_Wo3GmFsbmEBU,6754
|
|
11
|
-
devflow/adapters/opencode.py,sha256=
|
|
12
|
-
devflow/adapters/registry.py,sha256=
|
|
12
|
+
devflow/adapters/opencode.py,sha256=YIRDuDHnGNWUQHPmQcNGfUAMXWilnXKreHv_nJWihxI,7526
|
|
13
|
+
devflow/adapters/registry.py,sha256=G1HquOcSggwT0qm8PIm_Fv5Wj354G20rnI0C7vPhrSo,1263
|
|
13
14
|
devflow/commands/__init__.py,sha256=yOLtd_4R4xdlMgAzihzIT35oyV_qcz0br-aoLebRj1c,157
|
|
14
|
-
devflow/commands/approve.py,sha256=
|
|
15
|
+
devflow/commands/approve.py,sha256=HXpa7MXXhvGpLUQbkYaPVEGN0Orc40Cv5Hv-sTB63Wg,2741
|
|
15
16
|
devflow/commands/doctor.py,sha256=vYk2i3OksbGpHEUFsqi7c4w44mAXRmY0OeEdO8h5j_M,4161
|
|
16
|
-
devflow/commands/harness.py,sha256
|
|
17
|
-
devflow/commands/init.py,sha256=
|
|
17
|
+
devflow/commands/harness.py,sha256=lJ13RPZqw7YvbiQccqD4WGOEtIgwm01xs7hqGzOMCCA,3915
|
|
18
|
+
devflow/commands/init.py,sha256=k2m1gs-N9NrMACR3A8zLXBpc17KE89Wj-swy_pjWF20,15442
|
|
18
19
|
devflow/commands/recover.py,sha256=sV9x5-30E_3XRBe7JItDiSG-pqrowRzjqOkC_eyrhFQ,2165
|
|
19
|
-
devflow/commands/spec.py,sha256=
|
|
20
|
+
devflow/commands/spec.py,sha256=d_I56hgpqV9_iKJGEE7PtKEZ17rbX290QZOu5fJF-pA,15833
|
|
20
21
|
devflow/commands/status.py,sha256=doFXRmK0Ys-oP-w-sd6cI33n1NoAEPtq4CJAtUstyHg,4423
|
|
21
22
|
devflow/core/__init__.py,sha256=hN7i4-PDaZ7y4P8qRpZl_lJvIiPyQaN1TDGnw2BecYU,427
|
|
22
23
|
devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,13692
|
|
23
24
|
devflow/core/clock.py,sha256=KZROv6o51Ln1EzK00ySCxfc7WPZqPlaQhFfjfdc_TMY,1651
|
|
24
|
-
devflow/core/config.py,sha256=
|
|
25
|
+
devflow/core/config.py,sha256=SRDCOtUHWZgnWzC6u-mpUA__sTryzpAFaqM3qEkwRy0,22214
|
|
25
26
|
devflow/core/constitution.py,sha256=nPHyy7BuIyyqkn4y85UyWn2E7f5AWHbg4iZ0frF9SfE,4581
|
|
26
27
|
devflow/core/discovery.py,sha256=M0IwZu0HAGW7cxfwi8SS5AbQAB7ClDHkp83ZaK18aPw,46412
|
|
27
28
|
devflow/core/ports.py,sha256=R6ybjAdJEdtTKFc4FMFTX0TVwRfDwPoWCsu-BHrhI5A,4071
|
|
28
29
|
devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
|
|
29
30
|
devflow/core/project.py,sha256=aXJanCK-TjkDy4v_XM14Xj3z7sbHPusjyJrIzmDqeAI,16989
|
|
30
31
|
devflow/core/recovery.py,sha256=W2If6Ymb3ISwMN8IVQYCwptDUzhxejlF-P2NvMYyZP0,8818
|
|
31
|
-
devflow/core/spec_workflow.py,sha256=
|
|
32
|
+
devflow/core/spec_workflow.py,sha256=_st91z8QbSxY40o1S6bwTubBdjFznwaSoT98bh7T1EA,32897
|
|
32
33
|
devflow/core/specification.py,sha256=vVlhHCdBFlnuIfA_IJPxY4sa0S0t6oX27cn_nFyevGM,65399
|
|
33
34
|
devflow/core/artifacts/__init__.py,sha256=gt9xahPynoxv75FMq1ZJx91ILTIv4ExuvX1Ymrxwr2c,627
|
|
34
35
|
devflow/core/artifacts/errors.py,sha256=hwZxnLFcUTtEjDWtN6rUCkM69EN19LGVlc6HD-pNZyk,493
|
|
@@ -55,12 +56,12 @@ devflow/profiles/django-backend/profile.yaml,sha256=SNj7a3yamdJx-P69GvIJmLkC2svO
|
|
|
55
56
|
devflow/profiles/django-backend/constitution/django-standards.md,sha256=0M-XmxOpEmgIadcaVdf6OVmll8Oec0jEjcJ4C8MfwhQ,2052
|
|
56
57
|
devflow/profiles/fastapi-backend/profile.yaml,sha256=5_b-zWSX0HV-tw_2ntRCSa4DyP3NUqYWmxOh55pXYmc,321
|
|
57
58
|
devflow/profiles/fastapi-backend/constitution/fastapi-standards.md,sha256=iFKib4i_9z4wBQ9thl-uftg5g-CHwvmFWzMtLgA7CBk,1949
|
|
58
|
-
devflow/prompts/__init__.py,sha256=
|
|
59
|
-
devflow/prompts/discovery.md,sha256=
|
|
59
|
+
devflow/prompts/__init__.py,sha256=8g8xP9Jvrc2KToQsMcC-e2I7dkZYo2wrN6VWojrCMlw,10844
|
|
60
|
+
devflow/prompts/discovery.md,sha256=30qCSr_hqMsWxiaoNEmbI1jFlIaGdM85B6OiE3sY_SE,6739
|
|
60
61
|
devflow/prompts/spec.greenfield.md,sha256=BEKTN7G0B_P0bAevNeShzb_54dYu6j95_B3YqyhYK40,5154
|
|
61
62
|
devflow/prompts/spec.md,sha256=zXrNA--c8IiQJBMyxidTtLVHUIrn7Ynj6935dyje1SY,3801
|
|
62
|
-
devflow_toolkit-0.3.
|
|
63
|
-
devflow_toolkit-0.3.
|
|
64
|
-
devflow_toolkit-0.3.
|
|
65
|
-
devflow_toolkit-0.3.
|
|
66
|
-
devflow_toolkit-0.3.
|
|
63
|
+
devflow_toolkit-0.3.15.dist-info/METADATA,sha256=3nQlBiRwH_xtg7KDCfsmoKKEE8QEOVHJDvygJr9M3tk,31645
|
|
64
|
+
devflow_toolkit-0.3.15.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
65
|
+
devflow_toolkit-0.3.15.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
|
|
66
|
+
devflow_toolkit-0.3.15.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
|
|
67
|
+
devflow_toolkit-0.3.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|