@rasputin-ai/sveltekit 0.14.0 → 0.15.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.
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/runtime/node.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAkB7D,OAAO,KAAK,EACX,aAAa,EAKb,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AA6N3D;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,wBAAwB,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/runtime/node.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAkB7D,OAAO,KAAK,EACX,aAAa,EAKb,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AA4N3D;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,wBAAwB,GAAG,aAAa,CAAC"}
@@ -20,7 +20,7 @@ import {
20
20
 
21
21
  // src/sdk-meta.ts
22
22
  var SDK_NAME = "@rasputin-ai/sveltekit";
23
- var SDK_VERSION = "0.14.0";
23
+ var SDK_VERSION = "0.15.1";
24
24
 
25
25
  // src/runtime/node.ts
26
26
  var inertScope = () => ({
@@ -112,7 +112,6 @@ var createBoundRuntime = (options, hooks, capture) => {
112
112
  environment: options.environment
113
113
  });
114
114
  const metrics = activation.enabled ? bindFunctionMetrics({
115
- options: options.functionMetrics,
116
115
  clientEnabled: true,
117
116
  environment: activation.environment,
118
117
  release: activation.release,
@@ -122,7 +121,6 @@ var createBoundRuntime = (options, hooks, capture) => {
122
121
  sampledMeasurementFormat: durationSampling
123
122
  }) : void 0;
124
123
  const executionMetrics = activation.enabled ? bindExecutionMetrics({
125
- options: options.executionMetrics,
126
124
  clientEnabled: true,
127
125
  environment: activation.environment,
128
126
  release: activation.release,
@@ -131,7 +129,8 @@ var createBoundRuntime = (options, hooks, capture) => {
131
129
  fetch: hooks.fetch,
132
130
  sampledMeasurementFormat: durationSampling
133
131
  }) : void 0;
134
- const durationSampler = durationSampling && (recorderEnabled || Boolean(metrics) || Boolean(executionMetrics)) ? createDynamicDurationSampleBuckets({ nowMs: () => Date.now() }) : void 0;
132
+ const observeExecutions = recorderEnabled || Boolean(metrics) || Boolean(executionMetrics);
133
+ const durationSampler = durationSampling && observeExecutions ? createDynamicDurationSampleBuckets({ nowMs: () => Date.now() }) : void 0;
135
134
  const { runtime, policy } = bindAdaptiveRecorder({
136
135
  executionRecorder: options.executionRecorder,
137
136
  recorderEnabled,
@@ -166,7 +165,7 @@ var createBoundRuntime = (options, hooks, capture) => {
166
165
  const bound = bindClient(
167
166
  client,
168
167
  runtime,
169
- recorderEnabled || Boolean(metrics),
168
+ observeExecutions,
170
169
  {
171
170
  projectApiKey: options.projectApiKey,
172
171
  release: options.release,
@@ -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/sveltekit";
3
- export declare const SDK_VERSION = "0.14.0";
3
+ export declare const SDK_VERSION = "0.15.1";
4
4
  //# sourceMappingURL=sdk-meta.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasputin-ai/sveltekit",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "Official Rasputin AI SDK for SvelteKit.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -42,9 +42,9 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@rasputin-ai/browser": "0.14.0",
46
- "@rasputin-ai/core": "0.14.0",
47
- "@rasputin-ai/node": "0.14.0",
45
+ "@rasputin-ai/browser": "0.15.1",
46
+ "@rasputin-ai/core": "0.15.1",
47
+ "@rasputin-ai/node": "0.15.1",
48
48
  "typescript": "5"
49
49
  },
50
50
  "peerDependencies": {