@sentry/junior-memory 0.121.0 → 0.122.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.
Files changed (2) hide show
  1. package/dist/tools.d.ts +126 -0
  2. package/package.json +2 -2
package/dist/tools.d.ts CHANGED
@@ -52,6 +52,39 @@ export declare function createMemoryCreateTool(context: MemoryCreateToolContext)
52
52
  message: string;
53
53
  retryable?: boolean | undefined;
54
54
  } | undefined;
55
+ }, {
56
+ [x: string]: unknown;
57
+ ok: true;
58
+ status: "success";
59
+ target: string;
60
+ data: {
61
+ created: boolean;
62
+ memory: {
63
+ id: string;
64
+ content: string;
65
+ createdAtMs: number;
66
+ observedAtMs: number;
67
+ expiresAtMs?: number | undefined;
68
+ };
69
+ };
70
+ created: boolean;
71
+ memory: {
72
+ id: string;
73
+ content: string;
74
+ createdAtMs: number;
75
+ observedAtMs: number;
76
+ expiresAtMs?: number | undefined;
77
+ };
78
+ truncated?: boolean | undefined;
79
+ continuation?: {
80
+ arguments: Record<string, unknown>;
81
+ reason?: string | undefined;
82
+ } | undefined;
83
+ error?: string | {
84
+ kind: string;
85
+ message: string;
86
+ retryable?: boolean | undefined;
87
+ } | undefined;
55
88
  }>;
56
89
  /** Create a tool that archives a visible memory in the active context. */
57
90
  export declare function createMemoryRemoveTool(context: MemoryToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
@@ -87,6 +120,37 @@ export declare function createMemoryRemoveTool(context: MemoryToolContext): impo
87
120
  message: string;
88
121
  retryable?: boolean | undefined;
89
122
  } | undefined;
123
+ }, {
124
+ [x: string]: unknown;
125
+ ok: true;
126
+ status: "success";
127
+ target: string;
128
+ data: {
129
+ memory: {
130
+ id: string;
131
+ content: string;
132
+ createdAtMs: number;
133
+ observedAtMs: number;
134
+ expiresAtMs?: number | undefined;
135
+ };
136
+ };
137
+ memory: {
138
+ id: string;
139
+ content: string;
140
+ createdAtMs: number;
141
+ observedAtMs: number;
142
+ expiresAtMs?: number | undefined;
143
+ };
144
+ truncated?: boolean | undefined;
145
+ continuation?: {
146
+ arguments: Record<string, unknown>;
147
+ reason?: string | undefined;
148
+ } | undefined;
149
+ error?: string | {
150
+ kind: string;
151
+ message: string;
152
+ retryable?: boolean | undefined;
153
+ } | undefined;
90
154
  }>;
91
155
  /** Create a tool that lists visible active memories in the active context. */
92
156
  export declare function createMemoryListTool(context: MemoryToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
@@ -122,6 +186,37 @@ export declare function createMemoryListTool(context: MemoryToolContext): import
122
186
  message: string;
123
187
  retryable?: boolean | undefined;
124
188
  } | undefined;
189
+ }, {
190
+ [x: string]: unknown;
191
+ ok: true;
192
+ status: "success";
193
+ target: string;
194
+ data: {
195
+ memories: {
196
+ id: string;
197
+ content: string;
198
+ createdAtMs: number;
199
+ observedAtMs: number;
200
+ expiresAtMs?: number | undefined;
201
+ }[];
202
+ };
203
+ memories: {
204
+ id: string;
205
+ content: string;
206
+ createdAtMs: number;
207
+ observedAtMs: number;
208
+ expiresAtMs?: number | undefined;
209
+ }[];
210
+ truncated?: boolean | undefined;
211
+ continuation?: {
212
+ arguments: Record<string, unknown>;
213
+ reason?: string | undefined;
214
+ } | undefined;
215
+ error?: string | {
216
+ kind: string;
217
+ message: string;
218
+ retryable?: boolean | undefined;
219
+ } | undefined;
125
220
  }>;
126
221
  /** Create a tool that searches visible active memories in the active context. */
127
222
  export declare function createMemorySearchTool(context: MemoryToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
@@ -158,4 +253,35 @@ export declare function createMemorySearchTool(context: MemoryToolContext): impo
158
253
  message: string;
159
254
  retryable?: boolean | undefined;
160
255
  } | undefined;
256
+ }, {
257
+ [x: string]: unknown;
258
+ ok: true;
259
+ status: "success";
260
+ target: string;
261
+ data: {
262
+ memories: {
263
+ id: string;
264
+ content: string;
265
+ createdAtMs: number;
266
+ observedAtMs: number;
267
+ expiresAtMs?: number | undefined;
268
+ }[];
269
+ };
270
+ memories: {
271
+ id: string;
272
+ content: string;
273
+ createdAtMs: number;
274
+ observedAtMs: number;
275
+ expiresAtMs?: number | undefined;
276
+ }[];
277
+ truncated?: boolean | undefined;
278
+ continuation?: {
279
+ arguments: Record<string, unknown>;
280
+ reason?: string | undefined;
281
+ } | undefined;
282
+ error?: string | {
283
+ kind: string;
284
+ message: string;
285
+ retryable?: boolean | undefined;
286
+ } | undefined;
161
287
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-memory",
3
- "version": "0.121.0",
3
+ "version": "0.122.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  "commander": "^14.0.3",
28
28
  "drizzle-orm": "^0.45.2",
29
29
  "zod": "^4.4.3",
30
- "@sentry/junior-plugin-api": "0.121.0"
30
+ "@sentry/junior-plugin-api": "0.122.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^25.9.1",