@buoy-design/core 0.1.0

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 (57) hide show
  1. package/dist/analysis/index.d.ts +2 -0
  2. package/dist/analysis/index.d.ts.map +1 -0
  3. package/dist/analysis/index.js +2 -0
  4. package/dist/analysis/index.js.map +1 -0
  5. package/dist/analysis/semantic-diff.d.ts +100 -0
  6. package/dist/analysis/semantic-diff.d.ts.map +1 -0
  7. package/dist/analysis/semantic-diff.js +716 -0
  8. package/dist/analysis/semantic-diff.js.map +1 -0
  9. package/dist/analysis/semantic-diff.test.d.ts +2 -0
  10. package/dist/analysis/semantic-diff.test.d.ts.map +1 -0
  11. package/dist/analysis/semantic-diff.test.js +188 -0
  12. package/dist/analysis/semantic-diff.test.js.map +1 -0
  13. package/dist/index.d.ts +4 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +7 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/models/component.d.ts +638 -0
  18. package/dist/models/component.d.ts.map +1 -0
  19. package/dist/models/component.js +116 -0
  20. package/dist/models/component.js.map +1 -0
  21. package/dist/models/component.test.d.ts +2 -0
  22. package/dist/models/component.test.d.ts.map +1 -0
  23. package/dist/models/component.test.js +55 -0
  24. package/dist/models/component.test.js.map +1 -0
  25. package/dist/models/drift.d.ts +692 -0
  26. package/dist/models/drift.d.ts.map +1 -0
  27. package/dist/models/drift.js +152 -0
  28. package/dist/models/drift.js.map +1 -0
  29. package/dist/models/drift.test.d.ts +2 -0
  30. package/dist/models/drift.test.d.ts.map +1 -0
  31. package/dist/models/drift.test.js +38 -0
  32. package/dist/models/drift.test.js.map +1 -0
  33. package/dist/models/index.d.ts +9 -0
  34. package/dist/models/index.d.ts.map +1 -0
  35. package/dist/models/index.js +9 -0
  36. package/dist/models/index.js.map +1 -0
  37. package/dist/models/intent.d.ts +226 -0
  38. package/dist/models/intent.d.ts.map +1 -0
  39. package/dist/models/intent.js +84 -0
  40. package/dist/models/intent.js.map +1 -0
  41. package/dist/models/token.d.ts +740 -0
  42. package/dist/models/token.d.ts.map +1 -0
  43. package/dist/models/token.js +164 -0
  44. package/dist/models/token.js.map +1 -0
  45. package/dist/models/token.test.d.ts +2 -0
  46. package/dist/models/token.test.d.ts.map +1 -0
  47. package/dist/models/token.test.js +168 -0
  48. package/dist/models/token.test.js.map +1 -0
  49. package/dist/plugins/index.d.ts +2 -0
  50. package/dist/plugins/index.d.ts.map +1 -0
  51. package/dist/plugins/index.js +2 -0
  52. package/dist/plugins/index.js.map +1 -0
  53. package/dist/plugins/types.d.ts +60 -0
  54. package/dist/plugins/types.d.ts.map +1 -0
  55. package/dist/plugins/types.js +2 -0
  56. package/dist/plugins/types.js.map +1 -0
  57. package/package.json +49 -0
@@ -0,0 +1,692 @@
1
+ import { z } from 'zod';
2
+ export declare const DriftTypeSchema: z.ZodEnum<["deprecated-pattern", "accessibility-conflict", "semantic-mismatch", "orphaned-component", "orphaned-token", "value-divergence", "naming-inconsistency", "missing-documentation", "hardcoded-value", "framework-sprawl"]>;
3
+ export declare const SeveritySchema: z.ZodEnum<["info", "warning", "critical"]>;
4
+ export declare const DriftSourceSchema: z.ZodObject<{
5
+ entityType: z.ZodEnum<["component", "token"]>;
6
+ entityId: z.ZodString;
7
+ entityName: z.ZodString;
8
+ location: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ location: string;
11
+ entityType: "component" | "token";
12
+ entityId: string;
13
+ entityName: string;
14
+ }, {
15
+ location: string;
16
+ entityType: "component" | "token";
17
+ entityId: string;
18
+ entityName: string;
19
+ }>;
20
+ export declare const SuggestedActionSchema: z.ZodObject<{
21
+ action: z.ZodString;
22
+ effort: z.ZodEnum<["low", "medium", "high"]>;
23
+ priority: z.ZodNumber;
24
+ codeExample: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ action: string;
27
+ effort: "low" | "medium" | "high";
28
+ priority: number;
29
+ codeExample?: string | undefined;
30
+ }, {
31
+ action: string;
32
+ effort: "low" | "medium" | "high";
33
+ priority: number;
34
+ codeExample?: string | undefined;
35
+ }>;
36
+ export declare const GitContextSchema: z.ZodObject<{
37
+ blame: z.ZodOptional<z.ZodObject<{
38
+ author: z.ZodString;
39
+ email: z.ZodOptional<z.ZodString>;
40
+ date: z.ZodDate;
41
+ commitHash: z.ZodString;
42
+ commitMessage: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ date: Date;
45
+ author: string;
46
+ commitHash: string;
47
+ commitMessage: string;
48
+ email?: string | undefined;
49
+ }, {
50
+ date: Date;
51
+ author: string;
52
+ commitHash: string;
53
+ commitMessage: string;
54
+ email?: string | undefined;
55
+ }>>;
56
+ previousValue: z.ZodOptional<z.ZodString>;
57
+ pullRequest: z.ZodOptional<z.ZodObject<{
58
+ number: z.ZodNumber;
59
+ title: z.ZodString;
60
+ url: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ number: number;
63
+ title: string;
64
+ url?: string | undefined;
65
+ }, {
66
+ number: number;
67
+ title: string;
68
+ url?: string | undefined;
69
+ }>>;
70
+ history: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
+ commitHash: z.ZodString;
72
+ author: z.ZodString;
73
+ date: z.ZodDate;
74
+ message: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ message: string;
77
+ date: Date;
78
+ author: string;
79
+ commitHash: string;
80
+ }, {
81
+ message: string;
82
+ date: Date;
83
+ author: string;
84
+ commitHash: string;
85
+ }>, "many">>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ blame?: {
88
+ date: Date;
89
+ author: string;
90
+ commitHash: string;
91
+ commitMessage: string;
92
+ email?: string | undefined;
93
+ } | undefined;
94
+ previousValue?: string | undefined;
95
+ pullRequest?: {
96
+ number: number;
97
+ title: string;
98
+ url?: string | undefined;
99
+ } | undefined;
100
+ history?: {
101
+ message: string;
102
+ date: Date;
103
+ author: string;
104
+ commitHash: string;
105
+ }[] | undefined;
106
+ }, {
107
+ blame?: {
108
+ date: Date;
109
+ author: string;
110
+ commitHash: string;
111
+ commitMessage: string;
112
+ email?: string | undefined;
113
+ } | undefined;
114
+ previousValue?: string | undefined;
115
+ pullRequest?: {
116
+ number: number;
117
+ title: string;
118
+ url?: string | undefined;
119
+ } | undefined;
120
+ history?: {
121
+ message: string;
122
+ date: Date;
123
+ author: string;
124
+ commitHash: string;
125
+ }[] | undefined;
126
+ }>;
127
+ export declare const DriftDetailsSchema: z.ZodObject<{
128
+ expected: z.ZodOptional<z.ZodUnknown>;
129
+ actual: z.ZodOptional<z.ZodUnknown>;
130
+ diff: z.ZodOptional<z.ZodString>;
131
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ claudeAnalysis: z.ZodOptional<z.ZodString>;
134
+ usedIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
+ relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ frameworks: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ name: z.ZodString;
138
+ version: z.ZodOptional<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ name: string;
141
+ version?: string | undefined;
142
+ }, {
143
+ name: string;
144
+ version?: string | undefined;
145
+ }>, "many">>;
146
+ gitContext: z.ZodOptional<z.ZodObject<{
147
+ blame: z.ZodOptional<z.ZodObject<{
148
+ author: z.ZodString;
149
+ email: z.ZodOptional<z.ZodString>;
150
+ date: z.ZodDate;
151
+ commitHash: z.ZodString;
152
+ commitMessage: z.ZodString;
153
+ }, "strip", z.ZodTypeAny, {
154
+ date: Date;
155
+ author: string;
156
+ commitHash: string;
157
+ commitMessage: string;
158
+ email?: string | undefined;
159
+ }, {
160
+ date: Date;
161
+ author: string;
162
+ commitHash: string;
163
+ commitMessage: string;
164
+ email?: string | undefined;
165
+ }>>;
166
+ previousValue: z.ZodOptional<z.ZodString>;
167
+ pullRequest: z.ZodOptional<z.ZodObject<{
168
+ number: z.ZodNumber;
169
+ title: z.ZodString;
170
+ url: z.ZodOptional<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ number: number;
173
+ title: string;
174
+ url?: string | undefined;
175
+ }, {
176
+ number: number;
177
+ title: string;
178
+ url?: string | undefined;
179
+ }>>;
180
+ history: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ commitHash: z.ZodString;
182
+ author: z.ZodString;
183
+ date: z.ZodDate;
184
+ message: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ message: string;
187
+ date: Date;
188
+ author: string;
189
+ commitHash: string;
190
+ }, {
191
+ message: string;
192
+ date: Date;
193
+ author: string;
194
+ commitHash: string;
195
+ }>, "many">>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ blame?: {
198
+ date: Date;
199
+ author: string;
200
+ commitHash: string;
201
+ commitMessage: string;
202
+ email?: string | undefined;
203
+ } | undefined;
204
+ previousValue?: string | undefined;
205
+ pullRequest?: {
206
+ number: number;
207
+ title: string;
208
+ url?: string | undefined;
209
+ } | undefined;
210
+ history?: {
211
+ message: string;
212
+ date: Date;
213
+ author: string;
214
+ commitHash: string;
215
+ }[] | undefined;
216
+ }, {
217
+ blame?: {
218
+ date: Date;
219
+ author: string;
220
+ commitHash: string;
221
+ commitMessage: string;
222
+ email?: string | undefined;
223
+ } | undefined;
224
+ previousValue?: string | undefined;
225
+ pullRequest?: {
226
+ number: number;
227
+ title: string;
228
+ url?: string | undefined;
229
+ } | undefined;
230
+ history?: {
231
+ message: string;
232
+ date: Date;
233
+ author: string;
234
+ commitHash: string;
235
+ }[] | undefined;
236
+ }>>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ expected?: unknown;
239
+ actual?: unknown;
240
+ diff?: string | undefined;
241
+ affectedFiles?: string[] | undefined;
242
+ suggestions?: string[] | undefined;
243
+ claudeAnalysis?: string | undefined;
244
+ usedIn?: string[] | undefined;
245
+ relatedComponents?: string[] | undefined;
246
+ frameworks?: {
247
+ name: string;
248
+ version?: string | undefined;
249
+ }[] | undefined;
250
+ gitContext?: {
251
+ blame?: {
252
+ date: Date;
253
+ author: string;
254
+ commitHash: string;
255
+ commitMessage: string;
256
+ email?: string | undefined;
257
+ } | undefined;
258
+ previousValue?: string | undefined;
259
+ pullRequest?: {
260
+ number: number;
261
+ title: string;
262
+ url?: string | undefined;
263
+ } | undefined;
264
+ history?: {
265
+ message: string;
266
+ date: Date;
267
+ author: string;
268
+ commitHash: string;
269
+ }[] | undefined;
270
+ } | undefined;
271
+ }, {
272
+ expected?: unknown;
273
+ actual?: unknown;
274
+ diff?: string | undefined;
275
+ affectedFiles?: string[] | undefined;
276
+ suggestions?: string[] | undefined;
277
+ claudeAnalysis?: string | undefined;
278
+ usedIn?: string[] | undefined;
279
+ relatedComponents?: string[] | undefined;
280
+ frameworks?: {
281
+ name: string;
282
+ version?: string | undefined;
283
+ }[] | undefined;
284
+ gitContext?: {
285
+ blame?: {
286
+ date: Date;
287
+ author: string;
288
+ commitHash: string;
289
+ commitMessage: string;
290
+ email?: string | undefined;
291
+ } | undefined;
292
+ previousValue?: string | undefined;
293
+ pullRequest?: {
294
+ number: number;
295
+ title: string;
296
+ url?: string | undefined;
297
+ } | undefined;
298
+ history?: {
299
+ message: string;
300
+ date: Date;
301
+ author: string;
302
+ commitHash: string;
303
+ }[] | undefined;
304
+ } | undefined;
305
+ }>;
306
+ export declare const DriftResolutionTypeSchema: z.ZodEnum<["ignored", "fixed", "documented"]>;
307
+ export declare const DriftResolutionSchema: z.ZodObject<{
308
+ type: z.ZodEnum<["ignored", "fixed", "documented"]>;
309
+ reason: z.ZodOptional<z.ZodString>;
310
+ resolvedBy: z.ZodOptional<z.ZodString>;
311
+ resolvedAt: z.ZodDate;
312
+ }, "strip", z.ZodTypeAny, {
313
+ type: "ignored" | "fixed" | "documented";
314
+ resolvedAt: Date;
315
+ reason?: string | undefined;
316
+ resolvedBy?: string | undefined;
317
+ }, {
318
+ type: "ignored" | "fixed" | "documented";
319
+ resolvedAt: Date;
320
+ reason?: string | undefined;
321
+ resolvedBy?: string | undefined;
322
+ }>;
323
+ export declare const DriftSignalSchema: z.ZodObject<{
324
+ id: z.ZodString;
325
+ type: z.ZodEnum<["deprecated-pattern", "accessibility-conflict", "semantic-mismatch", "orphaned-component", "orphaned-token", "value-divergence", "naming-inconsistency", "missing-documentation", "hardcoded-value", "framework-sprawl"]>;
326
+ severity: z.ZodEnum<["info", "warning", "critical"]>;
327
+ source: z.ZodObject<{
328
+ entityType: z.ZodEnum<["component", "token"]>;
329
+ entityId: z.ZodString;
330
+ entityName: z.ZodString;
331
+ location: z.ZodString;
332
+ }, "strip", z.ZodTypeAny, {
333
+ location: string;
334
+ entityType: "component" | "token";
335
+ entityId: string;
336
+ entityName: string;
337
+ }, {
338
+ location: string;
339
+ entityType: "component" | "token";
340
+ entityId: string;
341
+ entityName: string;
342
+ }>;
343
+ target: z.ZodOptional<z.ZodObject<{
344
+ entityType: z.ZodEnum<["component", "token"]>;
345
+ entityId: z.ZodString;
346
+ entityName: z.ZodString;
347
+ location: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ location: string;
350
+ entityType: "component" | "token";
351
+ entityId: string;
352
+ entityName: string;
353
+ }, {
354
+ location: string;
355
+ entityType: "component" | "token";
356
+ entityId: string;
357
+ entityName: string;
358
+ }>>;
359
+ message: z.ZodString;
360
+ details: z.ZodObject<{
361
+ expected: z.ZodOptional<z.ZodUnknown>;
362
+ actual: z.ZodOptional<z.ZodUnknown>;
363
+ diff: z.ZodOptional<z.ZodString>;
364
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
365
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
366
+ claudeAnalysis: z.ZodOptional<z.ZodString>;
367
+ usedIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
368
+ relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ frameworks: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ name: z.ZodString;
371
+ version: z.ZodOptional<z.ZodString>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ name: string;
374
+ version?: string | undefined;
375
+ }, {
376
+ name: string;
377
+ version?: string | undefined;
378
+ }>, "many">>;
379
+ gitContext: z.ZodOptional<z.ZodObject<{
380
+ blame: z.ZodOptional<z.ZodObject<{
381
+ author: z.ZodString;
382
+ email: z.ZodOptional<z.ZodString>;
383
+ date: z.ZodDate;
384
+ commitHash: z.ZodString;
385
+ commitMessage: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ date: Date;
388
+ author: string;
389
+ commitHash: string;
390
+ commitMessage: string;
391
+ email?: string | undefined;
392
+ }, {
393
+ date: Date;
394
+ author: string;
395
+ commitHash: string;
396
+ commitMessage: string;
397
+ email?: string | undefined;
398
+ }>>;
399
+ previousValue: z.ZodOptional<z.ZodString>;
400
+ pullRequest: z.ZodOptional<z.ZodObject<{
401
+ number: z.ZodNumber;
402
+ title: z.ZodString;
403
+ url: z.ZodOptional<z.ZodString>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ number: number;
406
+ title: string;
407
+ url?: string | undefined;
408
+ }, {
409
+ number: number;
410
+ title: string;
411
+ url?: string | undefined;
412
+ }>>;
413
+ history: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ commitHash: z.ZodString;
415
+ author: z.ZodString;
416
+ date: z.ZodDate;
417
+ message: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ message: string;
420
+ date: Date;
421
+ author: string;
422
+ commitHash: string;
423
+ }, {
424
+ message: string;
425
+ date: Date;
426
+ author: string;
427
+ commitHash: string;
428
+ }>, "many">>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ blame?: {
431
+ date: Date;
432
+ author: string;
433
+ commitHash: string;
434
+ commitMessage: string;
435
+ email?: string | undefined;
436
+ } | undefined;
437
+ previousValue?: string | undefined;
438
+ pullRequest?: {
439
+ number: number;
440
+ title: string;
441
+ url?: string | undefined;
442
+ } | undefined;
443
+ history?: {
444
+ message: string;
445
+ date: Date;
446
+ author: string;
447
+ commitHash: string;
448
+ }[] | undefined;
449
+ }, {
450
+ blame?: {
451
+ date: Date;
452
+ author: string;
453
+ commitHash: string;
454
+ commitMessage: string;
455
+ email?: string | undefined;
456
+ } | undefined;
457
+ previousValue?: string | undefined;
458
+ pullRequest?: {
459
+ number: number;
460
+ title: string;
461
+ url?: string | undefined;
462
+ } | undefined;
463
+ history?: {
464
+ message: string;
465
+ date: Date;
466
+ author: string;
467
+ commitHash: string;
468
+ }[] | undefined;
469
+ }>>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ expected?: unknown;
472
+ actual?: unknown;
473
+ diff?: string | undefined;
474
+ affectedFiles?: string[] | undefined;
475
+ suggestions?: string[] | undefined;
476
+ claudeAnalysis?: string | undefined;
477
+ usedIn?: string[] | undefined;
478
+ relatedComponents?: string[] | undefined;
479
+ frameworks?: {
480
+ name: string;
481
+ version?: string | undefined;
482
+ }[] | undefined;
483
+ gitContext?: {
484
+ blame?: {
485
+ date: Date;
486
+ author: string;
487
+ commitHash: string;
488
+ commitMessage: string;
489
+ email?: string | undefined;
490
+ } | undefined;
491
+ previousValue?: string | undefined;
492
+ pullRequest?: {
493
+ number: number;
494
+ title: string;
495
+ url?: string | undefined;
496
+ } | undefined;
497
+ history?: {
498
+ message: string;
499
+ date: Date;
500
+ author: string;
501
+ commitHash: string;
502
+ }[] | undefined;
503
+ } | undefined;
504
+ }, {
505
+ expected?: unknown;
506
+ actual?: unknown;
507
+ diff?: string | undefined;
508
+ affectedFiles?: string[] | undefined;
509
+ suggestions?: string[] | undefined;
510
+ claudeAnalysis?: string | undefined;
511
+ usedIn?: string[] | undefined;
512
+ relatedComponents?: string[] | undefined;
513
+ frameworks?: {
514
+ name: string;
515
+ version?: string | undefined;
516
+ }[] | undefined;
517
+ gitContext?: {
518
+ blame?: {
519
+ date: Date;
520
+ author: string;
521
+ commitHash: string;
522
+ commitMessage: string;
523
+ email?: string | undefined;
524
+ } | undefined;
525
+ previousValue?: string | undefined;
526
+ pullRequest?: {
527
+ number: number;
528
+ title: string;
529
+ url?: string | undefined;
530
+ } | undefined;
531
+ history?: {
532
+ message: string;
533
+ date: Date;
534
+ author: string;
535
+ commitHash: string;
536
+ }[] | undefined;
537
+ } | undefined;
538
+ }>;
539
+ detectedAt: z.ZodDate;
540
+ resolvedAt: z.ZodOptional<z.ZodDate>;
541
+ resolution: z.ZodOptional<z.ZodObject<{
542
+ type: z.ZodEnum<["ignored", "fixed", "documented"]>;
543
+ reason: z.ZodOptional<z.ZodString>;
544
+ resolvedBy: z.ZodOptional<z.ZodString>;
545
+ resolvedAt: z.ZodDate;
546
+ }, "strip", z.ZodTypeAny, {
547
+ type: "ignored" | "fixed" | "documented";
548
+ resolvedAt: Date;
549
+ reason?: string | undefined;
550
+ resolvedBy?: string | undefined;
551
+ }, {
552
+ type: "ignored" | "fixed" | "documented";
553
+ resolvedAt: Date;
554
+ reason?: string | undefined;
555
+ resolvedBy?: string | undefined;
556
+ }>>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ type: "deprecated-pattern" | "accessibility-conflict" | "semantic-mismatch" | "orphaned-component" | "orphaned-token" | "value-divergence" | "naming-inconsistency" | "missing-documentation" | "hardcoded-value" | "framework-sprawl";
559
+ message: string;
560
+ id: string;
561
+ source: {
562
+ location: string;
563
+ entityType: "component" | "token";
564
+ entityId: string;
565
+ entityName: string;
566
+ };
567
+ severity: "info" | "warning" | "critical";
568
+ details: {
569
+ expected?: unknown;
570
+ actual?: unknown;
571
+ diff?: string | undefined;
572
+ affectedFiles?: string[] | undefined;
573
+ suggestions?: string[] | undefined;
574
+ claudeAnalysis?: string | undefined;
575
+ usedIn?: string[] | undefined;
576
+ relatedComponents?: string[] | undefined;
577
+ frameworks?: {
578
+ name: string;
579
+ version?: string | undefined;
580
+ }[] | undefined;
581
+ gitContext?: {
582
+ blame?: {
583
+ date: Date;
584
+ author: string;
585
+ commitHash: string;
586
+ commitMessage: string;
587
+ email?: string | undefined;
588
+ } | undefined;
589
+ previousValue?: string | undefined;
590
+ pullRequest?: {
591
+ number: number;
592
+ title: string;
593
+ url?: string | undefined;
594
+ } | undefined;
595
+ history?: {
596
+ message: string;
597
+ date: Date;
598
+ author: string;
599
+ commitHash: string;
600
+ }[] | undefined;
601
+ } | undefined;
602
+ };
603
+ detectedAt: Date;
604
+ resolvedAt?: Date | undefined;
605
+ target?: {
606
+ location: string;
607
+ entityType: "component" | "token";
608
+ entityId: string;
609
+ entityName: string;
610
+ } | undefined;
611
+ resolution?: {
612
+ type: "ignored" | "fixed" | "documented";
613
+ resolvedAt: Date;
614
+ reason?: string | undefined;
615
+ resolvedBy?: string | undefined;
616
+ } | undefined;
617
+ }, {
618
+ type: "deprecated-pattern" | "accessibility-conflict" | "semantic-mismatch" | "orphaned-component" | "orphaned-token" | "value-divergence" | "naming-inconsistency" | "missing-documentation" | "hardcoded-value" | "framework-sprawl";
619
+ message: string;
620
+ id: string;
621
+ source: {
622
+ location: string;
623
+ entityType: "component" | "token";
624
+ entityId: string;
625
+ entityName: string;
626
+ };
627
+ severity: "info" | "warning" | "critical";
628
+ details: {
629
+ expected?: unknown;
630
+ actual?: unknown;
631
+ diff?: string | undefined;
632
+ affectedFiles?: string[] | undefined;
633
+ suggestions?: string[] | undefined;
634
+ claudeAnalysis?: string | undefined;
635
+ usedIn?: string[] | undefined;
636
+ relatedComponents?: string[] | undefined;
637
+ frameworks?: {
638
+ name: string;
639
+ version?: string | undefined;
640
+ }[] | undefined;
641
+ gitContext?: {
642
+ blame?: {
643
+ date: Date;
644
+ author: string;
645
+ commitHash: string;
646
+ commitMessage: string;
647
+ email?: string | undefined;
648
+ } | undefined;
649
+ previousValue?: string | undefined;
650
+ pullRequest?: {
651
+ number: number;
652
+ title: string;
653
+ url?: string | undefined;
654
+ } | undefined;
655
+ history?: {
656
+ message: string;
657
+ date: Date;
658
+ author: string;
659
+ commitHash: string;
660
+ }[] | undefined;
661
+ } | undefined;
662
+ };
663
+ detectedAt: Date;
664
+ resolvedAt?: Date | undefined;
665
+ target?: {
666
+ location: string;
667
+ entityType: "component" | "token";
668
+ entityId: string;
669
+ entityName: string;
670
+ } | undefined;
671
+ resolution?: {
672
+ type: "ignored" | "fixed" | "documented";
673
+ resolvedAt: Date;
674
+ reason?: string | undefined;
675
+ resolvedBy?: string | undefined;
676
+ } | undefined;
677
+ }>;
678
+ export type DriftType = z.infer<typeof DriftTypeSchema>;
679
+ export type Severity = z.infer<typeof SeveritySchema>;
680
+ export type DriftSource = z.infer<typeof DriftSourceSchema>;
681
+ export type SuggestedAction = z.infer<typeof SuggestedActionSchema>;
682
+ export type GitContext = z.infer<typeof GitContextSchema>;
683
+ export type DriftDetails = z.infer<typeof DriftDetailsSchema>;
684
+ export type DriftResolutionType = z.infer<typeof DriftResolutionTypeSchema>;
685
+ export type DriftResolution = z.infer<typeof DriftResolutionSchema>;
686
+ export type DriftSignal = z.infer<typeof DriftSignalSchema>;
687
+ export declare function createDriftId(type: DriftType, sourceId: string, targetId?: string): string;
688
+ export declare function getSeverityWeight(severity: Severity): number;
689
+ export declare function getDefaultSeverity(type: DriftType): Severity;
690
+ export declare const DRIFT_TYPE_LABELS: Record<DriftType, string>;
691
+ export declare const SEVERITY_LABELS: Record<Severity, string>;
692
+ //# sourceMappingURL=drift.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/models/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,sOAW1B,CAAC;AAGH,eAAO,MAAM,cAAc,4CAA0C,CAAC;AAGtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAGH,eAAO,MAAM,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