@getcatalystiq/agent-plane-ui 0.1.13 → 0.1.14

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/charts.cjs CHANGED
@@ -3,7 +3,6 @@
3
3
  var recharts = require('recharts');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
- // src/components/pages/run-charts.tsx
7
6
  var COLORS = [
8
7
  "#6366f1",
9
8
  "#f59e0b",
package/dist/charts.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Legend, Line } from 'recharts';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
 
4
- // src/components/pages/run-charts.tsx
5
4
  var COLORS = [
6
5
  "#6366f1",
7
6
  "#f59e0b",
@@ -30,7 +30,6 @@ function _interopNamespace(e) {
30
30
  var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
31
31
  var useSWR__default = /*#__PURE__*/_interopDefault(useSWR);
32
32
 
33
- // src/provider.tsx
34
33
  var ClientContext = React3.createContext(null);
35
34
  var NavigationContext = React3.createContext(
36
35
  null
@@ -6,7 +6,6 @@ import { clsx } from 'clsx';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
  import { cva } from 'class-variance-authority';
8
8
 
9
- // src/provider.tsx
10
9
  var ClientContext = createContext(null);
11
10
  var NavigationContext = createContext(
12
11
  null
package/dist/editor.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTZGIXZON_cjs = require('./chunk-TZGIXZON.cjs');
3
+ var chunk4XBBDUSZ_cjs = require('./chunk-4XBBDUSZ.cjs');
4
4
  var react = require('react');
5
5
  var CodeMirror = require('@uiw/react-codemirror');
6
6
  var langMarkdown = require('@codemirror/lang-markdown');
@@ -263,7 +263,7 @@ function FileTreeEditor({
263
263
  }),
264
264
  !readOnly && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { paddingLeft: `${(depth + 1) * 16 + 8}px` }, className: "py-1 pr-2", children: addingFileInDir === node.fullPath ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-1", children: [
265
265
  /* @__PURE__ */ jsxRuntime.jsx(
266
- chunkTZGIXZON_cjs.Input,
266
+ chunk4XBBDUSZ_cjs.Input,
267
267
  {
268
268
  value: newFileName,
269
269
  onChange: (e) => setNewFileName(e.target.value),
@@ -273,7 +273,7 @@ function FileTreeEditor({
273
273
  autoFocus: true
274
274
  }
275
275
  ),
276
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Button, { onClick: () => addFileInDir(node.fullPath), size: "sm", className: "h-6 text-xs px-2", children: "+" })
276
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Button, { onClick: () => addFileInDir(node.fullPath), size: "sm", className: "h-6 text-xs px-2", children: "+" })
277
277
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(
278
278
  "button",
279
279
  {
@@ -292,10 +292,10 @@ function FileTreeEditor({
292
292
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
293
293
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
294
294
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
295
- isDirty && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Badge, { variant: "destructive", className: "text-xs", children: "Unsaved changes" }),
296
- readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Badge, { variant: "secondary", className: "text-xs", children: "Read-only" })
295
+ isDirty && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Badge, { variant: "destructive", className: "text-xs", children: "Unsaved changes" }),
296
+ readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Badge, { variant: "secondary", className: "text-xs", children: "Read-only" })
297
297
  ] }),
298
- !readOnly && !hideSave && /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Button, { onClick: handleSave, disabled: saving || !isDirty, size: "sm", children: saving ? "Saving..." : saveLabel })
298
+ !readOnly && !hideSave && /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Button, { onClick: handleSave, disabled: saving || !isDirty, size: "sm", children: saving ? "Saving..." : saveLabel })
299
299
  ] }),
300
300
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4 min-h-[500px]", children: [
301
301
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-64 shrink-0 border border-border rounded-md overflow-hidden", children: [
@@ -315,7 +315,7 @@ function FileTreeEditor({
315
315
  ] }),
316
316
  showAddFolder && !readOnly && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2 border-b border-border flex gap-1", children: [
317
317
  /* @__PURE__ */ jsxRuntime.jsx(
318
- chunkTZGIXZON_cjs.Input,
318
+ chunk4XBBDUSZ_cjs.Input,
319
319
  {
320
320
  value: newFolderName,
321
321
  onChange: (e) => setNewFolderName(e.target.value),
@@ -325,7 +325,7 @@ function FileTreeEditor({
325
325
  autoFocus: true
326
326
  }
327
327
  ),
328
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Button, { onClick: addFolder, size: "sm", className: "h-7 text-xs px-2", children: "Add" })
328
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Button, { onClick: addFolder, size: "sm", className: "h-7 text-xs px-2", children: "Add" })
329
329
  ] }),
330
330
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm overflow-y-auto", children: [
331
331
  tree.rootFiles.map((file) => /* @__PURE__ */ jsxRuntime.jsxs(
@@ -382,9 +382,9 @@ function FileTreeEditor({
382
382
  ] });
383
383
  }
384
384
  function PluginEditorPage({ marketplaceId, pluginName }) {
385
- const { LinkComponent, basePath } = chunkTZGIXZON_cjs.useNavigation();
386
- const client = chunkTZGIXZON_cjs.useAgentPlaneClient();
387
- const { data: pluginFiles, error, isLoading } = chunkTZGIXZON_cjs.useApi(
385
+ const { LinkComponent, basePath } = chunk4XBBDUSZ_cjs.useNavigation();
386
+ const client = chunk4XBBDUSZ_cjs.useAgentPlaneClient();
387
+ const { data: pluginFiles, error, isLoading } = chunk4XBBDUSZ_cjs.useApi(
388
388
  `marketplace-${marketplaceId}-plugin-files-${pluginName}`,
389
389
  (c) => c.pluginMarketplaces.getPluginFiles(marketplaceId, pluginName)
390
390
  );
@@ -442,9 +442,9 @@ function PluginEditorPage({ marketplaceId, pluginName }) {
442
442
  }
443
443
  if (isLoading || !pluginFiles) {
444
444
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
445
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Skeleton, { className: "h-8 w-48" }),
446
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Skeleton, { className: "h-4 w-96" }),
447
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Skeleton, { className: "h-[500px] rounded-lg" })
445
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Skeleton, { className: "h-8 w-48" }),
446
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Skeleton, { className: "h-4 w-96" }),
447
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Skeleton, { className: "h-[500px] rounded-lg" })
448
448
  ] });
449
449
  }
450
450
  const tabs = [
@@ -464,7 +464,7 @@ function PluginEditorPage({ marketplaceId, pluginName }) {
464
464
  ) }),
465
465
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
466
466
  /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold", children: pluginName }),
467
- readOnly ? /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Badge, { variant: "outline", children: "Read-only" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Badge, { variant: "secondary", children: "Editable" })
467
+ readOnly ? /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Badge, { variant: "outline", children: "Read-only" }) : /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Badge, { variant: "secondary", children: "Editable" })
468
468
  ] })
469
469
  ] }),
470
470
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end border-b border-border", children: [
@@ -487,7 +487,7 @@ function PluginEditorPage({ marketplaceId, pluginName }) {
487
487
  !readOnly && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 ml-auto pb-2", children: [
488
488
  saveError && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-destructive", children: saveError }),
489
489
  success && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-green-500", children: success }),
490
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Button, { size: "sm", onClick: handleSaveAll, disabled: saving, children: saving ? "Pushing to GitHub..." : "Save All to GitHub" })
490
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Button, { size: "sm", onClick: handleSaveAll, disabled: saving, children: saving ? "Pushing to GitHub..." : "Save All to GitHub" })
491
491
  ] })
492
492
  ] }),
493
493
  activeTab === "agents" && /* @__PURE__ */ jsxRuntime.jsx(
@@ -518,12 +518,12 @@ function PluginEditorPage({ marketplaceId, pluginName }) {
518
518
  savedVersion
519
519
  }
520
520
  ),
521
- activeTab === "connectors" && /* @__PURE__ */ jsxRuntime.jsxs(chunkTZGIXZON_cjs.Card, { children: [
522
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.CardHeader, { className: "flex flex-row items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
523
- /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.CardTitle, { className: "text-base", children: "Connectors (.mcp.json)" }),
524
- readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkTZGIXZON_cjs.Badge, { variant: "secondary", className: "text-xs", children: "Read-only" })
521
+ activeTab === "connectors" && /* @__PURE__ */ jsxRuntime.jsxs(chunk4XBBDUSZ_cjs.Card, { children: [
522
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.CardHeader, { className: "flex flex-row items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
523
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.CardTitle, { className: "text-base", children: "Connectors (.mcp.json)" }),
524
+ readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunk4XBBDUSZ_cjs.Badge, { variant: "secondary", className: "text-xs", children: "Read-only" })
525
525
  ] }) }),
526
- /* @__PURE__ */ jsxRuntime.jsxs(chunkTZGIXZON_cjs.CardContent, { children: [
526
+ /* @__PURE__ */ jsxRuntime.jsxs(chunk4XBBDUSZ_cjs.CardContent, { children: [
527
527
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-border rounded-md overflow-hidden", children: [
528
528
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5 bg-muted/50 border-b border-border text-xs text-muted-foreground", children: ".mcp.json" }),
529
529
  /* @__PURE__ */ jsxRuntime.jsx(
package/dist/editor.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Badge, Button, Input, useNavigation, useAgentPlaneClient, useApi, Skeleton, Card, CardHeader, CardTitle, CardContent } from './chunk-HMB7OKXO.js';
1
+ import { Badge, Button, Input, useNavigation, useAgentPlaneClient, useApi, Skeleton, Card, CardHeader, CardTitle, CardContent } from './chunk-P4N2P42X.js';
2
2
  import { useState, useEffect, useRef, useMemo, useCallback } from 'react';
3
3
  import CodeMirror from '@uiw/react-codemirror';
4
4
  import { markdown } from '@codemirror/lang-markdown';