@forklaunch/core 4.1.0 → 4.2.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/lib/agent/agent.d.ts +14 -0
- package/lib/agent/agent.d.ts.map +1 -1
- package/lib/agent/approvals.d.ts +52 -0
- package/lib/agent/approvals.d.ts.map +1 -0
- package/lib/agent/continuation.d.ts +28 -3
- package/lib/agent/continuation.d.ts.map +1 -1
- package/lib/agent/index.d.ts +4 -2
- package/lib/agent/index.d.ts.map +1 -1
- package/lib/agent/index.js +191 -50
- package/lib/agent/index.js.map +1 -1
- package/lib/agent/index.mjs +185 -49
- package/lib/agent/index.mjs.map +1 -1
- package/lib/agent/types.d.ts +22 -2
- package/lib/agent/types.d.ts.map +1 -1
- package/lib/http/index.js +9 -6
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +15 -7
- package/lib/http/index.mjs.map +1 -1
- package/lib/http/mcpGenerator/mcpGenerator.d.ts.map +1 -1
- package/lib/http/telemetry/pinoLogger.d.ts +2 -1
- package/lib/http/telemetry/pinoLogger.d.ts.map +1 -1
- package/lib/persistence/compliancePropertyBuilder.d.ts.map +1 -1
- package/lib/persistence/complianceTypes.d.ts.map +1 -1
- package/lib/persistence/encryptedType.d.ts.map +1 -1
- package/lib/persistence/index.js +27 -12
- package/lib/persistence/index.js.map +1 -1
- package/lib/persistence/index.mjs +28 -13
- package/lib/persistence/index.mjs.map +1 -1
- package/lib/services/index.js +82 -19
- package/lib/services/index.js.map +1 -1
- package/lib/services/index.mjs +82 -19
- package/lib/services/index.mjs.map +1 -1
- package/lib/services/runRetentionEnforcement.d.ts +33 -2
- package/lib/services/runRetentionEnforcement.d.ts.map +1 -1
- package/package.json +13 -14
package/lib/http/index.mjs
CHANGED
|
@@ -300,8 +300,7 @@ function isForklaunchRequest(request) {
|
|
|
300
300
|
|
|
301
301
|
// src/http/telemetry/pinoLogger.ts
|
|
302
302
|
import { isNever } from "@forklaunch/common";
|
|
303
|
-
import { trace } from "@opentelemetry/api";
|
|
304
|
-
import { logs } from "@opentelemetry/api-logs";
|
|
303
|
+
import { logs, trace } from "@opentelemetry/api";
|
|
305
304
|
import pino from "pino";
|
|
306
305
|
|
|
307
306
|
// src/http/guards/isLoggerMeta.ts
|
|
@@ -1634,7 +1633,11 @@ import { getEnvVar as getEnvVar3 } from "@forklaunch/common";
|
|
|
1634
1633
|
// src/persistence/encryptedType.ts
|
|
1635
1634
|
import { Type } from "@mikro-orm/core";
|
|
1636
1635
|
import { AsyncLocalStorage } from "async_hooks";
|
|
1637
|
-
var
|
|
1636
|
+
var _encryptionState = globalThis[/* @__PURE__ */ Symbol.for("forklaunch.persistence.encryptionState")] ??= {
|
|
1637
|
+
encryptor: void 0,
|
|
1638
|
+
tenantContext: new AsyncLocalStorage()
|
|
1639
|
+
};
|
|
1640
|
+
var _tenantContext = _encryptionState.tenantContext;
|
|
1638
1641
|
|
|
1639
1642
|
// src/persistence/complianceChanges.ts
|
|
1640
1643
|
var LISTENERS = globalThis[/* @__PURE__ */ Symbol.for("forklaunch.compliance.changeListeners")] ??= /* @__PURE__ */ new Set();
|
|
@@ -5142,7 +5145,12 @@ var getCodeForStatus = (status) => {
|
|
|
5142
5145
|
var httpStatusCodes_default = HTTPStatuses;
|
|
5143
5146
|
|
|
5144
5147
|
// src/http/mcpGenerator/mcpGenerator.ts
|
|
5145
|
-
import {
|
|
5148
|
+
import {
|
|
5149
|
+
isNever as isNever3,
|
|
5150
|
+
isRecord as isRecord3,
|
|
5151
|
+
safeStringify as safeStringify3,
|
|
5152
|
+
toPlainString
|
|
5153
|
+
} from "@forklaunch/common";
|
|
5146
5154
|
import { string, ZodSchemaValidator } from "@forklaunch/validator/zod";
|
|
5147
5155
|
import { FastMCP } from "fastmcp";
|
|
5148
5156
|
|
|
@@ -5491,7 +5499,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
5491
5499
|
break;
|
|
5492
5500
|
}
|
|
5493
5501
|
case "file": {
|
|
5494
|
-
parsedBody = Buffer.from(
|
|
5502
|
+
parsedBody = Buffer.from(toPlainString(body));
|
|
5495
5503
|
break;
|
|
5496
5504
|
}
|
|
5497
5505
|
case "multipart": {
|
|
@@ -5525,7 +5533,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
5525
5533
|
parsedBody = new URLSearchParams(
|
|
5526
5534
|
Object.entries(body).map(([key, value]) => [
|
|
5527
5535
|
key,
|
|
5528
|
-
|
|
5536
|
+
toPlainString(value)
|
|
5529
5537
|
])
|
|
5530
5538
|
);
|
|
5531
5539
|
} else {
|
|
@@ -5544,7 +5552,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
5544
5552
|
const queryString = new URLSearchParams(
|
|
5545
5553
|
Object.entries(query).map(([key, value]) => [
|
|
5546
5554
|
key,
|
|
5547
|
-
|
|
5555
|
+
toPlainString(value)
|
|
5548
5556
|
])
|
|
5549
5557
|
).toString();
|
|
5550
5558
|
url += queryString ? `?${queryString}` : "";
|