@rasputin-ai/core 0.5.0-alpha.13 → 0.5.0-alpha.14

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 (57) hide show
  1. package/dist/announce-deploy/announce-deploy.d.ts +2 -2
  2. package/dist/announce-deploy/announce-deploy.d.ts.map +1 -1
  3. package/dist/create-client/create-client-types.d.ts +23 -8
  4. package/dist/create-client/create-client-types.d.ts.map +1 -1
  5. package/dist/create-client/create-client.d.ts.map +1 -1
  6. package/dist/create-client/is-client-enabled.d.ts +17 -3
  7. package/dist/create-client/is-client-enabled.d.ts.map +1 -1
  8. package/dist/create-ingest-event/create-ingest-event-types.d.ts +4 -1
  9. package/dist/create-ingest-event/create-ingest-event-types.d.ts.map +1 -1
  10. package/dist/create-ingest-event/runtime-execution-state-types.d.ts +93 -51
  11. package/dist/create-ingest-event/runtime-execution-state-types.d.ts.map +1 -1
  12. package/dist/derivation/canonical-json.d.ts.map +1 -1
  13. package/dist/derivation/hash-instrumentation-manifest.d.ts +2 -4
  14. package/dist/derivation/hash-instrumentation-manifest.d.ts.map +1 -1
  15. package/dist/derivation/rasputin-wire-tag.d.ts +11 -0
  16. package/dist/derivation/rasputin-wire-tag.d.ts.map +1 -1
  17. package/dist/derivation/sensitive-property-name.d.ts +3 -0
  18. package/dist/derivation/sensitive-property-name.d.ts.map +1 -0
  19. package/dist/derivation/sha256.d.ts +0 -1
  20. package/dist/derivation/sha256.d.ts.map +1 -1
  21. package/dist/index.d.ts +4 -5
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +860 -1238
  24. package/dist/instrumentation-manifest/instrumentation-manifest-types.d.ts +26 -2
  25. package/dist/instrumentation-manifest/instrumentation-manifest-types.d.ts.map +1 -1
  26. package/dist/instrumentation-manifest/upload-instrumentation-manifest.d.ts +1 -0
  27. package/dist/instrumentation-manifest/upload-instrumentation-manifest.d.ts.map +1 -1
  28. package/dist/normalize-frames/normalize-frames.d.ts.map +1 -1
  29. package/dist/parse-stack/fold-synthetic-frames.d.ts +15 -0
  30. package/dist/parse-stack/fold-synthetic-frames.d.ts.map +1 -0
  31. package/dist/resolve-source-maps/resolve-source-maps.d.ts.map +1 -1
  32. package/dist/sdk-meta.d.ts +1 -1
  33. package/dist/source-identity/source-identity.d.ts +14 -1
  34. package/dist/source-identity/source-identity.d.ts.map +1 -1
  35. package/dist/suppression/create-suppression.d.ts.map +1 -1
  36. package/dist/suppression/suppression-types.d.ts +2 -0
  37. package/dist/suppression/suppression-types.d.ts.map +1 -1
  38. package/dist/transport/create-transport.d.ts.map +1 -1
  39. package/dist/transport/node-http-fetch.d.ts +3 -0
  40. package/dist/transport/node-http-fetch.d.ts.map +1 -0
  41. package/dist/transport/process-shutdown-hooks.d.ts +8 -0
  42. package/dist/transport/process-shutdown-hooks.d.ts.map +1 -0
  43. package/dist/transport/send-batch.d.ts +1 -0
  44. package/dist/transport/send-batch.d.ts.map +1 -1
  45. package/dist/transport/transport-queue.d.ts +2 -1
  46. package/dist/transport/transport-queue.d.ts.map +1 -1
  47. package/dist/transport/transport-types.d.ts +36 -11
  48. package/dist/transport/transport-types.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/derivation/captured-value-markers.d.ts +0 -5
  51. package/dist/derivation/captured-value-markers.d.ts.map +0 -1
  52. package/dist/derivation/evaluate-derivation-plan.d.ts +0 -56
  53. package/dist/derivation/evaluate-derivation-plan.d.ts.map +0 -1
  54. package/dist/derivation/wire-values-equal.d.ts +0 -3
  55. package/dist/derivation/wire-values-equal.d.ts.map +0 -1
  56. package/dist/instrumentation-manifest/derivation-plan-types.d.ts +0 -144
  57. package/dist/instrumentation-manifest/derivation-plan-types.d.ts.map +0 -1
@@ -3,7 +3,7 @@ type AnnounceDeployOptions = {
3
3
  /** Full URL for `POST /deploy` (apps/api post-deploy.handler). */
4
4
  deployUrl: string;
5
5
  projectApiKey: string;
6
- environment: string;
6
+ environment?: string | null;
7
7
  /** Commit SHA / release. Empty when it could not be detected. */
8
8
  release?: string;
9
9
  /** When false, no-op. Default true. */
@@ -12,7 +12,7 @@ type AnnounceDeployOptions = {
12
12
  };
13
13
  /**
14
14
  * Fire-and-forget deploy announcement so clean releases still land in `deploys`.
15
- * Never throws — init must not crash the host app on network failure.
15
+ * Never throws or rejects — init must not crash the host app.
16
16
  */
17
17
  export declare const announceDeploy: (options: AnnounceDeployOptions) => Promise<"ok" | "skipped" | "failed">;
18
18
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"announce-deploy.d.ts","sourceRoot":"","sources":["../../src/announce-deploy/announce-deploy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,KAAK,qBAAqB,GAAG;IAC5B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAC1B,SAAS,qBAAqB,KAC5B,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,QAAQ,CAyBrC,CAAC"}
1
+ {"version":3,"file":"announce-deploy.d.ts","sourceRoot":"","sources":["../../src/announce-deploy/announce-deploy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,KAAK,qBAAqB,GAAG;IAC5B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAC1B,SAAS,qBAAqB,KAC5B,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,QAAQ,CAmCrC,CAAC"}
@@ -2,11 +2,16 @@ import type { RequestContext } from '../create-ingest-event/create-ingest-event-
2
2
  import type { RuntimeExecutionState } from '../create-ingest-event/runtime-execution-state-types';
3
3
  import type { TransportFetch, TransportStats } from '../transport/transport-types';
4
4
  type RasputinBaseOptions = {
5
- /** Project API key from the Rasputin dashboard. Required to send events. */
5
+ /**
6
+ * Project API key from the Rasputin dashboard. Required.
7
+ * An empty or whitespace-only value makes the SDK fully inert.
8
+ */
6
9
  projectApiKey: string;
7
10
  /**
8
11
  * Where the error happened — e.g. `production`, `staging`, `preview`.
9
12
  * Shown in the UI and used when grouping errors.
13
+ * Blank, whitespace, or missing values skip deploy announcement and never
14
+ * crash initialization.
10
15
  */
11
16
  environment: string;
12
17
  /**
@@ -16,13 +21,15 @@ type RasputinBaseOptions = {
16
21
  * Set `RASPUTIN_RELEASE` in your deploy environment and pass:
17
22
  * `release: process.env.RASPUTIN_RELEASE!`
18
23
  *
19
- * When blank, Rasputin reads `RASPUTIN_RELEASE`, then platform vars
20
- * (`VERCEL_GIT_COMMIT_SHA`, etc.), then `.git` HEAD. Must be 7–40 hex chars.
24
+ * Empty or whitespace-only values make the SDK fully inert — the same as a
25
+ * blank API key. Must be 7–40 hex chars. Invalid non-empty values may fall
26
+ * through to `RASPUTIN_RELEASE`, platform vars, or `.git` HEAD.
21
27
  */
22
28
  release: string;
23
29
  /**
24
- * Master on/off switch. When `false`, nothing is captured or sent.
25
- * Useful for local dev or tests without removing init code.
30
+ * Master on/off switch. When `false`, nothing is captured or sent and no
31
+ * process handlers are installed. A blank `projectApiKey` or `release` is
32
+ * also inert. Useful for local dev or tests without removing init code.
26
33
  *
27
34
  * @default true
28
35
  */
@@ -34,6 +41,10 @@ type RasputinBaseOptions = {
34
41
  * @default true
35
42
  */
36
43
  logSuccess?: boolean;
44
+ /**
45
+ * Rasputin API origin. Leave this unset unless you self-host or point at a
46
+ * non-production environment. Defaults to `https://api.rasputinai.dev`.
47
+ */
37
48
  apiUrl?: string;
38
49
  /**
39
50
  * Folder of this service inside the Git repo, such as `apps/api`.
@@ -87,11 +98,14 @@ export type CaptureContext = {
87
98
  * a request yourself; omit for background jobs and scripts.
88
99
  */
89
100
  request?: RequestContext;
90
- /** Runtime state supplied by a framework/runtime integration. */
101
+ /**
102
+ * Call history and captured values from the failing request or job.
103
+ * Integrations attach this automatically. Pass it only if you captured it yourself.
104
+ */
91
105
  runtimeState?: RuntimeExecutionState;
92
106
  };
93
107
  export type RasputinClientStats = {
94
- /** Process-local transport counters. Cumulative counters reset when the process restarts. */
108
+ /** How many events this process has queued, sent, retried, or dropped since it started. */
95
109
  transport: TransportStats;
96
110
  };
97
111
  /**
@@ -133,7 +147,7 @@ export type RasputinClient = {
133
147
  * After `close`, the client stops sending — create a new client if you restart.
134
148
  */
135
149
  close: () => Promise<void>;
136
- /** Return a cheap, read-only snapshot of process-local operational safety counters. */
150
+ /** Counters for this process since it started. They reset when the process restarts. */
137
151
  getStats: () => RasputinClientStats;
138
152
  };
139
153
  /** Integration configuration shared with official runtime and framework packages. */
@@ -143,6 +157,7 @@ export type CreateClientHooks = {
143
157
  installTransportSignalHandlers?: boolean;
144
158
  sdkVersion?: string;
145
159
  sdkName?: string;
160
+ resolveRuntimeState?: (error: unknown, context?: CaptureContext) => RuntimeExecutionState | undefined;
146
161
  };
147
162
  export {};
148
163
  //# sourceMappingURL=create-client-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-client-types.d.ts","sourceRoot":"","sources":["../../src/create-client/create-client-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,KAAK,EAAE,qBAAqB,EAAE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C,CAAC;IAE7C;;;;;OAKG;IACH,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B,uFAAuF;IACvF,QAAQ,EAAE,MAAM,mBAAmB,CAAC;CACpC,CAAC;AAEF,qFAAqF;AACrF,MAAM,MAAM,iBAAiB,GAAG;IAC/B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"create-client-types.d.ts","sourceRoot":"","sources":["../../src/create-client/create-client-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnF,KAAK,mBAAmB,GAAG;IAC1B;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;OAUG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;A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,EAAE,MAAM,uBAAuB,CAAC;AAuBhG,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,YAGlC,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACxB,SAAS,eAAe,EACxB,QAAO,iBAAsB,KAC3B,cAoKF,CAAC"}
1
+ {"version":3,"file":"create-client.d.ts","sourceRoot":"","sources":["../../src/create-client/create-client.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAuBhG,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,YAGlC,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACxB,SAAS,eAAe,EACxB,QAAO,iBAAsB,KAC3B,cAkKF,CAAC"}
@@ -1,5 +1,19 @@
1
- import type { RasputinClient, RasputinOptions } from './create-client-types';
2
- /** `enabled: false` or blank API key → fully inert. */
3
- export declare const isClientEnabled: (options: Pick<RasputinOptions, "enabled">) => boolean;
1
+ import type { RasputinClient } from './create-client-types';
2
+ type ClientActivationOptions = {
3
+ enabled?: boolean;
4
+ projectApiKey?: string;
5
+ release?: string;
6
+ };
7
+ export type ClientActivation = {
8
+ enabled: false;
9
+ } | {
10
+ enabled: true;
11
+ projectApiKey: string;
12
+ release: string;
13
+ };
14
+ /** `enabled: false`, a blank API key, or a blank/unresolved release → fully inert. */
15
+ export declare const resolveClientActivation: (options: ClientActivationOptions) => ClientActivation;
16
+ export declare const isClientEnabled: (options: ClientActivationOptions) => boolean;
4
17
  export declare const noopClient: () => RasputinClient;
18
+ export {};
5
19
  //# sourceMappingURL=is-client-enabled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-client-enabled.d.ts","sourceRoot":"","sources":["../../src/create-client/is-client-enabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7E,uDAAuD;AACvD,eAAO,MAAM,eAAe,GAAI,SAAS,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,KAAG,OACpD,CAAC;AAEzB,eAAO,MAAM,UAAU,QAAO,cA2B5B,CAAC"}
1
+ {"version":3,"file":"is-client-enabled.d.ts","sourceRoot":"","sources":["../../src/create-client/is-client-enabled.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,KAAK,uBAAuB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACzB;IAAE,OAAO,EAAE,KAAK,CAAA;CAAE,GAClB;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,GAAI,SAAS,uBAAuB,KAAG,gBAU1E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,uBAAuB,KAAG,OAC1B,CAAC;AAE1C,eAAO,MAAM,UAAU,QAAO,cA2B5B,CAAC"}
@@ -32,10 +32,13 @@ export type IngestEvent = {
32
32
  /** Bounded runtime state atomically associated with this error occurrence. */
33
33
  runtime_state?: RuntimeExecutionState;
34
34
  };
35
+ /** HTTP details attached to an error. Framework plugins fill this in for route failures. */
35
36
  export type RequestContext = {
37
+ /** HTTP method, such as `GET` or `POST`. */
36
38
  method?: string | null;
37
- /** Route pattern (`/users/:id`), never a resolved URL with IDs. */
39
+ /** Route pattern (`/users/:id`), never a URL with a real user id in it. */
38
40
  route?: string | null;
41
+ /** Response status when the error was reported, such as `500`. */
39
42
  status?: number | null;
40
43
  };
41
44
  export type CreateIngestEventInput = {
@@ -1 +1 @@
1
- {"version":3,"file":"create-ingest-event-types.d.ts","sourceRoot":"","s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MAAM,cAAc,GAAG;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"create-ingest-event-types.d.ts","sourceRoot":"","sources":["../../src/create-ingest-event/create-ingest-event-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,6DAA6D;AAC7D,MAAM,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,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IACrB,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAAC"}
@@ -1,145 +1,187 @@
1
1
  /**
2
- * The JSON snapshot attached to an error: call tree, captured values, timings, and optional
3
- * derivation roots. This is the contract between the recorder and Rasputin ingest.
2
+ * The JSON snapshot attached to an error: call tree, captured values, and timings.
3
+ * This is the contract between the recorder and Rasputin ingest.
4
4
  * Keep in sync with `packages/~db/schemas/occurrence-runtime-state-schema.ts`.
5
- * ⚠️ DERIVATION LOCKSTEP — the published SDK cannot import Rasputin's private packages.
6
5
  */
7
6
  import type { RuntimeFunctionDefinition, SourcePosition } from '../source-identity/source-identity';
7
+ /**
8
+ * What kind of work this recording belongs to.
9
+ * HTTP requests use `http`. Background work uses `job`, `scheduled`, or `custom`.
10
+ */
8
11
  export type RuntimeExecutionKind = 'http' | 'serverless' | 'job' | 'scheduled' | 'custom';
12
+ /** HTTP details for a request-scoped recording. Same shape as `RequestContext`. */
9
13
  export type RuntimeExecutionRequest = {
10
14
  method?: string | null;
11
15
  route?: string | null;
12
16
  status?: number | null;
13
17
  };
18
+ /** Labels for one recording: what kind of work it is, and optional HTTP details. */
14
19
  export type RuntimeExecutionMetadata = {
20
+ /** `http` for a request, `job` for a background task, and so on. */
15
21
  kind: RuntimeExecutionKind;
22
+ /** Human-readable name you passed to `execution.createScope()`, such as `sync-invoices`. */
16
23
  name?: string;
24
+ /** HTTP method, route, and status when this recording is a request. */
17
25
  request?: RuntimeExecutionRequest;
18
26
  };
27
+ /** A function started while this request or job was being recorded. */
19
28
  export type RuntimeFunctionEnterEvent = {
20
29
  type: 'function_enter';
30
+ /** Id of this call. Later exit or throw events use the same id. */
21
31
  callId: number;
32
+ /** Looks up the function in `ExecutionState.functions`. */
22
33
  functionId: string;
34
+ /** `callId` of the function that called this one, when it is also recorded. */
23
35
  parentCallId?: number;
36
+ /** Milliseconds from the start of this request or job. */
24
37
  timestampMs: number;
38
+ /** Arguments as captured (redacted and size-limited). */
25
39
  args: unknown[];
40
+ /**
41
+ * `throw` when arguments were read at throw time for a previously summarized call.
42
+ * Omitted means they were captured at function entry.
43
+ */
44
+ capturedAt?: 'enter' | 'throw';
26
45
  };
46
+ /** A recorded function returned normally. */
27
47
  export type RuntimeFunctionExitEvent = {
28
48
  type: 'function_exit';
49
+ /** Matches the earlier `function_enter` for this call. */
29
50
  callId: number;
51
+ /** Milliseconds from the start of this request or job. */
30
52
  timestampMs: number;
53
+ /** How long this call ran, in milliseconds. */
31
54
  durationMs: number;
55
+ /** Return value as captured (redacted and size-limited). */
32
56
  returnValue?: unknown;
33
57
  };
34
- /** Source-mapped origin of the exception represented by a runtime-state throw event. */
58
+ /** Where the exception was thrown, after stack frames are mapped back to source. */
35
59
  export type RuntimeThrowLocation = {
60
+ /** File path shown in the stack, after source maps when available. */
36
61
  file: string;
62
+ /** Package-relative source location when Rasputin can resolve one. */
37
63
  source?: SourcePosition;
64
+ /** Function name from the stack frame. */
38
65
  function?: string;
39
66
  line?: number;
40
67
  column?: number;
68
+ /** True when this frame is your application code, not a dependency. */
41
69
  inApp: boolean;
42
70
  };
71
+ /** A recorded function threw. This is usually the call that failed. */
43
72
  export type RuntimeFunctionThrowEvent = {
44
73
  type: 'function_throw';
74
+ /** Matches the earlier `function_enter` for this call. */
45
75
  callId: number;
76
+ /** Milliseconds from the start of this request or job. */
46
77
  timestampMs: number;
78
+ /** How long this call ran before it threw, in milliseconds. */
47
79
  durationMs: number;
80
+ /** The thrown value, captured the same way as other values. */
48
81
  error?: unknown;
49
- /** Collector-derived from the occurrence's already-resolved stack before persistence. */
82
+ /** Source location of the throw, when the stack could be mapped. */
50
83
  throwLocation?: RuntimeThrowLocation;
51
84
  };
52
- /** Aggregates successful repeated calls that were intentionally not captured individually. */
85
+ /**
86
+ * Extra successful calls of the same function that were counted instead of stored
87
+ * in full, after `maxCapturedCallsPerFunction`.
88
+ */
53
89
  export type RuntimeFunctionCallsSuppressedEvent = {
54
90
  type: 'function_calls_suppressed';
55
91
  functionId: string;
56
92
  parentCallId?: number;
57
- /** Timestamp of the first suppressed call. */
93
+ /** When the first extra call happened, in milliseconds from execution start. */
58
94
  timestampMs: number;
59
- /** Completion timestamp of the most recent suppressed call. */
95
+ /** When the most recent extra call finished. */
60
96
  lastTimestampMs: number;
97
+ /** How many extra successful calls this row stands in for. */
61
98
  suppressedCallCount: number;
62
- /** Aggregate wall time of the suppressed calls. */
99
+ /** Combined run time of those extra calls, in milliseconds. */
63
100
  totalDurationMs: number;
64
101
  };
102
+ /** One step in the recorded call history. */
65
103
  export type RuntimeExecutionEvent = RuntimeFunctionEnterEvent | RuntimeFunctionExitEvent | RuntimeFunctionThrowEvent | RuntimeFunctionCallsSuppressedEvent;
66
- export type RuntimeCapturedRoot = {
67
- rootId: number;
68
- callId: number;
69
- value: unknown;
70
- completeness: 'exact' | 'partial';
71
- };
72
- export type RuntimeCapturedControlFact = {
73
- factId: number;
74
- callId: number;
75
- value: boolean;
76
- };
77
- export type RuntimeDerivationCapture = {
78
- manifestHash: string;
79
- roots: RuntimeCapturedRoot[];
80
- controlFacts: RuntimeCapturedControlFact[];
81
- };
82
- export type RuntimeDerivationMetrics = {
83
- derivationCandidateFunctions: number;
84
- derivationElidedFunctionCalls: number;
85
- derivationRootsCaptured: number;
86
- derivationControlFactsCaptured: number;
87
- derivationValuesAvoided: number;
88
- derivationFallbackFunctions: number;
89
- derivationFallbackExpressions: number;
90
- derivationFallbackReasons: Record<string, number>;
91
- derivationRootBytes: number;
92
- };
104
+ /** Recorder cost for this one request or job, not process-wide totals. */
93
105
  export type RuntimeExecutionRecorderMetrics = {
94
- /** Cumulative synchronous wall time spent in recorder-owned work for this execution. */
106
+ /** Time spent inside recorder code for this execution, in milliseconds. */
95
107
  inlineWallTimeMs: number;
96
- derivation?: RuntimeDerivationMetrics;
97
108
  };
109
+ /** What was dropped when the snapshot hit `maxRuntimeStateBytes`. */
98
110
  export type RuntimeStateSizeTruncation = {
99
111
  reason: 'runtime_state_size_budget';
100
- /** Complete compact-JSON UTF-8 size before size-priority shedding. */
112
+ /** Size of the snapshot before anything was dropped, in bytes. */
101
113
  originalBytes: number;
102
- /** Complete compact-JSON UTF-8 size after shedding, including this metadata. */
114
+ /** Size after dropping, in bytes. */
103
115
  finalBytes: number;
104
- /** Best-effort target. Derivation-only data is shed first to reach it. */
116
+ /** Soft size goal (`runtimeStateTargetBytes`). */
105
117
  targetBytes: number;
106
- /** Absolute ceiling for the complete uncompressed runtime-state object. */
118
+ /** Hard size limit (`maxRuntimeStateBytes`). */
107
119
  maximumBytes: number;
108
- derivationRootsDropped: number;
109
- derivationControlFactsDropped: number;
120
+ /** Argument and return values cleared from events. */
110
121
  eventValuesDropped: number;
122
+ /** Whole call events removed. */
111
123
  eventsDropped: number;
112
124
  functionDefinitionsDropped: number;
113
125
  };
126
+ /** How complete one kind of recording is for this execution. */
114
127
  export type RuntimeCaptureCoverage = 'full' | 'partial' | 'none';
115
- /** How this execution was recorded. Completeness of an individual value is separate. */
128
+ /**
129
+ * Completeness of one snapshot. Values are independently observed, late-captured,
130
+ * summarized, truncated, or unavailable — this profile describes the snapshot as
131
+ * a whole, not that every field is a lossless JavaScript original.
132
+ */
116
133
  export type RuntimeCaptureProfile = {
134
+ /** `automatic` when functions were wrapped for you; `manual` when you used `trace()`. */
117
135
  source: 'automatic' | 'manual' | 'scope-only';
136
+ /**
137
+ * Whether enter/exit/throw events were kept for recorded function boundaries.
138
+ * `full` means every retained boundary is complete, not that every invocation
139
+ * was stored individually. Repeated successful calls may be summarized.
140
+ */
118
141
  functionBoundaries: RuntimeCaptureCoverage;
142
+ /**
143
+ * Whether arguments and return values were stored on those events.
144
+ * `selective` means some helper calls omitted values to stay under the size budget.
145
+ */
119
146
  functionValues: 'full' | 'selective' | 'none';
147
+ /** Whether call timings were kept. */
120
148
  timings: RuntimeCaptureCoverage;
121
- derivation: 'available' | 'none';
122
149
  };
123
- /** Bounded, redacted execution state captured at the moment an error is reported. */
150
+ /**
151
+ * Snapshot of the request or job that failed: which functions ran, with what
152
+ * arguments and return values, up to the recorder's size and redaction limits.
153
+ * Captured values are bounded JSON snapshots (special numbers are tagged), not
154
+ * live JavaScript objects. Successful calls may be summarized.
155
+ */
124
156
  export type RuntimeExecutionState = {
125
157
  version: 4;
158
+ /** How complete this snapshot is, and whether wrapping was automatic or manual. */
126
159
  captureProfile: RuntimeCaptureProfile;
160
+ /** Id of this recording. Unique within the process. */
127
161
  executionId: string;
162
+ /** When this request or job started, as an ISO timestamp. */
128
163
  startedAt: string;
164
+ /** How long it had been running when the snapshot was taken, in milliseconds. */
129
165
  durationMs: number;
166
+ /** Recorder cost for this execution only. */
130
167
  recorder?: RuntimeExecutionRecorderMetrics;
168
+ /** Kind of work, optional name, and HTTP details. */
131
169
  execution: RuntimeExecutionMetadata;
132
- /** Function metadata is stored once per execution; events keep only compact opaque IDs. */
170
+ /** Functions that appear in `events`, stored once each. */
133
171
  functions: RuntimeFunctionDefinition[];
172
+ /** Call history in time order. */
134
173
  events: RuntimeExecutionEvent[];
135
- derivation?: RuntimeDerivationCapture;
174
+ /** Present when the event cap or size limit dropped data. */
136
175
  truncated?: {
176
+ /** Events removed because of `maxEventsPerExecution`. */
137
177
  eventsDropped: number;
178
+ /** Extra drops from the snapshot size limit. */
138
179
  size?: RuntimeStateSizeTruncation;
139
180
  };
181
+ /** Present when capture was degraded or the retained snapshot was evicted. */
140
182
  capture?: {
141
- completeness: 'partial';
142
- reason: 'process_memory_budget';
183
+ completeness: 'partial' | 'unavailable';
184
+ reason: 'process_memory_budget' | 'long_lived_execution_budget' | 'retained_state_evicted' | 'attribution_invariant' | 'plan_disabled_after_attribution_invariant';
143
185
  valuesDropped: number;
144
186
  eventsDropped: number;
145
187
  };
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-execution-state-types.d.ts","sourceRoot":"","sources":["../../src/create-ingest-event/runtime-execution-state-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,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pB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,+BAA+B,CAAC;IAC3C,SAAS,EAAE,wBAAwB,CAAC;IACpC,2FAA2F;IAC3F,SAAS,EAAE,yBAAyB,EAAE,CAAC;IACvC,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE;QACX,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,0BAA0B,CAAC;KAClC,CAAC;IACF,OAAO,CAAC,EAAE;QACT,YAAY,EAAE,SAAS,CAAC;QACxB,MAAM,EAAE,uBAAuB,CAAC;QAChC,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;KACtB,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"runtime-execution-state-types.d.ts","sourceRoot":"","sources":["../../src/create-ingest-event/runtime-execution-state-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpG;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,YAAY,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE1F,mFAAmF;AACnF,MAAM,MAAM,uBAAuB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,oFAAoF;AACpF,MAAM,MAAM,wBAAwB,GAAG;IACtC,oEAAoE;IACpE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,4FAA4F;IAC5F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,OAAO,CAAC,EAAE,uBAAuB,CAAC;CA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,GAAG,YAAY,CAAC;IAC9C;;;;OAIG;IACH,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C;;;OAGG;IACH,cAAc,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IAC9C,sCAAsC;IACtC,OAAO,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,mFAAmF;IACnF,cAAc,EAAE,qBAAqB,CAAC;IACtC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,+BAA+B,CAAC;IAC3C,qDAAqD;IACrD,SAAS,EAAE,wBAAwB,CAAC;IACpC,2DAA2D;IAC3D,SAAS,EAAE,yBAAyB,EAAE,CAAC;IACvC,kCAAkC;IAClC,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,6DAA6D;IAC7D,SAAS,CAAC,EAAE;QACX,yDAAyD;QACzD,aAAa,EAAE,MAAM,CAAC;QACtB,gDAAgD;QAChD,IAAI,CAAC,EAAE,0BAA0B,CAAC;KAClC,CAAC;IACF,8EAA8E;IAC9E,OAAO,CAAC,EAAE;QACT,YAAY,EAAE,SAAS,GAAG,aAAa,CAAC;QACxC,MAAM,EACH,uBAAuB,GACvB,6BAA6B,GAC7B,wBAAwB,GACxB,uBAAuB,GACvB,2CAA2C,CAAC;QAC/C,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;KACtB,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"canonical-json.d.ts","sourceRoot":"","sources":["../../src/derivation/canonical-json.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MA2B9C,CAAC"}
1
+ {"version":3,"file":"canonical-json.d.ts","sourceRoot":"","sources":["../../src/derivation/canonical-json.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MA2B9C,CAAC"}
@@ -1,8 +1,6 @@
1
1
  /**
2
- * Fingerprints a manifest so a recorded execution can refuse derivation if the release source no
3
- * longer matches what ran at capture time.
4
- * Keep in sync with `packages/~core/lib/runtime-derivation/hash-instrumentation-manifest.ts`.
5
- * ⚠️ DERIVATION LOCKSTEP — capture-time and investigation-time hashes must match.
2
+ * Fingerprints a manifest so investigation can tell whether the release source still matches
3
+ * what ran at capture time.
6
4
  */
7
5
  import type { InstrumentationManifestContent } from '../instrumentation-manifest/instrumentation-manifest-types';
8
6
  export declare const hashInstrumentationManifest: (manifest: InstrumentationManifestContent) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"hash-instrumentation-manifest.d.ts","sourceRoot":"","sources":["../../src/derivation/hash-instrumentation-manifest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAcjH,eAAO,MAAM,2BAA2B,GAAI,UAAU,8BAA8B,KAAG,MAUtF,CAAC"}
1
+ {"version":3,"file":"hash-instrumentation-manifest.d.ts","sourceRoot":"","sources":["../../src/derivation/hash-instrumentation-manifest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAgBjH,eAAO,MAAM,2BAA2B,GAAI,UAAU,8BAA8B,KAAG,MAatF,CAAC"}
@@ -6,21 +6,32 @@
6
6
  * ⚠️ DERIVATION LOCKSTEP — tagged holes must decode the same way on the server.
7
7
  */
8
8
  export declare const RASPUTIN_WIRE_TAG: "\0rasputin";
9
+ /** A captured value Rasputin could not read (for example a getter that threw). */
9
10
  export type RasputinTaggedUnknown = readonly [typeof RASPUTIN_WIRE_TAG, 'unknown'];
11
+ /** A value dropped to stay under a size or memory limit. The string is a short reason. */
10
12
  export type RasputinTaggedUnavailable = readonly [typeof RASPUTIN_WIRE_TAG, 'unavailable', string];
13
+ /** A nested field skipped because it can be reconstructed later. */
11
14
  export type RasputinTaggedOmitted = readonly [typeof RASPUTIN_WIRE_TAG, 'omitted'];
15
+ /** A field hidden because its name matched a redaction rule. */
12
16
  export type RasputinTaggedRedacted = readonly [typeof RASPUTIN_WIRE_TAG, 'redacted'];
17
+ /** A value that was cut short (too deep, too many keys, or too large). */
13
18
  export type RasputinTaggedTruncated = readonly [
14
19
  typeof RASPUTIN_WIRE_TAG,
15
20
  'truncated',
16
21
  {
22
+ /** Why capture stopped, such as `max_depth` or `max_string_length`. */
17
23
  reason: string;
24
+ /** Length or size before truncation, when that is known. */
18
25
  originalLength?: number;
26
+ /** How many items or keys were kept. */
19
27
  capturedCount?: number;
28
+ /** How many items or keys were skipped. */
20
29
  omittedCount?: number;
30
+ /** The partial value, when one was kept. */
21
31
  value?: unknown;
22
32
  }
23
33
  ];
34
+ /** Marker Rasputin stores instead of a real value when capture is incomplete. */
24
35
  export type RasputinTaggedValue = RasputinTaggedUnknown | RasputinTaggedUnavailable | RasputinTaggedOmitted | RasputinTaggedRedacted | RasputinTaggedTruncated;
25
36
  export declare const rasputinUnknown: () => RasputinTaggedUnknown;
26
37
  export declare const rasputinUnavailable: (reason: string) => RasputinTaggedUnavailable;
@@ -1 +1 @@
1
- {"version":3,"file":"rasputin-wire-tag.d.ts","sourceRoot":"","sources":["../../src/derivation/rasputin-wire-tag.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAG,YAAyB,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,iBAAiB,EAAE,SAAS,CAAC,CAAC;AACnF,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,OAAO,iBAAiB,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;AACnG,MAAM,MA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AAC,GAAG,SACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const defaultSensitivePropertyNames: () => ReadonlySet<string>;
2
+ export declare const propertyNameIsSensitive: (key: string) => boolean;
3
+ //# sourceMappingURL=sensitive-property-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sensitive-property-name.d.ts","sourceRoot":"","sources":["../../src/derivation/sensitive-property-name.ts"],"names":[],"mappings":"AA0KA,eAAO,MAAM,6BAA6B,QAAO,WAAW,CAAC,MAAM,CAC/B,CAAC;AAErC,eAAO,MAAM,uBAAuB,GAAI,KAAK,MAAM,KAAG,OAsBrD,CAAC"}
@@ -1,3 +1,2 @@
1
- /** Portable SHA-256 so capture-time and investigation-time hashes match without Node crypto. */
2
1
  export declare const sha256Hex: (input: string) => string;
3
2
  //# sourceMappingURL=sha256.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/derivation/sha256.ts"],"names":[],"mappings":"AAmBA,gGAAgG;AAChG,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,KAAG,MAiEzC,CAAC"}
1
+ {"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/derivation/sha256.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,KAAG,MACO,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,18 +5,17 @@ export { isClientEnabled } from './create-client/is-client-enabled';
5
5
  export { resolveEndpointUrls } from './create-client/resolve-endpoint-urls';
6
6
  export { createIngestEvent } from './create-ingest-event/create-ingest-event';
7
7
  export type { RequestContext } from './create-ingest-event/create-ingest-event-types';
8
- export type { RuntimeCaptureCoverage, RuntimeCapturedControlFact, RuntimeCapturedRoot, RuntimeCaptureProfile, RuntimeDerivationCapture, RuntimeDerivationMetrics, RuntimeExecutionEvent, RuntimeExecutionKind, RuntimeExecutionMetadata, RuntimeExecutionRecorderMetrics, RuntimeExecutionRequest, RuntimeExecutionState, RuntimeFunctionCallsSuppressedEvent, RuntimeFunctionEnterEvent, RuntimeFunctionExitEvent, RuntimeFunctionThrowEvent, RuntimeStateSizeTruncation, RuntimeThrowLocation, } from './create-ingest-event/runtime-execution-state-types';
9
- export { capturedValueCompleteness, isRedactedCapturedValue, isSerializerMarker, } from './derivation/captured-value-markers';
10
- export { type DerivationValidation, type EvaluateDerivationResult, type EvaluatedFunctionState, type EvaluatedRuntimeValue, evaluatedValueAtLine, evaluateRuntimeDerivation, } from './derivation/evaluate-derivation-plan';
8
+ export type { RuntimeCaptureCoverage, RuntimeCaptureProfile, RuntimeExecutionEvent, RuntimeExecutionKind, RuntimeExecutionMetadata, RuntimeExecutionRecorderMetrics, RuntimeExecutionRequest, RuntimeExecutionState, RuntimeFunctionCallsSuppressedEvent, RuntimeFunctionEnterEvent, RuntimeFunctionExitEvent, RuntimeFunctionThrowEvent, RuntimeStateSizeTruncation, RuntimeThrowLocation, } from './create-ingest-event/runtime-execution-state-types';
11
9
  export { hashInstrumentationManifest } from './derivation/hash-instrumentation-manifest';
12
10
  export { isRasputinTaggedValue, RASPUTIN_WIRE_TAG, type RasputinTaggedValue, rasputinOmitted, rasputinRedacted, rasputinTagKind, rasputinTruncated, rasputinUnavailable, rasputinUnknown, } from './derivation/rasputin-wire-tag';
11
+ export { defaultSensitivePropertyNames, propertyNameIsSensitive, } from './derivation/sensitive-property-name';
13
12
  export { detectRelease } from './detect-release/detect-release';
14
- export type { CaptureBoundary, CaptureReason, ControlFactDefinition, DerivationBinaryOp, DerivationExpression, DerivationFallbackReason, DerivationPlan, DerivationUnaryOp, DerivationVariable, PrimitiveConst, } from './instrumentation-manifest/derivation-plan-types';
15
- export type { InstrumentationArgIdentifier, InstrumentationManifestCallSite, InstrumentationManifestContent, InstrumentationManifestDestructure, InstrumentationManifestFunction, InstrumentationParamBinding, SourceVerification, SourceVerificationIssue, } from './instrumentation-manifest/instrumentation-manifest-types';
13
+ export type { InstrumentationArgIdentifier, InstrumentationManifestCallSite, InstrumentationManifestContent, InstrumentationManifestDestructure, InstrumentationManifestFunction, InstrumentationParamBinding, InstrumentationSkipReason, SourceVerification, SourceVerificationIssue, } from './instrumentation-manifest/instrumentation-manifest-types';
16
14
  export { INSTRUMENTATION_MANIFEST_SCHEMA_VERSION } from './instrumentation-manifest/instrumentation-manifest-types';
17
15
  export { uploadInstrumentationManifest } from './instrumentation-manifest/upload-instrumentation-manifest';
18
16
  export type { Frame } from './normalize-frames/normalize-frames';
19
17
  export { normalizeFrames } from './normalize-frames/normalize-frames';
18
+ export { foldSyntheticFrames, isRasputinHandleRunFrame, isRasputinShellFrame, } from './parse-stack/fold-synthetic-frames';
20
19
  export { parseStack } from './parse-stack/parse-stack';
21
20
  export type { RawFrame } from './parse-stack/raw-frame';
22
21
  export { repoRootFrom } from './repo-root/repo-root-from';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,YAAY,EACX,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,GACf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,YAAY,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACtF,YAAY,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,EAC/B,uBAAuB,EACvB,qBAAqB,EACrB,mCAAmC,EACnC,yBAAyB,EACzB,wBAAwB,EACxB,yBAAy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