@sentry/junior-memory 0.135.0 → 0.136.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-memory",
3
- "version": "0.135.0",
3
+ "version": "0.136.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.135.0"
30
+ "@sentry/junior-plugin-api": "0.136.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^25.9.1",
package/src/api.ts CHANGED
@@ -27,6 +27,8 @@ export const memoryApiSchema = z
27
27
  id: z.string().min(1),
28
28
  kind: z.enum(["preference", "procedure", "knowledge"]),
29
29
  observedAt: z.iso.datetime(),
30
+ origin: z.enum(["automatic", "explicit", "other"]),
31
+ sourcePlatform: z.enum(["local", "slack"]),
30
32
  visibility: z.enum(["private", "public"]),
31
33
  })
32
34
  .strict();
@@ -118,6 +120,8 @@ function apiMemory(
118
120
  id: memory.id,
119
121
  kind: memory.kind,
120
122
  observedAt: new Date(memory.observedAtMs).toISOString(),
123
+ origin: memory.origin,
124
+ sourcePlatform: memory.sourcePlatform,
121
125
  visibility: memory.visibility,
122
126
  };
123
127
  }