rlm-code 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. rlm_code-0.1.0/.gitignore +199 -0
  2. rlm_code-0.1.0/CHANGELOG.md +33 -0
  3. rlm_code-0.1.0/LICENSE +201 -0
  4. rlm_code-0.1.0/NOTICE +8 -0
  5. rlm_code-0.1.0/PKG-INFO +416 -0
  6. rlm_code-0.1.0/README.md +323 -0
  7. rlm_code-0.1.0/adk_rlm/__init__.py +122 -0
  8. rlm_code-0.1.0/adk_rlm/agent.py +10 -0
  9. rlm_code-0.1.0/adk_rlm/agents/__init__.py +5 -0
  10. rlm_code-0.1.0/adk_rlm/agents/rlm_agent.py +641 -0
  11. rlm_code-0.1.0/adk_rlm/callbacks/__init__.py +13 -0
  12. rlm_code-0.1.0/adk_rlm/callbacks/code_execution.py +194 -0
  13. rlm_code-0.1.0/adk_rlm/cli.py +1129 -0
  14. rlm_code-0.1.0/adk_rlm/code_executor.py +985 -0
  15. rlm_code-0.1.0/adk_rlm/events.py +92 -0
  16. rlm_code-0.1.0/adk_rlm/files/__init__.py +65 -0
  17. rlm_code-0.1.0/adk_rlm/files/base.py +101 -0
  18. rlm_code-0.1.0/adk_rlm/files/lazy.py +464 -0
  19. rlm_code-0.1.0/adk_rlm/files/loader.py +365 -0
  20. rlm_code-0.1.0/adk_rlm/files/parsers/__init__.py +16 -0
  21. rlm_code-0.1.0/adk_rlm/files/parsers/base.py +75 -0
  22. rlm_code-0.1.0/adk_rlm/files/parsers/pdf.py +151 -0
  23. rlm_code-0.1.0/adk_rlm/files/parsers/text.py +206 -0
  24. rlm_code-0.1.0/adk_rlm/files/sources/__init__.py +24 -0
  25. rlm_code-0.1.0/adk_rlm/files/sources/base.py +104 -0
  26. rlm_code-0.1.0/adk_rlm/files/sources/gcs.py +472 -0
  27. rlm_code-0.1.0/adk_rlm/files/sources/local.py +175 -0
  28. rlm_code-0.1.0/adk_rlm/llm.py +71 -0
  29. rlm_code-0.1.0/adk_rlm/logging/__init__.py +6 -0
  30. rlm_code-0.1.0/adk_rlm/logging/rlm_logger.py +207 -0
  31. rlm_code-0.1.0/adk_rlm/logging/verbose.py +403 -0
  32. rlm_code-0.1.0/adk_rlm/main.py +379 -0
  33. rlm_code-0.1.0/adk_rlm/prompts.py +346 -0
  34. rlm_code-0.1.0/adk_rlm/repl/__init__.py +6 -0
  35. rlm_code-0.1.0/adk_rlm/repl/local_repl.py +346 -0
  36. rlm_code-0.1.0/adk_rlm/repl/safe_builtins.py +111 -0
  37. rlm_code-0.1.0/adk_rlm/templates/index.html +2234 -0
  38. rlm_code-0.1.0/adk_rlm/tools/__init__.py +1 -0
  39. rlm_code-0.1.0/adk_rlm/types.py +344 -0
  40. rlm_code-0.1.0/adk_rlm/usage.py +103 -0
  41. rlm_code-0.1.0/adk_rlm/web.py +781 -0
  42. rlm_code-0.1.0/eval/packs/README.md +13 -0
  43. rlm_code-0.1.0/pyproject.toml +284 -0
  44. rlm_code-0.1.0/rlm_code/__init__.py +9 -0
  45. rlm_code-0.1.0/rlm_code/__main__.py +10 -0
  46. rlm_code-0.1.0/rlm_code/commands/__init__.py +27 -0
  47. rlm_code-0.1.0/rlm_code/commands/config_command.py +191 -0
  48. rlm_code-0.1.0/rlm_code/commands/create_command.py +256 -0
  49. rlm_code-0.1.0/rlm_code/commands/demo_command.py +948 -0
  50. rlm_code-0.1.0/rlm_code/commands/export_command.py +363 -0
  51. rlm_code-0.1.0/rlm_code/commands/init_command.py +454 -0
  52. rlm_code-0.1.0/rlm_code/commands/interactive_command.py +3324 -0
  53. rlm_code-0.1.0/rlm_code/commands/mcp_command.py +435 -0
  54. rlm_code-0.1.0/rlm_code/commands/models_command.py +196 -0
  55. rlm_code-0.1.0/rlm_code/commands/nl_command_router.py +1230 -0
  56. rlm_code-0.1.0/rlm_code/commands/optimize_command.py +438 -0
  57. rlm_code-0.1.0/rlm_code/commands/run_command.py +390 -0
  58. rlm_code-0.1.0/rlm_code/commands/slash_commands.py +7607 -0
  59. rlm_code-0.1.0/rlm_code/core/__init__.py +37 -0
  60. rlm_code-0.1.0/rlm_code/core/config.py +706 -0
  61. rlm_code-0.1.0/rlm_code/core/debug_logger.py +261 -0
  62. rlm_code-0.1.0/rlm_code/core/directory_utils.py +60 -0
  63. rlm_code-0.1.0/rlm_code/core/exceptions.py +200 -0
  64. rlm_code-0.1.0/rlm_code/core/logging.py +72 -0
  65. rlm_code-0.1.0/rlm_code/core/venv_utils.py +163 -0
  66. rlm_code-0.1.0/rlm_code/core/version_checker.py +121 -0
  67. rlm_code-0.1.0/rlm_code/examples/__init__.py +1 -0
  68. rlm_code-0.1.0/rlm_code/examples/phase2_demo.py +368 -0
  69. rlm_code-0.1.0/rlm_code/examples/phase3_demo.py +295 -0
  70. rlm_code-0.1.0/rlm_code/examples/phase4_demo.py +290 -0
  71. rlm_code-0.1.0/rlm_code/examples/pure_rlm_demo.py +241 -0
  72. rlm_code-0.1.0/rlm_code/execution/__init__.py +10 -0
  73. rlm_code-0.1.0/rlm_code/execution/engine.py +266 -0
  74. rlm_code-0.1.0/rlm_code/execution/sandbox.py +303 -0
  75. rlm_code-0.1.0/rlm_code/export/__init__.py +10 -0
  76. rlm_code-0.1.0/rlm_code/export/handler.py +245 -0
  77. rlm_code-0.1.0/rlm_code/export/package_builder.py +327 -0
  78. rlm_code-0.1.0/rlm_code/generators/evaluation_generator.py +352 -0
  79. rlm_code-0.1.0/rlm_code/generators/gepa_generator.py +619 -0
  80. rlm_code-0.1.0/rlm_code/harness/__init__.py +13 -0
  81. rlm_code-0.1.0/rlm_code/harness/registry.py +723 -0
  82. rlm_code-0.1.0/rlm_code/harness/runner.py +288 -0
  83. rlm_code-0.1.0/rlm_code/main.py +290 -0
  84. rlm_code-0.1.0/rlm_code/mcp/__init__.py +33 -0
  85. rlm_code-0.1.0/rlm_code/mcp/client_manager.py +521 -0
  86. rlm_code-0.1.0/rlm_code/mcp/config.py +162 -0
  87. rlm_code-0.1.0/rlm_code/mcp/exceptions.py +303 -0
  88. rlm_code-0.1.0/rlm_code/mcp/retry.py +173 -0
  89. rlm_code-0.1.0/rlm_code/mcp/server/__init__.py +28 -0
  90. rlm_code-0.1.0/rlm_code/mcp/server/rlm_server.py +487 -0
  91. rlm_code-0.1.0/rlm_code/mcp/server/tools.py +276 -0
  92. rlm_code-0.1.0/rlm_code/mcp/session_wrapper.py +430 -0
  93. rlm_code-0.1.0/rlm_code/mcp/transports/__init__.py +17 -0
  94. rlm_code-0.1.0/rlm_code/mcp/transports/factory.py +64 -0
  95. rlm_code-0.1.0/rlm_code/mcp/transports/sse_transport.py +93 -0
  96. rlm_code-0.1.0/rlm_code/mcp/transports/stdio_transport.py +108 -0
  97. rlm_code-0.1.0/rlm_code/mcp/transports/websocket_transport.py +70 -0
  98. rlm_code-0.1.0/rlm_code/mcp/utils.py +83 -0
  99. rlm_code-0.1.0/rlm_code/models/__init__.py +16 -0
  100. rlm_code-0.1.0/rlm_code/models/cache.py +208 -0
  101. rlm_code-0.1.0/rlm_code/models/code_generator.py +378 -0
  102. rlm_code-0.1.0/rlm_code/models/dspy_reference_loader.py +314 -0
  103. rlm_code-0.1.0/rlm_code/models/llm_connector.py +1280 -0
  104. rlm_code-0.1.0/rlm_code/models/model_manager.py +335 -0
  105. rlm_code-0.1.0/rlm_code/models/providers/__init__.py +16 -0
  106. rlm_code-0.1.0/rlm_code/models/providers/acp_discovery.py +218 -0
  107. rlm_code-0.1.0/rlm_code/models/providers/local_discovery.py +216 -0
  108. rlm_code-0.1.0/rlm_code/models/providers/model_catalog.py +161 -0
  109. rlm_code-0.1.0/rlm_code/models/providers/registry.py +408 -0
  110. rlm_code-0.1.0/rlm_code/models/streaming.py +204 -0
  111. rlm_code-0.1.0/rlm_code/models/task_collector.py +460 -0
  112. rlm_code-0.1.0/rlm_code/optimization/__init__.py +20 -0
  113. rlm_code-0.1.0/rlm_code/optimization/data_collector.py +229 -0
  114. rlm_code-0.1.0/rlm_code/optimization/executor.py +392 -0
  115. rlm_code-0.1.0/rlm_code/optimization/workflow_manager.py +384 -0
  116. rlm_code-0.1.0/rlm_code/project/__init__.py +23 -0
  117. rlm_code-0.1.0/rlm_code/project/context_manager.py +225 -0
  118. rlm_code-0.1.0/rlm_code/project/dspy_md_generator.py +343 -0
  119. rlm_code-0.1.0/rlm_code/project/initializer.py +289 -0
  120. rlm_code-0.1.0/rlm_code/project/scanner.py +346 -0
  121. rlm_code-0.1.0/rlm_code/py.typed +2 -0
  122. rlm_code-0.1.0/rlm_code/rlm/__init__.py +366 -0
  123. rlm_code-0.1.0/rlm_code/rlm/action_planner.py +424 -0
  124. rlm_code-0.1.0/rlm_code/rlm/approval/__init__.py +76 -0
  125. rlm_code-0.1.0/rlm_code/rlm/approval/audit.py +247 -0
  126. rlm_code-0.1.0/rlm_code/rlm/approval/gate.py +327 -0
  127. rlm_code-0.1.0/rlm_code/rlm/approval/handlers.py +311 -0
  128. rlm_code-0.1.0/rlm_code/rlm/approval/policy.py +310 -0
  129. rlm_code-0.1.0/rlm_code/rlm/benchmark_manager.py +1355 -0
  130. rlm_code-0.1.0/rlm_code/rlm/benchmarks.py +899 -0
  131. rlm_code-0.1.0/rlm_code/rlm/chat_session.py +314 -0
  132. rlm_code-0.1.0/rlm_code/rlm/code_interpreter.py +203 -0
  133. rlm_code-0.1.0/rlm_code/rlm/comparison.py +698 -0
  134. rlm_code-0.1.0/rlm_code/rlm/config_schema.py +372 -0
  135. rlm_code-0.1.0/rlm_code/rlm/context_store.py +147 -0
  136. rlm_code-0.1.0/rlm_code/rlm/delegation.py +295 -0
  137. rlm_code-0.1.0/rlm_code/rlm/docker_interpreter.py +544 -0
  138. rlm_code-0.1.0/rlm_code/rlm/environments.py +1367 -0
  139. rlm_code-0.1.0/rlm_code/rlm/events.py +355 -0
  140. rlm_code-0.1.0/rlm_code/rlm/frameworks/__init__.py +23 -0
  141. rlm_code-0.1.0/rlm_code/rlm/frameworks/adk_rlm_adapter.py +174 -0
  142. rlm_code-0.1.0/rlm_code/rlm/frameworks/base.py +55 -0
  143. rlm_code-0.1.0/rlm_code/rlm/frameworks/deepagents_adapter.py +282 -0
  144. rlm_code-0.1.0/rlm_code/rlm/frameworks/dspy_rlm_adapter.py +190 -0
  145. rlm_code-0.1.0/rlm_code/rlm/frameworks/google_adk_adapter.py +215 -0
  146. rlm_code-0.1.0/rlm_code/rlm/frameworks/pydantic_ai_adapter.py +209 -0
  147. rlm_code-0.1.0/rlm_code/rlm/frameworks/registry.py +61 -0
  148. rlm_code-0.1.0/rlm_code/rlm/leaderboard.py +870 -0
  149. rlm_code-0.1.0/rlm_code/rlm/memory_compaction.py +421 -0
  150. rlm_code-0.1.0/rlm_code/rlm/mock_interpreter.py +115 -0
  151. rlm_code-0.1.0/rlm_code/rlm/monty_interpreter.py +887 -0
  152. rlm_code-0.1.0/rlm_code/rlm/observability.py +422 -0
  153. rlm_code-0.1.0/rlm_code/rlm/observability_sinks.py +974 -0
  154. rlm_code-0.1.0/rlm_code/rlm/policies/__init__.py +92 -0
  155. rlm_code-0.1.0/rlm_code/rlm/policies/action_policies.py +310 -0
  156. rlm_code-0.1.0/rlm_code/rlm/policies/base.py +218 -0
  157. rlm_code-0.1.0/rlm_code/rlm/policies/compaction_policies.py +382 -0
  158. rlm_code-0.1.0/rlm_code/rlm/policies/registry.py +264 -0
  159. rlm_code-0.1.0/rlm_code/rlm/policies/reward_policies.py +333 -0
  160. rlm_code-0.1.0/rlm_code/rlm/policies/termination_policies.py +243 -0
  161. rlm_code-0.1.0/rlm_code/rlm/pure_rlm_environment.py +1771 -0
  162. rlm_code-0.1.0/rlm_code/rlm/repl_types.py +346 -0
  163. rlm_code-0.1.0/rlm_code/rlm/research_tui/__init__.py +15 -0
  164. rlm_code-0.1.0/rlm_code/rlm/research_tui/theme.py +548 -0
  165. rlm_code-0.1.0/rlm_code/rlm/research_tui/widgets/__init__.py +41 -0
  166. rlm_code-0.1.0/rlm_code/rlm/research_tui/widgets/animated.py +520 -0
  167. rlm_code-0.1.0/rlm_code/rlm/research_tui/widgets/panels.py +613 -0
  168. rlm_code-0.1.0/rlm_code/rlm/runner.py +1556 -0
  169. rlm_code-0.1.0/rlm_code/rlm/session_replay.py +1250 -0
  170. rlm_code-0.1.0/rlm_code/rlm/task_signature.py +230 -0
  171. rlm_code-0.1.0/rlm_code/rlm/termination.py +349 -0
  172. rlm_code-0.1.0/rlm_code/rlm/trajectory.py +764 -0
  173. rlm_code-0.1.0/rlm_code/rlm/visualizer.py +308 -0
  174. rlm_code-0.1.0/rlm_code/sandbox/__init__.py +28 -0
  175. rlm_code-0.1.0/rlm_code/sandbox/runtimes/__init__.py +25 -0
  176. rlm_code-0.1.0/rlm_code/sandbox/runtimes/apple_container_runtime.py +125 -0
  177. rlm_code-0.1.0/rlm_code/sandbox/runtimes/base.py +36 -0
  178. rlm_code-0.1.0/rlm_code/sandbox/runtimes/cloud/__init__.py +21 -0
  179. rlm_code-0.1.0/rlm_code/sandbox/runtimes/cloud/daytona_runtime.py +225 -0
  180. rlm_code-0.1.0/rlm_code/sandbox/runtimes/cloud/e2b_runtime.py +223 -0
  181. rlm_code-0.1.0/rlm_code/sandbox/runtimes/cloud/modal_runtime.py +295 -0
  182. rlm_code-0.1.0/rlm_code/sandbox/runtimes/command_runtime.py +75 -0
  183. rlm_code-0.1.0/rlm_code/sandbox/runtimes/docker_runtime.py +100 -0
  184. rlm_code-0.1.0/rlm_code/sandbox/runtimes/local_runtime.py +29 -0
  185. rlm_code-0.1.0/rlm_code/sandbox/runtimes/registry.py +525 -0
  186. rlm_code-0.1.0/rlm_code/sandbox/superbox.py +116 -0
  187. rlm_code-0.1.0/rlm_code/session/__init__.py +9 -0
  188. rlm_code-0.1.0/rlm_code/session/state_manager.py +359 -0
  189. rlm_code-0.1.0/rlm_code/templates/.env.example +21 -0
  190. rlm_code-0.1.0/rlm_code/templates/adapters.py +537 -0
  191. rlm_code-0.1.0/rlm_code/templates/async_streaming.py +960 -0
  192. rlm_code-0.1.0/rlm_code/templates/complete_programs.py +2127 -0
  193. rlm_code-0.1.0/rlm_code/templates/dspy_config_example.yaml +498 -0
  194. rlm_code-0.1.0/rlm_code/templates/evaluation.py +353 -0
  195. rlm_code-0.1.0/rlm_code/templates/industry_templates.py +847 -0
  196. rlm_code-0.1.0/rlm_code/templates/optimizers.py +1529 -0
  197. rlm_code-0.1.0/rlm_code/templates/retrievers.py +768 -0
  198. rlm_code-0.1.0/rlm_code/templates/rlm_benchmarks_example.yaml +35 -0
  199. rlm_code-0.1.0/rlm_code/tests/__init__.py +1 -0
  200. rlm_code-0.1.0/rlm_code/tests/rlm/__init__.py +1 -0
  201. rlm_code-0.1.0/rlm_code/tests/rlm/test_phase2.py +545 -0
  202. rlm_code-0.1.0/rlm_code/tests/rlm/test_pure_rlm.py +427 -0
  203. rlm_code-0.1.0/rlm_code/ui/__init__.py +30 -0
  204. rlm_code-0.1.0/rlm_code/ui/agent_collab_view.py +338 -0
  205. rlm_code-0.1.0/rlm_code/ui/animations.py +470 -0
  206. rlm_code-0.1.0/rlm_code/ui/conversation.py +77 -0
  207. rlm_code-0.1.0/rlm_code/ui/design_system.py +605 -0
  208. rlm_code-0.1.0/rlm_code/ui/diff_viewer.py +647 -0
  209. rlm_code-0.1.0/rlm_code/ui/notifications.py +263 -0
  210. rlm_code-0.1.0/rlm_code/ui/persistent_shell.py +181 -0
  211. rlm_code-0.1.0/rlm_code/ui/prompt_widget.py +449 -0
  212. rlm_code-0.1.0/rlm_code/ui/prompts.py +343 -0
  213. rlm_code-0.1.0/rlm_code/ui/pty_terminal.py +761 -0
  214. rlm_code-0.1.0/rlm_code/ui/resizable_divider.py +443 -0
  215. rlm_code-0.1.0/rlm_code/ui/thinking_display.py +390 -0
  216. rlm_code-0.1.0/rlm_code/ui/tui_app.py +4394 -0
  217. rlm_code-0.1.0/rlm_code/ui/tui_utils.py +52 -0
  218. rlm_code-0.1.0/rlm_code/ui/welcome.py +263 -0
  219. rlm_code-0.1.0/rlm_code/validation/__init__.py +20 -0
  220. rlm_code-0.1.0/rlm_code/validation/anti_patterns.py +311 -0
  221. rlm_code-0.1.0/rlm_code/validation/auto_fixer.py +273 -0
  222. rlm_code-0.1.0/rlm_code/validation/best_practices.py +66 -0
  223. rlm_code-0.1.0/rlm_code/validation/code_validator.py +484 -0
  224. rlm_code-0.1.0/rlm_code/validation/config_validator.py +380 -0
  225. rlm_code-0.1.0/rlm_code/validation/exceptions.py +35 -0
  226. rlm_code-0.1.0/rlm_code/validation/input_validator.py +111 -0
  227. rlm_code-0.1.0/rlm_code/validation/learning_integration.py +333 -0
  228. rlm_code-0.1.0/rlm_code/validation/models.py +122 -0
  229. rlm_code-0.1.0/rlm_code/validation/module_validator.py +243 -0
  230. rlm_code-0.1.0/rlm_code/validation/predictor_validator.py +255 -0
  231. rlm_code-0.1.0/rlm_code/validation/quality_scorer.py +216 -0
  232. rlm_code-0.1.0/rlm_code/validation/report_generator.py +319 -0
  233. rlm_code-0.1.0/rlm_code/validation/security.py +149 -0
  234. rlm_code-0.1.0/rlm_code/validation/security_validator.py +459 -0
  235. rlm_code-0.1.0/rlm_code/validation/signature_validator.py +216 -0
  236. rlm_code-0.1.0/rlm_code/validation/validator.py +285 -0
  237. rlm_code-0.1.0/tests/__init__.py +3 -0
  238. rlm_code-0.1.0/tests/conftest.py +96 -0
  239. rlm_code-0.1.0/tests/fixtures/rlm_ci_baseline_generic_smoke.json +33 -0
  240. rlm_code-0.1.0/tests/rlm/test_adk_rlm_adapter.py +60 -0
  241. rlm_code-0.1.0/tests/rlm/test_code_interpreter.py +114 -0
  242. rlm_code-0.1.0/tests/rlm/test_deepagents_adapter.py +414 -0
  243. rlm_code-0.1.0/tests/rlm/test_dspy_rlm_adapter.py +69 -0
  244. rlm_code-0.1.0/tests/rlm/test_extract_fallback.py +115 -0
  245. rlm_code-0.1.0/tests/rlm/test_framework_registry_coverage.py +27 -0
  246. rlm_code-0.1.0/tests/rlm/test_google_adk_adapter.py +98 -0
  247. rlm_code-0.1.0/tests/rlm/test_leaderboard.py +627 -0
  248. rlm_code-0.1.0/tests/rlm/test_mock_interpreter.py +78 -0
  249. rlm_code-0.1.0/tests/rlm/test_monty_interpreter.py +680 -0
  250. rlm_code-0.1.0/tests/rlm/test_observability_sinks.py +464 -0
  251. rlm_code-0.1.0/tests/rlm/test_p0_features.py +654 -0
  252. rlm_code-0.1.0/tests/rlm/test_phase3.py +420 -0
  253. rlm_code-0.1.0/tests/rlm/test_phase4.py +444 -0
  254. rlm_code-0.1.0/tests/rlm/test_pure_rlm_runtime_modes.py +112 -0
  255. rlm_code-0.1.0/tests/rlm/test_pydantic_ai_adapter.py +87 -0
  256. rlm_code-0.1.0/tests/rlm/test_repl_history.py +95 -0
  257. rlm_code-0.1.0/tests/rlm/test_security_hardening.py +247 -0
  258. rlm_code-0.1.0/tests/rlm/test_session_replay.py +790 -0
  259. rlm_code-0.1.0/tests/rlm/test_submit.py +100 -0
  260. rlm_code-0.1.0/tests/rlm/test_task_signature.py +136 -0
  261. rlm_code-0.1.0/tests/rlm/test_user_tools.py +73 -0
  262. rlm_code-0.1.0/tests/test_anti_patterns.py +379 -0
  263. rlm_code-0.1.0/tests/test_auto_fixer.py +477 -0
  264. rlm_code-0.1.0/tests/test_cache.py +248 -0
  265. rlm_code-0.1.0/tests/test_execution_engine.py +230 -0
  266. rlm_code-0.1.0/tests/test_export_import.py +297 -0
  267. rlm_code-0.1.0/tests/test_harness_registry.py +46 -0
  268. rlm_code-0.1.0/tests/test_harness_runner.py +64 -0
  269. rlm_code-0.1.0/tests/test_init_command.py +38 -0
  270. rlm_code-0.1.0/tests/test_integration.py +334 -0
  271. rlm_code-0.1.0/tests/test_learning_integration.py +410 -0
  272. rlm_code-0.1.0/tests/test_mcp_utils.py +112 -0
  273. rlm_code-0.1.0/tests/test_module_validator.py +255 -0
  274. rlm_code-0.1.0/tests/test_optimization_workflow.py +273 -0
  275. rlm_code-0.1.0/tests/test_persistent_shell.py +25 -0
  276. rlm_code-0.1.0/tests/test_predictor_validator.py +219 -0
  277. rlm_code-0.1.0/tests/test_project_scanner.py +308 -0
  278. rlm_code-0.1.0/tests/test_prompt_widget.py +83 -0
  279. rlm_code-0.1.0/tests/test_property_validators.py +394 -0
  280. rlm_code-0.1.0/tests/test_provider_discovery.py +68 -0
  281. rlm_code-0.1.0/tests/test_provider_registry.py +242 -0
  282. rlm_code-0.1.0/tests/test_quality_scorer.py +365 -0
  283. rlm_code-0.1.0/tests/test_report_generator.py +344 -0
  284. rlm_code-0.1.0/tests/test_retry.py +192 -0
  285. rlm_code-0.1.0/tests/test_rlm_config.py +74 -0
  286. rlm_code-0.1.0/tests/test_rlm_dspy_environment.py +296 -0
  287. rlm_code-0.1.0/tests/test_rlm_observability.py +116 -0
  288. rlm_code-0.1.0/tests/test_rlm_runner.py +1521 -0
  289. rlm_code-0.1.0/tests/test_sandbox_runtimes.py +137 -0
  290. rlm_code-0.1.0/tests/test_security_validator.py +214 -0
  291. rlm_code-0.1.0/tests/test_session_management.py +243 -0
  292. rlm_code-0.1.0/tests/test_signature_validator.py +197 -0
  293. rlm_code-0.1.0/tests/test_slash_harness_command.py +88 -0
  294. rlm_code-0.1.0/tests/test_slash_rlm_command.py +830 -0
  295. rlm_code-0.1.0/tests/test_slash_sandbox_command.py +216 -0
  296. rlm_code-0.1.0/tests/test_streaming.py +166 -0
  297. rlm_code-0.1.0/tests/test_superbox.py +112 -0
  298. rlm_code-0.1.0/tests/test_tui_utils.py +27 -0
  299. rlm_code-0.1.0/tests/test_validation.py +126 -0
@@ -0,0 +1,199 @@
1
+ # Project-specific
2
+ .benchmarks/
3
+ .kiro/
4
+ Reference/
5
+
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+ *.so
11
+ .Python
12
+
13
+ # Distribution / packaging
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+ pip-wheel-metadata/
32
+
33
+ # PyInstaller
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+ docs/.doctrees/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv (kept for uv — do NOT ignore .python-version)
89
+ # .python-version
90
+
91
+ # pipenv
92
+ Pipfile.lock
93
+
94
+ # poetry
95
+ poetry.lock
96
+
97
+ # pdm
98
+ .pdm.toml
99
+ .pdm-python
100
+ .pdm-build/
101
+
102
+ # PEP 582
103
+ __pypackages__/
104
+
105
+ # Celery stuff
106
+ celerybeat-schedule
107
+ celerybeat.pid
108
+
109
+ # SageMath parsed files
110
+ *.sage.py
111
+
112
+ # Virtual environments
113
+ venv/
114
+ env/
115
+ ENV/
116
+ env.bak/
117
+ venv.bak/
118
+ .venv/
119
+
120
+ # Spyder project settings
121
+ .spyderproject
122
+ .spyproject
123
+
124
+ # Rope project settings
125
+ .ropeproject
126
+
127
+ # mkdocs documentation
128
+ /site
129
+
130
+ # mypy
131
+ .mypy_cache/
132
+ .dmypy.json
133
+ dmypy.json
134
+
135
+ # Pyre type checker
136
+ .pyre/
137
+
138
+ # pytype static type analyzer
139
+ .pytype/
140
+
141
+ # Cython debug symbols
142
+ cython_debug/
143
+
144
+ # IDEs and editors
145
+ .vscode/
146
+ .idea/
147
+ *.swp
148
+ *.swo
149
+ *~
150
+ .DS_Store
151
+ *.sublime-project
152
+ *.sublime-workspace
153
+
154
+ # Project specific
155
+ dspy_config.yaml
156
+ *.log
157
+
158
+ # Internal workspace data directories (all data in CWD)
159
+ .rlm__code/
160
+ .rlm_code/
161
+ .dspy_code/
162
+ .dspy_cache/
163
+
164
+ # Environment variables and secrets
165
+ .env
166
+ .env.*
167
+ !.env.example
168
+ *.key
169
+ *.pem
170
+ secrets.json
171
+ config.local.yaml
172
+
173
+ # Ruff cache
174
+ .ruff_cache/
175
+
176
+ # uv cache
177
+ .uv/
178
+
179
+ # Pre-commit
180
+ .pre-commit-config.yaml.swp
181
+
182
+ # Backup files
183
+ *.bak
184
+ *.tmp
185
+ *.temp
186
+
187
+ # macOS
188
+ .DS_Store
189
+ .AppleDouble
190
+ .LSOverride
191
+
192
+ # Windows
193
+ Thumbs.db
194
+ ehthumbs.db
195
+ Desktop.ini
196
+ $RECYCLE.BIN/
197
+
198
+ # Linux
199
+ .directory
@@ -0,0 +1,33 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.5] - 2026-02-15
9
+
10
+ Initial public release of **RLM Code**.
11
+
12
+ ### Added
13
+ - Unified Textual TUI with tabs for **RLM**, **Files**, **Details**, **Shell**, and **Research**.
14
+ - Recursive execution engine with multiple patterns: **pure RLM**, **harness/code-agent**, and direct LLM flows.
15
+ - Research workflows: run tracking, trajectory capture, replay, benchmark presets, compare/report flows.
16
+ - Sandbox runtime layer (**Superbox**) with profile-driven runtime selection and fallback orchestration.
17
+ - Secure runtime options including Docker and Monty, plus pluggable runtime adapters.
18
+ - LLM integrations for cloud and local model routes, including BYOK workflows and ACP connectivity.
19
+ - Coding harness with optional MCP tool integration for local/BYOK development workflows.
20
+ - Framework adapter surface for RLM-style integrations (including DSPy-native and ADK-oriented paths).
21
+ - Observability integrations (MLflow, LangFuse, Logfire, LangSmith, OpenTelemetry) via sink architecture.
22
+ - Documentation site (MkDocs Material) with onboarding, CLI, TUI, sandbox, integrations, and benchmark guides.
23
+
24
+ ### Changed
25
+ - Project identity standardized as **RLM Code** (legacy inherited naming removed from repository-facing surfaces).
26
+ - Packaging and project metadata prepared for open-source release.
27
+ - License updated to **Apache-2.0**.
28
+
29
+ ### Security
30
+ - Safer sandbox-first runtime guidance in docs and configuration defaults.
31
+ - Unsafe local `exec` usage preserved only as an explicit, opt-in path for advanced development scenarios.
32
+
33
+ [0.1.5]: https://github.com/SuperagenticAI/rlm-code/releases/tag/v0.1.5
rlm_code-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
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 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 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 those 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
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Superagentic AI
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
rlm_code-0.1.0/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ RLM Code
2
+ Copyright 2026 Superagentic AI
3
+
4
+ This product includes software developed by Superagentic AI.
5
+
6
+ Licensed under the Apache License, Version 2.0.
7
+ You may obtain a copy of the License at:
8
+ http://www.apache.org/licenses/LICENSE-2.0