@zintrust/trace 0.4.75 → 0.4.76

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.
Files changed (39) hide show
  1. package/dist/build-manifest.json +171 -163
  2. package/dist/dashboard/routes.js +4 -4
  3. package/dist/index.js +25 -25
  4. package/dist/migrations/{20260331000001_create_zin_debugger_entries_table.d.ts → 20260331000001_create_zin_trace_entries_table.d.ts} +2 -2
  5. package/dist/migrations/{20260331000001_create_zin_debugger_entries_table.js → 20260331000001_create_zin_trace_entries_table.js} +4 -4
  6. package/dist/migrations/{20260331000002_create_zin_debugger_entries_tags_table.d.ts → 20260331000002_create_zin_trace_entries_tags_table.d.ts} +2 -2
  7. package/dist/migrations/{20260331000002_create_zin_debugger_entries_tags_table.js → 20260331000002_create_zin_trace_entries_tags_table.js} +5 -5
  8. package/dist/migrations/{20260331000003_create_zin_debugger_monitoring_table.d.ts → 20260331000003_create_zin_trace_monitoring_table.d.ts} +2 -2
  9. package/dist/migrations/{20260331000003_create_zin_debugger_monitoring_table.js → 20260331000003_create_zin_trace_monitoring_table.js} +4 -4
  10. package/dist/migrations/index.d.ts +3 -3
  11. package/dist/migrations/index.js +3 -3
  12. package/dist/register.js +23 -23
  13. package/dist/storage/DebuggerStorage.js +1 -1
  14. package/dist/storage/TraceStorage.js +1 -1
  15. package/dist/storage/index.js +1 -1
  16. package/dist/ui.js +1 -1
  17. package/dist/utils/authTag.js +1 -1
  18. package/dist/utils/requestFilter.js +1 -1
  19. package/dist/watchers/AuthWatcher.js +3 -3
  20. package/dist/watchers/BatchWatcher.js +3 -3
  21. package/dist/watchers/CacheWatcher.js +5 -5
  22. package/dist/watchers/CommandWatcher.js +4 -4
  23. package/dist/watchers/DumpWatcher.js +3 -3
  24. package/dist/watchers/EventWatcher.js +4 -4
  25. package/dist/watchers/ExceptionWatcher.js +6 -6
  26. package/dist/watchers/GateWatcher.js +3 -3
  27. package/dist/watchers/HttpClientWatcher.js +5 -5
  28. package/dist/watchers/HttpWatcher.js +5 -5
  29. package/dist/watchers/JobWatcher.js +4 -4
  30. package/dist/watchers/LogWatcher.js +4 -4
  31. package/dist/watchers/MailWatcher.js +3 -3
  32. package/dist/watchers/MiddlewareWatcher.js +3 -3
  33. package/dist/watchers/ModelWatcher.js +3 -3
  34. package/dist/watchers/NotificationWatcher.js +4 -4
  35. package/dist/watchers/QueryWatcher.js +5 -5
  36. package/dist/watchers/RedisWatcher.js +4 -4
  37. package/dist/watchers/ScheduleWatcher.js +3 -3
  38. package/dist/watchers/ViewWatcher.js +3 -3
  39. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
1
  {
2
- "name": "@zintrust/system-debugger",
3
- "version": "0.4.67",
4
- "buildDate": "2026-04-06T10:12:33.243Z",
2
+ "name": "@zintrust/trace",
3
+ "version": "0.4.75",
4
+ "buildDate": "2026-04-07T17:29:43.050Z",
5
5
  "buildEnvironment": {
6
- "node": "v22.22.1",
6
+ "node": "v25.6.1",
7
7
  "platform": "darwin",
8
8
  "arch": "arm64"
9
9
  },
10
10
  "git": {
11
- "commit": "f5a9d786",
11
+ "commit": "29c16e36",
12
12
  "branch": "release"
13
13
  },
14
14
  "package": {
@@ -22,152 +22,160 @@
22
22
  },
23
23
  "files": {
24
24
  "build-manifest.json": {
25
- "size": 12633,
26
- "sha256": "48f282e5d70a41bc87dc0f365f17991f1887b1267e899d7de80b7c05a28ebed9"
25
+ "size": 12606,
26
+ "sha256": "3014938fc1038e55af4fee3be217c1bc269119354e32a89d7e5c5bfcdbd327a4"
27
27
  },
28
28
  "cli-register.d.ts": {
29
- "size": 258,
30
- "sha256": "6dd21781558f8510fabce9c896cb8ad6e4039476e4f7c25147ad490bbcf44427"
29
+ "size": 255,
30
+ "sha256": "da8d689fe5ef32e97e755f28017e4d3cb1aa63489073a71907ea41ad5761ede9"
31
31
  },
32
32
  "cli-register.js": {
33
- "size": 1177,
34
- "sha256": "8476ce194444b0d3eca24bf4ac5fcb29361bafcc586435bc95981f2e217842d3"
33
+ "size": 1123,
34
+ "sha256": "c6de87d0a73df7ac66e18ecdc6f758b2652ec3abe9698e43620cf41135b33e4b"
35
35
  },
36
36
  "config.d.ts": {
37
- "size": 409,
38
- "sha256": "73920648d0eb12e4b0da36dc230c238974cc686ed3233f48046eb8d1404dfa0f"
37
+ "size": 372,
38
+ "sha256": "e5ab491ec7f04a89fb13f9c89a410d9f0c49f1c1f081a9754747527c8c97dcd0"
39
39
  },
40
40
  "config.js": {
41
- "size": 1233,
42
- "sha256": "351e181e7a9dc30f730509b3b926be200c3959093267e71953a490b7c6da32d0"
41
+ "size": 1227,
42
+ "sha256": "4cafd0b6eb1218131fbf2abc7d053a863c31eb0a32055f8e97b4d4818d546caf"
43
43
  },
44
44
  "context.d.ts": {
45
- "size": 602,
46
- "sha256": "feb15eda59bc67096d7f25fe71fbf6617c82bcb6970df5cb156a29bd5302da50"
45
+ "size": 596,
46
+ "sha256": "4b8dade537b29dae3942d02c22e535f3b1ba1f0f6142e3a74203d4fa962a412b"
47
47
  },
48
48
  "context.js": {
49
- "size": 2523,
50
- "sha256": "ed3766652a62b7d7374309d75aa99fdb846de3d577d636d3e3d85ffd06b93455"
49
+ "size": 2520,
50
+ "sha256": "00a82a58e18fb33934f449a9fb379a2f90023570ceed1676eae0aed59b02ddeb"
51
51
  },
52
52
  "dashboard/handlers.d.ts": {
53
- "size": 1005,
54
- "sha256": "8babac3cb64bbafe95e2af9027c455883975ff12fa94e0c2595144ce0de23c00"
53
+ "size": 993,
54
+ "sha256": "430f5b294d960e13e2ec39ed5c22f6655f85c46c2de9455c222505c67298ec6a"
55
55
  },
56
56
  "dashboard/handlers.js": {
57
- "size": 5393,
58
- "sha256": "e5721a46d4ff7f21ad63b99b0e9aa292990625ce112a0eb369298da1d76efca5"
57
+ "size": 5390,
58
+ "sha256": "a8644a932c2da07231098f9adc31cfca00727b448524107ce23ad87a239f53f3"
59
59
  },
60
60
  "dashboard/routes.d.ts": {
61
- "size": 1046,
62
- "sha256": "5b9e394b3da713c1a92d403fa381cb52941504b8835e454a243cd73514999d0b"
61
+ "size": 997,
62
+ "sha256": "0ac87bc54e57978e8a9ac5924d248e1f984927bb6c819ea5528ab1179b0b50b8"
63
63
  },
64
64
  "dashboard/routes.js": {
65
- "size": 2525,
66
- "sha256": "36949c49bb24344512e1149e63a2c0053df90fafe1e1d6d1533744d684ab8755"
65
+ "size": 2491,
66
+ "sha256": "c82eac2dc0edeb2dcbe02d7a63b13c275c57a6afc751c5573c08ad9839dacd8c"
67
67
  },
68
68
  "dashboard/ui.d.ts": {
69
69
  "size": 117,
70
70
  "sha256": "4862b41e0477f01afa0dbb446d4553b65c22ed774cd1e2db3489059ced392f94"
71
71
  },
72
72
  "dashboard/ui.js": {
73
- "size": 61060,
74
- "sha256": "e3a8bbde4374b2452321250a0a9f827bfef268c2407588191049578863f4f135"
73
+ "size": 60952,
74
+ "sha256": "e23e82d187f834bfe270f89926cc9411e0745ddac50a96b048084ca333ece862"
75
75
  },
76
76
  "index.d.ts": {
77
- "size": 2324,
78
- "sha256": "838f8ad0e67c1b262c6001aa11528431e004b96ca601358b435610ffc2611d34"
77
+ "size": 2227,
78
+ "sha256": "c0c856fbfdea4b500129e82674634970bb687adbfc1e88833a17996ce49522df"
79
79
  },
80
80
  "index.js": {
81
- "size": 3079,
82
- "sha256": "eef7c370b293a2ac1f29e8c89e3af17d78d6b8ed59e877171f443e20e4095296"
81
+ "size": 2978,
82
+ "sha256": "d8304fc1d431fce445a3c2aed2635effbcae124299790a5999079ab86a885aaa"
83
83
  },
84
- "migrations/20260331000001_create_zin_debugger_entries_table.d.ts": {
85
- "size": 317,
86
- "sha256": "40fd91bf69322477f21e68a11f4c403062743d1f83cdabf57ae6238485ef7de9"
84
+ "migrations/20260331000001_create_zin_trace_entries_table.d.ts": {
85
+ "size": 304,
86
+ "sha256": "7d99b4d7c02855d6e68ad87e39dffff5fec83a406bdf2414665c23ba3ce8711d"
87
87
  },
88
- "migrations/20260331000001_create_zin_debugger_entries_table.js": {
89
- "size": 971,
90
- "sha256": "f399cf9e7549c58323fb624e894fc10affa49f30ceabfeaf6d19df0bfa78f6e6"
88
+ "migrations/20260331000001_create_zin_trace_entries_table.js": {
89
+ "size": 952,
90
+ "sha256": "fa4065ba8fafbbf4294ad8f0e2fa51c923e39ac9ee4e91e17f6c4e686687bb1b"
91
91
  },
92
- "migrations/20260331000002_create_zin_debugger_entries_tags_table.d.ts": {
93
- "size": 317,
94
- "sha256": "01b5ea90fe3702829f7b57cfd1dd0f8a0675b69025bae378bf9c3049007118c8"
92
+ "migrations/20260331000002_create_zin_trace_entries_tags_table.d.ts": {
93
+ "size": 304,
94
+ "sha256": "6d07c135b0fa34acbda2f7f0788e4db657b00ba7c7459e2b203c8ded9c55b9dc"
95
95
  },
96
- "migrations/20260331000002_create_zin_debugger_entries_tags_table.js": {
97
- "size": 759,
98
- "sha256": "04e90930ca434eba6b84df1ff43d1fc3888e4c276088f496b25b619c52ef383e"
96
+ "migrations/20260331000002_create_zin_trace_entries_tags_table.js": {
97
+ "size": 737,
98
+ "sha256": "614280fc7f3a5826c3e8334e2a38d707b562217fb68a660aff0d9a6c072f7b2a"
99
99
  },
100
- "migrations/20260331000003_create_zin_debugger_monitoring_table.d.ts": {
101
- "size": 321,
102
- "sha256": "955a2e7581187333726cb7a9812fd88d47b5b15caa83445e614a8830c4574e2b"
100
+ "migrations/20260331000003_create_zin_trace_monitoring_table.d.ts": {
101
+ "size": 308,
102
+ "sha256": "019e84f70cedf363eaf85a115d935abed841627b4a31d7fa34131352d402187a"
103
103
  },
104
- "migrations/20260331000003_create_zin_debugger_monitoring_table.js": {
105
- "size": 541,
106
- "sha256": "d391e864f39b32b2274a56edceddb2c9a99e2ec0717c58d748a1027376178552"
104
+ "migrations/20260331000003_create_zin_trace_monitoring_table.js": {
105
+ "size": 522,
106
+ "sha256": "dd80ea1fdfe6ea7f57330b2dff530d97ee8054081436f41bbf234b814cb1df19"
107
107
  },
108
108
  "migrations/index.d.ts": {
109
- "size": 296,
110
- "sha256": "c13325fc4a2b24e4fd315c1cce7acdecc058c18e18214491c0f18e1f8683bb4b"
109
+ "size": 280,
110
+ "sha256": "0ba7bc9421754ff489f6947463c13e7e9c80558eb6611a818f3baab3b518a502"
111
111
  },
112
112
  "migrations/index.js": {
113
- "size": 395,
114
- "sha256": "06943fc21aac77f4abc674ad8ee5b3e99f9b0288c81418b1e0a7414c05644f76"
113
+ "size": 386,
114
+ "sha256": "9c6729e47f61ec3e7678678ee44926ffd4dbb7d47017ea2b25f063346ffdd04f"
115
115
  },
116
116
  "plugin.d.ts": {
117
117
  "size": 16,
118
118
  "sha256": "71d366165dd36f1675aa253a76262b226fb6c62e5ab632746b8aea61c0c625fc"
119
119
  },
120
120
  "plugin.js": {
121
- "size": 137,
122
- "sha256": "5bffe9afc797c089441795f49f1526f16b0e67518264289e399866fc04835aa8"
121
+ "size": 128,
122
+ "sha256": "2d05bec517f57634276220b8a946125059fe0e320c42295b4f5a985431bb3d1c"
123
123
  },
124
124
  "register.d.ts": {
125
125
  "size": 16,
126
126
  "sha256": "71d366165dd36f1675aa253a76262b226fb6c62e5ab632746b8aea61c0c625fc"
127
127
  },
128
128
  "register.js": {
129
- "size": 6737,
130
- "sha256": "9348c5b08f47174e61da3c73ec26ad524c9672e0bea35d5c20d99b1884083c6d"
129
+ "size": 6594,
130
+ "sha256": "52569e73b6b6a441e8aa816ec01b343c09976fab4e8daf0680db5a92f1a343e4"
131
131
  },
132
132
  "storage/DebuggerStorage.d.ts": {
133
- "size": 535,
134
- "sha256": "315bf62a9ea1ba379f0ebcbf9cebff1dea3a53af07995755e21d7b692001c9b9"
133
+ "size": 517,
134
+ "sha256": "c9c215aaa414f7b0c1fec6c82b054fc52bdf97af58f96f35c7f96672fb859c31"
135
135
  },
136
136
  "storage/DebuggerStorage.js": {
137
- "size": 7454,
138
- "sha256": "f01ea439b2d9218abeba9308b5d10ee9ad96cec7cd9466dc7ce3105e7f0440f4"
137
+ "size": 7442,
138
+ "sha256": "5ecce0fcfcf695df587a7b90a7a5c7efd2e64ad13c9f2d104b392f89f34f0dc4"
139
+ },
140
+ "storage/TraceStorage.d.ts": {
141
+ "size": 517,
142
+ "sha256": "c9c215aaa414f7b0c1fec6c82b054fc52bdf97af58f96f35c7f96672fb859c31"
143
+ },
144
+ "storage/TraceStorage.js": {
145
+ "size": 7442,
146
+ "sha256": "5ecce0fcfcf695df587a7b90a7a5c7efd2e64ad13c9f2d104b392f89f34f0dc4"
139
147
  },
140
148
  "storage/index.d.ts": {
141
- "size": 112,
142
- "sha256": "a791dcfbe0a0aaf714cd6cc40815219ad480e93bc89dbd7395806ec0e4e1ecb8"
149
+ "size": 100,
150
+ "sha256": "1f2c1529bd5fa9c7a026695e4a8b184973b80d149afc778a8d86bcd03cbe093c"
143
151
  },
144
152
  "storage/index.js": {
145
- "size": 56,
146
- "sha256": "5984122a9c183fd8e18e076d586d518051a5c3f095a839ce6a9db4126e416c9d"
153
+ "size": 50,
154
+ "sha256": "d916e8e3abb1b1087f6b184851b0e6265e53380d7857b008e745d566aad15d44"
147
155
  },
148
156
  "types.d.ts": {
149
- "size": 6993,
150
- "sha256": "73f034b042bee2e230160f5008e05a12b7cae5d0feecb121d836615eb6d43b1b"
157
+ "size": 6938,
158
+ "sha256": "562c69ecad5866c46f6889145e2fe93d4a0dbb2eb37397cb91a06d99a3fa93c0"
151
159
  },
152
160
  "types.js": {
153
- "size": 699,
154
- "sha256": "585b7580ced5db88092befebd23b5b94da7ce7730f678958a349bff1579a3f79"
161
+ "size": 696,
162
+ "sha256": "1cc1b7f7ff4760e6b4ccd642f6aa2f35453c4f40e6a360c3a525304729407836"
155
163
  },
156
164
  "ui.d.ts": {
157
- "size": 408,
158
- "sha256": "e672daee8f407a58d070b155724f6834df13588f40799d50f951ee884b5081b0"
165
+ "size": 382,
166
+ "sha256": "d8b33d77c1c6ccd82e140db83a1bf57edb4d62c03cd15360c2c2d70bd2b392ee"
159
167
  },
160
168
  "ui.js": {
161
- "size": 304,
162
- "sha256": "5bdc5a3e6ad6693fd39b154fba693de16fae93d5e95ef908c77ba03b53dd1e81"
169
+ "size": 285,
170
+ "sha256": "3a3cef493f0b9789a7198da620fd7e72ea2377fed3eba25572bb0d222155a446"
163
171
  },
164
172
  "utils/authTag.d.ts": {
165
173
  "size": 150,
166
174
  "sha256": "db7ed89155df453650ad2805d8cd7069a70b14eacac2d97c4b0bebd45df4bdd4"
167
175
  },
168
176
  "utils/authTag.js": {
169
- "size": 540,
170
- "sha256": "ec3bdfd3bbc9ae820964caa21b061907321d0d9c6b9ce24275cf7c5408387b8d"
177
+ "size": 534,
178
+ "sha256": "0c506812967c17548162ce0f28d96089b023865883ee8cfd0824a94084580afb"
171
179
  },
172
180
  "utils/familyHash.d.ts": {
173
181
  "size": 60,
@@ -178,20 +186,20 @@
178
186
  "sha256": "f60526423e69fa5c461b0f5d8dac90b1f0c18149609cd1109226f1c8d985f223"
179
187
  },
180
188
  "utils/redact.d.ts": {
181
- "size": 376,
182
- "sha256": "0ce4549ec31a9b2858d095d4ff5bf677e9fd99f3ff62c065b92cc01fdf38da47"
189
+ "size": 366,
190
+ "sha256": "7fa4b2a84023d0851aa3e8769cb7689180a4f7bbbcdc85c27c9dd4e36510b1b5"
183
191
  },
184
192
  "utils/redact.js": {
185
- "size": 1633,
186
- "sha256": "2ee18d55a77935ac32b04f40dea1257781293fe13f0ea8a2858b0e2631800159"
193
+ "size": 1623,
194
+ "sha256": "88feb439d34ce10ed8aa15e942fbd7627ff15eb1844ad7774779452987a30ad8"
187
195
  },
188
196
  "utils/requestFilter.d.ts": {
189
197
  "size": 195,
190
198
  "sha256": "467f6ed959bd25731649b4afc6d555d316c4724f9586e0bd922881af41ba6746"
191
199
  },
192
200
  "utils/requestFilter.js": {
193
- "size": 1026,
194
- "sha256": "67448f03631a349572f6f3ddfcb2545e868138501dff3775ecb2e218000a39d4"
201
+ "size": 1020,
202
+ "sha256": "6432c94a0c9330a22a15c8ff81caaad177400f67f4aac1dc3de2155504bee852"
195
203
  },
196
204
  "utils/stackFrame.d.ts": {
197
205
  "size": 149,
@@ -202,164 +210,164 @@
202
210
  "sha256": "ca651d04eaea48a240ec7c5714a0f8f1d92f2fcdaa6e735df0009b56de8c29ed"
203
211
  },
204
212
  "watchers/AuthWatcher.d.ts": {
205
- "size": 231,
206
- "sha256": "8ceed9e2f794611da26676e44886efdb20728f9082736e62127edac4582033a8"
213
+ "size": 225,
214
+ "sha256": "b062850fa3edd3d58bb293025b1dfc5491e39807b3ab3e4cc1c1aaa31316a7a3"
207
215
  },
208
216
  "watchers/AuthWatcher.js": {
209
- "size": 1338,
210
- "sha256": "2312a54a86d6639ccd03db8a7988dc5b4d24ad75322c07b185542b323a7d5507"
217
+ "size": 1326,
218
+ "sha256": "11a963deaf2b879a229d71af0bebc9d5b8be9bb094fb3c30e1676d5895c77845"
211
219
  },
212
220
  "watchers/BatchWatcher.d.ts": {
213
- "size": 283,
214
- "sha256": "c86b597d8c118fbcf9f870b633dfe7fbff7db77df3681bc6c70beabba2d77e1b"
221
+ "size": 277,
222
+ "sha256": "b1870a793f2dc7ed22705c8a2a6b6f970fa1bcd0229dbf12f185323b35f3bdcf"
215
223
  },
216
224
  "watchers/BatchWatcher.js": {
217
- "size": 1239,
218
- "sha256": "5e7f9c4ed9276661939743ed447374832906293a357cdf7350f33575e897d59f"
225
+ "size": 1227,
226
+ "sha256": "879a739de9ce2c3c5b57bdad73eae2ce3de94ccdc7e666ca52a50b45b0bc9bfd"
219
227
  },
220
228
  "watchers/CacheWatcher.d.ts": {
221
- "size": 271,
222
- "sha256": "325d3c9e513776f2b763f24b3f0146a2a8c1d16e3e9349ae051891396b33cd4f"
229
+ "size": 265,
230
+ "sha256": "cd30b7e8cd9ccd90a125073198dd2ad098706ab6e545f6152f94ccaeb616fa52"
223
231
  },
224
232
  "watchers/CacheWatcher.js": {
225
- "size": 1530,
226
- "sha256": "2011020f7b5d9c651a5bcc85727603c37a58b5a739b9b6303589d1417d40e542"
233
+ "size": 1518,
234
+ "sha256": "1dae7cddf7940d7e6d478429d846390c9a862e30bd72bc68182b85f92b425dd0"
227
235
  },
228
236
  "watchers/CommandWatcher.d.ts": {
229
- "size": 273,
230
- "sha256": "6760a69c45927c1b381edf9fee86f236931845f0537f90c0ba160853b6972369"
237
+ "size": 267,
238
+ "sha256": "f1b3a3253e7265c7b56a74ba674cd23426ea5227a33abb1bde0d941e2a02e894"
231
239
  },
232
240
  "watchers/CommandWatcher.js": {
233
- "size": 1412,
234
- "sha256": "7d6766391d1f1f6ffa86f7bd29803918f1b396af29a85f4082575e796c40450f"
241
+ "size": 1400,
242
+ "sha256": "5c1b2a1f090493ecb09c0c32bc0cedb0422e256fae0dbfbb65c032802a193b18"
235
243
  },
236
244
  "watchers/DumpWatcher.d.ts": {
237
- "size": 314,
238
- "sha256": "72910ff111e35a442a97b1fda784c952af7d77a6790cbdd39ddf8c5c7d7c2ce4"
245
+ "size": 308,
246
+ "sha256": "13f81df217258b0827027cbba35b5ad549453fe2709bd4fcc66d845b065500ec"
239
247
  },
240
248
  "watchers/DumpWatcher.js": {
241
- "size": 1342,
242
- "sha256": "30276e196458caee34d6192c73d1b6e3ab93c09c7edd93d61688a075d5efd6e5"
249
+ "size": 1330,
250
+ "sha256": "ebeddd7077f881001af25c01983946b98d8d3855f7fe686f2768b5947b871051"
243
251
  },
244
252
  "watchers/EventWatcher.d.ts": {
245
- "size": 229,
246
- "sha256": "245ba4b27c890d0b18dcce2b8c7e1fd64347372160c6ebd0a79fca9b097f01b8"
253
+ "size": 223,
254
+ "sha256": "f5a173b0f92490e417d175011d4191d8eafe9ff75d712adb55cece5368753ef6"
247
255
  },
248
256
  "watchers/EventWatcher.js": {
249
- "size": 1200,
250
- "sha256": "a4730b74510b8eb2446ec78b0f5be4076f93945c7c68e50354a84141f8b7af74"
257
+ "size": 1188,
258
+ "sha256": "ff32b44b48b6e313d15ba4370a845faf74ff8b03504a6336c19f183ff91a90dc"
251
259
  },
252
260
  "watchers/ExceptionWatcher.d.ts": {
253
- "size": 150,
254
- "sha256": "90509da30a621cef3a101a7f0dc482ca9faa9f92b4158989a66133644cd080c0"
261
+ "size": 144,
262
+ "sha256": "d1b5f5668a2fa3069b5b9f9c8852b66e1ef6489e5d1f47381bde582d6e406960"
255
263
  },
256
264
  "watchers/ExceptionWatcher.js": {
257
- "size": 3466,
258
- "sha256": "30d8fd9042625e7a5e9619b02bf8d60eff8e3f515269067ec5ab9d281c13de62"
265
+ "size": 3451,
266
+ "sha256": "e4fe3d1df1c7d547b740bdf993503f43b80b6cc55aa151fe0cdc0f59b4442491"
259
267
  },
260
268
  "watchers/GateWatcher.d.ts": {
261
- "size": 268,
262
- "sha256": "c8e440c0a32d0b3a96c8304fa2b70db72b9148f35f481446c31cc87f7e801d89"
269
+ "size": 262,
270
+ "sha256": "2fb8699f8679d2442aa322d40fb5cd4bb4e944804bdc6b094a9daf406a407abf"
263
271
  },
264
272
  "watchers/GateWatcher.js": {
265
- "size": 1231,
266
- "sha256": "62618a9526870f7bc9a7e5242a61798f74cda3f7da798b10bc20512a86e2692c"
273
+ "size": 1219,
274
+ "sha256": "f318cdeec954ce0bba97be1dc11a6dff935b081e6b6a417c614be1934fa47f04"
267
275
  },
268
276
  "watchers/HttpClientWatcher.d.ts": {
269
- "size": 289,
270
- "sha256": "e577a28bf4335fb6bdc222c8d6b07fd8ba8ec1ca627ba42e3f7c52e76d6f5450"
277
+ "size": 283,
278
+ "sha256": "1b48661bff79b2f72464c978ad7e6dcf011197ca4a3014e64e99b70437b3e5a1"
271
279
  },
272
280
  "watchers/HttpClientWatcher.js": {
273
- "size": 1597,
274
- "sha256": "f8b6b0accd8a7fdc6e2e5cf1ee953e0543c9a11f4eba497b00d2c47066529e54"
281
+ "size": 1585,
282
+ "sha256": "f1b71876adca3aff24bb0ccb3977672fab37c9babfb0088da1f44fa8eb1bca1e"
275
283
  },
276
284
  "watchers/HttpWatcher.d.ts": {
277
- "size": 102,
278
- "sha256": "b1da47d14a79f8be7be60a4ca105f1be579383d33a4da71eb26a703ea37934d2"
285
+ "size": 96,
286
+ "sha256": "ce9a95a670f755193fd74ce721dbfa4b30f20c879a6566ebb35229b3b2435429"
279
287
  },
280
288
  "watchers/HttpWatcher.js": {
281
- "size": 2652,
282
- "sha256": "2af67c9201a881150c0d715d226a831689663f8be0b6fe462fea0f0a04b046a8"
289
+ "size": 2631,
290
+ "sha256": "7f2e735930dca72dbf34675c6f484b6a2a65259f935c809c0084881f980ec001"
283
291
  },
284
292
  "watchers/JobWatcher.d.ts": {
285
- "size": 447,
286
- "sha256": "4e391ba756706ab54b6978e4a3ff928a13cd0128435aa8a2d5131124ea7a2d6b"
293
+ "size": 441,
294
+ "sha256": "097c043678ac6b218096c9b04bc5922fc8ed2a31e9f53abc36f6e0d6f63180f0"
287
295
  },
288
296
  "watchers/JobWatcher.js": {
289
- "size": 3218,
290
- "sha256": "6d645f3296a0dc6e95b3e5f4b093e0cda19f7e16c8990692232314fc55c4e68e"
297
+ "size": 3206,
298
+ "sha256": "6d38f51c490b26f3770777c251535c8053bcf17609f00f24900a1796e7cbca16"
291
299
  },
292
300
  "watchers/LogWatcher.d.ts": {
293
- "size": 101,
294
- "sha256": "4c843b1d1f47b04dc98ff4e77c70324082b1eaeea36a387656640f39aa8e33b9"
301
+ "size": 95,
302
+ "sha256": "f3ddc5f8b58c6c86ac6b464dd48e5a55e79ab2bf2e735feacffc7480e4ccc0c4"
295
303
  },
296
304
  "watchers/LogWatcher.js": {
297
- "size": 1682,
298
- "sha256": "8f56fae11c27026919c883f5aa69a64c0898a09c40bd3ca2d6bdb5a5df47d50f"
305
+ "size": 1670,
306
+ "sha256": "15b0ce1344465b6526e1db1d92434eb8813e274b1b0b4fb9197dc68b7af92ea0"
299
307
  },
300
308
  "watchers/MailWatcher.d.ts": {
301
- "size": 220,
302
- "sha256": "82d97e040c1def5d7c7a0617898587b176ddef11678eb5961bb6305652ae29f6"
309
+ "size": 214,
310
+ "sha256": "aa4a677b61f231cc29c314d3091dfecf45cac30f164f6ac5e99f0f3d1e714154"
303
311
  },
304
312
  "watchers/MailWatcher.js": {
305
- "size": 1226,
306
- "sha256": "382d6ebf6c2007b8f25fc0029c359af2854791612dd1bcdb006c942001bd486a"
313
+ "size": 1214,
314
+ "sha256": "2bc8cb264822107cfc29d0341559f517186190492e594cb7ab1942b6ae28ea56"
307
315
  },
308
316
  "watchers/MiddlewareWatcher.d.ts": {
309
- "size": 265,
310
- "sha256": "b793df7db674284ee2b406d63cfb3493e2f027ff4a131acf6730256efc1dc9f0"
317
+ "size": 259,
318
+ "sha256": "5a28b472c835bd0f79ec9d3670516544bc5b6da9f1f1bed5159be0cba39304a1"
311
319
  },
312
320
  "watchers/MiddlewareWatcher.js": {
313
- "size": 1145,
314
- "sha256": "0ffc126f57593679afdc60f5c37ee29d41cff8eb8cb86824a94c727468750c72"
321
+ "size": 1133,
322
+ "sha256": "90cb56a6266e5793a6f1b93b769ad74caf83bef1cf80fa4cc67a87185c401d19"
315
323
  },
316
324
  "watchers/ModelWatcher.d.ts": {
317
- "size": 291,
318
- "sha256": "1c77882b7d83f1aabe402bafb19e8d2d3a69afb1e336846ce009842ad9c735e4"
325
+ "size": 285,
326
+ "sha256": "4c05112af855a92b3f3f97c6b61bf1b07444bcb7d5a17f3e0ae19da4a85faf1c"
319
327
  },
320
328
  "watchers/ModelWatcher.js": {
321
- "size": 1142,
322
- "sha256": "ac16fa35e3f51e5a5fffcdb9c1057335935d3ab0178abe9394e2da8842a96d46"
329
+ "size": 1130,
330
+ "sha256": "de3d1e379c7b1289167fe0b1dbf2aa5a54137b841df17c8d397ee656d9ce37fd"
323
331
  },
324
332
  "watchers/NotificationWatcher.d.ts": {
325
- "size": 243,
326
- "sha256": "9b1a5196c24ce523f677c88360653d269f8ba14cbf28ad4aeb732f7611fb9294"
333
+ "size": 237,
334
+ "sha256": "02fdf20e32ab8c93c10ce5c93a88b2349e73a30e9eb391413b8a401899d1053e"
327
335
  },
328
336
  "watchers/NotificationWatcher.js": {
329
- "size": 1254,
330
- "sha256": "3743860c1b8b1c91eff006b2c111c0a9d7c4ac84efc5968edd8fb830a66321c7"
337
+ "size": 1242,
338
+ "sha256": "e72cc2fcc622f44b907560ca664a3f88a388ac444c7a0c290c00e95899b123a3"
331
339
  },
332
340
  "watchers/QueryWatcher.d.ts": {
333
- "size": 103,
334
- "sha256": "28f53ebfbbaf011e0eae5bc4cf1a496d7d998adda5b2f3bb8fa06a77a52acc4f"
341
+ "size": 97,
342
+ "sha256": "6832a282b1658398264ede770d41c6aa86cb13625a3a87dac27fbaf7d2f7be6a"
335
343
  },
336
344
  "watchers/QueryWatcher.js": {
337
- "size": 2674,
338
- "sha256": "cfce3dce30c8ea0317b4e53bcfb65e2fd9de235af261cbee16888618933b8987"
345
+ "size": 2642,
346
+ "sha256": "76a7fdd42a340141810f541ed89845c303f5498db7bdcfa29d8d576cf36c8efb"
339
347
  },
340
348
  "watchers/RedisWatcher.d.ts": {
341
- "size": 300,
342
- "sha256": "22ad070105d663137226843ac7a8ff74f96aed5f20a79529b1973d5378ffff3b"
349
+ "size": 294,
350
+ "sha256": "0a0f0ef387cb02a20cb9a4308a87b48dbfbf1076b7e3090801fef7c9c794ec84"
343
351
  },
344
352
  "watchers/RedisWatcher.js": {
345
- "size": 1250,
346
- "sha256": "275346fa5c2c1920b3a6b3f7aa99fdb2b4ad4e5237f6718c906ac1d8f570a907"
353
+ "size": 1238,
354
+ "sha256": "e242b2d02403e3b6dbee53645ecf70d7bd4c011148fdef6864807538f6ed2b27"
347
355
  },
348
356
  "watchers/ScheduleWatcher.d.ts": {
349
- "size": 297,
350
- "sha256": "00a4033c4dbaaac35db0c9171c617980515e25d63a446a6ec1819a47fee110d8"
357
+ "size": 291,
358
+ "sha256": "1d049cfc2472876bf11c4d091c2a889b948bfb2ac714da2aed8affd965f311a6"
351
359
  },
352
360
  "watchers/ScheduleWatcher.js": {
353
- "size": 1294,
354
- "sha256": "c74b0f03e325e9fed019630f30dc434cd95987305d2c09e8cbd5e73f15ef07dc"
361
+ "size": 1282,
362
+ "sha256": "4eec3209ee19f6e3b2d8e6ebfa0966a3e86c006d015d896c19ea18973bf2d89e"
355
363
  },
356
364
  "watchers/ViewWatcher.d.ts": {
357
- "size": 208,
358
- "sha256": "75f352277853b3a1980c95332556aacbf9b438d4595d9071655b1afc82df3bf0"
365
+ "size": 202,
366
+ "sha256": "980ac30b405d135cd754de1462722147944a37b4f5271ce769afb6b71fa748b1"
359
367
  },
360
368
  "watchers/ViewWatcher.js": {
361
- "size": 1081,
362
- "sha256": "cead371420d111c59655cce113c8dfe56c08367b3ef5e2136e6c407bc0fbe7e8"
369
+ "size": 1069,
370
+ "sha256": "76fb157123788c5eef67324b712f7217a4ad55163769bbeea39e0e66d7df9e0c"
363
371
  }
364
372
  }
365
373
  }
@@ -4,10 +4,10 @@
4
4
  * Auth is NOT applied here — callers add middleware via routeOptions.
5
5
  */
6
6
  import { appConfig, Router, useDatabase } from '@zintrust/core';
7
- import { TraceConfig } from '../config';
8
- import { TraceStorage } from '../storage';
9
- import { addMonitoring, clearEntries, getBatch, getEntry, getMonitoring, getStats, listEntries, removeMonitoring, setHandlerStorage, } from './handlers';
10
- import { buildDashboardHtml } from './ui';
7
+ import { TraceConfig } from '../config.js';
8
+ import { TraceStorage } from '../storage/index.js';
9
+ import { addMonitoring, clearEntries, getBatch, getEntry, getMonitoring, getStats, listEntries, removeMonitoring, setHandlerStorage, } from './handlers.js';
10
+ import { buildDashboardHtml } from './ui.js';
11
11
  const resolveDashboardConnectionName = (connectionName) => {
12
12
  const explicitConnection = connectionName?.trim();
13
13
  if (explicitConnection !== undefined && explicitConnection !== '') {
package/dist/index.js CHANGED
@@ -8,43 +8,43 @@
8
8
  // ---------------------------------------------------------------------------
9
9
  // Config
10
10
  // ---------------------------------------------------------------------------
11
- export { TraceConfig } from './config';
11
+ export { TraceConfig } from './config.js';
12
12
  // ---------------------------------------------------------------------------
13
13
  // Storage
14
14
  // ---------------------------------------------------------------------------
15
- export { TraceStorage } from './storage';
15
+ export { TraceStorage } from './storage/index.js';
16
16
  // ---------------------------------------------------------------------------
17
17
  // Context
18
18
  // ---------------------------------------------------------------------------
19
- export { TraceContext } from './context';
19
+ export { TraceContext } from './context.js';
20
20
  // ---------------------------------------------------------------------------
21
21
  // Dashboard
22
22
  // ---------------------------------------------------------------------------
23
- export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes';
23
+ export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes.js';
24
24
  // ---------------------------------------------------------------------------
25
25
  // Watchers (named re-exports for use with custom wiring)
26
26
  // ---------------------------------------------------------------------------
27
- export { AuthWatcher } from './watchers/AuthWatcher';
28
- export { BatchWatcher } from './watchers/BatchWatcher';
29
- export { CacheWatcher } from './watchers/CacheWatcher';
30
- export { CommandWatcher } from './watchers/CommandWatcher';
31
- export { DumpWatcher } from './watchers/DumpWatcher';
32
- export { EventWatcher } from './watchers/EventWatcher';
33
- export { ExceptionWatcher } from './watchers/ExceptionWatcher';
34
- export { GateWatcher } from './watchers/GateWatcher';
35
- export { HttpClientWatcher } from './watchers/HttpClientWatcher';
36
- export { HttpWatcher } from './watchers/HttpWatcher';
37
- export { JobWatcher } from './watchers/JobWatcher';
38
- export { LogWatcher } from './watchers/LogWatcher';
39
- export { MailWatcher } from './watchers/MailWatcher';
40
- export { MiddlewareWatcher } from './watchers/MiddlewareWatcher';
41
- export { ModelWatcher } from './watchers/ModelWatcher';
42
- export { NotificationWatcher } from './watchers/NotificationWatcher';
43
- export { QueryWatcher } from './watchers/QueryWatcher';
44
- export { RedisWatcher } from './watchers/RedisWatcher';
45
- export { ScheduleWatcher } from './watchers/ScheduleWatcher';
46
- export { ViewWatcher } from './watchers/ViewWatcher';
27
+ export { AuthWatcher } from './watchers/AuthWatcher.js';
28
+ export { BatchWatcher } from './watchers/BatchWatcher.js';
29
+ export { CacheWatcher } from './watchers/CacheWatcher.js';
30
+ export { CommandWatcher } from './watchers/CommandWatcher.js';
31
+ export { DumpWatcher } from './watchers/DumpWatcher.js';
32
+ export { EventWatcher } from './watchers/EventWatcher.js';
33
+ export { ExceptionWatcher } from './watchers/ExceptionWatcher.js';
34
+ export { GateWatcher } from './watchers/GateWatcher.js';
35
+ export { HttpClientWatcher } from './watchers/HttpClientWatcher.js';
36
+ export { HttpWatcher } from './watchers/HttpWatcher.js';
37
+ export { JobWatcher } from './watchers/JobWatcher.js';
38
+ export { LogWatcher } from './watchers/LogWatcher.js';
39
+ export { MailWatcher } from './watchers/MailWatcher.js';
40
+ export { MiddlewareWatcher } from './watchers/MiddlewareWatcher.js';
41
+ export { ModelWatcher } from './watchers/ModelWatcher.js';
42
+ export { NotificationWatcher } from './watchers/NotificationWatcher.js';
43
+ export { QueryWatcher } from './watchers/QueryWatcher.js';
44
+ export { RedisWatcher } from './watchers/RedisWatcher.js';
45
+ export { ScheduleWatcher } from './watchers/ScheduleWatcher.js';
46
+ export { ViewWatcher } from './watchers/ViewWatcher.js';
47
47
  // ---------------------------------------------------------------------------
48
48
  // Types
49
49
  // ---------------------------------------------------------------------------
50
- export { EntryType } from './types';
50
+ export { EntryType } from './types.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Migration: CreateZinDebuggerEntriesTable
3
- * Creates the main entries table for @zintrust/system-debugger
2
+ * Migration: CreateZinTraceEntriesTable
3
+ * Creates the main entries table for @zintrust/trace
4
4
  */
5
5
  import { type IDatabase } from '@zintrust/core';
6
6
  export interface Migration {
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Migration: CreateZinDebuggerEntriesTable
3
- * Creates the main entries table for @zintrust/system-debugger
2
+ * Migration: CreateZinTraceEntriesTable
3
+ * Creates the main entries table for @zintrust/trace
4
4
  */
5
5
  import { MigrationSchema } from '@zintrust/core';
6
6
  export const migration = {
7
7
  async up(db) {
8
8
  const schema = MigrationSchema.create(db);
9
- await schema.create('zin_debugger_entries', (table) => {
9
+ await schema.create('zin_trace_entries', (table) => {
10
10
  table.id();
11
11
  table.uuid('uuid').unique();
12
12
  table.string('batch_id');
@@ -23,6 +23,6 @@ export const migration = {
23
23
  },
24
24
  async down(db) {
25
25
  const schema = MigrationSchema.create(db);
26
- await schema.dropIfExists('zin_debugger_entries');
26
+ await schema.dropIfExists('zin_trace_entries');
27
27
  },
28
28
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Migration: CreateZinDebuggerEntriesTagsTable
3
- * Creates the tag join table for @zintrust/system-debugger
2
+ * Migration: CreateZinTraceEntriesTagsTable
3
+ * Creates the tag join table for @zintrust/trace
4
4
  */
5
5
  import { type IDatabase } from '@zintrust/core';
6
6
  export interface Migration {
@@ -1,21 +1,21 @@
1
1
  /**
2
- * Migration: CreateZinDebuggerEntriesTagsTable
3
- * Creates the tag join table for @zintrust/system-debugger
2
+ * Migration: CreateZinTraceEntriesTagsTable
3
+ * Creates the tag join table for @zintrust/trace
4
4
  */
5
5
  import { MigrationSchema } from '@zintrust/core';
6
6
  export const migration = {
7
7
  async up(db) {
8
8
  const schema = MigrationSchema.create(db);
9
- await schema.create('zin_debugger_entries_tags', (table) => {
9
+ await schema.create('zin_trace_entries_tags', (table) => {
10
10
  table.string('entry_uuid');
11
11
  table.string('tag');
12
12
  table.unique(['entry_uuid', 'tag']);
13
13
  table.index('tag');
14
- table.foreign('entry_uuid').references('uuid').on('zin_debugger_entries').onDelete('CASCADE');
14
+ table.foreign('entry_uuid').references('uuid').on('zin_trace_entries').onDelete('CASCADE');
15
15
  });
16
16
  },
17
17
  async down(db) {
18
18
  const schema = MigrationSchema.create(db);
19
- await schema.dropIfExists('zin_debugger_entries_tags');
19
+ await schema.dropIfExists('zin_trace_entries_tags');
20
20
  },
21
21
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Migration: CreateZinDebuggerMonitoringTable
3
- * Creates the tag watchlist table for @zintrust/system-debugger
2
+ * Migration: CreateZinTraceMonitoringTable
3
+ * Creates the tag watchlist table for @zintrust/trace
4
4
  */
5
5
  import { type IDatabase } from '@zintrust/core';
6
6
  export interface Migration {
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Migration: CreateZinDebuggerMonitoringTable
3
- * Creates the tag watchlist table for @zintrust/system-debugger
2
+ * Migration: CreateZinTraceMonitoringTable
3
+ * Creates the tag watchlist table for @zintrust/trace
4
4
  */
5
5
  import { MigrationSchema } from '@zintrust/core';
6
6
  export const migration = {
7
7
  async up(db) {
8
8
  const schema = MigrationSchema.create(db);
9
- await schema.create('zin_debugger_monitoring', (table) => {
9
+ await schema.create('zin_trace_monitoring', (table) => {
10
10
  table.string('tag').primary();
11
11
  });
12
12
  },
13
13
  async down(db) {
14
14
  const schema = MigrationSchema.create(db);
15
- await schema.dropIfExists('zin_debugger_monitoring');
15
+ await schema.dropIfExists('zin_trace_monitoring');
16
16
  },
17
17
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Migrations index for @zintrust/system-debugger
2
+ * Migrations index for @zintrust/trace
3
3
  * Export all migrations as an ordered array.
4
4
  */
5
- export type { Migration } from './20260331000001_create_zin_debugger_entries_table';
6
- export declare const migrations: import("./20260331000001_create_zin_debugger_entries_table").Migration[];
5
+ export type { Migration } from './20260331000001_create_zin_trace_entries_table';
6
+ export declare const migrations: import("./20260331000001_create_zin_trace_entries_table").Migration[];
@@ -1,4 +1,4 @@
1
- import { migration as createEntries } from './20260331000001_create_zin_debugger_entries_table.js';
2
- import { migration as createEntriesTags } from './20260331000002_create_zin_debugger_entries_tags_table.js';
3
- import { migration as createMonitoring } from './20260331000003_create_zin_debugger_monitoring_table.js';
1
+ import { migration as createEntries } from './20260331000001_create_zin_trace_entries_table.js';
2
+ import { migration as createEntriesTags } from './20260331000002_create_zin_trace_entries_tags_table.js';
3
+ import { migration as createMonitoring } from './20260331000003_create_zin_trace_monitoring_table.js';
4
4
  export const migrations = [createEntries, createEntriesTags, createMonitoring];
package/dist/register.js CHANGED
@@ -19,9 +19,9 @@
19
19
  * middleware: ['admin'],
20
20
  * });
21
21
  */
22
- import { TraceConfig } from './config';
23
- import { TraceContext } from './context';
24
- import { TraceStorage } from './storage';
22
+ import { TraceConfig } from './config.js';
23
+ import { TraceContext } from './context.js';
24
+ import { TraceStorage } from './storage/index.js';
25
25
  const globalTraceRegisterState = globalThis;
26
26
  globalTraceRegisterState.__zintrust_system_trace_plugin_requested__ = true;
27
27
  const traceAlreadyInitialized = globalTraceRegisterState.__zintrust_system_trace_register_initialized__ === true;
@@ -84,26 +84,26 @@ if (!traceAlreadyInitialized && Env) {
84
84
  TraceContext.setRequestContextImpl(core.RequestContext);
85
85
  }
86
86
  const [{ HttpWatcher }, { QueryWatcher }, { LogWatcher }, { ExceptionWatcher }, { JobWatcher }, { CacheWatcher }, { ScheduleWatcher }, { MailWatcher }, { AuthWatcher }, { EventWatcher }, { ModelWatcher }, { NotificationWatcher }, { RedisWatcher }, { GateWatcher }, { MiddlewareWatcher }, { CommandWatcher }, { BatchWatcher }, { DumpWatcher }, { ViewWatcher }, { HttpClientWatcher },] = await Promise.all([
87
- import('./watchers/HttpWatcher'),
88
- import('./watchers/QueryWatcher'),
89
- import('./watchers/LogWatcher'),
90
- import('./watchers/ExceptionWatcher'),
91
- import('./watchers/JobWatcher'),
92
- import('./watchers/CacheWatcher'),
93
- import('./watchers/ScheduleWatcher'),
94
- import('./watchers/MailWatcher'),
95
- import('./watchers/AuthWatcher'),
96
- import('./watchers/EventWatcher'),
97
- import('./watchers/ModelWatcher'),
98
- import('./watchers/NotificationWatcher'),
99
- import('./watchers/RedisWatcher'),
100
- import('./watchers/GateWatcher'),
101
- import('./watchers/MiddlewareWatcher'),
102
- import('./watchers/CommandWatcher'),
103
- import('./watchers/BatchWatcher'),
104
- import('./watchers/DumpWatcher'),
105
- import('./watchers/ViewWatcher'),
106
- import('./watchers/HttpClientWatcher'),
87
+ import('./watchers/HttpWatcher.js'),
88
+ import('./watchers/QueryWatcher.js'),
89
+ import('./watchers/LogWatcher.js'),
90
+ import('./watchers/ExceptionWatcher.js'),
91
+ import('./watchers/JobWatcher.js'),
92
+ import('./watchers/CacheWatcher.js'),
93
+ import('./watchers/ScheduleWatcher.js'),
94
+ import('./watchers/MailWatcher.js'),
95
+ import('./watchers/AuthWatcher.js'),
96
+ import('./watchers/EventWatcher.js'),
97
+ import('./watchers/ModelWatcher.js'),
98
+ import('./watchers/NotificationWatcher.js'),
99
+ import('./watchers/RedisWatcher.js'),
100
+ import('./watchers/GateWatcher.js'),
101
+ import('./watchers/MiddlewareWatcher.js'),
102
+ import('./watchers/CommandWatcher.js'),
103
+ import('./watchers/BatchWatcher.js'),
104
+ import('./watchers/DumpWatcher.js'),
105
+ import('./watchers/ViewWatcher.js'),
106
+ import('./watchers/HttpClientWatcher.js'),
107
107
  ]);
108
108
  const watcherArgs = { storage, config, db };
109
109
  HttpWatcher.register({ ...watcherArgs, registerMiddleware: resolveRegisterMiddleware() });
@@ -1,4 +1,4 @@
1
- import { familyHash } from '../utils/familyHash';
1
+ import { familyHash } from '../utils/familyHash.js';
2
2
  const TABLE_ENTRIES = 'zin_trace_entries';
3
3
  const TABLE_TAGS = 'zin_trace_entries_tags';
4
4
  const TABLE_MONITORING = 'zin_trace_monitoring';
@@ -1,4 +1,4 @@
1
- import { familyHash } from '../utils/familyHash';
1
+ import { familyHash } from '../utils/familyHash.js';
2
2
  const TABLE_ENTRIES = 'zin_trace_entries';
3
3
  const TABLE_TAGS = 'zin_trace_entries_tags';
4
4
  const TABLE_MONITORING = 'zin_trace_monitoring';
@@ -1 +1 @@
1
- export { TraceStorage } from './TraceStorage';
1
+ export { TraceStorage } from './TraceStorage.js';
package/dist/ui.js CHANGED
@@ -4,4 +4,4 @@
4
4
  * Import this subpath when you only need trace dashboard registration
5
5
  * without pulling in the package root re-export surface.
6
6
  */
7
- export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes';
7
+ export { registerTraceDashboard, registerTraceRoutes } from './dashboard/routes.js';
@@ -1,4 +1,4 @@
1
- import { TraceContext } from '../context';
1
+ import { TraceContext } from '../context.js';
2
2
  const resolveAuthTag = () => {
3
3
  const userId = TraceContext.getUserId();
4
4
  if (userId === undefined || userId === '')
@@ -1,4 +1,4 @@
1
- import { TraceContext } from '../context';
1
+ import { TraceContext } from '../context.js';
2
2
  const normalizePath = (input) => {
3
3
  const trimmed = input.trim();
4
4
  const [pathOnly] = trimmed.split('?');
@@ -2,9 +2,9 @@
2
2
  * AuthWatcher — records login/logout/failed auth events.
3
3
  * Credentials are never stored; only the outcome.
4
4
  */
5
- import { TraceContext } from '../context';
6
- import { EntryType } from '../types';
7
- import { RequestFilter } from '../utils/requestFilter';
5
+ import { TraceContext } from '../context.js';
6
+ import { EntryType } from '../types.js';
7
+ import { RequestFilter } from '../utils/requestFilter.js';
8
8
  let _storage = null;
9
9
  let _ignoreRoutes = [];
10
10
  const emit = (event, userId) => {
@@ -1,6 +1,6 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { RequestFilter } from '../utils/requestFilter.js';
4
4
  let _storage = null;
5
5
  let _ignoreRoutes = [];
6
6
  const emit = (name, total, processed, failed, status) => {
@@ -2,11 +2,11 @@
2
2
  * CacheWatcher — records cache operations.
3
3
  * Call CacheWatcher.emit() from within your cache driver instrumentation.
4
4
  */
5
- import { TraceContext } from '../context';
6
- import { EntryType } from '../types';
7
- import { AuthTag } from '../utils/authTag';
8
- import { redactString } from '../utils/redact';
9
- import { RequestFilter } from '../utils/requestFilter';
5
+ import { TraceContext } from '../context.js';
6
+ import { EntryType } from '../types.js';
7
+ import { AuthTag } from '../utils/authTag.js';
8
+ import { redactString } from '../utils/redact.js';
9
+ import { RequestFilter } from '../utils/requestFilter.js';
10
10
  let _storage = null;
11
11
  let _redactionFields = [];
12
12
  let _ignoreRoutes = [];
@@ -1,7 +1,7 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { redactObject } from '../utils/redact';
4
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { redactObject } from '../utils/redact.js';
4
+ import { RequestFilter } from '../utils/requestFilter.js';
5
5
  let _storage = null;
6
6
  let _redactKeys = [];
7
7
  let _ignoreRoutes = [];
@@ -1,6 +1,6 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { RequestFilter } from '../utils/requestFilter.js';
4
4
  let _storage = null;
5
5
  let _enabled = false;
6
6
  let _ignoreRoutes = [];
@@ -1,7 +1,7 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { AuthTag } from '../utils/authTag';
4
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { AuthTag } from '../utils/authTag.js';
4
+ import { RequestFilter } from '../utils/requestFilter.js';
5
5
  let _storage = null;
6
6
  let _ignoreRoutes = [];
7
7
  const emit = (name, listenerCount, payload) => {
@@ -4,12 +4,12 @@
4
4
  * from within its error handler, or the register() side-effect adds a
5
5
  * process-level unhandledRejection/uncaughtException listener as fallback.
6
6
  */
7
- import { TraceContext } from '../context';
8
- import { EntryType } from '../types';
9
- import { AuthTag } from '../utils/authTag';
10
- import { familyHash } from '../utils/familyHash';
11
- import { RequestFilter } from '../utils/requestFilter';
12
- import { parseStackFrameLine } from '../utils/stackFrame';
7
+ import { TraceContext } from '../context.js';
8
+ import { EntryType } from '../types.js';
9
+ import { AuthTag } from '../utils/authTag.js';
10
+ import { familyHash } from '../utils/familyHash.js';
11
+ import { RequestFilter } from '../utils/requestFilter.js';
12
+ import { parseStackFrameLine } from '../utils/stackFrame.js';
13
13
  const getLinePreview = (_file, _line) => {
14
14
  return {};
15
15
  };
@@ -1,6 +1,6 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { RequestFilter } from '../utils/requestFilter.js';
4
4
  let _storage = null;
5
5
  let _ignoreRoutes = [];
6
6
  const emit = (ability, result, userId, subject) => {
@@ -1,8 +1,8 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { AuthTag } from '../utils/authTag';
4
- import { redactHeaders } from '../utils/redact';
5
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { AuthTag } from '../utils/authTag.js';
4
+ import { redactHeaders } from '../utils/redact.js';
5
+ import { RequestFilter } from '../utils/requestFilter.js';
6
6
  let _storage = null;
7
7
  let _redactHeaderNames = [];
8
8
  let _ignoreRoutes = [];
@@ -1,8 +1,8 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { AuthTag } from '../utils/authTag';
4
- import { redactHeaders, redactObject } from '../utils/redact';
5
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { AuthTag } from '../utils/authTag.js';
4
+ import { redactHeaders, redactObject } from '../utils/redact.js';
5
+ import { RequestFilter } from '../utils/requestFilter.js';
6
6
  const normalizeHeaders = (headers) => {
7
7
  if (!headers)
8
8
  return {};
@@ -3,10 +3,10 @@
3
3
  * Subsystems must call JobWatcher.onDispatch / onProcess / onFail from
4
4
  * within their queue implementation for full tracking.
5
5
  */
6
- import { TraceContext } from '../context';
7
- import { EntryType } from '../types';
8
- import { RequestFilter } from '../utils/requestFilter';
9
- import { parseStackFrameLine } from '../utils/stackFrame';
6
+ import { TraceContext } from '../context.js';
7
+ import { EntryType } from '../types.js';
8
+ import { RequestFilter } from '../utils/requestFilter.js';
9
+ import { parseStackFrameLine } from '../utils/stackFrame.js';
10
10
  // Module-level storage ref so emit helpers can be called from outside.
11
11
  let _storage = null;
12
12
  let _ignoreRoutes = [];
@@ -2,10 +2,10 @@
2
2
  * LogWatcher — captures Logger output via Logger.addSink().
3
3
  */
4
4
  import { Logger } from '@zintrust/core';
5
- import { TraceContext } from '../context';
6
- import { EntryType } from '../types';
7
- import { AuthTag } from '../utils/authTag';
8
- import { RequestFilter } from '../utils/requestFilter';
5
+ import { TraceContext } from '../context.js';
6
+ import { EntryType } from '../types.js';
7
+ import { AuthTag } from '../utils/authTag.js';
8
+ import { RequestFilter } from '../utils/requestFilter.js';
9
9
  const LEVEL_PRIORITY = {
10
10
  debug: 0,
11
11
  info: 1,
@@ -2,9 +2,9 @@
2
2
  * MailWatcher — records mail dispatch intent.
3
3
  * Body is never captured; only to/subject/template.
4
4
  */
5
- import { TraceContext } from '../context';
6
- import { EntryType } from '../types';
7
- import { RequestFilter } from '../utils/requestFilter';
5
+ import { TraceContext } from '../context.js';
6
+ import { EntryType } from '../types.js';
7
+ import { RequestFilter } from '../utils/requestFilter.js';
8
8
  let _storage = null;
9
9
  let _ignoreRoutes = [];
10
10
  const emit = (to, subject, template) => {
@@ -1,6 +1,6 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { RequestFilter } from '../utils/requestFilter.js';
4
4
  let _storage = null;
5
5
  let _ignoreRoutes = [];
6
6
  const emit = (name, event, duration) => {
@@ -1,6 +1,6 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { RequestFilter } from '../utils/requestFilter.js';
4
4
  let _storage = null;
5
5
  let _ignoreRoutes = [];
6
6
  const emit = (action, model, id, changes) => {
@@ -1,7 +1,7 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { AuthTag } from '../utils/authTag';
4
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { AuthTag } from '../utils/authTag.js';
4
+ import { RequestFilter } from '../utils/requestFilter.js';
5
5
  let _storage = null;
6
6
  let _ignoreRoutes = [];
7
7
  const emit = (notification, channels, notifiable) => {
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * QueryWatcher — hooks into Database.onAfterQuery to record SQL entries.
3
3
  */
4
- import { TraceContext } from '../context';
5
- import { TraceStorage } from '../storage';
6
- import { EntryType } from '../types';
7
- import { AuthTag } from '../utils/authTag';
8
- import { RequestFilter } from '../utils/requestFilter';
4
+ import { TraceContext } from '../context.js';
5
+ import { TraceStorage } from '../storage/index.js';
6
+ import { EntryType } from '../types.js';
7
+ import { AuthTag } from '../utils/authTag.js';
8
+ import { RequestFilter } from '../utils/requestFilter.js';
9
9
  const bindingsInterpolated = (sql, params) => {
10
10
  // Inline params for display only — safe, not for re-execution.
11
11
  let i = 0;
@@ -1,7 +1,7 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { AuthTag } from '../utils/authTag';
4
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { AuthTag } from '../utils/authTag.js';
4
+ import { RequestFilter } from '../utils/requestFilter.js';
5
5
  let _storage = null;
6
6
  let _ignoreRoutes = [];
7
7
  /** Emit a redis command trace. Key/value payload is intentionally omitted for security. */
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * ScheduleWatcher — records scheduled task runs and outcomes.
3
3
  */
4
- import { TraceContext } from '../context';
5
- import { EntryType } from '../types';
6
- import { RequestFilter } from '../utils/requestFilter';
4
+ import { TraceContext } from '../context.js';
5
+ import { EntryType } from '../types.js';
6
+ import { RequestFilter } from '../utils/requestFilter.js';
7
7
  let _storage = null;
8
8
  let _ignoreRoutes = [];
9
9
  const emit = (name, expression, status, duration, output) => {
@@ -1,6 +1,6 @@
1
- import { TraceContext } from '../context';
2
- import { EntryType } from '../types';
3
- import { RequestFilter } from '../utils/requestFilter';
1
+ import { TraceContext } from '../context.js';
2
+ import { EntryType } from '../types.js';
3
+ import { RequestFilter } from '../utils/requestFilter.js';
4
4
  let _storage = null;
5
5
  let _ignoreRoutes = [];
6
6
  const emit = (template, duration) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/trace",
3
- "version": "0.4.75",
3
+ "version": "0.4.76",
4
4
  "description": "Trace assistant for ZinTrust: logs requests, queries, exceptions, jobs, and more.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -53,7 +53,7 @@
53
53
  "telescope"
54
54
  ],
55
55
  "scripts": {
56
- "build": "npx lint-staged",
56
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.migrations.json && node ../../scripts/fix-dist-esm-imports.mjs dist",
57
57
  "prepublishOnly": "npm run build"
58
58
  }
59
59
  }