pymaxim 0.2.1__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 (503) hide show
  1. pymaxim-0.2.1/LICENSE +190 -0
  2. pymaxim-0.2.1/PKG-INFO +232 -0
  3. pymaxim-0.2.1/README.md +144 -0
  4. pymaxim-0.2.1/pyproject.toml +205 -0
  5. pymaxim-0.2.1/setup.cfg +4 -0
  6. pymaxim-0.2.1/src/maxim/__init__.py +208 -0
  7. pymaxim-0.2.1/src/maxim/__main__.py +5 -0
  8. pymaxim-0.2.1/src/maxim/_data/components/bodies/cybernetic_arm.yaml +59 -0
  9. pymaxim-0.2.1/src/maxim/_data/components/bodies/megarm_v3.yaml +73 -0
  10. pymaxim-0.2.1/src/maxim/_data/components/bodies/reachy_mini.yaml +131 -0
  11. pymaxim-0.2.1/src/maxim/_data/components/creatures/alien_xenomorph.yaml +60 -0
  12. pymaxim-0.2.1/src/maxim/_data/components/creatures/cyberdog.yaml +59 -0
  13. pymaxim-0.2.1/src/maxim/_data/components/creatures/dragon.yaml +65 -0
  14. pymaxim-0.2.1/src/maxim/_data/components/creatures/giant_spider.yaml +52 -0
  15. pymaxim-0.2.1/src/maxim/_data/components/creatures/patrol_drone.yaml +55 -0
  16. pymaxim-0.2.1/src/maxim/_data/components/creatures/revenant.yaml +53 -0
  17. pymaxim-0.2.1/src/maxim/_data/components/creatures/skeleton_warrior.yaml +52 -0
  18. pymaxim-0.2.1/src/maxim/_data/components/creatures/wolf.yaml +46 -0
  19. pymaxim-0.2.1/src/maxim/_data/components/environments/abandoned_warehouse.yaml +57 -0
  20. pymaxim-0.2.1/src/maxim/_data/components/environments/dungeon_corridor.yaml +53 -0
  21. pymaxim-0.2.1/src/maxim/_data/components/environments/enchanted_grove.yaml +43 -0
  22. pymaxim-0.2.1/src/maxim/_data/components/environments/forest_clearing.yaml +33 -0
  23. pymaxim-0.2.1/src/maxim/_data/components/environments/haunted_manor.yaml +62 -0
  24. pymaxim-0.2.1/src/maxim/_data/components/environments/megacorp_lobby.yaml +44 -0
  25. pymaxim-0.2.1/src/maxim/_data/components/environments/neon_alley.yaml +48 -0
  26. pymaxim-0.2.1/src/maxim/_data/components/environments/ripperdoc_clinic.yaml +37 -0
  27. pymaxim-0.2.1/src/maxim/_data/components/environments/roman_forum.yaml +51 -0
  28. pymaxim-0.2.1/src/maxim/_data/components/environments/server_room.yaml +44 -0
  29. pymaxim-0.2.1/src/maxim/_data/components/environments/space_station_bridge.yaml +62 -0
  30. pymaxim-0.2.1/src/maxim/_data/components/environments/tavern_interior.yaml +33 -0
  31. pymaxim-0.2.1/src/maxim/_data/components/items/cursed_amulet.yaml +52 -0
  32. pymaxim-0.2.1/src/maxim/_data/components/items/healing_potion.yaml +38 -0
  33. pymaxim-0.2.1/src/maxim/_data/components/items/laptop.yaml +61 -0
  34. pymaxim-0.2.1/src/maxim/_data/components/items/lockpick_set.yaml +38 -0
  35. pymaxim-0.2.1/src/maxim/_data/components/items/radio_transceiver.yaml +53 -0
  36. pymaxim-0.2.1/src/maxim/_data/components/items/spellbook.yaml +46 -0
  37. pymaxim-0.2.1/src/maxim/_data/components/items/terminal_console.yaml +65 -0
  38. pymaxim-0.2.1/src/maxim/_data/components/npcs/base_humanoid.yaml +42 -0
  39. pymaxim-0.2.1/src/maxim/_data/components/npcs/blacksmith.yaml +51 -0
  40. pymaxim-0.2.1/src/maxim/_data/components/npcs/corpo_guard.yaml +54 -0
  41. pymaxim-0.2.1/src/maxim/_data/components/npcs/detective.yaml +53 -0
  42. pymaxim-0.2.1/src/maxim/_data/components/npcs/ferryman.yaml +37 -0
  43. pymaxim-0.2.1/src/maxim/_data/components/npcs/guard.yaml +44 -0
  44. pymaxim-0.2.1/src/maxim/_data/components/npcs/merchant.yaml +36 -0
  45. pymaxim-0.2.1/src/maxim/_data/components/npcs/netrunner.yaml +53 -0
  46. pymaxim-0.2.1/src/maxim/_data/components/npcs/roman_legionary.yaml +57 -0
  47. pymaxim-0.2.1/src/maxim/_data/components/npcs/street_fixer.yaml +60 -0
  48. pymaxim-0.2.1/src/maxim/_data/components/npcs/sysadmin.yaml +57 -0
  49. pymaxim-0.2.1/src/maxim/_data/components/npcs/thief.yaml +56 -0
  50. pymaxim-0.2.1/src/maxim/_data/components/npcs/wizard.yaml +53 -0
  51. pymaxim-0.2.1/src/maxim/_data/components/vehicles/horse.yaml +65 -0
  52. pymaxim-0.2.1/src/maxim/_data/components/vehicles/pickup_truck.yaml +65 -0
  53. pymaxim-0.2.1/src/maxim/_data/components/vehicles/sailing_ship.yaml +68 -0
  54. pymaxim-0.2.1/src/maxim/_data/components/weapons/combat_knife.yaml +42 -0
  55. pymaxim-0.2.1/src/maxim/_data/components/weapons/enchanted_bow.yaml +55 -0
  56. pymaxim-0.2.1/src/maxim/_data/components/weapons/longbow.yaml +40 -0
  57. pymaxim-0.2.1/src/maxim/_data/components/weapons/magic_staff.yaml +60 -0
  58. pymaxim-0.2.1/src/maxim/_data/components/weapons/neural_disruptor.yaml +52 -0
  59. pymaxim-0.2.1/src/maxim/_data/components/weapons/plasma_rifle.yaml +52 -0
  60. pymaxim-0.2.1/src/maxim/_data/components/weapons/poison_dagger.yaml +46 -0
  61. pymaxim-0.2.1/src/maxim/_data/components/weapons/rusty_sword.yaml +46 -0
  62. pymaxim-0.2.1/src/maxim/_data/components/weapons/shock_baton.yaml +46 -0
  63. pymaxim-0.2.1/src/maxim/_data/encounters/combat/arena_duel.yaml +16 -0
  64. pymaxim-0.2.1/src/maxim/_data/encounters/combat/forest_ambush.yaml +16 -0
  65. pymaxim-0.2.1/src/maxim/_data/encounters/combat/tavern_brawl.yaml +17 -0
  66. pymaxim-0.2.1/src/maxim/_data/encounters/exploration/trapped_corridor.yaml +17 -0
  67. pymaxim-0.2.1/src/maxim/_data/encounters/puzzle/riddle_gate.yaml +17 -0
  68. pymaxim-0.2.1/src/maxim/_data/encounters/social/guard_interrogation.yaml +18 -0
  69. pymaxim-0.2.1/src/maxim/_data/encounters/social/merchant_negotiation.yaml +17 -0
  70. pymaxim-0.2.1/src/maxim/_data/encounters/social/trust_dilemma.yaml +15 -0
  71. pymaxim-0.2.1/src/maxim/_data/motion/default_actions.json +72 -0
  72. pymaxim-0.2.1/src/maxim/_data/motion/default_poses.json +3 -0
  73. pymaxim-0.2.1/src/maxim/_data/motion/movement_thresholds.json +12 -0
  74. pymaxim-0.2.1/src/maxim/_data/prompts/planning/decomposition.txt +27 -0
  75. pymaxim-0.2.1/src/maxim/_data/prompts/planning/reflection.txt +18 -0
  76. pymaxim-0.2.1/src/maxim/_data/prompts/planning/replanning.txt +23 -0
  77. pymaxim-0.2.1/src/maxim/_data/prompts/planning/schemas/decomposition.json +27 -0
  78. pymaxim-0.2.1/src/maxim/_data/prompts/planning/schemas/reflection.json +12 -0
  79. pymaxim-0.2.1/src/maxim/_data/templates/default_actions.json +73 -0
  80. pymaxim-0.2.1/src/maxim/_data/templates/default_poses.json +3 -0
  81. pymaxim-0.2.1/src/maxim/_data/templates/key_responses.json +9 -0
  82. pymaxim-0.2.1/src/maxim/_data/templates/llm.json +22 -0
  83. pymaxim-0.2.1/src/maxim/_data/templates/motor_cortex.json +11 -0
  84. pymaxim-0.2.1/src/maxim/_data/templates/movement_thresholds.json +12 -0
  85. pymaxim-0.2.1/src/maxim/_data/templates/zenoh.json5 +6 -0
  86. pymaxim-0.2.1/src/maxim/agents/__init__.py +149 -0
  87. pymaxim-0.2.1/src/maxim/agents/agentic_goal_agent.py +348 -0
  88. pymaxim-0.2.1/src/maxim/agents/autonomy.py +762 -0
  89. pymaxim-0.2.1/src/maxim/agents/base.py +111 -0
  90. pymaxim-0.2.1/src/maxim/agents/bus.py +1331 -0
  91. pymaxim-0.2.1/src/maxim/agents/context_pool.py +603 -0
  92. pymaxim-0.2.1/src/maxim/agents/exec_agent.py +1464 -0
  93. pymaxim-0.2.1/src/maxim/agents/exec_prompts.py +173 -0
  94. pymaxim-0.2.1/src/maxim/agents/fear_agent.py +532 -0
  95. pymaxim-0.2.1/src/maxim/agents/goal_agent.py +24 -0
  96. pymaxim-0.2.1/src/maxim/agents/llm_agent.py +518 -0
  97. pymaxim-0.2.1/src/maxim/agents/llm_context.py +131 -0
  98. pymaxim-0.2.1/src/maxim/agents/llm_fallback.py +535 -0
  99. pymaxim-0.2.1/src/maxim/agents/llm_types.py +190 -0
  100. pymaxim-0.2.1/src/maxim/agents/llm_worker.py +977 -0
  101. pymaxim-0.2.1/src/maxim/agents/maxim_agent.py +467 -0
  102. pymaxim-0.2.1/src/maxim/agents/memory_agent.py +1410 -0
  103. pymaxim-0.2.1/src/maxim/agents/modality.py +91 -0
  104. pymaxim-0.2.1/src/maxim/agents/output_mixin.py +310 -0
  105. pymaxim-0.2.1/src/maxim/agents/perception_agent.py +382 -0
  106. pymaxim-0.2.1/src/maxim/agents/prompt_budgeter.py +283 -0
  107. pymaxim-0.2.1/src/maxim/agents/prompt_builder.py +1288 -0
  108. pymaxim-0.2.1/src/maxim/agents/statistician_agent.py +843 -0
  109. pymaxim-0.2.1/src/maxim/api.py +1566 -0
  110. pymaxim-0.2.1/src/maxim/attention/__init__.py +60 -0
  111. pymaxim-0.2.1/src/maxim/attention/attention_network.py +586 -0
  112. pymaxim-0.2.1/src/maxim/attention/gaze_controller.py +375 -0
  113. pymaxim-0.2.1/src/maxim/attention/gaze_history.py +198 -0
  114. pymaxim-0.2.1/src/maxim/attention/salience_map.py +626 -0
  115. pymaxim-0.2.1/src/maxim/attention/scene_context.py +274 -0
  116. pymaxim-0.2.1/src/maxim/bridges/__init__.py +33 -0
  117. pymaxim-0.2.1/src/maxim/bridges/escalation_bridge.py +638 -0
  118. pymaxim-0.2.1/src/maxim/bridges/fear_bridge.py +716 -0
  119. pymaxim-0.2.1/src/maxim/bridges/pain_bridge.py +600 -0
  120. pymaxim-0.2.1/src/maxim/bridges/planning_bridge.py +440 -0
  121. pymaxim-0.2.1/src/maxim/bridges/salience_bridge.py +354 -0
  122. pymaxim-0.2.1/src/maxim/bridges/spatial_bridge.py +451 -0
  123. pymaxim-0.2.1/src/maxim/bridges/tool_pain_bridge.py +417 -0
  124. pymaxim-0.2.1/src/maxim/cli.py +1400 -0
  125. pymaxim-0.2.1/src/maxim/cli_parser.py +536 -0
  126. pymaxim-0.2.1/src/maxim/cli_utils.py +403 -0
  127. pymaxim-0.2.1/src/maxim/comms/__init__.py +23 -0
  128. pymaxim-0.2.1/src/maxim/comms/api.py +187 -0
  129. pymaxim-0.2.1/src/maxim/comms/channels/__init__.py +7 -0
  130. pymaxim-0.2.1/src/maxim/comms/channels/base.py +23 -0
  131. pymaxim-0.2.1/src/maxim/comms/channels/twilio_channel.py +101 -0
  132. pymaxim-0.2.1/src/maxim/comms/conversation.py +232 -0
  133. pymaxim-0.2.1/src/maxim/comms/gateway.py +89 -0
  134. pymaxim-0.2.1/src/maxim/create.py +340 -0
  135. pymaxim-0.2.1/src/maxim/data/__init__.py +1 -0
  136. pymaxim-0.2.1/src/maxim/data/audio/__init__.py +1 -0
  137. pymaxim-0.2.1/src/maxim/data/camera/__init__.py +1 -0
  138. pymaxim-0.2.1/src/maxim/data/camera/display.py +505 -0
  139. pymaxim-0.2.1/src/maxim/decisions/__init__.py +21 -0
  140. pymaxim-0.2.1/src/maxim/decisions/causal_link.py +374 -0
  141. pymaxim-0.2.1/src/maxim/decisions/nac.py +881 -0
  142. pymaxim-0.2.1/src/maxim/decisions/nac_tracer.py +150 -0
  143. pymaxim-0.2.1/src/maxim/decisions/significance.py +350 -0
  144. pymaxim-0.2.1/src/maxim/default_network/__init__.py +133 -0
  145. pymaxim-0.2.1/src/maxim/default_network/arbiter.py +164 -0
  146. pymaxim-0.2.1/src/maxim/default_network/background_tasks.py +276 -0
  147. pymaxim-0.2.1/src/maxim/default_network/behaviors/__init__.py +72 -0
  148. pymaxim-0.2.1/src/maxim/default_network/behaviors/base.py +192 -0
  149. pymaxim-0.2.1/src/maxim/default_network/behaviors/idle.py +581 -0
  150. pymaxim-0.2.1/src/maxim/default_network/behaviors/motion.py +158 -0
  151. pymaxim-0.2.1/src/maxim/default_network/behaviors/orienting.py +151 -0
  152. pymaxim-0.2.1/src/maxim/default_network/behaviors/social.py +336 -0
  153. pymaxim-0.2.1/src/maxim/default_network/behaviors/startle.py +193 -0
  154. pymaxim-0.2.1/src/maxim/default_network/behaviors/turn_around.py +207 -0
  155. pymaxim-0.2.1/src/maxim/default_network/config.py +468 -0
  156. pymaxim-0.2.1/src/maxim/default_network/gate.py +728 -0
  157. pymaxim-0.2.1/src/maxim/default_network/gaze_manager.py +303 -0
  158. pymaxim-0.2.1/src/maxim/default_network/inhibition.py +99 -0
  159. pymaxim-0.2.1/src/maxim/default_network/messages.py +125 -0
  160. pymaxim-0.2.1/src/maxim/default_network/movement_utils.py +303 -0
  161. pymaxim-0.2.1/src/maxim/default_network/network.py +1324 -0
  162. pymaxim-0.2.1/src/maxim/doctor/__init__.py +11 -0
  163. pymaxim-0.2.1/src/maxim/doctor/checks.py +1288 -0
  164. pymaxim-0.2.1/src/maxim/doctor/cli.py +407 -0
  165. pymaxim-0.2.1/src/maxim/doctor/platform_detect.py +235 -0
  166. pymaxim-0.2.1/src/maxim/embodied_runtime/__init__.py +38 -0
  167. pymaxim-0.2.1/src/maxim/embodied_runtime/agentic_runtime.py +1111 -0
  168. pymaxim-0.2.1/src/maxim/embodied_runtime/connection.py +385 -0
  169. pymaxim-0.2.1/src/maxim/embodied_runtime/input_handlers.py +576 -0
  170. pymaxim-0.2.1/src/maxim/embodied_runtime/media_loop.py +839 -0
  171. pymaxim-0.2.1/src/maxim/embodied_runtime/movement.py +1293 -0
  172. pymaxim-0.2.1/src/maxim/embodied_runtime/selfy.py +885 -0
  173. pymaxim-0.2.1/src/maxim/embodied_runtime/vision_stream.py +215 -0
  174. pymaxim-0.2.1/src/maxim/embodied_runtime/workers.py +596 -0
  175. pymaxim-0.2.1/src/maxim/embodiment/__init__.py +28 -0
  176. pymaxim-0.2.1/src/maxim/embodiment/backends/__init__.py +1 -0
  177. pymaxim-0.2.1/src/maxim/embodiment/backends/cerebellum_modulator.py +251 -0
  178. pymaxim-0.2.1/src/maxim/embodiment/body.py +388 -0
  179. pymaxim-0.2.1/src/maxim/embodiment/cerebellum.py +760 -0
  180. pymaxim-0.2.1/src/maxim/embodiment/component_registry.py +408 -0
  181. pymaxim-0.2.1/src/maxim/embodiment/engrams.py +179 -0
  182. pymaxim-0.2.1/src/maxim/embodiment/motor.py +512 -0
  183. pymaxim-0.2.1/src/maxim/embodiment/percepts.py +138 -0
  184. pymaxim-0.2.1/src/maxim/embodiment/sem.py +543 -0
  185. pymaxim-0.2.1/src/maxim/embodiment/spec.py +523 -0
  186. pymaxim-0.2.1/src/maxim/embodiment/tool_bridge.py +308 -0
  187. pymaxim-0.2.1/src/maxim/energy/__init__.py +54 -0
  188. pymaxim-0.2.1/src/maxim/energy/llm_tracker.py +264 -0
  189. pymaxim-0.2.1/src/maxim/energy/movement_tracker.py +361 -0
  190. pymaxim-0.2.1/src/maxim/energy/registry.py +326 -0
  191. pymaxim-0.2.1/src/maxim/energy/signal.py +144 -0
  192. pymaxim-0.2.1/src/maxim/energy/tracker.py +189 -0
  193. pymaxim-0.2.1/src/maxim/environment/__init__.py +12 -0
  194. pymaxim-0.2.1/src/maxim/environment/base.py +40 -0
  195. pymaxim-0.2.1/src/maxim/environment/filesystem_env.py +28 -0
  196. pymaxim-0.2.1/src/maxim/environment/reachy_env.py +168 -0
  197. pymaxim-0.2.1/src/maxim/evaluation/__init__.py +20 -0
  198. pymaxim-0.2.1/src/maxim/evaluation/agent_eval.py +24 -0
  199. pymaxim-0.2.1/src/maxim/evaluation/base.py +15 -0
  200. pymaxim-0.2.1/src/maxim/evaluation/metrics.py +7 -0
  201. pymaxim-0.2.1/src/maxim/evaluation/plan_eval.py +41 -0
  202. pymaxim-0.2.1/src/maxim/evaluation/tool_eval.py +23 -0
  203. pymaxim-0.2.1/src/maxim/exceptions.py +395 -0
  204. pymaxim-0.2.1/src/maxim/hardware/__init__.py +89 -0
  205. pymaxim-0.2.1/src/maxim/hardware/capabilities.py +210 -0
  206. pymaxim-0.2.1/src/maxim/hardware/config.py +223 -0
  207. pymaxim-0.2.1/src/maxim/hardware/controller.py +361 -0
  208. pymaxim-0.2.1/src/maxim/hardware/reachy/__init__.py +14 -0
  209. pymaxim-0.2.1/src/maxim/hardware/reachy/controller.py +411 -0
  210. pymaxim-0.2.1/src/maxim/hardware/reachy/streams.py +230 -0
  211. pymaxim-0.2.1/src/maxim/hardware/registry.py +529 -0
  212. pymaxim-0.2.1/src/maxim/hardware/simulation/__init__.py +14 -0
  213. pymaxim-0.2.1/src/maxim/hardware/simulation/controller.py +308 -0
  214. pymaxim-0.2.1/src/maxim/hardware/simulation/streams.py +207 -0
  215. pymaxim-0.2.1/src/maxim/hardware/streams.py +159 -0
  216. pymaxim-0.2.1/src/maxim/harm/__init__.py +55 -0
  217. pymaxim-0.2.1/src/maxim/harm/joint_limit.py +433 -0
  218. pymaxim-0.2.1/src/maxim/harm/movement.py +285 -0
  219. pymaxim-0.2.1/src/maxim/harm/predictor.py +224 -0
  220. pymaxim-0.2.1/src/maxim/harm/registry.py +244 -0
  221. pymaxim-0.2.1/src/maxim/harm/tool_predictor.py +88 -0
  222. pymaxim-0.2.1/src/maxim/inference/__init__.py +46 -0
  223. pymaxim-0.2.1/src/maxim/inference/observation.py +21 -0
  224. pymaxim-0.2.1/src/maxim/inference/segment_vision.py +771 -0
  225. pymaxim-0.2.1/src/maxim/inference/transcribe_audio.py +798 -0
  226. pymaxim-0.2.1/src/maxim/integration/__init__.py +11 -0
  227. pymaxim-0.2.1/src/maxim/integration/memory_hub.py +1494 -0
  228. pymaxim-0.2.1/src/maxim/interactive/__init__.py +35 -0
  229. pymaxim-0.2.1/src/maxim/interactive/display.py +266 -0
  230. pymaxim-0.2.1/src/maxim/interactive/prompts.py +395 -0
  231. pymaxim-0.2.1/src/maxim/load.py +245 -0
  232. pymaxim-0.2.1/src/maxim/math/__init__.py +69 -0
  233. pymaxim-0.2.1/src/maxim/math/angular_gyrus.py +1025 -0
  234. pymaxim-0.2.1/src/maxim/math/ips.py +467 -0
  235. pymaxim-0.2.1/src/maxim/math/linalg.py +515 -0
  236. pymaxim-0.2.1/src/maxim/math/math_types.py +227 -0
  237. pymaxim-0.2.1/src/maxim/math/types.py +170 -0
  238. pymaxim-0.2.1/src/maxim/math/workspace.py +179 -0
  239. pymaxim-0.2.1/src/maxim/memory/__init__.py +128 -0
  240. pymaxim-0.2.1/src/maxim/memory/association_index.py +146 -0
  241. pymaxim-0.2.1/src/maxim/memory/atl.py +640 -0
  242. pymaxim-0.2.1/src/maxim/memory/atl_tracer.py +126 -0
  243. pymaxim-0.2.1/src/maxim/memory/base.py +147 -0
  244. pymaxim-0.2.1/src/maxim/memory/concept_context.py +311 -0
  245. pymaxim-0.2.1/src/maxim/memory/concept_extractor.py +419 -0
  246. pymaxim-0.2.1/src/maxim/memory/concept_grounder.py +569 -0
  247. pymaxim-0.2.1/src/maxim/memory/context_index.py +167 -0
  248. pymaxim-0.2.1/src/maxim/memory/cross_layer.py +284 -0
  249. pymaxim-0.2.1/src/maxim/memory/hippo_tracer.py +223 -0
  250. pymaxim-0.2.1/src/maxim/memory/hippocampus.py +1240 -0
  251. pymaxim-0.2.1/src/maxim/memory/hippocampus_consolidation.py +546 -0
  252. pymaxim-0.2.1/src/maxim/memory/hippocampus_persistence.py +264 -0
  253. pymaxim-0.2.1/src/maxim/memory/hippocampus_retrieval.py +527 -0
  254. pymaxim-0.2.1/src/maxim/memory/layer.py +149 -0
  255. pymaxim-0.2.1/src/maxim/memory/pattern_completer.py +210 -0
  256. pymaxim-0.2.1/src/maxim/memory/rwlock.py +110 -0
  257. pymaxim-0.2.1/src/maxim/memory/semantic_promoter.py +278 -0
  258. pymaxim-0.2.1/src/maxim/memory/semantic_types.py +467 -0
  259. pymaxim-0.2.1/src/maxim/memory/semantics.py +289 -0
  260. pymaxim-0.2.1/src/maxim/memory/spatial.py +82 -0
  261. pymaxim-0.2.1/src/maxim/memory/state_store.py +137 -0
  262. pymaxim-0.2.1/src/maxim/memory/store.py +143 -0
  263. pymaxim-0.2.1/src/maxim/memory/strategies.py +477 -0
  264. pymaxim-0.2.1/src/maxim/memory/text.py +131 -0
  265. pymaxim-0.2.1/src/maxim/memory/types.py +585 -0
  266. pymaxim-0.2.1/src/maxim/mesh/__init__.py +55 -0
  267. pymaxim-0.2.1/src/maxim/mesh/admission.py +176 -0
  268. pymaxim-0.2.1/src/maxim/mesh/agent_identity.py +211 -0
  269. pymaxim-0.2.1/src/maxim/mesh/bus.py +98 -0
  270. pymaxim-0.2.1/src/maxim/mesh/clock.py +138 -0
  271. pymaxim-0.2.1/src/maxim/mesh/identity.py +65 -0
  272. pymaxim-0.2.1/src/maxim/mesh/knowledge.py +384 -0
  273. pymaxim-0.2.1/src/maxim/mesh/message.py +116 -0
  274. pymaxim-0.2.1/src/maxim/mesh/naming.py +40 -0
  275. pymaxim-0.2.1/src/maxim/mesh/peer_channel.py +241 -0
  276. pymaxim-0.2.1/src/maxim/mesh/peer_info.py +57 -0
  277. pymaxim-0.2.1/src/maxim/mesh/peer_registry.py +139 -0
  278. pymaxim-0.2.1/src/maxim/mesh/task_delegation.py +227 -0
  279. pymaxim-0.2.1/src/maxim/models/__init__.py +25 -0
  280. pymaxim-0.2.1/src/maxim/models/audio/__init__.py +18 -0
  281. pymaxim-0.2.1/src/maxim/models/audio/transcription.py +15 -0
  282. pymaxim-0.2.1/src/maxim/models/audio/tts.py +313 -0
  283. pymaxim-0.2.1/src/maxim/models/download.py +731 -0
  284. pymaxim-0.2.1/src/maxim/models/language/__init__.py +32 -0
  285. pymaxim-0.2.1/src/maxim/models/language/anthropic_backend.py +430 -0
  286. pymaxim-0.2.1/src/maxim/models/language/cloud_dispatch.py +137 -0
  287. pymaxim-0.2.1/src/maxim/models/language/config.py +735 -0
  288. pymaxim-0.2.1/src/maxim/models/language/cost_tracker.py +495 -0
  289. pymaxim-0.2.1/src/maxim/models/language/json_parser.py +362 -0
  290. pymaxim-0.2.1/src/maxim/models/language/lane_metrics.py +302 -0
  291. pymaxim-0.2.1/src/maxim/models/language/llama_backend.py +174 -0
  292. pymaxim-0.2.1/src/maxim/models/language/mesh_trace.py +277 -0
  293. pymaxim-0.2.1/src/maxim/models/language/openai_backend.py +426 -0
  294. pymaxim-0.2.1/src/maxim/models/language/prompt_formats.py +108 -0
  295. pymaxim-0.2.1/src/maxim/models/language/router.py +1384 -0
  296. pymaxim-0.2.1/src/maxim/models/language/token_counter.py +61 -0
  297. pymaxim-0.2.1/src/maxim/models/language/transformers_backend.py +469 -0
  298. pymaxim-0.2.1/src/maxim/models/language/types.py +55 -0
  299. pymaxim-0.2.1/src/maxim/models/movement/__init__.py +1 -0
  300. pymaxim-0.2.1/src/maxim/models/movement/motor_cortex.py +168 -0
  301. pymaxim-0.2.1/src/maxim/models/vision/__init__.py +1 -0
  302. pymaxim-0.2.1/src/maxim/models/vision/engine.py +213 -0
  303. pymaxim-0.2.1/src/maxim/models/vision/registry.py +105 -0
  304. pymaxim-0.2.1/src/maxim/models/vision/rtm_engine.py +699 -0
  305. pymaxim-0.2.1/src/maxim/models/vision/segmentation.py +215 -0
  306. pymaxim-0.2.1/src/maxim/models/vision/tracker.py +158 -0
  307. pymaxim-0.2.1/src/maxim/models/vision/ultralytics_engine.py +488 -0
  308. pymaxim-0.2.1/src/maxim/modes/__init__.py +17 -0
  309. pymaxim-0.2.1/src/maxim/modes/definitions.py +892 -0
  310. pymaxim-0.2.1/src/maxim/modes/state_manager.py +277 -0
  311. pymaxim-0.2.1/src/maxim/motion/__init__.py +1 -0
  312. pymaxim-0.2.1/src/maxim/motion/movement.py +232 -0
  313. pymaxim-0.2.1/src/maxim/peer/__init__.py +11 -0
  314. pymaxim-0.2.1/src/maxim/peer/cli.py +1028 -0
  315. pymaxim-0.2.1/src/maxim/peer/config.py +140 -0
  316. pymaxim-0.2.1/src/maxim/planning/__init__.py +58 -0
  317. pymaxim-0.2.1/src/maxim/planning/adaptive_planner.py +602 -0
  318. pymaxim-0.2.1/src/maxim/planning/adaptive_policy.py +141 -0
  319. pymaxim-0.2.1/src/maxim/planning/base.py +63 -0
  320. pymaxim-0.2.1/src/maxim/planning/constraints.py +10 -0
  321. pymaxim-0.2.1/src/maxim/planning/decision_engine.py +75 -0
  322. pymaxim-0.2.1/src/maxim/planning/plan_dashboard.py +213 -0
  323. pymaxim-0.2.1/src/maxim/planning/plan_document.py +873 -0
  324. pymaxim-0.2.1/src/maxim/planning/plan_logger.py +182 -0
  325. pymaxim-0.2.1/src/maxim/planning/plan_manager.py +698 -0
  326. pymaxim-0.2.1/src/maxim/planning/planning.py +44 -0
  327. pymaxim-0.2.1/src/maxim/planning/policy.py +29 -0
  328. pymaxim-0.2.1/src/maxim/prompts/__init__.py +13 -0
  329. pymaxim-0.2.1/src/maxim/prompts/prompt_profiles.py +128 -0
  330. pymaxim-0.2.1/src/maxim/proprioception/__init__.py +35 -0
  331. pymaxim-0.2.1/src/maxim/proprioception/focus_learner.py +700 -0
  332. pymaxim-0.2.1/src/maxim/proprioception/movement_tracker.py +281 -0
  333. pymaxim-0.2.1/src/maxim/proprioception/pain.py +593 -0
  334. pymaxim-0.2.1/src/maxim/proprioception/pain_bus.py +266 -0
  335. pymaxim-0.2.1/src/maxim/proprioception/perceived_pain.py +489 -0
  336. pymaxim-0.2.1/src/maxim/provenance/__init__.py +24 -0
  337. pymaxim-0.2.1/src/maxim/provenance/collector.py +212 -0
  338. pymaxim-0.2.1/src/maxim/provenance/render.py +164 -0
  339. pymaxim-0.2.1/src/maxim/provenance/store.py +222 -0
  340. pymaxim-0.2.1/src/maxim/provenance/types.py +177 -0
  341. pymaxim-0.2.1/src/maxim/py.typed +0 -0
  342. pymaxim-0.2.1/src/maxim/report.py +196 -0
  343. pymaxim-0.2.1/src/maxim/retrieval/__init__.py +19 -0
  344. pymaxim-0.2.1/src/maxim/retrieval/orchestrator.py +326 -0
  345. pymaxim-0.2.1/src/maxim/retrieval/signals.py +124 -0
  346. pymaxim-0.2.1/src/maxim/retrieval/temporal_signal.py +403 -0
  347. pymaxim-0.2.1/src/maxim/runtime/__init__.py +77 -0
  348. pymaxim-0.2.1/src/maxim/runtime/agent_factory.py +390 -0
  349. pymaxim-0.2.1/src/maxim/runtime/agent_loop.py +2152 -0
  350. pymaxim-0.2.1/src/maxim/runtime/agent_pool.py +355 -0
  351. pymaxim-0.2.1/src/maxim/runtime/approval.py +132 -0
  352. pymaxim-0.2.1/src/maxim/runtime/bio_integration.py +167 -0
  353. pymaxim-0.2.1/src/maxim/runtime/bootstrap.py +493 -0
  354. pymaxim-0.2.1/src/maxim/runtime/capabilities.py +114 -0
  355. pymaxim-0.2.1/src/maxim/runtime/capture.py +666 -0
  356. pymaxim-0.2.1/src/maxim/runtime/concurrent_executor.py +187 -0
  357. pymaxim-0.2.1/src/maxim/runtime/dn_controller.py +92 -0
  358. pymaxim-0.2.1/src/maxim/runtime/executor.py +253 -0
  359. pymaxim-0.2.1/src/maxim/runtime/fear_gate.py +214 -0
  360. pymaxim-0.2.1/src/maxim/runtime/fetch_cache.py +163 -0
  361. pymaxim-0.2.1/src/maxim/runtime/file_patterns.py +134 -0
  362. pymaxim-0.2.1/src/maxim/runtime/function_router.py +296 -0
  363. pymaxim-0.2.1/src/maxim/runtime/heartbeat.py +265 -0
  364. pymaxim-0.2.1/src/maxim/runtime/lane_backends.py +1309 -0
  365. pymaxim-0.2.1/src/maxim/runtime/lane_models.py +288 -0
  366. pymaxim-0.2.1/src/maxim/runtime/leader_mode.py +100 -0
  367. pymaxim-0.2.1/src/maxim/runtime/leader_proxy.py +1269 -0
  368. pymaxim-0.2.1/src/maxim/runtime/llm_server.py +156 -0
  369. pymaxim-0.2.1/src/maxim/runtime/local_server_spawner.py +405 -0
  370. pymaxim-0.2.1/src/maxim/runtime/loop_controller.py +545 -0
  371. pymaxim-0.2.1/src/maxim/runtime/loop_state.py +63 -0
  372. pymaxim-0.2.1/src/maxim/runtime/loop_types.py +59 -0
  373. pymaxim-0.2.1/src/maxim/runtime/pain_interceptor.py +194 -0
  374. pymaxim-0.2.1/src/maxim/runtime/preemption.py +289 -0
  375. pymaxim-0.2.1/src/maxim/runtime/prefetch.py +1278 -0
  376. pymaxim-0.2.1/src/maxim/runtime/rate_limiter.py +93 -0
  377. pymaxim-0.2.1/src/maxim/runtime/sim_adapter.py +182 -0
  378. pymaxim-0.2.1/src/maxim/runtime/skill_matcher.py +197 -0
  379. pymaxim-0.2.1/src/maxim/runtime/state.py +73 -0
  380. pymaxim-0.2.1/src/maxim/runtime/system_metrics.py +371 -0
  381. pymaxim-0.2.1/src/maxim/runtime/tool_dispatch.py +251 -0
  382. pymaxim-0.2.1/src/maxim/runtime/worker_pool.py +595 -0
  383. pymaxim-0.2.1/src/maxim/salience/__init__.py +73 -0
  384. pymaxim-0.2.1/src/maxim/salience/movement_detector.py +291 -0
  385. pymaxim-0.2.1/src/maxim/salience/novelty.py +227 -0
  386. pymaxim-0.2.1/src/maxim/salience/protocols.py +273 -0
  387. pymaxim-0.2.1/src/maxim/salience/salience_network.py +694 -0
  388. pymaxim-0.2.1/src/maxim/salience/where.py +328 -0
  389. pymaxim-0.2.1/src/maxim/session.py +427 -0
  390. pymaxim-0.2.1/src/maxim/similarity/__init__.py +52 -0
  391. pymaxim-0.2.1/src/maxim/similarity/ec.py +478 -0
  392. pymaxim-0.2.1/src/maxim/similarity/indices.py +174 -0
  393. pymaxim-0.2.1/src/maxim/similarity/lsh.py +241 -0
  394. pymaxim-0.2.1/src/maxim/similarity/semantic.py +641 -0
  395. pymaxim-0.2.1/src/maxim/similarity/signature.py +261 -0
  396. pymaxim-0.2.1/src/maxim/simulation/__init__.py +1 -0
  397. pymaxim-0.2.1/src/maxim/simulation/arcs.py +320 -0
  398. pymaxim-0.2.1/src/maxim/simulation/benchmark.py +905 -0
  399. pymaxim-0.2.1/src/maxim/simulation/bridge.py +193 -0
  400. pymaxim-0.2.1/src/maxim/simulation/campaign_runner.py +260 -0
  401. pymaxim-0.2.1/src/maxim/simulation/container_runner.py +613 -0
  402. pymaxim-0.2.1/src/maxim/simulation/conversational_source.py +158 -0
  403. pymaxim-0.2.1/src/maxim/simulation/dm_runtime.py +1053 -0
  404. pymaxim-0.2.1/src/maxim/simulation/dm_schema.py +447 -0
  405. pymaxim-0.2.1/src/maxim/simulation/entity_designer.py +404 -0
  406. pymaxim-0.2.1/src/maxim/simulation/experiment.py +182 -0
  407. pymaxim-0.2.1/src/maxim/simulation/generative_runner.py +411 -0
  408. pymaxim-0.2.1/src/maxim/simulation/instrumented_executor.py +76 -0
  409. pymaxim-0.2.1/src/maxim/simulation/interactive.py +517 -0
  410. pymaxim-0.2.1/src/maxim/simulation/introspection.py +341 -0
  411. pymaxim-0.2.1/src/maxim/simulation/narrator.py +338 -0
  412. pymaxim-0.2.1/src/maxim/simulation/orchestrator.py +1514 -0
  413. pymaxim-0.2.1/src/maxim/simulation/personas.py +389 -0
  414. pymaxim-0.2.1/src/maxim/simulation/plan_arc_bridge.py +340 -0
  415. pymaxim-0.2.1/src/maxim/simulation/report.py +405 -0
  416. pymaxim-0.2.1/src/maxim/simulation/research_agents.py +455 -0
  417. pymaxim-0.2.1/src/maxim/simulation/research_orchestrator.py +315 -0
  418. pymaxim-0.2.1/src/maxim/simulation/research_tools.py +219 -0
  419. pymaxim-0.2.1/src/maxim/simulation/response_policy.py +129 -0
  420. pymaxim-0.2.1/src/maxim/simulation/sandbox.py +953 -0
  421. pymaxim-0.2.1/src/maxim/simulation/scenario_source.py +276 -0
  422. pymaxim-0.2.1/src/maxim/simulation/sim_logger.py +594 -0
  423. pymaxim-0.2.1/src/maxim/simulation/sim_types.py +145 -0
  424. pymaxim-0.2.1/src/maxim/simulation/simulation_generator.py +334 -0
  425. pymaxim-0.2.1/src/maxim/simulation/sinks.py +124 -0
  426. pymaxim-0.2.1/src/maxim/simulation/sources.py +47 -0
  427. pymaxim-0.2.1/src/maxim/simulation/spinner.py +94 -0
  428. pymaxim-0.2.1/src/maxim/simulation/tools.py +976 -0
  429. pymaxim-0.2.1/src/maxim/simulation/tools_dm.py +290 -0
  430. pymaxim-0.2.1/src/maxim/simulation/validation.py +479 -0
  431. pymaxim-0.2.1/src/maxim/spatial/__init__.py +25 -0
  432. pymaxim-0.2.1/src/maxim/spatial/bounds_learner.py +545 -0
  433. pymaxim-0.2.1/src/maxim/spatial/spatial_map.py +601 -0
  434. pymaxim-0.2.1/src/maxim/time/__init__.py +17 -0
  435. pymaxim-0.2.1/src/maxim/time/oscillator.py +356 -0
  436. pymaxim-0.2.1/src/maxim/time/scn.py +688 -0
  437. pymaxim-0.2.1/src/maxim/time/temporal_signature.py +151 -0
  438. pymaxim-0.2.1/src/maxim/tools/__init__.py +76 -0
  439. pymaxim-0.2.1/src/maxim/tools/base.py +63 -0
  440. pymaxim-0.2.1/src/maxim/tools/code_tools.py +160 -0
  441. pymaxim-0.2.1/src/maxim/tools/comms.py +112 -0
  442. pymaxim-0.2.1/src/maxim/tools/display.py +172 -0
  443. pymaxim-0.2.1/src/maxim/tools/explain.py +151 -0
  444. pymaxim-0.2.1/src/maxim/tools/filesystem.py +1007 -0
  445. pymaxim-0.2.1/src/maxim/tools/git_tools.py +86 -0
  446. pymaxim-0.2.1/src/maxim/tools/http_fetch.py +415 -0
  447. pymaxim-0.2.1/src/maxim/tools/internet_search.py +584 -0
  448. pymaxim-0.2.1/src/maxim/tools/introspection.py +811 -0
  449. pymaxim-0.2.1/src/maxim/tools/learned_index.py +379 -0
  450. pymaxim-0.2.1/src/maxim/tools/math_tool.py +411 -0
  451. pymaxim-0.2.1/src/maxim/tools/mode_switch.py +248 -0
  452. pymaxim-0.2.1/src/maxim/tools/narrative.py +172 -0
  453. pymaxim-0.2.1/src/maxim/tools/novelty.py +60 -0
  454. pymaxim-0.2.1/src/maxim/tools/reachy.py +1689 -0
  455. pymaxim-0.2.1/src/maxim/tools/reachy_stubs.py +227 -0
  456. pymaxim-0.2.1/src/maxim/tools/registry.py +83 -0
  457. pymaxim-0.2.1/src/maxim/tools/response.py +166 -0
  458. pymaxim-0.2.1/src/maxim/tools/sandbox.py +683 -0
  459. pymaxim-0.2.1/src/maxim/tools/sleep.py +57 -0
  460. pymaxim-0.2.1/src/maxim/tunnel/__init__.py +13 -0
  461. pymaxim-0.2.1/src/maxim/tunnel/cli.py +631 -0
  462. pymaxim-0.2.1/src/maxim/tunnel/cloudflared.py +179 -0
  463. pymaxim-0.2.1/src/maxim/tunnel/config.py +87 -0
  464. pymaxim-0.2.1/src/maxim/tunnel/daemon_spawner.py +164 -0
  465. pymaxim-0.2.1/src/maxim/tunnel/keys.py +185 -0
  466. pymaxim-0.2.1/src/maxim/utils/__init__.py +88 -0
  467. pymaxim-0.2.1/src/maxim/utils/agent_output.py +543 -0
  468. pymaxim-0.2.1/src/maxim/utils/atomic_io.py +66 -0
  469. pymaxim-0.2.1/src/maxim/utils/audio.py +173 -0
  470. pymaxim-0.2.1/src/maxim/utils/audit.py +136 -0
  471. pymaxim-0.2.1/src/maxim/utils/cloud_audit.py +69 -0
  472. pymaxim-0.2.1/src/maxim/utils/cloud_redaction.py +193 -0
  473. pymaxim-0.2.1/src/maxim/utils/coding_guidelines.py +763 -0
  474. pymaxim-0.2.1/src/maxim/utils/config.py +290 -0
  475. pymaxim-0.2.1/src/maxim/utils/content_safety.py +319 -0
  476. pymaxim-0.2.1/src/maxim/utils/data_management.py +334 -0
  477. pymaxim-0.2.1/src/maxim/utils/detections.py +52 -0
  478. pymaxim-0.2.1/src/maxim/utils/filesystem_policy.py +983 -0
  479. pymaxim-0.2.1/src/maxim/utils/formatting.py +148 -0
  480. pymaxim-0.2.1/src/maxim/utils/gpu_compat.py +205 -0
  481. pymaxim-0.2.1/src/maxim/utils/gpu_detect.py +114 -0
  482. pymaxim-0.2.1/src/maxim/utils/internet_access.py +512 -0
  483. pymaxim-0.2.1/src/maxim/utils/last_run.py +144 -0
  484. pymaxim-0.2.1/src/maxim/utils/logging.py +210 -0
  485. pymaxim-0.2.1/src/maxim/utils/output_watcher.py +459 -0
  486. pymaxim-0.2.1/src/maxim/utils/paths.py +200 -0
  487. pymaxim-0.2.1/src/maxim/utils/plotting.py +335 -0
  488. pymaxim-0.2.1/src/maxim/utils/prompts.py +327 -0
  489. pymaxim-0.2.1/src/maxim/utils/queueing.py +15 -0
  490. pymaxim-0.2.1/src/maxim/utils/reachy_diagnostics.py +222 -0
  491. pymaxim-0.2.1/src/maxim/utils/response_config.py +480 -0
  492. pymaxim-0.2.1/src/maxim/utils/response_output.py +313 -0
  493. pymaxim-0.2.1/src/maxim/utils/sandbox_executor.py +828 -0
  494. pymaxim-0.2.1/src/maxim/utils/singleton.py +198 -0
  495. pymaxim-0.2.1/src/maxim/utils/structured_logging.py +425 -0
  496. pymaxim-0.2.1/src/maxim/utils/thread_manager.py +229 -0
  497. pymaxim-0.2.1/src/maxim/utils/web_cache.py +373 -0
  498. pymaxim-0.2.1/src/pymaxim.egg-info/PKG-INFO +232 -0
  499. pymaxim-0.2.1/src/pymaxim.egg-info/SOURCES.txt +501 -0
  500. pymaxim-0.2.1/src/pymaxim.egg-info/dependency_links.txt +1 -0
  501. pymaxim-0.2.1/src/pymaxim.egg-info/entry_points.txt +3 -0
  502. pymaxim-0.2.1/src/pymaxim.egg-info/requires.txt +83 -0
  503. pymaxim-0.2.1/src/pymaxim.egg-info/top_level.txt +1 -0
pymaxim-0.2.1/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 Denny Schaedig
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
pymaxim-0.2.1/PKG-INFO ADDED
@@ -0,0 +1,232 @@
1
+ Metadata-Version: 2.4
2
+ Name: pymaxim
3
+ Version: 0.2.1
4
+ Summary: Bio-inspired cognitive architecture with adaptive planning, biological memory systems, and local LLM inference. Works headless, with simulation, or connected to robots.
5
+ Author: Denny Schaedig
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/dennys246/Maxim
8
+ Project-URL: Repository, https://github.com/dennys246/Maxim.git
9
+ Project-URL: Issues, https://github.com/dennys246/Maxim/issues
10
+ Keywords: cognitive-architecture,llm,agentic,planning,embodied-ai,robotics,memory,simulation,bio-inspired
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: numpy<3.0,>=1.26
23
+ Requires-Dist: scipy<2.0,>=1.11
24
+ Requires-Dist: pyyaml<7.0,>=6.0
25
+ Requires-Dist: json-repair<1.0,>=0.30
26
+ Requires-Dist: rich<14.0,>=13.0.0
27
+ Provides-Extra: vision
28
+ Requires-Dist: opencv-python<5.0,>=4.12; extra == "vision"
29
+ Requires-Dist: onnxruntime<2.0,>=1.20; extra == "vision"
30
+ Provides-Extra: audio
31
+ Requires-Dist: faster-whisper>=1.1.1; extra == "audio"
32
+ Requires-Dist: ctranslate2>=4.6.0; extra == "audio"
33
+ Requires-Dist: av>=14.0.0; extra == "audio"
34
+ Provides-Extra: reachy
35
+ Requires-Dist: reachy-mini[gstreamer]<1.3,>=1.2.6; extra == "reachy"
36
+ Provides-Extra: search
37
+ Requires-Dist: ddgs>=6.0.0; extra == "search"
38
+ Provides-Extra: training
39
+ Requires-Dist: tensorflow<3.0,>=2.20; extra == "training"
40
+ Requires-Dist: keras<4.0,>=3.13; extra == "training"
41
+ Provides-Extra: llm-llama
42
+ Requires-Dist: llama-cpp-python>=0.3.8; extra == "llm-llama"
43
+ Provides-Extra: llm-server
44
+ Requires-Dist: llama-cpp-python>=0.3.8; extra == "llm-server"
45
+ Requires-Dist: sse-starlette>=1.6.0; extra == "llm-server"
46
+ Requires-Dist: uvicorn>=0.22.0; extra == "llm-server"
47
+ Requires-Dist: fastapi>=0.100.0; extra == "llm-server"
48
+ Requires-Dist: pydantic-settings>=2.0.0; extra == "llm-server"
49
+ Requires-Dist: starlette-context>=0.3.6; extra == "llm-server"
50
+ Requires-Dist: openai>=1.0.0; extra == "llm-server"
51
+ Requires-Dist: tiktoken>=0.7.0; extra == "llm-server"
52
+ Provides-Extra: llm-torch
53
+ Requires-Dist: torch>=2.7; extra == "llm-torch"
54
+ Requires-Dist: transformers>=4.40.0; extra == "llm-torch"
55
+ Requires-Dist: accelerate>=0.27.0; extra == "llm-torch"
56
+ Requires-Dist: bitsandbytes>=0.43.0; extra == "llm-torch"
57
+ Requires-Dist: sentencepiece>=0.2.0; extra == "llm-torch"
58
+ Requires-Dist: huggingface-hub>=0.24.0; extra == "llm-torch"
59
+ Provides-Extra: llm-anthropic
60
+ Requires-Dist: anthropic>=0.40.0; extra == "llm-anthropic"
61
+ Provides-Extra: llm-openai
62
+ Requires-Dist: openai>=1.0.0; extra == "llm-openai"
63
+ Requires-Dist: tiktoken>=0.7.0; extra == "llm-openai"
64
+ Provides-Extra: tts
65
+ Requires-Dist: piper-tts>=1.2.0; extra == "tts"
66
+ Provides-Extra: yolo
67
+ Requires-Dist: ultralytics<9.0,>=8.3.248; extra == "yolo"
68
+ Requires-Dist: lap<1.0,>=0.5.12; extra == "yolo"
69
+ Provides-Extra: comms
70
+ Requires-Dist: twilio>=9.0.0; extra == "comms"
71
+ Requires-Dist: fastapi>=0.100.0; extra == "comms"
72
+ Requires-Dist: uvicorn>=0.24.0; extra == "comms"
73
+ Provides-Extra: semantic
74
+ Requires-Dist: sentence-transformers>=2.2.0; extra == "semantic"
75
+ Requires-Dist: torch>=2.1; extra == "semantic"
76
+ Provides-Extra: temporal
77
+ Requires-Dist: dateparser>=1.2.0; extra == "temporal"
78
+ Provides-Extra: database
79
+ Requires-Dist: psycopg[binary]>=3.1; extra == "database"
80
+ Requires-Dist: pgvector>=0.3; extra == "database"
81
+ Provides-Extra: all
82
+ Requires-Dist: pymaxim[audio,comms,database,llm-anthropic,llm-llama,llm-openai,llm-server,reachy,search,temporal,training,tts,vision]; extra == "all"
83
+ Provides-Extra: test
84
+ Requires-Dist: pytest>=8.0.0; extra == "test"
85
+ Requires-Dist: pytest-cov>=4.1.0; extra == "test"
86
+ Requires-Dist: pytest-xdist>=3.5.0; extra == "test"
87
+ Dynamic: license-file
88
+
89
+ # Maxim
90
+
91
+ A bio-inspired cognitive architecture for AI agents. Combines a 5-agent pipeline with biological memory systems (Hippocampus, NAc, ATL, SCN, Angular Gyrus) and a reactive Default Network. Works headless, in simulation, or connected to a robot.
92
+
93
+ ## Quickstart
94
+
95
+ ```bash
96
+ # With Claude (fastest way to start)
97
+ pip install pymaxim[llm-anthropic]
98
+ export ANTHROPIC_API_KEY=sk-...
99
+ maxim --sim "test memory recall under interference"
100
+
101
+ # Or with a local model (no API key needed)
102
+ pip install pymaxim[llm-llama]
103
+ maxim --list-models # see available models
104
+ maxim --sim "test memory recall" --llm mistral-7b # auto-downloads on first run
105
+ ```
106
+
107
+ Check your setup with `maxim doctor`, and find session results in `~/.maxim/sessions/`.
108
+
109
+ ## What You Can Do
110
+
111
+ - **Simulate cognitive scenarios** -- test memory, safety, causal learning with LLM-driven narrative arcs
112
+ - **Run DM campaigns** -- multi-encounter branching stories with SEM-embodied entities
113
+ - **Benchmark models** -- compare local and cloud LLMs across cognitive task suites
114
+ - **Connect robots** -- hardware-agnostic runtime; Reachy Mini ships in-tree, third-party robots plug in via the `maxim.robots` entry-point group (Atlas, Spot, custom drones — see [robot-setup.md](docs/user/robot-setup.md#adding-a-new-robot)). Or run headless.
115
+ - **Use the Python API** -- 17 verb-based functions for programmatic access
116
+
117
+ ## Installation
118
+
119
+ ```bash
120
+ pip install pymaxim
121
+ ```
122
+
123
+ ### Optional Extras
124
+
125
+ | Extra | What it adds |
126
+ |-------|-------------|
127
+ | `llm-llama` | Local LLM inference via llama.cpp |
128
+ | `llm-torch` | PyTorch/Transformers backend |
129
+ | `llm-anthropic` | Claude backend |
130
+ | `llm-openai` | OpenAI backend |
131
+ | `vision` | Camera + object detection |
132
+ | `audio` | Microphone + Whisper transcription |
133
+ | `reachy` | Reachy Mini robot SDK |
134
+ | `comms` | Twilio SMS/Voice |
135
+ | `semantic` | Sentence-transformer embeddings |
136
+ | `tts` | Text-to-speech via Piper |
137
+ | `database` | PostgreSQL + pgvector memory stores |
138
+
139
+ See [getting-started.md](docs/user/getting-started.md) for the full list of 16 extras.
140
+
141
+ ```bash
142
+ # Local LLM + vision
143
+ pip install pymaxim[llm-llama,vision]
144
+
145
+ # Everything for development
146
+ pip install -e '.[llm-llama,llm-anthropic,llm-openai,vision,audio]'
147
+ ```
148
+
149
+ ## Python API
150
+
151
+ ```python
152
+ import maxim
153
+
154
+ # Run a simulation
155
+ result = maxim.imagine(goal="test safety boundaries", persona="adversarial")
156
+
157
+ # Inspect bio-subsystems
158
+ state = maxim.observe("memory")
159
+
160
+ # Diagnose environment
161
+ report = maxim.diagnose()
162
+
163
+ # Start the agentic loop
164
+ maxim.run(model="mistral-7b")
165
+
166
+ # Manage models
167
+ models = maxim.list_models()
168
+ maxim.download_model("qwen2.5-14b-instruct")
169
+ ```
170
+
171
+ See [docs/user/python-api.md](docs/user/python-api.md) for the full API reference.
172
+
173
+ ## CLI Quick Reference
174
+
175
+ ```bash
176
+ # Agent runtime with local LLM
177
+ maxim --llm mistral-7b
178
+
179
+ # Agent runtime with Claude
180
+ maxim --llm claude-sonnet
181
+
182
+ # Generative campaign
183
+ maxim --sim "test memory recall" --persona adversarial
184
+
185
+ # YAML scenario (direct injection)
186
+ maxim --sim scenarios/experiments/hippocampal_recall_short.yaml
187
+
188
+ # DM campaign
189
+ maxim --sim scenarios/campaigns/heist_v1.yaml
190
+
191
+ # Multi-model benchmark
192
+ maxim --sim benchmark --models mistral-7b,qwen2.5-14b
193
+
194
+ # Environment diagnostics
195
+ maxim doctor
196
+
197
+ # Model management
198
+ maxim --list-models
199
+ maxim --delete-model llama-2-13b-chat
200
+ ```
201
+
202
+ See [docs/user/cli-reference.md](docs/user/cli-reference.md) for all flags.
203
+
204
+ ## Operating Modes
205
+
206
+ Two independent dimensions control behavior:
207
+
208
+ - **ProcessingState**: `awake` or `sleep` (sleep is a tool the agent calls; wakes on user input)
209
+ - **OperationalMode**: `planning` (propose + approve), `supervised` (act within bounds), `autonomous` (full self-direction)
210
+
211
+ See [docs/user/modes-guide.md](docs/user/modes-guide.md) for details.
212
+
213
+ ## Documentation
214
+
215
+ | Guide | Description |
216
+ |-------|-------------|
217
+ | [Getting Started](docs/user/getting-started.md) | First-run walkthrough |
218
+ | [CLI Reference](docs/user/cli-reference.md) | All command-line flags |
219
+ | [Python API](docs/user/python-api.md) | Programmatic usage |
220
+ | [Simulation](docs/user/simulation.md) | Campaigns, scenarios, benchmarks |
221
+ | [Modes](docs/user/modes-guide.md) | Operating modes and autonomy |
222
+ | [LLM Setup](docs/user/llm-setup.md) | Model download and configuration |
223
+ | [Peer Setup](docs/user/peer-setup.md) | Multi-machine / tunnel setup |
224
+ | [Architecture](docs/reference.md) | Module map, bio-system glossary, planning system |
225
+
226
+ ## Contributing
227
+
228
+ Issues and PRs welcome at [github.com/dennys246/Maxim](https://github.com/dennys246/Maxim).
229
+
230
+ ## License
231
+
232
+ See [LICENSE](LICENSE) for details.
@@ -0,0 +1,144 @@
1
+ # Maxim
2
+
3
+ A bio-inspired cognitive architecture for AI agents. Combines a 5-agent pipeline with biological memory systems (Hippocampus, NAc, ATL, SCN, Angular Gyrus) and a reactive Default Network. Works headless, in simulation, or connected to a robot.
4
+
5
+ ## Quickstart
6
+
7
+ ```bash
8
+ # With Claude (fastest way to start)
9
+ pip install pymaxim[llm-anthropic]
10
+ export ANTHROPIC_API_KEY=sk-...
11
+ maxim --sim "test memory recall under interference"
12
+
13
+ # Or with a local model (no API key needed)
14
+ pip install pymaxim[llm-llama]
15
+ maxim --list-models # see available models
16
+ maxim --sim "test memory recall" --llm mistral-7b # auto-downloads on first run
17
+ ```
18
+
19
+ Check your setup with `maxim doctor`, and find session results in `~/.maxim/sessions/`.
20
+
21
+ ## What You Can Do
22
+
23
+ - **Simulate cognitive scenarios** -- test memory, safety, causal learning with LLM-driven narrative arcs
24
+ - **Run DM campaigns** -- multi-encounter branching stories with SEM-embodied entities
25
+ - **Benchmark models** -- compare local and cloud LLMs across cognitive task suites
26
+ - **Connect robots** -- hardware-agnostic runtime; Reachy Mini ships in-tree, third-party robots plug in via the `maxim.robots` entry-point group (Atlas, Spot, custom drones — see [robot-setup.md](docs/user/robot-setup.md#adding-a-new-robot)). Or run headless.
27
+ - **Use the Python API** -- 17 verb-based functions for programmatic access
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ pip install pymaxim
33
+ ```
34
+
35
+ ### Optional Extras
36
+
37
+ | Extra | What it adds |
38
+ |-------|-------------|
39
+ | `llm-llama` | Local LLM inference via llama.cpp |
40
+ | `llm-torch` | PyTorch/Transformers backend |
41
+ | `llm-anthropic` | Claude backend |
42
+ | `llm-openai` | OpenAI backend |
43
+ | `vision` | Camera + object detection |
44
+ | `audio` | Microphone + Whisper transcription |
45
+ | `reachy` | Reachy Mini robot SDK |
46
+ | `comms` | Twilio SMS/Voice |
47
+ | `semantic` | Sentence-transformer embeddings |
48
+ | `tts` | Text-to-speech via Piper |
49
+ | `database` | PostgreSQL + pgvector memory stores |
50
+
51
+ See [getting-started.md](docs/user/getting-started.md) for the full list of 16 extras.
52
+
53
+ ```bash
54
+ # Local LLM + vision
55
+ pip install pymaxim[llm-llama,vision]
56
+
57
+ # Everything for development
58
+ pip install -e '.[llm-llama,llm-anthropic,llm-openai,vision,audio]'
59
+ ```
60
+
61
+ ## Python API
62
+
63
+ ```python
64
+ import maxim
65
+
66
+ # Run a simulation
67
+ result = maxim.imagine(goal="test safety boundaries", persona="adversarial")
68
+
69
+ # Inspect bio-subsystems
70
+ state = maxim.observe("memory")
71
+
72
+ # Diagnose environment
73
+ report = maxim.diagnose()
74
+
75
+ # Start the agentic loop
76
+ maxim.run(model="mistral-7b")
77
+
78
+ # Manage models
79
+ models = maxim.list_models()
80
+ maxim.download_model("qwen2.5-14b-instruct")
81
+ ```
82
+
83
+ See [docs/user/python-api.md](docs/user/python-api.md) for the full API reference.
84
+
85
+ ## CLI Quick Reference
86
+
87
+ ```bash
88
+ # Agent runtime with local LLM
89
+ maxim --llm mistral-7b
90
+
91
+ # Agent runtime with Claude
92
+ maxim --llm claude-sonnet
93
+
94
+ # Generative campaign
95
+ maxim --sim "test memory recall" --persona adversarial
96
+
97
+ # YAML scenario (direct injection)
98
+ maxim --sim scenarios/experiments/hippocampal_recall_short.yaml
99
+
100
+ # DM campaign
101
+ maxim --sim scenarios/campaigns/heist_v1.yaml
102
+
103
+ # Multi-model benchmark
104
+ maxim --sim benchmark --models mistral-7b,qwen2.5-14b
105
+
106
+ # Environment diagnostics
107
+ maxim doctor
108
+
109
+ # Model management
110
+ maxim --list-models
111
+ maxim --delete-model llama-2-13b-chat
112
+ ```
113
+
114
+ See [docs/user/cli-reference.md](docs/user/cli-reference.md) for all flags.
115
+
116
+ ## Operating Modes
117
+
118
+ Two independent dimensions control behavior:
119
+
120
+ - **ProcessingState**: `awake` or `sleep` (sleep is a tool the agent calls; wakes on user input)
121
+ - **OperationalMode**: `planning` (propose + approve), `supervised` (act within bounds), `autonomous` (full self-direction)
122
+
123
+ See [docs/user/modes-guide.md](docs/user/modes-guide.md) for details.
124
+
125
+ ## Documentation
126
+
127
+ | Guide | Description |
128
+ |-------|-------------|
129
+ | [Getting Started](docs/user/getting-started.md) | First-run walkthrough |
130
+ | [CLI Reference](docs/user/cli-reference.md) | All command-line flags |
131
+ | [Python API](docs/user/python-api.md) | Programmatic usage |
132
+ | [Simulation](docs/user/simulation.md) | Campaigns, scenarios, benchmarks |
133
+ | [Modes](docs/user/modes-guide.md) | Operating modes and autonomy |
134
+ | [LLM Setup](docs/user/llm-setup.md) | Model download and configuration |
135
+ | [Peer Setup](docs/user/peer-setup.md) | Multi-machine / tunnel setup |
136
+ | [Architecture](docs/reference.md) | Module map, bio-system glossary, planning system |
137
+
138
+ ## Contributing
139
+
140
+ Issues and PRs welcome at [github.com/dennys246/Maxim](https://github.com/dennys246/Maxim).
141
+
142
+ ## License
143
+
144
+ See [LICENSE](LICENSE) for details.