@industry-theme/agent-panels 0.2.28 → 0.2.30
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,
|
|
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"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -3908,7 +3908,8 @@ const SkillsBrowsePanel = ({
|
|
|
3908
3908
|
const fileTreeSlice = context.getSlice("fileTree");
|
|
3909
3909
|
const fileTree = fileTreeSlice == null ? void 0 : fileTreeSlice.data;
|
|
3910
3910
|
const sourceInfo = (_a = fileTree == null ? void 0 : fileTree.metadata) == null ? void 0 : _a.sourceInfo;
|
|
3911
|
-
const
|
|
3911
|
+
const owner = sourceInfo == null ? void 0 : sourceInfo.owner;
|
|
3912
|
+
const repo = sourceInfo == null ? void 0 : sourceInfo.repo;
|
|
3912
3913
|
gt("skills-browse", events, () => {
|
|
3913
3914
|
var _a2;
|
|
3914
3915
|
return (_a2 = panelRef.current) == null ? void 0 : _a2.focus();
|
|
@@ -4002,7 +4003,50 @@ const SkillsBrowsePanel = ({
|
|
|
4002
4003
|
},
|
|
4003
4004
|
children: [
|
|
4004
4005
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
4005
|
-
/* @__PURE__ */
|
|
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(
|
|
4006
4050
|
"h2",
|
|
4007
4051
|
{
|
|
4008
4052
|
style: {
|
|
@@ -4010,22 +4054,7 @@ const SkillsBrowsePanel = ({
|
|
|
4010
4054
|
fontSize: theme2.fontSizes[4],
|
|
4011
4055
|
color: theme2.colors.text
|
|
4012
4056
|
},
|
|
4013
|
-
children:
|
|
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(
|
|
4057
|
+
children: /* @__PURE__ */ jsx(
|
|
4029
4058
|
"a",
|
|
4030
4059
|
{
|
|
4031
4060
|
href: "https://agentskills.io/",
|
|
@@ -48940,7 +48969,7 @@ const SkillSidebar = ({
|
|
|
48940
48969
|
skill
|
|
48941
48970
|
}) => {
|
|
48942
48971
|
const [activeTab, setActiveTab] = React2__default.useState("toc");
|
|
48943
|
-
const [isCollapsed, setIsCollapsed] = React2__default.useState(
|
|
48972
|
+
const [isCollapsed, setIsCollapsed] = React2__default.useState(true);
|
|
48944
48973
|
const hasMetadata = metadata.compatibility || metadata["allowed-tools"] && metadata["allowed-tools"].length > 0 || metadata.metadata && Object.keys(metadata.metadata).length > 0 || (skill == null ? void 0 : skill.installedLocations) && skill.installedLocations.length > 1;
|
|
48945
48974
|
React2__default.useEffect(() => {
|
|
48946
48975
|
if (headers.length === 0 && hasMetadata) {
|