raindrop-ai 0.0.53 → 0.0.55

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,44 +1,12 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
- };
17
- var __commonJS = (cb, mod) => function __require2() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
- mod
39
- ));
40
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1
+ import {
2
+ __commonJS,
3
+ __esm,
4
+ __export,
5
+ __publicField,
6
+ __require,
7
+ __toCommonJS,
8
+ __toESM
9
+ } from "./chunk-OCL5Y3AH.mjs";
42
10
 
43
11
  // ../../node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js
44
12
  var require_AbstractAsyncHooksContextManager = __commonJS({
@@ -3174,13 +3142,6 @@ var _setImplementation = (impl) => {
3174
3142
  };
3175
3143
 
3176
3144
  export {
3177
- __require,
3178
- __esm,
3179
- __commonJS,
3180
- __export,
3181
- __toESM,
3182
- __toCommonJS,
3183
- __publicField,
3184
3145
  require_src2 as require_src,
3185
3146
  NonLiveInteraction,
3186
3147
  tracing,
@@ -0,0 +1,51 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __esm = (fn, res) => function __init() {
15
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
+ };
17
+ var __commonJS = (cb, mod) => function __require2() {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ };
20
+ var __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, { get: all[name], enumerable: true });
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") {
26
+ for (let key of __getOwnPropNames(from))
27
+ if (!__hasOwnProp.call(to, key) && key !== except)
28
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
+ }
30
+ return to;
31
+ };
32
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
+ // If the importer is in node compatibility mode or this is not an ESM
34
+ // file that has been converted to a CommonJS file using a Babel-
35
+ // compatible transform (i.e. "__esModule" has not been set), then set
36
+ // "default" to the CommonJS "module.exports" for node compatibility.
37
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
+ mod
39
+ ));
40
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
42
+
43
+ export {
44
+ __require,
45
+ __esm,
46
+ __commonJS,
47
+ __export,
48
+ __toESM,
49
+ __toCommonJS,
50
+ __publicField
51
+ };
package/dist/index.js CHANGED
@@ -3056,7 +3056,7 @@ var CategorizationRequestSchema = import_zod.z.object({
3056
3056
  // package.json
3057
3057
  var package_default = {
3058
3058
  name: "raindrop-ai",
3059
- version: "0.0.53",
3059
+ version: "0.0.55",
3060
3060
  main: "dist/index.js",
3061
3061
  module: "dist/index.mjs",
3062
3062
  types: "dist/index.d.ts",
@@ -3072,6 +3072,12 @@ var package_default = {
3072
3072
  node: "./dist/tracing/index.js",
3073
3073
  import: "./dist/tracing/index.mjs",
3074
3074
  require: "./dist/tracing/index.js"
3075
+ },
3076
+ "./otel": {
3077
+ types: "./dist/otel/index.d.ts",
3078
+ node: "./dist/otel/index.js",
3079
+ import: "./dist/otel/index.mjs",
3080
+ require: "./dist/otel/index.js"
3075
3081
  }
3076
3082
  },
3077
3083
  files: [
@@ -3106,7 +3112,8 @@ var package_default = {
3106
3112
  tsup: {
3107
3113
  entry: [
3108
3114
  "src/index.ts",
3109
- "src/tracing/index.ts"
3115
+ "src/tracing/index.ts",
3116
+ "src/otel/index.ts"
3110
3117
  ],
3111
3118
  format: [
3112
3119
  "cjs",
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  tracing
3
- } from "./chunk-NLQ6QY5H.mjs";
3
+ } from "./chunk-MFDSZDIG.mjs";
4
+ import "./chunk-OCL5Y3AH.mjs";
4
5
 
5
6
  // ../schemas/src/ingest/index.ts
6
7
  import { z } from "zod";
@@ -84,7 +85,7 @@ var CategorizationRequestSchema = z.object({
84
85
  // package.json
85
86
  var package_default = {
86
87
  name: "raindrop-ai",
87
- version: "0.0.53",
88
+ version: "0.0.55",
88
89
  main: "dist/index.js",
89
90
  module: "dist/index.mjs",
90
91
  types: "dist/index.d.ts",
@@ -100,6 +101,12 @@ var package_default = {
100
101
  node: "./dist/tracing/index.js",
101
102
  import: "./dist/tracing/index.mjs",
102
103
  require: "./dist/tracing/index.js"
104
+ },
105
+ "./otel": {
106
+ types: "./dist/otel/index.d.ts",
107
+ node: "./dist/otel/index.js",
108
+ import: "./dist/otel/index.mjs",
109
+ require: "./dist/otel/index.js"
103
110
  }
104
111
  },
105
112
  files: [
@@ -134,7 +141,8 @@ var package_default = {
134
141
  tsup: {
135
142
  entry: [
136
143
  "src/index.ts",
137
- "src/tracing/index.ts"
144
+ "src/tracing/index.ts",
145
+ "src/otel/index.ts"
138
146
  ],
139
147
  format: [
140
148
  "cjs",
@@ -0,0 +1,10 @@
1
+ declare function metadata({ userId, convoId, eventName, }: {
2
+ userId: string;
3
+ convoId?: string;
4
+ eventName?: string;
5
+ }): Record<string, string>;
6
+ declare const _default: {
7
+ metadata: typeof metadata;
8
+ };
9
+
10
+ export { _default as default };
@@ -0,0 +1,10 @@
1
+ declare function metadata({ userId, convoId, eventName, }: {
2
+ userId: string;
3
+ convoId?: string;
4
+ eventName?: string;
5
+ }): Record<string, string>;
6
+ declare const _default: {
7
+ metadata: typeof metadata;
8
+ };
9
+
10
+ export { _default as default };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/otel/index.ts
21
+ var otel_exports = {};
22
+ __export(otel_exports, {
23
+ default: () => otel_default
24
+ });
25
+ module.exports = __toCommonJS(otel_exports);
26
+ function metadata({
27
+ userId,
28
+ convoId,
29
+ eventName
30
+ }) {
31
+ const result = {
32
+ "raindrop.userId": userId
33
+ };
34
+ if (convoId) result["raindrop.convoId"] = convoId;
35
+ if (eventName) result["raindrop.eventName"] = eventName;
36
+ return result;
37
+ }
38
+ var otel_default = {
39
+ metadata
40
+ };
@@ -0,0 +1,21 @@
1
+ import "../chunk-OCL5Y3AH.mjs";
2
+
3
+ // src/otel/index.ts
4
+ function metadata({
5
+ userId,
6
+ convoId,
7
+ eventName
8
+ }) {
9
+ const result = {
10
+ "raindrop.userId": userId
11
+ };
12
+ if (convoId) result["raindrop.convoId"] = convoId;
13
+ if (eventName) result["raindrop.eventName"] = eventName;
14
+ return result;
15
+ }
16
+ var otel_default = {
17
+ metadata
18
+ };
19
+ export {
20
+ otel_default as default
21
+ };
@@ -1,15 +1,17 @@
1
1
  import {
2
2
  NonLiveInteraction,
3
+ _setImplementation,
4
+ require_src
5
+ } from "../chunk-MFDSZDIG.mjs";
6
+ import {
3
7
  __commonJS,
4
8
  __esm,
5
9
  __export,
6
10
  __publicField,
7
11
  __require,
8
12
  __toCommonJS,
9
- __toESM,
10
- _setImplementation,
11
- require_src
12
- } from "../chunk-NLQ6QY5H.mjs";
13
+ __toESM
14
+ } from "../chunk-OCL5Y3AH.mjs";
13
15
 
14
16
  // ../../node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js
15
17
  import { createContextKey } from "@opentelemetry/api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -16,6 +16,12 @@
16
16
  "node": "./dist/tracing/index.js",
17
17
  "import": "./dist/tracing/index.mjs",
18
18
  "require": "./dist/tracing/index.js"
19
+ },
20
+ "./otel": {
21
+ "types": "./dist/otel/index.d.ts",
22
+ "node": "./dist/otel/index.js",
23
+ "import": "./dist/otel/index.mjs",
24
+ "require": "./dist/otel/index.js"
19
25
  }
20
26
  },
21
27
  "files": [
@@ -50,7 +56,8 @@
50
56
  "tsup": {
51
57
  "entry": [
52
58
  "src/index.ts",
53
- "src/tracing/index.ts"
59
+ "src/tracing/index.ts",
60
+ "src/otel/index.ts"
54
61
  ],
55
62
  "format": [
56
63
  "cjs",