@kernl-sdk/storage 0.1.15 → 0.1.17

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @kernl-sdk/storage@0.1.13 build /Users/andjones/Documents/projects/kernl/packages/storage/core
2
+ > @kernl-sdk/storage@0.1.16 build /Users/andjones/Documents/projects/kernl/packages/storage/core
3
3
  > tsc && tsc-alias --resolve-full-paths
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @kernl/storage
2
2
 
3
+ ## 0.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - kernl@0.7.4
9
+
10
+ ## 0.1.16
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [2b0993d]
15
+ - @kernl-sdk/shared@0.3.0
16
+ - kernl@0.7.3
17
+ - @kernl-sdk/protocol@0.2.8
18
+
3
19
  ## 0.1.15
4
20
 
5
21
  ### Patch Changes
@@ -26,7 +26,7 @@ export declare const MemoryDBRecordSchema: z.ZodObject<{
26
26
  episodic: "episodic";
27
27
  semantic: "semantic";
28
28
  }>;
29
- collection: z.ZodString;
29
+ collection: z.ZodNullable<z.ZodString>;
30
30
  content: z.ZodObject<{
31
31
  text: z.ZodOptional<z.ZodString>;
32
32
  image: z.ZodOptional<z.ZodObject<{
@@ -10,7 +10,7 @@ export const TABLE_MEMORIES = defineTable("memories", {
10
10
  entity_id: text().nullable(),
11
11
  agent_id: text().nullable(),
12
12
  kind: text(), // "episodic" | "semantic"
13
- collection: text(),
13
+ collection: text().nullable(),
14
14
  content: jsonb(),
15
15
  wmem: boolean().default(false),
16
16
  smem_expires_at: bigint().nullable(),
@@ -63,7 +63,7 @@ export const MemoryDBRecordSchema = z.object({
63
63
  entity_id: z.string().nullable(),
64
64
  agent_id: z.string().nullable(),
65
65
  kind: MemoryKindSchema,
66
- collection: z.string(),
66
+ collection: z.string().nullable(),
67
67
  content: MemoryByteSchema,
68
68
  wmem: z.boolean(),
69
69
  smem_expires_at: pgBigint.nullable(),
@@ -9,7 +9,7 @@ export declare const MemoryRecordCodec: Codec<MemoryRecord, {
9
9
  entity_id: string | null;
10
10
  agent_id: string | null;
11
11
  kind: "episodic" | "semantic";
12
- collection: string;
12
+ collection: string | null;
13
13
  content: {
14
14
  text?: string | undefined;
15
15
  image?: {
@@ -40,7 +40,7 @@ export declare const NewMemoryCodec: Codec<NewMemory, {
40
40
  entity_id: string | null;
41
41
  agent_id: string | null;
42
42
  kind: "episodic" | "semantic";
43
- collection: string;
43
+ collection: string | null;
44
44
  content: {
45
45
  text?: string | undefined;
46
46
  image?: {
@@ -15,7 +15,7 @@ const rawMemoryRecordCodec = {
15
15
  entity_id: record.scope.entityId ?? null,
16
16
  agent_id: record.scope.agentId ?? null,
17
17
  kind: record.kind,
18
- collection: record.collection,
18
+ collection: record.collection ?? null,
19
19
  content: record.content,
20
20
  wmem: record.wmem,
21
21
  smem_expires_at: record.smem.expiresAt,
@@ -63,7 +63,7 @@ const rawNewMemoryCodec = {
63
63
  entity_id: memory.scope.entityId ?? null,
64
64
  agent_id: memory.scope.agentId ?? null,
65
65
  kind: memory.kind,
66
- collection: memory.collection,
66
+ collection: memory.collection ?? null,
67
67
  content: memory.content,
68
68
  wmem: memory.wmem ?? false,
69
69
  smem_expires_at: memory.smem?.expiresAt ?? null,
@@ -82,7 +82,7 @@ const rawNewMemoryCodec = {
82
82
  agentId: row.agent_id ?? undefined,
83
83
  },
84
84
  kind: row.kind,
85
- collection: row.collection,
85
+ collection: row.collection ?? undefined,
86
86
  content: row.content,
87
87
  wmem: row.wmem,
88
88
  smem: row.smem_expires_at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernl-sdk/storage",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Core storage abstractions for kernl",
5
5
  "keywords": [
6
6
  "kernl",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "zod": "^4.1.12",
39
- "@kernl-sdk/protocol": "0.2.7",
40
- "kernl": "0.7.2",
41
- "@kernl-sdk/shared": "0.2.0"
39
+ "kernl": "0.7.4",
40
+ "@kernl-sdk/protocol": "0.2.8",
41
+ "@kernl-sdk/shared": "0.3.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc && tsc-alias --resolve-full-paths",
@@ -15,7 +15,7 @@ export const TABLE_MEMORIES = defineTable(
15
15
  entity_id: text().nullable(),
16
16
  agent_id: text().nullable(),
17
17
  kind: text(), // "episodic" | "semantic"
18
- collection: text(),
18
+ collection: text().nullable(),
19
19
  content: jsonb(),
20
20
  wmem: boolean().default(false),
21
21
  smem_expires_at: bigint().nullable(),
@@ -80,7 +80,7 @@ export const MemoryDBRecordSchema = z.object({
80
80
  entity_id: z.string().nullable(),
81
81
  agent_id: z.string().nullable(),
82
82
  kind: MemoryKindSchema,
83
- collection: z.string(),
83
+ collection: z.string().nullable(),
84
84
  content: MemoryByteSchema,
85
85
  wmem: z.boolean(),
86
86
  smem_expires_at: pgBigint.nullable(),
@@ -21,7 +21,7 @@ const rawMemoryRecordCodec: Codec<MemoryRecord, MemoryDBRecord> = {
21
21
  entity_id: record.scope.entityId ?? null,
22
22
  agent_id: record.scope.agentId ?? null,
23
23
  kind: record.kind,
24
- collection: record.collection,
24
+ collection: record.collection ?? null,
25
25
  content: record.content,
26
26
  wmem: record.wmem,
27
27
  smem_expires_at: record.smem.expiresAt,
@@ -73,7 +73,7 @@ const rawNewMemoryCodec: Codec<NewMemory, MemoryDBRecord> = {
73
73
  entity_id: memory.scope.entityId ?? null,
74
74
  agent_id: memory.scope.agentId ?? null,
75
75
  kind: memory.kind,
76
- collection: memory.collection,
76
+ collection: memory.collection ?? null,
77
77
  content: memory.content,
78
78
  wmem: memory.wmem ?? false,
79
79
  smem_expires_at: memory.smem?.expiresAt ?? null,
@@ -93,7 +93,7 @@ const rawNewMemoryCodec: Codec<NewMemory, MemoryDBRecord> = {
93
93
  agentId: row.agent_id ?? undefined,
94
94
  },
95
95
  kind: row.kind as MemoryKind,
96
- collection: row.collection,
96
+ collection: row.collection ?? undefined,
97
97
  content: row.content as MemoryByte,
98
98
  wmem: row.wmem,
99
99
  smem: row.smem_expires_at