@rasputin-ai/node 0.13.0 → 0.13.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/auto-instrumentation/bun-plugin.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrument-compiled-esm.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrumentation-manifest-registry.d.ts.map +1 -1
- package/dist/auto-instrumentation/node-hooks.d.ts.map +1 -1
- package/dist/auto-instrumentation/transform-disk-cache.d.ts.map +1 -1
- package/dist/execution-recorder/bind-adaptive-recorder.d.ts +4 -2
- package/dist/execution-recorder/bind-adaptive-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder-hooks.d.ts +3 -0
- package/dist/execution-recorder/execution-recorder-hooks.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder-types.d.ts +1 -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/execution-recording-sync.d.ts +2 -2
- package/dist/execution-recorder/execution-recording-sync.d.ts.map +1 -1
- package/dist/execution-recorder/function-plan.d.ts +3 -1
- package/dist/execution-recorder/function-plan.d.ts.map +1 -1
- package/dist/function-metrics/bind-function-metrics.d.ts +19 -0
- package/dist/function-metrics/bind-function-metrics.d.ts.map +1 -0
- package/dist/function-metrics/create-metrics-only-runtime.d.ts +4 -0
- package/dist/function-metrics/create-metrics-only-runtime.d.ts.map +1 -0
- package/dist/function-metrics/encode-function-metrics-upload.d.ts +14 -0
- package/dist/function-metrics/encode-function-metrics-upload.d.ts.map +1 -0
- package/dist/function-metrics/function-metric-declaration-registry.d.ts +9 -0
- package/dist/function-metrics/function-metric-declaration-registry.d.ts.map +1 -0
- package/dist/function-metrics/function-metrics-batches.d.ts +35 -0
- package/dist/function-metrics/function-metrics-batches.d.ts.map +1 -0
- package/dist/function-metrics/function-metrics-collector.d.ts +45 -0
- package/dist/function-metrics/function-metrics-collector.d.ts.map +1 -0
- package/dist/function-metrics/function-metrics-exporter.d.ts +23 -0
- package/dist/function-metrics/function-metrics-exporter.d.ts.map +1 -0
- package/dist/function-metrics/install-function-metric-declaration-sink.d.ts +2 -0
- package/dist/function-metrics/install-function-metric-declaration-sink.d.ts.map +1 -0
- package/dist/function-metrics/intern-prepared-metrics.d.ts +4 -0
- package/dist/function-metrics/intern-prepared-metrics.d.ts.map +1 -0
- package/dist/function-metrics/send-function-metrics-batch.d.ts +25 -0
- package/dist/function-metrics/send-function-metrics-batch.d.ts.map +1 -0
- package/dist/function-metrics/settle-function-metrics.d.ts +5 -0
- package/dist/function-metrics/settle-function-metrics.d.ts.map +1 -0
- package/dist/index.js +1592 -121
- package/dist/instrument/build.js +450 -140
- package/dist/instrument/bun.js +454 -132
- package/dist/instrument/node.js +452 -132
- package/dist/internal.d.ts +2 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +1568 -113
- package/dist/rasputin-init.d.ts +17 -4
- package/dist/rasputin-init.d.ts.map +1 -1
- package/dist/sdk-meta.d.ts +1 -1
- package/package.json +2 -2
package/dist/rasputin-init.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RasputinClient, type RasputinClientStats, type RasputinOptions, type SourceVerification } from '@rasputin-ai/core';
|
|
1
|
+
import { type FunctionMetricsOptions, 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
|
/**
|
|
@@ -24,6 +24,17 @@ export type RasputinNodeOptions = RasputinOptions & {
|
|
|
24
24
|
* Set false when the host owns process shutdown.
|
|
25
25
|
*/
|
|
26
26
|
installTransportSignalHandlers?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Function-level counts, failures, and duration histograms. On with a
|
|
29
|
+
* valid client. Set `enabled: false` to turn them off. Independent of
|
|
30
|
+
* `executionRecorder`. A build key is optional; omit it to use the
|
|
31
|
+
* server artifact id or a process fallback.
|
|
32
|
+
*/
|
|
33
|
+
functionMetrics?: FunctionMetricsOptions;
|
|
34
|
+
};
|
|
35
|
+
/** @internal Test seams omitted from the published declaration surface. */
|
|
36
|
+
type RasputinNodeHooks = {
|
|
37
|
+
fetch?: TransportFetch;
|
|
27
38
|
};
|
|
28
39
|
export type RasputinNodeClientStats = RasputinClientStats & {
|
|
29
40
|
/** What this process has recorded since it started. See `ExecutionRecorderStats`. */
|
|
@@ -48,9 +59,11 @@ export type RasputinNodeClient = Omit<RasputinClient, 'getStats'> & {
|
|
|
48
59
|
* dsn: process.env.RASPUTIN_DSN!,
|
|
49
60
|
* projectApiKey: process.env.RASPUTIN_PROJECT_API_KEY!,
|
|
50
61
|
* release: process.env.RASPUTIN_RELEASE!,
|
|
51
|
-
* environment:
|
|
52
|
-
* enabled: ['staging', 'production'].includes(process.env.NODE_ENV ?? 'development'),
|
|
62
|
+
* environment: 'production',
|
|
53
63
|
* });
|
|
54
64
|
*/
|
|
55
|
-
export declare
|
|
65
|
+
export declare function RasputinInit(options: RasputinNodeOptions): RasputinNodeClient;
|
|
66
|
+
/** @internal Test overload; omitted from the published declaration surface. */
|
|
67
|
+
export declare function RasputinInit(options: RasputinNodeOptions, hooks: RasputinNodeHooks): RasputinNodeClient;
|
|
68
|
+
export {};
|
|
56
69
|
//# sourceMappingURL=rasputin-init.d.ts.map
|
|
@@ -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,EAIN,KAAK,sBAAsB,EAE3B,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,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
|
{
|
|
2
2
|
"name": "@rasputin-ai/node",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.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.13.
|
|
52
|
+
"@rasputin-ai/core": "0.13.1",
|
|
53
53
|
"typescript": "5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|