agentorch 2.0.2__tar.gz → 2.2.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 (244) hide show
  1. {agentorch-2.0.2 → agentorch-2.2.0}/PKG-INFO +56 -26
  2. {agentorch-2.0.2 → agentorch-2.2.0}/README.md +52 -24
  3. {agentorch-2.0.2 → agentorch-2.2.0}/agentorch.egg-info/PKG-INFO +56 -26
  4. {agentorch-2.0.2 → agentorch-2.2.0}/agentorch.egg-info/SOURCES.txt +15 -0
  5. {agentorch-2.0.2 → agentorch-2.2.0}/agentorch.egg-info/requires.txt +4 -1
  6. {agentorch-2.0.2 → agentorch-2.2.0}/agentorch.egg-info/top_level.txt +1 -3
  7. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_cli/main.py +146 -44
  8. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/dashboard_api.py +6 -0
  9. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hooks/installer.py +67 -0
  10. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/mcp/server.py +4 -0
  11. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/calibrate.py +14 -6
  12. agentorch-2.2.0/devtorch_core/metrics/delivery_time.py +70 -0
  13. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/augmenter.py +62 -3
  14. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/config.py +27 -0
  15. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/api.py +104 -6
  16. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/composer.py +23 -2
  17. agentorch-2.2.0/devtorch_core/reasoning_plus/learning/embeddings.py +209 -0
  18. agentorch-2.2.0/devtorch_core/reasoning_plus/learning/extractor.py +207 -0
  19. agentorch-2.2.0/devtorch_core/reasoning_plus/learning/provenance.py +126 -0
  20. agentorch-2.2.0/devtorch_core/reasoning_plus/learning/relevance.py +101 -0
  21. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/store.py +68 -1
  22. agentorch-2.2.0/devtorch_core/serve.py +258 -0
  23. agentorch-2.2.0/devtorch_core/templates/__init__.py +6 -0
  24. agentorch-2.2.0/devtorch_core/templates/engine.py +122 -0
  25. agentorch-2.2.0/devtorch_core/templates/go.py +18 -0
  26. agentorch-2.2.0/devtorch_core/templates/infra.py +19 -0
  27. agentorch-2.2.0/devtorch_core/templates/python.py +19 -0
  28. agentorch-2.2.0/devtorch_core/templates/react.py +18 -0
  29. agentorch-2.2.0/devtorch_core/templates/typescript.py +18 -0
  30. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/anthropic.py +142 -20
  31. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/base.py +91 -4
  32. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/bedrock.py +88 -21
  33. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/gemini.py +117 -14
  34. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/ollama.py +108 -17
  35. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/openai.py +141 -19
  36. {agentorch-2.0.2 → agentorch-2.2.0}/pyproject.toml +5 -2
  37. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s24_reasoning_plus_learning.py +359 -1
  38. agentorch-2.2.0/tests/test_s25_delivery_time.py +49 -0
  39. agentorch-2.2.0/tests/test_s25_serve.py +85 -0
  40. agentorch-2.2.0/tests/test_s25_setup_detection.py +76 -0
  41. agentorch-2.2.0/tests/test_s25_templates.py +56 -0
  42. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7_wrappers.py +418 -0
  43. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/extractor.py +0 -80
  44. agentorch-2.0.2/devtorch_core/reasoning_plus/learning/relevance.py +0 -59
  45. {agentorch-2.0.2 → agentorch-2.2.0}/MANIFEST.in +0 -0
  46. {agentorch-2.0.2 → agentorch-2.2.0}/agentorch.egg-info/dependency_links.txt +0 -0
  47. {agentorch-2.0.2 → agentorch-2.2.0}/agentorch.egg-info/entry_points.txt +0 -0
  48. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/hidden_profile/run_baseline.py +0 -0
  49. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/hidden_profile/run_devtorch.py +0 -0
  50. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/hidden_profile/score.py +0 -0
  51. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/compare.py +0 -0
  52. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/context_utils.py +0 -0
  53. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/evaluate.py +0 -0
  54. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/patch_utils.py +0 -0
  55. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/run_baseline.py +0 -0
  56. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/run_devtorch.py +0 -0
  57. {agentorch-2.0.2 → agentorch-2.2.0}/benchmarks/swe_bench/seed_gcc.py +0 -0
  58. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_cli/__init__.py +0 -0
  59. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_cli/__main__.py +0 -0
  60. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/__init__.py +0 -0
  61. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/aggphi_textual.py +0 -0
  62. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/__init__.py +0 -0
  63. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/base.py +0 -0
  64. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/config.py +0 -0
  65. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/dispatcher.py +0 -0
  66. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/jira.py +0 -0
  67. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/linear.py +0 -0
  68. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/pagerduty.py +0 -0
  69. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/slack.py +0 -0
  70. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/alerts/teams.py +0 -0
  71. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/broadcast/__init__.py +0 -0
  72. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/broadcast/broadcaster.py +0 -0
  73. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/broadcast/watcher.py +0 -0
  74. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/capability.py +0 -0
  75. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/__init__.py +0 -0
  76. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_config.py +0 -0
  77. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_configs/.claude-opencode-fallback.json +0 -0
  78. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_configs/.claude-stdio.json +0 -0
  79. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_configs/.cursor-mcp.json +0 -0
  80. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_configs/.opencode-bridge.json +0 -0
  81. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_configs/.opencode.json +0 -0
  82. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/client_configs/.vscode-mcp.json +0 -0
  83. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/cloud/devtorch-mcp-bridge.js +0 -0
  84. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/codex/__init__.py +0 -0
  85. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/codex/__main__.py +0 -0
  86. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/codex/capture.py +0 -0
  87. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/codex/proxy.py +0 -0
  88. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/consolidation/__init__.py +0 -0
  89. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/consolidation/synthesizer.py +0 -0
  90. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/consolidation/workflow.py +0 -0
  91. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/deltaf.py +0 -0
  92. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/disclosure.py +0 -0
  93. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/divergence/__init__.py +0 -0
  94. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/divergence/detector.py +0 -0
  95. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gateway/__init__.py +0 -0
  96. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gateway/key_manager.py +0 -0
  97. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gateway/metrics_webhook.py +0 -0
  98. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gateway/policy.py +0 -0
  99. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gateway/server.py +0 -0
  100. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gateway/sso.py +0 -0
  101. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gcc.py +0 -0
  102. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/github/__init__.py +0 -0
  103. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/github/app.py +0 -0
  104. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/github/comment_builder.py +0 -0
  105. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/github/pat.py +0 -0
  106. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/github/pr_parser.py +0 -0
  107. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/gitlab/__init__.py +0 -0
  108. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hitl/__init__.py +0 -0
  109. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hitl/channels.py +0 -0
  110. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hitl/orchestrator.py +0 -0
  111. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hooks/__init__.py +0 -0
  112. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hooks/claude_code.py +0 -0
  113. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hooks/git_commit.py +0 -0
  114. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/hooks/runner.py +0 -0
  115. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/identity/__init__.py +0 -0
  116. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/identity/agent.py +0 -0
  117. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/identity/providers.py +0 -0
  118. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/invariants.py +0 -0
  119. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/mcp/__init__.py +0 -0
  120. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/mcp/auth.py +0 -0
  121. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/__init__.py +0 -0
  122. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/aggregate.py +0 -0
  123. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/calibration.py +0 -0
  124. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/credibility.py +0 -0
  125. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/dhs.py +0 -0
  126. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/mcs.py +0 -0
  127. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/roi.py +0 -0
  128. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/session_writer.py +0 -0
  129. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/shadow_ai.py +0 -0
  130. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/metrics/sprint_writer.py +0 -0
  131. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/__init__.py +0 -0
  132. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/datadog.py +0 -0
  133. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/formatter.py +0 -0
  134. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/report.py +0 -0
  135. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/servicenow.py +0 -0
  136. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/splunk.py +0 -0
  137. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/observability/webhook.py +0 -0
  138. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/parser/__init__.py +0 -0
  139. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/parser/blocks.py +0 -0
  140. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/parser/inference.py +0 -0
  141. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/parser/thinking.py +0 -0
  142. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/projects.py +0 -0
  143. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/prompt_artifact.py +0 -0
  144. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/proxy/__init__.py +0 -0
  145. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/proxy/routes/__init__.py +0 -0
  146. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/proxy/routes/anthropic.py +0 -0
  147. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/proxy/routes/gemini.py +0 -0
  148. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/proxy/routes/openai.py +0 -0
  149. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/proxy/server.py +0 -0
  150. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rdp.py +0 -0
  151. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning/__init__.py +0 -0
  152. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning/entry.py +0 -0
  153. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning/store.py +0 -0
  154. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/__init__.py +0 -0
  155. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/capture.py +0 -0
  156. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/context.py +0 -0
  157. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/__init__.py +0 -0
  158. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/models.py +0 -0
  159. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/recorder.py +0 -0
  160. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/learning/state.py +0 -0
  161. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/reasoning_plus/prompt.py +0 -0
  162. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rep.py +0 -0
  163. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rep_network/__init__.py +0 -0
  164. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rep_network/merge.py +0 -0
  165. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rep_network/node.py +0 -0
  166. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rep_network/server.py +0 -0
  167. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/rep_network/sync.py +0 -0
  168. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/sensitivity.py +0 -0
  169. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/signing.py +0 -0
  170. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/sis.py +0 -0
  171. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/storage.py +0 -0
  172. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/theta.py +0 -0
  173. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/theta_synthesis.py +0 -0
  174. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/variance.py +0 -0
  175. {agentorch-2.0.2 → agentorch-2.2.0}/devtorch_core/wrapper/__init__.py +0 -0
  176. {agentorch-2.0.2 → agentorch-2.2.0}/docs/generate_faq_pdf.py +0 -0
  177. {agentorch-2.0.2 → agentorch-2.2.0}/docs/paper/figures/fig_architecture.py +0 -0
  178. {agentorch-2.0.2 → agentorch-2.2.0}/docs/paper/figures/fig_comparison.py +0 -0
  179. {agentorch-2.0.2 → agentorch-2.2.0}/docs/paper/figures/fig_coordination.py +0 -0
  180. {agentorch-2.0.2 → agentorch-2.2.0}/docs/paper/figures/fig_hashchain.py +0 -0
  181. {agentorch-2.0.2 → agentorch-2.2.0}/docs/paper/figures/fig_racp_flow.py +0 -0
  182. {agentorch-2.0.2 → agentorch-2.2.0}/setup.cfg +0 -0
  183. {agentorch-2.0.2 → agentorch-2.2.0}/tests/conftest.py +0 -0
  184. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_backend_factory.py +0 -0
  185. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_broadcast.py +0 -0
  186. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_cloud_auth.py +0 -0
  187. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_cloud_bridge.py +0 -0
  188. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_cloud_integration.py +0 -0
  189. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_cloud_sse.py +0 -0
  190. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_cloud_storage.py +0 -0
  191. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_doctor_ci.py +0 -0
  192. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_getting_started.py +0 -0
  193. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_github_app.py +0 -0
  194. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_github_pat.py +0 -0
  195. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_hidden_profile_benchmark.py +0 -0
  196. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_rep_merge.py +0 -0
  197. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s0_gcc.py +0 -0
  198. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s10_jetbrains.py +0 -0
  199. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s10_vscode.py +0 -0
  200. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s11_codex.py +0 -0
  201. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s11_hooks_installer.py +0 -0
  202. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s12_github.py +0 -0
  203. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s12_gitlab.py +0 -0
  204. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s13_dashboard_api.py +0 -0
  205. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s13_forensic.py +0 -0
  206. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s14_audit_export.py +0 -0
  207. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s14_ciso_api.py +0 -0
  208. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s15_rep_network.py +0 -0
  209. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s16_alerts.py +0 -0
  210. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s17a_metrics.py +0 -0
  211. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s17b_observability.py +0 -0
  212. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s17b_sso.py +0 -0
  213. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s18_credibility.py +0 -0
  214. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s18_identity.py +0 -0
  215. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s19_projects.py +0 -0
  216. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s19_reasoning_query.py +0 -0
  217. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s1_branch_merge.py +0 -0
  218. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s20_divergence.py +0 -0
  219. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s20_metrics.py +0 -0
  220. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s20_wrapper_capture.py +0 -0
  221. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s21_hitl.py +0 -0
  222. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s22_swe_bench.py +0 -0
  223. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s22_swe_bench_dry_run.py +0 -0
  224. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s23_reasoning_plus.py +0 -0
  225. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s2_context.py +0 -0
  226. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s3_sensitivity.py +0 -0
  227. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s4_invariants.py +0 -0
  228. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s4_variance_lock.py +0 -0
  229. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s5_privacy_disclosure.py +0 -0
  230. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s5_rep_sis.py +0 -0
  231. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s6_debug.py +0 -0
  232. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7_mcp_hooks.py +0 -0
  233. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7_ollama_wrapper.py +0 -0
  234. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7_parser.py +0 -0
  235. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7_proxy.py +0 -0
  236. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7ent_gateway.py +0 -0
  237. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s7ent_helm.py +0 -0
  238. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s8_aggphi.py +0 -0
  239. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s8_theta_synthesis.py +0 -0
  240. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_s9_gaps.py +0 -0
  241. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_setup_command.py +0 -0
  242. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_setup_targets.py +0 -0
  243. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_signing.py +0 -0
  244. {agentorch-2.0.2 → agentorch-2.2.0}/tests/test_storage_azure.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentorch
3
- Version: 2.0.2
3
+ Version: 2.2.0
4
4
  Summary: DevTorch — AI reasoning capture, audit trail, and governance for agent-assisted development
5
5
  Author-email: Hemant Joshi <hemant@flotorch.ai>
6
6
  License: Apache-2.0
@@ -33,6 +33,8 @@ Requires-Dist: fastapi>=0.115.0; extra == "proxy"
33
33
  Requires-Dist: uvicorn[standard]>=0.32.0; extra == "proxy"
34
34
  Requires-Dist: httpx>=0.27.0; extra == "proxy"
35
35
  Requires-Dist: pydantic>=2.9.0; extra == "proxy"
36
+ Provides-Extra: embeddings
37
+ Requires-Dist: sentence-transformers>=3.0.0; extra == "embeddings"
36
38
  Provides-Extra: mcp
37
39
  Requires-Dist: mcp>=1.0.0; extra == "mcp"
38
40
  Provides-Extra: cloud
@@ -46,16 +48,16 @@ Requires-Dist: azure-storage-blob>=12.19.0; extra == "cloud"
46
48
  Provides-Extra: broadcast
47
49
  Requires-Dist: watchdog>=3.0.0; extra == "broadcast"
48
50
  Provides-Extra: all
49
- Requires-Dist: agentorch[cloud,mcp,proxy,wrapper]; extra == "all"
51
+ Requires-Dist: agentorch[cloud,embeddings,mcp,proxy,wrapper]; extra == "all"
50
52
 
51
53
  # DevTorch
52
54
 
53
55
  **Local-first AI agent governance.** DevTorch gives multi-agent systems a shared on-disk audit trail, coordination vector, privacy controls, and LLM integration layer — all without a remote service.
54
56
 
55
- > **Latest release:** `agentorch 2.0.2` — MCP bridge with automatic local fallback, plus upgrade/reinstall docs for all IDE integrations. Install or upgrade with `pip install -U agentorch`.
57
+ > **Latest release:** `agentorch 2.2.0` — Reasoning Plus Learning: semantic relevance, learning deduplication, provenance tracking, LLM-based extraction, and a feedback loop. Install or upgrade with `pip install -U agentorch`.
56
58
 
57
59
  ```bash
58
- pip install -U agentorch>=2.0.2
60
+ pip install -U agentorch>=2.1.0
59
61
  devtorch init
60
62
  devtorch setup # connects to Claude Code, Cursor, or Antigravity
61
63
  devtorch debug timeline
@@ -101,6 +103,14 @@ pip install agentorch
101
103
 
102
104
  **Requirements:** Python 3.10+
103
105
 
106
+ One-liner installer (Linux/macOS/WSL):
107
+
108
+ ```bash
109
+ curl -fsSL https://raw.githubusercontent.com/hemantcgi/DevTorch/main/Implementation/scripts/install.sh | bash
110
+ ```
111
+
112
+ This installs `agentorch` into an isolated virtual environment at `~/.devtorch-venv` and links `devtorch` onto PATH. It also supports `pip install` if you prefer to manage your own environment.
113
+
104
114
  For optional extras:
105
115
 
106
116
  ```bash
@@ -120,7 +130,7 @@ DevTorch preserves your `.GCC/` store across upgrades. Newer releases add IDE co
120
130
  **Upgrade any time:**
121
131
 
122
132
  ```bash
123
- pip install -U agentorch>=2.0.2
133
+ pip install -U agentorch>=2.1.0
124
134
  cd /path/to/your/project
125
135
  devtorch setup # or: devtorch setup --target <ide>
126
136
  devtorch doctor
@@ -184,7 +194,7 @@ Open Claude Code in your project. On the first task Claude will call `devtorch_c
184
194
 
185
195
  **What you get:** Full RACP integration — reasoning commits, sensitivity events, coordination vector Θ, divergence detection, HITL conflict resolution.
186
196
 
187
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
197
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
188
198
 
189
199
  ---
190
200
 
@@ -228,7 +238,7 @@ devtorch doctor
228
238
 
229
239
  **What you get:** MCP tools, VS Code sidebar, optional HTTP proxy for passive capture of all LLM calls (`devtorch proxy start`).
230
240
 
231
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
241
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
232
242
 
233
243
  ---
234
244
 
@@ -260,7 +270,7 @@ devtorch doctor
260
270
 
261
271
  **What you get:** Full RACP integration. The multi-agent nature of Antigravity makes Θ accumulation especially valuable — multiple agents share the same reasoning state through `devtorch_context`.
262
272
 
263
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
273
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
264
274
 
265
275
  ---
266
276
 
@@ -298,7 +308,7 @@ Open the project in OpenCode. The DevTorch MCP tools will be listed, and the mod
298
308
 
299
309
  **What you get:** Cloud-hosted MCP server integration with automatic local fallback, automatic reasoning commits via `AGENTS.md` instructions, and a shared Θ state across sessions.
300
310
 
301
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
311
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
302
312
 
303
313
  ---
304
314
 
@@ -330,7 +340,7 @@ devtorch sensitivity add --source you --concept auth --confidence 0.9 --disclosu
330
340
 
331
341
  **What you get:** Sidebar panel (read-only), git-commit-level event capture, manual reasoning commits. Full capture requires switching to Claude Code, Cursor, Kiro, or Antigravity.
332
342
 
333
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will reinstall the git hook and update the governance instructions.
343
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup` will reinstall the git hook and update the governance instructions.
334
344
 
335
345
  ---
336
346
 
@@ -395,7 +405,7 @@ devtorch doctor
395
405
 
396
406
  **What you get:** Full RACP integration equivalent to Claude Code — MCP tools, steering-document governance, agent action hooks.
397
407
 
398
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
408
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
399
409
 
400
410
  ---
401
411
 
@@ -428,7 +438,7 @@ All `invoke_model()` and `converse()` calls are identical. DevTorch injects the
428
438
  devtorch doctor
429
439
  ```
430
440
 
431
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
441
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
432
442
 
433
443
  ---
434
444
 
@@ -462,7 +472,7 @@ client = AzureOpenAI(
462
472
  devtorch doctor
463
473
  ```
464
474
 
465
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
475
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
466
476
 
467
477
  ---
468
478
 
@@ -488,7 +498,7 @@ codex "Add error handling to the payment service"
488
498
 
489
499
  All Codex calls are intercepted by the proxy, which injects the RACP prefix and captures responses into `.GCC/`.
490
500
 
491
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2`.
501
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0`.
492
502
 
493
503
  ---
494
504
 
@@ -522,7 +532,7 @@ devtorch doctor
522
532
 
523
533
  No API key required. Fully local — RACP context and captures stay on-device.
524
534
 
525
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
535
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
526
536
 
527
537
  ---
528
538
 
@@ -535,11 +545,33 @@ For teams that want a single shared reasoning backend across all projects and ma
535
545
  ```bash
536
546
  cd /path/to/DevTorch/Implementation/deploy/cloudflare-worker
537
547
  cp .env.example .env
538
- # Fill in R2_BUCKET, R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
539
- ./deploy.sh .env
548
+ # Fill in R2_ACCOUNT_ID, R2_BUCKET, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
549
+ # Optionally set OPENAI_API_KEY for the DRPL openai embedding backend
550
+ source .env
551
+ ./setup-mcp-server.sh
552
+ ```
553
+
554
+ The script will:
555
+
556
+ 1. Ensure the R2 bucket exists.
557
+ 2. Deploy the Cloudflare Worker.
558
+ 3. Create an org/repo-scoped API key.
559
+ 4. Install the MCP client config for your IDE.
560
+ 5. Run a health check.
561
+
562
+ For CI/CD, the same script runs non-interactively:
563
+
564
+ ```bash
565
+ ./setup-mcp-server.sh --non-interactive \
566
+ --org myorg \
567
+ --repo myproject \
568
+ --ide opencode \
569
+ --openai-key "$OPENAI_API_KEY"
540
570
  ```
541
571
 
542
- The live URL will look like:
572
+ The repository also includes `.github/workflows/deploy-cloudflare-worker.yml`, which runs on every `v*` tag and deploys the Worker (skipping key creation and client config).
573
+
574
+ **Live URL:**
543
575
 
544
576
  ```text
545
577
  https://devtorch-mcp.YOUR_ACCOUNT.workers.dev
@@ -557,21 +589,19 @@ devtorch cloud key create --org myorg --repo myproject
557
589
 
558
590
  ```bash
559
591
  export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
560
- /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
561
- <ide> <org> <repo> <api-key>
592
+ devtorch cloud client-config <ide> --org myorg --repo myproject --api-key <api-key>
562
593
  ```
563
594
 
564
595
  Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
565
596
 
566
- **Full walkthrough:** `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
597
+ **Full walkthrough:** `deploy/cloudflare-worker/README.md` has manual setup details and the full tool list. `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
567
598
 
568
599
  > **Updating from an older version:** You do **not** need to redeploy the Cloudflare Worker for client-side changes. Just regenerate the IDE config on each machine after upgrading `agentorch`:
569
600
  > ```bash
570
- > pip install -U agentorch>=2.0.2
571
- > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
572
- > /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
573
- > <ide> <org> <repo> <api-key>
574
- > ```
601
+ > > pip install -U agentorch>=2.1.0
602
+ > > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
603
+ > > devtorch cloud client-config <ide> --org <org> --repo <repo> --api-key <api-key>
604
+ > > ```
575
605
 
576
606
  ---
577
607
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  **Local-first AI agent governance.** DevTorch gives multi-agent systems a shared on-disk audit trail, coordination vector, privacy controls, and LLM integration layer — all without a remote service.
4
4
 
5
- > **Latest release:** `agentorch 2.0.2` — MCP bridge with automatic local fallback, plus upgrade/reinstall docs for all IDE integrations. Install or upgrade with `pip install -U agentorch`.
5
+ > **Latest release:** `agentorch 2.2.0` — Reasoning Plus Learning: semantic relevance, learning deduplication, provenance tracking, LLM-based extraction, and a feedback loop. Install or upgrade with `pip install -U agentorch`.
6
6
 
7
7
  ```bash
8
- pip install -U agentorch>=2.0.2
8
+ pip install -U agentorch>=2.1.0
9
9
  devtorch init
10
10
  devtorch setup # connects to Claude Code, Cursor, or Antigravity
11
11
  devtorch debug timeline
@@ -51,6 +51,14 @@ pip install agentorch
51
51
 
52
52
  **Requirements:** Python 3.10+
53
53
 
54
+ One-liner installer (Linux/macOS/WSL):
55
+
56
+ ```bash
57
+ curl -fsSL https://raw.githubusercontent.com/hemantcgi/DevTorch/main/Implementation/scripts/install.sh | bash
58
+ ```
59
+
60
+ This installs `agentorch` into an isolated virtual environment at `~/.devtorch-venv` and links `devtorch` onto PATH. It also supports `pip install` if you prefer to manage your own environment.
61
+
54
62
  For optional extras:
55
63
 
56
64
  ```bash
@@ -70,7 +78,7 @@ DevTorch preserves your `.GCC/` store across upgrades. Newer releases add IDE co
70
78
  **Upgrade any time:**
71
79
 
72
80
  ```bash
73
- pip install -U agentorch>=2.0.2
81
+ pip install -U agentorch>=2.1.0
74
82
  cd /path/to/your/project
75
83
  devtorch setup # or: devtorch setup --target <ide>
76
84
  devtorch doctor
@@ -134,7 +142,7 @@ Open Claude Code in your project. On the first task Claude will call `devtorch_c
134
142
 
135
143
  **What you get:** Full RACP integration — reasoning commits, sensitivity events, coordination vector Θ, divergence detection, HITL conflict resolution.
136
144
 
137
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
145
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
138
146
 
139
147
  ---
140
148
 
@@ -178,7 +186,7 @@ devtorch doctor
178
186
 
179
187
  **What you get:** MCP tools, VS Code sidebar, optional HTTP proxy for passive capture of all LLM calls (`devtorch proxy start`).
180
188
 
181
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
189
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
182
190
 
183
191
  ---
184
192
 
@@ -210,7 +218,7 @@ devtorch doctor
210
218
 
211
219
  **What you get:** Full RACP integration. The multi-agent nature of Antigravity makes Θ accumulation especially valuable — multiple agents share the same reasoning state through `devtorch_context`.
212
220
 
213
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
221
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
214
222
 
215
223
  ---
216
224
 
@@ -248,7 +256,7 @@ Open the project in OpenCode. The DevTorch MCP tools will be listed, and the mod
248
256
 
249
257
  **What you get:** Cloud-hosted MCP server integration with automatic local fallback, automatic reasoning commits via `AGENTS.md` instructions, and a shared Θ state across sessions.
250
258
 
251
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
259
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
252
260
 
253
261
  ---
254
262
 
@@ -280,7 +288,7 @@ devtorch sensitivity add --source you --concept auth --confidence 0.9 --disclosu
280
288
 
281
289
  **What you get:** Sidebar panel (read-only), git-commit-level event capture, manual reasoning commits. Full capture requires switching to Claude Code, Cursor, Kiro, or Antigravity.
282
290
 
283
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will reinstall the git hook and update the governance instructions.
291
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup` will reinstall the git hook and update the governance instructions.
284
292
 
285
293
  ---
286
294
 
@@ -345,7 +353,7 @@ devtorch doctor
345
353
 
346
354
  **What you get:** Full RACP integration equivalent to Claude Code — MCP tools, steering-document governance, agent action hooks.
347
355
 
348
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
356
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
349
357
 
350
358
  ---
351
359
 
@@ -378,7 +386,7 @@ All `invoke_model()` and `converse()` calls are identical. DevTorch injects the
378
386
  devtorch doctor
379
387
  ```
380
388
 
381
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
389
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
382
390
 
383
391
  ---
384
392
 
@@ -412,7 +420,7 @@ client = AzureOpenAI(
412
420
  devtorch doctor
413
421
  ```
414
422
 
415
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
423
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
416
424
 
417
425
  ---
418
426
 
@@ -438,7 +446,7 @@ codex "Add error handling to the payment service"
438
446
 
439
447
  All Codex calls are intercepted by the proxy, which injects the RACP prefix and captures responses into `.GCC/`.
440
448
 
441
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2`.
449
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0`.
442
450
 
443
451
  ---
444
452
 
@@ -472,7 +480,7 @@ devtorch doctor
472
480
 
473
481
  No API key required. Fully local — RACP context and captures stay on-device.
474
482
 
475
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
483
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
476
484
 
477
485
  ---
478
486
 
@@ -485,11 +493,33 @@ For teams that want a single shared reasoning backend across all projects and ma
485
493
  ```bash
486
494
  cd /path/to/DevTorch/Implementation/deploy/cloudflare-worker
487
495
  cp .env.example .env
488
- # Fill in R2_BUCKET, R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
489
- ./deploy.sh .env
496
+ # Fill in R2_ACCOUNT_ID, R2_BUCKET, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
497
+ # Optionally set OPENAI_API_KEY for the DRPL openai embedding backend
498
+ source .env
499
+ ./setup-mcp-server.sh
500
+ ```
501
+
502
+ The script will:
503
+
504
+ 1. Ensure the R2 bucket exists.
505
+ 2. Deploy the Cloudflare Worker.
506
+ 3. Create an org/repo-scoped API key.
507
+ 4. Install the MCP client config for your IDE.
508
+ 5. Run a health check.
509
+
510
+ For CI/CD, the same script runs non-interactively:
511
+
512
+ ```bash
513
+ ./setup-mcp-server.sh --non-interactive \
514
+ --org myorg \
515
+ --repo myproject \
516
+ --ide opencode \
517
+ --openai-key "$OPENAI_API_KEY"
490
518
  ```
491
519
 
492
- The live URL will look like:
520
+ The repository also includes `.github/workflows/deploy-cloudflare-worker.yml`, which runs on every `v*` tag and deploys the Worker (skipping key creation and client config).
521
+
522
+ **Live URL:**
493
523
 
494
524
  ```text
495
525
  https://devtorch-mcp.YOUR_ACCOUNT.workers.dev
@@ -507,21 +537,19 @@ devtorch cloud key create --org myorg --repo myproject
507
537
 
508
538
  ```bash
509
539
  export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
510
- /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
511
- <ide> <org> <repo> <api-key>
540
+ devtorch cloud client-config <ide> --org myorg --repo myproject --api-key <api-key>
512
541
  ```
513
542
 
514
543
  Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
515
544
 
516
- **Full walkthrough:** `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
545
+ **Full walkthrough:** `deploy/cloudflare-worker/README.md` has manual setup details and the full tool list. `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
517
546
 
518
547
  > **Updating from an older version:** You do **not** need to redeploy the Cloudflare Worker for client-side changes. Just regenerate the IDE config on each machine after upgrading `agentorch`:
519
548
  > ```bash
520
- > pip install -U agentorch>=2.0.2
521
- > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
522
- > /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
523
- > <ide> <org> <repo> <api-key>
524
- > ```
549
+ > > pip install -U agentorch>=2.1.0
550
+ > > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
551
+ > > devtorch cloud client-config <ide> --org <org> --repo <repo> --api-key <api-key>
552
+ > > ```
525
553
 
526
554
  ---
527
555
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentorch
3
- Version: 2.0.2
3
+ Version: 2.2.0
4
4
  Summary: DevTorch — AI reasoning capture, audit trail, and governance for agent-assisted development
5
5
  Author-email: Hemant Joshi <hemant@flotorch.ai>
6
6
  License: Apache-2.0
@@ -33,6 +33,8 @@ Requires-Dist: fastapi>=0.115.0; extra == "proxy"
33
33
  Requires-Dist: uvicorn[standard]>=0.32.0; extra == "proxy"
34
34
  Requires-Dist: httpx>=0.27.0; extra == "proxy"
35
35
  Requires-Dist: pydantic>=2.9.0; extra == "proxy"
36
+ Provides-Extra: embeddings
37
+ Requires-Dist: sentence-transformers>=3.0.0; extra == "embeddings"
36
38
  Provides-Extra: mcp
37
39
  Requires-Dist: mcp>=1.0.0; extra == "mcp"
38
40
  Provides-Extra: cloud
@@ -46,16 +48,16 @@ Requires-Dist: azure-storage-blob>=12.19.0; extra == "cloud"
46
48
  Provides-Extra: broadcast
47
49
  Requires-Dist: watchdog>=3.0.0; extra == "broadcast"
48
50
  Provides-Extra: all
49
- Requires-Dist: agentorch[cloud,mcp,proxy,wrapper]; extra == "all"
51
+ Requires-Dist: agentorch[cloud,embeddings,mcp,proxy,wrapper]; extra == "all"
50
52
 
51
53
  # DevTorch
52
54
 
53
55
  **Local-first AI agent governance.** DevTorch gives multi-agent systems a shared on-disk audit trail, coordination vector, privacy controls, and LLM integration layer — all without a remote service.
54
56
 
55
- > **Latest release:** `agentorch 2.0.2` — MCP bridge with automatic local fallback, plus upgrade/reinstall docs for all IDE integrations. Install or upgrade with `pip install -U agentorch`.
57
+ > **Latest release:** `agentorch 2.2.0` — Reasoning Plus Learning: semantic relevance, learning deduplication, provenance tracking, LLM-based extraction, and a feedback loop. Install or upgrade with `pip install -U agentorch`.
56
58
 
57
59
  ```bash
58
- pip install -U agentorch>=2.0.2
60
+ pip install -U agentorch>=2.1.0
59
61
  devtorch init
60
62
  devtorch setup # connects to Claude Code, Cursor, or Antigravity
61
63
  devtorch debug timeline
@@ -101,6 +103,14 @@ pip install agentorch
101
103
 
102
104
  **Requirements:** Python 3.10+
103
105
 
106
+ One-liner installer (Linux/macOS/WSL):
107
+
108
+ ```bash
109
+ curl -fsSL https://raw.githubusercontent.com/hemantcgi/DevTorch/main/Implementation/scripts/install.sh | bash
110
+ ```
111
+
112
+ This installs `agentorch` into an isolated virtual environment at `~/.devtorch-venv` and links `devtorch` onto PATH. It also supports `pip install` if you prefer to manage your own environment.
113
+
104
114
  For optional extras:
105
115
 
106
116
  ```bash
@@ -120,7 +130,7 @@ DevTorch preserves your `.GCC/` store across upgrades. Newer releases add IDE co
120
130
  **Upgrade any time:**
121
131
 
122
132
  ```bash
123
- pip install -U agentorch>=2.0.2
133
+ pip install -U agentorch>=2.1.0
124
134
  cd /path/to/your/project
125
135
  devtorch setup # or: devtorch setup --target <ide>
126
136
  devtorch doctor
@@ -184,7 +194,7 @@ Open Claude Code in your project. On the first task Claude will call `devtorch_c
184
194
 
185
195
  **What you get:** Full RACP integration — reasoning commits, sensitivity events, coordination vector Θ, divergence detection, HITL conflict resolution.
186
196
 
187
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
197
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup` will rewrite `.claude/hooks.json`, `.claude/settings.json`, and `CLAUDE.md` with the latest versions.
188
198
 
189
199
  ---
190
200
 
@@ -228,7 +238,7 @@ devtorch doctor
228
238
 
229
239
  **What you get:** MCP tools, VS Code sidebar, optional HTTP proxy for passive capture of all LLM calls (`devtorch proxy start`).
230
240
 
231
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
241
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup --target cursor` will regenerate `.cursor/mcp.json` and update `CLAUDE.md`.
232
242
 
233
243
  ---
234
244
 
@@ -260,7 +270,7 @@ devtorch doctor
260
270
 
261
271
  **What you get:** Full RACP integration. The multi-agent nature of Antigravity makes Θ accumulation especially valuable — multiple agents share the same reasoning state through `devtorch_context`.
262
272
 
263
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
273
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup --target antigravity` will regenerate the MCP config and update `AGENTS.md`.
264
274
 
265
275
  ---
266
276
 
@@ -298,7 +308,7 @@ Open the project in OpenCode. The DevTorch MCP tools will be listed, and the mod
298
308
 
299
309
  **What you get:** Cloud-hosted MCP server integration with automatic local fallback, automatic reasoning commits via `AGENTS.md` instructions, and a shared Θ state across sessions.
300
310
 
301
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
311
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch cloud client-config opencode --org <org> --repo <repo> --api-key <api-key>` will regenerate `opencode.json` with the latest bridge and fallback settings. **Restart OpenCode** after updating the config.
302
312
 
303
313
  ---
304
314
 
@@ -330,7 +340,7 @@ devtorch sensitivity add --source you --concept auth --confidence 0.9 --disclosu
330
340
 
331
341
  **What you get:** Sidebar panel (read-only), git-commit-level event capture, manual reasoning commits. Full capture requires switching to Claude Code, Cursor, Kiro, or Antigravity.
332
342
 
333
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2 && devtorch setup` will reinstall the git hook and update the governance instructions.
343
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0 && devtorch setup` will reinstall the git hook and update the governance instructions.
334
344
 
335
345
  ---
336
346
 
@@ -395,7 +405,7 @@ devtorch doctor
395
405
 
396
406
  **What you get:** Full RACP integration equivalent to Claude Code — MCP tools, steering-document governance, agent action hooks.
397
407
 
398
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
408
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0`, then re-run the manual steps above and refresh your steering document with the latest `AGENTS.md` text.
399
409
 
400
410
  ---
401
411
 
@@ -428,7 +438,7 @@ All `invoke_model()` and `converse()` calls are identical. DevTorch injects the
428
438
  devtorch doctor
429
439
  ```
430
440
 
431
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
441
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
432
442
 
433
443
  ---
434
444
 
@@ -462,7 +472,7 @@ client = AzureOpenAI(
462
472
  devtorch doctor
463
473
  ```
464
474
 
465
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
475
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
466
476
 
467
477
  ---
468
478
 
@@ -488,7 +498,7 @@ codex "Add error handling to the payment service"
488
498
 
489
499
  All Codex calls are intercepted by the proxy, which injects the RACP prefix and captures responses into `.GCC/`.
490
500
 
491
- > **Updating from an older version:** `pip install -U agentorch>=2.0.2`.
501
+ > **Updating from an older version:** `pip install -U agentorch>=2.1.0`.
492
502
 
493
503
  ---
494
504
 
@@ -522,7 +532,7 @@ devtorch doctor
522
532
 
523
533
  No API key required. Fully local — RACP context and captures stay on-device.
524
534
 
525
- > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.0.2`.
535
+ > **Updating from an older version:** `pip install -U agentorch[wrapper]>=2.1.0`.
526
536
 
527
537
  ---
528
538
 
@@ -535,11 +545,33 @@ For teams that want a single shared reasoning backend across all projects and ma
535
545
  ```bash
536
546
  cd /path/to/DevTorch/Implementation/deploy/cloudflare-worker
537
547
  cp .env.example .env
538
- # Fill in R2_BUCKET, R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
539
- ./deploy.sh .env
548
+ # Fill in R2_ACCOUNT_ID, R2_BUCKET, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
549
+ # Optionally set OPENAI_API_KEY for the DRPL openai embedding backend
550
+ source .env
551
+ ./setup-mcp-server.sh
552
+ ```
553
+
554
+ The script will:
555
+
556
+ 1. Ensure the R2 bucket exists.
557
+ 2. Deploy the Cloudflare Worker.
558
+ 3. Create an org/repo-scoped API key.
559
+ 4. Install the MCP client config for your IDE.
560
+ 5. Run a health check.
561
+
562
+ For CI/CD, the same script runs non-interactively:
563
+
564
+ ```bash
565
+ ./setup-mcp-server.sh --non-interactive \
566
+ --org myorg \
567
+ --repo myproject \
568
+ --ide opencode \
569
+ --openai-key "$OPENAI_API_KEY"
540
570
  ```
541
571
 
542
- The live URL will look like:
572
+ The repository also includes `.github/workflows/deploy-cloudflare-worker.yml`, which runs on every `v*` tag and deploys the Worker (skipping key creation and client config).
573
+
574
+ **Live URL:**
543
575
 
544
576
  ```text
545
577
  https://devtorch-mcp.YOUR_ACCOUNT.workers.dev
@@ -557,21 +589,19 @@ devtorch cloud key create --org myorg --repo myproject
557
589
 
558
590
  ```bash
559
591
  export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
560
- /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
561
- <ide> <org> <repo> <api-key>
592
+ devtorch cloud client-config <ide> --org myorg --repo myproject --api-key <api-key>
562
593
  ```
563
594
 
564
595
  Supported `<ide>` values: `opencode`, `claude`, `cursor`, `vscode`, `stdio`.
565
596
 
566
- **Full walkthrough:** `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
597
+ **Full walkthrough:** `deploy/cloudflare-worker/README.md` has manual setup details and the full tool list. `IDE_SETUP.md` has step-by-step setup for OpenCode, Claude Code, Cursor, VS Code, Kiro, Antigravity, JetBrains, and generic MCP clients.
567
598
 
568
599
  > **Updating from an older version:** You do **not** need to redeploy the Cloudflare Worker for client-side changes. Just regenerate the IDE config on each machine after upgrading `agentorch`:
569
600
  > ```bash
570
- > pip install -U agentorch>=2.0.2
571
- > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
572
- > /path/to/DevTorch/Implementation/deploy/cloudflare-worker/install-client-config.sh \
573
- > <ide> <org> <repo> <api-key>
574
- > ```
601
+ > > pip install -U agentorch>=2.1.0
602
+ > > export DEVTORCH_MCP_DOMAIN=devtorch-mcp.YOUR_ACCOUNT.workers.dev
603
+ > > devtorch cloud client-config <ide> --org <org> --repo <repo> --api-key <api-key>
604
+ > > ```
575
605
 
576
606
  ---
577
607
 
@@ -33,6 +33,7 @@ devtorch_core/prompt_artifact.py
33
33
  devtorch_core/rdp.py
34
34
  devtorch_core/rep.py
35
35
  devtorch_core/sensitivity.py
36
+ devtorch_core/serve.py
36
37
  devtorch_core/signing.py
37
38
  devtorch_core/sis.py
38
39
  devtorch_core/storage.py
@@ -100,6 +101,7 @@ devtorch_core/metrics/aggregate.py
100
101
  devtorch_core/metrics/calibrate.py
101
102
  devtorch_core/metrics/calibration.py
102
103
  devtorch_core/metrics/credibility.py
104
+ devtorch_core/metrics/delivery_time.py
103
105
  devtorch_core/metrics/dhs.py
104
106
  devtorch_core/metrics/mcs.py
105
107
  devtorch_core/metrics/roi.py
@@ -135,8 +137,10 @@ devtorch_core/reasoning_plus/prompt.py
135
137
  devtorch_core/reasoning_plus/learning/__init__.py
136
138
  devtorch_core/reasoning_plus/learning/api.py
137
139
  devtorch_core/reasoning_plus/learning/composer.py
140
+ devtorch_core/reasoning_plus/learning/embeddings.py
138
141
  devtorch_core/reasoning_plus/learning/extractor.py
139
142
  devtorch_core/reasoning_plus/learning/models.py
143
+ devtorch_core/reasoning_plus/learning/provenance.py
140
144
  devtorch_core/reasoning_plus/learning/recorder.py
141
145
  devtorch_core/reasoning_plus/learning/relevance.py
142
146
  devtorch_core/reasoning_plus/learning/state.py
@@ -146,6 +150,13 @@ devtorch_core/rep_network/merge.py
146
150
  devtorch_core/rep_network/node.py
147
151
  devtorch_core/rep_network/server.py
148
152
  devtorch_core/rep_network/sync.py
153
+ devtorch_core/templates/__init__.py
154
+ devtorch_core/templates/engine.py
155
+ devtorch_core/templates/go.py
156
+ devtorch_core/templates/infra.py
157
+ devtorch_core/templates/python.py
158
+ devtorch_core/templates/react.py
159
+ devtorch_core/templates/typescript.py
149
160
  devtorch_core/wrapper/__init__.py
150
161
  devtorch_core/wrapper/anthropic.py
151
162
  devtorch_core/wrapper/base.py
@@ -202,6 +213,10 @@ tests/test_s22_swe_bench.py
202
213
  tests/test_s22_swe_bench_dry_run.py
203
214
  tests/test_s23_reasoning_plus.py
204
215
  tests/test_s24_reasoning_plus_learning.py
216
+ tests/test_s25_delivery_time.py
217
+ tests/test_s25_serve.py
218
+ tests/test_s25_setup_detection.py
219
+ tests/test_s25_templates.py
205
220
  tests/test_s2_context.py
206
221
  tests/test_s3_sensitivity.py
207
222
  tests/test_s4_invariants.py