@industry-theme/agent-panels 0.2.27 → 0.2.28

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":"SkillsBrowsePanel.d.ts","sourceRoot":"","sources":["../../src/panels/SkillsBrowsePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKpD,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA+V9D,CAAC"}
1
+ {"version":3,"file":"SkillsBrowsePanel.d.ts","sourceRoot":"","sources":["../../src/panels/SkillsBrowsePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKpD,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwX9D,CAAC"}
@@ -3898,15 +3898,20 @@ const SkillsBrowsePanel = ({
3898
3898
  events,
3899
3899
  supportsRefresh = false
3900
3900
  }) => {
3901
+ var _a;
3901
3902
  const { theme: theme2 } = useTheme();
3902
3903
  const panelRef = useRef(null);
3903
3904
  const [selectedSkillId, setSelectedSkillId] = useState(null);
3904
3905
  const [searchQuery, setSearchQuery] = useState("");
3905
3906
  const [isRefreshing, setIsRefreshing] = useState(false);
3906
3907
  const { skills, isLoading, error, refreshSkills } = useSkillsBrowseData({ context });
3908
+ const fileTreeSlice = context.getSlice("fileTree");
3909
+ const fileTree = fileTreeSlice == null ? void 0 : fileTreeSlice.data;
3910
+ const sourceInfo = (_a = fileTree == null ? void 0 : fileTree.metadata) == null ? void 0 : _a.sourceInfo;
3911
+ const repoDisplayName = (sourceInfo == null ? void 0 : sourceInfo.owner) && (sourceInfo == null ? void 0 : sourceInfo.repo) ? `${sourceInfo.owner}/${sourceInfo.repo}` : null;
3907
3912
  gt("skills-browse", events, () => {
3908
- var _a;
3909
- return (_a = panelRef.current) == null ? void 0 : _a.focus();
3913
+ var _a2;
3914
+ return (_a2 = panelRef.current) == null ? void 0 : _a2.focus();
3910
3915
  });
3911
3916
  useEffect(() => {
3912
3917
  const unsubscribeInstalled = events.on("skill:installed", () => {
@@ -3927,9 +3932,9 @@ const SkillsBrowsePanel = ({
3927
3932
  if (searchQuery.trim()) {
3928
3933
  const query = searchQuery.toLowerCase().trim();
3929
3934
  filtered = filtered.filter((skill) => {
3930
- var _a, _b;
3935
+ var _a2, _b;
3931
3936
  if (skill.name.toLowerCase().includes(query)) return true;
3932
- if ((_a = skill.description) == null ? void 0 : _a.toLowerCase().includes(query)) return true;
3937
+ if ((_a2 = skill.description) == null ? void 0 : _a2.toLowerCase().includes(query)) return true;
3933
3938
  if ((_b = skill.capabilities) == null ? void 0 : _b.some((cap2) => cap2.toLowerCase().includes(query)))
3934
3939
  return true;
3935
3940
  if (skill.path.toLowerCase().includes(query)) return true;
@@ -4005,7 +4010,22 @@ const SkillsBrowsePanel = ({
4005
4010
  fontSize: theme2.fontSizes[4],
4006
4011
  color: theme2.colors.text
4007
4012
  },
4008
- children: /* @__PURE__ */ jsx(
4013
+ children: repoDisplayName ? /* @__PURE__ */ jsx(
4014
+ "a",
4015
+ {
4016
+ href: `https://github.com/${repoDisplayName}`,
4017
+ target: "_blank",
4018
+ rel: "noopener noreferrer",
4019
+ style: {
4020
+ color: "inherit",
4021
+ textDecoration: "none",
4022
+ fontFamily: theme2.fonts.monospace
4023
+ },
4024
+ onMouseEnter: (e) => e.currentTarget.style.textDecoration = "underline",
4025
+ onMouseLeave: (e) => e.currentTarget.style.textDecoration = "none",
4026
+ children: repoDisplayName
4027
+ }
4028
+ ) : /* @__PURE__ */ jsx(
4009
4029
  "a",
4010
4030
  {
4011
4031
  href: "https://agentskills.io/",