diff options
| author | Garrett Ladley <[email protected]> | 2025-04-27 14:11:09 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-27 20:11:09 +0200 |
| commit | 8f3a94df92ce783f8957aeb66b08801be736adfb (patch) | |
| tree | c2e9442f2e9b3df2f0e60c2220502aa1f64cb1bf /cmd | |
| parent | 4415220555d8de0f28a2c17c01805eb98df395d4 (diff) | |
| download | opencode-8f3a94df92ce783f8957aeb66b08801be736adfb.tar.gz opencode-8f3a94df92ce783f8957aeb66b08801be736adfb.zip | |
feat: configure context paths (#86)
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/schema/main.go | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/cmd/schema/main.go b/cmd/schema/main.go index 287967f51..7ab10aceb 100644 --- a/cmd/schema/main.go +++ b/cmd/schema/main.go @@ -77,6 +77,27 @@ func generateSchema() map[string]any { "default": false, } + schema["properties"].(map[string]any)["contextPaths"] = map[string]any{ + "type": "array", + "description": "Context paths for the application", + "items": map[string]any{ + "type": "string", + }, + "default": []string{ + ".github/copilot-instructions.md", + ".cursorrules", + ".cursor/rules/", + "CLAUDE.md", + "CLAUDE.local.md", + "opencode.md", + "opencode.local.md", + "OpenCode.md", + "OpenCode.local.md", + "OPENCODE.md", + "OPENCODE.local.md", + }, + } + // Add MCP servers schema["properties"].(map[string]any)["mcpServers"] = map[string]any{ "type": "object", @@ -259,4 +280,3 @@ func generateSchema() map[string]any { return schema } - |
