raindrop-ai 1.0.5 → 1.0.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/index.mjs CHANGED
@@ -47,8 +47,8 @@ import {
47
47
  runReplay,
48
48
  traceTools,
49
49
  withEvalScope
50
- } from "./chunk-LZVJUJN5.mjs";
51
- import "./chunk-T3W2IICO.mjs";
50
+ } from "./chunk-QNTUAQ4I.mjs";
51
+ import "./chunk-OUAKPLDX.mjs";
52
52
  import {
53
53
  BooleanThresholdSchema,
54
54
  EvalContextSchema,
@@ -69,8 +69,7 @@ import {
69
69
  traceOutput,
70
70
  traceToolCalls,
71
71
  verifyPortableEvalArtifact
72
- } from "./chunk-VCUDX7H3.mjs";
73
- import "./chunk-B7F5QLE5.mjs";
72
+ } from "./chunk-JJHRALY4.mjs";
74
73
  export {
75
74
  BooleanThresholdSchema,
76
75
  DEFAULT_EVAL_POLL_INTERVAL_MS,
@@ -1,5 +1,3 @@
1
- import "../chunk-B7F5QLE5.mjs";
2
-
3
1
  // src/otel/index.ts
4
2
  function metadata({
5
3
  userId,
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  PortableEvalLimitsSchema,
3
3
  parsePortableEvalResult
4
- } from "./chunk-VCUDX7H3.mjs";
5
- import "./chunk-B7F5QLE5.mjs";
4
+ } from "./chunk-JJHRALY4.mjs";
6
5
 
7
6
  // src/evals/portable-runtime.ts
8
7
  import variant from "@jitl/quickjs-singlefile-cjs-release-sync";
@@ -1,5 +1,5 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
- import { I as InitializeOptions, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier } from '../index-B3VWTg46.mjs';
2
+ import { I as InitializeOptions, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier, F as FlushResultCompat, g as FlushResult } from '../index-C46PQW84.mjs';
3
3
  import { Raindrop, RaindropSpanProcessor, Interaction, AiTrackUsage, AppGitSnapshot, SubagentResumeOptions, SubagentRun, Tracer } from '../index.mjs';
4
4
  import '@opentelemetry/api';
5
5
  import 'zod';
@@ -51,6 +51,8 @@ interface TracingOptions extends InitializeOptions {
51
51
  * POSTs. Local-debugger mirror spans never carry it.
52
52
  */
53
53
  projectId?: string;
54
+ /** Deadline for forceFlush() and close() (default 10 s; CONTRACT 1.2.1). */
55
+ flushTimeoutMs?: number;
54
56
  }
55
57
  declare const tracing: (analytics: Raindrop, apiUrl: string, writeKey: string, options: TracingOptions, isDebug?: boolean) => {
56
58
  /**
@@ -104,8 +106,9 @@ declare const tracing: (analytics: Raindrop, apiUrl: string, writeKey: string, o
104
106
  * Best-effort drain of in-flight OTel spans and direct shipper batches.
105
107
  * Safe to call when nothing is in flight; never throws.
106
108
  */
107
- forceFlush(): Promise<void>;
108
- close(): Promise<void>;
109
+ forceFlush(): Promise<FlushResultCompat>;
110
+ /** Drain and stop; resolves (never rejects) to the direct shipper's result. */
111
+ close(): Promise<FlushResult>;
109
112
  };
110
113
  type Tracing = ReturnType<typeof tracing>;
111
114
 
@@ -1,5 +1,5 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
- import { I as InitializeOptions, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier } from '../index-B3VWTg46.js';
2
+ import { I as InitializeOptions, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier, F as FlushResultCompat, g as FlushResult } from '../index-C46PQW84.js';
3
3
  import { Raindrop, RaindropSpanProcessor, Interaction, AiTrackUsage, AppGitSnapshot, SubagentResumeOptions, SubagentRun, Tracer } from '../index.js';
4
4
  import '@opentelemetry/api';
5
5
  import 'zod';
@@ -51,6 +51,8 @@ interface TracingOptions extends InitializeOptions {
51
51
  * POSTs. Local-debugger mirror spans never carry it.
52
52
  */
53
53
  projectId?: string;
54
+ /** Deadline for forceFlush() and close() (default 10 s; CONTRACT 1.2.1). */
55
+ flushTimeoutMs?: number;
54
56
  }
55
57
  declare const tracing: (analytics: Raindrop, apiUrl: string, writeKey: string, options: TracingOptions, isDebug?: boolean) => {
56
58
  /**
@@ -104,8 +106,9 @@ declare const tracing: (analytics: Raindrop, apiUrl: string, writeKey: string, o
104
106
  * Best-effort drain of in-flight OTel spans and direct shipper batches.
105
107
  * Safe to call when nothing is in flight; never throws.
106
108
  */
107
- forceFlush(): Promise<void>;
108
- close(): Promise<void>;
109
+ forceFlush(): Promise<FlushResultCompat>;
110
+ /** Drain and stop; resolves (never rejects) to the direct shipper's result. */
111
+ close(): Promise<FlushResult>;
109
112
  };
110
113
  type Tracing = ReturnType<typeof tracing>;
111
114