opencode-dev-framework 1.10.1 → 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 CHANGED
@@ -1,11 +1,13 @@
1
1
  # opencode-dev-framework
2
2
 
3
+ [![Listed on dsh-plugin.org](https://dsh-plugin.org/badges/listed.svg)](https://dsh-plugin.org/plugins/jwitmann/opencode-dev-framework) [![OpenCode V2](https://img.shields.io/badge/OpenCode-V2-111827)](https://opencode.ai/docs/plugins/) [![npm version](https://img.shields.io/npm/v/opencode-dev-framework.svg)](https://www.npmjs.com/package/opencode-dev-framework) [![CI](https://github.com/jwitmann/opencode-dev-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/jwitmann/opencode-dev-framework/actions) [![License: MIT](https://img.shields.io/npm/l/opencode-dev-framework.svg)](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 native adapters for
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,10 +25,21 @@ 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
  ```
29
33
 
34
+ Or declare it in `opencode.json`:
35
+
36
+ ```json
37
+ {
38
+ "$schema": "https://opencode.ai/config.json",
39
+ "plugin": ["opencode-dev-framework"]
40
+ }
41
+ ```
42
+
30
43
  **On DSH:**
31
44
 
32
45
  ```bash
@@ -60,7 +73,7 @@ npx df init [--dsh]
60
73
  ```
61
74
 
62
75
  Conflicts need `--overwrite-existing` or `--skip-existing` — everything
63
- else is under `npx df init --help`.
76
+ else is under `npx df --help`.
64
77
 
65
78
  On DSH, run `dsh` from the project root (or export `ODF_WORKDIR`), and
66
79
  accept template drift via `df-update` if the session reports any.
@@ -207,7 +207,7 @@ export async function installDshProfile(options) {
207
207
  const seams = presetIncluded ? [...ODF_BASE_SEAMS, "agentPresets"] : [...ODF_BASE_SEAMS];
208
208
  const packageSupportsDsh = entryName === packageSpec ? await checkPackageSupportsDsh(profileDir) : undefined;
209
209
  if (packageSupportsDsh === false) {
210
- warnings.push(`installed opencode-dev-framework predates DSH support (no ./dsh export): run \`dsh plugin --profile ${profile} add opencode-dev-framework@latest\` after release, or reinstall with --dist.`);
210
+ warnings.push(`installed opencode-dev-framework predates DSH support (no ./dsh export): run \`dsh plugin --profile ${profile} add opencode-dev-framework@latest\`, or reinstall with --dist.`);
211
211
  }
212
212
  else if (packageSupportsDsh === undefined && entryName === packageSpec) {
213
213
  warnings.push(`could not confirm opencode-dev-framework is installed in this profile: run \`dsh plugin --profile ${profile} add opencode-dev-framework\` if the entry fails to resolve.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-dev-framework",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
4
4
  "description": "Enforcement gates for AI coding agents on OpenCode and DeepSeek Harness",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,6 +57,7 @@
57
57
  },
58
58
  "keywords": [
59
59
  "opencode",
60
+ "opencode-plugin",
60
61
  "plugin",
61
62
  "ai",
62
63
  "agents",
@@ -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