opencode-skills-doctor 0.3.14 → 0.3.15
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/package.json +1 -1
- package/src/install.mjs +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-skills-doctor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Audit, fix and update agent skills: per-step context cost, shadowed duplicates, safe archive, catalog sync. CLI, OpenCode plugin and MCP server (Claude Code / Codex / any MCP client).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
package/src/install.mjs
CHANGED
|
@@ -281,7 +281,10 @@ export function uninstallOpenCode({ configDir = defaultConfigDir(), version = nu
|
|
|
281
281
|
|
|
282
282
|
if (fs.existsSync(pluginFile)) {
|
|
283
283
|
const content = readText(pluginFile) ?? ""
|
|
284
|
-
|
|
284
|
+
const generated =
|
|
285
|
+
content.includes("Generated by skills-doctor install") ||
|
|
286
|
+
(content.includes("SkillsDoctorPlugin") && content.includes("opencode-skills-doctor/v1"))
|
|
287
|
+
if (generated) {
|
|
285
288
|
if (!dryRun) {
|
|
286
289
|
fs.rmSync(pluginFile, { force: true })
|
|
287
290
|
act(`deleted ${pluginFile}`)
|