@walkeros/cli 3.3.0-next-1776113011459 → 3.3.1

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/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # @walkeros/cli
2
2
 
3
- ## 3.3.0-next-1776113011459
3
+ ## 3.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 62f6a38: Force collector.run=true during push and simulate so flows with
8
+ run:false work in CLI
9
+ - @walkeros/server-core@3.3.1
10
+ - @walkeros/core@3.3.1
11
+
12
+ ## 3.3.0
4
13
 
5
14
  ### Minor Changes
6
15
 
@@ -95,8 +104,8 @@
95
104
  - Updated dependencies [08c365a]
96
105
  - Updated dependencies [08c365a]
97
106
  - Updated dependencies [08c365a]
98
- - @walkeros/core@3.3.0-next-1776113011459
99
- - @walkeros/server-core@3.3.0-next-1776113011459
107
+ - @walkeros/core@3.3.0
108
+ - @walkeros/server-core@3.3.0
100
109
 
101
110
  ## 3.2.0
102
111
 
package/dist/cli.js CHANGED
@@ -95,12 +95,12 @@ function P(e3) {
95
95
  function C(e3) {
96
96
  return "object" == typeof e3 && null !== e3 && !Array.isArray(e3);
97
97
  }
98
- function R(...e3) {
98
+ function M(...e3) {
99
99
  const t = {};
100
100
  for (const n3 of e3) n3 && Object.assign(t, n3);
101
101
  return t;
102
102
  }
103
- function T(...e3) {
103
+ function R(...e3) {
104
104
  const t = {};
105
105
  for (const n3 of e3) n3 && Object.assign(t, n3);
106
106
  return t;
@@ -143,7 +143,7 @@ function z(e3, t, n3, o2, r2) {
143
143
  if (void 0 !== t[n4]) return String(t[n4]);
144
144
  S(`Variable "${n4}" not found`);
145
145
  });
146
- return a2 = a2.replace(/\$env\.([a-zA-Z_][a-zA-Z0-9_]*)(?::([^"}\s]*))?/g, (e4, t2, n4) => o2?.deferred ? void 0 !== n4 ? `${M}${t2}:${n4}` : `${M}${t2}` : "undefined" != typeof process && void 0 !== process.env?.[t2] ? process.env[t2] : void 0 !== n4 ? n4 : void S(`Environment variable "${t2}" not found and no default provided`)), a2;
146
+ return a2 = a2.replace(/\$env\.([a-zA-Z_][a-zA-Z0-9_]*)(?::([^"}\s]*))?/g, (e4, t2, n4) => o2?.deferred ? void 0 !== n4 ? `${T}${t2}:${n4}` : `${T}${t2}` : "undefined" != typeof process && void 0 !== process.env?.[t2] ? process.env[t2] : void 0 !== n4 ? n4 : void S(`Environment variable "${t2}" not found and no default provided`)), a2;
147
147
  }
148
148
  if (Array.isArray(e3)) return e3.map((e4) => z(e4, t, n3, o2, r2));
149
149
  if (null !== e3 && "object" == typeof e3) {
@@ -170,27 +170,27 @@ function D(e3, t, n3) {
170
170
  const i2 = JSON.parse(JSON.stringify(r2));
171
171
  let s2;
172
172
  if (e3.contract) {
173
- const t2 = R(e3.variables, r2.variables), o3 = T(e3.definitions, r2.definitions);
173
+ const t2 = M(e3.variables, r2.variables), o3 = R(e3.definitions, r2.definitions);
174
174
  s2 = _(z(e3.contract, t2, o3, n3));
175
175
  }
176
176
  if (i2.sources) for (const [t2, o3] of Object.entries(i2.sources)) {
177
- const a2 = R(e3.variables, r2.variables, o3.variables), c3 = T(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
177
+ const a2 = M(e3.variables, r2.variables, o3.variables), c3 = R(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
178
178
  i2.sources[t2] = { package: o3.package, config: u4, env: f2, primary: o3.primary, variables: o3.variables, definitions: o3.definitions, before: o3.before, next: o3.next, cache: o3.cache, code: d2 };
179
179
  }
180
180
  if (i2.destinations) for (const [t2, o3] of Object.entries(i2.destinations)) {
181
- const a2 = R(e3.variables, r2.variables, o3.variables), c3 = T(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
181
+ const a2 = M(e3.variables, r2.variables, o3.variables), c3 = R(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
182
182
  i2.destinations[t2] = { package: o3.package, config: u4, env: f2, variables: o3.variables, definitions: o3.definitions, before: o3.before, next: o3.next, cache: o3.cache, code: d2 };
183
183
  }
184
184
  if (i2.stores) for (const [t2, o3] of Object.entries(i2.stores)) {
185
- const a2 = R(e3.variables, r2.variables, o3.variables), c3 = T(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
185
+ const a2 = M(e3.variables, r2.variables, o3.variables), c3 = R(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
186
186
  i2.stores[t2] = { package: o3.package, config: u4, env: f2, variables: o3.variables, definitions: o3.definitions, code: d2 };
187
187
  }
188
188
  if (i2.transformers) for (const [t2, o3] of Object.entries(i2.transformers)) {
189
- const a2 = R(e3.variables, r2.variables, o3.variables), c3 = T(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
189
+ const a2 = M(e3.variables, r2.variables, o3.variables), c3 = R(e3.definitions, r2.definitions, o3.definitions), u4 = z(o3.config, a2, c3, n3, s2), f2 = z(o3.env, a2, c3, n3, s2), l2 = U(o3.package, o3.code, i2.bundle?.packages), p2 = "string" == typeof o3.code || "object" == typeof o3.code ? o3.code : void 0, d2 = l2 || p2;
190
190
  i2.transformers[t2] = { package: o3.package, config: u4, env: f2, variables: o3.variables, definitions: o3.definitions, before: o3.before, next: o3.next, cache: o3.cache, code: d2 };
191
191
  }
192
192
  if (i2.collector) {
193
- const t2 = R(e3.variables, r2.variables), o3 = T(e3.definitions, r2.definitions), a2 = z(i2.collector, t2, o3, n3, s2);
193
+ const t2 = M(e3.variables, r2.variables), o3 = R(e3.definitions, r2.definitions), a2 = z(i2.collector, t2, o3, n3, s2);
194
194
  i2.collector = a2;
195
195
  }
196
196
  return i2;
@@ -227,7 +227,7 @@ function ne(e3, t = "", n3) {
227
227
  function be(e3) {
228
228
  return { message: e3.message, name: e3.name, stack: e3.stack, cause: e3.cause };
229
229
  }
230
- function ve(e3, t) {
230
+ function he(e3, t) {
231
231
  let n3, o2 = {};
232
232
  return e3 instanceof Error ? (n3 = e3.message, o2.error = be(e3)) : n3 = e3, void 0 !== t && (t instanceof Error ? o2.error = be(t) : "object" == typeof t && null !== t ? (o2 = { ...o2, ...t }, "error" in o2 && o2.error instanceof Error && (o2.error = be(o2.error))) : o2.value = t), { message: n3, context: o2 };
233
233
  }
@@ -239,13 +239,13 @@ function je(e3 = {}) {
239
239
  function we(e3) {
240
240
  const { level: t, handler: n3, jsonHandler: o2, scope: r2 } = e3, i2 = (e4, o3, i3) => {
241
241
  if (e4 <= t) {
242
- const t2 = ve(o3, i3);
243
- n3 ? n3(e4, t2.message, t2.context, r2, he) : he(e4, t2.message, t2.context, r2);
242
+ const t2 = he(o3, i3);
243
+ n3 ? n3(e4, t2.message, t2.context, r2, ve) : ve(e4, t2.message, t2.context, r2);
244
244
  }
245
245
  };
246
246
  return { error: (e4, t2) => i2(0, e4, t2), warn: (e4, t2) => i2(1, e4, t2), info: (e4, t2) => i2(2, e4, t2), debug: (e4, t2) => i2(3, e4, t2), throw: (e4, t2) => {
247
- const o3 = ve(e4, t2);
248
- throw n3 ? n3(0, o3.message, o3.context, r2, he) : he(0, o3.message, o3.context, r2), new Error(o3.message);
247
+ const o3 = he(e4, t2);
248
+ throw n3 ? n3(0, o3.message, o3.context, r2, ve) : ve(0, o3.message, o3.context, r2), new Error(o3.message);
249
249
  }, json: (e4) => {
250
250
  o2 ? o2(e4) : console.log(JSON.stringify(e4, null, 2));
251
251
  }, scope: (e4) => we({ level: t, handler: n3, jsonHandler: o2, scope: [...r2, e4] }) };
@@ -388,7 +388,7 @@ function ft(e3, t, n3, o2) {
388
388
  function lt(e3, t, n3, o2) {
389
389
  e3.set(t, n3, 1e3 * o2);
390
390
  }
391
- var e, c, u, A, E, M, he;
391
+ var e, c, u, A, E, T, ve;
392
392
  var init_dist = __esm({
393
393
  "../core/dist/index.mjs"() {
394
394
  "use strict";
@@ -400,8 +400,8 @@ var init_dist = __esm({
400
400
  u = ((e3) => (e3[e3.ERROR = 0] = "ERROR", e3[e3.WARN = 1] = "WARN", e3[e3.INFO = 2] = "INFO", e3[e3.DEBUG = 3] = "DEBUG", e3))(u || {});
401
401
  A = ["globals", "context", "custom", "user", "consent"];
402
402
  E = /* @__PURE__ */ new Set(["description", "examples", "title", "$comment"]);
403
- M = "__WALKEROS_ENV:";
404
- he = (e3, t, n3, o2) => {
403
+ T = "__WALKEROS_ENV:";
404
+ ve = (e3, t, n3, o2) => {
405
405
  const r2 = `${u[e3]}${o2.length > 0 ? ` [${o2.join(":")}]` : ""}`, i2 = Object.keys(n3).length > 0, s2 = 0 === e3 ? console.error : 1 === e3 ? console.warn : console.log;
406
406
  i2 ? s2(r2, t, n3) : s2(r2, t);
407
407
  };
@@ -17599,7 +17599,7 @@ function serializeWithCode(value, indent) {
17599
17599
  if (value.startsWith("$code:")) {
17600
17600
  return value.slice(6);
17601
17601
  }
17602
- const esc2 = M.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17602
+ const esc2 = T.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17603
17603
  const markerRe = new RegExp(
17604
17604
  esc2 + "([a-zA-Z_][a-zA-Z0-9_]*)(?::((?:(?!" + esc2 + `)[^\\s"'])*))?`,
17605
17605
  "g"
@@ -18238,10 +18238,10 @@ async function oe2(e3, n3, t, o2, s2, r2, i2) {
18238
18238
  o4.respond && (c3 = o4.respond), a2 = Array.isArray(o4.event) ? o4.event[0] : o4.event;
18239
18239
  }
18240
18240
  }
18241
- const p2 = await Se(te3, (n4) => (e3.logger.scope(`transformer:${r3.type || "unknown"}`).error("Push failed", { error: n4 }), false))(e3, r3, o3, a2, s2, c3);
18242
- if (false === p2) return { event: null, respond: c3 };
18243
- if (Array.isArray(p2)) {
18244
- const r4 = t.slice(t.indexOf(o3) + 1), u5 = await Promise.all(p2.map(async (t2) => {
18241
+ const m2 = await Se(te3, (n4) => (e3.logger.scope(`transformer:${r3.type || "unknown"}`).error("Push failed", { error: n4 }), false))(e3, r3, o3, a2, s2, c3);
18242
+ if (false === m2) return { event: null, respond: c3 };
18243
+ if (Array.isArray(m2)) {
18244
+ const r4 = t.slice(t.indexOf(o3) + 1), u5 = await Promise.all(m2.map(async (t2) => {
18245
18245
  const o4 = t2.event || a2, u6 = s2 ? { ...s2, _meta: { ...s2._meta, path: [...s2._meta.path] } } : x("unknown");
18246
18246
  if (t2.next) {
18247
18247
  let s3 = t2.next;
@@ -18266,8 +18266,8 @@ async function oe2(e3, n3, t, o2, s2, r2, i2) {
18266
18266
  } else l3.push(e4);
18267
18267
  return 0 === l3.length ? { event: null, respond: f3 } : 1 === l3.length ? { event: l3[0], respond: f3 } : { event: l3, respond: f3 };
18268
18268
  }
18269
- if (p2 && "object" == typeof p2) {
18270
- const { event: t2, respond: o4, next: r4 } = p2;
18269
+ if (m2 && "object" == typeof m2) {
18270
+ const { event: t2, respond: o4, next: r4 } = m2;
18271
18271
  if (o4 && (c3 = o4), r4) {
18272
18272
  let o5 = r4;
18273
18273
  if (it(r4)) {
@@ -18282,7 +18282,7 @@ async function oe2(e3, n3, t, o2, s2, r2, i2) {
18282
18282
  }
18283
18283
  t2 && (a2 = t2);
18284
18284
  }
18285
- if (d2 && l2 && lt(l2, d2.key, a2, d2.ttl), (!p2 || "object" == typeof p2 && !p2.next) && r3.config.next && it(r3.config.next)) {
18285
+ if (d2 && l2 && lt(l2, d2.key, a2, d2.ttl), (!m2 || "object" == typeof m2 && !m2.next) && r3.config.next && it(r3.config.next)) {
18286
18286
  const t2 = r3.config.next, o4 = st(t2), u5 = at(o4, ct(s2, a2));
18287
18287
  if (u5) {
18288
18288
  const t3 = ee3(u5, Y2(n3));
@@ -18296,15 +18296,15 @@ async function oe2(e3, n3, t, o2, s2, r2, i2) {
18296
18296
  function se2(e3) {
18297
18297
  return e3 && Q(e3) ? e3 : {};
18298
18298
  }
18299
- function Ge2(e3) {
18299
+ function Ne3(e3) {
18300
18300
  if (null === e3 || "object" != typeof e3) return e3;
18301
- if (Array.isArray(e3)) return e3.map(Ge2);
18301
+ if (Array.isArray(e3)) return e3.map(Ne3);
18302
18302
  const n3 = {};
18303
- for (const [t, o2] of Object.entries(e3)) n3[t] = "function" == typeof o2 ? o2 : Ge2(o2);
18303
+ for (const [t, o2] of Object.entries(e3)) n3[t] = "function" == typeof o2 ? o2 : Ne3(o2);
18304
18304
  return n3;
18305
18305
  }
18306
- function Ne3(e3) {
18307
- const n3 = [], { simulation: t, ...o2 } = e3, s2 = Ge2(o2);
18306
+ function Ue2(e3) {
18307
+ const n3 = [], { simulation: t, ...o2 } = e3, s2 = Ne3(o2);
18308
18308
  for (const e4 of t) {
18309
18309
  const t2 = e4.startsWith("call:") ? e4.slice(5) : e4, o3 = t2.split(".");
18310
18310
  let r2 = s2;
@@ -18482,6 +18482,7 @@ function applyOverrides(config2, overrides) {
18482
18482
  }
18483
18483
  }
18484
18484
  }
18485
+ config2.run = true;
18485
18486
  if (overrides.transformerMocks) {
18486
18487
  const transformers = config2.transformers;
18487
18488
  if (transformers) {
@@ -19435,7 +19436,7 @@ async function simulateDestination(configOrPath, event, options) {
19435
19436
  ...devEnv.push,
19436
19437
  simulation: devEnv.simulation
19437
19438
  };
19438
- const { wrappedEnv, calls } = Ne3(combined);
19439
+ const { wrappedEnv, calls } = Ue2(combined);
19439
19440
  if (destConfig) destConfig.env = wrappedEnv;
19440
19441
  trackedCalls = calls;
19441
19442
  }
package/dist/index.js CHANGED
@@ -3035,16 +3035,16 @@ import {
3035
3035
  // ../collector/dist/index.mjs
3036
3036
  import { assign as o } from "@walkeros/core";
3037
3037
  import { assign as r, createLogger as i } from "@walkeros/core";
3038
- import { assign as a, buildCacheContext as c, clone as u, compileCache as f, checkCache as l, storeCache as d, compileNext as g, createIngest as p, debounce as m, getId as h, getGrantedConsent as y, isDefined as v, isFunction as b, isObject as w, isRouteArray as k, processEventMapping as C, resolveNext as O, tryCatchAsync as j, useHooks as A } from "@walkeros/core";
3039
- import { isArray as x } from "@walkeros/core";
3038
+ import { assign as a, buildCacheContext as c, clone as u, compileCache as f, checkCache as l, storeCache as d, compileNext as g, createIngest as m, debounce as p, getId as h, getGrantedConsent as y, isDefined as v, isFunction as b, isObject as k, isRouteArray as w, processEventMapping as C, resolveNext as O, tryCatchAsync as j, useHooks as x } from "@walkeros/core";
3039
+ import { isArray as A } from "@walkeros/core";
3040
3040
  import { tryCatch as q, tryCatchAsync as S } from "@walkeros/core";
3041
3041
  import { createIngest as $, getMappingValue as D, tryCatchAsync as _, compileNext as I, resolveNext as P, isRouteArray as E, compileCache as M, checkCache as R, storeCache as H, applyUpdate as T, buildCacheContext as G } from "@walkeros/core";
3042
- import { createIngest as N, isObject as B, tryCatchAsync as U, useHooks as F, compileNext as W, resolveNext as L, isRouteArray as V, compileCache as z, checkCache as J, storeCache as K, buildCacheContext as Q } from "@walkeros/core";
3043
- import { assign as be, getId as we, isFunction as ke, isString as Ce } from "@walkeros/core";
3044
- import { isObject as Oe } from "@walkeros/core";
3045
- import { createIngest as Se, getGrantedConsent as $e, processEventMapping as De, tryCatchAsync as _e, useHooks as Ie } from "@walkeros/core";
3046
- import { useHooks as Ee, tryCatchAsync as Me } from "@walkeros/core";
3047
- import { useHooks as Re } from "@walkeros/core";
3042
+ import { createIngest as N, isObject as U, tryCatchAsync as B, useHooks as F, compileNext as W, resolveNext as z, isRouteArray as L, compileCache as V, checkCache as J, storeCache as K, buildCacheContext as Q } from "@walkeros/core";
3043
+ import { assign as ke, getId as we, isFunction as Ce, isString as Oe } from "@walkeros/core";
3044
+ import { isObject as je } from "@walkeros/core";
3045
+ import { createIngest as $e, getGrantedConsent as De, processEventMapping as _e, tryCatchAsync as Ie, useHooks as Pe } from "@walkeros/core";
3046
+ import { useHooks as Me, tryCatchAsync as Re } from "@walkeros/core";
3047
+ import { useHooks as He } from "@walkeros/core";
3048
3048
  function X(e, n) {
3049
3049
  return e.storeId && n.stores[e.storeId] ? n.stores[e.storeId] : n.stores.__cache;
3050
3050
  }
@@ -3052,7 +3052,7 @@ function Y(e) {
3052
3052
  const n = {};
3053
3053
  for (const [t, o2] of Object.entries(e)) {
3054
3054
  const e2 = o2.config?.next;
3055
- e2 && !V(e2) ? n[t] = { next: e2 } : n[t] = {};
3055
+ e2 && !L(e2) ? n[t] = { next: e2 } : n[t] = {};
3056
3056
  }
3057
3057
  return n;
3058
3058
  }
@@ -3099,7 +3099,7 @@ async function oe(e, n, t, o2, s, r2, i2) {
3099
3099
  }
3100
3100
  if (s && s._meta && s._meta.path.length > 256) return e.logger.error(`Max path length exceeded at ${o3}`), { event: null, respond: c2 };
3101
3101
  s && s._meta && (s._meta.hops++, s._meta.path.push(o3));
3102
- if (!await U(ne)(e, r3, o3)) return e.logger.error(`Transformer init failed: ${o3}`), { event: null, respond: c2 };
3102
+ if (!await B(ne)(e, r3, o3)) return e.logger.error(`Transformer init failed: ${o3}`), { event: null, respond: c2 };
3103
3103
  if (i2 && void 0 !== r3.config?.chainMocks?.[i2]) {
3104
3104
  const n2 = r3.config.chainMocks[i2];
3105
3105
  e.logger.scope(`transformer:${r3.type || "unknown"}`).debug("chainMock", { chain: i2 }), a2 = n2;
@@ -3110,7 +3110,7 @@ async function oe(e, n, t, o2, s, r2, i2) {
3110
3110
  continue;
3111
3111
  }
3112
3112
  if (r3.config?.disabled) continue;
3113
- const u2 = r3.config?.cache, f2 = u2 ? z(u2) : void 0, l2 = f2 ? X(f2, e) : void 0;
3113
+ const u2 = r3.config?.cache, f2 = u2 ? V(u2) : void 0, l2 = f2 ? X(f2, e) : void 0;
3114
3114
  let d2;
3115
3115
  if (f2 && l2) {
3116
3116
  const e2 = Q(s, a2), n2 = J(f2, l2, e2, `t:${o3}`);
@@ -3122,23 +3122,23 @@ async function oe(e, n, t, o2, s, r2, i2) {
3122
3122
  }
3123
3123
  const g2 = r3.config.before;
3124
3124
  if (g2) {
3125
- const t2 = ee("string" == typeof g2 || Array.isArray(g2) && !V(g2) ? g2 : L(W(g2), Q(s, a2)) || void 0, Y(n));
3125
+ const t2 = ee("string" == typeof g2 || Array.isArray(g2) && !L(g2) ? g2 : z(W(g2), Q(s, a2)) || void 0, Y(n));
3126
3126
  if (t2.length > 0) {
3127
3127
  const o4 = await oe(e, n, t2, a2, s, c2, i2);
3128
3128
  if (null === o4.event) return { event: null, respond: o4.respond ?? c2 };
3129
3129
  o4.respond && (c2 = o4.respond), a2 = Array.isArray(o4.event) ? o4.event[0] : o4.event;
3130
3130
  }
3131
3131
  }
3132
- const p2 = await U(te, (n2) => (e.logger.scope(`transformer:${r3.type || "unknown"}`).error("Push failed", { error: n2 }), false))(e, r3, o3, a2, s, c2);
3133
- if (false === p2) return { event: null, respond: c2 };
3134
- if (Array.isArray(p2)) {
3135
- const r4 = t.slice(t.indexOf(o3) + 1), u3 = await Promise.all(p2.map(async (t2) => {
3132
+ const m2 = await B(te, (n2) => (e.logger.scope(`transformer:${r3.type || "unknown"}`).error("Push failed", { error: n2 }), false))(e, r3, o3, a2, s, c2);
3133
+ if (false === m2) return { event: null, respond: c2 };
3134
+ if (Array.isArray(m2)) {
3135
+ const r4 = t.slice(t.indexOf(o3) + 1), u3 = await Promise.all(m2.map(async (t2) => {
3136
3136
  const o4 = t2.event || a2, u4 = s ? { ...s, _meta: { ...s._meta, path: [...s._meta.path] } } : N("unknown");
3137
3137
  if (t2.next) {
3138
3138
  let s2 = t2.next;
3139
- if (V(t2.next)) {
3139
+ if (L(t2.next)) {
3140
3140
  const e2 = W(t2.next);
3141
- s2 = L(e2, Q(u4, o4));
3141
+ s2 = z(e2, Q(u4, o4));
3142
3142
  }
3143
3143
  if (s2) {
3144
3144
  const t3 = ee(s2, Y(n));
@@ -3157,13 +3157,13 @@ async function oe(e, n, t, o2, s, r2, i2) {
3157
3157
  } else l3.push(e2);
3158
3158
  return 0 === l3.length ? { event: null, respond: f3 } : 1 === l3.length ? { event: l3[0], respond: f3 } : { event: l3, respond: f3 };
3159
3159
  }
3160
- if (p2 && "object" == typeof p2) {
3161
- const { event: t2, respond: o4, next: r4 } = p2;
3160
+ if (m2 && "object" == typeof m2) {
3161
+ const { event: t2, respond: o4, next: r4 } = m2;
3162
3162
  if (o4 && (c2 = o4), r4) {
3163
3163
  let o5 = r4;
3164
- if (V(r4)) {
3164
+ if (L(r4)) {
3165
3165
  const e2 = W(r4);
3166
- if (o5 = L(e2, Q(s, a2)), !o5) {
3166
+ if (o5 = z(e2, Q(s, a2)), !o5) {
3167
3167
  t2 && (a2 = t2);
3168
3168
  continue;
3169
3169
  }
@@ -3173,8 +3173,8 @@ async function oe(e, n, t, o2, s, r2, i2) {
3173
3173
  }
3174
3174
  t2 && (a2 = t2);
3175
3175
  }
3176
- if (d2 && l2 && K(l2, d2.key, a2, d2.ttl), (!p2 || "object" == typeof p2 && !p2.next) && r3.config.next && V(r3.config.next)) {
3177
- const t2 = r3.config.next, o4 = W(t2), u3 = L(o4, Q(s, a2));
3176
+ if (d2 && l2 && K(l2, d2.key, a2, d2.ttl), (!m2 || "object" == typeof m2 && !m2.next) && r3.config.next && L(r3.config.next)) {
3177
+ const t2 = r3.config.next, o4 = W(t2), u3 = z(o4, Q(s, a2));
3178
3178
  if (u3) {
3179
3179
  const t3 = ee(u3, Y(n));
3180
3180
  if (t3.length > 0) return oe(e, n, t3, a2, s, c2, i2);
@@ -3185,17 +3185,17 @@ async function oe(e, n, t, o2, s, r2, i2) {
3185
3185
  return { event: a2, respond: c2 };
3186
3186
  }
3187
3187
  function se(e) {
3188
- return e && B(e) ? e : {};
3188
+ return e && U(e) ? e : {};
3189
3189
  }
3190
- function Ge(e) {
3190
+ function Ne(e) {
3191
3191
  if (null === e || "object" != typeof e) return e;
3192
- if (Array.isArray(e)) return e.map(Ge);
3192
+ if (Array.isArray(e)) return e.map(Ne);
3193
3193
  const n = {};
3194
- for (const [t, o2] of Object.entries(e)) n[t] = "function" == typeof o2 ? o2 : Ge(o2);
3194
+ for (const [t, o2] of Object.entries(e)) n[t] = "function" == typeof o2 ? o2 : Ne(o2);
3195
3195
  return n;
3196
3196
  }
3197
- function Ne(e) {
3198
- const n = [], { simulation: t, ...o2 } = e, s = Ge(o2);
3197
+ function Ue(e) {
3198
+ const n = [], { simulation: t, ...o2 } = e, s = Ne(o2);
3199
3199
  for (const e2 of t) {
3200
3200
  const t2 = e2.startsWith("call:") ? e2.slice(5) : e2, o3 = t2.split(".");
3201
3201
  let r2 = s;
@@ -3373,6 +3373,7 @@ function applyOverrides(config, overrides) {
3373
3373
  }
3374
3374
  }
3375
3375
  }
3376
+ config.run = true;
3376
3377
  if (overrides.transformerMocks) {
3377
3378
  const transformers = config.transformers;
3378
3379
  if (transformers) {
@@ -4326,7 +4327,7 @@ async function simulateDestination(configOrPath, event, options) {
4326
4327
  ...devEnv.push,
4327
4328
  simulation: devEnv.simulation
4328
4329
  };
4329
- const { wrappedEnv, calls } = Ne(combined);
4330
+ const { wrappedEnv, calls } = Ue(combined);
4330
4331
  if (destConfig) destConfig.env = wrappedEnv;
4331
4332
  trackedCalls = calls;
4332
4333
  }