@industry-theme/agent-panels 0.2.27 → 0.2.29

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,CA6Y9D,CAAC"}
@@ -3898,15 +3898,21 @@ 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 owner = sourceInfo == null ? void 0 : sourceInfo.owner;
3912
+ const repo = sourceInfo == null ? void 0 : sourceInfo.repo;
3907
3913
  gt("skills-browse", events, () => {
3908
- var _a;
3909
- return (_a = panelRef.current) == null ? void 0 : _a.focus();
3914
+ var _a2;
3915
+ return (_a2 = panelRef.current) == null ? void 0 : _a2.focus();
3910
3916
  });
3911
3917
  useEffect(() => {
3912
3918
  const unsubscribeInstalled = events.on("skill:installed", () => {
@@ -3927,9 +3933,9 @@ const SkillsBrowsePanel = ({
3927
3933
  if (searchQuery.trim()) {
3928
3934
  const query = searchQuery.toLowerCase().trim();
3929
3935
  filtered = filtered.filter((skill) => {
3930
- var _a, _b;
3936
+ var _a2, _b;
3931
3937
  if (skill.name.toLowerCase().includes(query)) return true;
3932
- if ((_a = skill.description) == null ? void 0 : _a.toLowerCase().includes(query)) return true;
3938
+ if ((_a2 = skill.description) == null ? void 0 : _a2.toLowerCase().includes(query)) return true;
3933
3939
  if ((_b = skill.capabilities) == null ? void 0 : _b.some((cap2) => cap2.toLowerCase().includes(query)))
3934
3940
  return true;
3935
3941
  if (skill.path.toLowerCase().includes(query)) return true;
@@ -3997,7 +4003,50 @@ const SkillsBrowsePanel = ({
3997
4003
  },
3998
4004
  children: [
3999
4005
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
4000
- /* @__PURE__ */ jsx(
4006
+ owner && repo ? /* @__PURE__ */ jsxs(
4007
+ "a",
4008
+ {
4009
+ href: `https://github.com/${owner}/${repo}`,
4010
+ target: "_blank",
4011
+ rel: "noopener noreferrer",
4012
+ style: {
4013
+ textDecoration: "none",
4014
+ display: "flex",
4015
+ flexDirection: "column",
4016
+ gap: "2px"
4017
+ },
4018
+ children: [
4019
+ /* @__PURE__ */ jsx(
4020
+ "h2",
4021
+ {
4022
+ style: {
4023
+ margin: 0,
4024
+ fontSize: theme2.fontSizes[4],
4025
+ color: theme2.colors.text,
4026
+ fontFamily: theme2.fonts.monospace,
4027
+ lineHeight: 1.2
4028
+ },
4029
+ onMouseEnter: (e) => e.currentTarget.style.textDecoration = "underline",
4030
+ onMouseLeave: (e) => e.currentTarget.style.textDecoration = "none",
4031
+ children: repo
4032
+ }
4033
+ ),
4034
+ /* @__PURE__ */ jsx(
4035
+ "div",
4036
+ {
4037
+ style: {
4038
+ fontSize: theme2.fontSizes[1],
4039
+ color: theme2.colors.textSecondary,
4040
+ fontFamily: theme2.fonts.monospace
4041
+ },
4042
+ onMouseEnter: (e) => e.currentTarget.style.textDecoration = "underline",
4043
+ onMouseLeave: (e) => e.currentTarget.style.textDecoration = "none",
4044
+ children: owner
4045
+ }
4046
+ )
4047
+ ]
4048
+ }
4049
+ ) : /* @__PURE__ */ jsx(
4001
4050
  "h2",
4002
4051
  {
4003
4052
  style: {