@brizz/sdk 0.1.60 → 0.1.61

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/CHANGELOG.md ADDED
@@ -0,0 +1,424 @@
1
+ # @brizz/sdk
2
+
3
+ ## 0.1.61
4
+
5
+ ### Patch Changes
6
+
7
+ - More precise PII masking: decimal numbers are left intact.
8
+
9
+ ## 0.1.60
10
+
11
+ ### Patch Changes
12
+
13
+ - Built on OpenTelemetry JS 2 (`@opentelemetry/api` 1.9) again, with every fix and feature up to
14
+ 0.1.59. Runs on Node.js 20.6 or later.
15
+ - Using OpenTelemetry JS 3 or `@opentelemetry/api` 1.10 in your app? Use `@brizz/sdk@^0.2.0` instead
16
+ of `^0.1`.
17
+
18
+ ## 0.1.59
19
+
20
+ ### Patch Changes
21
+
22
+ - `decisionCall()` and `recordDecisionCall()` trace calls to classification models that your own
23
+ code makes. Requires a Brizz backend that reads decision calls; calls sent to an older one are not
24
+ shown with their answers, and are priced only when you set their cost.
25
+
26
+ ## 0.1.58
27
+
28
+ ### Patch Changes
29
+
30
+ - Add `@brizz/sdk/session`, a lightweight entry point for the session and context helpers.
31
+
32
+ ## 0.1.57
33
+
34
+ ### Patch Changes
35
+
36
+ - More precise PII masking: long numbers that aren't card numbers are left intact.
37
+
38
+ ## 0.1.56
39
+
40
+ ### Patch Changes
41
+
42
+ - Improved trace accuracy for concurrent LangChain runs.
43
+
44
+ ## 0.1.55
45
+
46
+ ### Patch Changes
47
+
48
+ - Built on OpenTelemetry JS 3.x.
49
+ - Requires Node.js 22.15 or later.
50
+
51
+ ## 0.1.54
52
+
53
+ ### Patch Changes
54
+
55
+ - `setGlobalTracerProvider: false` keeps Brizz spans on their own provider, alongside your own
56
+ OpenTelemetry setup.
57
+ - `Brizz.flush()` sends queued telemetry without shutting down.
58
+ - `getTracerProvider()` for instrumentations you construct yourself.
59
+
60
+ ## 0.1.53
61
+
62
+ ### Patch Changes
63
+
64
+ - Calls to TypeSafe models such as Jev are traced: each call records the state, the questions and
65
+ the answers.
66
+ - Masking leaves numbers and booleans unchanged unless a rule actually masks part of them.
67
+
68
+ ## 0.1.52
69
+
70
+ ### Patch Changes
71
+
72
+ - LangChain tool calls that fail or are cancelled are now linked to the model request that made them
73
+ (requires `@langchain/core` 1.1.28 or later).
74
+
75
+ ## 0.1.51
76
+
77
+ ### Patch Changes
78
+
79
+ - Default masking leaves identifiers, custom properties and numeric values unchanged.
80
+
81
+ ## 0.1.50
82
+
83
+ ### Patch Changes
84
+
85
+ - `recordMetric` accepts `scope: 'trace'`, so a metric reported once per turn keeps one value per
86
+ turn; the session reads as the average of its turns.
87
+
88
+ ## 0.1.49
89
+
90
+ ### Patch Changes
91
+
92
+ - LangGraph checkpoint tracking now works in ESM apps without passing
93
+ `instrumentModules: { langgraph }`.
94
+
95
+ ## 0.1.48
96
+
97
+ ### Patch Changes
98
+
99
+ - `recordMetric` accepts `serviceName` and `traceId`, so one evaluation job can score conversations
100
+ across several services. A metric with only a `traceId` is attached to that trace's session.
101
+ - A custom log exporter shared by several services is now shut down once, after every service has
102
+ flushed, instead of dropping the records still buffered for the other services.
103
+
104
+ ## 0.1.47
105
+
106
+ ### Patch Changes
107
+
108
+ - Improved session attribution for LangChain runs in CommonJS applications.
109
+
110
+ ## 0.1.46
111
+
112
+ ### Patch Changes
113
+
114
+ - Improve LangGraph tracing for conversations that resume from an earlier point.
115
+ - Stop reporting a LangGraph graph that pauses for input as a failed run.
116
+
117
+ ## 0.1.45
118
+
119
+ ### Patch Changes
120
+
121
+ - Improved session attribution for concurrent LangChain runs: the session and account set on the
122
+ Brizz context now travel with each LangChain run, so a span started inside another request's async
123
+ context is still attributed to its own session.
124
+
125
+ ## 0.1.44
126
+
127
+ ### Patch Changes
128
+
129
+ - Add session tracking for stateless MCP servers. Tool calls from one client now group into a single
130
+ session, with an optional note of what the caller was trying to do. Off by default; enable with
131
+ `mcpSessionTracking`.
132
+
133
+ - Added `startAgent(...)`, `withAgent(...)` and `setAgent(...)` to mark work that runs as a
134
+ subagent, so its conversation shows as its own lane instead of mixing into the main transcript.
135
+ Works when the subagent runs in a background job too.
136
+
137
+ ## 0.1.42
138
+
139
+ ### Patch Changes
140
+
141
+ - Added `callWithServiceName(...)` to report part of a process under a different service name.
142
+
143
+ ## 0.1.41
144
+
145
+ ### Patch Changes
146
+
147
+ - MCP servers now open a session for tool calls only, so listing tools no longer adds empty sessions
148
+ alongside them. Tool schemas are still captured either way.
149
+
150
+ ## 0.1.40
151
+
152
+ ### Patch Changes
153
+
154
+ - Added `setSessionId(...)` to set the session on the current turn, for when the enclosing span
155
+ already exists — such as inside an MCP tool handler.
156
+
157
+ - MCP servers that don't use the transport's session management now get a session automatically, so
158
+ their tool calls appear in session views instead of being left out.
159
+
160
+ ## 0.1.39
161
+
162
+ ### Patch Changes
163
+
164
+ - Modules passed to `instrumentModules` are now instrumented when `disableNodeSdk` is set, so manual
165
+ instrumentation works alongside your own OpenTelemetry setup.
166
+
167
+ ## 0.1.38
168
+
169
+ ### Patch Changes
170
+
171
+ - Add `recordMetric` to report your own scores and measurements on a conversation.
172
+
173
+ - Simplified Node.js setup — initialize with `Brizz.initialize()`.
174
+
175
+ - Removed the unused `vercelAI` and `google_aiplatform` options from `instrumentModules`.
176
+
177
+ ## 0.1.37
178
+
179
+ ### Patch Changes
180
+
181
+ - Improve OpenAI streaming support, including tool calls and token usage on streamed responses.
182
+
183
+ ## 0.1.36
184
+
185
+ ### Patch Changes
186
+
187
+ - Add a `tools` option to `callWithMute` / `withMute` to hide or keep tool calls independently of
188
+ the assistant reply. Requires a Brizz backend that understands `brizz.mute.tools`; against an
189
+ older one, the tools-only form (`{ input: false, output: false, tools: true }`) mutes nothing.
190
+
191
+ ## 0.1.35
192
+
193
+ ### Patch Changes
194
+
195
+ - Add Gemini support: instrument the `@google/genai` client with `instrumentGoogleGenAI` from
196
+ `@brizz/sdk/google-genai`.
197
+
198
+ ## 0.1.33
199
+
200
+ ### Patch Changes
201
+
202
+ - Add typed setters to identify users, organizations, and messages.
203
+ - Add `recordFeedback` to capture end-user reactions on a message or conversation.
204
+
205
+ ## 0.1.32
206
+
207
+ ### Patch Changes
208
+
209
+ - Add Vercel eve support: wire an eve agent to Brizz in one line with `createEveOtelConfig` from
210
+ `@brizz/sdk/eve`.
211
+
212
+ ## 0.1.31
213
+
214
+ ### Patch Changes
215
+
216
+ - Support Vercel AI SDK v7.
217
+
218
+ ## 0.1.30
219
+
220
+ ### Patch Changes
221
+
222
+ - Reduce the SDK's install footprint.
223
+
224
+ ## 0.1.29
225
+
226
+ ### Patch Changes
227
+
228
+ - Add `dsn` / `BRIZZ_DSN` support for Brizz Server DSN configuration
229
+ - Add `callWithMute` / `withMute` to omit user and/or assistant content for calls made within a
230
+ block.
231
+ - Improve reliability of built-in PII masking patterns.
232
+
233
+ ## 0.1.28
234
+
235
+ ### Patch Changes
236
+
237
+ - Attach external links to a session.
238
+
239
+ ## 0.1.27
240
+
241
+ ### Patch Changes
242
+
243
+ - Recognize human-in-the-loop tool calls from the Vercel AI SDK so they appear distinctly in Brizz
244
+ conversations.
245
+
246
+ ## 0.1.26
247
+
248
+ ### Patch Changes
249
+
250
+ - Internal refinement to MCP tool-registration instrumentation.
251
+
252
+ ## 0.1.25
253
+
254
+ ### Patch Changes
255
+
256
+ - PII masking improvements.
257
+
258
+ ## 0.1.24
259
+
260
+ ### Patch Changes
261
+
262
+ - Capture MCP tool JSON schemas at registration
263
+
264
+ ## 0.1.22
265
+
266
+ ### Patch Changes
267
+
268
+ - Add MCP (Model Context Protocol) instrumentation. Pass your transport modules and
269
+ `@modelcontextprotocol/sdk/shared/protocol.js` via `instrumentModules.mcp` in `Brizz.initialize()`
270
+ to capture MCP client and server traces.
271
+
272
+ ## 0.1.21
273
+
274
+ ### Patch Changes
275
+
276
+ - Simplify LangChain setup. Install command is now just `@brizz/sdk @langchain/core`.
277
+
278
+ ## 0.1.20
279
+
280
+ ### Patch Changes
281
+
282
+ - Fix dropped LangChain spans. `@langchain/core` and
283
+ `@arizeai/openinference-instrumentation-langchain` are now optional peer deps — install them
284
+ alongside `@brizz/sdk` if you use LangChain.
285
+
286
+ ## 0.1.19
287
+
288
+ ### Patch Changes
289
+
290
+ - Extend `Session.setInput(text, context?)` / `Session.setOutput(text, context?)` to accept an
291
+ optional per-turn context bag. Each call now appends both the text and the bag to parallel
292
+ index-aligned span attributes `brizz.session.input.context` / `brizz.session.output.context`; the
293
+ dashboard renders the bag under a collapsible Context panel on that turn's message.
294
+
295
+ ## 0.1.18
296
+
297
+ ### Patch Changes
298
+
299
+ - Support `openai@6` (used by `@langchain/openai@1+`).
300
+ - Add `beforeSendSpan` filter, `resourceAttributes`, and `appVersion` init options.
301
+
302
+ ## 0.1.17
303
+
304
+ ### Patch Changes
305
+
306
+ - Add `disableSpanExporter` option (also via `BRIZZ_DISABLE_SPAN_EXPORTER=true` env var) to skip
307
+ span exporter/processor setup. `NodeSDK` still starts and metrics/logs keep working — only spans
308
+ are suppressed. Useful for dev/test environments where you want to keep `Brizz.initialize()` in
309
+ code without sending span data.
310
+
311
+ ## 0.1.16
312
+
313
+ ### Patch Changes
314
+
315
+ - Add `startSessionTitle()` to exclude title generation LLM calls from conversation view
316
+ - Add `mode: 'title'` option to `startSession()`
317
+ - Add `Session.setTitle()`
318
+
319
+ ## 0.1.15
320
+
321
+ ### Patch Changes
322
+
323
+ - Add `getActiveSession()` to retrieve the current session without passing it explicitly
324
+
325
+ ## 0.1.14
326
+
327
+ ### Patch Changes
328
+
329
+ - Fix crash when `@langchain/core` is not installed by lazily loading LangChain instrumentation via
330
+ dynamic `import()`
331
+ - Move `@arizeai/openinference-instrumentation-langchain` to optionalDependencies
332
+
333
+ ## 0.1.13
334
+
335
+ ### Patch Changes
336
+
337
+ - Fix LangChain instrumentation for CJS based projects
338
+
339
+ ## 0.1.12
340
+
341
+ ### Patch Changes
342
+
343
+ - Handle LangCain instrumentation along with Langsmith
344
+
345
+ ## 0.1.11
346
+
347
+ ### Patch Changes
348
+
349
+ - Handle running along Sentry
350
+
351
+ ## 0.1.10
352
+
353
+ ### Patch Changes
354
+
355
+ - Added optional `extraProperties` parameter to `withSessionId` and `startSession` for propagating
356
+ custom properties to all spans within a session
357
+
358
+ ## 0.1.9
359
+
360
+ ### Patch Changes
361
+
362
+ - Added `startSession` API for manual input/output tracking with `setInput()` and `setOutput()`
363
+ methods
364
+
365
+ ## 0.1.8
366
+
367
+ ### Patch Changes
368
+
369
+ - Support Langchain
370
+
371
+ ## 0.1.7
372
+
373
+ ### Patch Changes
374
+
375
+ - Add SDK version tags to ResourceAttributes
376
+
377
+ ## 0.1.6
378
+
379
+ ### Patch Changes
380
+
381
+ - Exported withProperties to add custom properties to traces
382
+
383
+ ## 0.1.5
384
+
385
+ ### Patch Changes
386
+
387
+ - Added optional `environment` parameter to SDK initialization for deployment environment tagging
388
+ - Removed Vercel AI transformation from the SDK
389
+
390
+ ## 0.1.4
391
+
392
+ ### Patch Changes
393
+
394
+ - Added withSessionId wrapper function
395
+
396
+ ## 0.1.3
397
+
398
+ ### Patch Changes
399
+
400
+ - support for vercel ai sdk builtin telemetries
401
+
402
+ ## 0.1.2
403
+
404
+ ### Patch Changes
405
+
406
+ - minor esm fixes
407
+
408
+ ## 0.1.1
409
+
410
+ ### Patch Changes
411
+
412
+ - miner bug fixes
413
+
414
+ ## 0.1.0
415
+
416
+ ### Patch Changes
417
+
418
+ - Graduate version
419
+
420
+ ## 0.1.0-alpha.6
421
+
422
+ ### Patch Changes
423
+
424
+ - Initial release
package/LICENSE CHANGED
@@ -1,27 +1,201 @@
1
- BrizzAI, Inc. Proprietary Software License
2
- Copyright (c) 2025 BrizzAI, Inc. All rights reserved.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
3
4
 
4
- 1. Grant of License
5
- BrizzAI, Inc. ("Licensor") grants you ("Licensee") a limited, non-exclusive, non-transferable, and revocable license to use this software solely for internal evaluation and development purposes, subject to the restrictions below.
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
6
 
7
- 2. Restrictions
8
- - You may not distribute, sublicense, sell, lease, or modify this software without express written permission from BrizzAI, Inc.
9
- - You may not reverse-engineer, decompile, or disassemble any part of the software.
10
- - You may not use this software for any commercial or production purposes without a separate commercial license agreement.
7
+ 1. Definitions.
11
8
 
12
- 3. Ownership & Intellectual Property
13
- - This software, including all modifications and derivative works, remains the exclusive property of BrizzAI, Inc.
14
- - No rights or ownership are transferred to the Licensee.
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
15
11
 
16
- 4. Termination
17
- - This license is automatically terminated if you violate any of these terms.
18
- - Upon termination, you must immediately cease using and delete all copies of the software.
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
19
14
 
20
- 5. Disclaimer & Liability
21
- - This software is provided "as is," without any warranties, express or implied.
22
- - BrizzAI, Inc. is not liable for any damages arising from the use or inability to use the software.
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
22
 
24
- 6. Governing Law
25
- - This license is governed by and construed in accordance with the laws of the State of Delaware, without regard to its conflict of law principles.
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
26
25
 
27
- For inquiries about commercial use or licensing, contact: legal@brizz.ai
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 BrizzAI, Inc.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1004,6 +1004,7 @@ See our [Contributing Guide](../../CONTRIBUTING.md) for development setup and gu
1004
1004
 
1005
1005
  - [Website](https://www.brizz.ai)
1006
1006
  - [Documentation](https://docs.brizz.ai)
1007
+ - [Changelog](https://github.com/brizzai/brizz-js/blob/HEAD/typescript/CHANGELOG-0.1.md)
1007
1008
 
1008
1009
  ## License
1009
1010
 
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.60";
12
+ return "0.1.61";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
@@ -9,7 +9,7 @@ var _chunkNF52RMLWcjs = require('./chunk-NF52RMLW.cjs');
9
9
 
10
10
  // src/internal/version.ts
11
11
  function getSDKVersion() {
12
- return "0.1.60";
12
+ return "0.1.61";
13
13
  }
14
14
 
15
15
  // src/internal/instrumentation/mcp/session.ts
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ var _chunkY7UFS5CAcjs = require('./chunk-Y7UFS5CA.cjs');
43
43
 
44
44
 
45
45
 
46
- var _chunkWCUBTLL5cjs = require('./chunk-WCUBTLL5.cjs');
46
+ var _chunkW6AALBZNcjs = require('./chunk-W6AALBZN.cjs');
47
47
 
48
48
 
49
49
 
@@ -112,7 +112,7 @@ var _api = require('@opentelemetry/api');
112
112
 
113
113
  // src/internal/instrumentation/langgraph/attributes.ts
114
114
  var INSTRUMENTATION_NAME = "@brizz/sdk/langgraph";
115
- var INSTRUMENTATION_VERSION = _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, );
115
+ var INSTRUMENTATION_VERSION = _chunkW6AALBZNcjs.getSDKVersion.call(void 0, );
116
116
  var MODULE_NAME = "@langchain/langgraph";
117
117
  var SUPPORTED_VERSIONS = [">=0.2.0 <2"];
118
118
  function isSupportedVersion(version) {
@@ -483,7 +483,7 @@ var ATTR_ANSWERS = "typesafe.answers";
483
483
  var PATCHED_FLAG2 = /* @__PURE__ */ Symbol.for("brizz.typesafe.patched");
484
484
  var TypeSafeInstrumentation = class extends _instrumentation.InstrumentationBase {
485
485
  constructor(config = {}) {
486
- super(INSTRUMENTATION_NAME2, _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, ), config);
486
+ super(INSTRUMENTATION_NAME2, _chunkW6AALBZNcjs.getSDKVersion.call(void 0, ), config);
487
487
  this.setTracerProvider(_chunkDC2MFO65cjs.brizzTracerProvider);
488
488
  }
489
489
  init() {
@@ -710,7 +710,7 @@ function loadGenAIInstrumentations() {
710
710
  function loadMCPInstrumentation() {
711
711
  void (async () => {
712
712
  try {
713
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-2AURUXLD.cjs")));
713
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-EQPISLLI.cjs")));
714
714
  const mcp = new MCPInstrumentation({ exceptionLogger });
715
715
  _instrumentation.registerInstrumentations.call(void 0, { instrumentations: [mcp], tracerProvider: _chunkDC2MFO65cjs.brizzTracerProvider });
716
716
  _chunkWC573FCIcjs.logger.debug("Auto-loaded MCP instrumentation");
@@ -1321,7 +1321,7 @@ var InstrumentationRegistry = (_class = class _InstrumentationRegistry {construc
1321
1321
  const mcpModules = this.manualModules.mcp;
1322
1322
  void (async () => {
1323
1323
  try {
1324
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-2AURUXLD.cjs")));
1324
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-EQPISLLI.cjs")));
1325
1325
  const instrumentation = new MCPInstrumentation({ exceptionLogger: exceptionLogger2 });
1326
1326
  instrumentation.manuallyInstrument(mcpModules);
1327
1327
  _chunkWC573FCIcjs.logger.debug("Manual instrumentation enabled for MCP");
@@ -1636,10 +1636,13 @@ function compilePatternEntries(patternEntries) {
1636
1636
  var compiledPatternCache = /* @__PURE__ */ new WeakMap();
1637
1637
  function getCompiledPatternsForRule(rule) {
1638
1638
  const key = rule.patterns;
1639
- if (compiledPatternCache.has(key)) {
1640
- return _nullishCoalesce(compiledPatternCache.get(key), () => ( null));
1639
+ const cached = compiledPatternCache.get(key);
1640
+ if (cached) {
1641
+ return cached;
1641
1642
  }
1642
- const compiled = compilePatternEntries(convertPatternsToPatternEntries(rule.patterns));
1643
+ const entries = convertPatternsToPatternEntries(rule.patterns);
1644
+ const pattern = compilePatternEntries(entries);
1645
+ const compiled = { pattern, custom: pattern && compileCustomEntries(entries) };
1643
1646
  compiledPatternCache.set(key, compiled);
1644
1647
  return compiled;
1645
1648
  }
@@ -1689,11 +1692,40 @@ function executeRegexWithTimeout(pattern, value, timeoutMs = 100) {
1689
1692
  }
1690
1693
  return matches;
1691
1694
  }
1692
- function maskStringByPattern(value, pattern, mode = "full") {
1695
+ var BUILTIN_ENTRIES = new Set(DEFAULT_PII_PATTERNS);
1696
+ function compileCustomEntries(patternEntries) {
1697
+ const groups = patternEntries.filter((entry) => !BUILTIN_ENTRIES.has(entry)).flatMap((entry) => {
1698
+ try {
1699
+ return [getGroupedPattern(entry)];
1700
+ } catch (e5) {
1701
+ return [];
1702
+ }
1703
+ });
1704
+ return groups.length > 0 ? new RegExp(groups.join("|")) : null;
1705
+ }
1706
+ function isDecimalPart(value, match) {
1707
+ const start = match.index;
1708
+ const end = start + match[0].length;
1709
+ if (!/^[0-9]+$/.test(match[0])) {
1710
+ return false;
1711
+ }
1712
+ const afterPoint = value.charAt(start - 1) === "." && /^[0-9]$/.test(value.charAt(start - 2));
1713
+ const beforePoint = value.charAt(end) === "." && /^[0-9]$/.test(value.charAt(end + 1));
1714
+ return afterPoint || beforePoint;
1715
+ }
1716
+ function overlapsAny(match, others) {
1717
+ const end = match.index + match[0].length;
1718
+ return others.some((other) => other.index < end && match.index < other.index + other[0].length);
1719
+ }
1720
+ function maskStringByPattern(value, pattern, mode = "full", custom = pattern) {
1693
1721
  const matches = [];
1694
1722
  try {
1695
1723
  const regexMatches = executeRegexWithTimeout(pattern, value);
1724
+ const customMatches = custom && regexMatches.some((match) => isDecimalPart(value, match)) ? executeRegexWithTimeout(custom, value) : [];
1696
1725
  for (const match of regexMatches) {
1726
+ if (isDecimalPart(value, match) && !overlapsAny(match, customMatches)) {
1727
+ continue;
1728
+ }
1697
1729
  matches.push({
1698
1730
  start: match.index,
1699
1731
  end: match.index + match[0].length,
@@ -1737,11 +1769,11 @@ function maskStringByPatternBasedRule(value, rule) {
1737
1769
  if (!patternEntries || patternEntries.length === 0) {
1738
1770
  return mode === "partial" && value ? value.at(0) + "*****" : "*****";
1739
1771
  }
1740
- const compiledPatterns = getCompiledPatternsForRule(rule);
1741
- if (!compiledPatterns) {
1772
+ const { pattern, custom } = getCompiledPatternsForRule(rule);
1773
+ if (!pattern) {
1742
1774
  return value;
1743
1775
  }
1744
- return maskStringByPattern(value, compiledPatterns, mode);
1776
+ return maskStringByPattern(value, pattern, mode, custom);
1745
1777
  }
1746
1778
  function maskValue(value, rule) {
1747
1779
  if (typeof value === "string") {
@@ -1928,7 +1960,7 @@ var LoggingModule = (_class2 = class _LoggingModule {constructor() { _class2.pro
1928
1960
  const resourceAttributes = {
1929
1961
  ...config.resourceAttributes,
1930
1962
  "service.name": serviceName,
1931
- [BRIZZ_SDK_VERSION]: _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, ),
1963
+ [BRIZZ_SDK_VERSION]: _chunkW6AALBZNcjs.getSDKVersion.call(void 0, ),
1932
1964
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1933
1965
  };
1934
1966
  if (config.environment) {
@@ -2179,7 +2211,7 @@ var BrizzSpanExporter = (_class4 = class {
2179
2211
  const resourceAttrs = {
2180
2212
  ...config.resourceAttributes,
2181
2213
  "service.name": config.appName,
2182
- [BRIZZ_SDK_VERSION]: _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, ),
2214
+ [BRIZZ_SDK_VERSION]: _chunkW6AALBZNcjs.getSDKVersion.call(void 0, ),
2183
2215
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2184
2216
  };
2185
2217
  if (config.environment) {
@@ -2543,7 +2575,7 @@ function getSpanProcessor() {
2543
2575
  // src/internal/trace/decision-call.ts
2544
2576
 
2545
2577
 
2546
- var tracer = _chunkDC2MFO65cjs.brizzTracerProvider.getTracer("@brizz/sdk/decision-call", _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, ));
2578
+ var tracer = _chunkDC2MFO65cjs.brizzTracerProvider.getTracer("@brizz/sdk/decision-call", _chunkW6AALBZNcjs.getSDKVersion.call(void 0, ));
2547
2579
  function decisionCall(options, callback) {
2548
2580
  const span = startDecisionSpan(options);
2549
2581
  if (!span) {
@@ -2723,7 +2755,7 @@ var _Brizz = (_class6 = class __Brizz {constructor() { _class6.prototype.__init1
2723
2755
  */
2724
2756
  setupInstrumentation(options) {
2725
2757
  const registry = InstrumentationRegistry.getInstance();
2726
- _chunkWCUBTLL5cjs.configure.call(void 0, resolveMcpSessionTracking(options.mcpSessionTracking));
2758
+ _chunkW6AALBZNcjs.configure.call(void 0, resolveMcpSessionTracking(options.mcpSessionTracking));
2727
2759
  patchInstalledCallbackManager();
2728
2760
  patchInstalledLangGraph();
2729
2761
  patchInstalledTypeSafe();
@@ -2758,7 +2790,7 @@ var _Brizz = (_class6 = class __Brizz {constructor() { _class6.prototype.__init1
2758
2790
  const resourceAttributes = {
2759
2791
  ...resolvedConfig.resourceAttributes,
2760
2792
  "service.name": resolvedConfig.appName,
2761
- [BRIZZ_SDK_VERSION]: _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, ),
2793
+ [BRIZZ_SDK_VERSION]: _chunkW6AALBZNcjs.getSDKVersion.call(void 0, ),
2762
2794
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2763
2795
  };
2764
2796
  if (resolvedConfig.environment) {
@@ -2868,19 +2900,19 @@ var _Brizz = (_class6 = class __Brizz {constructor() { _class6.prototype.__init1
2868
2900
  try {
2869
2901
  const tracingModule = TracingModule.getInstance();
2870
2902
  await tracingModule.shutdown();
2871
- } catch (e5) {
2903
+ } catch (e6) {
2872
2904
  _chunkWC573FCIcjs.logger.debug("Tracing module already shut down or not initialized");
2873
2905
  }
2874
2906
  try {
2875
2907
  const metricsModule = MetricsModule.getInstance();
2876
2908
  metricsModule.shutdown();
2877
- } catch (e6) {
2909
+ } catch (e7) {
2878
2910
  _chunkWC573FCIcjs.logger.debug("Metrics module already shut down or not initialized");
2879
2911
  }
2880
2912
  try {
2881
2913
  const loggingModule = LoggingModule.getInstance();
2882
2914
  await loggingModule.shutdown();
2883
- } catch (e7) {
2915
+ } catch (e8) {
2884
2916
  _chunkWC573FCIcjs.logger.debug("Logging module already shut down or not initialized");
2885
2917
  }
2886
2918
  _chunkWC573FCIcjs.logger.info("All telemetry modules shut down successfully");
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import {
43
43
  import {
44
44
  configure,
45
45
  getSDKVersion
46
- } from "./chunk-MW6L2BZN.js";
46
+ } from "./chunk-QUIJOAFK.js";
47
47
  import {
48
48
  bindToBrizz,
49
49
  brizzTracerProvider,
@@ -710,7 +710,7 @@ function loadGenAIInstrumentations() {
710
710
  function loadMCPInstrumentation() {
711
711
  void (async () => {
712
712
  try {
713
- const { MCPInstrumentation } = await import("./mcp-IB3UO2FY.js");
713
+ const { MCPInstrumentation } = await import("./mcp-E32E454M.js");
714
714
  const mcp = new MCPInstrumentation({ exceptionLogger });
715
715
  registerInstrumentations({ instrumentations: [mcp], tracerProvider: brizzTracerProvider });
716
716
  logger.debug("Auto-loaded MCP instrumentation");
@@ -1321,7 +1321,7 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
1321
1321
  const mcpModules = this.manualModules.mcp;
1322
1322
  void (async () => {
1323
1323
  try {
1324
- const { MCPInstrumentation } = await import("./mcp-IB3UO2FY.js");
1324
+ const { MCPInstrumentation } = await import("./mcp-E32E454M.js");
1325
1325
  const instrumentation = new MCPInstrumentation({ exceptionLogger: exceptionLogger2 });
1326
1326
  instrumentation.manuallyInstrument(mcpModules);
1327
1327
  logger.debug("Manual instrumentation enabled for MCP");
@@ -1636,10 +1636,13 @@ function compilePatternEntries(patternEntries) {
1636
1636
  var compiledPatternCache = /* @__PURE__ */ new WeakMap();
1637
1637
  function getCompiledPatternsForRule(rule) {
1638
1638
  const key = rule.patterns;
1639
- if (compiledPatternCache.has(key)) {
1640
- return compiledPatternCache.get(key) ?? null;
1639
+ const cached = compiledPatternCache.get(key);
1640
+ if (cached) {
1641
+ return cached;
1641
1642
  }
1642
- const compiled = compilePatternEntries(convertPatternsToPatternEntries(rule.patterns));
1643
+ const entries = convertPatternsToPatternEntries(rule.patterns);
1644
+ const pattern = compilePatternEntries(entries);
1645
+ const compiled = { pattern, custom: pattern && compileCustomEntries(entries) };
1643
1646
  compiledPatternCache.set(key, compiled);
1644
1647
  return compiled;
1645
1648
  }
@@ -1689,11 +1692,40 @@ function executeRegexWithTimeout(pattern, value, timeoutMs = 100) {
1689
1692
  }
1690
1693
  return matches;
1691
1694
  }
1692
- function maskStringByPattern(value, pattern, mode = "full") {
1695
+ var BUILTIN_ENTRIES = new Set(DEFAULT_PII_PATTERNS);
1696
+ function compileCustomEntries(patternEntries) {
1697
+ const groups = patternEntries.filter((entry) => !BUILTIN_ENTRIES.has(entry)).flatMap((entry) => {
1698
+ try {
1699
+ return [getGroupedPattern(entry)];
1700
+ } catch {
1701
+ return [];
1702
+ }
1703
+ });
1704
+ return groups.length > 0 ? new RegExp(groups.join("|")) : null;
1705
+ }
1706
+ function isDecimalPart(value, match) {
1707
+ const start = match.index;
1708
+ const end = start + match[0].length;
1709
+ if (!/^[0-9]+$/.test(match[0])) {
1710
+ return false;
1711
+ }
1712
+ const afterPoint = value.charAt(start - 1) === "." && /^[0-9]$/.test(value.charAt(start - 2));
1713
+ const beforePoint = value.charAt(end) === "." && /^[0-9]$/.test(value.charAt(end + 1));
1714
+ return afterPoint || beforePoint;
1715
+ }
1716
+ function overlapsAny(match, others) {
1717
+ const end = match.index + match[0].length;
1718
+ return others.some((other) => other.index < end && match.index < other.index + other[0].length);
1719
+ }
1720
+ function maskStringByPattern(value, pattern, mode = "full", custom = pattern) {
1693
1721
  const matches = [];
1694
1722
  try {
1695
1723
  const regexMatches = executeRegexWithTimeout(pattern, value);
1724
+ const customMatches = custom && regexMatches.some((match) => isDecimalPart(value, match)) ? executeRegexWithTimeout(custom, value) : [];
1696
1725
  for (const match of regexMatches) {
1726
+ if (isDecimalPart(value, match) && !overlapsAny(match, customMatches)) {
1727
+ continue;
1728
+ }
1697
1729
  matches.push({
1698
1730
  start: match.index,
1699
1731
  end: match.index + match[0].length,
@@ -1737,11 +1769,11 @@ function maskStringByPatternBasedRule(value, rule) {
1737
1769
  if (!patternEntries || patternEntries.length === 0) {
1738
1770
  return mode === "partial" && value ? value.at(0) + "*****" : "*****";
1739
1771
  }
1740
- const compiledPatterns = getCompiledPatternsForRule(rule);
1741
- if (!compiledPatterns) {
1772
+ const { pattern, custom } = getCompiledPatternsForRule(rule);
1773
+ if (!pattern) {
1742
1774
  return value;
1743
1775
  }
1744
- return maskStringByPattern(value, compiledPatterns, mode);
1776
+ return maskStringByPattern(value, pattern, mode, custom);
1745
1777
  }
1746
1778
  function maskValue(value, rule) {
1747
1779
  if (typeof value === "string") {
@@ -8,7 +8,7 @@ import {
8
8
  resolveTransportSessionId,
9
9
  sessionToolResult,
10
10
  stampAndPropagateSession
11
- } from "./chunk-MW6L2BZN.js";
11
+ } from "./chunk-QUIJOAFK.js";
12
12
  import {
13
13
  brizzTracerProvider,
14
14
  extractTraceContext,
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkWCUBTLL5cjs = require('./chunk-WCUBTLL5.cjs');
11
+ var _chunkW6AALBZNcjs = require('./chunk-W6AALBZN.cjs');
12
12
 
13
13
 
14
14
 
@@ -410,14 +410,14 @@ function wrapOnRequest(original, tracer) {
410
410
  return original.apply(this, args);
411
411
  }
412
412
  const method = request.method;
413
- if (method === METHOD_TOOLS_CALL && _chunkWCUBTLL5cjs.isSessionToolCall.call(void 0, request)) {
413
+ if (method === METHOD_TOOLS_CALL && _chunkW6AALBZNcjs.isSessionToolCall.call(void 0, request)) {
414
414
  return answerSessionToolCall(this, request, tracer, args, original);
415
415
  }
416
416
  const handler = _nullishCoalesce(handlers.get(method), () => ( this.fallbackRequestHandler));
417
417
  if (!handler) {
418
418
  return original.apply(this, args);
419
419
  }
420
- const tracking = _chunkWCUBTLL5cjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunkWCUBTLL5cjs.popTrackingArguments.call(void 0, request) : {};
420
+ const tracking = _chunkW6AALBZNcjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunkW6AALBZNcjs.popTrackingArguments.call(void 0, request) : {};
421
421
  const started = safeStartServerSpan(tracer, request, this, tracking);
422
422
  if (!started) {
423
423
  return original.apply(this, args);
@@ -427,9 +427,9 @@ function wrapOnRequest(original, tracer) {
427
427
  if (method === METHOD_TOOLS_LIST) {
428
428
  hooks.onResult = (result) => {
429
429
  let advertised = result;
430
- if (_chunkWCUBTLL5cjs.isEnabled.call(void 0, )) {
430
+ if (_chunkW6AALBZNcjs.isEnabled.call(void 0, )) {
431
431
  try {
432
- advertised = _chunkWCUBTLL5cjs.patchListToolsResult.call(void 0, result);
432
+ advertised = _chunkW6AALBZNcjs.patchListToolsResult.call(void 0, result);
433
433
  } catch (error) {
434
434
  _chunkWC573FCIcjs.logger.warn(
435
435
  `Brizz MCP: failed to patch tools/list schemas: ${String(error)}`
@@ -440,7 +440,7 @@ function wrapOnRequest(original, tracer) {
440
440
  try {
441
441
  emitSchemaSpansFromListResponse(
442
442
  advertised,
443
- _chunkWCUBTLL5cjs.resolveTransportSessionId.call(void 0, this),
443
+ _chunkW6AALBZNcjs.resolveTransportSessionId.call(void 0, this),
444
444
  tracer
445
445
  );
446
446
  } catch (error) {
@@ -453,7 +453,7 @@ function wrapOnRequest(original, tracer) {
453
453
  }
454
454
  if (method !== METHOD_TOOLS_CALL) {
455
455
  hooks.onError = () => {
456
- _chunkWCUBTLL5cjs.stampAndPropagateSession.call(void 0, span, _chunkWCUBTLL5cjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
456
+ _chunkW6AALBZNcjs.stampAndPropagateSession.call(void 0, span, _chunkW6AALBZNcjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
457
457
  };
458
458
  }
459
459
  const wrappedHandler = (req, extra) => _api.context.with(
@@ -487,7 +487,7 @@ function answerSessionToolCall(protocol, request, tracer, args, original) {
487
487
  if (!handlers) {
488
488
  return original.apply(protocol, args);
489
489
  }
490
- const { id, result } = _chunkWCUBTLL5cjs.sessionToolResult.call(void 0, );
490
+ const { id, result } = _chunkW6AALBZNcjs.sessionToolResult.call(void 0, );
491
491
  const started = safeStartServerSpan(tracer, request, protocol, { sessionId: id });
492
492
  const handler = () => started ? _api.context.with(started.spanCtx, () => result) : result;
493
493
  const hadEntry = handlers.has(METHOD_TOOLS_CALL);
@@ -577,8 +577,8 @@ function safeStartServerSpan(tracer, request, protocol, tracking = {}) {
577
577
  parentCtx
578
578
  );
579
579
  applyServerRequestAttributes(span, request, protocol);
580
- const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunkWCUBTLL5cjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
581
- const { context: sessCtx } = _chunkWCUBTLL5cjs.stampAndPropagateSession.call(void 0,
580
+ const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunkW6AALBZNcjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
581
+ const { context: sessCtx } = _chunkW6AALBZNcjs.stampAndPropagateSession.call(void 0,
582
582
  span,
583
583
  resolved,
584
584
  parentCtx,
@@ -634,7 +634,7 @@ function safeEnd(span) {
634
634
 
635
635
  // src/internal/instrumentation/mcp/version.ts
636
636
  var INSTRUMENTATION_NAME = "@brizz/sdk/mcp";
637
- var INSTRUMENTATION_VERSION = _chunkWCUBTLL5cjs.getSDKVersion.call(void 0, );
637
+ var INSTRUMENTATION_VERSION = _chunkW6AALBZNcjs.getSDKVersion.call(void 0, );
638
638
 
639
639
  // src/internal/instrumentation/mcp/instrumentation.ts
640
640
  var PROTOCOL_MODULE_NAME = "@modelcontextprotocol/sdk/shared/protocol.js";
@@ -1,5 +1,5 @@
1
1
  import type { IAttributesMaskingRule, IPatternBasedMaskingRule } from './types.js';
2
- export declare function maskStringByPattern(value: string, pattern: RegExp, mode?: 'partial' | 'full'): string;
2
+ export declare function maskStringByPattern(value: string, pattern: RegExp, mode?: 'partial' | 'full', custom?: RegExp | null): string;
3
3
  export declare function maskStringByPatternBasedRule(value: string, rule: IPatternBasedMaskingRule): string;
4
4
  export declare function maskValue(value: unknown, rule: IPatternBasedMaskingRule): unknown;
5
5
  export declare function maskAttributes(attributes: Record<string, unknown>, rules: readonly IAttributesMaskingRule[], outputOriginalValue?: boolean): Record<string, unknown>;
@@ -1,5 +1,5 @@
1
1
  import type { IAttributesMaskingRule, IPatternBasedMaskingRule } from './types.js';
2
- export declare function maskStringByPattern(value: string, pattern: RegExp, mode?: 'partial' | 'full'): string;
2
+ export declare function maskStringByPattern(value: string, pattern: RegExp, mode?: 'partial' | 'full', custom?: RegExp | null): string;
3
3
  export declare function maskStringByPatternBasedRule(value: string, rule: IPatternBasedMaskingRule): string;
4
4
  export declare function maskValue(value: unknown, rule: IPatternBasedMaskingRule): unknown;
5
5
  export declare function maskAttributes(attributes: Record<string, unknown>, rules: readonly IAttributesMaskingRule[], outputOriginalValue?: boolean): Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brizz/sdk",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
4
4
  "type": "module",
5
5
  "description": "OpenTelemetry-based observability SDK for AI applications",
6
6
  "keywords": [
@@ -20,6 +20,11 @@
20
20
  ],
21
21
  "license": "Apache-2.0",
22
22
  "homepage": "https://www.brizz.ai",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/brizzai/brizz-js.git",
26
+ "directory": "typescript"
27
+ },
23
28
  "author": {
24
29
  "name": "Brizz",
25
30
  "email": "contact@brizz.ai",
@@ -31,7 +36,8 @@
31
36
  "files": [
32
37
  "dist",
33
38
  "LICENSE",
34
- "README.md"
39
+ "README.md",
40
+ "CHANGELOG.md"
35
41
  ],
36
42
  "scripts": {
37
43
  "build": "pnpm run clean && tsup && tsc -p tsconfig.dts.json && node scripts/emit-cjs-dts.mjs",
@@ -52,7 +58,7 @@
52
58
  "quality": "pnpm run lint && pnpm run format && pnpm run type-check && pnpm run test",
53
59
  "pack": "pnpm run build && pnpm pack",
54
60
  "changeset": "changeset",
55
- "changeset:version": "changeset version && pnpm install --lockfile-only",
61
+ "changeset:version": "changeset version && pnpm install --lockfile-only && node ../../dashboard/scripts/generate-sdk-changelogs.mjs",
56
62
  "changeset:publish": "pnpm build && changeset publish",
57
63
  "changeset:status": "changeset status --verbose",
58
64
  "prerelease:enter": "changeset pre enter",
@@ -123,7 +129,6 @@
123
129
  "@babel/core": "^8.1.0",
124
130
  "@babel/preset-env": "^8.0.7",
125
131
  "@babel/preset-typescript": "^8.0.7",
126
- "@changesets/changelog-github": "^1.0.1",
127
132
  "@changesets/cli": "^3.0.3",
128
133
  "@google/genai": "^2.32.0",
129
134
  "@langchain/core": "^1.3.5",