observa-sdk 0.0.12 → 0.0.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.
package/dist/index.cjs CHANGED
@@ -574,10 +574,15 @@ async function traceStreamText(originalFn, args, options) {
574
574
  ),
575
575
  "vercel-ai"
576
576
  );
577
- return {
578
- ...result,
579
- textStream: wrappedStream
580
- };
577
+ const wrappedResult = Object.create(Object.getPrototypeOf(result));
578
+ Object.assign(wrappedResult, result);
579
+ Object.defineProperty(wrappedResult, "textStream", {
580
+ value: wrappedStream,
581
+ writable: true,
582
+ enumerable: true,
583
+ configurable: true
584
+ });
585
+ return wrappedResult;
581
586
  }
582
587
  recordTrace3(
583
588
  {
package/dist/index.js CHANGED
@@ -554,10 +554,15 @@ async function traceStreamText(originalFn, args, options) {
554
554
  ),
555
555
  "vercel-ai"
556
556
  );
557
- return {
558
- ...result,
559
- textStream: wrappedStream
560
- };
557
+ const wrappedResult = Object.create(Object.getPrototypeOf(result));
558
+ Object.assign(wrappedResult, result);
559
+ Object.defineProperty(wrappedResult, "textStream", {
560
+ value: wrappedStream,
561
+ writable: true,
562
+ enumerable: true,
563
+ configurable: true
564
+ });
565
+ return wrappedResult;
561
566
  }
562
567
  recordTrace3(
563
568
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "observa-sdk",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Enterprise-grade observability SDK for AI applications. Track and monitor LLM interactions with zero friction.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",