From eecafe862ed28c5c2196379a69e339c64788e0c1 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Sat, 10 Jan 2026 19:51:17 -0500 Subject: [PATCH 1/2] fix: use master branch in schema URLs Update all schema URLs to use master instead of main to match the repository's default branch. --- README.md | 1 + dcp.schema.json | 2 +- lib/config.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2d4ada2..cb46a24 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ DCP uses its own config file: ```jsonc { + "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json", // Enable or disable the plugin "enabled": true, // Enable debug logging to ~/.config/opencode/logs/dcp/ diff --git a/dcp.schema.json b/dcp.schema.json index e874136..39823f2 100644 --- a/dcp.schema.json +++ b/dcp.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/main/dcp.schema.json", + "$id": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json", "title": "DCP Plugin Configuration", "description": "Configuration schema for the OpenCode Dynamic Context Pruning plugin", "type": "object", diff --git a/lib/config.ts b/lib/config.ts index d0c436d..ba5270b 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -488,7 +488,7 @@ function createDefaultConfig(): void { } const configContent = `{ - "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/main/dcp.schema.json", + "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json", // Enable or disable the plugin "enabled": true, // Enable debug logging to ~/.config/opencode/logs/dcp/ From 0b04aadb344215000c2657294e9ac8a33861a0dd Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Sat, 10 Jan 2026 19:56:44 -0500 Subject: [PATCH 2/2] fix: add $schema to valid config keys --- lib/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/config.ts b/lib/config.ts index ba5270b..f2e3413 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -73,6 +73,7 @@ const DEFAULT_PROTECTED_TOOLS = [ // Valid config keys for validation against user config export const VALID_CONFIG_KEYS = new Set([ // Top-level keys + "$schema", "enabled", "debug", "showUpdateToasts", // Deprecated but kept for backwards compatibility