@elizaos/server 1.2.4 → 1.2.7
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/client/assets/{index-CSGjxUG_.js → index-CjVdRaS3.js} +118 -34
- package/dist/client/assets/index-CjVdRaS3.js.br +0 -0
- package/dist/client/assets/{index-CSGjxUG_.js.map → index-CjVdRaS3.js.map} +1 -1
- package/dist/client/assets/{index-DS--BeyD.js → index-DVkrXXXS.js} +2 -2
- package/dist/client/assets/index-DVkrXXXS.js.br +0 -0
- package/dist/client/assets/{index-DS--BeyD.js.map → index-DVkrXXXS.js.map} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/client/assets/index-CSGjxUG_.js.br +0 -0
- package/dist/client/assets/index-DS--BeyD.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-DVkrXXXS.js","assets/vendor-Dp9Dttv5.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { r as requireReact, a as requireReactDom, d as distExports, 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() {
|
|
@@ -26458,18 +26458,12 @@ SelectSeparator.displayName = Separator$1.displayName;
|
|
|
26458
26458
|
|
|
26459
26459
|
const providerPluginMap = {
|
|
26460
26460
|
elevenlabs: "@elizaos/plugin-elevenlabs",
|
|
26461
|
-
local: "@elizaos/plugin-local-ai",
|
|
26462
26461
|
openai: "@elizaos/plugin-openai",
|
|
26463
26462
|
none: ""
|
|
26464
26463
|
// No plugin needed for "No Voice" option
|
|
26465
26464
|
};
|
|
26466
26465
|
const noVoiceModel = [{ value: "none", label: "No Voice", provider: "none" }];
|
|
26467
|
-
const localVoiceModels = [
|
|
26468
|
-
{ value: "female_1", label: "Local Voice - Female 1", provider: "local", gender: "female" },
|
|
26469
|
-
{ value: "female_2", label: "Local Voice - Female 2", provider: "local", gender: "female" },
|
|
26470
|
-
{ value: "male_1", label: "Local Voice - Male 1", provider: "local", gender: "male" },
|
|
26471
|
-
{ value: "male_2", label: "Local Voice - Male 2", provider: "local", gender: "male" }
|
|
26472
|
-
];
|
|
26466
|
+
const localVoiceModels = [];
|
|
26473
26467
|
const elevenLabsVoiceModels = [
|
|
26474
26468
|
{
|
|
26475
26469
|
value: "EXAVITQu4vr4xnSDxMaL",
|
|
@@ -102013,8 +102007,16 @@ var AgentStatus2 = /* @__PURE__ */ ((AgentStatus3) => {
|
|
|
102013
102007
|
return AgentStatus3;
|
|
102014
102008
|
})(AgentStatus2 || {});
|
|
102015
102009
|
var ServiceType3 = {
|
|
102010
|
+
TRANSCRIPTION: "transcription",
|
|
102011
|
+
VIDEO: "video",
|
|
102012
|
+
BROWSER: "browser",
|
|
102013
|
+
PDF: "pdf",
|
|
102014
|
+
WEB_SEARCH: "web_search",
|
|
102015
|
+
EMAIL: "email",
|
|
102016
102016
|
WALLET: "wallet",
|
|
102017
|
-
TOKEN_DATA: "token_data"
|
|
102017
|
+
TOKEN_DATA: "token_data",
|
|
102018
|
+
MESSAGE: "message",
|
|
102019
|
+
POST: "post"};
|
|
102018
102020
|
var Service3 = class {
|
|
102019
102021
|
constructor(runtime) {
|
|
102020
102022
|
if (runtime) {
|
|
@@ -102093,6 +102095,78 @@ var SOCKET_MESSAGE_TYPE2 = /* @__PURE__ */ ((SOCKET_MESSAGE_TYPE3) => {
|
|
|
102093
102095
|
this.serviceType = "lp";
|
|
102094
102096
|
}
|
|
102095
102097
|
});
|
|
102098
|
+
(class extends Service3 {
|
|
102099
|
+
constructor() {
|
|
102100
|
+
super(...arguments);
|
|
102101
|
+
this.capabilityDescription = "PDF processing, extraction, and generation capabilities";
|
|
102102
|
+
}
|
|
102103
|
+
static {
|
|
102104
|
+
this.serviceType = ServiceType3.PDF;
|
|
102105
|
+
}
|
|
102106
|
+
});
|
|
102107
|
+
(class extends Service3 {
|
|
102108
|
+
constructor() {
|
|
102109
|
+
super(...arguments);
|
|
102110
|
+
this.capabilityDescription = "Video download, processing, and conversion capabilities";
|
|
102111
|
+
}
|
|
102112
|
+
static {
|
|
102113
|
+
this.serviceType = ServiceType3.VIDEO;
|
|
102114
|
+
}
|
|
102115
|
+
});
|
|
102116
|
+
(class extends Service3 {
|
|
102117
|
+
constructor() {
|
|
102118
|
+
super(...arguments);
|
|
102119
|
+
this.capabilityDescription = "Web browser automation and scraping capabilities";
|
|
102120
|
+
}
|
|
102121
|
+
static {
|
|
102122
|
+
this.serviceType = ServiceType3.BROWSER;
|
|
102123
|
+
}
|
|
102124
|
+
});
|
|
102125
|
+
(class extends Service3 {
|
|
102126
|
+
constructor() {
|
|
102127
|
+
super(...arguments);
|
|
102128
|
+
this.capabilityDescription = "Audio transcription and speech processing capabilities";
|
|
102129
|
+
}
|
|
102130
|
+
static {
|
|
102131
|
+
this.serviceType = ServiceType3.TRANSCRIPTION;
|
|
102132
|
+
}
|
|
102133
|
+
});
|
|
102134
|
+
(class extends Service3 {
|
|
102135
|
+
constructor() {
|
|
102136
|
+
super(...arguments);
|
|
102137
|
+
this.capabilityDescription = "Web search and content discovery capabilities";
|
|
102138
|
+
}
|
|
102139
|
+
static {
|
|
102140
|
+
this.serviceType = ServiceType3.WEB_SEARCH;
|
|
102141
|
+
}
|
|
102142
|
+
});
|
|
102143
|
+
(class extends Service3 {
|
|
102144
|
+
constructor() {
|
|
102145
|
+
super(...arguments);
|
|
102146
|
+
this.capabilityDescription = "Email sending, receiving, and management capabilities";
|
|
102147
|
+
}
|
|
102148
|
+
static {
|
|
102149
|
+
this.serviceType = ServiceType3.EMAIL;
|
|
102150
|
+
}
|
|
102151
|
+
});
|
|
102152
|
+
(class extends Service3 {
|
|
102153
|
+
constructor() {
|
|
102154
|
+
super(...arguments);
|
|
102155
|
+
this.capabilityDescription = "Message sending, receiving, and management capabilities";
|
|
102156
|
+
}
|
|
102157
|
+
static {
|
|
102158
|
+
this.serviceType = ServiceType3.MESSAGE;
|
|
102159
|
+
}
|
|
102160
|
+
});
|
|
102161
|
+
(class extends Service3 {
|
|
102162
|
+
constructor() {
|
|
102163
|
+
super(...arguments);
|
|
102164
|
+
this.capabilityDescription = "Social media posting and content management capabilities";
|
|
102165
|
+
}
|
|
102166
|
+
static {
|
|
102167
|
+
this.serviceType = ServiceType3.POST;
|
|
102168
|
+
}
|
|
102169
|
+
});
|
|
102096
102170
|
var dsn = define_process_env_default.SENTRY_DSN || "https://c20e2d51b66c14a783b0689d536f7e5c@o4509349865259008.ingest.us.sentry.io/4509352524120064";
|
|
102097
102171
|
if (define_process_env_default.SENTRY_LOGGING !== "false") {
|
|
102098
102172
|
onLoad(() => {
|
|
@@ -102265,7 +102339,7 @@ var createStream = async () => {
|
|
|
102265
102339
|
if (raw) {
|
|
102266
102340
|
return void 0;
|
|
102267
102341
|
}
|
|
102268
|
-
const pretty = await __vitePreload(() => import('./index-
|
|
102342
|
+
const pretty = await __vitePreload(() => import('./index-DVkrXXXS.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
|
|
102269
102343
|
return pretty.default(createPrettyConfig());
|
|
102270
102344
|
};
|
|
102271
102345
|
var options = {
|
|
@@ -104138,9 +104212,11 @@ var AgentRuntime = class {
|
|
|
104138
104212
|
}
|
|
104139
104213
|
async stop() {
|
|
104140
104214
|
this.logger.debug(`runtime::stop - character ${this.character.name}`);
|
|
104141
|
-
for (const [serviceName,
|
|
104215
|
+
for (const [serviceName, services] of this.services) {
|
|
104142
104216
|
this.logger.debug(`runtime::stop - requesting service stop for ${serviceName}`);
|
|
104143
|
-
|
|
104217
|
+
for (const service of services) {
|
|
104218
|
+
await service.stop();
|
|
104219
|
+
}
|
|
104144
104220
|
}
|
|
104145
104221
|
}
|
|
104146
104222
|
async initialize() {
|
|
@@ -105062,12 +105138,12 @@ var AgentRuntime = class {
|
|
|
105062
105138
|
return newState;
|
|
105063
105139
|
}
|
|
105064
105140
|
getService(serviceName) {
|
|
105065
|
-
const
|
|
105066
|
-
if (!
|
|
105141
|
+
const serviceInstances = this.services.get(serviceName);
|
|
105142
|
+
if (!serviceInstances || serviceInstances.length === 0) {
|
|
105067
105143
|
this.logger.debug(`Service ${serviceName} not found`);
|
|
105068
105144
|
return null;
|
|
105069
105145
|
}
|
|
105070
|
-
return
|
|
105146
|
+
return serviceInstances[0];
|
|
105071
105147
|
}
|
|
105072
105148
|
/**
|
|
105073
105149
|
* Type-safe service getter that ensures the correct service type is returned
|
|
@@ -105078,6 +105154,20 @@ var AgentRuntime = class {
|
|
|
105078
105154
|
getTypedService(serviceName) {
|
|
105079
105155
|
return this.getService(serviceName);
|
|
105080
105156
|
}
|
|
105157
|
+
/**
|
|
105158
|
+
* Get all services of a specific type
|
|
105159
|
+
* @template T - The expected service class type
|
|
105160
|
+
* @param serviceName - The service type name
|
|
105161
|
+
* @returns Array of service instances with proper typing
|
|
105162
|
+
*/
|
|
105163
|
+
getServicesByType(serviceName) {
|
|
105164
|
+
const serviceInstances = this.services.get(serviceName);
|
|
105165
|
+
if (!serviceInstances || serviceInstances.length === 0) {
|
|
105166
|
+
this.logger.debug(`No services found for type ${serviceName}`);
|
|
105167
|
+
return [];
|
|
105168
|
+
}
|
|
105169
|
+
return serviceInstances;
|
|
105170
|
+
}
|
|
105081
105171
|
/**
|
|
105082
105172
|
* Get all registered service types
|
|
105083
105173
|
* @returns Array of registered service type names
|
|
@@ -105091,7 +105181,8 @@ var AgentRuntime = class {
|
|
|
105091
105181
|
* @returns true if the service is registered
|
|
105092
105182
|
*/
|
|
105093
105183
|
hasService(serviceType) {
|
|
105094
|
-
|
|
105184
|
+
const serviceInstances = this.services.get(serviceType);
|
|
105185
|
+
return serviceInstances !== void 0 && serviceInstances.length > 0;
|
|
105095
105186
|
}
|
|
105096
105187
|
async registerService(serviceDef) {
|
|
105097
105188
|
const serviceType = serviceDef.serviceType;
|
|
@@ -105105,16 +105196,16 @@ var AgentRuntime = class {
|
|
|
105105
105196
|
`${this.character.name}(${this.agentId}) - Registering service:`,
|
|
105106
105197
|
serviceType
|
|
105107
105198
|
);
|
|
105108
|
-
if (this.services.has(serviceType)) {
|
|
105109
|
-
this.logger.warn(
|
|
105110
|
-
`${this.character.name}(${this.agentId}) - Service ${serviceType} is already registered. Skipping registration.`
|
|
105111
|
-
);
|
|
105112
|
-
return;
|
|
105113
|
-
}
|
|
105114
105199
|
try {
|
|
105115
105200
|
const serviceInstance = await serviceDef.start(this);
|
|
105116
|
-
this.services.
|
|
105117
|
-
|
|
105201
|
+
if (!this.services.has(serviceType)) {
|
|
105202
|
+
this.services.set(serviceType, []);
|
|
105203
|
+
}
|
|
105204
|
+
if (!this.serviceTypes.has(serviceType)) {
|
|
105205
|
+
this.serviceTypes.set(serviceType, []);
|
|
105206
|
+
}
|
|
105207
|
+
this.services.get(serviceType).push(serviceInstance);
|
|
105208
|
+
this.serviceTypes.get(serviceType).push(serviceDef);
|
|
105118
105209
|
if (typeof serviceDef.registerSendHandlers === "function") {
|
|
105119
105210
|
serviceDef.registerSendHandlers(this, serviceInstance);
|
|
105120
105211
|
}
|
|
@@ -108607,7 +108698,7 @@ function usePlugins() {
|
|
|
108607
108698
|
|
|
108608
108699
|
const PROVIDER_PLUGIN_MAPPINGS = {
|
|
108609
108700
|
google: "@elizaos/plugin-google-genai",
|
|
108610
|
-
llama_local: "@elizaos/plugin-
|
|
108701
|
+
llama_local: "@elizaos/plugin-ollama"
|
|
108611
108702
|
// extend as needed
|
|
108612
108703
|
};
|
|
108613
108704
|
const CLIENT_PLUGIN_MAPPINGS = {
|
|
@@ -109123,11 +109214,6 @@ function CharacterForm({
|
|
|
109123
109214
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectContent, { children: field.name === "settings.voice.model" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
109124
109215
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectGroup, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: "none", children: "No Voice" }) }),
|
|
109125
109216
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectSeparator, {}),
|
|
109126
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectGroup, { children: [
|
|
109127
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectLabel, { children: "Local Voices" }),
|
|
109128
|
-
localVoiceModels.map((model) => /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: model.value, children: model.label.replace("Local Voice - ", "") }, model.value))
|
|
109129
|
-
] }),
|
|
109130
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectSeparator, {}),
|
|
109131
109217
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectGroup, { children: [
|
|
109132
109218
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectLabel, { children: "OpenAI Voices" }),
|
|
109133
109219
|
openAIVoiceModels.map((model) => /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: model.value, children: model.label.replace("OpenAI - ", "") }, model.value))
|
|
@@ -109670,7 +109756,7 @@ function PluginsPanel({
|
|
|
109670
109756
|
return characterValue.plugins;
|
|
109671
109757
|
}, [characterValue?.plugins]);
|
|
109672
109758
|
const pluginNames = reactExports.useMemo(() => {
|
|
109673
|
-
const defaultPlugins = ["@elizaos/plugin-sql"
|
|
109759
|
+
const defaultPlugins = ["@elizaos/plugin-sql"];
|
|
109674
109760
|
if (!plugins) return defaultPlugins;
|
|
109675
109761
|
return [
|
|
109676
109762
|
...defaultPlugins,
|
|
@@ -109768,8 +109854,6 @@ function PluginsPanel({
|
|
|
109768
109854
|
return "ElevenLabs plugin is required for the selected voice model.";
|
|
109769
109855
|
case "openai":
|
|
109770
109856
|
return "OpenAI plugin is required for the selected voice model.";
|
|
109771
|
-
case "local":
|
|
109772
|
-
return "Local AI plugin is required for the selected voice model.";
|
|
109773
109857
|
case "none":
|
|
109774
109858
|
return 'No voice plugin required for "No Voice" option.';
|
|
109775
109859
|
default:
|
|
@@ -162032,4 +162116,4 @@ clientExports.createRoot(rootElement).render(
|
|
|
162032
162116
|
);
|
|
162033
162117
|
|
|
162034
162118
|
export { requireString_decoder as a, requireUtil$2 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 };
|
|
162035
|
-
//# sourceMappingURL=index-
|
|
162119
|
+
//# sourceMappingURL=index-CjVdRaS3.js.map
|
|
Binary file
|