@rasputin-ai/node 0.14.0 → 0.15.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/execution-metrics/bind-execution-metrics.d.ts +1 -2
- package/dist/execution-metrics/bind-execution-metrics.d.ts.map +1 -1
- package/dist/execution-recorder/bind-adaptive-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder-hooks.d.ts +0 -1
- 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/function-metrics/bind-function-metrics.d.ts +1 -2
- package/dist/function-metrics/bind-function-metrics.d.ts.map +1 -1
- package/dist/index.js +7 -48
- package/dist/instrument/bun.js +1 -1
- package/dist/instrument/node.js +1 -1
- package/dist/internal.js +3 -43
- package/dist/rasputin-init.d.ts +1 -14
- package/dist/rasputin-init.d.ts.map +1 -1
- package/dist/sdk-meta.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RasputinEnvironment, type TransportFetch } from '@rasputin-ai/core';
|
|
2
2
|
import { createExecutionMetricsCollector } from './execution-metrics-collector';
|
|
3
3
|
import { type ExecutionMetricsExporter } from './execution-metrics-exporter';
|
|
4
4
|
export type ExecutionMetricsBindings = {
|
|
@@ -6,7 +6,6 @@ export type ExecutionMetricsBindings = {
|
|
|
6
6
|
exporter: ExecutionMetricsExporter;
|
|
7
7
|
};
|
|
8
8
|
export declare const bindExecutionMetrics: (input: {
|
|
9
|
-
options: ExecutionMetricsOptions | undefined;
|
|
10
9
|
clientEnabled: boolean;
|
|
11
10
|
environment: RasputinEnvironment;
|
|
12
11
|
release: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-execution-metrics.d.ts","sourceRoot":"","sources":["../../src/execution-metrics/bind-execution-metrics.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,
|
|
1
|
+
{"version":3,"file":"bind-execution-metrics.d.ts","sourceRoot":"","sources":["../../src/execution-metrics/bind-execution-metrics.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAEN,KAAK,wBAAwB,EAC7B,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,wBAAwB,GAAG;IACtC,SAAS,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;IAC9D,QAAQ,EAAE,wBAAwB,CAAC;CACnC,CAAC;AA+DF,eAAO,MAAM,oBAAoB,GAAI,OAAO;IAC3C,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACnC,KAAG,wBAAwB,GAAG,SA2C9B,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC3C,UAAU,wBAAwB,GAAG,SAAS,KAC5C,OAAO,CAAC,IAAI,CAad,CAAC;AAEF,eAAO,MAAM,6BAA6B,QAAa,OAAO,CAAC,IAAI,CAIlE,CAAC"}
|
|
@@ -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,MAA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AAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG7F,eAAO,MAAM,oBAAoB,GAAI,OAAO;IAC3C,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,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,QAAQ,CAAC,EAAE,OAAO,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;CAoDhE,CAAC"}
|
|
@@ -35,7 +35,6 @@ export type ExecutionRecorderHooks = {
|
|
|
35
35
|
getStats?: () => Partial<ExecutionRecorderStats>;
|
|
36
36
|
sessionCaptureSnapshot?: () => SessionCaptureSnapshot;
|
|
37
37
|
consumeSession?: (executionKey: string, sessionId?: string) => SessionCaptureView | undefined;
|
|
38
|
-
observeExecutionType?: (executionKey: string) => void;
|
|
39
38
|
onSessionRecording?: (payload: SessionRecordingPayload) => void;
|
|
40
39
|
/** In-memory function metrics. Still counted when the recorder journal is off. */
|
|
41
40
|
functionMetrics?: FunctionMetricsCollector;
|
|
@@ -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;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,sBAAsB,GAAG,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAEtE,MAAM,MAAM,uBAAuB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,YAAY,EAAE,cAAc,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB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Ae,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;AAqRpC,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":"AA0DA,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAEX,wBAAwB,EACxB,gBAAgB,EAGhB,MAAM,4BAA4B,CAAC;AAqRpC,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,GACnC,SAAS,wBAAwB,GAAG,SAAS,EAC7C,QAAO,sBAA2B,KAChC,gBAguEF,CAAC"}
|
|
@@ -5,7 +5,6 @@ import type { ExecutionRecorderOptions } from './execution-recorder-types';
|
|
|
5
5
|
type ExecutionRecordingCoordinator = AdaptiveRecordingPolicy & {
|
|
6
6
|
peekSessions: () => ReadonlyMap<string, SessionCaptureView>;
|
|
7
7
|
consumeSession: (executionKey: string, sessionId?: string) => SessionCaptureView | undefined;
|
|
8
|
-
observeType: (executionKey: string) => void;
|
|
9
8
|
enqueueRecording: (payload: SessionRecordingPayload) => void;
|
|
10
9
|
};
|
|
11
10
|
type ExecutionRecordingCoordinatorOptions = {
|
|
@@ -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;
|
|
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,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,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,6BAipBF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RasputinEnvironment, type TransportFetch } from '@rasputin-ai/core';
|
|
2
2
|
import { createFunctionMetricsCollector } from './function-metrics-collector';
|
|
3
3
|
import { type FunctionMetricsExporter } from './function-metrics-exporter';
|
|
4
4
|
export type FunctionMetricsBindings = {
|
|
@@ -6,7 +6,6 @@ export type FunctionMetricsBindings = {
|
|
|
6
6
|
exporter: FunctionMetricsExporter;
|
|
7
7
|
};
|
|
8
8
|
export declare const bindFunctionMetrics: (input: {
|
|
9
|
-
options: FunctionMetricsOptions | undefined;
|
|
10
9
|
clientEnabled: boolean;
|
|
11
10
|
environment: RasputinEnvironment;
|
|
12
11
|
release: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-function-metrics.d.ts","sourceRoot":"","sources":["../../src/function-metrics/bind-function-metrics.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,
|
|
1
|
+
{"version":3,"file":"bind-function-metrics.d.ts","sourceRoot":"","sources":["../../src/function-metrics/bind-function-metrics.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,6BAA6B,CAAC;AAKrC,MAAM,MAAM,uBAAuB,GAAG;IACrC,SAAS,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;IAC7D,QAAQ,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAiEF,eAAO,MAAM,mBAAmB,GAAI,OAAO;IAC1C,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACnC,KAAG,uBAAuB,GAAG,SA2C7B,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAC1C,UAAU,uBAAuB,GAAG,SAAS,KAC3C,OAAO,CAAC,IAAI,CAad,CAAC;AAEF,eAAO,MAAM,4BAA4B,QAAa,OAAO,CAAC,IAAI,CAIjE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1641,7 +1641,6 @@ var createBindings = (input) => {
|
|
|
1641
1641
|
};
|
|
1642
1642
|
var bindExecutionMetrics = (input) => {
|
|
1643
1643
|
if (!input.clientEnabled) return void 0;
|
|
1644
|
-
if (input.options?.enabled === false) return void 0;
|
|
1645
1644
|
const release = input.release.trim().toLowerCase();
|
|
1646
1645
|
if (!/^[0-9a-f]{7,40}$/.test(release)) return void 0;
|
|
1647
1646
|
const url = resolveEndpointUrls2(input.apiUrl).executionMetricsUrl;
|
|
@@ -5124,8 +5123,6 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
5124
5123
|
if (!recording.hasError && !recording.retainSuccess) {
|
|
5125
5124
|
stats.successfulExecutionsDiscarded++;
|
|
5126
5125
|
}
|
|
5127
|
-
const finishedKey = executionTypeKey(recording.execution);
|
|
5128
|
-
if (finishedKey) hooks.observeExecutionType?.(finishedKey);
|
|
5129
5126
|
recording.finishedAtNs = process.hrtime.bigint();
|
|
5130
5127
|
addRecorderTime(recording, recording.finishedAtNs - recorderStartedAtNs);
|
|
5131
5128
|
recordInlineTiming(recording);
|
|
@@ -6355,8 +6352,7 @@ var createSerializerCache = (options) => {
|
|
|
6355
6352
|
// src/execution-recorder/execution-recording-sync.ts
|
|
6356
6353
|
var MAX_CACHE_ENTRIES = 1024;
|
|
6357
6354
|
var MAX_PENDING_NOTIFIES = 32;
|
|
6358
|
-
var
|
|
6359
|
-
var DEFAULT_POLL_INTERVAL_MS = 1e4;
|
|
6355
|
+
var DEFAULT_POLL_INTERVAL_MS = 3e4;
|
|
6360
6356
|
var REQUEST_TIMEOUT_MS2 = 5e3;
|
|
6361
6357
|
var MAX_RETRIES = 5;
|
|
6362
6358
|
var MAX_POLL_JITTER_MS = 2e3;
|
|
@@ -6390,11 +6386,10 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6390
6386
|
const serializers = createSerializerCache(options.recorderOptions);
|
|
6391
6387
|
const cache = /* @__PURE__ */ new Map();
|
|
6392
6388
|
const pending = /* @__PURE__ */ new Map();
|
|
6393
|
-
const catalog = /* @__PURE__ */ new Map();
|
|
6394
6389
|
const sessionsById = /* @__PURE__ */ new Map();
|
|
6395
6390
|
const completedSessionIds = /* @__PURE__ */ new Set();
|
|
6396
6391
|
const recordings = [];
|
|
6397
|
-
const capabilities = ["
|
|
6392
|
+
const capabilities = ["manual_sessions", "settings_overrides"];
|
|
6398
6393
|
let closed = false;
|
|
6399
6394
|
let closing = false;
|
|
6400
6395
|
let sessionsDirty = true;
|
|
@@ -6638,14 +6633,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6638
6633
|
if (closed || closing || pending.size === 0 || options.mode !== "adaptive") return;
|
|
6639
6634
|
void drainNotifies(notifySignal());
|
|
6640
6635
|
};
|
|
6641
|
-
const rememberCatalog = (key, atMs) => {
|
|
6642
|
-
if (key.length === 0 || key.length > MAX_EXECUTION_TYPE_KEY_LENGTH) return;
|
|
6643
|
-
if (catalog.size >= MAX_CACHE_ENTRIES && !catalog.has(key)) {
|
|
6644
|
-
const oldest = catalog.keys().next().value;
|
|
6645
|
-
if (oldest !== void 0) catalog.delete(oldest);
|
|
6646
|
-
}
|
|
6647
|
-
catalog.set(key, atMs);
|
|
6648
|
-
};
|
|
6649
6636
|
const applyCompletedSessionIds = (value) => {
|
|
6650
6637
|
if (!Array.isArray(value)) return;
|
|
6651
6638
|
for (const entry of value) {
|
|
@@ -6705,17 +6692,8 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6705
6692
|
trimCache();
|
|
6706
6693
|
for (const key of seen) pending.delete(key);
|
|
6707
6694
|
};
|
|
6708
|
-
const catalogTypes = () => {
|
|
6709
|
-
const entries = [];
|
|
6710
|
-
for (const [executionKey, lastSeenAtMs] of catalog) {
|
|
6711
|
-
entries.push({ executionKey, lastSeenAtMs });
|
|
6712
|
-
if (entries.length >= MAX_PENDING_TYPES) break;
|
|
6713
|
-
}
|
|
6714
|
-
return entries;
|
|
6715
|
-
};
|
|
6716
6695
|
const syncOnce = async (signal) => {
|
|
6717
6696
|
if (closed) return;
|
|
6718
|
-
const types2 = catalogTypes();
|
|
6719
6697
|
try {
|
|
6720
6698
|
const { response, body: payload } = await postJson(
|
|
6721
6699
|
options.syncUrl,
|
|
@@ -6731,11 +6709,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6731
6709
|
reported_mode: options.mode,
|
|
6732
6710
|
reported_settings: reportedRecorderSettings(options.recorderOptions, options.scrubPII),
|
|
6733
6711
|
capabilities
|
|
6734
|
-
}
|
|
6735
|
-
types: types2.map((entry) => ({
|
|
6736
|
-
execution_key: entry.executionKey,
|
|
6737
|
-
last_seen_at: new Date(entry.lastSeenAtMs).toISOString()
|
|
6738
|
-
}))
|
|
6712
|
+
}
|
|
6739
6713
|
},
|
|
6740
6714
|
signal,
|
|
6741
6715
|
async (syncResponse) => {
|
|
@@ -6750,14 +6724,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6750
6724
|
}
|
|
6751
6725
|
applyActivations(payload?.activations);
|
|
6752
6726
|
applySessions(payload?.sessions);
|
|
6753
|
-
for (const entry of types2) {
|
|
6754
|
-
const current = catalog.get(entry.executionKey);
|
|
6755
|
-
if (current === void 0) continue;
|
|
6756
|
-
catalog.delete(entry.executionKey);
|
|
6757
|
-
if (current !== entry.lastSeenAtMs) {
|
|
6758
|
-
catalog.set(entry.executionKey, current);
|
|
6759
|
-
}
|
|
6760
|
-
}
|
|
6761
6727
|
} catch (error) {
|
|
6762
6728
|
if (signal.aborted || error instanceof Error && error.name === "AbortError") {
|
|
6763
6729
|
rememberFailure("aborted");
|
|
@@ -6922,9 +6888,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6922
6888
|
}
|
|
6923
6889
|
return void 0;
|
|
6924
6890
|
};
|
|
6925
|
-
const observeType = (executionKeyValue) => {
|
|
6926
|
-
rememberCatalog(executionKeyValue, nowMs());
|
|
6927
|
-
};
|
|
6928
6891
|
const enqueueRecording = (payload) => {
|
|
6929
6892
|
if (closed || closing) return;
|
|
6930
6893
|
recordings.push(payload);
|
|
@@ -6959,7 +6922,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6959
6922
|
activate,
|
|
6960
6923
|
peekSessions,
|
|
6961
6924
|
consumeSession,
|
|
6962
|
-
observeType,
|
|
6963
6925
|
enqueueRecording,
|
|
6964
6926
|
getStats: () => ({
|
|
6965
6927
|
adaptiveNotifyFailures: notifyFailures,
|
|
@@ -7039,7 +7001,6 @@ var bindAdaptiveRecorder = (input) => {
|
|
|
7039
7001
|
recorderHooks.getStats = coordinator.getStats;
|
|
7040
7002
|
recorderHooks.sessionCaptureSnapshot = coordinator.peekSessions;
|
|
7041
7003
|
recorderHooks.consumeSession = coordinator.consumeSession;
|
|
7042
|
-
recorderHooks.observeExecutionType = coordinator.observeType;
|
|
7043
7004
|
recorderHooks.onSessionRecording = coordinator.enqueueRecording;
|
|
7044
7005
|
}
|
|
7045
7006
|
if (input.functionMetrics) recorderHooks.functionMetrics = input.functionMetrics;
|
|
@@ -8065,7 +8026,6 @@ var createBindings2 = (input) => {
|
|
|
8065
8026
|
};
|
|
8066
8027
|
var bindFunctionMetrics = (input) => {
|
|
8067
8028
|
if (!input.clientEnabled) return void 0;
|
|
8068
|
-
if (input.options?.enabled === false) return void 0;
|
|
8069
8029
|
const release = input.release.trim().toLowerCase();
|
|
8070
8030
|
if (!/^[0-9a-f]{7,40}$/.test(release)) return void 0;
|
|
8071
8031
|
const url = resolveEndpointUrls4(input.apiUrl).functionMetricsUrl;
|
|
@@ -8320,7 +8280,7 @@ var createDynamicDurationSampleBuckets = (options) => {
|
|
|
8320
8280
|
|
|
8321
8281
|
// src/sdk-meta.ts
|
|
8322
8282
|
var SDK_NAME = "@rasputin-ai/node";
|
|
8323
|
-
var SDK_VERSION = "0.
|
|
8283
|
+
var SDK_VERSION = "0.15.1";
|
|
8324
8284
|
|
|
8325
8285
|
// src/rasputin-init.ts
|
|
8326
8286
|
var publicExecution = (runtime) => ({
|
|
@@ -8387,7 +8347,6 @@ function RasputinInit(options, hooks = {}) {
|
|
|
8387
8347
|
const recorderEnabled = enabled && options.executionRecorder?.enabled !== false;
|
|
8388
8348
|
const durationSampling = options.dynamicDurationSampling === true;
|
|
8389
8349
|
const metrics = activation.enabled ? bindFunctionMetrics({
|
|
8390
|
-
options: options.functionMetrics,
|
|
8391
8350
|
clientEnabled: true,
|
|
8392
8351
|
environment: activation.environment,
|
|
8393
8352
|
release: activation.release,
|
|
@@ -8397,7 +8356,6 @@ function RasputinInit(options, hooks = {}) {
|
|
|
8397
8356
|
sampledMeasurementFormat: durationSampling
|
|
8398
8357
|
}) : void 0;
|
|
8399
8358
|
const executionMetrics = activation.enabled ? bindExecutionMetrics({
|
|
8400
|
-
options: options.executionMetrics,
|
|
8401
8359
|
clientEnabled: true,
|
|
8402
8360
|
environment: activation.environment,
|
|
8403
8361
|
release: activation.release,
|
|
@@ -8406,7 +8364,8 @@ function RasputinInit(options, hooks = {}) {
|
|
|
8406
8364
|
fetch: hooks.fetch,
|
|
8407
8365
|
sampledMeasurementFormat: durationSampling
|
|
8408
8366
|
}) : void 0;
|
|
8409
|
-
const
|
|
8367
|
+
const observeExecutions = recorderEnabled || Boolean(metrics) || Boolean(executionMetrics);
|
|
8368
|
+
const durationSampler = durationSampling && observeExecutions ? createDynamicDurationSampleBuckets({ nowMs: () => Date.now() }) : void 0;
|
|
8410
8369
|
const { runtime, policy } = bindAdaptiveRecorder({
|
|
8411
8370
|
executionRecorder: options.executionRecorder,
|
|
8412
8371
|
recorderEnabled,
|
|
@@ -8442,7 +8401,7 @@ function RasputinInit(options, hooks = {}) {
|
|
|
8442
8401
|
const wrappedClient = withExecution(
|
|
8443
8402
|
client,
|
|
8444
8403
|
runtime,
|
|
8445
|
-
|
|
8404
|
+
observeExecutions,
|
|
8446
8405
|
{
|
|
8447
8406
|
projectApiKey: options.projectApiKey,
|
|
8448
8407
|
release: options.release,
|
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.15.1";
|
|
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.15.1";
|
|
1971
1971
|
|
|
1972
1972
|
// src/auto-instrumentation/transform-disk-cache.ts
|
|
1973
1973
|
var projectCacheDir = () => {
|
package/dist/internal.js
CHANGED
|
@@ -1610,7 +1610,6 @@ var createBindings = (input) => {
|
|
|
1610
1610
|
};
|
|
1611
1611
|
var bindExecutionMetrics = (input) => {
|
|
1612
1612
|
if (!input.clientEnabled) return void 0;
|
|
1613
|
-
if (input.options?.enabled === false) return void 0;
|
|
1614
1613
|
const release = input.release.trim().toLowerCase();
|
|
1615
1614
|
if (!/^[0-9a-f]{7,40}$/.test(release)) return void 0;
|
|
1616
1615
|
const url = resolveEndpointUrls2(input.apiUrl).executionMetricsUrl;
|
|
@@ -5093,8 +5092,6 @@ var createExecutionRecorder = (options, hooks = {}) => {
|
|
|
5093
5092
|
if (!recording.hasError && !recording.retainSuccess) {
|
|
5094
5093
|
stats.successfulExecutionsDiscarded++;
|
|
5095
5094
|
}
|
|
5096
|
-
const finishedKey = executionTypeKey(recording.execution);
|
|
5097
|
-
if (finishedKey) hooks.observeExecutionType?.(finishedKey);
|
|
5098
5095
|
recording.finishedAtNs = process.hrtime.bigint();
|
|
5099
5096
|
addRecorderTime(recording, recording.finishedAtNs - recorderStartedAtNs);
|
|
5100
5097
|
recordInlineTiming(recording);
|
|
@@ -6324,8 +6321,7 @@ var createSerializerCache = (options) => {
|
|
|
6324
6321
|
// src/execution-recorder/execution-recording-sync.ts
|
|
6325
6322
|
var MAX_CACHE_ENTRIES = 1024;
|
|
6326
6323
|
var MAX_PENDING_NOTIFIES = 32;
|
|
6327
|
-
var
|
|
6328
|
-
var DEFAULT_POLL_INTERVAL_MS = 1e4;
|
|
6324
|
+
var DEFAULT_POLL_INTERVAL_MS = 3e4;
|
|
6329
6325
|
var REQUEST_TIMEOUT_MS2 = 5e3;
|
|
6330
6326
|
var MAX_RETRIES = 5;
|
|
6331
6327
|
var MAX_POLL_JITTER_MS = 2e3;
|
|
@@ -6359,11 +6355,10 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6359
6355
|
const serializers = createSerializerCache(options.recorderOptions);
|
|
6360
6356
|
const cache = /* @__PURE__ */ new Map();
|
|
6361
6357
|
const pending = /* @__PURE__ */ new Map();
|
|
6362
|
-
const catalog = /* @__PURE__ */ new Map();
|
|
6363
6358
|
const sessionsById = /* @__PURE__ */ new Map();
|
|
6364
6359
|
const completedSessionIds = /* @__PURE__ */ new Set();
|
|
6365
6360
|
const recordings = [];
|
|
6366
|
-
const capabilities = ["
|
|
6361
|
+
const capabilities = ["manual_sessions", "settings_overrides"];
|
|
6367
6362
|
let closed = false;
|
|
6368
6363
|
let closing = false;
|
|
6369
6364
|
let sessionsDirty = true;
|
|
@@ -6607,14 +6602,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6607
6602
|
if (closed || closing || pending.size === 0 || options.mode !== "adaptive") return;
|
|
6608
6603
|
void drainNotifies(notifySignal());
|
|
6609
6604
|
};
|
|
6610
|
-
const rememberCatalog = (key, atMs) => {
|
|
6611
|
-
if (key.length === 0 || key.length > MAX_EXECUTION_TYPE_KEY_LENGTH) return;
|
|
6612
|
-
if (catalog.size >= MAX_CACHE_ENTRIES && !catalog.has(key)) {
|
|
6613
|
-
const oldest = catalog.keys().next().value;
|
|
6614
|
-
if (oldest !== void 0) catalog.delete(oldest);
|
|
6615
|
-
}
|
|
6616
|
-
catalog.set(key, atMs);
|
|
6617
|
-
};
|
|
6618
6605
|
const applyCompletedSessionIds = (value) => {
|
|
6619
6606
|
if (!Array.isArray(value)) return;
|
|
6620
6607
|
for (const entry of value) {
|
|
@@ -6674,17 +6661,8 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6674
6661
|
trimCache();
|
|
6675
6662
|
for (const key of seen) pending.delete(key);
|
|
6676
6663
|
};
|
|
6677
|
-
const catalogTypes = () => {
|
|
6678
|
-
const entries = [];
|
|
6679
|
-
for (const [executionKey, lastSeenAtMs] of catalog) {
|
|
6680
|
-
entries.push({ executionKey, lastSeenAtMs });
|
|
6681
|
-
if (entries.length >= MAX_PENDING_TYPES) break;
|
|
6682
|
-
}
|
|
6683
|
-
return entries;
|
|
6684
|
-
};
|
|
6685
6664
|
const syncOnce = async (signal) => {
|
|
6686
6665
|
if (closed) return;
|
|
6687
|
-
const types2 = catalogTypes();
|
|
6688
6666
|
try {
|
|
6689
6667
|
const { response, body: payload } = await postJson(
|
|
6690
6668
|
options.syncUrl,
|
|
@@ -6700,11 +6678,7 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6700
6678
|
reported_mode: options.mode,
|
|
6701
6679
|
reported_settings: reportedRecorderSettings(options.recorderOptions, options.scrubPII),
|
|
6702
6680
|
capabilities
|
|
6703
|
-
}
|
|
6704
|
-
types: types2.map((entry) => ({
|
|
6705
|
-
execution_key: entry.executionKey,
|
|
6706
|
-
last_seen_at: new Date(entry.lastSeenAtMs).toISOString()
|
|
6707
|
-
}))
|
|
6681
|
+
}
|
|
6708
6682
|
},
|
|
6709
6683
|
signal,
|
|
6710
6684
|
async (syncResponse) => {
|
|
@@ -6719,14 +6693,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6719
6693
|
}
|
|
6720
6694
|
applyActivations(payload?.activations);
|
|
6721
6695
|
applySessions(payload?.sessions);
|
|
6722
|
-
for (const entry of types2) {
|
|
6723
|
-
const current = catalog.get(entry.executionKey);
|
|
6724
|
-
if (current === void 0) continue;
|
|
6725
|
-
catalog.delete(entry.executionKey);
|
|
6726
|
-
if (current !== entry.lastSeenAtMs) {
|
|
6727
|
-
catalog.set(entry.executionKey, current);
|
|
6728
|
-
}
|
|
6729
|
-
}
|
|
6730
6696
|
} catch (error) {
|
|
6731
6697
|
if (signal.aborted || error instanceof Error && error.name === "AbortError") {
|
|
6732
6698
|
rememberFailure("aborted");
|
|
@@ -6891,9 +6857,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6891
6857
|
}
|
|
6892
6858
|
return void 0;
|
|
6893
6859
|
};
|
|
6894
|
-
const observeType = (executionKeyValue) => {
|
|
6895
|
-
rememberCatalog(executionKeyValue, nowMs());
|
|
6896
|
-
};
|
|
6897
6860
|
const enqueueRecording = (payload) => {
|
|
6898
6861
|
if (closed || closing) return;
|
|
6899
6862
|
recordings.push(payload);
|
|
@@ -6928,7 +6891,6 @@ var createExecutionRecordingCoordinator = (options) => {
|
|
|
6928
6891
|
activate,
|
|
6929
6892
|
peekSessions,
|
|
6930
6893
|
consumeSession,
|
|
6931
|
-
observeType,
|
|
6932
6894
|
enqueueRecording,
|
|
6933
6895
|
getStats: () => ({
|
|
6934
6896
|
adaptiveNotifyFailures: notifyFailures,
|
|
@@ -7008,7 +6970,6 @@ var bindAdaptiveRecorder = (input) => {
|
|
|
7008
6970
|
recorderHooks.getStats = coordinator.getStats;
|
|
7009
6971
|
recorderHooks.sessionCaptureSnapshot = coordinator.peekSessions;
|
|
7010
6972
|
recorderHooks.consumeSession = coordinator.consumeSession;
|
|
7011
|
-
recorderHooks.observeExecutionType = coordinator.observeType;
|
|
7012
6973
|
recorderHooks.onSessionRecording = coordinator.enqueueRecording;
|
|
7013
6974
|
}
|
|
7014
6975
|
if (input.functionMetrics) recorderHooks.functionMetrics = input.functionMetrics;
|
|
@@ -8034,7 +7995,6 @@ var createBindings2 = (input) => {
|
|
|
8034
7995
|
};
|
|
8035
7996
|
var bindFunctionMetrics = (input) => {
|
|
8036
7997
|
if (!input.clientEnabled) return void 0;
|
|
8037
|
-
if (input.options?.enabled === false) return void 0;
|
|
8038
7998
|
const release = input.release.trim().toLowerCase();
|
|
8039
7999
|
if (!/^[0-9a-f]{7,40}$/.test(release)) return void 0;
|
|
8040
8000
|
const url = resolveEndpointUrls4(input.apiUrl).functionMetricsUrl;
|
package/dist/rasputin-init.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RasputinClient, type RasputinClientStats, type RasputinOptions, type SourceVerification, type TransportFetch } from '@rasputin-ai/core';
|
|
2
2
|
import { type ExecutionRecorderOptions, type ExecutionRecorderStats, type RasputinExecution } from './execution-recorder';
|
|
3
3
|
export type RasputinNodeOptions = RasputinOptions & {
|
|
4
4
|
/**
|
|
@@ -38,19 +38,6 @@ export type RasputinNodeOptions = RasputinOptions & {
|
|
|
38
38
|
* values are treated as false.
|
|
39
39
|
*/
|
|
40
40
|
dynamicDurationSampling?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Function-level counts, failures, and duration histograms. On with a
|
|
43
|
-
* valid client. Set `enabled: false` to turn them off. Independent of
|
|
44
|
-
* `executionRecorder`. A build key is optional; omit it to use the server
|
|
45
|
-
* artifact id or a process fallback.
|
|
46
|
-
*/
|
|
47
|
-
functionMetrics?: FunctionMetricsOptions;
|
|
48
|
-
/**
|
|
49
|
-
* Execution-level counts, failures, and duration histograms. On with a
|
|
50
|
-
* valid client. Set `enabled: false` to turn them off. Independent of
|
|
51
|
-
* `executionRecorder` and `functionMetrics`.
|
|
52
|
-
*/
|
|
53
|
-
executionMetrics?: ExecutionMetricsOptions;
|
|
54
41
|
};
|
|
55
42
|
/** @internal Test seams omitted from the published declaration surface. */
|
|
56
43
|
type RasputinNodeHooks = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rasputin-init.d.ts","sourceRoot":"","sources":["../src/rasputin-init.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"rasputin-init.d.ts","sourceRoot":"","sources":["../src/rasputin-init.ts"],"names":[],"mappings":"AAMA,OAAO,EAKN,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EAEpB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAEN,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAE3B,KAAK,iBAAiB,EACtB,MAAM,sBAAsB,CAAC;AAa9B,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IACnD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC;;;;;;;;;;;;OAYG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,2EAA2E;AAC3E,KAAK,iBAAiB,GAAG;IACxB,KAAK,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG;IAC3D,qFAAqF;IACrF,QAAQ,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IACnE,+EAA+E;IAC/E,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,EAAE,MAAM,uBAAuB,CAAC;IACxC;;;OAGG;IACH,mBAAmB,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACvD,CAAC;AA4EF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAAC;AAC/E,+EAA+E;AAC/E,wBAAgB,YAAY,CAC3B,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,iBAAiB,GACtB,kBAAkB,CAAC"}
|
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.15.1",
|
|
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.15.1",
|
|
53
53
|
"typescript": "5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|