@kernl-sdk/pg 0.1.9 → 0.1.10

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,5 @@
1
-
2
- > @kernl-sdk/pg@0.1.8 build /Users/andjones/Documents/projects/kernl/packages/storage/pg
3
- > tsc && tsc-alias
4
-
1
+
2
+ 
3
+ > @kernl-sdk/pg@0.1.9 build /Users/andjones/Documents/projects/kernl/packages/storage/pg
4
+ > tsc && tsc-alias --resolve-full-paths
5
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @kernl/pg
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix ESM compatibility by adding --resolve-full-paths to tsc-alias build
8
+ - Updated dependencies
9
+ - kernl@0.6.1
10
+ - @kernl-sdk/shared@0.1.6
11
+ - @kernl-sdk/storage@0.1.10
12
+
3
13
  ## 0.1.9
4
14
 
5
15
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { beforeAll, afterAll, describe, it, expect } from "vitest";
2
2
  import { Pool } from "pg";
3
- import { PGStorage } from "../storage";
3
+ import { PGStorage } from "../storage.js";
4
4
  import { Agent, Context, } from "kernl";
5
5
  import { Thread } from "kernl/internal";
6
6
  const TEST_DB_URL = process.env.KERNL_PG_TEST_URL;
@@ -2,7 +2,7 @@ import { describe, it, expect, beforeAll, afterAll, beforeEach } from "vitest";
2
2
  import { Pool } from "pg";
3
3
  import { Agent, Kernl, tool, FunctionToolkit, } from "kernl";
4
4
  import { STOPPED, message, IN_PROGRESS } from "@kernl-sdk/protocol";
5
- import { postgres } from "../postgres";
5
+ import { postgres } from "../postgres.js";
6
6
  // Use helper from test fixtures (handles streaming properly)
7
7
  function createMockModel(generateFn) {
8
8
  return {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @kernl/pg - PostgreSQL storage adapter for Kernl
3
3
  */
4
- export { PGStorage, type PGStorageConfig } from "./storage";
5
- export { postgres, type PostgresConfig } from "./postgres";
6
- export { migrations, REQUIRED_SCHEMA_VERSION } from "./migrations";
4
+ export { PGStorage, type PGStorageConfig } from "./storage.js";
5
+ export { postgres, type PostgresConfig } from "./postgres.js";
6
+ export { migrations, REQUIRED_SCHEMA_VERSION } from "./migrations.js";
7
7
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @kernl/pg - PostgreSQL storage adapter for Kernl
3
3
  */
4
- export { PGStorage } from "./storage";
5
- export { postgres } from "./postgres";
6
- export { migrations, REQUIRED_SCHEMA_VERSION } from "./migrations";
4
+ export { PGStorage } from "./storage.js";
5
+ export { postgres } from "./postgres.js";
6
+ export { migrations, REQUIRED_SCHEMA_VERSION } from "./migrations.js";
package/dist/postgres.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Pool } from "pg";
2
- import { PGStorage } from "./storage";
2
+ import { PGStorage } from "./storage.js";
3
3
  /**
4
4
  * Create a PostgreSQL storage adapter for Kernl.
5
5
  *
package/dist/storage.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Pool } from "pg";
2
2
  import type { AgentRegistry, ModelRegistry, KernlStorage, Transaction } from "kernl";
3
- import { PGThreadStore } from "./thread/store";
3
+ import { PGThreadStore } from "./thread/store.js";
4
4
  /**
5
5
  * PostgreSQL storage configuration.
6
6
  */
package/dist/storage.js CHANGED
@@ -2,9 +2,9 @@ import assert from "assert";
2
2
  import { SCHEMA_NAME, TABLE_MIGRATIONS } from "@kernl-sdk/storage";
3
3
  import { UnimplementedError } from "@kernl-sdk/shared/lib";
4
4
  /* pg */
5
- import { PGThreadStore } from "./thread/store";
6
- import { SQL_IDENTIFIER_REGEX } from "./sql";
7
- import { migrations } from "./migrations";
5
+ import { PGThreadStore } from "./thread/store.js";
6
+ import { SQL_IDENTIFIER_REGEX } from "./sql.js";
7
+ import { migrations } from "./migrations.js";
8
8
  /**
9
9
  * PostgreSQL storage adapter.
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernl-sdk/pg",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "PostgreSQL storage adapter for kernl",
5
5
  "keywords": [
6
6
  "kernl",
@@ -35,16 +35,16 @@
35
35
  "tsc-alias": "^1.8.10",
36
36
  "typescript": "5.9.2",
37
37
  "vitest": "^4.0.8",
38
- "@kernl-sdk/protocol": "^0.2.4"
38
+ "@kernl-sdk/protocol": "^0.2.5"
39
39
  },
40
40
  "dependencies": {
41
41
  "pg": "^8.16.3",
42
- "kernl": "^0.6.0",
43
- "@kernl-sdk/shared": "^0.1.5",
44
- "@kernl-sdk/storage": "0.1.9"
42
+ "kernl": "^0.6.1",
43
+ "@kernl-sdk/storage": "0.1.10",
44
+ "@kernl-sdk/shared": "^0.1.6"
45
45
  },
46
46
  "scripts": {
47
- "build": "tsc && tsc-alias",
47
+ "build": "tsc && tsc-alias --resolve-full-paths",
48
48
  "dev": "tsc --watch",
49
49
  "check-types": "tsc --noEmit",
50
50
  "test": "vitest",