@walkeros/mcp 4.8.1 → 4.8.3-next-1793115089237
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/dist/{chunk-SUHJP3BB.js → chunk-SSQ4MFHN.js} +192 -162
- package/dist/chunk-SSQ4MFHN.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/specs.d.ts +3 -2
- package/dist/specs.js +1 -1
- package/dist/stdio.js +194 -164
- package/dist/stdio.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-SUHJP3BB.js.map +0 -1
package/dist/stdio.js
CHANGED
|
@@ -120,6 +120,9 @@ var ExamplesListOutputShape = {
|
|
|
120
120
|
source: z.enum(["inline", "package"]).describe(
|
|
121
121
|
'Where the example came from: "inline" (defined in the flow step) or "package" (shipped by the referenced package)'
|
|
122
122
|
),
|
|
123
|
+
version: z.string().optional().describe(
|
|
124
|
+
"The package version the example was read from; package examples only"
|
|
125
|
+
),
|
|
123
126
|
title: z.string().optional().describe("Human-readable title if set"),
|
|
124
127
|
description: z.string().optional().describe("Short human-readable description"),
|
|
125
128
|
public: z.boolean().optional().describe(
|
|
@@ -260,15 +263,25 @@ async function flowValidateHandlerBody(runtime, input) {
|
|
|
260
263
|
|
|
261
264
|
// src/tools/examples.ts
|
|
262
265
|
import { z as z3 } from "zod";
|
|
263
|
-
import {
|
|
264
|
-
|
|
266
|
+
import {
|
|
267
|
+
createLogger,
|
|
268
|
+
getErrorMessage,
|
|
269
|
+
mcpResult as mcpResult2,
|
|
270
|
+
mcpError as mcpError3
|
|
271
|
+
} from "@walkeros/core";
|
|
272
|
+
import {
|
|
273
|
+
readStepPackageInfo,
|
|
274
|
+
resolveExportName,
|
|
275
|
+
resolveStepPackage,
|
|
276
|
+
selectDevExamples
|
|
277
|
+
} from "@walkeros/cli/dev";
|
|
265
278
|
|
|
266
279
|
// src/catalog.ts
|
|
267
280
|
var NPM_SEARCH_URL = "https://registry.npmjs.org/-/v1/search";
|
|
268
281
|
var JSDELIVR_BASE = "https://cdn.jsdelivr.net/npm";
|
|
269
282
|
var WALKEROS_JSON_PATH = "dist/walkerOS.json";
|
|
270
283
|
var CACHE_TTL = 5 * 60 * 1e3;
|
|
271
|
-
var CLIENT_HEADER = "walkeros-mcp/4.8.
|
|
284
|
+
var CLIENT_HEADER = "walkeros-mcp/4.8.3-next-1793115089237";
|
|
272
285
|
var cached;
|
|
273
286
|
function normalizePlatform(platform) {
|
|
274
287
|
if (platform == null) return [];
|
|
@@ -410,8 +423,9 @@ function stepExamplesOf(value) {
|
|
|
410
423
|
|
|
411
424
|
// src/tools/examples.ts
|
|
412
425
|
var MAX_PACKAGE_LOOKUPS = 25;
|
|
426
|
+
var LOGGER = createLogger();
|
|
413
427
|
var TITLE2 = "Flow Examples";
|
|
414
|
-
var DESCRIPTION2 = 'List all step examples in a walkerOS flow configuration. Shows example names, step locations, and in/out shapes. Inline examples on a step take precedence; steps without inline examples fall back to the examples shipped by their referenced package. Each result is tagged with its source ("inline" or "package"). configPath: inline JSON, or a reference this server can read (locally a file path or an http(s) URL). Use this to discover available test fixtures and simulation data.';
|
|
428
|
+
var DESCRIPTION2 = 'List all step examples in a walkerOS flow configuration. Shows example names, step locations, and in/out shapes. Inline examples on a step take precedence; steps without inline examples fall back to the examples shipped by their referenced package. Package examples are read at the version or local path the flow pins, and carry the version read. Each result is tagged with its source ("inline" or "package"). configPath: inline JSON, or a reference this server can read (locally a file path or an http(s) URL). Use this to discover available test fixtures and simulation data.';
|
|
415
429
|
var inputSchema2 = {
|
|
416
430
|
configPath: z3.string().min(1).describe(
|
|
417
431
|
"A flow configuration: inline JSON, or a reference this server can read (locally a file path or an http(s) URL)."
|
|
@@ -463,7 +477,7 @@ async function flowExamplesHandlerBody(runtime, input) {
|
|
|
463
477
|
throw new Error(`Flow "${flowName}" not found`);
|
|
464
478
|
}
|
|
465
479
|
const examples = [];
|
|
466
|
-
const toItems = (stepExamples, type, name, source) => {
|
|
480
|
+
const toItems = (stepExamples, type, name, source, version) => {
|
|
467
481
|
const items = [];
|
|
468
482
|
for (const [exName, ex] of Object.entries(stepExamples)) {
|
|
469
483
|
if (!includeHidden && ex.public === false) continue;
|
|
@@ -473,6 +487,7 @@ async function flowExamplesHandlerBody(runtime, input) {
|
|
|
473
487
|
stepName: name,
|
|
474
488
|
exampleName: exName,
|
|
475
489
|
source,
|
|
490
|
+
...version ? { version } : {},
|
|
476
491
|
title: ex.title,
|
|
477
492
|
description: ex.description,
|
|
478
493
|
public: ex.public,
|
|
@@ -490,26 +505,30 @@ async function flowExamplesHandlerBody(runtime, input) {
|
|
|
490
505
|
}
|
|
491
506
|
return items;
|
|
492
507
|
};
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
return await fetchPackage(packageName, { client: CLIENT_HEADER });
|
|
496
|
-
} catch {
|
|
497
|
-
}
|
|
498
|
-
return void 0;
|
|
499
|
-
};
|
|
500
|
-
const packageLookups = /* @__PURE__ */ new Map();
|
|
508
|
+
const configDir = runtime.baseDir?.(configPath);
|
|
509
|
+
const packageReads = /* @__PURE__ */ new Map();
|
|
501
510
|
let skippedPackages = false;
|
|
502
511
|
const skippedExamples = [];
|
|
503
|
-
const
|
|
504
|
-
|
|
512
|
+
const unreadable = [];
|
|
513
|
+
const packageFor = (resolved) => {
|
|
514
|
+
const existing = packageReads.get(resolved.packageName);
|
|
505
515
|
if (existing) return existing;
|
|
506
|
-
if (
|
|
516
|
+
if (packageReads.size >= MAX_PACKAGE_LOOKUPS) {
|
|
507
517
|
skippedPackages = true;
|
|
508
|
-
return
|
|
518
|
+
return void 0;
|
|
509
519
|
}
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
|
|
520
|
+
const read = readStepPackageInfo(resolved, {
|
|
521
|
+
configDir,
|
|
522
|
+
client: CLIENT_HEADER
|
|
523
|
+
}).then(
|
|
524
|
+
(info) => ({ ok: true, info }),
|
|
525
|
+
(error) => ({
|
|
526
|
+
ok: false,
|
|
527
|
+
reason: getErrorMessage(error)
|
|
528
|
+
})
|
|
529
|
+
);
|
|
530
|
+
packageReads.set(resolved.packageName, read);
|
|
531
|
+
return read;
|
|
513
532
|
};
|
|
514
533
|
const stepExamplesFor = (info, exportName) => {
|
|
515
534
|
const selected = selectDevExamples(
|
|
@@ -532,13 +551,37 @@ async function flowExamplesHandlerBody(runtime, input) {
|
|
|
532
551
|
continue;
|
|
533
552
|
}
|
|
534
553
|
if (!ref.package) continue;
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
554
|
+
let resolved;
|
|
555
|
+
try {
|
|
556
|
+
resolved = resolveStepPackage(flowSettings, type, name, LOGGER);
|
|
557
|
+
} catch (error) {
|
|
558
|
+
unreadable.push(`${type}.${name}: ${getErrorMessage(error)}`);
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
const read = packageFor(resolved);
|
|
562
|
+
if (!read) continue;
|
|
563
|
+
const outcome = await read;
|
|
564
|
+
if (!outcome.ok) {
|
|
565
|
+
unreadable.push(
|
|
566
|
+
`${type}.${name} (${resolved.label}): ${outcome.reason}`
|
|
567
|
+
);
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
const { exportName } = resolveExportName(
|
|
571
|
+
resolved.normalizedFlow,
|
|
572
|
+
type,
|
|
573
|
+
name
|
|
574
|
+
);
|
|
575
|
+
const packageExamples = stepExamplesFor(outcome.info, exportName);
|
|
539
576
|
if (!packageExamples) continue;
|
|
540
577
|
examples.push(
|
|
541
|
-
...toItems(
|
|
578
|
+
...toItems(
|
|
579
|
+
packageExamples.examples,
|
|
580
|
+
type,
|
|
581
|
+
name,
|
|
582
|
+
"package",
|
|
583
|
+
outcome.info.version
|
|
584
|
+
)
|
|
542
585
|
);
|
|
543
586
|
for (const exampleName of packageExamples.skipped)
|
|
544
587
|
skippedExamples.push(`${type}.${name}.${exampleName}`);
|
|
@@ -560,6 +603,12 @@ async function flowExamplesHandlerBody(runtime, input) {
|
|
|
560
603
|
`Skipped ${skippedExamples.length} package example(s) that do not match the step example schema: ${skippedExamples.join(", ")}.`
|
|
561
604
|
);
|
|
562
605
|
}
|
|
606
|
+
if (unreadable.length > 0) {
|
|
607
|
+
const list = unreadable.join("; ");
|
|
608
|
+
warnings.push(
|
|
609
|
+
`Could not read the package of ${unreadable.length} step(s), so their package examples are missing: ${list}${list.endsWith(".") ? "" : "."}`
|
|
610
|
+
);
|
|
611
|
+
}
|
|
563
612
|
if (skippedPackages) {
|
|
564
613
|
warnings.push(
|
|
565
614
|
`Package examples were looked up for the first ${MAX_PACKAGE_LOOKUPS} packages only. Use step to narrow the result.`
|
|
@@ -714,7 +763,7 @@ async function flowLoadHandlerBody(runtime, input) {
|
|
|
714
763
|
|
|
715
764
|
// src/tools/package.ts
|
|
716
765
|
import { z as z5 } from "zod";
|
|
717
|
-
import { fetchPackage
|
|
766
|
+
import { fetchPackage, mcpResult as mcpResult4, mcpError as mcpError5 } from "@walkeros/core";
|
|
718
767
|
import { mergeConfigSchema } from "@walkeros/core/dev";
|
|
719
768
|
var SEARCH_TITLE = "Search Package";
|
|
720
769
|
var SEARCH_DESCRIPTION = "Start here for package discovery. Never guess package names: use this tool first to find exact names. Without package name: returns catalog filtered by type/platform. With package name: returns metadata, hint keys, and example summaries.";
|
|
@@ -757,7 +806,7 @@ async function packageSearchHandlerBody(input) {
|
|
|
757
806
|
});
|
|
758
807
|
}
|
|
759
808
|
try {
|
|
760
|
-
const info = await
|
|
809
|
+
const info = await fetchPackage(packageName, {
|
|
761
810
|
version,
|
|
762
811
|
client: CLIENT_HEADER
|
|
763
812
|
});
|
|
@@ -838,7 +887,7 @@ async function packageGetHandlerBody(input) {
|
|
|
838
887
|
if (!parsed.ok) return parsed.error;
|
|
839
888
|
const { package: packageName, version, section } = parsed.data;
|
|
840
889
|
try {
|
|
841
|
-
const info = await
|
|
890
|
+
const info = await fetchPackage(packageName, {
|
|
842
891
|
version,
|
|
843
892
|
client: CLIENT_HEADER
|
|
844
893
|
});
|
|
@@ -1030,13 +1079,13 @@ var flow_complete_default = {
|
|
|
1030
1079
|
properties: {
|
|
1031
1080
|
data: {
|
|
1032
1081
|
type: "object",
|
|
1033
|
-
required: ["id", "
|
|
1082
|
+
required: ["id", "value", "currency"],
|
|
1034
1083
|
properties: {
|
|
1035
1084
|
id: {
|
|
1036
1085
|
type: "string",
|
|
1037
1086
|
minLength: 1
|
|
1038
1087
|
},
|
|
1039
|
-
|
|
1088
|
+
value: {
|
|
1040
1089
|
type: "number",
|
|
1041
1090
|
minimum: 0
|
|
1042
1091
|
},
|
|
@@ -1131,25 +1180,25 @@ var flow_complete_default = {
|
|
|
1131
1180
|
bundle: {
|
|
1132
1181
|
packages: {
|
|
1133
1182
|
"@walkeros/collector": {
|
|
1134
|
-
version: "4.8.
|
|
1183
|
+
version: "4.8.3-next-1793115089237"
|
|
1135
1184
|
},
|
|
1136
1185
|
"@walkeros/web-source-cmp-usercentrics": {
|
|
1137
|
-
version: "4.8.
|
|
1186
|
+
version: "4.8.3-next-1793115089237"
|
|
1138
1187
|
},
|
|
1139
1188
|
"@walkeros/web-source-session": {
|
|
1140
|
-
version: "4.8.
|
|
1189
|
+
version: "4.8.3-next-1793115089237"
|
|
1141
1190
|
},
|
|
1142
1191
|
"@walkeros/web-source-datalayer": {
|
|
1143
|
-
version: "4.8.
|
|
1192
|
+
version: "4.8.3-next-1793115089237"
|
|
1144
1193
|
},
|
|
1145
1194
|
"@walkeros/web-source-browser": {
|
|
1146
|
-
version: "4.8.
|
|
1195
|
+
version: "4.8.3-next-1793115089237"
|
|
1147
1196
|
},
|
|
1148
1197
|
"@walkeros/web-destination-gtag": {
|
|
1149
|
-
version: "4.8.
|
|
1198
|
+
version: "4.8.3-next-1793115089237"
|
|
1150
1199
|
},
|
|
1151
1200
|
"@walkeros/web-destination-api": {
|
|
1152
|
-
version: "4.8.
|
|
1201
|
+
version: "4.8.3-next-1793115089237"
|
|
1153
1202
|
}
|
|
1154
1203
|
},
|
|
1155
1204
|
env: {
|
|
@@ -1195,7 +1244,7 @@ var flow_complete_default = {
|
|
|
1195
1244
|
examples: {
|
|
1196
1245
|
explicitDecision: {
|
|
1197
1246
|
title: "Explicit decision",
|
|
1198
|
-
description: "The user accepts every category in the banner. categoryMap
|
|
1247
|
+
description: "The user accepts every category in the banner. categoryMap folds essential into functional so the collector receives exactly the consent keys the contract names; because any deny denies, functional still follows the functional category, and essential never grants it alone.",
|
|
1199
1248
|
public: true,
|
|
1200
1249
|
trigger: {
|
|
1201
1250
|
type: "consent",
|
|
@@ -1405,15 +1454,13 @@ var flow_complete_default = {
|
|
|
1405
1454
|
dataLayer: {
|
|
1406
1455
|
add_to_cart: {
|
|
1407
1456
|
name: "product add",
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
value: 1
|
|
1416
|
-
}
|
|
1457
|
+
policy: {
|
|
1458
|
+
"data.id": "data.items.0.item_id",
|
|
1459
|
+
"data.name": "data.items.0.item_name",
|
|
1460
|
+
"data.price": "data.items.0.price",
|
|
1461
|
+
"data.quantity": {
|
|
1462
|
+
key: "data.items.0.quantity",
|
|
1463
|
+
value: 1
|
|
1417
1464
|
}
|
|
1418
1465
|
}
|
|
1419
1466
|
}
|
|
@@ -1626,7 +1673,7 @@ var flow_complete_default = {
|
|
|
1626
1673
|
action: "complete",
|
|
1627
1674
|
data: {
|
|
1628
1675
|
id: "ORD-100",
|
|
1629
|
-
|
|
1676
|
+
value: 149.8,
|
|
1630
1677
|
currency: "EUR",
|
|
1631
1678
|
coupon: "WELCOME10"
|
|
1632
1679
|
},
|
|
@@ -1680,7 +1727,7 @@ var flow_complete_default = {
|
|
|
1680
1727
|
action: "complete",
|
|
1681
1728
|
data: {
|
|
1682
1729
|
id: "ORD-100",
|
|
1683
|
-
|
|
1730
|
+
value: 149.8,
|
|
1684
1731
|
currency: "EUR",
|
|
1685
1732
|
coupon: "WELCOME10"
|
|
1686
1733
|
},
|
|
@@ -1823,7 +1870,14 @@ var flow_complete_default = {
|
|
|
1823
1870
|
ga4: {
|
|
1824
1871
|
measurementId: "$env.GA4_MEASUREMENT_ID:G-MAINSITE"
|
|
1825
1872
|
},
|
|
1826
|
-
como:
|
|
1873
|
+
como: {
|
|
1874
|
+
marketing: [
|
|
1875
|
+
"ad_storage",
|
|
1876
|
+
"ad_user_data",
|
|
1877
|
+
"ad_personalization"
|
|
1878
|
+
],
|
|
1879
|
+
functional: "analytics_storage"
|
|
1880
|
+
}
|
|
1827
1881
|
},
|
|
1828
1882
|
mapping: {
|
|
1829
1883
|
product: {
|
|
@@ -1856,12 +1910,12 @@ var flow_complete_default = {
|
|
|
1856
1910
|
order: {
|
|
1857
1911
|
complete: {
|
|
1858
1912
|
name: "purchase",
|
|
1859
|
-
condition: "$code:(event) => event.data && event.data.
|
|
1913
|
+
condition: "$code:(event) => event.data && event.data.value > 0",
|
|
1860
1914
|
data: {
|
|
1861
1915
|
map: {
|
|
1862
1916
|
transaction_id: "data.id",
|
|
1863
1917
|
value: {
|
|
1864
|
-
fn: "$code:(event) => Math.round(Number(event.data.
|
|
1918
|
+
fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
|
|
1865
1919
|
},
|
|
1866
1920
|
currency: [
|
|
1867
1921
|
"data.currency",
|
|
@@ -1903,12 +1957,12 @@ var flow_complete_default = {
|
|
|
1903
1957
|
public: true,
|
|
1904
1958
|
mapping: {
|
|
1905
1959
|
name: "purchase",
|
|
1906
|
-
condition: "$code:(event) => event.data && event.data.
|
|
1960
|
+
condition: "$code:(event) => event.data && event.data.value > 0",
|
|
1907
1961
|
data: {
|
|
1908
1962
|
map: {
|
|
1909
1963
|
transaction_id: "data.id",
|
|
1910
1964
|
value: {
|
|
1911
|
-
fn: "$code:(event) => Math.round(Number(event.data.
|
|
1965
|
+
fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
|
|
1912
1966
|
},
|
|
1913
1967
|
currency: [
|
|
1914
1968
|
"data.currency",
|
|
@@ -1946,7 +2000,7 @@ var flow_complete_default = {
|
|
|
1946
2000
|
action: "complete",
|
|
1947
2001
|
data: {
|
|
1948
2002
|
id: "ORD-100",
|
|
1949
|
-
|
|
2003
|
+
value: 149.8,
|
|
1950
2004
|
currency: "EUR",
|
|
1951
2005
|
coupon: "WELCOME10"
|
|
1952
2006
|
},
|
|
@@ -2040,12 +2094,12 @@ var flow_complete_default = {
|
|
|
2040
2094
|
description: "The coupon condition leaves the parameter out when the order has none.",
|
|
2041
2095
|
mapping: {
|
|
2042
2096
|
name: "purchase",
|
|
2043
|
-
condition: "$code:(event) => event.data && event.data.
|
|
2097
|
+
condition: "$code:(event) => event.data && event.data.value > 0",
|
|
2044
2098
|
data: {
|
|
2045
2099
|
map: {
|
|
2046
2100
|
transaction_id: "data.id",
|
|
2047
2101
|
value: {
|
|
2048
|
-
fn: "$code:(event) => Math.round(Number(event.data.
|
|
2102
|
+
fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
|
|
2049
2103
|
},
|
|
2050
2104
|
currency: [
|
|
2051
2105
|
"data.currency",
|
|
@@ -2083,7 +2137,7 @@ var flow_complete_default = {
|
|
|
2083
2137
|
action: "complete",
|
|
2084
2138
|
data: {
|
|
2085
2139
|
id: "ORD-101",
|
|
2086
|
-
|
|
2140
|
+
value: 129.9,
|
|
2087
2141
|
currency: "EUR"
|
|
2088
2142
|
},
|
|
2089
2143
|
id: "ev-order-complete",
|
|
@@ -2311,6 +2365,14 @@ var flow_complete_default = {
|
|
|
2311
2365
|
settings: {
|
|
2312
2366
|
gtm: {
|
|
2313
2367
|
containerId: "$env.GTM_ID:GTM-SHOP01"
|
|
2368
|
+
},
|
|
2369
|
+
como: {
|
|
2370
|
+
marketing: [
|
|
2371
|
+
"ad_storage",
|
|
2372
|
+
"ad_user_data",
|
|
2373
|
+
"ad_personalization"
|
|
2374
|
+
],
|
|
2375
|
+
functional: "analytics_storage"
|
|
2314
2376
|
}
|
|
2315
2377
|
},
|
|
2316
2378
|
mapping: {
|
|
@@ -2516,7 +2578,7 @@ var flow_complete_default = {
|
|
|
2516
2578
|
action: "complete",
|
|
2517
2579
|
data: {
|
|
2518
2580
|
id: "ORD-100",
|
|
2519
|
-
|
|
2581
|
+
value: 149.8,
|
|
2520
2582
|
currency: "EUR",
|
|
2521
2583
|
coupon: "WELCOME10"
|
|
2522
2584
|
},
|
|
@@ -2567,7 +2629,7 @@ var flow_complete_default = {
|
|
|
2567
2629
|
[
|
|
2568
2630
|
"sendWeb",
|
|
2569
2631
|
"http://localhost:8080/collect",
|
|
2570
|
-
'[{"name":"order complete","data":{"id":"ORD-100","
|
|
2632
|
+
'[{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"jane@example.com"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
|
|
2571
2633
|
{
|
|
2572
2634
|
transport: "beacon"
|
|
2573
2635
|
}
|
|
@@ -2583,7 +2645,7 @@ var flow_complete_default = {
|
|
|
2583
2645
|
action: "complete",
|
|
2584
2646
|
data: {
|
|
2585
2647
|
id: "ORD-100",
|
|
2586
|
-
|
|
2648
|
+
value: 149.8,
|
|
2587
2649
|
currency: "EUR",
|
|
2588
2650
|
coupon: "WELCOME10"
|
|
2589
2651
|
},
|
|
@@ -2633,7 +2695,7 @@ var flow_complete_default = {
|
|
|
2633
2695
|
[
|
|
2634
2696
|
"sendWeb",
|
|
2635
2697
|
"http://localhost:8080/collect",
|
|
2636
|
-
'[{"name":"order complete","data":{"id":"ORD-100","
|
|
2698
|
+
'[{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
|
|
2637
2699
|
{
|
|
2638
2700
|
transport: "beacon"
|
|
2639
2701
|
}
|
|
@@ -2655,40 +2717,40 @@ var flow_complete_default = {
|
|
|
2655
2717
|
bundle: {
|
|
2656
2718
|
packages: {
|
|
2657
2719
|
"@walkeros/collector": {
|
|
2658
|
-
version: "4.8.
|
|
2720
|
+
version: "4.8.3-next-1793115089237"
|
|
2659
2721
|
},
|
|
2660
2722
|
"@walkeros/server-source-express": {
|
|
2661
|
-
version: "4.8.
|
|
2723
|
+
version: "4.8.3-next-1793115089237"
|
|
2662
2724
|
},
|
|
2663
2725
|
"@walkeros/transformer-ga4": {
|
|
2664
|
-
version: "4.8.
|
|
2726
|
+
version: "4.8.3-next-1793115089237"
|
|
2665
2727
|
},
|
|
2666
2728
|
"@walkeros/transformer-validate": {
|
|
2667
|
-
version: "4.8.
|
|
2729
|
+
version: "4.8.3-next-1793115089237"
|
|
2668
2730
|
},
|
|
2669
2731
|
"@walkeros/server-transformer-bot": {
|
|
2670
|
-
version: "4.8.
|
|
2732
|
+
version: "4.8.3-next-1793115089237"
|
|
2671
2733
|
},
|
|
2672
2734
|
"@walkeros/server-transformer-fingerprint": {
|
|
2673
|
-
version: "4.8.
|
|
2735
|
+
version: "4.8.3-next-1793115089237"
|
|
2674
2736
|
},
|
|
2675
2737
|
"@walkeros/server-transformer-file": {
|
|
2676
|
-
version: "4.8.
|
|
2738
|
+
version: "4.8.3-next-1793115089237"
|
|
2677
2739
|
},
|
|
2678
2740
|
"@walkeros/server-store-fs": {
|
|
2679
|
-
version: "4.8.
|
|
2741
|
+
version: "4.8.3-next-1793115089237"
|
|
2680
2742
|
},
|
|
2681
2743
|
"@walkeros/server-destination-gcp": {
|
|
2682
|
-
version: "4.8.
|
|
2744
|
+
version: "4.8.3-next-1793115089237"
|
|
2683
2745
|
},
|
|
2684
2746
|
"@walkeros/server-destination-meta": {
|
|
2685
|
-
version: "4.8.
|
|
2747
|
+
version: "4.8.3-next-1793115089237"
|
|
2686
2748
|
},
|
|
2687
2749
|
"@walkeros/server-destination-piwikpro": {
|
|
2688
|
-
version: "4.8.
|
|
2750
|
+
version: "4.8.3-next-1793115089237"
|
|
2689
2751
|
},
|
|
2690
2752
|
"@walkeros/server-destination-datamanager": {
|
|
2691
|
-
version: "4.8.
|
|
2753
|
+
version: "4.8.3-next-1793115089237"
|
|
2692
2754
|
}
|
|
2693
2755
|
}
|
|
2694
2756
|
}
|
|
@@ -2774,7 +2836,7 @@ var flow_complete_default = {
|
|
|
2774
2836
|
},
|
|
2775
2837
|
ingest: {
|
|
2776
2838
|
map: {
|
|
2777
|
-
ip: "ip",
|
|
2839
|
+
ip: "headers.x-client-ip",
|
|
2778
2840
|
path: "path",
|
|
2779
2841
|
method: "method",
|
|
2780
2842
|
url: "url",
|
|
@@ -2856,7 +2918,7 @@ var flow_complete_default = {
|
|
|
2856
2918
|
action: "complete",
|
|
2857
2919
|
data: {
|
|
2858
2920
|
id: "ORD-100",
|
|
2859
|
-
|
|
2921
|
+
value: 149.8,
|
|
2860
2922
|
currency: "EUR",
|
|
2861
2923
|
coupon: "WELCOME10"
|
|
2862
2924
|
},
|
|
@@ -2913,7 +2975,7 @@ var flow_complete_default = {
|
|
|
2913
2975
|
action: "complete",
|
|
2914
2976
|
data: {
|
|
2915
2977
|
id: "ORD-100",
|
|
2916
|
-
|
|
2978
|
+
value: 149.8,
|
|
2917
2979
|
currency: "EUR",
|
|
2918
2980
|
coupon: "WELCOME10"
|
|
2919
2981
|
},
|
|
@@ -3007,7 +3069,7 @@ var flow_complete_default = {
|
|
|
3007
3069
|
data: {
|
|
3008
3070
|
id: "SUB-77",
|
|
3009
3071
|
currency: "EUR",
|
|
3010
|
-
|
|
3072
|
+
value: 59.9
|
|
3011
3073
|
},
|
|
3012
3074
|
user: {
|
|
3013
3075
|
device: "cid-9",
|
|
@@ -3297,42 +3359,6 @@ var flow_complete_default = {
|
|
|
3297
3359
|
},
|
|
3298
3360
|
next: {
|
|
3299
3361
|
stop: true
|
|
3300
|
-
},
|
|
3301
|
-
examples: {
|
|
3302
|
-
walkerJs: {
|
|
3303
|
-
title: "Serve walker.js first party",
|
|
3304
|
-
description: "GET /walker.js is answered from the assets store with the configured headers; the step returns false and its next stops, so a script request never becomes an event. Proven over HTTP in the flow test.",
|
|
3305
|
-
public: true,
|
|
3306
|
-
in: {
|
|
3307
|
-
name: "page view",
|
|
3308
|
-
entity: "page",
|
|
3309
|
-
action: "view",
|
|
3310
|
-
data: {
|
|
3311
|
-
domain: "www.example.com",
|
|
3312
|
-
title: "Trail Runner",
|
|
3313
|
-
id: "/product/trail-runner"
|
|
3314
|
-
},
|
|
3315
|
-
id: "ev-page-view",
|
|
3316
|
-
trigger: "load",
|
|
3317
|
-
timestamp: 17e11,
|
|
3318
|
-
consent: {
|
|
3319
|
-
functional: true,
|
|
3320
|
-
marketing: true
|
|
3321
|
-
},
|
|
3322
|
-
globals: {
|
|
3323
|
-
language: "en",
|
|
3324
|
-
pageGroup: "product"
|
|
3325
|
-
},
|
|
3326
|
-
user: {
|
|
3327
|
-
device: "d3v1c3",
|
|
3328
|
-
session: "s3ss10n"
|
|
3329
|
-
},
|
|
3330
|
-
source: {
|
|
3331
|
-
type: "express",
|
|
3332
|
-
platform: "server"
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
|
-
}
|
|
3336
3362
|
}
|
|
3337
3363
|
},
|
|
3338
3364
|
dedup: {
|
|
@@ -3357,7 +3383,7 @@ var flow_complete_default = {
|
|
|
3357
3383
|
action: "complete",
|
|
3358
3384
|
data: {
|
|
3359
3385
|
id: "ORD-100",
|
|
3360
|
-
|
|
3386
|
+
value: 149.8,
|
|
3361
3387
|
currency: "EUR",
|
|
3362
3388
|
coupon: "WELCOME10"
|
|
3363
3389
|
},
|
|
@@ -3414,7 +3440,7 @@ var flow_complete_default = {
|
|
|
3414
3440
|
action: "complete",
|
|
3415
3441
|
data: {
|
|
3416
3442
|
id: "ORD-100",
|
|
3417
|
-
|
|
3443
|
+
value: 149.8,
|
|
3418
3444
|
currency: "EUR",
|
|
3419
3445
|
coupon: "WELCOME10"
|
|
3420
3446
|
},
|
|
@@ -3487,7 +3513,7 @@ var flow_complete_default = {
|
|
|
3487
3513
|
action: "complete",
|
|
3488
3514
|
data: {
|
|
3489
3515
|
id: "ORD-100",
|
|
3490
|
-
|
|
3516
|
+
value: 149.8,
|
|
3491
3517
|
currency: "EUR",
|
|
3492
3518
|
coupon: "WELCOME10"
|
|
3493
3519
|
},
|
|
@@ -3544,7 +3570,7 @@ var flow_complete_default = {
|
|
|
3544
3570
|
action: "complete",
|
|
3545
3571
|
data: {
|
|
3546
3572
|
id: "ORD-100",
|
|
3547
|
-
|
|
3573
|
+
value: 149.8,
|
|
3548
3574
|
currency: "EUR",
|
|
3549
3575
|
coupon: "WELCOME10"
|
|
3550
3576
|
},
|
|
@@ -3611,7 +3637,7 @@ var flow_complete_default = {
|
|
|
3611
3637
|
action: "complete",
|
|
3612
3638
|
data: {
|
|
3613
3639
|
id: "ORD-100",
|
|
3614
|
-
|
|
3640
|
+
value: 149.8,
|
|
3615
3641
|
currency: "EUR",
|
|
3616
3642
|
coupon: "WELCOME10"
|
|
3617
3643
|
},
|
|
@@ -3668,7 +3694,7 @@ var flow_complete_default = {
|
|
|
3668
3694
|
action: "complete",
|
|
3669
3695
|
data: {
|
|
3670
3696
|
id: "ORD-100",
|
|
3671
|
-
|
|
3697
|
+
value: 149.8,
|
|
3672
3698
|
currency: "EUR",
|
|
3673
3699
|
coupon: "WELCOME10"
|
|
3674
3700
|
},
|
|
@@ -3730,7 +3756,7 @@ var flow_complete_default = {
|
|
|
3730
3756
|
action: "complete",
|
|
3731
3757
|
data: {
|
|
3732
3758
|
id: "ORD-100",
|
|
3733
|
-
|
|
3759
|
+
value: 149.8,
|
|
3734
3760
|
currency: "EUR",
|
|
3735
3761
|
coupon: "WELCOME10"
|
|
3736
3762
|
},
|
|
@@ -3787,7 +3813,7 @@ var flow_complete_default = {
|
|
|
3787
3813
|
action: "complete",
|
|
3788
3814
|
data: {
|
|
3789
3815
|
id: "ORD-100",
|
|
3790
|
-
|
|
3816
|
+
value: 149.8,
|
|
3791
3817
|
currency: "EUR",
|
|
3792
3818
|
coupon: "WELCOME10"
|
|
3793
3819
|
},
|
|
@@ -3881,7 +3907,7 @@ var flow_complete_default = {
|
|
|
3881
3907
|
action: "complete",
|
|
3882
3908
|
data: {
|
|
3883
3909
|
id: "ORD-100",
|
|
3884
|
-
|
|
3910
|
+
value: 149.8,
|
|
3885
3911
|
currency: "EUR",
|
|
3886
3912
|
coupon: "WELCOME10"
|
|
3887
3913
|
},
|
|
@@ -3941,7 +3967,7 @@ var flow_complete_default = {
|
|
|
3941
3967
|
action: "complete",
|
|
3942
3968
|
data: {
|
|
3943
3969
|
id: "ORD-100",
|
|
3944
|
-
|
|
3970
|
+
value: 149.8,
|
|
3945
3971
|
currency: "EUR",
|
|
3946
3972
|
coupon: "WELCOME10"
|
|
3947
3973
|
},
|
|
@@ -4024,7 +4050,7 @@ var flow_complete_default = {
|
|
|
4024
4050
|
action: "complete",
|
|
4025
4051
|
data: {
|
|
4026
4052
|
id: "ORD-100",
|
|
4027
|
-
|
|
4053
|
+
value: 149.8,
|
|
4028
4054
|
currency: "EUR",
|
|
4029
4055
|
coupon: "WELCOME10"
|
|
4030
4056
|
},
|
|
@@ -4084,7 +4110,7 @@ var flow_complete_default = {
|
|
|
4084
4110
|
action: "complete",
|
|
4085
4111
|
data: {
|
|
4086
4112
|
id: "ORD-100",
|
|
4087
|
-
|
|
4113
|
+
value: 149.8,
|
|
4088
4114
|
currency: "EUR",
|
|
4089
4115
|
coupon: "WELCOME10"
|
|
4090
4116
|
},
|
|
@@ -4255,7 +4281,7 @@ var flow_complete_default = {
|
|
|
4255
4281
|
action: "complete",
|
|
4256
4282
|
data: {
|
|
4257
4283
|
id: "ORD-100",
|
|
4258
|
-
|
|
4284
|
+
value: 149.8,
|
|
4259
4285
|
currency: "EUR",
|
|
4260
4286
|
coupon: "WELCOME10"
|
|
4261
4287
|
},
|
|
@@ -4315,7 +4341,7 @@ var flow_complete_default = {
|
|
|
4315
4341
|
action: "complete",
|
|
4316
4342
|
data: {
|
|
4317
4343
|
id: "ORD-100",
|
|
4318
|
-
|
|
4344
|
+
value: 149.8,
|
|
4319
4345
|
currency: "EUR",
|
|
4320
4346
|
coupon: "WELCOME10"
|
|
4321
4347
|
},
|
|
@@ -4390,7 +4416,7 @@ var flow_complete_default = {
|
|
|
4390
4416
|
action: "complete",
|
|
4391
4417
|
data: {
|
|
4392
4418
|
id: "ORD-100",
|
|
4393
|
-
|
|
4419
|
+
value: 149.8,
|
|
4394
4420
|
currency: "EUR",
|
|
4395
4421
|
coupon: "WELCOME10"
|
|
4396
4422
|
},
|
|
@@ -4451,7 +4477,7 @@ var flow_complete_default = {
|
|
|
4451
4477
|
action: "complete",
|
|
4452
4478
|
data: {
|
|
4453
4479
|
id: "ORD-100",
|
|
4454
|
-
|
|
4480
|
+
value: 149.8,
|
|
4455
4481
|
currency: "EUR",
|
|
4456
4482
|
coupon: "WELCOME10"
|
|
4457
4483
|
},
|
|
@@ -4516,7 +4542,7 @@ var flow_complete_default = {
|
|
|
4516
4542
|
action: "complete",
|
|
4517
4543
|
data: {
|
|
4518
4544
|
id: "ORD-100",
|
|
4519
|
-
|
|
4545
|
+
value: 149.8,
|
|
4520
4546
|
currency: "EUR",
|
|
4521
4547
|
coupon: "WELCOME10"
|
|
4522
4548
|
},
|
|
@@ -4575,7 +4601,7 @@ var flow_complete_default = {
|
|
|
4575
4601
|
action: "complete",
|
|
4576
4602
|
data: {
|
|
4577
4603
|
id: "ORD-100",
|
|
4578
|
-
|
|
4604
|
+
value: 149.8,
|
|
4579
4605
|
currency: "EUR",
|
|
4580
4606
|
coupon: "WELCOME10"
|
|
4581
4607
|
},
|
|
@@ -4665,7 +4691,7 @@ var flow_complete_default = {
|
|
|
4665
4691
|
action: "complete",
|
|
4666
4692
|
data: {
|
|
4667
4693
|
id: "ORD-100",
|
|
4668
|
-
|
|
4694
|
+
value: 149.8,
|
|
4669
4695
|
currency: "EUR",
|
|
4670
4696
|
coupon: "WELCOME10"
|
|
4671
4697
|
},
|
|
@@ -4727,7 +4753,7 @@ var flow_complete_default = {
|
|
|
4727
4753
|
action: "complete",
|
|
4728
4754
|
data: {
|
|
4729
4755
|
id: "ORD-100",
|
|
4730
|
-
|
|
4756
|
+
value: 149.8,
|
|
4731
4757
|
currency: "EUR",
|
|
4732
4758
|
coupon: "WELCOME10"
|
|
4733
4759
|
},
|
|
@@ -4832,7 +4858,7 @@ var flow_complete_default = {
|
|
|
4832
4858
|
action: "complete",
|
|
4833
4859
|
data: {
|
|
4834
4860
|
id: "ORD-100",
|
|
4835
|
-
|
|
4861
|
+
value: 149.8,
|
|
4836
4862
|
currency: "EUR",
|
|
4837
4863
|
coupon: "WELCOME10"
|
|
4838
4864
|
},
|
|
@@ -4895,7 +4921,7 @@ var flow_complete_default = {
|
|
|
4895
4921
|
action: "complete",
|
|
4896
4922
|
data: {
|
|
4897
4923
|
id: "ORD-100",
|
|
4898
|
-
|
|
4924
|
+
value: 149.8,
|
|
4899
4925
|
currency: "EUR",
|
|
4900
4926
|
coupon: "WELCOME10"
|
|
4901
4927
|
},
|
|
@@ -4976,7 +5002,7 @@ var flow_complete_default = {
|
|
|
4976
5002
|
action: "complete",
|
|
4977
5003
|
data: {
|
|
4978
5004
|
id: "ORD-100",
|
|
4979
|
-
|
|
5005
|
+
value: 149.8,
|
|
4980
5006
|
currency: "EUR",
|
|
4981
5007
|
coupon: "WELCOME10"
|
|
4982
5008
|
},
|
|
@@ -5039,7 +5065,7 @@ var flow_complete_default = {
|
|
|
5039
5065
|
action: "complete",
|
|
5040
5066
|
data: {
|
|
5041
5067
|
id: "ORD-100",
|
|
5042
|
-
|
|
5068
|
+
value: 149.8,
|
|
5043
5069
|
currency: "EUR",
|
|
5044
5070
|
coupon: "WELCOME10"
|
|
5045
5071
|
},
|
|
@@ -5144,7 +5170,7 @@ var flow_complete_default = {
|
|
|
5144
5170
|
action: "complete",
|
|
5145
5171
|
data: {
|
|
5146
5172
|
id: "ORD-100",
|
|
5147
|
-
|
|
5173
|
+
value: 149.8,
|
|
5148
5174
|
currency: "EUR",
|
|
5149
5175
|
coupon: "WELCOME10"
|
|
5150
5176
|
},
|
|
@@ -5201,7 +5227,7 @@ var flow_complete_default = {
|
|
|
5201
5227
|
[
|
|
5202
5228
|
"PubSub.topic.publishMessage",
|
|
5203
5229
|
{
|
|
5204
|
-
data: '{"name":"order complete","data":{"id":"ORD-100","
|
|
5230
|
+
data: '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"4cdea64501d6109d0a25750a7ce1d5c87e5fc927c61b674f191b73e28b582c93","hash":"7f1b2860213c9d3d","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"timing":0,"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true,"count":1,"release":{"server":"4.6.1"}}}'
|
|
5205
5231
|
}
|
|
5206
5232
|
]
|
|
5207
5233
|
]
|
|
@@ -5251,7 +5277,7 @@ var flow_complete_default = {
|
|
|
5251
5277
|
},
|
|
5252
5278
|
data: {
|
|
5253
5279
|
map: {
|
|
5254
|
-
value: "data.
|
|
5280
|
+
value: "data.value",
|
|
5255
5281
|
currency: [
|
|
5256
5282
|
"data.currency",
|
|
5257
5283
|
{
|
|
@@ -5301,7 +5327,7 @@ var flow_complete_default = {
|
|
|
5301
5327
|
},
|
|
5302
5328
|
data: {
|
|
5303
5329
|
map: {
|
|
5304
|
-
value: "data.
|
|
5330
|
+
value: "data.value",
|
|
5305
5331
|
currency: [
|
|
5306
5332
|
"data.currency",
|
|
5307
5333
|
{
|
|
@@ -5318,7 +5344,7 @@ var flow_complete_default = {
|
|
|
5318
5344
|
action: "complete",
|
|
5319
5345
|
data: {
|
|
5320
5346
|
id: "ORD-100",
|
|
5321
|
-
|
|
5347
|
+
value: 149.8,
|
|
5322
5348
|
currency: "EUR",
|
|
5323
5349
|
coupon: "WELCOME10"
|
|
5324
5350
|
},
|
|
@@ -5460,7 +5486,7 @@ var flow_complete_default = {
|
|
|
5460
5486
|
name: "ecommerceOrder",
|
|
5461
5487
|
settings: {
|
|
5462
5488
|
goalId: "$env.PIWIK_ORDER_GOAL:6a0f4c1e-3b2d-4e8f-a7c9-1d2e3f4a5b6c",
|
|
5463
|
-
goalValue: "data.
|
|
5489
|
+
goalValue: "data.value"
|
|
5464
5490
|
},
|
|
5465
5491
|
data: {
|
|
5466
5492
|
set: [
|
|
@@ -5483,7 +5509,7 @@ var flow_complete_default = {
|
|
|
5483
5509
|
{
|
|
5484
5510
|
map: {
|
|
5485
5511
|
orderId: "data.id",
|
|
5486
|
-
grandTotal: "data.
|
|
5512
|
+
grandTotal: "data.value"
|
|
5487
5513
|
}
|
|
5488
5514
|
}
|
|
5489
5515
|
]
|
|
@@ -5506,7 +5532,7 @@ var flow_complete_default = {
|
|
|
5506
5532
|
name: "ecommerceOrder",
|
|
5507
5533
|
settings: {
|
|
5508
5534
|
goalId: "$env.PIWIK_ORDER_GOAL:6a0f4c1e-3b2d-4e8f-a7c9-1d2e3f4a5b6c",
|
|
5509
|
-
goalValue: "data.
|
|
5535
|
+
goalValue: "data.value"
|
|
5510
5536
|
},
|
|
5511
5537
|
data: {
|
|
5512
5538
|
set: [
|
|
@@ -5529,7 +5555,7 @@ var flow_complete_default = {
|
|
|
5529
5555
|
{
|
|
5530
5556
|
map: {
|
|
5531
5557
|
orderId: "data.id",
|
|
5532
|
-
grandTotal: "data.
|
|
5558
|
+
grandTotal: "data.value"
|
|
5533
5559
|
}
|
|
5534
5560
|
}
|
|
5535
5561
|
]
|
|
@@ -5541,7 +5567,7 @@ var flow_complete_default = {
|
|
|
5541
5567
|
action: "complete",
|
|
5542
5568
|
data: {
|
|
5543
5569
|
id: "ORD-100",
|
|
5544
|
-
|
|
5570
|
+
value: 149.8,
|
|
5545
5571
|
currency: "EUR",
|
|
5546
5572
|
coupon: "WELCOME10"
|
|
5547
5573
|
},
|
|
@@ -5633,7 +5659,7 @@ var flow_complete_default = {
|
|
|
5633
5659
|
data: {
|
|
5634
5660
|
map: {
|
|
5635
5661
|
transactionId: "data.id",
|
|
5636
|
-
conversionValue: "data.
|
|
5662
|
+
conversionValue: "data.value",
|
|
5637
5663
|
currency: [
|
|
5638
5664
|
"data.currency",
|
|
5639
5665
|
{
|
|
@@ -5667,7 +5693,7 @@ var flow_complete_default = {
|
|
|
5667
5693
|
data: {
|
|
5668
5694
|
map: {
|
|
5669
5695
|
transactionId: "data.id",
|
|
5670
|
-
conversionValue: "data.
|
|
5696
|
+
conversionValue: "data.value",
|
|
5671
5697
|
currency: [
|
|
5672
5698
|
"data.currency",
|
|
5673
5699
|
{
|
|
@@ -5684,7 +5710,7 @@ var flow_complete_default = {
|
|
|
5684
5710
|
action: "complete",
|
|
5685
5711
|
data: {
|
|
5686
5712
|
id: "ORD-100",
|
|
5687
|
-
|
|
5713
|
+
value: 149.8,
|
|
5688
5714
|
currency: "EUR",
|
|
5689
5715
|
coupon: "WELCOME10",
|
|
5690
5716
|
session: {
|
|
@@ -5765,13 +5791,13 @@ var flow_complete_default = {
|
|
|
5765
5791
|
bundle: {
|
|
5766
5792
|
packages: {
|
|
5767
5793
|
"@walkeros/collector": {
|
|
5768
|
-
version: "4.8.
|
|
5794
|
+
version: "4.8.3-next-1793115089237"
|
|
5769
5795
|
},
|
|
5770
5796
|
"@walkeros/server-source-gcp": {
|
|
5771
|
-
version: "4.8.
|
|
5797
|
+
version: "4.8.3-next-1793115089237"
|
|
5772
5798
|
},
|
|
5773
5799
|
"@walkeros/server-destination-gcp": {
|
|
5774
|
-
version: "4.8.
|
|
5800
|
+
version: "4.8.3-next-1793115089237"
|
|
5775
5801
|
}
|
|
5776
5802
|
}
|
|
5777
5803
|
}
|
|
@@ -5803,7 +5829,7 @@ var flow_complete_default = {
|
|
|
5803
5829
|
public: true,
|
|
5804
5830
|
in: {
|
|
5805
5831
|
id: "msg-1",
|
|
5806
|
-
dataString: '{"name":"order complete","entity":"order","action":"complete","data":{"id":"ORD-100","
|
|
5832
|
+
dataString: '{"name":"order complete","entity":"order","action":"complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"id":"ev-order-complete","trigger":"load","timestamp":1700000000000,"consent":{"functional":true,"marketing":true},"globals":{"language":"en","pageGroup":"checkout"},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"31b4ae339b671c9e81adbe27e74b38f09a4756300de6b81998c83a3964cbb849","hash":"5f1c0a9e7d3b2c41","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}]}',
|
|
5807
5833
|
attributes: {}
|
|
5808
5834
|
},
|
|
5809
5835
|
out: [
|
|
@@ -5815,7 +5841,7 @@ var flow_complete_default = {
|
|
|
5815
5841
|
action: "complete",
|
|
5816
5842
|
data: {
|
|
5817
5843
|
id: "ORD-100",
|
|
5818
|
-
|
|
5844
|
+
value: 149.8,
|
|
5819
5845
|
currency: "EUR",
|
|
5820
5846
|
coupon: "WELCOME10"
|
|
5821
5847
|
},
|
|
@@ -5907,7 +5933,7 @@ var flow_complete_default = {
|
|
|
5907
5933
|
action: "complete",
|
|
5908
5934
|
data: {
|
|
5909
5935
|
id: "ORD-100",
|
|
5910
|
-
|
|
5936
|
+
value: 149.8,
|
|
5911
5937
|
currency: "EUR",
|
|
5912
5938
|
coupon: "WELCOME10"
|
|
5913
5939
|
},
|
|
@@ -5965,7 +5991,7 @@ var flow_complete_default = {
|
|
|
5965
5991
|
[
|
|
5966
5992
|
{
|
|
5967
5993
|
name: "order complete",
|
|
5968
|
-
data: '{"id":"ORD-100","
|
|
5994
|
+
data: '{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"}',
|
|
5969
5995
|
context: null,
|
|
5970
5996
|
globals: '{"language":"en","pageGroup":"checkout"}',
|
|
5971
5997
|
custom: null,
|
|
@@ -6110,11 +6136,15 @@ var REFERENCE_RESOURCES = [
|
|
|
6110
6136
|
kind: "static",
|
|
6111
6137
|
name: "packages",
|
|
6112
6138
|
uri: "walkeros://reference/packages",
|
|
6113
|
-
description: "Complete walkerOS package catalog: all sources, destinations, transformers, and stores",
|
|
6139
|
+
description: "Complete walkerOS package catalog: all sources, destinations, transformers, and stores, as { catalog, count, warnings? }. A failed npm search answers an empty catalog with a warning that says so.",
|
|
6114
6140
|
mimeType: JSON_MIME,
|
|
6115
6141
|
read: async () => {
|
|
6116
|
-
const { entries } = await fetchCatalog();
|
|
6117
|
-
return json(
|
|
6142
|
+
const { entries, warnings } = await fetchCatalog();
|
|
6143
|
+
return json({
|
|
6144
|
+
catalog: entries,
|
|
6145
|
+
count: entries.length,
|
|
6146
|
+
...warnings.length > 0 ? { warnings } : {}
|
|
6147
|
+
});
|
|
6118
6148
|
}
|
|
6119
6149
|
}
|
|
6120
6150
|
];
|
|
@@ -6845,7 +6875,7 @@ Every component in a flow is a **step**: sources capture events, transformers pr
|
|
|
6845
6875
|
- **Consent** gates destinations (\`config.consent\`) and individual fields (a value's \`consent\`). A mapping rule's \`consent\` is not enforced yet. Privacy-first by design.
|
|
6846
6876
|
- **Routing** uses one grammar in every chain field (\`source.before\`, \`source.next\`, \`transformer.before\`, \`transformer.next\`, \`collector.next\`, \`destination.before\`, \`destination.next\`). A route is a string ID, a sequence (\`["a", "b"]\`), or a RouteConfig: \`{ match?, next }\`, \`{ match?, one: [...] }\` (first match wins), \`{ match?, many: [...] }\` (every match becomes its own copy of the event with its own id and finishes the rest of the path on its own, never merged), or \`{ match?, stop: true }\` (ends that copy). In a sequence, a member's own \`next\` runs right after it, then the sequence continues. \`match\` reads \`{ ingest, event }\` and each route is evaluated when the event reaches it. A \`stop\` in \`collector.next\` drops the event for every destination; per-destination filtering belongs in \`destination.before\`. An array of only route configs is an implicit \`one\`. The optional \`match\` field is omitted to mean always-match (no wildcard literal).
|
|
6847
6877
|
- **Pass-through steps** are transformer entries with no \`code\` and no \`package\`. The runtime synthesizes the push for them automatically. Three flavors share this shape: a \`before\` / \`next\`-only step (named hop reusable across destinations), a \`cache\`-only step (dedup, rate-limit), and a \`mapping\`-only step (declarative event-to-event transform). A pass-through must declare at least one of \`before\`, \`next\`, \`cache\`, or \`mapping\`.
|
|
6848
|
-
- **Mapping at the transformer position** uses the same \`Mapping.Config\` shape as destinations, but the semantic is event-to-event: only config-level \`policy\` and a rule's \`condition\`, \`policy\`, \`name\` (rename) and \`ignore\` (drop from chain) apply. Everything that shapes a vendor payload or gates a destination is a no-op there: config-level \`consent\`, \`include\`, \`data\`, and a rule's \`consent\`, \`include\`, \`remove\`, \`batch\`, \`settings\`, \`extend\`, \`data\`, \`silent
|
|
6878
|
+
- **Mapping at the transformer position** uses the same \`Mapping.Config\` shape as destinations, but the semantic is event-to-event: only config-level \`policy\` and a rule's \`condition\`, \`policy\`, \`name\` (rename) and \`ignore\` (drop from chain) apply. Everything that shapes a vendor payload or gates a destination is a no-op there: config-level \`consent\`, \`include\`, \`data\`, and a rule's \`consent\`, \`include\`, \`remove\`, \`batch\`, \`settings\`, \`extend\`, \`data\`, \`silent\`. At a source only config-level \`consent\` and \`policy\` and a rule's \`condition\`, \`policy\`, \`name\` and \`ignore\` apply (edit the event there with \`policy\`); at a destination a rule's \`extend\` applies only inside a package's own \`settings.mapping\`. Validation and the bundle reject these keys (\`MAPPING_NO_OP\`). A \`config.mapping\` wins over a step-level \`mapping\`.
|
|
6849
6879
|
- **Closed-schema rule on transformer entries:** known keys only. Operative keys are \`code\`, \`package\`, \`before\`, \`next\`, \`cache\`, \`mapping\`. Combined with structural keys (\`config\`, \`env\`, \`validate\`, \`disabled\`, \`id\`, etc.). Unknown top-level keys on a transformer step are errors (catches typos like \`dedup: {}\` instead of nested under \`cache\`). \`code\` + \`package\` together is a conflict.
|
|
6850
6880
|
- **Cache** memoizes step output on a configured store. Set \`cache.stop: true\` to short-circuit the chain on HIT (sources default to stop-on-HIT); in a source chain or \`collector.next\` that halts the event for all destinations. Set \`cache.namespace\` to prefix keys; omit it to write keys directly. \`CacheRule.match\` is optional, omit for always-match.
|
|
6851
6881
|
|
|
@@ -7207,7 +7237,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
7207
7237
|
});
|
|
7208
7238
|
async function main() {
|
|
7209
7239
|
const server = createWalkerOSMcpServer({
|
|
7210
|
-
version: "4.8.
|
|
7240
|
+
version: "4.8.3-next-1793115089237",
|
|
7211
7241
|
runtime: createLocalRuntime()
|
|
7212
7242
|
});
|
|
7213
7243
|
const transport = new StdioServerTransport();
|
|
@@ -7218,7 +7248,7 @@ main().catch(async (error) => {
|
|
|
7218
7248
|
try {
|
|
7219
7249
|
const emitter = await createMcpEmitter({
|
|
7220
7250
|
clientInfo: void 0,
|
|
7221
|
-
packageVersion: "4.8.
|
|
7251
|
+
packageVersion: "4.8.3-next-1793115089237"
|
|
7222
7252
|
});
|
|
7223
7253
|
await emitter.emitError("startup");
|
|
7224
7254
|
} catch {
|