@walkeros/cli 4.3.2 → 4.3.3-next-1785149620480

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,5 +1,16 @@
1
1
  # @walkeros/cli
2
2
 
3
+ ## 4.3.3-next-1785149620480
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [6c89afb]
8
+ - @walkeros/core@4.3.3-next-1785149620480
9
+ - @walkeros/collector@4.3.3-next-1785149620480
10
+ - @walkeros/server-core@4.3.3-next-1785149620480
11
+ - @walkeros/server-destination-api@4.3.3-next-1785149620480
12
+ - @walkeros/transformer-validate@4.3.3-next-1785149620480
13
+
3
14
  ## 4.3.2
4
15
 
5
16
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -168,7 +168,7 @@ function w(e4, t4) {
168
168
  async function k(e4, t4) {
169
169
  return await e4.get(t4);
170
170
  }
171
- function I(e4) {
171
+ function O(e4) {
172
172
  return { _meta: { hops: 0, path: [e4] } };
173
173
  }
174
174
  function M(e4) {
@@ -304,7 +304,7 @@ function Q(e4, t4, n5, r6, o4, s4) {
304
304
  let n6 = r6[e5];
305
305
  return t5 && (n6 = X(n6, t5, `$contract.${e5}`)), n6;
306
306
  }
307
- const c2 = e4.match(K);
307
+ const c2 = e4.match(q);
308
308
  if (c2) {
309
309
  const t5 = c2[1], r7 = c2[2], s5 = false === n5?.strictFlowRefs;
310
310
  o4 || M(`$flow.${t5}${r7 ? `.${r7}` : ""} cannot be resolved without a flow resolver`);
@@ -324,7 +324,7 @@ function Q(e4, t4, n5, r6, o4, s4) {
324
324
  } else a5 = X(a5, r7, `$flow.${t5}`);
325
325
  return a5;
326
326
  }
327
- const u2 = e4.match(q);
327
+ const u2 = e4.match(W);
328
328
  if (u2) {
329
329
  const e5 = u2[1];
330
330
  if (n5?.deferred) return `${G}${e5}`;
@@ -556,7 +556,7 @@ function je(e4, t4 = {}, n5 = {}) {
556
556
  r6[t5] && (o4[t5] = true, e4 && e4[t5] && (s4 = true));
557
557
  }), !!s4 && o4;
558
558
  }
559
- function Ee(e4 = 6, t4 = "0123456789abcdefghijklmnopqrstuvwxyz") {
559
+ function Ie(e4 = 6, t4 = "0123456789abcdefghijklmnopqrstuvwxyz") {
560
560
  const n5 = t4.length;
561
561
  if (e4 <= 0 || 0 === n5) return "";
562
562
  let r6 = "";
@@ -564,14 +564,14 @@ function Ee(e4 = 6, t4 = "0123456789abcdefghijklmnopqrstuvwxyz") {
564
564
  const o4 = 256 - 256 % n5;
565
565
  for (; r6.length < e4; ) {
566
566
  const s4 = e4 - r6.length, i5 = new Uint8Array(Math.ceil(1.3 * s4) + 4);
567
- if (!Oe(i5)) break;
567
+ if (!Ee(i5)) break;
568
568
  for (let s5 = 0; s5 < i5.length && r6.length < e4; s5++) i5[s5] < o4 && (r6 += t4[i5[s5] % n5]);
569
569
  }
570
570
  }
571
571
  for (; r6.length < e4; ) r6 += t4[Math.random() * n5 | 0];
572
572
  return r6;
573
573
  }
574
- function Oe(e4) {
574
+ function Ee(e4) {
575
575
  try {
576
576
  const t4 = globalThis.crypto;
577
577
  if (t4 && "function" == typeof t4.getRandomValues) return t4.getRandomValues(e4), true;
@@ -580,8 +580,8 @@ function Oe(e4) {
580
580
  return false;
581
581
  }
582
582
  function _e(e4) {
583
- let t4 = Ee(e4, Ie);
584
- for (; /^0+$/.test(t4); ) t4 = Ee(e4, Ie);
583
+ let t4 = Ie(e4, Oe);
584
+ for (; /^0+$/.test(t4); ) t4 = Ie(e4, Oe);
585
585
  return t4;
586
586
  }
587
587
  function Ne() {
@@ -629,12 +629,12 @@ function Ue(e4, t4 = 1e3, n5 = false) {
629
629
  l3 = [], d2(), i5 = void 0, e5.forEach((e6) => e6(void 0));
630
630
  }, g3.size = () => p3, g3;
631
631
  }
632
- function Ke(e4) {
632
+ function qe(e4) {
633
633
  return { message: e4.message, name: e4.name, stack: e4.stack, cause: e4.cause };
634
634
  }
635
- function We(e4, t4) {
635
+ function Ke(e4, t4) {
636
636
  let n5, r6 = {};
637
- return e4 instanceof Error ? (n5 = e4.message, r6.error = Ke(e4)) : n5 = e4, void 0 !== t4 && (t4 instanceof Error ? r6.error = Ke(t4) : "object" == typeof t4 && null !== t4 ? (r6 = { ...r6, ...t4 }, "error" in r6 && r6.error instanceof Error && (r6.error = Ke(r6.error))) : r6.value = t4), { message: n5, context: r6 };
637
+ return e4 instanceof Error ? (n5 = e4.message, r6.error = qe(e4)) : n5 = e4, void 0 !== t4 && (t4 instanceof Error ? r6.error = qe(t4) : "object" == typeof t4 && null !== t4 ? (r6 = { ...r6, ...t4 }, "error" in r6 && r6.error instanceof Error && (r6.error = qe(r6.error))) : r6.value = t4), { message: n5, context: r6 };
638
638
  }
639
639
  function Be(e4 = {}) {
640
640
  return Ze({ level: void 0 !== e4.level ? (function(e5) {
@@ -644,13 +644,13 @@ function Be(e4 = {}) {
644
644
  function Ze(e4) {
645
645
  const { level: t4, handler: n5, jsonHandler: r6, scope: o4 } = e4, s4 = (e5, r7, s5) => {
646
646
  if (e5 <= t4) {
647
- const t5 = We(r7, s5);
648
- n5 ? n5(e5, t5.message, t5.context, o4, qe) : qe(e5, t5.message, t5.context, o4);
647
+ const t5 = Ke(r7, s5);
648
+ n5 ? n5(e5, t5.message, t5.context, o4, We) : We(e5, t5.message, t5.context, o4);
649
649
  }
650
650
  };
651
651
  return { error: (e5, t5) => s4(0, e5, t5), warn: (e5, t5) => s4(1, e5, t5), info: (e5, t5) => s4(2, e5, t5), debug: (e5, t5) => s4(3, e5, t5), throw: (e5, t5) => {
652
- const r7 = We(e5, t5);
653
- throw n5 ? n5(0, r7.message, r7.context, o4, qe) : qe(0, r7.message, r7.context, o4), new Error(r7.message);
652
+ const r7 = Ke(e5, t5);
653
+ throw n5 ? n5(0, r7.message, r7.context, o4, We) : We(0, r7.message, r7.context, o4), new Error(r7.message);
654
654
  }, json: (e5) => {
655
655
  r6 ? r6(e5) : console.log(JSON.stringify(e5, null, 2));
656
656
  }, scope: (e5) => Ze({ level: t4, handler: n5, jsonHandler: r6, scope: [...o4, e5] }) };
@@ -893,14 +893,14 @@ function St(e4) {
893
893
  const u2 = kt(o4);
894
894
  return u2 && 64 === u2.byteLength ? { grant: c2, kid: i5, signed: $t(`${n5}.${r6}`), signature: u2 } : null;
895
895
  }
896
- async function It(e4, t4) {
896
+ async function Ot(e4, t4) {
897
897
  const n5 = St(e4);
898
898
  if (!n5) return { ok: false, reason: "malformed" };
899
899
  const { grant: r6, kid: o4, signed: s4, signature: i5 } = n5;
900
900
  if (r6.iss !== t4.iss) return { ok: false, reason: "foreign-issuer" };
901
901
  if ("activate" !== r6.cap) return { ok: false, reason: "cap-mismatch" };
902
902
  if (1e3 * r6.iat > t4.now + 6e4) return { ok: false, reason: "expired" };
903
- if (1e3 * r6.sxp - 1e3 * r6.iat > Ot) return { ok: false, reason: "expired" };
903
+ if (1e3 * r6.sxp - 1e3 * r6.iat > Et) return { ok: false, reason: "expired" };
904
904
  const a4 = "url" === t4.source ? Math.min(1e3 * r6.iat + xt, 1e3 * r6.sxp) : 1e3 * r6.sxp;
905
905
  if (t4.now >= a4) return { ok: false, reason: "expired" };
906
906
  if (void 0 !== t4.origin && !r6.aud.includes(t4.origin)) return { ok: false, reason: "aud-mismatch" };
@@ -1164,7 +1164,7 @@ function Ln(e4, t4, n5 = Date.now) {
1164
1164
  const r6 = { [Fn]: e4 };
1165
1165
  return void 0 !== t4 && (r6[Un] = n5() + t4), r6;
1166
1166
  }
1167
- function Kn(e4, t4 = Date.now) {
1167
+ function qn(e4, t4 = Date.now) {
1168
1168
  if (void 0 === e4) return;
1169
1169
  if (null === (n5 = e4) || "object" != typeof n5 || Array.isArray(n5) || !(Fn in e4)) return { value: e4 };
1170
1170
  var n5;
@@ -1189,7 +1189,7 @@ async function er(e4, t4, n5, r6) {
1189
1189
  if (!o4) return null;
1190
1190
  const s4 = o4.key.map((e5) => String(ve(n5, e5) ?? ""));
1191
1191
  if (s4.every((e5) => "" === e5)) return null;
1192
- const i5 = s4.join(":"), a4 = r6 ?? e4.namespace, c2 = a4 ? `${a4}:${i5}` : i5, u2 = Kn(await t4.get(c2));
1192
+ const i5 = s4.join(":"), a4 = r6 ?? e4.namespace, c2 = a4 ? `${a4}:${i5}` : i5, u2 = qn(await t4.get(c2));
1193
1193
  if (void 0 === u2) return { status: "MISS", key: c2, rule: o4 };
1194
1194
  if ("expired" in u2) {
1195
1195
  try {
@@ -1254,7 +1254,7 @@ function ur(e4, t4) {
1254
1254
  function fr(e4, t4) {
1255
1255
  return "Transformer" === t4 && (void 0 === e4.code && void 0 === e4.package && void 0 === e4.import && (void 0 !== e4.before || void 0 !== e4.next || void 0 !== e4.cache || void 0 !== e4.state || void 0 !== e4.mapping));
1256
1256
  }
1257
- var e, t, r, i, f, l, m, v, b, T, D, F, U, L, K, q, J, G, re, we, Ie, Pe, qe, Xe, wt, xt, Ot, Nt, tn, kn, An, Sn, Rn, Fn, Un, sr, ir, ar, cr;
1257
+ var e, t, r, i, f, l, m, v, b, T, D, F, U, L, q, W, J, G, re, we, Oe, Pe, We, Xe, wt, xt, Et, Nt, tn, kn, An, Sn, Rn, Fn, Un, sr, ir, ar, cr;
1258
1258
  var init_dist = __esm({
1259
1259
  "../core/dist/index.mjs"() {
1260
1260
  "use strict";
@@ -1280,15 +1280,15 @@ var init_dist = __esm({
1280
1280
  F = /\$var\.([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)/g;
1281
1281
  U = /\$env\.([a-zA-Z_][a-zA-Z0-9_]*)(?::([^"}\s]*))?/g;
1282
1282
  L = /^\$contract\.([a-zA-Z_][a-zA-Z0-9_]*)(?:\.(.+))?$/;
1283
- K = /^\$flow\.([a-zA-Z_][a-zA-Z0-9_]*)(?:\.([a-zA-Z0-9_.]+))?$/;
1284
- q = /^\$secret\.([A-Z0-9_]+)$/;
1283
+ q = /^\$flow\.([a-zA-Z_][a-zA-Z0-9_]*)(?:\.([a-zA-Z0-9_.]+))?$/;
1284
+ W = /^\$secret\.([A-Z0-9_]+)$/;
1285
1285
  J = "__WALKEROS_ENV:";
1286
1286
  G = "__WALKEROS_SECRET:";
1287
1287
  re = { merge: true, shallow: true, extend: true };
1288
1288
  we = { data: (e4) => e4.data, globals: (e4) => e4.globals, context: (e4) => e4.context, user: (e4) => e4.user, source: (e4) => e4.source, event: (e4) => ({ entity: e4.entity, action: e4.action, id: e4.id, timestamp: e4.timestamp, name: e4.name, trigger: e4.trigger, timing: e4.timing }) };
1289
- Ie = "0123456789abcdef";
1289
+ Oe = "0123456789abcdef";
1290
1290
  Pe = /^(?<version>[0-9a-f]{2})-(?<trace>[0-9a-f]{32})-(?<span>[0-9a-f]{16})-[0-9a-f]{2}$/;
1291
- qe = (e4, t4, n5, r6) => {
1291
+ We = (e4, t4, n5, r6) => {
1292
1292
  const o4 = `${l[e4]}${r6.length > 0 ? ` [${r6.join(":")}]` : ""}`, s4 = Object.keys(n5).length > 0, i5 = 0 === e4 ? console.error : 1 === e4 ? console.warn : console.log;
1293
1293
  s4 ? i5(o4, t4, n5) : i5(o4, t4);
1294
1294
  };
@@ -1299,7 +1299,7 @@ var init_dist = __esm({
1299
1299
  };
1300
1300
  wt = /^[A-Za-z0-9_-]+$/;
1301
1301
  xt = 9e5;
1302
- Ot = 39e5;
1302
+ Et = 39e5;
1303
1303
  Nt = "elbObserve";
1304
1304
  tn = null;
1305
1305
  kn = "observe";
@@ -2400,19 +2400,19 @@ function zn2(e4, t4, i5) {
2400
2400
  }
2401
2401
  function Ln2(e4) {
2402
2402
  const t4 = n3.toJSONSchema(e4, { target: "draft-7" });
2403
- return qn(t4), t4;
2403
+ return qn2(t4), t4;
2404
2404
  }
2405
- function qn(e4) {
2405
+ function qn2(e4) {
2406
2406
  const t4 = e4.properties;
2407
2407
  if (t4 && "object" == typeof t4) {
2408
2408
  Array.isArray(e4.required) && (e4.required = e4.required.filter((e5) => {
2409
2409
  const i5 = t4[e5];
2410
2410
  return !(i5 && "object" == typeof i5 && "default" in i5);
2411
2411
  }));
2412
- for (const [e5, i5] of Object.entries(t4)) i5 && "object" == typeof i5 && ("object" === i5.type && i5.properties && "string" != typeof i5.title && (i5.title = e5), qn(i5));
2412
+ for (const [e5, i5] of Object.entries(t4)) i5 && "object" == typeof i5 && ("object" === i5.type && i5.properties && "string" != typeof i5.title && (i5.title = e5), qn2(i5));
2413
2413
  }
2414
2414
  }
2415
- var e3, t3, i3, r4, a3, s2, c, l2, d, p, u, m2, f2, g2, b2, h, v2, S, y2, w2, k2, C2, x, j, P2, D2, E, O, I2, R3, $, A, z3, L2, q2, N2, W, B2, U3, _2, H2, V, Z2, G2, K3, Q2, X3, Y3, ee3, te3, ie3, ne3, oe2, re3, ae3, se2, ce, le2, de2, pe2, ue2, me2, fe, ge2, be2, he2, ve2, Se, ye2, we2, ke2, Ce2, xe, je2, Pe2, De, Ee2, Oe2, Ie2, Re3, Je3, Me, Te, Fe3, $e2, Ae, ze2, Le2, qe2, Ne3, We3, Be3, Ue3, _e2, He2, Ve3, Ze3, Ge3, Ke3, Qe3, Xe3, Ye3, et3, tt3, it2, nt3, ot2, rt2, at2, st2, ct2, lt3, dt2, pt3, ut2, mt2, ft2, gt3, bt3, ht3, vt3, St3, yt2, wt3, kt3, Ct2, xt3, jt3, Pt, Dt2, Et2, Ot3, It3, Rt2, Jt2, Mt2, Tt2, Ft, $t3, At3, zt, Lt2, qt2, Nt3, Wt2, Bt, Ut, _t2, Ht2, Vt2, Zt, Gt2, Kt, Qt, Xt, Yt2, ei, ti, ii, ni, oi, ri, ai, si, ci, li, di, pi, ui, mi, fi, gi, bi, hi, vi, Si, yi, wi, ki, Ci, xi, ji, Di, Ei, Oi, Ii, Ri, Ji, Mi, Ti, Fi, $i, Ai, zi, Li, Ui, _i, Hi, Vi, Zi, Gi, Ki, Qi, Xi, Yi, tn2, nn2, on2, rn3, an, sn2, cn, dn, bn3, hn2, vn3, Sn2, yn3, wn3, kn3, Cn3, Wn;
2415
+ var e3, t3, i3, r4, a3, s2, c, l2, d, p, u, m2, f2, g2, b2, h, v2, S, y2, w2, k2, C2, x, j, P2, D2, E, O2, I, R3, $, A, z3, L2, q2, N2, W2, B2, U3, _2, H2, V, Z2, G2, K2, Q2, X3, Y3, ee3, te3, ie3, ne3, oe2, re3, ae3, se2, ce, le2, de2, pe2, ue2, me2, fe, ge2, be2, he2, ve2, Se, ye2, we2, ke2, Ce2, xe, je2, Pe2, De, Ee2, Oe2, Ie2, Re3, Je3, Me, Te, Fe3, $e2, Ae, ze2, Le2, qe2, Ne3, We3, Be3, Ue3, _e2, He2, Ve3, Ze3, Ge3, Ke3, Qe3, Xe3, Ye3, et3, tt3, it2, nt3, ot2, rt2, at2, st2, ct2, lt3, dt2, pt3, ut2, mt2, ft2, gt3, bt3, ht3, vt3, St3, yt2, wt3, kt3, Ct2, xt3, jt3, Pt, Dt2, Et3, Ot3, It2, Rt2, Jt2, Mt2, Tt2, Ft, $t3, At3, zt, Lt2, qt2, Nt3, Wt2, Bt, Ut, _t2, Ht2, Vt2, Zt, Gt2, Kt, Qt, Xt, Yt2, ei, ti, ii, ni, oi, ri, ai, si, ci, li, di, pi, ui, mi, fi, gi, bi, hi, vi, Si, yi, wi, ki, Ci, xi, ji, Di, Ei, Oi, Ii, Ri, Ji, Mi, Ti, Fi, $i, Ai, zi, Li, Ui, _i, Hi, Vi, Zi, Gi, Ki, Qi, Xi, Yi, tn2, nn2, on2, rn3, an, sn2, cn, dn, bn3, hn2, vn3, Sn2, yn3, wn3, kn3, Cn3, Wn;
2416
2416
  var init_dev = __esm({
2417
2417
  "../core/dist/dev.mjs"() {
2418
2418
  "use strict";
@@ -2421,7 +2421,7 @@ var init_dev = __esm({
2421
2421
  for (var n5 in i5) e3(t4, n5, { get: i5[n5], enumerable: true });
2422
2422
  };
2423
2423
  i3 = {};
2424
- t3(i3, { BaseContextConfig: () => A, CacheRuleSchema: () => Ye3, CacheSchema: () => et3, CacheSchemas: () => Ze3, ClickIdEntrySchema: () => rn3, CodeSchema: () => tn2, CollectorSchemas: () => Ot3, ConsentSchema: () => Z2, ContractActionsSchema: () => Ji, ContractRuleSchema: () => Ti, ContractSchema: () => Fi, ContractSchemaEntry: () => Ri, Counter: () => d, CredentialsSchema: () => sn2, DeepPartialEventSchema: () => ie3, DestinationSchemas: () => Me, DestinationsMapConfig: () => q2, EntitiesSchema: () => Y3, EntitySchema: () => X3, EventCacheRuleSchema: () => Ge3, EventCacheSchema: () => Ke3, EventSchema: () => ee3, FlowBundlePackageSchema: () => vi, FlowBundleSchema: () => Si, FlowCodeSchema: () => yi, FlowConfigSchema: () => Ai, FlowDestinationSchema: () => Oi, FlowJsonSchema: () => Li, FlowSchema: () => zi, FlowSchemas: () => fi, FlowSourceSchema: () => Di, FlowStoreSchema: () => Ii, FlowTransformerSchema: () => Ei, GenericEnvConfig: () => R3, GenericSettingsConfig: () => I2, HandlersConfig: () => x, HintSchema: () => nn2, HintsSchema: () => on2, IdConfig: () => D2, Identifier: () => c, InitConfig: () => E, LoggerConfigSchema: () => nt3, LoggerHandlerSchema: () => it2, LoopSchema: () => fe, MapSchema: () => be2, MappingResultSchema: () => Ce2, MappingSchemas: () => pe2, MatchExpressionSchema: () => Ae, MatcherSchemas: () => Te, OptionalPrimitiveValue: () => u, OrderedPropertiesSchema: () => H2, PartialEventSchema: () => te3, PolicySchema: () => ve2, PrimaryConfig: () => O, PrimitiveValue: () => p, ProcessingControlConfig: () => z3, PropertiesSchema: () => _2, PropertySchema: () => U3, PropertyTypeSchema: () => B2, QueueConfig: () => P2, RequiredBoolean: () => s2, RequiredNumber: () => a3, RequiredString: () => r4, RouteSchema: () => Be3, RouteWithoutManySchema: () => Ve3, RuleSchema: () => ye2, RulesSchema: () => we2, RuntimeInstanceConfig: () => $, ServiceAccountSchema: () => an, SetSchema: () => ge2, SourceSchema: () => Q2, SourceSchemas: () => Ut, SourceTypeSchema: () => V, SourcesMapConfig: () => L2, StateSchema: () => tt3, StoreCacheRuleSchema: () => Qe3, StoreCacheSchema: () => Xe3, StoreSchemas: () => li, Timestamp: () => l2, TransformerSchemas: () => oi, UserSchema: () => G2, UtilitySchemas: () => m2, ValidateEventsSchema: () => ji, ValueConfigSchema: () => he2, ValueSchema: () => ue2, ValuesSchema: () => me2, VerboseConfig: () => j, WalkerOSSchemas: () => N2, configJsonSchema: () => Ui, consentJsonSchema: () => de2, contractJsonSchema: () => Xi, contractRuleJsonSchema: () => Qi, createArraySchema: () => $n, createConsentConfig: () => F3, createDataTransformationConfig: () => J3, createEnumSchema: () => An2, createMappingRulesConfig: () => M2, createObjectSchema: () => Tn2, createPolicyConfig: () => T3, createTupleSchema: () => zn2, credentialsJsonSchema: () => cn, destinationJsonSchema: () => Zi, entityJsonSchema: () => ce, eventJsonSchema: () => ne3, flowConfigJsonSchema: () => Hi, flowJsonSchema: () => _i, loopJsonSchema: () => Pe2, mapJsonSchema: () => Ee2, orderedPropertiesJsonSchema: () => se2, parseConfig: () => qi, parseFlow: () => Wi, partialEventJsonSchema: () => oe2, policyJsonSchema: () => Oe2, propertiesJsonSchema: () => ae3, ruleJsonSchema: () => Ie2, rulesJsonSchema: () => Re3, safeParseConfig: () => Ni, safeParseFlow: () => Bi, setJsonSchema: () => De, sourceJsonSchema: () => Vi, sourceTypeJsonSchema: () => le2, storeJsonSchema: () => Ki, transformerJsonSchema: () => Gi, userJsonSchema: () => re3, validateEventsJsonSchema: () => Yi, validateFlowConfig: () => gn, valueConfigJsonSchema: () => je2, valueJsonSchema: () => xe, z: () => n3, zodToSchema: () => Ln2 });
2424
+ t3(i3, { BaseContextConfig: () => A, CacheRuleSchema: () => Ye3, CacheSchema: () => et3, CacheSchemas: () => Ze3, ClickIdEntrySchema: () => rn3, CodeSchema: () => tn2, CollectorSchemas: () => Ot3, ConsentSchema: () => Z2, ContractActionsSchema: () => Ji, ContractRuleSchema: () => Ti, ContractSchema: () => Fi, ContractSchemaEntry: () => Ri, Counter: () => d, CredentialsSchema: () => sn2, DeepPartialEventSchema: () => ie3, DestinationSchemas: () => Me, DestinationsMapConfig: () => q2, EntitiesSchema: () => Y3, EntitySchema: () => X3, EventCacheRuleSchema: () => Ge3, EventCacheSchema: () => Ke3, EventSchema: () => ee3, FlowBundlePackageSchema: () => vi, FlowBundleSchema: () => Si, FlowCodeSchema: () => yi, FlowConfigSchema: () => Ai, FlowDestinationSchema: () => Oi, FlowJsonSchema: () => Li, FlowSchema: () => zi, FlowSchemas: () => fi, FlowSourceSchema: () => Di, FlowStoreSchema: () => Ii, FlowTransformerSchema: () => Ei, GenericEnvConfig: () => R3, GenericSettingsConfig: () => I, HandlersConfig: () => x, HintSchema: () => nn2, HintsSchema: () => on2, IdConfig: () => D2, Identifier: () => c, InitConfig: () => E, LoggerConfigSchema: () => nt3, LoggerHandlerSchema: () => it2, LoopSchema: () => fe, MapSchema: () => be2, MappingResultSchema: () => Ce2, MappingSchemas: () => pe2, MatchExpressionSchema: () => Ae, MatcherSchemas: () => Te, OptionalPrimitiveValue: () => u, OrderedPropertiesSchema: () => H2, PartialEventSchema: () => te3, PolicySchema: () => ve2, PrimaryConfig: () => O2, PrimitiveValue: () => p, ProcessingControlConfig: () => z3, PropertiesSchema: () => _2, PropertySchema: () => U3, PropertyTypeSchema: () => B2, QueueConfig: () => P2, RequiredBoolean: () => s2, RequiredNumber: () => a3, RequiredString: () => r4, RouteSchema: () => Be3, RouteWithoutManySchema: () => Ve3, RuleSchema: () => ye2, RulesSchema: () => we2, RuntimeInstanceConfig: () => $, ServiceAccountSchema: () => an, SetSchema: () => ge2, SourceSchema: () => Q2, SourceSchemas: () => Ut, SourceTypeSchema: () => V, SourcesMapConfig: () => L2, StateSchema: () => tt3, StoreCacheRuleSchema: () => Qe3, StoreCacheSchema: () => Xe3, StoreSchemas: () => li, Timestamp: () => l2, TransformerSchemas: () => oi, UserSchema: () => G2, UtilitySchemas: () => m2, ValidateEventsSchema: () => ji, ValueConfigSchema: () => he2, ValueSchema: () => ue2, ValuesSchema: () => me2, VerboseConfig: () => j, WalkerOSSchemas: () => N2, configJsonSchema: () => Ui, consentJsonSchema: () => de2, contractJsonSchema: () => Xi, contractRuleJsonSchema: () => Qi, createArraySchema: () => $n, createConsentConfig: () => F3, createDataTransformationConfig: () => J3, createEnumSchema: () => An2, createMappingRulesConfig: () => M2, createObjectSchema: () => Tn2, createPolicyConfig: () => T3, createTupleSchema: () => zn2, credentialsJsonSchema: () => cn, destinationJsonSchema: () => Zi, entityJsonSchema: () => ce, eventJsonSchema: () => ne3, flowConfigJsonSchema: () => Hi, flowJsonSchema: () => _i, loopJsonSchema: () => Pe2, mapJsonSchema: () => Ee2, orderedPropertiesJsonSchema: () => se2, parseConfig: () => qi, parseFlow: () => Wi, partialEventJsonSchema: () => oe2, policyJsonSchema: () => Oe2, propertiesJsonSchema: () => ae3, ruleJsonSchema: () => Ie2, rulesJsonSchema: () => Re3, safeParseConfig: () => Ni, safeParseFlow: () => Bi, setJsonSchema: () => De, sourceJsonSchema: () => Vi, sourceTypeJsonSchema: () => le2, storeJsonSchema: () => Ki, transformerJsonSchema: () => Gi, userJsonSchema: () => re3, validateEventsJsonSchema: () => Yi, validateFlowConfig: () => gn, valueConfigJsonSchema: () => je2, valueJsonSchema: () => xe, z: () => n3, zodToSchema: () => Ln2 });
2425
2425
  r4 = n3.string();
2426
2426
  a3 = n3.number();
2427
2427
  s2 = n3.boolean();
@@ -2447,8 +2447,8 @@ var init_dev = __esm({
2447
2447
  P2 = n3.object({ queue: n3.boolean().describe("Whether to queue events when consent is not granted").optional() }).partial();
2448
2448
  D2 = n3.object({}).partial();
2449
2449
  E = n3.object({ init: n3.boolean().describe("Whether to initialize immediately").optional(), loadScript: n3.boolean().describe("Whether to load external script (for web destinations)").optional() }).partial();
2450
- O = n3.object({ primary: n3.boolean().describe("Mark as primary (only one can be primary)").optional() }).partial();
2451
- I2 = n3.object({ settings: n3.any().optional().describe("Implementation-specific configuration") }).partial();
2450
+ O2 = n3.object({ primary: n3.boolean().describe("Mark as primary (only one can be primary)").optional() }).partial();
2451
+ I = n3.object({ settings: n3.any().optional().describe("Implementation-specific configuration") }).partial();
2452
2452
  R3 = n3.object({ env: n3.any().optional().describe("Environment dependencies (platform-specific)") }).partial();
2453
2453
  $ = n3.object({ type: n3.string().optional().describe("Instance type identifier"), config: n3.unknown().describe("Instance configuration") }).partial();
2454
2454
  A = n3.object({ collector: n3.unknown().describe("Collector instance (runtime object)"), config: n3.unknown().describe("Configuration"), env: n3.unknown().describe("Environment dependencies") }).partial();
@@ -2456,7 +2456,7 @@ var init_dev = __esm({
2456
2456
  L2 = n3.object({ sources: n3.record(n3.string(), n3.unknown()).describe("Map of source instances") }).partial();
2457
2457
  q2 = n3.object({ destinations: n3.record(n3.string(), n3.unknown()).describe("Map of destination instances") }).partial();
2458
2458
  N2 = {};
2459
- t3(N2, { ConsentSchema: () => Z2, DeepPartialEventSchema: () => ie3, EntitiesSchema: () => Y3, EntitySchema: () => X3, EventSchema: () => ee3, OrderedPropertiesSchema: () => H2, PartialEventSchema: () => te3, PropertiesSchema: () => _2, PropertySchema: () => U3, PropertyTypeSchema: () => B2, SourceFieldsSchema: () => K3, SourceSchema: () => Q2, SourceTypeSchema: () => V, UserSchema: () => G2, consentJsonSchema: () => de2, entityJsonSchema: () => ce, eventJsonSchema: () => ne3, orderedPropertiesJsonSchema: () => se2, partialEventJsonSchema: () => oe2, propertiesJsonSchema: () => ae3, sourceTypeJsonSchema: () => le2, userJsonSchema: () => re3 });
2459
+ t3(N2, { ConsentSchema: () => Z2, DeepPartialEventSchema: () => ie3, EntitiesSchema: () => Y3, EntitySchema: () => X3, EventSchema: () => ee3, OrderedPropertiesSchema: () => H2, PartialEventSchema: () => te3, PropertiesSchema: () => _2, PropertySchema: () => U3, PropertyTypeSchema: () => B2, SourceFieldsSchema: () => K2, SourceSchema: () => Q2, SourceTypeSchema: () => V, UserSchema: () => G2, consentJsonSchema: () => de2, entityJsonSchema: () => ce, eventJsonSchema: () => ne3, orderedPropertiesJsonSchema: () => se2, partialEventJsonSchema: () => oe2, propertiesJsonSchema: () => ae3, sourceTypeJsonSchema: () => le2, userJsonSchema: () => re3 });
2460
2460
  B2 = n3.lazy(() => n3.union([n3.boolean(), n3.string(), n3.number(), n3.record(n3.string(), U3)])).meta({ id: "WalkerOSPropertyType", title: "WalkerOS.PropertyType", description: "Base property value types (boolean, string, number, or nested Property record)." });
2461
2461
  U3 = n3.lazy(() => n3.union([B2, n3.array(B2)])).meta({ id: "WalkerOSProperty", title: "WalkerOS.Property", description: "PropertyType or an array of PropertyType. Recursive structure for nested objects and arrays." });
2462
2462
  _2 = n3.record(n3.string(), U3.optional()).meta({ id: "WalkerOSProperties", title: "WalkerOS.Properties", description: "Flexible property collection with optional values." }).describe("Flexible property collection with optional values");
@@ -2464,8 +2464,8 @@ var init_dev = __esm({
2464
2464
  V = n3.union([n3.enum(["web", "server", "app", "other"]), n3.string()]).meta({ id: "WalkerOSSourceType", title: "WalkerOS.SourceType", description: "Source type identifier. Standard: web, server, app, other. Extensible to custom strings." }).describe("Source type: web, server, app, other, or custom");
2465
2465
  Z2 = n3.record(n3.string(), n3.boolean()).meta({ id: "WalkerOSConsent", title: "WalkerOS.Consent", description: "Consent state mapping. Keys are consent groups (e.g. marketing, functional), values are booleans for granted/denied." }).describe("Consent requirement mapping (group name to state)");
2466
2466
  G2 = _2.and(n3.object({ id: n3.string().optional().describe("User identifier"), device: n3.string().optional().describe("Device identifier"), session: n3.string().optional().describe("Session identifier"), hash: n3.string().optional().describe("Hashed identifier"), address: n3.string().optional().describe("User address"), email: n3.string().email().optional().describe("User email address"), phone: n3.string().optional().describe("User phone number"), userAgent: n3.string().optional().describe("Browser user agent string"), browser: n3.string().optional().describe("Browser name"), browserVersion: n3.string().optional().describe("Browser version"), deviceType: n3.string().optional().describe("Device type (mobile, desktop, tablet)"), os: n3.string().optional().describe("Operating system"), osVersion: n3.string().optional().describe("Operating system version"), screenSize: n3.string().optional().describe("Screen dimensions"), language: n3.string().optional().describe("User language"), country: n3.string().optional().describe("User country"), region: n3.string().optional().describe("User region/state"), city: n3.string().optional().describe("User city"), zip: n3.string().optional().describe("User postal code"), timezone: n3.string().optional().describe("User timezone"), ip: n3.string().optional().describe("User IP address"), internal: n3.boolean().optional().describe("Internal user flag (employee, test user)") })).meta({ id: "WalkerOSUser", title: "WalkerOS.User", description: "User identification and attributes." }).describe("User identification and properties");
2467
- K3 = n3.object({ type: n3.string().describe("Source kind (browser, dataLayer, gtag, ...)"), platform: n3.string().optional().describe("Runtime platform (web, server, app, ios, android, terminal, ...)"), version: n3.string().optional().describe("Deployment version of the source emitter"), schema: n3.string().optional().describe('Event model spec version (collector defaults to "4")'), count: n3.number().int().nonnegative().optional().describe("Emission sequence per run"), trace: n3.string().optional().describe("Trace id shared by every event of a run (W3C trace-id shape)"), release: n3.record(n3.string(), n3.string()).optional().describe("Per-flow config release map, keyed by flow name; accumulates across walkerOS crossings"), url: n3.string().optional(), referrer: n3.string().optional(), tool: n3.string().optional(), command: n3.string().optional() });
2468
- Q2 = _2.and(K3).meta({ id: "WalkerOSSource", title: "WalkerOS.Source", description: "Event source information (origin of the event)." }).describe("Event source information");
2467
+ K2 = n3.object({ type: n3.string().describe("Source kind (browser, dataLayer, gtag, ...)"), platform: n3.string().optional().describe("Runtime platform (web, server, app, ios, android, terminal, ...)"), version: n3.string().optional().describe("Deployment version of the source emitter"), schema: n3.string().optional().describe('Event model spec version (collector defaults to "4")'), count: n3.number().int().nonnegative().optional().describe("Emission sequence per run"), trace: n3.string().optional().describe("Trace id shared by every event of a run (W3C trace-id shape)"), release: n3.record(n3.string(), n3.string()).optional().describe("Per-flow config release map, keyed by flow name; accumulates across walkerOS crossings"), url: n3.string().optional(), referrer: n3.string().optional(), tool: n3.string().optional(), command: n3.string().optional() });
2468
+ Q2 = _2.and(K2).meta({ id: "WalkerOSSource", title: "WalkerOS.Source", description: "Event source information (origin of the event)." }).describe("Event source information");
2469
2469
  X3 = n3.lazy(() => n3.object({ entity: n3.string().describe("Entity name"), data: _2.describe("Entity-specific properties"), nested: n3.array(X3).optional().describe("Nested child entities"), context: H2.optional().describe("Entity context data") })).meta({ id: "WalkerOSEntity", title: "WalkerOS.Entity", description: "Nested entity structure with recursive nesting support." }).describe("Nested entity structure with recursive nesting support");
2470
2470
  Y3 = n3.array(X3).meta({ id: "WalkerOSEntities", title: "WalkerOS.Entities", description: "Array of nested entities." }).describe("Array of nested entities");
2471
2471
  ee3 = n3.object({ name: n3.string().describe('Event name in "entity action" format (e.g., "page view", "product add")'), data: _2.describe("Event-specific properties"), context: H2.describe("Ordered context properties with priorities"), globals: _2.describe("Global properties shared across events"), custom: _2.describe("Custom implementation-specific properties"), user: G2.describe("User identification and attributes"), nested: Y3.describe("Related nested entities"), consent: Z2.describe("Consent states at event time"), id: c.describe("W3C span_id, 16 lowercase hex characters"), trigger: r4.describe("Event trigger identifier"), entity: r4.describe("Parsed entity from event name"), action: r4.describe("Parsed action from event name"), timestamp: l2.describe("Unix timestamp in milliseconds since epoch"), timing: a3.describe("Event processing timing information"), source: Q2.describe("Event source information") }).meta({ id: "WalkerOSEvent", title: "WalkerOS.Event", description: "Complete walkerOS event structure." }).describe("Complete walkerOS event structure");
@@ -2481,12 +2481,12 @@ var init_dev = __esm({
2481
2481
  de2 = o2(Z2);
2482
2482
  pe2 = {};
2483
2483
  t3(pe2, { ConfigSchema: () => ke2, LoopSchema: () => fe, MapSchema: () => be2, PolicySchema: () => ve2, ResultSchema: () => Ce2, RulePatchSchema: () => Se, RuleSchema: () => ye2, RulesSchema: () => we2, SetSchema: () => ge2, ValueConfigSchema: () => he2, ValueSchema: () => ue2, ValuesSchema: () => me2, configJsonSchema: () => Je3, loopJsonSchema: () => Pe2, mapJsonSchema: () => Ee2, policyJsonSchema: () => Oe2, ruleJsonSchema: () => Ie2, rulesJsonSchema: () => Re3, setJsonSchema: () => De, valueConfigJsonSchema: () => je2, valueJsonSchema: () => xe });
2484
- ue2 = n3.lazy(() => n3.union([n3.string().describe('String value or property path (e.g., "data.id")'), n3.number().describe("Numeric value"), n3.boolean().describe("Boolean value"), n3.lazy(() => W), n3.array(ue2).describe("Array of values")])).meta({ id: "MappingValue", title: "Mapping.Value", description: "Polymorphic transform primitive used in every mapping field. A string path, constant, operator object (map/loop/set/condition/consent), or array of values." });
2484
+ ue2 = n3.lazy(() => n3.union([n3.string().describe('String value or property path (e.g., "data.id")'), n3.number().describe("Numeric value"), n3.boolean().describe("Boolean value"), n3.lazy(() => W2), n3.array(ue2).describe("Array of values")])).meta({ id: "MappingValue", title: "Mapping.Value", description: "Polymorphic transform primitive used in every mapping field. A string path, constant, operator object (map/loop/set/condition/consent), or array of values." });
2485
2485
  me2 = n3.array(ue2).meta({ id: "MappingValues", title: "Mapping.Values", description: "Array of transformation values." }).describe("Array of transformation values");
2486
2486
  fe = n3.lazy(() => n3.tuple([ue2, ue2]).describe("Loop transformation: [source, transform] tuple for array processing")).meta({ id: "MappingLoop", title: "Mapping.Loop", description: "Loop tuple [source, transform] for iterating and transforming arrays." });
2487
2487
  ge2 = n3.lazy(() => n3.array(ue2).describe("Set: Array of values for selection or combination")).meta({ id: "MappingSet", title: "Mapping.Set", description: "Set: array of values for selection or combination." });
2488
2488
  be2 = n3.lazy(() => n3.record(n3.string(), ue2).describe("Map: Object mapping keys to transformation values")).meta({ id: "MappingMap", title: "Mapping.Map", description: "Map: object mapping keys to transformation values." });
2489
- he2 = W = n3.object({ key: n3.string().optional().describe('Property path to extract from event (e.g., "data.id", "user.email")'), value: n3.union([n3.string(), n3.number(), n3.boolean()]).optional().describe("Static primitive value"), fn: n3.string().optional().describe("Custom transformation function as string (serialized)"), map: be2.optional().describe("Object mapping: transform event data to structured output"), loop: fe.optional().describe("Loop transformation: [source, transform] for array processing"), set: ge2.optional().describe("Set of values: combine or select from multiple values"), consent: Z2.optional().describe("Required consent states to include this value"), condition: n3.string().optional().describe("Condition function as string: return true to include value"), validate: n3.string().optional().describe("Validation function as string: return true if value is valid") }).refine((e4) => Object.keys(e4).length > 0, { message: "ValueConfig must have at least one property" }).meta({ id: "MappingValueConfig", title: "Mapping.ValueConfig", description: "Object-form value transformation with map/loop/set/condition/consent etc." }).describe("Value transformation configuration with multiple strategies");
2489
+ he2 = W2 = n3.object({ key: n3.string().optional().describe('Property path to extract from event (e.g., "data.id", "user.email")'), value: n3.union([n3.string(), n3.number(), n3.boolean()]).optional().describe("Static primitive value"), fn: n3.string().optional().describe("Custom transformation function as string (serialized)"), map: be2.optional().describe("Object mapping: transform event data to structured output"), loop: fe.optional().describe("Loop transformation: [source, transform] for array processing"), set: ge2.optional().describe("Set of values: combine or select from multiple values"), consent: Z2.optional().describe("Required consent states to include this value"), condition: n3.string().optional().describe("Condition function as string: return true to include value"), validate: n3.string().optional().describe("Validation function as string: return true if value is valid") }).refine((e4) => Object.keys(e4).length > 0, { message: "ValueConfig must have at least one property" }).meta({ id: "MappingValueConfig", title: "Mapping.ValueConfig", description: "Object-form value transformation with map/loop/set/condition/consent etc." }).describe("Value transformation configuration with multiple strategies");
2490
2490
  ve2 = n3.record(n3.string(), ue2).meta({ id: "MappingPolicy", title: "Mapping.Policy", description: "Policy rules for event pre-processing (key \u2192 value transformation)." }).describe("Policy rules for event pre-processing (key \u2192 value mapping)");
2491
2491
  Se = n3.object({ name: n3.string().nullable().optional(), data: n3.union([ue2, me2]).nullable().optional(), settings: n3.unknown().nullable().optional(), condition: n3.string().nullable().optional(), consent: Z2.nullable().optional(), policy: ve2.nullable().optional(), batch: n3.union([n3.number(), n3.object({ wait: n3.number().optional(), size: n3.number().optional(), age: n3.number().optional() })]).nullable().optional(), include: n3.array(n3.string()).nullable().optional(), ignore: n3.boolean().nullable().optional(), silent: n3.boolean().nullable().optional() }).meta({ id: "MappingRulePatch", title: "Mapping.RulePatch", description: "Partial rule deep-merged onto a package-shipped default; a null value clears the inherited field." }).describe("Partial rule for `extend`; null clears an inherited field");
2492
2492
  ye2 = n3.object({ name: n3.string().optional().describe('Custom event name override (e.g., "view_item" for "product view")'), data: n3.union([ue2, me2]).optional().describe("Data transformation rules for event"), settings: n3.unknown().optional().describe("Destination-specific settings for this event mapping"), condition: n3.string().optional().describe("Condition function as string: return true to process event"), consent: Z2.optional().describe("Required consent states to process this event"), policy: ve2.optional().describe("Event-level policy overrides (applied after config-level policy)"), batch: n3.union([n3.number(), n3.object({ wait: n3.number().optional(), size: n3.number().optional(), age: n3.number().optional() })]).optional().describe("Batch scheduling: bare number is the debounce wait window (legacy); object form supports wait/size/age."), include: n3.array(n3.string()).optional().describe('Event sections (e.g. ["context", "globals"]) flattened into context.data'), ignore: n3.boolean().optional().describe("Skip the event entirely. No push, no side effects. Use for suppression."), silent: n3.boolean().optional().describe("Run side effects (settings.identify, ...) but suppress the destination default push call."), extend: Se.optional().describe("Merge mode: a partial rule deep-merged onto the package-shipped default at this key (instead of replacing it). A null value clears an inherited field."), remove: n3.array(n3.string()).optional().describe("Dotted paths stripped from the produced data payload after evaluation (applied last).") }).meta({ id: "MappingRule", title: "Mapping.Rule", description: "Configuration for transforming a single event at one stage of the flow (source or destination)." }).describe("Mapping rule for specific entity-action combination");
@@ -2503,7 +2503,7 @@ var init_dev = __esm({
2503
2503
  Re3 = o2(we2);
2504
2504
  Je3 = o2(ke2);
2505
2505
  Me = {};
2506
- t3(Me, { BatchSchema: () => ut2, ConfigSchema: () => ot2, ContextSchema: () => st2, DLQSchema: () => wt3, DataSchema: () => mt2, DestinationPolicySchema: () => at2, DestinationsSchema: () => ht3, InitDestinationsSchema: () => bt3, InitSchema: () => gt3, InstanceSchema: () => ft2, PartialConfigSchema: () => rt2, PushBatchContextSchema: () => lt3, PushContextSchema: () => ct2, PushEventSchema: () => dt2, PushEventsSchema: () => pt3, PushResultSchema: () => St3, RefSchema: () => vt3, ResultSchema: () => yt2, batchJsonSchema: () => Pt, configJsonSchema: () => kt3, contextJsonSchema: () => xt3, instanceJsonSchema: () => Dt2, partialConfigJsonSchema: () => Ct2, pushContextJsonSchema: () => jt3, resultJsonSchema: () => Et2 });
2506
+ t3(Me, { BatchSchema: () => ut2, ConfigSchema: () => ot2, ContextSchema: () => st2, DLQSchema: () => wt3, DataSchema: () => mt2, DestinationPolicySchema: () => at2, DestinationsSchema: () => ht3, InitDestinationsSchema: () => bt3, InitSchema: () => gt3, InstanceSchema: () => ft2, PartialConfigSchema: () => rt2, PushBatchContextSchema: () => lt3, PushContextSchema: () => ct2, PushEventSchema: () => dt2, PushEventsSchema: () => pt3, PushResultSchema: () => St3, RefSchema: () => vt3, ResultSchema: () => yt2, batchJsonSchema: () => Pt, configJsonSchema: () => kt3, contextJsonSchema: () => xt3, instanceJsonSchema: () => Dt2, partialConfigJsonSchema: () => Ct2, pushContextJsonSchema: () => jt3, resultJsonSchema: () => Et3 });
2507
2507
  Te = {};
2508
2508
  t3(Te, { MatchExpressionSchema: () => Ae, RouteSchema: () => Be3, RouteWithoutManySchema: () => Ve3 });
2509
2509
  Fe3 = n3.enum(["eq", "contains", "prefix", "suffix", "regex", "gt", "lt", "exists"]).meta({ id: "MatcherOperator", title: "Matcher.Operator", description: "Supported operators for a match condition." });
@@ -2568,10 +2568,10 @@ var init_dev = __esm({
2568
2568
  jt3 = o2(ct2);
2569
2569
  Pt = o2(ut2);
2570
2570
  Dt2 = o2(ft2);
2571
- Et2 = o2(yt2);
2571
+ Et3 = o2(yt2);
2572
2572
  Ot3 = {};
2573
- t3(Ot3, { CommandTypeSchema: () => It3, ConfigSchema: () => Rt2, DestinationsSchema: () => $t3, InitConfigSchema: () => Mt2, InstanceSchema: () => At3, PushContextSchema: () => Tt2, SessionDataSchema: () => Jt2, SourcesSchema: () => Ft, commandTypeJsonSchema: () => zt, configJsonSchema: () => Lt2, initConfigJsonSchema: () => Nt3, instanceJsonSchema: () => Bt, pushContextJsonSchema: () => Wt2, sessionDataJsonSchema: () => qt2 });
2574
- It3 = n3.union([n3.enum(["action", "config", "consent", "context", "destination", "elb", "globals", "hook", "init", "link", "run", "user", "walker"]), n3.string()]).meta({ id: "CollectorCommandType", title: "Collector.CommandType", description: "Collector command type identifier (standard or extension string)." }).describe("Collector command type: standard commands or custom string for extensions");
2573
+ t3(Ot3, { CommandTypeSchema: () => It2, ConfigSchema: () => Rt2, DestinationsSchema: () => $t3, InitConfigSchema: () => Mt2, InstanceSchema: () => At3, PushContextSchema: () => Tt2, SessionDataSchema: () => Jt2, SourcesSchema: () => Ft, commandTypeJsonSchema: () => zt, configJsonSchema: () => Lt2, initConfigJsonSchema: () => Nt3, instanceJsonSchema: () => Bt, pushContextJsonSchema: () => Wt2, sessionDataJsonSchema: () => qt2 });
2574
+ It2 = n3.union([n3.enum(["action", "config", "consent", "context", "destination", "elb", "globals", "hook", "init", "link", "run", "user", "walker"]), n3.string()]).meta({ id: "CollectorCommandType", title: "Collector.CommandType", description: "Collector command type identifier (standard or extension string)." }).describe("Collector command type: standard commands or custom string for extensions");
2575
2575
  Rt2 = n3.object({ run: n3.boolean().describe("Whether to run collector automatically on initialization").optional(), globalsStatic: _2.describe("Static global properties that persist across collector runs"), sessionStatic: n3.record(n3.string(), n3.unknown()).meta({ id: "CollectorSessionStatic", title: "Collector.SessionStatic", description: "Static session data that persists across collector runs." }).describe("Static session data that persists across collector runs"), logger: nt3.optional().describe("Logger configuration (level, handler)"), queueMax: n3.number().optional().describe("Maximum events retained in collector.queue (late-registration replay). FIFO drop on overflow. Default 1000."), name: n3.string().optional().describe("Flow name; keys this flow's entry in event.source.release and the observer flowId."), release: n3.string().optional().describe("Config release id stamped into event.source.release for this flow.") }).meta({ id: "CollectorConfig", title: "Collector.Config", description: "Core collector configuration (globals/session statics, logger, buffer bounds)." }).describe("Core collector configuration");
2576
2576
  Jt2 = _2.and(n3.object({ isStart: n3.boolean().describe("Whether this is a new session start"), storage: n3.boolean().describe("Whether storage is available"), id: c.describe("Session identifier").optional(), start: l2.describe("Session start timestamp").optional(), marketing: n3.literal(true).optional().describe("Marketing attribution flag"), updated: l2.describe("Last update timestamp").optional(), isNew: n3.boolean().describe("Whether this is a new session").optional(), device: c.describe("Device identifier").optional(), count: d.describe("Event count in session").optional(), runs: d.describe("Number of runs").optional() })).meta({ id: "CollectorSessionData", title: "Collector.SessionData", description: "Session state and tracking data." }).describe("Session state and tracking data");
2577
2577
  Mt2 = Rt2.partial().extend({ consent: Z2.optional().describe("Initial consent state"), user: G2.optional().describe("Initial user data"), globals: _2.optional().describe("Initial global properties"), sources: n3.unknown().meta({ id: "CollectorInitSources", title: "Source.InitSources", description: "Source configurations map (id \u2192 InitSource)." }).optional().describe("Source configurations"), destinations: n3.unknown().meta({ id: "CollectorInitDestinations", title: "Destination.InitDestinations", description: "Destination configurations map (id \u2192 Init)." }).optional().describe("Destination configurations"), transformers: n3.unknown().meta({ id: "CollectorInitTransformers", title: "Transformer.Configs", description: "Transformer configurations map (id \u2192 Config)." }).optional().describe("Transformer configurations"), stores: n3.unknown().meta({ id: "CollectorInitStores", title: "Store.Configs", description: "Store configurations map (id \u2192 Config)." }).optional().describe("Store configurations"), custom: _2.optional().describe("Initial custom implementation-specific properties"), hooks: n3.unknown().meta({ id: "CollectorHooks", title: "Collector.Hooks", description: "Pipeline observation hooks." }).optional().describe("Pipeline observation hooks"), observe: n3.union([n3.object({ url: n3.string().describe("Observer base URL"), binding: n3.string().describe("Public project binding the web credential must match") }), n3.object({ url: n3.string().describe("Observer base URL"), sessionId: n3.string().describe("Session id the runtime posts under"), token: n3.string().describe("Ingest bearer token"), level: n3.enum(["off", "standard", "trace"]).optional().describe("Telemetry level"), sample: n3.number().optional().describe("Deterministic sample fraction in [0, 1]") })]).meta({ id: "CollectorObserve", title: "Observe", description: "Observation session connect config: web arm (url + binding) or server arm (url + sessionId + token)." }).optional().describe("Observation session connect config"), observers: n3.unknown().meta({ id: "CollectorObservers", title: "Collector.Observers", description: "Caller-supplied advisory observer functions (runtime objects)." }).optional().describe("Caller-supplied advisory observer functions") }).meta({ id: "CollectorInitConfig", title: "Collector.InitConfig", description: "Collector initialization configuration with initial state (consent, user, globals, components, hooks)." }).describe("Collector initialization configuration with initial state");
@@ -2579,7 +2579,7 @@ var init_dev = __esm({
2579
2579
  Ft = n3.record(n3.string(), n3.unknown()).meta({ id: "CollectorSources", title: "Collector.Sources", description: "Map of source IDs to runtime source instances." }).describe("Map of source IDs to source instances");
2580
2580
  $t3 = n3.record(n3.string(), n3.unknown()).meta({ id: "CollectorDestinations", title: "Collector.Destinations", description: "Map of destination IDs to runtime destination instances." }).describe("Map of destination IDs to destination instances");
2581
2581
  At3 = n3.object({ push: n3.unknown().describe("Push function for processing events"), command: n3.unknown().describe("Command function for walker commands"), allowed: n3.boolean().describe("Whether event processing is allowed"), config: Rt2.describe("Current collector configuration"), consent: Z2.describe("Current consent state"), custom: _2.describe("Custom implementation-specific properties"), sources: Ft.describe("Registered source instances"), destinations: $t3.describe("Registered destination instances"), globals: _2.describe("Current global properties"), hooks: n3.unknown().describe("Lifecycle hook functions"), on: n3.unknown().describe("Event lifecycle configuration"), queue: n3.array(ee3).describe("Queued events awaiting processing"), round: n3.number().describe("Collector run count (increments with each run)"), session: n3.union([Jt2]).describe("Current session state"), timing: n3.number().describe("Event processing timing information"), user: G2.describe("Current user data") }).meta({ id: "CollectorInstance", title: "Collector.Instance", description: "Collector instance (runtime object with push/command + full state and component maps)." }).describe("Collector instance with state and methods");
2582
- zt = o2(It3);
2582
+ zt = o2(It2);
2583
2583
  Lt2 = o2(Rt2);
2584
2584
  qt2 = o2(Jt2);
2585
2585
  Nt3 = o2(Mt2);
@@ -6696,7 +6696,7 @@ function U2(e4, t4, n5) {
6696
6696
  for (const [o5, s4] of Object.entries(e4)) r6[o5] = "function" == typeof s4 ? s4 : U2(s4, t4, n5 + 1);
6697
6697
  return r6;
6698
6698
  }
6699
- function K2(e4) {
6699
+ function K(e4) {
6700
6700
  const t4 = [], n5 = [], { simulation: o4, ...r6 } = e4, s4 = U2(r6, /* @__PURE__ */ new WeakMap(), 0);
6701
6701
  for (const e5 of o4) {
6702
6702
  const o5 = jn(e5);
@@ -6867,7 +6867,7 @@ function Fe2(e4, t4 = {}) {
6867
6867
  }
6868
6868
  async function Re2(e4, t4, n5) {
6869
6869
  if (t4.init && !t4.config.init) {
6870
- const o4 = t4.type || "unknown", r6 = e4.logger.scope(`transformer:${o4}`), s4 = { collector: e4, logger: r6, id: n5, ingest: I(n5), config: t4.config, env: Le(t4.config.env), reportError: ie2(e4, "transformer", n5, r6) };
6870
+ const o4 = t4.type || "unknown", r6 = e4.logger.scope(`transformer:${o4}`), s4 = { collector: e4, logger: r6, id: n5, ingest: O(n5), config: t4.config, env: Le(t4.config.env), reportError: ie2(e4, "transformer", n5, r6) };
6871
6871
  r6.debug("init");
6872
6872
  const a4 = await gt(t4.init, "TransformerInit", e4.hooks, e4.logger)(s4);
6873
6873
  if (false === a4) return false;
@@ -6889,10 +6889,10 @@ async function He(e4, t4, n5, o4, r6, s4) {
6889
6889
  }
6890
6890
  }
6891
6891
  function Ge2(e4, t4) {
6892
- return e4 ? { ...e4, _meta: { ...e4._meta, path: [...e4._meta.path] } } : I(t4);
6892
+ return e4 ? { ...e4, _meta: { ...e4._meta, path: [...e4._meta.path] } } : O(t4);
6893
6893
  }
6894
6894
  async function We2(e4, t4, n5, o4, r6, s4, a4) {
6895
- r6 || (r6 = I(n5[0] ?? "chain")), a4 && r6._meta && (r6._meta.chainPath = a4);
6895
+ r6 || (r6 = O(n5[0] ?? "chain")), a4 && r6._meta && (r6._meta.chainPath = a4);
6896
6896
  let i5 = o4, c2 = s4;
6897
6897
  for (const o5 of n5) {
6898
6898
  const s5 = t4[o5];
@@ -7062,7 +7062,7 @@ async function Xe2(e4, t4, n5) {
7062
7062
  for (const n7 of d3) "many" === f4.kind ? (await Promise.all(f4.branches.map((a6, i6) => Ye(async () => y3 ? v3(n7) : v3(n7, { ...o5, id: t4, ingest: Ge2(s5.ingest, `${t4}.${i6}`), respond: void 0, mapping: r6, preChain: a6 }), (t5) => (e4.logger.scope("source:many").error(`many branch ${i6} failed`, { error: t5 }), { ok: true }))())), h3 = { ok: true }) : h3 = y3 ? await v3(n7) : await v3(n7, { ...o5, id: t4, ingest: s5.ingest, respond: s5.respond, mapping: r6, preChain: f4.preChain });
7063
7063
  return a5 && await a5, h3;
7064
7064
  }, b3 = async (n6) => {
7065
- const o5 = I(t4), s5 = Re((function(e5) {
7065
+ const o5 = O(t4), s5 = Re((function(e5) {
7066
7066
  if (!Je2(e5)) return;
7067
7067
  const t5 = e5.headers;
7068
7068
  if (Je2(t5)) {
@@ -7076,19 +7076,19 @@ async function Xe2(e4, t4, n5) {
7076
7076
  if (s5 && (o5._meta.trace = s5.trace, o5._meta.parentEventId = s5.parentSpan), !r6.ingest || void 0 === n6) return o5;
7077
7077
  const a5 = await et(n6, r6.ingest, { collector: e4 });
7078
7078
  return { ...o5, ...a5, _meta: o5._meta };
7079
- }, k3 = e4.logger.scope("source").scope(t4), I3 = { command: e4.command, sources: e4.sources, elb: e4.elb, logger: k3, ...s4, push: async (e5, n6 = {}) => {
7080
- const o5 = { ingest: I(t4), respond: void 0 };
7079
+ }, k3 = e4.logger.scope("source").scope(t4), I2 = { command: e4.command, sources: e4.sources, elb: e4.elb, logger: k3, ...s4, push: async (e5, n6 = {}) => {
7080
+ const o5 = { ingest: O(t4), respond: void 0 };
7081
7081
  return w3(e5, n6, o5);
7082
- } }, C3 = { collector: e4, logger: k3, id: t4, config: r6, env: I3, withScope: async (e5, t5, n6) => {
7082
+ } }, C3 = { collector: e4, logger: k3, id: t4, config: r6, env: I2, withScope: async (e5, t5, n6) => {
7083
7083
  const o5 = { ingest: await b3(e5), respond: t5 };
7084
- return n6({ ...I3, push: (e6, t6 = {}) => w3(e6, t6, o5), ingest: o5.ingest, respond: o5.respond });
7084
+ return n6({ ...I2, push: (e6, t6 = {}) => w3(e6, t6, o5), ingest: o5.ingest, respond: o5.respond });
7085
7085
  }, reportError: ie2(e4, "source", t4, k3) }, E2 = await Ye(o4, (n6) => {
7086
7086
  if (n6 instanceof Xe) throw n6;
7087
7087
  e4.status.failed++, e4.logger.scope("source").error("source factory failed", { sourceId: t4, error: n6 });
7088
7088
  })(C3);
7089
7089
  if (!E2) return;
7090
7090
  const S2 = E2.type || "unknown", q3 = e4.logger.scope(S2).scope(t4);
7091
- return I3.logger = q3, a4 && (E2.config = { ...E2.config, primary: a4 }), E2;
7091
+ return I2.logger = q3, a4 && (E2.config = { ...E2.config, primary: a4 }), E2;
7092
7092
  }
7093
7093
  async function Qe2(e4, t4 = {}) {
7094
7094
  const n5 = {};
@@ -7329,7 +7329,7 @@ async function bt2(e4, t4, n5, o4) {
7329
7329
  function kt2(e4) {
7330
7330
  return "number" == typeof e4 && e4 > 0 ? e4 : 1e4;
7331
7331
  }
7332
- var It2 = class extends Error {
7332
+ var It = class extends Error {
7333
7333
  constructor(e4) {
7334
7334
  super(e4), this.name = "DestinationTimeoutError";
7335
7335
  }
@@ -7337,15 +7337,15 @@ var It2 = class extends Error {
7337
7337
  function Ct(e4, t4, n5) {
7338
7338
  let o4;
7339
7339
  const r6 = new Promise((e5, r7) => {
7340
- o4 = setTimeout(() => r7(new It2(n5)), t4);
7340
+ o4 = setTimeout(() => r7(new It(n5)), t4);
7341
7341
  });
7342
7342
  return Promise.race([e4, r6]).finally(() => {
7343
7343
  o4 && clearTimeout(o4);
7344
7344
  });
7345
7345
  }
7346
- var Et = Object.freeze({ batched: true });
7346
+ var Et2 = Object.freeze({ batched: true });
7347
7347
  function St2(e4) {
7348
- return e4 === Et;
7348
+ return e4 === Et2;
7349
7349
  }
7350
7350
  function qt(e4) {
7351
7351
  return void 0 === e4 ? {} : "number" == typeof e4 ? { wait: e4 } : { wait: e4.wait, size: e4.size, age: e4.age };
@@ -7365,7 +7365,7 @@ async function Ot2(e4, t4) {
7365
7365
  a4 && (d2 = { ...d2, next: a4 }), i5 && (d2 = { ...d2, cache: i5 }), void 0 !== c2 && void 0 === d2.state && (d2 = { ...d2, state: c2 });
7366
7366
  let l3 = d2.id;
7367
7367
  if (!l3) do {
7368
- l3 = Ee(5, "abcdefghijklmnopqrstuvwxyz");
7368
+ l3 = Ie(5, "abcdefghijklmnopqrstuvwxyz");
7369
7369
  } while (e4.destinations[l3] || e4.pending.destinations[l3]);
7370
7370
  if (d2.require?.length) {
7371
7371
  e4.pending.destinations[l3] = t4, await Ze2(e4);
@@ -7401,7 +7401,7 @@ async function jt2(e4, t4, n5 = {}, o4) {
7401
7401
  })(e4.status.breakers, d3, y4.cooldown)) return { id: o5, destination: r7, skipped: true };
7402
7402
  const b4 = (t5) => {
7403
7403
  y4 && ne2(e4.status.breakers, d3, t5, y4.threshold, y4.cooldown);
7404
- }, I3 = () => {
7404
+ }, I2 = () => {
7405
7405
  y4 && (function(e5, t5) {
7406
7406
  const n6 = e5[t5];
7407
7407
  n6 && "half-open" === n6.state && true === n6.probing && (n6.state = "open", n6.probing = false);
@@ -7409,10 +7409,10 @@ async function jt2(e4, t4, n5 = {}, o4) {
7409
7409
  };
7410
7410
  let C3 = (r7.queuePush || []).map((e5) => ({ ...e5, consent: s4 }));
7411
7411
  r7.queuePush = [], t4 && C3.push(he(t4));
7412
- const E2 = n5.ingest ? { ...n5.ingest, _meta: { ...n5.ingest._meta, path: [...n5.ingest._meta.path] } } : I("unknown");
7413
- if (!C3.length && !r7.queueOn?.length) return I3(), { id: o5, destination: r7, skipped: true };
7412
+ const E2 = n5.ingest ? { ...n5.ingest, _meta: { ...n5.ingest._meta, path: [...n5.ingest._meta.path] } } : O("unknown");
7413
+ if (!C3.length && !r7.queueOn?.length) return I2(), { id: o5, destination: r7, skipped: true };
7414
7414
  if (!C3.length && r7.queueOn?.length) {
7415
- if (!je(r7.config.consent, s4)) return I3(), { id: o5, destination: r7, skipped: true };
7415
+ if (!je(r7.config.consent, s4)) return I2(), { id: o5, destination: r7, skipped: true };
7416
7416
  let t5 = false;
7417
7417
  try {
7418
7418
  t5 = await $t2(e4, r7, o5, true);
@@ -7421,7 +7421,7 @@ async function jt2(e4, t4, n5 = {}, o4) {
7421
7421
  const n6 = r7.type || "unknown";
7422
7422
  e4.logger.scope(n6).error("destination init failed", { error: t6 instanceof Error ? t6.message : String(t6) }), b4("transport-failure");
7423
7423
  }
7424
- return I3(), { id: o5, destination: r7, skipped: !t5 };
7424
+ return I2(), { id: o5, destination: r7, skipped: !t5 };
7425
7425
  }
7426
7426
  const S2 = [], q3 = C3.filter((t5) => {
7427
7427
  const n6 = je(r7.config.consent, s4, t5.consent);
@@ -7441,7 +7441,7 @@ async function jt2(e4, t4, n5 = {}, o4) {
7441
7441
  J2(t5, e4.logger.scope(r7.type || "unknown"), "destination.queuePush overflow; oldest events dropped", { buffer: "queuePush", destination: n6, cap: s5.max, droppedCount: o6 });
7442
7442
  } else t5.length < s5.max && X2(t5);
7443
7443
  }
7444
- if (!S2.length) return I3(), { id: o5, destination: r7, queue: C3 };
7444
+ if (!S2.length) return I2(), { id: o5, destination: r7, queue: C3 };
7445
7445
  let x2, $2, M3 = false;
7446
7446
  try {
7447
7447
  M3 = await $t2(e4, r7, o5, true);
@@ -7450,14 +7450,14 @@ async function jt2(e4, t4, n5 = {}, o4) {
7450
7450
  const n6 = r7.type || "unknown";
7451
7451
  e4.logger.scope(n6).error("destination init failed", { error: t5 instanceof Error ? t5.message : String(t5) }), b4("transport-failure");
7452
7452
  }
7453
- if (!M3) return I3(), { id: o5, destination: r7, queue: C3 };
7453
+ if (!M3) return I2(), { id: o5, destination: r7, queue: C3 };
7454
7454
  r7.dlq || (r7.dlq = []);
7455
- const P3 = xt2(r7.config.before, c2, E2), z5 = r7.config.next, U4 = r7.config?.cache, K4 = U4 ? Qn(U4) : void 0, B3 = K4 ? ze(K4, e4) : void 0, F4 = r7.config?.state ? rr(r7.config.state) : void 0, R4 = F4?.filter((e5) => "get" === e5.mode), H3 = F4?.filter((e5) => "set" === e5.mode);
7456
- let G3 = 0, W2 = 0;
7455
+ const P3 = xt2(r7.config.before, c2, E2), z5 = r7.config.next, U4 = r7.config?.cache, K3 = U4 ? Qn(U4) : void 0, B3 = K3 ? ze(K3, e4) : void 0, F4 = r7.config?.state ? rr(r7.config.state) : void 0, R4 = F4?.filter((e5) => "get" === e5.mode), H3 = F4?.filter((e5) => "set" === e5.mode);
7456
+ let G3 = 0, W3 = 0;
7457
7457
  return await Promise.all(S2.map(async (t5) => {
7458
7458
  let s5;
7459
- if (t5.globals = oe(a4, t5.globals), t5.user = oe(i5, t5.user), K4?.stop && B3) {
7460
- const e5 = Xn(E2, t5), n6 = await er(K4, B3, e5);
7459
+ if (t5.globals = oe(a4, t5.globals), t5.user = oe(i5, t5.user), K3?.stop && B3) {
7460
+ const e5 = Xn(E2, t5), n6 = await er(K3, B3, e5);
7461
7461
  if ("HIT" === n6?.status) return t5;
7462
7462
  "MISS" === n6?.status && (s5 = { key: n6.key, ttl: n6.rule.ttl });
7463
7463
  }
@@ -7467,8 +7467,8 @@ async function jt2(e4, t4, n5 = {}, o4) {
7467
7467
  if (null === r8.event) return t5;
7468
7468
  r8.respond && (d4 = r8.respond), u4 = Array.isArray(r8.event) ? r8.event[0] : r8.event;
7469
7469
  }
7470
- if (K4 && !K4.stop && B3) {
7471
- const e5 = Xn(E2, u4), n6 = await er(K4, B3, e5);
7470
+ if (K3 && !K3.stop && B3) {
7471
+ const e5 = Xn(E2, u4), n6 = await er(K3, B3, e5);
7472
7472
  if ("HIT" === n6?.status) return t5;
7473
7473
  "MISS" === n6?.status && (s5 = { key: n6.key, ttl: n6.rule.ttl });
7474
7474
  }
@@ -7485,7 +7485,7 @@ async function jt2(e4, t4, n5 = {}, o4) {
7485
7485
  J2(s6, e4.logger.scope(r7.type || "unknown"), "destination.dlq overflow; oldest entries dropped", { buffer: "dlq", destination: a5, cap: i6.max, droppedCount: t7 });
7486
7486
  } else s6.length < i6.max && X2(s6);
7487
7487
  })(e4, r7, o5, u4, E2, d4);
7488
- if (G3 += Date.now() - p3, s5 && B3 && void 0 === r7.config.mock && tr(B3, s5.key, v3 ?? true, s5.ttl), !g3 && !St2(v3) && H3 && H3.length > 0 && u4 && (u4 = await or(H3, (t6) => Ue2(t6, e4), u4, e4)), void 0 === v3 || St2(v3) || ($2 = v3), St2(v3) && W2++, !g3 && z5) {
7488
+ if (G3 += Date.now() - p3, s5 && B3 && void 0 === r7.config.mock && tr(B3, s5.key, v3 ?? true, s5.ttl), !g3 && !St2(v3) && H3 && H3.length > 0 && u4 && (u4 = await or(H3, (t6) => Ue2(t6, e4), u4, e4)), void 0 === v3 || St2(v3) || ($2 = v3), St2(v3) && W3++, !g3 && z5) {
7489
7489
  void 0 !== v3 && (E2._response = v3);
7490
7490
  const t6 = xt2(z5, c2, E2);
7491
7491
  if (t6.length > 0 && e4.transformers && Object.keys(e4.transformers).length > 0) {
@@ -7494,7 +7494,7 @@ async function jt2(e4, t4, n5 = {}, o4) {
7494
7494
  }
7495
7495
  }
7496
7496
  return t5;
7497
- })), { id: o5, destination: r7, error: x2, response: $2, totalDuration: G3, batchedCount: W2, allowedCount: S2.length, canonicalId: u3, breakerConfig: y4 };
7497
+ })), { id: o5, destination: r7, error: x2, response: $2, totalDuration: G3, batchedCount: W3, allowedCount: S2.length, canonicalId: u3, breakerConfig: y4 };
7498
7498
  })), d2 = {}, y3 = {}, b3 = {};
7499
7499
  for (const t5 of u2) {
7500
7500
  if (t5.skipped) continue;
@@ -7558,8 +7558,8 @@ async function At2(e4, t4, n5, o4, r6, s4) {
7558
7558
  u2.debug("push batch", { events: s6.entries.length });
7559
7559
  const m5 = t4.config.id || n5, h3 = se(e4, m5), v4 = te2(t4.config.breaker), y3 = o("destination", m5), b4 = (t5) => {
7560
7560
  v4 && ne2(e4.status.breakers, y3, t5, v4.threshold, v4.cooldown);
7561
- }, k4 = Date.now(), I3 = _(e4, { stepId: o("destination", n5), stepType: "destination", phase: "flush", eventId: "", now: k4, traceId: c5, sourceId: d5, parentEventId: l4 });
7562
- I3.batch = { size: s6.entries.length, index: 0 }, on(e4, I3);
7561
+ }, k4 = Date.now(), I2 = _(e4, { stepId: o("destination", n5), stepType: "destination", phase: "flush", eventId: "", now: k4, traceId: c5, sourceId: d5, parentEventId: l4 });
7562
+ I2.batch = { size: s6.entries.length, index: 0 }, on(e4, I2);
7563
7563
  const C3 = (n6) => {
7564
7564
  const o7 = t4.dlq = t4.dlq || [], r9 = { max: t4.config.dlqMax ?? re2 };
7565
7565
  let s7 = 0;
@@ -7602,12 +7602,12 @@ async function At2(e4, t4, n5, o4, r6, s4) {
7602
7602
  const v3 = _(e4, { stepId: o("destination", n5), stepType: "destination", phase: "out", eventId: d3, now: m3, traceId: g3.traceId, sourceId: g3.sourceId, parentEventId: g3.parentEventId });
7603
7603
  i5.mappingKey && (v3.mappingKey = i5.mappingKey), v3.outEvent = i5.event, v3.batch = { size: c3.batched.entries.length, index: c3.batched.entries.length - 1 }, on(e4, v3);
7604
7604
  const b3 = t4.config.id || n5, k3 = se(e4, b3);
7605
- return k3.inFlightBatch = (k3.inFlightBatch ?? 0) + 1, c3.batchFn(), Et;
7605
+ return k3.inFlightBatch = (k3.inFlightBatch ?? 0) + 1, c3.batchFn(), Et2;
7606
7606
  }
7607
7607
  {
7608
7608
  let s5;
7609
7609
  if (u2.debug("push", { event: i5.event.name }), "trace" === e4.observeLevel?.() && Array.isArray(t4.calls) && t4.calls.length > 0) {
7610
- const e5 = K2({ ...d2.env, simulation: t4.calls });
7610
+ const e5 = K({ ...d2.env, simulation: t4.calls });
7611
7611
  d2.env = e5.wrappedEnv, s5 = e5.calls, e5.unresolved.length > 0 && (e5.wrappedEnv[kn] = { paths: e5.unresolved, record: (t5, n6) => e5.calls.push({ fn: t5, args: n6, ts: Date.now() }) });
7612
7612
  }
7613
7613
  const c3 = "string" == typeof i5.event.id ? i5.event.id : "", { traceId: l4, sourceId: f4, parentEventId: p4 } = T2(o4, r6, e4), g3 = Date.now(), m3 = _(e4, { stepId: o("destination", n5), stepType: "destination", phase: "in", eventId: c3, now: g3, traceId: l4, sourceId: f4, parentEventId: p4 });
@@ -7751,10 +7751,10 @@ function Nt2(e4, t4, n5) {
7751
7751
  if (!t4.name) throw new Error("Event name is required");
7752
7752
  const [o4, r6] = t4.name.split(" ");
7753
7753
  if (!o4 || !r6) throw new Error("Event name is invalid");
7754
- const { timestamp: s4 = Date.now(), name: a4 = `${o4} ${r6}`, data: i5 = {}, context: c2 = {}, globals: u2 = e4.globals, custom: d2 = {}, user: l3 = e4.user, nested: f3 = [], consent: p3 = e4.consent, id: g3 = Ne(), trigger: m3 = "", entity: h2 = o4, action: v3 = r6, timing: y3 = 0, source: w3 = { type: "collector", schema: "4" } } = t4, b3 = w3.count ?? (e4.count += 1), k3 = w3.trace ?? n5?._meta.trace ?? e4.trace, I3 = { ...w3, count: b3 };
7755
- void 0 !== k3 && (I3.trace = k3);
7756
- const C3 = e4.name ?? w3.platform ?? "default", E2 = e4.release ?? "4.3.2";
7757
- return I3.release = { ...w3.release, [C3]: E2 }, { name: a4, data: i5, context: c2, globals: u2, custom: d2, user: l3, nested: f3, consent: p3, id: g3, trigger: m3, entity: h2, action: v3, timestamp: s4, timing: y3, source: I3 };
7754
+ const { timestamp: s4 = Date.now(), name: a4 = `${o4} ${r6}`, data: i5 = {}, context: c2 = {}, globals: u2 = e4.globals, custom: d2 = {}, user: l3 = e4.user, nested: f3 = [], consent: p3 = e4.consent, id: g3 = Ne(), trigger: m3 = "", entity: h2 = o4, action: v3 = r6, timing: y3 = 0, source: w3 = { type: "collector", schema: "4" } } = t4, b3 = w3.count ?? (e4.count += 1), k3 = w3.trace ?? n5?._meta.trace ?? e4.trace, I2 = { ...w3, count: b3 };
7755
+ void 0 !== k3 && (I2.trace = k3);
7756
+ const C3 = e4.name ?? w3.platform ?? "default", E2 = e4.release ?? "4.3.3-next-1785149620480";
7757
+ return I2.release = { ...w3.release, [C3]: E2 }, { name: a4, data: i5, context: c2, globals: u2, custom: d2, user: l3, nested: f3, consent: p3, id: g3, trigger: m3, entity: h2, action: v3, timestamp: s4, timing: y3, source: I2 };
7758
7758
  }
7759
7759
  function Yt(e4, t4, n5) {
7760
7760
  return Nt2(e4, Vt(e4, t4), n5);
@@ -7772,7 +7772,7 @@ function rn2(e4, t4) {
7772
7772
  const g3 = d2 || l3 ? (function(e5, t5, n7) {
7773
7773
  let o5 = e5;
7774
7774
  return t5 && (o5 = Object.fromEntries(Object.entries(o5).filter(([e6]) => t5.includes(e6)))), n7 && (o5 = Object.fromEntries(Object.entries(o5).filter(([e6]) => !n7.includes(e6)))), o5;
7775
- })(e4.destinations, d2, l3) : void 0, m3 = a4 ?? I(s4 || "unknown");
7775
+ })(e4.destinations, d2, l3) : void 0, m3 = a4 ?? O(s4 || "unknown");
7776
7776
  if (c2) {
7777
7777
  const t5 = await nt(p3, c2, e4);
7778
7778
  if (t5.ignore) return Dt({ ok: true });
@@ -7869,7 +7869,7 @@ function hn(e4, t4) {
7869
7869
  return { type: e4.type, config: e4.config, setup: e4.setup, get counters() {
7870
7870
  return { ...u2 };
7871
7871
  }, async get(t5) {
7872
- const n6 = l3(t5), r7 = await o4.get(n6), s5 = Kn(r7);
7872
+ const n6 = l3(t5), r7 = await o4.get(n6), s5 = qn(r7);
7873
7873
  if (void 0 !== s5) {
7874
7874
  if (!("expired" in s5)) return u2.hits++, c2(t5, "hit"), s5.value;
7875
7875
  try {
@@ -8040,7 +8040,7 @@ async function wn2(e4) {
8040
8040
  e5.logger.warn(`Transformer ${o5} invalid (${a5.code}): ${a5.reason}. Skipping.`);
8041
8041
  continue;
8042
8042
  }
8043
- const { config: i5 } = Be2(r7, "before"), { config: c2 } = Be2({ ...r7, config: i5 }, "next"), u2 = Object.keys(s5).length > 0 ? { ...c2, env: s5 } : c2, { cache: d2 } = r7, l3 = d2 ? { ...u2, cache: d2 } : u2, f3 = r7.config?.state ?? r7.state, p3 = void 0 !== f3 && void 0 === l3.state ? { ...l3, state: f3 } : l3, g3 = e5.logger.scope("transformer").scope(o5), m3 = { collector: e5, logger: g3, id: o5, ingest: I(o5), config: p3, env: s5, reportError: ie2(e5, "transformer", o5, g3) }, h2 = t6 ?? ((e6) => {
8043
+ const { config: i5 } = Be2(r7, "before"), { config: c2 } = Be2({ ...r7, config: i5 }, "next"), u2 = Object.keys(s5).length > 0 ? { ...c2, env: s5 } : c2, { cache: d2 } = r7, l3 = d2 ? { ...u2, cache: d2 } : u2, f3 = r7.config?.state ?? r7.state, p3 = void 0 !== f3 && void 0 === l3.state ? { ...l3, state: f3 } : l3, g3 = e5.logger.scope("transformer").scope(o5), m3 = { collector: e5, logger: g3, id: o5, ingest: O(o5), config: p3, env: s5, reportError: ie2(e5, "transformer", o5, g3) }, h2 = t6 ?? ((e6) => {
8044
8044
  const t7 = r7.mapping;
8045
8045
  if (t7) {
8046
8046
  const n7 = [];
@@ -9596,7 +9596,7 @@ async function simulateTransformer(configOrPath, event, options) {
9596
9596
  }
9597
9597
  const inputEvent = event;
9598
9598
  const ingest = {
9599
- ...I(options.transformerId),
9599
+ ...O(options.transformerId),
9600
9600
  ...options.ingest
9601
9601
  };
9602
9602
  const captured = [];
@@ -9862,7 +9862,7 @@ async function simulateDestination(configOrPath, event, options) {
9862
9862
  ...devEnv.push,
9863
9863
  simulation: devEnv.simulation
9864
9864
  };
9865
- const { wrappedEnv, calls } = K2(combined);
9865
+ const { wrappedEnv, calls } = K(combined);
9866
9866
  if (destConfig) destConfig.env = wrappedEnv;
9867
9867
  trackedCalls = calls;
9868
9868
  }
@@ -10606,7 +10606,7 @@ function readGrantHeader(req) {
10606
10606
  return "";
10607
10607
  }
10608
10608
  function guardPreviewIntake(req, res, gate, logger, onPass) {
10609
- It(readGrantHeader(req), {
10609
+ Ot(readGrantHeader(req), {
10610
10610
  keyring: gate.keyring,
10611
10611
  iss: gate.iss,
10612
10612
  pb: gate.pb,
@@ -13808,7 +13808,7 @@ function validateMapping(input) {
13808
13808
  // src/commands/validate/validators/entry.ts
13809
13809
  init_dist();
13810
13810
  import Ajv from "ajv";
13811
- var CLIENT_HEADER = "walkeros-cli/4.3.2";
13811
+ var CLIENT_HEADER = "walkeros-cli/4.3.3-next-1785149620480";
13812
13812
  var SECTIONS = ["destinations", "sources", "transformers"];
13813
13813
  function resolveEntry(path19, flowConfig) {
13814
13814
  const flows = flowConfig.flows;
package/dist/index.js CHANGED
@@ -8249,7 +8249,7 @@ function validateMapping(input) {
8249
8249
  // src/commands/validate/validators/entry.ts
8250
8250
  import Ajv from "ajv";
8251
8251
  import { fetchPackageSchema } from "@walkeros/core";
8252
- var CLIENT_HEADER = "walkeros-cli/4.3.2";
8252
+ var CLIENT_HEADER = "walkeros-cli/4.3.3-next-1785149620480";
8253
8253
  var SECTIONS = ["destinations", "sources", "transformers"];
8254
8254
  function resolveEntry(path20, flowConfig) {
8255
8255
  const flows = flowConfig.flows;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/cli",
3
- "version": "4.3.2",
3
+ "version": "4.3.3-next-1785149620480",
4
4
  "description": "walkerOS CLI - Bundle and deploy walkerOS components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -53,11 +53,11 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@vercel/nft": "^1.10.2",
56
- "@walkeros/collector": "4.3.2",
57
- "@walkeros/core": "4.3.2",
58
- "@walkeros/server-core": "4.3.2",
59
- "@walkeros/server-destination-api": "4.3.2",
60
- "@walkeros/transformer-validate": "4.3.2",
56
+ "@walkeros/collector": "4.3.3-next-1785149620480",
57
+ "@walkeros/core": "4.3.3-next-1785149620480",
58
+ "@walkeros/server-core": "4.3.3-next-1785149620480",
59
+ "@walkeros/server-destination-api": "4.3.3-next-1785149620480",
60
+ "@walkeros/transformer-validate": "4.3.3-next-1785149620480",
61
61
  "ajv": "^8.17.1",
62
62
  "chalk": "^5.6.2",
63
63
  "ci-info": "^4.4.0",
@@ -84,8 +84,8 @@
84
84
  "@types/pacote": "^11.1.8",
85
85
  "@types/picomatch": "4.0.3",
86
86
  "@types/semver": "^7.7.1",
87
- "@walkeros/config": "4.3.2",
88
- "@walkeros/core": "4.3.2",
87
+ "@walkeros/config": "4.3.3-next-1785149620480",
88
+ "@walkeros/core": "4.3.3-next-1785149620480",
89
89
  "msw": "^2.12.10",
90
90
  "openapi-typescript": "^7.13.0",
91
91
  "tsx": "^4.21.0"