@cline/llms 0.0.90 → 0.0.91

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.
@@ -12,6 +12,14 @@ export type LangfuseTraceAttributes = {
12
12
  * Users views are indexed from propagated trace attributes instead.
13
13
  */
14
14
  export declare function withLangfuseTraceAttributes<T>(enabled: boolean, attributes: LangfuseTraceAttributes, callback: () => T | Promise<T>): Promise<T>;
15
+ /**
16
+ * Operator-supplied trace dimensions. `CLINE_LANGFUSE_TAGS` is a
17
+ * comma-separated tag list and `CLINE_LANGFUSE_METADATA` is either a JSON
18
+ * object or comma-separated `key=value` pairs. Both are merged under the
19
+ * runtime's own attributes, so a benchmark harness can label every trace it
20
+ * produces (for example `benchmark-run-1`) without touching call sites.
21
+ */
22
+ export declare function readEnvTraceAttributes(): Pick<LangfuseTraceAttributes, "tags" | "metadata">;
15
23
  export type AiSdkTelemetryDecision = {
16
24
  isEnabled: boolean;
17
25
  integrations?: Telemetry;
@@ -22,6 +30,16 @@ export type AiSdkTelemetryDecision = {
22
30
  * Select exactly one per-call integration. A host OTLP relay takes precedence
23
31
  * over direct credentials, and its sampling, opt-out and content policy is
24
32
  * checked on every stream. Direct exports own an isolated tracer provider.
33
+ *
34
+ * Third-party (BYOK) providers are traced only when the operator opts in with
35
+ * `CLINE_LANGFUSE_ALL_PROVIDERS` and supplies direct `LANGFUSE_*` credentials.
36
+ * They never ride the host relay, so BYOK prompts cannot reach a collector the
37
+ * operator did not configure themselves.
38
+ *
39
+ * Scope, for every provider: streamed language requests only. Dedicated image
40
+ * generation goes through the AI SDK's `generateImage`, which takes no
41
+ * telemetry option and has no Langfuse integration hook, so it returns before
42
+ * this decision runs and emits no trace.
25
43
  */
26
44
  export declare function resolveAiSdkTelemetry(providerId: string, samplingKey?: string): Promise<AiSdkTelemetryDecision>;
27
45
  export declare function disposeLangfuseTelemetry(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"langfuse-telemetry.d.ts","sourceRoot":"","sources":["../../src/services/langfuse-telemetry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAgBpC,MAAM,MAAM,uBAAuB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,CAAC,EAClD,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,uBAAuB,EACnC,QAAQ,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAC5B,OAAO,CAAC,CAAC,CAAC,CAOZ;AA6BD,MAAM,MAAM,sBAAsB,GAAG;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF;;;;GAIG;AACH,wBAAsB,qBAAqB,CAC1C,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,sBAAsB,CAAC,CAwDjC;AAoKD,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAiC9D;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAKnD;AAiBD,wBAAgB,8BAA8B,IAAI,IAAI,CAIrD"}
1
+ {"version":3,"file":"langfuse-telemetry.d.ts","sourceRoot":"","sources":["../../src/services/langfuse-telemetry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAkBpC,MAAM,MAAM,uBAAuB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,CAAC,EAClD,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,uBAAuB,EACnC,QAAQ,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAC5B,OAAO,CAAC,CAAC,CAAC,CAYZ;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAC7C,uBAAuB,EACvB,MAAM,GAAG,UAAU,CACnB,CAOA;AA0GD,MAAM,MAAM,sBAAsB,GAAG;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,qBAAqB,CAC1C,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,sBAAsB,CAAC,CAmEjC;AAsKD,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAiC9D;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAKnD;AAiBD,wBAAgB,8BAA8B,IAAI,IAAI,CAIrD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/llms",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "Config-driven SDK for selecting, extending, and instantiating LLM providers and models",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,7 +62,7 @@
62
62
  "@ai-sdk/provider": "^4.0.7",
63
63
  "@ai-sdk/provider-utils": "^5",
64
64
  "@aws-sdk/credential-providers": "^3.922.0",
65
- "@cline/shared": "0.0.90",
65
+ "@cline/shared": "0.0.91",
66
66
  "@jerome-benoit/sap-ai-provider": "4.8.0",
67
67
  "@langfuse/core": "5.10.1",
68
68
  "@langfuse/otel": "5.10.1",