@getcatalystiq/agent-plane-ui 0.1.21 → 0.1.23
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/{agent-identity-tab-F4MU2HP2.cjs → agent-identity-tab-3ERMWHVJ.cjs} +2 -2
- package/dist/agent-identity-tab-G62JP5VR.js +2 -0
- package/dist/{chunk-CHJL4MZI.cjs → chunk-NLED4YEY.cjs} +33 -10
- package/dist/{chunk-L45SI32F.js → chunk-QXTNBR6E.js} +33 -10
- package/dist/editor.cjs +2 -2
- package/dist/editor.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/agent-identity-tab-ETPM6LQN.js +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNLED4YEY_cjs = require('./chunk-NLED4YEY.cjs');
|
|
4
4
|
require('./chunk-XXF4U7WL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AgentIdentityTab", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkNLED4YEY_cjs.AgentIdentityTab; }
|
|
11
11
|
});
|
|
@@ -74,12 +74,11 @@ function AgentIdentityTab({
|
|
|
74
74
|
const newFiles = [];
|
|
75
75
|
for (const { path, field } of FILE_MAP) {
|
|
76
76
|
const content = responseFiles[field] ?? responseFiles[path];
|
|
77
|
-
|
|
78
|
-
newFiles.push({ path, content });
|
|
79
|
-
}
|
|
77
|
+
newFiles.push({ path, content: content ?? "" });
|
|
80
78
|
}
|
|
81
79
|
if (newFiles.length > 0) {
|
|
82
80
|
setOverrideFiles(newFiles);
|
|
81
|
+
setSavedVersion((v) => v + 1);
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
async function handleGenerate() {
|
|
@@ -142,34 +141,58 @@ function AgentIdentityTab({
|
|
|
142
141
|
warnings.push("IDENTITY.md is empty -- consider adding behavioral traits");
|
|
143
142
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
144
143
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
145
|
-
onGenerateSoul && /* @__PURE__ */ jsxRuntime.
|
|
144
|
+
onGenerateSoul && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
146
145
|
chunkXXF4U7WL_cjs.Button,
|
|
147
146
|
{
|
|
148
147
|
variant: "outline",
|
|
149
148
|
size: "sm",
|
|
150
149
|
onClick: handleGenerate,
|
|
151
150
|
disabled: generating,
|
|
152
|
-
children:
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3Z" }) }),
|
|
153
|
+
generating ? "Generating..." : "Generate Soul"
|
|
154
|
+
]
|
|
153
155
|
}
|
|
154
156
|
),
|
|
155
|
-
onImportSoul && /* @__PURE__ */ jsxRuntime.
|
|
157
|
+
onImportSoul && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
156
158
|
chunkXXF4U7WL_cjs.Button,
|
|
157
159
|
{
|
|
158
160
|
variant: "outline",
|
|
159
161
|
size: "sm",
|
|
160
162
|
onClick: () => setImportOpen(true),
|
|
161
|
-
children:
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
165
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
166
|
+
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
167
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", x2: "12", y1: "15", y2: "3" })
|
|
168
|
+
] }),
|
|
169
|
+
"Import"
|
|
170
|
+
]
|
|
162
171
|
}
|
|
163
172
|
),
|
|
164
|
-
onExportSoul && /* @__PURE__ */ jsxRuntime.
|
|
165
|
-
|
|
173
|
+
onExportSoul && /* @__PURE__ */ jsxRuntime.jsxs(chunkXXF4U7WL_cjs.Button, { variant: "outline", size: "sm", onClick: handleExport, children: [
|
|
174
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
175
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
176
|
+
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "17 8 12 3 7 8" }),
|
|
177
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", x2: "12", y1: "3", y2: "15" })
|
|
178
|
+
] }),
|
|
179
|
+
"Export"
|
|
180
|
+
] }),
|
|
181
|
+
onPublishSoul && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
166
182
|
chunkXXF4U7WL_cjs.Button,
|
|
167
183
|
{
|
|
168
184
|
variant: "outline",
|
|
169
185
|
size: "sm",
|
|
170
186
|
onClick: handlePublish,
|
|
171
187
|
disabled: publishing,
|
|
172
|
-
children:
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
190
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
191
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
|
|
192
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2 12h20" })
|
|
193
|
+
] }),
|
|
194
|
+
publishing ? "Publishing..." : "Publish"
|
|
195
|
+
]
|
|
173
196
|
}
|
|
174
197
|
),
|
|
175
198
|
overrideFiles && /* @__PURE__ */ jsxRuntime.jsx(chunkXXF4U7WL_cjs.Badge, { variant: "destructive", className: "text-xs", children: "Unsaved generated content" })
|
|
@@ -72,12 +72,11 @@ function AgentIdentityTab({
|
|
|
72
72
|
const newFiles = [];
|
|
73
73
|
for (const { path, field } of FILE_MAP) {
|
|
74
74
|
const content = responseFiles[field] ?? responseFiles[path];
|
|
75
|
-
|
|
76
|
-
newFiles.push({ path, content });
|
|
77
|
-
}
|
|
75
|
+
newFiles.push({ path, content: content ?? "" });
|
|
78
76
|
}
|
|
79
77
|
if (newFiles.length > 0) {
|
|
80
78
|
setOverrideFiles(newFiles);
|
|
79
|
+
setSavedVersion((v) => v + 1);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
async function handleGenerate() {
|
|
@@ -140,34 +139,58 @@ function AgentIdentityTab({
|
|
|
140
139
|
warnings.push("IDENTITY.md is empty -- consider adding behavioral traits");
|
|
141
140
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
142
141
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
143
|
-
onGenerateSoul && /* @__PURE__ */
|
|
142
|
+
onGenerateSoul && /* @__PURE__ */ jsxs(
|
|
144
143
|
Button,
|
|
145
144
|
{
|
|
146
145
|
variant: "outline",
|
|
147
146
|
size: "sm",
|
|
148
147
|
onClick: handleGenerate,
|
|
149
148
|
disabled: generating,
|
|
150
|
-
children:
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ jsx("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3Z" }) }),
|
|
151
|
+
generating ? "Generating..." : "Generate Soul"
|
|
152
|
+
]
|
|
151
153
|
}
|
|
152
154
|
),
|
|
153
|
-
onImportSoul && /* @__PURE__ */
|
|
155
|
+
onImportSoul && /* @__PURE__ */ jsxs(
|
|
154
156
|
Button,
|
|
155
157
|
{
|
|
156
158
|
variant: "outline",
|
|
157
159
|
size: "sm",
|
|
158
160
|
onClick: () => setImportOpen(true),
|
|
159
|
-
children:
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ jsxs("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
163
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
164
|
+
/* @__PURE__ */ jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
165
|
+
/* @__PURE__ */ jsx("line", { x1: "12", x2: "12", y1: "15", y2: "3" })
|
|
166
|
+
] }),
|
|
167
|
+
"Import"
|
|
168
|
+
]
|
|
160
169
|
}
|
|
161
170
|
),
|
|
162
|
-
onExportSoul && /* @__PURE__ */
|
|
163
|
-
|
|
171
|
+
onExportSoul && /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", onClick: handleExport, children: [
|
|
172
|
+
/* @__PURE__ */ jsxs("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
173
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
174
|
+
/* @__PURE__ */ jsx("polyline", { points: "17 8 12 3 7 8" }),
|
|
175
|
+
/* @__PURE__ */ jsx("line", { x1: "12", x2: "12", y1: "3", y2: "15" })
|
|
176
|
+
] }),
|
|
177
|
+
"Export"
|
|
178
|
+
] }),
|
|
179
|
+
onPublishSoul && /* @__PURE__ */ jsxs(
|
|
164
180
|
Button,
|
|
165
181
|
{
|
|
166
182
|
variant: "outline",
|
|
167
183
|
size: "sm",
|
|
168
184
|
onClick: handlePublish,
|
|
169
185
|
disabled: publishing,
|
|
170
|
-
children:
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ jsxs("svg", { className: "size-4 mr-1.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
188
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
189
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
|
|
190
|
+
/* @__PURE__ */ jsx("path", { d: "M2 12h20" })
|
|
191
|
+
] }),
|
|
192
|
+
publishing ? "Publishing..." : "Publish"
|
|
193
|
+
]
|
|
171
194
|
}
|
|
172
195
|
),
|
|
173
196
|
overrideFiles && /* @__PURE__ */ jsx(Badge, { variant: "destructive", className: "text-xs", children: "Unsaved generated content" })
|
package/dist/editor.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVZ43ATC5_cjs = require('./chunk-VZ43ATC5.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkNLED4YEY_cjs = require('./chunk-NLED4YEY.cjs');
|
|
5
5
|
var chunkXXF4U7WL_cjs = require('./chunk-XXF4U7WL.cjs');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var CodeMirror = require('@uiw/react-codemirror');
|
|
@@ -187,6 +187,6 @@ Object.defineProperty(exports, "FileTreeEditor", {
|
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "AgentIdentityTab", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkNLED4YEY_cjs.AgentIdentityTab; }
|
|
191
191
|
});
|
|
192
192
|
exports.PluginEditorPage = PluginEditorPage;
|
package/dist/editor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useApi, Skeleton, FileTreeEditor, Card, CardHeader, CardTitle, CardContent } from './chunk-CE2RHDPY.js';
|
|
2
2
|
export { FileTreeEditor } from './chunk-CE2RHDPY.js';
|
|
3
|
-
export { AgentIdentityTab } from './chunk-
|
|
3
|
+
export { AgentIdentityTab } from './chunk-QXTNBR6E.js';
|
|
4
4
|
import { useNavigation, useAgentPlaneClient, Badge, Button } from './chunk-XFI227OB.js';
|
|
5
5
|
import { useState, useCallback } from 'react';
|
|
6
6
|
import CodeMirror from '@uiw/react-codemirror';
|
package/dist/index.cjs
CHANGED
|
@@ -4069,7 +4069,7 @@ function AgentA2aInfo({
|
|
|
4069
4069
|
] })
|
|
4070
4070
|
] });
|
|
4071
4071
|
}
|
|
4072
|
-
var AgentIdentityTab = React.lazy(() => import('./agent-identity-tab-
|
|
4072
|
+
var AgentIdentityTab = React.lazy(() => import('./agent-identity-tab-3ERMWHVJ.cjs').then((m) => ({ default: m.AgentIdentityTab })));
|
|
4073
4073
|
function AgentDetailPage({ agentId, a2aBaseUrl, tenantSlug, adminApiBaseUrl, adminApiKey }) {
|
|
4074
4074
|
const { LinkComponent, basePath } = chunkXXF4U7WL_cjs.useNavigation();
|
|
4075
4075
|
const { mutate } = swr.useSWRConfig();
|
package/dist/index.js
CHANGED
|
@@ -4045,7 +4045,7 @@ function AgentA2aInfo({
|
|
|
4045
4045
|
] })
|
|
4046
4046
|
] });
|
|
4047
4047
|
}
|
|
4048
|
-
var AgentIdentityTab = lazy(() => import('./agent-identity-tab-
|
|
4048
|
+
var AgentIdentityTab = lazy(() => import('./agent-identity-tab-G62JP5VR.js').then((m) => ({ default: m.AgentIdentityTab })));
|
|
4049
4049
|
function AgentDetailPage({ agentId, a2aBaseUrl, tenantSlug, adminApiBaseUrl, adminApiKey }) {
|
|
4050
4050
|
const { LinkComponent, basePath } = useNavigation();
|
|
4051
4051
|
const { mutate } = useSWRConfig();
|
package/package.json
CHANGED