@kernl-sdk/storage 0.1.9 → 0.1.11

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.8 build /Users/andjones/Documents/projects/kernl/packages/storage/core
3
- > tsc && tsc-alias
2
+ > @kernl-sdk/storage@0.1.10 build /Users/andjones/Documents/projects/kernl/packages/storage/core
3
+ > tsc && tsc-alias --resolve-full-paths
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @kernl/storage
2
2
 
3
+ ## 0.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c5a5fcf]
8
+ - kernl@0.6.2
9
+
10
+ ## 0.1.10
11
+
12
+ ### Patch Changes
13
+
14
+ - Fix ESM compatibility by adding --resolve-full-paths to tsc-alias build
15
+ - Updated dependencies
16
+ - kernl@0.6.1
17
+ - @kernl-sdk/shared@0.1.6
18
+ - @kernl-sdk/protocol@0.2.5
19
+
3
20
  ## 0.1.9
4
21
 
5
22
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { text, integer, bigint, jsonb } from "../table";
2
+ import { text, integer, bigint, jsonb } from "../table.js";
3
3
  describe("Column codec", () => {
4
4
  describe("text column", () => {
5
5
  it("should encode strings with single quotes", () => {
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @kernl-sdk/storage - Generic storage abstractions for Kernl
3
3
  */
4
- export * from "./base";
5
- export * from "./thread";
6
- export * from "./serde/thread";
7
- export * from "./table";
4
+ export * from "./base.js";
5
+ export * from "./thread/index.js";
6
+ export * from "./serde/thread.js";
7
+ export * from "./table.js";
8
8
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @kernl-sdk/storage - Generic storage abstractions for Kernl
3
3
  */
4
- export * from "./base";
5
- export * from "./thread";
6
- export * from "./serde/thread";
7
- export * from "./table";
4
+ export * from "./base.js";
5
+ export * from "./thread/index.js";
6
+ export * from "./serde/thread.js";
7
+ export * from "./table.js";
@@ -1,6 +1,6 @@
1
1
  import { describe, it, expect, beforeEach, vi } from "vitest";
2
2
  import { RUNNING, STOPPED } from "@kernl-sdk/protocol";
3
- import { NewThreadCodec } from "../thread";
3
+ import { NewThreadCodec } from "../thread.js";
4
4
  describe("NewThreadCodec", () => {
5
5
  beforeEach(() => {
6
6
  vi.useFakeTimers();
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type Codec } from "@kernl-sdk/shared/lib";
5
5
  import type { IThread, ThreadEvent } from "kernl/internal";
6
- import type { NewThread } from "../thread/types";
6
+ import type { NewThread } from "../thread/types.js";
7
7
  /**
8
8
  * Decoded thread record - validated but not hydrated.
9
9
  *
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { neapolitanCodec } from "@kernl-sdk/shared/lib";
5
5
  import { STOPPED } from "@kernl-sdk/protocol";
6
- import { ThreadRecordSchema, ThreadEventRecordSchema } from "../thread/schema";
6
+ import { ThreadRecordSchema, ThreadEventRecordSchema } from "../thread/schema.js";
7
7
  /* ---- Codecs ---- */
8
8
  /**
9
9
  * Thread codec - converts between DecodedThread and ThreadRecord.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Thread storage types and utilities.
3
3
  */
4
- export * from "./types";
5
- export * from "./store";
6
- export * from "./schema";
4
+ export * from "./types.js";
5
+ export * from "./store.js";
6
+ export * from "./schema.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Thread storage types and utilities.
3
3
  */
4
- export * from "./types";
5
- export * from "./store";
6
- export * from "./schema";
4
+ export * from "./types.js";
5
+ export * from "./store.js";
6
+ export * from "./schema.js";
@@ -5,37 +5,37 @@ import { z } from "zod";
5
5
  /**
6
6
  * Threads table schema.
7
7
  */
8
- export declare const TABLE_THREADS: import("../table").Table<"threads", {
9
- readonly created_at: import("../table").Column<number>;
10
- readonly updated_at: import("../table").Column<number>;
11
- readonly id: import("../table").Column<string>;
12
- readonly namespace: import("../table").Column<string>;
13
- readonly agent_id: import("../table").Column<string>;
14
- readonly model: import("../table").Column<string>;
15
- readonly context: import("../table").Column<unknown>;
16
- readonly parent_task_id: import("../table").Column<string>;
17
- readonly tick: import("../table").Column<number>;
18
- readonly state: import("../table").Column<string>;
19
- readonly metadata: import("../table").Column<unknown>;
8
+ export declare const TABLE_THREADS: import("../table.js").Table<"threads", {
9
+ readonly created_at: import("../table.js").Column<number>;
10
+ readonly updated_at: import("../table.js").Column<number>;
11
+ readonly id: import("../table.js").Column<string>;
12
+ readonly namespace: import("../table.js").Column<string>;
13
+ readonly agent_id: import("../table.js").Column<string>;
14
+ readonly model: import("../table.js").Column<string>;
15
+ readonly context: import("../table.js").Column<unknown>;
16
+ readonly parent_task_id: import("../table.js").Column<string>;
17
+ readonly tick: import("../table.js").Column<number>;
18
+ readonly state: import("../table.js").Column<string>;
19
+ readonly metadata: import("../table.js").Column<unknown>;
20
20
  }>;
21
21
  /**
22
22
  * Thread events table schema.
23
23
  */
24
- export declare const TABLE_THREAD_EVENTS: import("../table").Table<"thread_events", {
25
- readonly id: import("../table").Column<string>;
26
- readonly tid: import("../table").Column<string>;
27
- readonly seq: import("../table").Column<number>;
28
- readonly kind: import("../table").Column<string>;
29
- readonly timestamp: import("../table").Column<number>;
30
- readonly data: import("../table").Column<unknown>;
31
- readonly metadata: import("../table").Column<unknown>;
24
+ export declare const TABLE_THREAD_EVENTS: import("../table.js").Table<"thread_events", {
25
+ readonly id: import("../table.js").Column<string>;
26
+ readonly tid: import("../table.js").Column<string>;
27
+ readonly seq: import("../table.js").Column<number>;
28
+ readonly kind: import("../table.js").Column<string>;
29
+ readonly timestamp: import("../table.js").Column<number>;
30
+ readonly data: import("../table.js").Column<unknown>;
31
+ readonly metadata: import("../table.js").Column<unknown>;
32
32
  }>;
33
33
  /**
34
34
  * Migrations table.
35
35
  */
36
- export declare const TABLE_MIGRATIONS: import("../table").Table<"migrations", {
37
- readonly id: import("../table").Column<string>;
38
- readonly applied_at: import("../table").Column<number>;
36
+ export declare const TABLE_MIGRATIONS: import("../table.js").Table<"migrations", {
37
+ readonly id: import("../table.js").Column<string>;
38
+ readonly applied_at: import("../table.js").Column<number>;
39
39
  }>;
40
40
  /**
41
41
  * Thread record schema (zod-first).
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { z } from "zod";
5
5
  import { THREAD_STATES } from "kernl";
6
- import { text, jsonb, bigint, integer, timestamps, defineTable } from "../table";
6
+ import { text, jsonb, bigint, integer, timestamps, defineTable } from "../table.js";
7
7
  /* ---- Table Definitions ---- */
8
8
  /**
9
9
  * Threads table schema.
package/dist/types.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Defines the top-level storage interface and transaction primitives.
5
5
  */
6
- import type { ThreadStore } from "./thread";
6
+ import type { ThreadStore } from "./thread/index.js";
7
7
  /**
8
8
  * The main storage interface for Kernl.
9
9
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernl-sdk/storage",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Core storage abstractions for kernl",
5
5
  "keywords": [
6
6
  "kernl",
@@ -36,12 +36,12 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "zod": "^4.1.12",
39
- "kernl": "0.6.0",
40
- "@kernl-sdk/shared": "0.1.5",
41
- "@kernl-sdk/protocol": "0.2.4"
39
+ "kernl": "0.6.2",
40
+ "@kernl-sdk/protocol": "0.2.5",
41
+ "@kernl-sdk/shared": "0.1.6"
42
42
  },
43
43
  "scripts": {
44
- "build": "tsc && tsc-alias",
44
+ "build": "tsc && tsc-alias --resolve-full-paths",
45
45
  "dev": "tsc --watch",
46
46
  "check-types": "tsc --noEmit",
47
47
  "test": "vitest",