@getcatalystiq/agent-plane-ui 0.1.24 → 0.1.26

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,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk7NGE4WHD_cjs = require('./chunk-7NGE4WHD.cjs');
3
+ var chunk6ZXDZUQU_cjs = require('./chunk-6ZXDZUQU.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 chunk7NGE4WHD_cjs.AgentIdentityTab; }
10
+ get: function () { return chunk6ZXDZUQU_cjs.AgentIdentityTab; }
11
11
  });
@@ -0,0 +1,2 @@
1
+ export { AgentIdentityTab } from './chunk-NMZ2XKKV.js';
2
+ import './chunk-XFI227OB.js';
@@ -105,13 +105,14 @@ function AgentIdentityTab({
105
105
  setError("");
106
106
  try {
107
107
  const data = await onExportSoul();
108
+ const slug = (data.name || "soulspec").toLowerCase().replace(/[^a-z0-9]+/g, "-");
108
109
  const blob = new Blob([JSON.stringify(data, null, 2)], {
109
110
  type: "application/json"
110
111
  });
111
112
  const url = URL.createObjectURL(blob);
112
113
  const a = document.createElement("a");
113
114
  a.href = url;
114
- a.download = `${data.name || "soulspec"}.json`;
115
+ a.download = `${slug}-soul.json`;
115
116
  a.click();
116
117
  URL.revokeObjectURL(url);
117
118
  } catch (err) {
@@ -103,13 +103,14 @@ function AgentIdentityTab({
103
103
  setError("");
104
104
  try {
105
105
  const data = await onExportSoul();
106
+ const slug = (data.name || "soulspec").toLowerCase().replace(/[^a-z0-9]+/g, "-");
106
107
  const blob = new Blob([JSON.stringify(data, null, 2)], {
107
108
  type: "application/json"
108
109
  });
109
110
  const url = URL.createObjectURL(blob);
110
111
  const a = document.createElement("a");
111
112
  a.href = url;
112
- a.download = `${data.name || "soulspec"}.json`;
113
+ a.download = `${slug}-soul.json`;
113
114
  a.click();
114
115
  URL.revokeObjectURL(url);
115
116
  } catch (err) {
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 chunk7NGE4WHD_cjs = require('./chunk-7NGE4WHD.cjs');
4
+ var chunk6ZXDZUQU_cjs = require('./chunk-6ZXDZUQU.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 chunk7NGE4WHD_cjs.AgentIdentityTab; }
190
+ get: function () { return chunk6ZXDZUQU_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-GFFQIJPU.js';
3
+ export { AgentIdentityTab } from './chunk-NMZ2XKKV.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-AL2SL3CR.cjs').then((m) => ({ default: m.AgentIdentityTab })));
4072
+ var AgentIdentityTab = React.lazy(() => import('./agent-identity-tab-DA4LZVH6.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();
@@ -4101,23 +4101,23 @@ function AgentDetailPage({ agentId, a2aBaseUrl, tenantSlug, adminApiBaseUrl, adm
4101
4101
  if (!adminApiBaseUrl) return {};
4102
4102
  return {
4103
4103
  onGenerateSoul: async () => {
4104
- const result = await adminFetch(`/api/admin/agents/${agentId}/generate-soul`, { method: "POST" });
4104
+ const result = await adminFetch(`/api/agents/${agentId}/generate-soul`, { method: "POST" });
4105
4105
  return { files: result.files };
4106
4106
  },
4107
4107
  onImportSoul: async (ref) => {
4108
4108
  const [owner, name] = ref.split("/");
4109
- const result = await adminFetch(`/api/admin/agents/${agentId}/import-soul`, {
4109
+ const result = await adminFetch(`/api/agents/${agentId}/import-soul`, {
4110
4110
  method: "POST",
4111
4111
  body: JSON.stringify({ owner, name })
4112
4112
  });
4113
4113
  return { files: result.imported_files };
4114
4114
  },
4115
4115
  onExportSoul: async () => {
4116
- const result = await adminFetch(`/api/admin/agents/${agentId}/export-soul`);
4116
+ const result = await adminFetch(`/api/agents/${agentId}/export-soul`);
4117
4117
  return { files: result.files, name: agent?.name ?? "agent" };
4118
4118
  },
4119
4119
  onPublishSoul: async (owner) => {
4120
- await adminFetch(`/api/admin/agents/${agentId}/publish-soul`, {
4120
+ await adminFetch(`/api/agents/${agentId}/publish-soul`, {
4121
4121
  method: "POST",
4122
4122
  body: JSON.stringify({ owner })
4123
4123
  });
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-6T672HO7.js').then((m) => ({ default: m.AgentIdentityTab })));
4048
+ var AgentIdentityTab = lazy(() => import('./agent-identity-tab-HLNJY2GH.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();
@@ -4077,23 +4077,23 @@ function AgentDetailPage({ agentId, a2aBaseUrl, tenantSlug, adminApiBaseUrl, adm
4077
4077
  if (!adminApiBaseUrl) return {};
4078
4078
  return {
4079
4079
  onGenerateSoul: async () => {
4080
- const result = await adminFetch(`/api/admin/agents/${agentId}/generate-soul`, { method: "POST" });
4080
+ const result = await adminFetch(`/api/agents/${agentId}/generate-soul`, { method: "POST" });
4081
4081
  return { files: result.files };
4082
4082
  },
4083
4083
  onImportSoul: async (ref) => {
4084
4084
  const [owner, name] = ref.split("/");
4085
- const result = await adminFetch(`/api/admin/agents/${agentId}/import-soul`, {
4085
+ const result = await adminFetch(`/api/agents/${agentId}/import-soul`, {
4086
4086
  method: "POST",
4087
4087
  body: JSON.stringify({ owner, name })
4088
4088
  });
4089
4089
  return { files: result.imported_files };
4090
4090
  },
4091
4091
  onExportSoul: async () => {
4092
- const result = await adminFetch(`/api/admin/agents/${agentId}/export-soul`);
4092
+ const result = await adminFetch(`/api/agents/${agentId}/export-soul`);
4093
4093
  return { files: result.files, name: agent?.name ?? "agent" };
4094
4094
  },
4095
4095
  onPublishSoul: async (owner) => {
4096
- await adminFetch(`/api/admin/agents/${agentId}/publish-soul`, {
4096
+ await adminFetch(`/api/agents/${agentId}/publish-soul`, {
4097
4097
  method: "POST",
4098
4098
  body: JSON.stringify({ owner })
4099
4099
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getcatalystiq/agent-plane-ui",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "Embeddable React component library for AgentPlane",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,2 +0,0 @@
1
- export { AgentIdentityTab } from './chunk-GFFQIJPU.js';
2
- import './chunk-XFI227OB.js';