@classytic/arc 2.13.1 → 2.14.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/cli/commands/docs.mjs +1 -1
- package/dist/core/index.mjs +2 -2
- package/dist/{core-D72ia0EH.mjs → core-DECn6zaU.mjs} +3 -3
- package/dist/{createActionRouter-CEvzKcy8.mjs → createActionRouter-CBxLLbn3.mjs} +2 -2
- package/dist/{createAggregationRouter-CyecOxnO.mjs → createAggregationRouter-CRIBv4sC.mjs} +1 -1
- package/dist/docs/index.d.mts +23 -10
- package/dist/docs/index.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/integrations/mcp/index.mjs +1 -1
- package/dist/integrations/mcp/testing.mjs +1 -1
- package/dist/openapi-noXno2CV.mjs +968 -0
- package/dist/plugins/tracing-entry.mjs +1 -1
- package/dist/{resourceToTools-C5coh64w.mjs → resourceToTools-DLL32us3.mjs} +2 -2
- package/dist/{routerShared-D6_fEGHh.mjs → routerShared-DrOa-26E.mjs} +1 -0
- package/package.json +1 -1
- package/dist/openapi-CiOMVW1p.mjs +0 -687
- /package/dist/{schemaIR-7Vl611Qs.mjs → schemaIR-lYhC2gE5.mjs} +0 -0
|
@@ -58,7 +58,7 @@ try {
|
|
|
58
58
|
function createTracerProvider(options) {
|
|
59
59
|
if (!isAvailable || !NodeTracerProvider || !BatchSpanProcessor || !OTLPTraceExporter) return null;
|
|
60
60
|
const { serviceName = "@classytic/arc", serviceVersion, exporterUrl = "http://localhost:4318/v1/traces" } = options;
|
|
61
|
-
const resolvedVersion = serviceVersion ?? "2.
|
|
61
|
+
const resolvedVersion = serviceVersion ?? "2.14.0";
|
|
62
62
|
const exporter = new OTLPTraceExporter({ url: exporterUrl });
|
|
63
63
|
const provider = new NodeTracerProvider({ resource: { attributes: {
|
|
64
64
|
"service.name": serviceName,
|
|
@@ -2,10 +2,10 @@ import { p as isArcError } from "./errors-j4aJm1Wg.mjs";
|
|
|
2
2
|
import { t as BaseController } from "./BaseController-DX_T-bDB.mjs";
|
|
3
3
|
import { L as normalizePermissionResult } from "./permissions-ohQyv50e.mjs";
|
|
4
4
|
import { t as executePipeline } from "./pipe-Zr0KXjQe.mjs";
|
|
5
|
-
import { u as resolvePipelineSteps } from "./routerShared-
|
|
5
|
+
import { u as resolvePipelineSteps } from "./routerShared-DrOa-26E.mjs";
|
|
6
6
|
import { n as executeAggregation, r as validateAggregations } from "./buildHandler-olo-gt94.mjs";
|
|
7
7
|
import { t as resolveActionPermission } from "./actionPermissions-CyUkQu6O.mjs";
|
|
8
|
-
import { i as shouldRejectAdditionalProperties, r as schemaIRToZodShape, t as normalizeSchemaIR } from "./schemaIR-
|
|
8
|
+
import { i as shouldRejectAdditionalProperties, r as schemaIRToZodShape, t as normalizeSchemaIR } from "./schemaIR-lYhC2gE5.mjs";
|
|
9
9
|
import { t as pluralize } from "./pluralize-DQgqgifU.mjs";
|
|
10
10
|
import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
|
|
11
11
|
import { z } from "zod";
|
|
@@ -560,6 +560,7 @@ function resolveRoutePreHandlers(preHandler, fastify, routeId) {
|
|
|
560
560
|
const msg = err instanceof Error ? err.message : String(err);
|
|
561
561
|
throw new TypeError(`Route ${routeId}: preHandler factory threw during route registration: ${msg}.\nIf you intended to pass a single handler (e.g. \`multipartBody({...})\`), wrap it in an array: \`preHandler: [yourHandler]\`. The factory form is \`(fastify) => RouteHandlerMethod[]\` — it must return an array.`, { cause: err instanceof Error ? err : void 0 });
|
|
562
562
|
}
|
|
563
|
+
if (result && typeof result.then === "function") result.catch(() => void 0);
|
|
563
564
|
if (!Array.isArray(result)) throw new TypeError(`Route ${routeId}: preHandler factory must return an array of handlers, got ${describeValue(result)}.\nCommon cause: passing a single \`RouteHandlerMethod\` (e.g. \`multipartBody({...})\`) where an array was expected. Wrap it: \`preHandler: [yourHandler]\`. The factory form \`(fastify) => RouteHandlerMethod[]\` is for cases that need the Fastify instance — e.g. \`(fastify) => [fastify.authenticate, myHandler]\`.`);
|
|
564
565
|
return result.filter((h) => typeof h === "function");
|
|
565
566
|
}
|