@mastra/core 1.32.0-alpha.3 → 1.32.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/CHANGELOG.md +206 -0
- package/dist/agent/durable/index.cjs +22 -22
- package/dist/agent/durable/index.js +4 -4
- package/dist/agent/index.cjs +9 -9
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-CRMUTN3A.js → chunk-2RXMQLX7.js} +4 -4
- package/dist/{chunk-CRMUTN3A.js.map → chunk-2RXMQLX7.js.map} +1 -1
- package/dist/{chunk-PQRH3PWI.cjs → chunk-3DIJ3TQS.cjs} +30 -20
- package/dist/chunk-3DIJ3TQS.cjs.map +1 -0
- package/dist/{chunk-XGYB6VEV.js → chunk-4FQ5HEEG.js} +21 -11
- package/dist/chunk-4FQ5HEEG.js.map +1 -0
- package/dist/{chunk-KMPDWFMV.js → chunk-5VJTKVXF.js} +3 -3
- package/dist/chunk-5VJTKVXF.js.map +1 -0
- package/dist/{chunk-52UBCOSR.js → chunk-AF3BGEBT.js} +68 -60
- package/dist/chunk-AF3BGEBT.js.map +1 -0
- package/dist/{chunk-MCOBK6VA.cjs → chunk-CTWPJGFQ.cjs} +9 -9
- package/dist/{chunk-MCOBK6VA.cjs.map → chunk-CTWPJGFQ.cjs.map} +1 -1
- package/dist/{chunk-ESBDVN5F.cjs → chunk-F3PTR2CN.cjs} +7 -7
- package/dist/{chunk-ESBDVN5F.cjs.map → chunk-F3PTR2CN.cjs.map} +1 -1
- package/dist/{chunk-4VYOBEPT.cjs → chunk-K6PAVEJM.cjs} +29 -22
- package/dist/chunk-K6PAVEJM.cjs.map +1 -0
- package/dist/{chunk-AYDHVBUD.cjs → chunk-NNV6BI2Y.cjs} +7 -7
- package/dist/{chunk-AYDHVBUD.cjs.map → chunk-NNV6BI2Y.cjs.map} +1 -1
- package/dist/{chunk-6A76JI5S.js → chunk-PQYP7GQ5.js} +3 -3
- package/dist/{chunk-6A76JI5S.js.map → chunk-PQYP7GQ5.js.map} +1 -1
- package/dist/{chunk-HSAITG44.js → chunk-PX7T4PC6.js} +3 -3
- package/dist/{chunk-HSAITG44.js.map → chunk-PX7T4PC6.js.map} +1 -1
- package/dist/{chunk-SAIICI7H.cjs → chunk-RSDFW5HF.cjs} +389 -389
- package/dist/{chunk-SAIICI7H.cjs.map → chunk-RSDFW5HF.cjs.map} +1 -1
- package/dist/{chunk-SMR6DHFJ.js → chunk-RVIBAGE6.js} +3 -3
- package/dist/{chunk-SMR6DHFJ.js.map → chunk-RVIBAGE6.js.map} +1 -1
- package/dist/{chunk-LEGBLENH.js → chunk-SHGUKDQZ.js} +6 -6
- package/dist/{chunk-LEGBLENH.js.map → chunk-SHGUKDQZ.js.map} +1 -1
- package/dist/{chunk-CG6L7CTT.js → chunk-UDNQPUQT.js} +16 -9
- package/dist/chunk-UDNQPUQT.js.map +1 -0
- package/dist/{chunk-FAELCC5F.cjs → chunk-UHNI2YJT.cjs} +59 -59
- package/dist/{chunk-FAELCC5F.cjs.map → chunk-UHNI2YJT.cjs.map} +1 -1
- package/dist/{chunk-L53QFD2S.cjs → chunk-W6CUCCSU.cjs} +224 -224
- package/dist/{chunk-L53QFD2S.cjs.map → chunk-W6CUCCSU.cjs.map} +1 -1
- package/dist/{chunk-EST7RKR7.cjs → chunk-X3QQBZTZ.cjs} +3 -3
- package/dist/chunk-X3QQBZTZ.cjs.map +1 -0
- package/dist/{chunk-KEDXZSM5.cjs → chunk-X6QCOFLV.cjs} +5 -5
- package/dist/{chunk-KEDXZSM5.cjs.map → chunk-X6QCOFLV.cjs.map} +1 -1
- package/dist/{chunk-APBJDSFX.cjs → chunk-XCHWDKHQ.cjs} +80 -72
- package/dist/chunk-XCHWDKHQ.cjs.map +1 -0
- package/dist/{chunk-IFKB6ZQS.js → chunk-Y54HBV7I.js} +4 -4
- package/dist/{chunk-IFKB6ZQS.js.map → chunk-Y54HBV7I.js.map} +1 -1
- package/dist/{chunk-GPT5SQXO.js → chunk-ZJC3HACG.js} +3 -3
- package/dist/{chunk-GPT5SQXO.js.map → chunk-ZJC3HACG.js.map} +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +177 -177
- package/dist/docs/references/docs-memory-observational-memory.md +3 -3
- package/dist/docs/references/reference-tools-mcp-client.md +32 -0
- package/dist/docs/references/reference-tools-mcp-server.md +64 -0
- package/dist/evals/index.cjs +6 -6
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +9 -9
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.js +7 -7
- package/dist/harness/index.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +19 -15
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-CENQLMA6.js +3 -0
- package/dist/{mastra-P7D6XEYW.js.map → mastra-CENQLMA6.js.map} +1 -1
- package/dist/mastra-PJ7PYLZ6.cjs +12 -0
- package/dist/{mastra-INQ6GNG4.cjs.map → mastra-PJ7PYLZ6.cjs.map} +1 -1
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.d.ts +33 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-5SC3L3PB.js +3 -0
- package/dist/{models-dev-BLHW7AM7.js.map → models-dev-5SC3L3PB.js.map} +1 -1
- package/dist/models-dev-WOAKARBQ.cjs +12 -0
- package/dist/{models-dev-4MLGR5B2.cjs.map → models-dev-WOAKARBQ.cjs.map} +1 -1
- package/dist/netlify-ILOH4ELW.cjs +12 -0
- package/dist/{netlify-CVSZUJTB.cjs.map → netlify-ILOH4ELW.cjs.map} +1 -1
- package/dist/netlify-MWWN7KT6.js +3 -0
- package/dist/{netlify-O33IHBMM.js.map → netlify-MWWN7KT6.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +51 -51
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-4SRAXFDR.cjs +44 -0
- package/dist/{provider-registry-JFMEYRW2.cjs.map → provider-registry-4SRAXFDR.cjs.map} +1 -1
- package/dist/provider-registry-F6SO6FHQ.js +3 -0
- package/dist/{provider-registry-QNY4B7KD.js.map → provider-registry-F6SO6FHQ.js.map} +1 -1
- package/dist/provider-registry.json +60 -52
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/runner-AUMIO4LP.cjs +16 -0
- package/dist/{runner-QFYUIEKV.cjs.map → runner-AUMIO4LP.cjs.map} +1 -1
- package/dist/runner-XMNVMZFT.js +3 -0
- package/dist/{runner-CLVA3GWS.js.map → runner-XMNVMZFT.js.map} +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/handlers/entry.d.ts.map +1 -1
- package/dist/workflows/index.cjs +28 -28
- package/dist/workflows/index.js +1 -1
- package/package.json +10 -10
- package/src/llm/model/provider-types.generated.d.ts +19 -15
- package/dist/chunk-4VYOBEPT.cjs.map +0 -1
- package/dist/chunk-52UBCOSR.js.map +0 -1
- package/dist/chunk-APBJDSFX.cjs.map +0 -1
- package/dist/chunk-CG6L7CTT.js.map +0 -1
- package/dist/chunk-EST7RKR7.cjs.map +0 -1
- package/dist/chunk-KMPDWFMV.js.map +0 -1
- package/dist/chunk-PQRH3PWI.cjs.map +0 -1
- package/dist/chunk-XGYB6VEV.js.map +0 -1
- package/dist/mastra-INQ6GNG4.cjs +0 -12
- package/dist/mastra-P7D6XEYW.js +0 -3
- package/dist/models-dev-4MLGR5B2.cjs +0 -12
- package/dist/models-dev-BLHW7AM7.js +0 -3
- package/dist/netlify-CVSZUJTB.cjs +0 -12
- package/dist/netlify-O33IHBMM.js +0 -3
- package/dist/provider-registry-JFMEYRW2.cjs +0 -44
- package/dist/provider-registry-QNY4B7KD.js +0 -3
- package/dist/runner-CLVA3GWS.js +0 -3
- package/dist/runner-QFYUIEKV.cjs +0 -16
package/dist/mcp/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/mcp/index.ts"],"names":[],"mappings":";;;;;;AA4BO,IAAe,aAAA,GAAf,cAAkE,UAAA,CAAW;AAAA;AAAA,EAE1E,QAAA,GAAW,KAAA;AAAA;AAAA,EAEH,IAAA;AAAA;AAAA,EAEA,OAAA;AAAA;AAAA,EAER,GAAA;AAAA;AAAA,EAEQ,WAAA;AAAA;AAAA,EAEA,YAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,WAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,gBAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,OAAA;AAAA;AAAA,EAET,cAAA;AAAA;AAAA,EAEA,MAAA;AAAA;AAAA,EAEY,MAAA;AAAA;AAAA,EAEA,SAAA;AAAA;AAAA,EAEA,aAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnB,IAAW,EAAA,GAAU;AACnB,IAAA,OAAO,IAAA,CAAK,GAAA;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,KAAA,G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K,QAAA,GAAW,IAAA;AAAA,IAClB,CAAA,MAAO;AACL,MAAA,IAAA,CAAK,GAAA,GAAO,IAAA,CAAK,MAAA,EAAQ,UAAA,MAAgB,UAAA,EAAW;AAAA,IACtD;AAEA,IAAA,IAAA,CAAK,cAAc,MAAA,CAAO,WAAA;AAC1B,IAAA,IAAA,CAAK,eAAe,MAAA,CAAO,YAAA;AAC3B,IAAA,IAAA,CAAK,aAAa,MAAA,CAAO,UAAA;AACzB,IAAA,IAAA,CAAK,cAAc,MAAA,CAAO,WAAA,IAAA,iBAAe,IAAI,IAAA,IAAO,WAAA,EAAY;AAChE,IAAA,IAAA,CAAK,QAAA,GAAW,MAAA,CAAO,QAAA,KAAa,MAAA,GAAY,OAAO,MAAA,CAAO,QAAA;AAC9D,IAAA,IAAA,CAAK,mBAAmB,MAAA,CAAO,gBAAA;AAC/B,IAAA,IAAA,CAAK,WAAW,MAAA,CAAO,QAAA;AACvB,IAAA,IAAA,CAAK,UAAU,MAAA,CAAO,OAAA;AACtB,IAAA,IAAA,CAAK,SAAS,MAAA,CAAO,MAAA;AACrB,IAAA,IAAA,CAAK,YAAY,MAAA,CAAO,SAAA;AACxB,IAAA,IAAA,CAAK,gBAAgB,MAAA,CAAO,KAAA;AAC5B,IAAA,IAAA,CAAK,cAAA,GAAiB,KAAK,YAAA,CAAa,MAAA,CAAO,OAAO,MAAA,CAAO,MAAA,EAAQ,OAAO,SAAS,CAAA;AAAA,EACvF;AAsGF","file":"index.js","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport slugify from '@sindresorhus/slugify';\nimport type { ToolsInput } from '../agent';\nimport { MastraBase } from '../base';\nimport { MastraError } from '../error';\nimport { RegisteredLogger } from '../logger';\nimport type { Mastra } from '../mastra';\nimport type { RequestContext } from '../request-context';\nimport type { InternalCoreTool, MCPToolType } from '../tools';\nimport type {\n MCPServerConfig,\n MCPServerHonoSSEOptions,\n MCPServerHTTPOptions,\n MCPServerSSEOptions,\n PackageInfo,\n RemoteInfo,\n Repository,\n ServerDetailInfo,\n ServerInfo,\n} from './types';\nexport * from './types';\nexport type { MCPToolType } from '../tools';\n\n/**\n * Abstract base class for MCP server implementations.\n * This provides a common interface and shared functionality for all MCP servers\n * that can be registered with Mastra, including handling of server metadata.\n */\nexport abstract class MCPServerBase<TId extends string = string> extends MastraBase {\n /** Tracks if the server ID has been definitively set. */\n private idWasSet = false;\n /** The display name of the MCP server. */\n public readonly name: string;\n /** The semantic version of the MCP server. */\n public readonly version: string;\n /** Internal storage for the server's unique ID. */\n private _id: TId;\n /** A description of what the MCP server does. */\n public readonly description?: string;\n /** Optional instructions describing how to use the server and its features. */\n public readonly instructions?: string;\n /** Repository information for the server's source code. */\n public readonly repository?: Repository;\n /** The release date of this server version (ISO 8601 string). */\n public readonly releaseDate: string;\n /** Indicates if this version is the latest available. */\n public readonly isLatest: boolean;\n /** The canonical packaging format (e.g., \"npm\", \"docker\"), if applicable. */\n public readonly packageCanonical?: MCPServerConfig['packageCanonical'];\n /** Information about installable packages for this server. */\n public readonly packages?: PackageInfo[];\n /** Information about remote access points for this server. */\n public readonly remotes?: RemoteInfo[];\n /** The tools registered with and converted by this MCP server. */\n public convertedTools: Record<string, InternalCoreTool>;\n /** Reference to the Mastra instance if this server is registered with one. */\n public mastra: Mastra | undefined;\n /** Agents to be exposed as tools. */\n protected readonly agents?: MCPServerConfig['agents'];\n /** Workflows to be exposed as tools. */\n protected readonly workflows?: MCPServerConfig['workflows'];\n /** Original tools configuration for re-conversion when Mastra instance is registered. */\n protected readonly originalTools: ToolsInput;\n\n /**\n * Public getter for the server's unique ID.\n * The ID is set at construction or by Mastra and is read-only afterwards.\n */\n public get id(): TId {\n return this._id;\n }\n\n /**\n * Gets a read-only view of the registered tools.\n * @returns A readonly record of converted tools.\n */\n tools(): Readonly<Record<string, InternalCoreTool>> {\n return this.convertedTools;\n }\n\n /**\n * Sets the server's unique ID. This method is typically called by Mastra when\n * registering the server, using the key provided in the Mastra configuration.\n * It ensures the ID is set only once.\n * If an ID was already provided in the MCPServerConfig, this method will be a no-op.\n * @param id The unique ID to assign to the server.\n */\n setId(id: TId) {\n if (this.idWasSet) {\n return;\n }\n this._id = id;\n this.idWasSet = true;\n }\n\n /**\n * Abstract method to convert and validate tool definitions provided to the server.\n * This method will also handle agents passed in the config.\n * @param tools Tool definitions to convert.\n * @param agents Agent definitions to convert to tools.\n * @param workflows Workflow definitions to convert to tools.\n * @returns A record of converted and validated tools.\n */\n public abstract convertTools(\n tools: ToolsInput,\n agents?: MCPServerConfig['agents'],\n workflows?: MCPServerConfig['workflows'],\n ): Record<string, InternalCoreTool>;\n\n /**\n * Internal method used by Mastra to register itself with the server.\n * @param mastra The Mastra instance.\n * @internal\n */\n __registerMastra(mastra: Mastra): void {\n this.mastra = mastra;\n // Re-convert tools now that we have the Mastra instance to populate MCP tools execute with mastra instance\n this.convertedTools = this.convertTools(this.originalTools, this.agents, this.workflows);\n\n // Auto-register tools with the Mastra instance\n if (this.originalTools && typeof this.originalTools === 'object') {\n Object.entries(this.originalTools).forEach(([key, tool]) => {\n try {\n // Only add tools that have an id property (ToolAction type)\n if (tool && typeof tool === 'object' && 'id' in tool) {\n // Use tool's intrinsic ID to avoid collisions across MCP servers\n const toolKey = typeof (tool as any).id === 'string' ? (tool as any).id : key;\n mastra.addTool(tool as any, toolKey);\n }\n } catch (error) {\n // Tool might already be registered, that's okay\n if (!(error instanceof MastraError) || error.id !== 'MASTRA_ADD_TOOL_DUPLICATE_KEY') {\n throw error;\n }\n }\n });\n }\n\n // Auto-register agents with the Mastra instance\n if (this.agents && typeof this.agents === 'object') {\n Object.entries(this.agents).forEach(([key, agent]) => {\n try {\n mastra.addAgent(agent, key);\n } catch (error) {\n // Agent might already be registered, that's okay\n if (!(error instanceof MastraError) || error.id !== 'MASTRA_ADD_AGENT_DUPLICATE_KEY') {\n throw error;\n }\n }\n });\n }\n\n // Auto-register workflows with the Mastra instance\n if (this.workflows && typeof this.workflows === 'object') {\n Object.entries(this.workflows).forEach(([key, workflow]) => {\n try {\n mastra.addWorkflow(workflow, key);\n } catch (error) {\n // Workflow might already be registered, that's okay\n if (!(error instanceof MastraError) || error.id !== 'MASTRA_ADD_WORKFLOW_DUPLICATE_KEY') {\n throw error;\n }\n }\n });\n }\n }\n\n /**\n * Constructor for the MCPServerBase.\n * @param config Configuration options for the MCP server, including metadata.\n */\n constructor(config: MCPServerConfig<TId>) {\n super({ component: RegisteredLogger.MCP_SERVER, name: config.name });\n this.name = config.name;\n this.version = config.version;\n\n // If user does not provide an ID, we will use the key from the Mastra config, but if user does not pass MCPServer\n // to Mastra, we will generate a random UUID as a backup.\n if (config.id) {\n this._id = slugify(config.id) as TId;\n this.idWasSet = true;\n } else {\n this._id = (this.mastra?.generateId() || randomUUID()) as TId;\n }\n\n this.description = config.description;\n this.instructions = config.instructions;\n this.repository = config.repository;\n this.releaseDate = config.releaseDate || new Date().toISOString();\n this.isLatest = config.isLatest === undefined ? true : config.isLatest;\n this.packageCanonical = config.packageCanonical;\n this.packages = config.packages;\n this.remotes = config.remotes;\n this.agents = config.agents;\n this.workflows = config.workflows;\n this.originalTools = config.tools;\n this.convertedTools = this.convertTools(config.tools, config.agents, config.workflows);\n }\n\n /**\n * Start the MCP server using stdio transport\n * This is typically used for Windsurf integration\n */\n public abstract startStdio(): Promise<void>;\n\n /**\n * Start the MCP server using SSE transport\n * This is typically used for web integration\n * @param options Options for the SSE transport\n */\n public abstract startSSE(options: MCPServerSSEOptions): Promise<void>;\n\n /**\n * Start the MCP server using Hono SSE transport\n * Used for Hono servers\n * @param options Options for the SSE transport\n */\n public abstract startHonoSSE(options: MCPServerHonoSSEOptions): Promise<Response | undefined>;\n\n /**\n * Start the MCP server using HTTP transport\n * @param options Options for the HTTP transport\n */\n public abstract startHTTP(options: MCPServerHTTPOptions): Promise<void>;\n\n /**\n * Close the MCP server and all its connections\n */\n public abstract close(): Promise<void>;\n\n /**\n * Gets the basic information about the server, conforming to the MCP Registry 'Server' schema.\n * This information is suitable for listing multiple servers.\n * @returns ServerInfo object containing basic server metadata.\n */\n public abstract getServerInfo(): ServerInfo;\n\n /**\n * Gets detailed information about the server, conforming to the MCP Registry 'ServerDetail' schema.\n * This includes all information from `getServerInfo` plus package and remote details.\n * @returns ServerDetailInfo object containing comprehensive server metadata.\n */\n public abstract getServerDetail(): ServerDetailInfo;\n\n /**\n * Gets a list of tools provided by this MCP server, including their schemas.\n * @returns An object containing an array of tool information.\n */\n public abstract getToolListInfo(requestContext?: RequestContext):\n | {\n tools: Array<{\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }>;\n }\n | Promise<{\n tools: Array<{\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }>;\n }>;\n\n /**\n * Gets information for a specific tool provided by this MCP server.\n * @param toolId The ID/name of the tool to retrieve.\n * @returns Tool information (name, description, inputSchema) or undefined if not found.\n */\n public abstract getToolInfo(toolId: string):\n | {\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }\n | undefined;\n\n /**\n * Executes a specific tool provided by this MCP server.\n * @param toolId The ID/name of the tool to execute.\n * @param args The arguments to pass to the tool's execute function.\n * @param executionContext Optional context for the tool execution (e.g., messages, toolCallId).\n * @returns A promise that resolves to the result of the tool execution.\n * @throws Error if the tool is not found, or if execution fails.\n */\n public abstract executeTool(\n toolId: string,\n args: any,\n executionContext?: { messages?: any[]; toolCallId?: string; requestContext?: RequestContext },\n ): Promise<any>;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/mcp/index.ts"],"names":[],"mappings":";;;;;;AA4BO,IAAe,aAAA,GAAf,cAAkE,UAAA,CAAW;AAAA;AAAA,EAE1E,QAAA,GAAW,KAAA;AAAA;AAAA,EAEH,IAAA;AAAA;AAAA,EAEA,OAAA;AAAA;AAAA,EAER,GAAA;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;AAC5B,IAAA,IAAA,CAAK,cAAA,GAAiB,KAAK,YAAA,CAAa,MAAA,CAAO,OAAO,MAAA,CAAO,MAAA,EAAQ,OAAO,SAAS,CAAA;AAAA,EACvF;AAwIF","file":"index.js","sourcesContent":["import { randomUUID } from 'node:crypto';\nimport slugify from '@sindresorhus/slugify';\nimport type { ToolsInput } from '../agent';\nimport { MastraBase } from '../base';\nimport { MastraError } from '../error';\nimport { RegisteredLogger } from '../logger';\nimport type { Mastra } from '../mastra';\nimport type { RequestContext } from '../request-context';\nimport type { InternalCoreTool, MCPToolType } from '../tools';\nimport type {\n MCPServerConfig,\n MCPServerHonoSSEOptions,\n MCPServerHTTPOptions,\n MCPServerSSEOptions,\n PackageInfo,\n RemoteInfo,\n Repository,\n ServerDetailInfo,\n ServerInfo,\n} from './types';\nexport * from './types';\nexport type { MCPToolType } from '../tools';\n\n/**\n * Abstract base class for MCP server implementations.\n * This provides a common interface and shared functionality for all MCP servers\n * that can be registered with Mastra, including handling of server metadata.\n */\nexport abstract class MCPServerBase<TId extends string = string> extends MastraBase {\n /** Tracks if the server ID has been definitively set. */\n private idWasSet = false;\n /** The display name of the MCP server. */\n public readonly name: string;\n /** The semantic version of the MCP server. */\n public readonly version: string;\n /** Internal storage for the server's unique ID. */\n private _id: TId;\n /** A description of what the MCP server does. */\n public readonly description?: string;\n /** Optional instructions describing how to use the server and its features. */\n public readonly instructions?: string;\n /** Repository information for the server's source code. */\n public readonly repository?: Repository;\n /** The release date of this server version (ISO 8601 string). */\n public readonly releaseDate: string;\n /** Indicates if this version is the latest available. */\n public readonly isLatest: boolean;\n /** The canonical packaging format (e.g., \"npm\", \"docker\"), if applicable. */\n public readonly packageCanonical?: MCPServerConfig['packageCanonical'];\n /** Information about installable packages for this server. */\n public readonly packages?: PackageInfo[];\n /** Information about remote access points for this server. */\n public readonly remotes?: RemoteInfo[];\n /** The tools registered with and converted by this MCP server. */\n public convertedTools: Record<string, InternalCoreTool>;\n /** Reference to the Mastra instance if this server is registered with one. */\n public mastra: Mastra | undefined;\n /** Agents to be exposed as tools. */\n protected readonly agents?: MCPServerConfig['agents'];\n /** Workflows to be exposed as tools. */\n protected readonly workflows?: MCPServerConfig['workflows'];\n /** Original tools configuration for re-conversion when Mastra instance is registered. */\n protected readonly originalTools: ToolsInput;\n\n /**\n * Public getter for the server's unique ID.\n * The ID is set at construction or by Mastra and is read-only afterwards.\n */\n public get id(): TId {\n return this._id;\n }\n\n /**\n * Gets a read-only view of the registered tools.\n * @returns A readonly record of converted tools.\n */\n tools(): Readonly<Record<string, InternalCoreTool>> {\n return this.convertedTools;\n }\n\n /**\n * Sets the server's unique ID. This method is typically called by Mastra when\n * registering the server, using the key provided in the Mastra configuration.\n * It ensures the ID is set only once.\n * If an ID was already provided in the MCPServerConfig, this method will be a no-op.\n * @param id The unique ID to assign to the server.\n */\n setId(id: TId) {\n if (this.idWasSet) {\n return;\n }\n this._id = id;\n this.idWasSet = true;\n }\n\n /**\n * Abstract method to convert and validate tool definitions provided to the server.\n * This method will also handle agents passed in the config.\n * @param tools Tool definitions to convert.\n * @param agents Agent definitions to convert to tools.\n * @param workflows Workflow definitions to convert to tools.\n * @returns A record of converted and validated tools.\n */\n public abstract convertTools(\n tools: ToolsInput,\n agents?: MCPServerConfig['agents'],\n workflows?: MCPServerConfig['workflows'],\n ): Record<string, InternalCoreTool>;\n\n /**\n * Internal method used by Mastra to register itself with the server.\n * @param mastra The Mastra instance.\n * @internal\n */\n __registerMastra(mastra: Mastra): void {\n this.mastra = mastra;\n // Re-convert tools now that we have the Mastra instance to populate MCP tools execute with mastra instance\n this.convertedTools = this.convertTools(this.originalTools, this.agents, this.workflows);\n\n // Auto-register tools with the Mastra instance\n if (this.originalTools && typeof this.originalTools === 'object') {\n Object.entries(this.originalTools).forEach(([key, tool]) => {\n try {\n // Only add tools that have an id property (ToolAction type)\n if (tool && typeof tool === 'object' && 'id' in tool) {\n // Use tool's intrinsic ID to avoid collisions across MCP servers\n const toolKey = typeof (tool as any).id === 'string' ? (tool as any).id : key;\n mastra.addTool(tool as any, toolKey);\n }\n } catch (error) {\n // Tool might already be registered, that's okay\n if (!(error instanceof MastraError) || error.id !== 'MASTRA_ADD_TOOL_DUPLICATE_KEY') {\n throw error;\n }\n }\n });\n }\n\n // Auto-register agents with the Mastra instance\n if (this.agents && typeof this.agents === 'object') {\n Object.entries(this.agents).forEach(([key, agent]) => {\n try {\n mastra.addAgent(agent, key);\n } catch (error) {\n // Agent might already be registered, that's okay\n if (!(error instanceof MastraError) || error.id !== 'MASTRA_ADD_AGENT_DUPLICATE_KEY') {\n throw error;\n }\n }\n });\n }\n\n // Auto-register workflows with the Mastra instance\n if (this.workflows && typeof this.workflows === 'object') {\n Object.entries(this.workflows).forEach(([key, workflow]) => {\n try {\n mastra.addWorkflow(workflow, key);\n } catch (error) {\n // Workflow might already be registered, that's okay\n if (!(error instanceof MastraError) || error.id !== 'MASTRA_ADD_WORKFLOW_DUPLICATE_KEY') {\n throw error;\n }\n }\n });\n }\n }\n\n /**\n * Constructor for the MCPServerBase.\n * @param config Configuration options for the MCP server, including metadata.\n */\n constructor(config: MCPServerConfig<TId>) {\n super({ component: RegisteredLogger.MCP_SERVER, name: config.name });\n this.name = config.name;\n this.version = config.version;\n\n // If user does not provide an ID, we will use the key from the Mastra config, but if user does not pass MCPServer\n // to Mastra, we will generate a random UUID as a backup.\n if (config.id) {\n this._id = slugify(config.id) as TId;\n this.idWasSet = true;\n } else {\n this._id = (this.mastra?.generateId() || randomUUID()) as TId;\n }\n\n this.description = config.description;\n this.instructions = config.instructions;\n this.repository = config.repository;\n this.releaseDate = config.releaseDate || new Date().toISOString();\n this.isLatest = config.isLatest === undefined ? true : config.isLatest;\n this.packageCanonical = config.packageCanonical;\n this.packages = config.packages;\n this.remotes = config.remotes;\n this.agents = config.agents;\n this.workflows = config.workflows;\n this.originalTools = config.tools;\n this.convertedTools = this.convertTools(config.tools, config.agents, config.workflows);\n }\n\n /**\n * Start the MCP server using stdio transport\n * This is typically used for Windsurf integration\n */\n public abstract startStdio(): Promise<void>;\n\n /**\n * Start the MCP server using SSE transport\n * This is typically used for web integration\n * @param options Options for the SSE transport\n */\n public abstract startSSE(options: MCPServerSSEOptions): Promise<void>;\n\n /**\n * Start the MCP server using Hono SSE transport\n * Used for Hono servers\n * @param options Options for the SSE transport\n */\n public abstract startHonoSSE(options: MCPServerHonoSSEOptions): Promise<Response | undefined>;\n\n /**\n * Start the MCP server using HTTP transport\n * @param options Options for the HTTP transport\n */\n public abstract startHTTP(options: MCPServerHTTPOptions): Promise<void>;\n\n /**\n * Close the MCP server and all its connections\n */\n public abstract close(): Promise<void>;\n\n /**\n * Gets the basic information about the server, conforming to the MCP Registry 'Server' schema.\n * This information is suitable for listing multiple servers.\n * @returns ServerInfo object containing basic server metadata.\n */\n public abstract getServerInfo(): ServerInfo;\n\n /**\n * Gets detailed information about the server, conforming to the MCP Registry 'ServerDetail' schema.\n * This includes all information from `getServerInfo` plus package and remote details.\n * @returns ServerDetailInfo object containing comprehensive server metadata.\n */\n public abstract getServerDetail(): ServerDetailInfo;\n\n /**\n * Gets a list of tools provided by this MCP server, including their schemas.\n * @returns An object containing an array of tool information.\n */\n public abstract getToolListInfo(requestContext?: RequestContext):\n | {\n tools: Array<{\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }>;\n }\n | Promise<{\n tools: Array<{\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }>;\n }>;\n\n /**\n * Gets information for a specific tool provided by this MCP server.\n * @param toolId The ID/name of the tool to retrieve.\n * @returns Tool information (name, description, inputSchema) or undefined if not found.\n */\n public abstract getToolInfo(toolId: string):\n | {\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }\n | undefined\n | Promise<\n | {\n name: string;\n description?: string;\n inputSchema: any;\n outputSchema?: any;\n toolType?: MCPToolType;\n _meta?: Record<string, unknown>;\n }\n | undefined\n >;\n\n /**\n * Executes a specific tool provided by this MCP server.\n * @param toolId The ID/name of the tool to execute.\n * @param args The arguments to pass to the tool's execute function.\n * @param executionContext Optional context for the tool execution (e.g., messages, toolCallId).\n * @returns A promise that resolves to the result of the tool execution.\n * @throws Error if the tool is not found, or if execution fails.\n */\n public abstract executeTool(\n toolId: string,\n args: any,\n executionContext?: { messages?: any[]; toolCallId?: string; requestContext?: RequestContext },\n ): Promise<any>;\n\n /**\n * Reads the content of a resource by URI.\n * @param uri The resource URI to read (e.g. `ui://weather/dashboard`).\n * @returns A promise resolving to the resource content.\n */\n public abstract readResource(\n uri: string,\n ): Promise<{ contents: Array<{ uri: string; text?: string; blob?: string }> }>;\n\n /**\n * Lists all resources available on this MCP server.\n * @returns A promise resolving to the list of resources.\n */\n public abstract listResources(): Promise<{\n resources: Array<{\n uri: string;\n name: string;\n description?: string;\n mimeType?: string;\n _meta?: Record<string, unknown>;\n }>;\n }>;\n}\n"]}
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3DIJ3TQS_cjs = require('../chunk-3DIJ3TQS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraMemory", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk3DIJ3TQS_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3DIJ3TQS_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MockMemory", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3DIJ3TQS_cjs.MockMemory; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "SYSTEM_REMINDER_END_TAG", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3DIJ3TQS_cjs.SYSTEM_REMINDER_END_TAG; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "SYSTEM_REMINDER_START_TAG", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk3DIJ3TQS_cjs.SYSTEM_REMINDER_START_TAG; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "WORKING_MEMORY_END_TAG", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk3DIJ3TQS_cjs.WORKING_MEMORY_END_TAG; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "WORKING_MEMORY_START_TAG", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk3DIJ3TQS_cjs.WORKING_MEMORY_START_TAG; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "extractWorkingMemoryContent", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk3DIJ3TQS_cjs.extractWorkingMemoryContent; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "extractWorkingMemoryTags", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk3DIJ3TQS_cjs.extractWorkingMemoryTags; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "filterSystemReminderMessages", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk3DIJ3TQS_cjs.filterSystemReminderMessages; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getThreadOMMetadata", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk3DIJ3TQS_cjs.getThreadOMMetadata; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isObservationalMemoryEnabled", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk3DIJ3TQS_cjs.isObservationalMemoryEnabled; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isSystemReminderMessage", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk3DIJ3TQS_cjs.isSystemReminderMessage; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk3DIJ3TQS_cjs.memoryDefaultOptions; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "parseMemoryRequestContext", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk3DIJ3TQS_cjs.parseMemoryRequestContext; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "removeSystemReminderTags", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk3DIJ3TQS_cjs.removeSystemReminderTags; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "removeWorkingMemoryTags", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk3DIJ3TQS_cjs.removeWorkingMemoryTags; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "setThreadOMMetadata", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk3DIJ3TQS_cjs.setThreadOMMetadata; }
|
|
78
78
|
});
|
|
79
79
|
//# sourceMappingURL=index.cjs.map
|
|
80
80
|
//# sourceMappingURL=index.cjs.map
|
package/dist/memory/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, MockMemory, SYSTEM_REMINDER_END_TAG, SYSTEM_REMINDER_START_TAG, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, filterSystemReminderMessages, getThreadOMMetadata, isObservationalMemoryEnabled, isSystemReminderMessage, memoryDefaultOptions, parseMemoryRequestContext, removeSystemReminderTags, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, MockMemory, SYSTEM_REMINDER_END_TAG, SYSTEM_REMINDER_START_TAG, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, filterSystemReminderMessages, getThreadOMMetadata, isObservationalMemoryEnabled, isSystemReminderMessage, memoryDefaultOptions, parseMemoryRequestContext, removeSystemReminderTags, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-4FQ5HEEG.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-5SC3L3PB.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkW6CUCCSU_cjs = require('./chunk-W6CUCCSU.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkW6CUCCSU_cjs.ModelsDevGateway; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=models-dev-WOAKARBQ.cjs.map
|
|
12
|
+
//# sourceMappingURL=models-dev-WOAKARBQ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-WOAKARBQ.cjs"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkCTWPJGFQ_cjs = require('./chunk-CTWPJGFQ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "NetlifyGateway", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkCTWPJGFQ_cjs.NetlifyGateway; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=netlify-ILOH4ELW.cjs.map
|
|
12
|
+
//# sourceMappingURL=netlify-ILOH4ELW.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-ILOH4ELW.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-MWWN7KT6.js"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3DIJ3TQS_cjs = require('../chunk-3DIJ3TQS.cjs');
|
|
4
4
|
var v4 = require('zod/v4');
|
|
5
5
|
|
|
6
6
|
// src/processor-provider/types.ts
|
|
@@ -67,7 +67,7 @@ var unicodeNormalizerProvider = {
|
|
|
67
67
|
}),
|
|
68
68
|
availablePhases: ["processInput"],
|
|
69
69
|
createProcessor(config) {
|
|
70
|
-
return new
|
|
70
|
+
return new chunk3DIJ3TQS_cjs.UnicodeNormalizer(config);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
var tokenLimiterProvider = {
|
|
@@ -83,7 +83,7 @@ var tokenLimiterProvider = {
|
|
|
83
83
|
}),
|
|
84
84
|
availablePhases: ["processInput", "processOutputStream", "processOutputResult"],
|
|
85
85
|
createProcessor(config) {
|
|
86
|
-
return new
|
|
86
|
+
return new chunk3DIJ3TQS_cjs.TokenLimiterProcessor(
|
|
87
87
|
config
|
|
88
88
|
);
|
|
89
89
|
}
|
|
@@ -99,7 +99,7 @@ var toolCallFilterProvider = {
|
|
|
99
99
|
}),
|
|
100
100
|
availablePhases: ["processInput"],
|
|
101
101
|
createProcessor(config) {
|
|
102
|
-
return new
|
|
102
|
+
return new chunk3DIJ3TQS_cjs.ToolCallFilter(config);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
var batchPartsProvider = {
|
|
@@ -115,7 +115,7 @@ var batchPartsProvider = {
|
|
|
115
115
|
}),
|
|
116
116
|
availablePhases: ["processOutputStream"],
|
|
117
117
|
createProcessor(config) {
|
|
118
|
-
return new
|
|
118
|
+
return new chunk3DIJ3TQS_cjs.BatchPartsProcessor(config);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
var moderationProvider = {
|
|
@@ -137,7 +137,7 @@ var moderationProvider = {
|
|
|
137
137
|
}),
|
|
138
138
|
availablePhases: ["processInput", "processOutputResult", "processOutputStream"],
|
|
139
139
|
createProcessor(config) {
|
|
140
|
-
return new
|
|
140
|
+
return new chunk3DIJ3TQS_cjs.ModerationProcessor(config);
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
var promptInjectionDetectorProvider = {
|
|
@@ -158,7 +158,7 @@ var promptInjectionDetectorProvider = {
|
|
|
158
158
|
}),
|
|
159
159
|
availablePhases: ["processInput"],
|
|
160
160
|
createProcessor(config) {
|
|
161
|
-
return new
|
|
161
|
+
return new chunk3DIJ3TQS_cjs.PromptInjectionDetector(config);
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
var piiDetectorProvider = {
|
|
@@ -181,7 +181,7 @@ var piiDetectorProvider = {
|
|
|
181
181
|
}),
|
|
182
182
|
availablePhases: ["processInput"],
|
|
183
183
|
createProcessor(config) {
|
|
184
|
-
return new
|
|
184
|
+
return new chunk3DIJ3TQS_cjs.PIIDetector(config);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
var languageDetectorProvider = {
|
|
@@ -204,7 +204,7 @@ var languageDetectorProvider = {
|
|
|
204
204
|
}),
|
|
205
205
|
availablePhases: ["processInput"],
|
|
206
206
|
createProcessor(config) {
|
|
207
|
-
return new
|
|
207
|
+
return new chunk3DIJ3TQS_cjs.LanguageDetector(config);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
var systemPromptScrubberProvider = {
|
|
@@ -225,7 +225,7 @@ var systemPromptScrubberProvider = {
|
|
|
225
225
|
}),
|
|
226
226
|
availablePhases: ["processOutputStream", "processOutputResult"],
|
|
227
227
|
createProcessor(config) {
|
|
228
|
-
return new
|
|
228
|
+
return new chunk3DIJ3TQS_cjs.SystemPromptScrubber(config);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
var BUILT_IN_PROCESSOR_PROVIDERS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnicodeNormalizer, TokenLimiterProcessor, ToolCallFilter, BatchPartsProcessor, ModerationProcessor, PromptInjectionDetector, PIIDetector, LanguageDetector, SystemPromptScrubber } from '../chunk-
|
|
1
|
+
import { UnicodeNormalizer, TokenLimiterProcessor, ToolCallFilter, BatchPartsProcessor, ModerationProcessor, PromptInjectionDetector, PIIDetector, LanguageDetector, SystemPromptScrubber } from '../chunk-4FQ5HEEG.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
// src/processor-provider/types.ts
|
|
@@ -1,208 +1,208 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3DIJ3TQS_cjs = require('../chunk-3DIJ3TQS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AgentsMDInjector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk3DIJ3TQS_cjs.AgentsMDInjector; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "BaseProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3DIJ3TQS_cjs.BaseProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3DIJ3TQS_cjs.BatchPartsProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "CostGuardProcessor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3DIJ3TQS_cjs.CostGuardProcessor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FilePartSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk3DIJ3TQS_cjs.FilePartSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ImagePartSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk3DIJ3TQS_cjs.ImagePartSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk3DIJ3TQS_cjs.LanguageDetector; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MessageContentSchema", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk3DIJ3TQS_cjs.MessageContentSchema; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MessageHistory", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk3DIJ3TQS_cjs.MessageHistory; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "MessagePartSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk3DIJ3TQS_cjs.MessagePartSchema; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk3DIJ3TQS_cjs.ModerationProcessor; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "PIIDetector", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk3DIJ3TQS_cjs.PIIDetector; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "PrefillErrorHandler", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk3DIJ3TQS_cjs.PrefillErrorHandler; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProcessorInputPhaseSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorInputPhaseSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ProcessorInputStepPhaseSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorInputStepPhaseSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ProcessorMessageContentSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorMessageContentSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ProcessorMessageSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorMessageSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ProcessorOutputResultPhaseSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorOutputResultPhaseSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ProcessorOutputStepPhaseSchema", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorOutputStepPhaseSchema; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ProcessorOutputStreamPhaseSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorOutputStreamPhaseSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ProcessorRunner", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorRunner; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ProcessorState", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorState; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ProcessorStepInputSchema", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorStepInputSchema; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "ProcessorStepOutputSchema", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorStepOutputSchema; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "ProcessorStepSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProcessorStepSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk3DIJ3TQS_cjs.PromptInjectionDetector; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "ProviderHistoryCompat", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk3DIJ3TQS_cjs.ProviderHistoryCompat; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ReasoningPartSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk3DIJ3TQS_cjs.ReasoningPartSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "RegexFilterProcessor", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk3DIJ3TQS_cjs.RegexFilterProcessor; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk3DIJ3TQS_cjs.SemanticRecall; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "SkillSearchProcessor", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk3DIJ3TQS_cjs.SkillSearchProcessor; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "SkillsProcessor", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk3DIJ3TQS_cjs.SkillsProcessor; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "SourcePartSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk3DIJ3TQS_cjs.SourcePartSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "StepStartPartSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk3DIJ3TQS_cjs.StepStartPartSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "StreamErrorRetryProcessor", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk3DIJ3TQS_cjs.StreamErrorRetryProcessor; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk3DIJ3TQS_cjs.StructuredOutputProcessor; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk3DIJ3TQS_cjs.SystemPromptScrubber; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "TextPartSchema", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk3DIJ3TQS_cjs.TextPartSchema; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "TokenLimiter", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk3DIJ3TQS_cjs.TokenLimiterProcessor; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk3DIJ3TQS_cjs.TokenLimiterProcessor; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "ToolCallFilter", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk3DIJ3TQS_cjs.ToolCallFilter; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "ToolInvocationPartSchema", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk3DIJ3TQS_cjs.ToolInvocationPartSchema; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "ToolSearchProcessor", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk3DIJ3TQS_cjs.ToolSearchProcessor; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk3DIJ3TQS_cjs.UnicodeNormalizer; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk3DIJ3TQS_cjs.WorkingMemory; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "WorkspaceInstructionsProcessor", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunk3DIJ3TQS_cjs.WorkspaceInstructionsProcessor; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "anthropicToolIdFormat", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk3DIJ3TQS_cjs.anthropicToolIdFormat; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "globalEmbeddingCache", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk3DIJ3TQS_cjs.globalEmbeddingCache; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "isProcessorWorkflow", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk3DIJ3TQS_cjs.isProcessorWorkflow; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "isRetryableOpenAIResponsesStreamError", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk3DIJ3TQS_cjs.isRetryableOpenAIResponsesStreamError; }
|
|
206
206
|
});
|
|
207
207
|
//# sourceMappingURL=index.cjs.map
|
|
208
208
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, CostGuardProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ProviderHistoryCompat, ReasoningPartSchema, RegexFilterProcessor, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StreamErrorRetryProcessor, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, anthropicToolIdFormat, globalEmbeddingCache, isProcessorWorkflow, isRetryableOpenAIResponsesStreamError } from '../chunk-
|
|
1
|
+
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, CostGuardProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ProviderHistoryCompat, ReasoningPartSchema, RegexFilterProcessor, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StreamErrorRetryProcessor, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, anthropicToolIdFormat, globalEmbeddingCache, isProcessorWorkflow, isRetryableOpenAIResponsesStreamError } from '../chunk-4FQ5HEEG.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|