opencodekit 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/dist/template/.opencode/opencode.json +11 -54
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -750,7 +750,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
750
750
|
// package.json
|
|
751
751
|
var package_default = {
|
|
752
752
|
name: "opencodekit",
|
|
753
|
-
version: "0.6.
|
|
753
|
+
version: "0.6.7",
|
|
754
754
|
description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
|
|
755
755
|
type: "module",
|
|
756
756
|
repository: {
|
|
@@ -1999,7 +1999,9 @@ async function configCommand(action) {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
function loadConfig(configPath) {
|
|
2002
|
-
|
|
2002
|
+
const content = readFileSync4(configPath, "utf-8");
|
|
2003
|
+
const jsonWithoutComments = content.replace(/\/\*[\s\S]*?\*\//g, "").replace(/^\s*\/\/.*$/gm, "");
|
|
2004
|
+
return JSON.parse(jsonWithoutComments);
|
|
2003
2005
|
}
|
|
2004
2006
|
function saveConfig(configPath, config) {
|
|
2005
2007
|
writeFileSync3(configPath, JSON.stringify(config, null, 2) + `
|
|
@@ -44,67 +44,26 @@
|
|
|
44
44
|
"experimental": {
|
|
45
45
|
"batch_tool": true,
|
|
46
46
|
"chatMaxRetries": 2,
|
|
47
|
-
"
|
|
48
|
-
"primary_tools": [
|
|
49
|
-
"edit",
|
|
50
|
-
"write",
|
|
51
|
-
"bash",
|
|
52
|
-
"prune"
|
|
53
|
-
]
|
|
47
|
+
"primary_tools": ["edit", "write", "bash", "prune"]
|
|
54
48
|
},
|
|
55
49
|
"formatter": {
|
|
56
50
|
"biome": {
|
|
57
|
-
"command": [
|
|
58
|
-
|
|
59
|
-
"@biomejs/biome",
|
|
60
|
-
"check",
|
|
61
|
-
"--write",
|
|
62
|
-
"$FILE"
|
|
63
|
-
],
|
|
64
|
-
"extensions": [
|
|
65
|
-
".js",
|
|
66
|
-
".jsx",
|
|
67
|
-
".ts",
|
|
68
|
-
".tsx",
|
|
69
|
-
".json",
|
|
70
|
-
".jsonc"
|
|
71
|
-
]
|
|
51
|
+
"command": ["npx", "@biomejs/biome", "check", "--write", "$FILE"],
|
|
52
|
+
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".jsonc"]
|
|
72
53
|
},
|
|
73
54
|
"java-formatter": {
|
|
74
|
-
"command": [
|
|
75
|
-
"google-java-format",
|
|
76
|
-
"--replace",
|
|
77
|
-
"$FILE"
|
|
78
|
-
],
|
|
55
|
+
"command": ["google-java-format", "--replace", "$FILE"],
|
|
79
56
|
"environment": {
|
|
80
57
|
"JAVA_HOME": "{env:JAVA_HOME}"
|
|
81
58
|
},
|
|
82
|
-
"extensions": [
|
|
83
|
-
".java"
|
|
84
|
-
]
|
|
59
|
+
"extensions": [".java"]
|
|
85
60
|
},
|
|
86
61
|
"prettier": {
|
|
87
|
-
"command": [
|
|
88
|
-
|
|
89
|
-
"prettier",
|
|
90
|
-
"--write",
|
|
91
|
-
"$FILE"
|
|
92
|
-
],
|
|
93
|
-
"extensions": [
|
|
94
|
-
".html",
|
|
95
|
-
".css",
|
|
96
|
-
".scss",
|
|
97
|
-
".sass",
|
|
98
|
-
".md",
|
|
99
|
-
".yaml",
|
|
100
|
-
".yml"
|
|
101
|
-
]
|
|
62
|
+
"command": ["npx", "prettier", "--write", "$FILE"],
|
|
63
|
+
"extensions": [".html", ".css", ".scss", ".sass", ".md", ".yaml", ".yml"]
|
|
102
64
|
}
|
|
103
65
|
},
|
|
104
|
-
"instructions": [
|
|
105
|
-
".opencode/memory/user.md",
|
|
106
|
-
".opencode/memory/project/*.md"
|
|
107
|
-
],
|
|
66
|
+
"instructions": [".opencode/memory/user.md", ".opencode/memory/project/*.md"],
|
|
108
67
|
"keybinds": {
|
|
109
68
|
"command_list": ";",
|
|
110
69
|
"leader": "`",
|
|
@@ -146,10 +105,7 @@
|
|
|
146
105
|
"url": "http://localhost:27495/mcp"
|
|
147
106
|
},
|
|
148
107
|
"playwright": {
|
|
149
|
-
"command": [
|
|
150
|
-
"npx",
|
|
151
|
-
"@playwright/mcp@latest"
|
|
152
|
-
],
|
|
108
|
+
"command": ["npx", "@playwright/mcp@latest"],
|
|
153
109
|
"enabled": false,
|
|
154
110
|
"type": "local"
|
|
155
111
|
}
|
|
@@ -533,4 +489,5 @@
|
|
|
533
489
|
".DS_Store"
|
|
534
490
|
]
|
|
535
491
|
}
|
|
536
|
-
}
|
|
492
|
+
}
|
|
493
|
+
|