@getcatalystiq/agent-plane-ui 0.1.13 → 0.1.15
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 +0 -1
- package/dist/charts.js +0 -1
- package/dist/{chunk-TZGIXZON.cjs → chunk-4XBBDUSZ.cjs} +0 -1
- package/dist/{chunk-HMB7OKXO.js → chunk-P4N2P42X.js} +0 -1
- package/dist/editor.cjs +21 -21
- package/dist/editor.js +1 -1
- package/dist/index.cjs +247 -255
- package/dist/index.js +3 -11
- package/package.json +1 -1
- /package/dist/{code-editor-E7L6Y3LM.js → code-editor-4MLYH7I6.js} +0 -0
- /package/dist/{code-editor-ZD5ZILTM.cjs → code-editor-ZYP54YUT.cjs} +0 -0
package/dist/charts.cjs
CHANGED
package/dist/charts.js
CHANGED
|
@@ -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
|
package/dist/editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
-
|
|
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(
|
|
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(
|
|
296
|
-
readOnly && /* @__PURE__ */ jsxRuntime.jsx(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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 } =
|
|
386
|
-
const client =
|
|
387
|
-
const { data: pluginFiles, error, isLoading } =
|
|
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(
|
|
446
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
447
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
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(
|
|
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(
|
|
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(
|
|
522
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
523
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
524
|
-
readOnly && /* @__PURE__ */ jsxRuntime.jsx(
|
|
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(
|
|
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-
|
|
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';
|