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.
- package/README.md +10 -5
- package/dist/adapters/dsh/extract.js +2 -2
- package/dist/adapters/dsh/index.d.ts +71 -0
- package/dist/adapters/dsh/index.js +232 -11
- package/dist/adapters/opencode/index.js +78 -4
- package/dist/core/commands.d.ts +36 -1
- package/dist/core/commands.js +122 -2
- package/dist/core/config.js +9 -3
- package/dist/core/format-status.js +1 -0
- package/dist/core/harness.d.ts +26 -0
- package/dist/core/harness.js +48 -2
- package/dist/core/install-dsh.js +1 -1
- package/dist/core/installer.d.ts +12 -0
- package/dist/core/installer.js +141 -0
- package/dist/core/logger.d.ts +3 -21
- package/dist/core/logger.js +3 -24
- package/dist/core/run-hooks.d.ts +7 -0
- package/dist/core/run-hooks.js +1 -0
- package/dist/core/types.d.ts +8 -0
- package/package.json +1 -1
- package/rules/10-quality-bar.md +5 -0
- package/templates/.opencode/agents/code-reviewer.md +7 -1
- package/templates/.opencode/agents/pattern-guardian.md +7 -1
- package/templates/.opencode/agents/style-enforcer.md +7 -1
- package/templates/.opencode/agents/test-grounder.md +4 -1
- package/templates/.opencode/skills/project-config/SKILL.md +6 -1
package/dist/core/types.d.ts
CHANGED
|
@@ -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
package/rules/10-quality-bar.md
CHANGED
|
@@ -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`
|