chore: rename OPENCODE -> CRUSH

Kujtim Hoxha created

Change summary

.gitignore                | 4 ++--
cmd/schema/main.go        | 4 ++--
crush-schema.json         | 4 ++--
crush.md                  | 0 
internal/config/config.go | 6 +++---
5 files changed, 9 insertions(+), 9 deletions(-)

Detailed changes

.gitignore 🔗

@@ -41,6 +41,6 @@ Thumbs.db
 .env
 .env.local
 
-.opencode/
+.crush/
 
-opencode
+crush

cmd/schema/main.go 🔗

@@ -93,8 +93,8 @@ func generateSchema() map[string]any {
 			"crush.local.md",
 			"Crush.md",
 			"Crush.local.md",
-			"OPENCODE.md",
-			"OPENCODE.local.md",
+			"CRUSH.md",
+			"CRUSH.local.md",
 		},
 	}
 

opencode-schema.json → crush-schema.json 🔗

@@ -220,8 +220,8 @@
         "crush.local.md",
         "Crush.md",
         "Crush.local.md",
-        "OPENCODE.md",
-        "OPENCODE.local.md"
+        "CRUSH.md",
+        "CRUSH.local.md"
       ],
       "description": "Context paths for the application",
       "items": {

internal/config/config.go 🔗

@@ -114,8 +114,8 @@ var defaultContextPaths = []string{
 	"crush.local.md",
 	"Crush.md",
 	"Crush.local.md",
-	"OPENCODE.md",
-	"OPENCODE.local.md",
+	"CRUSH.md",
+	"CRUSH.local.md",
 }
 
 // Global configuration instance
@@ -159,7 +159,7 @@ func Load(workingDir string, debug bool) (*Config, error) {
 	if cfg.Debug {
 		defaultLevel = slog.LevelDebug
 	}
-	if os.Getenv("OPENCODE_DEV_DEBUG") == "true" {
+	if os.Getenv("CRUSH_DEV_DEBUG") == "true" {
 		loggingFile := fmt.Sprintf("%s/%s", cfg.Data.Directory, "debug.log")
 
 		// if file does not exist create it