@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.
Files changed (80) hide show
  1. package/README.md +219 -188
  2. package/dist/auto-instrumentation/bun-plugin.d.ts.map +1 -1
  3. package/dist/auto-instrumentation/format-configuration-report.d.ts +4 -0
  4. package/dist/auto-instrumentation/format-configuration-report.d.ts.map +1 -1
  5. package/dist/auto-instrumentation/instrument-compiled-esm.d.ts +1 -3
  6. package/dist/auto-instrumentation/instrument-compiled-esm.d.ts.map +1 -1
  7. package/dist/auto-instrumentation/instrumentation-manifest-delta.d.ts +10 -2
  8. package/dist/auto-instrumentation/instrumentation-manifest-delta.d.ts.map +1 -1
  9. package/dist/auto-instrumentation/instrumentation-manifest-registry.d.ts +6 -0
  10. package/dist/auto-instrumentation/instrumentation-manifest-registry.d.ts.map +1 -1
  11. package/dist/auto-instrumentation/node-hooks.d.ts.map +1 -1
  12. package/dist/auto-instrumentation/parameter-initializer-may-run-code.d.ts +3 -0
  13. package/dist/auto-instrumentation/parameter-initializer-may-run-code.d.ts.map +1 -0
  14. package/dist/auto-instrumentation/schedule-instrumentation-manifest-upload.d.ts +1 -1
  15. package/dist/auto-instrumentation/schedule-instrumentation-manifest-upload.d.ts.map +1 -1
  16. package/dist/auto-instrumentation/source-map-locations.d.ts +1 -0
  17. package/dist/auto-instrumentation/source-map-locations.d.ts.map +1 -1
  18. package/dist/auto-instrumentation/suspension-whitelist.d.ts +33 -0
  19. package/dist/auto-instrumentation/suspension-whitelist.d.ts.map +1 -0
  20. package/dist/auto-instrumentation/transform-disk-cache.d.ts +7 -0
  21. package/dist/auto-instrumentation/transform-disk-cache.d.ts.map +1 -0
  22. package/dist/auto-instrumentation/transform-source.d.ts +9 -6
  23. package/dist/auto-instrumentation/transform-source.d.ts.map +1 -1
  24. package/dist/auto-instrumentation/verify-instrumentation-isomorphism.d.ts +2 -0
  25. package/dist/auto-instrumentation/verify-instrumentation-isomorphism.d.ts.map +1 -0
  26. package/dist/auto-instrumentation/verify-transformed-source.d.ts +2 -0
  27. package/dist/auto-instrumentation/verify-transformed-source.d.ts.map +1 -0
  28. package/dist/execution-recorder/automatic-runtime.d.ts +17 -7
  29. package/dist/execution-recorder/automatic-runtime.d.ts.map +1 -1
  30. package/dist/execution-recorder/encode-frozen.d.ts +16 -0
  31. package/dist/execution-recorder/encode-frozen.d.ts.map +1 -0
  32. package/dist/execution-recorder/execution-journal.d.ts.map +1 -1
  33. package/dist/execution-recorder/execution-recorder-types.d.ts +124 -36
  34. package/dist/execution-recorder/execution-recorder-types.d.ts.map +1 -1
  35. package/dist/execution-recorder/execution-recorder.d.ts +2 -2
  36. package/dist/execution-recorder/execution-recorder.d.ts.map +1 -1
  37. package/dist/execution-recorder/function-plan.d.ts +8 -1
  38. package/dist/execution-recorder/function-plan.d.ts.map +1 -1
  39. package/dist/execution-recorder/index.d.ts +1 -1
  40. package/dist/execution-recorder/index.d.ts.map +1 -1
  41. package/dist/execution-recorder/recorder-memory-budget.d.ts +1 -0
  42. package/dist/execution-recorder/recorder-memory-budget.d.ts.map +1 -1
  43. package/dist/execution-recorder/redact-keys.d.ts +4 -0
  44. package/dist/execution-recorder/redact-keys.d.ts.map +1 -0
  45. package/dist/execution-recorder/run-exactly-once.d.ts +7 -0
  46. package/dist/execution-recorder/run-exactly-once.d.ts.map +1 -0
  47. package/dist/execution-recorder/runtime-state-size-budget.d.ts +14 -0
  48. package/dist/execution-recorder/runtime-state-size-budget.d.ts.map +1 -0
  49. package/dist/execution-recorder/safe-serialize.d.ts +9 -3
  50. package/dist/execution-recorder/safe-serialize.d.ts.map +1 -1
  51. package/dist/execution-recorder/value-freeze.d.ts +43 -0
  52. package/dist/execution-recorder/value-freeze.d.ts.map +1 -0
  53. package/dist/execution-recorder/warn-missing-async-context-frame.d.ts +10 -0
  54. package/dist/execution-recorder/warn-missing-async-context-frame.d.ts.map +1 -0
  55. package/dist/index.d.ts +1 -6
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +2612 -893
  58. package/dist/install-global-handlers.d.ts +29 -8
  59. package/dist/install-global-handlers.d.ts.map +1 -1
  60. package/dist/instrument/build.js +947 -805
  61. package/dist/instrument/bun.js +1098 -778
  62. package/dist/instrument/node.js +1078 -780
  63. package/dist/internal.d.ts +7 -0
  64. package/dist/internal.d.ts.map +1 -0
  65. package/dist/internal.js +4072 -0
  66. package/dist/rasputin-init.d.ts +25 -5
  67. package/dist/rasputin-init.d.ts.map +1 -1
  68. package/dist/sdk-meta.d.ts +1 -1
  69. package/dist/sdk-meta.d.ts.map +1 -1
  70. package/package.json +8 -3
  71. package/dist/derivation/analyze-function.d.ts +0 -42
  72. package/dist/derivation/analyze-function.d.ts.map +0 -1
  73. package/dist/derivation/build-dependency-graph.d.ts +0 -21
  74. package/dist/derivation/build-dependency-graph.d.ts.map +0 -1
  75. package/dist/derivation/derivation-ir.d.ts +0 -33
  76. package/dist/derivation/derivation-ir.d.ts.map +0 -1
  77. package/dist/derivation/derivation-proof.d.ts +0 -14
  78. package/dist/derivation/derivation-proof.d.ts.map +0 -1
  79. package/dist/derivation/emit-capture-plan.d.ts +0 -8
  80. package/dist/derivation/emit-capture-plan.d.ts.map +0 -1
@@ -1,22 +1,42 @@
1
1
  import { type RasputinClient, type RasputinClientStats, type RasputinOptions, type SourceVerification } from '@rasputin-ai/core';
2
2
  import { type ExecutionRecorderOptions, type ExecutionRecorderStats, type RasputinExecution } from './execution-recorder';
3
3
  export type RasputinNodeOptions = RasputinOptions & {
4
- /** Bounded runtime-state capture. Enabled by default; successful executions are discarded. */
4
+ /**
5
+ * Limits and redaction for the runtime recorder. Recording is on unless you
6
+ * set `enabled: false`. Successful requests and jobs are not kept.
7
+ */
5
8
  executionRecorder?: ExecutionRecorderOptions;
6
9
  /**
7
- * Path to a build-time instrumentation manifest. Defaults to RASPUTIN_INSTRUMENTATION_MANIFEST
8
- * or `.rasputin/instrumentation-manifest.json` in the current working directory.
10
+ * Path to the JSON file `rasputin-instrument` writes at build time.
11
+ * Defaults to `RASPUTIN_INSTRUMENTATION_MANIFEST`, or
12
+ * `.rasputin/instrumentation-manifest.json` in the current working directory.
9
13
  */
10
14
  instrumentationManifestPath?: string;
15
+ /**
16
+ * Observe `uncaughtException` / nonfatal `unhandledRejection`. Default true.
17
+ * Rasputin does not become the host crash/recovery owner: it exits only when
18
+ * it is the sole `uncaughtException` listener. Set false when the host owns
19
+ * process diagnostics.
20
+ */
21
+ installGlobalHandlers?: boolean;
22
+ /**
23
+ * Install SIGINT / SIGTERM / beforeExit flush hooks. Default true.
24
+ * Set false when the host owns process shutdown.
25
+ */
26
+ installTransportSignalHandlers?: boolean;
11
27
  };
12
28
  export type RasputinNodeClientStats = RasputinClientStats & {
13
- /** Process-local recorder safety, truncation, and memory-pressure counters. */
29
+ /** What this process has recorded since it started. See `ExecutionRecorderStats`. */
14
30
  recorder: ExecutionRecorderStats;
15
31
  };
16
32
  export type RasputinNodeClient = Omit<RasputinClient, 'getStats'> & {
33
+ /** Wrap background jobs, inspect recorder stats, or mark functions by hand. */
17
34
  execution: RasputinExecution;
18
35
  getStats: () => RasputinNodeClientStats;
19
- /** Verify package source locators against the configured Git repository and exact release. */
36
+ /**
37
+ * Check that every recorded source file maps to the Git commit in `release`.
38
+ * Call this from a deploy check, not on every request.
39
+ */
20
40
  verifyConfiguration: () => Promise<SourceVerification>;
21
41
  };
22
42
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rasputin-init.d.ts","sourceRoot":"","sources":["../src/rasputin-init.ts"],"names":[],"mappings":"AAMA,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAEN,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,MAAM,sBAAsB,CAAC;AAK9B,MAAM,MAAM,mB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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;AA+DF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,mBAAmB,KAAG,kBAmE3D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** Generated by scripts/generate-sdk-meta.ts — do not edit. */
2
2
  export declare const SDK_NAME = "@rasputin-ai/node";
3
- export declare const SDK_VERSION = "0.5.0-alpha.9";
3
+ export declare const SDK_VERSION = "0.5.0";
4
4
  //# sourceMappingURL=sdk-meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-meta.d.ts","sourceRoot":"","sources":["../src/sdk-meta.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,eAAO,MAAM,QAAQ,sBAAsB,CAAC;AAC5C,eAAO,MAAM,WAAW,kBAAkB,CAAC"}
1
+ {"version":3,"file":"sdk-meta.d.ts","sourceRoot":"","sources":["../src/sdk-meta.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,eAAO,MAAM,QAAQ,sBAAsB,CAAC;AAC5C,eAAO,MAAM,WAAW,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasputin-ai/node",
3
- "version": "0.5.0-alpha.9",
3
+ "version": "0.5.0",
4
4
  "description": "Official Rasputin AI SDK for Node and Bun.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,6 +23,11 @@
23
23
  "types": "./dist/instrument/build.d.ts",
24
24
  "import": "./dist/instrument/build.js",
25
25
  "default": "./dist/instrument/build.js"
26
+ },
27
+ "./internal": {
28
+ "types": "./dist/internal.d.ts",
29
+ "import": "./dist/internal.js",
30
+ "default": "./dist/internal.js"
26
31
  }
27
32
  },
28
33
  "bin": {
@@ -44,12 +49,12 @@
44
49
  },
45
50
  "dependencies": {
46
51
  "@jridgewell/trace-mapping": "0.3.31",
47
- "@rasputin-ai/core": "0.5.0-alpha.9",
52
+ "@rasputin-ai/core": "0.5.0",
48
53
  "typescript": "5"
49
54
  },
50
55
  "devDependencies": {
51
56
  "@rasputin-ai/core": "workspace:*",
52
- "@types/bun": "latest",
57
+ "@types/bun": "1.3.14",
53
58
  "@types/node": "22.13.10",
54
59
  "esbuild": "0.25.12"
55
60
  }
@@ -1,42 +0,0 @@
1
- import type { CaptureReason, DerivationPlan } from '@rasputin-ai/core';
2
- import ts from 'typescript';
3
- import { type FunctionCallEdge } from './build-dependency-graph';
4
- export type CaptureWrap = {
5
- rootId: number;
6
- reason: CaptureReason;
7
- start: number;
8
- end: number;
9
- line: number;
10
- column: number;
11
- expressionId: number;
12
- /** Object-literal shorthand must be expanded before its value can be wrapped. */
13
- shorthandPropertyName?: string;
14
- };
15
- type NumericBinaryOp = 'add' | 'sub' | 'mul' | 'div' | 'mod';
16
- export type GuardWrap = {
17
- fallbackRootId: number;
18
- start: number;
19
- end: number;
20
- op: NumericBinaryOp;
21
- };
22
- export type AnalyzedFunction = {
23
- functionId: string;
24
- name: string;
25
- node: ts.FunctionLikeDeclaration;
26
- plan: DerivationPlan;
27
- captureWraps: CaptureWrap[];
28
- guardWraps: GuardWrap[];
29
- callEdges: FunctionCallEdge[];
30
- hasThrow: boolean;
31
- hasCoercionGuard: boolean;
32
- };
33
- export type ModuleFunctionTarget = {
34
- functionId: string;
35
- name: string;
36
- node: ts.FunctionLikeDeclaration & {
37
- body: ts.ConciseBody;
38
- };
39
- };
40
- export declare const analyzeModuleFunctions: (sourceFile: ts.SourceFile, targets: ModuleFunctionTarget[]) => AnalyzedFunction[];
41
- export {};
42
- //# sourceMappingURL=analyze-function.d.ts.map
@@ -1 +0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I,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,EAAE,CAAC,uBAAuB,GAAG;QAAE,IAAI,EAAE,EAAE,CAAC,WAAW,CAAA;KAAE,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAClC,YAAY,EAAE,CAAC,UAAU,EACzB,SAAS,oBAAoB,EAAE,KAC7B,gBAAgB,EA2ClB,CAAC"}
@@ -1,21 +0,0 @@
1
- export type FunctionCallEdge = {
2
- callerFunctionId: string;
3
- calleeName: string;
4
- calleeFunctionId?: string;
5
- };
6
- export type FunctionDependencyGraph = {
7
- functions: string[];
8
- edges: FunctionCallEdge[];
9
- calleesByCaller: Map<string, string[]>;
10
- };
11
- /** Same-module identifier calls only. Anything else is treated as opaque at the call site. */
12
- export declare const buildDependencyGraph: (functions: Array<{
13
- functionId: string;
14
- name: string;
15
- }>, edges: FunctionCallEdge[]) => FunctionDependencyGraph;
16
- /** Callees before callers so purity proofs can be reused at call sites. */
17
- export declare const topologicalFunctionOrder: (functions: Array<{
18
- functionId: string;
19
- name: string;
20
- }>, graph: FunctionDependencyGraph) => string[];
21
- //# sourceMappingURL=build-dependency-graph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build-dependency-graph.d.ts","sourceRoot":"","sources":["../../src/derivation/build-dependency-graph.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACrC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,GAChC,WAAW,KAAK,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EACtD,OAAO,gBAAgB,EAAE,KACvB,uBAcF,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,GACpC,WAAW,KAAK,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EACtD,OAAO,uBAAuB,KAC5B,MAAM,EA8CR,CAAC"}
@@ -1,33 +0,0 @@
1
- import type { DerivationBinaryOp, DerivationExpression, DerivationPlan, DerivationUnaryOp, PrimitiveConst } from '@rasputin-ai/core';
2
- export declare class DerivationIrBuilder {
3
- readonly expressions: DerivationExpression[];
4
- private nextId;
5
- constValue(value: PrimitiveConst): number;
6
- param(index: number): number;
7
- root(rootId: number): number;
8
- alias(from: number): number;
9
- binary(op: DerivationBinaryOp, left: number, right: number, guard: 'numeric' | 'primitive' | 'none'): number;
10
- unary(op: DerivationUnaryOp, operand: number): number;
11
- logical(op: 'and' | 'or' | 'nullish', left: number, right: number): number;
12
- cond(test: number, consequent: number, alternate: number): number;
13
- object(properties: Array<{
14
- key: string;
15
- value: number;
16
- }>): number;
17
- array(elements: Array<number | {
18
- kind: 'hole';
19
- }>): number;
20
- prop(object: number, key: string): number;
21
- index(array: number, index: number): number;
22
- pureCall(calleeFunctionId: string, args: number[]): number;
23
- template(parts: Array<{
24
- kind: 'lit';
25
- value: string;
26
- } | {
27
- kind: 'expr';
28
- expressionId: number;
29
- }>): number;
30
- private add;
31
- }
32
- export declare const emptyPlan: (functionId: string) => DerivationPlan;
33
- //# sourceMappingURL=derivation-ir.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"derivation-ir.d.ts","sourceRoot":"","sources":["../../src/derivation/derivation-ir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,MAAM,mBAAmB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CACP,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,GACnF,MAAM;IAIT,OAAO,CAAC,GAAG;CAIX;AAED,eAAO,MAAM,SAAS,GAAI,YAAY,MAAM,KAAG,cAO7C,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { DerivationFallbackReason, DerivationPlan } from '@rasputin-ai/core';
2
- export type Derivability = {
3
- kind: 'exact';
4
- expressionId: number;
5
- shape: 'primitive' | 'object' | 'array' | 'unknown';
6
- } | {
7
- kind: 'capture_root';
8
- reason: import('@rasputin-ai/core').CaptureReason;
9
- } | {
10
- kind: 'fallback_function';
11
- reason: DerivationFallbackReason;
12
- };
13
- export declare const functionIsExact: (plan: DerivationPlan) => boolean;
14
- //# sourceMappingURL=derivation-proof.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"derivation-proof.d.ts","sourceRoot":"","sources":["../../src/derivation/derivation-proof.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAElF,MAAM,MAAM,YAAY,GACrB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;CAAE,GAC5F;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,OAAO,mBAAmB,EAAE,aAAa,CAAA;CAAE,GAC3E;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,MAAM,EAAE,wBAAwB,CAAA;CAAE,CAAC;AAEnE,eAAO,MAAM,eAAe,GAAI,MAAM,cAAc,KAAG,OAGxB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { CaptureWrap } from './analyze-function';
2
- export type SourceEdit = {
3
- position: number;
4
- text: string;
5
- order: number;
6
- };
7
- export declare const captureWrapEdits: (wraps: CaptureWrap[], capName: string) => SourceEdit[];
8
- //# sourceMappingURL=emit-capture-plan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"emit-capture-plan.d.ts","sourceRoot":"","sources":["../../src/derivation/emit-capture-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,EAAE,EAAE,SAAS,MAAM,KAAG,UAAU,EAgBlF,CAAC"}