raindrop-ai 1.0.6 → 1.0.7-otelv2
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/README.md +2 -0
- package/dist/{chunk-OUAKPLDX.mjs → chunk-BMYWLBYI.mjs} +1 -1
- package/dist/{chunk-QNTUAQ4I.mjs → chunk-J2WYJUH7.mjs} +10 -1
- package/dist/evals/cli.js +10 -1
- package/dist/evals/cli.mjs +2 -2
- package/dist/{index-C46PQW84.d.mts → index-BXzOiaVu.d.mts} +1186 -1184
- package/dist/{index-C46PQW84.d.ts → index-BXzOiaVu.d.ts} +1186 -1184
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -1
- package/dist/index.mjs +2 -2
- package/dist/tracing/index.d.mts +1 -1
- package/dist/tracing/index.d.ts +1 -1
- package/dist/tracing/index.js +1 -1
- package/dist/tracing/index.mjs +1 -1
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Primary Raindrop JavaScript SDK for event tracking, AI event ingestion, self-diagnostics, and tracing helpers.
|
|
4
4
|
|
|
5
|
+
No write key yet? Agents can create one now, without a browser: run `npx -y create-raindrop --org-name '<project name>'` and give the user the claim link. Steps: [raindrop.ai/auth.md](https://www.raindrop.ai/auth.md).
|
|
6
|
+
|
|
5
7
|
## Application commit reporting
|
|
6
8
|
|
|
7
9
|
The SDK adds `raindrop.app.commit_sha` when the running application's revision is available. It never substitutes the SDK revision or changes existing SDK/release fields. Set `appGit` on the client for explicit build identity or a selected application checkout:
|
|
@@ -3358,7 +3358,7 @@ installTracingSuppressionHook();
|
|
|
3358
3358
|
// package.json
|
|
3359
3359
|
var package_default = {
|
|
3360
3360
|
name: "raindrop-ai",
|
|
3361
|
-
version: "1.0.
|
|
3361
|
+
version: "1.0.7",
|
|
3362
3362
|
main: "dist/index.js",
|
|
3363
3363
|
module: "dist/index.mjs",
|
|
3364
3364
|
types: "dist/index.d.ts",
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
withReplayTraceDestination,
|
|
46
46
|
withRoutingContext,
|
|
47
47
|
withTask
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-BMYWLBYI.mjs";
|
|
49
49
|
import {
|
|
50
50
|
CapturedTraceSnapshotSchema,
|
|
51
51
|
EvalCaseExpectationSchema,
|
|
@@ -7499,6 +7499,14 @@ var PII_KIND_BY_ENDPOINT = {
|
|
|
7499
7499
|
"signals/track": "signal",
|
|
7500
7500
|
"users/identify": "identify"
|
|
7501
7501
|
};
|
|
7502
|
+
var warnedMissingWriteKey = false;
|
|
7503
|
+
function warnMissingWriteKey() {
|
|
7504
|
+
if (warnedMissingWriteKey) return;
|
|
7505
|
+
warnedMissingWriteKey = true;
|
|
7506
|
+
console.warn(
|
|
7507
|
+
"[raindrop] No write key, so events are not sent to Raindrop. Set RAINDROP_WRITE_KEY. No key yet? Agents can create one now, without a browser: run npx -y create-raindrop --org-name '<project name>' and give the user the claim link. Steps: https://www.raindrop.ai/auth.md"
|
|
7508
|
+
);
|
|
7509
|
+
}
|
|
7502
7510
|
function rawAppGitProperties(properties) {
|
|
7503
7511
|
const result = {};
|
|
7504
7512
|
for (const key of [APP_COMMIT_SHA, APP_COMMIT_DIRTY, APP_BRANCH]) {
|
|
@@ -7676,6 +7684,7 @@ var Raindrop = class {
|
|
|
7676
7684
|
isLocalDebugger: localDebuggerEnabled(this.localDebuggerUrlOpt)
|
|
7677
7685
|
});
|
|
7678
7686
|
const hasDestination = !this.disabled && (this.writeKey.trim().length > 0 || localDebuggerEnabled(this.localDebuggerUrlOpt));
|
|
7687
|
+
if (!this.disabled && !hasDestination) warnMissingWriteKey();
|
|
7679
7688
|
this.appGitContext = createAppGitContext(this.disabled ? false : config.appGit, {
|
|
7680
7689
|
captureLegacyReplayBranch: true,
|
|
7681
7690
|
allowDiscovery: hasDestination
|
package/dist/evals/cli.js
CHANGED
|
@@ -8459,7 +8459,7 @@ var SignalEventSchema = external_exports.object({
|
|
|
8459
8459
|
// package.json
|
|
8460
8460
|
var package_default = {
|
|
8461
8461
|
name: "raindrop-ai",
|
|
8462
|
-
version: "1.0.
|
|
8462
|
+
version: "1.0.7",
|
|
8463
8463
|
main: "dist/index.js",
|
|
8464
8464
|
module: "dist/index.mjs",
|
|
8465
8465
|
types: "dist/index.d.ts",
|
|
@@ -15267,6 +15267,14 @@ var PII_KIND_BY_ENDPOINT = {
|
|
|
15267
15267
|
"signals/track": "signal",
|
|
15268
15268
|
"users/identify": "identify"
|
|
15269
15269
|
};
|
|
15270
|
+
var warnedMissingWriteKey = false;
|
|
15271
|
+
function warnMissingWriteKey() {
|
|
15272
|
+
if (warnedMissingWriteKey) return;
|
|
15273
|
+
warnedMissingWriteKey = true;
|
|
15274
|
+
console.warn(
|
|
15275
|
+
"[raindrop] No write key, so events are not sent to Raindrop. Set RAINDROP_WRITE_KEY. No key yet? Agents can create one now, without a browser: run npx -y create-raindrop --org-name '<project name>' and give the user the claim link. Steps: https://www.raindrop.ai/auth.md"
|
|
15276
|
+
);
|
|
15277
|
+
}
|
|
15270
15278
|
function rawAppGitProperties(properties) {
|
|
15271
15279
|
const result = {};
|
|
15272
15280
|
for (const key of [APP_COMMIT_SHA, APP_COMMIT_DIRTY, APP_BRANCH]) {
|
|
@@ -15444,6 +15452,7 @@ var Raindrop = class {
|
|
|
15444
15452
|
isLocalDebugger: localDebuggerEnabled(this.localDebuggerUrlOpt)
|
|
15445
15453
|
});
|
|
15446
15454
|
const hasDestination2 = !this.disabled && (this.writeKey.trim().length > 0 || localDebuggerEnabled(this.localDebuggerUrlOpt));
|
|
15455
|
+
if (!this.disabled && !hasDestination2) warnMissingWriteKey();
|
|
15447
15456
|
this.appGitContext = createAppGitContext2(this.disabled ? false : config.appGit, {
|
|
15448
15457
|
captureLegacyReplayBranch: true,
|
|
15449
15458
|
allowDiscovery: hasDestination2
|
package/dist/evals/cli.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
publishEvalSuite,
|
|
6
6
|
readEvaluator,
|
|
7
7
|
runEvalSuite
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-J2WYJUH7.mjs";
|
|
9
|
+
import "../chunk-BMYWLBYI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
isEvalSuiteDefinition
|
|
12
12
|
} from "../chunk-JJHRALY4.mjs";
|