braintrust 3.17.0 → 3.18.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/dev/dist/index.d.mts +13 -0
- package/dev/dist/index.d.ts +13 -0
- package/dev/dist/index.js +4300 -2199
- package/dev/dist/index.mjs +2211 -110
- package/dist/apply-auto-instrumentation.js +238 -186
- package/dist/apply-auto-instrumentation.mjs +68 -16
- package/dist/auto-instrumentations/bundler/esbuild.cjs +90 -15
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +90 -15
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +90 -15
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +90 -15
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +89 -14
- package/dist/auto-instrumentations/bundler/webpack.cjs +90 -15
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-VXJONZVX.mjs → chunk-GNUEZ2PE.mjs} +13 -3
- package/dist/auto-instrumentations/{chunk-CNQ7BUKN.mjs → chunk-MYCHHXOE.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-E5DUYJWK.mjs → chunk-ZYKZEMRT.mjs} +82 -15
- package/dist/auto-instrumentations/hook.mjs +102 -15
- package/dist/auto-instrumentations/index.cjs +84 -16
- package/dist/auto-instrumentations/index.d.mts +3 -1
- package/dist/auto-instrumentations/index.d.ts +3 -1
- package/dist/auto-instrumentations/index.mjs +5 -3
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +1 -1
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +1 -1
- package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
- package/dist/browser.d.mts +177 -11
- package/dist/browser.d.ts +177 -11
- package/dist/browser.js +2296 -104
- package/dist/browser.mjs +2455 -263
- package/dist/{chunk-VMBQETG3.js → chunk-73IYIIOL.js} +28 -2
- package/dist/{chunk-O4ZIWXO3.mjs → chunk-BYFADLEZ.mjs} +27 -1
- package/dist/cli.js +2219 -118
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2296 -104
- package/dist/edge-light.mjs +2455 -263
- package/dist/index.d.mts +177 -11
- package/dist/index.d.ts +177 -11
- package/dist/index.js +3296 -1128
- package/dist/index.mjs +2272 -104
- package/dist/instrumentation/index.d.mts +3 -0
- package/dist/instrumentation/index.d.ts +3 -0
- package/dist/instrumentation/index.js +2171 -105
- package/dist/instrumentation/index.mjs +2171 -105
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +2296 -104
- package/dist/workerd.mjs +2455 -263
- package/package.json +10 -10
|
@@ -361,6 +361,10 @@ var aiSDKChannels = defineChannels("ai", {
|
|
|
361
361
|
toolLoopAgentStream: channel({
|
|
362
362
|
channelName: "ToolLoopAgent.stream",
|
|
363
363
|
kind: "async"
|
|
364
|
+
}),
|
|
365
|
+
v7CreateTelemetryDispatcher: channel({
|
|
366
|
+
channelName: "createTelemetryDispatcher",
|
|
367
|
+
kind: "sync-stream"
|
|
364
368
|
})
|
|
365
369
|
});
|
|
366
370
|
|
|
@@ -408,6 +412,10 @@ var googleGenAIChannels = defineChannels("@google/genai", {
|
|
|
408
412
|
embedContent: channel({
|
|
409
413
|
channelName: "models.embedContent",
|
|
410
414
|
kind: "async"
|
|
415
|
+
}),
|
|
416
|
+
interactionsCreate: channel({
|
|
417
|
+
channelName: "interactions.create",
|
|
418
|
+
kind: "async"
|
|
411
419
|
})
|
|
412
420
|
});
|
|
413
421
|
|
|
@@ -641,6 +649,17 @@ var flueChannels = defineChannels("@flue/runtime", {
|
|
|
641
649
|
})
|
|
642
650
|
});
|
|
643
651
|
|
|
652
|
+
// src/instrumentation/plugins/pi-coding-agent-channels.ts
|
|
653
|
+
var piCodingAgentChannels = defineChannels(
|
|
654
|
+
"@earendil-works/pi-coding-agent",
|
|
655
|
+
{
|
|
656
|
+
prompt: channel({
|
|
657
|
+
channelName: "AgentSession.prompt",
|
|
658
|
+
kind: "async"
|
|
659
|
+
})
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
|
|
644
663
|
// src/instrumentation/config.ts
|
|
645
664
|
var envIntegrationAliases = {
|
|
646
665
|
openai: "openai",
|
|
@@ -649,6 +668,11 @@ var envIntegrationAliases = {
|
|
|
649
668
|
openaicodexsdk: "openaiCodexSDK",
|
|
650
669
|
codex: "openaiCodexSDK",
|
|
651
670
|
"codex-sdk": "openaiCodexSDK",
|
|
671
|
+
"pi-coding-agent": "piCodingAgent",
|
|
672
|
+
"pi-coding-agent-sdk": "piCodingAgent",
|
|
673
|
+
picodingagent: "piCodingAgent",
|
|
674
|
+
picodingagentsdk: "piCodingAgent",
|
|
675
|
+
"@earendil-works/pi-coding-agent": "piCodingAgent",
|
|
652
676
|
anthropic: "anthropic",
|
|
653
677
|
aisdk: "aisdk",
|
|
654
678
|
"ai-sdk": "aisdk",
|
|
@@ -714,7 +738,8 @@ function getDefaultInstrumentationIntegrations() {
|
|
|
714
738
|
genkit: true,
|
|
715
739
|
gitHubCopilot: true,
|
|
716
740
|
langchain: true,
|
|
717
|
-
langgraph: true
|
|
741
|
+
langgraph: true,
|
|
742
|
+
piCodingAgent: true
|
|
718
743
|
};
|
|
719
744
|
}
|
|
720
745
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
@@ -968,4 +993,5 @@ var langChainChannels = defineChannels("@langchain/core", {
|
|
|
968
993
|
|
|
969
994
|
|
|
970
995
|
|
|
971
|
-
|
|
996
|
+
|
|
997
|
+
exports.__export = __export; exports.patchTracingChannel = patchTracingChannel; exports.isomorph_default = isomorph_default; exports.openAIChannels = openAIChannels; exports.openAICodexChannels = openAICodexChannels; exports.anthropicChannels = anthropicChannels; exports.aiSDKChannels = aiSDKChannels; exports.claudeAgentSDKChannels = claudeAgentSDKChannels; exports.cursorSDKChannels = cursorSDKChannels; exports.openAIAgentsCoreChannels = openAIAgentsCoreChannels; exports.googleGenAIChannels = googleGenAIChannels; exports.huggingFaceChannels = huggingFaceChannels; exports.openRouterAgentChannels = openRouterAgentChannels; exports.openRouterChannels = openRouterChannels; exports.mistralChannels = mistralChannels; exports.googleADKChannels = googleADKChannels; exports.cohereChannels = cohereChannels; exports.groqChannels = groqChannels; exports.genkitChannels = genkitChannels; exports.genkitCoreChannels = genkitCoreChannels; exports.gitHubCopilotChannels = gitHubCopilotChannels; exports.flueChannels = flueChannels; exports.langChainChannels = langChainChannels; exports.piCodingAgentChannels = piCodingAgentChannels; exports.getDefaultInstrumentationIntegrations = getDefaultInstrumentationIntegrations; exports.readDisabledInstrumentationEnvConfig = readDisabledInstrumentationEnvConfig; exports.isInstrumentationIntegrationDisabled = isInstrumentationIntegrationDisabled; exports.installMastraExporterFactory = installMastraExporterFactory; exports.classifyMastraTarget = classifyMastraTarget; exports.patchMastraSource = patchMastraSource;
|
|
@@ -361,6 +361,10 @@ var aiSDKChannels = defineChannels("ai", {
|
|
|
361
361
|
toolLoopAgentStream: channel({
|
|
362
362
|
channelName: "ToolLoopAgent.stream",
|
|
363
363
|
kind: "async"
|
|
364
|
+
}),
|
|
365
|
+
v7CreateTelemetryDispatcher: channel({
|
|
366
|
+
channelName: "createTelemetryDispatcher",
|
|
367
|
+
kind: "sync-stream"
|
|
364
368
|
})
|
|
365
369
|
});
|
|
366
370
|
|
|
@@ -408,6 +412,10 @@ var googleGenAIChannels = defineChannels("@google/genai", {
|
|
|
408
412
|
embedContent: channel({
|
|
409
413
|
channelName: "models.embedContent",
|
|
410
414
|
kind: "async"
|
|
415
|
+
}),
|
|
416
|
+
interactionsCreate: channel({
|
|
417
|
+
channelName: "interactions.create",
|
|
418
|
+
kind: "async"
|
|
411
419
|
})
|
|
412
420
|
});
|
|
413
421
|
|
|
@@ -641,6 +649,17 @@ var flueChannels = defineChannels("@flue/runtime", {
|
|
|
641
649
|
})
|
|
642
650
|
});
|
|
643
651
|
|
|
652
|
+
// src/instrumentation/plugins/pi-coding-agent-channels.ts
|
|
653
|
+
var piCodingAgentChannels = defineChannels(
|
|
654
|
+
"@earendil-works/pi-coding-agent",
|
|
655
|
+
{
|
|
656
|
+
prompt: channel({
|
|
657
|
+
channelName: "AgentSession.prompt",
|
|
658
|
+
kind: "async"
|
|
659
|
+
})
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
|
|
644
663
|
// src/instrumentation/config.ts
|
|
645
664
|
var envIntegrationAliases = {
|
|
646
665
|
openai: "openai",
|
|
@@ -649,6 +668,11 @@ var envIntegrationAliases = {
|
|
|
649
668
|
openaicodexsdk: "openaiCodexSDK",
|
|
650
669
|
codex: "openaiCodexSDK",
|
|
651
670
|
"codex-sdk": "openaiCodexSDK",
|
|
671
|
+
"pi-coding-agent": "piCodingAgent",
|
|
672
|
+
"pi-coding-agent-sdk": "piCodingAgent",
|
|
673
|
+
picodingagent: "piCodingAgent",
|
|
674
|
+
picodingagentsdk: "piCodingAgent",
|
|
675
|
+
"@earendil-works/pi-coding-agent": "piCodingAgent",
|
|
652
676
|
anthropic: "anthropic",
|
|
653
677
|
aisdk: "aisdk",
|
|
654
678
|
"ai-sdk": "aisdk",
|
|
@@ -714,7 +738,8 @@ function getDefaultInstrumentationIntegrations() {
|
|
|
714
738
|
genkit: true,
|
|
715
739
|
gitHubCopilot: true,
|
|
716
740
|
langchain: true,
|
|
717
|
-
langgraph: true
|
|
741
|
+
langgraph: true,
|
|
742
|
+
piCodingAgent: true
|
|
718
743
|
};
|
|
719
744
|
}
|
|
720
745
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
@@ -962,6 +987,7 @@ export {
|
|
|
962
987
|
gitHubCopilotChannels,
|
|
963
988
|
flueChannels,
|
|
964
989
|
langChainChannels,
|
|
990
|
+
piCodingAgentChannels,
|
|
965
991
|
getDefaultInstrumentationIntegrations,
|
|
966
992
|
readDisabledInstrumentationEnvConfig,
|
|
967
993
|
isInstrumentationIntegrationDisabled,
|