NWcortex 1.0.2__tar.gz → 1.0.3__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 (199) hide show
  1. {nwcortex-1.0.2 → nwcortex-1.0.3}/LICENSE +21 -21
  2. {nwcortex-1.0.2 → nwcortex-1.0.3}/MANIFEST.in +11 -10
  3. {nwcortex-1.0.2 → nwcortex-1.0.3/NWcortex.egg-info}/PKG-INFO +97 -4
  4. {nwcortex-1.0.2 → nwcortex-1.0.3}/NWcortex.egg-info/entry_points.txt +2 -0
  5. {nwcortex-1.0.2 → nwcortex-1.0.3}/NWcortex.egg-info/requires.txt +7 -0
  6. {nwcortex-1.0.2/NWcortex.egg-info → nwcortex-1.0.3}/PKG-INFO +97 -4
  7. {nwcortex-1.0.2 → nwcortex-1.0.3}/README.md +377 -289
  8. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/emergence_demo.py +230 -230
  9. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/locomo_test.py +597 -597
  10. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/memory_basic.py +164 -164
  11. {nwcortex-1.0.2 → nwcortex-1.0.3}/pyproject.toml +65 -61
  12. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/__init__.py +398 -398
  13. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/async_manager.py +463 -463
  14. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/atom_facts.py +541 -541
  15. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/autobiography.py +4 -4
  16. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/benchmark.py +10 -10
  17. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/bm25.py +129 -129
  18. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/brain_sphere.py +247 -247
  19. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cascade.py +264 -264
  20. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/causal_edges.py +217 -217
  21. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cluster_memory.py +200 -200
  22. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cognitive_cache.py +625 -625
  23. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/community.py +642 -642
  24. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/compiler.py +524 -524
  25. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/compression.py +959 -959
  26. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/consolidation/__init__.py +37 -37
  27. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/contrib/__init__.py +33 -33
  28. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/contrib/benchmark.py +820 -820
  29. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/contrib/mcp_server.py +166 -11
  30. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/contrib/snapshot.py +567 -567
  31. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/contrib/streaming.py +399 -399
  32. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/contrib/symbolic_filter.py +182 -182
  33. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cortex.py +534 -534
  34. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cortex_api/__init__.py +31 -31
  35. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cost_estimator.py +325 -325
  36. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/defaults.yaml +1 -1
  37. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/domain_router.py +401 -401
  38. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/dual_channel.py +691 -691
  39. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/edge_budget.py +4 -4
  40. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/edge_decay.py +4 -4
  41. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/edge_management.py +264 -264
  42. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/embedding_provider/__init__.py +43 -43
  43. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/embedding_provider/providers.py +404 -404
  44. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/episodic_memory.py +264 -264
  45. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/exact_cache.py +4 -4
  46. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/extras/__init__.py +41 -41
  47. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/extras/autobiography.py +329 -329
  48. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/extras/resonance.py +214 -214
  49. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/four_layer.py +624 -624
  50. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/gate.py +218 -218
  51. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/goal_tree.py +365 -365
  52. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/hippocampus.py +262 -262
  53. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/hub.py +847 -847
  54. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/index.py +98 -98
  55. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/logger.py +118 -118
  56. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/manager.py +128 -128
  57. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/manager_stats.py +49 -49
  58. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/math_utils.py +43 -43
  59. nwcortex-1.0.3/star_graph/mcp_server.py +24 -0
  60. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/memory_core/__init__.py +43 -43
  61. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/metrics.py +181 -181
  62. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/micro_sleep.py +295 -295
  63. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/multimodal.py +561 -561
  64. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/online.py +116 -116
  65. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/personality.py +299 -299
  66. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/raw_buffer.py +275 -275
  67. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/reflection_loop.py +426 -426
  68. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/resonance.py +4 -4
  69. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/retrieval_budget.py +125 -125
  70. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/retrieval_core.py +1029 -1029
  71. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/retrieval_engine/__init__.py +36 -36
  72. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/retrieval_pipeline.py +37 -37
  73. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/runtime.py +1045 -1045
  74. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/runtime_core.py +440 -440
  75. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/runtime_lifecycle.py +407 -407
  76. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/runtime_stats.py +2 -2
  77. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/seed.py +34 -34
  78. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/self_org.py +302 -302
  79. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/server.py +170 -166
  80. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/shard.py +231 -231
  81. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/sleep.py +563 -563
  82. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/sleep_consolidate.py +943 -943
  83. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/sleep_nrem.py +206 -206
  84. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/sleep_rem.py +148 -148
  85. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/sleep_report.py +125 -125
  86. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/snapshot.py +4 -4
  87. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/spreading.py +211 -211
  88. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/streaming.py +4 -4
  89. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/survival.py +294 -294
  90. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/symbolic_filter.py +4 -4
  91. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/thermal_store.py +260 -260
  92. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/tier.py +960 -960
  93. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/tiered.py +4 -4
  94. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/timespine.py +296 -296
  95. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/topology.py +332 -332
  96. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/tracing.py +366 -366
  97. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/versioned_memory.py +217 -217
  98. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/working_memory.py +267 -267
  99. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/write_gate.py +326 -326
  100. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_abstraction.py +379 -379
  101. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_abstractive_memory.py +177 -177
  102. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_anchor.py +503 -503
  103. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_atom_facts.py +51 -51
  104. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_autobiography.py +344 -344
  105. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_bm25.py +148 -148
  106. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_brain_sphere.py +244 -244
  107. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_cascade.py +86 -86
  108. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_causal_edges.py +85 -85
  109. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_cluster_memory.py +111 -111
  110. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_cognitive_cache.py +223 -223
  111. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_cognitive_compiler.py +220 -220
  112. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_community.py +487 -487
  113. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_competition.py +228 -228
  114. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_compiler.py +626 -626
  115. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_compression.py +623 -623
  116. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_config_schema.py +125 -125
  117. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_cortex_hierarchy.py +336 -336
  118. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_cost_estimator.py +240 -240
  119. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_domain_router.py +186 -186
  120. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_edge_budget.py +154 -154
  121. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_edge_decay.py +157 -157
  122. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_edge_management.py +235 -235
  123. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_embedding.py +116 -116
  124. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_episodic_memory.py +159 -159
  125. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_evolution.py +396 -396
  126. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_four_layer.py +418 -418
  127. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_gate.py +225 -225
  128. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_ghost.py +243 -243
  129. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_ghost_intensity.py +442 -442
  130. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_goal_tree.py +324 -324
  131. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_graph.py +675 -675
  132. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_hippocampus.py +173 -173
  133. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_index.py +92 -92
  134. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_layers.py +92 -92
  135. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_logger.py +87 -87
  136. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_manager_stats.py +45 -45
  137. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_math_utils.py +88 -88
  138. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_memory_tier.py +233 -233
  139. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_metrics.py +229 -229
  140. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_micro_sleep.py +292 -292
  141. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_multimodal.py +459 -451
  142. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_online.py +135 -135
  143. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_oscillation_match.py +178 -178
  144. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_personality.py +209 -209
  145. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_raw_buffer.py +170 -170
  146. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_readme_doctest.py +90 -90
  147. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_reflection_loop.py +332 -332
  148. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_resonance.py +131 -131
  149. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_retrieval_budget.py +103 -103
  150. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_retriever.py +526 -526
  151. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_router.py +281 -281
  152. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_scheduler.py +646 -646
  153. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_seed.py +62 -62
  154. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_self_org.py +232 -232
  155. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_shard.py +413 -413
  156. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_sleep_consolidation.py +604 -604
  157. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_sleep_report.py +109 -109
  158. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_spreading.py +149 -149
  159. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_sqlite_storage.py +257 -257
  160. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_storage.py +136 -136
  161. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_storage_backend.py +54 -54
  162. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_streaming.py +433 -433
  163. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_survival.py +583 -583
  164. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_thermal_store.py +310 -310
  165. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_tier.py +423 -423
  166. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_timespine.py +187 -187
  167. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_topology.py +169 -169
  168. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_tracing.py +437 -437
  169. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_v08_modules.py +558 -558
  170. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_versioned_memory.py +112 -112
  171. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_working_memory.py +195 -195
  172. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_write_gate.py +439 -439
  173. nwcortex-1.0.2/star_graph/mcp_server.py +0 -4
  174. {nwcortex-1.0.2 → nwcortex-1.0.3}/NWcortex.egg-info/SOURCES.txt +0 -0
  175. {nwcortex-1.0.2 → nwcortex-1.0.3}/NWcortex.egg-info/dependency_links.txt +0 -0
  176. {nwcortex-1.0.2 → nwcortex-1.0.3}/NWcortex.egg-info/top_level.txt +0 -0
  177. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/ablation_benchmark.py +0 -0
  178. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/locomo_eval.py +0 -0
  179. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/locomo_llm_eval.py +0 -0
  180. {nwcortex-1.0.2 → nwcortex-1.0.3}/examples/memory_benchmark.py +0 -0
  181. {nwcortex-1.0.2 → nwcortex-1.0.3}/setup.cfg +0 -0
  182. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/__main__.py +0 -0
  183. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/abstraction.py +0 -0
  184. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/anchor.py +0 -0
  185. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/cli.py +0 -0
  186. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/competition.py +0 -0
  187. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/config.py +0 -0
  188. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/embedding.py +0 -0
  189. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/evolution.py +0 -0
  190. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/ghost.py +0 -0
  191. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/graph.py +0 -0
  192. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/layers.py +0 -0
  193. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/retriever.py +0 -0
  194. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/router.py +0 -0
  195. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/scheduler.py +0 -0
  196. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/sqlite_storage.py +0 -0
  197. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/storage.py +0 -0
  198. {nwcortex-1.0.2 → nwcortex-1.0.3}/star_graph/storage_backend.py +0 -0
  199. {nwcortex-1.0.2 → nwcortex-1.0.3}/tests/test_retrieval_trace.py +0 -0
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Thatgfsj
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Thatgfsj
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,10 +1,11 @@
1
- include README.md
2
- include LICENSE
3
- include star_graph/defaults.yaml
4
- recursive-include examples *.py
5
- prune venv
6
- prune dist
7
- prune build
8
- prune .git
9
- prune __pycache__
10
- global-exclude *.pyc
1
+ include README.md
2
+ include LICENSE
3
+ include star_graph/defaults.yaml
4
+ recursive-include star_graph/contrib *.py
5
+ recursive-include examples *.py
6
+ prune venv
7
+ prune dist
8
+ prune build
9
+ prune .git
10
+ prune __pycache__
11
+ global-exclude *.pyc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NWcortex
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: NeuroWeave Cortex (NWC) — Graph-first cognitive memory runtime for AI agents. Hippocampal-inspired architecture with domain routing, spreading activation, edge budget management, 4-layer compression, thermal storage, personality modeling, and 8-phase sleep consolidation.
5
5
  Author-email: Thatgfsj <thatgfsj@users.noreply.github.com>
6
6
  License: MIT
@@ -24,6 +24,11 @@ Requires-Dist: PyYAML>=6.0
24
24
  Requires-Dist: scikit-learn>=1.3.0
25
25
  Provides-Extra: embeddings
26
26
  Requires-Dist: sentence-transformers>=2.2.0; extra == "embeddings"
27
+ Provides-Extra: mcp
28
+ Requires-Dist: mcp>=1.0.0; extra == "mcp"
29
+ Provides-Extra: all
30
+ Requires-Dist: sentence-transformers>=2.2.0; extra == "all"
31
+ Requires-Dist: mcp>=1.0.0; extra == "all"
27
32
  Dynamic: license-file
28
33
 
29
34
  # NeuroWeave Cortex (NWC) — Cognitive Memory Runtime
@@ -264,11 +269,14 @@ See `star_graph/defaults.yaml` for all 300+ tunable parameters.
264
269
  # From PyPI (package name: NWcortex, import as: star_graph)
265
270
  pip install NWcortex
266
271
 
267
- # With sentence-transformers for semantic embeddings (~2GB model download on first use)
272
+ # With sentence-transformers for semantic embeddings
268
273
  pip install "NWcortex[embeddings]"
269
274
 
270
- # Optional: for SQLite storage backend
271
- pip install aiosqlite
275
+ # With MCP server support (for AI agent integration)
276
+ pip install "NWcortex[mcp]"
277
+
278
+ # Everything
279
+ pip install "NWcortex[all]"
272
280
 
273
281
  # Run demo
274
282
  python examples/emergence_demo.py
@@ -276,6 +284,91 @@ python examples/emergence_demo.py
276
284
 
277
285
  **Note:** Without `[embeddings]`, the system uses a lightweight TF-IDF fallback for text encoding. Install `sentence-transformers` only if you need semantic-quality embeddings.
278
286
 
287
+ ## MCP Server — AI Agent Integration
288
+
289
+ NeuroWeave Cortex ships with a [Model Context Protocol](https://modelcontextprotocol.io) server. Connect any MCP-compatible AI agent (Claude Desktop, OpenClaw, Cursor, etc.) for persistent cognitive memory across conversations.
290
+
291
+ ### Quick start
292
+
293
+ ```bash
294
+ # Install with MCP support
295
+ pip install "NWcortex[mcp]"
296
+
297
+ # Launch the MCP server on stdio
298
+ nwc-mcp
299
+
300
+ # With persistent storage
301
+ nwc-mcp --storage agent_memory.json
302
+
303
+ # Load a previously saved memory graph
304
+ nwc-mcp --load my_memories.json
305
+ ```
306
+
307
+ ### Tool reference (12 tools)
308
+
309
+ | Tool | Description |
310
+ |------|-------------|
311
+ | `remember` | Store a long-term memory (tags, importance, emotional valence) |
312
+ | `remember_working` | Store in fast ephemeral working-memory buffer (current task context) |
313
+ | `recall` | Context-aware semantic retrieval with task-type routing |
314
+ | `forget` | Remove a memory, creating a ghost trace for potential fuzzy recall |
315
+ | `sleep` | Run 5-phase sleep consolidation — merges, prunes, forms schemas |
316
+ | `consolidate` | Micro-consolidation — incremental, non-blocking |
317
+ | `stats` | Memory system statistics (anchors, edges, ghosts, schemas, cognitive health) |
318
+ | `fuzzy_recall` | Low-confidence recall from ghost traces ("I seem to remember...") |
319
+ | `get_profile` | Inferred user profile from accumulated memories |
320
+ | `evolve` | Memory evolution cycle (decay, boost, conflict resolution) |
321
+ | `save` | Persist memory graph to disk (JSON) |
322
+ | `load` | Load memory graph from disk (JSON) |
323
+
324
+ ### Claude Desktop config
325
+
326
+ ```json
327
+ {
328
+ "mcpServers": {
329
+ "neuroweave-cortex": {
330
+ "command": "nwc-mcp",
331
+ "args": ["--storage", "/path/to/agent_memory.json"]
332
+ }
333
+ }
334
+ }
335
+ ```
336
+
337
+ ### OpenClaw config
338
+
339
+ ```json
340
+ {
341
+ "mcpServers": {
342
+ "neuroweave-cortex": {
343
+ "command": "nwc-mcp",
344
+ "args": ["--storage", "/path/to/agent_memory.json"]
345
+ }
346
+ }
347
+ }
348
+ ```
349
+
350
+ ## REST API Server
351
+
352
+ ```bash
353
+ # Start the REST server
354
+ nwc-server --port 8420
355
+
356
+ # Or via module
357
+ python -m star_graph.server --port 8420
358
+ ```
359
+
360
+ Endpoints:
361
+
362
+ | Method | Path | Description |
363
+ |--------|------|-------------|
364
+ | GET | `/health` | Health check with anchor/edge counts |
365
+ | GET | `/metrics` | Prometheus-format metrics |
366
+ | GET | `/stats` | Full memory system statistics |
367
+ | POST | `/remember` | Store a memory `{"text": "...", "tags": [...]}` |
368
+ | POST | `/recall` | Retrieve memories `{"query": "...", "max_items": 10}` |
369
+ | POST | `/sleep` | Run sleep consolidation |
370
+ | POST | `/consolidate` | Run micro-consolidation |
371
+
279
372
  ## Interactive Demo
280
373
 
281
374
  ```bash
@@ -1,4 +1,6 @@
1
1
  [console_scripts]
2
+ nwc-mcp = star_graph.mcp_server:entry
3
+ nwc-server = star_graph.server:entry
2
4
  sg-add = star_graph.cli:add
3
5
  sg-query = star_graph.cli:query
4
6
  sg-sleep = star_graph.cli:sleep_cmd
@@ -2,5 +2,12 @@ numpy>=1.24.0
2
2
  PyYAML>=6.0
3
3
  scikit-learn>=1.3.0
4
4
 
5
+ [all]
6
+ sentence-transformers>=2.2.0
7
+ mcp>=1.0.0
8
+
5
9
  [embeddings]
6
10
  sentence-transformers>=2.2.0
11
+
12
+ [mcp]
13
+ mcp>=1.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NWcortex
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: NeuroWeave Cortex (NWC) — Graph-first cognitive memory runtime for AI agents. Hippocampal-inspired architecture with domain routing, spreading activation, edge budget management, 4-layer compression, thermal storage, personality modeling, and 8-phase sleep consolidation.
5
5
  Author-email: Thatgfsj <thatgfsj@users.noreply.github.com>
6
6
  License: MIT
@@ -24,6 +24,11 @@ Requires-Dist: PyYAML>=6.0
24
24
  Requires-Dist: scikit-learn>=1.3.0
25
25
  Provides-Extra: embeddings
26
26
  Requires-Dist: sentence-transformers>=2.2.0; extra == "embeddings"
27
+ Provides-Extra: mcp
28
+ Requires-Dist: mcp>=1.0.0; extra == "mcp"
29
+ Provides-Extra: all
30
+ Requires-Dist: sentence-transformers>=2.2.0; extra == "all"
31
+ Requires-Dist: mcp>=1.0.0; extra == "all"
27
32
  Dynamic: license-file
28
33
 
29
34
  # NeuroWeave Cortex (NWC) — Cognitive Memory Runtime
@@ -264,11 +269,14 @@ See `star_graph/defaults.yaml` for all 300+ tunable parameters.
264
269
  # From PyPI (package name: NWcortex, import as: star_graph)
265
270
  pip install NWcortex
266
271
 
267
- # With sentence-transformers for semantic embeddings (~2GB model download on first use)
272
+ # With sentence-transformers for semantic embeddings
268
273
  pip install "NWcortex[embeddings]"
269
274
 
270
- # Optional: for SQLite storage backend
271
- pip install aiosqlite
275
+ # With MCP server support (for AI agent integration)
276
+ pip install "NWcortex[mcp]"
277
+
278
+ # Everything
279
+ pip install "NWcortex[all]"
272
280
 
273
281
  # Run demo
274
282
  python examples/emergence_demo.py
@@ -276,6 +284,91 @@ python examples/emergence_demo.py
276
284
 
277
285
  **Note:** Without `[embeddings]`, the system uses a lightweight TF-IDF fallback for text encoding. Install `sentence-transformers` only if you need semantic-quality embeddings.
278
286
 
287
+ ## MCP Server — AI Agent Integration
288
+
289
+ NeuroWeave Cortex ships with a [Model Context Protocol](https://modelcontextprotocol.io) server. Connect any MCP-compatible AI agent (Claude Desktop, OpenClaw, Cursor, etc.) for persistent cognitive memory across conversations.
290
+
291
+ ### Quick start
292
+
293
+ ```bash
294
+ # Install with MCP support
295
+ pip install "NWcortex[mcp]"
296
+
297
+ # Launch the MCP server on stdio
298
+ nwc-mcp
299
+
300
+ # With persistent storage
301
+ nwc-mcp --storage agent_memory.json
302
+
303
+ # Load a previously saved memory graph
304
+ nwc-mcp --load my_memories.json
305
+ ```
306
+
307
+ ### Tool reference (12 tools)
308
+
309
+ | Tool | Description |
310
+ |------|-------------|
311
+ | `remember` | Store a long-term memory (tags, importance, emotional valence) |
312
+ | `remember_working` | Store in fast ephemeral working-memory buffer (current task context) |
313
+ | `recall` | Context-aware semantic retrieval with task-type routing |
314
+ | `forget` | Remove a memory, creating a ghost trace for potential fuzzy recall |
315
+ | `sleep` | Run 5-phase sleep consolidation — merges, prunes, forms schemas |
316
+ | `consolidate` | Micro-consolidation — incremental, non-blocking |
317
+ | `stats` | Memory system statistics (anchors, edges, ghosts, schemas, cognitive health) |
318
+ | `fuzzy_recall` | Low-confidence recall from ghost traces ("I seem to remember...") |
319
+ | `get_profile` | Inferred user profile from accumulated memories |
320
+ | `evolve` | Memory evolution cycle (decay, boost, conflict resolution) |
321
+ | `save` | Persist memory graph to disk (JSON) |
322
+ | `load` | Load memory graph from disk (JSON) |
323
+
324
+ ### Claude Desktop config
325
+
326
+ ```json
327
+ {
328
+ "mcpServers": {
329
+ "neuroweave-cortex": {
330
+ "command": "nwc-mcp",
331
+ "args": ["--storage", "/path/to/agent_memory.json"]
332
+ }
333
+ }
334
+ }
335
+ ```
336
+
337
+ ### OpenClaw config
338
+
339
+ ```json
340
+ {
341
+ "mcpServers": {
342
+ "neuroweave-cortex": {
343
+ "command": "nwc-mcp",
344
+ "args": ["--storage", "/path/to/agent_memory.json"]
345
+ }
346
+ }
347
+ }
348
+ ```
349
+
350
+ ## REST API Server
351
+
352
+ ```bash
353
+ # Start the REST server
354
+ nwc-server --port 8420
355
+
356
+ # Or via module
357
+ python -m star_graph.server --port 8420
358
+ ```
359
+
360
+ Endpoints:
361
+
362
+ | Method | Path | Description |
363
+ |--------|------|-------------|
364
+ | GET | `/health` | Health check with anchor/edge counts |
365
+ | GET | `/metrics` | Prometheus-format metrics |
366
+ | GET | `/stats` | Full memory system statistics |
367
+ | POST | `/remember` | Store a memory `{"text": "...", "tags": [...]}` |
368
+ | POST | `/recall` | Retrieve memories `{"query": "...", "max_items": 10}` |
369
+ | POST | `/sleep` | Run sleep consolidation |
370
+ | POST | `/consolidate` | Run micro-consolidation |
371
+
279
372
  ## Interactive Demo
280
373
 
281
374
  ```bash