@elizaos/agent 2.0.3-beta.3 → 2.0.3-beta.5
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/api/builtin-views.js +1 -1
- package/api/chat-augmentation.d.ts.map +1 -1
- package/api/chat-augmentation.js +52 -2
- package/api/chat-routes.d.ts.map +1 -1
- package/api/chat-routes.js +54 -12
- package/api/documents-service-loader.d.ts +2 -2
- package/api/documents-service-loader.d.ts.map +1 -1
- package/api/lifeops-inbox-fallback-routes.d.ts +19 -0
- package/api/lifeops-inbox-fallback-routes.d.ts.map +1 -0
- package/api/lifeops-inbox-fallback-routes.js +68 -0
- package/api/model-provider-helpers.d.ts.map +1 -1
- package/api/model-provider-helpers.js +20 -7
- package/api/provider-switch-config.js +2 -2
- package/api/server-lazy-routes.d.ts +2 -0
- package/api/server-lazy-routes.d.ts.map +1 -1
- package/api/server-lazy-routes.js +6 -0
- package/api/server.d.ts.map +1 -1
- package/api/server.js +12 -1
- package/api/views-registry.d.ts.map +1 -1
- package/api/views-registry.js +59 -48
- package/package.json +48 -47
- package/runtime/boot-telemetry.d.ts.map +1 -1
- package/runtime/boot-telemetry.js +12 -0
- package/runtime/core-plugins.d.ts.map +1 -1
- package/runtime/core-plugins.js +1 -0
- package/runtime/eliza.d.ts.map +1 -1
- package/runtime/eliza.js +10 -0
- package/runtime/plugin-collector.d.ts.map +1 -1
- package/runtime/plugin-collector.js +11 -0
- package/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/runtime/plugin-lifecycle.js +46 -2
- package/runtime/plugin-resolver.d.ts.map +1 -1
- package/runtime/plugin-resolver.js +1 -0
- package/runtime/plugin-types.js +14 -5
- package/runtime/trajectory-internals.d.ts +10 -8
- package/runtime/trajectory-internals.d.ts.map +1 -1
- package/runtime/trajectory-internals.js +10 -8
- package/runtime/web-search-tools.d.ts +1 -0
- package/runtime/web-search-tools.d.ts.map +1 -1
- package/runtime/web-search-tools.js +20 -10
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function isServerSideWebSearchEnabled(): boolean;
|
|
25
25
|
export declare function __shouldSkipServerSideWebSearchForTests(params: Record<string, unknown>): boolean;
|
|
26
|
+
export declare function __copyStaticFunctionPropertiesForTests(original: (...a: unknown[]) => unknown, wrapped: (...a: unknown[]) => unknown): void;
|
|
26
27
|
/**
|
|
27
28
|
* Enable server-side web search across all supported providers.
|
|
28
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-search-tools.d.ts","sourceRoot":"","sources":["../../src/runtime/web-search-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAmBH,wBAAgB,4BAA4B,IAAI,OAAO,CAGtD;AAiGD,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAET;
|
|
1
|
+
{"version":3,"file":"web-search-tools.d.ts","sourceRoot":"","sources":["../../src/runtime/web-search-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAmBH,wBAAgB,4BAA4B,IAAI,OAAO,CAGtD;AAiGD,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAET;AAoBD,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,OAAO,EACtC,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,OAAO,GACpC,IAAI,CAEN;AA4ED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD"}
|
|
@@ -119,6 +119,25 @@ function shouldSkip(params) {
|
|
|
119
119
|
export function __shouldSkipServerSideWebSearchForTests(params) {
|
|
120
120
|
return shouldSkip(params);
|
|
121
121
|
}
|
|
122
|
+
function copyStaticFunctionProperties(original, wrapped) {
|
|
123
|
+
for (const key of Object.getOwnPropertyNames(original)) {
|
|
124
|
+
if (key === "length" || key === "name" || key === "prototype") {
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
const descriptor = Object.getOwnPropertyDescriptor(original, key);
|
|
128
|
+
if (!descriptor)
|
|
129
|
+
continue;
|
|
130
|
+
try {
|
|
131
|
+
Object.defineProperty(wrapped, key, descriptor);
|
|
132
|
+
}
|
|
133
|
+
catch {
|
|
134
|
+
/* non-configurable */
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export function __copyStaticFunctionPropertiesForTests(original, wrapped) {
|
|
139
|
+
copyStaticFunctionProperties(original, wrapped);
|
|
140
|
+
}
|
|
122
141
|
function wrapFn(original, name) {
|
|
123
142
|
const wrapped = function patchedAiFn(...args) {
|
|
124
143
|
if (args.length > 0 && args[0] && typeof args[0] === "object") {
|
|
@@ -137,16 +156,7 @@ function wrapFn(original, name) {
|
|
|
137
156
|
return original.apply(this, args);
|
|
138
157
|
};
|
|
139
158
|
// Preserve static properties on the original SDK function.
|
|
140
|
-
|
|
141
|
-
if (key !== "length" && key !== "name" && key !== "prototype") {
|
|
142
|
-
try {
|
|
143
|
-
wrapped[key] = original[key];
|
|
144
|
-
}
|
|
145
|
-
catch {
|
|
146
|
-
/* read-only */
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
159
|
+
copyStaticFunctionProperties(original, wrapped);
|
|
150
160
|
return wrapped;
|
|
151
161
|
}
|
|
152
162
|
function patchAiSdk() {
|