@sentry/junior-memory 0.105.0 → 0.107.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 +2 -2
- package/dist/index.js +1638 -1636
- package/dist/index.js.map +1 -1
- package/dist/store.d.ts +66 -24
- package/package.json +2 -2
- package/src/agent.ts +27 -61
- package/src/store.ts +173 -138
package/dist/agent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PluginModel } from "@sentry/junior-plugin-api";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type
|
|
3
|
+
import { type MemorySupersessionDecision, type MemorySupersessionInput } from "./store";
|
|
4
4
|
declare const createMemoryRequestSchema: z.ZodObject<{
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
expiresAtMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -176,7 +176,7 @@ export type CreateMemoryRequest = z.output<typeof createMemoryRequestSchema>;
|
|
|
176
176
|
export type ExtractSessionRequest = z.output<typeof extractSessionRequestSchema>;
|
|
177
177
|
export type ExtractedMemory = z.output<typeof extractedMemoryResultSchema>;
|
|
178
178
|
export interface MemoryAgent {
|
|
179
|
-
/**
|
|
179
|
+
/** Classify a new preference against related active preferences. */
|
|
180
180
|
adjudicateSupersession(request: MemorySupersessionInput): Promise<MemorySupersessionDecision> | MemorySupersessionDecision;
|
|
181
181
|
extractSessionMemories(request: ExtractSessionRequest): Promise<ExtractedMemory[]> | ExtractedMemory[];
|
|
182
182
|
reviewCreateRequest(request: CreateMemoryRequest): Promise<MemoryReview> | MemoryReview;
|