@walkeros/mcp 4.2.1 → 4.2.2-next-1782892388850

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/stdio.js CHANGED
@@ -722,7 +722,7 @@ var NPM_SEARCH_URL = "https://registry.npmjs.org/-/v1/search";
722
722
  var JSDELIVR_BASE = "https://cdn.jsdelivr.net/npm";
723
723
  var WALKEROS_JSON_PATH = "dist/walkerOS.json";
724
724
  var CACHE_TTL = 5 * 60 * 1e3;
725
- var CLIENT_HEADER = "walkeros-mcp/4.2.1";
725
+ var CLIENT_HEADER = "walkeros-mcp/4.2.2-next-1782892388850";
726
726
  function getPackageBaseUrl() {
727
727
  return process.env.WALKEROS_APP_URL || void 0;
728
728
  }
@@ -1466,7 +1466,7 @@ async function feedbackHandlerBody(client, input) {
1466
1466
  const isAnonymous = explicitAnonymous ?? anonymous ?? true;
1467
1467
  await client.submitFeedback(text, {
1468
1468
  anonymous: isAnonymous,
1469
- version: "4.2.1"
1469
+ version: "4.2.2-next-1782892388850"
1470
1470
  });
1471
1471
  return mcpResult8({ ok: true });
1472
1472
  } catch (error) {
@@ -15965,7 +15965,7 @@ function registerDeployTool(server, client) {
15965
15965
  import { z as z12 } from "zod";
15966
15966
  import { mcpResult as mcpResult14, mcpError as mcpError13 } from "@walkeros/core";
15967
15967
  var TITLE13 = "Secret Management";
15968
- var DESCRIPTION13 = "Manage a flow\u2019s secrets (the $env.<NAME> values its steps reference at deploy/run time). Actions: list (metadata only), set (create), update (rotate value), delete. Secrets are write-mostly: values are encrypted at rest and are NEVER returned, listed, or echoed. Reference a secret from a flow step as $env.<NAME>.";
15968
+ var DESCRIPTION13 = "Manage a flow\u2019s managed secrets (the $secret.<NAME> values its steps reference at deploy/run time). Actions: list (metadata only), set (create), update (rotate value), delete. Secrets are write-mostly: values are encrypted at rest and are NEVER returned, listed, or echoed. Reference a secret from a flow step as $secret.<NAME>. Credentials, tokens, and private keys must use $secret, not $env: the deploy pipeline only injects values referenced as $secret.<NAME> into the server runner. Server flows only.";
15969
15969
  var inputSchema13 = {
15970
15970
  action: z12.enum(["list", "set", "update", "delete"]).describe("Secret management action to perform"),
15971
15971
  projectId: z12.string().optional().describe(
@@ -15978,7 +15978,7 @@ var inputSchema13 = {
15978
15978
  /^[A-Z_][A-Z0-9_]*$/,
15979
15979
  "Secret name must be uppercase letters, digits, and underscores, starting with a letter or underscore."
15980
15980
  ).optional().describe(
15981
- "Secret name (UPPER_SNAKE_CASE). Required for set. Referenced in flows as $env.<NAME>."
15981
+ "Secret name (UPPER_SNAKE_CASE). Required for set. Referenced in flows as $secret.<NAME>."
15982
15982
  ),
15983
15983
  value: z12.string().min(1).max(65536).optional().describe(
15984
15984
  "Secret value (1-65536 chars). Required for set and update. Write-only: never returned or logged."
@@ -16025,7 +16025,7 @@ async function secretManageHandlerBody(client, input) {
16025
16025
  });
16026
16026
  return mcpResult14(data, {
16027
16027
  next: [
16028
- "Reference a listed secret from a flow step as $env.<NAME>.",
16028
+ "Reference a listed secret from a flow step as $secret.<NAME>.",
16029
16029
  'Use action "set" to add a secret or "update" to rotate one.'
16030
16030
  ]
16031
16031
  });
@@ -16041,7 +16041,7 @@ async function secretManageHandlerBody(client, input) {
16041
16041
  value
16042
16042
  });
16043
16043
  return mcpResult14(created, {
16044
- next: [`Reference it in this flow as $env.${name}.`]
16044
+ next: [`Reference it in this flow as $secret.${name}.`]
16045
16045
  });
16046
16046
  }
16047
16047
  case "update": {
@@ -16232,13 +16232,13 @@ function registerReferenceResources(server) {
16232
16232
  patterns: {
16233
16233
  "$var.name": "Variable reference. Whole-string preserves native type (object, array, scalar). Inline interpolation requires a scalar. Reusable fragments (mapping templates, matcher lists, consent objects) live in the variables block and are referenced by name.",
16234
16234
  "$var.name.deep.path": "Deep-path access into a structured variable. Walks nested keys/indices. Whole-string preserves type at the leaf; inline still requires a scalar leaf.",
16235
- "$env.NAME": "Environment variable. $env.GA_ID reads process.env.GA_ID.",
16235
+ "$env.NAME": "Environment variable, resolved at bundle/deploy time. $env.GA_ID reads process.env.GA_ID. Use for non-secret config (IDs, hostnames, regions), never for credentials.",
16236
16236
  "$env.NAME:default": "Environment variable with fallback. $env.GA_ID:G-DEFAULT (the `:` is the literal default separator).",
16237
16237
  "$contract.name": "Contract reference. Links to a named contract for validation.",
16238
16238
  "$contract.name.path": "Nested contract access. $contract.ecommerce.product.",
16239
16239
  "$code:(expr)": "Inline JavaScript. $code:(event) => event.data.price * 100 (the `:` carries the raw-code payload).",
16240
16240
  "$store.storeId": "Store injection in env values. Wires runtime store access.",
16241
- "$secret.NAME": "Secret injection. Resolved server-side at deploy/runtime."
16241
+ "$secret.NAME": "Managed secret injection (created via the secret manager). The deploy pipeline detects $secret.NAME references and injects the secret value into the server runner\u2019s environment at runtime. Use for credentials, tokens, and private keys. Server flows only; $env does NOT inject managed secrets."
16242
16242
  },
16243
16243
  cascade: {
16244
16244
  priority: [
@@ -16561,7 +16561,7 @@ Every component in a flow is a **step**: sources capture events, transformers pr
16561
16561
 
16562
16562
  - **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 } }\`.
16563
16563
  - **Contracts** define event schemas using entity-action keying. Can generate FROM mappings or scaffold mappings FROM contracts.
16564
- - **Variables** ($var, $env, $code, $store) enable DRY, environment-aware config. Whole-string \`$var.name\` references preserve native type (object/array/scalar); inline interpolation requires a scalar. Deep paths via \`$var.name.deep.path\`.
16564
+ - **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\`.
16565
16565
  - **Consent** gates destinations, mapping rules, and individual fields. Privacy-first by design.
16566
16566
  - **Routing** wires steps via \`next\` (pre-collector) and \`before\` (post-collector). A route is a string ID, a sequence (\`["a", "b"]\`), or a RouteConfig (\`{ match?, next }\` or \`{ match?, one: [...] }\`). The \`one\` operator dispatches first-match against an ordered list of branches. Use \`many\` (instead of \`one\`) when every matching entry should run as an independent parallel flow \u2014 restricted to pre-collector positions. The optional \`match\` field is omitted to mean always-match (no wildcard literal).
16567
16567
  - **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\`.
@@ -16864,7 +16864,7 @@ var HttpToolClient = class {
16864
16864
  };
16865
16865
 
16866
16866
  // src/stdio.ts
16867
- setClientContext({ type: "mcp", version: "4.2.1" });
16867
+ setClientContext({ type: "mcp", version: "4.2.2-next-1782892388850" });
16868
16868
  process.on("uncaughtException", (err) => {
16869
16869
  const emitter = getMcpEmitterSingleton();
16870
16870
  if (emitter) {
@@ -16884,7 +16884,7 @@ process.on("unhandledRejection", (reason) => {
16884
16884
  async function main() {
16885
16885
  const server = createWalkerOSMcpServer({
16886
16886
  client: new HttpToolClient(),
16887
- version: "4.2.1"
16887
+ version: "4.2.2-next-1782892388850"
16888
16888
  });
16889
16889
  const transport = new StdioServerTransport();
16890
16890
  await server.connect(transport);
@@ -16894,7 +16894,7 @@ main().catch(async (error) => {
16894
16894
  try {
16895
16895
  const emitter = await createMcpEmitter({
16896
16896
  clientInfo: void 0,
16897
- packageVersion: "4.2.1"
16897
+ packageVersion: "4.2.2-next-1782892388850"
16898
16898
  });
16899
16899
  await emitter.emitError("startup");
16900
16900
  } catch {