skiller 0.7.14 → 0.7.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.
|
@@ -141,8 +141,24 @@ function resolvePluginInstall(pluginId, projectRoot, index) {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
const userCandidates = entries.filter((e) => e && e.scope === 'user');
|
|
144
|
-
if (userCandidates.length === 0)
|
|
145
|
-
|
|
144
|
+
if (userCandidates.length === 0) {
|
|
145
|
+
// Fallback: if the plugin is installed for a different project but enabled
|
|
146
|
+
// here, still use the newest available install. This avoids noisy
|
|
147
|
+
// "not installed" warnings for plugins that don't ship skills/commands.
|
|
148
|
+
const anyCandidates = entries.filter((e) => e && typeof e.installPath === 'string' && e.installPath.length > 0);
|
|
149
|
+
if (anyCandidates.length === 0)
|
|
150
|
+
return null;
|
|
151
|
+
anyCandidates.sort((a, b) => {
|
|
152
|
+
const at = parseDate(a.lastUpdated) || parseDate(a.installedAt);
|
|
153
|
+
const bt = parseDate(b.lastUpdated) || parseDate(b.installedAt);
|
|
154
|
+
return bt - at;
|
|
155
|
+
});
|
|
156
|
+
return {
|
|
157
|
+
pluginId,
|
|
158
|
+
installPath: anyCandidates[0].installPath,
|
|
159
|
+
version: anyCandidates[0].version,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
146
162
|
userCandidates.sort((a, b) => {
|
|
147
163
|
const at = parseDate(a.lastUpdated) || parseDate(a.installedAt);
|
|
148
164
|
const bt = parseDate(b.lastUpdated) || parseDate(b.installedAt);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skiller",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.7.15",
|
|
4
|
+
"description": "Skiller — apply the same rules to all coding agents",
|
|
5
5
|
"main": "dist/lib.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|