@walkeros/core 4.7.1 → 4.7.2-next-1791213015481

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,33 @@
1
1
  # @walkeros/core
2
2
 
3
+ ## 4.7.2-next-1791213015481
4
+
5
+ ### Patch Changes
6
+
7
+ - 98398fe: An async mapping rule `condition` is now awaited, in rule order, so a
8
+ condition that resolves to `false` no longer matches. A condition that throws
9
+ is logged and counts as no match. New `isThenable` helper export.
10
+ - 98398fe: MCP tool results are always an object: `mcpResult` answers a list as
11
+ `{ items }` and a bare value as `{ value }` instead of a bare or spread array,
12
+ and `project_manage list` always answers `{ projects }`.
13
+ - ff23953: The MCP setup-mapping prompt, the MCP instructions, the schema
14
+ descriptions and the flow-complete example no longer claim that a mapping
15
+ rule's `consent` gates events. A rule's `consent` is not enforced yet; to
16
+ require consent for a destination, set `consent` in the destination's config.
17
+ - 98398fe: A code-less transformer now runs its `config.mapping` (it wins over
18
+ the step-level `mapping`), and a flow bundle keeps a code-less transformer
19
+ whose only mapping or state sits in `config`. Init warns about every mapping
20
+ field that does nothing in a transformer, rules in array form included, about
21
+ a mapping next to `code` or `package`, which never runs, and about a
22
+ step-level `mapping` that `config.mapping` overrides; `validateFlowStructure`
23
+ reports the same warnings. New exports: `getTransformerMapping`,
24
+ `getTransformerMappingWarnings`.
25
+ - 98398fe: `startFlow` now types each step by the package passed as `code`, so
26
+ settings, mapping rule settings and `env` keys autocomplete and an unknown
27
+ setting is a type error; steps without typed code stay as loose as before. The
28
+ Storybook addon no longer passes a `session` setting the browser source never
29
+ had.
30
+
3
31
  ## 4.7.1
4
32
 
5
33
  ### Patch Changes
package/dist/dev.d.mts CHANGED
@@ -9160,10 +9160,11 @@ interface Config$2<T extends TypesGeneric$2 = Types$2> {
9160
9160
  * when a rule has `ignore: true`).
9161
9161
  *
9162
9162
  * At the transformer position, only event-mutating fields apply:
9163
- * `policy`, `mapping[].policy`, `mapping[].name`, `mapping[].ignore`,
9164
- * `mapping[].consent`, `include`. Vendor-payload fields (`data`,
9165
- * `mapping[].data`, `silent`) are ignored at this position with a
9166
- * one-time warning.
9163
+ * `policy`, and per rule `condition`, `policy`, `name` and `ignore`.
9164
+ * Everything else does nothing here and is named in a one-time init
9165
+ * warning: `consent`, `include` and `data`, and per rule `consent`,
9166
+ * `include`, `remove`, `batch`, `settings`, `extend`, `data` and
9167
+ * `silent`. A `config.mapping` wins over the step-level `mapping`.
9167
9168
  */
9168
9169
  mapping?: Config$7;
9169
9170
  }
@@ -9234,8 +9235,9 @@ type Init$2<T extends TypesGeneric$2 = Types$2> = (context: Context$2<Types$2<Pa
9234
9235
  type InitTransformer<T extends TypesGeneric$2 = Types$2> = {
9235
9236
  /**
9236
9237
  * Initialization function. When omitted, the entry is a pass-through step:
9237
- * - If `mapping` is present, the collector synthesizes a mapping-only
9238
- * push using `processEventMapping`.
9238
+ * - If `mapping` or `config.mapping` is present, the collector
9239
+ * synthesizes a mapping-only push using `processEventMapping`. With
9240
+ * `code`, a mapping never runs (warned at init).
9239
9241
  * - Otherwise it's a named hop that only hosts a `before` / `next` /
9240
9242
  * `cache` chain.
9241
9243
  *
package/dist/dev.d.ts CHANGED
@@ -9160,10 +9160,11 @@ interface Config$2<T extends TypesGeneric$2 = Types$2> {
9160
9160
  * when a rule has `ignore: true`).
9161
9161
  *
9162
9162
  * At the transformer position, only event-mutating fields apply:
9163
- * `policy`, `mapping[].policy`, `mapping[].name`, `mapping[].ignore`,
9164
- * `mapping[].consent`, `include`. Vendor-payload fields (`data`,
9165
- * `mapping[].data`, `silent`) are ignored at this position with a
9166
- * one-time warning.
9163
+ * `policy`, and per rule `condition`, `policy`, `name` and `ignore`.
9164
+ * Everything else does nothing here and is named in a one-time init
9165
+ * warning: `consent`, `include` and `data`, and per rule `consent`,
9166
+ * `include`, `remove`, `batch`, `settings`, `extend`, `data` and
9167
+ * `silent`. A `config.mapping` wins over the step-level `mapping`.
9167
9168
  */
9168
9169
  mapping?: Config$7;
9169
9170
  }
@@ -9234,8 +9235,9 @@ type Init$2<T extends TypesGeneric$2 = Types$2> = (context: Context$2<Types$2<Pa
9234
9235
  type InitTransformer<T extends TypesGeneric$2 = Types$2> = {
9235
9236
  /**
9236
9237
  * Initialization function. When omitted, the entry is a pass-through step:
9237
- * - If `mapping` is present, the collector synthesizes a mapping-only
9238
- * push using `processEventMapping`.
9238
+ * - If `mapping` or `config.mapping` is present, the collector
9239
+ * synthesizes a mapping-only push using `processEventMapping`. With
9240
+ * `code`, a mapping never runs (warned at init).
9239
9241
  * - Otherwise it's a named hop that only hosts a `before` / `next` /
9240
9242
  * `cache` chain.
9241
9243
  *