agent-memory-sdk 0.1.2__tar.gz → 0.1.4__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 (46) hide show
  1. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/.github/workflows/ci.yml +17 -49
  2. agent_memory_sdk-0.1.4/.github/workflows/release.yml +53 -0
  3. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/PKG-INFO +85 -4
  4. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/README.md +84 -3
  5. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/_version.py +2 -2
  6. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/pyproject.toml +1 -0
  7. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/.gitignore +0 -0
  8. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/.pre-commit-config.yaml +0 -0
  9. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/CHANGELOG.md +0 -0
  10. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/Dockerfile +0 -0
  11. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/LICENSE +0 -0
  12. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/Makefile +0 -0
  13. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/RUNNING_LOCALLY.md +0 -0
  14. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/__init__.py +0 -0
  15. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/benchmark.py +0 -0
  16. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/cli.py +0 -0
  17. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/decision.py +0 -0
  18. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/eval.py +0 -0
  19. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/explain.py +0 -0
  20. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/manager.py +0 -0
  21. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/models.py +0 -0
  22. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/policy.py +0 -0
  23. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/retriever.py +0 -0
  24. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/sqlite_store.py +0 -0
  25. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/store.py +0 -0
  26. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/agent_memory/ttl.py +0 -0
  27. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/benchmarks/README.md +0 -0
  28. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/benchmarks/datasets/coding_agent.json +0 -0
  29. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/benchmarks/datasets/customer_support.json +0 -0
  30. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/benchmarks/datasets/research_agent.json +0 -0
  31. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docker-compose.yml +0 -0
  32. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/README.md +0 -0
  33. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/architecture.md +0 -0
  34. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/benchmarks.md +0 -0
  35. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/examples.md +0 -0
  36. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/faq.md +0 -0
  37. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/getting-started.md +0 -0
  38. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/memory-model.md +0 -0
  39. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/docs/policies.md +0 -0
  40. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/examples/basic_usage.py +0 -0
  41. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/mcp_server/__init__.py +0 -0
  42. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/mcp_server/server.py +0 -0
  43. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/tests/__init__.py +0 -0
  44. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/tests/test_backends.py +0 -0
  45. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/tests/test_memory.py +0 -0
  46. {agent_memory_sdk-0.1.2 → agent_memory_sdk-0.1.4}/tests/test_v03.py +0 -0
@@ -3,7 +3,6 @@ name: CI
3
3
  on:
4
4
  push:
5
5
  branches: [main, develop]
6
- tags: ['v*']
7
6
  pull_request:
8
7
  branches: [main, develop]
9
8
 
@@ -15,7 +14,11 @@ jobs:
15
14
  python-version: ["3.10", "3.11", "3.12", "3.13"]
16
15
 
17
16
  steps:
18
- - uses: actions/checkout@v4.2.2
17
+ - name: Checkout
18
+ run: |
19
+ git clone --depth 1 ${{ github.server_url }}/${{ github.repository }} .
20
+ git fetch origin ${{ github.sha }}
21
+ git checkout ${{ github.sha }}
19
22
 
20
23
  - name: Set up Python ${{ matrix.python-version }}
21
24
  uses: actions/setup-python@v5.5.0
@@ -45,10 +48,14 @@ jobs:
45
48
  benchmark:
46
49
  runs-on: ubuntu-latest
47
50
  needs: test
48
- if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
51
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
49
52
 
50
53
  steps:
51
- - uses: actions/checkout@v4.2.2
54
+ - name: Checkout
55
+ run: |
56
+ git clone --depth 1 ${{ github.server_url }}/${{ github.repository }} .
57
+ git fetch origin ${{ github.sha }}
58
+ git checkout ${{ github.sha }}
52
59
 
53
60
  - name: Set up Python
54
61
  uses: actions/setup-python@v5.5.0
@@ -74,9 +81,11 @@ jobs:
74
81
  needs: test
75
82
 
76
83
  steps:
77
- - uses: actions/checkout@v4.2.2
78
- with:
79
- fetch-depth: 0 # Need full history for version detection
84
+ - name: Checkout
85
+ run: |
86
+ git clone --depth 1 ${{ github.server_url }}/${{ github.repository }} .
87
+ git fetch origin ${{ github.sha }}
88
+ git checkout ${{ github.sha }}
80
89
 
81
90
  - name: Build Docker image
82
91
  run: |
@@ -108,45 +117,4 @@ jobs:
108
117
  - name: Test Docker image with ChromaDB backend
109
118
  run: |
110
119
  docker run --rm -v agent_memory_chromadb:/home/appuser/.agent_memory agent-memory:latest remember "test" "test response" --backend chromadb
111
- docker run --rm -v agent_memory_chromadb:/home/appuser/.agent_memory agent-memory:latest resolve "test" --backend chromadb
112
-
113
- publish:
114
- runs-on: ubuntu-latest
115
- needs: [test, benchmark]
116
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
117
- permissions:
118
- contents: write
119
- packages: write
120
- id-token: write
121
-
122
- steps:
123
- - uses: actions/checkout@v4.2.2
124
-
125
- - name: Set up Python
126
- uses: actions/setup-python@v5.5.0
127
- with:
128
- python-version: "3.11"
129
-
130
- - name: Install build dependencies
131
- run: |
132
- python -m pip install --upgrade pip build twine
133
-
134
- - name: Build package
135
- run: |
136
- # For tag releases, use clean version without local identifier
137
- VERSION=${GITHUB_REF_NAME#v}
138
- SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION} python -m build
139
-
140
- - name: Publish to PyPI
141
- env:
142
- TWINE_USERNAME: __token__
143
- TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
144
- run: |
145
- twine upload dist/*
146
-
147
- - name: Create GitHub Release
148
- uses: softprops/action-gh-release@v2
149
- with:
150
- generate_release_notes: true
151
- env:
152
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120
+ docker run --rm -v agent_memory_chromadb:/home/appuser/.agent_memory agent-memory:latest resolve "test" --backend chromadb
@@ -0,0 +1,53 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ env:
9
+ PYPI_PACKAGE_NAME: agent-memory-sdk
10
+
11
+ jobs:
12
+ build-and-publish:
13
+ name: Build and Publish to PyPI
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ steps:
20
+ - name: Checkout
21
+ run: |
22
+ git clone --depth 1 ${{ github.server_url }}/${{ github.repository }} .
23
+ git fetch origin ${{ github.sha }}
24
+ git checkout ${{ github.sha }}
25
+
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v5.5.0
28
+ with:
29
+ python-version: "3.11"
30
+
31
+ - name: Install build dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip build twine
34
+
35
+ - name: Build package
36
+ run: |
37
+ # For tag releases, use clean version without local identifier
38
+ VERSION=${GITHUB_REF_NAME#v}
39
+ SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION} python -m build
40
+
41
+ - name: Publish to PyPI
42
+ env:
43
+ TWINE_USERNAME: __token__
44
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
45
+ run: |
46
+ twine upload dist/*
47
+
48
+ - name: Create GitHub Release
49
+ uses: softprops/action-gh-release@v2
50
+ with:
51
+ generate_release_notes: true
52
+ env:
53
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-memory-sdk
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Persistent semantic memory for AI agents with replay, restore, verify, and ignore decisions
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
22
22
  [![CI](https://github.com/TheProdSDE/agent-memory/actions/workflows/ci.yml/badge.svg)](https://github.com/TheProdSDE/agent-memory/actions)
23
23
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
24
24
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
25
- [![PyPI version](https://img.shields.io/pypi/v/agent-memory.svg)](https://pypi.org/project/agent-memory/)
25
+ [![PyPI version](https://img.shields.io/pypi/v/agent-memory-sdk.svg)](https://pypi.org/project/agent-memory-sdk/)
26
26
 
27
27
  **Persistent semantic memory for AI agents with intelligent decision-making.**
28
28
 
@@ -213,7 +213,7 @@ print(decision.explain()) # Detailed score breakdown
213
213
 
214
214
  ```bash
215
215
  # From PyPI
216
- pip install agent-memory
216
+ pip install agent-memory-sdk
217
217
 
218
218
  # From source (development)
219
219
  git clone https://github.com/TheProdSDE/agent-memory.git
@@ -422,7 +422,88 @@ agent-memory eval --datasets ./benchmarks/datasets
422
422
 
423
423
  ---
424
424
 
425
- ## 📈 Current Status (v0.1.0-alpha)
425
+ ## Release Process
426
+
427
+ ### How Releases Work
428
+
429
+ The project uses **automated CI/CD** via GitHub Actions. Releases are triggered by **pushing a version tag**:
430
+
431
+ ```bash
432
+ # Create and push a version tag (triggers full release pipeline)
433
+ git tag v0.1.3
434
+ git push origin v0.1.3
435
+ ```
436
+
437
+ ### What Happens on Tag Push
438
+
439
+ When you push a tag matching `v*` (e.g., `v0.1.3`, `v1.0.0`, `v2.0.0-beta.1`):
440
+
441
+ | Step | Description |
442
+ |------|-------------|
443
+ | 1️⃣ **Test** | Runs tests on Python 3.10, 3.11, 3.12, 3.13 |
444
+ | 2️⃣ **Benchmark** | Runs performance benchmarks |
445
+ | 3️⃣ **Docker** | Builds and tests multi-stage Docker image |
446
+ | 4️⃣ **Publish** | Builds package → Publishes to PyPI → Creates GitHub Release |
447
+
448
+ ### Release Artifacts Created
449
+
450
+ | Artifact | Location |
451
+ |----------|----------|
452
+ | **PyPI Package** | `pip install agent-memory-sdk==0.1.3` |
453
+ | **GitHub Release** | https://github.com/theprodsde/agent-memory/releases/tag/v0.1.3 |
454
+ | **Docker Image** | `ghcr.io/theprodsde/agent-memory:v0.1.3` (if configured) |
455
+ | **Source Archives** | Auto-attached to GitHub Release |
456
+
457
+ ### Version Format
458
+
459
+ Use **Semantic Versioning** with optional pre-release suffixes:
460
+ - `v1.0.0` - Stable release
461
+ - `v1.0.1` - Patch release
462
+ - `v1.1.0` - Minor release
463
+ - `v2.0.0` - Major release
464
+ - `v1.0.0-alpha.1` - Alpha pre-release
465
+ - `v1.0.0-beta.2` - Beta pre-release
466
+ - `v1.0.0-rc.1` - Release candidate
467
+
468
+ ### Prerequisites
469
+
470
+ 1. **PyPI Token** - Stored as `PYPI_API_TOKEN` in GitHub repository secrets
471
+ 2. **GitHub Token** - Automatically provided as `GITHUB_TOKEN`
472
+ 3. **Branch Protection** - Recommended: require PR reviews before merging to main
473
+
474
+ ### Manual Release (if needed)
475
+
476
+ ```bash
477
+ # 1. Ensure you're on main with latest changes
478
+ git checkout main
479
+ git pull origin main
480
+
481
+ # 2. Create version tag
482
+ git tag v0.1.3
483
+
484
+ # 3. Push tag (triggers CI/CD)
485
+ git push origin v0.1.3
486
+
487
+ # 4. Monitor workflow
488
+ # https://github.com/theprodsde/agent-memory/actions
489
+ ```
490
+
491
+ ### Rollback / Delete Release
492
+
493
+ ```bash
494
+ # Delete local tag
495
+ git tag -d v0.1.3
496
+
497
+ # Delete remote tag (also deletes GitHub Release)
498
+ git push origin --delete v0.1.3
499
+
500
+ # Note: PyPI packages CANNOT be deleted, only yanked
501
+ # twine yank agent-memory 0.1.3
502
+ ```
503
+
504
+ ---
505
+
506
+ ## 📈 Current Status (v0.1.2)
426
507
 
427
508
  ### ✅ Implemented
428
509
  - Hybrid retrieval (BM25 + Vector + RRF fusion)
@@ -3,7 +3,7 @@
3
3
  [![CI](https://github.com/TheProdSDE/agent-memory/actions/workflows/ci.yml/badge.svg)](https://github.com/TheProdSDE/agent-memory/actions)
4
4
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
6
- [![PyPI version](https://img.shields.io/pypi/v/agent-memory.svg)](https://pypi.org/project/agent-memory/)
6
+ [![PyPI version](https://img.shields.io/pypi/v/agent-memory-sdk.svg)](https://pypi.org/project/agent-memory-sdk/)
7
7
 
8
8
  **Persistent semantic memory for AI agents with intelligent decision-making.**
9
9
 
@@ -194,7 +194,7 @@ print(decision.explain()) # Detailed score breakdown
194
194
 
195
195
  ```bash
196
196
  # From PyPI
197
- pip install agent-memory
197
+ pip install agent-memory-sdk
198
198
 
199
199
  # From source (development)
200
200
  git clone https://github.com/TheProdSDE/agent-memory.git
@@ -403,7 +403,88 @@ agent-memory eval --datasets ./benchmarks/datasets
403
403
 
404
404
  ---
405
405
 
406
- ## 📈 Current Status (v0.1.0-alpha)
406
+ ## Release Process
407
+
408
+ ### How Releases Work
409
+
410
+ The project uses **automated CI/CD** via GitHub Actions. Releases are triggered by **pushing a version tag**:
411
+
412
+ ```bash
413
+ # Create and push a version tag (triggers full release pipeline)
414
+ git tag v0.1.3
415
+ git push origin v0.1.3
416
+ ```
417
+
418
+ ### What Happens on Tag Push
419
+
420
+ When you push a tag matching `v*` (e.g., `v0.1.3`, `v1.0.0`, `v2.0.0-beta.1`):
421
+
422
+ | Step | Description |
423
+ |------|-------------|
424
+ | 1️⃣ **Test** | Runs tests on Python 3.10, 3.11, 3.12, 3.13 |
425
+ | 2️⃣ **Benchmark** | Runs performance benchmarks |
426
+ | 3️⃣ **Docker** | Builds and tests multi-stage Docker image |
427
+ | 4️⃣ **Publish** | Builds package → Publishes to PyPI → Creates GitHub Release |
428
+
429
+ ### Release Artifacts Created
430
+
431
+ | Artifact | Location |
432
+ |----------|----------|
433
+ | **PyPI Package** | `pip install agent-memory-sdk==0.1.3` |
434
+ | **GitHub Release** | https://github.com/theprodsde/agent-memory/releases/tag/v0.1.3 |
435
+ | **Docker Image** | `ghcr.io/theprodsde/agent-memory:v0.1.3` (if configured) |
436
+ | **Source Archives** | Auto-attached to GitHub Release |
437
+
438
+ ### Version Format
439
+
440
+ Use **Semantic Versioning** with optional pre-release suffixes:
441
+ - `v1.0.0` - Stable release
442
+ - `v1.0.1` - Patch release
443
+ - `v1.1.0` - Minor release
444
+ - `v2.0.0` - Major release
445
+ - `v1.0.0-alpha.1` - Alpha pre-release
446
+ - `v1.0.0-beta.2` - Beta pre-release
447
+ - `v1.0.0-rc.1` - Release candidate
448
+
449
+ ### Prerequisites
450
+
451
+ 1. **PyPI Token** - Stored as `PYPI_API_TOKEN` in GitHub repository secrets
452
+ 2. **GitHub Token** - Automatically provided as `GITHUB_TOKEN`
453
+ 3. **Branch Protection** - Recommended: require PR reviews before merging to main
454
+
455
+ ### Manual Release (if needed)
456
+
457
+ ```bash
458
+ # 1. Ensure you're on main with latest changes
459
+ git checkout main
460
+ git pull origin main
461
+
462
+ # 2. Create version tag
463
+ git tag v0.1.3
464
+
465
+ # 3. Push tag (triggers CI/CD)
466
+ git push origin v0.1.3
467
+
468
+ # 4. Monitor workflow
469
+ # https://github.com/theprodsde/agent-memory/actions
470
+ ```
471
+
472
+ ### Rollback / Delete Release
473
+
474
+ ```bash
475
+ # Delete local tag
476
+ git tag -d v0.1.3
477
+
478
+ # Delete remote tag (also deletes GitHub Release)
479
+ git push origin --delete v0.1.3
480
+
481
+ # Note: PyPI packages CANNOT be deleted, only yanked
482
+ # twine yank agent-memory 0.1.3
483
+ ```
484
+
485
+ ---
486
+
487
+ ## 📈 Current Status (v0.1.2)
407
488
 
408
489
  ### ✅ Implemented
409
490
  - Hybrid retrieval (BM25 + Vector + RRF fusion)
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.1.2'
22
- __version_tuple__ = version_tuple = (0, 1, 2)
21
+ __version__ = version = '0.1.4'
22
+ __version_tuple__ = version_tuple = (0, 1, 4)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -34,6 +34,7 @@ packages = ["agent_memory", "mcp_server"]
34
34
 
35
35
  [tool.hatch.version]
36
36
  source = "vcs"
37
+ version-file = "agent_memory/_version.py"
37
38
 
38
39
  [tool.hatch.build.hooks.vcs]
39
40
  version-file = "agent_memory/_version.py"