memgres 0.7.2__tar.gz → 0.8.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 (104) hide show
  1. {memgres-0.7.2 → memgres-0.8.0}/PKG-INFO +7 -6
  2. {memgres-0.7.2 → memgres-0.8.0}/README.md +6 -5
  3. {memgres-0.7.2 → memgres-0.8.0}/memgres/_version.py +1 -1
  4. {memgres-0.7.2 → memgres-0.8.0}/memgres/mcp_server.py +143 -147
  5. memgres-0.8.0/memgres/migrations/0009_create_namespace_right.sql +37 -0
  6. {memgres-0.7.2 → memgres-0.8.0}/memgres.egg-info/PKG-INFO +7 -6
  7. {memgres-0.7.2 → memgres-0.8.0}/tests/test_mcp_admin_tools.py +109 -83
  8. {memgres-0.7.2 → memgres-0.8.0}/tests/test_mcp_tool_visibility_http.py +20 -3
  9. memgres-0.7.2/memgres/migrations/0009_create_namespace_right.sql +0 -23
  10. {memgres-0.7.2 → memgres-0.8.0}/LICENSE +0 -0
  11. {memgres-0.7.2 → memgres-0.8.0}/memgres/__init__.py +0 -0
  12. {memgres-0.7.2 → memgres-0.8.0}/memgres/admin.py +0 -0
  13. {memgres-0.7.2 → memgres-0.8.0}/memgres/admin_cli.py +0 -0
  14. {memgres-0.7.2 → memgres-0.8.0}/memgres/blame.py +0 -0
  15. {memgres-0.7.2 → memgres-0.8.0}/memgres/bootstrap.py +0 -0
  16. {memgres-0.7.2 → memgres-0.8.0}/memgres/config.py +0 -0
  17. {memgres-0.7.2 → memgres-0.8.0}/memgres/delimiters.py +0 -0
  18. {memgres-0.7.2 → memgres-0.8.0}/memgres/diffing.py +0 -0
  19. {memgres-0.7.2 → memgres-0.8.0}/memgres/embed_worker.py +0 -0
  20. {memgres-0.7.2 → memgres-0.8.0}/memgres/embeddings.py +0 -0
  21. {memgres-0.7.2 → memgres-0.8.0}/memgres/healthcheck.py +0 -0
  22. {memgres-0.7.2 → memgres-0.8.0}/memgres/identity.py +0 -0
  23. {memgres-0.7.2 → memgres-0.8.0}/memgres/indexing.py +0 -0
  24. {memgres-0.7.2 → memgres-0.8.0}/memgres/info.py +0 -0
  25. {memgres-0.7.2 → memgres-0.8.0}/memgres/lines.py +0 -0
  26. {memgres-0.7.2 → memgres-0.8.0}/memgres/links.py +0 -0
  27. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0001_core.sql +0 -0
  28. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0002_identity.sql +0 -0
  29. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0003_history_author.sql +0 -0
  30. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0004_title.sql +0 -0
  31. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0005_chunk_index.sql +0 -0
  32. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0006_reader_floor.sql +0 -0
  33. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0007_embed_retry.sql +0 -0
  34. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0008_service_roles.sql +0 -0
  35. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0010_namespace_alias.sql +0 -0
  36. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0011_drop_default_namespace.sql +0 -0
  37. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0012_user_profile.sql +0 -0
  38. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0013_hash_version.sql +0 -0
  39. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0014_access_request_no_fk.sql +0 -0
  40. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0015_normalize_tags.sql +0 -0
  41. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0016_valid_at.sql +0 -0
  42. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0017_memory_link.sql +0 -0
  43. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0018_links_built.sql +0 -0
  44. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0019_memory_usage.sql +0 -0
  45. {memgres-0.7.2 → memgres-0.8.0}/memgres/migrations/0020_memory_usage_no_fk.sql +0 -0
  46. {memgres-0.7.2 → memgres-0.8.0}/memgres/periodic.py +0 -0
  47. {memgres-0.7.2 → memgres-0.8.0}/memgres/reembed.py +0 -0
  48. {memgres-0.7.2 → memgres-0.8.0}/memgres/relink.py +0 -0
  49. {memgres-0.7.2 → memgres-0.8.0}/memgres/schema.py +0 -0
  50. {memgres-0.7.2 → memgres-0.8.0}/memgres/search.py +0 -0
  51. {memgres-0.7.2 → memgres-0.8.0}/memgres/segments.py +0 -0
  52. {memgres-0.7.2 → memgres-0.8.0}/memgres/server.py +0 -0
  53. {memgres-0.7.2 → memgres-0.8.0}/memgres/store.py +0 -0
  54. {memgres-0.7.2 → memgres-0.8.0}/memgres/tags.py +0 -0
  55. {memgres-0.7.2 → memgres-0.8.0}/memgres/vector/__init__.py +0 -0
  56. {memgres-0.7.2 → memgres-0.8.0}/memgres/vector/base.py +0 -0
  57. {memgres-0.7.2 → memgres-0.8.0}/memgres/vector/pgvector.py +0 -0
  58. {memgres-0.7.2 → memgres-0.8.0}/memgres/vector/qdrant.py +0 -0
  59. {memgres-0.7.2 → memgres-0.8.0}/memgres/worker.py +0 -0
  60. {memgres-0.7.2 → memgres-0.8.0}/memgres.egg-info/SOURCES.txt +0 -0
  61. {memgres-0.7.2 → memgres-0.8.0}/memgres.egg-info/dependency_links.txt +0 -0
  62. {memgres-0.7.2 → memgres-0.8.0}/memgres.egg-info/entry_points.txt +0 -0
  63. {memgres-0.7.2 → memgres-0.8.0}/memgres.egg-info/requires.txt +0 -0
  64. {memgres-0.7.2 → memgres-0.8.0}/memgres.egg-info/top_level.txt +0 -0
  65. {memgres-0.7.2 → memgres-0.8.0}/pyproject.toml +0 -0
  66. {memgres-0.7.2 → memgres-0.8.0}/setup.cfg +0 -0
  67. {memgres-0.7.2 → memgres-0.8.0}/tests/test_blame_integration.py +0 -0
  68. {memgres-0.7.2 → memgres-0.8.0}/tests/test_chunk_index.py +0 -0
  69. {memgres-0.7.2 → memgres-0.8.0}/tests/test_claim_and_reembed.py +0 -0
  70. {memgres-0.7.2 → memgres-0.8.0}/tests/test_config.py +0 -0
  71. {memgres-0.7.2 → memgres-0.8.0}/tests/test_diffing.py +0 -0
  72. {memgres-0.7.2 → memgres-0.8.0}/tests/test_embed_worker.py +0 -0
  73. {memgres-0.7.2 → memgres-0.8.0}/tests/test_embeddings.py +0 -0
  74. {memgres-0.7.2 → memgres-0.8.0}/tests/test_healthcheck.py +0 -0
  75. {memgres-0.7.2 → memgres-0.8.0}/tests/test_identity_integration.py +0 -0
  76. {memgres-0.7.2 → memgres-0.8.0}/tests/test_lexical_match.py +0 -0
  77. {memgres-0.7.2 → memgres-0.8.0}/tests/test_limits.py +0 -0
  78. {memgres-0.7.2 → memgres-0.8.0}/tests/test_links.py +0 -0
  79. {memgres-0.7.2 → memgres-0.8.0}/tests/test_list.py +0 -0
  80. {memgres-0.7.2 → memgres-0.8.0}/tests/test_mcp_http_transport.py +0 -0
  81. {memgres-0.7.2 → memgres-0.8.0}/tests/test_mcp_instructions.py +0 -0
  82. {memgres-0.7.2 → memgres-0.8.0}/tests/test_mcp_recall_schema.py +0 -0
  83. {memgres-0.7.2 → memgres-0.8.0}/tests/test_mcp_tool_visibility.py +0 -0
  84. {memgres-0.7.2 → memgres-0.8.0}/tests/test_migration_upgrade.py +0 -0
  85. {memgres-0.7.2 → memgres-0.8.0}/tests/test_multi_space_search.py +0 -0
  86. {memgres-0.7.2 → memgres-0.8.0}/tests/test_path_addressing.py +0 -0
  87. {memgres-0.7.2 → memgres-0.8.0}/tests/test_qdrant_ca.py +0 -0
  88. {memgres-0.7.2 → memgres-0.8.0}/tests/test_qdrant_integration.py +0 -0
  89. {memgres-0.7.2 → memgres-0.8.0}/tests/test_replace_build.py +0 -0
  90. {memgres-0.7.2 → memgres-0.8.0}/tests/test_require_title.py +0 -0
  91. {memgres-0.7.2 → memgres-0.8.0}/tests/test_retention.py +0 -0
  92. {memgres-0.7.2 → memgres-0.8.0}/tests/test_roles_bootstrap.py +0 -0
  93. {memgres-0.7.2 → memgres-0.8.0}/tests/test_search_integration.py +0 -0
  94. {memgres-0.7.2 → memgres-0.8.0}/tests/test_security_integration.py +0 -0
  95. {memgres-0.7.2 → memgres-0.8.0}/tests/test_segments.py +0 -0
  96. {memgres-0.7.2 → memgres-0.8.0}/tests/test_segments_store.py +0 -0
  97. {memgres-0.7.2 → memgres-0.8.0}/tests/test_server_info.py +0 -0
  98. {memgres-0.7.2 → memgres-0.8.0}/tests/test_server_integration.py +0 -0
  99. {memgres-0.7.2 → memgres-0.8.0}/tests/test_snippets.py +0 -0
  100. {memgres-0.7.2 → memgres-0.8.0}/tests/test_store_integration.py +0 -0
  101. {memgres-0.7.2 → memgres-0.8.0}/tests/test_tags.py +0 -0
  102. {memgres-0.7.2 → memgres-0.8.0}/tests/test_usage.py +0 -0
  103. {memgres-0.7.2 → memgres-0.8.0}/tests/test_valid_at.py +0 -0
  104. {memgres-0.7.2 → memgres-0.8.0}/tests/test_write_ergonomics.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: memgres
3
- Version: 0.7.2
3
+ Version: 0.8.0
4
4
  Summary: Drop-in memory for AI agents: one Postgres, lexical + semantic recall, diff-versioned history, GDPR-erasable.
5
5
  Author: mozgsml
6
6
  License-Expression: MIT
@@ -351,11 +351,12 @@ secret and can't switch user):
351
351
  "headers": { "Authorization": "Bearer mgk_…" } } } }
352
352
  ```
353
353
 
354
- A *namespace-scoped* token also locks the agent to one space. Only a genuinely
355
- multi-tenant endpoint (open/managed, **no** pinned token) exposes a `token` tool
356
- argument for the model to supply force it either way with
357
- `MEMGRES_MCP_TOKEN_ARG=on|off`. Single mode needs no token. Full model in
358
- [docs/TENANCY.md](docs/TENANCY.md).
354
+ A *namespace-scoped* token also locks the agent to one space. **No tool takes a
355
+ `token` argument**: a deployment names its caller in configuration — an
356
+ `Authorization` header on http, `MEMGRES_TOKEN` in the env of a stdio server's
357
+ client entry and both transports can carry one, so an argument could only ever
358
+ name an identity the deployment did not choose. Single mode needs no token at
359
+ all. Full model in [docs/TENANCY.md](docs/TENANCY.md).
359
360
 
360
361
  **B. From your own agent code** — your loop calls the HTTP API or the `Store`
361
362
  library after the model produces text (see the examples above). Use this when you
@@ -315,11 +315,12 @@ secret and can't switch user):
315
315
  "headers": { "Authorization": "Bearer mgk_…" } } } }
316
316
  ```
317
317
 
318
- A *namespace-scoped* token also locks the agent to one space. Only a genuinely
319
- multi-tenant endpoint (open/managed, **no** pinned token) exposes a `token` tool
320
- argument for the model to supply force it either way with
321
- `MEMGRES_MCP_TOKEN_ARG=on|off`. Single mode needs no token. Full model in
322
- [docs/TENANCY.md](docs/TENANCY.md).
318
+ A *namespace-scoped* token also locks the agent to one space. **No tool takes a
319
+ `token` argument**: a deployment names its caller in configuration — an
320
+ `Authorization` header on http, `MEMGRES_TOKEN` in the env of a stdio server's
321
+ client entry and both transports can carry one, so an argument could only ever
322
+ name an identity the deployment did not choose. Single mode needs no token at
323
+ all. Full model in [docs/TENANCY.md](docs/TENANCY.md).
323
324
 
324
325
  **B. From your own agent code** — your loop calls the HTTP API or the `Store`
325
326
  library after the model produces text (see the examples above). Use this when you
@@ -8,4 +8,4 @@ here at release; nowhere else carries the number.
8
8
  PEP 440: a ``.devN`` suffix marks an unreleased build ahead of the last tag.
9
9
  """
10
10
 
11
- __version__ = "0.7.2"
11
+ __version__ = "0.8.0"