opencode-dev-framework 1.10.2 → 1.11.0
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 +6 -2
- package/package.json +1 -1
- package/rules/20-match-existing-patterns.md +4 -0
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# opencode-dev-framework
|
|
2
2
|
|
|
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
|
+
|
|
3
5
|
AI agents can say they're done without proving it. This plugin replaces
|
|
4
6
|
assertion with evidence: guardrails, per-edit formatting and lint feedback,
|
|
5
7
|
a completion gate that runs your real checks, and verified goals that require
|
|
6
8
|
a tool-result PASS on the final tree. Exit codes don't negotiate.
|
|
7
9
|
|
|
8
|
-
One shared enforcement core powers
|
|
10
|
+
One shared enforcement core powers adapters for
|
|
9
11
|
[OpenCode](https://opencode.ai) and [DSH](https://www.deepseek.com/en/harness/)
|
|
10
12
|
(DeepSeek Harness, via Cordis), with
|
|
11
13
|
the same config, profiles, rules, and gates on both.
|
|
@@ -23,6 +25,8 @@ Five minutes from zero to your first gated session.
|
|
|
23
25
|
|
|
24
26
|
**On OpenCode:**
|
|
25
27
|
|
|
28
|
+
Requires OpenCode `v2.x` (live-verified on `v2.0.26` and `v2.2.0`).
|
|
29
|
+
|
|
26
30
|
```bash
|
|
27
31
|
opencode plugin add opencode-dev-framework
|
|
28
32
|
```
|
|
@@ -69,7 +73,7 @@ npx df init [--dsh]
|
|
|
69
73
|
```
|
|
70
74
|
|
|
71
75
|
Conflicts need `--overwrite-existing` or `--skip-existing` — everything
|
|
72
|
-
else is under `npx df
|
|
76
|
+
else is under `npx df --help`.
|
|
73
77
|
|
|
74
78
|
On DSH, run `dsh` from the project root (or export `ODF_WORKDIR`), and
|
|
75
79
|
accept template drift via `df-update` if the session reports any.
|
package/package.json
CHANGED
|
@@ -33,6 +33,10 @@ beats theoretical purity.
|
|
|
33
33
|
decision — call it out and justify it; never slip one in.
|
|
34
34
|
5. **When in doubt, copy the neighbor.** Find the closest existing example of the thing
|
|
35
35
|
you're building and follow its structure.
|
|
36
|
+
6. **Check shared contracts before extending.** Before changing an existing helper
|
|
37
|
+
or shared behavior, inspect its contract and affected callers. Do not impose
|
|
38
|
+
one caller's assumptions on the others merely to enable reuse. If the existing
|
|
39
|
+
abstraction does not genuinely fit, raise the mismatch rather than forcing it.
|
|
36
40
|
|
|
37
41
|
## How to verify
|
|
38
42
|
|