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.
@@ -1,7 +1,8 @@
1
1
  import * as _opentelemetry_instrumentation from '@opentelemetry/instrumentation';
2
- import { Span } from '@opentelemetry/api';
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 { SpanProcessorOptions } from '@traceloop/node-server-sdk';
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 ToolSpan as D, type TraceContext as E, type FinishInteractionOptions as F, type TrackToolParams as G, resolveDisableBatching as H, type Interaction as I, type LocalDebuggerLiveEventInput as L, MAX_INGEST_SIZE_BYTES as M, type PartialAiTrackEvent as P, Raindrop as R, type SubagentResumeOptions as S, type TraceCarrier as T, type WorkflowParams as W, type RaindropSpanProcessor as a, type SubagentRun as b, type Tracer as c, type AiTrackEvent as d, type Attachment as e, type AttachmentType as f, type IdentifyEvent as g, type RaindropFeatureFlagValue as h, type RaindropFeatureFlags as i, type RaindropProperties as j, type RaindropPropertyLeaf as k, type RaindropPropertyValue as l, type SelfDiagnoseOptions as m, type SelfDiagnosticsExecuteContext as n, type SelfDiagnosticsExecuteResult as o, type SelfDiagnosticsSignalDefinition as p, type SelfDiagnosticsSignalDefinitions as q, type SelfDiagnosticsTool as r, type SelfDiagnosticsToolInputSchema as s, type SelfDiagnosticsToolOptions as t, type SignalEvent as u, type SpanParams as v, type SubagentDispatch as w, type SubagentDispatchOptions as x, type SubagentFinishOptions as y, type ToolParams as z };
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 { Span } from '@opentelemetry/api';
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 { SpanProcessorOptions } from '@traceloop/node-server-sdk';
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 ToolSpan as D, type TraceContext as E, type FinishInteractionOptions as F, type TrackToolParams as G, resolveDisableBatching as H, type Interaction as I, type LocalDebuggerLiveEventInput as L, MAX_INGEST_SIZE_BYTES as M, type PartialAiTrackEvent as P, Raindrop as R, type SubagentResumeOptions as S, type TraceCarrier as T, type WorkflowParams as W, type RaindropSpanProcessor as a, type SubagentRun as b, type Tracer as c, type AiTrackEvent as d, type Attachment as e, type AttachmentType as f, type IdentifyEvent as g, type RaindropFeatureFlagValue as h, type RaindropFeatureFlags as i, type RaindropProperties as j, type RaindropPropertyLeaf as k, type RaindropPropertyValue as l, type SelfDiagnoseOptions as m, type SelfDiagnosticsExecuteContext as n, type SelfDiagnosticsExecuteResult as o, type SelfDiagnosticsSignalDefinition as p, type SelfDiagnosticsSignalDefinitions as q, type SelfDiagnosticsTool as r, type SelfDiagnosticsToolInputSchema as s, type SelfDiagnosticsToolOptions as t, type SignalEvent as u, type SpanParams as v, type SubagentDispatch as w, type SubagentDispatchOptions as x, type SubagentFinishOptions as y, type ToolParams as z };
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 { d as AiTrackEvent, A as AiTrackUsage, e as Attachment, f as AttachmentType, B as BeginInteractionOptions, F as FinishInteractionOptions, g as IdentifyEvent, I as Interaction, L as LocalDebuggerLiveEventInput, M as MAX_INGEST_SIZE_BYTES, P as PartialAiTrackEvent, R as Raindrop, h as RaindropFeatureFlagValue, i as RaindropFeatureFlags, j as RaindropProperties, k as RaindropPropertyLeaf, l as RaindropPropertyValue, a as RaindropSpanProcessor, m as SelfDiagnoseOptions, n as SelfDiagnosticsExecuteContext, o as SelfDiagnosticsExecuteResult, p as SelfDiagnosticsSignalDefinition, q as SelfDiagnosticsSignalDefinitions, r as SelfDiagnosticsTool, s as SelfDiagnosticsToolInputSchema, t as SelfDiagnosticsToolOptions, u as SignalEvent, v as SpanParams, w as SubagentDispatch, x as SubagentDispatchOptions, y as SubagentFinishOptions, S as SubagentResumeOptions, b as SubagentRun, z as ToolParams, D as ToolSpan, E as TraceContext, c as Tracer, G as TrackToolParams, W as WorkflowParams, R as default, H as resolveDisableBatching } from './index-DuXeVnSq.mjs';
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 { d as AiTrackEvent, A as AiTrackUsage, e as Attachment, f as AttachmentType, B as BeginInteractionOptions, F as FinishInteractionOptions, g as IdentifyEvent, I as Interaction, L as LocalDebuggerLiveEventInput, M as MAX_INGEST_SIZE_BYTES, P as PartialAiTrackEvent, R as Raindrop, h as RaindropFeatureFlagValue, i as RaindropFeatureFlags, j as RaindropProperties, k as RaindropPropertyLeaf, l as RaindropPropertyValue, a as RaindropSpanProcessor, m as SelfDiagnoseOptions, n as SelfDiagnosticsExecuteContext, o as SelfDiagnosticsExecuteResult, p as SelfDiagnosticsSignalDefinition, q as SelfDiagnosticsSignalDefinitions, r as SelfDiagnosticsTool, s as SelfDiagnosticsToolInputSchema, t as SelfDiagnosticsToolOptions, u as SignalEvent, v as SpanParams, w as SubagentDispatch, x as SubagentDispatchOptions, y as SubagentFinishOptions, S as SubagentResumeOptions, b as SubagentRun, z as ToolParams, D as ToolSpan, E as TraceContext, c as Tracer, G as TrackToolParams, W as WorkflowParams, R as default, H as resolveDisableBatching } from './index-DuXeVnSq.js';
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';