@lore-co/core 0.1.2 → 0.1.4
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.
- package/dist/auth-schemas.d.ts +120 -0
- package/dist/auth-schemas.d.ts.map +1 -1
- package/dist/auth-schemas.js +72 -1
- package/dist/auth-schemas.js.map +1 -1
- package/dist/conflict-detector.d.ts +8 -0
- package/dist/conflict-detector.d.ts.map +1 -0
- package/dist/conflict-detector.js +124 -0
- package/dist/conflict-detector.js.map +1 -0
- package/dist/engine.d.ts +12 -6
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +212 -25
- package/dist/engine.js.map +1 -1
- package/dist/in-memory-repository.d.ts +13 -7
- package/dist/in-memory-repository.d.ts.map +1 -1
- package/dist/in-memory-repository.js +356 -28
- package/dist/in-memory-repository.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/native-coding-agents.d.ts +4 -0
- package/dist/native-coding-agents.d.ts.map +1 -0
- package/dist/native-coding-agents.js +10 -0
- package/dist/native-coding-agents.js.map +1 -0
- package/dist/pilot-schemas.d.ts +533 -34
- package/dist/pilot-schemas.d.ts.map +1 -1
- package/dist/pilot-schemas.js +58 -2
- package/dist/pilot-schemas.js.map +1 -1
- package/dist/ports.d.ts +38 -7
- package/dist/ports.d.ts.map +1 -1
- package/dist/redaction.d.ts.map +1 -1
- package/dist/redaction.js +10 -1
- package/dist/redaction.js.map +1 -1
- package/dist/schemas.d.ts +1154 -43
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +293 -4
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
package/dist/pilot-schemas.d.ts
CHANGED
|
@@ -41,9 +41,9 @@ export declare const ConfirmationLevelSchema: z.ZodEnum<{
|
|
|
41
41
|
}>;
|
|
42
42
|
export type ConfirmationLevel = z.infer<typeof ConfirmationLevelSchema>;
|
|
43
43
|
export declare const TurnScopeSchema: z.ZodObject<{
|
|
44
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
44
45
|
project: z.ZodOptional<z.ZodString>;
|
|
45
46
|
repo: z.ZodOptional<z.ZodString>;
|
|
46
|
-
path: z.ZodOptional<z.ZodString>;
|
|
47
47
|
component: z.ZodOptional<z.ZodString>;
|
|
48
48
|
}, z.core.$strict>;
|
|
49
49
|
export type TurnScope = z.infer<typeof TurnScopeSchema>;
|
|
@@ -89,15 +89,15 @@ export declare const PairedTurnRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
89
89
|
}>>>;
|
|
90
90
|
currentUserPrompt: z.ZodOptional<z.ZodString>;
|
|
91
91
|
scope: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
92
93
|
project: z.ZodOptional<z.ZodString>;
|
|
93
94
|
repo: z.ZodOptional<z.ZodString>;
|
|
94
|
-
path: z.ZodOptional<z.ZodString>;
|
|
95
95
|
component: z.ZodOptional<z.ZodString>;
|
|
96
96
|
}, z.core.$strict>>;
|
|
97
97
|
learningScope: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
98
99
|
project: z.ZodOptional<z.ZodString>;
|
|
99
100
|
repo: z.ZodOptional<z.ZodString>;
|
|
100
|
-
path: z.ZodOptional<z.ZodString>;
|
|
101
101
|
component: z.ZodOptional<z.ZodString>;
|
|
102
102
|
}, z.core.$strict>>;
|
|
103
103
|
project: z.ZodOptional<z.ZodString>;
|
|
@@ -105,7 +105,8 @@ export declare const PairedTurnRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
105
105
|
path: z.ZodOptional<z.ZodString>;
|
|
106
106
|
component: z.ZodOptional<z.ZodString>;
|
|
107
107
|
task: z.ZodOptional<z.ZodString>;
|
|
108
|
-
|
|
108
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
109
|
+
files: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
109
110
|
components: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
111
|
symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
112
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -116,11 +117,12 @@ export declare const PairedTurnRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
116
117
|
symbols?: string[];
|
|
117
118
|
components?: string[];
|
|
118
119
|
files?: string[];
|
|
120
|
+
diff?: string;
|
|
119
121
|
task?: string;
|
|
120
122
|
learningScope?: {
|
|
123
|
+
path?: string | undefined;
|
|
121
124
|
project?: string | undefined;
|
|
122
125
|
repo?: string | undefined;
|
|
123
|
-
path?: string | undefined;
|
|
124
126
|
component?: string | undefined;
|
|
125
127
|
};
|
|
126
128
|
previousAssistant: {
|
|
@@ -163,15 +165,15 @@ export declare const PairedTurnRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
163
165
|
} | undefined;
|
|
164
166
|
currentUserPrompt?: string | undefined;
|
|
165
167
|
scope?: {
|
|
168
|
+
path?: string | undefined;
|
|
166
169
|
project?: string | undefined;
|
|
167
170
|
repo?: string | undefined;
|
|
168
|
-
path?: string | undefined;
|
|
169
171
|
component?: string | undefined;
|
|
170
172
|
} | undefined;
|
|
171
173
|
learningScope?: {
|
|
174
|
+
path?: string | undefined;
|
|
172
175
|
project?: string | undefined;
|
|
173
176
|
repo?: string | undefined;
|
|
174
|
-
path?: string | undefined;
|
|
175
177
|
component?: string | undefined;
|
|
176
178
|
} | undefined;
|
|
177
179
|
project?: string | undefined;
|
|
@@ -179,6 +181,7 @@ export declare const PairedTurnRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
179
181
|
path?: string | undefined;
|
|
180
182
|
component?: string | undefined;
|
|
181
183
|
task?: string | undefined;
|
|
184
|
+
diff?: string | undefined;
|
|
182
185
|
files?: string[] | undefined;
|
|
183
186
|
components?: string[] | undefined;
|
|
184
187
|
symbols?: string[] | undefined;
|
|
@@ -221,15 +224,15 @@ export declare const PairedTurnSchema: z.ZodPipe<z.ZodObject<{
|
|
|
221
224
|
}>>>;
|
|
222
225
|
currentUserPrompt: z.ZodOptional<z.ZodString>;
|
|
223
226
|
scope: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
224
228
|
project: z.ZodOptional<z.ZodString>;
|
|
225
229
|
repo: z.ZodOptional<z.ZodString>;
|
|
226
|
-
path: z.ZodOptional<z.ZodString>;
|
|
227
230
|
component: z.ZodOptional<z.ZodString>;
|
|
228
231
|
}, z.core.$strict>>;
|
|
229
232
|
learningScope: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
230
234
|
project: z.ZodOptional<z.ZodString>;
|
|
231
235
|
repo: z.ZodOptional<z.ZodString>;
|
|
232
|
-
path: z.ZodOptional<z.ZodString>;
|
|
233
236
|
component: z.ZodOptional<z.ZodString>;
|
|
234
237
|
}, z.core.$strict>>;
|
|
235
238
|
project: z.ZodOptional<z.ZodString>;
|
|
@@ -237,7 +240,8 @@ export declare const PairedTurnSchema: z.ZodPipe<z.ZodObject<{
|
|
|
237
240
|
path: z.ZodOptional<z.ZodString>;
|
|
238
241
|
component: z.ZodOptional<z.ZodString>;
|
|
239
242
|
task: z.ZodOptional<z.ZodString>;
|
|
240
|
-
|
|
243
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
244
|
+
files: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
241
245
|
components: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
246
|
symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
243
247
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -248,11 +252,12 @@ export declare const PairedTurnSchema: z.ZodPipe<z.ZodObject<{
|
|
|
248
252
|
symbols?: string[];
|
|
249
253
|
components?: string[];
|
|
250
254
|
files?: string[];
|
|
255
|
+
diff?: string;
|
|
251
256
|
task?: string;
|
|
252
257
|
learningScope?: {
|
|
258
|
+
path?: string | undefined;
|
|
253
259
|
project?: string | undefined;
|
|
254
260
|
repo?: string | undefined;
|
|
255
|
-
path?: string | undefined;
|
|
256
261
|
component?: string | undefined;
|
|
257
262
|
};
|
|
258
263
|
previousAssistant: {
|
|
@@ -295,15 +300,15 @@ export declare const PairedTurnSchema: z.ZodPipe<z.ZodObject<{
|
|
|
295
300
|
} | undefined;
|
|
296
301
|
currentUserPrompt?: string | undefined;
|
|
297
302
|
scope?: {
|
|
303
|
+
path?: string | undefined;
|
|
298
304
|
project?: string | undefined;
|
|
299
305
|
repo?: string | undefined;
|
|
300
|
-
path?: string | undefined;
|
|
301
306
|
component?: string | undefined;
|
|
302
307
|
} | undefined;
|
|
303
308
|
learningScope?: {
|
|
309
|
+
path?: string | undefined;
|
|
304
310
|
project?: string | undefined;
|
|
305
311
|
repo?: string | undefined;
|
|
306
|
-
path?: string | undefined;
|
|
307
312
|
component?: string | undefined;
|
|
308
313
|
} | undefined;
|
|
309
314
|
project?: string | undefined;
|
|
@@ -311,6 +316,7 @@ export declare const PairedTurnSchema: z.ZodPipe<z.ZodObject<{
|
|
|
311
316
|
path?: string | undefined;
|
|
312
317
|
component?: string | undefined;
|
|
313
318
|
task?: string | undefined;
|
|
319
|
+
diff?: string | undefined;
|
|
314
320
|
files?: string[] | undefined;
|
|
315
321
|
components?: string[] | undefined;
|
|
316
322
|
symbols?: string[] | undefined;
|
|
@@ -326,18 +332,20 @@ export declare const ObservationRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
326
332
|
sessionId: z.ZodString;
|
|
327
333
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
328
334
|
scope: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
329
336
|
project: z.ZodOptional<z.ZodString>;
|
|
330
337
|
repo: z.ZodOptional<z.ZodString>;
|
|
331
|
-
path: z.ZodOptional<z.ZodString>;
|
|
332
338
|
component: z.ZodOptional<z.ZodString>;
|
|
333
339
|
}, z.core.$strict>>;
|
|
334
340
|
learningScope: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
335
342
|
project: z.ZodOptional<z.ZodString>;
|
|
336
343
|
repo: z.ZodOptional<z.ZodString>;
|
|
337
|
-
path: z.ZodOptional<z.ZodString>;
|
|
338
344
|
component: z.ZodOptional<z.ZodString>;
|
|
339
345
|
}, z.core.$strict>>;
|
|
340
346
|
task: z.ZodOptional<z.ZodString>;
|
|
347
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
348
|
+
files: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
341
349
|
messages: z.ZodArray<z.ZodObject<{
|
|
342
350
|
role: z.ZodEnum<{
|
|
343
351
|
system: "system";
|
|
@@ -354,9 +362,9 @@ export declare const ObservationRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
354
362
|
}, z.core.$strict>, z.ZodTransform<{
|
|
355
363
|
eventId: string;
|
|
356
364
|
learningScope: {
|
|
365
|
+
path?: string | undefined;
|
|
357
366
|
project?: string | undefined;
|
|
358
367
|
repo?: string | undefined;
|
|
359
|
-
path?: string | undefined;
|
|
360
368
|
component?: string | undefined;
|
|
361
369
|
};
|
|
362
370
|
connector: string;
|
|
@@ -371,12 +379,14 @@ export declare const ObservationRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
371
379
|
occurredAt: string;
|
|
372
380
|
conversationId?: string | undefined;
|
|
373
381
|
scope?: {
|
|
382
|
+
path?: string | undefined;
|
|
374
383
|
project?: string | undefined;
|
|
375
384
|
repo?: string | undefined;
|
|
376
|
-
path?: string | undefined;
|
|
377
385
|
component?: string | undefined;
|
|
378
386
|
} | undefined;
|
|
379
387
|
task?: string | undefined;
|
|
388
|
+
diff?: string | undefined;
|
|
389
|
+
files?: string[] | undefined;
|
|
380
390
|
metadata?: Record<string, unknown> | undefined;
|
|
381
391
|
}, {
|
|
382
392
|
connector: string;
|
|
@@ -393,18 +403,20 @@ export declare const ObservationRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
393
403
|
externalEventId?: string | undefined;
|
|
394
404
|
conversationId?: string | undefined;
|
|
395
405
|
scope?: {
|
|
406
|
+
path?: string | undefined;
|
|
396
407
|
project?: string | undefined;
|
|
397
408
|
repo?: string | undefined;
|
|
398
|
-
path?: string | undefined;
|
|
399
409
|
component?: string | undefined;
|
|
400
410
|
} | undefined;
|
|
401
411
|
learningScope?: {
|
|
412
|
+
path?: string | undefined;
|
|
402
413
|
project?: string | undefined;
|
|
403
414
|
repo?: string | undefined;
|
|
404
|
-
path?: string | undefined;
|
|
405
415
|
component?: string | undefined;
|
|
406
416
|
} | undefined;
|
|
407
417
|
task?: string | undefined;
|
|
418
|
+
diff?: string | undefined;
|
|
419
|
+
files?: string[] | undefined;
|
|
408
420
|
metadata?: Record<string, unknown> | undefined;
|
|
409
421
|
}>>;
|
|
410
422
|
export type ObservationRequestInput = z.input<typeof ObservationRequestSchema>;
|
|
@@ -436,7 +448,7 @@ export declare const ContextDeliveryRequestSchema: z.ZodObject<{
|
|
|
436
448
|
organization: z.ZodOptional<z.ZodString>;
|
|
437
449
|
project: z.ZodOptional<z.ZodString>;
|
|
438
450
|
repo: z.ZodOptional<z.ZodString>;
|
|
439
|
-
path: z.ZodOptional<z.ZodString
|
|
451
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
440
452
|
component: z.ZodOptional<z.ZodString>;
|
|
441
453
|
}, z.core.$strict>>;
|
|
442
454
|
organization: z.ZodOptional<z.ZodString>;
|
|
@@ -446,7 +458,7 @@ export declare const ContextDeliveryRequestSchema: z.ZodObject<{
|
|
|
446
458
|
component: z.ZodOptional<z.ZodString>;
|
|
447
459
|
task: z.ZodString;
|
|
448
460
|
diff: z.ZodOptional<z.ZodString>;
|
|
449
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString
|
|
461
|
+
files: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
450
462
|
components: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
451
463
|
symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
452
464
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -553,7 +565,7 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
553
565
|
organization: z.ZodOptional<z.ZodString>;
|
|
554
566
|
project: z.ZodOptional<z.ZodString>;
|
|
555
567
|
repo: z.ZodOptional<z.ZodString>;
|
|
556
|
-
path: z.ZodOptional<z.ZodString
|
|
568
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
557
569
|
component: z.ZodOptional<z.ZodString>;
|
|
558
570
|
}, z.core.$strict>;
|
|
559
571
|
category: z.ZodEnum<{
|
|
@@ -569,6 +581,8 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
569
581
|
}>;
|
|
570
582
|
status: z.ZodEnum<{
|
|
571
583
|
active: "active";
|
|
584
|
+
proposed: "proposed";
|
|
585
|
+
suppressed: "suppressed";
|
|
572
586
|
superseded: "superseded";
|
|
573
587
|
deleted: "deleted";
|
|
574
588
|
}>;
|
|
@@ -592,6 +606,7 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
592
606
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
593
607
|
createdAt: z.ZodISODateTime;
|
|
594
608
|
updatedAt: z.ZodISODateTime;
|
|
609
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
595
610
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
596
611
|
}, z.core.$strict>;
|
|
597
612
|
sourceEvent: z.ZodNullable<z.ZodObject<{
|
|
@@ -663,7 +678,7 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
663
678
|
organization: z.ZodOptional<z.ZodString>;
|
|
664
679
|
project: z.ZodOptional<z.ZodString>;
|
|
665
680
|
repo: z.ZodOptional<z.ZodString>;
|
|
666
|
-
path: z.ZodOptional<z.ZodString
|
|
681
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
667
682
|
component: z.ZodOptional<z.ZodString>;
|
|
668
683
|
}, z.core.$strict>;
|
|
669
684
|
category: z.ZodEnum<{
|
|
@@ -679,6 +694,8 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
679
694
|
}>;
|
|
680
695
|
status: z.ZodEnum<{
|
|
681
696
|
active: "active";
|
|
697
|
+
proposed: "proposed";
|
|
698
|
+
suppressed: "suppressed";
|
|
682
699
|
superseded: "superseded";
|
|
683
700
|
deleted: "deleted";
|
|
684
701
|
}>;
|
|
@@ -702,6 +719,7 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
702
719
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
703
720
|
createdAt: z.ZodISODateTime;
|
|
704
721
|
updatedAt: z.ZodISODateTime;
|
|
722
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
705
723
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
706
724
|
}, z.core.$strict>>;
|
|
707
725
|
successor: z.ZodNullable<z.ZodObject<{
|
|
@@ -712,7 +730,7 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
712
730
|
organization: z.ZodOptional<z.ZodString>;
|
|
713
731
|
project: z.ZodOptional<z.ZodString>;
|
|
714
732
|
repo: z.ZodOptional<z.ZodString>;
|
|
715
|
-
path: z.ZodOptional<z.ZodString
|
|
733
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
716
734
|
component: z.ZodOptional<z.ZodString>;
|
|
717
735
|
}, z.core.$strict>;
|
|
718
736
|
category: z.ZodEnum<{
|
|
@@ -728,6 +746,8 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
728
746
|
}>;
|
|
729
747
|
status: z.ZodEnum<{
|
|
730
748
|
active: "active";
|
|
749
|
+
proposed: "proposed";
|
|
750
|
+
suppressed: "suppressed";
|
|
731
751
|
superseded: "superseded";
|
|
732
752
|
deleted: "deleted";
|
|
733
753
|
}>;
|
|
@@ -751,6 +771,7 @@ export declare const LearningInspectionResponseSchema: z.ZodObject<{
|
|
|
751
771
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
752
772
|
createdAt: z.ZodISODateTime;
|
|
753
773
|
updatedAt: z.ZodISODateTime;
|
|
774
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
754
775
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
755
776
|
}, z.core.$strict>>;
|
|
756
777
|
}, z.core.$strict>;
|
|
@@ -789,9 +810,262 @@ export declare const DeliveryReceiptSchema: z.ZodObject<{
|
|
|
789
810
|
}, z.core.$strict>>;
|
|
790
811
|
contextSha256: z.ZodString;
|
|
791
812
|
}, z.core.$strict>>;
|
|
813
|
+
querySha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
814
|
+
retrievalPolicyVersion: z.ZodDefault<z.ZodString>;
|
|
815
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
816
|
+
memoryId: z.ZodUUID;
|
|
817
|
+
fingerprint: z.ZodString;
|
|
818
|
+
content: z.ZodString;
|
|
819
|
+
score: z.ZodNumber;
|
|
820
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
821
|
+
symbol: "symbol";
|
|
822
|
+
path: "path";
|
|
823
|
+
lexical: "lexical";
|
|
824
|
+
semantic: "semantic";
|
|
825
|
+
component: "component";
|
|
826
|
+
repository: "repository";
|
|
827
|
+
}>>;
|
|
828
|
+
matchedTerms: z.ZodArray<z.ZodString>;
|
|
829
|
+
}, z.core.$strict>>>;
|
|
792
830
|
deliveredAt: z.ZodISODateTime;
|
|
793
831
|
}, z.core.$strict>;
|
|
794
832
|
export type DeliveryReceipt = z.infer<typeof DeliveryReceiptSchema>;
|
|
833
|
+
export declare const DeliveryFeedbackActionSchema: z.ZodEnum<{
|
|
834
|
+
wrong: "wrong";
|
|
835
|
+
forget: "forget";
|
|
836
|
+
}>;
|
|
837
|
+
export type DeliveryFeedbackAction = z.infer<typeof DeliveryFeedbackActionSchema>;
|
|
838
|
+
export declare const DeliveryFeedbackRequestSchema: z.ZodObject<{
|
|
839
|
+
memoryId: z.ZodUUID;
|
|
840
|
+
action: z.ZodEnum<{
|
|
841
|
+
wrong: "wrong";
|
|
842
|
+
forget: "forget";
|
|
843
|
+
}>;
|
|
844
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.core.$strict>;
|
|
846
|
+
export type DeliveryFeedbackRequest = z.infer<typeof DeliveryFeedbackRequestSchema>;
|
|
847
|
+
export declare const DeliveryFeedbackSchema: z.ZodObject<{
|
|
848
|
+
id: z.ZodUUID;
|
|
849
|
+
workspaceId: z.ZodUUID;
|
|
850
|
+
receiptId: z.ZodUUID;
|
|
851
|
+
memoryId: z.ZodUUID;
|
|
852
|
+
action: z.ZodEnum<{
|
|
853
|
+
wrong: "wrong";
|
|
854
|
+
forget: "forget";
|
|
855
|
+
}>;
|
|
856
|
+
reason: z.ZodString;
|
|
857
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
858
|
+
createdAt: z.ZodISODateTime;
|
|
859
|
+
}, z.core.$strict>;
|
|
860
|
+
export type DeliveryFeedback = z.infer<typeof DeliveryFeedbackSchema>;
|
|
861
|
+
export declare const DeliveryReceiptDetailSchema: z.ZodObject<{
|
|
862
|
+
receipt: z.ZodObject<{
|
|
863
|
+
id: z.ZodUUID;
|
|
864
|
+
workspaceId: z.ZodUUID;
|
|
865
|
+
eventId: z.ZodUUID;
|
|
866
|
+
requestId: z.ZodString;
|
|
867
|
+
memoryIds: z.ZodArray<z.ZodUUID>;
|
|
868
|
+
packing: z.ZodNullable<z.ZodObject<{
|
|
869
|
+
policyVersion: z.ZodLiteral<"context-pack-v1">;
|
|
870
|
+
estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
|
|
871
|
+
limits: z.ZodObject<{
|
|
872
|
+
requestedItems: z.ZodNullable<z.ZodNumber>;
|
|
873
|
+
effectiveItems: z.ZodNumber;
|
|
874
|
+
maxCharacters: z.ZodNumber;
|
|
875
|
+
maxEstimatedTokens: z.ZodNumber;
|
|
876
|
+
}, z.core.$strict>;
|
|
877
|
+
usage: z.ZodObject<{
|
|
878
|
+
retrievedItems: z.ZodNumber;
|
|
879
|
+
includedItems: z.ZodNumber;
|
|
880
|
+
omittedItems: z.ZodNumber;
|
|
881
|
+
characters: z.ZodNumber;
|
|
882
|
+
utf8Bytes: z.ZodNumber;
|
|
883
|
+
estimatedTokens: z.ZodNumber;
|
|
884
|
+
}, z.core.$strict>;
|
|
885
|
+
includedMemoryIds: z.ZodArray<z.ZodUUID>;
|
|
886
|
+
omitted: z.ZodArray<z.ZodObject<{
|
|
887
|
+
memoryId: z.ZodUUID;
|
|
888
|
+
reason: z.ZodEnum<{
|
|
889
|
+
characters: "characters";
|
|
890
|
+
items: "items";
|
|
891
|
+
estimated_tokens: "estimated_tokens";
|
|
892
|
+
}>;
|
|
893
|
+
}, z.core.$strict>>;
|
|
894
|
+
contextSha256: z.ZodString;
|
|
895
|
+
}, z.core.$strict>>;
|
|
896
|
+
querySha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
897
|
+
retrievalPolicyVersion: z.ZodDefault<z.ZodString>;
|
|
898
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
899
|
+
memoryId: z.ZodUUID;
|
|
900
|
+
fingerprint: z.ZodString;
|
|
901
|
+
content: z.ZodString;
|
|
902
|
+
score: z.ZodNumber;
|
|
903
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
904
|
+
symbol: "symbol";
|
|
905
|
+
path: "path";
|
|
906
|
+
lexical: "lexical";
|
|
907
|
+
semantic: "semantic";
|
|
908
|
+
component: "component";
|
|
909
|
+
repository: "repository";
|
|
910
|
+
}>>;
|
|
911
|
+
matchedTerms: z.ZodArray<z.ZodString>;
|
|
912
|
+
}, z.core.$strict>>>;
|
|
913
|
+
deliveredAt: z.ZodISODateTime;
|
|
914
|
+
}, z.core.$strict>;
|
|
915
|
+
event: z.ZodObject<{
|
|
916
|
+
id: z.ZodUUID;
|
|
917
|
+
workspaceId: z.ZodUUID;
|
|
918
|
+
connector: z.ZodString;
|
|
919
|
+
externalEventId: z.ZodString;
|
|
920
|
+
type: z.ZodEnum<{
|
|
921
|
+
observation: "observation";
|
|
922
|
+
paired_turn: "paired_turn";
|
|
923
|
+
context_delivery: "context_delivery";
|
|
924
|
+
}>;
|
|
925
|
+
agent: z.ZodString;
|
|
926
|
+
sessionId: z.ZodString;
|
|
927
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
928
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
929
|
+
redacted: z.ZodBoolean;
|
|
930
|
+
requestId: z.ZodString;
|
|
931
|
+
occurredAt: z.ZodISODateTime;
|
|
932
|
+
receivedAt: z.ZodISODateTime;
|
|
933
|
+
}, z.core.$strict>;
|
|
934
|
+
memories: z.ZodArray<z.ZodObject<{
|
|
935
|
+
id: z.ZodUUID;
|
|
936
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
937
|
+
content: z.ZodString;
|
|
938
|
+
scope: z.ZodObject<{
|
|
939
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
940
|
+
project: z.ZodOptional<z.ZodString>;
|
|
941
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
942
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
943
|
+
component: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strict>;
|
|
945
|
+
category: z.ZodEnum<{
|
|
946
|
+
architecture: "architecture";
|
|
947
|
+
convention: "convention";
|
|
948
|
+
correction: "correction";
|
|
949
|
+
gotcha: "gotcha";
|
|
950
|
+
known_gotcha: "known_gotcha";
|
|
951
|
+
deprecated: "deprecated";
|
|
952
|
+
behavior: "behavior";
|
|
953
|
+
review_feedback: "review_feedback";
|
|
954
|
+
other: "other";
|
|
955
|
+
}>;
|
|
956
|
+
status: z.ZodEnum<{
|
|
957
|
+
active: "active";
|
|
958
|
+
proposed: "proposed";
|
|
959
|
+
suppressed: "suppressed";
|
|
960
|
+
superseded: "superseded";
|
|
961
|
+
deleted: "deleted";
|
|
962
|
+
}>;
|
|
963
|
+
source: z.ZodObject<{
|
|
964
|
+
agent: z.ZodString;
|
|
965
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
966
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
969
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
970
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
971
|
+
}, z.core.$strict>;
|
|
972
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
973
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
974
|
+
unconfirmed: "unconfirmed";
|
|
975
|
+
implicit: "implicit";
|
|
976
|
+
explicit: "explicit";
|
|
977
|
+
}>>;
|
|
978
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
979
|
+
fingerprint: z.ZodString;
|
|
980
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
981
|
+
createdAt: z.ZodISODateTime;
|
|
982
|
+
updatedAt: z.ZodISODateTime;
|
|
983
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
984
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
985
|
+
}, z.core.$strict>>;
|
|
986
|
+
feedback: z.ZodArray<z.ZodObject<{
|
|
987
|
+
id: z.ZodUUID;
|
|
988
|
+
workspaceId: z.ZodUUID;
|
|
989
|
+
receiptId: z.ZodUUID;
|
|
990
|
+
memoryId: z.ZodUUID;
|
|
991
|
+
action: z.ZodEnum<{
|
|
992
|
+
wrong: "wrong";
|
|
993
|
+
forget: "forget";
|
|
994
|
+
}>;
|
|
995
|
+
reason: z.ZodString;
|
|
996
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
997
|
+
createdAt: z.ZodISODateTime;
|
|
998
|
+
}, z.core.$strict>>;
|
|
999
|
+
}, z.core.$strict>;
|
|
1000
|
+
export type DeliveryReceiptDetail = z.infer<typeof DeliveryReceiptDetailSchema>;
|
|
1001
|
+
export declare const DeliveryFeedbackResponseSchema: z.ZodObject<{
|
|
1002
|
+
feedback: z.ZodObject<{
|
|
1003
|
+
id: z.ZodUUID;
|
|
1004
|
+
workspaceId: z.ZodUUID;
|
|
1005
|
+
receiptId: z.ZodUUID;
|
|
1006
|
+
memoryId: z.ZodUUID;
|
|
1007
|
+
action: z.ZodEnum<{
|
|
1008
|
+
wrong: "wrong";
|
|
1009
|
+
forget: "forget";
|
|
1010
|
+
}>;
|
|
1011
|
+
reason: z.ZodString;
|
|
1012
|
+
actorId: z.ZodNullable<z.ZodString>;
|
|
1013
|
+
createdAt: z.ZodISODateTime;
|
|
1014
|
+
}, z.core.$strict>;
|
|
1015
|
+
memory: z.ZodObject<{
|
|
1016
|
+
id: z.ZodUUID;
|
|
1017
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1018
|
+
content: z.ZodString;
|
|
1019
|
+
scope: z.ZodObject<{
|
|
1020
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1024
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1025
|
+
}, z.core.$strict>;
|
|
1026
|
+
category: z.ZodEnum<{
|
|
1027
|
+
architecture: "architecture";
|
|
1028
|
+
convention: "convention";
|
|
1029
|
+
correction: "correction";
|
|
1030
|
+
gotcha: "gotcha";
|
|
1031
|
+
known_gotcha: "known_gotcha";
|
|
1032
|
+
deprecated: "deprecated";
|
|
1033
|
+
behavior: "behavior";
|
|
1034
|
+
review_feedback: "review_feedback";
|
|
1035
|
+
other: "other";
|
|
1036
|
+
}>;
|
|
1037
|
+
status: z.ZodEnum<{
|
|
1038
|
+
active: "active";
|
|
1039
|
+
proposed: "proposed";
|
|
1040
|
+
suppressed: "suppressed";
|
|
1041
|
+
superseded: "superseded";
|
|
1042
|
+
deleted: "deleted";
|
|
1043
|
+
}>;
|
|
1044
|
+
source: z.ZodObject<{
|
|
1045
|
+
agent: z.ZodString;
|
|
1046
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1048
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1049
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1050
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
1051
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
1052
|
+
}, z.core.$strict>;
|
|
1053
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
1055
|
+
unconfirmed: "unconfirmed";
|
|
1056
|
+
implicit: "implicit";
|
|
1057
|
+
explicit: "explicit";
|
|
1058
|
+
}>>;
|
|
1059
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
fingerprint: z.ZodString;
|
|
1061
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1062
|
+
createdAt: z.ZodISODateTime;
|
|
1063
|
+
updatedAt: z.ZodISODateTime;
|
|
1064
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1065
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1066
|
+
}, z.core.$strict>;
|
|
1067
|
+
}, z.core.$strict>;
|
|
1068
|
+
export type DeliveryFeedbackResponse = z.infer<typeof DeliveryFeedbackResponseSchema>;
|
|
795
1069
|
export declare const ContextDeliveryResponseSchema: z.ZodObject<{
|
|
796
1070
|
event: z.ZodObject<{
|
|
797
1071
|
id: z.ZodUUID;
|
|
@@ -846,6 +1120,23 @@ export declare const ContextDeliveryResponseSchema: z.ZodObject<{
|
|
|
846
1120
|
}, z.core.$strict>>;
|
|
847
1121
|
contextSha256: z.ZodString;
|
|
848
1122
|
}, z.core.$strict>>;
|
|
1123
|
+
querySha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1124
|
+
retrievalPolicyVersion: z.ZodDefault<z.ZodString>;
|
|
1125
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1126
|
+
memoryId: z.ZodUUID;
|
|
1127
|
+
fingerprint: z.ZodString;
|
|
1128
|
+
content: z.ZodString;
|
|
1129
|
+
score: z.ZodNumber;
|
|
1130
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
1131
|
+
symbol: "symbol";
|
|
1132
|
+
path: "path";
|
|
1133
|
+
lexical: "lexical";
|
|
1134
|
+
semantic: "semantic";
|
|
1135
|
+
component: "component";
|
|
1136
|
+
repository: "repository";
|
|
1137
|
+
}>>;
|
|
1138
|
+
matchedTerms: z.ZodArray<z.ZodString>;
|
|
1139
|
+
}, z.core.$strict>>>;
|
|
849
1140
|
deliveredAt: z.ZodISODateTime;
|
|
850
1141
|
}, z.core.$strict>;
|
|
851
1142
|
replayed: z.ZodBoolean;
|
|
@@ -857,7 +1148,7 @@ export declare const ContextDeliveryResponseSchema: z.ZodObject<{
|
|
|
857
1148
|
organization: z.ZodOptional<z.ZodString>;
|
|
858
1149
|
project: z.ZodOptional<z.ZodString>;
|
|
859
1150
|
repo: z.ZodOptional<z.ZodString>;
|
|
860
|
-
path: z.ZodOptional<z.ZodString
|
|
1151
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
861
1152
|
component: z.ZodOptional<z.ZodString>;
|
|
862
1153
|
}, z.core.$strict>;
|
|
863
1154
|
category: z.ZodEnum<{
|
|
@@ -873,6 +1164,8 @@ export declare const ContextDeliveryResponseSchema: z.ZodObject<{
|
|
|
873
1164
|
}>;
|
|
874
1165
|
status: z.ZodEnum<{
|
|
875
1166
|
active: "active";
|
|
1167
|
+
proposed: "proposed";
|
|
1168
|
+
suppressed: "suppressed";
|
|
876
1169
|
superseded: "superseded";
|
|
877
1170
|
deleted: "deleted";
|
|
878
1171
|
}>;
|
|
@@ -896,8 +1189,75 @@ export declare const ContextDeliveryResponseSchema: z.ZodObject<{
|
|
|
896
1189
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
897
1190
|
createdAt: z.ZodISODateTime;
|
|
898
1191
|
updatedAt: z.ZodISODateTime;
|
|
1192
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
899
1193
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
900
1194
|
}, z.core.$strict>>;
|
|
1195
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1196
|
+
memory: z.ZodObject<{
|
|
1197
|
+
id: z.ZodUUID;
|
|
1198
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1199
|
+
content: z.ZodString;
|
|
1200
|
+
scope: z.ZodObject<{
|
|
1201
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1205
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1206
|
+
}, z.core.$strict>;
|
|
1207
|
+
category: z.ZodEnum<{
|
|
1208
|
+
architecture: "architecture";
|
|
1209
|
+
convention: "convention";
|
|
1210
|
+
correction: "correction";
|
|
1211
|
+
gotcha: "gotcha";
|
|
1212
|
+
known_gotcha: "known_gotcha";
|
|
1213
|
+
deprecated: "deprecated";
|
|
1214
|
+
behavior: "behavior";
|
|
1215
|
+
review_feedback: "review_feedback";
|
|
1216
|
+
other: "other";
|
|
1217
|
+
}>;
|
|
1218
|
+
status: z.ZodEnum<{
|
|
1219
|
+
active: "active";
|
|
1220
|
+
proposed: "proposed";
|
|
1221
|
+
suppressed: "suppressed";
|
|
1222
|
+
superseded: "superseded";
|
|
1223
|
+
deleted: "deleted";
|
|
1224
|
+
}>;
|
|
1225
|
+
source: z.ZodObject<{
|
|
1226
|
+
agent: z.ZodString;
|
|
1227
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1229
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1230
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1231
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
1232
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
1233
|
+
}, z.core.$strict>;
|
|
1234
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1235
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
1236
|
+
unconfirmed: "unconfirmed";
|
|
1237
|
+
implicit: "implicit";
|
|
1238
|
+
explicit: "explicit";
|
|
1239
|
+
}>>;
|
|
1240
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
fingerprint: z.ZodString;
|
|
1242
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1243
|
+
createdAt: z.ZodISODateTime;
|
|
1244
|
+
updatedAt: z.ZodISODateTime;
|
|
1245
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1246
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1247
|
+
}, z.core.$strict>;
|
|
1248
|
+
score: z.ZodNumber;
|
|
1249
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
1250
|
+
symbol: "symbol";
|
|
1251
|
+
path: "path";
|
|
1252
|
+
lexical: "lexical";
|
|
1253
|
+
semantic: "semantic";
|
|
1254
|
+
component: "component";
|
|
1255
|
+
repository: "repository";
|
|
1256
|
+
}>>;
|
|
1257
|
+
matchedTerms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1258
|
+
lexicalRank: z.ZodNullable<z.ZodNumber>;
|
|
1259
|
+
semanticRank: z.ZodNullable<z.ZodNumber>;
|
|
1260
|
+
}, z.core.$strict>>>;
|
|
901
1261
|
context: z.ZodString;
|
|
902
1262
|
packing: z.ZodObject<{
|
|
903
1263
|
policyVersion: z.ZodLiteral<"context-pack-v1">;
|
|
@@ -930,8 +1290,8 @@ export declare const ContextDeliveryResponseSchema: z.ZodObject<{
|
|
|
930
1290
|
}, z.core.$strict>;
|
|
931
1291
|
export type ContextDeliveryResponse = z.infer<typeof ContextDeliveryResponseSchema>;
|
|
932
1292
|
export declare const ActivityMemorySchema: z.ZodObject<{
|
|
933
|
-
content: z.ZodString;
|
|
934
1293
|
id: z.ZodUUID;
|
|
1294
|
+
content: z.ZodString;
|
|
935
1295
|
category: z.ZodEnum<{
|
|
936
1296
|
architecture: "architecture";
|
|
937
1297
|
convention: "convention";
|
|
@@ -945,6 +1305,8 @@ export declare const ActivityMemorySchema: z.ZodObject<{
|
|
|
945
1305
|
}>;
|
|
946
1306
|
status: z.ZodEnum<{
|
|
947
1307
|
active: "active";
|
|
1308
|
+
proposed: "proposed";
|
|
1309
|
+
suppressed: "suppressed";
|
|
948
1310
|
superseded: "superseded";
|
|
949
1311
|
deleted: "deleted";
|
|
950
1312
|
}>;
|
|
@@ -972,8 +1334,8 @@ export declare const ActivityItemSchema: z.ZodObject<{
|
|
|
972
1334
|
}, z.core.$strict>;
|
|
973
1335
|
correction: z.ZodString;
|
|
974
1336
|
learnedMemories: z.ZodArray<z.ZodObject<{
|
|
975
|
-
content: z.ZodString;
|
|
976
1337
|
id: z.ZodUUID;
|
|
1338
|
+
content: z.ZodString;
|
|
977
1339
|
category: z.ZodEnum<{
|
|
978
1340
|
architecture: "architecture";
|
|
979
1341
|
convention: "convention";
|
|
@@ -987,13 +1349,15 @@ export declare const ActivityItemSchema: z.ZodObject<{
|
|
|
987
1349
|
}>;
|
|
988
1350
|
status: z.ZodEnum<{
|
|
989
1351
|
active: "active";
|
|
1352
|
+
proposed: "proposed";
|
|
1353
|
+
suppressed: "suppressed";
|
|
990
1354
|
superseded: "superseded";
|
|
991
1355
|
deleted: "deleted";
|
|
992
1356
|
}>;
|
|
993
1357
|
}, z.core.$strict>>;
|
|
994
1358
|
deliveredMemories: z.ZodArray<z.ZodObject<{
|
|
995
|
-
content: z.ZodString;
|
|
996
1359
|
id: z.ZodUUID;
|
|
1360
|
+
content: z.ZodString;
|
|
997
1361
|
category: z.ZodEnum<{
|
|
998
1362
|
architecture: "architecture";
|
|
999
1363
|
convention: "convention";
|
|
@@ -1007,6 +1371,8 @@ export declare const ActivityItemSchema: z.ZodObject<{
|
|
|
1007
1371
|
}>;
|
|
1008
1372
|
status: z.ZodEnum<{
|
|
1009
1373
|
active: "active";
|
|
1374
|
+
proposed: "proposed";
|
|
1375
|
+
suppressed: "suppressed";
|
|
1010
1376
|
superseded: "superseded";
|
|
1011
1377
|
deleted: "deleted";
|
|
1012
1378
|
}>;
|
|
@@ -1045,6 +1411,23 @@ export declare const ActivityItemSchema: z.ZodObject<{
|
|
|
1045
1411
|
}, z.core.$strict>>;
|
|
1046
1412
|
contextSha256: z.ZodString;
|
|
1047
1413
|
}, z.core.$strict>>;
|
|
1414
|
+
querySha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1415
|
+
retrievalPolicyVersion: z.ZodDefault<z.ZodString>;
|
|
1416
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1417
|
+
memoryId: z.ZodUUID;
|
|
1418
|
+
fingerprint: z.ZodString;
|
|
1419
|
+
content: z.ZodString;
|
|
1420
|
+
score: z.ZodNumber;
|
|
1421
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
1422
|
+
symbol: "symbol";
|
|
1423
|
+
path: "path";
|
|
1424
|
+
lexical: "lexical";
|
|
1425
|
+
semantic: "semantic";
|
|
1426
|
+
component: "component";
|
|
1427
|
+
repository: "repository";
|
|
1428
|
+
}>>;
|
|
1429
|
+
matchedTerms: z.ZodArray<z.ZodString>;
|
|
1430
|
+
}, z.core.$strict>>>;
|
|
1048
1431
|
deliveredAt: z.ZodISODateTime;
|
|
1049
1432
|
}, z.core.$strict>>;
|
|
1050
1433
|
}, z.core.$strict>;
|
|
@@ -1086,8 +1469,8 @@ export declare const ActivityListResponseSchema: z.ZodObject<{
|
|
|
1086
1469
|
}, z.core.$strict>;
|
|
1087
1470
|
correction: z.ZodString;
|
|
1088
1471
|
learnedMemories: z.ZodArray<z.ZodObject<{
|
|
1089
|
-
content: z.ZodString;
|
|
1090
1472
|
id: z.ZodUUID;
|
|
1473
|
+
content: z.ZodString;
|
|
1091
1474
|
category: z.ZodEnum<{
|
|
1092
1475
|
architecture: "architecture";
|
|
1093
1476
|
convention: "convention";
|
|
@@ -1101,13 +1484,15 @@ export declare const ActivityListResponseSchema: z.ZodObject<{
|
|
|
1101
1484
|
}>;
|
|
1102
1485
|
status: z.ZodEnum<{
|
|
1103
1486
|
active: "active";
|
|
1487
|
+
proposed: "proposed";
|
|
1488
|
+
suppressed: "suppressed";
|
|
1104
1489
|
superseded: "superseded";
|
|
1105
1490
|
deleted: "deleted";
|
|
1106
1491
|
}>;
|
|
1107
1492
|
}, z.core.$strict>>;
|
|
1108
1493
|
deliveredMemories: z.ZodArray<z.ZodObject<{
|
|
1109
|
-
content: z.ZodString;
|
|
1110
1494
|
id: z.ZodUUID;
|
|
1495
|
+
content: z.ZodString;
|
|
1111
1496
|
category: z.ZodEnum<{
|
|
1112
1497
|
architecture: "architecture";
|
|
1113
1498
|
convention: "convention";
|
|
@@ -1121,6 +1506,8 @@ export declare const ActivityListResponseSchema: z.ZodObject<{
|
|
|
1121
1506
|
}>;
|
|
1122
1507
|
status: z.ZodEnum<{
|
|
1123
1508
|
active: "active";
|
|
1509
|
+
proposed: "proposed";
|
|
1510
|
+
suppressed: "suppressed";
|
|
1124
1511
|
superseded: "superseded";
|
|
1125
1512
|
deleted: "deleted";
|
|
1126
1513
|
}>;
|
|
@@ -1159,6 +1546,23 @@ export declare const ActivityListResponseSchema: z.ZodObject<{
|
|
|
1159
1546
|
}, z.core.$strict>>;
|
|
1160
1547
|
contextSha256: z.ZodString;
|
|
1161
1548
|
}, z.core.$strict>>;
|
|
1549
|
+
querySha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1550
|
+
retrievalPolicyVersion: z.ZodDefault<z.ZodString>;
|
|
1551
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1552
|
+
memoryId: z.ZodUUID;
|
|
1553
|
+
fingerprint: z.ZodString;
|
|
1554
|
+
content: z.ZodString;
|
|
1555
|
+
score: z.ZodNumber;
|
|
1556
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
1557
|
+
symbol: "symbol";
|
|
1558
|
+
path: "path";
|
|
1559
|
+
lexical: "lexical";
|
|
1560
|
+
semantic: "semantic";
|
|
1561
|
+
component: "component";
|
|
1562
|
+
repository: "repository";
|
|
1563
|
+
}>>;
|
|
1564
|
+
matchedTerms: z.ZodArray<z.ZodString>;
|
|
1565
|
+
}, z.core.$strict>>>;
|
|
1162
1566
|
deliveredAt: z.ZodISODateTime;
|
|
1163
1567
|
}, z.core.$strict>>;
|
|
1164
1568
|
}, z.core.$strict>>;
|
|
@@ -1177,7 +1581,7 @@ export declare const TurnObservationSchema: z.ZodObject<{
|
|
|
1177
1581
|
organization: z.ZodOptional<z.ZodString>;
|
|
1178
1582
|
project: z.ZodOptional<z.ZodString>;
|
|
1179
1583
|
repo: z.ZodOptional<z.ZodString>;
|
|
1180
|
-
path: z.ZodOptional<z.ZodString
|
|
1584
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1181
1585
|
component: z.ZodOptional<z.ZodString>;
|
|
1182
1586
|
}, z.core.$strict>;
|
|
1183
1587
|
category: z.ZodEnum<{
|
|
@@ -1193,6 +1597,8 @@ export declare const TurnObservationSchema: z.ZodObject<{
|
|
|
1193
1597
|
}>;
|
|
1194
1598
|
status: z.ZodEnum<{
|
|
1195
1599
|
active: "active";
|
|
1600
|
+
proposed: "proposed";
|
|
1601
|
+
suppressed: "suppressed";
|
|
1196
1602
|
superseded: "superseded";
|
|
1197
1603
|
deleted: "deleted";
|
|
1198
1604
|
}>;
|
|
@@ -1216,6 +1622,7 @@ export declare const TurnObservationSchema: z.ZodObject<{
|
|
|
1216
1622
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1217
1623
|
createdAt: z.ZodISODateTime;
|
|
1218
1624
|
updatedAt: z.ZodISODateTime;
|
|
1625
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1219
1626
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1220
1627
|
}, z.core.$strict>>;
|
|
1221
1628
|
created: z.ZodNumber;
|
|
@@ -1233,7 +1640,7 @@ export declare const ObservationResponseSchema: z.ZodObject<{
|
|
|
1233
1640
|
organization: z.ZodOptional<z.ZodString>;
|
|
1234
1641
|
project: z.ZodOptional<z.ZodString>;
|
|
1235
1642
|
repo: z.ZodOptional<z.ZodString>;
|
|
1236
|
-
path: z.ZodOptional<z.ZodString
|
|
1643
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1237
1644
|
component: z.ZodOptional<z.ZodString>;
|
|
1238
1645
|
}, z.core.$strict>;
|
|
1239
1646
|
category: z.ZodEnum<{
|
|
@@ -1249,6 +1656,8 @@ export declare const ObservationResponseSchema: z.ZodObject<{
|
|
|
1249
1656
|
}>;
|
|
1250
1657
|
status: z.ZodEnum<{
|
|
1251
1658
|
active: "active";
|
|
1659
|
+
proposed: "proposed";
|
|
1660
|
+
suppressed: "suppressed";
|
|
1252
1661
|
superseded: "superseded";
|
|
1253
1662
|
deleted: "deleted";
|
|
1254
1663
|
}>;
|
|
@@ -1272,6 +1681,7 @@ export declare const ObservationResponseSchema: z.ZodObject<{
|
|
|
1272
1681
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1273
1682
|
createdAt: z.ZodISODateTime;
|
|
1274
1683
|
updatedAt: z.ZodISODateTime;
|
|
1684
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1275
1685
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1276
1686
|
}, z.core.$strict>>;
|
|
1277
1687
|
created: z.ZodNumber;
|
|
@@ -1331,7 +1741,7 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1331
1741
|
organization: z.ZodOptional<z.ZodString>;
|
|
1332
1742
|
project: z.ZodOptional<z.ZodString>;
|
|
1333
1743
|
repo: z.ZodOptional<z.ZodString>;
|
|
1334
|
-
path: z.ZodOptional<z.ZodString
|
|
1744
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1335
1745
|
component: z.ZodOptional<z.ZodString>;
|
|
1336
1746
|
}, z.core.$strict>;
|
|
1337
1747
|
category: z.ZodEnum<{
|
|
@@ -1347,6 +1757,8 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1347
1757
|
}>;
|
|
1348
1758
|
status: z.ZodEnum<{
|
|
1349
1759
|
active: "active";
|
|
1760
|
+
proposed: "proposed";
|
|
1761
|
+
suppressed: "suppressed";
|
|
1350
1762
|
superseded: "superseded";
|
|
1351
1763
|
deleted: "deleted";
|
|
1352
1764
|
}>;
|
|
@@ -1370,6 +1782,7 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1370
1782
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1371
1783
|
createdAt: z.ZodISODateTime;
|
|
1372
1784
|
updatedAt: z.ZodISODateTime;
|
|
1785
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1373
1786
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1374
1787
|
}, z.core.$strict>>;
|
|
1375
1788
|
created: z.ZodNumber;
|
|
@@ -1386,7 +1799,7 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1386
1799
|
organization: z.ZodOptional<z.ZodString>;
|
|
1387
1800
|
project: z.ZodOptional<z.ZodString>;
|
|
1388
1801
|
repo: z.ZodOptional<z.ZodString>;
|
|
1389
|
-
path: z.ZodOptional<z.ZodString
|
|
1802
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1390
1803
|
component: z.ZodOptional<z.ZodString>;
|
|
1391
1804
|
}, z.core.$strict>;
|
|
1392
1805
|
category: z.ZodEnum<{
|
|
@@ -1402,6 +1815,8 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1402
1815
|
}>;
|
|
1403
1816
|
status: z.ZodEnum<{
|
|
1404
1817
|
active: "active";
|
|
1818
|
+
proposed: "proposed";
|
|
1819
|
+
suppressed: "suppressed";
|
|
1405
1820
|
superseded: "superseded";
|
|
1406
1821
|
deleted: "deleted";
|
|
1407
1822
|
}>;
|
|
@@ -1425,8 +1840,75 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1425
1840
|
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1426
1841
|
createdAt: z.ZodISODateTime;
|
|
1427
1842
|
updatedAt: z.ZodISODateTime;
|
|
1843
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1428
1844
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1429
1845
|
}, z.core.$strict>>;
|
|
1846
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1847
|
+
memory: z.ZodObject<{
|
|
1848
|
+
id: z.ZodUUID;
|
|
1849
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1850
|
+
content: z.ZodString;
|
|
1851
|
+
scope: z.ZodObject<{
|
|
1852
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
1856
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1857
|
+
}, z.core.$strict>;
|
|
1858
|
+
category: z.ZodEnum<{
|
|
1859
|
+
architecture: "architecture";
|
|
1860
|
+
convention: "convention";
|
|
1861
|
+
correction: "correction";
|
|
1862
|
+
gotcha: "gotcha";
|
|
1863
|
+
known_gotcha: "known_gotcha";
|
|
1864
|
+
deprecated: "deprecated";
|
|
1865
|
+
behavior: "behavior";
|
|
1866
|
+
review_feedback: "review_feedback";
|
|
1867
|
+
other: "other";
|
|
1868
|
+
}>;
|
|
1869
|
+
status: z.ZodEnum<{
|
|
1870
|
+
active: "active";
|
|
1871
|
+
proposed: "proposed";
|
|
1872
|
+
suppressed: "suppressed";
|
|
1873
|
+
superseded: "superseded";
|
|
1874
|
+
deleted: "deleted";
|
|
1875
|
+
}>;
|
|
1876
|
+
source: z.ZodObject<{
|
|
1877
|
+
agent: z.ZodString;
|
|
1878
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1879
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1880
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1882
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
1883
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
1884
|
+
}, z.core.$strict>;
|
|
1885
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1886
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
1887
|
+
unconfirmed: "unconfirmed";
|
|
1888
|
+
implicit: "implicit";
|
|
1889
|
+
explicit: "explicit";
|
|
1890
|
+
}>>;
|
|
1891
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
fingerprint: z.ZodString;
|
|
1893
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1894
|
+
createdAt: z.ZodISODateTime;
|
|
1895
|
+
updatedAt: z.ZodISODateTime;
|
|
1896
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1897
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1898
|
+
}, z.core.$strict>;
|
|
1899
|
+
score: z.ZodNumber;
|
|
1900
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
1901
|
+
symbol: "symbol";
|
|
1902
|
+
path: "path";
|
|
1903
|
+
lexical: "lexical";
|
|
1904
|
+
semantic: "semantic";
|
|
1905
|
+
component: "component";
|
|
1906
|
+
repository: "repository";
|
|
1907
|
+
}>>;
|
|
1908
|
+
matchedTerms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1909
|
+
lexicalRank: z.ZodNullable<z.ZodNumber>;
|
|
1910
|
+
semanticRank: z.ZodNullable<z.ZodNumber>;
|
|
1911
|
+
}, z.core.$strict>>>;
|
|
1430
1912
|
text: z.ZodString;
|
|
1431
1913
|
packing: z.ZodOptional<z.ZodObject<{
|
|
1432
1914
|
policyVersion: z.ZodLiteral<"context-pack-v1">;
|
|
@@ -1491,6 +1973,23 @@ export declare const PairedTurnResponseSchema: z.ZodObject<{
|
|
|
1491
1973
|
}, z.core.$strict>>;
|
|
1492
1974
|
contextSha256: z.ZodString;
|
|
1493
1975
|
}, z.core.$strict>>;
|
|
1976
|
+
querySha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1977
|
+
retrievalPolicyVersion: z.ZodDefault<z.ZodString>;
|
|
1978
|
+
hits: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1979
|
+
memoryId: z.ZodUUID;
|
|
1980
|
+
fingerprint: z.ZodString;
|
|
1981
|
+
content: z.ZodString;
|
|
1982
|
+
score: z.ZodNumber;
|
|
1983
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
1984
|
+
symbol: "symbol";
|
|
1985
|
+
path: "path";
|
|
1986
|
+
lexical: "lexical";
|
|
1987
|
+
semantic: "semantic";
|
|
1988
|
+
component: "component";
|
|
1989
|
+
repository: "repository";
|
|
1990
|
+
}>>;
|
|
1991
|
+
matchedTerms: z.ZodArray<z.ZodString>;
|
|
1992
|
+
}, z.core.$strict>>>;
|
|
1494
1993
|
deliveredAt: z.ZodISODateTime;
|
|
1495
1994
|
}, z.core.$strict>;
|
|
1496
1995
|
}, z.core.$strict>;
|