@sentry/junior-memory 0.80.1 → 0.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { PluginModel } from "@sentry/junior-plugin-api";
2
2
  import { z } from "zod";
3
+ import type { MemorySupersessionDecision, MemorySupersessionInput } from "./store";
3
4
  declare const createMemoryRequestSchema: z.ZodObject<{
4
5
  content: z.ZodString;
5
6
  expiresAtMs: z.ZodOptional<z.ZodNumber>;
@@ -133,6 +134,8 @@ export type CreateMemoryRequest = z.output<typeof createMemoryRequestSchema>;
133
134
  export type ExtractSessionRequest = z.output<typeof extractSessionRequestSchema>;
134
135
  export type ExtractedMemory = z.output<typeof extractedMemoryResultSchema>;
135
136
  export interface MemoryAgent {
137
+ /** Decide whether a new preference safely replaces active old preferences. */
138
+ adjudicateSupersession(request: MemorySupersessionInput): Promise<MemorySupersessionDecision> | MemorySupersessionDecision;
136
139
  extractSessionMemories(request: ExtractSessionRequest): Promise<ExtractedMemory[]> | ExtractedMemory[];
137
140
  reviewCreateRequest(request: CreateMemoryRequest): Promise<MemoryReview> | MemoryReview;
138
141
  }