@morsehq-dev/sdk 0.5.0-rc.5 → 0.5.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anthropic/index.cjs +11 -11
- package/dist/anthropic/index.js +4 -4
- package/dist/anthropic-agent-sdk/index.cjs +40 -40
- package/dist/anthropic-agent-sdk/index.js +6 -6
- package/dist/browser/anthropic/index.cjs +11 -11
- package/dist/browser/anthropic/index.js +4 -4
- package/dist/browser/anthropic-agent-sdk/index.cjs +40 -40
- package/dist/browser/anthropic-agent-sdk/index.js +6 -6
- package/dist/browser/{chunk-EH326H6U.js → chunk-2LZCQD3J.js} +3 -3
- package/dist/browser/{chunk-EH326H6U.js.map → chunk-2LZCQD3J.js.map} +1 -1
- package/dist/browser/{chunk-QAFFDJFK.cjs → chunk-6YPVIGD2.cjs} +6 -6
- package/dist/browser/{chunk-QAFFDJFK.cjs.map → chunk-6YPVIGD2.cjs.map} +1 -1
- package/dist/browser/{chunk-WGWPCVYB.cjs → chunk-DQ4JWHYH.cjs} +18 -18
- package/dist/browser/{chunk-WGWPCVYB.cjs.map → chunk-DQ4JWHYH.cjs.map} +1 -1
- package/dist/browser/{chunk-CI7M2GHD.js → chunk-FDWPKINR.js} +4 -4
- package/dist/browser/{chunk-CI7M2GHD.js.map → chunk-FDWPKINR.js.map} +1 -1
- package/dist/browser/{chunk-64YI3IZS.js → chunk-IXCAR4UA.js} +3 -3
- package/dist/browser/{chunk-64YI3IZS.js.map → chunk-IXCAR4UA.js.map} +1 -1
- package/dist/browser/{chunk-MIB3EOC4.js → chunk-JNF26SQM.js} +5 -5
- package/dist/browser/{chunk-MIB3EOC4.js.map → chunk-JNF26SQM.js.map} +1 -1
- package/dist/browser/{chunk-V7AUPQIJ.js → chunk-MIHCAKQ2.js} +22 -14
- package/dist/browser/chunk-MIHCAKQ2.js.map +1 -0
- package/dist/browser/{chunk-WR2SQLKP.cjs → chunk-NK6D2G5O.cjs} +7 -7
- package/dist/browser/{chunk-WR2SQLKP.cjs.map → chunk-NK6D2G5O.cjs.map} +1 -1
- package/dist/browser/{chunk-GLL57K7P.js → chunk-PHE4P3DN.js} +3 -3
- package/dist/browser/{chunk-GLL57K7P.js.map → chunk-PHE4P3DN.js.map} +1 -1
- package/dist/{chunk-SJ625SQS.cjs → browser/chunk-PNUCUOUA.cjs} +15 -15
- package/dist/browser/{chunk-ZVVUZRG7.cjs.map → chunk-PNUCUOUA.cjs.map} +1 -1
- package/dist/browser/{chunk-47GVOQB4.cjs → chunk-TGN4FEKB.cjs} +12 -12
- package/dist/browser/{chunk-47GVOQB4.cjs.map → chunk-TGN4FEKB.cjs.map} +1 -1
- package/dist/{chunk-MNV4HASC.js → browser/chunk-TIZ5QRK2.js} +4 -4
- package/dist/browser/{chunk-UL5TNXQL.js.map → chunk-TIZ5QRK2.js.map} +1 -1
- package/dist/browser/{chunk-IHIS62VS.cjs → chunk-WG45SF7N.cjs} +22 -14
- package/dist/browser/chunk-WG45SF7N.cjs.map +1 -0
- package/dist/browser/{chunk-26Q2QD5J.cjs → chunk-ZAISDHUV.cjs} +5 -5
- package/dist/browser/{chunk-26Q2QD5J.cjs.map → chunk-ZAISDHUV.cjs.map} +1 -1
- package/dist/browser/index.cjs +91 -91
- package/dist/browser/index.js +8 -8
- package/dist/browser/integrations/pino.cjs +4 -4
- package/dist/browser/integrations/pino.js +3 -3
- package/dist/browser/langchain/index.cjs +17 -17
- package/dist/browser/langchain/index.js +2 -2
- package/dist/browser/langgraph/index.cjs +27 -27
- package/dist/browser/langgraph/index.js +5 -5
- package/dist/browser/openai/index.cjs +11 -11
- package/dist/browser/openai/index.js +2 -2
- package/dist/browser/openai-agents/index.cjs +34 -34
- package/dist/browser/openai-agents/index.js +4 -4
- package/dist/browser/vercel-ai/index.cjs +14 -14
- package/dist/browser/vercel-ai/index.js +3 -3
- package/dist/{chunk-QZDUGEIR.js → chunk-2GWOF5JM.js} +3 -3
- package/dist/{chunk-QZDUGEIR.js.map → chunk-2GWOF5JM.js.map} +1 -1
- package/dist/{chunk-DPW4W7H7.cjs → chunk-4QY5O46P.cjs} +18 -18
- package/dist/{chunk-DPW4W7H7.cjs.map → chunk-4QY5O46P.cjs.map} +1 -1
- package/dist/{chunk-ELVBOJWY.js → chunk-5YJXFU5U.js} +22 -14
- package/dist/chunk-5YJXFU5U.js.map +1 -0
- package/dist/{chunk-Z5MFR7UE.cjs → chunk-AT3YR5SP.cjs} +5 -5
- package/dist/{chunk-Z5MFR7UE.cjs.map → chunk-AT3YR5SP.cjs.map} +1 -1
- package/dist/{chunk-DGBQ3UI6.cjs → chunk-B3WEUUUK.cjs} +7 -7
- package/dist/{chunk-DGBQ3UI6.cjs.map → chunk-B3WEUUUK.cjs.map} +1 -1
- package/dist/{chunk-7I4ILCLY.js → chunk-DK3RX7RS.js} +4 -4
- package/dist/{chunk-7I4ILCLY.js.map → chunk-DK3RX7RS.js.map} +1 -1
- package/dist/{chunk-I3P5CHBV.cjs → chunk-K4FHTOBB.cjs} +12 -12
- package/dist/{chunk-I3P5CHBV.cjs.map → chunk-K4FHTOBB.cjs.map} +1 -1
- package/dist/{browser/chunk-UL5TNXQL.js → chunk-LEDIWC2M.js} +4 -4
- package/dist/{chunk-MNV4HASC.js.map → chunk-LEDIWC2M.js.map} +1 -1
- package/dist/{chunk-YKPZQPEW.js → chunk-QTATKDEI.js} +3 -3
- package/dist/{chunk-YKPZQPEW.js.map → chunk-QTATKDEI.js.map} +1 -1
- package/dist/{chunk-HONYN2OI.js → chunk-T5UFHQLZ.js} +3 -3
- package/dist/{chunk-HONYN2OI.js.map → chunk-T5UFHQLZ.js.map} +1 -1
- package/dist/{chunk-RRE2LX2A.cjs → chunk-TEWSIQ6E.cjs} +6 -6
- package/dist/{chunk-RRE2LX2A.cjs.map → chunk-TEWSIQ6E.cjs.map} +1 -1
- package/dist/{chunk-DQ4T2MJE.cjs → chunk-UV5FUVNK.cjs} +22 -14
- package/dist/chunk-UV5FUVNK.cjs.map +1 -0
- package/dist/{chunk-NR36TJMT.js → chunk-Z2AYPTB2.js} +5 -5
- package/dist/{chunk-NR36TJMT.js.map → chunk-Z2AYPTB2.js.map} +1 -1
- package/dist/{browser/chunk-ZVVUZRG7.cjs → chunk-ZFZTJXIO.cjs} +15 -15
- package/dist/{chunk-SJ625SQS.cjs.map → chunk-ZFZTJXIO.cjs.map} +1 -1
- package/dist/index.cjs +98 -98
- package/dist/index.js +9 -9
- package/dist/integrations/pino.cjs +4 -4
- package/dist/integrations/pino.js +3 -3
- package/dist/langchain/index.cjs +17 -17
- package/dist/langchain/index.js +2 -2
- package/dist/langgraph/index.cjs +27 -27
- package/dist/langgraph/index.js +5 -5
- package/dist/openai/index.cjs +11 -11
- package/dist/openai/index.js +2 -2
- package/dist/openai-agents/index.cjs +34 -34
- package/dist/openai-agents/index.js +4 -4
- package/dist/vercel-ai/index.cjs +14 -14
- package/dist/vercel-ai/index.js +3 -3
- package/package.json +1 -1
- package/dist/browser/chunk-IHIS62VS.cjs.map +0 -1
- package/dist/browser/chunk-V7AUPQIJ.js.map +0 -1
- package/dist/chunk-DQ4T2MJE.cjs.map +0 -1
- package/dist/chunk-ELVBOJWY.js.map +0 -1
package/dist/browser/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
var
|
|
3
|
+
var chunkDQ4JWHYH_cjs = require('./chunk-DQ4JWHYH.cjs');
|
|
4
|
+
var chunkTGN4FEKB_cjs = require('./chunk-TGN4FEKB.cjs');
|
|
5
|
+
require('./chunk-ZAISDHUV.cjs');
|
|
6
|
+
var chunk6YPVIGD2_cjs = require('./chunk-6YPVIGD2.cjs');
|
|
7
7
|
require('./chunk-SWQOPFE4.cjs');
|
|
8
8
|
require('./chunk-RBNCTHK3.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkWG45SF7N_cjs = require('./chunk-WG45SF7N.cjs');
|
|
10
10
|
|
|
11
11
|
// src/_internal/auto-detect.browser.ts
|
|
12
12
|
async function installAdapters() {
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// src/index.ts
|
|
16
|
-
|
|
16
|
+
chunkWG45SF7N_cjs.init_env();
|
|
17
17
|
|
|
18
18
|
// src/_internal/db-capture.browser.ts
|
|
19
19
|
function maybeEnableDbCaptureFromEnv() {
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// src/index.ts
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
chunkWG45SF7N_cjs.init_otel_provider_browser();
|
|
24
|
+
chunkWG45SF7N_cjs.init_redaction();
|
|
25
25
|
|
|
26
26
|
// src/_internal/transport.ts
|
|
27
|
-
|
|
28
|
-
var SDK_VERSION = "0.5.0-rc.
|
|
27
|
+
chunkWG45SF7N_cjs.init_diagnostics();
|
|
28
|
+
var SDK_VERSION = "0.5.0-rc.6" ;
|
|
29
29
|
var RETRY_AFTER_CAP_SECONDS = 30;
|
|
30
30
|
function parseRetryAfter(value) {
|
|
31
31
|
if (!value) return null;
|
|
@@ -130,11 +130,11 @@ var BatchTransport = class {
|
|
|
130
130
|
/** Enqueue an event. Non-blocking. Returns false if the queue is full. */
|
|
131
131
|
track(event) {
|
|
132
132
|
if (this.closed) {
|
|
133
|
-
|
|
133
|
+
chunkWG45SF7N_cjs.recordDrop(chunkWG45SF7N_cjs.REASON_SHUTDOWN_DROP, "trace");
|
|
134
134
|
return false;
|
|
135
135
|
}
|
|
136
136
|
if (this.queue.length >= this.maxQueueSize) {
|
|
137
|
-
|
|
137
|
+
chunkWG45SF7N_cjs.recordDrop(chunkWG45SF7N_cjs.REASON_QUEUE_FULL, "trace");
|
|
138
138
|
return false;
|
|
139
139
|
}
|
|
140
140
|
this.queue.push(event);
|
|
@@ -221,12 +221,12 @@ var BatchTransport = class {
|
|
|
221
221
|
body: JSON.stringify(payload),
|
|
222
222
|
signal: controller.signal
|
|
223
223
|
});
|
|
224
|
-
|
|
224
|
+
chunkWG45SF7N_cjs.setLevel(resp.headers.get("X-Morse-Diagnostics"));
|
|
225
225
|
const droppedCount = countPayloadEntries(payload);
|
|
226
226
|
const droppedCategory = categoryOf(payload);
|
|
227
227
|
if (resp.status === 429) {
|
|
228
228
|
await recordQuotaState(resp);
|
|
229
|
-
|
|
229
|
+
chunkWG45SF7N_cjs.recordDrop(chunkWG45SF7N_cjs.REASON_QUOTA_REJECTED, droppedCategory, droppedCount);
|
|
230
230
|
}
|
|
231
231
|
if (!resp.ok) {
|
|
232
232
|
let bodySnippet = "";
|
|
@@ -236,9 +236,9 @@ var BatchTransport = class {
|
|
|
236
236
|
} catch {
|
|
237
237
|
}
|
|
238
238
|
if (resp.status !== 429) {
|
|
239
|
-
|
|
239
|
+
chunkWG45SF7N_cjs.recordDrop(chunkWG45SF7N_cjs.REASON_RETRY_EXHAUSTED, droppedCategory, droppedCount);
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
chunkWG45SF7N_cjs.report(new Error(`morse: batch POST returned ${resp.status} ${bodySnippet}`), {
|
|
242
242
|
fingerprint: "morse.transport.post.non_2xx",
|
|
243
243
|
extra: {
|
|
244
244
|
endpoint_host: hostnameOf(url),
|
|
@@ -247,8 +247,8 @@ var BatchTransport = class {
|
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
} catch (err) {
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
chunkWG45SF7N_cjs.recordDrop(chunkWG45SF7N_cjs.REASON_RETRY_EXHAUSTED, categoryOf(payload), countPayloadEntries(payload));
|
|
251
|
+
chunkWG45SF7N_cjs.report(err, {
|
|
252
252
|
fingerprint: "morse.transport.post.network",
|
|
253
253
|
extra: {
|
|
254
254
|
endpoint_host: hostnameOf(url),
|
|
@@ -292,10 +292,10 @@ function categoryOf(payload) {
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
// src/index.ts
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
295
|
+
chunkWG45SF7N_cjs.init_tracing();
|
|
296
|
+
chunkWG45SF7N_cjs.init_diagnostics();
|
|
297
|
+
chunkWG45SF7N_cjs.init_spans();
|
|
298
|
+
chunkWG45SF7N_cjs.init_propagation();
|
|
299
299
|
var version = SDK_VERSION;
|
|
300
300
|
var singleton = null;
|
|
301
301
|
var transportFactory = (opts) => new BatchTransport(opts);
|
|
@@ -315,9 +315,9 @@ function logDestinationOnce(endpoint) {
|
|
|
315
315
|
}
|
|
316
316
|
function resolveEndpoint(explicit) {
|
|
317
317
|
if (explicit && explicit.length > 0) return explicit;
|
|
318
|
-
const fromEnv =
|
|
318
|
+
const fromEnv = chunkWG45SF7N_cjs.getEndpoint();
|
|
319
319
|
if (fromEnv) return fromEnv;
|
|
320
|
-
return
|
|
320
|
+
return chunkWG45SF7N_cjs.DEFAULT_ENDPOINT;
|
|
321
321
|
}
|
|
322
322
|
var OTLP_TRACES_PATH = "/api/v1/otlp/v1/traces";
|
|
323
323
|
function deriveOtlpEndpoint(tracesEndpoint) {
|
|
@@ -332,10 +332,10 @@ function deriveOtlpEndpoint(tracesEndpoint) {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
function buildSingleton(opts, redaction) {
|
|
335
|
-
if (
|
|
335
|
+
if (chunkWG45SF7N_cjs.isDisabled()) {
|
|
336
336
|
return null;
|
|
337
337
|
}
|
|
338
|
-
const apiKey = opts.apiKey ??
|
|
338
|
+
const apiKey = opts.apiKey ?? chunkWG45SF7N_cjs.getApiKey();
|
|
339
339
|
if (!apiKey) {
|
|
340
340
|
if (!noApiKeyWarningEmitted) {
|
|
341
341
|
logger(
|
|
@@ -347,24 +347,24 @@ function buildSingleton(opts, redaction) {
|
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
349
349
|
const endpoint = resolveEndpoint(opts.endpoint);
|
|
350
|
-
const flushIntervalSeconds = opts.flushIntervalSeconds ??
|
|
350
|
+
const flushIntervalSeconds = opts.flushIntervalSeconds ?? chunkWG45SF7N_cjs.getFlushIntervalSeconds();
|
|
351
351
|
const transport = transportFactory({ apiKey, endpoint, flushIntervalSeconds });
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
const explicitSource =
|
|
356
|
-
const resolvedSource = explicitSource ??
|
|
357
|
-
|
|
352
|
+
chunkWG45SF7N_cjs.setTransport(transport);
|
|
353
|
+
chunkWG45SF7N_cjs.setRedactionConfig(redaction);
|
|
354
|
+
chunkWG45SF7N_cjs.setDiagnosticsClientConfig({ apiKey, endpoint });
|
|
355
|
+
const explicitSource = chunkWG45SF7N_cjs.isValidInternalSource(opts.source) ? opts.source : void 0;
|
|
356
|
+
const resolvedSource = explicitSource ?? chunkWG45SF7N_cjs.getInternalSource() ?? null;
|
|
357
|
+
chunkWG45SF7N_cjs.setSource(resolvedSource);
|
|
358
358
|
logDestinationOnce(endpoint);
|
|
359
359
|
try {
|
|
360
|
-
|
|
360
|
+
chunkWG45SF7N_cjs.getEngine().configure({
|
|
361
361
|
endpoint: deriveOtlpEndpoint(endpoint),
|
|
362
362
|
apiKey,
|
|
363
|
-
sampleRate:
|
|
363
|
+
sampleRate: chunkWG45SF7N_cjs.getSampleRate(),
|
|
364
364
|
scheduleDelayMillis: flushIntervalSeconds * 1e3,
|
|
365
|
-
maxQueueSize:
|
|
366
|
-
maxExportBatchSize:
|
|
367
|
-
maxFieldBytes:
|
|
365
|
+
maxQueueSize: chunkWG45SF7N_cjs.getMaxQueueSize(),
|
|
366
|
+
maxExportBatchSize: chunkWG45SF7N_cjs.getMaxBatchSize(),
|
|
367
|
+
maxFieldBytes: chunkWG45SF7N_cjs.getMaxFieldBytes(),
|
|
368
368
|
// 10s (not the exporter's un-overridden 30s ceiling): a genuine
|
|
369
369
|
// network blip still gets several retries with backoff; a fully dead
|
|
370
370
|
// endpoint fails within a bounded, shutdown-friendly window instead
|
|
@@ -373,32 +373,32 @@ function buildSingleton(opts, redaction) {
|
|
|
373
373
|
redactionConfig: redaction
|
|
374
374
|
});
|
|
375
375
|
} catch (err) {
|
|
376
|
-
|
|
376
|
+
chunkWG45SF7N_cjs.report(err, { fingerprint: "morse.otel_provider.configure" });
|
|
377
377
|
}
|
|
378
378
|
void installAdapters().catch(() => {
|
|
379
379
|
});
|
|
380
380
|
try {
|
|
381
381
|
maybeEnableDbCaptureFromEnv();
|
|
382
382
|
} catch (err) {
|
|
383
|
-
|
|
383
|
+
chunkWG45SF7N_cjs.report(err, { fingerprint: "morse.db_capture.register" });
|
|
384
384
|
}
|
|
385
385
|
return { apiKey, endpoint, transport, redaction };
|
|
386
386
|
}
|
|
387
387
|
function ensureInitialized() {
|
|
388
|
-
if (
|
|
388
|
+
if (chunkWG45SF7N_cjs.isDisabled()) return null;
|
|
389
389
|
if (singleton !== null) return singleton;
|
|
390
|
-
singleton = buildSingleton({},
|
|
390
|
+
singleton = buildSingleton({}, chunkWG45SF7N_cjs.buildRedactionConfig());
|
|
391
391
|
return singleton;
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
chunkTGN4FEKB_cjs._setEnsureInitialized(() => {
|
|
394
394
|
ensureInitialized();
|
|
395
395
|
});
|
|
396
396
|
function init(options = {}) {
|
|
397
|
-
if (
|
|
397
|
+
if (chunkWG45SF7N_cjs.isDisabled()) {
|
|
398
398
|
logger("info", "morse: MORSE_DISABLED=1 \u2014 SDK is a no-op");
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
|
-
const redaction =
|
|
401
|
+
const redaction = chunkWG45SF7N_cjs.buildRedactionConfig(options.redaction);
|
|
402
402
|
try {
|
|
403
403
|
if (singleton !== null) {
|
|
404
404
|
void singleton.transport.shutdown();
|
|
@@ -406,10 +406,10 @@ function init(options = {}) {
|
|
|
406
406
|
}
|
|
407
407
|
singleton = buildSingleton(options, redaction);
|
|
408
408
|
} catch (err) {
|
|
409
|
-
|
|
409
|
+
chunkWG45SF7N_cjs.report(err, { fingerprint: "morse.init" });
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
var track =
|
|
412
|
+
var track = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
413
413
|
(options) => {
|
|
414
414
|
const state = ensureInitialized();
|
|
415
415
|
if (!state) return;
|
|
@@ -417,33 +417,33 @@ var track = chunkQAFFDJFK_cjs.absorbErrorsSync(
|
|
|
417
417
|
agent_id: options.agentId,
|
|
418
418
|
...options.runData
|
|
419
419
|
};
|
|
420
|
-
const redacted =
|
|
420
|
+
const redacted = chunkWG45SF7N_cjs.redactValue(payload, state.redaction);
|
|
421
421
|
state.transport.track(redacted);
|
|
422
422
|
},
|
|
423
423
|
{ fingerprint: "morse.track" }
|
|
424
424
|
);
|
|
425
|
-
var batchTrack =
|
|
425
|
+
var batchTrack = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
426
426
|
(runs) => {
|
|
427
427
|
const state = ensureInitialized();
|
|
428
428
|
if (!state) return;
|
|
429
429
|
for (const run2 of runs) {
|
|
430
|
-
const redacted =
|
|
430
|
+
const redacted = chunkWG45SF7N_cjs.redactValue(run2, state.redaction);
|
|
431
431
|
state.transport.track(redacted);
|
|
432
432
|
}
|
|
433
433
|
},
|
|
434
434
|
{ fingerprint: "morse.batch_track" }
|
|
435
435
|
);
|
|
436
|
-
var record =
|
|
436
|
+
var record = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
437
437
|
(rec) => {
|
|
438
438
|
const state = ensureInitialized();
|
|
439
439
|
if (!state) return;
|
|
440
|
-
const traceId =
|
|
441
|
-
const now =
|
|
440
|
+
const traceId = chunkWG45SF7N_cjs.generateTraceId();
|
|
441
|
+
const now = chunkWG45SF7N_cjs.nowIso();
|
|
442
442
|
const resolvedStatus = rec.errorMessage ? "failed" : rec.status ?? "completed";
|
|
443
443
|
const span2 = {
|
|
444
444
|
trace_id: traceId,
|
|
445
|
-
span_id:
|
|
446
|
-
type:
|
|
445
|
+
span_id: chunkWG45SF7N_cjs.generateSpanId(),
|
|
446
|
+
type: chunkWG45SF7N_cjs.SpanType.AGENT,
|
|
447
447
|
name: rec.agent,
|
|
448
448
|
started_at: now,
|
|
449
449
|
ended_at: now,
|
|
@@ -468,58 +468,58 @@ var record = chunkQAFFDJFK_cjs.absorbErrorsSync(
|
|
|
468
468
|
success: rec.success,
|
|
469
469
|
outcome: rec.outcome
|
|
470
470
|
};
|
|
471
|
-
const entry =
|
|
472
|
-
const redacted =
|
|
473
|
-
|
|
471
|
+
const entry = chunkWG45SF7N_cjs.buildTraceEntry(traceFields, [span2]);
|
|
472
|
+
const redacted = chunkWG45SF7N_cjs.redactValue(entry, state.redaction);
|
|
473
|
+
chunkWG45SF7N_cjs.sendTrace(redacted);
|
|
474
474
|
},
|
|
475
475
|
{ fingerprint: "morse.record" }
|
|
476
476
|
);
|
|
477
477
|
function run(nameOrOpts, fn) {
|
|
478
478
|
const opts = typeof nameOrOpts === "string" ? { agentName: nameOrOpts } : nameOrOpts;
|
|
479
479
|
ensureInitialized();
|
|
480
|
-
return
|
|
480
|
+
return chunkWG45SF7N_cjs.runSync(opts, fn);
|
|
481
481
|
}
|
|
482
482
|
function runTraced(options, fn) {
|
|
483
483
|
ensureInitialized();
|
|
484
|
-
return
|
|
484
|
+
return chunkWG45SF7N_cjs.runAsync(options, fn);
|
|
485
485
|
}
|
|
486
486
|
function setContext2(dims) {
|
|
487
|
-
|
|
487
|
+
chunkWG45SF7N_cjs.setContext(dims);
|
|
488
488
|
}
|
|
489
489
|
function startSpan2(options) {
|
|
490
|
-
return
|
|
490
|
+
return chunkWG45SF7N_cjs.startSpan(options);
|
|
491
491
|
}
|
|
492
492
|
function span(options, fn) {
|
|
493
|
-
return
|
|
493
|
+
return chunkWG45SF7N_cjs.spanSync(options, fn);
|
|
494
494
|
}
|
|
495
495
|
function spanAsync2(options, fn) {
|
|
496
|
-
return
|
|
496
|
+
return chunkWG45SF7N_cjs.spanAsync(options, fn);
|
|
497
497
|
}
|
|
498
|
-
var flush =
|
|
498
|
+
var flush = chunk6YPVIGD2_cjs.absorbErrorsAsync(
|
|
499
499
|
async () => {
|
|
500
500
|
if (singleton !== null) {
|
|
501
501
|
await singleton.transport.flush();
|
|
502
|
-
await
|
|
502
|
+
await chunkWG45SF7N_cjs.getEngine().flush();
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
505
|
{ fingerprint: "morse.flush" }
|
|
506
506
|
);
|
|
507
|
-
var quotaState2 =
|
|
507
|
+
var quotaState2 = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
508
508
|
() => {
|
|
509
509
|
if (singleton === null) return null;
|
|
510
510
|
return getQuotaState();
|
|
511
511
|
},
|
|
512
512
|
{ fingerprint: "morse.quota_state" }
|
|
513
513
|
);
|
|
514
|
-
var shutdown =
|
|
514
|
+
var shutdown = chunk6YPVIGD2_cjs.absorbErrorsAsync(
|
|
515
515
|
async () => {
|
|
516
516
|
if (singleton !== null) {
|
|
517
517
|
await singleton.transport.shutdown();
|
|
518
|
-
await
|
|
519
|
-
|
|
520
|
-
await
|
|
518
|
+
await chunkWG45SF7N_cjs.getEngine().flush();
|
|
519
|
+
chunkWG45SF7N_cjs.getEngine().shutdown();
|
|
520
|
+
await chunkWG45SF7N_cjs.flushOnce();
|
|
521
521
|
singleton = null;
|
|
522
|
-
|
|
522
|
+
chunkWG45SF7N_cjs.setTransport(null);
|
|
523
523
|
}
|
|
524
524
|
},
|
|
525
525
|
{ fingerprint: "morse.shutdown" }
|
|
@@ -528,14 +528,14 @@ function _resetForTesting4() {
|
|
|
528
528
|
if (singleton !== null) {
|
|
529
529
|
void singleton.transport.shutdown();
|
|
530
530
|
singleton = null;
|
|
531
|
-
|
|
531
|
+
chunkWG45SF7N_cjs.setTransport(null);
|
|
532
532
|
}
|
|
533
|
-
|
|
533
|
+
chunkWG45SF7N_cjs.getEngine().resetForTesting();
|
|
534
534
|
noApiKeyWarningEmitted = false;
|
|
535
535
|
lastLoggedEndpoint = null;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
536
|
+
chunkWG45SF7N_cjs.setSource(null);
|
|
537
|
+
chunkWG45SF7N_cjs._resetForTesting2();
|
|
538
|
+
chunkWG45SF7N_cjs._resetForTesting();
|
|
539
539
|
_resetQuotaStateForTesting();
|
|
540
540
|
transportFactory = (opts) => new BatchTransport(opts);
|
|
541
541
|
}
|
|
@@ -543,59 +543,59 @@ function _setTransportFactoryForTesting(factory) {
|
|
|
543
543
|
transportFactory = factory;
|
|
544
544
|
}
|
|
545
545
|
function _getLastTraceForTesting() {
|
|
546
|
-
return
|
|
546
|
+
return chunkWG45SF7N_cjs.getLastTrace();
|
|
547
547
|
}
|
|
548
548
|
function _getActiveTraceStateForTesting() {
|
|
549
|
-
return
|
|
549
|
+
return chunkWG45SF7N_cjs.getActiveTraceState();
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
Object.defineProperty(exports, "MAX_SEGMENT_CONTENT_BYTES", {
|
|
553
553
|
enumerable: true,
|
|
554
|
-
get: function () { return
|
|
554
|
+
get: function () { return chunkDQ4JWHYH_cjs.MAX_SEGMENT_CONTENT_BYTES; }
|
|
555
555
|
});
|
|
556
556
|
Object.defineProperty(exports, "extractAnthropicSegments", {
|
|
557
557
|
enumerable: true,
|
|
558
|
-
get: function () { return
|
|
558
|
+
get: function () { return chunkDQ4JWHYH_cjs.extractAnthropicSegments; }
|
|
559
559
|
});
|
|
560
560
|
Object.defineProperty(exports, "instrumentAnthropic", {
|
|
561
561
|
enumerable: true,
|
|
562
|
-
get: function () { return
|
|
562
|
+
get: function () { return chunkDQ4JWHYH_cjs.instrumentAnthropic; }
|
|
563
563
|
});
|
|
564
564
|
Object.defineProperty(exports, "isAnthropicWrapped", {
|
|
565
565
|
enumerable: true,
|
|
566
|
-
get: function () { return
|
|
566
|
+
get: function () { return chunkDQ4JWHYH_cjs.isAnthropicWrapped; }
|
|
567
567
|
});
|
|
568
568
|
Object.defineProperty(exports, "uninstallAnthropic", {
|
|
569
569
|
enumerable: true,
|
|
570
|
-
get: function () { return
|
|
570
|
+
get: function () { return chunkDQ4JWHYH_cjs.uninstallAnthropic; }
|
|
571
571
|
});
|
|
572
572
|
Object.defineProperty(exports, "wrapAnthropic", {
|
|
573
573
|
enumerable: true,
|
|
574
|
-
get: function () { return
|
|
574
|
+
get: function () { return chunkDQ4JWHYH_cjs.wrapAnthropic; }
|
|
575
575
|
});
|
|
576
576
|
Object.defineProperty(exports, "log", {
|
|
577
577
|
enumerable: true,
|
|
578
|
-
get: function () { return
|
|
578
|
+
get: function () { return chunkTGN4FEKB_cjs.log; }
|
|
579
579
|
});
|
|
580
580
|
Object.defineProperty(exports, "W3C_TRACEPARENT_HEADER", {
|
|
581
581
|
enumerable: true,
|
|
582
|
-
get: function () { return
|
|
582
|
+
get: function () { return chunkWG45SF7N_cjs.W3C_TRACEPARENT_HEADER; }
|
|
583
583
|
});
|
|
584
584
|
Object.defineProperty(exports, "extractTraceparent", {
|
|
585
585
|
enumerable: true,
|
|
586
|
-
get: function () { return
|
|
586
|
+
get: function () { return chunkWG45SF7N_cjs.extractTraceparent; }
|
|
587
587
|
});
|
|
588
588
|
Object.defineProperty(exports, "formatTraceparent", {
|
|
589
589
|
enumerable: true,
|
|
590
|
-
get: function () { return
|
|
590
|
+
get: function () { return chunkWG45SF7N_cjs.formatTraceparent; }
|
|
591
591
|
});
|
|
592
592
|
Object.defineProperty(exports, "injectIntoRequestInit", {
|
|
593
593
|
enumerable: true,
|
|
594
|
-
get: function () { return
|
|
594
|
+
get: function () { return chunkWG45SF7N_cjs.injectIntoRequestInit; }
|
|
595
595
|
});
|
|
596
596
|
Object.defineProperty(exports, "injectTraceparent", {
|
|
597
597
|
enumerable: true,
|
|
598
|
-
get: function () { return
|
|
598
|
+
get: function () { return chunkWG45SF7N_cjs.injectTraceparent; }
|
|
599
599
|
});
|
|
600
600
|
exports._getActiveTraceStateForTesting = _getActiveTraceStateForTesting;
|
|
601
601
|
exports._getLastTraceForTesting = _getLastTraceForTesting;
|
package/dist/browser/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { MAX_SEGMENT_CONTENT_BYTES, extractAnthropicSegments, instrumentAnthropic, isAnthropicWrapped, uninstallAnthropic, wrapAnthropic } from './chunk-
|
|
2
|
-
import { _setEnsureInitialized } from './chunk-
|
|
3
|
-
export { log } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { absorbErrorsSync, absorbErrorsAsync } from './chunk-
|
|
1
|
+
export { MAX_SEGMENT_CONTENT_BYTES, extractAnthropicSegments, instrumentAnthropic, isAnthropicWrapped, uninstallAnthropic, wrapAnthropic } from './chunk-JNF26SQM.js';
|
|
2
|
+
import { _setEnsureInitialized } from './chunk-FDWPKINR.js';
|
|
3
|
+
export { log } from './chunk-FDWPKINR.js';
|
|
4
|
+
import './chunk-PHE4P3DN.js';
|
|
5
|
+
import { absorbErrorsSync, absorbErrorsAsync } from './chunk-2LZCQD3J.js';
|
|
6
6
|
import './chunk-4FALQMOZ.js';
|
|
7
7
|
import './chunk-MLDVXMQD.js';
|
|
8
|
-
import { init_env, init_otel_provider_browser, init_redaction, init_diagnostics, init_tracing, init_spans, init_propagation, redactValue, generateTraceId, nowIso, SpanType, generateSpanId, buildTraceEntry, sendTrace, isDisabled, buildRedactionConfig, getApiKey, getFlushIntervalSeconds, setTransport, setRedactionConfig, setDiagnosticsClientConfig, isValidInternalSource, getInternalSource, setSource, getEngine, getMaxFieldBytes, getMaxBatchSize, getMaxQueueSize, getSampleRate, report, getEndpoint, DEFAULT_ENDPOINT, recordDrop, REASON_SHUTDOWN_DROP, REASON_QUEUE_FULL, setLevel, REASON_QUOTA_REJECTED, REASON_RETRY_EXHAUSTED, runSync, runAsync, setContext, startSpan, spanSync, spanAsync, flushOnce, _resetForTesting2, _resetForTesting, getLastTrace, getActiveTraceState } from './chunk-
|
|
9
|
-
export { W3C_TRACEPARENT_HEADER, extractTraceparent, formatTraceparent, injectIntoRequestInit, injectTraceparent } from './chunk-
|
|
8
|
+
import { init_env, init_otel_provider_browser, init_redaction, init_diagnostics, init_tracing, init_spans, init_propagation, redactValue, generateTraceId, nowIso, SpanType, generateSpanId, buildTraceEntry, sendTrace, isDisabled, buildRedactionConfig, getApiKey, getFlushIntervalSeconds, setTransport, setRedactionConfig, setDiagnosticsClientConfig, isValidInternalSource, getInternalSource, setSource, getEngine, getMaxFieldBytes, getMaxBatchSize, getMaxQueueSize, getSampleRate, report, getEndpoint, DEFAULT_ENDPOINT, recordDrop, REASON_SHUTDOWN_DROP, REASON_QUEUE_FULL, setLevel, REASON_QUOTA_REJECTED, REASON_RETRY_EXHAUSTED, runSync, runAsync, setContext, startSpan, spanSync, spanAsync, flushOnce, _resetForTesting2, _resetForTesting, getLastTrace, getActiveTraceState } from './chunk-MIHCAKQ2.js';
|
|
9
|
+
export { W3C_TRACEPARENT_HEADER, extractTraceparent, formatTraceparent, injectIntoRequestInit, injectTraceparent } from './chunk-MIHCAKQ2.js';
|
|
10
10
|
|
|
11
11
|
// src/_internal/auto-detect.browser.ts
|
|
12
12
|
async function installAdapters() {
|
|
@@ -25,7 +25,7 @@ init_redaction();
|
|
|
25
25
|
|
|
26
26
|
// src/_internal/transport.ts
|
|
27
27
|
init_diagnostics();
|
|
28
|
-
var SDK_VERSION = "0.5.0-rc.
|
|
28
|
+
var SDK_VERSION = "0.5.0-rc.6" ;
|
|
29
29
|
var RETRY_AFTER_CAP_SECONDS = 30;
|
|
30
30
|
function parseRetryAfter(value) {
|
|
31
31
|
if (!value) return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkTGN4FEKB_cjs = require('../chunk-TGN4FEKB.cjs');
|
|
4
|
+
require('../chunk-6YPVIGD2.cjs');
|
|
5
|
+
require('../chunk-WG45SF7N.cjs');
|
|
6
6
|
var stream = require('stream');
|
|
7
7
|
|
|
8
8
|
function pinoLevelToSeverity(level) {
|
|
@@ -36,7 +36,7 @@ function forwardPinoRecord(record) {
|
|
|
36
36
|
const msg = typeof record.msg === "string" ? record.msg : "";
|
|
37
37
|
const serviceName = typeof record.name === "string" && record.name.length > 0 ? record.name : void 0;
|
|
38
38
|
const attributes = pickAttributes(record);
|
|
39
|
-
|
|
39
|
+
chunkTGN4FEKB_cjs.log(msg, {
|
|
40
40
|
severity,
|
|
41
41
|
attributes,
|
|
42
42
|
...serviceName ? { serviceName } : {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { log } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { log } from '../chunk-FDWPKINR.js';
|
|
2
|
+
import '../chunk-2LZCQD3J.js';
|
|
3
|
+
import '../chunk-MIHCAKQ2.js';
|
|
4
4
|
import { Writable } from 'stream';
|
|
5
5
|
|
|
6
6
|
function pinoLevelToSeverity(level) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6YPVIGD2_cjs = require('../chunk-6YPVIGD2.cjs');
|
|
4
4
|
var chunkRBNCTHK3_cjs = require('../chunk-RBNCTHK3.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkWG45SF7N_cjs = require('../chunk-WG45SF7N.cjs');
|
|
6
6
|
|
|
7
7
|
// src/langchain/callback-handler.ts
|
|
8
|
-
|
|
8
|
+
chunkWG45SF7N_cjs.init_tracing();
|
|
9
9
|
var ADAPTER = "langchain-js";
|
|
10
10
|
var HANDLER_NAME = "morse_callback_handler";
|
|
11
11
|
var DEFAULT_AGENT_NAME = "langchain-agent";
|
|
@@ -205,7 +205,7 @@ var MorseCallbackHandler = class {
|
|
|
205
205
|
openSpan(runId, name, type, inputData, extraMetadata) {
|
|
206
206
|
if (typeof runId !== "string" || runId.length === 0) return null;
|
|
207
207
|
const metadata = { ...extraMetadata ?? {}, adapter: ADAPTER };
|
|
208
|
-
const handle =
|
|
208
|
+
const handle = chunkWG45SF7N_cjs.startSpan({ name, type, metadata });
|
|
209
209
|
if (handle === null) return null;
|
|
210
210
|
const wrapped = coerceStateValue(inputData);
|
|
211
211
|
if (wrapped !== void 0) handle.span.input_data = wrapped;
|
|
@@ -302,26 +302,26 @@ var MorseCallbackHandler = class {
|
|
|
302
302
|
return this.spanStack.get(runId);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
|
-
var _handleChainStart =
|
|
305
|
+
var _handleChainStart = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
306
306
|
(self, chain, inputs, runId) => {
|
|
307
307
|
const chainName = resolveNameIdFirst(chain, "chain");
|
|
308
308
|
self._openSpan(runId, chainName, "agent", inputs);
|
|
309
309
|
},
|
|
310
310
|
{ fingerprint: "morse.langchain.handleChainStart" }
|
|
311
311
|
);
|
|
312
|
-
var _handleChainEnd =
|
|
312
|
+
var _handleChainEnd = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
313
313
|
(self, outputs, runId) => {
|
|
314
314
|
self._closeSpan(runId, outputs);
|
|
315
315
|
},
|
|
316
316
|
{ fingerprint: "morse.langchain.handleChainEnd" }
|
|
317
317
|
);
|
|
318
|
-
var _handleChainError =
|
|
318
|
+
var _handleChainError = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
319
319
|
(self, err, runId) => {
|
|
320
320
|
self._closeSpan(runId, void 0, err ?? new Error("langchain chain error"));
|
|
321
321
|
},
|
|
322
322
|
{ fingerprint: "morse.langchain.handleChainError" }
|
|
323
323
|
);
|
|
324
|
-
var _handleLLMStart =
|
|
324
|
+
var _handleLLMStart = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
325
325
|
(self, llm, prompts, runId, extraParams) => {
|
|
326
326
|
const llmName = resolveNameIdFirst(llm, "llm");
|
|
327
327
|
const invocationParams = extraParams?.invocation_params;
|
|
@@ -354,7 +354,7 @@ function toolsFromExtra(extra) {
|
|
|
354
354
|
const invocationParams = extra?.invocation_params;
|
|
355
355
|
return invocationParams?.tools;
|
|
356
356
|
}
|
|
357
|
-
var _handleChatModelStart =
|
|
357
|
+
var _handleChatModelStart = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
358
358
|
(self, llm, messages, runId, extraParams) => {
|
|
359
359
|
const llmName = resolveNameIdFirst(llm, "llm");
|
|
360
360
|
const invocationParams = extraParams?.invocation_params;
|
|
@@ -369,7 +369,7 @@ var _handleChatModelStart = chunkQAFFDJFK_cjs.absorbErrorsSync(
|
|
|
369
369
|
},
|
|
370
370
|
{ fingerprint: "morse.langchain.handleChatModelStart" }
|
|
371
371
|
);
|
|
372
|
-
var _handleLLMEnd =
|
|
372
|
+
var _handleLLMEnd = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
373
373
|
(self, response, runId) => {
|
|
374
374
|
const handle = self._getSpan(runId);
|
|
375
375
|
const outputText = extractOutputText(response);
|
|
@@ -392,32 +392,32 @@ var _handleLLMEnd = chunkQAFFDJFK_cjs.absorbErrorsSync(
|
|
|
392
392
|
},
|
|
393
393
|
{ fingerprint: "morse.langchain.handleLLMEnd" }
|
|
394
394
|
);
|
|
395
|
-
var _handleLLMError =
|
|
395
|
+
var _handleLLMError = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
396
396
|
(self, err, runId) => {
|
|
397
397
|
self._closeSpan(runId, void 0, err ?? new Error("langchain llm error"));
|
|
398
398
|
},
|
|
399
399
|
{ fingerprint: "morse.langchain.handleLLMError" }
|
|
400
400
|
);
|
|
401
|
-
var _handleToolStart =
|
|
401
|
+
var _handleToolStart = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
402
402
|
(self, tool, input, runId) => {
|
|
403
403
|
const toolName = resolveNameNameFirst(tool, "tool");
|
|
404
404
|
self._openSpan(runId, toolName, "tool", { input });
|
|
405
405
|
},
|
|
406
406
|
{ fingerprint: "morse.langchain.handleToolStart" }
|
|
407
407
|
);
|
|
408
|
-
var _handleToolEnd =
|
|
408
|
+
var _handleToolEnd = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
409
409
|
(self, output, runId) => {
|
|
410
410
|
self._closeSpan(runId, { output: String(output) });
|
|
411
411
|
},
|
|
412
412
|
{ fingerprint: "morse.langchain.handleToolEnd" }
|
|
413
413
|
);
|
|
414
|
-
var _handleToolError =
|
|
414
|
+
var _handleToolError = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
415
415
|
(self, err, runId) => {
|
|
416
416
|
self._closeSpan(runId, void 0, err ?? new Error("langchain tool error"));
|
|
417
417
|
},
|
|
418
418
|
{ fingerprint: "morse.langchain.handleToolError" }
|
|
419
419
|
);
|
|
420
|
-
var _handleRetrieverStart =
|
|
420
|
+
var _handleRetrieverStart = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
421
421
|
(self, retriever, query, runId) => {
|
|
422
422
|
const idPath = retriever?.id;
|
|
423
423
|
const retrieverName = (Array.isArray(idPath) && idPath.length > 0 ? idPath[idPath.length - 1] : void 0) || "retriever";
|
|
@@ -425,7 +425,7 @@ var _handleRetrieverStart = chunkQAFFDJFK_cjs.absorbErrorsSync(
|
|
|
425
425
|
},
|
|
426
426
|
{ fingerprint: "morse.langchain.handleRetrieverStart" }
|
|
427
427
|
);
|
|
428
|
-
var _handleRetrieverEnd =
|
|
428
|
+
var _handleRetrieverEnd = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
429
429
|
(self, documents, runId) => {
|
|
430
430
|
const docsOut = [];
|
|
431
431
|
for (const doc of documents ?? []) {
|
|
@@ -455,7 +455,7 @@ var _handleRetrieverEnd = chunkQAFFDJFK_cjs.absorbErrorsSync(
|
|
|
455
455
|
},
|
|
456
456
|
{ fingerprint: "morse.langchain.handleRetrieverEnd" }
|
|
457
457
|
);
|
|
458
|
-
var _handleRetrieverError =
|
|
458
|
+
var _handleRetrieverError = chunk6YPVIGD2_cjs.absorbErrorsSync(
|
|
459
459
|
(self, err, runId) => {
|
|
460
460
|
self._closeSpan(runId, void 0, err ?? new Error("langchain retriever error"));
|
|
461
461
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { absorbErrorsSync } from '../chunk-
|
|
1
|
+
import { absorbErrorsSync } from '../chunk-2LZCQD3J.js';
|
|
2
2
|
import { decomposeOpenAiMessages } from '../chunk-MLDVXMQD.js';
|
|
3
|
-
import { init_tracing, startSpan } from '../chunk-
|
|
3
|
+
import { init_tracing, startSpan } from '../chunk-MIHCAKQ2.js';
|
|
4
4
|
|
|
5
5
|
// src/langchain/callback-handler.ts
|
|
6
6
|
init_tracing();
|