@semiont/make-meaning 0.4.6 → 0.4.9

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/index.js CHANGED
@@ -11167,6 +11167,7 @@ var Gatherer = class {
11167
11167
  this.logger
11168
11168
  );
11169
11169
  this.eventBus.get("gather:complete").next({
11170
+ correlationId: event.correlationId,
11170
11171
  annotationId: event.annotationId,
11171
11172
  response
11172
11173
  });
@@ -11176,6 +11177,7 @@ var Gatherer = class {
11176
11177
  error
11177
11178
  });
11178
11179
  this.eventBus.get("gather:failed").next({
11180
+ correlationId: event.correlationId,
11179
11181
  annotationId: event.annotationId,
11180
11182
  error: error instanceof Error ? error : new Error(String(error))
11181
11183
  });
@@ -11193,8 +11195,9 @@ var Gatherer = class {
11193
11195
  this.inferenceClient
11194
11196
  );
11195
11197
  this.eventBus.get("gather:resource-complete").next({
11198
+ correlationId: event.correlationId,
11196
11199
  resourceId: event.resourceId,
11197
- context: result
11200
+ response: result
11198
11201
  });
11199
11202
  } catch (error) {
11200
11203
  this.logger.error("Gather resource context failed", {
@@ -11202,6 +11205,7 @@ var Gatherer = class {
11202
11205
  error
11203
11206
  });
11204
11207
  this.eventBus.get("gather:resource-failed").next({
11208
+ correlationId: event.correlationId,
11205
11209
  resourceId: event.resourceId,
11206
11210
  error: error instanceof Error ? error : new Error(String(error))
11207
11211
  });
@@ -11267,9 +11271,9 @@ var Matcher = class {
11267
11271
  );
11268
11272
  const limited = event.limit ? scored.slice(0, event.limit) : scored;
11269
11273
  this.eventBus.get("match:search-results").next({
11274
+ correlationId: event.correlationId,
11270
11275
  referenceId: event.referenceId,
11271
- results: limited,
11272
- correlationId: event.correlationId
11276
+ response: limited
11273
11277
  });
11274
11278
  } catch (error) {
11275
11279
  this.logger.error("Bind search failed", {
@@ -11277,9 +11281,9 @@ var Matcher = class {
11277
11281
  error
11278
11282
  });
11279
11283
  this.eventBus.get("match:search-failed").next({
11284
+ correlationId: event.correlationId,
11280
11285
  referenceId: event.referenceId,
11281
- error: error instanceof Error ? error : new Error(String(error)),
11282
- correlationId: event.correlationId
11286
+ error: error instanceof Error ? error.message : String(error)
11283
11287
  });
11284
11288
  }
11285
11289
  }