@elizaos/server 1.2.11-beta.0 → 1.2.11-beta.2

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,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DvVs69gd.js","assets/vendor-BWTRqS51.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dw9mTTRq.js","assets/vendor-BWTRqS51.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-BWTRqS51.js';
3
3
 
4
4
  true &&(function polyfill() {
@@ -29446,12 +29446,12 @@ function requireDecorators () {
29446
29446
  return decorators;
29447
29447
  }
29448
29448
 
29449
- var logger$2 = {exports: {}};
29449
+ var logger$1 = {exports: {}};
29450
29450
 
29451
29451
  var hasRequiredLogger;
29452
29452
 
29453
29453
  function requireLogger () {
29454
- if (hasRequiredLogger) return logger$2.exports;
29454
+ if (hasRequiredLogger) return logger$1.exports;
29455
29455
  hasRequiredLogger = 1;
29456
29456
  (function (module, exports) {
29457
29457
 
@@ -29500,8 +29500,8 @@ function requireLogger () {
29500
29500
  exports['default'] = logger;
29501
29501
  module.exports = exports['default'];
29502
29502
 
29503
- } (logger$2, logger$2.exports));
29504
- return logger$2.exports;
29503
+ } (logger$1, logger$1.exports));
29504
+ return logger$1.exports;
29505
29505
  }
29506
29506
 
29507
29507
  var protoAccess = {};
@@ -93045,7 +93045,7 @@ const GLOBAL_OBJ = globalThis;
93045
93045
 
93046
93046
  // This is a magic string replaced by rollup
93047
93047
 
93048
- const SDK_VERSION = "9.39.0" ;
93048
+ const SDK_VERSION = "9.40.0" ;
93049
93049
 
93050
93050
  function getMainCarrier() {
93051
93051
  getSentryCarrier(GLOBAL_OBJ);
@@ -93062,7 +93062,11 @@ function getGlobalSingleton(name, creator, obj = GLOBAL_OBJ) {
93062
93062
  return carrier[name] || (carrier[name] = creator());
93063
93063
  }
93064
93064
 
93065
- /** A Sentry Logger instance. */
93065
+ /**
93066
+ * A Sentry Logger instance.
93067
+ *
93068
+ * @deprecated Use {@link debug} instead with the {@link SentryDebugLogger} type.
93069
+ */
93066
93070
 
93067
93071
  const CONSOLE_LEVELS = [
93068
93072
  'debug',
@@ -93131,10 +93135,6 @@ function log$2(...args) {
93131
93135
  _maybeLog('log', ...args);
93132
93136
  }
93133
93137
 
93134
- function info(...args) {
93135
- _maybeLog('info', ...args);
93136
- }
93137
-
93138
93138
  function warn(...args) {
93139
93139
  _maybeLog('warn', ...args);
93140
93140
  }
@@ -93143,18 +93143,6 @@ function error(...args) {
93143
93143
  _maybeLog('error', ...args);
93144
93144
  }
93145
93145
 
93146
- function _debug(...args) {
93147
- _maybeLog('debug', ...args);
93148
- }
93149
-
93150
- function assert$2(...args) {
93151
- _maybeLog('assert', ...args);
93152
- }
93153
-
93154
- function trace(...args) {
93155
- _maybeLog('trace', ...args);
93156
- }
93157
-
93158
93146
  function _maybeLog(level, ...args) {
93159
93147
  if (!DEBUG_BUILD$2) {
93160
93148
  return;
@@ -93175,33 +93163,6 @@ function _getLoggerSettings() {
93175
93163
  return getGlobalSingleton('loggerSettings', () => ({ enabled: false }));
93176
93164
  }
93177
93165
 
93178
- /**
93179
- * This is a logger singleton which either logs things or no-ops if logging is not enabled.
93180
- * The logger is a singleton on the carrier, to ensure that a consistent logger is used throughout the SDK.
93181
- */
93182
- const logger$1 = {
93183
- /** Enable logging. */
93184
- enable,
93185
- /** Disable logging. */
93186
- disable: disable$1,
93187
- /** Check if logging is enabled. */
93188
- isEnabled,
93189
- /** Log a message. */
93190
- log: log$2,
93191
- /** Log level info */
93192
- info,
93193
- /** Log a warning. */
93194
- warn,
93195
- /** Log an error. */
93196
- error,
93197
- /** Log a debug message. */
93198
- debug: _debug,
93199
- /** Log an assertion. */
93200
- assert: assert$2,
93201
- /** Log a trace. */
93202
- trace,
93203
- } ;
93204
-
93205
93166
  /**
93206
93167
  * This is a logger singleton which either logs things or no-ops if logging is not enabled.
93207
93168
  */
@@ -93351,7 +93312,7 @@ function getFunctionName(fn) {
93351
93312
  return defaultFunctionName;
93352
93313
  }
93353
93314
  return fn.name || defaultFunctionName;
93354
- } catch (e) {
93315
+ } catch {
93355
93316
  // Just accessing custom props in some Selenium environments
93356
93317
  // can cause a "Permission denied" exception (see raven-js#495).
93357
93318
  return defaultFunctionName;
@@ -93376,7 +93337,7 @@ function getFramesFromEvent(event) {
93376
93337
  }
93377
93338
  });
93378
93339
  return frames;
93379
- } catch (_oO) {
93340
+ } catch {
93380
93341
  return undefined;
93381
93342
  }
93382
93343
  }
@@ -93641,7 +93602,7 @@ function isSyntheticEvent(wat) {
93641
93602
  function isInstanceOf(wat, base) {
93642
93603
  try {
93643
93604
  return wat instanceof base;
93644
- } catch (_e) {
93605
+ } catch {
93645
93606
  return false;
93646
93607
  }
93647
93608
  }
@@ -93717,7 +93678,7 @@ function htmlTreeAsString(
93717
93678
  }
93718
93679
 
93719
93680
  return out.reverse().join(separator);
93720
- } catch (_oO) {
93681
+ } catch {
93721
93682
  return '<unknown>';
93722
93683
  }
93723
93684
  }
@@ -93792,7 +93753,7 @@ function _htmlElementAsString(el, keyAttrs) {
93792
93753
  function getLocationHref() {
93793
93754
  try {
93794
93755
  return WINDOW$3.document.location.href;
93795
- } catch (oO) {
93756
+ } catch {
93796
93757
  return '';
93797
93758
  }
93798
93759
  }
@@ -93872,7 +93833,7 @@ function safeJoin(input, delimiter) {
93872
93833
  } else {
93873
93834
  output.push(String(value));
93874
93835
  }
93875
- } catch (e) {
93836
+ } catch {
93876
93837
  output.push('[value cannot be serialized]');
93877
93838
  }
93878
93839
  }
@@ -93982,7 +93943,7 @@ function addNonEnumerableProperty(obj, name, value) {
93982
93943
  writable: true,
93983
93944
  configurable: true,
93984
93945
  });
93985
- } catch (o_O) {
93946
+ } catch {
93986
93947
  DEBUG_BUILD$2 && debug.log(`Failed to add non-enumerable property "${name}" to object`, obj);
93987
93948
  }
93988
93949
  }
@@ -93999,7 +93960,7 @@ function markFunctionWrapped(wrapped, original) {
93999
93960
  const proto = original.prototype || {};
94000
93961
  wrapped.prototype = original.prototype = proto;
94001
93962
  addNonEnumerableProperty(wrapped, '__sentry_original__', original);
94002
- } catch (o_O) {} // eslint-disable-line no-empty
93963
+ } catch {} // eslint-disable-line no-empty
94003
93964
  }
94004
93965
 
94005
93966
  /**
@@ -94056,7 +94017,7 @@ function convertToPlainObject(value)
94056
94017
  function serializeEventTarget(target) {
94057
94018
  try {
94058
94019
  return isElement(target) ? htmlTreeAsString(target) : Object.prototype.toString.call(target);
94059
- } catch (_oO) {
94020
+ } catch {
94060
94021
  return '<unknown>';
94061
94022
  }
94062
94023
  }
@@ -94126,7 +94087,7 @@ function uuid4(crypto = getCrypto()) {
94126
94087
  return typedArray[0];
94127
94088
  };
94128
94089
  }
94129
- } catch (_) {
94090
+ } catch {
94130
94091
  }
94131
94092
  return ("10000000100040008000" + 1e11).replace(
94132
94093
  /[018]/g,
@@ -94183,7 +94144,7 @@ function checkOrSetAlreadyCaught(exception) {
94183
94144
  }
94184
94145
  try {
94185
94146
  addNonEnumerableProperty(exception, "__sentry_captured__", true);
94186
- } catch (err) {
94147
+ } catch {
94187
94148
  }
94188
94149
  return false;
94189
94150
  }
@@ -95811,7 +95772,7 @@ function visit$2(key, value, depth = Infinity, maxProperties = Infinity, memo =
95811
95772
  try {
95812
95773
  const jsonValue = valueWithToJSON.toJSON();
95813
95774
  return visit$2("", jsonValue, remainingDepth - 1, maxProperties, memo);
95814
- } catch (err) {
95775
+ } catch {
95815
95776
  }
95816
95777
  }
95817
95778
  const normalized = Array.isArray(value) ? [] : {};
@@ -95979,7 +95940,7 @@ function serializeEnvelope(envelope) {
95979
95940
  let stringifiedPayload;
95980
95941
  try {
95981
95942
  stringifiedPayload = JSON.stringify(payload);
95982
- } catch (e) {
95943
+ } catch {
95983
95944
  // In case, despite all our efforts to keep `payload` circular-dependency-free, `JSON.stringify()` still
95984
95945
  // fails, we try again after normalizing it again with infinite normalization depth. This of course has a
95985
95946
  // performance impact but in this case a performance hit is better than throwing.
@@ -97176,7 +97137,7 @@ function getPossibleEventMessages(event) {
97176
97137
  possibleMessages.push(`${lastException.type}: ${lastException.value}`);
97177
97138
  }
97178
97139
  }
97179
- } catch (e) {
97140
+ } catch {
97180
97141
  // ignore errors here
97181
97142
  }
97182
97143
 
@@ -98880,7 +98841,7 @@ function _getEventFilterUrl(event) {
98880
98841
  .find(value => value.mechanism?.parent_id === undefined && value.stacktrace?.frames?.length);
98881
98842
  const frames = rootException?.stacktrace?.frames;
98882
98843
  return frames ? _getLastValidUrl(frames) : null;
98883
- } catch (oO) {
98844
+ } catch {
98884
98845
  DEBUG_BUILD$2 && debug.error(`Cannot extract url for event ${getEventDescription(event)}`);
98885
98846
  return null;
98886
98847
  }
@@ -99091,7 +99052,7 @@ const _dedupeIntegration = (() => {
99091
99052
  DEBUG_BUILD$2 && debug.warn('Event dropped due to being a duplicate of previously captured event.');
99092
99053
  return null;
99093
99054
  }
99094
- } catch (_oO) {} // eslint-disable-line no-empty
99055
+ } catch {} // eslint-disable-line no-empty
99095
99056
 
99096
99057
  return (previousEvent = currentEvent);
99097
99058
  },
@@ -99234,13 +99195,13 @@ function _isSameFingerprint(currentEvent, previousEvent) {
99234
99195
  // Otherwise, compare the two
99235
99196
  try {
99236
99197
  return !!(currentFingerprint.join('') === previousFingerprint.join(''));
99237
- } catch (_oO) {
99198
+ } catch {
99238
99199
  return false;
99239
99200
  }
99240
99201
  }
99241
99202
 
99242
99203
  function _getExceptionFromEvent(event) {
99243
- return event.exception?.values && event.exception.values[0];
99204
+ return event.exception?.values?.[0];
99244
99205
  }
99245
99206
 
99246
99207
  function parseUrl(url) {
@@ -99302,7 +99263,7 @@ function _isFetchSupported() {
99302
99263
  new Request('http://www.example.com');
99303
99264
  new Response();
99304
99265
  return true;
99305
- } catch (e) {
99266
+ } catch {
99306
99267
  return false;
99307
99268
  }
99308
99269
  }
@@ -99618,7 +99579,7 @@ function wrap$2(
99618
99579
  if (getOriginalFunction(fn)) {
99619
99580
  return fn;
99620
99581
  }
99621
- } catch (e) {
99582
+ } catch {
99622
99583
  // Just accessing custom props in some Selenium environments
99623
99584
  // can cause a "Permission denied" exception (see raven-js#495).
99624
99585
  // Bail on wrapping and return the function as-is (defers to window.onerror).
@@ -99815,7 +99776,7 @@ function parseStackFrames(
99815
99776
 
99816
99777
  try {
99817
99778
  return stackParser(stacktrace, skipLines, framesToPop);
99818
- } catch (e) {
99779
+ } catch {
99819
99780
  // no-empty
99820
99781
  }
99821
99782
 
@@ -100087,7 +100048,7 @@ function getObjectClassName(obj) {
100087
100048
  try {
100088
100049
  const prototype = Object.getPrototypeOf(obj);
100089
100050
  return prototype ? prototype.constructor.name : undefined;
100090
- } catch (e) {
100051
+ } catch {
100091
100052
  // ignore errors here
100092
100053
  }
100093
100054
  }
@@ -100263,7 +100224,7 @@ function instrumentDOM() {
100263
100224
  originalAddEventListener.call(this, type, handler, options);
100264
100225
  }
100265
100226
  handlerForType.refCount++;
100266
- } catch (e) {
100227
+ } catch {
100267
100228
  }
100268
100229
  }
100269
100230
  return originalAddEventListener.call(this, type, listener, options);
@@ -100289,7 +100250,7 @@ function instrumentDOM() {
100289
100250
  delete this.__sentry_instrumentation_handlers__;
100290
100251
  }
100291
100252
  }
100292
- } catch (e) {
100253
+ } catch {
100293
100254
  }
100294
100255
  }
100295
100256
  return originalRemoveEventListener.call(this, type, listener, options);
@@ -100306,7 +100267,7 @@ function isSimilarToLastCapturedEvent(event) {
100306
100267
  if (!event.target || event.target._sentryId !== lastCapturedEventTargetId) {
100307
100268
  return false;
100308
100269
  }
100309
- } catch (e) {
100270
+ } catch {
100310
100271
  }
100311
100272
  return true;
100312
100273
  }
@@ -100352,7 +100313,7 @@ function makeDOMEventHandler(handler, globalListener = false) {
100352
100313
  function getEventTarget(event) {
100353
100314
  try {
100354
100315
  return event.target;
100355
- } catch (e) {
100316
+ } catch {
100356
100317
  return null;
100357
100318
  }
100358
100319
  }
@@ -100485,7 +100446,7 @@ function getNativeImplementation(
100485
100446
  document.head.removeChild(sandbox);
100486
100447
  } catch (e) {
100487
100448
  // Could not create sandbox iframe, just use window.xxx
100488
- DEBUG_BUILD$1 && logger$1.warn(`Could not create sandbox iframe for ${name} check, bailing to window.${name}: `, e);
100449
+ DEBUG_BUILD$1 && debug.warn(`Could not create sandbox iframe for ${name} check, bailing to window.${name}: `, e);
100489
100450
  }
100490
100451
  }
100491
100452
 
@@ -100578,7 +100539,7 @@ function instrumentXHR() {
100578
100539
  // touching statusCode in some platforms throws
100579
100540
  // an exception
100580
100541
  xhrInfo.status_code = xhrOpenThisArg.status;
100581
- } catch (e) {
100542
+ } catch {
100582
100543
  /* do nothing */
100583
100544
  }
100584
100545
 
@@ -100888,7 +100849,7 @@ function _getDomBreadcrumbHandler(client, dom) {
100888
100849
  let keyAttrs = typeof dom === "object" ? dom.serializeAttribute : void 0;
100889
100850
  let maxStringLength = typeof dom === "object" && typeof dom.maxStringLength === "number" ? dom.maxStringLength : void 0;
100890
100851
  if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {
100891
- DEBUG_BUILD && logger$1.warn(
100852
+ DEBUG_BUILD && debug.warn(
100892
100853
  `\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`
100893
100854
  );
100894
100855
  maxStringLength = MAX_ALLOWED_STRING_LENGTH;
@@ -100901,7 +100862,7 @@ function _getDomBreadcrumbHandler(client, dom) {
100901
100862
  const element = _isEvent(event) ? event.target : event;
100902
100863
  target = htmlTreeAsString(element, { keyAttrs, maxStringLength });
100903
100864
  componentName = getComponentName(element);
100904
- } catch (e) {
100865
+ } catch {
100905
100866
  target = "<unknown>";
100906
100867
  }
100907
100868
  if (target.length === 0) {
@@ -101249,7 +101210,7 @@ function _wrapEventTarget(target, integrationOptions) {
101249
101210
  if (originalEventHandler) {
101250
101211
  originalRemoveEventListener.call(this, eventName, originalEventHandler, options);
101251
101212
  }
101252
- } catch (e) {
101213
+ } catch {
101253
101214
  }
101254
101215
  return originalRemoveEventListener.call(this, eventName, fn, options);
101255
101216
  };
@@ -101276,7 +101237,7 @@ const browserSessionIntegration = defineIntegration(() => {
101276
101237
  setupOnce() {
101277
101238
  if (typeof WINDOW$1.document === 'undefined') {
101278
101239
  DEBUG_BUILD &&
101279
- logger$1.warn('Using the `browserSessionIntegration` in non-browser environments is not supported.');
101240
+ debug.warn('Using the `browserSessionIntegration` in non-browser environments is not supported.');
101280
101241
  return;
101281
101242
  }
101282
101243
 
@@ -101414,7 +101375,7 @@ function _enhanceEventWithInitialFrame(event, url, line, column) {
101414
101375
  return event;
101415
101376
  }
101416
101377
  function globalHandlerLog(type) {
101417
- DEBUG_BUILD && logger$1.log(`Global Handler attached: ${type}`);
101378
+ DEBUG_BUILD && debug.log(`Global Handler attached: ${type}`);
101418
101379
  }
101419
101380
  function getOptions() {
101420
101381
  const client = getClient();
@@ -102341,7 +102302,7 @@ var createStream = async () => {
102341
102302
  if (raw) {
102342
102303
  return void 0;
102343
102304
  }
102344
- const pretty = await __vitePreload(() => import('./index-DvVs69gd.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
102305
+ const pretty = await __vitePreload(() => import('./index-Dw9mTTRq.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
102345
102306
  return pretty.default(createPrettyConfig());
102346
102307
  };
102347
102308
  var options = {
@@ -162118,4 +162079,4 @@ clientExports.createRoot(rootElement).render(
162118
162079
  );
162119
162080
 
162120
162081
  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 };
162121
- //# sourceMappingURL=index-Cz1Kycl3.js.map
162082
+ //# sourceMappingURL=index-BLNojQnQ.js.map