Skip to content

Commit d7399a6

Browse files
authored
Merge pull request #238 from Opencode-DCP/sync/master-to-dev-v1.1.5
Sync master to dev - v1.1.5
2 parents 7216dff + 12f8d5c commit d7399a6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ DCP uses its own config file:
6464

6565
```jsonc
6666
{
67+
"$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
6768
// Enable or disable the plugin
6869
"enabled": true,
6970
// Enable debug logging to ~/.config/opencode/logs/dcp/

dcp.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/main/dcp.schema.json",
3+
"$id": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
44
"title": "DCP Plugin Configuration",
55
"description": "Configuration schema for the OpenCode Dynamic Context Pruning plugin",
66
"type": "object",

lib/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const DEFAULT_PROTECTED_TOOLS = [
7373
// Valid config keys for validation against user config
7474
export const VALID_CONFIG_KEYS = new Set([
7575
// Top-level keys
76+
"$schema",
7677
"enabled",
7778
"debug",
7879
"showUpdateToasts", // Deprecated but kept for backwards compatibility
@@ -488,7 +489,7 @@ function createDefaultConfig(): void {
488489
}
489490

490491
const configContent = `{
491-
"$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/main/dcp.schema.json",
492+
"$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
492493
// Enable or disable the plugin
493494
"enabled": true,
494495
// Enable debug logging to ~/.config/opencode/logs/dcp/

0 commit comments

Comments
 (0)