@rasputin-ai/node 0.5.0-alpha.9 → 0.5.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/README.md +219 -188
- package/dist/auto-instrumentation/bun-plugin.d.ts.map +1 -1
- package/dist/auto-instrumentation/format-configuration-report.d.ts +4 -0
- package/dist/auto-instrumentation/format-configuration-report.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrument-compiled-esm.d.ts +1 -3
- package/dist/auto-instrumentation/instrument-compiled-esm.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrumentation-manifest-delta.d.ts +10 -2
- package/dist/auto-instrumentation/instrumentation-manifest-delta.d.ts.map +1 -1
- package/dist/auto-instrumentation/instrumentation-manifest-registry.d.ts +6 -0
- 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/parameter-initializer-may-run-code.d.ts +3 -0
- package/dist/auto-instrumentation/parameter-initializer-may-run-code.d.ts.map +1 -0
- package/dist/auto-instrumentation/schedule-instrumentation-manifest-upload.d.ts +1 -1
- package/dist/auto-instrumentation/schedule-instrumentation-manifest-upload.d.ts.map +1 -1
- package/dist/auto-instrumentation/source-map-locations.d.ts +1 -0
- package/dist/auto-instrumentation/source-map-locations.d.ts.map +1 -1
- package/dist/auto-instrumentation/suspension-whitelist.d.ts +33 -0
- package/dist/auto-instrumentation/suspension-whitelist.d.ts.map +1 -0
- package/dist/auto-instrumentation/transform-disk-cache.d.ts +7 -0
- package/dist/auto-instrumentation/transform-disk-cache.d.ts.map +1 -0
- package/dist/auto-instrumentation/transform-source.d.ts +9 -6
- package/dist/auto-instrumentation/transform-source.d.ts.map +1 -1
- package/dist/auto-instrumentation/verify-instrumentation-isomorphism.d.ts +2 -0
- package/dist/auto-instrumentation/verify-instrumentation-isomorphism.d.ts.map +1 -0
- package/dist/auto-instrumentation/verify-transformed-source.d.ts +2 -0
- package/dist/auto-instrumentation/verify-transformed-source.d.ts.map +1 -0
- package/dist/execution-recorder/automatic-runtime.d.ts +17 -7
- package/dist/execution-recorder/automatic-runtime.d.ts.map +1 -1
- package/dist/execution-recorder/encode-frozen.d.ts +16 -0
- package/dist/execution-recorder/encode-frozen.d.ts.map +1 -0
- package/dist/execution-recorder/execution-journal.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder-types.d.ts +124 -36
- package/dist/execution-recorder/execution-recorder-types.d.ts.map +1 -1
- package/dist/execution-recorder/execution-recorder.d.ts +2 -2
- package/dist/execution-recorder/execution-recorder.d.ts.map +1 -1
- package/dist/execution-recorder/function-plan.d.ts +8 -1
- package/dist/execution-recorder/function-plan.d.ts.map +1 -1
- package/dist/execution-recorder/index.d.ts +1 -1
- package/dist/execution-recorder/index.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/redact-keys.d.ts +4 -0
- package/dist/execution-recorder/redact-keys.d.ts.map +1 -0
- package/dist/execution-recorder/run-exactly-once.d.ts +7 -0
- package/dist/execution-recorder/run-exactly-once.d.ts.map +1 -0
- package/dist/execution-recorder/runtime-state-size-budget.d.ts +14 -0
- package/dist/execution-recorder/runtime-state-size-budget.d.ts.map +1 -0
- package/dist/execution-recorder/safe-serialize.d.ts +9 -3
- package/dist/execution-recorder/safe-serialize.d.ts.map +1 -1
- package/dist/execution-recorder/value-freeze.d.ts +43 -0
- package/dist/execution-recorder/value-freeze.d.ts.map +1 -0
- package/dist/execution-recorder/warn-missing-async-context-frame.d.ts +10 -0
- package/dist/execution-recorder/warn-missing-async-context-frame.d.ts.map +1 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2612 -893
- package/dist/install-global-handlers.d.ts +29 -8
- package/dist/install-global-handlers.d.ts.map +1 -1
- package/dist/instrument/build.js +947 -805
- package/dist/instrument/bun.js +1098 -778
- package/dist/instrument/node.js +1078 -780
- package/dist/internal.d.ts +7 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +4072 -0
- package/dist/rasputin-init.d.ts +25 -5
- package/dist/rasputin-init.d.ts.map +1 -1
- package/dist/sdk-meta.d.ts +1 -1
- package/dist/sdk-meta.d.ts.map +1 -1
- package/package.json +8 -3
- package/dist/derivation/analyze-function.d.ts +0 -42
- package/dist/derivation/analyze-function.d.ts.map +0 -1
- package/dist/derivation/build-dependency-graph.d.ts +0 -21
- package/dist/derivation/build-dependency-graph.d.ts.map +0 -1
- package/dist/derivation/derivation-ir.d.ts +0 -33
- package/dist/derivation/derivation-ir.d.ts.map +0 -1
- package/dist/derivation/derivation-proof.d.ts +0 -14
- package/dist/derivation/derivation-proof.d.ts.map +0 -1
- package/dist/derivation/emit-capture-plan.d.ts +0 -8
- package/dist/derivation/emit-capture-plan.d.ts.map +0 -1
|
@@ -1,18 +1,39 @@
|
|
|
1
1
|
import type { RasputinClient } from '@rasputin-ai/core';
|
|
2
2
|
export type InstallGlobalHandlersOptions = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* (Node
|
|
6
|
-
*
|
|
4
|
+
* If Rasputin is the only `uncaughtException` listener, flush then exit the
|
|
5
|
+
* process (Node does this by default when nobody is listening). If you have
|
|
6
|
+
* other listeners, Rasputin only reports the error and leaves shutdown to you.
|
|
7
7
|
*/
|
|
8
8
|
exitOnUncaughtException?: boolean;
|
|
9
|
-
/**
|
|
9
|
+
/** How long to wait for queued events before exiting. Default: 2000 ms. */
|
|
10
10
|
flushTimeoutMs?: number;
|
|
11
11
|
};
|
|
12
|
+
type HandlerClient = Pick<RasputinClient, 'captureException' | 'flush'>;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `
|
|
14
|
+
* Observe process-level failures without becoming the host crash/recovery owner.
|
|
15
|
+
*
|
|
16
|
+
* On Node in the default `throw` / `strict` unhandled-rejection modes, Rasputin
|
|
17
|
+
* does not install `unhandledRejection`. Node then converts the rejection to
|
|
18
|
+
* `uncaughtException` the same way it would without Rasputin, so an existing
|
|
19
|
+
* recoverer still runs and a late `rejectionHandled` is unchanged. Capture
|
|
20
|
+
* happens on `uncaughtException`. Rasputin exits only when no host
|
|
21
|
+
* `uncaughtException` listener is present. Other Rasputin installations in the
|
|
22
|
+
* same process share this listener and are not treated as host recovery.
|
|
23
|
+
*
|
|
24
|
+
* In `warn`, `none`, and `warn-with-error-code`, installing a listener does
|
|
25
|
+
* not change exit policy. Rasputin observes only: it never calls
|
|
26
|
+
* `process.exit` for a rejection, prints when it is the sole host listener and
|
|
27
|
+
* Node would have printed, and sets `exitCode` only for `warn-with-error-code`.
|
|
28
|
+
*
|
|
29
|
+
* Bun is not forced onto Node's conversion model. Bun continues after
|
|
30
|
+
* unhandled rejections even in `throw` / `strict`; Rasputin observes a
|
|
31
|
+
* converted `uncaughtException` but does not exit.
|
|
32
|
+
*
|
|
33
|
+
* Disable this from `RasputinInit({ installGlobalHandlers: false })` when the
|
|
34
|
+
* host owns process diagnostics. SIGINT / SIGTERM / beforeExit flush hooks are
|
|
35
|
+
* separate: `RasputinInit({ installTransportSignalHandlers: false })`.
|
|
16
36
|
*/
|
|
17
|
-
export declare const installGlobalHandlers: (client:
|
|
37
|
+
export declare const installGlobalHandlers: (client: HandlerClient, options?: InstallGlobalHandlersOptions) => (() => void);
|
|
38
|
+
export {};
|
|
18
39
|
//# sourceMappingURL=install-global-handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-global-handlers.d.ts","sourceRoot":"","sources":["../src/install-global-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,4BAA4B,GAAG;IAC1C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,
|
|
1
|
+
{"version":3,"file":"install-global-handlers.d.ts","sourceRoot":"","sources":["../src/install-global-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,4BAA4B,GAAG;IAC1C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAsDF,KAAK,aAAa,GAAG,IAAI,CAAC,cAAc,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC;AA+GxE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,qBAAqB,GACjC,QAAQ,aAAa,EACrB,UAAS,4BAAiC,KACxC,CAAC,MAAM,IAAI,CAcb,CAAC"}
|