@industry-theme/agent-panels 0.2.36 → 0.2.37

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":"AgentCard.d.ts","sourceRoot":"","sources":["../../../../src/panels/agents/components/AgentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;CACrB;AAiCD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuI9C,CAAC"}
1
+ {"version":3,"file":"AgentCard.d.ts","sourceRoot":"","sources":["../../../../src/panels/agents/components/AgentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;CACrB;AAiCD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAqK9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SubagentCard.d.ts","sourceRoot":"","sources":["../../../../src/panels/agents/components/SubagentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,OAAO,CAAC;CACrB;AA4CD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4KpD,CAAC"}
1
+ {"version":3,"file":"SubagentCard.d.ts","sourceRoot":"","sources":["../../../../src/panels/agents/components/SubagentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,OAAO,CAAC;CACrB;AA4CD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0KpD,CAAC"}
@@ -50794,7 +50794,18 @@ const AgentCard = ({ agent, onClick, isSelected }) => {
50794
50794
  var _a;
50795
50795
  const { theme: theme2 } = useTheme();
50796
50796
  const sourceBadge = getSourceBadge$1(agent.source);
50797
+ const [pathCopied, setPathCopied] = React2__default.useState(false);
50797
50798
  const preview = ((_a = agent.content.split("\n").find((line) => line.trim() && !line.startsWith("#"))) == null ? void 0 : _a.substring(0, 150)) || "No description available";
50799
+ const handleCopyPath = async (e) => {
50800
+ e.stopPropagation();
50801
+ try {
50802
+ await navigator.clipboard.writeText(agent.path);
50803
+ setPathCopied(true);
50804
+ setTimeout(() => setPathCopied(false), 2e3);
50805
+ } catch (err) {
50806
+ console.error("Failed to copy path:", err);
50807
+ }
50808
+ };
50798
50809
  return /* @__PURE__ */ jsxs(
50799
50810
  "div",
50800
50811
  {
@@ -50813,13 +50824,11 @@ const AgentCard = ({ agent, onClick, isSelected }) => {
50813
50824
  onMouseEnter: (e) => {
50814
50825
  if (!isSelected) {
50815
50826
  e.currentTarget.style.borderColor = theme2.colors.textSecondary;
50816
- e.currentTarget.style.transform = "translateY(-2px)";
50817
50827
  }
50818
50828
  },
50819
50829
  onMouseLeave: (e) => {
50820
50830
  if (!isSelected) {
50821
50831
  e.currentTarget.style.borderColor = theme2.colors.border;
50822
- e.currentTarget.style.transform = "translateY(0)";
50823
50832
  }
50824
50833
  },
50825
50834
  children: [
@@ -50873,13 +50882,33 @@ const AgentCard = ({ agent, onClick, isSelected }) => {
50873
50882
  /* @__PURE__ */ jsx(
50874
50883
  "div",
50875
50884
  {
50885
+ onClick: handleCopyPath,
50876
50886
  style: {
50877
50887
  fontSize: theme2.fontSizes[0],
50878
- color: theme2.colors.textSecondary,
50888
+ color: pathCopied ? theme2.colors.success : theme2.colors.textMuted,
50879
50889
  fontFamily: theme2.fonts.monospace,
50880
- wordBreak: "break-all"
50890
+ background: pathCopied ? `${theme2.colors.success}15` : theme2.colors.background,
50891
+ padding: "4px 8px",
50892
+ borderRadius: theme2.radii[1],
50893
+ overflow: "hidden",
50894
+ textOverflow: "ellipsis",
50895
+ whiteSpace: "nowrap",
50896
+ cursor: "pointer",
50897
+ transition: "all 0.2s ease",
50898
+ border: `1px solid ${pathCopied ? theme2.colors.success : "transparent"}`
50899
+ },
50900
+ title: pathCopied ? "Copied!" : `Click to copy: ${agent.path}`,
50901
+ onMouseEnter: (e) => {
50902
+ if (!pathCopied) {
50903
+ e.currentTarget.style.background = theme2.colors.backgroundTertiary || theme2.colors.border;
50904
+ }
50905
+ },
50906
+ onMouseLeave: (e) => {
50907
+ if (!pathCopied) {
50908
+ e.currentTarget.style.background = theme2.colors.background;
50909
+ }
50881
50910
  },
50882
- children: agent.path
50911
+ children: pathCopied ? "Copied!" : agent.path
50883
50912
  }
50884
50913
  ),
50885
50914
  /* @__PURE__ */ jsx(
@@ -50985,13 +51014,11 @@ const SubagentCard = ({ subagent, onClick, isSelected }) => {
50985
51014
  onMouseEnter: (e) => {
50986
51015
  if (!isSelected) {
50987
51016
  e.currentTarget.style.borderColor = theme2.colors.textSecondary;
50988
- e.currentTarget.style.transform = "translateY(-2px)";
50989
51017
  }
50990
51018
  },
50991
51019
  onMouseLeave: (e) => {
50992
51020
  if (!isSelected) {
50993
51021
  e.currentTarget.style.borderColor = theme2.colors.border;
50994
- e.currentTarget.style.transform = "translateY(0)";
50995
51022
  }
50996
51023
  },
50997
51024
  children: [