raindrop-ai 3.0.0 → 3.0.1

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
@@ -40,8 +40,8 @@ import {
40
40
  runReplay,
41
41
  traceTools,
42
42
  withEvalScope
43
- } from "./chunk-XAV5H3AL.mjs";
44
- import "./chunk-24GTHPYP.mjs";
43
+ } from "./chunk-XN3N4TAL.mjs";
44
+ import "./chunk-RSUQ3BU2.mjs";
45
45
  import {
46
46
  BooleanThresholdSchema,
47
47
  DatasetColumnSchema,
@@ -69,8 +69,8 @@ import {
69
69
  traceOutput,
70
70
  traceToolCalls,
71
71
  verifyPortableEvalArtifact
72
- } from "./chunk-BU322D7Q.mjs";
73
- import "./chunk-CSH7U5JZ.mjs";
72
+ } from "./chunk-Q2I2277O.mjs";
73
+ import "./chunk-HKOAIPQF.mjs";
74
74
  export {
75
75
  BooleanThresholdSchema,
76
76
  DEFAULT_EVAL_POLL_INTERVAL_MS,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  PortableEvalLimitsSchema,
3
3
  parsePortableEvalResult
4
- } from "./chunk-BU322D7Q.mjs";
5
- import "./chunk-CSH7U5JZ.mjs";
4
+ } from "./chunk-Q2I2277O.mjs";
5
+ import "./chunk-HKOAIPQF.mjs";
6
6
 
7
7
  // src/evals/portable-runtime.ts
8
8
  import variant from "@jitl/quickjs-singlefile-cjs-release-sync";
@@ -130,7 +130,7 @@ function evalScopeAttributes() {
130
130
  return { [EVAL_CORRELATION_ID_ATTRIBUTE]: scope.correlationId };
131
131
  }
132
132
 
133
- // ../core/dist/chunk-5OUEKTIO.js
133
+ // ../core/dist/chunk-OPHDM4MC.js
134
134
  var require_NameRedactor = __commonJS({
135
135
  "../redact-pii/dist/built-ins/NameRedactor.js"(exports2) {
136
136
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -620,14 +620,14 @@ function attributeStorage() {
620
620
  return storage2;
621
621
  }
622
622
  function makeAttributeFrame(attributes, owner) {
623
- const snapshot = { ...attributes };
623
+ const snapshot2 = { ...attributes };
624
624
  const WeakRefCtor = owner !== void 0 ? getWeakRefCtor() : void 0;
625
625
  const ref = WeakRefCtor && owner !== void 0 ? new WeakRefCtor(owner) : void 0;
626
626
  const owned = /* @__PURE__ */ new WeakSet();
627
627
  let dead = false;
628
628
  let sawError = false;
629
629
  return {
630
- attributes: snapshot,
630
+ attributes: snapshot2,
631
631
  sawErrorSpan: () => sawError,
632
632
  ownsSpan: (span) => owned.has(span),
633
633
  claimSpan(span) {
@@ -712,24 +712,24 @@ var APP_COMMIT_DIRTY = "raindrop.app.commit_dirty";
712
712
  var APP_BRANCH = "raindrop.app.branch";
713
713
  var APP_GIT_KEYS = [APP_COMMIT_SHA, APP_COMMIT_DIRTY, APP_BRANCH];
714
714
  var own = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
715
- function withAppGitProperties(properties, snapshot) {
715
+ function withAppGitProperties(properties, snapshot2) {
716
716
  try {
717
717
  const merged = { ...properties };
718
718
  for (const key of APP_GIT_KEYS)
719
- if (!own(merged, key) && own(snapshot, key)) merged[key] = snapshot[key];
719
+ if (!own(merged, key) && own(snapshot2, key)) merged[key] = snapshot2[key];
720
720
  return merged;
721
721
  } catch (e) {
722
722
  return properties != null ? properties : {};
723
723
  }
724
724
  }
725
- function withAppGitAttributes(attributes, snapshot) {
725
+ function withAppGitAttributes(attributes, snapshot2) {
726
726
  try {
727
727
  const present = new Set(attributes.flatMap((attr) => attr ? [attr.key] : []));
728
728
  const added = [];
729
729
  for (const key of APP_GIT_KEYS) {
730
730
  if (present.has(key) || present.has(`ai.telemetry.metadata.${key}`) || present.has(`traceloop.association.properties.${key}`))
731
731
  continue;
732
- const value = snapshot[key];
732
+ const value = snapshot2[key];
733
733
  if (typeof value === "string") added.push({ key, value: { stringValue: value } });
734
734
  else if (typeof value === "boolean") added.push({ key, value: { boolValue: value } });
735
735
  }
@@ -1322,7 +1322,7 @@ async function sendJson(url, body, headers, opts) {
1322
1322
  if (typeof retryAfterMs === "number") error.retryAfterMs = retryAfterMs;
1323
1323
  noteSendPause(url, resp.status, retryAfterMs);
1324
1324
  error.retryable = resp.status === 408 || resp.status === 429 || resp.status >= 500;
1325
- if (!error.retryable) return { status: "rejected", error };
1325
+ if (!error.retryable) return { status: "rejected", error, httpStatus: resp.status };
1326
1326
  lastError = error;
1327
1327
  logAttemptFailure(opts, prefix, opName, attempt, error);
1328
1328
  continue;
@@ -2272,6 +2272,7 @@ function needsLookup(local, remote, writeKey) {
2272
2272
  return local === void 0 && Boolean(remote) && Boolean(writeKey);
2273
2273
  }
2274
2274
  function piiRedactionNow(local, remote, endpoint, writeKey) {
2275
+ if (typeof writeKey === "function") return resolvePiiRedaction(local, remote, "unknown");
2275
2276
  if (!needsLookup(local, remote, writeKey)) return local === true;
2276
2277
  try {
2277
2278
  const answer = remotePiiAnswerNow(endpoint, writeKey);
@@ -2281,6 +2282,7 @@ function piiRedactionNow(local, remote, endpoint, writeKey) {
2281
2282
  }
2282
2283
  }
2283
2284
  async function piiRedaction(local, remote, endpoint, writeKey, deadlineAt) {
2285
+ if (typeof writeKey === "function") return resolvePiiRedaction(local, remote, "unknown");
2284
2286
  if (!needsLookup(local, remote, writeKey)) return local === true;
2285
2287
  try {
2286
2288
  return resolvePiiRedaction(local, remote, await remotePiiAnswer(endpoint, writeKey, deadlineAt));
@@ -3152,7 +3154,7 @@ function formatEndpoint2(endpoint) {
3152
3154
  // package.json
3153
3155
  var package_default = {
3154
3156
  name: "raindrop-ai",
3155
- version: "3.0.0",
3157
+ version: "3.0.1",
3156
3158
  main: "dist/index.js",
3157
3159
  module: "dist/index.mjs",
3158
3160
  types: "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tracing
3
- } from "../chunk-24GTHPYP.mjs";
4
- import "../chunk-CSH7U5JZ.mjs";
3
+ } from "../chunk-RSUQ3BU2.mjs";
4
+ import "../chunk-HKOAIPQF.mjs";
5
5
 
6
6
  // src/tracing/index.ts
7
7
  function initTracing() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -49,7 +49,7 @@
49
49
  "vite": "^7.3.8",
50
50
  "vitest": "^4.1.12",
51
51
  "zod-4-copy": "npm:zod@4.1.8",
52
- "@raindrop-ai/core": "0.3.4",
52
+ "@raindrop-ai/core": "0.3.5",
53
53
  "@raindrop-ai/redact-pii": "0.1.3",
54
54
  "@raindrop-ai/schemas": "0.1.0"
55
55
  },