@kernl-sdk/pg 0.1.32 → 0.1.34

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/pg@0.1.32 build /home/runner/work/kernl/kernl/packages/storage/pg
2
+ > @kernl-sdk/pg@0.1.34 build /home/runner/work/kernl/kernl/packages/storage/pg
3
3
  > tsc && tsc-alias --resolve-full-paths
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @kernl/pg
2
2
 
3
+ ## 0.1.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [11cf6fd]
8
+ - kernl@0.12.2
9
+ - @kernl-sdk/storage@0.2.2
10
+
11
+ ## 0.1.33
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [58e9db2]
16
+ - Updated dependencies [320b76a]
17
+ - kernl@0.12.1
18
+ - @kernl-sdk/storage@0.2.1
19
+
3
20
  ## 0.1.32
4
21
 
5
22
  ### Patch Changes
package/dist/storage.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Pool } from "pg";
2
- import type { AgentRegistry, ModelRegistry, KernlStorage, Transaction } from "kernl";
2
+ import type { IAgentRegistry, IModelRegistry, KernlStorage, Transaction } from "kernl";
3
3
  import { PGThreadStore } from "./thread/store.js";
4
4
  import { PGMemoryStore } from "./memory/store.js";
5
5
  /**
@@ -83,8 +83,8 @@ export declare class PGStorage implements KernlStorage {
83
83
  * Bind runtime registries to storage.
84
84
  */
85
85
  bind(registries: {
86
- agents: AgentRegistry;
87
- models: ModelRegistry;
86
+ agents: IAgentRegistry;
87
+ models: IModelRegistry;
88
88
  }): void;
89
89
  /**
90
90
  * Execute a function within a transaction.
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,IAAI,CAAC;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AS,GAC3C,oBAAoB,GAAG,SAAS,CAOlC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,cAAc,CAAC;CACnC;AAED;;;;;;;;;GASG;AACH,qBAAa,SAAU,YAAW,YAAY;IAC5C,OAAO,CAAC,IAAI,CAAO;IACnB,OAAO,CAAC,WAAW,CAA8B;IAEjD,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,aAAa,CAAC;gBAEZ,MAAM,EAAE,eAAe;IAMnC;;;;OAIG;YACW,UAAU;IAUxB;;OAEG;IACH,IAAI,CAAC,UAAU,EAAE;QAAE,MAAM,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,cAAc,CAAA;KAAE,GAAG,IAAI;IAI1E;;OAEG;IACG,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIrE;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAyC9B;;OAEG;YACW,WAAW;IAUzB;;OAEG;YACW,YAAY;IA6F1B;;OAEG;YACW,UAAU;IAMxB;;OAEG;YACW,UAAU;IAIxB;;OAEG;YACW,SAAS;IAIvB;;OAEG;YACW,WAAW;CAkB1B"}
@@ -1,5 +1,5 @@
1
1
  import type { Pool, PoolClient } from "pg";
2
- import { type AgentRegistry, type ModelRegistry, type ThreadStore, type NewThread, type ThreadUpdate, type ThreadInclude, type ThreadListOptions, type ThreadHistoryOptions } from "kernl";
2
+ import { type IAgentRegistry, type IModelRegistry, type ThreadStore, type NewThread, type ThreadUpdate, type ThreadInclude, type ThreadListOptions, type ThreadHistoryOptions } from "kernl";
3
3
  import { Thread, type ThreadEvent } from "kernl/internal";
4
4
  import { type ThreadRecord } from "@kernl-sdk/storage";
5
5
  /**
@@ -19,8 +19,8 @@ export declare class PGThreadStore implements ThreadStore {
19
19
  * (TODO): move into abstract ThreadStore class
20
20
  */
21
21
  bind(registries: {
22
- agents: AgentRegistry;
23
- models: ModelRegistry;
22
+ agents: IAgentRegistry;
23
+ models: IModelRegistry;
24
24
  }): void;
25
25
  /**
26
26
  * Get a thread by id.
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/thread/store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAE3C,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,oBAAoB,CAAC;AAI5B;;;;;GAKG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,OAAO,CAAC,EAAE,CAAoB;IAC9B,OAAO,CAAC,UAAU,CAA0D;IAC5E,OAAO,CAAC,UAAU,CAAsB;gBAE5B,EAAE,EAAE,IAAI,GAAG,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;IAMlE;;;;OAIG;IACH,IAAI,CAAC,UAAU,EAAE;QAAE,MAAM,EAAE,aAAa,CAAC;QAAC,MAAM,EAAE,aAAa,CAAA;KAAE,GAAG,IAAI;IAIxE;;OAEG;IACG,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG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"version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "PostgreSQL storage adapter for kernl",
5
5
  "keywords": [
6
6
  "kernl",
@@ -35,15 +35,15 @@
35
35
  "tsc-alias": "^1.8.10",
36
36
  "typescript": "5.9.2",
37
37
  "vitest": "^4.0.8",
38
- "@kernl-sdk/ai": "^0.4.0",
38
+ "@kernl-sdk/ai": "^0.4.2",
39
39
  "@kernl-sdk/protocol": "^0.5.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "pg": "^8.16.3",
43
- "kernl": "^0.12.0",
43
+ "kernl": "^0.12.2",
44
44
  "@kernl-sdk/retrieval": "^0.1.9",
45
45
  "@kernl-sdk/shared": "^0.4.0",
46
- "@kernl-sdk/storage": "0.2.0"
46
+ "@kernl-sdk/storage": "0.2.2"
47
47
  },
48
48
  "scripts": {
49
49
  "clean": "rm -rf dist",
@@ -6,8 +6,8 @@ import { PGThreadStore } from "../thread/store";
6
6
  import {
7
7
  Agent,
8
8
  Context,
9
- type AgentRegistry,
10
- type ModelRegistry,
9
+ type IAgentRegistry,
10
+ type IModelRegistry,
11
11
  } from "kernl";
12
12
  import { Thread } from "kernl/internal";
13
13
  import type { LanguageModel } from "@kernl-sdk/protocol";
@@ -49,10 +49,10 @@ describe.sequential("PGStorage auto-initialization", () => {
49
49
  model,
50
50
  });
51
51
 
52
- const agents: AgentRegistry = new Map([["auto-init-agent", agent]]);
53
- const models: ModelRegistry = new Map([
52
+ const agents: IAgentRegistry = new Map([["auto-init-agent", agent]]);
53
+ const models: IModelRegistry = new Map([
54
54
  ["test/auto-init-model", model],
55
- ]) as unknown as ModelRegistry;
55
+ ]) as unknown as IModelRegistry;
56
56
 
57
57
  storage.bind({ agents, models });
58
58
  const store = storage.threads;
@@ -314,10 +314,10 @@ describe.sequential("PGStorage integration", () => {
314
314
  model,
315
315
  });
316
316
 
317
- const agents: AgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
318
- const models: ModelRegistry = new Map<string, LanguageModel>([
317
+ const agents: IAgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
318
+ const models: IModelRegistry = new Map<string, LanguageModel>([
319
319
  ["provider/model", model],
320
- ]) as unknown as ModelRegistry;
320
+ ]) as unknown as IModelRegistry;
321
321
 
322
322
  storage.bind({ agents, models });
323
323
  const store = storage.threads;
@@ -510,10 +510,10 @@ describe.sequential("PGStorage integration", () => {
510
510
  model,
511
511
  });
512
512
 
513
- const agents: AgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
514
- const models: ModelRegistry = new Map<string, LanguageModel>([
513
+ const agents: IAgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
514
+ const models: IModelRegistry = new Map<string, LanguageModel>([
515
515
  ["provider/model", model],
516
- ]) as unknown as ModelRegistry;
516
+ ]) as unknown as IModelRegistry;
517
517
 
518
518
  storage.bind({ agents, models });
519
519
  const store = storage.threads;
@@ -583,10 +583,10 @@ describe.sequential("PGStorage integration", () => {
583
583
  model,
584
584
  });
585
585
 
586
- const agents: AgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
587
- const models: ModelRegistry = new Map<string, LanguageModel>([
586
+ const agents: IAgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
587
+ const models: IModelRegistry = new Map<string, LanguageModel>([
588
588
  ["provider/model", model],
589
- ]) as unknown as ModelRegistry;
589
+ ]) as unknown as IModelRegistry;
590
590
 
591
591
  storage.bind({ agents, models });
592
592
  const store = storage.threads;
@@ -641,10 +641,10 @@ describe.sequential("PGStorage integration", () => {
641
641
  model,
642
642
  });
643
643
 
644
- const agents: AgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
645
- const models: ModelRegistry = new Map<string, LanguageModel>([
644
+ const agents: IAgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
645
+ const models: IModelRegistry = new Map<string, LanguageModel>([
646
646
  ["provider/model", model],
647
- ]) as unknown as ModelRegistry;
647
+ ]) as unknown as IModelRegistry;
648
648
 
649
649
  storage.bind({ agents, models });
650
650
  const store = storage.threads;
@@ -710,13 +710,13 @@ describe.sequential("PGStorage integration", () => {
710
710
  model,
711
711
  });
712
712
 
713
- const agents: AgentRegistry = new Map<string, Agent>([
713
+ const agents: IAgentRegistry = new Map<string, Agent>([
714
714
  ["agent-1", agent1],
715
715
  ["agent-2", agent2],
716
716
  ]);
717
- const models: ModelRegistry = new Map<string, LanguageModel>([
717
+ const models: IModelRegistry = new Map<string, LanguageModel>([
718
718
  ["provider/model", model],
719
- ]) as unknown as ModelRegistry;
719
+ ]) as unknown as IModelRegistry;
720
720
 
721
721
  storage.bind({ agents, models });
722
722
  const store = storage.threads;
@@ -827,10 +827,10 @@ describe.sequential("PGStorage integration", () => {
827
827
  model,
828
828
  });
829
829
 
830
- const agents: AgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
831
- const models: ModelRegistry = new Map<string, LanguageModel>([
830
+ const agents: IAgentRegistry = new Map<string, Agent>([["agent-1", agent]]);
831
+ const models: IModelRegistry = new Map<string, LanguageModel>([
832
832
  ["provider/model", model],
833
- ]) as unknown as ModelRegistry;
833
+ ]) as unknown as IModelRegistry;
834
834
 
835
835
  storage.bind({ agents, models });
836
836
  const store = storage.threads;
package/src/storage.ts CHANGED
@@ -3,8 +3,8 @@ import type { Pool, PoolClient } from "pg";
3
3
 
4
4
  /* workspace */
5
5
  import type {
6
- AgentRegistry,
7
- ModelRegistry,
6
+ IAgentRegistry,
7
+ IModelRegistry,
8
8
  KernlStorage,
9
9
  Transaction,
10
10
  } from "kernl";
@@ -134,7 +134,7 @@ export class PGStorage implements KernlStorage {
134
134
  /**
135
135
  * Bind runtime registries to storage.
136
136
  */
137
- bind(registries: { agents: AgentRegistry; models: ModelRegistry }): void {
137
+ bind(registries: { agents: IAgentRegistry; models: IModelRegistry }): void {
138
138
  this.threads.bind(registries);
139
139
  }
140
140
 
@@ -4,8 +4,8 @@ import type { Pool, PoolClient } from "pg";
4
4
  import {
5
5
  Agent,
6
6
  Context,
7
- type AgentRegistry,
8
- type ModelRegistry,
7
+ type IAgentRegistry,
8
+ type IModelRegistry,
9
9
  type ThreadStore,
10
10
  type NewThread,
11
11
  type ThreadUpdate,
@@ -32,7 +32,7 @@ import { SQL_WHERE, SQL_ORDER, SQL_UPDATE } from "./sql";
32
32
  */
33
33
  export class PGThreadStore implements ThreadStore {
34
34
  private db: Pool | PoolClient;
35
- private registries: { agents: AgentRegistry; models: ModelRegistry } | null;
35
+ private registries: { agents: IAgentRegistry; models: IModelRegistry } | null;
36
36
  private ensureInit: () => Promise<void>;
37
37
 
38
38
  constructor(db: Pool | PoolClient, ensureInit: () => Promise<void>) {
@@ -46,7 +46,7 @@ export class PGThreadStore implements ThreadStore {
46
46
  *
47
47
  * (TODO): move into abstract ThreadStore class
48
48
  */
49
- bind(registries: { agents: AgentRegistry; models: ModelRegistry }): void {
49
+ bind(registries: { agents: IAgentRegistry; models: IModelRegistry }): void {
50
50
  this.registries = registries;
51
51
  }
52
52