agentforge-memory-postgres 0.2.4__tar.gz → 0.3.1__tar.gz

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.
Files changed (20) hide show
  1. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/.gitignore +10 -0
  2. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/PKG-INFO +2 -2
  3. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/pyproject.toml +2 -2
  4. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/__init__.py +9 -1
  5. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/memory.py +15 -0
  6. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/LICENSE +0 -0
  7. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/README.md +0 -0
  8. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/_migrator.py +0 -0
  9. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/_runner.py +0 -0
  10. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/migrations/0000_migrations_table.sql +0 -0
  11. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/migrations/0001_initial.sql +0 -0
  12. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/migrations/vector/0000_migrations_table.sql +0 -0
  13. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/migrations/vector/0100_vectors.sql +0 -0
  14. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/py.typed +0 -0
  15. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/src/agentforge_memory_postgres/vector.py +0 -0
  16. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/tests/integration/test_postgres_live.py +0 -0
  17. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/tests/unit/conftest.py +0 -0
  18. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/tests/unit/test_postgres_memory.py +0 -0
  19. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/tests/unit/test_postgres_migrator.py +0 -0
  20. {agentforge_memory_postgres-0.2.4 → agentforge_memory_postgres-0.3.1}/tests/unit/test_postgres_vector.py +0 -0
@@ -47,3 +47,13 @@ Thumbs.db
47
47
  # Project-local
48
48
  *.local
49
49
  .agentforge-state/.session-cache
50
+
51
+ # AI-assistant working state — local session tracking, not part of
52
+ # the published project. The process docs under .claude/ (standards,
53
+ # checklists, CLAUDE.md) are intentionally kept tracked; only the
54
+ # churny per-session state files are ignored.
55
+ .claude/state/
56
+
57
+ # Launch / go-to-market drafts — local-only marketing material,
58
+ # never published to the repo.
59
+ launch/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentforge-memory-postgres
3
- Version: 0.2.4
3
+ Version: 0.3.1
4
4
  Summary: Postgres + pgvector-backed MemoryStore and VectorStore for AgentForge
5
5
  Project-URL: Homepage, https://github.com/Scaffoldic/agentforge-py
6
6
  Project-URL: Repository, https://github.com/Scaffoldic/agentforge-py
@@ -20,7 +20,7 @@ Classifier: Topic :: Database
20
20
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
21
  Classifier: Typing :: Typed
22
22
  Requires-Python: >=3.13
23
- Requires-Dist: agentforge-core~=0.2.4
23
+ Requires-Dist: agentforge-core~=0.3.1
24
24
  Requires-Dist: asyncpg>=0.30
25
25
  Requires-Dist: pgvector>=0.3
26
26
  Description-Content-Type: text/markdown
@@ -13,7 +13,7 @@
13
13
 
14
14
  [project]
15
15
  name = "agentforge-memory-postgres"
16
- version = "0.2.4"
16
+ version = "0.3.1"
17
17
  description = "Postgres + pgvector-backed MemoryStore and VectorStore for AgentForge"
18
18
  readme = "README.md"
19
19
  requires-python = ">=3.13"
@@ -35,7 +35,7 @@ classifiers = [
35
35
  ]
36
36
 
37
37
  dependencies = [
38
- "agentforge-core ~= 0.2.4",
38
+ "agentforge-core ~= 0.3.1",
39
39
  "asyncpg>=0.30",
40
40
  "pgvector>=0.3",
41
41
  ]
@@ -11,9 +11,17 @@ sync `psycopg`, in agent code paths.
11
11
 
12
12
  from __future__ import annotations
13
13
 
14
+ # Version is sourced from the installed distribution metadata so it can
15
+ # never drift from pyproject.toml (bug-024).
16
+ from importlib.metadata import PackageNotFoundError as _PkgNotFound
17
+ from importlib.metadata import version as _dist_version
18
+
14
19
  from agentforge_memory_postgres.memory import PostgresMemoryStore
15
20
  from agentforge_memory_postgres.vector import PostgresVectorStore
16
21
 
17
- __version__ = "0.2.3"
22
+ try:
23
+ __version__ = _dist_version("agentforge-memory-postgres")
24
+ except _PkgNotFound: # pragma: no cover - source tree without installed metadata
25
+ __version__ = "0.0.0+unknown"
18
26
 
19
27
  __all__ = ["PostgresMemoryStore", "PostgresVectorStore", "__version__"]
@@ -76,6 +76,21 @@ class PostgresMemoryStore(MemoryStore):
76
76
  pool = await asyncpg.create_pool(dsn=dsn, min_size=min_size, max_size=max_size)
77
77
  return cls(runner=_AsyncpgPoolRunner(pool))
78
78
 
79
+ @classmethod
80
+ async def from_config(
81
+ cls,
82
+ *,
83
+ dsn: str,
84
+ min_size: int = 1,
85
+ max_size: int = 10,
86
+ ) -> Self: # pragma: no cover — exercised only with `-m live`.
87
+ """Build from a `modules.memory.config` block (bug-022).
88
+
89
+ Async config-driven factory matching the framework convention;
90
+ delegates to `from_dsn`.
91
+ """
92
+ return await cls.from_dsn(dsn, min_size=min_size, max_size=max_size)
93
+
79
94
  async def __aenter__(self) -> Self:
80
95
  return self
81
96