cortexdbai 0.11.0__tar.gz → 0.11.2__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 (106) hide show
  1. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/.gitignore +109 -101
  2. cortexdbai-0.11.2/LICENSE +202 -0
  3. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/PKG-INFO +85 -26
  4. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/README.md +74 -17
  5. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/__init__.py +43 -6
  6. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/ag2/agent.py +3 -1
  7. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/ag2/tools.py +2 -2
  8. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/agno/memory.py +1 -1
  9. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/agno/tools.py +1 -1
  10. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/autogen/agent.py +3 -1
  11. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/autogen/tools.py +1 -1
  12. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/beeai/memory.py +1 -1
  13. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/beeai/tools.py +1 -1
  14. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/camel/memory.py +2 -3
  15. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/camel/tools.py +8 -5
  16. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/controlflow/memory.py +6 -2
  17. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/crewai/memory.py +1 -1
  18. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/crewai/tools.py +1 -1
  19. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/dify/tool.py +1 -1
  20. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/dspy/memory.py +1 -1
  21. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/flowise/node.py +1 -1
  22. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/google_adk/tools.py +1 -1
  23. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/hermes/provider.py +6 -2
  24. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/instructor/memory.py +4 -2
  25. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/langchain/memory.py +4 -2
  26. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/langchain/tools.py +1 -1
  27. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/langgraph/memory.py +3 -1
  28. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/letta/storage.py +4 -1
  29. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/llamaindex/memory.py +1 -1
  30. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/nemo_guardrails/actions.py +4 -2
  31. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/nemo_guardrails/knowledge_base.py +3 -1
  32. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/openai_agents/tools.py +1 -1
  33. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/prefect/tasks.py +3 -1
  34. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/pydanticai/tools.py +1 -1
  35. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/smolagents/tools.py +3 -1
  36. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/temporal/activities.py +2 -0
  37. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/temporal/interceptor.py +1 -0
  38. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/v1/__init__.py +56 -1
  39. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/v1/client.py +3001 -2157
  40. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/v1/exceptions.py +21 -2
  41. cortexdbai-0.11.2/cortexdb/v1/source.py +554 -0
  42. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/pyproject.toml +12 -10
  43. cortexdbai-0.11.2/tests/test_admin_retention.py +506 -0
  44. cortexdbai-0.11.2/tests/test_answer_unavailable.py +181 -0
  45. cortexdbai-0.11.2/tests/test_code_namespace.py +217 -0
  46. cortexdbai-0.11.2/tests/test_integration_write_barriers.py +73 -0
  47. cortexdbai-0.11.2/tests/test_signup.py +114 -0
  48. cortexdbai-0.11.2/tests/test_source.py +342 -0
  49. cortexdbai-0.11.2/tests/test_unknown_method_guidance.py +99 -0
  50. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/tests/test_v093_surfaces.py +17 -0
  51. cortexdbai-0.11.0/tests/test_code_namespace.py +0 -104
  52. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/__init__.py +0 -0
  53. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/ag2/__init__.py +0 -0
  54. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/agno/__init__.py +0 -0
  55. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/autogen/__init__.py +0 -0
  56. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/beeai/__init__.py +0 -0
  57. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/camel/__init__.py +0 -0
  58. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/controlflow/__init__.py +0 -0
  59. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/crewai/__init__.py +0 -0
  60. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/deepinfra/__init__.py +0 -0
  61. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/deepinfra/config.py +0 -0
  62. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/deepinfra/embeddings.py +0 -0
  63. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/deepinfra/openai_compat.py +0 -0
  64. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/dify/__init__.py +0 -0
  65. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/dify/manifest.yaml +0 -0
  66. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/dspy/__init__.py +0 -0
  67. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/dspy/retriever.py +0 -0
  68. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/fireworks/__init__.py +0 -0
  69. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/fireworks/config.py +0 -0
  70. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/fireworks/embeddings.py +0 -0
  71. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/fireworks/openai_compat.py +0 -0
  72. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/flowise/__init__.py +0 -0
  73. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/google_adk/__init__.py +0 -0
  74. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/groq/__init__.py +0 -0
  75. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/groq/config.py +0 -0
  76. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/groq/embeddings.py +0 -0
  77. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/groq/openai_compat.py +0 -0
  78. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/hermes/__init__.py +0 -0
  79. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/instructor/__init__.py +0 -0
  80. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/langchain/__init__.py +0 -0
  81. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/langchain/retriever.py +0 -0
  82. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/langgraph/__init__.py +0 -0
  83. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/letta/__init__.py +0 -0
  84. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/llamaindex/__init__.py +0 -0
  85. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/nemo_guardrails/__init__.py +0 -0
  86. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/ollama/__init__.py +0 -0
  87. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/ollama/config.py +0 -0
  88. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/ollama/embeddings.py +0 -0
  89. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/openai_agents/__init__.py +0 -0
  90. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/prefect/__init__.py +0 -0
  91. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/prefect/blocks.py +0 -0
  92. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/pydanticai/__init__.py +0 -0
  93. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/pydanticai/dependencies.py +0 -0
  94. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/smolagents/__init__.py +0 -0
  95. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/temporal/__init__.py +0 -0
  96. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/together/__init__.py +0 -0
  97. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/together/config.py +0 -0
  98. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/together/embeddings.py +0 -0
  99. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/together/openai_compat.py +0 -0
  100. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/vllm/__init__.py +0 -0
  101. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/vllm/config.py +0 -0
  102. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/vllm/embeddings.py +0 -0
  103. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/integrations/vllm/openai_compat.py +0 -0
  104. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/cortexdb/py.typed +0 -0
  105. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/tests/__init__.py +0 -0
  106. {cortexdbai-0.11.0 → cortexdbai-0.11.2}/tests/test_conflicts.py +0 -0
@@ -1,101 +1,109 @@
1
- # Rust
2
- /target
3
- **/*.rs.bk
4
-
5
- # Environment / secrets
6
- .env
7
- .env.local
8
- .env*.local
9
- *.pem
10
- *.key
11
- .npmrc
12
-
13
- # SQLite database
14
- *.sqlite
15
- *.sqlite-wal
16
- *.sqlite-shm
17
-
18
- # OS
19
- .DS_Store
20
- Thumbs.db
21
- desktop.ini
22
-
23
- # IDE
24
- .idea/
25
- .vscode/
26
- *.swp
27
- *.swo
28
-
29
- # Data directories
30
- cortexdb_data*/
31
- /data/
32
- # Per-bench tenant stores (RocksDB + Tantivy + HNSW state; regeneratable per run)
33
- /data_*/
34
- # Experimental per-branch stores (not tracked on this branch but left gitignored
35
- # so checkout from other branches doesn't surface them in git status)
36
- /event_memory_store/
37
- /llm_cache/
38
-
39
- # Benchmark inputs and per-run outputs (kept local, regenerated each run)
40
- benchmarks/longmemeval/data/
41
- benchmarks/longmemeval/server_results/
42
- benchmarks/longmemeval/fast_results/
43
- benchmarks/longmemeval/micro_results/
44
- benchmarks/longmemeval/server_logs/
45
- benchmarks/longmemeval/*.log
46
- benchmarks/locomo/locomo_results*.json
47
- benchmarks/locomo/server_results/
48
- benchmarks/locomo/*.log
49
- /answer_out.json
50
-
51
- # Local Claude Code state
52
- .claude/
53
- .tmp/
54
-
55
- # Python
56
- __pycache__/
57
- *.pyc
58
- .venv/
59
- venv/
60
-
61
- # Node
62
- node_modules/
63
- dist/
64
- .next/
65
-
66
- # Egg info
67
- *.egg-info/
68
-
69
- # Scratch/debug text files at root
70
- /*.txt
71
- /*.log
72
-
73
- # Local debug / marketing / private content (not for repo)
74
- harness/.reports/
75
- harness_data_*/
76
- blog/
77
- sales/
78
- videos/
79
- local-instance/
80
-
81
- # doc-claims verifier scratch output
82
- tools/verifier_out*/
83
-
84
- # Generated benchmark / runtime data (audit M-10: hundreds of untracked
85
- # data dirs at the workspace root slow every git status/search and risk
86
- # being packaged; results JSONs are artifacts, never source)
87
- benchmarks/data_*/
88
- benchmarks/**/fast_results/
89
- data_*/
90
- *_data/
91
- *_data_20*/
92
- cortexdb_data*/
93
- server_results/
94
- *.log
95
- docker_build.log
96
-
97
- # local gate/bench data stores
98
- gate*_data_*/
99
-
100
- # Code-plane benchmark local run outputs (official results are committed deliberately)
101
- benchmarks/codeplane/runs/
1
+ # Rust
2
+ /target
3
+ **/*.rs.bk
4
+
5
+ # Environment / secrets
6
+ .env
7
+ .env.local
8
+ .env*.local
9
+ *.pem
10
+ *.key
11
+ .npmrc
12
+
13
+ # SQLite database
14
+ *.sqlite
15
+ *.sqlite-wal
16
+ *.sqlite-shm
17
+
18
+ # OS
19
+ .DS_Store
20
+ Thumbs.db
21
+ desktop.ini
22
+
23
+ # IDE
24
+ .idea/
25
+ .vscode/
26
+ *.swp
27
+ *.swo
28
+
29
+ # Data directories
30
+ cortexdb_data*/
31
+ /data/
32
+ # Per-bench tenant stores (RocksDB + Tantivy + HNSW state; regeneratable per run)
33
+ /data_*/
34
+ # Experimental per-branch stores (not tracked on this branch but left gitignored
35
+ # so checkout from other branches doesn't surface them in git status)
36
+ /event_memory_store/
37
+ /llm_cache/
38
+
39
+ # Benchmark inputs and per-run outputs (kept local, regenerated each run)
40
+ benchmarks/longmemeval/data/
41
+ benchmarks/longmemeval/server_results/
42
+ benchmarks/longmemeval/fast_results/
43
+ benchmarks/longmemeval/micro_results/
44
+ benchmarks/longmemeval/server_logs/
45
+ benchmarks/longmemeval/*.log
46
+ benchmarks/locomo/locomo_results*.json
47
+ benchmarks/locomo/server_results/
48
+ benchmarks/locomo/*.log
49
+ /answer_out.json
50
+
51
+ # Local Claude Code state
52
+ .claude/
53
+ .tmp/
54
+
55
+ # Python
56
+ __pycache__/
57
+ *.pyc
58
+ .venv/
59
+ venv/
60
+
61
+ # Node
62
+ node_modules/
63
+ dist/
64
+ .next/
65
+
66
+ # Egg info
67
+ *.egg-info/
68
+
69
+ # Scratch/debug text files at root
70
+ /*.txt
71
+ /*.log
72
+
73
+ # Local debug / marketing / private content (not for repo)
74
+ harness/.reports/
75
+ harness_data_*/
76
+ blog/
77
+ sales/
78
+ videos/
79
+ local-instance/
80
+
81
+ # doc-claims verifier scratch output
82
+ tools/verifier_out*/
83
+
84
+ # Generated benchmark / runtime data (audit M-10: hundreds of untracked
85
+ # data dirs at the workspace root slow every git status/search and risk
86
+ # being packaged; results JSONs are artifacts, never source)
87
+ benchmarks/data_*/
88
+ benchmarks/**/fast_results/
89
+ data_*/
90
+ *_data/
91
+ *_data_20*/
92
+ cortexdb_data*/
93
+ server_results/
94
+ *.log
95
+ docker_build.log
96
+
97
+ # local gate/bench data stores
98
+ gate*_data_*/
99
+
100
+ # Code-plane benchmark local run outputs (official results are committed deliberately)
101
+ benchmarks/codeplane/runs/
102
+
103
+ # Deliberately untracked, four times over: `git add docs/` keeps sweeping the
104
+ # investor deck sources and the 2.7 MB OpenClaw design PDF back in (7dda2a51,
105
+ # 3a778b5e, then again in the 2026-09-09 checkpoint). They live on disk; they do
106
+ # not belong in the repo. Stage explicit paths, never a directory.
107
+ docs/investor_deck/
108
+ docs/CORTEX_OPENCLAW_AGENT_OS_DESIGN.md
109
+ docs/CORTEX_OPENCLAW_AGENT_OS_DESIGN.pdf
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cortexdbai
3
- Version: 0.11.0
3
+ Version: 0.11.2
4
4
  Summary: The Long-Term Memory Layer for AI Systems
5
5
  Project-URL: Homepage, https://cortexdb.ai
6
6
  Project-URL: Documentation, https://docs.cortexdb.ai
7
- Project-URL: Repository, https://github.com/cortexdb/cortexdb
8
- Project-URL: Issues, https://github.com/cortexdb/cortexdb/issues
9
- Project-URL: Changelog, https://github.com/cortexdb/cortexdb/blob/main/CHANGELOG.md
7
+ Project-URL: Support, https://cortexdb.ai/contact
8
+ Project-URL: Changelog, https://cortexdb.ai/changelog
10
9
  Author-email: Prashant Malik <prashant@cortexdb.ai>
11
10
  License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
12
  Keywords: ai,cortexdb,event-sourcing,knowledge-graph,llm,memory
13
13
  Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Intended Audience :: Developers
@@ -26,14 +26,14 @@ Requires-Dist: pydantic>=2.0
26
26
  Requires-Dist: requests>=2.31
27
27
  Requires-Dist: tenacity>=8.0
28
28
  Provides-Extra: ag2
29
- Requires-Dist: ag2>=0.4; extra == 'ag2'
29
+ Requires-Dist: ag2<1,>=0.4; extra == 'ag2'
30
30
  Provides-Extra: agno
31
31
  Requires-Dist: agno>=1.0; extra == 'agno'
32
32
  Provides-Extra: all-integrations
33
- Requires-Dist: ag2>=0.4; extra == 'all-integrations'
33
+ Requires-Dist: ag2<1,>=0.4; extra == 'all-integrations'
34
34
  Requires-Dist: agno>=1.0; extra == 'all-integrations'
35
35
  Requires-Dist: beeai-framework>=0.1; extra == 'all-integrations'
36
- Requires-Dist: camel-ai>=0.2; extra == 'all-integrations'
36
+ Requires-Dist: camel-ai<0.3,>=0.2.90; extra == 'all-integrations'
37
37
  Requires-Dist: controlflow>=0.11; extra == 'all-integrations'
38
38
  Requires-Dist: crewai>=0.80; extra == 'all-integrations'
39
39
  Requires-Dist: dspy>=2.0; extra == 'all-integrations'
@@ -44,6 +44,7 @@ Requires-Dist: langchain-core>=0.3; extra == 'all-integrations'
44
44
  Requires-Dist: langgraph-checkpoint>=2.0; extra == 'all-integrations'
45
45
  Requires-Dist: letta>=0.1; extra == 'all-integrations'
46
46
  Requires-Dist: llama-index-core>=0.11; extra == 'all-integrations'
47
+ Requires-Dist: mcp<2,>=1.3; extra == 'all-integrations'
47
48
  Requires-Dist: nemoguardrails>=0.9; extra == 'all-integrations'
48
49
  Requires-Dist: openai-agents>=0.1; extra == 'all-integrations'
49
50
  Requires-Dist: prefect>=3.0; extra == 'all-integrations'
@@ -53,11 +54,12 @@ Requires-Dist: temporalio>=1.7; extra == 'all-integrations'
53
54
  Provides-Extra: async
54
55
  Requires-Dist: httpx[http2]; extra == 'async'
55
56
  Provides-Extra: autogen
56
- Requires-Dist: ag2>=0.4; extra == 'autogen'
57
+ Requires-Dist: ag2<1,>=0.4; extra == 'autogen'
57
58
  Provides-Extra: beeai
58
59
  Requires-Dist: beeai-framework>=0.1; extra == 'beeai'
59
60
  Provides-Extra: camel
60
- Requires-Dist: camel-ai>=0.2; extra == 'camel'
61
+ Requires-Dist: camel-ai<0.3,>=0.2.90; extra == 'camel'
62
+ Requires-Dist: mcp<2,>=1.3; extra == 'camel'
61
63
  Provides-Extra: controlflow
62
64
  Requires-Dist: controlflow>=0.11; extra == 'controlflow'
63
65
  Provides-Extra: crewai
@@ -119,7 +121,7 @@ CortexDB gives your AI agents persistent, structured memory. Capture experiences
119
121
 
120
122
  [![PyPI version](https://img.shields.io/pypi/v/cortexdbai.svg)](https://pypi.org/project/cortexdbai/)
121
123
  [![Python](https://img.shields.io/pypi/pyversions/cortexdbai.svg)](https://pypi.org/project/cortexdbai/)
122
- [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/cortexdb/cortexdb/blob/main/LICENSE)
124
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
123
125
 
124
126
  This SDK targets the **v1 API** (`/v1/experience`, `/v1/recall`, `/v1/answer`, …), PASETO auth, and hierarchical scopes. The pre-0.3 `remember()`/`tenant_id` client was retired — `Cortex` is now an alias of `V1Client`.
125
127
 
@@ -132,11 +134,16 @@ pip install cortexdbai
132
134
  ## Quick start
133
135
 
134
136
  ```python
137
+ import os
135
138
  from cortexdb import Cortex
136
139
 
137
- # Local `docker run` with auth disabled (CORTEX_API_KEY unset on the server):
138
- with Cortex("http://localhost:3141") as c:
139
- c.experience("ws:demo", text="Priya at Acme signed for 200 seats. Q3 close.")
140
+ # Authenticated local Docker instance (set CORTEX_API_KEY on the server too):
141
+ with Cortex("http://localhost:3141", bearer=os.environ["CORTEX_API_KEY"]) as c:
142
+ c.experience(
143
+ "ws:demo",
144
+ text="Priya at Acme signed for 200 seats. Q3 close.",
145
+ wait="indexed",
146
+ )
140
147
  pack = c.recall("ws:demo", query="How many seats did Acme sign for?")
141
148
  print(pack["context_block"])
142
149
  ```
@@ -162,15 +169,15 @@ with Cortex(
162
169
  from cortexdb import Cortex
163
170
 
164
171
  c = Cortex.signup() # POST /v1/auth/signup → free-tier PASETO
165
- c.experience(c.actor, text="hello, memory!")
172
+ c.experience(c.actor, text="hello, memory!", wait="indexed")
166
173
  print(c.recall(c.actor, query="what did I say?")["context_block"])
167
174
  ```
168
175
 
169
176
  ## Core operations
170
177
 
171
178
  ```python
172
- # Write — async by default (202); pass wait= for synchronous indexing.
173
- c.experience("ws:demo", text="Deployed payments-service v3.1 to prod.")
179
+ # Write — async by default (202); use wait="indexed" for read-your-writes.
180
+ c.experience("ws:demo", text="Deployed payments-service v3.1 to prod.", wait="indexed")
174
181
  c.experience("ws:demo", text="Rolled back auth-gateway.", wait="indexed")
175
182
 
176
183
  # Large content: wait="captured" returns at the durable accept point (~10ms);
@@ -179,6 +186,45 @@ c.experience("ws:demo", text="Rolled back auth-gateway.", wait="indexed")
179
186
  c.experience("ws:demo", text=big_transcript, idempotency_key="k1", wait="captured")
180
187
  c.write_status(idempotency_key="k1") # {found, status, stages_completed, ...}
181
188
 
189
+ # Preserve exact source structure for citations, replay, and artifact building.
190
+ from cortexdb import sha256_fingerprint
191
+
192
+ text = "Customer approved the renewal."
193
+ fingerprint = sha256_fingerprint(text)
194
+ c.experience(
195
+ "ws:demo",
196
+ text=text,
197
+ modality="conversation",
198
+ source={
199
+ "schema_version": 2,
200
+ "source_id": "crm:thread:42",
201
+ "modality": "conversation",
202
+ "content_kind": "message",
203
+ "source_fingerprint": fingerprint,
204
+ "fragments": [{
205
+ "fragment_id": "message-7",
206
+ "locator": {
207
+ "kind": "conversation",
208
+ "session_id": "thread-42",
209
+ "turn_index": 7,
210
+ },
211
+ "content_fingerprint": fingerprint,
212
+ }],
213
+ },
214
+ )
215
+
216
+ # Losslessly split a larger logical text source at UTF-8 boundaries. The
217
+ # response includes every fragment event ID; no existing one-event API changes.
218
+ source_write = c.experience_source_text(
219
+ "ws:demo",
220
+ handbook_text,
221
+ source_id="document:employee-handbook",
222
+ locator_path=["employee-handbook", "body"],
223
+ )
224
+ assert len(source_write["event_ids"]) == source_write["fragment_count"]
225
+ # The server retains replay keys for 24 hours. For longer jobs, persist each
226
+ # `on_fragment` checkpoint and pass it back through `completed_fragments`.
227
+
182
228
  # Recall — returns a StratifiedPack { context_block, layers, provenance }.
183
229
  pack = c.recall("ws:demo", query="recent deploys", view="holistic")
184
230
 
@@ -199,15 +245,23 @@ c.understanding("ws:demo")
199
245
 
200
246
  ## Async usage
201
247
 
202
- `AsyncCortex` mirrors every method:
248
+ `AsyncCortex` provides the async core surface, including write barriers:
203
249
 
204
250
  ```python
205
251
  import asyncio
252
+ import os
206
253
  from cortexdb import AsyncCortex
207
254
 
208
255
  async def main():
209
- async with AsyncCortex("http://localhost:3141") as c:
210
- await c.experience("ws:demo", text="async memory works great")
256
+ async with AsyncCortex(
257
+ "http://localhost:3141",
258
+ bearer=os.environ["CORTEX_API_KEY"],
259
+ ) as c:
260
+ await c.experience(
261
+ "ws:demo",
262
+ text="async memory works great",
263
+ wait="indexed",
264
+ )
211
265
  pack = await c.recall("ws:demo", query="what works?")
212
266
  print(pack["context_block"])
213
267
 
@@ -217,27 +271,32 @@ asyncio.run(main())
217
271
  ## Error handling
218
272
 
219
273
  ```python
274
+ import os
275
+
220
276
  from cortexdb import (
221
277
  Cortex,
222
278
  V1Error, # base
223
279
  V1APIError, # non-2xx envelope
224
280
  V1AuthError, # 401 / actor mismatch
225
281
  V1PolicyDeniedError, # 403 — missing capability
226
- V1RateLimitError, # 429 (carries retry_after)
282
+ V1RateLimitError, # 429
227
283
  V1NotConfiguredError,# 503 — feature not configured
228
284
  V1ConnectionError,
229
285
  V1TimeoutError,
230
286
  )
231
287
 
232
- with Cortex("http://localhost:3141") as c:
288
+ with Cortex(
289
+ "http://localhost:3141",
290
+ bearer=os.environ["CORTEX_API_KEY"],
291
+ ) as c:
233
292
  try:
234
- c.experience("ws:demo", text="important data")
293
+ c.experience("ws:demo", text="important data", wait="indexed")
235
294
  except V1RateLimitError as e:
236
- print(f"rate limited; retry after {e.retry_after}s")
295
+ print(f"rate limited (HTTP {e.status}); retry using your backoff policy")
237
296
  except V1PolicyDeniedError as e:
238
297
  print(f"missing capability: {e}")
239
298
  except V1APIError as e:
240
- print(f"API error [{e.status_code}]: {e}")
299
+ print(f"API error [{e.status}]: {e}")
241
300
  ```
242
301
 
243
302
  ## Integrations
@@ -295,12 +354,12 @@ Available extras (`pip install cortexdbai[<extra>]`):
295
354
  | `api_url` | `str` | `http://localhost:3141` | CortexDB v1 surface URL |
296
355
  | `actor` | `str` | `user:default` | Sent as `X-Cortex-Actor`; must match the token subject when authed |
297
356
  | `bearer` | `str \| None` | `None` | PASETO v4 public / JWT bearer (omit for auth-disabled dev) |
298
- | `timeout` | `float` | `30.0` | Request timeout (seconds) |
357
+ | `timeout` | `float` | `60.0` | Request timeout (seconds) |
299
358
 
300
359
  ## Links
301
360
 
302
361
  - [Documentation](https://docs.cortexdb.ai)
303
- - [Issue Tracker](https://github.com/cortexdb/cortexdb/issues)
362
+ - [Support](https://cortexdb.ai/contact)
304
363
 
305
364
  ## License
306
365