Skip to content

feat: drop the plugin-dcg preset - #123

Merged
trick77 merged 1 commit into
masterfrom
drop-dcg-preset
Aug 28, 2026
Merged

trick77 merged 1 commit into
masterfrom
drop-dcg-preset

Conversation

@trick77

@trick77 trick77 commented Aug 28, 2026

Copy link
Copy Markdown
Owner

dcg 0.13 ships its own OpenCode plugin: dcg install --opencode writes ~/.config/opencode/plugins/dcg-guard.js, and upstream's install.sh calls it automatically wherever opencode is detected (configure_opencode()). Installing opencode-plugin-dcg on top of that runs dcg twice per bash call, so the preset goes.

Removed: presets/plugin-dcg.conf, its PIN_SOURCES entry (test/pin-sources.test.ts hard-fails on an orphaned key), the README table row and the whole Checking commands with dcg section, and the two hardcoded test tables that named it.

Fixtures that only used dcg as a sample binary or plugin spec moved to shellcheck / superpowers, so the tests keep their coverage and the tree greps clean. The @requires-bin machinery stays, though no shipped preset declares one any more - the corpus test now asserts that, which is what catches one arriving unannounced.

No migration path for existing installs, by design.

Verified: npm test 198/198, npm run check-pins all current, and opencode-presets list against a temp config no longer shows the preset.

dcg 0.13 ships its own OpenCode plugin: `dcg install --opencode` writes
~/.config/opencode/plugins/dcg-guard.js, and upstream's install.sh calls it
automatically wherever opencode is detected. Installing opencode-plugin-dcg on
top of that runs dcg twice per bash call, so the preset goes.

Removes the conf, its PIN_SOURCES entry (test/pin-sources.test.ts fails on an
orphan), the README row and section, and the two test tables that named it.
Fixtures that only used dcg as a sample binary or plugin spec move to
shellcheck / superpowers; the @requires-bin machinery stays, though no shipped
preset declares one any more.
@trick77
trick77 merged commit 8eb8a7b into master Aug 28, 2026
3 checks passed
@trick77
trick77 deleted the drop-dcg-preset branch August 28, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant