@house365/comate 0.9.3 → 0.9.5
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/bin/init.mjs +5 -10
- package/package.json +1 -1
package/bin/init.mjs
CHANGED
|
@@ -149,26 +149,21 @@ function openSpecState() {
|
|
|
149
149
|
return { status: atLeast(version, MIN_OPENSPEC) ? 'ready' : 'outdated', version };
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
//
|
|
153
|
-
//
|
|
154
|
-
//
|
|
155
|
-
// entry skill and the stable marker.
|
|
156
|
-
// Claude Code — installs it as a plugin under plugins/{cache,data}/.
|
|
152
|
+
// Only detect skills CLI installation (flattens obra/superpowers into one dir
|
|
153
|
+
// per skill). Claude Code plugin cache (plugins/{cache,data}/) is not a real
|
|
154
|
+
// user-level install and should not count.
|
|
157
155
|
const SUPERPOWERS_MARKERS = [
|
|
158
156
|
['using-superpowers'],
|
|
159
157
|
['brainstorming'],
|
|
160
|
-
['superpowers'],
|
|
161
|
-
['superpowers-claude-plugins-official'],
|
|
162
|
-
['cache', 'claude-plugins-official', 'superpowers'],
|
|
163
158
|
];
|
|
164
159
|
|
|
165
160
|
function superpowersInstalled(scope) {
|
|
166
161
|
const home = process.env.HOME ?? process.env.USERPROFILE ?? '';
|
|
167
162
|
const roots =
|
|
168
163
|
scope === 'global'
|
|
169
|
-
? ['.agents/skills', '.claude/skills', '.
|
|
164
|
+
? ['.agents/skills', '.claude/skills', '.config/skills', '.cursor/skills']
|
|
170
165
|
.map((r) => join(home, r))
|
|
171
|
-
: ['.agents/skills', '.claude/skills', '.
|
|
166
|
+
: ['.agents/skills', '.claude/skills', '.cursor/skills', '.codex/skills'];
|
|
172
167
|
return roots.some((root) => SUPERPOWERS_MARKERS.some((m) => existsSync(join(root, ...m))));
|
|
173
168
|
}
|
|
174
169
|
|