@revealui/core 0.11.1 → 0.12.1

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 (69) hide show
  1. package/README.md +2 -3
  2. package/dist/api/rest.js +4 -4
  3. package/dist/client/admin/utils/csrf.d.ts +9 -6
  4. package/dist/client/admin/utils/csrf.d.ts.map +1 -1
  5. package/dist/client/admin/utils/csrf.js +9 -6
  6. package/dist/collections/operations/fieldValidation.d.ts +5 -16
  7. package/dist/collections/operations/fieldValidation.d.ts.map +1 -1
  8. package/dist/collections/operations/fieldValidation.js +5 -20
  9. package/dist/collections/operations/update.d.ts.map +1 -1
  10. package/dist/collections/operations/update.js +4 -2
  11. package/dist/database/safe-parse.js +3 -3
  12. package/dist/database/universal-postgres.d.ts.map +1 -1
  13. package/dist/database/universal-postgres.js +10 -13
  14. package/dist/deployment-mode.d.ts +44 -0
  15. package/dist/deployment-mode.d.ts.map +1 -0
  16. package/dist/deployment-mode.js +58 -0
  17. package/dist/error-handling/error-boundary.d.ts +16 -2
  18. package/dist/error-handling/error-boundary.d.ts.map +1 -1
  19. package/dist/error-handling/error-boundary.js +18 -3
  20. package/dist/error-handling/error-reporter.d.ts +1 -1
  21. package/dist/error-handling/error-reporter.d.ts.map +1 -1
  22. package/dist/error-handling/error-reporter.js +6 -2
  23. package/dist/error-handling/index.d.ts +1 -1
  24. package/dist/error-handling/index.d.ts.map +1 -1
  25. package/dist/error-handling/index.js +1 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +4 -2
  28. package/dist/instance/logger.d.ts +18 -7
  29. package/dist/instance/logger.d.ts.map +1 -1
  30. package/dist/instance/logger.js +66 -17
  31. package/dist/license/mint-client.d.ts +72 -0
  32. package/dist/license/mint-client.d.ts.map +1 -0
  33. package/dist/license/mint-client.js +175 -0
  34. package/dist/license.d.ts +109 -0
  35. package/dist/license.d.ts.map +1 -1
  36. package/dist/license.js +153 -6
  37. package/dist/observability/index.d.ts +5 -2
  38. package/dist/observability/index.d.ts.map +1 -1
  39. package/dist/observability/index.js +5 -2
  40. package/dist/observability/logger.d.ts +5 -3
  41. package/dist/observability/logger.d.ts.map +1 -1
  42. package/dist/observability/logger.js +5 -3
  43. package/dist/relationships/analyzer.js +2 -2
  44. package/dist/revforge-license.d.ts +9 -0
  45. package/dist/revforge-license.d.ts.map +1 -1
  46. package/dist/revforge-license.js +12 -2
  47. package/dist/storage/object-storage.d.ts.map +1 -1
  48. package/dist/storage/object-storage.js +3 -3
  49. package/dist/utils/errors.d.ts +16 -4
  50. package/dist/utils/errors.d.ts.map +1 -1
  51. package/dist/utils/errors.js +14 -2
  52. package/dist/utils/json-parsing.d.ts.map +1 -1
  53. package/dist/utils/json-parsing.js +4 -2
  54. package/dist/utils/logger-client.d.ts +6 -27
  55. package/dist/utils/logger-client.d.ts.map +1 -1
  56. package/dist/utils/logger-client.js +5 -51
  57. package/dist/utils/logger-server.d.ts +16 -20
  58. package/dist/utils/logger-server.d.ts.map +1 -1
  59. package/dist/utils/logger-server.js +40 -53
  60. package/dist/utils/logger.d.ts +7 -9
  61. package/dist/utils/logger.d.ts.map +1 -1
  62. package/dist/utils/logger.js +6 -8
  63. package/package.json +154 -76
  64. package/dist/caching/index.d.ts +0 -6
  65. package/dist/caching/index.d.ts.map +0 -1
  66. package/dist/caching/index.js +0 -5
  67. package/dist/observability/tracing.d.ts +0 -149
  68. package/dist/observability/tracing.d.ts.map +0 -1
  69. package/dist/observability/tracing.js +0 -380
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revealui/core",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "description": "RevealUI's runtime engine — admin UI, REST API, auth, rich text, plugin system, and access control. The heart of the open-source platform.",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -23,10 +23,9 @@
23
23
  "pg": "^8.22.0",
24
24
  "yjs": "^13.6.31",
25
25
  "zod": "^4.4.3",
26
- "@revealui/cache": "0.2.4",
27
- "@revealui/contracts": "0.7.0",
26
+ "@revealui/contracts": "0.8.1",
28
27
  "@revealui/resilience": "0.2.4",
29
- "@revealui/security": "0.4.3",
28
+ "@revealui/security": "0.5.1",
30
29
  "@revealui/utils": "0.3.6"
31
30
  },
32
31
  "devDependencies": {
@@ -46,279 +45,358 @@
46
45
  "exports": {
47
46
  ".": {
48
47
  "types": "./dist/index.d.ts",
49
- "import": "./dist/index.js"
48
+ "import": "./dist/index.js",
49
+ "default": "./dist/index.js"
50
50
  },
51
51
  "./license": {
52
52
  "types": "./dist/license.d.ts",
53
- "import": "./dist/license.js"
53
+ "import": "./dist/license.js",
54
+ "default": "./dist/license.js"
55
+ },
56
+ "./license/mint-client": {
57
+ "types": "./dist/license/mint-client.d.ts",
58
+ "import": "./dist/license/mint-client.js",
59
+ "default": "./dist/license/mint-client.js"
60
+ },
61
+ "./deployment-mode": {
62
+ "types": "./dist/deployment-mode.d.ts",
63
+ "import": "./dist/deployment-mode.js",
64
+ "default": "./dist/deployment-mode.js"
54
65
  },
55
66
  "./revforge-license": {
56
67
  "types": "./dist/revforge-license.d.ts",
57
- "import": "./dist/revforge-license.js"
68
+ "import": "./dist/revforge-license.js",
69
+ "default": "./dist/revforge-license.js"
58
70
  },
59
71
  "./features": {
60
72
  "types": "./dist/features.d.ts",
61
- "import": "./dist/features.js"
73
+ "import": "./dist/features.js",
74
+ "default": "./dist/features.js"
62
75
  },
63
76
  "./server": {
64
77
  "types": "./dist/server/index.d.ts",
65
- "import": "./dist/server/index.js"
78
+ "import": "./dist/server/index.js",
79
+ "default": "./dist/server/index.js"
66
80
  },
67
81
  "./types": {
68
82
  "types": "./dist/types/index.d.ts",
69
- "import": "./dist/types/index.js"
83
+ "import": "./dist/types/index.js",
84
+ "default": "./dist/types/index.js"
70
85
  },
71
86
  "./types/core": {
72
87
  "types": "./dist/types/core.d.ts",
73
- "import": "./dist/types/core.js"
88
+ "import": "./dist/types/core.js",
89
+ "default": "./dist/types/core.js"
74
90
  },
75
91
  "./types/schema": {
76
92
  "types": "./dist/types/schema.d.ts",
77
- "import": "./dist/types/schema.js"
93
+ "import": "./dist/types/schema.js",
94
+ "default": "./dist/types/schema.js"
78
95
  },
79
96
  "./types/generated": {
80
97
  "types": "./dist/types/generated.d.ts",
81
- "import": "./dist/types/generated.js"
98
+ "import": "./dist/types/generated.js",
99
+ "default": "./dist/types/generated.js"
82
100
  },
83
101
  "./types/admin": {
84
102
  "types": "./dist/types/admin.d.ts",
85
- "import": "./dist/types/admin.js"
103
+ "import": "./dist/types/admin.js",
104
+ "default": "./dist/types/admin.js"
86
105
  },
87
106
  "./types/frontend": {
88
107
  "types": "./dist/types/frontend.d.ts",
89
- "import": "./dist/types/frontend.js"
108
+ "import": "./dist/types/frontend.js",
109
+ "default": "./dist/types/frontend.js"
90
110
  },
91
111
  "./generated": {
92
112
  "types": "./dist/generated/index.d.ts",
93
- "import": "./dist/generated/index.js"
113
+ "import": "./dist/generated/index.js",
114
+ "default": "./dist/generated/index.js"
94
115
  },
95
116
  "./generated/types": {
96
117
  "types": "./dist/generated/types/index.d.ts",
97
- "import": "./dist/generated/types/index.js"
118
+ "import": "./dist/generated/types/index.js",
119
+ "default": "./dist/generated/types/index.js"
98
120
  },
99
121
  "./generated/types/admin": {
100
122
  "types": "./dist/generated/types/admin.d.ts",
101
- "import": "./dist/generated/types/admin.js"
123
+ "import": "./dist/generated/types/admin.js",
124
+ "default": "./dist/generated/types/admin.js"
102
125
  },
103
126
  "./generated/types/neon": {
104
127
  "types": "./dist/generated/types/neon.d.ts",
105
- "import": "./dist/generated/types/neon.js"
128
+ "import": "./dist/generated/types/neon.js",
129
+ "default": "./dist/generated/types/neon.js"
106
130
  },
107
131
  "./config": {
108
132
  "types": "./dist/config/index.d.ts",
109
- "import": "./dist/config/index.js"
133
+ "import": "./dist/config/index.js",
134
+ "default": "./dist/config/index.js"
110
135
  },
111
136
  "./database": {
112
137
  "types": "./dist/database/index.d.ts",
113
- "import": "./dist/database/index.js"
138
+ "import": "./dist/database/index.js",
139
+ "default": "./dist/database/index.js"
114
140
  },
115
141
  "./database/ssl-config": {
116
142
  "types": "./dist/database/ssl-config.d.ts",
117
- "import": "./dist/database/ssl-config.js"
143
+ "import": "./dist/database/ssl-config.js",
144
+ "default": "./dist/database/ssl-config.js"
118
145
  },
119
146
  "./database/type-adapter": {
120
147
  "types": "./dist/database/type-adapter.d.ts",
121
- "import": "./dist/database/type-adapter.js"
148
+ "import": "./dist/database/type-adapter.js",
149
+ "default": "./dist/database/type-adapter.js"
122
150
  },
123
151
  "./storage": {
124
152
  "types": "./dist/storage/index.d.ts",
125
- "import": "./dist/storage/index.js"
153
+ "import": "./dist/storage/index.js",
154
+ "default": "./dist/storage/index.js"
126
155
  },
127
156
  "./auth": {
128
157
  "types": "./dist/auth/index.d.ts",
129
- "import": "./dist/auth/index.js"
158
+ "import": "./dist/auth/index.js",
159
+ "default": "./dist/auth/index.js"
130
160
  },
131
161
  "./admin": {
132
162
  "types": "./dist/client/admin/index.d.ts",
133
- "import": "./dist/client/admin/index.js"
163
+ "import": "./dist/client/admin/index.js",
164
+ "default": "./dist/client/admin/index.js"
134
165
  },
135
166
  "./admin/utils/serializeConfig": {
136
167
  "types": "./dist/client/admin/utils/serializeConfig.d.ts",
137
- "import": "./dist/client/admin/utils/serializeConfig.js"
168
+ "import": "./dist/client/admin/utils/serializeConfig.js",
169
+ "default": "./dist/client/admin/utils/serializeConfig.js"
138
170
  },
139
171
  "./admin/utils/apiClient": {
140
172
  "types": "./dist/client/admin/utils/apiClient.d.ts",
141
- "import": "./dist/client/admin/utils/apiClient.js"
173
+ "import": "./dist/client/admin/utils/apiClient.js",
174
+ "default": "./dist/client/admin/utils/apiClient.js"
175
+ },
176
+ "./admin/utils/csrf": {
177
+ "types": "./dist/client/admin/utils/csrf.d.ts",
178
+ "import": "./dist/client/admin/utils/csrf.js",
179
+ "default": "./dist/client/admin/utils/csrf.js"
142
180
  },
143
181
  "./richtext": {
144
182
  "types": "./dist/richtext/index.d.ts",
145
- "import": "./dist/richtext/index.js"
183
+ "import": "./dist/richtext/index.js",
184
+ "default": "./dist/richtext/index.js"
146
185
  },
147
186
  "./richtext/client": {
148
187
  "types": "./dist/client/richtext/index.d.ts",
149
- "import": "./dist/client/richtext/index.js"
188
+ "import": "./dist/client/richtext/index.js",
189
+ "default": "./dist/client/richtext/index.js"
150
190
  },
151
191
  "./richtext/react": {
152
192
  "types": "./dist/richtext/exports/react/index.d.ts",
153
- "import": "./dist/richtext/exports/react/index.js"
193
+ "import": "./dist/richtext/exports/react/index.js",
194
+ "default": "./dist/richtext/exports/react/index.js"
154
195
  },
155
196
  "./richtext/html": {
156
197
  "types": "./dist/richtext/exports/html/index.d.ts",
157
- "import": "./dist/richtext/exports/html/index.js"
198
+ "import": "./dist/richtext/exports/html/index.js",
199
+ "default": "./dist/richtext/exports/html/index.js"
158
200
  },
159
201
  "./richtext/rsc": {
160
202
  "types": "./dist/richtext/exports/server/rsc.d.tsx",
161
- "import": "./dist/richtext/exports/server/rsc.js"
203
+ "import": "./dist/richtext/exports/server/rsc.js",
204
+ "default": "./dist/richtext/exports/server/rsc.js"
162
205
  },
163
206
  "./translations": {
164
207
  "types": "./dist/translations/index.d.ts",
165
- "import": "./dist/translations/index.js"
208
+ "import": "./dist/translations/index.js",
209
+ "default": "./dist/translations/index.js"
166
210
  },
167
211
  "./ui": {
168
212
  "types": "./dist/client/ui/index.d.tsx",
169
- "import": "./dist/client/ui/index.js"
213
+ "import": "./dist/client/ui/index.js",
214
+ "default": "./dist/client/ui/index.js"
170
215
  },
171
216
  "./plugins": {
172
217
  "types": "./dist/plugins/index.d.ts",
173
- "import": "./dist/plugins/index.js"
218
+ "import": "./dist/plugins/index.js",
219
+ "default": "./dist/plugins/index.js"
174
220
  },
175
221
  "./api/rest": {
176
222
  "types": "./dist/api/rest.d.ts",
177
- "import": "./dist/api/rest.js"
223
+ "import": "./dist/api/rest.js",
224
+ "default": "./dist/api/rest.js"
178
225
  },
179
226
  "./api/compression": {
180
227
  "types": "./dist/api/compression.d.ts",
181
- "import": "./dist/api/compression.js"
228
+ "import": "./dist/api/compression.js",
229
+ "default": "./dist/api/compression.js"
182
230
  },
183
231
  "./api/payload-optimization": {
184
232
  "types": "./dist/api/payload-optimization.d.ts",
185
- "import": "./dist/api/payload-optimization.js"
233
+ "import": "./dist/api/payload-optimization.js",
234
+ "default": "./dist/api/payload-optimization.js"
186
235
  },
187
236
  "./api/rate-limit": {
188
237
  "types": "./dist/api/rate-limit.d.ts",
189
- "import": "./dist/api/rate-limit.js"
238
+ "import": "./dist/api/rate-limit.js",
239
+ "default": "./dist/api/rate-limit.js"
190
240
  },
191
241
  "./api/response-cache": {
192
242
  "types": "./dist/api/response-cache.d.ts",
193
- "import": "./dist/api/response-cache.js"
243
+ "import": "./dist/api/response-cache.js",
244
+ "default": "./dist/api/response-cache.js"
194
245
  },
195
246
  "./client": {
196
247
  "types": "./dist/client/index.d.ts",
197
- "import": "./dist/client/index.js"
248
+ "import": "./dist/client/index.js",
249
+ "default": "./dist/client/index.js"
198
250
  },
199
251
  "./client/ui": {
200
252
  "types": "./dist/client/ui/index.d.ts",
201
- "import": "./dist/client/ui/index.js"
253
+ "import": "./dist/client/ui/index.js",
254
+ "default": "./dist/client/ui/index.js"
202
255
  },
203
256
  "./client/admin": {
204
257
  "types": "./dist/client/admin/index.d.ts",
205
- "import": "./dist/client/admin/index.js"
258
+ "import": "./dist/client/admin/index.js",
259
+ "default": "./dist/client/admin/index.js"
206
260
  },
207
261
  "./client/richtext": {
208
262
  "types": "./dist/client/richtext/index.d.ts",
209
- "import": "./dist/client/richtext/index.js"
263
+ "import": "./dist/client/richtext/index.js",
264
+ "default": "./dist/client/richtext/index.js"
210
265
  },
211
266
  "./types/interfaces/app": {
212
267
  "types": "./dist/types/interfaces/app.d.ts",
213
- "import": "./dist/types/interfaces/app.js"
268
+ "import": "./dist/types/interfaces/app.js",
269
+ "default": "./dist/types/interfaces/app.js"
214
270
  },
215
271
  "./nextjs": {
216
272
  "types": "./dist/nextjs/index.d.ts",
217
- "import": "./dist/nextjs/index.js"
273
+ "import": "./dist/nextjs/index.js",
274
+ "default": "./dist/nextjs/index.js"
218
275
  },
219
276
  "./nextjs/withRevealUI": {
220
277
  "types": "./dist/nextjs/withRevealUI.d.ts",
221
- "import": "./dist/nextjs/withRevealUI.js"
278
+ "import": "./dist/nextjs/withRevealUI.js",
279
+ "default": "./dist/nextjs/withRevealUI.js"
222
280
  },
223
281
  "./utils/logger": {
224
282
  "types": "./dist/utils/logger.d.ts",
225
- "import": "./dist/utils/logger.js"
283
+ "import": "./dist/utils/logger.js",
284
+ "default": "./dist/utils/logger.js"
226
285
  },
227
286
  "./utils/logger/client": {
228
287
  "types": "./dist/utils/logger-client.d.ts",
229
- "import": "./dist/utils/logger-client.js"
288
+ "import": "./dist/utils/logger-client.js",
289
+ "default": "./dist/utils/logger-client.js"
230
290
  },
231
291
  "./utils/logger/server": {
232
292
  "types": "./dist/utils/logger-server.d.ts",
233
- "import": "./dist/utils/logger-server.js"
293
+ "import": "./dist/utils/logger-server.js",
294
+ "default": "./dist/utils/logger-server.js"
234
295
  },
235
296
  "./security": {
236
297
  "types": "./dist/security/index.d.ts",
237
- "import": "./dist/security/index.js"
298
+ "import": "./dist/security/index.js",
299
+ "default": "./dist/security/index.js"
238
300
  },
239
301
  "./license-encryption": {
240
302
  "types": "./dist/license-encryption.d.ts",
241
- "import": "./dist/license-encryption.js"
303
+ "import": "./dist/license-encryption.js",
304
+ "default": "./dist/license-encryption.js"
242
305
  },
243
306
  "./observability": {
244
307
  "types": "./dist/observability/index.d.ts",
245
- "import": "./dist/observability/index.js"
308
+ "import": "./dist/observability/index.js",
309
+ "default": "./dist/observability/index.js"
246
310
  },
247
311
  "./observability/logger": {
248
312
  "types": "./dist/observability/logger.d.ts",
249
- "import": "./dist/observability/logger.js"
313
+ "import": "./dist/observability/logger.js",
314
+ "default": "./dist/observability/logger.js"
250
315
  },
251
316
  "./observability/metrics": {
252
317
  "types": "./dist/observability/metrics.d.ts",
253
- "import": "./dist/observability/metrics.js"
318
+ "import": "./dist/observability/metrics.js",
319
+ "default": "./dist/observability/metrics.js"
254
320
  },
255
321
  "./observability/alerts": {
256
322
  "types": "./dist/observability/alerts.d.ts",
257
- "import": "./dist/observability/alerts.js"
323
+ "import": "./dist/observability/alerts.js",
324
+ "default": "./dist/observability/alerts.js"
258
325
  },
259
326
  "./utils/cache": {
260
327
  "types": "./dist/utils/cache.d.ts",
261
- "import": "./dist/utils/cache.js"
328
+ "import": "./dist/utils/cache.js",
329
+ "default": "./dist/utils/cache.js"
262
330
  },
263
331
  "./utils/deep-clone": {
264
332
  "types": "./dist/utils/deep-clone.d.ts",
265
- "import": "./dist/utils/deep-clone.js"
333
+ "import": "./dist/utils/deep-clone.js",
334
+ "default": "./dist/utils/deep-clone.js"
266
335
  },
267
336
  "./utils/errors": {
268
337
  "types": "./dist/utils/errors.d.ts",
269
- "import": "./dist/utils/errors.js"
338
+ "import": "./dist/utils/errors.js",
339
+ "default": "./dist/utils/errors.js"
270
340
  },
271
341
  "./jobs": {
272
342
  "types": "./dist/jobs/index.d.ts",
273
- "import": "./dist/jobs/index.js"
343
+ "import": "./dist/jobs/index.js",
344
+ "default": "./dist/jobs/index.js"
274
345
  },
275
346
  "./monitoring": {
276
347
  "types": "./dist/monitoring/index.d.ts",
277
- "import": "./dist/monitoring/index.js"
348
+ "import": "./dist/monitoring/index.js",
349
+ "default": "./dist/monitoring/index.js"
278
350
  },
279
351
  "./monitoring/process-registry": {
280
352
  "types": "./dist/monitoring/process-registry.d.ts",
281
- "import": "./dist/monitoring/process-registry.js"
353
+ "import": "./dist/monitoring/process-registry.js",
354
+ "default": "./dist/monitoring/process-registry.js"
282
355
  },
283
356
  "./monitoring/query-monitor": {
284
357
  "types": "./dist/monitoring/query-monitor.d.ts",
285
- "import": "./dist/monitoring/query-monitor.js"
358
+ "import": "./dist/monitoring/query-monitor.js",
359
+ "default": "./dist/monitoring/query-monitor.js"
286
360
  },
287
361
  "./utils/error-responses": {
288
362
  "types": "./dist/utils/error-responses.d.ts",
289
- "import": "./dist/utils/error-responses.js"
363
+ "import": "./dist/utils/error-responses.js",
364
+ "default": "./dist/utils/error-responses.js"
290
365
  },
291
366
  "./utils/request-context": {
292
367
  "types": "./dist/utils/request-context.d.ts",
293
- "import": "./dist/utils/request-context.js"
368
+ "import": "./dist/utils/request-context.js",
369
+ "default": "./dist/utils/request-context.js"
294
370
  },
295
371
  "./error-handling": {
296
372
  "types": "./dist/error-handling/index.d.ts",
297
- "import": "./dist/error-handling/index.js"
373
+ "import": "./dist/error-handling/index.js",
374
+ "default": "./dist/error-handling/index.js"
298
375
  },
299
376
  "./error-handling/error-reporter": {
300
377
  "types": "./dist/error-handling/error-reporter.d.ts",
301
- "import": "./dist/error-handling/error-reporter.js"
302
- },
303
- "./caching": {
304
- "types": "./dist/caching/index.d.ts",
305
- "import": "./dist/caching/index.js"
378
+ "import": "./dist/error-handling/error-reporter.js",
379
+ "default": "./dist/error-handling/error-reporter.js"
306
380
  },
307
381
  "./cache/query-cache": {
308
382
  "types": "./dist/cache/query-cache.d.ts",
309
- "import": "./dist/cache/query-cache.js"
383
+ "import": "./dist/cache/query-cache.js",
384
+ "default": "./dist/cache/query-cache.js"
310
385
  },
311
386
  "./optimization/code-splitting": {
312
387
  "types": "./dist/optimization/code-splitting.d.ts",
313
- "import": "./dist/optimization/code-splitting.js"
388
+ "import": "./dist/optimization/code-splitting.js",
389
+ "default": "./dist/optimization/code-splitting.js"
314
390
  },
315
391
  "./richtext/lexical": {
316
392
  "types": "./dist/richtext/lexical.d.ts",
317
- "import": "./dist/richtext/lexical.js"
393
+ "import": "./dist/richtext/lexical.js",
394
+ "default": "./dist/richtext/lexical.js"
318
395
  },
319
396
  "./admin/i18n/en": {
320
397
  "types": "./dist/client/admin/i18n/en.d.ts",
321
- "import": "./dist/client/admin/i18n/en.js"
398
+ "import": "./dist/client/admin/i18n/en.js",
399
+ "default": "./dist/client/admin/i18n/en.js"
322
400
  }
323
401
  },
324
402
  "files": [
@@ -1,6 +0,0 @@
1
- /**
2
- * Caching utilities - re-exported from @revealui/cache
3
- * New code should import directly from '@revealui/cache'.
4
- */
5
- export * from '@revealui/cache';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/caching/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,iBAAiB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Caching utilities - re-exported from @revealui/cache
3
- * New code should import directly from '@revealui/cache'.
4
- */
5
- export * from '@revealui/cache';
@@ -1,149 +0,0 @@
1
- /**
2
- * Distributed Tracing System
3
- *
4
- * Implements distributed tracing for tracking requests across services
5
- */
6
- export interface Span {
7
- traceId: string;
8
- spanId: string;
9
- parentSpanId?: string;
10
- name: string;
11
- startTime: number;
12
- endTime?: number;
13
- duration?: number;
14
- tags: Record<string, string | number | boolean>;
15
- logs: Array<{
16
- timestamp: number;
17
- message: string;
18
- fields?: Record<string, unknown>;
19
- }>;
20
- status: 'ok' | 'error';
21
- error?: {
22
- name: string;
23
- message: string;
24
- stack?: string;
25
- };
26
- }
27
- export interface Trace {
28
- traceId: string;
29
- spans: Span[];
30
- startTime: number;
31
- endTime?: number;
32
- duration?: number;
33
- rootSpan?: Span;
34
- }
35
- export declare class TracingSystem {
36
- private activeSpans;
37
- private completedTraces;
38
- private maxTraces;
39
- /**
40
- * Start a new trace
41
- */
42
- startTrace(name: string, tags?: Record<string, string | number | boolean>): Span;
43
- /**
44
- * Start a child span
45
- */
46
- startSpan(name: string, parentSpan: Span, tags?: Record<string, string | number | boolean>): Span;
47
- /**
48
- * End a span
49
- */
50
- endSpan(span: Span, error?: Error): void;
51
- /**
52
- * Add tag to span
53
- */
54
- setTag(span: Span, key: string, value: string | number | boolean): void;
55
- /**
56
- * Log event in span
57
- */
58
- log(span: Span, message: string, fields?: Record<string, unknown>): void;
59
- /**
60
- * Add span to trace
61
- */
62
- private addToTrace;
63
- /**
64
- * Get trace by ID
65
- */
66
- getTrace(traceId: string): Trace | undefined;
67
- /**
68
- * Get all traces
69
- */
70
- getAllTraces(): Trace[];
71
- /**
72
- * Clear all traces
73
- */
74
- clearTraces(): void;
75
- /**
76
- * Generate unique ID
77
- */
78
- private generateId;
79
- /**
80
- * Export traces in Jaeger format
81
- */
82
- exportJaeger(): unknown[];
83
- }
84
- /**
85
- * Default tracing system
86
- */
87
- export declare const tracing: TracingSystem;
88
- /**
89
- * Trace a function
90
- */
91
- export declare function trace<T>(name: string, fn: (span: Span) => Promise<T>, parentSpan?: Span): Promise<T>;
92
- /**
93
- * Trace synchronous function
94
- */
95
- export declare function traceSync<T>(name: string, fn: (span: Span) => T, parentSpan?: Span): T;
96
- /**
97
- * Extract trace context from headers
98
- */
99
- export declare function extractTraceContext(headers: Headers | Record<string, string>): {
100
- traceId?: string;
101
- spanId?: string;
102
- };
103
- /**
104
- * Inject trace context into headers
105
- */
106
- export declare function injectTraceContext(span: Span, headers: Headers | Record<string, string>): void;
107
- /**
108
- * Create tracing middleware
109
- */
110
- export declare function createTracingMiddleware<TRequest = unknown, TResponse = unknown>(): (request: TRequest & {
111
- headers?: Record<string, string>;
112
- url: string;
113
- method: string;
114
- }, next: () => Promise<TResponse & {
115
- status?: number;
116
- headers?: Record<string, string>;
117
- }>) => Promise<TResponse & {
118
- status?: number;
119
- headers?: Record<string, string>;
120
- }>;
121
- /**
122
- * Trace database query
123
- */
124
- export declare function traceDBQuery<T>(query: string, fn: () => Promise<T>, parentSpan?: Span): Promise<T>;
125
- /**
126
- * Trace API call
127
- */
128
- export declare function traceAPICall<T>(method: string, url: string, fn: () => Promise<T>, parentSpan?: Span): Promise<T>;
129
- /**
130
- * Trace cache operation
131
- */
132
- export declare function traceCacheOperation<T>(operation: string, key: string, fn: () => Promise<T>, parentSpan?: Span): Promise<T>;
133
- /**
134
- * Get span context for propagation
135
- */
136
- export declare function getSpanContext(span: Span): {
137
- traceId: string;
138
- spanId: string;
139
- parentSpanId?: string;
140
- };
141
- /**
142
- * Create span from context
143
- */
144
- export declare function createSpanFromContext(name: string, context: {
145
- traceId: string;
146
- spanId: string;
147
- parentSpanId?: string;
148
- }, tags?: Record<string, string | number | boolean>): Span;
149
- //# sourceMappingURL=tracing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/observability/tracing.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAChD,IAAI,EAAE,KAAK,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,CAAC,CAAC;IACH,MAAM,EAAE,IAAI,GAAG,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAA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