@rasputin-ai/node 0.5.0-alpha.5 → 0.5.0-alpha.7
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/auto-instrumentation/instrument-compiled-esm.d.ts +2 -0
- package/dist/auto-instrumentation/instrument-compiled-esm.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrumentation-manifest-delta.d.ts +2 -1
- package/dist/auto-instrumentation/instrumentation-manifest-delta.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrumentation-manifest-registry.d.ts +1 -1
- package/dist/auto-instrumentation/instrumentation-manifest-registry.d.ts.map +1 -1
- package/dist/auto-instrumentation/transform-source.d.ts +6 -0
- package/dist/auto-instrumentation/transform-source.d.ts.map +1 -1
- package/dist/derivation/analyze-function.d.ts +40 -0
- package/dist/derivation/analyze-function.d.ts.map +1 -0
- package/dist/derivation/build-dependency-graph.d.ts +21 -0
- package/dist/derivation/build-dependency-graph.d.ts.map +1 -0
- package/dist/derivation/derivation-ir.d.ts +33 -0
- package/dist/derivation/derivation-ir.d.ts.map +1 -0
- package/dist/derivation/derivation-proof.d.ts +14 -0
- package/dist/derivation/derivation-proof.d.ts.map +1 -0
- package/dist/derivation/emit-capture-plan.d.ts +8 -0
- package/dist/derivation/emit-capture-plan.d.ts.map +1 -0
- package/dist/execution-recorder/automatic-runtime.d.ts +3 -1
- package/dist/execution-recorder/automatic-runtime.d.ts.map +1 -1
- package/dist/execution-recorder/execution-journal.d.ts +84 -0
- package/dist/execution-recorder/execution-journal.d.ts.map +1 -0
- package/dist/execution-recorder/execution-recorder-types.d.ts +19 -2
- package/dist/execution-recorder/execution-recorder-types.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/recorder-memory-budget.d.ts +1 -0
- package/dist/execution-recorder/recorder-memory-budget.d.ts.map +1 -1
- package/dist/execution-recorder/safe-serialize.d.ts +1 -0
- package/dist/execution-recorder/safe-serialize.d.ts.map +1 -1
- package/dist/index.js +1058 -317
- package/dist/instrument/build.js +761 -71
- package/dist/instrument/bun.js +742 -66
- package/dist/instrument/node.js +742 -66
- package/dist/sdk-meta.d.ts +1 -1
- package/package.json +2 -2
- package/dist/execution-recorder/call-aware-event-buffer.d.ts +0 -37
- package/dist/execution-recorder/call-aware-event-buffer.d.ts.map +0 -1
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.5.0-alpha.
|
|
3
|
+
"version": "0.5.0-alpha.7",
|
|
4
4
|
"description": "Official Rasputin AI SDK for Node and Bun.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
47
|
-
"@rasputin-ai/core": "0.5.0-alpha.
|
|
47
|
+
"@rasputin-ai/core": "0.5.0-alpha.7",
|
|
48
48
|
"typescript": "5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A plain capped array can retain only half of a call and produce a misleading tree. This buffer
|
|
3
|
-
* preserves enter/terminal pairs and valid parent links while evicting older completed leaves, which
|
|
4
|
-
* keeps truncated snapshots usable by investigations and source-addressable debugging UIs.
|
|
5
|
-
*/
|
|
6
|
-
import type { ExecutionEvent, ExecutionFunctionEnterEvent } from './execution-recorder-types';
|
|
7
|
-
export type CompactSuppression = {
|
|
8
|
-
count: number;
|
|
9
|
-
firstTimestampNs: bigint;
|
|
10
|
-
lastTimestampNs: bigint;
|
|
11
|
-
totalDurationNs: bigint;
|
|
12
|
-
functionId: string;
|
|
13
|
-
parentCallId?: number;
|
|
14
|
-
retainedSlot?: SuppressionPlaceholder;
|
|
15
|
-
};
|
|
16
|
-
export type SuppressionPlaceholder = {
|
|
17
|
-
kind: 'suppressed';
|
|
18
|
-
group: CompactSuppression;
|
|
19
|
-
};
|
|
20
|
-
export type BufferItem = ExecutionEvent | SuppressionPlaceholder;
|
|
21
|
-
export declare const isSuppressionPlaceholder: (item: BufferItem) => item is SuppressionPlaceholder;
|
|
22
|
-
export declare class CallAwareEventBuffer {
|
|
23
|
-
private readonly capacity;
|
|
24
|
-
private readonly items;
|
|
25
|
-
private readonly openCallIds;
|
|
26
|
-
dropped: number;
|
|
27
|
-
constructor(capacity: number);
|
|
28
|
-
canStartCall(): boolean;
|
|
29
|
-
startCall(event: ExecutionFunctionEnterEvent): void;
|
|
30
|
-
finishCall(event: ExecutionEvent): void;
|
|
31
|
-
dropCall(): void;
|
|
32
|
-
appendSuppressed(group: CompactSuppression): boolean;
|
|
33
|
-
forceCompletedCall(enter: ExecutionFunctionEnterEvent, terminal: ExecutionEvent): boolean;
|
|
34
|
-
values(): BufferItem[];
|
|
35
|
-
private evictCompletedLeafOrSummary;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=call-aware-event-buffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-aware-event-buffer.d.ts","sourceRoot":"","sources":["../../src/execution-recorder/call-aware-event-buffer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAE9F,MAAM,MAAM,kBAAkB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACpC,IAAI,EA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