@brizz/sdk 0.1.57 → 0.1.58

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 CHANGED
@@ -412,6 +412,17 @@ await startSession('session-123', async () => {
412
412
  getActiveSession(); // undefined
413
413
  ```
414
414
 
415
+ ### Lightweight Session Helpers
416
+
417
+ `@brizz/sdk/session` exports the session and context helpers without loading the rest of the SDK,
418
+ which keeps module-heavy setups such as Jest test suites fast and small:
419
+
420
+ ```typescript
421
+ import { callWithSessionId, getActiveSession } from '@brizz/sdk/session';
422
+ ```
423
+
424
+ Keep `Brizz.initialize()` on the main `@brizz/sdk` entry at startup. Nothing is sent until it runs.
425
+
415
426
  ### Function Wrapper Pattern
416
427
 
417
428
  For simpler cases where you just need to tag traces with a session ID:
@@ -9,7 +9,7 @@ var _chunkRV7JIIDGcjs = require('./chunk-RV7JIIDG.cjs');
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.57";
12
+ return "0.1.58";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.57";
12
+ return "0.1.58";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts