@industry-theme/agent-panels 0.2.17 → 0.2.19
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillsListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/SkillsListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SkillsListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/SkillsListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAOpD,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA0b1D,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -2579,7 +2579,7 @@ const findSkillFiles = (fileTree, isBrowserMode = false) => {
|
|
|
2579
2579
|
if (isBrowserMode) {
|
|
2580
2580
|
return file.name === "SKILL.md" || file.name.toLowerCase() === "skill.md";
|
|
2581
2581
|
}
|
|
2582
|
-
const isInSkillDir = path2.includes(".agent/skills/") || path2.includes(".claude/skills/");
|
|
2582
|
+
const isInSkillDir = path2.includes(".agent/skills/") || path2.includes(".claude/skills/") || path2.includes("skills/");
|
|
2583
2583
|
return isMarkdown && isInSkillDir;
|
|
2584
2584
|
});
|
|
2585
2585
|
return skillFiles.map((file) => file.relativePath);
|
|
@@ -3295,6 +3295,20 @@ const SkillsListPanel = ({
|
|
|
3295
3295
|
var _a;
|
|
3296
3296
|
return (_a = panelRef.current) == null ? void 0 : _a.focus();
|
|
3297
3297
|
});
|
|
3298
|
+
useEffect(() => {
|
|
3299
|
+
const unsubscribeInstalled = events.on("skill:installed", () => {
|
|
3300
|
+
console.log("[SkillsListPanel] Skill installed, refreshing...");
|
|
3301
|
+
refreshSkills();
|
|
3302
|
+
});
|
|
3303
|
+
const unsubscribeUninstalled = events.on("skill:uninstalled", () => {
|
|
3304
|
+
console.log("[SkillsListPanel] Skill uninstalled, refreshing...");
|
|
3305
|
+
refreshSkills();
|
|
3306
|
+
});
|
|
3307
|
+
return () => {
|
|
3308
|
+
unsubscribeInstalled();
|
|
3309
|
+
unsubscribeUninstalled();
|
|
3310
|
+
};
|
|
3311
|
+
}, [events, refreshSkills]);
|
|
3298
3312
|
const hasRepository = useMemo(() => {
|
|
3299
3313
|
const fileTreeSlice = context.getSlice("fileTree");
|
|
3300
3314
|
return !!(fileTreeSlice == null ? void 0 : fileTreeSlice.data);
|