@walkeros/mcp 4.9.0-next-1793116456867 → 4.9.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/dist/{chunk-O6D2H7LO.js → chunk-JNHA43L2.js} +59 -29
- package/dist/chunk-JNHA43L2.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/specs.js +1 -1
- package/dist/stdio.js +63 -33
- package/dist/stdio.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-O6D2H7LO.js.map +0 -1
package/dist/stdio.js
CHANGED
|
@@ -281,7 +281,7 @@ var NPM_SEARCH_URL = "https://registry.npmjs.org/-/v1/search";
|
|
|
281
281
|
var JSDELIVR_BASE = "https://cdn.jsdelivr.net/npm";
|
|
282
282
|
var WALKEROS_JSON_PATH = "dist/walkerOS.json";
|
|
283
283
|
var CACHE_TTL = 5 * 60 * 1e3;
|
|
284
|
-
var CLIENT_HEADER = "walkeros-mcp/4.9.0
|
|
284
|
+
var CLIENT_HEADER = "walkeros-mcp/4.9.0";
|
|
285
285
|
var cached;
|
|
286
286
|
function normalizePlatform(platform) {
|
|
287
287
|
if (platform == null) return [];
|
|
@@ -1180,25 +1180,25 @@ var flow_complete_default = {
|
|
|
1180
1180
|
bundle: {
|
|
1181
1181
|
packages: {
|
|
1182
1182
|
"@walkeros/collector": {
|
|
1183
|
-
version: "4.9.0
|
|
1183
|
+
version: "4.9.0"
|
|
1184
1184
|
},
|
|
1185
1185
|
"@walkeros/web-source-cmp-usercentrics": {
|
|
1186
|
-
version: "4.9.0
|
|
1186
|
+
version: "4.9.0"
|
|
1187
1187
|
},
|
|
1188
1188
|
"@walkeros/web-source-session": {
|
|
1189
|
-
version: "4.9.0
|
|
1189
|
+
version: "4.9.0"
|
|
1190
1190
|
},
|
|
1191
1191
|
"@walkeros/web-source-datalayer": {
|
|
1192
|
-
version: "4.9.0
|
|
1192
|
+
version: "4.9.0"
|
|
1193
1193
|
},
|
|
1194
1194
|
"@walkeros/web-source-browser": {
|
|
1195
|
-
version: "4.9.0
|
|
1195
|
+
version: "4.9.0"
|
|
1196
1196
|
},
|
|
1197
1197
|
"@walkeros/web-destination-gtag": {
|
|
1198
|
-
version: "4.9.0
|
|
1198
|
+
version: "4.9.0"
|
|
1199
1199
|
},
|
|
1200
1200
|
"@walkeros/web-destination-api": {
|
|
1201
|
-
version: "4.9.0
|
|
1201
|
+
version: "4.9.0"
|
|
1202
1202
|
}
|
|
1203
1203
|
},
|
|
1204
1204
|
env: {
|
|
@@ -2717,40 +2717,40 @@ var flow_complete_default = {
|
|
|
2717
2717
|
bundle: {
|
|
2718
2718
|
packages: {
|
|
2719
2719
|
"@walkeros/collector": {
|
|
2720
|
-
version: "4.9.0
|
|
2720
|
+
version: "4.9.0"
|
|
2721
2721
|
},
|
|
2722
2722
|
"@walkeros/server-source-express": {
|
|
2723
|
-
version: "4.9.0
|
|
2723
|
+
version: "4.9.0"
|
|
2724
2724
|
},
|
|
2725
2725
|
"@walkeros/transformer-ga4": {
|
|
2726
|
-
version: "4.9.0
|
|
2726
|
+
version: "4.9.0"
|
|
2727
2727
|
},
|
|
2728
2728
|
"@walkeros/transformer-validate": {
|
|
2729
|
-
version: "4.9.0
|
|
2729
|
+
version: "4.9.0"
|
|
2730
2730
|
},
|
|
2731
2731
|
"@walkeros/server-transformer-bot": {
|
|
2732
|
-
version: "4.9.0
|
|
2732
|
+
version: "4.9.0"
|
|
2733
2733
|
},
|
|
2734
2734
|
"@walkeros/server-transformer-fingerprint": {
|
|
2735
|
-
version: "4.9.0
|
|
2735
|
+
version: "4.9.0"
|
|
2736
2736
|
},
|
|
2737
2737
|
"@walkeros/server-transformer-file": {
|
|
2738
|
-
version: "4.9.0
|
|
2738
|
+
version: "4.9.0"
|
|
2739
2739
|
},
|
|
2740
2740
|
"@walkeros/server-store-fs": {
|
|
2741
|
-
version: "4.9.0
|
|
2741
|
+
version: "4.9.0"
|
|
2742
2742
|
},
|
|
2743
2743
|
"@walkeros/server-destination-gcp": {
|
|
2744
|
-
version: "4.9.0
|
|
2744
|
+
version: "4.9.0"
|
|
2745
2745
|
},
|
|
2746
2746
|
"@walkeros/server-destination-meta": {
|
|
2747
|
-
version: "4.9.0
|
|
2747
|
+
version: "4.9.0"
|
|
2748
2748
|
},
|
|
2749
2749
|
"@walkeros/server-destination-piwikpro": {
|
|
2750
|
-
version: "4.9.0
|
|
2750
|
+
version: "4.9.0"
|
|
2751
2751
|
},
|
|
2752
2752
|
"@walkeros/server-destination-datamanager": {
|
|
2753
|
-
version: "4.9.0
|
|
2753
|
+
version: "4.9.0"
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
2756
|
}
|
|
@@ -2820,6 +2820,10 @@ var flow_complete_default = {
|
|
|
2820
2820
|
{
|
|
2821
2821
|
path: "/walker.js",
|
|
2822
2822
|
methods: ["GET"]
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
path: "/demo/products/:id",
|
|
2826
|
+
methods: ["GET"]
|
|
2823
2827
|
}
|
|
2824
2828
|
],
|
|
2825
2829
|
cors: {
|
|
@@ -2881,6 +2885,14 @@ var flow_complete_default = {
|
|
|
2881
2885
|
value: "/g/collect"
|
|
2882
2886
|
},
|
|
2883
2887
|
stop: true
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
match: {
|
|
2891
|
+
key: "ingest.path",
|
|
2892
|
+
operator: "prefix",
|
|
2893
|
+
value: "/demo/products/"
|
|
2894
|
+
},
|
|
2895
|
+
next: "productApi"
|
|
2884
2896
|
}
|
|
2885
2897
|
]
|
|
2886
2898
|
},
|
|
@@ -3351,6 +3363,7 @@ var flow_complete_default = {
|
|
|
3351
3363
|
},
|
|
3352
3364
|
config: {
|
|
3353
3365
|
settings: {
|
|
3366
|
+
prefix: "/",
|
|
3354
3367
|
headers: {
|
|
3355
3368
|
"Cache-Control": "public, max-age=300",
|
|
3356
3369
|
"Cross-Origin-Resource-Policy": "same-site"
|
|
@@ -3361,6 +3374,23 @@ var flow_complete_default = {
|
|
|
3361
3374
|
stop: true
|
|
3362
3375
|
}
|
|
3363
3376
|
},
|
|
3377
|
+
productApi: {
|
|
3378
|
+
package: "@walkeros/server-transformer-file",
|
|
3379
|
+
env: {
|
|
3380
|
+
store: "$store.assets"
|
|
3381
|
+
},
|
|
3382
|
+
config: {
|
|
3383
|
+
settings: {
|
|
3384
|
+
prefix: "/demo/",
|
|
3385
|
+
headers: {
|
|
3386
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
},
|
|
3390
|
+
next: {
|
|
3391
|
+
stop: true
|
|
3392
|
+
}
|
|
3393
|
+
},
|
|
3364
3394
|
dedup: {
|
|
3365
3395
|
cache: {
|
|
3366
3396
|
stop: true,
|
|
@@ -3497,7 +3527,7 @@ var flow_complete_default = {
|
|
|
3497
3527
|
package: "@walkeros/server-transformer-fingerprint",
|
|
3498
3528
|
config: {
|
|
3499
3529
|
settings: {
|
|
3500
|
-
salt: "$
|
|
3530
|
+
salt: "$secret.FINGERPRINT_SALT",
|
|
3501
3531
|
length: 16,
|
|
3502
3532
|
site: ["event.source.url", "ingest.origin"]
|
|
3503
3533
|
}
|
|
@@ -4981,7 +5011,7 @@ var flow_complete_default = {
|
|
|
4981
5011
|
package: "@walkeros/server-transformer-fingerprint",
|
|
4982
5012
|
config: {
|
|
4983
5013
|
settings: {
|
|
4984
|
-
salt: "$
|
|
5014
|
+
salt: "$secret.EMAIL_SALT",
|
|
4985
5015
|
rotate: "none",
|
|
4986
5016
|
output: "user.email",
|
|
4987
5017
|
fields: [
|
|
@@ -5243,7 +5273,7 @@ var flow_complete_default = {
|
|
|
5243
5273
|
},
|
|
5244
5274
|
settings: {
|
|
5245
5275
|
pixelId: "$env.META_PIXEL_ID:1234567890",
|
|
5246
|
-
accessToken: "$
|
|
5276
|
+
accessToken: "$secret.META_ACCESS_TOKEN",
|
|
5247
5277
|
action_source: "website",
|
|
5248
5278
|
user_data: {
|
|
5249
5279
|
em: {
|
|
@@ -5791,13 +5821,13 @@ var flow_complete_default = {
|
|
|
5791
5821
|
bundle: {
|
|
5792
5822
|
packages: {
|
|
5793
5823
|
"@walkeros/collector": {
|
|
5794
|
-
version: "4.9.0
|
|
5824
|
+
version: "4.9.0"
|
|
5795
5825
|
},
|
|
5796
5826
|
"@walkeros/server-source-gcp": {
|
|
5797
|
-
version: "4.9.0
|
|
5827
|
+
version: "4.9.0"
|
|
5798
5828
|
},
|
|
5799
5829
|
"@walkeros/server-destination-gcp": {
|
|
5800
|
-
version: "4.9.0
|
|
5830
|
+
version: "4.9.0"
|
|
5801
5831
|
}
|
|
5802
5832
|
}
|
|
5803
5833
|
}
|
|
@@ -6261,9 +6291,9 @@ var SETUP_MAPPING_PROMPT = {
|
|
|
6261
6291
|
"Extract shared mapping shapes into variables, reference via $var.name (deep paths supported).",
|
|
6262
6292
|
"",
|
|
6263
6293
|
"Policy and consent in mapping:",
|
|
6264
|
-
"- config.policy
|
|
6294
|
+
"- config.policy shapes the event before its data is mapped; use it to inject or redact fields on the event. A destination selects its rule earlier, as the event enters it, so policy does not change which rule applies.",
|
|
6265
6295
|
"- rule.policy runs after config.policy but before data transformation; use for event-specific pre-processing.",
|
|
6266
|
-
"- config.consent gates ALL events to this destination. rule.consent is
|
|
6296
|
+
"- config.consent gates ALL events to this destination. rule.consent adds a requirement for the events its rule matches: both must hold. The rule is selected as the event enters the destination; denied events wait (web) or are skipped (server).",
|
|
6267
6297
|
"- Individual value configs support consent: { marketing: true } for field-level gating."
|
|
6268
6298
|
].join("\n")
|
|
6269
6299
|
}
|
|
@@ -6872,10 +6902,10 @@ Every component in a flow is a **step**: sources capture events, transformers pr
|
|
|
6872
6902
|
- **Mapping** transforms events using data/map/loop/set/condition rules. Same syntax on sources and destinations. Mapping rules use NESTED entity \u2192 action keying: event name "product add" maps to \`{ "product": { "add": Rule } }\`. Wildcards: \`{ "*": { "view": Rule } }\`.
|
|
6873
6903
|
- **Contracts** define event schemas using entity-action keying. Can generate FROM mappings or scaffold mappings FROM contracts.
|
|
6874
6904
|
- **Variables** ($var, $env, $secret, $code, $store) enable DRY, environment-aware config. \`$var.name\` is a reusable flow variable from the top-level \`variables\` block; whole-string refs preserve native type (object/array/scalar), inline interpolation requires a scalar, deep paths via \`$var.name.deep.path\`. \`$env.NAME[:default]\` is an environment variable resolved at bundle/deploy time (non-secret config only). \`$secret.NAME\` is a managed secret the deploy pipeline injects into the server runner at runtime; credentials, tokens, and private keys must use \`$secret\`, not \`$env\`.
|
|
6875
|
-
- **Consent** gates destinations (\`config.consent\`)
|
|
6905
|
+
- **Consent** gates destinations (\`config.consent\`), the events a mapping rule matches (the rule's \`consent\`, on top of the destination's) and individual fields (a value's \`consent\`). Privacy-first by design.
|
|
6876
6906
|
- **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).
|
|
6877
6907
|
- **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\`.
|
|
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\`.
|
|
6908
|
+
- **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\`, \`consent\`, \`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\`.
|
|
6879
6909
|
- **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.
|
|
6880
6910
|
- **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.
|
|
6881
6911
|
|
|
@@ -6884,7 +6914,7 @@ Every component in a flow is a **step**: sources capture events, transformers pr
|
|
|
6884
6914
|
- Destinations with \`require: ["consent"]\` stay **pending** until a \`"walker consent"\` event fires. Simulation will error "not found" for pending destinations, remove \`require\` from config when testing with \`flow_simulate\`.
|
|
6885
6915
|
- Destinations with \`consent: { marketing: true }\` silently skip events that lack matching consent. Include \`consent\` in the event: \`{ name: "page view", data: {...}, consent: { marketing: true } }\`.
|
|
6886
6916
|
- **Mapping** transforms event names and data at the destination level. Events without a matching mapping rule pass through unmodified.
|
|
6887
|
-
- **Policy**
|
|
6917
|
+
- **Policy** shapes the event before its data is mapped (inject computed fields, redact sensitive data). A destination selects its rule as the event enters it, before policy and its \`before\` chain.
|
|
6888
6918
|
|
|
6889
6919
|
## Reference Resources
|
|
6890
6920
|
|
|
@@ -7237,7 +7267,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
7237
7267
|
});
|
|
7238
7268
|
async function main() {
|
|
7239
7269
|
const server = createWalkerOSMcpServer({
|
|
7240
|
-
version: "4.9.0
|
|
7270
|
+
version: "4.9.0",
|
|
7241
7271
|
runtime: createLocalRuntime()
|
|
7242
7272
|
});
|
|
7243
7273
|
const transport = new StdioServerTransport();
|
|
@@ -7248,7 +7278,7 @@ main().catch(async (error) => {
|
|
|
7248
7278
|
try {
|
|
7249
7279
|
const emitter = await createMcpEmitter({
|
|
7250
7280
|
clientInfo: void 0,
|
|
7251
|
-
packageVersion: "4.9.0
|
|
7281
|
+
packageVersion: "4.9.0"
|
|
7252
7282
|
});
|
|
7253
7283
|
await emitter.emitError("startup");
|
|
7254
7284
|
} catch {
|