@elizaos/cli 1.0.20 → 1.1.0
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-B1BYc3c_.js → index-BfiDOOs1.js} +32 -26
- package/dist/assets/index-BfiDOOs1.js.br +0 -0
- package/dist/assets/{index-B1BYc3c_.js.map → index-BfiDOOs1.js.map} +1 -1
- package/dist/assets/{index-CX0KZCt7.js → index-DPzwlf4B.js} +2 -2
- package/dist/assets/index-DPzwlf4B.js.br +0 -0
- package/dist/assets/{index-CX0KZCt7.js.map → index-DPzwlf4B.js.map} +1 -1
- package/dist/{chunk-ME4CPLVT.js → chunk-6NQXP77K.js} +2 -2
- package/dist/{chunk-RJ7XRVPG.js → chunk-F3T7CP3N.js} +34 -13
- package/dist/{chunk-77IXJDDC.js → chunk-SKZWKDJV.js} +1 -1
- package/dist/{chunk-GILK2M6Z.js → chunk-UJASHW4Z.js} +41 -56
- package/dist/commands/agent/actions/index.js +1 -1
- package/dist/commands/agent/index.js +1 -1
- package/dist/commands/create/actions/index.js +3 -3
- package/dist/commands/create/index.js +4 -4
- package/dist/index.html +1 -1
- package/dist/index.js +5 -5
- package/dist/{registry-FOS35FQH.js → registry-URDUOPHD.js} +1 -1
- package/dist/{setup-6XRSST5O.js → setup-MMMQEN65.js} +2 -2
- package/dist/{utils-QBGEZZ4I.js → utils-3X6GHWTH.js} +1 -1
- package/package.json +5 -5
- package/dist/assets/index-B1BYc3c_.js.br +0 -0
- package/dist/assets/index-CX0KZCt7.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-DPzwlf4B.js","assets/vendor-Dp9Dttv5.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { r as requireReact, a as requireReactDom, d as distExports$1, b as reactExports, g as getDefaultExportFromCjs, c as reactDomExports, R as React, e as ReactDOM, f as React$1, h as requireBufferPolyfill, i as requireBase64Js, u as useNavigate, j as useLocation, N as NavLink, k as useParams, L as Link, l as useSearchParams, B as BrowserRouter, m as Routes, n as Route } from './vendor-Dp9Dttv5.js';
|
|
3
3
|
|
|
4
4
|
true &&(function polyfill() {
|
|
@@ -102170,7 +102170,7 @@ var createStream = async () => {
|
|
|
102170
102170
|
if (raw) {
|
|
102171
102171
|
return void 0;
|
|
102172
102172
|
}
|
|
102173
|
-
const pretty = await __vitePreload(() => import('./index-
|
|
102173
|
+
const pretty = await __vitePreload(() => import('./index-DPzwlf4B.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
|
|
102174
102174
|
return pretty.default(createPrettyConfig());
|
|
102175
102175
|
};
|
|
102176
102176
|
var options = {
|
|
@@ -104844,24 +104844,6 @@ var AgentRuntime = class {
|
|
|
104844
104844
|
timestamp: Date.now()
|
|
104845
104845
|
});
|
|
104846
104846
|
}
|
|
104847
|
-
await this.adapter.log({
|
|
104848
|
-
entityId: this.agentId,
|
|
104849
|
-
roomId: this.agentId,
|
|
104850
|
-
body: {
|
|
104851
|
-
modelType,
|
|
104852
|
-
modelKey,
|
|
104853
|
-
prompt: promptContent,
|
|
104854
|
-
runId: this.getCurrentRunId(),
|
|
104855
|
-
timestamp: Date.now(),
|
|
104856
|
-
executionTime: elapsedTime,
|
|
104857
|
-
provider: provider || this.models.get(modelKey)?.[0]?.provider || "unknown",
|
|
104858
|
-
actionContext: this.currentActionContext ? {
|
|
104859
|
-
actionName: this.currentActionContext.actionName,
|
|
104860
|
-
actionId: this.currentActionContext.actionId
|
|
104861
|
-
} : void 0
|
|
104862
|
-
},
|
|
104863
|
-
type: `prompt:${modelKey}`
|
|
104864
|
-
});
|
|
104865
104847
|
}
|
|
104866
104848
|
this.adapter.log({
|
|
104867
104849
|
entityId: this.agentId,
|
|
@@ -104873,6 +104855,15 @@ var AgentRuntime = class {
|
|
|
104873
104855
|
...typeof params === "object" && !Array.isArray(params) && params ? params : {},
|
|
104874
104856
|
prompt: promptContent
|
|
104875
104857
|
},
|
|
104858
|
+
prompt: promptContent,
|
|
104859
|
+
runId: this.getCurrentRunId(),
|
|
104860
|
+
timestamp: Date.now(),
|
|
104861
|
+
executionTime: elapsedTime,
|
|
104862
|
+
provider: provider || this.models.get(modelKey)?.[0]?.provider || "unknown",
|
|
104863
|
+
actionContext: this.currentActionContext ? {
|
|
104864
|
+
actionName: this.currentActionContext.actionName,
|
|
104865
|
+
actionId: this.currentActionContext.actionId
|
|
104866
|
+
} : void 0,
|
|
104876
104867
|
response: Array.isArray(response) && response.every((x) => typeof x === "number") ? "[array]" : response
|
|
104877
104868
|
},
|
|
104878
104869
|
type: `useModel:${modelKey}`
|
|
@@ -128310,8 +128301,7 @@ function MediaContent({
|
|
|
128310
128301
|
height: maxHeight,
|
|
128311
128302
|
className: "w-full h-auto object-contain",
|
|
128312
128303
|
onLoad: handleLoad,
|
|
128313
|
-
onError: handleError
|
|
128314
|
-
crossOrigin: "anonymous"
|
|
128304
|
+
onError: handleError
|
|
128315
128305
|
}
|
|
128316
128306
|
)
|
|
128317
128307
|
]
|
|
@@ -159635,6 +159625,7 @@ function Chat({
|
|
|
159635
159625
|
const location = useLocation();
|
|
159636
159626
|
const state = location.state;
|
|
159637
159627
|
const forceNew = state?.forceNew || false;
|
|
159628
|
+
const navigate = useNavigate();
|
|
159638
159629
|
const [shouldForceNew, setShouldForceNew] = reactExports.useState(forceNew);
|
|
159639
159630
|
const isFloatingMode = isFloatingModeFromWidth || chatState.isMobile;
|
|
159640
159631
|
const { confirm, isOpen, onOpenChange, onConfirm, options } = useConfirmation();
|
|
@@ -159733,9 +159724,19 @@ function Chat({
|
|
|
159733
159724
|
const hasAutoName = isAutoGeneratedChatName(latestChannel.name);
|
|
159734
159725
|
const isEmpty = (latestMessages?.messages?.length ?? 0) === 0;
|
|
159735
159726
|
if (hasAutoName && isEmpty) {
|
|
159736
|
-
|
|
159737
|
-
|
|
159738
|
-
|
|
159727
|
+
const isAlreadyInLatest = chatState.currentDmChannelId === latestChannel.id;
|
|
159728
|
+
if (isAlreadyInLatest) {
|
|
159729
|
+
toast({
|
|
159730
|
+
title: `Already in a fresh chat`,
|
|
159731
|
+
description: `You're already in a new chat with ${targetAgentData?.name || "the agent"}.`
|
|
159732
|
+
});
|
|
159733
|
+
} else {
|
|
159734
|
+
updateChatState({ currentDmChannelId: latestChannel.id });
|
|
159735
|
+
toast({
|
|
159736
|
+
title: `Chat opened`,
|
|
159737
|
+
description: `You can now start chatting with ${targetAgentData?.name || "the agent"}.`
|
|
159738
|
+
});
|
|
159739
|
+
}
|
|
159739
159740
|
updateChatState({ currentDmChannelId: latestChannel.id });
|
|
159740
159741
|
return;
|
|
159741
159742
|
} else {
|
|
@@ -159766,6 +159767,10 @@ function Chat({
|
|
|
159766
159767
|
updateChatState({ currentDmChannelId: null, input: "" });
|
|
159767
159768
|
} finally {
|
|
159768
159769
|
updateChatState({ isCreatingDM: false });
|
|
159770
|
+
toast({
|
|
159771
|
+
title: `Chat opened`,
|
|
159772
|
+
description: `You can now start chatting with ${targetAgentData?.name || "the agent"}.`
|
|
159773
|
+
});
|
|
159769
159774
|
}
|
|
159770
159775
|
},
|
|
159771
159776
|
[chatType, createDmChannelMutation, updateChatState, safeScrollToBottom, latestChannel]
|
|
@@ -159847,6 +159852,7 @@ function Chat({
|
|
|
159847
159852
|
if (latestChannel && !isLoadingLatestChannelMessages && latestChannelMessages && targetAgentData?.id && shouldForceNew) {
|
|
159848
159853
|
handleNewDmChannel(targetAgentData.id);
|
|
159849
159854
|
setShouldForceNew(false);
|
|
159855
|
+
navigate(location.pathname, { replace: true });
|
|
159850
159856
|
}
|
|
159851
159857
|
}, [
|
|
159852
159858
|
shouldForceNew,
|
|
@@ -161647,4 +161653,4 @@ clientExports.createRoot(rootElement).render(
|
|
|
161647
161653
|
);
|
|
161648
161654
|
|
|
161649
161655
|
export { 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 };
|
|
161650
|
-
//# sourceMappingURL=index-
|
|
161656
|
+
//# sourceMappingURL=index-BfiDOOs1.js.map
|
|
Binary file
|