opencode-dev-framework 1.11.0 → 1.11.1
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.
- package/README.md +33 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
[](https://dsh-plugin.org/plugins/jwitmann/opencode-dev-framework) [](https://opencode.ai/docs/plugins/) [](https://www.npmjs.com/package/opencode-dev-framework) [](https://github.com/jwitmann/opencode-dev-framework/actions) [](https://github.com/jwitmann/opencode-dev-framework/blob/main/LICENSE)
|
|
4
4
|
|
|
5
5
|
AI agents can say they're done without proving it. This plugin replaces
|
|
6
|
-
assertion with evidence: guardrails, per-edit
|
|
6
|
+
assertion with evidence: guardrails, per-edit lint feedback (and formatting
|
|
7
|
+
on DSH, where the host provides none),
|
|
7
8
|
a completion gate that runs your real checks, and verified goals that require
|
|
8
9
|
a tool-result PASS on the final tree. Exit codes don't negotiate.
|
|
9
10
|
|
|
@@ -17,6 +18,16 @@ Inspired by
|
|
|
17
18
|
which supports Copilot CLI, Claude Code, and Codex CLI; this is an independent
|
|
18
19
|
implementation. DSH guide: [`docs/user/dsh.md`](docs/user/dsh.md).
|
|
19
20
|
|
|
21
|
+
## Principles
|
|
22
|
+
|
|
23
|
+
These principles guide every mechanism in this plugin:
|
|
24
|
+
|
|
25
|
+
- **Verbatim evidence.** Work is judged as performed — original output or explicitly marked pointers, never silently rewritten. No output redaction, no revised reports, no laundered context.
|
|
26
|
+
- **Read-only reviewers.** The judging party cannot touch the work. Findings are reported visibly; rework happens in the open, and the gate re-verifies from scratch.
|
|
27
|
+
- **Reveal, don't sanitize.** Audit trails over hidden rewrites — what happened stays inspectable.
|
|
28
|
+
- **No bypass-required measures.** Nothing that fights legitimate use; if a control needs a workaround, it's the control that's wrong.
|
|
29
|
+
- **Bounded and loud.** Enforcement budgets are explicit and stand-down is announced, never a quiet pass.
|
|
30
|
+
|
|
20
31
|
## Quickstart
|
|
21
32
|
|
|
22
33
|
Five minutes from zero to your first gated session.
|
|
@@ -36,12 +47,14 @@ Or declare it in `opencode.json`:
|
|
|
36
47
|
```json
|
|
37
48
|
{
|
|
38
49
|
"$schema": "https://opencode.ai/config.json",
|
|
39
|
-
"
|
|
50
|
+
"plugins": ["opencode-dev-framework"]
|
|
40
51
|
}
|
|
41
52
|
```
|
|
42
53
|
|
|
43
54
|
**On DSH:**
|
|
44
55
|
|
|
56
|
+
Requires DSH `0.2.2-rc.3` or newer (live-verified on `0.2.2-rc.5`).
|
|
57
|
+
|
|
45
58
|
```bash
|
|
46
59
|
dsh plugin --profile <name> add opencode-dev-framework
|
|
47
60
|
df install-dsh --profile <name> # preset seam + verification
|
|
@@ -69,14 +82,14 @@ scripted runs (add `--dsh` on DSH so the host-visible skill mirror is
|
|
|
69
82
|
scaffolded too):
|
|
70
83
|
|
|
71
84
|
```bash
|
|
72
|
-
npx
|
|
85
|
+
npx opencode-dev-framework init [--dsh]
|
|
73
86
|
```
|
|
74
87
|
|
|
75
88
|
Conflicts need `--overwrite-existing` or `--skip-existing` — everything
|
|
76
|
-
else is under `npx
|
|
89
|
+
else is under `npx opencode-dev-framework --help`.
|
|
77
90
|
|
|
78
91
|
On DSH, run `dsh` from the project root (or export `ODF_WORKDIR`), and
|
|
79
|
-
accept template drift via
|
|
92
|
+
accept template drift via `/df-update` if the session reports any.
|
|
80
93
|
|
|
81
94
|
Then ask the agent for a small edit. You will see the plugin working: the
|
|
82
95
|
edit is checked against guardrails before it lands, your linter runs on the
|
|
@@ -136,11 +149,14 @@ semantics, block budgeting, `protect_off` scope, and all eight
|
|
|
136
149
|
at session start (bundled default, overridable per project).
|
|
137
150
|
- **Guardrails.** Blocks or warns on protected paths (`.env`, vendored
|
|
138
151
|
code, your own globs) and dangerous shell commands (`git push`, `rm -rf`).
|
|
152
|
+
Secrets are blocked at the write, never scrubbed from sight —
|
|
153
|
+
[secret handling](docs/user/enforcement.md#secrets) recommends gitleaks
|
|
154
|
+
at the commit boundary.
|
|
139
155
|
- **Per-edit lint.** Runs your linter on each edited file. On OpenCode
|
|
140
156
|
the result is logged against the landed edit; on DSH a finding fails
|
|
141
157
|
the tool call so the agent retries clean in the same turn.
|
|
142
158
|
- **Completion gate.** At the would-go-idle boundary, runs typecheck, tests,
|
|
143
|
-
acceptance checks, and (
|
|
159
|
+
acceptance checks, and (in `strict`, lint on changed files) — plus a required
|
|
144
160
|
substantive peer-review artifact in `standard`/`strict` (length floors, no
|
|
145
161
|
template checkboxes, written after the latest session edit). On OpenCode, failures steer the session back via a
|
|
146
162
|
synthetic continuation, bounded by `gate.max_blocks` (fewer when
|
|
@@ -182,6 +198,10 @@ synthetic continuation); on DSH the same verdict bites earlier — the
|
|
|
182
198
|
pre-terminal completion block, same-turn lint `block`s, and dispatched
|
|
183
199
|
reviewers above all run inside the turn instead of round-tripping through it:
|
|
184
200
|
|
|
201
|
+

|
|
202
|
+
|
|
203
|
+
Text version of the same diagram (identical content, for text-mode readers):
|
|
204
|
+
|
|
185
205
|
```text
|
|
186
206
|
user prompt
|
|
187
207
|
(plain or /df-goal plan)
|
|
@@ -220,8 +240,10 @@ wrappers (dotted lines in the diagram version):
|
|
|
220
240
|
native /goal ── wraps the loop, drives turns ──> agent implements
|
|
221
241
|
```
|
|
222
242
|
|
|
223
|
-
|
|
224
|
-
|
|
243
|
+
Flow source lives in [`docs/user/enforcement.md`](docs/user/enforcement.md#flow)
|
|
244
|
+
as mermaid; `docs/assets/flow.svg` is rendered from it
|
|
245
|
+
(`npx @mermaid-js/mermaid-cli -i <mermaid> -o docs/assets/flow.svg`) and
|
|
246
|
+
embedded above by absolute URL so it renders on npm too — update all three
|
|
225
247
|
together.
|
|
226
248
|
|
|
227
249
|
## Profiles
|
|
@@ -266,8 +288,9 @@ of modals. Full reference:
|
|
|
266
288
|
from the bounded completion mechanisms below.
|
|
267
289
|
- A cached pass never survives a restart — after a restart the gate
|
|
268
290
|
always re-verifies the final tree from scratch.
|
|
269
|
-
- Formatting and linting
|
|
270
|
-
|
|
291
|
+
- Formatting and linting use your project tooling — the framework never
|
|
292
|
+
reimplements them. On OpenCode the host runs the formatter; on DSH the
|
|
293
|
+
adapter runs your configured formatter command before linting.
|
|
271
294
|
|
|
272
295
|
### OpenCode
|
|
273
296
|
|