@forklaunch/core 4.1.0 → 4.1.1

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.
@@ -1634,7 +1634,11 @@ import { getEnvVar as getEnvVar3 } from "@forklaunch/common";
1634
1634
  // src/persistence/encryptedType.ts
1635
1635
  import { Type } from "@mikro-orm/core";
1636
1636
  import { AsyncLocalStorage } from "async_hooks";
1637
- var _tenantContext = new AsyncLocalStorage();
1637
+ var _encryptionState = globalThis[/* @__PURE__ */ Symbol.for("forklaunch.persistence.encryptionState")] ??= {
1638
+ encryptor: void 0,
1639
+ tenantContext: new AsyncLocalStorage()
1640
+ };
1641
+ var _tenantContext = _encryptionState.tenantContext;
1638
1642
 
1639
1643
  // src/persistence/complianceChanges.ts
1640
1644
  var LISTENERS = globalThis[/* @__PURE__ */ Symbol.for("forklaunch.compliance.changeListeners")] ??= /* @__PURE__ */ new Set();
@@ -5142,7 +5146,12 @@ var getCodeForStatus = (status) => {
5142
5146
  var httpStatusCodes_default = HTTPStatuses;
5143
5147
 
5144
5148
  // src/http/mcpGenerator/mcpGenerator.ts
5145
- import { isNever as isNever3, isRecord as isRecord3, safeStringify as safeStringify3 } from "@forklaunch/common";
5149
+ import {
5150
+ isNever as isNever3,
5151
+ isRecord as isRecord3,
5152
+ safeStringify as safeStringify3,
5153
+ toPlainString
5154
+ } from "@forklaunch/common";
5146
5155
  import { string, ZodSchemaValidator } from "@forklaunch/validator/zod";
5147
5156
  import { FastMCP } from "fastmcp";
5148
5157
 
@@ -5491,7 +5500,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
5491
5500
  break;
5492
5501
  }
5493
5502
  case "file": {
5494
- parsedBody = Buffer.from(safeStringify3(body));
5503
+ parsedBody = Buffer.from(toPlainString(body));
5495
5504
  break;
5496
5505
  }
5497
5506
  case "multipart": {
@@ -5525,7 +5534,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
5525
5534
  parsedBody = new URLSearchParams(
5526
5535
  Object.entries(body).map(([key, value]) => [
5527
5536
  key,
5528
- safeStringify3(value)
5537
+ toPlainString(value)
5529
5538
  ])
5530
5539
  );
5531
5540
  } else {
@@ -5544,7 +5553,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
5544
5553
  const queryString = new URLSearchParams(
5545
5554
  Object.entries(query).map(([key, value]) => [
5546
5555
  key,
5547
- safeStringify3(value)
5556
+ toPlainString(value)
5548
5557
  ])
5549
5558
  ).toString();
5550
5559
  url += queryString ? `?${queryString}` : "";