@elizaos/cli 1.0.10 → 1.0.11
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/assets/{index-DDQnwxzL.js → index-Cuyjmso1.js} +123 -11
- package/dist/assets/{index-DDQnwxzL.js.map → index-Cuyjmso1.js.map} +1 -1
- package/dist/assets/{index-CmuPnu0u.js → index-poChVCDJ.js} +2 -2
- package/dist/assets/index-poChVCDJ.js.br +0 -0
- package/dist/assets/{index-CmuPnu0u.js.map → index-poChVCDJ.js.map} +1 -1
- package/dist/{chunk-GWQB7PBK.js → chunk-HBV76MGW.js} +1 -1
- package/dist/{chunk-7HYEGM5V.js → chunk-QLKBXRME.js} +9 -6
- package/dist/{chunk-B4KJXECB.js → chunk-TPLM6M7M.js} +2 -2
- package/dist/commands/agent/actions/index.js +1 -1
- package/dist/commands/agent/index.js +1 -1
- package/dist/commands/create/actions/index.js +2 -2
- package/dist/commands/create/index.js +3 -3
- package/dist/index.html +1 -1
- package/dist/index.js +4 -4
- package/dist/{registry-CBMRMYCG.js → registry-PTOPJQEB.js} +1 -1
- package/dist/{utils-TIALZU53.js → utils-TDE6Y3CB.js} +1 -1
- package/package.json +5 -5
- package/dist/assets/index-CmuPnu0u.js.br +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-poChVCDJ.js","assets/vendor-DSdxb8P-.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { r as requireReact, a as requireReactDom, p as process$1, b as reactExports, g as getDefaultExportFromCjs, c as reactDomExports, R as React, d as ReactDOM, e as React$1, u as useNavigate, f as useLocation, N as NavLink, h as useParams, L as Link, i as useSearchParams, B as BrowserRouter, j as Routes, k as Route } from './vendor-DSdxb8P-.js';
|
|
3
3
|
|
|
4
4
|
true &&(function polyfill() {
|
|
@@ -28152,6 +28152,7 @@ const SplitButton = reactExports.forwardRef(
|
|
|
28152
28152
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28153
28153
|
Button,
|
|
28154
28154
|
{
|
|
28155
|
+
type: "button",
|
|
28155
28156
|
variant,
|
|
28156
28157
|
size,
|
|
28157
28158
|
onClick: mainAction.onClick,
|
|
@@ -28170,6 +28171,7 @@ const SplitButton = reactExports.forwardRef(
|
|
|
28170
28171
|
/* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28171
28172
|
Button,
|
|
28172
28173
|
{
|
|
28174
|
+
type: "button",
|
|
28173
28175
|
variant,
|
|
28174
28176
|
size,
|
|
28175
28177
|
disabled,
|
|
@@ -104577,7 +104579,7 @@ const createStream = async () => {
|
|
|
104577
104579
|
if (raw) {
|
|
104578
104580
|
return void 0;
|
|
104579
104581
|
}
|
|
104580
|
-
const pretty = await __vitePreload(() => import('./index-
|
|
104582
|
+
const pretty = await __vitePreload(() => import('./index-poChVCDJ.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
|
|
104581
104583
|
return pretty.default(createPrettyConfig());
|
|
104582
104584
|
};
|
|
104583
104585
|
const options = {
|
|
@@ -123208,6 +123210,23 @@ function ProfileOverlay({ isOpen, onClose, agentId }) {
|
|
|
123208
123210
|
}
|
|
123209
123211
|
) }),
|
|
123210
123212
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "bottom", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Export character as JSON" }) })
|
|
123213
|
+
] }),
|
|
123214
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
123215
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
123216
|
+
Button,
|
|
123217
|
+
{
|
|
123218
|
+
variant: "outline",
|
|
123219
|
+
onClick: () => navigate(`/settings/${agentId}`),
|
|
123220
|
+
disabled: !agent,
|
|
123221
|
+
className: "h-9",
|
|
123222
|
+
size: "sm",
|
|
123223
|
+
children: [
|
|
123224
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Settings, { size: 16, className: "mr-1" }),
|
|
123225
|
+
"Settings"
|
|
123226
|
+
]
|
|
123227
|
+
}
|
|
123228
|
+
) }),
|
|
123229
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { side: "bottom", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Configure agent settings" }) })
|
|
123211
123230
|
] })
|
|
123212
123231
|
] }),
|
|
123213
123232
|
isActive && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "default", className: "h-9", onClick: () => navigate(`/chat/${agent.id}`), children: "Message" })
|
|
@@ -152213,7 +152232,11 @@ function AgentMemoryViewer({ agentId, agentName, channelId }) {
|
|
|
152213
152232
|
] });
|
|
152214
152233
|
}
|
|
152215
152234
|
|
|
152216
|
-
function AgentSettings({
|
|
152235
|
+
function AgentSettings({
|
|
152236
|
+
agent,
|
|
152237
|
+
agentId,
|
|
152238
|
+
onSaveComplete
|
|
152239
|
+
}) {
|
|
152217
152240
|
const { toast } = useToast();
|
|
152218
152241
|
const navigate = useNavigate();
|
|
152219
152242
|
const queryClient = useQueryClient();
|
|
@@ -152244,11 +152267,36 @@ function AgentSettings({ agent, agentId }) {
|
|
|
152244
152267
|
}
|
|
152245
152268
|
const changedFields = agentState.getChangedFields();
|
|
152246
152269
|
if (Object.keys(changedFields).length === 0) {
|
|
152270
|
+
const secrets = agentState.agent?.settings?.secrets;
|
|
152271
|
+
if (secrets && Object.keys(secrets).length > 0) {
|
|
152272
|
+
const forceUpdate = {
|
|
152273
|
+
id: agentId,
|
|
152274
|
+
settings: { secrets }
|
|
152275
|
+
};
|
|
152276
|
+
await apiClient.updateAgent(agentId, forceUpdate);
|
|
152277
|
+
queryClient.invalidateQueries({ queryKey: ["agent", agentId] });
|
|
152278
|
+
queryClient.invalidateQueries({ queryKey: ["agents"] });
|
|
152279
|
+
navigate("/");
|
|
152280
|
+
toast({
|
|
152281
|
+
title: "Success",
|
|
152282
|
+
description: "Agent secrets updated successfully"
|
|
152283
|
+
});
|
|
152284
|
+
if (onSaveComplete) {
|
|
152285
|
+
onSaveComplete();
|
|
152286
|
+
} else {
|
|
152287
|
+
navigate("/");
|
|
152288
|
+
}
|
|
152289
|
+
return;
|
|
152290
|
+
}
|
|
152247
152291
|
toast({
|
|
152248
152292
|
title: "No Changes",
|
|
152249
152293
|
description: "No changes were made to the agent"
|
|
152250
152294
|
});
|
|
152251
|
-
|
|
152295
|
+
if (onSaveComplete) {
|
|
152296
|
+
onSaveComplete();
|
|
152297
|
+
} else {
|
|
152298
|
+
navigate("/");
|
|
152299
|
+
}
|
|
152252
152300
|
return;
|
|
152253
152301
|
}
|
|
152254
152302
|
const partialUpdate = {
|
|
@@ -152258,11 +152306,15 @@ function AgentSettings({ agent, agentId }) {
|
|
|
152258
152306
|
await apiClient.updateAgent(agentId, partialUpdate);
|
|
152259
152307
|
queryClient.invalidateQueries({ queryKey: ["agent", agentId] });
|
|
152260
152308
|
queryClient.invalidateQueries({ queryKey: ["agents"] });
|
|
152261
|
-
navigate("/");
|
|
152262
152309
|
toast({
|
|
152263
152310
|
title: "Success",
|
|
152264
|
-
description: "Agent updated
|
|
152311
|
+
description: "Agent updated successfully"
|
|
152265
152312
|
});
|
|
152313
|
+
if (onSaveComplete) {
|
|
152314
|
+
onSaveComplete();
|
|
152315
|
+
} else {
|
|
152316
|
+
navigate("/");
|
|
152317
|
+
}
|
|
152266
152318
|
} catch (error) {
|
|
152267
152319
|
toast({
|
|
152268
152320
|
title: "Error",
|
|
@@ -152550,7 +152602,15 @@ function AgentSidebar({ agentId, agentName, channelId }) {
|
|
|
152550
152602
|
"Error loading agent details: ",
|
|
152551
152603
|
agentError.message
|
|
152552
152604
|
] }),
|
|
152553
|
-
!isLoadingAgent && !agentError && agent && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full max-w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
152605
|
+
!isLoadingAgent && !agentError && agent && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full max-w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
152606
|
+
AgentSettings,
|
|
152607
|
+
{
|
|
152608
|
+
agent,
|
|
152609
|
+
agentId,
|
|
152610
|
+
onSaveComplete: () => {
|
|
152611
|
+
}
|
|
152612
|
+
}
|
|
152613
|
+
) }),
|
|
152554
152614
|
!isLoadingAgent && !agentError && !agent && !isLoadingPanels && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-muted-foreground", children: "Agent details not found." })
|
|
152555
152615
|
] }),
|
|
152556
152616
|
detailsTab === "details" && !agentId && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 text-muted-foreground", children: "Select an agent to see their details." })
|
|
@@ -155017,6 +155077,7 @@ function Chat({
|
|
|
155017
155077
|
|
|
155018
155078
|
function AgentRoute() {
|
|
155019
155079
|
const { agentId, channelId } = useParams();
|
|
155080
|
+
const navigate = useNavigate();
|
|
155020
155081
|
reactExports.useEffect(() => {
|
|
155021
155082
|
clientLogger.info("[AgentRoute] Component mounted/updated", { agentId, channelId });
|
|
155022
155083
|
return () => {
|
|
@@ -155064,9 +155125,12 @@ function AgentRoute() {
|
|
|
155064
155125
|
" is not active."
|
|
155065
155126
|
] }),
|
|
155066
155127
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-muted-foreground mb-6", children: "Press the button below to start this agent." }),
|
|
155067
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
155068
|
-
|
|
155069
|
-
isStarting
|
|
155128
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
|
155129
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(`/settings/${agentId}`), variant: "outline", size: "lg", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Settings, { className: "h-5 w-5" }) }),
|
|
155130
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleStartAgent, disabled: isStarting, size: "lg", children: [
|
|
155131
|
+
isStarting ? /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "mr-2 h-5 w-5 animate-spin" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Play, { className: "mr-2 h-5 w-5" }),
|
|
155132
|
+
isStarting ? "Starting Agent..." : "Start Agent"
|
|
155133
|
+
] })
|
|
155070
155134
|
] })
|
|
155071
155135
|
] });
|
|
155072
155136
|
}
|
|
@@ -155206,6 +155270,21 @@ const AgentCard = ({ agent, onChat }) => {
|
|
|
155206
155270
|
] })
|
|
155207
155271
|
] }),
|
|
155208
155272
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
155273
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
155274
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
155275
|
+
Button,
|
|
155276
|
+
{
|
|
155277
|
+
onClick: (e) => {
|
|
155278
|
+
e.stopPropagation();
|
|
155279
|
+
navigate(`/settings/${agentIdForNav}`);
|
|
155280
|
+
},
|
|
155281
|
+
variant: "ghost",
|
|
155282
|
+
size: "icon",
|
|
155283
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Settings, { className: "h-4 w-4 m-2" })
|
|
155284
|
+
}
|
|
155285
|
+
) }),
|
|
155286
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: "Configure Agent" })
|
|
155287
|
+
] }),
|
|
155209
155288
|
isActive && !isStopping && /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
155210
155289
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: handleStop, variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx(PowerOff, { className: "h-4 w-4 m-2 text-red-500" }) }) }),
|
|
155211
155290
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: "Stop Agent" })
|
|
@@ -155453,6 +155532,38 @@ function GroupNew() {
|
|
|
155453
155532
|
);
|
|
155454
155533
|
}
|
|
155455
155534
|
|
|
155535
|
+
function AgentSettingsRoute() {
|
|
155536
|
+
const { agentId } = useParams();
|
|
155537
|
+
const navigate = useNavigate();
|
|
155538
|
+
const { data: agentData, isLoading } = useAgent(agentId);
|
|
155539
|
+
if (isLoading) {
|
|
155540
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "h-8 w-8 animate-spin" }) });
|
|
155541
|
+
}
|
|
155542
|
+
if (!agentData?.data) {
|
|
155543
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
|
|
155544
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-muted-foreground", children: "Agent not found" }),
|
|
155545
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate("/"), children: "Back to Home" })
|
|
155546
|
+
] });
|
|
155547
|
+
}
|
|
155548
|
+
const agent = agentData.data;
|
|
155549
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full justify-center px-4 sm:px-6 overflow-y-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full md:max-w-4xl py-6", children: [
|
|
155550
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
155551
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "ghost", size: "icon", onClick: () => navigate("/"), className: "h-8 w-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowLeft, { className: "h-4 w-4" }) }),
|
|
155552
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-2xl font-bold", children: "Agent Settings" })
|
|
155553
|
+
] }),
|
|
155554
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-background rounded-lg border p-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
155555
|
+
AgentSettings,
|
|
155556
|
+
{
|
|
155557
|
+
agent,
|
|
155558
|
+
agentId,
|
|
155559
|
+
onSaveComplete: () => {
|
|
155560
|
+
navigate("/");
|
|
155561
|
+
}
|
|
155562
|
+
}
|
|
155563
|
+
) })
|
|
155564
|
+
] }) });
|
|
155565
|
+
}
|
|
155566
|
+
|
|
155456
155567
|
const queryClient = new QueryClient({
|
|
155457
155568
|
defaultOptions: {
|
|
155458
155569
|
queries: {
|
|
@@ -155534,6 +155645,7 @@ function AppContent() {
|
|
|
155534
155645
|
element: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentRoute, {}) })
|
|
155535
155646
|
}
|
|
155536
155647
|
),
|
|
155648
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "settings/:agentId", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentSettingsRoute, {}) }),
|
|
155537
155649
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "group/new", element: /* @__PURE__ */ jsxRuntimeExports.jsx(GroupNew, {}) }),
|
|
155538
155650
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "agents/new", element: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentCreatorRoute, {}) }),
|
|
155539
155651
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -155597,4 +155709,4 @@ clientExports.createRoot(rootElement).render(
|
|
|
155597
155709
|
);
|
|
155598
155710
|
|
|
155599
155711
|
export { Buffer as B, requireString_decoder as a, requireUtil$3 as b, requireShams$1 as c, requireCallBound as d, requireEsObjectAtoms as e, requireCallBind as f, requireGetIntrinsic as g, requireDefineDataProperty as h, requireHasPropertyDescriptors as i, requireEvents as j, requireStreamBrowserify as r };
|
|
155600
|
-
//# sourceMappingURL=index-
|
|
155712
|
+
//# sourceMappingURL=index-Cuyjmso1.js.map
|