@mastra/deployer 0.0.0-error-handler-fix-20251020202607 → 0.0.0-execa-dynamic-import-20260304221256
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/CHANGELOG.md +1850 -5
- package/LICENSE.md +15 -0
- package/dist/arktype-aI7TBD0R-MD6ESOAI.js +8 -0
- package/dist/arktype-aI7TBD0R-MD6ESOAI.js.map +1 -0
- package/dist/arktype-aI7TBD0R-MS2OLT4Z.cjs +10 -0
- package/dist/arktype-aI7TBD0R-MS2OLT4Z.cjs.map +1 -0
- package/dist/build/analyze/analyzeEntry.d.ts +8 -4
- package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
- package/dist/build/analyze/bundleExternals.d.ts +8 -7
- package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
- package/dist/build/analyze/constants.d.ts.map +1 -1
- package/dist/build/analyze.cjs +2 -2
- package/dist/build/analyze.d.ts +7 -7
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/babel/remove-all-options-except.d.ts +1 -1
- package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
- package/dist/build/babel/remove-deployer.d.ts.map +1 -1
- package/dist/build/bundler.cjs +3 -3
- package/dist/build/bundler.d.ts +5 -3
- package/dist/build/bundler.d.ts.map +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/bundlerOptions.d.ts +1 -1
- package/dist/build/bundlerOptions.d.ts.map +1 -1
- package/dist/build/deployer.d.ts +1 -1
- package/dist/build/deployer.d.ts.map +1 -1
- package/dist/build/index.cjs +31 -22
- package/dist/build/index.d.ts +2 -1
- package/dist/build/index.d.ts.map +1 -1
- package/dist/build/index.js +6 -5
- package/dist/build/package-info.d.ts +9 -0
- package/dist/build/package-info.d.ts.map +1 -0
- package/dist/build/plugins/esm-shim.d.ts +14 -0
- package/dist/build/plugins/esm-shim.d.ts.map +1 -0
- package/dist/build/plugins/module-resolve-map.d.ts +3 -0
- package/dist/build/plugins/module-resolve-map.d.ts.map +1 -0
- package/dist/build/plugins/node-gyp-detector.d.ts +3 -0
- package/dist/build/plugins/node-gyp-detector.d.ts.map +1 -0
- package/dist/build/plugins/node-modules-extension-resolver.d.ts +7 -0
- package/dist/build/plugins/node-modules-extension-resolver.d.ts.map +1 -1
- package/dist/build/plugins/pino.d.ts.map +1 -1
- package/dist/build/plugins/remove-all-except.d.ts +10 -0
- package/dist/build/plugins/remove-all-except.d.ts.map +1 -0
- package/dist/build/plugins/subpath-externals-resolver.d.ts +3 -0
- package/dist/build/plugins/subpath-externals-resolver.d.ts.map +1 -0
- package/dist/build/plugins/tsconfig-paths.d.ts +8 -0
- package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
- package/dist/build/serverOptions.d.ts +1 -1
- package/dist/build/serverOptions.d.ts.map +1 -1
- package/dist/build/shared/extract-mastra-option.d.ts +5 -9
- package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
- package/dist/build/types.d.ts +18 -0
- package/dist/build/types.d.ts.map +1 -1
- package/dist/build/utils.d.ts +79 -4
- package/dist/build/utils.d.ts.map +1 -1
- package/dist/build/watcher.d.ts +4 -1
- package/dist/build/watcher.d.ts.map +1 -1
- package/dist/bundler/index.cjs +6 -2
- package/dist/bundler/index.d.ts +13 -10
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/chunk-32UHMKRP.cjs +95 -0
- package/dist/chunk-32UHMKRP.cjs.map +1 -0
- package/dist/chunk-6UIXBIO6.js +1322 -0
- package/dist/chunk-6UIXBIO6.js.map +1 -0
- package/dist/chunk-73SEUI3W.cjs +1353 -0
- package/dist/chunk-73SEUI3W.cjs.map +1 -0
- package/dist/chunk-ANF3UFZ3.js +318 -0
- package/dist/chunk-ANF3UFZ3.js.map +1 -0
- package/dist/{chunk-5QFG6SCM.js → chunk-DPDWM7HQ.js} +2 -2
- package/dist/chunk-DPDWM7HQ.js.map +1 -0
- package/dist/chunk-EBHDMP6N.cjs +122 -0
- package/dist/chunk-EBHDMP6N.cjs.map +1 -0
- package/dist/{chunk-WAWEQ3DP.js → chunk-EZBW45SX.js} +72 -32
- package/dist/chunk-EZBW45SX.js.map +1 -0
- package/dist/chunk-G7R456H2.cjs +108 -0
- package/dist/chunk-G7R456H2.cjs.map +1 -0
- package/dist/chunk-IMLDKOVJ.js +98 -0
- package/dist/chunk-IMLDKOVJ.js.map +1 -0
- package/dist/chunk-JNSGICDP.js +159 -0
- package/dist/chunk-JNSGICDP.js.map +1 -0
- package/dist/{chunk-3JYRSECU.cjs → chunk-JVBCN3RH.cjs} +4 -4
- package/dist/chunk-JVBCN3RH.cjs.map +1 -0
- package/dist/{chunk-LGC3GUMR.cjs → chunk-MEHKYO3L.cjs} +89 -153
- package/dist/chunk-MEHKYO3L.cjs.map +1 -0
- package/dist/chunk-NQTC7BHX.cjs +4 -0
- package/dist/chunk-NQTC7BHX.cjs.map +1 -0
- package/dist/chunk-O73YCD6A.js +262 -0
- package/dist/chunk-O73YCD6A.js.map +1 -0
- package/dist/chunk-PF6MO6L3.cjs +162 -0
- package/dist/chunk-PF6MO6L3.cjs.map +1 -0
- package/dist/{chunk-HMMDNIEQ.cjs → chunk-R2SYO6PH.cjs} +79 -39
- package/dist/chunk-R2SYO6PH.cjs.map +1 -0
- package/dist/chunk-TFSGAJE4.cjs +16 -0
- package/dist/chunk-TFSGAJE4.cjs.map +1 -0
- package/dist/chunk-UCL7MHBL.js +93 -0
- package/dist/chunk-UCL7MHBL.js.map +1 -0
- package/dist/chunk-UPVHAZ5Q.cjs +288 -0
- package/dist/chunk-UPVHAZ5Q.cjs.map +1 -0
- package/dist/chunk-UQZFTY5Q.cjs +8 -0
- package/dist/chunk-UQZFTY5Q.cjs.map +1 -0
- package/dist/{chunk-465ZVXAK.js → chunk-USX4L64H.js} +83 -146
- package/dist/chunk-USX4L64H.js.map +1 -0
- package/dist/chunk-V3HWDUN7.js +6 -0
- package/dist/chunk-V3HWDUN7.js.map +1 -0
- package/dist/chunk-WGU72NH4.js +14 -0
- package/dist/chunk-WGU72NH4.js.map +1 -0
- package/dist/chunk-XN3FKMO6.js +97 -0
- package/dist/chunk-XN3FKMO6.js.map +1 -0
- package/dist/chunk-YEOQZ6LM.js +3 -0
- package/dist/chunk-YEOQZ6LM.js.map +1 -0
- package/dist/chunk-YIUDHDPS.cjs +351 -0
- package/dist/chunk-YIUDHDPS.cjs.map +1 -0
- package/dist/default-u_dwuiYb-BOJNVDPF.js +3 -0
- package/dist/default-u_dwuiYb-BOJNVDPF.js.map +1 -0
- package/dist/default-u_dwuiYb-HYOFMURU.cjs +9 -0
- package/dist/default-u_dwuiYb-HYOFMURU.cjs.map +1 -0
- package/dist/deploy/log.d.ts +1 -1
- package/dist/deploy/log.d.ts.map +1 -1
- package/dist/docs/SKILL.md +31 -0
- package/dist/docs/assets/SOURCE_MAP.json +27 -0
- package/dist/docs/references/docs-deployment-cloud-providers.md +15 -0
- package/dist/docs/references/docs-deployment-mastra-server.md +122 -0
- package/dist/docs/references/docs-deployment-monorepo.md +142 -0
- package/dist/docs/references/docs-deployment-overview.md +62 -0
- package/dist/docs/references/docs-deployment-web-framework.md +52 -0
- package/dist/docs/references/docs-deployment-workflow-runners.md +9 -0
- package/dist/docs/references/reference-deployer.md +100 -0
- package/dist/effect-QlVUlMFu-FWNF43NY.cjs +17 -0
- package/dist/effect-QlVUlMFu-FWNF43NY.cjs.map +1 -0
- package/dist/effect-QlVUlMFu-UDX7FFQO.js +15 -0
- package/dist/effect-QlVUlMFu-UDX7FFQO.js.map +1 -0
- package/dist/esm-6PM2YB3Y.cjs +1336 -0
- package/dist/esm-6PM2YB3Y.cjs.map +1 -0
- package/dist/esm-CAB7GAHT.js +1289 -0
- package/dist/esm-CAB7GAHT.js.map +1 -0
- package/dist/index.cjs +11 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -16
- package/dist/index.js.map +1 -1
- package/dist/server/handlers/a2a.d.ts +1 -1
- package/dist/server/handlers/health.d.ts +5 -0
- package/dist/server/handlers/health.d.ts.map +1 -0
- package/dist/server/handlers/restart-active-runs.d.ts +3 -0
- package/dist/server/handlers/restart-active-runs.d.ts.map +1 -0
- package/dist/server/handlers/utils/query-parsers.d.ts +15 -0
- package/dist/server/handlers/utils/query-parsers.d.ts.map +1 -1
- package/dist/server/handlers/utils.d.ts +0 -7
- package/dist/server/handlers/utils.d.ts.map +1 -1
- package/dist/server/index.cjs +2983 -10849
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +3 -12
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2983 -10850
- package/dist/server/index.js.map +1 -1
- package/dist/server/types.d.ts +1 -1
- package/dist/server/types.d.ts.map +1 -1
- package/dist/server/welcome.d.ts +1 -1
- package/dist/server/welcome.d.ts.map +1 -1
- package/dist/services/index.cjs +4 -4
- package/dist/services/index.js +1 -1
- package/dist/sury-CWZTCd75-2U3FQUNZ.cjs +17 -0
- package/dist/sury-CWZTCd75-2U3FQUNZ.cjs.map +1 -0
- package/dist/sury-CWZTCd75-52HHC6OD.js +15 -0
- package/dist/sury-CWZTCd75-52HHC6OD.js.map +1 -0
- package/dist/typebox-Dei93FPO-EBJ4ULZC.cjs +10 -0
- package/dist/typebox-Dei93FPO-EBJ4ULZC.cjs.map +1 -0
- package/dist/typebox-Dei93FPO-TURR2FV5.js +8 -0
- package/dist/typebox-Dei93FPO-TURR2FV5.js.map +1 -0
- package/dist/valibot--1zFm7rT-KH26NMFX.cjs +17 -0
- package/dist/valibot--1zFm7rT-KH26NMFX.cjs.map +1 -0
- package/dist/valibot--1zFm7rT-O4VBDBTD.js +15 -0
- package/dist/valibot--1zFm7rT-O4VBDBTD.js.map +1 -0
- package/dist/valibot-D_HTw1Gn-EVIH6VOI.js +43 -0
- package/dist/valibot-D_HTw1Gn-EVIH6VOI.js.map +1 -0
- package/dist/valibot-D_HTw1Gn-YHTB53Q2.cjs +45 -0
- package/dist/valibot-D_HTw1Gn-YHTB53Q2.cjs.map +1 -0
- package/dist/validator/custom-resolver.cjs +46 -12
- package/dist/validator/custom-resolver.cjs.map +1 -1
- package/dist/validator/custom-resolver.d.ts +15 -1
- package/dist/validator/custom-resolver.d.ts.map +1 -1
- package/dist/validator/custom-resolver.js +44 -11
- package/dist/validator/custom-resolver.js.map +1 -1
- package/dist/validator/validate.d.ts +16 -1
- package/dist/validator/validate.d.ts.map +1 -1
- package/dist/zod-Bwrt9trS-SFESLKHY.cjs +31 -0
- package/dist/zod-Bwrt9trS-SFESLKHY.cjs.map +1 -0
- package/dist/zod-Bwrt9trS-UDJPKIQS.js +29 -0
- package/dist/zod-Bwrt9trS-UDJPKIQS.js.map +1 -0
- package/dist/zod-DSgpEGAE-3CP5FXLX.cjs +39 -0
- package/dist/zod-DSgpEGAE-3CP5FXLX.cjs.map +1 -0
- package/dist/zod-DSgpEGAE-EQI5QBJK.js +37 -0
- package/dist/zod-DSgpEGAE-EQI5QBJK.js.map +1 -0
- package/package.json +34 -35
- package/dist/build/babel/get-deployer.d.ts +0 -3
- package/dist/build/babel/get-deployer.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-bundler.d.ts +0 -5
- package/dist/build/babel/remove-all-options-bundler.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-deployer.d.ts +0 -5
- package/dist/build/babel/remove-all-options-deployer.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-server.d.ts +0 -5
- package/dist/build/babel/remove-all-options-server.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-telemetry.d.ts +0 -5
- package/dist/build/babel/remove-all-options-telemetry.d.ts.map +0 -1
- package/dist/build/customInstrumentation.d.ts +0 -10
- package/dist/build/customInstrumentation.d.ts.map +0 -1
- package/dist/build/telemetry.d.ts +0 -8
- package/dist/build/telemetry.d.ts.map +0 -1
- package/dist/chunk-3JYRSECU.cjs.map +0 -1
- package/dist/chunk-465ZVXAK.js.map +0 -1
- package/dist/chunk-5QFG6SCM.js.map +0 -1
- package/dist/chunk-CEXVMFUD.js +0 -1265
- package/dist/chunk-CEXVMFUD.js.map +0 -1
- package/dist/chunk-CKUCDCGI.js +0 -168
- package/dist/chunk-CKUCDCGI.js.map +0 -1
- package/dist/chunk-HMMDNIEQ.cjs.map +0 -1
- package/dist/chunk-LGC3GUMR.cjs.map +0 -1
- package/dist/chunk-MCDDO4WY.cjs +0 -1309
- package/dist/chunk-MCDDO4WY.cjs.map +0 -1
- package/dist/chunk-OYO2MJED.cjs +0 -195
- package/dist/chunk-OYO2MJED.cjs.map +0 -1
- package/dist/chunk-SBTEIZ3B.js +0 -26
- package/dist/chunk-SBTEIZ3B.js.map +0 -1
- package/dist/chunk-WAWEQ3DP.js.map +0 -1
- package/dist/chunk-WIQEFIRX.cjs +0 -28
- package/dist/chunk-WIQEFIRX.cjs.map +0 -1
- package/dist/server/handlers/auth/defaults.d.ts +0 -3
- package/dist/server/handlers/auth/defaults.d.ts.map +0 -1
- package/dist/server/handlers/auth/helpers.d.ts +0 -11
- package/dist/server/handlers/auth/helpers.d.ts.map +0 -1
- package/dist/server/handlers/auth/index.d.ts +0 -11
- package/dist/server/handlers/auth/index.d.ts.map +0 -1
- package/dist/server/handlers/prompt.d.ts +0 -3
- package/dist/server/handlers/prompt.d.ts.map +0 -1
- package/dist/server/handlers/routes/agent-builder/handlers.d.ts +0 -17
- package/dist/server/handlers/routes/agent-builder/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/agent-builder/router.d.ts +0 -4
- package/dist/server/handlers/routes/agent-builder/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/agents/handlers.d.ts +0 -363
- package/dist/server/handlers/routes/agents/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/agents/router.d.ts +0 -5
- package/dist/server/handlers/routes/agents/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/agents/voice.d.ts +0 -18
- package/dist/server/handlers/routes/agents/voice.d.ts.map +0 -1
- package/dist/server/handlers/routes/logs/handlers.d.ts +0 -5
- package/dist/server/handlers/routes/logs/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/logs/router.d.ts +0 -3
- package/dist/server/handlers/routes/logs/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/mcp/handlers.d.ts +0 -139
- package/dist/server/handlers/routes/mcp/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/mcp/router.d.ts +0 -4
- package/dist/server/handlers/routes/mcp/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/memory/handlers.d.ts +0 -17
- package/dist/server/handlers/routes/memory/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/memory/router.d.ts +0 -4
- package/dist/server/handlers/routes/memory/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/observability/handlers.d.ts +0 -6
- package/dist/server/handlers/routes/observability/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/observability/router.d.ts +0 -3
- package/dist/server/handlers/routes/observability/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/scores/handlers.d.ts +0 -300
- package/dist/server/handlers/routes/scores/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/scores/router.d.ts +0 -4
- package/dist/server/handlers/routes/scores/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/telemetry/handlers.d.ts +0 -4
- package/dist/server/handlers/routes/telemetry/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/telemetry/router.d.ts +0 -3
- package/dist/server/handlers/routes/telemetry/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/tools/handlers.d.ts +0 -7
- package/dist/server/handlers/routes/tools/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/tools/router.d.ts +0 -4
- package/dist/server/handlers/routes/tools/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/vector/handlers.d.ts +0 -10
- package/dist/server/handlers/routes/vector/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/vector/router.d.ts +0 -4
- package/dist/server/handlers/routes/vector/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/workflows/handlers.d.ts +0 -20
- package/dist/server/handlers/routes/workflows/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts +0 -11
- package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts.map +0 -1
- package/dist/server/handlers/routes/workflows/router.d.ts +0 -4
- package/dist/server/handlers/routes/workflows/router.d.ts.map +0 -1
- package/dist/templates/instrumentation-template.js +0 -172
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/observability/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAS5B,wBAAgB,mBAAmB,+EAkQlC"}
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import type { Context } from 'hono';
|
|
2
|
-
export declare function getScorersHandler(c: Context): Promise<Response>;
|
|
3
|
-
export declare function getScorerHandler(c: Context): Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
scorer: {
|
|
5
|
-
config: {
|
|
6
|
-
name: any;
|
|
7
|
-
description: string;
|
|
8
|
-
judge?: {
|
|
9
|
-
model: import("@mastra/core/llm/model").ModelRouterModelId | {
|
|
10
|
-
readonly specificationVersion: "v1";
|
|
11
|
-
readonly provider: string;
|
|
12
|
-
readonly modelId: string;
|
|
13
|
-
readonly defaultObjectGenerationMode: "tool" | "json" | undefined;
|
|
14
|
-
readonly supportsImageUrls?: boolean | undefined;
|
|
15
|
-
readonly supportsStructuredOutputs?: boolean | undefined;
|
|
16
|
-
supportsUrl?: {} | undefined;
|
|
17
|
-
doGenerate: {};
|
|
18
|
-
doStream: {};
|
|
19
|
-
} | {
|
|
20
|
-
readonly specificationVersion: "v2";
|
|
21
|
-
readonly provider: string;
|
|
22
|
-
readonly modelId: string;
|
|
23
|
-
supportedUrls: {
|
|
24
|
-
[x: string]: {
|
|
25
|
-
exec: {};
|
|
26
|
-
test: {};
|
|
27
|
-
readonly source: string;
|
|
28
|
-
readonly global: boolean;
|
|
29
|
-
readonly ignoreCase: boolean;
|
|
30
|
-
readonly multiline: boolean;
|
|
31
|
-
lastIndex: number;
|
|
32
|
-
compile: {};
|
|
33
|
-
readonly flags: string;
|
|
34
|
-
readonly sticky: boolean;
|
|
35
|
-
readonly unicode: boolean;
|
|
36
|
-
readonly dotAll: boolean;
|
|
37
|
-
readonly hasIndices: boolean;
|
|
38
|
-
}[];
|
|
39
|
-
} | {
|
|
40
|
-
then: {};
|
|
41
|
-
};
|
|
42
|
-
doGenerate: {};
|
|
43
|
-
doStream: {};
|
|
44
|
-
} | {
|
|
45
|
-
id: `${string}/${string}`;
|
|
46
|
-
url?: string | undefined;
|
|
47
|
-
apiKey?: string | undefined;
|
|
48
|
-
headers?: {
|
|
49
|
-
[x: string]: string;
|
|
50
|
-
} | undefined;
|
|
51
|
-
} | {
|
|
52
|
-
providerId: string;
|
|
53
|
-
modelId: string;
|
|
54
|
-
url?: string | undefined;
|
|
55
|
-
apiKey?: string | undefined;
|
|
56
|
-
headers?: {
|
|
57
|
-
[x: string]: string;
|
|
58
|
-
} | undefined;
|
|
59
|
-
};
|
|
60
|
-
instructions: string;
|
|
61
|
-
} | undefined;
|
|
62
|
-
type?: "agent" | {
|
|
63
|
-
input: {
|
|
64
|
-
readonly _type: any;
|
|
65
|
-
readonly _output: any;
|
|
66
|
-
readonly _input: any;
|
|
67
|
-
readonly _def: {
|
|
68
|
-
errorMap?: {} | undefined;
|
|
69
|
-
description?: string | undefined | undefined;
|
|
70
|
-
};
|
|
71
|
-
readonly description: string | undefined;
|
|
72
|
-
"~standard": {
|
|
73
|
-
readonly version: 1;
|
|
74
|
-
readonly vendor: string;
|
|
75
|
-
readonly types?: {
|
|
76
|
-
readonly input: any;
|
|
77
|
-
readonly output: any;
|
|
78
|
-
} | undefined;
|
|
79
|
-
};
|
|
80
|
-
_parse: {};
|
|
81
|
-
_getType: {};
|
|
82
|
-
_getOrReturnCtx: {};
|
|
83
|
-
_processInputParams: {};
|
|
84
|
-
_parseSync: {};
|
|
85
|
-
_parseAsync: {};
|
|
86
|
-
parse: {};
|
|
87
|
-
safeParse: {};
|
|
88
|
-
parseAsync: {};
|
|
89
|
-
safeParseAsync: {};
|
|
90
|
-
spa: {};
|
|
91
|
-
refine: {};
|
|
92
|
-
refinement: {};
|
|
93
|
-
_refinement: {};
|
|
94
|
-
superRefine: {};
|
|
95
|
-
or: {};
|
|
96
|
-
and: {};
|
|
97
|
-
transform: {};
|
|
98
|
-
brand: {};
|
|
99
|
-
describe: {};
|
|
100
|
-
pipe: {};
|
|
101
|
-
};
|
|
102
|
-
output: {
|
|
103
|
-
readonly _type: any;
|
|
104
|
-
readonly _output: any;
|
|
105
|
-
readonly _input: any;
|
|
106
|
-
readonly _def: {
|
|
107
|
-
errorMap?: {} | undefined;
|
|
108
|
-
description?: string | undefined | undefined;
|
|
109
|
-
};
|
|
110
|
-
readonly description: string | undefined;
|
|
111
|
-
"~standard": {
|
|
112
|
-
readonly version: 1;
|
|
113
|
-
readonly vendor: string;
|
|
114
|
-
readonly types?: {
|
|
115
|
-
readonly input: any;
|
|
116
|
-
readonly output: any;
|
|
117
|
-
} | undefined;
|
|
118
|
-
};
|
|
119
|
-
_parse: {};
|
|
120
|
-
_getType: {};
|
|
121
|
-
_getOrReturnCtx: {};
|
|
122
|
-
_processInputParams: {};
|
|
123
|
-
_parseSync: {};
|
|
124
|
-
_parseAsync: {};
|
|
125
|
-
parse: {};
|
|
126
|
-
safeParse: {};
|
|
127
|
-
parseAsync: {};
|
|
128
|
-
safeParseAsync: {};
|
|
129
|
-
spa: {};
|
|
130
|
-
refine: {};
|
|
131
|
-
refinement: {};
|
|
132
|
-
_refinement: {};
|
|
133
|
-
superRefine: {};
|
|
134
|
-
or: {};
|
|
135
|
-
and: {};
|
|
136
|
-
transform: {};
|
|
137
|
-
brand: {};
|
|
138
|
-
describe: {};
|
|
139
|
-
pipe: {};
|
|
140
|
-
};
|
|
141
|
-
} | undefined;
|
|
142
|
-
};
|
|
143
|
-
readonly type: "agent" | {
|
|
144
|
-
input: {
|
|
145
|
-
readonly _type: any;
|
|
146
|
-
readonly _output: any;
|
|
147
|
-
readonly _input: any;
|
|
148
|
-
readonly _def: {
|
|
149
|
-
errorMap?: {} | undefined;
|
|
150
|
-
description?: string | undefined | undefined;
|
|
151
|
-
};
|
|
152
|
-
readonly description: string | undefined;
|
|
153
|
-
"~standard": {
|
|
154
|
-
readonly version: 1;
|
|
155
|
-
readonly vendor: string;
|
|
156
|
-
readonly types?: {
|
|
157
|
-
readonly input: any;
|
|
158
|
-
readonly output: any;
|
|
159
|
-
} | undefined;
|
|
160
|
-
};
|
|
161
|
-
_parse: {};
|
|
162
|
-
_getType: {};
|
|
163
|
-
_getOrReturnCtx: {};
|
|
164
|
-
_processInputParams: {};
|
|
165
|
-
_parseSync: {};
|
|
166
|
-
_parseAsync: {};
|
|
167
|
-
parse: {};
|
|
168
|
-
safeParse: {};
|
|
169
|
-
parseAsync: {};
|
|
170
|
-
safeParseAsync: {};
|
|
171
|
-
spa: {};
|
|
172
|
-
refine: {};
|
|
173
|
-
refinement: {};
|
|
174
|
-
_refinement: {};
|
|
175
|
-
superRefine: {};
|
|
176
|
-
or: {};
|
|
177
|
-
and: {};
|
|
178
|
-
transform: {};
|
|
179
|
-
brand: {};
|
|
180
|
-
describe: {};
|
|
181
|
-
pipe: {};
|
|
182
|
-
};
|
|
183
|
-
output: {
|
|
184
|
-
readonly _type: any;
|
|
185
|
-
readonly _output: any;
|
|
186
|
-
readonly _input: any;
|
|
187
|
-
readonly _def: {
|
|
188
|
-
errorMap?: {} | undefined;
|
|
189
|
-
description?: string | undefined | undefined;
|
|
190
|
-
};
|
|
191
|
-
readonly description: string | undefined;
|
|
192
|
-
"~standard": {
|
|
193
|
-
readonly version: 1;
|
|
194
|
-
readonly vendor: string;
|
|
195
|
-
readonly types?: {
|
|
196
|
-
readonly input: any;
|
|
197
|
-
readonly output: any;
|
|
198
|
-
} | undefined;
|
|
199
|
-
};
|
|
200
|
-
_parse: {};
|
|
201
|
-
_getType: {};
|
|
202
|
-
_getOrReturnCtx: {};
|
|
203
|
-
_processInputParams: {};
|
|
204
|
-
_parseSync: {};
|
|
205
|
-
_parseAsync: {};
|
|
206
|
-
parse: {};
|
|
207
|
-
safeParse: {};
|
|
208
|
-
parseAsync: {};
|
|
209
|
-
safeParseAsync: {};
|
|
210
|
-
spa: {};
|
|
211
|
-
refine: {};
|
|
212
|
-
refinement: {};
|
|
213
|
-
_refinement: {};
|
|
214
|
-
superRefine: {};
|
|
215
|
-
or: {};
|
|
216
|
-
and: {};
|
|
217
|
-
transform: {};
|
|
218
|
-
brand: {};
|
|
219
|
-
describe: {};
|
|
220
|
-
pipe: {};
|
|
221
|
-
};
|
|
222
|
-
} | undefined;
|
|
223
|
-
readonly name: any;
|
|
224
|
-
readonly description: string;
|
|
225
|
-
readonly judge: {
|
|
226
|
-
model: import("@mastra/core/llm/model").ModelRouterModelId | {
|
|
227
|
-
readonly specificationVersion: "v1";
|
|
228
|
-
readonly provider: string;
|
|
229
|
-
readonly modelId: string;
|
|
230
|
-
readonly defaultObjectGenerationMode: "tool" | "json" | undefined;
|
|
231
|
-
readonly supportsImageUrls?: boolean | undefined;
|
|
232
|
-
readonly supportsStructuredOutputs?: boolean | undefined;
|
|
233
|
-
supportsUrl?: {} | undefined;
|
|
234
|
-
doGenerate: {};
|
|
235
|
-
doStream: {};
|
|
236
|
-
} | {
|
|
237
|
-
readonly specificationVersion: "v2";
|
|
238
|
-
readonly provider: string;
|
|
239
|
-
readonly modelId: string;
|
|
240
|
-
supportedUrls: {
|
|
241
|
-
[x: string]: {
|
|
242
|
-
exec: {};
|
|
243
|
-
test: {};
|
|
244
|
-
readonly source: string;
|
|
245
|
-
readonly global: boolean;
|
|
246
|
-
readonly ignoreCase: boolean;
|
|
247
|
-
readonly multiline: boolean;
|
|
248
|
-
lastIndex: number;
|
|
249
|
-
compile: {};
|
|
250
|
-
readonly flags: string;
|
|
251
|
-
readonly sticky: boolean;
|
|
252
|
-
readonly unicode: boolean;
|
|
253
|
-
readonly dotAll: boolean;
|
|
254
|
-
readonly hasIndices: boolean;
|
|
255
|
-
}[];
|
|
256
|
-
} | {
|
|
257
|
-
then: {};
|
|
258
|
-
};
|
|
259
|
-
doGenerate: {};
|
|
260
|
-
doStream: {};
|
|
261
|
-
} | {
|
|
262
|
-
id: `${string}/${string}`;
|
|
263
|
-
url?: string | undefined;
|
|
264
|
-
apiKey?: string | undefined;
|
|
265
|
-
headers?: {
|
|
266
|
-
[x: string]: string;
|
|
267
|
-
} | undefined;
|
|
268
|
-
} | {
|
|
269
|
-
providerId: string;
|
|
270
|
-
modelId: string;
|
|
271
|
-
url?: string | undefined;
|
|
272
|
-
apiKey?: string | undefined;
|
|
273
|
-
headers?: {
|
|
274
|
-
[x: string]: string;
|
|
275
|
-
} | undefined;
|
|
276
|
-
};
|
|
277
|
-
instructions: string;
|
|
278
|
-
} | undefined;
|
|
279
|
-
preprocess: {};
|
|
280
|
-
analyze: {};
|
|
281
|
-
generateScore: {};
|
|
282
|
-
generateReason: {};
|
|
283
|
-
run: {};
|
|
284
|
-
};
|
|
285
|
-
sampling?: {
|
|
286
|
-
type: "none";
|
|
287
|
-
} | {
|
|
288
|
-
type: "ratio";
|
|
289
|
-
rate: number;
|
|
290
|
-
} | undefined;
|
|
291
|
-
agentIds: string[];
|
|
292
|
-
agentNames: string[];
|
|
293
|
-
workflowIds: string[];
|
|
294
|
-
isRegistered: boolean;
|
|
295
|
-
} | null, import("hono/utils/http-status").ContentfulStatusCode, "json">>;
|
|
296
|
-
export declare function getScoresByRunIdHandler(c: Context): Promise<Response>;
|
|
297
|
-
export declare function getScoresByScorerIdHandler(c: Context): Promise<Response>;
|
|
298
|
-
export declare function getScoresByEntityIdHandler(c: Context): Promise<Response>;
|
|
299
|
-
export declare function saveScoreHandler(c: Context): Promise<Response>;
|
|
300
|
-
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,OAAO,qBAUjD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAYhD;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,OAAO,qBAkBvD;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAsB1D;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAqB1D;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO,qBAchD"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
|
-
export declare function scoresRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
|
-
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAUvD,wBAAgB,YAAY,CAAC,gBAAgB,EAAE,gBAAgB,8EAmM9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/telemetry/handlers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,OAAO,qBAuBnD;AAED,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,OAAO,qBAgBrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/telemetry/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,wBAAgB,eAAe,+EAgC9B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Context } from 'hono';
|
|
2
|
-
export declare function getToolsHandler(c: Context): Promise<Response>;
|
|
3
|
-
export declare function getToolByIdHandler(c: Context): Promise<Response>;
|
|
4
|
-
export declare function executeToolHandler(tools: Record<string, any>): (c: Context) => Promise<Response>;
|
|
5
|
-
export declare function getAgentToolHandler(c: Context): Promise<Response>;
|
|
6
|
-
export declare function executeAgentToolHandler(c: Context): Promise<Response>;
|
|
7
|
-
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/tools/handlers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAKpC,wBAAsB,eAAe,CAAC,CAAC,EAAE,OAAO,qBAY/C;AAED,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAclD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAC7C,GAAG,OAAO,uBAqBzB;AAED,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,OAAO,qBAkBnD;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,OAAO,qBAoBvD"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
|
-
export declare function toolsRouter(bodyLimitOptions: BodyLimitOptions, tools: Record<string, any>): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
|
-
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/tools/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,wBAAgB,WAAW,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,8EA0FzF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MastraVector } from '@mastra/core/vector';
|
|
2
|
-
import type { Context } from 'hono';
|
|
3
|
-
export declare const getVector: (c: Context, vectorName: string) => MastraVector;
|
|
4
|
-
export declare function upsertVectors(c: Context): Promise<Response>;
|
|
5
|
-
export declare function createIndex(c: Context): Promise<Response>;
|
|
6
|
-
export declare function queryVectors(c: Context): Promise<Response>;
|
|
7
|
-
export declare function listIndexes(c: Context): Promise<Response>;
|
|
8
|
-
export declare function describeIndex(c: Context): Promise<Response>;
|
|
9
|
-
export declare function deleteIndex(c: Context): Promise<Response>;
|
|
10
|
-
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/vector/handlers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,qBAAqB,CAAC;AASrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AA2BpC,eAAO,MAAM,SAAS,GAAI,GAAG,OAAO,EAAE,YAAY,MAAM,KAAG,YAM1D,CAAC;AAGF,wBAAsB,aAAa,CAAC,CAAC,EAAE,OAAO,qBAgB7C;AAGD,wBAAsB,WAAW,CAAC,CAAC,EAAE,OAAO,qBAgB3C;AAGD,wBAAsB,YAAY,CAAC,CAAC,EAAE,OAAO,qBAgB5C;AAGD,wBAAsB,WAAW,CAAC,CAAC,EAAE,OAAO,qBAc3C;AAGD,wBAAsB,aAAa,CAAC,CAAC,EAAE,OAAO,qBAwB7C;AAGD,wBAAsB,WAAW,CAAC,CAAC,EAAE,OAAO,qBAoB3C"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
|
-
export declare function vectorRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
|
-
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/vector/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,wBAAgB,YAAY,CAAC,gBAAgB,EAAE,gBAAgB,8EA4N9D"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Context } from 'hono';
|
|
2
|
-
export declare function getWorkflowsHandler(c: Context): Promise<Response>;
|
|
3
|
-
export declare function getWorkflowByIdHandler(c: Context): Promise<Response>;
|
|
4
|
-
export declare function createWorkflowRunHandler(c: Context): Promise<Response>;
|
|
5
|
-
export declare function startAsyncWorkflowHandler(c: Context): Promise<Response>;
|
|
6
|
-
export declare function startWorkflowRunHandler(c: Context): Promise<Response>;
|
|
7
|
-
export declare function watchWorkflowHandler(c: Context): Response | Promise<Response>;
|
|
8
|
-
export declare function streamWorkflowHandler(c: Context): Promise<Response>;
|
|
9
|
-
export declare function observeStreamWorkflowHandler(c: Context): Promise<Response>;
|
|
10
|
-
export declare function streamVNextWorkflowHandler(c: Context): Promise<Response>;
|
|
11
|
-
export declare function observeStreamVNextWorkflowHandler(c: Context): Promise<Response>;
|
|
12
|
-
export declare function resumeStreamWorkflowHandler(c: Context): Promise<Response>;
|
|
13
|
-
export declare function resumeAsyncWorkflowHandler(c: Context): Promise<Response>;
|
|
14
|
-
export declare function resumeWorkflowHandler(c: Context): Promise<Response>;
|
|
15
|
-
export declare function getWorkflowRunsHandler(c: Context): Promise<Response>;
|
|
16
|
-
export declare function getWorkflowRunByIdHandler(c: Context): Promise<Response>;
|
|
17
|
-
export declare function getWorkflowRunExecutionResultHandler(c: Context): Promise<Response>;
|
|
18
|
-
export declare function cancelWorkflowRunHandler(c: Context): Promise<Response>;
|
|
19
|
-
export declare function sendWorkflowRunEventHandler(c: Context): Promise<Response>;
|
|
20
|
-
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/workflows/handlers.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAMpC,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,OAAO,qBAYnD;AAED,wBAAsB,sBAAsB,CAAC,CAAC,EAAE,OAAO,qBActD;AAED,wBAAsB,wBAAwB,CAAC,CAAC,EAAE,OAAO,qBAgBxD;AAED,wBAAsB,yBAAyB,CAAC,CAAC,EAAE,OAAO,qBAqBzD;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,OAAO,qBAqBvD;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,gCA4C9C;AAED,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,OAAO,qBA8CrD;AAED,wBAAsB,4BAA4B,CAAC,CAAC,EAAE,OAAO,qBA6C5D;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBA8C1D;AAED,wBAAsB,iCAAiC,CAAC,CAAC,EAAE,OAAO,qBAwCjE;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBA6C3D;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAyB1D;AAED,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,OAAO,qBAyBrD;AAED,wBAAsB,sBAAsB,CAAC,CAAC,EAAE,OAAO,qBAmBtD;AAED,wBAAsB,yBAAyB,CAAC,CAAC,EAAE,OAAO,qBAezD;AAED,wBAAsB,oCAAoC,CAAC,CAAC,EAAE,OAAO,qBAepE;AAED,wBAAsB,wBAAwB,CAAC,CAAC,EAAE,OAAO,qBAgBxD;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBAmB3D"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Context } from 'hono';
|
|
2
|
-
export declare function getLegacyWorkflowsHandler(c: Context): Promise<Response>;
|
|
3
|
-
export declare function getLegacyWorkflowByIdHandler(c: Context): Promise<Response>;
|
|
4
|
-
export declare function startAsyncLegacyWorkflowHandler(c: Context): Promise<Response>;
|
|
5
|
-
export declare function createLegacyWorkflowRunHandler(c: Context): Promise<Response>;
|
|
6
|
-
export declare function startLegacyWorkflowRunHandler(c: Context): Promise<Response>;
|
|
7
|
-
export declare function watchLegacyWorkflowHandler(c: Context): Response | Promise<Response>;
|
|
8
|
-
export declare function resumeAsyncLegacyWorkflowHandler(c: Context): Promise<Response>;
|
|
9
|
-
export declare function resumeLegacyWorkflowHandler(c: Context): Promise<Response>;
|
|
10
|
-
export declare function getLegacyWorkflowRunsHandler(c: Context): Promise<Response>;
|
|
11
|
-
//# sourceMappingURL=legacyWorkflows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacyWorkflows.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/workflows/legacyWorkflows.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAMpC,wBAAsB,yBAAyB,CAAC,CAAC,EAAE,OAAO,qBAYzD;AAED,wBAAsB,4BAA4B,CAAC,CAAC,EAAE,OAAO,qBAc5D;AAED,wBAAsB,+BAA+B,CAAC,CAAC,EAAE,OAAO,qBAoB/D;AAED,wBAAsB,8BAA8B,CAAC,CAAC,EAAE,OAAO,qBAgB9D;AAED,wBAAsB,6BAA6B,CAAC,CAAC,EAAE,OAAO,qBAoB7D;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,OAAO,gCAwCpD;AAED,wBAAsB,gCAAgC,CAAC,CAAC,EAAE,OAAO,qBAwBhE;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBAwB3D;AAED,wBAAsB,4BAA4B,CAAC,CAAC,EAAE,OAAO,qBAmB5D"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
|
-
export declare function workflowsRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
|
-
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/workflows/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAiCvD,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,8EAi/BjE"}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
|
|
2
|
-
import { ExportResultCode } from '@opentelemetry/core';
|
|
3
|
-
import { OTLPTraceExporter as OTLPGrpcExporter } from '@opentelemetry/exporter-trace-otlp-grpc';
|
|
4
|
-
import { OTLPTraceExporter as OTLPHttpExporter } from '@opentelemetry/exporter-trace-otlp-http';
|
|
5
|
-
import { resourceFromAttributes } from '@opentelemetry/resources';
|
|
6
|
-
import { NodeSDK } from '@opentelemetry/sdk-node';
|
|
7
|
-
import {
|
|
8
|
-
ParentBasedSampler,
|
|
9
|
-
TraceIdRatioBasedSampler,
|
|
10
|
-
AlwaysOnSampler,
|
|
11
|
-
AlwaysOffSampler,
|
|
12
|
-
} from '@opentelemetry/sdk-trace-base';
|
|
13
|
-
import { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
|
|
14
|
-
import { telemetry } from './telemetry-config.mjs';
|
|
15
|
-
|
|
16
|
-
globalThis.___MASTRA_TELEMETRY___ = true;
|
|
17
|
-
|
|
18
|
-
function parseHeaders(headerString) {
|
|
19
|
-
const headers = {}
|
|
20
|
-
if (!headerString) return headers;
|
|
21
|
-
|
|
22
|
-
const headersStringPairs = headerString.split(',');
|
|
23
|
-
for (const pair of headersStringPairs) {
|
|
24
|
-
const [key, value] = pair.split('=').map(s => s.trim());
|
|
25
|
-
if (key && value) headers[key] = value;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return headers;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
class CompositeExporter {
|
|
32
|
-
constructor(exporters) {
|
|
33
|
-
this.exporters = exporters;
|
|
34
|
-
}
|
|
35
|
-
export(spans, resultCallback) {
|
|
36
|
-
const telemetryTraceIds = new Set(
|
|
37
|
-
spans.filter((span) => {
|
|
38
|
-
const attrs = span.attributes || {};
|
|
39
|
-
const httpTarget = attrs["http.target"];
|
|
40
|
-
return httpTarget === "/api/telemetry";
|
|
41
|
-
}).map((span) => span.spanContext().traceId)
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
const filteredSpans = spans.filter((span) => {
|
|
45
|
-
// instrumentation-http spans are the root spans for a trace.
|
|
46
|
-
// Other @opentelemetry spans are noisy and we do not display them.
|
|
47
|
-
// At the storage layer, we remove the HTTP instrumentation spans entirely.
|
|
48
|
-
// And promote their direct children to root spans.
|
|
49
|
-
return !(span.instrumentationScope?.name?.startsWith('@opentelemetry') &&
|
|
50
|
-
span.instrumentationScope?.name !== '@opentelemetry/instrumentation-http') &&
|
|
51
|
-
!telemetryTraceIds.has(span.spanContext().traceId)
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
if (filteredSpans.length === 0) {
|
|
55
|
-
resultCallback({ code: ExportResultCode.SUCCESS });
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
void Promise.all(
|
|
59
|
-
this.exporters.map(
|
|
60
|
-
(exporter) => new Promise((resolve) => {
|
|
61
|
-
if (exporter.export) {
|
|
62
|
-
exporter.export(filteredSpans, resolve);
|
|
63
|
-
} else {
|
|
64
|
-
resolve({ code: ExportResultCode.FAILED });
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
)
|
|
68
|
-
).then((results) => {
|
|
69
|
-
const hasError = results.some((r) => r.code === ExportResultCode.FAILED);
|
|
70
|
-
resultCallback({
|
|
71
|
-
code: hasError ? ExportResultCode.FAILED : ExportResultCode.SUCCESS
|
|
72
|
-
});
|
|
73
|
-
}).catch((error) => {
|
|
74
|
-
console.error("[CompositeExporter] Export error:", error);
|
|
75
|
-
resultCallback({ code: ExportResultCode.FAILED, error });
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
shutdown() {
|
|
79
|
-
return Promise.all(this.exporters.map((e) => e.shutdown?.() ?? Promise.resolve())).then(() => void 0);
|
|
80
|
-
}
|
|
81
|
-
forceFlush() {
|
|
82
|
-
return Promise.all(this.exporters.map((e) => e.forceFlush?.() ?? Promise.resolve())).then(() => void 0);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
function getSampler(config) {
|
|
87
|
-
if (!config.sampling) {
|
|
88
|
-
return new AlwaysOnSampler();
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (!config.enabled) {
|
|
92
|
-
return new AlwaysOffSampler();
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
switch (config.sampling.type) {
|
|
96
|
-
case 'ratio':
|
|
97
|
-
return new TraceIdRatioBasedSampler(config.sampling.probability);
|
|
98
|
-
case 'always_on':
|
|
99
|
-
return new AlwaysOnSampler();
|
|
100
|
-
case 'always_off':
|
|
101
|
-
return new AlwaysOffSampler();
|
|
102
|
-
case 'parent_based':
|
|
103
|
-
const rootSampler = new TraceIdRatioBasedSampler(config.sampling.root?.probability || 1.0);
|
|
104
|
-
return new ParentBasedSampler({ root: rootSampler });
|
|
105
|
-
default:
|
|
106
|
-
return new AlwaysOnSampler();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
async function getExporters(config) {
|
|
111
|
-
const exporters = [];
|
|
112
|
-
|
|
113
|
-
// Add local exporter by default
|
|
114
|
-
if (!config.disableLocalExport) {
|
|
115
|
-
exporters.push(new OTLPHttpExporter({
|
|
116
|
-
url: `http://localhost:${process.env.PORT ?? 4111}/api/telemetry`,
|
|
117
|
-
headers: process.env.MASTRA_DEV ? {
|
|
118
|
-
'x-mastra-dev-playground': 'true',
|
|
119
|
-
} : {},
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (config.export?.type === 'otlp') {
|
|
124
|
-
if (config.export?.protocol === 'grpc') {
|
|
125
|
-
exporters.push(new OTLPGrpcExporter({
|
|
126
|
-
url: config.export.endpoint,
|
|
127
|
-
headers: config.export.headers,
|
|
128
|
-
}));
|
|
129
|
-
} else {
|
|
130
|
-
const exporterEndpoint = config.export.endpoint ?? process.env.OTEL_EXPORTER_OTLP_ENDPOINT
|
|
131
|
-
let exporterHeaders = config.export.headers
|
|
132
|
-
if (!exporterHeaders) {
|
|
133
|
-
exporterHeaders = parseHeaders(process.env.OTEL_EXPORTER_OTLP_HEADERS)
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
exporters.push(new OTLPHttpExporter({
|
|
137
|
-
url: exporterEndpoint,
|
|
138
|
-
headers: exporterHeaders,
|
|
139
|
-
}));
|
|
140
|
-
}
|
|
141
|
-
} else if (config.export?.type === 'custom') {
|
|
142
|
-
exporters.push(config.export.exporter);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return exporters
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
const sampler = getSampler(telemetry);
|
|
149
|
-
const exporters = await getExporters(telemetry);
|
|
150
|
-
const compositeExporter = new CompositeExporter(exporters);
|
|
151
|
-
|
|
152
|
-
const sdk = new NodeSDK({
|
|
153
|
-
resource: resourceFromAttributes({
|
|
154
|
-
[ATTR_SERVICE_NAME]: telemetry.serviceName || 'default-service',
|
|
155
|
-
}),
|
|
156
|
-
sampler,
|
|
157
|
-
traceExporter: compositeExporter,
|
|
158
|
-
instrumentations: [getNodeAutoInstrumentations()],
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
if (telemetry.enabled !== false) {
|
|
162
|
-
sdk.start();
|
|
163
|
-
|
|
164
|
-
// gracefully shut down the SDK on process exit
|
|
165
|
-
process.on('SIGTERM', () => {
|
|
166
|
-
sdk.shutdown().catch(() => {
|
|
167
|
-
// do nothing
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|