@generacy-ai/knowledge-store 0.0.0-preview-20260304013206

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 (90) hide show
  1. package/LICENSE +191 -0
  2. package/dist/index.d.ts +47 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +50 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/manager/ContextManager.d.ts +54 -0
  7. package/dist/manager/ContextManager.d.ts.map +1 -0
  8. package/dist/manager/ContextManager.js +124 -0
  9. package/dist/manager/ContextManager.js.map +1 -0
  10. package/dist/manager/KnowledgeStoreManager.d.ts +128 -0
  11. package/dist/manager/KnowledgeStoreManager.d.ts.map +1 -0
  12. package/dist/manager/KnowledgeStoreManager.js +332 -0
  13. package/dist/manager/KnowledgeStoreManager.js.map +1 -0
  14. package/dist/manager/PatternManager.d.ts +72 -0
  15. package/dist/manager/PatternManager.d.ts.map +1 -0
  16. package/dist/manager/PatternManager.js +187 -0
  17. package/dist/manager/PatternManager.js.map +1 -0
  18. package/dist/manager/PhilosophyManager.d.ts +37 -0
  19. package/dist/manager/PhilosophyManager.d.ts.map +1 -0
  20. package/dist/manager/PhilosophyManager.js +82 -0
  21. package/dist/manager/PhilosophyManager.js.map +1 -0
  22. package/dist/manager/PrincipleManager.d.ts +74 -0
  23. package/dist/manager/PrincipleManager.d.ts.map +1 -0
  24. package/dist/manager/PrincipleManager.js +159 -0
  25. package/dist/manager/PrincipleManager.js.map +1 -0
  26. package/dist/portability/Exporter.d.ts +14 -0
  27. package/dist/portability/Exporter.d.ts.map +1 -0
  28. package/dist/portability/Exporter.js +48 -0
  29. package/dist/portability/Exporter.js.map +1 -0
  30. package/dist/portability/Importer.d.ts +18 -0
  31. package/dist/portability/Importer.d.ts.map +1 -0
  32. package/dist/portability/Importer.js +192 -0
  33. package/dist/portability/Importer.js.map +1 -0
  34. package/dist/portability/redaction.d.ts +22 -0
  35. package/dist/portability/redaction.d.ts.map +1 -0
  36. package/dist/portability/redaction.js +128 -0
  37. package/dist/portability/redaction.js.map +1 -0
  38. package/dist/storage/AuditableStorage.d.ts +44 -0
  39. package/dist/storage/AuditableStorage.d.ts.map +1 -0
  40. package/dist/storage/AuditableStorage.js +109 -0
  41. package/dist/storage/AuditableStorage.js.map +1 -0
  42. package/dist/storage/LocalFileStorage.d.ts +63 -0
  43. package/dist/storage/LocalFileStorage.d.ts.map +1 -0
  44. package/dist/storage/LocalFileStorage.js +219 -0
  45. package/dist/storage/LocalFileStorage.js.map +1 -0
  46. package/dist/storage/StorageProvider.d.ts +28 -0
  47. package/dist/storage/StorageProvider.d.ts.map +1 -0
  48. package/dist/storage/StorageProvider.js +38 -0
  49. package/dist/storage/StorageProvider.js.map +1 -0
  50. package/dist/storage/VersionedStorage.d.ts +61 -0
  51. package/dist/storage/VersionedStorage.d.ts.map +1 -0
  52. package/dist/storage/VersionedStorage.js +102 -0
  53. package/dist/storage/VersionedStorage.js.map +1 -0
  54. package/dist/types/index.d.ts +7 -0
  55. package/dist/types/index.d.ts.map +1 -0
  56. package/dist/types/index.js +5 -0
  57. package/dist/types/index.js.map +1 -0
  58. package/dist/types/knowledge.d.ts +149 -0
  59. package/dist/types/knowledge.d.ts.map +1 -0
  60. package/dist/types/knowledge.js +6 -0
  61. package/dist/types/knowledge.js.map +1 -0
  62. package/dist/types/portability.d.ts +85 -0
  63. package/dist/types/portability.d.ts.map +1 -0
  64. package/dist/types/portability.js +6 -0
  65. package/dist/types/portability.js.map +1 -0
  66. package/dist/types/storage.d.ts +58 -0
  67. package/dist/types/storage.d.ts.map +1 -0
  68. package/dist/types/storage.js +6 -0
  69. package/dist/types/storage.js.map +1 -0
  70. package/dist/utils/id.d.ts +6 -0
  71. package/dist/utils/id.d.ts.map +1 -0
  72. package/dist/utils/id.js +9 -0
  73. package/dist/utils/id.js.map +1 -0
  74. package/dist/utils/index.d.ts +3 -0
  75. package/dist/utils/index.d.ts.map +1 -0
  76. package/dist/utils/index.js +3 -0
  77. package/dist/utils/index.js.map +1 -0
  78. package/dist/utils/timestamps.d.ts +6 -0
  79. package/dist/utils/timestamps.d.ts.map +1 -0
  80. package/dist/utils/timestamps.js +8 -0
  81. package/dist/utils/timestamps.js.map +1 -0
  82. package/dist/validation/schemas.d.ts +917 -0
  83. package/dist/validation/schemas.d.ts.map +1 -0
  84. package/dist/validation/schemas.js +143 -0
  85. package/dist/validation/schemas.js.map +1 -0
  86. package/dist/validation/validator.d.ts +29 -0
  87. package/dist/validation/validator.d.ts.map +1 -0
  88. package/dist/validation/validator.js +54 -0
  89. package/dist/validation/validator.js.map +1 -0
  90. package/package.json +49 -0
@@ -0,0 +1,917 @@
1
+ /**
2
+ * Zod schemas for Knowledge Store validation
3
+ * Based on data-model.md specification
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Schema for Value
8
+ */
9
+ export declare const valueSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ description: z.ZodString;
12
+ priority: z.ZodNumber;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ description: string;
16
+ priority: number;
17
+ }, {
18
+ name: string;
19
+ description: string;
20
+ priority: number;
21
+ }>;
22
+ /**
23
+ * Schema for Belief
24
+ */
25
+ export declare const beliefSchema: z.ZodObject<{
26
+ statement: z.ZodString;
27
+ confidence: z.ZodNumber;
28
+ domain: z.ZodArray<z.ZodString, "many">;
29
+ }, "strip", z.ZodTypeAny, {
30
+ domain: string[];
31
+ statement: string;
32
+ confidence: number;
33
+ }, {
34
+ domain: string[];
35
+ statement: string;
36
+ confidence: number;
37
+ }>;
38
+ /**
39
+ * Schema for Identity
40
+ */
41
+ export declare const identitySchema: z.ZodObject<{
42
+ professionalTitle: z.ZodOptional<z.ZodString>;
43
+ expertise: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ yearsExperience: z.ZodOptional<z.ZodNumber>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ professionalTitle?: string | undefined;
47
+ expertise?: string[] | undefined;
48
+ yearsExperience?: number | undefined;
49
+ }, {
50
+ professionalTitle?: string | undefined;
51
+ expertise?: string[] | undefined;
52
+ yearsExperience?: number | undefined;
53
+ }>;
54
+ /**
55
+ * Schema for Philosophy
56
+ */
57
+ export declare const philosophySchema: z.ZodObject<{
58
+ values: z.ZodArray<z.ZodObject<{
59
+ name: z.ZodString;
60
+ description: z.ZodString;
61
+ priority: z.ZodNumber;
62
+ }, "strip", z.ZodTypeAny, {
63
+ name: string;
64
+ description: string;
65
+ priority: number;
66
+ }, {
67
+ name: string;
68
+ description: string;
69
+ priority: number;
70
+ }>, "many">;
71
+ beliefs: z.ZodArray<z.ZodObject<{
72
+ statement: z.ZodString;
73
+ confidence: z.ZodNumber;
74
+ domain: z.ZodArray<z.ZodString, "many">;
75
+ }, "strip", z.ZodTypeAny, {
76
+ domain: string[];
77
+ statement: string;
78
+ confidence: number;
79
+ }, {
80
+ domain: string[];
81
+ statement: string;
82
+ confidence: number;
83
+ }>, "many">;
84
+ identity: z.ZodObject<{
85
+ professionalTitle: z.ZodOptional<z.ZodString>;
86
+ expertise: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ yearsExperience: z.ZodOptional<z.ZodNumber>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ professionalTitle?: string | undefined;
90
+ expertise?: string[] | undefined;
91
+ yearsExperience?: number | undefined;
92
+ }, {
93
+ professionalTitle?: string | undefined;
94
+ expertise?: string[] | undefined;
95
+ yearsExperience?: number | undefined;
96
+ }>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ values: {
99
+ name: string;
100
+ description: string;
101
+ priority: number;
102
+ }[];
103
+ identity: {
104
+ professionalTitle?: string | undefined;
105
+ expertise?: string[] | undefined;
106
+ yearsExperience?: number | undefined;
107
+ };
108
+ beliefs: {
109
+ domain: string[];
110
+ statement: string;
111
+ confidence: number;
112
+ }[];
113
+ }, {
114
+ values: {
115
+ name: string;
116
+ description: string;
117
+ priority: number;
118
+ }[];
119
+ identity: {
120
+ professionalTitle?: string | undefined;
121
+ expertise?: string[] | undefined;
122
+ yearsExperience?: number | undefined;
123
+ };
124
+ beliefs: {
125
+ domain: string[];
126
+ statement: string;
127
+ confidence: number;
128
+ }[];
129
+ }>;
130
+ /**
131
+ * Schema for Evidence
132
+ */
133
+ export declare const evidenceSchema: z.ZodObject<{
134
+ decision: z.ZodString;
135
+ context: z.ZodString;
136
+ outcome: z.ZodOptional<z.ZodEnum<["positive", "negative", "neutral"]>>;
137
+ timestamp: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ context: string;
140
+ decision: string;
141
+ timestamp: string;
142
+ outcome?: "positive" | "negative" | "neutral" | undefined;
143
+ }, {
144
+ context: string;
145
+ decision: string;
146
+ timestamp: string;
147
+ outcome?: "positive" | "negative" | "neutral" | undefined;
148
+ }>;
149
+ /**
150
+ * Schema for PrincipleMetadata
151
+ */
152
+ export declare const principleMetadataSchema: z.ZodObject<{
153
+ createdAt: z.ZodString;
154
+ updatedAt: z.ZodString;
155
+ source: z.ZodOptional<z.ZodString>;
156
+ deprecatedAt: z.ZodOptional<z.ZodString>;
157
+ deprecationReason: z.ZodOptional<z.ZodString>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ createdAt: string;
160
+ updatedAt: string;
161
+ source?: string | undefined;
162
+ deprecatedAt?: string | undefined;
163
+ deprecationReason?: string | undefined;
164
+ }, {
165
+ createdAt: string;
166
+ updatedAt: string;
167
+ source?: string | undefined;
168
+ deprecatedAt?: string | undefined;
169
+ deprecationReason?: string | undefined;
170
+ }>;
171
+ /**
172
+ * Schema for Principle
173
+ */
174
+ export declare const principleSchema: z.ZodObject<{
175
+ id: z.ZodString;
176
+ content: z.ZodString;
177
+ domain: z.ZodArray<z.ZodString, "many">;
178
+ weight: z.ZodNumber;
179
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
180
+ decision: z.ZodString;
181
+ context: z.ZodString;
182
+ outcome: z.ZodOptional<z.ZodEnum<["positive", "negative", "neutral"]>>;
183
+ timestamp: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ context: string;
186
+ decision: string;
187
+ timestamp: string;
188
+ outcome?: "positive" | "negative" | "neutral" | undefined;
189
+ }, {
190
+ context: string;
191
+ decision: string;
192
+ timestamp: string;
193
+ outcome?: "positive" | "negative" | "neutral" | undefined;
194
+ }>, "many">>;
195
+ status: z.ZodEnum<["active", "deprecated", "draft"]>;
196
+ metadata: z.ZodObject<{
197
+ createdAt: z.ZodString;
198
+ updatedAt: z.ZodString;
199
+ source: z.ZodOptional<z.ZodString>;
200
+ deprecatedAt: z.ZodOptional<z.ZodString>;
201
+ deprecationReason: z.ZodOptional<z.ZodString>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ createdAt: string;
204
+ updatedAt: string;
205
+ source?: string | undefined;
206
+ deprecatedAt?: string | undefined;
207
+ deprecationReason?: string | undefined;
208
+ }, {
209
+ createdAt: string;
210
+ updatedAt: string;
211
+ source?: string | undefined;
212
+ deprecatedAt?: string | undefined;
213
+ deprecationReason?: string | undefined;
214
+ }>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ domain: string[];
217
+ weight: number;
218
+ status: "active" | "deprecated" | "draft";
219
+ id: string;
220
+ content: string;
221
+ evidence: {
222
+ context: string;
223
+ decision: string;
224
+ timestamp: string;
225
+ outcome?: "positive" | "negative" | "neutral" | undefined;
226
+ }[];
227
+ metadata: {
228
+ createdAt: string;
229
+ updatedAt: string;
230
+ source?: string | undefined;
231
+ deprecatedAt?: string | undefined;
232
+ deprecationReason?: string | undefined;
233
+ };
234
+ }, {
235
+ domain: string[];
236
+ weight: number;
237
+ status: "active" | "deprecated" | "draft";
238
+ id: string;
239
+ content: string;
240
+ metadata: {
241
+ createdAt: string;
242
+ updatedAt: string;
243
+ source?: string | undefined;
244
+ deprecatedAt?: string | undefined;
245
+ deprecationReason?: string | undefined;
246
+ };
247
+ evidence?: {
248
+ context: string;
249
+ decision: string;
250
+ timestamp: string;
251
+ outcome?: "positive" | "negative" | "neutral" | undefined;
252
+ }[] | undefined;
253
+ }>;
254
+ /**
255
+ * Schema for PatternOccurrence
256
+ */
257
+ export declare const patternOccurrenceSchema: z.ZodObject<{
258
+ context: z.ZodString;
259
+ timestamp: z.ZodString;
260
+ decision: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ context: string;
263
+ decision: string;
264
+ timestamp: string;
265
+ }, {
266
+ context: string;
267
+ decision: string;
268
+ timestamp: string;
269
+ }>;
270
+ /**
271
+ * Schema for Pattern
272
+ */
273
+ export declare const patternSchema: z.ZodObject<{
274
+ id: z.ZodString;
275
+ description: z.ZodString;
276
+ occurrences: z.ZodArray<z.ZodObject<{
277
+ context: z.ZodString;
278
+ timestamp: z.ZodString;
279
+ decision: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ context: string;
282
+ decision: string;
283
+ timestamp: string;
284
+ }, {
285
+ context: string;
286
+ decision: string;
287
+ timestamp: string;
288
+ }>, "many">;
289
+ status: z.ZodEnum<["emerging", "established", "promoted", "rejected"]>;
290
+ domain: z.ZodArray<z.ZodString, "many">;
291
+ firstSeen: z.ZodString;
292
+ lastSeen: z.ZodString;
293
+ promotedTo: z.ZodOptional<z.ZodString>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ domain: string[];
296
+ description: string;
297
+ status: "emerging" | "established" | "promoted" | "rejected";
298
+ id: string;
299
+ occurrences: {
300
+ context: string;
301
+ decision: string;
302
+ timestamp: string;
303
+ }[];
304
+ firstSeen: string;
305
+ lastSeen: string;
306
+ promotedTo?: string | undefined;
307
+ }, {
308
+ domain: string[];
309
+ description: string;
310
+ status: "emerging" | "established" | "promoted" | "rejected";
311
+ id: string;
312
+ occurrences: {
313
+ context: string;
314
+ decision: string;
315
+ timestamp: string;
316
+ }[];
317
+ firstSeen: string;
318
+ lastSeen: string;
319
+ promotedTo?: string | undefined;
320
+ }>;
321
+ /**
322
+ * Schema for RecentDecision
323
+ */
324
+ export declare const recentDecisionSchema: z.ZodObject<{
325
+ summary: z.ZodString;
326
+ timestamp: z.ZodString;
327
+ principlesApplied: z.ZodArray<z.ZodString, "many">;
328
+ }, "strip", z.ZodTypeAny, {
329
+ timestamp: string;
330
+ summary: string;
331
+ principlesApplied: string[];
332
+ }, {
333
+ timestamp: string;
334
+ summary: string;
335
+ principlesApplied: string[];
336
+ }>;
337
+ /**
338
+ * Schema for CurrentProject
339
+ */
340
+ export declare const currentProjectSchema: z.ZodObject<{
341
+ name: z.ZodString;
342
+ type: z.ZodString;
343
+ technologies: z.ZodArray<z.ZodString, "many">;
344
+ }, "strip", z.ZodTypeAny, {
345
+ name: string;
346
+ type: string;
347
+ technologies: string[];
348
+ }, {
349
+ name: string;
350
+ type: string;
351
+ technologies: string[];
352
+ }>;
353
+ /**
354
+ * Schema for UserPreferences
355
+ */
356
+ export declare const userPreferencesSchema: z.ZodObject<{
357
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
358
+ codeStyle: z.ZodOptional<z.ZodString>;
359
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
360
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
361
+ codeStyle: z.ZodOptional<z.ZodString>;
362
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
363
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
364
+ codeStyle: z.ZodOptional<z.ZodString>;
365
+ }, z.ZodTypeAny, "passthrough">>;
366
+ /**
367
+ * Schema for UserContext
368
+ */
369
+ export declare const userContextSchema: z.ZodObject<{
370
+ currentProject: z.ZodOptional<z.ZodObject<{
371
+ name: z.ZodString;
372
+ type: z.ZodString;
373
+ technologies: z.ZodArray<z.ZodString, "many">;
374
+ }, "strip", z.ZodTypeAny, {
375
+ name: string;
376
+ type: string;
377
+ technologies: string[];
378
+ }, {
379
+ name: string;
380
+ type: string;
381
+ technologies: string[];
382
+ }>>;
383
+ recentDecisions: z.ZodArray<z.ZodObject<{
384
+ summary: z.ZodString;
385
+ timestamp: z.ZodString;
386
+ principlesApplied: z.ZodArray<z.ZodString, "many">;
387
+ }, "strip", z.ZodTypeAny, {
388
+ timestamp: string;
389
+ summary: string;
390
+ principlesApplied: string[];
391
+ }, {
392
+ timestamp: string;
393
+ summary: string;
394
+ principlesApplied: string[];
395
+ }>, "many">;
396
+ activeGoals: z.ZodArray<z.ZodString, "many">;
397
+ preferences: z.ZodObject<{
398
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
399
+ codeStyle: z.ZodOptional<z.ZodString>;
400
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
401
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
402
+ codeStyle: z.ZodOptional<z.ZodString>;
403
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
404
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
405
+ codeStyle: z.ZodOptional<z.ZodString>;
406
+ }, z.ZodTypeAny, "passthrough">>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ recentDecisions: {
409
+ timestamp: string;
410
+ summary: string;
411
+ principlesApplied: string[];
412
+ }[];
413
+ activeGoals: string[];
414
+ preferences: {
415
+ verbosity: "minimal" | "normal" | "detailed";
416
+ codeStyle?: string | undefined;
417
+ } & {
418
+ [k: string]: unknown;
419
+ };
420
+ currentProject?: {
421
+ name: string;
422
+ type: string;
423
+ technologies: string[];
424
+ } | undefined;
425
+ }, {
426
+ recentDecisions: {
427
+ timestamp: string;
428
+ summary: string;
429
+ principlesApplied: string[];
430
+ }[];
431
+ activeGoals: string[];
432
+ preferences: {
433
+ verbosity: "minimal" | "normal" | "detailed";
434
+ codeStyle?: string | undefined;
435
+ } & {
436
+ [k: string]: unknown;
437
+ };
438
+ currentProject?: {
439
+ name: string;
440
+ type: string;
441
+ technologies: string[];
442
+ } | undefined;
443
+ }>;
444
+ /**
445
+ * Schema for KnowledgeMetadata
446
+ */
447
+ export declare const knowledgeMetadataSchema: z.ZodObject<{
448
+ createdAt: z.ZodString;
449
+ updatedAt: z.ZodString;
450
+ version: z.ZodNumber;
451
+ }, "strip", z.ZodTypeAny, {
452
+ version: number;
453
+ createdAt: string;
454
+ updatedAt: string;
455
+ }, {
456
+ version: number;
457
+ createdAt: string;
458
+ updatedAt: string;
459
+ }>;
460
+ /**
461
+ * Schema for IndividualKnowledge
462
+ */
463
+ export declare const individualKnowledgeSchema: z.ZodObject<{
464
+ userId: z.ZodString;
465
+ philosophy: z.ZodObject<{
466
+ values: z.ZodArray<z.ZodObject<{
467
+ name: z.ZodString;
468
+ description: z.ZodString;
469
+ priority: z.ZodNumber;
470
+ }, "strip", z.ZodTypeAny, {
471
+ name: string;
472
+ description: string;
473
+ priority: number;
474
+ }, {
475
+ name: string;
476
+ description: string;
477
+ priority: number;
478
+ }>, "many">;
479
+ beliefs: z.ZodArray<z.ZodObject<{
480
+ statement: z.ZodString;
481
+ confidence: z.ZodNumber;
482
+ domain: z.ZodArray<z.ZodString, "many">;
483
+ }, "strip", z.ZodTypeAny, {
484
+ domain: string[];
485
+ statement: string;
486
+ confidence: number;
487
+ }, {
488
+ domain: string[];
489
+ statement: string;
490
+ confidence: number;
491
+ }>, "many">;
492
+ identity: z.ZodObject<{
493
+ professionalTitle: z.ZodOptional<z.ZodString>;
494
+ expertise: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
495
+ yearsExperience: z.ZodOptional<z.ZodNumber>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ professionalTitle?: string | undefined;
498
+ expertise?: string[] | undefined;
499
+ yearsExperience?: number | undefined;
500
+ }, {
501
+ professionalTitle?: string | undefined;
502
+ expertise?: string[] | undefined;
503
+ yearsExperience?: number | undefined;
504
+ }>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ values: {
507
+ name: string;
508
+ description: string;
509
+ priority: number;
510
+ }[];
511
+ identity: {
512
+ professionalTitle?: string | undefined;
513
+ expertise?: string[] | undefined;
514
+ yearsExperience?: number | undefined;
515
+ };
516
+ beliefs: {
517
+ domain: string[];
518
+ statement: string;
519
+ confidence: number;
520
+ }[];
521
+ }, {
522
+ values: {
523
+ name: string;
524
+ description: string;
525
+ priority: number;
526
+ }[];
527
+ identity: {
528
+ professionalTitle?: string | undefined;
529
+ expertise?: string[] | undefined;
530
+ yearsExperience?: number | undefined;
531
+ };
532
+ beliefs: {
533
+ domain: string[];
534
+ statement: string;
535
+ confidence: number;
536
+ }[];
537
+ }>;
538
+ principles: z.ZodArray<z.ZodObject<{
539
+ id: z.ZodString;
540
+ content: z.ZodString;
541
+ domain: z.ZodArray<z.ZodString, "many">;
542
+ weight: z.ZodNumber;
543
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
544
+ decision: z.ZodString;
545
+ context: z.ZodString;
546
+ outcome: z.ZodOptional<z.ZodEnum<["positive", "negative", "neutral"]>>;
547
+ timestamp: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ context: string;
550
+ decision: string;
551
+ timestamp: string;
552
+ outcome?: "positive" | "negative" | "neutral" | undefined;
553
+ }, {
554
+ context: string;
555
+ decision: string;
556
+ timestamp: string;
557
+ outcome?: "positive" | "negative" | "neutral" | undefined;
558
+ }>, "many">>;
559
+ status: z.ZodEnum<["active", "deprecated", "draft"]>;
560
+ metadata: z.ZodObject<{
561
+ createdAt: z.ZodString;
562
+ updatedAt: z.ZodString;
563
+ source: z.ZodOptional<z.ZodString>;
564
+ deprecatedAt: z.ZodOptional<z.ZodString>;
565
+ deprecationReason: z.ZodOptional<z.ZodString>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ createdAt: string;
568
+ updatedAt: string;
569
+ source?: string | undefined;
570
+ deprecatedAt?: string | undefined;
571
+ deprecationReason?: string | undefined;
572
+ }, {
573
+ createdAt: string;
574
+ updatedAt: string;
575
+ source?: string | undefined;
576
+ deprecatedAt?: string | undefined;
577
+ deprecationReason?: string | undefined;
578
+ }>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ domain: string[];
581
+ weight: number;
582
+ status: "active" | "deprecated" | "draft";
583
+ id: string;
584
+ content: string;
585
+ evidence: {
586
+ context: string;
587
+ decision: string;
588
+ timestamp: string;
589
+ outcome?: "positive" | "negative" | "neutral" | undefined;
590
+ }[];
591
+ metadata: {
592
+ createdAt: string;
593
+ updatedAt: string;
594
+ source?: string | undefined;
595
+ deprecatedAt?: string | undefined;
596
+ deprecationReason?: string | undefined;
597
+ };
598
+ }, {
599
+ domain: string[];
600
+ weight: number;
601
+ status: "active" | "deprecated" | "draft";
602
+ id: string;
603
+ content: string;
604
+ metadata: {
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ source?: string | undefined;
608
+ deprecatedAt?: string | undefined;
609
+ deprecationReason?: string | undefined;
610
+ };
611
+ evidence?: {
612
+ context: string;
613
+ decision: string;
614
+ timestamp: string;
615
+ outcome?: "positive" | "negative" | "neutral" | undefined;
616
+ }[] | undefined;
617
+ }>, "many">;
618
+ patterns: z.ZodArray<z.ZodObject<{
619
+ id: z.ZodString;
620
+ description: z.ZodString;
621
+ occurrences: z.ZodArray<z.ZodObject<{
622
+ context: z.ZodString;
623
+ timestamp: z.ZodString;
624
+ decision: z.ZodString;
625
+ }, "strip", z.ZodTypeAny, {
626
+ context: string;
627
+ decision: string;
628
+ timestamp: string;
629
+ }, {
630
+ context: string;
631
+ decision: string;
632
+ timestamp: string;
633
+ }>, "many">;
634
+ status: z.ZodEnum<["emerging", "established", "promoted", "rejected"]>;
635
+ domain: z.ZodArray<z.ZodString, "many">;
636
+ firstSeen: z.ZodString;
637
+ lastSeen: z.ZodString;
638
+ promotedTo: z.ZodOptional<z.ZodString>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ domain: string[];
641
+ description: string;
642
+ status: "emerging" | "established" | "promoted" | "rejected";
643
+ id: string;
644
+ occurrences: {
645
+ context: string;
646
+ decision: string;
647
+ timestamp: string;
648
+ }[];
649
+ firstSeen: string;
650
+ lastSeen: string;
651
+ promotedTo?: string | undefined;
652
+ }, {
653
+ domain: string[];
654
+ description: string;
655
+ status: "emerging" | "established" | "promoted" | "rejected";
656
+ id: string;
657
+ occurrences: {
658
+ context: string;
659
+ decision: string;
660
+ timestamp: string;
661
+ }[];
662
+ firstSeen: string;
663
+ lastSeen: string;
664
+ promotedTo?: string | undefined;
665
+ }>, "many">;
666
+ context: z.ZodObject<{
667
+ currentProject: z.ZodOptional<z.ZodObject<{
668
+ name: z.ZodString;
669
+ type: z.ZodString;
670
+ technologies: z.ZodArray<z.ZodString, "many">;
671
+ }, "strip", z.ZodTypeAny, {
672
+ name: string;
673
+ type: string;
674
+ technologies: string[];
675
+ }, {
676
+ name: string;
677
+ type: string;
678
+ technologies: string[];
679
+ }>>;
680
+ recentDecisions: z.ZodArray<z.ZodObject<{
681
+ summary: z.ZodString;
682
+ timestamp: z.ZodString;
683
+ principlesApplied: z.ZodArray<z.ZodString, "many">;
684
+ }, "strip", z.ZodTypeAny, {
685
+ timestamp: string;
686
+ summary: string;
687
+ principlesApplied: string[];
688
+ }, {
689
+ timestamp: string;
690
+ summary: string;
691
+ principlesApplied: string[];
692
+ }>, "many">;
693
+ activeGoals: z.ZodArray<z.ZodString, "many">;
694
+ preferences: z.ZodObject<{
695
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
696
+ codeStyle: z.ZodOptional<z.ZodString>;
697
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
698
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
699
+ codeStyle: z.ZodOptional<z.ZodString>;
700
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
701
+ verbosity: z.ZodEnum<["minimal", "normal", "detailed"]>;
702
+ codeStyle: z.ZodOptional<z.ZodString>;
703
+ }, z.ZodTypeAny, "passthrough">>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ recentDecisions: {
706
+ timestamp: string;
707
+ summary: string;
708
+ principlesApplied: string[];
709
+ }[];
710
+ activeGoals: string[];
711
+ preferences: {
712
+ verbosity: "minimal" | "normal" | "detailed";
713
+ codeStyle?: string | undefined;
714
+ } & {
715
+ [k: string]: unknown;
716
+ };
717
+ currentProject?: {
718
+ name: string;
719
+ type: string;
720
+ technologies: string[];
721
+ } | undefined;
722
+ }, {
723
+ recentDecisions: {
724
+ timestamp: string;
725
+ summary: string;
726
+ principlesApplied: string[];
727
+ }[];
728
+ activeGoals: string[];
729
+ preferences: {
730
+ verbosity: "minimal" | "normal" | "detailed";
731
+ codeStyle?: string | undefined;
732
+ } & {
733
+ [k: string]: unknown;
734
+ };
735
+ currentProject?: {
736
+ name: string;
737
+ type: string;
738
+ technologies: string[];
739
+ } | undefined;
740
+ }>;
741
+ metadata: z.ZodObject<{
742
+ createdAt: z.ZodString;
743
+ updatedAt: z.ZodString;
744
+ version: z.ZodNumber;
745
+ }, "strip", z.ZodTypeAny, {
746
+ version: number;
747
+ createdAt: string;
748
+ updatedAt: string;
749
+ }, {
750
+ version: number;
751
+ createdAt: string;
752
+ updatedAt: string;
753
+ }>;
754
+ }, "strip", z.ZodTypeAny, {
755
+ philosophy: {
756
+ values: {
757
+ name: string;
758
+ description: string;
759
+ priority: number;
760
+ }[];
761
+ identity: {
762
+ professionalTitle?: string | undefined;
763
+ expertise?: string[] | undefined;
764
+ yearsExperience?: number | undefined;
765
+ };
766
+ beliefs: {
767
+ domain: string[];
768
+ statement: string;
769
+ confidence: number;
770
+ }[];
771
+ };
772
+ principles: {
773
+ domain: string[];
774
+ weight: number;
775
+ status: "active" | "deprecated" | "draft";
776
+ id: string;
777
+ content: string;
778
+ evidence: {
779
+ context: string;
780
+ decision: string;
781
+ timestamp: string;
782
+ outcome?: "positive" | "negative" | "neutral" | undefined;
783
+ }[];
784
+ metadata: {
785
+ createdAt: string;
786
+ updatedAt: string;
787
+ source?: string | undefined;
788
+ deprecatedAt?: string | undefined;
789
+ deprecationReason?: string | undefined;
790
+ };
791
+ }[];
792
+ patterns: {
793
+ domain: string[];
794
+ description: string;
795
+ status: "emerging" | "established" | "promoted" | "rejected";
796
+ id: string;
797
+ occurrences: {
798
+ context: string;
799
+ decision: string;
800
+ timestamp: string;
801
+ }[];
802
+ firstSeen: string;
803
+ lastSeen: string;
804
+ promotedTo?: string | undefined;
805
+ }[];
806
+ context: {
807
+ recentDecisions: {
808
+ timestamp: string;
809
+ summary: string;
810
+ principlesApplied: string[];
811
+ }[];
812
+ activeGoals: string[];
813
+ preferences: {
814
+ verbosity: "minimal" | "normal" | "detailed";
815
+ codeStyle?: string | undefined;
816
+ } & {
817
+ [k: string]: unknown;
818
+ };
819
+ currentProject?: {
820
+ name: string;
821
+ type: string;
822
+ technologies: string[];
823
+ } | undefined;
824
+ };
825
+ metadata: {
826
+ version: number;
827
+ createdAt: string;
828
+ updatedAt: string;
829
+ };
830
+ userId: string;
831
+ }, {
832
+ philosophy: {
833
+ values: {
834
+ name: string;
835
+ description: string;
836
+ priority: number;
837
+ }[];
838
+ identity: {
839
+ professionalTitle?: string | undefined;
840
+ expertise?: string[] | undefined;
841
+ yearsExperience?: number | undefined;
842
+ };
843
+ beliefs: {
844
+ domain: string[];
845
+ statement: string;
846
+ confidence: number;
847
+ }[];
848
+ };
849
+ principles: {
850
+ domain: string[];
851
+ weight: number;
852
+ status: "active" | "deprecated" | "draft";
853
+ id: string;
854
+ content: string;
855
+ metadata: {
856
+ createdAt: string;
857
+ updatedAt: string;
858
+ source?: string | undefined;
859
+ deprecatedAt?: string | undefined;
860
+ deprecationReason?: string | undefined;
861
+ };
862
+ evidence?: {
863
+ context: string;
864
+ decision: string;
865
+ timestamp: string;
866
+ outcome?: "positive" | "negative" | "neutral" | undefined;
867
+ }[] | undefined;
868
+ }[];
869
+ patterns: {
870
+ domain: string[];
871
+ description: string;
872
+ status: "emerging" | "established" | "promoted" | "rejected";
873
+ id: string;
874
+ occurrences: {
875
+ context: string;
876
+ decision: string;
877
+ timestamp: string;
878
+ }[];
879
+ firstSeen: string;
880
+ lastSeen: string;
881
+ promotedTo?: string | undefined;
882
+ }[];
883
+ context: {
884
+ recentDecisions: {
885
+ timestamp: string;
886
+ summary: string;
887
+ principlesApplied: string[];
888
+ }[];
889
+ activeGoals: string[];
890
+ preferences: {
891
+ verbosity: "minimal" | "normal" | "detailed";
892
+ codeStyle?: string | undefined;
893
+ } & {
894
+ [k: string]: unknown;
895
+ };
896
+ currentProject?: {
897
+ name: string;
898
+ type: string;
899
+ technologies: string[];
900
+ } | undefined;
901
+ };
902
+ metadata: {
903
+ version: number;
904
+ createdAt: string;
905
+ updatedAt: string;
906
+ };
907
+ userId: string;
908
+ }>;
909
+ export type ValueInput = z.input<typeof valueSchema>;
910
+ export type BeliefInput = z.input<typeof beliefSchema>;
911
+ export type PhilosophyInput = z.input<typeof philosophySchema>;
912
+ export type EvidenceInput = z.input<typeof evidenceSchema>;
913
+ export type PrincipleInput = z.input<typeof principleSchema>;
914
+ export type PatternInput = z.input<typeof patternSchema>;
915
+ export type UserContextInput = z.input<typeof userContextSchema>;
916
+ export type IndividualKnowledgeInput = z.input<typeof individualKnowledgeSchema>;
917
+ //# sourceMappingURL=schemas.d.ts.map