@walkeros/cli 4.2.0-next-1780942291149 → 4.2.0

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,6 @@
1
1
  # @walkeros/cli
2
2
 
3
- ## 4.2.0-next-1780942291149
3
+ ## 4.2.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -47,7 +47,7 @@
47
47
  custom domains, entitlements, LLM settings, chat sessions, MCP tokens,
48
48
  runners, and the package catalog. No runtime behavior change; clients gain
49
49
  accurate types for these endpoints.
50
- - 18c9469: Browser flow bundles are now emitted as an IIFE so all internal code
50
+ - 5b1a134: Browser flow bundles are now emitted as an IIFE so all internal code
51
51
  stays inside a private scope. Previously the bundled helper functions could
52
52
  leak onto the global `window` object and collide with other scripts on the
53
53
  page, such as Google Analytics or a consent manager. Server bundles are
@@ -86,7 +86,7 @@
86
86
  without a trace poll. When the telemetry options omit `traceUrl`, the bundle
87
87
  emits at a fixed level with no polling, suited to short-lived, URL-opted-in
88
88
  sessions. Bundles that pass `traceUrl` keep the existing poll behavior.
89
- - f1c74e8: New `@walkeros/transformer-validate` transformer validates events
89
+ - 23d4b86: New `@walkeros/transformer-validate` transformer validates events
90
90
  against JSON Schema contracts. It runs in both web and server flows, supports
91
91
  strict and pass modes, and writes the verdict and error list to configurable
92
92
  paths so you can gate or observe event quality.
@@ -99,7 +99,7 @@
99
99
  examples against the resolved contract.
100
100
 
101
101
  - Updated dependencies [76d32c1]
102
- - Updated dependencies [18c9469]
102
+ - Updated dependencies [5b1a134]
103
103
  - Updated dependencies [908d6f0]
104
104
  - Updated dependencies [654ba38]
105
105
  - Updated dependencies [c27d3c1]
@@ -114,14 +114,15 @@
114
114
  - Updated dependencies [654ba38]
115
115
  - Updated dependencies [6a72a32]
116
116
  - Updated dependencies [3eb2467]
117
- - Updated dependencies [7d8ebf9]
118
- - Updated dependencies [f1c74e8]
117
+ - Updated dependencies [5b1a134]
118
+ - Updated dependencies [23d4b86]
119
119
  - Updated dependencies [18c9469]
120
- - @walkeros/core@4.2.0-next-1780942291149
121
- - @walkeros/collector@4.2.0-next-1780942291149
122
- - @walkeros/server-core@4.2.0-next-1780942291149
123
- - @walkeros/server-destination-api@4.2.0-next-1780942291149
124
- - @walkeros/transformer-validate@4.2.0-next-1780942291149
120
+ - Updated dependencies [0cad016]
121
+ - @walkeros/core@4.2.0
122
+ - @walkeros/collector@4.2.0
123
+ - @walkeros/server-core@4.2.0
124
+ - @walkeros/server-destination-api@4.2.0
125
+ - @walkeros/transformer-validate@4.2.0
125
126
 
126
127
  ## 4.1.2
127
128
 
package/dist/cli.js CHANGED
@@ -2770,9 +2770,8 @@ function validateReference(type, name, ref) {
2770
2770
  return;
2771
2771
  }
2772
2772
  const hasPackage = !!ref.package;
2773
- const hasInlineCode = isInlineCode(ref.code);
2774
2773
  const hasCode = hasCodeReference(ref.code);
2775
- if (hasPackage && hasInlineCode) {
2774
+ if (hasPackage && hasCode) {
2776
2775
  throw new Error(
2777
2776
  `${type} "${name}": Cannot specify both package and code. Use one or the other.`
2778
2777
  );
@@ -2812,13 +2811,13 @@ function validateStoreReferences(flowSettings, storeIds) {
2812
2811
  collectRefs(component, `${section}.${id}`);
2813
2812
  }
2814
2813
  }
2815
- for (const { ref, location: location2 } of refs) {
2816
- if (!storeIds.has(ref)) {
2817
- const available = storeIds.size > 0 ? `Available stores: ${Array.from(storeIds).join(", ")}` : "No stores defined";
2818
- throw new Error(
2819
- `Store reference "$store.${ref}" in ${location2} \u2014 store "${ref}" not found. ${available}`
2820
- );
2821
- }
2814
+ const missing = refs.filter(({ ref }) => !storeIds.has(ref));
2815
+ if (missing.length > 0) {
2816
+ const available = storeIds.size > 0 ? `Available stores: ${Array.from(storeIds).join(", ")}` : "No stores defined";
2817
+ const details = missing.map(
2818
+ ({ ref, location: location2 }) => `"$store.${ref}" in ${location2} (store "${ref}" not found)`
2819
+ ).join("; ");
2820
+ throw new Error(`Invalid store references: ${details}. ${available}`);
2822
2821
  }
2823
2822
  }
2824
2823
  var VALID_JS_IDENTIFIER;
@@ -6699,7 +6698,7 @@ async function wt(e4, t4, o4) {
6699
6698
  }
6700
6699
  }
6701
6700
  function vt(e4, t4) {
6702
- return { timing: Math.round((Date.now() - e4.timing) / 10) / 100, source: { type: "collector", schema: "4", version: "4.2.0-next-1780942291149" }, ...t4 };
6701
+ return { timing: Math.round((Date.now() - e4.timing) / 10) / 100, source: { type: "collector", schema: "4", version: "4.2.0" }, ...t4 };
6703
6702
  }
6704
6703
  function bt(e4, t4) {
6705
6704
  if (!t4.name) throw new Error("Event name is required");
@@ -11402,7 +11401,8 @@ function n4(e4) {
11402
11401
  return i3.set(r5, o4), o4;
11403
11402
  }
11404
11403
  function s5(e4) {
11405
- return "object" == typeof e4 && null !== e4 && "events" in e4 && "object" == typeof e4.events;
11404
+ if ("object" != typeof e4 || null === e4) return false;
11405
+ return "events" in e4 && "object" == typeof e4.events && null !== e4.events || "schema" in e4;
11406
11406
  }
11407
11407
  function o3(e4, t4, r5) {
11408
11408
  return e4[t4]?.[r5] ?? e4[t4]?.["*"] ?? e4["*"]?.[r5] ?? e4["*"]?.["*"];
@@ -11940,7 +11940,7 @@ function validateMapping(input) {
11940
11940
  // src/commands/validate/validators/entry.ts
11941
11941
  init_dist();
11942
11942
  import Ajv from "ajv";
11943
- var CLIENT_HEADER = "walkeros-cli/4.2.0-next-1780942291149";
11943
+ var CLIENT_HEADER = "walkeros-cli/4.2.0";
11944
11944
  var SECTIONS = ["destinations", "sources", "transformers"];
11945
11945
  function resolveEntry(path19, flowConfig) {
11946
11946
  const flows = flowConfig.flows;
package/dist/index.js CHANGED
@@ -1098,9 +1098,8 @@ function validateReference(type, name, ref) {
1098
1098
  return;
1099
1099
  }
1100
1100
  const hasPackage = !!ref.package;
1101
- const hasInlineCode = isInlineCode(ref.code);
1102
1101
  const hasCode = hasCodeReference(ref.code);
1103
- if (hasPackage && hasInlineCode) {
1102
+ if (hasPackage && hasCode) {
1104
1103
  throw new Error(
1105
1104
  `${type} "${name}": Cannot specify both package and code. Use one or the other.`
1106
1105
  );
@@ -1140,13 +1139,13 @@ function validateStoreReferences(flowSettings, storeIds) {
1140
1139
  collectRefs(component, `${section}.${id}`);
1141
1140
  }
1142
1141
  }
1143
- for (const { ref, location } of refs) {
1144
- if (!storeIds.has(ref)) {
1145
- const available = storeIds.size > 0 ? `Available stores: ${Array.from(storeIds).join(", ")}` : "No stores defined";
1146
- throw new Error(
1147
- `Store reference "$store.${ref}" in ${location} \u2014 store "${ref}" not found. ${available}`
1148
- );
1149
- }
1142
+ const missing = refs.filter(({ ref }) => !storeIds.has(ref));
1143
+ if (missing.length > 0) {
1144
+ const available = storeIds.size > 0 ? `Available stores: ${Array.from(storeIds).join(", ")}` : "No stores defined";
1145
+ const details = missing.map(
1146
+ ({ ref, location }) => `"$store.${ref}" in ${location} (store "${ref}" not found)`
1147
+ ).join("; ");
1148
+ throw new Error(`Invalid store references: ${details}. ${available}`);
1150
1149
  }
1151
1150
  }
1152
1151
  var VALID_JS_IDENTIFIER;
@@ -7236,7 +7235,7 @@ function validateMapping(input) {
7236
7235
  // src/commands/validate/validators/entry.ts
7237
7236
  import Ajv from "ajv";
7238
7237
  import { fetchPackageSchema } from "@walkeros/core";
7239
- var CLIENT_HEADER = "walkeros-cli/4.2.0-next-1780942291149";
7238
+ var CLIENT_HEADER = "walkeros-cli/4.2.0";
7240
7239
  var SECTIONS = ["destinations", "sources", "transformers"];
7241
7240
  function resolveEntry(path20, flowConfig) {
7242
7241
  const flows = flowConfig.flows;