@rasputin-ai/node 0.11.2 → 0.11.3
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAGX,wBAAwB,EACxB,gBAAgB,EAGhB,MAAM,4BAA4B,CAAC;AAoQpC,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,GACnC,SAAS,wBAAwB,GAAG,SAAS,EAC7C,QAAO,sBAA2B,KAChC,
|
|
1
|
+
{"version":3,"file":"execution-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAGX,wBAAwB,EACxB,gBAAgB,EAGhB,MAAM,4BAA4B,CAAC;AAoQpC,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,GACnC,SAAS,wBAAwB,GAAG,SAAS,EAC7C,QAAO,sBAA2B,KAChC,gBA4wDF,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3217,6 +3217,11 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
}
|
|
3219
3219
|
detachLiveRecording(recording);
|
|
3220
|
+
if (!recording.hasError && !recording.retainedForError) {
|
|
3221
|
+
recording.repeatedCalls = void 0;
|
|
3222
|
+
recording.lateCapturedCallIds = void 0;
|
|
3223
|
+
recordingsById.delete(recording.executionId);
|
|
3224
|
+
}
|
|
3220
3225
|
};
|
|
3221
3226
|
const sweepLongLivedExecutions = (nowNs) => {
|
|
3222
3227
|
if (nowNs - lastSweepNs < sweepIntervalNs && liveRecordings.length < 256) return;
|
|
@@ -3453,7 +3458,12 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
3453
3458
|
const finish = (store, metadata) => {
|
|
3454
3459
|
try {
|
|
3455
3460
|
const { recording } = store;
|
|
3456
|
-
if (recording.finished)
|
|
3461
|
+
if (recording.finished) {
|
|
3462
|
+
if (!recording.hasError && !recording.retainedForError) {
|
|
3463
|
+
discardSuccessfulEvidence(recording);
|
|
3464
|
+
}
|
|
3465
|
+
return;
|
|
3466
|
+
}
|
|
3457
3467
|
const recorderStartedAtNs = process.hrtime.bigint();
|
|
3458
3468
|
recording.finished = true;
|
|
3459
3469
|
if (metadata) mergeExecutionMetadata(recording.execution, metadata);
|
|
@@ -5244,7 +5254,7 @@ var installGlobalHandlers = (client, options = {}) => {
|
|
|
5244
5254
|
|
|
5245
5255
|
// src/sdk-meta.ts
|
|
5246
5256
|
var SDK_NAME = "@rasputin-ai/node";
|
|
5247
|
-
var SDK_VERSION = "0.11.
|
|
5257
|
+
var SDK_VERSION = "0.11.3";
|
|
5248
5258
|
|
|
5249
5259
|
// src/rasputin-init.ts
|
|
5250
5260
|
var publicExecution = (runtime) => ({
|
package/dist/instrument/bun.js
CHANGED
|
@@ -1606,7 +1606,7 @@ import ts14 from "typescript";
|
|
|
1606
1606
|
import { originalPositionFor as originalPositionFor2, TraceMap as TraceMap3 } from "@jridgewell/trace-mapping";
|
|
1607
1607
|
|
|
1608
1608
|
// src/sdk-meta.ts
|
|
1609
|
-
var SDK_VERSION = "0.11.
|
|
1609
|
+
var SDK_VERSION = "0.11.3";
|
|
1610
1610
|
|
|
1611
1611
|
// src/auto-instrumentation/source-map-locations.ts
|
|
1612
1612
|
import { readFileSync } from "node:fs";
|
package/dist/instrument/node.js
CHANGED
|
@@ -1668,7 +1668,7 @@ import ts14 from "typescript";
|
|
|
1668
1668
|
import { originalPositionFor as originalPositionFor3, TraceMap as TraceMap4 } from "@jridgewell/trace-mapping";
|
|
1669
1669
|
|
|
1670
1670
|
// src/sdk-meta.ts
|
|
1671
|
-
var SDK_VERSION = "0.11.
|
|
1671
|
+
var SDK_VERSION = "0.11.3";
|
|
1672
1672
|
|
|
1673
1673
|
// src/auto-instrumentation/transform-disk-cache.ts
|
|
1674
1674
|
var projectCacheDir = () => {
|
package/dist/internal.js
CHANGED
|
@@ -3187,6 +3187,11 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
}
|
|
3189
3189
|
detachLiveRecording(recording);
|
|
3190
|
+
if (!recording.hasError && !recording.retainedForError) {
|
|
3191
|
+
recording.repeatedCalls = void 0;
|
|
3192
|
+
recording.lateCapturedCallIds = void 0;
|
|
3193
|
+
recordingsById.delete(recording.executionId);
|
|
3194
|
+
}
|
|
3190
3195
|
};
|
|
3191
3196
|
const sweepLongLivedExecutions = (nowNs) => {
|
|
3192
3197
|
if (nowNs - lastSweepNs < sweepIntervalNs && liveRecordings.length < 256) return;
|
|
@@ -3423,7 +3428,12 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
3423
3428
|
const finish = (store, metadata) => {
|
|
3424
3429
|
try {
|
|
3425
3430
|
const { recording } = store;
|
|
3426
|
-
if (recording.finished)
|
|
3431
|
+
if (recording.finished) {
|
|
3432
|
+
if (!recording.hasError && !recording.retainedForError) {
|
|
3433
|
+
discardSuccessfulEvidence(recording);
|
|
3434
|
+
}
|
|
3435
|
+
return;
|
|
3436
|
+
}
|
|
3427
3437
|
const recorderStartedAtNs = process.hrtime.bigint();
|
|
3428
3438
|
recording.finished = true;
|
|
3429
3439
|
if (metadata) mergeExecutionMetadata(recording.execution, metadata);
|
package/dist/sdk-meta.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasputin-ai/node",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Official Rasputin AI SDK for Node and Bun.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
52
|
-
"@rasputin-ai/core": "0.11.
|
|
52
|
+
"@rasputin-ai/core": "0.11.3",
|
|
53
53
|
"typescript": "5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|