@sentry/server-utils 11.5.0 → 11.7.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/build/THIRD-PARTY-LICENSES.txt +32 -32
- package/build/cjs/ai/core/utils.js +8 -0
- package/build/cjs/ai/core/utils.js.map +1 -1
- package/build/cjs/ai/langchain/index.js +14 -4
- package/build/cjs/ai/langchain/index.js.map +1 -1
- package/build/cjs/ai/langchain/typesafe-classifier.js +62 -0
- package/build/cjs/ai/langchain/typesafe-classifier.js.map +1 -0
- package/build/cjs/ai/langchain/utils.js +10 -0
- package/build/cjs/ai/langchain/utils.js.map +1 -1
- package/build/cjs/ai/langgraph/index.js +16 -10
- package/build/cjs/ai/langgraph/index.js.map +1 -1
- package/build/cjs/ai/langgraph/utils.js +6 -0
- package/build/cjs/ai/langgraph/utils.js.map +1 -1
- package/build/cjs/ai/mastra/classifier-evaluation.js +30 -0
- package/build/cjs/ai/mastra/classifier-evaluation.js.map +1 -0
- package/build/cjs/ai/mastra/constants.js +2 -1
- package/build/cjs/ai/mastra/constants.js.map +1 -1
- package/build/cjs/ai/mastra/index.js +33 -14
- package/build/cjs/ai/mastra/index.js.map +1 -1
- package/build/cjs/ai/mastra/utils.js +19 -1
- package/build/cjs/ai/mastra/utils.js.map +1 -1
- package/build/cjs/ai/openai/utils.js +1 -7
- package/build/cjs/ai/openai/utils.js.map +1 -1
- package/build/cjs/ai/pi-ai/messages.js +52 -0
- package/build/cjs/ai/pi-ai/messages.js.map +1 -1
- package/build/cjs/ai/pi-ai/providers.js +3 -1
- package/build/cjs/ai/pi-ai/providers.js.map +1 -1
- package/build/cjs/ai/pi-durable/constants.js +20 -0
- package/build/cjs/ai/pi-durable/constants.js.map +1 -0
- package/build/cjs/ai/pi-durable/index.js +166 -0
- package/build/cjs/ai/pi-durable/index.js.map +1 -0
- package/build/cjs/ai/pi-durable/models.js +140 -0
- package/build/cjs/ai/pi-durable/models.js.map +1 -0
- package/build/cjs/ai/pi-durable/runs.js +146 -0
- package/build/cjs/ai/pi-durable/runs.js.map +1 -0
- package/build/cjs/ai/pi-durable/tools.js +178 -0
- package/build/cjs/ai/pi-durable/tools.js.map +1 -0
- package/build/cjs/ai/pi-durable/utils.js +9 -0
- package/build/cjs/ai/pi-durable/utils.js.map +1 -0
- package/build/cjs/ai/typesafe/index.js +11 -13
- package/build/cjs/ai/typesafe/index.js.map +1 -1
- package/build/cjs/ai/workers-ai/utils.js +7 -7
- package/build/cjs/ai/workers-ai/utils.js.map +1 -1
- package/build/cjs/index.js +4 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/amqplib.js +36 -6
- package/build/cjs/integrations/amqplib.js.map +1 -1
- package/build/cjs/integrations/anthropic.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
- package/build/cjs/integrations/dataloader.js.map +1 -1
- package/build/cjs/integrations/express/instrumentation.js +12 -1
- package/build/cjs/integrations/express/instrumentation.js.map +1 -1
- package/build/cjs/integrations/firebase/functions.js.map +1 -1
- package/build/cjs/integrations/firebase/instrumentation.js.map +1 -1
- package/build/cjs/integrations/generic-pool.js.map +1 -1
- package/build/cjs/integrations/google-genai.js.map +1 -1
- package/build/cjs/integrations/graphql/index.js.map +1 -1
- package/build/cjs/integrations/hapi/index.js.map +1 -1
- package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
- package/build/cjs/integrations/index.js +4 -0
- package/build/cjs/integrations/index.js.map +1 -1
- package/build/cjs/integrations/kafkajs/index.js.map +1 -1
- package/build/cjs/integrations/knex.js.map +1 -1
- package/build/cjs/integrations/koa/index.js.map +1 -1
- package/build/cjs/integrations/langchain.js +14 -3
- package/build/cjs/integrations/langchain.js.map +1 -1
- package/build/cjs/integrations/langgraph.js.map +1 -1
- package/build/cjs/integrations/lru-memoizer.js.map +1 -1
- package/build/cjs/integrations/mastra-classifier.js +57 -0
- package/build/cjs/integrations/mastra-classifier.js.map +1 -0
- package/build/cjs/integrations/mastra.js +2 -0
- package/build/cjs/integrations/mastra.js.map +1 -1
- package/build/cjs/integrations/mcp-server.js.map +1 -1
- package/build/cjs/integrations/mistral.js.map +1 -1
- package/build/cjs/integrations/mongodb/index.js.map +1 -1
- package/build/cjs/integrations/mongoose/index.js.map +1 -1
- package/build/cjs/integrations/mysql.js.map +1 -1
- package/build/cjs/integrations/mysql2/index.js.map +1 -1
- package/build/cjs/integrations/neon.js +107 -0
- package/build/cjs/integrations/neon.js.map +1 -0
- package/build/cjs/integrations/openai-compatible.js.map +1 -1
- package/build/cjs/integrations/openai.js.map +1 -1
- package/build/cjs/integrations/pi-durable.js +50 -0
- package/build/cjs/integrations/pi-durable.js.map +1 -0
- package/build/cjs/integrations/postgres-js.js.map +1 -1
- package/build/cjs/integrations/postgres.js +13 -6
- package/build/cjs/integrations/postgres.js.map +1 -1
- package/build/cjs/integrations/prisma/orchestrion.js.map +1 -1
- package/build/cjs/integrations/redis/index.js +3 -1
- package/build/cjs/integrations/redis/index.js.map +1 -1
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
- package/build/cjs/integrations/tedious.js.map +1 -1
- package/build/cjs/integrations/typesafe.js +1 -1
- package/build/cjs/integrations/typesafe.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +2 -2
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/cjs/orchestrion/channels.js +4 -0
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/amqplib.js +53 -45
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js +4 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +4 -0
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/langchain.js +12 -2
- package/build/cjs/orchestrion/config/langchain.js.map +1 -1
- package/build/cjs/orchestrion/config/mastra.js +18 -2
- package/build/cjs/orchestrion/config/mastra.js.map +1 -1
- package/build/cjs/orchestrion/config/neon.js +46 -0
- package/build/cjs/orchestrion/config/neon.js.map +1 -0
- package/build/cjs/orchestrion/config/pi-durable.js +34 -0
- package/build/cjs/orchestrion/config/pi-durable.js.map +1 -0
- package/build/cjs/utils/sql.js +1 -1
- package/build/cjs/utils/sql.js.map +1 -1
- package/build/cjs/utils/withCleanScopes.js +17 -0
- package/build/cjs/utils/withCleanScopes.js.map +1 -0
- package/build/esm/ai/core/utils.js +7 -1
- package/build/esm/ai/core/utils.js.map +1 -1
- package/build/esm/ai/langchain/index.js +14 -4
- package/build/esm/ai/langchain/index.js.map +1 -1
- package/build/esm/ai/langchain/typesafe-classifier.js +57 -0
- package/build/esm/ai/langchain/typesafe-classifier.js.map +1 -0
- package/build/esm/ai/langchain/utils.js +11 -2
- package/build/esm/ai/langchain/utils.js.map +1 -1
- package/build/esm/ai/langgraph/index.js +16 -10
- package/build/esm/ai/langgraph/index.js.map +1 -1
- package/build/esm/ai/langgraph/utils.js +8 -2
- package/build/esm/ai/langgraph/utils.js.map +1 -1
- package/build/esm/ai/mastra/classifier-evaluation.js +26 -0
- package/build/esm/ai/mastra/classifier-evaluation.js.map +1 -0
- package/build/esm/ai/mastra/constants.js +3 -2
- package/build/esm/ai/mastra/constants.js.map +1 -1
- package/build/esm/ai/mastra/index.js +35 -16
- package/build/esm/ai/mastra/index.js.map +1 -1
- package/build/esm/ai/mastra/utils.js +21 -3
- package/build/esm/ai/mastra/utils.js.map +1 -1
- package/build/esm/ai/openai/utils.js +1 -7
- package/build/esm/ai/openai/utils.js.map +1 -1
- package/build/esm/ai/pi-ai/messages.js +51 -1
- package/build/esm/ai/pi-ai/messages.js.map +1 -1
- package/build/esm/ai/pi-ai/providers.js +3 -1
- package/build/esm/ai/pi-ai/providers.js.map +1 -1
- package/build/esm/ai/pi-durable/constants.js +13 -0
- package/build/esm/ai/pi-durable/constants.js.map +1 -0
- package/build/esm/ai/pi-durable/index.js +163 -0
- package/build/esm/ai/pi-durable/index.js.map +1 -0
- package/build/esm/ai/pi-durable/models.js +138 -0
- package/build/esm/ai/pi-durable/models.js.map +1 -0
- package/build/esm/ai/pi-durable/runs.js +140 -0
- package/build/esm/ai/pi-durable/runs.js.map +1 -0
- package/build/esm/ai/pi-durable/tools.js +174 -0
- package/build/esm/ai/pi-durable/tools.js.map +1 -0
- package/build/esm/ai/pi-durable/utils.js +7 -0
- package/build/esm/ai/pi-durable/utils.js.map +1 -0
- package/build/esm/ai/typesafe/index.js +13 -14
- package/build/esm/ai/typesafe/index.js.map +1 -1
- package/build/esm/ai/workers-ai/utils.js +9 -9
- package/build/esm/ai/workers-ai/utils.js.map +1 -1
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/amqplib.js +36 -6
- package/build/esm/integrations/amqplib.js.map +1 -1
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/aws-sdk/index.js.map +1 -1
- package/build/esm/integrations/dataloader.js.map +1 -1
- package/build/esm/integrations/express/instrumentation.js +13 -2
- package/build/esm/integrations/express/instrumentation.js.map +1 -1
- package/build/esm/integrations/firebase/functions.js.map +1 -1
- package/build/esm/integrations/firebase/instrumentation.js.map +1 -1
- package/build/esm/integrations/generic-pool.js.map +1 -1
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/graphql/index.js.map +1 -1
- package/build/esm/integrations/hapi/index.js.map +1 -1
- package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
- package/build/esm/integrations/index.js +4 -0
- package/build/esm/integrations/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/index.js.map +1 -1
- package/build/esm/integrations/knex.js.map +1 -1
- package/build/esm/integrations/koa/index.js.map +1 -1
- package/build/esm/integrations/langchain.js +16 -5
- package/build/esm/integrations/langchain.js.map +1 -1
- package/build/esm/integrations/langgraph.js.map +1 -1
- package/build/esm/integrations/lru-memoizer.js.map +1 -1
- package/build/esm/integrations/mastra-classifier.js +55 -0
- package/build/esm/integrations/mastra-classifier.js.map +1 -0
- package/build/esm/integrations/mastra.js +2 -0
- package/build/esm/integrations/mastra.js.map +1 -1
- package/build/esm/integrations/mcp-server.js.map +1 -1
- package/build/esm/integrations/mistral.js.map +1 -1
- package/build/esm/integrations/mongodb/index.js.map +1 -1
- package/build/esm/integrations/mongoose/index.js.map +1 -1
- package/build/esm/integrations/mysql.js.map +1 -1
- package/build/esm/integrations/mysql2/index.js.map +1 -1
- package/build/esm/integrations/neon.js +105 -0
- package/build/esm/integrations/neon.js.map +1 -0
- package/build/esm/integrations/openai-compatible.js.map +1 -1
- package/build/esm/integrations/openai.js.map +1 -1
- package/build/esm/integrations/pi-durable.js +48 -0
- package/build/esm/integrations/pi-durable.js.map +1 -0
- package/build/esm/integrations/postgres-js.js.map +1 -1
- package/build/esm/integrations/postgres.js +13 -8
- package/build/esm/integrations/postgres.js.map +1 -1
- package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
- package/build/esm/integrations/redis/index.js +3 -1
- package/build/esm/integrations/redis/index.js.map +1 -1
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
- package/build/esm/integrations/tedious.js.map +1 -1
- package/build/esm/integrations/typesafe.js +2 -2
- package/build/esm/integrations/typesafe.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +3 -3
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/orchestrion/channels.js +4 -0
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js +53 -45
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js +4 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +4 -0
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/langchain.js +12 -2
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/mastra.js +18 -2
- package/build/esm/orchestrion/config/mastra.js.map +1 -1
- package/build/esm/orchestrion/config/neon.js +42 -0
- package/build/esm/orchestrion/config/neon.js.map +1 -0
- package/build/esm/orchestrion/config/pi-durable.js +30 -0
- package/build/esm/orchestrion/config/pi-durable.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/esm/utils/sql.js +1 -1
- package/build/esm/utils/sql.js.map +1 -1
- package/build/esm/utils/withCleanScopes.js +15 -0
- package/build/esm/utils/withCleanScopes.js.map +1 -0
- package/build/types/ai/core/utils.d.ts +4 -0
- package/build/types/ai/core/utils.d.ts.map +1 -1
- package/build/types/ai/langchain/index.d.ts.map +1 -1
- package/build/types/ai/langchain/typesafe-classifier.d.ts +9 -0
- package/build/types/ai/langchain/typesafe-classifier.d.ts.map +1 -0
- package/build/types/ai/langchain/utils.d.ts +2 -0
- package/build/types/ai/langchain/utils.d.ts.map +1 -1
- package/build/types/ai/langgraph/index.d.ts.map +1 -1
- package/build/types/ai/langgraph/utils.d.ts.map +1 -1
- package/build/types/ai/mastra/classifier-evaluation.d.ts +35 -0
- package/build/types/ai/mastra/classifier-evaluation.d.ts.map +1 -0
- package/build/types/ai/mastra/constants.d.ts.map +1 -1
- package/build/types/ai/mastra/index.d.ts +4 -2
- package/build/types/ai/mastra/index.d.ts.map +1 -1
- package/build/types/ai/mastra/types.d.ts +14 -1
- package/build/types/ai/mastra/types.d.ts.map +1 -1
- package/build/types/ai/mastra/utils.d.ts.map +1 -1
- package/build/types/ai/openai/utils.d.ts.map +1 -1
- package/build/types/ai/pi-ai/messages.d.ts +14 -0
- package/build/types/ai/pi-ai/messages.d.ts.map +1 -1
- package/build/types/ai/pi-ai/providers.d.ts.map +1 -1
- package/build/types/ai/pi-durable/constants.d.ts +19 -0
- package/build/types/ai/pi-durable/constants.d.ts.map +1 -0
- package/build/types/ai/pi-durable/index.d.ts +28 -0
- package/build/types/ai/pi-durable/index.d.ts.map +1 -0
- package/build/types/ai/pi-durable/models.d.ts +10 -0
- package/build/types/ai/pi-durable/models.d.ts.map +1 -0
- package/build/types/ai/pi-durable/runs.d.ts +81 -0
- package/build/types/ai/pi-durable/runs.d.ts.map +1 -0
- package/build/types/ai/pi-durable/tools.d.ts +17 -0
- package/build/types/ai/pi-durable/tools.d.ts.map +1 -0
- package/build/types/ai/pi-durable/types.d.ts +122 -0
- package/build/types/ai/pi-durable/types.d.ts.map +1 -0
- package/build/types/ai/pi-durable/utils.d.ts +3 -0
- package/build/types/ai/pi-durable/utils.d.ts.map +1 -0
- package/build/types/ai/typesafe/index.d.ts +2 -4
- package/build/types/ai/typesafe/index.d.ts.map +1 -1
- package/build/types/ai/workers-ai/utils.d.ts +1 -1
- package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/amqplib.d.ts.map +1 -1
- package/build/types/integrations/anthropic.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
- package/build/types/integrations/dataloader.d.ts.map +1 -1
- package/build/types/integrations/express/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/express/types.d.ts +4 -6
- package/build/types/integrations/express/types.d.ts.map +1 -1
- package/build/types/integrations/firebase/functions.d.ts +2 -6
- package/build/types/integrations/firebase/functions.d.ts.map +1 -1
- package/build/types/integrations/firebase/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/generic-pool.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/graphql/index.d.ts.map +1 -1
- package/build/types/integrations/hapi/index.d.ts.map +1 -1
- package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
- package/build/types/integrations/index.d.ts.map +1 -1
- package/build/types/integrations/knex.d.ts.map +1 -1
- package/build/types/integrations/koa/index.d.ts.map +1 -1
- package/build/types/integrations/langchain.d.ts.map +1 -1
- package/build/types/integrations/langgraph.d.ts.map +1 -1
- package/build/types/integrations/lru-memoizer.d.ts.map +1 -1
- package/build/types/integrations/mastra-classifier.d.ts +6 -0
- package/build/types/integrations/mastra-classifier.d.ts.map +1 -0
- package/build/types/integrations/mastra.d.ts.map +1 -1
- package/build/types/integrations/mcp-server.d.ts.map +1 -1
- package/build/types/integrations/mistral.d.ts.map +1 -1
- package/build/types/integrations/mongoose/index.d.ts.map +1 -1
- package/build/types/integrations/mysql.d.ts.map +1 -1
- package/build/types/integrations/mysql2/index.d.ts.map +1 -1
- package/build/types/integrations/neon.d.ts +12 -0
- package/build/types/integrations/neon.d.ts.map +1 -0
- package/build/types/integrations/openai-compatible.d.ts.map +1 -1
- package/build/types/integrations/openai.d.ts.map +1 -1
- package/build/types/integrations/pi-durable.d.ts +15 -0
- package/build/types/integrations/pi-durable.d.ts.map +1 -0
- package/build/types/integrations/postgres-js.d.ts.map +1 -1
- package/build/types/integrations/postgres.d.ts +20 -0
- package/build/types/integrations/postgres.d.ts.map +1 -1
- package/build/types/integrations/prisma/orchestrion.d.ts.map +1 -1
- package/build/types/integrations/redis/index.d.ts.map +1 -1
- package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts +2 -4
- package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts.map +1 -1
- package/build/types/integrations/tedious.d.ts.map +1 -1
- package/build/types/integrations/typesafe.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +8 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/amqplib.d.ts +3 -53
- package/build/types/orchestrion/config/amqplib.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +7 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/langchain.d.ts +1 -0
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
- package/build/types/orchestrion/config/mastra.d.ts +1 -0
- package/build/types/orchestrion/config/mastra.d.ts.map +1 -1
- package/build/types/orchestrion/config/mongodb.d.ts +2 -2
- package/build/types/orchestrion/config/neon.d.ts +32 -0
- package/build/types/orchestrion/config/neon.d.ts.map +1 -0
- package/build/types/orchestrion/config/pg.d.ts +1 -1
- package/build/types/orchestrion/config/pi-durable.d.ts +29 -0
- package/build/types/orchestrion/config/pi-durable.d.ts.map +1 -0
- package/build/types/orchestrion/types.d.ts +8 -0
- package/build/types/orchestrion/types.d.ts.map +1 -0
- package/build/types/utils/withCleanScopes.d.ts +10 -0
- package/build/types/utils/withCleanScopes.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/constants.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,uBAAuB,EAAG,QAAiB,CAAC;AAEzD,4GAA4G;AAC5G,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAE9C,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,2DAA2D;AAC3D,eAAO,MAAM,qCAAqC,WAAW,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,eAAuC,CAAC;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAUzF,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAK9C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAiD,CAAC;AAEnG,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAA0D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenAiOptions } from '../core/utils';
|
|
2
2
|
import { MASTRA_EXPORTER_BRAND } from './constants';
|
|
3
|
-
import type { MastraObservabilityExporter, MastraTracingEvent } from './types';
|
|
3
|
+
import type { MastraExporterInitOptions, MastraObservabilityExporter, MastraTracingEvent } from './types';
|
|
4
4
|
export type MastraExporterOptions = GenAiOptions;
|
|
5
5
|
/**
|
|
6
6
|
* Mastra `ObservabilityExporter` that turns tracing events into Sentry spans.
|
|
@@ -19,7 +19,10 @@ export declare class SentryMastraExporter implements MastraObservabilityExporter
|
|
|
19
19
|
*/
|
|
20
20
|
private readonly _skipped;
|
|
21
21
|
private readonly _options;
|
|
22
|
+
private _spanOutputProcessors;
|
|
22
23
|
constructor(options?: MastraExporterOptions);
|
|
24
|
+
/** Called by Mastra with the config of the observability instance this exporter belongs to. */
|
|
25
|
+
init(options: MastraExporterInitOptions): void;
|
|
23
26
|
/** Mastra's interface is async; the work is synchronous. */
|
|
24
27
|
exportTracingEvent(event: MastraTracingEvent): Promise<void>;
|
|
25
28
|
/** Flush without closing the client — the app still owns it. */
|
|
@@ -38,6 +41,5 @@ export declare class SentryMastraExporter implements MastraObservabilityExporter
|
|
|
38
41
|
private _rollUpToParentAgent;
|
|
39
42
|
/** Nearest exported ancestor of a dropped span. */
|
|
40
43
|
private _resolveParentId;
|
|
41
|
-
private _attributesFor;
|
|
42
44
|
}
|
|
43
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai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AAO,CAAC,gBAAgB;CAgBzB"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Span types this exporter maps onto a `gen_ai` op. Everything else — present or future — arrives
|
|
6
6
|
* as the open `string` arm and is dropped.
|
|
7
7
|
*/
|
|
8
|
-
export type MastraSpanType = 'agent_run' | 'workflow_run' | 'model_generation' | 'tool_call' | 'mcp_tool_call' | 'provider_tool_call' | 'client_tool_call' | 'rag_embedding' | (string & {});
|
|
8
|
+
export type MastraSpanType = 'agent_run' | 'workflow_run' | 'model_generation' | 'tool_call' | 'mcp_tool_call' | 'provider_tool_call' | 'client_tool_call' | 'rag_embedding' | 'classifier_evaluation' | (string & {});
|
|
9
9
|
export type MastraTracingEventType = 'span_started' | 'span_updated' | 'span_ended';
|
|
10
10
|
export interface MastraUsageStats {
|
|
11
11
|
inputTokens?: number;
|
|
@@ -43,6 +43,7 @@ export interface MastraSpanAttributes {
|
|
|
43
43
|
stopSequences?: string[];
|
|
44
44
|
seed?: number;
|
|
45
45
|
};
|
|
46
|
+
modelId?: string;
|
|
46
47
|
toolDescription?: string;
|
|
47
48
|
instructions?: string;
|
|
48
49
|
prompt?: string;
|
|
@@ -51,6 +52,7 @@ export interface MastraSpanAttributes {
|
|
|
51
52
|
}
|
|
52
53
|
export interface MastraExportedSpan {
|
|
53
54
|
id: string;
|
|
55
|
+
traceId?: string;
|
|
54
56
|
parentSpanId?: string;
|
|
55
57
|
/** Mastra's own name; unused for Sentry span names. */
|
|
56
58
|
name: string;
|
|
@@ -74,6 +76,17 @@ export interface MastraTracingEvent {
|
|
|
74
76
|
type: MastraTracingEventType;
|
|
75
77
|
exportedSpan: MastraExportedSpan;
|
|
76
78
|
}
|
|
79
|
+
/** Mastra's `SpanOutputProcessor`, such as its default `SensitiveDataFilter`. */
|
|
80
|
+
export interface MastraSpanOutputProcessor {
|
|
81
|
+
name: string;
|
|
82
|
+
process(span: MastraExportedSpan): MastraExportedSpan | undefined;
|
|
83
|
+
}
|
|
84
|
+
/** Subset of what Mastra passes to `ObservabilityExporter.init()`. */
|
|
85
|
+
export interface MastraExporterInitOptions {
|
|
86
|
+
config?: {
|
|
87
|
+
spanOutputProcessors?: MastraSpanOutputProcessor[];
|
|
88
|
+
};
|
|
89
|
+
}
|
|
77
90
|
/** Subset of Mastra's `ObservabilityExporter`. The rest of that interface is optional. */
|
|
78
91
|
export interface MastraObservabilityExporter {
|
|
79
92
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,WAAW,GACX,eAAe,GACf,oBAAoB,GACpB,kBAAkB,GAClB,eAAe,GACf,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,cAAc,GAAG,YAAY,CAAC;AAEpF,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kGAAkG;AAClG,MAAM,WAAW,oBAAoB;IAEnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,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,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,yBAAyB,GAAG,cAAc,CA6B9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/openai/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAsB,MAAM,cAAc,CAAC;AAwB7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE3E;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,sBAAsB,CAQzF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAOlF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CA4GhG;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/openai/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAsB,MAAM,cAAc,CAAC;AAwB7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE3E;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,sBAAsB,CAQzF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAOlF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CA4GhG;AAYD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoBjG"}
|
|
@@ -11,6 +11,20 @@ export declare function piAiMessagesToGenAiMessages(messages: unknown): GenAiMes
|
|
|
11
11
|
export declare function piAiAssistantMessageToGenAiMessage(message: unknown, finishReason?: string): GenAiMessage | undefined;
|
|
12
12
|
/** pi-ai names a tool-calling stop `toolUse`; the conventions call it `tool_call`. */
|
|
13
13
|
export declare function piAiFinishReason(stopReason: unknown): string | undefined;
|
|
14
|
+
/** The request fields of a pi-ai `Context` that carry the system prompt and the tools. */
|
|
15
|
+
export interface PiAiContext {
|
|
16
|
+
systemPrompt?: string;
|
|
17
|
+
messages?: unknown;
|
|
18
|
+
tools?: unknown;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The system prompt a pi-ai request sends. pi-durable sends it as positional system messages with
|
|
22
|
+
* `sections` instead of `systemPrompt`, so the messages are replayed like pi-ai's own
|
|
23
|
+
* `getCurrentSystemPrompt` does: `content` is appended, `sections` are patched by name.
|
|
24
|
+
*/
|
|
25
|
+
export declare function piAiSystemInstructions(context: PiAiContext): string | undefined;
|
|
26
|
+
/** The tools a pi-ai request offers, with `toolsAdded` and `toolsRemoved` replayed like pi-ai's `getCurrentTools`. */
|
|
27
|
+
export declare function piAiToolDefinitions(context: PiAiContext): unknown[];
|
|
14
28
|
/** Text-only content as its text, joined the way pi-ai joins it; anything else as its mapped parts. */
|
|
15
29
|
export declare function piAiContentToString(content: unknown): string | undefined;
|
|
16
30
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-ai/messages.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,UAAU,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ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@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-ai/providers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-ai/providers.ts"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CAInD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const PI_DURABLE_INTEGRATION_NAME: 'PiDurable';
|
|
2
|
+
export declare const PI_DURABLE_ORIGIN = "auto.ai.pi_durable";
|
|
3
|
+
/** Task kinds of the pi-durable built-in tasks. */
|
|
4
|
+
export declare const PI_TASK: {
|
|
5
|
+
readonly GENERATION: 'pi.generation';
|
|
6
|
+
readonly TOOL: 'pi.tool';
|
|
7
|
+
readonly COMPACTION: 'pi.compaction';
|
|
8
|
+
};
|
|
9
|
+
/** Kind of the built-in document that holds a conversation's run control. */
|
|
10
|
+
export declare const PI_LIVE_DOC_KIND = "pi.live";
|
|
11
|
+
/** Kind of the transcript entry that holds the tool result the model receives. */
|
|
12
|
+
export declare const PI_TOOL_RESULT_ENTRY_KIND = "pi.tool-result";
|
|
13
|
+
/**
|
|
14
|
+
* Cap on open run spans. A run span is removed when the run settles, but a run the process never
|
|
15
|
+
* sees settle (a crash, or a settlement the scheduler writes outside a task phase) would otherwise
|
|
16
|
+
* stay in the map for the lifetime of the process.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MAX_TRACKED_PI_RUNS = 1000;
|
|
19
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,EAAG,WAAoB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAEtD,mDAAmD;AACnD,eAAO,MAAM,OAAO;aAClB,UAAU,EAAE,eAAe;aAC3B,IAAI,EAAE,SAAS;aACf,UAAU,EAAE,eAAe;CACnB,CAAC;AAEX,6EAA6E;AAC7E,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,OAAO,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GenAiOptions } from '../core/utils';
|
|
2
|
+
import type { PiHarnessOptions } from './types';
|
|
3
|
+
export type PiDurableOptions = GenAiOptions;
|
|
4
|
+
/**
|
|
5
|
+
* Return pi-durable `HarnessOptions` whose model requests, task phases and tool calls are traced.
|
|
6
|
+
* The caller's `models` and `registry` objects are wrapped, never modified. The result has the
|
|
7
|
+
* caller's options as prototype: pi-durable reads `settings`, `env` and `conversationCreated` at
|
|
8
|
+
* every use, so they stay live, getters included.
|
|
9
|
+
*
|
|
10
|
+
* Spans:
|
|
11
|
+
* - `gen_ai.invoke_agent` for each run, a new trace per run, or a child of the tool call that
|
|
12
|
+
* created the conversation for a subagent;
|
|
13
|
+
* - `gen_ai.chat` for each model request, under its run;
|
|
14
|
+
* - `gen_ai.execute_tool` for each tool call, under its run.
|
|
15
|
+
*
|
|
16
|
+
* The scheduler starts task phases from whichever async context last woke it, often an unrelated
|
|
17
|
+
* request. Every phase therefore runs in its run's own scopes and trace, never in the ones it
|
|
18
|
+
* inherits.
|
|
19
|
+
*/
|
|
20
|
+
export declare function instrumentPiDurableHarnessOptions<T extends PiHarnessOptions>(harnessOptions: T, options?: PiDurableOptions): T;
|
|
21
|
+
/**
|
|
22
|
+
* End the open runs and tool calls of `harness` when it closes. Closing stops the scheduler without
|
|
23
|
+
* settling the inputs in flight, so nothing else would end their spans, and the maps that track
|
|
24
|
+
* them would keep the spans for the lifetime of the process. A run whose ending commit is still in
|
|
25
|
+
* flight ends with that commit's status.
|
|
26
|
+
*/
|
|
27
|
+
export declare function endRunsOnClose(harnessOptions: PiHarnessOptions, harness: unknown): void;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAOlD,OAAO,KAAK,EAEV,gBAAgB,EAOjB,MAAM,SAAS,CAAC;AAIjB,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAK5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,gBAAgB,EAC1E,cAAc,EAAE,CAAC,EACjB,OAAO,GAAE,gBAAqB,GAC7B,CAAC,CAsBH;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,cAAc,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAqBvF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GenAiOptions } from '../core/utils';
|
|
2
|
+
import type { PiModels } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Wrap a pi-ai `Models` so every model request it sends gets a `gen_ai.chat` span.
|
|
5
|
+
*
|
|
6
|
+
* The proxy hands every other member through bound to the original, so a `Models` instance whose
|
|
7
|
+
* methods read `this` keeps working, and the caller's own object is never modified.
|
|
8
|
+
*/
|
|
9
|
+
export declare function instrumentPiModels<T extends PiModels>(models: T, options: GenAiOptions, onRequest: () => void): T;
|
|
10
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/models.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAYlD,OAAO,KAAK,EAA8C,QAAQ,EAAmB,MAAM,SAAS,CAAC;AASrG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,IAAI,GAAG,CAAC,CAsCjH"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { MaybeWeakRef, Scope, Span, SpanStatus } from '@sentry/core';
|
|
2
|
+
import type { PiTaskRuntime } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* One run: the work from an input to its answer. It spans several `pi.generation` tasks (run control
|
|
5
|
+
* moves to a new one after every tool round) and their `pi.tool` tasks, so it is tracked per
|
|
6
|
+
* conversation, which runs at most one run at a time.
|
|
7
|
+
*/
|
|
8
|
+
export interface PiRun {
|
|
9
|
+
conversationId: unknown;
|
|
10
|
+
span: Span;
|
|
11
|
+
isolationScope: Scope;
|
|
12
|
+
/** The run's first input submission, which identifies the run in `pi.live`. */
|
|
13
|
+
firstInput?: unknown;
|
|
14
|
+
/**
|
|
15
|
+
* The status the run ends with, set while the commit that ends it is in flight. `harness.close()`
|
|
16
|
+
* can begin in that gap, because `wait()` resolves as soon as the commit settles the inputs.
|
|
17
|
+
*/
|
|
18
|
+
pendingEnd?: {
|
|
19
|
+
status?: SpanStatus;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Open runs of one Harness, keyed by the pi-durable conversation id. */
|
|
23
|
+
export interface PiRuns {
|
|
24
|
+
/**
|
|
25
|
+
* Random id of this Harness, prefixed to `gen_ai.conversation.id`. pi-durable numbers
|
|
26
|
+
* conversations per storage from 1, so the bare id would merge the root conversations of every
|
|
27
|
+
* Harness into one Sentry conversation.
|
|
28
|
+
*/
|
|
29
|
+
harnessId: string;
|
|
30
|
+
active: Map<unknown, PiRun>;
|
|
31
|
+
/**
|
|
32
|
+
* Tool calls that created a conversation they own, keyed by that conversation. The child's first
|
|
33
|
+
* run becomes a child of the call while the call's trace is in progress, and otherwise continues
|
|
34
|
+
* that trace with the call as parent. This is how a subagent's run joins the trace of the run that
|
|
35
|
+
* delegated to it.
|
|
36
|
+
*/
|
|
37
|
+
owners: Map<unknown, PiOwner>;
|
|
38
|
+
/**
|
|
39
|
+
* Tool calls of running `pi.tool` phases, keyed by task id. Their spans end when the phase ends,
|
|
40
|
+
* after it has committed the result the model receives.
|
|
41
|
+
*/
|
|
42
|
+
toolCalls: Map<unknown, PiToolCall[]>;
|
|
43
|
+
}
|
|
44
|
+
/** A tool call that created a conversation it owns. */
|
|
45
|
+
export interface PiOwner {
|
|
46
|
+
/**
|
|
47
|
+
* The call's `execute_tool` span, held weakly: a conversation whose first run never starts must
|
|
48
|
+
* not keep the trace of the call alive.
|
|
49
|
+
*/
|
|
50
|
+
span: MaybeWeakRef<Span>;
|
|
51
|
+
/** The `sentry-trace` value of the span, used to continue its trace once that trace has ended. */
|
|
52
|
+
sentryTrace: string;
|
|
53
|
+
/** The `baggage` value of the span, used together with `sentryTrace`. */
|
|
54
|
+
baggage: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
/** One `execute()` of a tool. */
|
|
57
|
+
export interface PiToolCall {
|
|
58
|
+
span: Span;
|
|
59
|
+
callId?: string;
|
|
60
|
+
recordOutputs: boolean;
|
|
61
|
+
/** Set once the span has a status other than ok, so the committed result does not overwrite it. */
|
|
62
|
+
failed?: boolean;
|
|
63
|
+
/** When `execute()` settled, used as the span's end time. */
|
|
64
|
+
endTimestamp?: number;
|
|
65
|
+
}
|
|
66
|
+
export declare function createRuns(): PiRuns;
|
|
67
|
+
export declare function toSentryConversationId(runs: PiRuns, conversationId: unknown): string;
|
|
68
|
+
/** Start a run of `conversationId`: a new trace, or a child of the tool call that owns the conversation. */
|
|
69
|
+
export declare function startRun(conversationId: unknown, runs: PiRuns): PiRun;
|
|
70
|
+
export declare function endRun(run: PiRun, runs: PiRuns, status?: SpanStatus): void;
|
|
71
|
+
/**
|
|
72
|
+
* Watch the generation task's commits for the end of its run.
|
|
73
|
+
*
|
|
74
|
+
* pi-durable keeps run control in the conversation's `pi.live` document: `run` names the task that
|
|
75
|
+
* owns the run and the run's inputs, it moves to the next generation after every tool round, and it
|
|
76
|
+
* is removed, in the same commit that settles the inputs, when the run ends. Every commit that moves
|
|
77
|
+
* or ends a run edits `pi.live` through `tx.doc()`, so reading that draft after the commit's change
|
|
78
|
+
* function returns shows whether the run survived the commit.
|
|
79
|
+
*/
|
|
80
|
+
export declare function observeRunControl(runtime: PiTaskRuntime, run: PiRun, runs: PiRuns): PiTaskRuntime;
|
|
81
|
+
//# sourceMappingURL=runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAgB1E,OAAO,KAAK,EAAyD,aAAa,EAAE,MAAM,SAAS,CAAC;AAOpG;;;;GAIG;AACH,MAAM,WAAW,KAAK;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,cAAc,EAAE,KAAK,CAAC;IACtB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC;CACtC;AAED,yEAAyE;AACzE,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9B;;;OAGG;IACH,SAAS,EAAE,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;CACvC;AAED,uDAAuD;AACvD,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IACzB,kGAAkG;IAClG,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,iCAAiC;AACjC,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,mGAAmG;IACnG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,UAAU,IAAI,MAAM,CAOnC;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,GAAG,MAAM,CAEpF;AAED,4GAA4G;AAC5G,wBAAgB,QAAQ,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,CAuCrE;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAU1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CAwEjG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenAiOptions } from '../core/utils';
|
|
2
|
+
import type { PiRuns } from './runs';
|
|
3
|
+
import type { PiTaskRuntime, PiTool } from './types';
|
|
4
|
+
export declare function markBuiltInTool(tool: unknown): void;
|
|
5
|
+
/**
|
|
6
|
+
* Prepare the runtime of a `pi.tool` phase. The tool task resolves the called tool from its agent,
|
|
7
|
+
* so the runtime hands out traced tools, and it collects the result entries the phase commits.
|
|
8
|
+
* `finish` ends the phase's tool spans with the result the model receives, which pi-durable builds
|
|
9
|
+
* after `execute()` returns: from `api.output()`, through `afterTool` hooks and output limits.
|
|
10
|
+
*/
|
|
11
|
+
export declare function instrumentToolPhase(runtime: PiTaskRuntime, runs: PiRuns, wrapTool: (tool: PiTool) => PiTool): {
|
|
12
|
+
runtime: PiTaskRuntime;
|
|
13
|
+
finish: () => void;
|
|
14
|
+
};
|
|
15
|
+
/** Wrap a tool so each call gets a `gen_ai.execute_tool` span. */
|
|
16
|
+
export declare function instrumentTool(tool: PiTool, runs: PiRuns, options: GenAiOptions): PiTool;
|
|
17
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/tools.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,QAAQ,CAAC;AAEjD,OAAO,KAAK,EAIV,aAAa,EACb,MAAM,EAGP,MAAM,SAAS,CAAC;AAWjB,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAInD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GACjC;IAAE,OAAO,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAuChD;AAED,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAmExF"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structural subsets of the `@earendil-works/pi-durable` and `@earendil-works/pi-ai` types the
|
|
3
|
+
* instrumentation reads. The SDK does not depend on either package, so only the fields used here
|
|
4
|
+
* are declared, and every one of them is treated as possibly absent at runtime.
|
|
5
|
+
*/
|
|
6
|
+
import type { PiAiContext } from '../pi-ai/messages';
|
|
7
|
+
import type { PiAiUsage } from '../pi-ai/usage';
|
|
8
|
+
export interface PiAssistantMessage {
|
|
9
|
+
role?: string;
|
|
10
|
+
content?: unknown[];
|
|
11
|
+
provider?: string;
|
|
12
|
+
model?: string;
|
|
13
|
+
responseModel?: string;
|
|
14
|
+
responseId?: string;
|
|
15
|
+
usage?: PiAiUsage;
|
|
16
|
+
stopReason?: string;
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface PiModel {
|
|
20
|
+
id?: string;
|
|
21
|
+
provider?: string;
|
|
22
|
+
baseUrl?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PiStreamOptions {
|
|
25
|
+
temperature?: number;
|
|
26
|
+
maxTokens?: number;
|
|
27
|
+
reasoning?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface PiEventStream {
|
|
30
|
+
result(): Promise<PiAssistantMessage>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The `Models` methods that send a model request. Everything else passes through untouched. The
|
|
34
|
+
* deferred methods fetch the answer of a request the provider parked, so they take a handle in
|
|
35
|
+
* place of the request context.
|
|
36
|
+
*/
|
|
37
|
+
export interface PiModels {
|
|
38
|
+
stream?(model: PiModel, context: PiAiContext, options?: PiStreamOptions): PiEventStream;
|
|
39
|
+
streamSimple?(model: PiModel, context: PiAiContext, options?: PiStreamOptions): PiEventStream;
|
|
40
|
+
complete?(model: PiModel, context: PiAiContext, options?: PiStreamOptions): Promise<PiAssistantMessage>;
|
|
41
|
+
completeSimple?(model: PiModel, context: PiAiContext, options?: PiStreamOptions): Promise<PiAssistantMessage>;
|
|
42
|
+
streamDeferred?(model: PiModel, handle: unknown, options?: unknown): PiEventStream;
|
|
43
|
+
fetchDeferred?(model: PiModel, handle: unknown, options?: unknown): Promise<PiAssistantMessage>;
|
|
44
|
+
}
|
|
45
|
+
export interface PiToolExecutionResult {
|
|
46
|
+
content?: unknown[];
|
|
47
|
+
isError?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface PiToolExecutionApi {
|
|
50
|
+
taskId?: unknown;
|
|
51
|
+
conversationId?: unknown;
|
|
52
|
+
callId?: string;
|
|
53
|
+
commit?(change: (tx: object) => unknown, context: unknown): Promise<unknown>;
|
|
54
|
+
}
|
|
55
|
+
export interface PiTool {
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
execute(args: unknown, api: PiToolExecutionApi, context: unknown): Promise<PiToolExecutionResult>;
|
|
59
|
+
}
|
|
60
|
+
export interface PiAgent {
|
|
61
|
+
tools?: readonly PiTool[];
|
|
62
|
+
}
|
|
63
|
+
/** The tool result the model receives, as pi-durable commits it in a `pi.tool-result` entry. */
|
|
64
|
+
export interface PiToolResultMessage {
|
|
65
|
+
toolCallId?: unknown;
|
|
66
|
+
content?: unknown[];
|
|
67
|
+
isError?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface PiDocToken {
|
|
70
|
+
definition?: {
|
|
71
|
+
kind?: string;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export interface PiEntryToken {
|
|
75
|
+
kind?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface PiSettlement {
|
|
78
|
+
status?: string;
|
|
79
|
+
reason?: string;
|
|
80
|
+
}
|
|
81
|
+
/** The `pi.live` document; `run` is present exactly while the conversation is busy. */
|
|
82
|
+
export interface PiLiveState {
|
|
83
|
+
run?: {
|
|
84
|
+
inputs?: unknown[];
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export type PiCommitChange = (tx: object, current: unknown) => unknown;
|
|
88
|
+
/** pi-durable ids (conversations, tasks, submissions) are numbers, typed as `unknown` here. */
|
|
89
|
+
export interface PiTaskRuntime {
|
|
90
|
+
readonly taskId: unknown;
|
|
91
|
+
readonly conversationId: unknown;
|
|
92
|
+
readonly signal?: AbortSignal;
|
|
93
|
+
agent(context: unknown): Promise<PiAgent>;
|
|
94
|
+
commit(change: PiCommitChange, context: unknown): Promise<void>;
|
|
95
|
+
}
|
|
96
|
+
export type PiPhaseHandler = (task: unknown, runtime: PiTaskRuntime, context: unknown) => Promise<unknown>;
|
|
97
|
+
export interface PiTaskDefinition {
|
|
98
|
+
name: string;
|
|
99
|
+
phases: Record<string, PiPhaseHandler>;
|
|
100
|
+
abort?: PiPhaseHandler;
|
|
101
|
+
}
|
|
102
|
+
export interface PiTask {
|
|
103
|
+
definition: PiTaskDefinition;
|
|
104
|
+
}
|
|
105
|
+
export interface PiRegistrySnapshot {
|
|
106
|
+
task(name: string): PiTask | undefined;
|
|
107
|
+
tasks(): readonly PiTask[];
|
|
108
|
+
}
|
|
109
|
+
export interface PiRegistryReader {
|
|
110
|
+
snapshot(): PiRegistrySnapshot;
|
|
111
|
+
subscribe(listener: () => void): () => void;
|
|
112
|
+
}
|
|
113
|
+
export interface PiHarnessOptions {
|
|
114
|
+
models?: PiModels;
|
|
115
|
+
registry?: PiRegistryReader;
|
|
116
|
+
onReport?: (error: unknown) => void;
|
|
117
|
+
}
|
|
118
|
+
export interface PiHarness {
|
|
119
|
+
/** Calls `listener` when `close()` begins. */
|
|
120
|
+
subscribeClose?(listener: () => void): () => void;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,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,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,SAAS;IACxB,8CAA8C;IAC9C,cAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/pi-durable/utils.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,GAAG,OAAO,CAGpE"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { Span } from '@sentry/core';
|
|
1
|
+
import type { Span, SpanAttributes } from '@sentry/core';
|
|
2
2
|
import type { GenAiOptions } from '../core/utils';
|
|
3
3
|
/**
|
|
4
4
|
* Start the span for a `systemOne(request)` call. The request model falls back to the client's
|
|
5
5
|
* `defaultModel`, the same way the SDK resolves it.
|
|
6
6
|
*/
|
|
7
|
-
export declare function
|
|
8
|
-
/** Serialize the `state` and `questions` of an evaluation request. Also used for TypeSafe models on Workers AI. */
|
|
9
|
-
export declare function getEvaluationInputMessages(request: Record<string, unknown>): string | undefined;
|
|
7
|
+
export declare function startDecideSpan(request: unknown, client: unknown, recordInputs: boolean, attributes?: SpanAttributes): Span;
|
|
10
8
|
/**
|
|
11
9
|
* Add the response model, token usage and (optionally) the answers of a `systemOne` result.
|
|
12
10
|
* Also used for TypeSafe models on Workers AI.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/typesafe/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/typesafe/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,OAAO,EACrB,UAAU,CAAC,EAAE,cAAc,GAC1B,IAAI,CAaN;AAgBD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAyB/F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,EAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC,CAe/F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Span, SpanAttributeValue } from '@sentry/core';
|
|
2
2
|
import { setOutputMessagesAttribute } from '../core/utils';
|
|
3
3
|
export { setOutputMessagesAttribute };
|
|
4
|
-
export type WorkersAiOperationName = 'chat' | 'embeddings' | '
|
|
4
|
+
export type WorkersAiOperationName = 'chat' | 'embeddings' | 'decide';
|
|
5
5
|
export declare const WORKERS_AI_OPERATION_SPAN_OPS: Record<WorkersAiOperationName, string>;
|
|
6
6
|
/**
|
|
7
7
|
* Determine the gen_ai operation name from the model and inputs passed to `AI.run`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAIL,0BAA0B,EAC3B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEtE,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAIhF,CAAC;AAOF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAaxF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmCpC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAoC7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,OAAO,EACtB,aAAa,CAAC,EAAE,sBAAsB,GACrC,IAAI,CAyCN"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { attachHapiErrorHandler as _attachHapiErrorHandler } from './integration
|
|
|
5
5
|
export { bindTracingChannelToSpan } from './tracing-channel';
|
|
6
6
|
export type { TracingChannelPayloadWithSpan } from './tracing-channel';
|
|
7
7
|
export type { InstrumentationConfig } from './orchestrion/apmTypes';
|
|
8
|
+
export type { OrchestrionChannelContext } from './orchestrion/types';
|
|
8
9
|
export { orchestrionModuleInjected } from './utils/moduleInjected';
|
|
9
10
|
export { subscribe as subscribeDiagnosticsChannel, tracingChannel as diagnosticsTracingChannel, } from './utils/diagnosticsChannel';
|
|
10
11
|
export { eveConversationHook, eveIntegration } from './eve';
|
|
@@ -33,6 +34,7 @@ export { langChainIntegration } from './integrations/langchain';
|
|
|
33
34
|
export { langGraphIntegration } from './integrations/langgraph';
|
|
34
35
|
export { createFlueInstrumentation } from './ai/flue';
|
|
35
36
|
export { flueIntegration } from './integrations/flue';
|
|
37
|
+
export { piDurableIntegration } from './integrations/pi-durable';
|
|
36
38
|
export type { FlueOptions } from './ai/flue';
|
|
37
39
|
export { mastraIntegration } from './integrations/mastra';
|
|
38
40
|
export { mcpServerIntegration } from './integrations/mcp-server';
|
|
@@ -49,6 +51,7 @@ export { mysql2Integration } from './integrations/mysql2';
|
|
|
49
51
|
export { openAIIntegration } from './integrations/openai';
|
|
50
52
|
export { postgresIntegration } from './integrations/postgres';
|
|
51
53
|
export { postgresJsIntegration } from './integrations/postgres-js';
|
|
54
|
+
export { neonIntegration } from './integrations/neon';
|
|
52
55
|
export { tediousIntegration } from './integrations/tedious';
|
|
53
56
|
export { vercelAIIntegration } from './integrations/vercel-ai';
|
|
54
57
|
export { expressIntegration } from './integrations/express';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,wCAAw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AAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../src/integrations/amqplib.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../src/integrations/amqplib.ts"],"names":[],"mappings":"AA6mBA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGnH;AAoCD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AAmNA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"AA2OA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../src/integrations/dataloader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../src/integrations/dataloader.ts"],"names":[],"mappings":"AA+MA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/express/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/express/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AA+BpE,OAAO,KAAK,EACV,yBAAyB,EAKzB,wBAAwB,EACxB,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AAuBjB,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,yBAAyB,EAClC,cAAc,EAAE,OAAO,kBAAkB,CAAC,cAAc,GACvD,IAAI,CA8CN;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,oBAAoB,EAC1B,iBAAiB,EAAE,wBAAwB,GAAG,SAAS,GACtD,IAAI,CA4CN"}
|