@lore-co/core 0.1.3 → 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 +8 -2
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +178 -11
- package/dist/engine.js.map +1 -1
- package/dist/in-memory-repository.d.ts +8 -2
- package/dist/in-memory-repository.d.ts.map +1 -1
- package/dist/in-memory-repository.js +304 -4
- 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 +55 -38
- package/dist/pilot-schemas.d.ts.map +1 -1
- package/dist/ports.d.ts +28 -1
- package/dist/ports.d.ts.map +1 -1
- package/dist/schemas.d.ts +797 -10
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +244 -1
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const LearningCategorySchema: z.ZodEnum<{
|
|
|
25
25
|
export type LearningCategory = MemoryCategory;
|
|
26
26
|
export declare const MemoryStatusSchema: z.ZodEnum<{
|
|
27
27
|
active: "active";
|
|
28
|
+
proposed: "proposed";
|
|
28
29
|
suppressed: "suppressed";
|
|
29
30
|
superseded: "superseded";
|
|
30
31
|
deleted: "deleted";
|
|
@@ -32,11 +33,59 @@ export declare const MemoryStatusSchema: z.ZodEnum<{
|
|
|
32
33
|
export type MemoryStatus = z.infer<typeof MemoryStatusSchema>;
|
|
33
34
|
export declare const LearningStatusSchema: z.ZodEnum<{
|
|
34
35
|
active: "active";
|
|
36
|
+
proposed: "proposed";
|
|
35
37
|
suppressed: "suppressed";
|
|
36
38
|
superseded: "superseded";
|
|
37
39
|
deleted: "deleted";
|
|
38
40
|
}>;
|
|
39
41
|
export type LearningStatus = MemoryStatus;
|
|
42
|
+
export declare const WorkspaceLearningModeSchema: z.ZodEnum<{
|
|
43
|
+
trust_tiered: "trust_tiered";
|
|
44
|
+
proposal_only: "proposal_only";
|
|
45
|
+
}>;
|
|
46
|
+
export type WorkspaceLearningMode = z.infer<typeof WorkspaceLearningModeSchema>;
|
|
47
|
+
export declare const WorkspaceLearningPolicySchema: z.ZodObject<{
|
|
48
|
+
workspaceId: z.ZodUUID;
|
|
49
|
+
learningMode: z.ZodEnum<{
|
|
50
|
+
trust_tiered: "trust_tiered";
|
|
51
|
+
proposal_only: "proposal_only";
|
|
52
|
+
}>;
|
|
53
|
+
llmConflictAnalysisEnabled: z.ZodBoolean;
|
|
54
|
+
updatedAt: z.ZodISODateTime;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type WorkspaceLearningPolicy = z.infer<typeof WorkspaceLearningPolicySchema>;
|
|
57
|
+
export declare const UpdateWorkspaceLearningPolicySchema: z.ZodObject<{
|
|
58
|
+
learningMode: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
trust_tiered: "trust_tiered";
|
|
60
|
+
proposal_only: "proposal_only";
|
|
61
|
+
}>>;
|
|
62
|
+
llmConflictAnalysisEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type UpdateWorkspaceLearningPolicy = z.infer<typeof UpdateWorkspaceLearningPolicySchema>;
|
|
65
|
+
export declare const ProposalReviewDecisionSchema: z.ZodEnum<{
|
|
66
|
+
approve: "approve";
|
|
67
|
+
use_proposal: "use_proposal";
|
|
68
|
+
keep_both: "keep_both";
|
|
69
|
+
reject: "reject";
|
|
70
|
+
}>;
|
|
71
|
+
export type ProposalReviewDecision = z.infer<typeof ProposalReviewDecisionSchema>;
|
|
72
|
+
export declare const MemoryConflictDetectorSchema: z.ZodEnum<{
|
|
73
|
+
deterministic: "deterministic";
|
|
74
|
+
lexical: "lexical";
|
|
75
|
+
semantic: "semantic";
|
|
76
|
+
llm: "llm";
|
|
77
|
+
}>;
|
|
78
|
+
export type MemoryConflictDetectorKind = z.infer<typeof MemoryConflictDetectorSchema>;
|
|
79
|
+
export declare const MemoryConflictSeveritySchema: z.ZodEnum<{
|
|
80
|
+
blocking: "blocking";
|
|
81
|
+
warning: "warning";
|
|
82
|
+
}>;
|
|
83
|
+
export type MemoryConflictSeverity = z.infer<typeof MemoryConflictSeveritySchema>;
|
|
84
|
+
export declare const MemoryConflictEvidenceSchema: z.ZodObject<{
|
|
85
|
+
summary: z.ZodString;
|
|
86
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
export type MemoryConflictEvidence = z.infer<typeof MemoryConflictEvidenceSchema>;
|
|
40
89
|
export declare function normalizeRepositoryPath(value: string): string;
|
|
41
90
|
export declare const RepositoryPathSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
42
91
|
export declare const MemoryScopeSchema: z.ZodObject<{
|
|
@@ -75,6 +124,92 @@ export declare const LearningSourceSchema: z.ZodObject<{
|
|
|
75
124
|
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
76
125
|
}, z.core.$strict>;
|
|
77
126
|
export type LearningSource = MemorySource;
|
|
127
|
+
export declare const ProposalMetadataSchema: z.ZodObject<{
|
|
128
|
+
memoryId: z.ZodUUID;
|
|
129
|
+
workspaceId: z.ZodUUID;
|
|
130
|
+
policyMode: z.ZodEnum<{
|
|
131
|
+
trust_tiered: "trust_tiered";
|
|
132
|
+
proposal_only: "proposal_only";
|
|
133
|
+
}>;
|
|
134
|
+
reason: z.ZodString;
|
|
135
|
+
provenance: z.ZodObject<{
|
|
136
|
+
agent: z.ZodString;
|
|
137
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
141
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
142
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
proposedAt: z.ZodISODateTime;
|
|
145
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
146
|
+
approve: "approve";
|
|
147
|
+
use_proposal: "use_proposal";
|
|
148
|
+
keep_both: "keep_both";
|
|
149
|
+
reject: "reject";
|
|
150
|
+
}>>;
|
|
151
|
+
reviewerId: z.ZodNullable<z.ZodString>;
|
|
152
|
+
decisionReason: z.ZodNullable<z.ZodString>;
|
|
153
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
154
|
+
decisionTargetMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
export type ProposalMetadata = z.infer<typeof ProposalMetadataSchema>;
|
|
157
|
+
export declare const MemoryConflictSchema: z.ZodObject<{
|
|
158
|
+
id: z.ZodUUID;
|
|
159
|
+
workspaceId: z.ZodUUID;
|
|
160
|
+
proposalMemoryId: z.ZodUUID;
|
|
161
|
+
targetMemoryId: z.ZodUUID;
|
|
162
|
+
detector: z.ZodEnum<{
|
|
163
|
+
deterministic: "deterministic";
|
|
164
|
+
lexical: "lexical";
|
|
165
|
+
semantic: "semantic";
|
|
166
|
+
llm: "llm";
|
|
167
|
+
}>;
|
|
168
|
+
severity: z.ZodEnum<{
|
|
169
|
+
blocking: "blocking";
|
|
170
|
+
warning: "warning";
|
|
171
|
+
}>;
|
|
172
|
+
evidence: z.ZodObject<{
|
|
173
|
+
summary: z.ZodString;
|
|
174
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
createdAt: z.ZodISODateTime;
|
|
177
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
178
|
+
approve: "approve";
|
|
179
|
+
use_proposal: "use_proposal";
|
|
180
|
+
keep_both: "keep_both";
|
|
181
|
+
reject: "reject";
|
|
182
|
+
}>>;
|
|
183
|
+
resolvedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
export type MemoryConflict = z.infer<typeof MemoryConflictSchema>;
|
|
186
|
+
export declare const DetectedMemoryConflictSchema: z.ZodObject<{
|
|
187
|
+
targetMemoryId: z.ZodUUID;
|
|
188
|
+
detector: z.ZodEnum<{
|
|
189
|
+
deterministic: "deterministic";
|
|
190
|
+
lexical: "lexical";
|
|
191
|
+
semantic: "semantic";
|
|
192
|
+
llm: "llm";
|
|
193
|
+
}>;
|
|
194
|
+
severity: z.ZodEnum<{
|
|
195
|
+
blocking: "blocking";
|
|
196
|
+
warning: "warning";
|
|
197
|
+
}>;
|
|
198
|
+
evidence: z.ZodObject<{
|
|
199
|
+
summary: z.ZodString;
|
|
200
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
}, z.core.$strict>;
|
|
203
|
+
export type DetectedMemoryConflict = z.infer<typeof DetectedMemoryConflictSchema>;
|
|
204
|
+
export declare const MemoryConflictAnalysisSchema: z.ZodObject<{
|
|
205
|
+
classification: z.ZodEnum<{
|
|
206
|
+
conflict: "conflict";
|
|
207
|
+
related: "related";
|
|
208
|
+
not_conflict: "not_conflict";
|
|
209
|
+
}>;
|
|
210
|
+
explanation: z.ZodString;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
export type MemoryConflictAnalysis = z.infer<typeof MemoryConflictAnalysisSchema>;
|
|
78
213
|
export declare const AgentMessageSchema: z.ZodObject<{
|
|
79
214
|
role: z.ZodEnum<{
|
|
80
215
|
system: "system";
|
|
@@ -139,6 +274,21 @@ export declare const AgentTaskSchema: z.ZodObject<{
|
|
|
139
274
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
140
275
|
}, z.core.$strict>;
|
|
141
276
|
export type AgentTask = z.infer<typeof AgentTaskSchema>;
|
|
277
|
+
export declare const CandidateScopeIntentSchema: z.ZodEnum<{
|
|
278
|
+
organization: "organization";
|
|
279
|
+
repository: "repository";
|
|
280
|
+
uncertain: "uncertain";
|
|
281
|
+
}>;
|
|
282
|
+
export type CandidateScopeIntent = z.infer<typeof CandidateScopeIntentSchema>;
|
|
283
|
+
export declare const CandidateScopeEvidenceSchema: z.ZodObject<{
|
|
284
|
+
basis: z.ZodEnum<{
|
|
285
|
+
explicit_user_statement: "explicit_user_statement";
|
|
286
|
+
interaction_repository: "interaction_repository";
|
|
287
|
+
extractor_inference: "extractor_inference";
|
|
288
|
+
}>;
|
|
289
|
+
excerpt: z.ZodString;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
export type CandidateScopeEvidence = z.infer<typeof CandidateScopeEvidenceSchema>;
|
|
142
292
|
export declare const CandidateMemorySchema: z.ZodObject<{
|
|
143
293
|
content: z.ZodString;
|
|
144
294
|
category: z.ZodEnum<{
|
|
@@ -164,6 +314,19 @@ export declare const CandidateMemorySchema: z.ZodObject<{
|
|
|
164
314
|
confirmationReason: z.ZodOptional<z.ZodString>;
|
|
165
315
|
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
166
316
|
supersedesContent: z.ZodOptional<z.ZodString>;
|
|
317
|
+
scopeIntent: z.ZodOptional<z.ZodEnum<{
|
|
318
|
+
organization: "organization";
|
|
319
|
+
repository: "repository";
|
|
320
|
+
uncertain: "uncertain";
|
|
321
|
+
}>>;
|
|
322
|
+
scopeEvidence: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
basis: z.ZodEnum<{
|
|
324
|
+
explicit_user_statement: "explicit_user_statement";
|
|
325
|
+
interaction_repository: "interaction_repository";
|
|
326
|
+
extractor_inference: "extractor_inference";
|
|
327
|
+
}>;
|
|
328
|
+
excerpt: z.ZodString;
|
|
329
|
+
}, z.core.$strict>>;
|
|
167
330
|
}, z.core.$strict>;
|
|
168
331
|
export type CandidateMemory = z.infer<typeof CandidateMemorySchema>;
|
|
169
332
|
export declare const MemorySchema: z.ZodObject<{
|
|
@@ -190,6 +353,7 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
190
353
|
}>;
|
|
191
354
|
status: z.ZodEnum<{
|
|
192
355
|
active: "active";
|
|
356
|
+
proposed: "proposed";
|
|
193
357
|
suppressed: "suppressed";
|
|
194
358
|
superseded: "superseded";
|
|
195
359
|
deleted: "deleted";
|
|
@@ -242,6 +406,7 @@ export declare const LearningSchema: z.ZodObject<{
|
|
|
242
406
|
}>;
|
|
243
407
|
status: z.ZodEnum<{
|
|
244
408
|
active: "active";
|
|
409
|
+
proposed: "proposed";
|
|
245
410
|
suppressed: "suppressed";
|
|
246
411
|
superseded: "superseded";
|
|
247
412
|
deleted: "deleted";
|
|
@@ -270,6 +435,598 @@ export declare const LearningSchema: z.ZodObject<{
|
|
|
270
435
|
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
271
436
|
}, z.core.$strict>;
|
|
272
437
|
export type Learning = Memory;
|
|
438
|
+
export declare const RecordProposalConflictDtoSchema: z.ZodObject<{
|
|
439
|
+
proposalMemoryId: z.ZodUUID;
|
|
440
|
+
targetMemoryId: z.ZodUUID;
|
|
441
|
+
detector: z.ZodEnum<{
|
|
442
|
+
deterministic: "deterministic";
|
|
443
|
+
lexical: "lexical";
|
|
444
|
+
semantic: "semantic";
|
|
445
|
+
llm: "llm";
|
|
446
|
+
}>;
|
|
447
|
+
severity: z.ZodEnum<{
|
|
448
|
+
blocking: "blocking";
|
|
449
|
+
warning: "warning";
|
|
450
|
+
}>;
|
|
451
|
+
evidence: z.ZodObject<{
|
|
452
|
+
summary: z.ZodString;
|
|
453
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
454
|
+
}, z.core.$strict>;
|
|
455
|
+
}, z.core.$strict>;
|
|
456
|
+
export type RecordProposalConflictDto = z.infer<typeof RecordProposalConflictDtoSchema>;
|
|
457
|
+
export declare const ReviewProposalDtoSchema: z.ZodObject<{
|
|
458
|
+
proposalMemoryId: z.ZodUUID;
|
|
459
|
+
decision: z.ZodEnum<{
|
|
460
|
+
approve: "approve";
|
|
461
|
+
use_proposal: "use_proposal";
|
|
462
|
+
keep_both: "keep_both";
|
|
463
|
+
reject: "reject";
|
|
464
|
+
}>;
|
|
465
|
+
reviewerId: z.ZodString;
|
|
466
|
+
reason: z.ZodString;
|
|
467
|
+
targetMemoryId: z.ZodOptional<z.ZodUUID>;
|
|
468
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
469
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
470
|
+
project: z.ZodOptional<z.ZodString>;
|
|
471
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
472
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
473
|
+
component: z.ZodOptional<z.ZodString>;
|
|
474
|
+
}, z.core.$strict>>;
|
|
475
|
+
}, z.core.$strict>;
|
|
476
|
+
export type ReviewProposalDto = z.infer<typeof ReviewProposalDtoSchema>;
|
|
477
|
+
export declare const ProposalRecordSchema: z.ZodObject<{
|
|
478
|
+
memory: z.ZodObject<{
|
|
479
|
+
id: z.ZodUUID;
|
|
480
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
481
|
+
content: z.ZodString;
|
|
482
|
+
scope: z.ZodObject<{
|
|
483
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
484
|
+
project: z.ZodOptional<z.ZodString>;
|
|
485
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
486
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
487
|
+
component: z.ZodOptional<z.ZodString>;
|
|
488
|
+
}, z.core.$strict>;
|
|
489
|
+
category: z.ZodEnum<{
|
|
490
|
+
architecture: "architecture";
|
|
491
|
+
convention: "convention";
|
|
492
|
+
correction: "correction";
|
|
493
|
+
gotcha: "gotcha";
|
|
494
|
+
known_gotcha: "known_gotcha";
|
|
495
|
+
deprecated: "deprecated";
|
|
496
|
+
behavior: "behavior";
|
|
497
|
+
review_feedback: "review_feedback";
|
|
498
|
+
other: "other";
|
|
499
|
+
}>;
|
|
500
|
+
status: z.ZodEnum<{
|
|
501
|
+
active: "active";
|
|
502
|
+
proposed: "proposed";
|
|
503
|
+
suppressed: "suppressed";
|
|
504
|
+
superseded: "superseded";
|
|
505
|
+
deleted: "deleted";
|
|
506
|
+
}>;
|
|
507
|
+
source: z.ZodObject<{
|
|
508
|
+
agent: z.ZodString;
|
|
509
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
510
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
513
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
514
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
518
|
+
unconfirmed: "unconfirmed";
|
|
519
|
+
implicit: "implicit";
|
|
520
|
+
explicit: "explicit";
|
|
521
|
+
}>>;
|
|
522
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
523
|
+
fingerprint: z.ZodString;
|
|
524
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
525
|
+
createdAt: z.ZodISODateTime;
|
|
526
|
+
updatedAt: z.ZodISODateTime;
|
|
527
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
528
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
529
|
+
}, z.core.$strict>;
|
|
530
|
+
metadata: z.ZodObject<{
|
|
531
|
+
memoryId: z.ZodUUID;
|
|
532
|
+
workspaceId: z.ZodUUID;
|
|
533
|
+
policyMode: z.ZodEnum<{
|
|
534
|
+
trust_tiered: "trust_tiered";
|
|
535
|
+
proposal_only: "proposal_only";
|
|
536
|
+
}>;
|
|
537
|
+
reason: z.ZodString;
|
|
538
|
+
provenance: z.ZodObject<{
|
|
539
|
+
agent: z.ZodString;
|
|
540
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
541
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
542
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
543
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
544
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
545
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
546
|
+
}, z.core.$strict>;
|
|
547
|
+
proposedAt: z.ZodISODateTime;
|
|
548
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
549
|
+
approve: "approve";
|
|
550
|
+
use_proposal: "use_proposal";
|
|
551
|
+
keep_both: "keep_both";
|
|
552
|
+
reject: "reject";
|
|
553
|
+
}>>;
|
|
554
|
+
reviewerId: z.ZodNullable<z.ZodString>;
|
|
555
|
+
decisionReason: z.ZodNullable<z.ZodString>;
|
|
556
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
557
|
+
decisionTargetMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
558
|
+
}, z.core.$strict>;
|
|
559
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
560
|
+
id: z.ZodUUID;
|
|
561
|
+
workspaceId: z.ZodUUID;
|
|
562
|
+
proposalMemoryId: z.ZodUUID;
|
|
563
|
+
targetMemoryId: z.ZodUUID;
|
|
564
|
+
detector: z.ZodEnum<{
|
|
565
|
+
deterministic: "deterministic";
|
|
566
|
+
lexical: "lexical";
|
|
567
|
+
semantic: "semantic";
|
|
568
|
+
llm: "llm";
|
|
569
|
+
}>;
|
|
570
|
+
severity: z.ZodEnum<{
|
|
571
|
+
blocking: "blocking";
|
|
572
|
+
warning: "warning";
|
|
573
|
+
}>;
|
|
574
|
+
evidence: z.ZodObject<{
|
|
575
|
+
summary: z.ZodString;
|
|
576
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
createdAt: z.ZodISODateTime;
|
|
579
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
580
|
+
approve: "approve";
|
|
581
|
+
use_proposal: "use_proposal";
|
|
582
|
+
keep_both: "keep_both";
|
|
583
|
+
reject: "reject";
|
|
584
|
+
}>>;
|
|
585
|
+
resolvedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
586
|
+
}, z.core.$strict>>;
|
|
587
|
+
}, z.core.$strict>;
|
|
588
|
+
export type ProposalRecord = z.infer<typeof ProposalRecordSchema>;
|
|
589
|
+
export declare const ProposalDetailResponseSchema: z.ZodObject<{
|
|
590
|
+
memory: z.ZodObject<{
|
|
591
|
+
id: z.ZodUUID;
|
|
592
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
593
|
+
content: z.ZodString;
|
|
594
|
+
scope: z.ZodObject<{
|
|
595
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
596
|
+
project: z.ZodOptional<z.ZodString>;
|
|
597
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
598
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
599
|
+
component: z.ZodOptional<z.ZodString>;
|
|
600
|
+
}, z.core.$strict>;
|
|
601
|
+
category: z.ZodEnum<{
|
|
602
|
+
architecture: "architecture";
|
|
603
|
+
convention: "convention";
|
|
604
|
+
correction: "correction";
|
|
605
|
+
gotcha: "gotcha";
|
|
606
|
+
known_gotcha: "known_gotcha";
|
|
607
|
+
deprecated: "deprecated";
|
|
608
|
+
behavior: "behavior";
|
|
609
|
+
review_feedback: "review_feedback";
|
|
610
|
+
other: "other";
|
|
611
|
+
}>;
|
|
612
|
+
status: z.ZodEnum<{
|
|
613
|
+
active: "active";
|
|
614
|
+
proposed: "proposed";
|
|
615
|
+
suppressed: "suppressed";
|
|
616
|
+
superseded: "superseded";
|
|
617
|
+
deleted: "deleted";
|
|
618
|
+
}>;
|
|
619
|
+
source: z.ZodObject<{
|
|
620
|
+
agent: z.ZodString;
|
|
621
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
622
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
623
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
625
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
626
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
627
|
+
}, z.core.$strict>;
|
|
628
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
630
|
+
unconfirmed: "unconfirmed";
|
|
631
|
+
implicit: "implicit";
|
|
632
|
+
explicit: "explicit";
|
|
633
|
+
}>>;
|
|
634
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
635
|
+
fingerprint: z.ZodString;
|
|
636
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
637
|
+
createdAt: z.ZodISODateTime;
|
|
638
|
+
updatedAt: z.ZodISODateTime;
|
|
639
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
640
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
641
|
+
}, z.core.$strict>;
|
|
642
|
+
metadata: z.ZodObject<{
|
|
643
|
+
memoryId: z.ZodUUID;
|
|
644
|
+
workspaceId: z.ZodUUID;
|
|
645
|
+
policyMode: z.ZodEnum<{
|
|
646
|
+
trust_tiered: "trust_tiered";
|
|
647
|
+
proposal_only: "proposal_only";
|
|
648
|
+
}>;
|
|
649
|
+
reason: z.ZodString;
|
|
650
|
+
provenance: z.ZodObject<{
|
|
651
|
+
agent: z.ZodString;
|
|
652
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
653
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
655
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
656
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
657
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
+
}, z.core.$strict>;
|
|
659
|
+
proposedAt: z.ZodISODateTime;
|
|
660
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
661
|
+
approve: "approve";
|
|
662
|
+
use_proposal: "use_proposal";
|
|
663
|
+
keep_both: "keep_both";
|
|
664
|
+
reject: "reject";
|
|
665
|
+
}>>;
|
|
666
|
+
reviewerId: z.ZodNullable<z.ZodString>;
|
|
667
|
+
decisionReason: z.ZodNullable<z.ZodString>;
|
|
668
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
669
|
+
decisionTargetMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
670
|
+
}, z.core.$strict>;
|
|
671
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
672
|
+
id: z.ZodUUID;
|
|
673
|
+
workspaceId: z.ZodUUID;
|
|
674
|
+
proposalMemoryId: z.ZodUUID;
|
|
675
|
+
targetMemoryId: z.ZodUUID;
|
|
676
|
+
detector: z.ZodEnum<{
|
|
677
|
+
deterministic: "deterministic";
|
|
678
|
+
lexical: "lexical";
|
|
679
|
+
semantic: "semantic";
|
|
680
|
+
llm: "llm";
|
|
681
|
+
}>;
|
|
682
|
+
severity: z.ZodEnum<{
|
|
683
|
+
blocking: "blocking";
|
|
684
|
+
warning: "warning";
|
|
685
|
+
}>;
|
|
686
|
+
evidence: z.ZodObject<{
|
|
687
|
+
summary: z.ZodString;
|
|
688
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
689
|
+
}, z.core.$strict>;
|
|
690
|
+
createdAt: z.ZodISODateTime;
|
|
691
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
692
|
+
approve: "approve";
|
|
693
|
+
use_proposal: "use_proposal";
|
|
694
|
+
keep_both: "keep_both";
|
|
695
|
+
reject: "reject";
|
|
696
|
+
}>>;
|
|
697
|
+
resolvedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
698
|
+
}, z.core.$strict>>;
|
|
699
|
+
conflictTargets: z.ZodArray<z.ZodObject<{
|
|
700
|
+
id: z.ZodUUID;
|
|
701
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
702
|
+
content: z.ZodString;
|
|
703
|
+
scope: z.ZodObject<{
|
|
704
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
705
|
+
project: z.ZodOptional<z.ZodString>;
|
|
706
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
707
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
708
|
+
component: z.ZodOptional<z.ZodString>;
|
|
709
|
+
}, z.core.$strict>;
|
|
710
|
+
category: z.ZodEnum<{
|
|
711
|
+
architecture: "architecture";
|
|
712
|
+
convention: "convention";
|
|
713
|
+
correction: "correction";
|
|
714
|
+
gotcha: "gotcha";
|
|
715
|
+
known_gotcha: "known_gotcha";
|
|
716
|
+
deprecated: "deprecated";
|
|
717
|
+
behavior: "behavior";
|
|
718
|
+
review_feedback: "review_feedback";
|
|
719
|
+
other: "other";
|
|
720
|
+
}>;
|
|
721
|
+
status: z.ZodEnum<{
|
|
722
|
+
active: "active";
|
|
723
|
+
proposed: "proposed";
|
|
724
|
+
suppressed: "suppressed";
|
|
725
|
+
superseded: "superseded";
|
|
726
|
+
deleted: "deleted";
|
|
727
|
+
}>;
|
|
728
|
+
source: z.ZodObject<{
|
|
729
|
+
agent: z.ZodString;
|
|
730
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
731
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
732
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
733
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
734
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
735
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
736
|
+
}, z.core.$strict>;
|
|
737
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
738
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
739
|
+
unconfirmed: "unconfirmed";
|
|
740
|
+
implicit: "implicit";
|
|
741
|
+
explicit: "explicit";
|
|
742
|
+
}>>;
|
|
743
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
744
|
+
fingerprint: z.ZodString;
|
|
745
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
746
|
+
createdAt: z.ZodISODateTime;
|
|
747
|
+
updatedAt: z.ZodISODateTime;
|
|
748
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
749
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
750
|
+
}, z.core.$strict>>;
|
|
751
|
+
}, z.core.$strict>;
|
|
752
|
+
export type ProposalDetailResponse = z.infer<typeof ProposalDetailResponseSchema>;
|
|
753
|
+
export declare const ProposeMemoryResultSchema: z.ZodObject<{
|
|
754
|
+
memory: z.ZodObject<{
|
|
755
|
+
id: z.ZodUUID;
|
|
756
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
757
|
+
content: z.ZodString;
|
|
758
|
+
scope: z.ZodObject<{
|
|
759
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
760
|
+
project: z.ZodOptional<z.ZodString>;
|
|
761
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
762
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
763
|
+
component: z.ZodOptional<z.ZodString>;
|
|
764
|
+
}, z.core.$strict>;
|
|
765
|
+
category: z.ZodEnum<{
|
|
766
|
+
architecture: "architecture";
|
|
767
|
+
convention: "convention";
|
|
768
|
+
correction: "correction";
|
|
769
|
+
gotcha: "gotcha";
|
|
770
|
+
known_gotcha: "known_gotcha";
|
|
771
|
+
deprecated: "deprecated";
|
|
772
|
+
behavior: "behavior";
|
|
773
|
+
review_feedback: "review_feedback";
|
|
774
|
+
other: "other";
|
|
775
|
+
}>;
|
|
776
|
+
status: z.ZodEnum<{
|
|
777
|
+
active: "active";
|
|
778
|
+
proposed: "proposed";
|
|
779
|
+
suppressed: "suppressed";
|
|
780
|
+
superseded: "superseded";
|
|
781
|
+
deleted: "deleted";
|
|
782
|
+
}>;
|
|
783
|
+
source: z.ZodObject<{
|
|
784
|
+
agent: z.ZodString;
|
|
785
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
786
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
789
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
790
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
791
|
+
}, z.core.$strict>;
|
|
792
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
793
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
794
|
+
unconfirmed: "unconfirmed";
|
|
795
|
+
implicit: "implicit";
|
|
796
|
+
explicit: "explicit";
|
|
797
|
+
}>>;
|
|
798
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
799
|
+
fingerprint: z.ZodString;
|
|
800
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
801
|
+
createdAt: z.ZodISODateTime;
|
|
802
|
+
updatedAt: z.ZodISODateTime;
|
|
803
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
804
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
805
|
+
}, z.core.$strict>;
|
|
806
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
807
|
+
memoryId: z.ZodUUID;
|
|
808
|
+
workspaceId: z.ZodUUID;
|
|
809
|
+
policyMode: z.ZodEnum<{
|
|
810
|
+
trust_tiered: "trust_tiered";
|
|
811
|
+
proposal_only: "proposal_only";
|
|
812
|
+
}>;
|
|
813
|
+
reason: z.ZodString;
|
|
814
|
+
provenance: z.ZodObject<{
|
|
815
|
+
agent: z.ZodString;
|
|
816
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
817
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
820
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
821
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
822
|
+
}, z.core.$strict>;
|
|
823
|
+
proposedAt: z.ZodISODateTime;
|
|
824
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
825
|
+
approve: "approve";
|
|
826
|
+
use_proposal: "use_proposal";
|
|
827
|
+
keep_both: "keep_both";
|
|
828
|
+
reject: "reject";
|
|
829
|
+
}>>;
|
|
830
|
+
reviewerId: z.ZodNullable<z.ZodString>;
|
|
831
|
+
decisionReason: z.ZodNullable<z.ZodString>;
|
|
832
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
833
|
+
decisionTargetMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
834
|
+
}, z.core.$strict>>;
|
|
835
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
836
|
+
id: z.ZodUUID;
|
|
837
|
+
workspaceId: z.ZodUUID;
|
|
838
|
+
proposalMemoryId: z.ZodUUID;
|
|
839
|
+
targetMemoryId: z.ZodUUID;
|
|
840
|
+
detector: z.ZodEnum<{
|
|
841
|
+
deterministic: "deterministic";
|
|
842
|
+
lexical: "lexical";
|
|
843
|
+
semantic: "semantic";
|
|
844
|
+
llm: "llm";
|
|
845
|
+
}>;
|
|
846
|
+
severity: z.ZodEnum<{
|
|
847
|
+
blocking: "blocking";
|
|
848
|
+
warning: "warning";
|
|
849
|
+
}>;
|
|
850
|
+
evidence: z.ZodObject<{
|
|
851
|
+
summary: z.ZodString;
|
|
852
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
853
|
+
}, z.core.$strict>;
|
|
854
|
+
createdAt: z.ZodISODateTime;
|
|
855
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
856
|
+
approve: "approve";
|
|
857
|
+
use_proposal: "use_proposal";
|
|
858
|
+
keep_both: "keep_both";
|
|
859
|
+
reject: "reject";
|
|
860
|
+
}>>;
|
|
861
|
+
resolvedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
862
|
+
}, z.core.$strict>>;
|
|
863
|
+
inserted: z.ZodBoolean;
|
|
864
|
+
}, z.core.$strict>;
|
|
865
|
+
export type ProposeMemoryResult = z.infer<typeof ProposeMemoryResultSchema>;
|
|
866
|
+
export declare const ReviewProposalResponseSchema: z.ZodObject<{
|
|
867
|
+
proposal: z.ZodObject<{
|
|
868
|
+
id: z.ZodUUID;
|
|
869
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
870
|
+
content: z.ZodString;
|
|
871
|
+
scope: z.ZodObject<{
|
|
872
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
873
|
+
project: z.ZodOptional<z.ZodString>;
|
|
874
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
875
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
876
|
+
component: z.ZodOptional<z.ZodString>;
|
|
877
|
+
}, z.core.$strict>;
|
|
878
|
+
category: z.ZodEnum<{
|
|
879
|
+
architecture: "architecture";
|
|
880
|
+
convention: "convention";
|
|
881
|
+
correction: "correction";
|
|
882
|
+
gotcha: "gotcha";
|
|
883
|
+
known_gotcha: "known_gotcha";
|
|
884
|
+
deprecated: "deprecated";
|
|
885
|
+
behavior: "behavior";
|
|
886
|
+
review_feedback: "review_feedback";
|
|
887
|
+
other: "other";
|
|
888
|
+
}>;
|
|
889
|
+
status: z.ZodEnum<{
|
|
890
|
+
active: "active";
|
|
891
|
+
proposed: "proposed";
|
|
892
|
+
suppressed: "suppressed";
|
|
893
|
+
superseded: "superseded";
|
|
894
|
+
deleted: "deleted";
|
|
895
|
+
}>;
|
|
896
|
+
source: z.ZodObject<{
|
|
897
|
+
agent: z.ZodString;
|
|
898
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
899
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
900
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
901
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
902
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
903
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
904
|
+
}, z.core.$strict>;
|
|
905
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
906
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
907
|
+
unconfirmed: "unconfirmed";
|
|
908
|
+
implicit: "implicit";
|
|
909
|
+
explicit: "explicit";
|
|
910
|
+
}>>;
|
|
911
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
912
|
+
fingerprint: z.ZodString;
|
|
913
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
914
|
+
createdAt: z.ZodISODateTime;
|
|
915
|
+
updatedAt: z.ZodISODateTime;
|
|
916
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
917
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
918
|
+
}, z.core.$strict>;
|
|
919
|
+
metadata: z.ZodObject<{
|
|
920
|
+
memoryId: z.ZodUUID;
|
|
921
|
+
workspaceId: z.ZodUUID;
|
|
922
|
+
policyMode: z.ZodEnum<{
|
|
923
|
+
trust_tiered: "trust_tiered";
|
|
924
|
+
proposal_only: "proposal_only";
|
|
925
|
+
}>;
|
|
926
|
+
reason: z.ZodString;
|
|
927
|
+
provenance: z.ZodObject<{
|
|
928
|
+
agent: z.ZodString;
|
|
929
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
930
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
931
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
932
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
933
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
934
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
proposedAt: z.ZodISODateTime;
|
|
937
|
+
decision: z.ZodNullable<z.ZodEnum<{
|
|
938
|
+
approve: "approve";
|
|
939
|
+
use_proposal: "use_proposal";
|
|
940
|
+
keep_both: "keep_both";
|
|
941
|
+
reject: "reject";
|
|
942
|
+
}>>;
|
|
943
|
+
reviewerId: z.ZodNullable<z.ZodString>;
|
|
944
|
+
decisionReason: z.ZodNullable<z.ZodString>;
|
|
945
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
946
|
+
decisionTargetMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
947
|
+
}, z.core.$strict>;
|
|
948
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
949
|
+
id: z.ZodUUID;
|
|
950
|
+
workspaceId: z.ZodUUID;
|
|
951
|
+
proposalMemoryId: z.ZodUUID;
|
|
952
|
+
targetMemoryId: z.ZodUUID;
|
|
953
|
+
detector: z.ZodEnum<{
|
|
954
|
+
deterministic: "deterministic";
|
|
955
|
+
lexical: "lexical";
|
|
956
|
+
semantic: "semantic";
|
|
957
|
+
llm: "llm";
|
|
958
|
+
}>;
|
|
959
|
+
severity: z.ZodEnum<{
|
|
960
|
+
blocking: "blocking";
|
|
961
|
+
warning: "warning";
|
|
962
|
+
}>;
|
|
963
|
+
evidence: z.ZodObject<{
|
|
964
|
+
summary: z.ZodString;
|
|
965
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
966
|
+
}, z.core.$strict>;
|
|
967
|
+
createdAt: z.ZodISODateTime;
|
|
968
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
969
|
+
approve: "approve";
|
|
970
|
+
use_proposal: "use_proposal";
|
|
971
|
+
keep_both: "keep_both";
|
|
972
|
+
reject: "reject";
|
|
973
|
+
}>>;
|
|
974
|
+
resolvedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
975
|
+
}, z.core.$strict>>;
|
|
976
|
+
supersededMemory: z.ZodNullable<z.ZodObject<{
|
|
977
|
+
id: z.ZodUUID;
|
|
978
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
979
|
+
content: z.ZodString;
|
|
980
|
+
scope: z.ZodObject<{
|
|
981
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
982
|
+
project: z.ZodOptional<z.ZodString>;
|
|
983
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
984
|
+
path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
|
|
985
|
+
component: z.ZodOptional<z.ZodString>;
|
|
986
|
+
}, z.core.$strict>;
|
|
987
|
+
category: z.ZodEnum<{
|
|
988
|
+
architecture: "architecture";
|
|
989
|
+
convention: "convention";
|
|
990
|
+
correction: "correction";
|
|
991
|
+
gotcha: "gotcha";
|
|
992
|
+
known_gotcha: "known_gotcha";
|
|
993
|
+
deprecated: "deprecated";
|
|
994
|
+
behavior: "behavior";
|
|
995
|
+
review_feedback: "review_feedback";
|
|
996
|
+
other: "other";
|
|
997
|
+
}>;
|
|
998
|
+
status: z.ZodEnum<{
|
|
999
|
+
active: "active";
|
|
1000
|
+
proposed: "proposed";
|
|
1001
|
+
suppressed: "suppressed";
|
|
1002
|
+
superseded: "superseded";
|
|
1003
|
+
deleted: "deleted";
|
|
1004
|
+
}>;
|
|
1005
|
+
source: z.ZodObject<{
|
|
1006
|
+
agent: z.ZodString;
|
|
1007
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1009
|
+
rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1010
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
1011
|
+
eventId: z.ZodOptional<z.ZodUUID>;
|
|
1012
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
1013
|
+
}, z.core.$strict>;
|
|
1014
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1015
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
1016
|
+
unconfirmed: "unconfirmed";
|
|
1017
|
+
implicit: "implicit";
|
|
1018
|
+
explicit: "explicit";
|
|
1019
|
+
}>>;
|
|
1020
|
+
reconciliationKey: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
fingerprint: z.ZodString;
|
|
1022
|
+
supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
|
|
1023
|
+
createdAt: z.ZodISODateTime;
|
|
1024
|
+
updatedAt: z.ZodISODateTime;
|
|
1025
|
+
suppressedAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
1026
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1027
|
+
}, z.core.$strict>>;
|
|
1028
|
+
}, z.core.$strict>;
|
|
1029
|
+
export type ReviewProposalResponse = z.infer<typeof ReviewProposalResponseSchema>;
|
|
273
1030
|
export declare const CreateMemoryDtoSchema: z.ZodObject<{
|
|
274
1031
|
content: z.ZodString;
|
|
275
1032
|
scope: z.ZodObject<{
|
|
@@ -416,6 +1173,7 @@ export declare const MemoryUpdateSchema: z.ZodObject<{
|
|
|
416
1173
|
}>>;
|
|
417
1174
|
status: z.ZodOptional<z.ZodEnum<{
|
|
418
1175
|
active: "active";
|
|
1176
|
+
proposed: "proposed";
|
|
419
1177
|
suppressed: "suppressed";
|
|
420
1178
|
superseded: "superseded";
|
|
421
1179
|
deleted: "deleted";
|
|
@@ -465,6 +1223,7 @@ export declare const UpdateMemoryDtoSchema: z.ZodObject<{
|
|
|
465
1223
|
}>>;
|
|
466
1224
|
status: z.ZodOptional<z.ZodEnum<{
|
|
467
1225
|
active: "active";
|
|
1226
|
+
proposed: "proposed";
|
|
468
1227
|
suppressed: "suppressed";
|
|
469
1228
|
superseded: "superseded";
|
|
470
1229
|
deleted: "deleted";
|
|
@@ -515,6 +1274,7 @@ export declare const UpdateMemoryInputSchema: z.ZodObject<{
|
|
|
515
1274
|
}>>;
|
|
516
1275
|
status: z.ZodOptional<z.ZodEnum<{
|
|
517
1276
|
active: "active";
|
|
1277
|
+
proposed: "proposed";
|
|
518
1278
|
suppressed: "suppressed";
|
|
519
1279
|
superseded: "superseded";
|
|
520
1280
|
deleted: "deleted";
|
|
@@ -574,11 +1334,13 @@ export declare const ListMemoriesDtoSchema: z.ZodObject<{
|
|
|
574
1334
|
}>>]>>;
|
|
575
1335
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
576
1336
|
active: "active";
|
|
1337
|
+
proposed: "proposed";
|
|
577
1338
|
suppressed: "suppressed";
|
|
578
1339
|
superseded: "superseded";
|
|
579
1340
|
deleted: "deleted";
|
|
580
1341
|
}>, z.ZodArray<z.ZodEnum<{
|
|
581
1342
|
active: "active";
|
|
1343
|
+
proposed: "proposed";
|
|
582
1344
|
suppressed: "suppressed";
|
|
583
1345
|
superseded: "superseded";
|
|
584
1346
|
deleted: "deleted";
|
|
@@ -619,11 +1381,13 @@ export declare const ListLearningsDtoSchema: z.ZodObject<{
|
|
|
619
1381
|
}>>]>>;
|
|
620
1382
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
621
1383
|
active: "active";
|
|
1384
|
+
proposed: "proposed";
|
|
622
1385
|
suppressed: "suppressed";
|
|
623
1386
|
superseded: "superseded";
|
|
624
1387
|
deleted: "deleted";
|
|
625
1388
|
}>, z.ZodArray<z.ZodEnum<{
|
|
626
1389
|
active: "active";
|
|
1390
|
+
proposed: "proposed";
|
|
627
1391
|
suppressed: "suppressed";
|
|
628
1392
|
superseded: "superseded";
|
|
629
1393
|
deleted: "deleted";
|
|
@@ -664,11 +1428,13 @@ export declare const ListMemoriesInputSchema: z.ZodObject<{
|
|
|
664
1428
|
}>>]>>;
|
|
665
1429
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
666
1430
|
active: "active";
|
|
1431
|
+
proposed: "proposed";
|
|
667
1432
|
suppressed: "suppressed";
|
|
668
1433
|
superseded: "superseded";
|
|
669
1434
|
deleted: "deleted";
|
|
670
1435
|
}>, z.ZodArray<z.ZodEnum<{
|
|
671
1436
|
active: "active";
|
|
1437
|
+
proposed: "proposed";
|
|
672
1438
|
suppressed: "suppressed";
|
|
673
1439
|
superseded: "superseded";
|
|
674
1440
|
deleted: "deleted";
|
|
@@ -873,6 +1639,7 @@ export declare const InsertMemoryResultSchema: z.ZodObject<{
|
|
|
873
1639
|
}>;
|
|
874
1640
|
status: z.ZodEnum<{
|
|
875
1641
|
active: "active";
|
|
1642
|
+
proposed: "proposed";
|
|
876
1643
|
suppressed: "suppressed";
|
|
877
1644
|
superseded: "superseded";
|
|
878
1645
|
deleted: "deleted";
|
|
@@ -928,6 +1695,7 @@ export declare const ListMemoriesResponseSchema: z.ZodObject<{
|
|
|
928
1695
|
}>;
|
|
929
1696
|
status: z.ZodEnum<{
|
|
930
1697
|
active: "active";
|
|
1698
|
+
proposed: "proposed";
|
|
931
1699
|
suppressed: "suppressed";
|
|
932
1700
|
superseded: "superseded";
|
|
933
1701
|
deleted: "deleted";
|
|
@@ -985,6 +1753,7 @@ export declare const ListLearningsResponseSchema: z.ZodObject<{
|
|
|
985
1753
|
}>;
|
|
986
1754
|
status: z.ZodEnum<{
|
|
987
1755
|
active: "active";
|
|
1756
|
+
proposed: "proposed";
|
|
988
1757
|
suppressed: "suppressed";
|
|
989
1758
|
superseded: "superseded";
|
|
990
1759
|
deleted: "deleted";
|
|
@@ -1042,6 +1811,7 @@ export declare const ObserveResponseSchema: z.ZodObject<{
|
|
|
1042
1811
|
}>;
|
|
1043
1812
|
status: z.ZodEnum<{
|
|
1044
1813
|
active: "active";
|
|
1814
|
+
proposed: "proposed";
|
|
1045
1815
|
suppressed: "suppressed";
|
|
1046
1816
|
superseded: "superseded";
|
|
1047
1817
|
deleted: "deleted";
|
|
@@ -1100,6 +1870,7 @@ export declare const ObserveLearningsResponseSchema: z.ZodObject<{
|
|
|
1100
1870
|
}>;
|
|
1101
1871
|
status: z.ZodEnum<{
|
|
1102
1872
|
active: "active";
|
|
1873
|
+
proposed: "proposed";
|
|
1103
1874
|
suppressed: "suppressed";
|
|
1104
1875
|
superseded: "superseded";
|
|
1105
1876
|
deleted: "deleted";
|
|
@@ -1164,10 +1935,10 @@ export type ContextPacking = z.infer<typeof ContextPackingSchema>;
|
|
|
1164
1935
|
export declare const RetrievalMatchReasonSchema: z.ZodEnum<{
|
|
1165
1936
|
symbol: "symbol";
|
|
1166
1937
|
path: "path";
|
|
1167
|
-
component: "component";
|
|
1168
|
-
repository: "repository";
|
|
1169
1938
|
lexical: "lexical";
|
|
1170
1939
|
semantic: "semantic";
|
|
1940
|
+
component: "component";
|
|
1941
|
+
repository: "repository";
|
|
1171
1942
|
}>;
|
|
1172
1943
|
export type RetrievalMatchReason = z.infer<typeof RetrievalMatchReasonSchema>;
|
|
1173
1944
|
export declare const RetrievalHitSchema: z.ZodObject<{
|
|
@@ -1195,6 +1966,7 @@ export declare const RetrievalHitSchema: z.ZodObject<{
|
|
|
1195
1966
|
}>;
|
|
1196
1967
|
status: z.ZodEnum<{
|
|
1197
1968
|
active: "active";
|
|
1969
|
+
proposed: "proposed";
|
|
1198
1970
|
suppressed: "suppressed";
|
|
1199
1971
|
superseded: "superseded";
|
|
1200
1972
|
deleted: "deleted";
|
|
@@ -1226,10 +1998,10 @@ export declare const RetrievalHitSchema: z.ZodObject<{
|
|
|
1226
1998
|
reasons: z.ZodArray<z.ZodEnum<{
|
|
1227
1999
|
symbol: "symbol";
|
|
1228
2000
|
path: "path";
|
|
1229
|
-
component: "component";
|
|
1230
|
-
repository: "repository";
|
|
1231
2001
|
lexical: "lexical";
|
|
1232
2002
|
semantic: "semantic";
|
|
2003
|
+
component: "component";
|
|
2004
|
+
repository: "repository";
|
|
1233
2005
|
}>>;
|
|
1234
2006
|
matchedTerms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1235
2007
|
lexicalRank: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1261,6 +2033,7 @@ export declare const GetContextResponseSchema: z.ZodObject<{
|
|
|
1261
2033
|
}>;
|
|
1262
2034
|
status: z.ZodEnum<{
|
|
1263
2035
|
active: "active";
|
|
2036
|
+
proposed: "proposed";
|
|
1264
2037
|
suppressed: "suppressed";
|
|
1265
2038
|
superseded: "superseded";
|
|
1266
2039
|
deleted: "deleted";
|
|
@@ -1313,6 +2086,7 @@ export declare const GetContextResponseSchema: z.ZodObject<{
|
|
|
1313
2086
|
}>;
|
|
1314
2087
|
status: z.ZodEnum<{
|
|
1315
2088
|
active: "active";
|
|
2089
|
+
proposed: "proposed";
|
|
1316
2090
|
suppressed: "suppressed";
|
|
1317
2091
|
superseded: "superseded";
|
|
1318
2092
|
deleted: "deleted";
|
|
@@ -1344,10 +2118,10 @@ export declare const GetContextResponseSchema: z.ZodObject<{
|
|
|
1344
2118
|
reasons: z.ZodArray<z.ZodEnum<{
|
|
1345
2119
|
symbol: "symbol";
|
|
1346
2120
|
path: "path";
|
|
1347
|
-
component: "component";
|
|
1348
|
-
repository: "repository";
|
|
1349
2121
|
lexical: "lexical";
|
|
1350
2122
|
semantic: "semantic";
|
|
2123
|
+
component: "component";
|
|
2124
|
+
repository: "repository";
|
|
1351
2125
|
}>>;
|
|
1352
2126
|
matchedTerms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1353
2127
|
lexicalRank: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1409,6 +2183,7 @@ export declare const LearningContextResponseSchema: z.ZodObject<{
|
|
|
1409
2183
|
}>;
|
|
1410
2184
|
status: z.ZodEnum<{
|
|
1411
2185
|
active: "active";
|
|
2186
|
+
proposed: "proposed";
|
|
1412
2187
|
suppressed: "suppressed";
|
|
1413
2188
|
superseded: "superseded";
|
|
1414
2189
|
deleted: "deleted";
|
|
@@ -1461,6 +2236,7 @@ export declare const LearningContextResponseSchema: z.ZodObject<{
|
|
|
1461
2236
|
}>;
|
|
1462
2237
|
status: z.ZodEnum<{
|
|
1463
2238
|
active: "active";
|
|
2239
|
+
proposed: "proposed";
|
|
1464
2240
|
suppressed: "suppressed";
|
|
1465
2241
|
superseded: "superseded";
|
|
1466
2242
|
deleted: "deleted";
|
|
@@ -1492,10 +2268,10 @@ export declare const LearningContextResponseSchema: z.ZodObject<{
|
|
|
1492
2268
|
reasons: z.ZodArray<z.ZodEnum<{
|
|
1493
2269
|
symbol: "symbol";
|
|
1494
2270
|
path: "path";
|
|
1495
|
-
component: "component";
|
|
1496
|
-
repository: "repository";
|
|
1497
2271
|
lexical: "lexical";
|
|
1498
2272
|
semantic: "semantic";
|
|
2273
|
+
component: "component";
|
|
2274
|
+
repository: "repository";
|
|
1499
2275
|
}>>;
|
|
1500
2276
|
matchedTerms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1501
2277
|
lexicalRank: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1556,6 +2332,7 @@ export declare const RememberResponseSchema: z.ZodObject<{
|
|
|
1556
2332
|
}>;
|
|
1557
2333
|
status: z.ZodEnum<{
|
|
1558
2334
|
active: "active";
|
|
2335
|
+
proposed: "proposed";
|
|
1559
2336
|
suppressed: "suppressed";
|
|
1560
2337
|
superseded: "superseded";
|
|
1561
2338
|
deleted: "deleted";
|
|
@@ -1611,6 +2388,7 @@ export declare const CreateMemoryResponseSchema: z.ZodObject<{
|
|
|
1611
2388
|
}>;
|
|
1612
2389
|
status: z.ZodEnum<{
|
|
1613
2390
|
active: "active";
|
|
2391
|
+
proposed: "proposed";
|
|
1614
2392
|
suppressed: "suppressed";
|
|
1615
2393
|
superseded: "superseded";
|
|
1616
2394
|
deleted: "deleted";
|
|
@@ -1666,6 +2444,7 @@ export declare const UpdateMemoryResponseSchema: z.ZodObject<{
|
|
|
1666
2444
|
}>;
|
|
1667
2445
|
status: z.ZodEnum<{
|
|
1668
2446
|
active: "active";
|
|
2447
|
+
proposed: "proposed";
|
|
1669
2448
|
suppressed: "suppressed";
|
|
1670
2449
|
superseded: "superseded";
|
|
1671
2450
|
deleted: "deleted";
|
|
@@ -1720,6 +2499,7 @@ export declare const CorrectMemoryResponseSchema: z.ZodObject<{
|
|
|
1720
2499
|
}>;
|
|
1721
2500
|
status: z.ZodEnum<{
|
|
1722
2501
|
active: "active";
|
|
2502
|
+
proposed: "proposed";
|
|
1723
2503
|
suppressed: "suppressed";
|
|
1724
2504
|
superseded: "superseded";
|
|
1725
2505
|
deleted: "deleted";
|
|
@@ -1771,6 +2551,7 @@ export declare const CorrectMemoryResponseSchema: z.ZodObject<{
|
|
|
1771
2551
|
}>;
|
|
1772
2552
|
status: z.ZodEnum<{
|
|
1773
2553
|
active: "active";
|
|
2554
|
+
proposed: "proposed";
|
|
1774
2555
|
suppressed: "suppressed";
|
|
1775
2556
|
superseded: "superseded";
|
|
1776
2557
|
deleted: "deleted";
|
|
@@ -1825,6 +2606,7 @@ export declare const CorrectResponseSchema: z.ZodObject<{
|
|
|
1825
2606
|
}>;
|
|
1826
2607
|
status: z.ZodEnum<{
|
|
1827
2608
|
active: "active";
|
|
2609
|
+
proposed: "proposed";
|
|
1828
2610
|
suppressed: "suppressed";
|
|
1829
2611
|
superseded: "superseded";
|
|
1830
2612
|
deleted: "deleted";
|
|
@@ -1876,6 +2658,7 @@ export declare const CorrectResponseSchema: z.ZodObject<{
|
|
|
1876
2658
|
}>;
|
|
1877
2659
|
status: z.ZodEnum<{
|
|
1878
2660
|
active: "active";
|
|
2661
|
+
proposed: "proposed";
|
|
1879
2662
|
suppressed: "suppressed";
|
|
1880
2663
|
superseded: "superseded";
|
|
1881
2664
|
deleted: "deleted";
|
|
@@ -1930,6 +2713,7 @@ export declare const ForgetMemoryResponseSchema: z.ZodObject<{
|
|
|
1930
2713
|
}>;
|
|
1931
2714
|
status: z.ZodEnum<{
|
|
1932
2715
|
active: "active";
|
|
2716
|
+
proposed: "proposed";
|
|
1933
2717
|
suppressed: "suppressed";
|
|
1934
2718
|
superseded: "superseded";
|
|
1935
2719
|
deleted: "deleted";
|
|
@@ -1984,6 +2768,7 @@ export declare const GetMemoryResponseSchema: z.ZodObject<{
|
|
|
1984
2768
|
}>;
|
|
1985
2769
|
status: z.ZodEnum<{
|
|
1986
2770
|
active: "active";
|
|
2771
|
+
proposed: "proposed";
|
|
1987
2772
|
suppressed: "suppressed";
|
|
1988
2773
|
superseded: "superseded";
|
|
1989
2774
|
deleted: "deleted";
|
|
@@ -2038,6 +2823,7 @@ export declare const ContextResponseSchema: z.ZodObject<{
|
|
|
2038
2823
|
}>;
|
|
2039
2824
|
status: z.ZodEnum<{
|
|
2040
2825
|
active: "active";
|
|
2826
|
+
proposed: "proposed";
|
|
2041
2827
|
suppressed: "suppressed";
|
|
2042
2828
|
superseded: "superseded";
|
|
2043
2829
|
deleted: "deleted";
|
|
@@ -2090,6 +2876,7 @@ export declare const ContextResponseSchema: z.ZodObject<{
|
|
|
2090
2876
|
}>;
|
|
2091
2877
|
status: z.ZodEnum<{
|
|
2092
2878
|
active: "active";
|
|
2879
|
+
proposed: "proposed";
|
|
2093
2880
|
suppressed: "suppressed";
|
|
2094
2881
|
superseded: "superseded";
|
|
2095
2882
|
deleted: "deleted";
|
|
@@ -2121,10 +2908,10 @@ export declare const ContextResponseSchema: z.ZodObject<{
|
|
|
2121
2908
|
reasons: z.ZodArray<z.ZodEnum<{
|
|
2122
2909
|
symbol: "symbol";
|
|
2123
2910
|
path: "path";
|
|
2124
|
-
component: "component";
|
|
2125
|
-
repository: "repository";
|
|
2126
2911
|
lexical: "lexical";
|
|
2127
2912
|
semantic: "semantic";
|
|
2913
|
+
component: "component";
|
|
2914
|
+
repository: "repository";
|
|
2128
2915
|
}>>;
|
|
2129
2916
|
matchedTerms: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2130
2917
|
lexicalRank: z.ZodNullable<z.ZodNumber>;
|