@getcatalystiq/agent-plane-ui 0.1.29 → 0.1.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.
package/dist/index.cjs CHANGED
@@ -3362,7 +3362,8 @@ function FileTreeEditor2({
3362
3362
  addFolderLabel = "Folder",
3363
3363
  newFileTemplate = { filename: "SKILL.md", content: "---\nname: New Skill\ndescription: Describe when this skill should be triggered\n---\n\n# Instructions\n\nDescribe what this skill does...\n" },
3364
3364
  savedVersion,
3365
- fixedStructure = false
3365
+ fixedStructure = false,
3366
+ headerActions
3366
3367
  }) {
3367
3368
  const [files, setFiles] = React.useState(initialFiles);
3368
3369
  const [selectedPath, setSelectedPath] = React.useState(
@@ -3553,7 +3554,10 @@ function FileTreeEditor2({
3553
3554
  isDirty && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Badge, { variant: "destructive", className: "text-xs", children: "Unsaved changes" }),
3554
3555
  readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Badge, { variant: "secondary", className: "text-xs", children: "Read-only" })
3555
3556
  ] }),
3556
- !readOnly && !hideSave && /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Button, { onClick: handleSave, disabled: saving || !isDirty, size: "sm", children: saving ? "Saving..." : saveLabel })
3557
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
3558
+ headerActions,
3559
+ !readOnly && !hideSave && /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Button, { onClick: handleSave, disabled: saving || !isDirty, size: "sm", children: saving ? "Saving..." : saveLabel })
3560
+ ] })
3557
3561
  ] }),
3558
3562
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4 min-h-[500px]", children: [
3559
3563
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-64 shrink-0 border border-border rounded-md overflow-hidden", children: [
@@ -3839,7 +3843,6 @@ function AgentSkillManager({ agentId, initialSkills, onSaved }) {
3839
3843
  onSaved?.();
3840
3844
  }, [agentId, client, onSaved]);
3841
3845
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
3842
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Button, { size: "sm", variant: "outline", onClick: () => setImportOpen(true), children: "Import from skills.sh" }) }),
3843
3846
  /* @__PURE__ */ jsxRuntime.jsx(
3844
3847
  FileTreeEditor2,
3845
3848
  {
@@ -3851,7 +3854,8 @@ function AgentSkillManager({ agentId, initialSkills, onSaved }) {
3851
3854
  newFileTemplate: {
3852
3855
  filename: "SKILL.md",
3853
3856
  content: "---\nname: New Skill\ndescription: Describe when this skill should be triggered\n---\n\n# Instructions\n\nDescribe what this skill does...\n"
3854
- }
3857
+ },
3858
+ headerActions: /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Button, { size: "sm", variant: "outline", onClick: () => setImportOpen(true), children: "Import from skills.sh" })
3855
3859
  }
3856
3860
  ),
3857
3861
  /* @__PURE__ */ jsxRuntime.jsx(
package/dist/index.js CHANGED
@@ -3338,7 +3338,8 @@ function FileTreeEditor2({
3338
3338
  addFolderLabel = "Folder",
3339
3339
  newFileTemplate = { filename: "SKILL.md", content: "---\nname: New Skill\ndescription: Describe when this skill should be triggered\n---\n\n# Instructions\n\nDescribe what this skill does...\n" },
3340
3340
  savedVersion,
3341
- fixedStructure = false
3341
+ fixedStructure = false,
3342
+ headerActions
3342
3343
  }) {
3343
3344
  const [files, setFiles] = useState(initialFiles);
3344
3345
  const [selectedPath, setSelectedPath] = useState(
@@ -3529,7 +3530,10 @@ function FileTreeEditor2({
3529
3530
  isDirty && !readOnly && /* @__PURE__ */ jsx(Badge, { variant: "destructive", className: "text-xs", children: "Unsaved changes" }),
3530
3531
  readOnly && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs", children: "Read-only" })
3531
3532
  ] }),
3532
- !readOnly && !hideSave && /* @__PURE__ */ jsx(Button, { onClick: handleSave, disabled: saving || !isDirty, size: "sm", children: saving ? "Saving..." : saveLabel })
3533
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
3534
+ headerActions,
3535
+ !readOnly && !hideSave && /* @__PURE__ */ jsx(Button, { onClick: handleSave, disabled: saving || !isDirty, size: "sm", children: saving ? "Saving..." : saveLabel })
3536
+ ] })
3533
3537
  ] }),
3534
3538
  /* @__PURE__ */ jsxs("div", { className: "flex gap-4 min-h-[500px]", children: [
3535
3539
  /* @__PURE__ */ jsxs("div", { className: "w-64 shrink-0 border border-border rounded-md overflow-hidden", children: [
@@ -3815,7 +3819,6 @@ function AgentSkillManager({ agentId, initialSkills, onSaved }) {
3815
3819
  onSaved?.();
3816
3820
  }, [agentId, client, onSaved]);
3817
3821
  return /* @__PURE__ */ jsxs("div", { children: [
3818
- /* @__PURE__ */ jsx("div", { className: "flex items-center justify-end mb-4", children: /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: () => setImportOpen(true), children: "Import from skills.sh" }) }),
3819
3822
  /* @__PURE__ */ jsx(
3820
3823
  FileTreeEditor2,
3821
3824
  {
@@ -3827,7 +3830,8 @@ function AgentSkillManager({ agentId, initialSkills, onSaved }) {
3827
3830
  newFileTemplate: {
3828
3831
  filename: "SKILL.md",
3829
3832
  content: "---\nname: New Skill\ndescription: Describe when this skill should be triggered\n---\n\n# Instructions\n\nDescribe what this skill does...\n"
3830
- }
3833
+ },
3834
+ headerActions: /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: () => setImportOpen(true), children: "Import from skills.sh" })
3831
3835
  }
3832
3836
  ),
3833
3837
  /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getcatalystiq/agent-plane-ui",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Embeddable React component library for AgentPlane",
5
5
  "type": "module",
6
6
  "exports": {