@zintrust/trace 2.0.1 → 2.1.3

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,4 +1,4 @@
1
- import type { IDatabase } from '@zintrust/core';
1
+ import type { IDatabase } from '@zintrust/core/database';
2
2
  type TraceErrorFactory = {
3
3
  createConfigError?(message: string, details?: unknown): Error;
4
4
  };
@@ -0,0 +1,453 @@
1
+ {
2
+ "name": "@zintrust/trace",
3
+ "version": "2.1.3",
4
+ "buildDate": "2026-05-27T04:11:41.644Z",
5
+ "buildEnvironment": {
6
+ "node": "v22.22.1",
7
+ "platform": "darwin",
8
+ "arch": "arm64"
9
+ },
10
+ "git": {
11
+ "commit": "c82f6263",
12
+ "branch": "release"
13
+ },
14
+ "package": {
15
+ "engines": {
16
+ "node": ">=20.0.0"
17
+ },
18
+ "dependencies": [],
19
+ "peerDependencies": [
20
+ "@zintrust/core"
21
+ ]
22
+ },
23
+ "files": {
24
+ "TraceConnection.d.ts": {
25
+ "size": 1509,
26
+ "sha256": "09a6d63712628d917cd6f64550ebf527c7b419da369983a57151808d32a5a666"
27
+ },
28
+ "TraceConnection.js": {
29
+ "size": 4640,
30
+ "sha256": "c51cc312046b6b2bbe1673f1ff9508425cc7140a1d2341907f67aa36069c09f9"
31
+ },
32
+ "build-manifest.json": {
33
+ "size": 15929,
34
+ "sha256": "be6384c7124a8d2d845db13d13bdbbafd294b758fb3f4a64af6b4bfdb26c4f86"
35
+ },
36
+ "cli-register.d.ts": {
37
+ "size": 255,
38
+ "sha256": "da8d689fe5ef32e97e755f28017e4d3cb1aa63489073a71907ea41ad5761ede9"
39
+ },
40
+ "cli-register.js": {
41
+ "size": 1123,
42
+ "sha256": "c6de87d0a73df7ac66e18ecdc6f758b2652ec3abe9698e43620cf41135b33e4b"
43
+ },
44
+ "config.d.ts": {
45
+ "size": 470,
46
+ "sha256": "b034cbef0c71fb868071363624ef7a9f8d7acc20f8be8c895dd5db5a75e81f37"
47
+ },
48
+ "config.js": {
49
+ "size": 10503,
50
+ "sha256": "4514e95067194c7afacb1202a8f1caffc64a400dd995cf809301b1a51a67da38"
51
+ },
52
+ "context.d.ts": {
53
+ "size": 596,
54
+ "sha256": "4b8dade537b29dae3942d02c22e535f3b1ba1f0f6142e3a74203d4fa962a412b"
55
+ },
56
+ "context.js": {
57
+ "size": 2520,
58
+ "sha256": "00a82a58e18fb33934f449a9fb379a2f90023570ceed1676eae0aed59b02ddeb"
59
+ },
60
+ "dashboard/handlers.d.ts": {
61
+ "size": 998,
62
+ "sha256": "788a2c71fdd77adbcef3e41bffe7ddf07f04bc1bdd10e6f19cfcd3ba6b9e858b"
63
+ },
64
+ "dashboard/handlers.js": {
65
+ "size": 10011,
66
+ "sha256": "a5f7f3d624a844df27ddc9d4908e73d91a4aac9b2aac1aefff1f391913353897"
67
+ },
68
+ "dashboard/routes.d.ts": {
69
+ "size": 797,
70
+ "sha256": "988be2431f7cde857403dcbd84949f425c1ed668b3c41faa3d104dd891d6c0dc"
71
+ },
72
+ "dashboard/routes.js": {
73
+ "size": 2627,
74
+ "sha256": "b59d95e8bfe256b2904d6000d672036faa68983e296cd8c82ae782cb0b804fcb"
75
+ },
76
+ "dashboard/ui.d.ts": {
77
+ "size": 117,
78
+ "sha256": "4862b41e0477f01afa0dbb446d4553b65c22ed774cd1e2db3489059ced392f94"
79
+ },
80
+ "dashboard/ui.js": {
81
+ "size": 84736,
82
+ "sha256": "6a19ca4b079944cf0070633a0694de28d034f78ff2d1f02af00707cd2434751f"
83
+ },
84
+ "index.d.ts": {
85
+ "size": 2770,
86
+ "sha256": "83fdbdc30ce9c926c35cb5a95f480797cb7d12c8a52237dd7a19ec62dfe93dac"
87
+ },
88
+ "index.js": {
89
+ "size": 3670,
90
+ "sha256": "cb7b0d00db90067076a82dbb339b942dee72803cfe730303081f5102008d1140"
91
+ },
92
+ "ingest/TraceIngestGateway.d.ts": {
93
+ "size": 791,
94
+ "sha256": "7362cb112369bfa2091cb10ce3fc557bc9be5bf9e17abeba32e23bc58bbf9f57"
95
+ },
96
+ "ingest/TraceIngestGateway.js": {
97
+ "size": 11105,
98
+ "sha256": "d4f07c03cb9e34293058255e8ad7d7d83e2b332256f6ca3a3d2011dcb857fb37"
99
+ },
100
+ "migrations/20260331000001_create_zin_trace_entries_table.d.ts": {
101
+ "size": 313,
102
+ "sha256": "be62bd700b040e7df58dc76f8282fa1400b57d19f089a63b3f4677df16e203d4"
103
+ },
104
+ "migrations/20260331000001_create_zin_trace_entries_table.js": {
105
+ "size": 964,
106
+ "sha256": "49c5df2a7caac1da82652db591914bfa00fde7591814a9f945f861f0a705fba7"
107
+ },
108
+ "migrations/20260331000002_create_zin_trace_entries_tags_table.d.ts": {
109
+ "size": 313,
110
+ "sha256": "95d6824268fc69ec4a8cab4a551ca600d27983d0e0b13c51ffc5c9b4e55bec39"
111
+ },
112
+ "migrations/20260331000002_create_zin_trace_entries_tags_table.js": {
113
+ "size": 746,
114
+ "sha256": "726375b0f404d2c6d55d195e52bf978e6f95b6ad4d241fa23ed7d8d1bb369412"
115
+ },
116
+ "migrations/20260331000003_create_zin_trace_monitoring_table.d.ts": {
117
+ "size": 317,
118
+ "sha256": "d45a119cd221faaaf804fd466d2e5678e137751fc9ab3bc6bc6992b1190fb7fb"
119
+ },
120
+ "migrations/20260331000003_create_zin_trace_monitoring_table.js": {
121
+ "size": 531,
122
+ "sha256": "fe52d93d169ae65e6092f05535b35c728d11253580b39bdd629a64fdd94c64ab"
123
+ },
124
+ "migrations/20260407193000_widen_trace_created_at_for_sql.d.ts": {
125
+ "size": 344,
126
+ "sha256": "9243e0feab40bda7bfc1e5417d93c64b28166df5326adad30bdbcf9a03a7c7fb"
127
+ },
128
+ "migrations/20260407193000_widen_trace_created_at_for_sql.js": {
129
+ "size": 1194,
130
+ "sha256": "ebb0d825d66b774f010f0fe689200ef7e3f1bcd74612d7090ff372daa9754a61"
131
+ },
132
+ "migrations/index.d.ts": {
133
+ "size": 280,
134
+ "sha256": "0ba7bc9421754ff489f6947463c13e7e9c80558eb6611a818f3baab3b518a502"
135
+ },
136
+ "migrations/index.js": {
137
+ "size": 500,
138
+ "sha256": "6118c5f4e01ecd73208425253caa3a17e4304ff6f9f00ac7afc18785684e9e85"
139
+ },
140
+ "plugin.d.ts": {
141
+ "size": 16,
142
+ "sha256": "71d366165dd36f1675aa253a76262b226fb6c62e5ab632746b8aea61c0c625fc"
143
+ },
144
+ "plugin.js": {
145
+ "size": 128,
146
+ "sha256": "2d05bec517f57634276220b8a946125059fe0e320c42295b4f5a985431bb3d1c"
147
+ },
148
+ "register.d.ts": {
149
+ "size": 72,
150
+ "sha256": "535869aa1bfcdf0ec26fad27d7f18bb8822bc586c38fcc5ffdde5274ecbea17e"
151
+ },
152
+ "register.js": {
153
+ "size": 19896,
154
+ "sha256": "4516e527351016a9c2a0ea751a130cc3c42e19cd6cd817bf422663d2a613bf51"
155
+ },
156
+ "runtime/BackgroundTaskScheduler.d.ts": {
157
+ "size": 1182,
158
+ "sha256": "4ebb3549575f57210ffffce663a2f62e2d8a8ff0c56ad265259e559736ebccb2"
159
+ },
160
+ "runtime/BackgroundTaskScheduler.js": {
161
+ "size": 3254,
162
+ "sha256": "aa304666a000e6ccb0ae0a5e2bed701d610cf371955d4137a085c970fa11e230"
163
+ },
164
+ "storage/ProxyTraceStorage.d.ts": {
165
+ "size": 339,
166
+ "sha256": "9c724ff342dfe82da12e7cce95593f6623faa80c40f97593719b8e78e95f266d"
167
+ },
168
+ "storage/ProxyTraceStorage.js": {
169
+ "size": 4379,
170
+ "sha256": "697db8971137d42804d9abd375839f45b443589ef72d368a1b9f715fd8c5b8af"
171
+ },
172
+ "storage/TraceContentBudget.d.ts": {
173
+ "size": 1306,
174
+ "sha256": "606a37af0a4aef4866c22cc727f67f485c43181b40eb831e1920b8b90fdaf503"
175
+ },
176
+ "storage/TraceContentBudget.js": {
177
+ "size": 11495,
178
+ "sha256": "8ed670773814f7b86b916c43ac43b048defc6a102593d808dfb4c8cf7606edf3"
179
+ },
180
+ "storage/TraceContentRedaction.d.ts": {
181
+ "size": 207,
182
+ "sha256": "2fd7b317c5ee87d8ecaa6467a75959499673ef374fec3ecfaa7911c4f3d5c83c"
183
+ },
184
+ "storage/TraceContentRedaction.js": {
185
+ "size": 1083,
186
+ "sha256": "127aa026f155c47361d3b44021138157cb2743f5e02e044ce6df66cc693cc3cb"
187
+ },
188
+ "storage/TraceEntryFiltering.d.ts": {
189
+ "size": 196,
190
+ "sha256": "a1158cedb4e4e749658127086e138e47886422366a697619d6ea9bd3338066e6"
191
+ },
192
+ "storage/TraceEntryFiltering.js": {
193
+ "size": 1579,
194
+ "sha256": "a096b0fadf21cd692e554e6ca7789f08759cffe1c690845cb33c5876c8587cc5"
195
+ },
196
+ "storage/TraceServiceTag.d.ts": {
197
+ "size": 224,
198
+ "sha256": "35d93c82d6db80071946adaa8e40d012408b469949f1002f85ae3fd20b0a70c8"
199
+ },
200
+ "storage/TraceServiceTag.js": {
201
+ "size": 1923,
202
+ "sha256": "7e84325813e5399465e4794199895460aa7223c6a7b64339f0b241a7ca1295ee"
203
+ },
204
+ "storage/TraceStorage.d.ts": {
205
+ "size": 526,
206
+ "sha256": "6de5990ca98178d909012e6678d95b30be1bfa29fdb0519974b37df60fbb3d20"
207
+ },
208
+ "storage/TraceStorage.js": {
209
+ "size": 15322,
210
+ "sha256": "95179a66f0774fb6c1622e7477d6e1420e374116800a6a0c60e14de9bd4c4c5c"
211
+ },
212
+ "storage/TraceWriteDiagnostics.d.ts": {
213
+ "size": 581,
214
+ "sha256": "5f49df97a830ad895653fa4a18b3a1b31ca4a5066d6f8150ee02dca013e16397"
215
+ },
216
+ "storage/TraceWriteDiagnostics.js": {
217
+ "size": 7041,
218
+ "sha256": "6fc34e6e52a9b463db0967dba4aec4c8c706b6978c496f568637ffc15327279a"
219
+ },
220
+ "storage/index.d.ts": {
221
+ "size": 210,
222
+ "sha256": "bb4c3a0c73eb3e2629dd1a1dbc29eecedd1910a37b221357cc7981ced320bdeb"
223
+ },
224
+ "storage/index.js": {
225
+ "size": 166,
226
+ "sha256": "ed5e83e108cd15f9a3976be71e966bdf0c44d8e0266d1d2dbad189f0885ad501"
227
+ },
228
+ "types.d.ts": {
229
+ "size": 10214,
230
+ "sha256": "cc3510f7c6c859795d368a1fca2f3ec2322135387bb60bd189fd72ac833b9a7c"
231
+ },
232
+ "types.js": {
233
+ "size": 696,
234
+ "sha256": "1cc1b7f7ff4760e6b4ccd642f6aa2f35453c4f40e6a360c3a525304729407836"
235
+ },
236
+ "ui.d.ts": {
237
+ "size": 382,
238
+ "sha256": "d8b33d77c1c6ccd82e140db83a1bf57edb4d62c03cd15360c2c2d70bd2b392ee"
239
+ },
240
+ "ui.js": {
241
+ "size": 285,
242
+ "sha256": "3a3cef493f0b9789a7198da620fd7e72ea2377fed3eba25572bb0d222155a446"
243
+ },
244
+ "utils/authTag.d.ts": {
245
+ "size": 150,
246
+ "sha256": "db7ed89155df453650ad2805d8cd7069a70b14eacac2d97c4b0bebd45df4bdd4"
247
+ },
248
+ "utils/authTag.js": {
249
+ "size": 534,
250
+ "sha256": "0c506812967c17548162ce0f28d96089b023865883ee8cfd0824a94084580afb"
251
+ },
252
+ "utils/entryFilter.d.ts": {
253
+ "size": 183,
254
+ "sha256": "a7809e98f76b4e326262c26b0e43e278b1c50ac0b35fee145e3e6006357dc700"
255
+ },
256
+ "utils/entryFilter.js": {
257
+ "size": 4123,
258
+ "sha256": "de2690c6e5852969083387b469fd2e12f10470c6eee81120154437cd8d8f3555"
259
+ },
260
+ "utils/familyHash.d.ts": {
261
+ "size": 60,
262
+ "sha256": "c94f85390c52470df6946a39576c720ea92c89797ae62fff913191c45580248f"
263
+ },
264
+ "utils/familyHash.js": {
265
+ "size": 266,
266
+ "sha256": "f60526423e69fa5c461b0f5d8dac90b1f0c18149609cd1109226f1c8d985f223"
267
+ },
268
+ "utils/redact.d.ts": {
269
+ "size": 449,
270
+ "sha256": "b72d01ebac46a984d314905b14de5b05c3f9c27141e460c5305dd16e347f5a13"
271
+ },
272
+ "utils/redact.js": {
273
+ "size": 2646,
274
+ "sha256": "4e82eaa3bb48f9d621b70f69519b0615d992068eb9f836beaf6df6c2382c2cff"
275
+ },
276
+ "utils/requestFilter.d.ts": {
277
+ "size": 398,
278
+ "sha256": "fb214bde16e970c58ac23a32b51def87157a495a89e70ad6a1aa9e28c8c721c4"
279
+ },
280
+ "utils/requestFilter.js": {
281
+ "size": 1947,
282
+ "sha256": "214855796b6dbe524a357355fb7c9c8fd0fa9705d9163f7ad0882f463e0ae5b1"
283
+ },
284
+ "utils/stackFrame.d.ts": {
285
+ "size": 149,
286
+ "sha256": "55008bb0bf16e96c7b4f706fa3aa2d3a5bb3a68d0b8bcbd046d23462a7f620e8"
287
+ },
288
+ "utils/stackFrame.js": {
289
+ "size": 1413,
290
+ "sha256": "ca651d04eaea48a240ec7c5714a0f8f1d92f2fcdaa6e735df0009b56de8c29ed"
291
+ },
292
+ "watchers/AuthWatcher.d.ts": {
293
+ "size": 225,
294
+ "sha256": "b062850fa3edd3d58bb293025b1dfc5491e39807b3ab3e4cc1c1aaa31316a7a3"
295
+ },
296
+ "watchers/AuthWatcher.js": {
297
+ "size": 1437,
298
+ "sha256": "c47cca14113fed3825610c9a5a28a4ef7b99ea238952b3df48a997d63eab6fd2"
299
+ },
300
+ "watchers/BatchWatcher.d.ts": {
301
+ "size": 277,
302
+ "sha256": "b1870a793f2dc7ed22705c8a2a6b6f970fa1bcd0229dbf12f185323b35f3bdcf"
303
+ },
304
+ "watchers/BatchWatcher.js": {
305
+ "size": 1338,
306
+ "sha256": "113a1077d267734335483cdc48bf94e929edb11f5a0f3f83234bd4e7da8bf6ef"
307
+ },
308
+ "watchers/CacheWatcher.d.ts": {
309
+ "size": 314,
310
+ "sha256": "19b5f6fe4f0fc8f3df6762f4f46d36f198c7c7d7da8d3d23e5c8f124462e8cf7"
311
+ },
312
+ "watchers/CacheWatcher.js": {
313
+ "size": 2067,
314
+ "sha256": "8e038d3d72fcd69286674ec06b916389872eaa393dc7bfb8667b0979a68115a4"
315
+ },
316
+ "watchers/CommandWatcher.d.ts": {
317
+ "size": 267,
318
+ "sha256": "f1b3a3253e7265c7b56a74ba674cd23426ea5227a33abb1bde0d941e2a02e894"
319
+ },
320
+ "watchers/CommandWatcher.js": {
321
+ "size": 1553,
322
+ "sha256": "b341c7a0ad2a1d8d6d21e5a14b8151d904194d292c8ef1f3a80cf8d507fc3f2a"
323
+ },
324
+ "watchers/DumpWatcher.d.ts": {
325
+ "size": 308,
326
+ "sha256": "13f81df217258b0827027cbba35b5ad549453fe2709bd4fcc66d845b065500ec"
327
+ },
328
+ "watchers/DumpWatcher.js": {
329
+ "size": 1441,
330
+ "sha256": "36ea2e9a6c73dc96e75d31fd3c2710548ebfd0a651bab0dde185c33d611be079"
331
+ },
332
+ "watchers/EventWatcher.d.ts": {
333
+ "size": 223,
334
+ "sha256": "f5a173b0f92490e417d175011d4191d8eafe9ff75d712adb55cece5368753ef6"
335
+ },
336
+ "watchers/EventWatcher.js": {
337
+ "size": 1299,
338
+ "sha256": "832d5db66433f685eea7a3da208fb226b62eb49c22f94619762962a04e58b122"
339
+ },
340
+ "watchers/ExceptionWatcher.d.ts": {
341
+ "size": 311,
342
+ "sha256": "0f58c50fd77704151399ca6cb6ec7890a9aef86afe28235951971f8cc9c1d600"
343
+ },
344
+ "watchers/ExceptionWatcher.js": {
345
+ "size": 4253,
346
+ "sha256": "7d4c63675bb78857ba8a7be91e11a770201fd80d2fa7ee857d2e78dab3665f15"
347
+ },
348
+ "watchers/GateWatcher.d.ts": {
349
+ "size": 262,
350
+ "sha256": "2fb8699f8679d2442aa322d40fb5cd4bb4e944804bdc6b094a9daf406a407abf"
351
+ },
352
+ "watchers/GateWatcher.js": {
353
+ "size": 1330,
354
+ "sha256": "e3666b5d65ead0ccd3fe7a6d684d3245dda9d3ddd6da393e0afa028585f08679"
355
+ },
356
+ "watchers/HttpClientWatcher.d.ts": {
357
+ "size": 346,
358
+ "sha256": "dfb13bba526d5338e4dcd7a5aa0f72a61a03d9e2f6a250250c0bb8f0054c9712"
359
+ },
360
+ "watchers/HttpClientWatcher.js": {
361
+ "size": 6335,
362
+ "sha256": "224b3cf85eba2e7f700a8cdcc61a0fe285ff0460a5c6550c83b0ea506e41c865"
363
+ },
364
+ "watchers/HttpWatcher.d.ts": {
365
+ "size": 96,
366
+ "sha256": "ce9a95a670f755193fd74ce721dbfa4b30f20c879a6566ebb35229b3b2435429"
367
+ },
368
+ "watchers/HttpWatcher.js": {
369
+ "size": 7302,
370
+ "sha256": "3bfe58db8346474da1efb6a5a050786e2d70d43ab02d437c116510254387735e"
371
+ },
372
+ "watchers/JobWatcher.d.ts": {
373
+ "size": 441,
374
+ "sha256": "097c043678ac6b218096c9b04bc5922fc8ed2a31e9f53abc36f6e0d6f63180f0"
375
+ },
376
+ "watchers/JobWatcher.js": {
377
+ "size": 3317,
378
+ "sha256": "494646d87c71d1fbf069835fcf10c56dec7b449e2fc1b24e0c82d511aba085e4"
379
+ },
380
+ "watchers/LogWatcher.d.ts": {
381
+ "size": 95,
382
+ "sha256": "f3ddc5f8b58c6c86ac6b464dd48e5a55e79ab2bf2e735feacffc7480e4ccc0c4"
383
+ },
384
+ "watchers/LogWatcher.js": {
385
+ "size": 3626,
386
+ "sha256": "6b9e86824141e170a731b44c2b3af6f3dff1e06a9d09b6a7e6c9c01453b8c6cf"
387
+ },
388
+ "watchers/MailWatcher.d.ts": {
389
+ "size": 244,
390
+ "sha256": "5031b96ef8e64a6d376576e8cddf1c2560f22432a78f1d2be55f7cea6bff4547"
391
+ },
392
+ "watchers/MailWatcher.js": {
393
+ "size": 1766,
394
+ "sha256": "2b583137bb9800901a7ae70cc1af6e9f8763215f0f05f170af9cfb4556530780"
395
+ },
396
+ "watchers/MiddlewareWatcher.d.ts": {
397
+ "size": 259,
398
+ "sha256": "5a28b472c835bd0f79ec9d3670516544bc5b6da9f1f1bed5159be0cba39304a1"
399
+ },
400
+ "watchers/MiddlewareWatcher.js": {
401
+ "size": 1510,
402
+ "sha256": "4ed2a81d8f7b7984f572d1bea16abd7a40a896de789e668def961e32bb8eea7f"
403
+ },
404
+ "watchers/ModelWatcher.d.ts": {
405
+ "size": 285,
406
+ "sha256": "4c05112af855a92b3f3f97c6b61bf1b07444bcb7d5a17f3e0ae19da4a85faf1c"
407
+ },
408
+ "watchers/ModelWatcher.js": {
409
+ "size": 1492,
410
+ "sha256": "ae4151b422eb73500f981c799e5a261d7349ad36b4be060a56e5ad7944e85cae"
411
+ },
412
+ "watchers/NotificationWatcher.d.ts": {
413
+ "size": 274,
414
+ "sha256": "a1d918122c5db9a7f27fdf78c0c14a61f6e1213748ee6f9b06f976f33589dc33"
415
+ },
416
+ "watchers/NotificationWatcher.js": {
417
+ "size": 1808,
418
+ "sha256": "06bbc437a9e5ec29252e365fa4707e68ae9348b3f755094c14f0e18c99dad3ed"
419
+ },
420
+ "watchers/QueryWatcher.d.ts": {
421
+ "size": 240,
422
+ "sha256": "5d5046c65e5b683369c7709f1acd09b60aec3e7f44748fd1baeb35498836465b"
423
+ },
424
+ "watchers/QueryWatcher.js": {
425
+ "size": 3293,
426
+ "sha256": "f2d02707308e091ef065f1d6e264b7f2d799ed4a60b90efe664f9d9f7ad6266a"
427
+ },
428
+ "watchers/RedisWatcher.d.ts": {
429
+ "size": 294,
430
+ "sha256": "0a0f0ef387cb02a20cb9a4308a87b48dbfbf1076b7e3090801fef7c9c794ec84"
431
+ },
432
+ "watchers/RedisWatcher.js": {
433
+ "size": 1349,
434
+ "sha256": "bcafbadbbc6caa85284a384efa8894895c077588ebb5fb45f0f966d869caf960"
435
+ },
436
+ "watchers/ScheduleWatcher.d.ts": {
437
+ "size": 291,
438
+ "sha256": "1d049cfc2472876bf11c4d091c2a889b948bfb2ac714da2aed8affd965f311a6"
439
+ },
440
+ "watchers/ScheduleWatcher.js": {
441
+ "size": 1393,
442
+ "sha256": "f653c3728d928b253b7f4fd4e1afd228bedf4ce32c52f107effa99aa026ada45"
443
+ },
444
+ "watchers/ViewWatcher.d.ts": {
445
+ "size": 202,
446
+ "sha256": "980ac30b405d135cd754de1462722147944a37b4f5271ce769afb6b71fa748b1"
447
+ },
448
+ "watchers/ViewWatcher.js": {
449
+ "size": 1180,
450
+ "sha256": "9af344802c5973a020487e261009e8d1a19a74b78ba7b388d33ce50687277c81"
451
+ }
452
+ }
453
+ }
@@ -2,7 +2,7 @@
2
2
  * TraceDashboard handlers — pure handler functions wired to ITraceStorage.
3
3
  * No auth in this layer — caller mounts middleware as needed.
4
4
  */
5
- import type { IRequest, IResponse } from '@zintrust/core';
5
+ import type { IRequest, IResponse } from '@zintrust/core/http';
6
6
  import type { ITraceStorage } from '../types';
7
7
  export declare const setHandlerStorage: (s: ITraceStorage) => void;
8
8
  export declare function listEntries(req: IRequest, res: IResponse): Promise<void>;
@@ -1,9 +1,4 @@
1
- /**
2
- * Dashboard route registrar for @zintrust/trace.
3
- * Mounts the SPA + all REST API endpoints under the configured basePath.
4
- * Auth is NOT applied here — callers add middleware via routeOptions.
5
- */
6
- import { type IRouter } from '@zintrust/core';
1
+ import { type IRouter } from '@zintrust/core/http';
7
2
  import type { ITraceStorage } from '../types';
8
3
  export type TraceDashboardOptions = {
9
4
  /** Base path for the dashboard, e.g. '/trace'. Defaults to '/trace'. */
@@ -3,7 +3,10 @@
3
3
  * Mounts the SPA + all REST API endpoints under the configured basePath.
4
4
  * Auth is NOT applied here — callers add middleware via routeOptions.
5
5
  */
6
- import { appConfig, ErrorFactory, Router, useDatabase, } from '@zintrust/core';
6
+ import { appConfig } from '@zintrust/core/config';
7
+ import { useDatabase } from '@zintrust/core/database';
8
+ import { ErrorFactory } from '@zintrust/core/errors';
9
+ import { Router } from '@zintrust/core/http';
7
10
  import { TraceConfig } from '../config.js';
8
11
  import { TraceStorage } from '../storage/index.js';
9
12
  import { assertTraceConnectionResolved, resolveDashboardTraceConnectionName, } from '../TraceConnection.js';
@@ -1,4 +1,4 @@
1
- import { type IRouter } from '@zintrust/core';
1
+ import { type IRouter } from '@zintrust/core/http';
2
2
  import type { ITraceStorage } from '../types';
3
3
  type TraceIngestGatewaySettings = {
4
4
  basePath: string;
@@ -1,4 +1,8 @@
1
- import { Env, ErrorFactory, Router, SignedRequest, useDatabase, } from '@zintrust/core';
1
+ import { Env } from '@zintrust/core/config';
2
+ import { useDatabase } from '@zintrust/core/database';
3
+ import { ErrorFactory } from '@zintrust/core/errors';
4
+ import { Router, } from '@zintrust/core/http';
5
+ import { SignedRequest } from '@zintrust/core/security';
2
6
  import { TraceConfig } from '../config.js';
3
7
  import { TraceStorage } from '../storage/index.js';
4
8
  const nonces = new Map();
@@ -2,7 +2,7 @@
2
2
  * Migration: CreateZinTraceEntriesTable
3
3
  * Creates the main entries table for @zintrust/trace
4
4
  */
5
- import { type IDatabase } from '@zintrust/core';
5
+ import { type IDatabase } from '@zintrust/core/database';
6
6
  export interface Migration {
7
7
  up(db: IDatabase): Promise<void>;
8
8
  down(db: IDatabase): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  * Migration: CreateZinTraceEntriesTable
3
3
  * Creates the main entries table for @zintrust/trace
4
4
  */
5
- import { MigrationSchema } from '@zintrust/core';
5
+ import { MigrationSchema } from '@zintrust/core/database';
6
6
  export const migration = {
7
7
  async up(db) {
8
8
  const schema = MigrationSchema.create(db);
@@ -2,7 +2,7 @@
2
2
  * Migration: CreateZinTraceEntriesTagsTable
3
3
  * Creates the tag join table for @zintrust/trace
4
4
  */
5
- import { type IDatabase } from '@zintrust/core';
5
+ import { type IDatabase } from '@zintrust/core/database';
6
6
  export interface Migration {
7
7
  up(db: IDatabase): Promise<void>;
8
8
  down(db: IDatabase): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  * Migration: CreateZinTraceEntriesTagsTable
3
3
  * Creates the tag join table for @zintrust/trace
4
4
  */
5
- import { MigrationSchema } from '@zintrust/core';
5
+ import { MigrationSchema } from '@zintrust/core/database';
6
6
  export const migration = {
7
7
  async up(db) {
8
8
  const schema = MigrationSchema.create(db);
@@ -2,7 +2,7 @@
2
2
  * Migration: CreateZinTraceMonitoringTable
3
3
  * Creates the tag watchlist table for @zintrust/trace
4
4
  */
5
- import { type IDatabase } from '@zintrust/core';
5
+ import { type IDatabase } from '@zintrust/core/database';
6
6
  export interface Migration {
7
7
  up(db: IDatabase): Promise<void>;
8
8
  down(db: IDatabase): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  * Migration: CreateZinTraceMonitoringTable
3
3
  * Creates the tag watchlist table for @zintrust/trace
4
4
  */
5
- import { MigrationSchema } from '@zintrust/core';
5
+ import { MigrationSchema } from '@zintrust/core/database';
6
6
  export const migration = {
7
7
  async up(db) {
8
8
  const schema = MigrationSchema.create(db);
@@ -2,7 +2,7 @@
2
2
  * Migration: WidenTraceCreatedAtForSql
3
3
  * Ensures SQL engines that treat INTEGER as 32-bit can store millisecond timestamps.
4
4
  */
5
- import { type IDatabase } from '@zintrust/core';
5
+ import { type IDatabase } from '@zintrust/core/database';
6
6
  export interface Migration {
7
7
  up(db: IDatabase): Promise<void>;
8
8
  down(db: IDatabase): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  * Migration: WidenTraceCreatedAtForSql
3
3
  * Ensures SQL engines that treat INTEGER as 32-bit can store millisecond timestamps.
4
4
  */
5
- import { MigrationSchema } from '@zintrust/core';
5
+ import { MigrationSchema } from '@zintrust/core/database';
6
6
  const alterCreatedAt = async (db) => {
7
7
  const driver = db.getType?.() ?? 'sqlite';
8
8
  if (driver === 'sqlite' || driver === 'd1' || driver === 'd1-remote')
@@ -1,4 +1,5 @@
1
- import { ErrorFactory, RemoteSignedJson } from '@zintrust/core';
1
+ import { ErrorFactory } from '@zintrust/core/errors';
2
+ import { RemoteSignedJson } from '@zintrust/core/security';
2
3
  const ensureConfigured = (settings) => {
3
4
  if (settings.baseUrl.trim() === '') {
4
5
  throw ErrorFactory.createConfigError('TRACE_PROXY_URL is required when TRACE_PROXY=true');
@@ -1,4 +1,4 @@
1
- import { ErrorFactory } from '@zintrust/core';
1
+ import { ErrorFactory } from '@zintrust/core/errors';
2
2
  const appendServiceTag = (entry, serviceTag) => {
3
3
  const normalizedTag = serviceTag?.trim() ?? '';
4
4
  if (normalizedTag === '' || entry.tags.includes(normalizedTag)) {
@@ -3,7 +3,7 @@
3
3
  * Resolves the correct IDatabase from the app config, then delegates all
4
4
  * read/write operations to the trace storage facade.
5
5
  */
6
- import type { IDatabase } from '@zintrust/core';
6
+ import type { IDatabase } from '@zintrust/core/database';
7
7
  import type { ITraceStorage } from '../types';
8
8
  export declare const TraceStorage: Readonly<{
9
9
  resolveStorage: (db: IDatabase) => ITraceStorage;
package/dist/types.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Types for @zintrust/trace
3
3
  * Sealed type definitions — no side effects.
4
4
  */
5
- import type { IDatabase } from '@zintrust/core';
5
+ import type { IDatabase } from '@zintrust/core/database';
6
6
  export declare const EntryType: Readonly<{
7
7
  readonly REQUEST: "request";
8
8
  readonly QUERY: "query";
@@ -1,4 +1,4 @@
1
- import { Logger } from '@zintrust/core';
1
+ import { Logger } from '@zintrust/core/logger';
2
2
  import { TraceContext } from '../context.js';
3
3
  import { EntryType } from '../types.js';
4
4
  import { AuthTag } from '../utils/authTag.js';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * LogWatcher — captures Logger output via Logger.addSink().
3
3
  */
4
- import { Logger } from '@zintrust/core';
4
+ import { Logger } from '@zintrust/core/logger';
5
5
  import { TraceContext } from '../context.js';
6
6
  import { EntryType } from '../types.js';
7
7
  import { AuthTag } from '../utils/authTag.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/trace",
3
- "version": "2.0.1",
3
+ "version": "2.1.3",
4
4
  "description": "Trace assistant for ZinTrust: logs requests, queries, exceptions, jobs, and more.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -55,4 +55,4 @@
55
55
  "build": "tsc -p tsconfig.json && tsc -p tsconfig.migrations.json && node ../../scripts/fix-dist-esm-imports.mjs dist",
56
56
  "prepublishOnly": "npm run build"
57
57
  }
58
- }
58
+ }