@rasputin-ai/node 0.15.0 → 0.16.0
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/execution-recorder/bind-adaptive-recorder.d.ts +0 -1
- package/dist/execution-recorder/bind-adaptive-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder-hooks.d.ts +0 -2
- package/dist/execution-recorder/execution-recorder-hooks.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recording-sync.d.ts +0 -1
- package/dist/execution-recorder/execution-recording-sync.d.ts.map +1 -1
- package/dist/execution-recorder/session-freeze-overrides.d.ts +1 -3
- package/dist/execution-recorder/session-freeze-overrides.d.ts.map +1 -1
- package/dist/index.js +8 -18
- package/dist/instrument/bun.js +1 -1
- package/dist/instrument/node.js +1 -1
- package/dist/internal.js +7 -16
- package/dist/sdk-meta.d.ts +1 -1
- package/package.json +2 -2
|
@@ -16,7 +16,6 @@ export declare const bindAdaptiveRecorder: (input: {
|
|
|
16
16
|
enabled?: boolean;
|
|
17
17
|
sdkName: string;
|
|
18
18
|
sdkVersion: string;
|
|
19
|
-
scrubPII?: boolean;
|
|
20
19
|
functionMetrics?: FunctionMetricsCollector;
|
|
21
20
|
executionMetrics?: ExecutionMetricsCollector;
|
|
22
21
|
durationSampler?: DurationSampler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-adaptive-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/bind-adaptive-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,mBAAmB,EAGxB,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAClG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6C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,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,mBAAmB,CAAC;IACjC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,eAAe,CAAC,EAAE,eAAe,CAAC;CAClC,KAAG;IAAE,OAAO,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,uBAAuB,CAAA;CAmDhE,CAAC"}
|
|
@@ -16,7 +16,6 @@ export type SessionCaptureView = {
|
|
|
16
16
|
excludeSources?: string[];
|
|
17
17
|
maxCapturedCallsPerFunction?: number;
|
|
18
18
|
maxExecutionHoldMs?: number;
|
|
19
|
-
scrubPII?: boolean;
|
|
20
19
|
};
|
|
21
20
|
type SessionCaptureSnapshot = ReadonlyMap<string, SessionCaptureView>;
|
|
22
21
|
export type SessionRecordingPayload = {
|
|
@@ -25,7 +24,6 @@ export type SessionRecordingPayload = {
|
|
|
25
24
|
outcome: 'success' | 'error';
|
|
26
25
|
runtimeState: ExecutionState;
|
|
27
26
|
redactKeys?: string[];
|
|
28
|
-
scrubPii?: boolean;
|
|
29
27
|
};
|
|
30
28
|
/** Test and init seams. Not part of public RasputinInit options. */
|
|
31
29
|
export type ExecutionRecorderHooks = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-recorder-hooks.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAClG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EACX,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,wBAAwB,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"execution-recorder-hooks.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAClG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EACX,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,wBAAwB,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,MAAM,EAAE,MAA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EAAE,yBAAyB,CAAC;IAC7C,4EAA4E;IAC5E,eAAe,CAAC,EAAE,eAAe,CAAC;CAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder.ts"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAEX,wBAAwB,EACxB,gBAAgB,EAGhB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"execution-recorder.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recorder.ts"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAEX,wBAAwB,EACxB,gBAAgB,EAGhB,MAAM,4BAA4B,CAAC;AAoRpC,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,GACnC,SAAS,wBAAwB,GAAG,SAAS,EAC7C,QAAO,sBAA2B,KAChC,gBA8tEF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-recording-sync.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recording-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAEX,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAqB,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAc9F,KAAK,6BAA6B,GAAG,uBAAuB,GAAG;IAC9D,YAAY,EAAE,MAAM,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC5D,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAC7F,gBAAgB,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC7D,CAAC;AAEF,KAAK,oCAAoC,GAAG;IAC3C,WAAW,EAAE,mBAAmB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,
|
|
1
|
+
{"version":3,"file":"execution-recording-sync.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/execution-recording-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAEX,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAqB,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAc9F,KAAK,6BAA6B,GAAG,uBAAuB,GAAG;IAC9D,YAAY,EAAE,MAAM,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC5D,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAC7F,gBAAgB,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC7D,CAAC;AAEF,KAAK,oCAAoC,GAAG;IAC3C,WAAW,EAAE,mBAAmB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAsCF,eAAO,MAAM,mCAAmC,GAC/C,SAAS,oCAAoC,KAC3C,6BA6oBF,CAAC"}
|
|
@@ -10,10 +10,9 @@ type SessionSettingsOverrides = {
|
|
|
10
10
|
maxExecutionHoldMs?: number;
|
|
11
11
|
excludeSources?: string[];
|
|
12
12
|
redactKeys?: string[];
|
|
13
|
-
scrubPII?: boolean;
|
|
14
13
|
};
|
|
15
14
|
export declare const parseSessionSettings: (value: unknown) => SessionSettingsOverrides | undefined;
|
|
16
|
-
export declare const reportedRecorderSettings: (options: ExecutionRecorderOptions | undefined
|
|
15
|
+
export declare const reportedRecorderSettings: (options: ExecutionRecorderOptions | undefined) => {
|
|
17
16
|
maxDepth: number | undefined;
|
|
18
17
|
maxObjectKeys: number | undefined;
|
|
19
18
|
maxArrayElements: number | undefined;
|
|
@@ -28,7 +27,6 @@ export declare const reportedRecorderSettings: (options: ExecutionRecorderOption
|
|
|
28
27
|
recorder_enabled: boolean;
|
|
29
28
|
excludeSources: string[] | undefined;
|
|
30
29
|
redactKeys: string[] | undefined;
|
|
31
|
-
scrubPII: boolean;
|
|
32
30
|
};
|
|
33
31
|
export declare const createSerializerCache: (options: ExecutionRecorderOptions | undefined) => {
|
|
34
32
|
serializerFor: (overrides: SessionSettingsOverrides | undefined) => SafeSerializer | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-freeze-overrides.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/session-freeze-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EAExB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAG7E,KAAK,wBAAwB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"session-freeze-overrides.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/session-freeze-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EAExB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAG7E,KAAK,wBAAwB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AA2CF,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,wBAAwB,GAAG,SA2DhF,CAAC;AAqDF,eAAO,MAAM,wBAAwB,GAAI,SAAS,wBAAwB,GAAG,SAAS;;;;;;;;;;;;;;;CAepF,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,SAAS,wBAAwB,GAAG,SAAS;+BAMrE,wBAAwB,GAAG,SAAS,KAC7C,cAAc,GAAG,SAAS;CAoB9B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4449,7 +4449,6 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
4449
4449
|
recording.captureValues = true;
|
|
4450
4450
|
if (session.serializer) recording.serializer = session.serializer;
|
|
4451
4451
|
if (session.redactKeys?.length) recording.sessionRedactKeys = session.redactKeys;
|
|
4452
|
-
if (session.scrubPII !== void 0) recording.sessionScrubPii = session.scrubPII;
|
|
4453
4452
|
if (session.excludeSources?.length) {
|
|
4454
4453
|
recording.sessionExcludes = createSourceExclusionMatcher(session.excludeSources);
|
|
4455
4454
|
}
|
|
@@ -5059,8 +5058,7 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
5059
5058
|
executionId: recording.executionId,
|
|
5060
5059
|
outcome: recording.hasError || recording.runFailed ? "error" : "success",
|
|
5061
5060
|
runtimeState: stateFrom(recording),
|
|
5062
|
-
redactKeys: recording.sessionRedactKeys
|
|
5063
|
-
scrubPii: recording.sessionScrubPii
|
|
5061
|
+
redactKeys: recording.sessionRedactKeys
|
|
5064
5062
|
});
|
|
5065
5063
|
} catch {
|
|
5066
5064
|
}
|
|
@@ -6260,7 +6258,6 @@ var parseSessionSettings = (value) => {
|
|
|
6260
6258
|
const redactKeys = optionalStringList(value.redactKeys);
|
|
6261
6259
|
if (excludeSources) overrides.excludeSources = excludeSources;
|
|
6262
6260
|
if (redactKeys) overrides.redactKeys = redactKeys;
|
|
6263
|
-
if (typeof value.scrubPII === "boolean") overrides.scrubPII = value.scrubPII;
|
|
6264
6261
|
return Object.keys(overrides).length > 0 ? overrides : void 0;
|
|
6265
6262
|
};
|
|
6266
6263
|
var clampSessionFreezeLimits = (overrides, processLimits) => ({
|
|
@@ -6305,7 +6302,7 @@ var serializeSourceExclusions = (exclusions) => {
|
|
|
6305
6302
|
}
|
|
6306
6303
|
return out.length > 0 ? out : void 0;
|
|
6307
6304
|
};
|
|
6308
|
-
var reportedRecorderSettings = (options
|
|
6305
|
+
var reportedRecorderSettings = (options) => ({
|
|
6309
6306
|
maxDepth: options?.maxDepth,
|
|
6310
6307
|
maxObjectKeys: options?.maxObjectKeys,
|
|
6311
6308
|
maxArrayElements: options?.maxArrayElements,
|
|
@@ -6319,8 +6316,7 @@ var reportedRecorderSettings = (options, scrubPII) => ({
|
|
|
6319
6316
|
fullCaptureDurationMs: options?.adaptive?.fullCaptureDurationMs,
|
|
6320
6317
|
recorder_enabled: options?.enabled !== false,
|
|
6321
6318
|
excludeSources: serializeSourceExclusions(options?.excludeSources),
|
|
6322
|
-
redactKeys: options?.redactKeys
|
|
6323
|
-
scrubPII: scrubPII === true
|
|
6319
|
+
redactKeys: options?.redactKeys
|
|
6324
6320
|
});
|
|
6325
6321
|
var createSerializerCache = (options) => {
|
|
6326
6322
|
const processLimits = compileFreezeLimits(options ?? {});
|
|
@@ -6382,7 +6378,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6382
6378
|
const instanceId = crypto.randomUUID();
|
|
6383
6379
|
const startedAt = /* @__PURE__ */ new Date();
|
|
6384
6380
|
const redactKeys = copyRedactKeys(options.recorderOptions?.redactKeys);
|
|
6385
|
-
const scrubPii = options.scrubPII === true;
|
|
6386
6381
|
const serializers = createSerializerCache(options.recorderOptions);
|
|
6387
6382
|
const cache = /* @__PURE__ */ new Map();
|
|
6388
6383
|
const pending = /* @__PURE__ */ new Map();
|
|
@@ -6433,8 +6428,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6433
6428
|
redactKeys: session.redactKeys,
|
|
6434
6429
|
excludeSources: session.excludeSources,
|
|
6435
6430
|
maxCapturedCallsPerFunction: session.maxCapturedCallsPerFunction,
|
|
6436
|
-
maxExecutionHoldMs: session.maxExecutionHoldMs
|
|
6437
|
-
scrubPII: session.scrubPII
|
|
6431
|
+
maxExecutionHoldMs: session.maxExecutionHoldMs
|
|
6438
6432
|
});
|
|
6439
6433
|
const sessionHasRoom = (session, atMs) => session.admitted < session.requestedCount && session.expiresAtMs > atMs;
|
|
6440
6434
|
const rebuildSessionSnapshot = () => {
|
|
@@ -6669,8 +6663,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6669
6663
|
redactKeys: overrides?.redactKeys,
|
|
6670
6664
|
excludeSources: overrides?.excludeSources,
|
|
6671
6665
|
maxCapturedCallsPerFunction: overrides?.maxCapturedCallsPerFunction,
|
|
6672
|
-
maxExecutionHoldMs: overrides?.maxExecutionHoldMs
|
|
6673
|
-
scrubPII: overrides?.scrubPII
|
|
6666
|
+
maxExecutionHoldMs: overrides?.maxExecutionHoldMs
|
|
6674
6667
|
});
|
|
6675
6668
|
}
|
|
6676
6669
|
sessionsById.clear();
|
|
@@ -6707,7 +6700,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6707
6700
|
pid: process.pid,
|
|
6708
6701
|
started_at: startedAt.toISOString(),
|
|
6709
6702
|
reported_mode: options.mode,
|
|
6710
|
-
reported_settings: reportedRecorderSettings(options.recorderOptions
|
|
6703
|
+
reported_settings: reportedRecorderSettings(options.recorderOptions),
|
|
6711
6704
|
capabilities
|
|
6712
6705
|
}
|
|
6713
6706
|
},
|
|
@@ -6766,8 +6759,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6766
6759
|
redact_keys: copyRedactKeys([
|
|
6767
6760
|
...redactKeys ?? [],
|
|
6768
6761
|
...item.redactKeys ?? []
|
|
6769
|
-
])?.slice(0, MAX_REDACT_KEYS)
|
|
6770
|
-
scrub_pii: item.scrubPii ?? scrubPii
|
|
6762
|
+
])?.slice(0, MAX_REDACT_KEYS)
|
|
6771
6763
|
}))
|
|
6772
6764
|
},
|
|
6773
6765
|
void 0,
|
|
@@ -6990,7 +6982,6 @@ var bindAdaptiveRecorder = (input) => {
|
|
|
6990
6982
|
sdkVersion: input.sdkVersion,
|
|
6991
6983
|
release: activation.release,
|
|
6992
6984
|
recorderOptions: options,
|
|
6993
|
-
scrubPII: input.scrubPII,
|
|
6994
6985
|
mode: adaptiveEnabled ? "adaptive" : "full",
|
|
6995
6986
|
fetch: input.fetch
|
|
6996
6987
|
}) : void 0;
|
|
@@ -8280,7 +8271,7 @@ var createDynamicDurationSampleBuckets = (options) => {
|
|
|
8280
8271
|
|
|
8281
8272
|
// src/sdk-meta.ts
|
|
8282
8273
|
var SDK_NAME = "@rasputin-ai/node";
|
|
8283
|
-
var SDK_VERSION = "0.
|
|
8274
|
+
var SDK_VERSION = "0.16.0";
|
|
8284
8275
|
|
|
8285
8276
|
// src/rasputin-init.ts
|
|
8286
8277
|
var publicExecution = (runtime) => ({
|
|
@@ -8377,7 +8368,6 @@ function RasputinInit(options, hooks = {}) {
|
|
|
8377
8368
|
enabled: options.enabled,
|
|
8378
8369
|
sdkName: SDK_NAME,
|
|
8379
8370
|
sdkVersion: SDK_VERSION,
|
|
8380
|
-
scrubPII: options.scrubPII,
|
|
8381
8371
|
fetch: hooks.fetch,
|
|
8382
8372
|
functionMetrics: metrics?.collector,
|
|
8383
8373
|
executionMetrics: executionMetrics?.collector,
|
package/dist/instrument/bun.js
CHANGED
|
@@ -1905,7 +1905,7 @@ import ts15 from "typescript";
|
|
|
1905
1905
|
import { originalPositionFor as originalPositionFor2, TraceMap as TraceMap3 } from "@jridgewell/trace-mapping";
|
|
1906
1906
|
|
|
1907
1907
|
// src/sdk-meta.ts
|
|
1908
|
-
var SDK_VERSION = "0.
|
|
1908
|
+
var SDK_VERSION = "0.16.0";
|
|
1909
1909
|
|
|
1910
1910
|
// src/auto-instrumentation/source-map-locations.ts
|
|
1911
1911
|
import { readFileSync } from "node:fs";
|
package/dist/instrument/node.js
CHANGED
|
@@ -1967,7 +1967,7 @@ import ts15 from "typescript";
|
|
|
1967
1967
|
import { originalPositionFor as originalPositionFor3, TraceMap as TraceMap4 } from "@jridgewell/trace-mapping";
|
|
1968
1968
|
|
|
1969
1969
|
// src/sdk-meta.ts
|
|
1970
|
-
var SDK_VERSION = "0.
|
|
1970
|
+
var SDK_VERSION = "0.16.0";
|
|
1971
1971
|
|
|
1972
1972
|
// src/auto-instrumentation/transform-disk-cache.ts
|
|
1973
1973
|
var projectCacheDir = () => {
|
package/dist/internal.js
CHANGED
|
@@ -4418,7 +4418,6 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
4418
4418
|
recording.captureValues = true;
|
|
4419
4419
|
if (session.serializer) recording.serializer = session.serializer;
|
|
4420
4420
|
if (session.redactKeys?.length) recording.sessionRedactKeys = session.redactKeys;
|
|
4421
|
-
if (session.scrubPII !== void 0) recording.sessionScrubPii = session.scrubPII;
|
|
4422
4421
|
if (session.excludeSources?.length) {
|
|
4423
4422
|
recording.sessionExcludes = createSourceExclusionMatcher(session.excludeSources);
|
|
4424
4423
|
}
|
|
@@ -5028,8 +5027,7 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
5028
5027
|
executionId: recording.executionId,
|
|
5029
5028
|
outcome: recording.hasError || recording.runFailed ? "error" : "success",
|
|
5030
5029
|
runtimeState: stateFrom(recording),
|
|
5031
|
-
redactKeys: recording.sessionRedactKeys
|
|
5032
|
-
scrubPii: recording.sessionScrubPii
|
|
5030
|
+
redactKeys: recording.sessionRedactKeys
|
|
5033
5031
|
});
|
|
5034
5032
|
} catch {
|
|
5035
5033
|
}
|
|
@@ -6229,7 +6227,6 @@ var parseSessionSettings = (value) => {
|
|
|
6229
6227
|
const redactKeys = optionalStringList(value.redactKeys);
|
|
6230
6228
|
if (excludeSources) overrides.excludeSources = excludeSources;
|
|
6231
6229
|
if (redactKeys) overrides.redactKeys = redactKeys;
|
|
6232
|
-
if (typeof value.scrubPII === "boolean") overrides.scrubPII = value.scrubPII;
|
|
6233
6230
|
return Object.keys(overrides).length > 0 ? overrides : void 0;
|
|
6234
6231
|
};
|
|
6235
6232
|
var clampSessionFreezeLimits = (overrides, processLimits) => ({
|
|
@@ -6274,7 +6271,7 @@ var serializeSourceExclusions = (exclusions) => {
|
|
|
6274
6271
|
}
|
|
6275
6272
|
return out.length > 0 ? out : void 0;
|
|
6276
6273
|
};
|
|
6277
|
-
var reportedRecorderSettings = (options
|
|
6274
|
+
var reportedRecorderSettings = (options) => ({
|
|
6278
6275
|
maxDepth: options?.maxDepth,
|
|
6279
6276
|
maxObjectKeys: options?.maxObjectKeys,
|
|
6280
6277
|
maxArrayElements: options?.maxArrayElements,
|
|
@@ -6288,8 +6285,7 @@ var reportedRecorderSettings = (options, scrubPII) => ({
|
|
|
6288
6285
|
fullCaptureDurationMs: options?.adaptive?.fullCaptureDurationMs,
|
|
6289
6286
|
recorder_enabled: options?.enabled !== false,
|
|
6290
6287
|
excludeSources: serializeSourceExclusions(options?.excludeSources),
|
|
6291
|
-
redactKeys: options?.redactKeys
|
|
6292
|
-
scrubPII: scrubPII === true
|
|
6288
|
+
redactKeys: options?.redactKeys
|
|
6293
6289
|
});
|
|
6294
6290
|
var createSerializerCache = (options) => {
|
|
6295
6291
|
const processLimits = compileFreezeLimits(options ?? {});
|
|
@@ -6351,7 +6347,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6351
6347
|
const instanceId = crypto.randomUUID();
|
|
6352
6348
|
const startedAt = /* @__PURE__ */ new Date();
|
|
6353
6349
|
const redactKeys = copyRedactKeys(options.recorderOptions?.redactKeys);
|
|
6354
|
-
const scrubPii = options.scrubPII === true;
|
|
6355
6350
|
const serializers = createSerializerCache(options.recorderOptions);
|
|
6356
6351
|
const cache = /* @__PURE__ */ new Map();
|
|
6357
6352
|
const pending = /* @__PURE__ */ new Map();
|
|
@@ -6402,8 +6397,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6402
6397
|
redactKeys: session.redactKeys,
|
|
6403
6398
|
excludeSources: session.excludeSources,
|
|
6404
6399
|
maxCapturedCallsPerFunction: session.maxCapturedCallsPerFunction,
|
|
6405
|
-
maxExecutionHoldMs: session.maxExecutionHoldMs
|
|
6406
|
-
scrubPII: session.scrubPII
|
|
6400
|
+
maxExecutionHoldMs: session.maxExecutionHoldMs
|
|
6407
6401
|
});
|
|
6408
6402
|
const sessionHasRoom = (session, atMs) => session.admitted < session.requestedCount && session.expiresAtMs > atMs;
|
|
6409
6403
|
const rebuildSessionSnapshot = () => {
|
|
@@ -6638,8 +6632,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6638
6632
|
redactKeys: overrides?.redactKeys,
|
|
6639
6633
|
excludeSources: overrides?.excludeSources,
|
|
6640
6634
|
maxCapturedCallsPerFunction: overrides?.maxCapturedCallsPerFunction,
|
|
6641
|
-
maxExecutionHoldMs: overrides?.maxExecutionHoldMs
|
|
6642
|
-
scrubPII: overrides?.scrubPII
|
|
6635
|
+
maxExecutionHoldMs: overrides?.maxExecutionHoldMs
|
|
6643
6636
|
});
|
|
6644
6637
|
}
|
|
6645
6638
|
sessionsById.clear();
|
|
@@ -6676,7 +6669,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6676
6669
|
pid: process.pid,
|
|
6677
6670
|
started_at: startedAt.toISOString(),
|
|
6678
6671
|
reported_mode: options.mode,
|
|
6679
|
-
reported_settings: reportedRecorderSettings(options.recorderOptions
|
|
6672
|
+
reported_settings: reportedRecorderSettings(options.recorderOptions),
|
|
6680
6673
|
capabilities
|
|
6681
6674
|
}
|
|
6682
6675
|
},
|
|
@@ -6735,8 +6728,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6735
6728
|
redact_keys: copyRedactKeys([
|
|
6736
6729
|
...redactKeys ?? [],
|
|
6737
6730
|
...item.redactKeys ?? []
|
|
6738
|
-
])?.slice(0, MAX_REDACT_KEYS)
|
|
6739
|
-
scrub_pii: item.scrubPii ?? scrubPii
|
|
6731
|
+
])?.slice(0, MAX_REDACT_KEYS)
|
|
6740
6732
|
}))
|
|
6741
6733
|
},
|
|
6742
6734
|
void 0,
|
|
@@ -6959,7 +6951,6 @@ var bindAdaptiveRecorder = (input) => {
|
|
|
6959
6951
|
sdkVersion: input.sdkVersion,
|
|
6960
6952
|
release: activation.release,
|
|
6961
6953
|
recorderOptions: options,
|
|
6962
|
-
scrubPII: input.scrubPII,
|
|
6963
6954
|
mode: adaptiveEnabled ? "adaptive" : "full",
|
|
6964
6955
|
fetch: input.fetch
|
|
6965
6956
|
}) : void 0;
|
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.
|
|
3
|
+
"version": "0.16.0",
|
|
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.
|
|
52
|
+
"@rasputin-ai/core": "0.16.0",
|
|
53
53
|
"typescript": "5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|