opencode-dev-framework 1.11.1 → 1.13.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.
@@ -73,6 +73,14 @@ export interface GateConfig {
73
73
  timeout?: number;
74
74
  /** Maximum number of times a failing gate may re-block before standing down. */
75
75
  max_blocks: number;
76
+ /**
77
+ * Ignore hotlist: project-relative globs the completion gate treats as
78
+ * not-the-work (scratch, generated output). Applies to gate steps and
79
+ * review coverage uniformly; the review artifact itself is always
80
+ * retained regardless. Session-scoped `/df-ignore` entries union with
81
+ * this list and die with the session.
82
+ */
83
+ ignore: string[];
76
84
  }
77
85
  export interface OnEditConfig {
78
86
  format: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-dev-framework",
3
- "version": "1.11.1",
3
+ "version": "1.13.0",
4
4
  "description": "Enforcement gates for AI coding agents on OpenCode and DeepSeek Harness",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,6 +35,11 @@ A task is done only when:
35
35
  review file left over from a previous task; rewrite it fresh every time.
36
36
  - You ran the project's full verification yourself (not just the completion
37
37
  gate) and read the output — the gate is a backstop, not your test run.
38
+ - Duties before summary: refresh any required review artifact and run the
39
+ project's verification BEFORE writing the final summary — never summarize
40
+ work the gate hasn't cleared yet. The summary is the last thing you write
41
+ in the turn; a gate block and its remediation work land below it and bury
42
+ it out of view.
38
43
 
39
44
  If you cannot meet the bar, stop and tell the user what is blocking you rather than
40
45
  declaring success.
@@ -1,6 +1,12 @@
1
1
  ---
2
- name: code-reviewer
3
2
  mode: subagent
3
+ permissions:
4
+ - action: edit
5
+ resource: "*"
6
+ effect: deny
7
+ - action: shell
8
+ resource: "*"
9
+ effect: deny
4
10
  description: >
5
11
  Correctness reviewer. Scans changed code for bugs, logic errors, security
6
12
  issues, and unsafe edge cases — independent of style and pattern concerns.
@@ -1,6 +1,12 @@
1
1
  ---
2
- name: pattern-guardian
3
2
  mode: subagent
3
+ permissions:
4
+ - action: edit
5
+ resource: "*"
6
+ effect: deny
7
+ - action: shell
8
+ resource: "*"
9
+ effect: deny
4
10
  description: >
5
11
  Anti-drift reviewer. Checks new or changed code against the patterns already
6
12
  established in this codebase and flags duplication, re-invented helpers,
@@ -1,6 +1,12 @@
1
1
  ---
2
- name: style-enforcer
3
2
  mode: subagent
3
+ permissions:
4
+ - action: edit
5
+ resource: "*"
6
+ effect: deny
7
+ - action: shell
8
+ resource: "*"
9
+ effect: deny
4
10
  description: >
5
11
  Style-guide reviewer. Checks changed files against the project's documented
6
12
  style guide (and, in its absence, the conventions of the surrounding code):
@@ -1,6 +1,9 @@
1
1
  ---
2
- name: test-grounder
3
2
  mode: subagent
3
+ permissions:
4
+ - action: edit
5
+ resource: "*"
6
+ effect: deny
4
7
  description: >
5
8
  Evidence auditor. Verifies that claims about a change are backed by reality:
6
9
  that new behavior has a test which fails without the change and passes with
@@ -55,7 +55,12 @@ list assumptions.
55
55
  looking for: the full verification command(s), per-language
56
56
  lint/format invocations, integration tests with special needs (docker,
57
57
  network, credentials), generated assets and how they rebuild, and
58
- paths that must never be edited.
58
+ paths that must never be edited. Also check the formatting split: on
59
+ OpenCode the host owns formatting — if the project's `opencode.json`
60
+ declares no `formatter` but the project has formatter tooling
61
+ (Prettier, Biome, rustfmt, gofmt, …), flag adding one (the plugin
62
+ defers to it and never runs its own). On DSH there is nothing to
63
+ flag — the adapter runs the project's formatter itself.
59
64
 
60
65
  2. **Prefer wrappers over bare tools.** If the project verifies via
61
66
  `make check`, `npm run verify`, or a CI job, the config's `commands`