@lmnr-ai/lmnr 0.8.18 → 0.8.19
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/cli/worker/index.cjs +1 -1
- package/dist/cli/worker/index.mjs +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{decorators-CZrv8U1_.mjs → decorators-Bfz58XBx.mjs} +16 -17
- package/dist/decorators-Bfz58XBx.mjs.map +1 -0
- package/dist/{decorators-j6aXhxbP.cjs → decorators-D_KaLDRT.cjs} +16 -17
- package/dist/decorators-D_KaLDRT.cjs.map +1 -0
- package/dist/{dist-Bykcv-ZD.mjs → dist-CKxlEgac.mjs} +3 -3
- package/dist/{dist-Bykcv-ZD.mjs.map → dist-CKxlEgac.mjs.map} +1 -1
- package/dist/{dist-JskVTFRf.cjs → dist-DgIiKmoA.cjs} +3 -3
- package/dist/{dist-JskVTFRf.cjs.map → dist-DgIiKmoA.cjs.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
- package/dist/decorators-CZrv8U1_.mjs.map +0 -1
- package/dist/decorators-j6aXhxbP.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("../../chunk-Do9eywBl.cjs");
|
|
2
|
-
const require_decorators = require("../../decorators-
|
|
2
|
+
const require_decorators = require("../../decorators-D_KaLDRT.cjs");
|
|
3
3
|
const require_cli_worker_build = require("./build.cjs");
|
|
4
4
|
let readline = require("readline");
|
|
5
5
|
readline = require_chunk.__toESM(readline);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Laminar, p as consumeStreamResult } from "../../decorators-
|
|
1
|
+
import { l as Laminar, p as consumeStreamResult } from "../../decorators-Bfz58XBx.mjs";
|
|
2
2
|
import { buildFile, loadModule, selectRolloutFunction } from "./build.mjs";
|
|
3
3
|
import * as readline from "readline";
|
|
4
4
|
//#region src/cli/worker/index.ts
|
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_chunk = require("./chunk-Do9eywBl.cjs");
|
|
3
|
-
const require_dist = require("./dist-
|
|
3
|
+
const require_dist = require("./dist-DgIiKmoA.cjs");
|
|
4
4
|
const require_utils = require("./utils-BmWNkeX5.cjs");
|
|
5
5
|
const require_file_utils = require("./file-utils-0mVr0eIv.cjs");
|
|
6
6
|
const require_proxy_to_lmnr_cli = require("./proxy-to-lmnr-cli-OA7sXzcz.cjs");
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { r as __require } from "./chunk-BEJ448es.mjs";
|
|
3
|
-
import { n as version, t as LaminarClient } from "./dist-
|
|
3
|
+
import { n as version, t as LaminarClient } from "./dist-CKxlEgac.mjs";
|
|
4
4
|
import { i as getDirname, s as initializeLogger } from "./utils-0WC6BVqs.mjs";
|
|
5
5
|
import { i as writeToFile, n as loadFromPaths, r as printToConsole } from "./file-utils-C-auksVC.mjs";
|
|
6
6
|
import { t as proxyToLmnrCli } from "./proxy-to-lmnr-cli-DNDxudgt.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __require } from "./chunk-BEJ448es.mjs";
|
|
2
|
-
import { n as version, t as LaminarClient } from "./dist-
|
|
2
|
+
import { n as version, t as LaminarClient } from "./dist-CKxlEgac.mjs";
|
|
3
3
|
import { A as SPAN_SDK_VERSION, C as SESSION_ID, D as SPAN_LANGUAGE_VERSION, E as SPAN_INSTRUMENTATION_SOURCE, M as TRACE_HAS_BROWSER_SESSION, N as TRACE_TYPE, O as SPAN_OUTPUT, P as USER_ID, S as ROLLOUT_SESSION_ID, T as SPAN_INPUT, _ as ASSOCIATION_PROPERTIES_OVERRIDES, b as PARENT_SPAN_IDS_PATH, c as loadEnv, d as otelSpanIdToUUID, f as otelTraceIdToUUID, g as ASSOCIATION_PROPERTIES, h as validateTracingConfig, j as SPAN_TYPE, k as SPAN_PATH, l as metadataToAttributes, m as tryToOtelSpanContext, o as getOtelEnvVar, p as parseOtelHeaders, r as deserializeLaminarSpanContext, s as initializeLogger, t as NIL_UUID, u as newUUID, w as SPAN_IDS_PATH, x as PARENT_SPAN_PATH } from "./utils-0WC6BVqs.mjs";
|
|
4
4
|
import { DiagConsoleLogger, DiagLogLevel, ROOT_CONTEXT, SpanStatusCode, context, createContextKey, diag, isSpanContextValid, trace } from "@opentelemetry/api";
|
|
5
5
|
import { AsyncLocalStorageContextManager } from "@opentelemetry/context-async-hooks";
|
|
@@ -1113,6 +1113,7 @@ const logger$10 = initializeLogger();
|
|
|
1113
1113
|
*/
|
|
1114
1114
|
function instrumentClaudeAgentQuery(originalQuery) {
|
|
1115
1115
|
return (params) => {
|
|
1116
|
+
if (!(Laminar.initialized() || !!process.env.LMNR_PROJECT_API_KEY)) return originalQuery(params);
|
|
1116
1117
|
const span = Laminar.startSpan({
|
|
1117
1118
|
name: "query",
|
|
1118
1119
|
spanType: "DEFAULT"
|
|
@@ -4013,21 +4014,19 @@ var OpencodeInstrumentation = class extends InstrumentationBase {
|
|
|
4013
4014
|
this._wrap(SessionClass.prototype, "promptAsync", this.patchPromptMethod());
|
|
4014
4015
|
}
|
|
4015
4016
|
patchPromptMethod() {
|
|
4016
|
-
return (original) => {
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
return original.apply(this, args);
|
|
4030
|
-
};
|
|
4017
|
+
return (original) => function(...args) {
|
|
4018
|
+
const options = args[0];
|
|
4019
|
+
if (options?.body?.parts && Array.isArray(options.body.parts)) {
|
|
4020
|
+
const serializedContext = Laminar.serializeLaminarSpanContext();
|
|
4021
|
+
if (serializedContext) options.body.parts = [...options.body.parts, {
|
|
4022
|
+
type: "text",
|
|
4023
|
+
metadata: { lmnrSpanContext: serializedContext },
|
|
4024
|
+
text: "",
|
|
4025
|
+
ignored: true,
|
|
4026
|
+
synthetic: true
|
|
4027
|
+
}];
|
|
4028
|
+
}
|
|
4029
|
+
return original.apply(this, args);
|
|
4031
4030
|
};
|
|
4032
4031
|
}
|
|
4033
4032
|
patch(moduleExports) {
|
|
@@ -5098,4 +5097,4 @@ function observeExperimentalDecorator(config) {
|
|
|
5098
5097
|
//#endregion
|
|
5099
5098
|
export { getTracer as a, initializeLaminarInstrumentations as c, LaminarContextManager as d, TracingLevel as f, withTracingLevel as i, Laminar as l, stringifyPromptForTelemetry as m, observeDecorator as n, getTracerProvider as o, consumeStreamResult as p, observeExperimentalDecorator as r, LaminarSpanProcessor as s, observe as t, instrumentClaudeAgentQuery as u };
|
|
5100
5099
|
|
|
5101
|
-
//# sourceMappingURL=decorators-
|
|
5100
|
+
//# sourceMappingURL=decorators-Bfz58XBx.mjs.map
|