orchestrated 0.1.25 → 0.1.27

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/index.js CHANGED
@@ -114153,7 +114153,7 @@ class BatchClient {
114153
114153
  }
114154
114154
  async initialize(name, checksum, dataSourceType, maxAgeDays = 3) {
114155
114155
  this.metadata = { name, checksum };
114156
- const batches = await this.listBatches(100);
114156
+ const batches = await this.listBatches(2);
114157
114157
  const maxAgeMs = maxAgeDays * 24 * 60 * 60 * 1000;
114158
114158
  const cutoff = Date.now() - maxAgeMs;
114159
114159
  const matchingBatches = batches.filter((batch) => {
@@ -114544,7 +114544,12 @@ async function serializeEvaluation(name, config2, options) {
114544
114544
  const serializedScorer = await serializeScorer(config2.scores[i2], name, i2);
114545
114545
  scores.push(serializedScorer);
114546
114546
  }
114547
- const serializedOptions = options?.__schedule ? { __schedule: options.__schedule } : undefined;
114547
+ const serializedOptions = options?.__schedule || options?.batchProcessor ? {
114548
+ ...options.__schedule && { __schedule: options.__schedule },
114549
+ ...options.batchProcessor && {
114550
+ batchProcessor: options.batchProcessor
114551
+ }
114552
+ } : undefined;
114548
114553
  return {
114549
114554
  name,
114550
114555
  slug,
@@ -116025,4 +116030,4 @@ export {
116025
116030
  Behavioral
116026
116031
  };
116027
116032
 
116028
- //# debugId=8AB7C90C097EAF1364756E2164756E21
116033
+ //# debugId=41C753980DD9E7B664756E2164756E21