memsmith 0.1.0__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 (37) hide show
  1. memsmith-0.1.0/.github/workflows/ci.yml +53 -0
  2. memsmith-0.1.0/.gitignore +12 -0
  3. memsmith-0.1.0/ARCHITECTURE.md +1153 -0
  4. memsmith-0.1.0/LICENSE +182 -0
  5. memsmith-0.1.0/PKG-INFO +479 -0
  6. memsmith-0.1.0/README.md +454 -0
  7. memsmith-0.1.0/examples/README.md +41 -0
  8. memsmith-0.1.0/examples/agent_memory/__init__.py +0 -0
  9. memsmith-0.1.0/examples/agent_memory/agent.py +224 -0
  10. memsmith-0.1.0/examples/agent_memory/hooks.py +77 -0
  11. memsmith-0.1.0/examples/agent_memory/main.py +442 -0
  12. memsmith-0.1.0/examples/agent_memory/models.py +29 -0
  13. memsmith-0.1.0/examples/agent_memory/reviewer.py +66 -0
  14. memsmith-0.1.0/examples/agent_memory/validators.py +55 -0
  15. memsmith-0.1.0/memsmith/__init__.py +56 -0
  16. memsmith-0.1.0/memsmith/_backend.py +62 -0
  17. memsmith-0.1.0/memsmith/_errors.py +49 -0
  18. memsmith-0.1.0/memsmith/_hashing.py +15 -0
  19. memsmith-0.1.0/memsmith/_hooks.py +36 -0
  20. memsmith-0.1.0/memsmith/_migrations.py +73 -0
  21. memsmith-0.1.0/memsmith/_sqlite.py +261 -0
  22. memsmith-0.1.0/memsmith/_store.py +604 -0
  23. memsmith-0.1.0/memsmith/_types.py +96 -0
  24. memsmith-0.1.0/memsmith/_validators.py +52 -0
  25. memsmith-0.1.0/memsmith.egg-info/PKG-INFO +479 -0
  26. memsmith-0.1.0/memsmith.egg-info/SOURCES.txt +35 -0
  27. memsmith-0.1.0/memsmith.egg-info/dependency_links.txt +1 -0
  28. memsmith-0.1.0/memsmith.egg-info/requires.txt +15 -0
  29. memsmith-0.1.0/memsmith.egg-info/scm_file_list.json +32 -0
  30. memsmith-0.1.0/memsmith.egg-info/scm_version.json +8 -0
  31. memsmith-0.1.0/memsmith.egg-info/top_level.txt +1 -0
  32. memsmith-0.1.0/memsmith.md +114 -0
  33. memsmith-0.1.0/pyproject.toml +37 -0
  34. memsmith-0.1.0/setup.cfg +4 -0
  35. memsmith-0.1.0/tests/test_chunk1.py +732 -0
  36. memsmith-0.1.0/tests/test_chunk2.py +670 -0
  37. memsmith-0.1.0/tests/test_chunk3.py +383 -0
@@ -0,0 +1,53 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ["v*"]
7
+ pull_request:
8
+ branches: [main]
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.11", "3.12", "3.13"]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install
25
+ run: pip install -e ".[sqlite,dev]"
26
+
27
+ - name: Run tests
28
+ run: python -m pytest tests/ -q
29
+
30
+ publish:
31
+ needs: test
32
+ if: startsWith(github.ref, 'refs/tags/v')
33
+ runs-on: ubuntu-latest
34
+ environment: pypi
35
+ permissions:
36
+ contents: read
37
+ id-token: write
38
+
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+
42
+ - uses: actions/setup-python@v5
43
+ with:
44
+ python-version: "3.12"
45
+
46
+ - name: Build
47
+ run: pip install build && python -m build
48
+
49
+ - name: Check
50
+ run: pip install twine && twine check dist/*
51
+
52
+ - name: Publish to PyPI
53
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.pyc
3
+ build/
4
+ dist/
5
+ .eggs/
6
+ *.egg-info/
7
+ .venv/
8
+ .idea/
9
+ .vscode/
10
+ .DS_Store
11
+ .claude/
12
+ PLAN-*