raindrop-ai 0.3.1 → 0.4.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/dist/{chunk-4TM4IWHB.mjs → chunk-MZZJWWWB.mjs} +519 -77
- package/dist/{index-DuXeVnSq.d.mts → index-CDmWtd83.d.mts} +40 -3
- package/dist/{index-DuXeVnSq.d.ts → index-CDmWtd83.d.ts} +40 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +561 -132
- package/dist/index.mjs +1 -1
- package/dist/tracing/index.d.mts +4 -4
- package/dist/tracing/index.d.ts +4 -4
- package/dist/tracing/index.js +546 -117
- package/dist/tracing/index.mjs +1 -1
- package/package.json +26 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _opentelemetry_instrumentation from '@opentelemetry/instrumentation';
|
|
2
|
-
import {
|
|
2
|
+
import { Instrumentation } from '@opentelemetry/instrumentation';
|
|
3
|
+
import { Span, ContextManager as ContextManager$1, TextMapPropagator } from '@opentelemetry/api';
|
|
3
4
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
5
|
+
import { SpanExporter, SpanProcessor } from '@opentelemetry/sdk-trace-base';
|
|
5
6
|
|
|
6
7
|
/** The reverse reference a detached child carries on its own spans. */
|
|
7
8
|
type DetachedChildLink = {
|
|
@@ -1039,6 +1040,42 @@ declare global {
|
|
|
1039
1040
|
}) | undefined;
|
|
1040
1041
|
}
|
|
1041
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* Internal tracing bootstrap. The entity and processor behaviour is ported
|
|
1045
|
+
* from @traceloop/node-server-sdk 0.19.0 (Apache-2.0).
|
|
1046
|
+
*/
|
|
1047
|
+
|
|
1048
|
+
type AllInstrumentationLibraries = "all";
|
|
1049
|
+
type InstrumentationModules = Record<string, unknown>;
|
|
1050
|
+
interface SpanProcessorOptions {
|
|
1051
|
+
apiKey?: string;
|
|
1052
|
+
baseUrl?: string;
|
|
1053
|
+
disableBatch?: boolean;
|
|
1054
|
+
exporter?: SpanExporter;
|
|
1055
|
+
headers?: Record<string, string>;
|
|
1056
|
+
allowedInstrumentationLibraries?: string[] | AllInstrumentationLibraries;
|
|
1057
|
+
}
|
|
1058
|
+
interface InitializeOptions extends SpanProcessorOptions {
|
|
1059
|
+
appName?: string;
|
|
1060
|
+
processor?: SpanProcessor;
|
|
1061
|
+
tracingEnabled?: boolean;
|
|
1062
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
1063
|
+
silenceInitializationMessage?: boolean;
|
|
1064
|
+
instrumentModules?: InstrumentationModules;
|
|
1065
|
+
contextManager?: ContextManager$1;
|
|
1066
|
+
propagator?: TextMapPropagator;
|
|
1067
|
+
traceContent?: boolean;
|
|
1068
|
+
instrumentations?: Instrumentation[];
|
|
1069
|
+
/**
|
|
1070
|
+
* Prompt-registry sync options accepted for wrapper compatibility.
|
|
1071
|
+
* Raindrop never wired up traceloop's prompt registry, so they are inert.
|
|
1072
|
+
*/
|
|
1073
|
+
traceloopSyncEnabled?: boolean;
|
|
1074
|
+
traceloopSyncMaxRetries?: number;
|
|
1075
|
+
traceloopSyncPollingInterval?: number;
|
|
1076
|
+
traceloopSyncDevPollingInterval?: number;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1042
1079
|
interface AnalyticsConfig {
|
|
1043
1080
|
wizardSession?: string;
|
|
1044
1081
|
/**
|
|
@@ -1485,4 +1522,4 @@ declare class Raindrop {
|
|
|
1485
1522
|
private closeWithinDeadline;
|
|
1486
1523
|
}
|
|
1487
1524
|
|
|
1488
|
-
export { type AiTrackUsage as A, type BeginInteractionOptions as B, type CarrierHeaders as C, type
|
|
1525
|
+
export { type AiTrackUsage as A, type BeginInteractionOptions as B, type CarrierHeaders as C, type SubagentFinishOptions as D, type ToolParams as E, type FinishInteractionOptions as F, type ToolSpan as G, type TraceContext as H, type InitializeOptions as I, type TrackToolParams as J, resolveDisableBatching as K, type LocalDebuggerLiveEventInput as L, MAX_INGEST_SIZE_BYTES as M, type PartialAiTrackEvent as P, Raindrop as R, type SpanProcessorOptions as S, type TraceCarrier as T, type WorkflowParams as W, type RaindropSpanProcessor as a, type Interaction as b, type SubagentResumeOptions as c, type SubagentRun as d, type Tracer as e, type AiTrackEvent as f, type Attachment as g, type AttachmentType as h, type IdentifyEvent as i, type RaindropFeatureFlagValue as j, type RaindropFeatureFlags as k, type RaindropProperties as l, type RaindropPropertyLeaf as m, type RaindropPropertyValue as n, type SelfDiagnoseOptions as o, type SelfDiagnosticsExecuteContext as p, type SelfDiagnosticsExecuteResult as q, type SelfDiagnosticsSignalDefinition as r, type SelfDiagnosticsSignalDefinitions as s, type SelfDiagnosticsTool as t, type SelfDiagnosticsToolInputSchema as u, type SelfDiagnosticsToolOptions as v, type SignalEvent as w, type SpanParams as x, type SubagentDispatch as y, type SubagentDispatchOptions as z };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _opentelemetry_instrumentation from '@opentelemetry/instrumentation';
|
|
2
|
-
import {
|
|
2
|
+
import { Instrumentation } from '@opentelemetry/instrumentation';
|
|
3
|
+
import { Span, ContextManager as ContextManager$1, TextMapPropagator } from '@opentelemetry/api';
|
|
3
4
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
5
|
+
import { SpanExporter, SpanProcessor } from '@opentelemetry/sdk-trace-base';
|
|
5
6
|
|
|
6
7
|
/** The reverse reference a detached child carries on its own spans. */
|
|
7
8
|
type DetachedChildLink = {
|
|
@@ -1039,6 +1040,42 @@ declare global {
|
|
|
1039
1040
|
}) | undefined;
|
|
1040
1041
|
}
|
|
1041
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* Internal tracing bootstrap. The entity and processor behaviour is ported
|
|
1045
|
+
* from @traceloop/node-server-sdk 0.19.0 (Apache-2.0).
|
|
1046
|
+
*/
|
|
1047
|
+
|
|
1048
|
+
type AllInstrumentationLibraries = "all";
|
|
1049
|
+
type InstrumentationModules = Record<string, unknown>;
|
|
1050
|
+
interface SpanProcessorOptions {
|
|
1051
|
+
apiKey?: string;
|
|
1052
|
+
baseUrl?: string;
|
|
1053
|
+
disableBatch?: boolean;
|
|
1054
|
+
exporter?: SpanExporter;
|
|
1055
|
+
headers?: Record<string, string>;
|
|
1056
|
+
allowedInstrumentationLibraries?: string[] | AllInstrumentationLibraries;
|
|
1057
|
+
}
|
|
1058
|
+
interface InitializeOptions extends SpanProcessorOptions {
|
|
1059
|
+
appName?: string;
|
|
1060
|
+
processor?: SpanProcessor;
|
|
1061
|
+
tracingEnabled?: boolean;
|
|
1062
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
1063
|
+
silenceInitializationMessage?: boolean;
|
|
1064
|
+
instrumentModules?: InstrumentationModules;
|
|
1065
|
+
contextManager?: ContextManager$1;
|
|
1066
|
+
propagator?: TextMapPropagator;
|
|
1067
|
+
traceContent?: boolean;
|
|
1068
|
+
instrumentations?: Instrumentation[];
|
|
1069
|
+
/**
|
|
1070
|
+
* Prompt-registry sync options accepted for wrapper compatibility.
|
|
1071
|
+
* Raindrop never wired up traceloop's prompt registry, so they are inert.
|
|
1072
|
+
*/
|
|
1073
|
+
traceloopSyncEnabled?: boolean;
|
|
1074
|
+
traceloopSyncMaxRetries?: number;
|
|
1075
|
+
traceloopSyncPollingInterval?: number;
|
|
1076
|
+
traceloopSyncDevPollingInterval?: number;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1042
1079
|
interface AnalyticsConfig {
|
|
1043
1080
|
wizardSession?: string;
|
|
1044
1081
|
/**
|
|
@@ -1485,4 +1522,4 @@ declare class Raindrop {
|
|
|
1485
1522
|
private closeWithinDeadline;
|
|
1486
1523
|
}
|
|
1487
1524
|
|
|
1488
|
-
export { type AiTrackUsage as A, type BeginInteractionOptions as B, type CarrierHeaders as C, type
|
|
1525
|
+
export { type AiTrackUsage as A, type BeginInteractionOptions as B, type CarrierHeaders as C, type SubagentFinishOptions as D, type ToolParams as E, type FinishInteractionOptions as F, type ToolSpan as G, type TraceContext as H, type InitializeOptions as I, type TrackToolParams as J, resolveDisableBatching as K, type LocalDebuggerLiveEventInput as L, MAX_INGEST_SIZE_BYTES as M, type PartialAiTrackEvent as P, Raindrop as R, type SpanProcessorOptions as S, type TraceCarrier as T, type WorkflowParams as W, type RaindropSpanProcessor as a, type Interaction as b, type SubagentResumeOptions as c, type SubagentRun as d, type Tracer as e, type AiTrackEvent as f, type Attachment as g, type AttachmentType as h, type IdentifyEvent as i, type RaindropFeatureFlagValue as j, type RaindropFeatureFlags as k, type RaindropProperties as l, type RaindropPropertyLeaf as m, type RaindropPropertyValue as n, type SelfDiagnoseOptions as o, type SelfDiagnosticsExecuteContext as p, type SelfDiagnosticsExecuteResult as q, type SelfDiagnosticsSignalDefinition as r, type SelfDiagnosticsSignalDefinitions as s, type SelfDiagnosticsTool as t, type SelfDiagnosticsToolInputSchema as u, type SelfDiagnosticsToolOptions as v, type SignalEvent as w, type SpanParams as x, type SubagentDispatch as y, type SubagentDispatchOptions as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@opentelemetry/instrumentation';
|
|
2
|
-
export {
|
|
3
|
-
import '@traceloop/node-server-sdk';
|
|
2
|
+
export { f as AiTrackEvent, A as AiTrackUsage, g as Attachment, h as AttachmentType, B as BeginInteractionOptions, F as FinishInteractionOptions, i as IdentifyEvent, b as Interaction, L as LocalDebuggerLiveEventInput, M as MAX_INGEST_SIZE_BYTES, P as PartialAiTrackEvent, R as Raindrop, j as RaindropFeatureFlagValue, k as RaindropFeatureFlags, l as RaindropProperties, m as RaindropPropertyLeaf, n as RaindropPropertyValue, a as RaindropSpanProcessor, o as SelfDiagnoseOptions, p as SelfDiagnosticsExecuteContext, q as SelfDiagnosticsExecuteResult, r as SelfDiagnosticsSignalDefinition, s as SelfDiagnosticsSignalDefinitions, t as SelfDiagnosticsTool, u as SelfDiagnosticsToolInputSchema, v as SelfDiagnosticsToolOptions, w as SignalEvent, x as SpanParams, y as SubagentDispatch, z as SubagentDispatchOptions, D as SubagentFinishOptions, c as SubagentResumeOptions, d as SubagentRun, E as ToolParams, G as ToolSpan, H as TraceContext, e as Tracer, J as TrackToolParams, W as WorkflowParams, R as default, K as resolveDisableBatching } from './index-CDmWtd83.mjs';
|
|
4
3
|
import '@opentelemetry/api';
|
|
5
4
|
import 'zod';
|
|
5
|
+
import '@opentelemetry/sdk-trace-base';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@opentelemetry/instrumentation';
|
|
2
|
-
export {
|
|
3
|
-
import '@traceloop/node-server-sdk';
|
|
2
|
+
export { f as AiTrackEvent, A as AiTrackUsage, g as Attachment, h as AttachmentType, B as BeginInteractionOptions, F as FinishInteractionOptions, i as IdentifyEvent, b as Interaction, L as LocalDebuggerLiveEventInput, M as MAX_INGEST_SIZE_BYTES, P as PartialAiTrackEvent, R as Raindrop, j as RaindropFeatureFlagValue, k as RaindropFeatureFlags, l as RaindropProperties, m as RaindropPropertyLeaf, n as RaindropPropertyValue, a as RaindropSpanProcessor, o as SelfDiagnoseOptions, p as SelfDiagnosticsExecuteContext, q as SelfDiagnosticsExecuteResult, r as SelfDiagnosticsSignalDefinition, s as SelfDiagnosticsSignalDefinitions, t as SelfDiagnosticsTool, u as SelfDiagnosticsToolInputSchema, v as SelfDiagnosticsToolOptions, w as SignalEvent, x as SpanParams, y as SubagentDispatch, z as SubagentDispatchOptions, D as SubagentFinishOptions, c as SubagentResumeOptions, d as SubagentRun, E as ToolParams, G as ToolSpan, H as TraceContext, e as Tracer, J as TrackToolParams, W as WorkflowParams, R as default, K as resolveDisableBatching } from './index-CDmWtd83.js';
|
|
4
3
|
import '@opentelemetry/api';
|
|
5
4
|
import 'zod';
|
|
5
|
+
import '@opentelemetry/sdk-trace-base';
|