reactifact 0.24.0__tar.gz → 0.25.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 (557) hide show
  1. {reactifact-0.24.0/reactifact.egg-info → reactifact-0.25.0}/PKG-INFO +1 -1
  2. {reactifact-0.24.0 → reactifact-0.25.0}/pyproject.toml +1 -1
  3. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/__init__.py +9 -5
  4. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/authz.py +45 -1
  5. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/chat.py +70 -4
  6. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/check.py +35 -19
  7. reactifact-0.25.0/reactifact/cli/config.py +120 -0
  8. reactifact-0.25.0/reactifact/cli/doctor.py +273 -0
  9. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/graph.py +16 -4
  10. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/skills.py +22 -4
  11. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/validate.py +17 -4
  12. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/contracts/report.py +19 -2
  13. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/llm_agent.py +82 -71
  14. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/mcp/client.py +1 -1
  15. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/mcp/server.py +67 -43
  16. reactifact-0.25.0/reactifact/prompts.py +575 -0
  17. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/__init__.py +2 -0
  18. reactifact-0.25.0/reactifact/providers/spec.py +328 -0
  19. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/rag.py +2 -2
  20. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/tools_agent.py +1 -1
  21. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/__init__.py +15 -1
  22. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/cleanup.py +50 -1
  23. reactifact-0.25.0/reactifact/recipes/conversation/__init__.py +74 -0
  24. reactifact-0.25.0/reactifact/recipes/conversation/_common.py +13 -0
  25. reactifact-0.25.0/reactifact/recipes/conversation/core.py +173 -0
  26. reactifact-0.25.0/reactifact/recipes/conversation/models.py +28 -0
  27. reactifact-0.25.0/reactifact/recipes/conversation/turn_context.py +252 -0
  28. reactifact-0.25.0/reactifact/recipes/conversation/views.py +153 -0
  29. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/memory.py +149 -52
  30. reactifact-0.25.0/reactifact/recipes/route.py +156 -0
  31. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/status.py +83 -58
  32. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/supervisor.py +8 -10
  33. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/tool_loop.py +6 -1
  34. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/request.py +39 -2
  35. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/resources.py +15 -4
  36. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/patch.py +8 -5
  37. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/runtime.py +52 -0
  38. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact/SKILL.md +61 -19
  39. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact/references/effects-and-state.md +32 -17
  40. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact/references/trust-and-safety.md +5 -2
  41. reactifact-0.25.0/reactifact/skills/reactifact-agents/SKILL.md +294 -0
  42. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-agents/references/consume.md +49 -6
  43. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-agents/references/effects.md +34 -14
  44. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-eval/SKILL.md +29 -7
  45. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-from-langchain/SKILL.md +13 -12
  46. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-llm/SKILL.md +80 -12
  47. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-llm/references/providers.md +31 -8
  48. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-llm/references/tools.md +14 -9
  49. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-observability/SKILL.md +13 -11
  50. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-rag/SKILL.md +42 -21
  51. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-rag/references/sources.md +12 -11
  52. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-testing/SKILL.md +5 -5
  53. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/sources.py +1 -141
  54. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/__init__.py +2 -8
  55. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/annotations.py +22 -0
  56. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/call.py +6 -4
  57. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/core.py +47 -3
  58. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/decorator.py +12 -5
  59. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/group.py +82 -1
  60. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/step/resolve.py +20 -4
  61. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/fault.py +3 -3
  62. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/agent.py +1 -1
  63. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/base.py +28 -1
  64. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/native.py +3 -3
  65. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/use/__init__.py +2 -1
  66. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/use/base.py +1 -0
  67. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/use/blocking.py +68 -7
  68. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/use/hitl.py +3 -1
  69. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/types.py +25 -7
  70. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/validate.py +30 -1
  71. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/verify.py +63 -49
  72. {reactifact-0.24.0 → reactifact-0.25.0/reactifact.egg-info}/PKG-INFO +1 -1
  73. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact.egg-info/SOURCES.txt +19 -5
  74. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_agent_tool.py +2 -2
  75. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_authz.py +42 -0
  76. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_facade.py +29 -0
  77. reactifact-0.25.0/tests/test_cli_config.py +51 -0
  78. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli_doctor.py +47 -1
  79. reactifact-0.25.0/tests/test_docs_imports.py +65 -0
  80. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_dx_errors.py +2 -1
  81. reactifact-0.25.0/tests/test_ergonomics_025.py +364 -0
  82. reactifact-0.25.0/tests/test_examples_hygiene.py +45 -0
  83. reactifact-0.25.0/tests/test_group_fallback.py +131 -0
  84. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_mcp.py +35 -2
  85. reactifact-0.25.0/tests/test_memory_helpers.py +88 -0
  86. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_native_tool_use.py +2 -2
  87. reactifact-0.25.0/tests/test_prompts.py +373 -0
  88. reactifact-0.25.0/tests/test_provider_spec.py +213 -0
  89. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_public_api.py +65 -0
  90. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipe_conversation.py +46 -1
  91. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipe_tool_loop.py +6 -6
  92. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipes.py +28 -0
  93. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipes_memory.py +108 -15
  94. reactifact-0.25.0/tests/test_route.py +100 -0
  95. reactifact-0.25.0/tests/test_scoped_cleanup.py +57 -0
  96. reactifact-0.25.0/tests/test_skills.py +224 -0
  97. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_structured.py +8 -0
  98. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_lab.py +1 -1
  99. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_mock.py +1 -1
  100. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_tool_injection.py +1 -1
  101. reactifact-0.25.0/tests/test_tool_use_native.py +137 -0
  102. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_tools.py +16 -1
  103. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_type_registry.py +26 -0
  104. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_verify.py +22 -6
  105. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_web_source.py +12 -0
  106. reactifact-0.24.0/reactifact/agent_tool.py +0 -5
  107. reactifact-0.24.0/reactifact/cli/doctor.py +0 -159
  108. reactifact-0.24.0/reactifact/native_tool_use.py +0 -21
  109. reactifact-0.24.0/reactifact/prompts.py +0 -179
  110. reactifact-0.24.0/reactifact/recipes/conversation.py +0 -320
  111. reactifact-0.24.0/reactifact/skills/reactifact-agents/SKILL.md +0 -161
  112. reactifact-0.24.0/reactifact/tool_use.py +0 -17
  113. reactifact-0.24.0/tests/test_prompts.py +0 -138
  114. reactifact-0.24.0/tests/test_skills.py +0 -106
  115. reactifact-0.24.0/tests/test_sources_vector.py +0 -87
  116. {reactifact-0.24.0 → reactifact-0.25.0}/LICENSE +0 -0
  117. {reactifact-0.24.0 → reactifact-0.25.0}/README.md +0 -0
  118. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/__main__.py +0 -0
  119. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/_extras.py +0 -0
  120. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/_httpx.py +0 -0
  121. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/_persistence.py +0 -0
  122. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/a2a/__init__.py +0 -0
  123. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/a2a/client.py +0 -0
  124. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/a2a/models.py +0 -0
  125. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/a2a/remote.py +0 -0
  126. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/a2a/server.py +0 -0
  127. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/artifacts.py +0 -0
  128. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/audit.py +0 -0
  129. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/branching/__init__.py +0 -0
  130. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/branching/ops.py +0 -0
  131. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/branching/store.py +0 -0
  132. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/budget.py +0 -0
  133. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cache.py +0 -0
  134. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/checkpoints.py +0 -0
  135. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/__init__.py +0 -0
  136. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/branch.py +0 -0
  137. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/common.py +0 -0
  138. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/context.py +0 -0
  139. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/contracts.py +0 -0
  140. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/daemon.py +0 -0
  141. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/demo.py +0 -0
  142. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/dev.py +0 -0
  143. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/eval.py +0 -0
  144. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/new.py +0 -0
  145. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/replay.py +0 -0
  146. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/run.py +0 -0
  147. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/scenario.py +0 -0
  148. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/trace.py +0 -0
  149. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/cli/traces.py +0 -0
  150. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/commit.py +0 -0
  151. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/commit_log.py +0 -0
  152. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/consume/__init__.py +0 -0
  153. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/consume/base.py +0 -0
  154. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/consume/correlated.py +0 -0
  155. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/consume/lifecycle.py +0 -0
  156. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/context/__init__.py +0 -0
  157. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/context/context.py +0 -0
  158. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/context/index.py +0 -0
  159. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/context/pending.py +0 -0
  160. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/context/serialization.py +0 -0
  161. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/context_builder.py +0 -0
  162. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/contracts/__init__.py +0 -0
  163. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/contracts/templates/contracts.html +0 -0
  164. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/contracts/templates/favicon.svg +0 -0
  165. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/contracts/web.py +0 -0
  166. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/daemon.py +0 -0
  167. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/demo.py +0 -0
  168. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/demo_web.py +0 -0
  169. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/di.py +0 -0
  170. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/effects.py +0 -0
  171. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/__init__.py +0 -0
  172. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/dataset.py +0 -0
  173. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/evaluators.py +0 -0
  174. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/judge.py +0 -0
  175. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/online.py +0 -0
  176. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/retrieval.py +0 -0
  177. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/runner.py +0 -0
  178. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/eval/scoring.py +0 -0
  179. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/events.py +0 -0
  180. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/experiments.py +0 -0
  181. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/guardrails.py +0 -0
  182. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/interaction.py +0 -0
  183. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/interrupt.py +0 -0
  184. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/__init__.py +0 -0
  185. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/_closers.py +0 -0
  186. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/bridge.py +0 -0
  187. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/chunk.py +0 -0
  188. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/connectors/__init__.py +0 -0
  189. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/connectors/base.py +0 -0
  190. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/connectors/filesystem.py +0 -0
  191. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/connectors/http.py +0 -0
  192. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/connectors/s3.py +0 -0
  193. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/diversity.py +0 -0
  194. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/docstore.py +0 -0
  195. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/embed.py +0 -0
  196. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/errors.py +0 -0
  197. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/eval.py +0 -0
  198. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/__init__.py +0 -0
  199. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/auto.py +0 -0
  200. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/base.py +0 -0
  201. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/docx.py +0 -0
  202. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/pdf.py +0 -0
  203. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/structured.py +0 -0
  204. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/extract/text.py +0 -0
  205. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/http.py +0 -0
  206. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/__init__.py +0 -0
  207. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/acl.py +0 -0
  208. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/base.py +0 -0
  209. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/chroma.py +0 -0
  210. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/fusion.py +0 -0
  211. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/keyword.py +0 -0
  212. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/math.py +0 -0
  213. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/memory.py +0 -0
  214. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/pgvector.py +0 -0
  215. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/qdrant.py +0 -0
  216. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/sqlite.py +0 -0
  217. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/models.py +0 -0
  218. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/pipeline.py +0 -0
  219. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/rerank.py +0 -0
  220. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/templates/knowledge.html +0 -0
  221. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/knowledge/web.py +0 -0
  222. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/logging.py +0 -0
  223. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/mcp/__init__.py +0 -0
  224. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/mcp/oauth.py +0 -0
  225. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/metrics.py +0 -0
  226. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/operations.py +0 -0
  227. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/patches.py +0 -0
  228. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/pipeline.py +0 -0
  229. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/policy.py +0 -0
  230. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/pricing.py +0 -0
  231. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/provenance.py +0 -0
  232. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/_retry.py +0 -0
  233. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/anthropic.py +0 -0
  234. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/azure.py +0 -0
  235. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/cerebras.py +0 -0
  236. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/chat.py +0 -0
  237. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/contracts.py +0 -0
  238. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/deepseek.py +0 -0
  239. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/fake.py +0 -0
  240. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/fireworks.py +0 -0
  241. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/gemini.py +0 -0
  242. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/github_models.py +0 -0
  243. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/groq.py +0 -0
  244. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/image.py +0 -0
  245. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/mistral.py +0 -0
  246. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/nvidia.py +0 -0
  247. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/ollama.py +0 -0
  248. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/openai.py +0 -0
  249. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/openrouter.py +0 -0
  250. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/perplexity.py +0 -0
  251. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/qwen.py +0 -0
  252. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/speech.py +0 -0
  253. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/together.py +0 -0
  254. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/video.py +0 -0
  255. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/xai.py +0 -0
  256. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/providers/zai.py +0 -0
  257. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/py.typed +0 -0
  258. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/__init__.py +0 -0
  259. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/_shared.py +0 -0
  260. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/agent.py +0 -0
  261. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/chat.py +0 -0
  262. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quick/models.py +0 -0
  263. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/quota.py +0 -0
  264. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/_effects.py +0 -0
  265. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/approval/__init__.py +0 -0
  266. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/approval/classify.py +0 -0
  267. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/approval/models.py +0 -0
  268. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/approval/policy.py +0 -0
  269. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/approval/steps.py +0 -0
  270. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/identity.py +0 -0
  271. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/inputs.py +0 -0
  272. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/map_reduce.py +0 -0
  273. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/memory_store.py +0 -0
  274. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/plan_execute.py +0 -0
  275. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/reflection.py +0 -0
  276. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/resolve.py +0 -0
  277. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/rollback.py +0 -0
  278. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/search.py +0 -0
  279. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/skills.py +0 -0
  280. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/swarm.py +0 -0
  281. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/recipes/text.py +0 -0
  282. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/redaction.py +0 -0
  283. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/relations.py +0 -0
  284. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/replay.py +0 -0
  285. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/routing.py +0 -0
  286. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/__init__.py +0 -0
  287. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/budget.py +0 -0
  288. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/events.py +0 -0
  289. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/loop.py +0 -0
  290. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/outbox.py +0 -0
  291. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/runtime/result.py +0 -0
  292. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/scheduler.py +0 -0
  293. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/session.py +0 -0
  294. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/skills/reactifact-eval/references/online.md +0 -0
  295. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/streaming.py +0 -0
  296. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/structured.py +0 -0
  297. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/subflow.py +0 -0
  298. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/__init__.py +0 -0
  299. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/agent/.gitignore +0 -0
  300. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/agent/README.md +0 -0
  301. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/agent/main.py +0 -0
  302. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/agent/pyproject.toml +0 -0
  303. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/.env.example +0 -0
  304. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/.gitignore +0 -0
  305. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/Dockerfile +0 -0
  306. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/README.md +0 -0
  307. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/__init__.py +0 -0
  308. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/config.py +0 -0
  309. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/llm.py +0 -0
  310. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/llm_presets.py +0 -0
  311. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/main.py +0 -0
  312. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/models.py +0 -0
  313. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/monitor.py +0 -0
  314. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/prompts.py +0 -0
  315. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/resources.py +0 -0
  316. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/runner.py +0 -0
  317. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/pyproject.toml +0 -0
  318. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/tests/__init__.py +0 -0
  319. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/daemon/tests/test_daemon.py +0 -0
  320. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/.env.example +0 -0
  321. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/.gitignore +0 -0
  322. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/Dockerfile +0 -0
  323. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/README.md +0 -0
  324. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/__init__.py +0 -0
  325. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/__init__.py +0 -0
  326. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/pipeline.py +0 -0
  327. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/prompts.py +0 -0
  328. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/resources.py +0 -0
  329. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/steps/__init__.py +0 -0
  330. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/steps/answer.py +0 -0
  331. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/__init__.py +0 -0
  332. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/deps.py +0 -0
  333. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/routes/__init__.py +0 -0
  334. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/routes/chat.py +0 -0
  335. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/authz.py +0 -0
  336. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/bootstrap.py +0 -0
  337. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/config.py +0 -0
  338. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/llm.py +0 -0
  339. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/llm_presets.py +0 -0
  340. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/main.py +0 -0
  341. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/models.py +0 -0
  342. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/security.py +0 -0
  343. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/pyproject.toml +0 -0
  344. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/__init__.py +0 -0
  345. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/conftest.py +0 -0
  346. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/test_auth_sessions.py +0 -0
  347. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/test_chat_sse.py +0 -0
  348. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/test_settings.py +0 -0
  349. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/__init__.py +0 -0
  350. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/assertions.py +0 -0
  351. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/client.py +0 -0
  352. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/exceptions.py +0 -0
  353. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/golden.py +0 -0
  354. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/lab.py +0 -0
  355. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/mock.py +0 -0
  356. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/pytest_plugin.py +0 -0
  357. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/record.py +0 -0
  358. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/testing/registry.py +0 -0
  359. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/__init__.py +0 -0
  360. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/contracts.py +0 -0
  361. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/runlog.py +0 -0
  362. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tools/schema.py +0 -0
  363. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/__init__.py +0 -0
  364. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/_otlp.py +0 -0
  365. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/_shared.py +0 -0
  366. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/columns.py +0 -0
  367. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/diff.py +0 -0
  368. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/langfuse.py +0 -0
  369. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/models.py +0 -0
  370. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/otlp.py +0 -0
  371. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/postgres.py +0 -0
  372. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/retention.py +0 -0
  373. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/sampling.py +0 -0
  374. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/store.py +0 -0
  375. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/templates/app.css +0 -0
  376. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/templates/sessions.html +0 -0
  377. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/templates/ui.html +0 -0
  378. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/templates/ui_run.html +0 -0
  379. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/tracer.py +0 -0
  380. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/tracing/web.py +0 -0
  381. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/triggers.py +0 -0
  382. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/viz.py +0 -0
  383. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/web/__init__.py +0 -0
  384. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/web/chat.py +0 -0
  385. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/web/common.py +0 -0
  386. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact/web/pipeline.py +0 -0
  387. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact.egg-info/dependency_links.txt +0 -0
  388. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact.egg-info/entry_points.txt +0 -0
  389. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact.egg-info/requires.txt +0 -0
  390. {reactifact-0.24.0 → reactifact-0.25.0}/reactifact.egg-info/top_level.txt +0 -0
  391. {reactifact-0.24.0 → reactifact-0.25.0}/setup.cfg +0 -0
  392. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_a2a.py +0 -0
  393. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_a2a_interop.py +0 -0
  394. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_absent_consume.py +0 -0
  395. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_agent_policy.py +0 -0
  396. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_anthropic_provider.py +0 -0
  397. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_approval_recipe.py +0 -0
  398. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_artifact_store.py +0 -0
  399. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_artifacts.py +0 -0
  400. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_audit.py +0 -0
  401. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_backbone.py +0 -0
  402. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_branching.py +0 -0
  403. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_budget.py +0 -0
  404. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cache.py +0 -0
  405. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_change_instructions.py +0 -0
  406. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_example.py +0 -0
  407. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_hitl.py +0 -0
  408. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_http.py +0 -0
  409. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_memory.py +0 -0
  410. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_outbox.py +0 -0
  411. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_chat_web.py +0 -0
  412. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_checkpoint.py +0 -0
  413. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_checkpoints.py +0 -0
  414. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_checkpoints_concurrency.py +0 -0
  415. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli.py +0 -0
  416. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli_check.py +0 -0
  417. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli_daemon.py +0 -0
  418. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli_dev.py +0 -0
  419. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli_new.py +0 -0
  420. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_cli_scenario.py +0 -0
  421. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_code_review.py +0 -0
  422. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_commit_dag.py +0 -0
  423. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_commit_log.py +0 -0
  424. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_compaction.py +0 -0
  425. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_concurrency.py +0 -0
  426. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_conflict.py +0 -0
  427. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_consume_lifecycle.py +0 -0
  428. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_consumes_produces.py +0 -0
  429. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_context_at.py +0 -0
  430. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_context_builder.py +0 -0
  431. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_context_provenance.py +0 -0
  432. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_contracts.py +0 -0
  433. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_contracts_web.py +0 -0
  434. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_correlated_consume.py +0 -0
  435. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_daemon.py +0 -0
  436. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_debounce.py +0 -0
  437. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_demo.py +0 -0
  438. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_demo_web.py +0 -0
  439. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_determinism.py +0 -0
  440. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_devops.py +0 -0
  441. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_devops_auth.py +0 -0
  442. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_devops_branches.py +0 -0
  443. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_devops_online.py +0 -0
  444. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_devops_web.py +0 -0
  445. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_di.py +0 -0
  446. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_effects.py +0 -0
  447. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_eval.py +0 -0
  448. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_eval_dataset.py +0 -0
  449. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_eval_judge.py +0 -0
  450. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_eval_online.py +0 -0
  451. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_eval_retrieval.py +0 -0
  452. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_eval_trajectory.py +0 -0
  453. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_experiments.py +0 -0
  454. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_fintech_audit.py +0 -0
  455. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_forklab.py +0 -0
  456. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_forklab_web.py +0 -0
  457. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_friendly_api.py +0 -0
  458. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_gemini_provider.py +0 -0
  459. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_golden.py +0 -0
  460. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_guardrails.py +0 -0
  461. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_hitl.py +0 -0
  462. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_idempotent_consume.py +0 -0
  463. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_image_provider.py +0 -0
  464. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_interaction.py +0 -0
  465. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_invalidation.py +0 -0
  466. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_join_consume.py +0 -0
  467. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_knowledge.py +0 -0
  468. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_knowledge_web.py +0 -0
  469. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_lazy_providers.py +0 -0
  470. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_logging.py +0 -0
  471. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_loop_bound_client.py +0 -0
  472. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_map_reduce.py +0 -0
  473. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_medic_lab.py +0 -0
  474. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_medic_lab_web.py +0 -0
  475. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_memory_store.py +0 -0
  476. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_metrics.py +0 -0
  477. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_multisource.py +0 -0
  478. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_openai_provider.py +0 -0
  479. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_outbox.py +0 -0
  480. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_patches.py +0 -0
  481. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_pending_actions.py +0 -0
  482. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_pipeline_http.py +0 -0
  483. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_pipeline_lifecycle.py +0 -0
  484. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_pipeline_tool.py +0 -0
  485. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_produce_trigger.py +0 -0
  486. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_provider_auth.py +0 -0
  487. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_provider_retry.py +0 -0
  488. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_providers_integration.py +0 -0
  489. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_quick.py +0 -0
  490. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_quota.py +0 -0
  491. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_reacts_to.py +0 -0
  492. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipe_plan_execute.py +0 -0
  493. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipe_reflection.py +0 -0
  494. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipe_supervisor.py +0 -0
  495. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipes_inputs.py +0 -0
  496. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_recipes_skills.py +0 -0
  497. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_redaction.py +0 -0
  498. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_reference.py +0 -0
  499. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_relation_graph.py +0 -0
  500. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_relations.py +0 -0
  501. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_repair.py +0 -0
  502. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_repair_web.py +0 -0
  503. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_replay.py +0 -0
  504. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_replay_tools.py +0 -0
  505. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_repo_agent.py +0 -0
  506. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_request.py +0 -0
  507. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_resources.py +0 -0
  508. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_retry.py +0 -0
  509. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_routing.py +0 -0
  510. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_runtime.py +0 -0
  511. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_runtime_errors.py +0 -0
  512. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_scheduler_semantics.py +0 -0
  513. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_session_append.py +0 -0
  514. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_sessions.py +0 -0
  515. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_shutdown.py +0 -0
  516. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_sources.py +0 -0
  517. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_sources_search.py +0 -0
  518. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_speech_provider.py +0 -0
  519. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_starter_app.py +0 -0
  520. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_annotated.py +0 -0
  521. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_group.py +0 -0
  522. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_provenance.py +0 -0
  523. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_resolve.py +0 -0
  524. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_return_inference.py +0 -0
  525. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_scope.py +0 -0
  526. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_step_watermark.py +0 -0
  527. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_stream_events.py +0 -0
  528. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_streaming.py +0 -0
  529. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_subflow.py +0 -0
  530. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_swarm.py +0 -0
  531. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_assertions.py +0 -0
  532. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_golden.py +0 -0
  533. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_provenance.py +0 -0
  534. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_pytest_plugin.py +0 -0
  535. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_testing_registry.py +0 -0
  536. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_token_budget.py +0 -0
  537. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_tour.py +0 -0
  538. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_columns.py +0 -0
  539. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_limits.py +0 -0
  540. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_reports.py +0 -0
  541. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_retention.py +0 -0
  542. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_sampling.py +0 -0
  543. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_tags.py +0 -0
  544. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_trace_ui.py +0 -0
  545. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_tracing.py +0 -0
  546. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_triggers.py +0 -0
  547. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_validate.py +0 -0
  548. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_vendor_factories.py +0 -0
  549. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_vendor_multimodal_factories.py +0 -0
  550. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_version.py +0 -0
  551. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_video_provider.py +0 -0
  552. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_view.py +0 -0
  553. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_viz.py +0 -0
  554. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_web_errors.py +0 -0
  555. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_workspace.py +0 -0
  556. {reactifact-0.24.0 → reactifact-0.25.0}/tests/test_workspace_with_sources.py +0 -0
  557. {reactifact-0.24.0 → reactifact-0.25.0}/tests/tests_checkpoints_sqlite.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reactifact
3
- Version: 0.24.0
3
+ Version: 0.25.0
4
4
  Summary: Reactive, artifact-driven agent runtime: agents transform versioned, typed, provenance-aware artifacts inside an evolving context
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/bzdvdn/reactifact
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reactifact"
7
- version = "0.24.0"
7
+ version = "0.25.0"
8
8
  description = "Reactive, artifact-driven agent runtime: agents transform versioned, typed, provenance-aware artifacts inside an evolving context"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -5,10 +5,11 @@ section, plus the everyday building blocks (tool calling, sessions, the LLM
5
5
  provider protocol) most agents need regardless of what else they use.
6
6
 
7
7
  Everything else — eval, tracing, checkpoint/branch backends beyond the
8
- in-memory default, the chat/web layer, the adaptive scheduler, replay,
9
- structured-LLM helpers, viz, prompts — is one level down, in its own
10
- submodule (`reactifact.eval`, `reactifact.tracing`, `reactifact.chat`, ...). Import it
11
- from there:
8
+ in-memory default, chat hooks beyond `Chat` (`ChatReply`, `ChatMemory`,
9
+ `ChatAssistant`), tool loops (`ToolUse`), provider specs, recipes, the
10
+ adaptive scheduler, replay, structured-LLM helpers, viz, prompts — is one
11
+ level down, in its own submodule (`reactifact.eval`, `reactifact.tracing`,
12
+ `reactifact.chat`, ...). Import it from there:
12
13
 
13
14
  from reactifact.structured import structured_llm
14
15
  from reactifact.tracing import TraceStore
@@ -69,7 +70,7 @@ from .providers import (
69
70
  LLMResponseChunk,
70
71
  Message,
71
72
  )
72
- from .request import current_request
73
+ from .request import CurrentRequest, current_request
73
74
  from .resources import ResourceKey, ResourceScope, RuntimeResources
74
75
  from .runtime import RunResult, Runtime
75
76
  from .session import Session, SessionStore
@@ -84,6 +85,7 @@ from .step import (
84
85
  Step,
85
86
  StepCall,
86
87
  StepGroup,
88
+ Unscoped,
87
89
  Wakes,
88
90
  When,
89
91
  create_step_group,
@@ -107,6 +109,7 @@ except _PackageNotFoundError: # source checkout without an installed distributi
107
109
 
108
110
  __all__ = [
109
111
  "StepGroup",
112
+ "Unscoped",
110
113
  "Artifact",
111
114
  "ArtifactConflict",
112
115
  "Budget",
@@ -155,6 +158,7 @@ __all__ = [
155
158
  "SubflowResult",
156
159
  "Relation",
157
160
  "RelationName",
161
+ "CurrentRequest",
158
162
  "ResourceKey",
159
163
  "ResourceScope",
160
164
  "RetryPolicy",
@@ -17,11 +17,15 @@ The default is `None`, and with no authorizer every action is allowed — authz
17
17
  is opt-in and does not change existing behavior. Denials raise
18
18
  `AuthorizationError` from `Runtime.arun()` (or that agent's generation is
19
19
  dropped when `isolate_errors=True`).
20
+
21
+ Inside a step, inject the focused `Access` collaborator instead of the whole
22
+ `RuntimeResources`: `access.can("run", name)` for a branch,
23
+ `access.require("create", "Answer")` to raise.
20
24
  """
21
25
 
22
26
  from __future__ import annotations
23
27
 
24
- from collections.abc import Iterable, Mapping
28
+ from collections.abc import Callable, Iterable, Mapping
25
29
  from dataclasses import dataclass, field
26
30
  from typing import Any, Protocol, runtime_checkable
27
31
 
@@ -63,6 +67,45 @@ class Authorizer(Protocol):
63
67
  ) -> bool: ...
64
68
 
65
69
 
70
+ class Access:
71
+ """The authorization collaborator injected into a step.
72
+
73
+ It wraps `RuntimeResources.authorize`/`require_authorized`, so a step can
74
+ ask a focused question without receiving the whole resource container:
75
+
76
+ async def run(self, request: Request, access: Access) -> Reply:
77
+ if not access.can("run", "deploy"):
78
+ return Reply(text="denied")
79
+ access.require("create", "Deployment")
80
+
81
+ With no authorizer configured, `can` is always true and `require` is a
82
+ no-op — authz stays opt-in.
83
+ """
84
+
85
+ __slots__ = ("_authorize", "principal")
86
+
87
+ def __init__(
88
+ self,
89
+ authorize: Callable[[str, str], bool],
90
+ principal: Principal | None = None,
91
+ ) -> None:
92
+ self._authorize = authorize
93
+ self.principal = principal
94
+
95
+ def can(self, action: str, resource: str) -> bool:
96
+ """Whether the current principal may perform `action` on `resource`."""
97
+ return self._authorize(action, resource)
98
+
99
+ def require(self, action: str, resource: str) -> None:
100
+ """`can`, but raises `AuthorizationError` when denied."""
101
+ if not self.can(action, resource):
102
+ raise AuthorizationError(action, resource, self.principal)
103
+
104
+ def __repr__(self) -> str:
105
+ who = self.principal.id if self.principal is not None else "anonymous"
106
+ return f"Access(principal={who!r})"
107
+
108
+
66
109
  def _permission_matches(pattern: str, action: str, resource: str) -> bool:
67
110
  """Matches `"action:resource"`, `"action:*"`, `"*:resource"` or `"*"`."""
68
111
  if pattern == "*":
@@ -105,6 +148,7 @@ class PermissionPolicy:
105
148
 
106
149
 
107
150
  __all__ = [
151
+ "Access",
108
152
  "AuthorizationError",
109
153
  "Authorizer",
110
154
  "PermissionPolicy",
@@ -33,6 +33,7 @@ from typing import TYPE_CHECKING, Any, Literal
33
33
 
34
34
  from pydantic import BaseModel
35
35
 
36
+ from .artifacts import Artifact
36
37
  from .budget import Budget
37
38
  from .consume import Consume
38
39
  from .context import Context
@@ -83,12 +84,62 @@ def _fallback_payload(fallback_reply: str) -> dict[str, Any]:
83
84
  return {"reply": fallback_reply, "waiting": False, "error": True}
84
85
 
85
86
 
87
+ @dataclass(frozen=True)
88
+ class ChatReply:
89
+ """A declarative terminal-reply projection for `Chat`/`ChatAssistant`.
90
+
91
+ The common chat shape is "find the answer for this turn, render it, attach
92
+ sources/metadata". `ChatReply` is that shape without a hand-written
93
+ `reply(ctx, msg_id)` function:
94
+
95
+ reply = ChatReply(
96
+ Answer,
97
+ render=lambda a: mask(a.text),
98
+ extra=lambda artifact: {"sources": artifact.data.sources},
99
+ )
100
+ chat = Chat(..., reply=reply)
101
+
102
+ `field` is the model field matched against the turn's message id (default:
103
+ `query_id`). The latest matching artifact wins. `extra` receives the
104
+ artifact, so it can attach ids, sources or domain metadata; `empty`
105
+ overrides the honest fallback payload. A plain callable still works
106
+ unchanged.
107
+ """
108
+
109
+ type: type[BaseModel]
110
+ field: str = "query_id"
111
+ render: Callable[[Any], str] | None = None
112
+ extra: Callable[[Artifact[Any]], Mapping[str, Any]] | None = None
113
+ empty: Mapping[str, Any] | None = None
114
+
115
+ def build(self, context: Context, msg_id: str) -> dict[str, Any]:
116
+ candidates = [
117
+ artifact
118
+ for artifact in context.list_artifacts(self.type)
119
+ if getattr(artifact.data, self.field, None) == msg_id
120
+ ]
121
+ if not candidates:
122
+ return dict(
123
+ self.empty or {"reply": "No reply assembled.", "waiting": False}
124
+ )
125
+ artifact = max(candidates, key=lambda item: item.created_at)
126
+ text = (
127
+ self.render(artifact.data)
128
+ if self.render is not None
129
+ else str(getattr(artifact.data, "text", ""))
130
+ )
131
+ payload: dict[str, Any] = {"reply": text, "waiting": False}
132
+ if self.extra is not None:
133
+ payload.update(dict(self.extra(artifact)))
134
+ return payload
135
+
136
+
86
137
  async def run_message(
87
138
  runtime: Runtime,
88
139
  text: str,
89
140
  *,
90
141
  user_message: type[BaseModel],
91
- reply: Callable[[Context, str], dict[str, Any]],
142
+ reply: Callable[[Context, str], dict[str, Any]] | ChatReply,
92
143
  session_id: str = "",
93
144
  create_message: Callable[..., str] | None = None,
94
145
  status_kinds: Sequence[str] = ("status",),
@@ -166,7 +217,11 @@ async def run_message(
166
217
  )
167
218
  return
168
219
  try:
169
- payload = reply(ctx, msg_id)
220
+ payload = (
221
+ reply.build(ctx, msg_id)
222
+ if isinstance(reply, ChatReply)
223
+ else reply(ctx, msg_id)
224
+ )
170
225
  except Exception:
171
226
  logger.exception("chat.run_message: reply hook crashed")
172
227
  payload = _fallback_payload(fallback_reply)
@@ -344,6 +399,16 @@ class ChatMemory:
344
399
  digest_id: str = "digest"
345
400
  compact_commits: int | None = None
346
401
 
402
+ @classmethod
403
+ def from_transcript(cls, transcript: Any, **kwargs: Any) -> ChatMemory:
404
+ """Builds a policy bound to every type in a `Transcript`.
405
+
406
+ `ChatMemory.from_transcript(transcript, keep=..., summarize=...,
407
+ summary_type=...)` removes the hand-maintained `message_type=`
408
+ duplication; `Transcript.types` is the source of truth.
409
+ """
410
+ return cls(message_types=tuple(transcript.types), **kwargs)
411
+
347
412
  def resolved_message_types(self) -> tuple[type[BaseModel], ...]:
348
413
  """The message types to bound, normalized from the two fields."""
349
414
  if self.message_types is not None:
@@ -420,7 +485,7 @@ class ChatAssistant:
420
485
  groups: Sequence[StepGroup] | Callable[[], Sequence[StepGroup]] | None = None,
421
486
  steps: Sequence[Step] | None = None,
422
487
  user_message: type[BaseModel],
423
- reply: Callable[[Context, str], dict[str, Any]],
488
+ reply: Callable[[Context, str], dict[str, Any]] | ChatReply,
424
489
  session_state: Callable[[Context], dict[str, Any]] | None = None,
425
490
  resources: RuntimeResources | Callable[..., RuntimeResources] | None = None,
426
491
  budget: Budget | None = None,
@@ -726,7 +791,7 @@ class Chat:
726
791
  seed_field: str = "text",
727
792
  seed_factory: Callable[[str, str, Mapping[str, Any]], BaseModel] | None = None,
728
793
  answer_type: type[BaseModel] | None = None,
729
- reply: Callable[[Context, str], dict[str, Any]] | None = None,
794
+ reply: Callable[[Context, str], dict[str, Any]] | ChatReply | None = None,
730
795
  session_state: Callable[[Context], dict[str, Any]] | None = None,
731
796
  resources: RuntimeResources | Callable[..., RuntimeResources] | None = None,
732
797
  llm: Any = None,
@@ -1054,6 +1119,7 @@ def _as_store(store: SessionStore | str | Path | None) -> SessionStore:
1054
1119
  __all__ = [
1055
1120
  "Chat",
1056
1121
  "ChatAssistant",
1122
+ "ChatReply",
1057
1123
  "ChatEvent",
1058
1124
  "ChatEventKind",
1059
1125
  "ChatMemory",
@@ -24,12 +24,14 @@ import os
24
24
  from collections.abc import Mapping, Sequence
25
25
  from typing import Any
26
26
 
27
+ from ..budget import Budget
27
28
  from ..eval import Dataset, core_metrics, evaluate, from_metric
28
29
  from ..pipeline import Pipeline
29
30
  from ..step import Step, StepGroup
30
31
  from ..testing.record import MODE_ENV_VAR
31
32
  from ..testing.registry import collect
32
33
  from ..validate import validate_contracts
34
+ from .config import budget_from_config, load_config
33
35
  from .scenario import ScenarioRun, render_run, run_cases
34
36
 
35
37
 
@@ -117,7 +119,13 @@ def _gates(values: Sequence[str]) -> dict[str, float]:
117
119
  return gates
118
120
 
119
121
 
120
- def _contracts(spec: str, *, seeds: Sequence[str], terminal: Sequence[str]) -> bool:
122
+ def _contracts(
123
+ spec: str,
124
+ *,
125
+ seeds: Sequence[str],
126
+ terminal: Sequence[str],
127
+ budget: Budget | None = None,
128
+ ) -> bool:
121
129
  obj = _load_object(spec)
122
130
  steps, groups = _units(obj)
123
131
  if not steps and not groups:
@@ -134,6 +142,7 @@ def _contracts(spec: str, *, seeds: Sequence[str], terminal: Sequence[str]) -> b
134
142
  groups=groups or None,
135
143
  seeds=inferred_seeds,
136
144
  terminal=inferred_terminal,
145
+ budget=budget,
137
146
  )
138
147
  status = "ok" if report.ok else "FAILED"
139
148
  print(
@@ -199,21 +208,28 @@ def _evals(
199
208
 
200
209
 
201
210
  def cmd_check(args: argparse.Namespace) -> int:
202
- if args.evals is not None and args.target is None:
211
+ config = load_config()
212
+ target_spec = args.target
213
+ contracts_spec = args.contracts or target_spec or config.groups
214
+ scenarios_specs = args.scenarios or config.scenarios
215
+ evals_path = args.evals if args.evals is not None else config.evals
216
+ overall = args.overall if args.overall is not None else config.overall
217
+ gates = args.gate or [f"{key}={value}" for key, value in config.gates.items()]
218
+ if evals_path is not None and target_spec is None:
203
219
  raise SystemExit(
204
220
  "reactifact check: --evals needs a Pipeline as the positional "
205
221
  "target (for seed_type and steps)"
206
222
  )
207
223
  if (
208
- args.target is None
209
- and args.contracts is None
210
- and not args.scenarios
211
- and args.evals is None
224
+ target_spec is None
225
+ and contracts_spec is None
226
+ and not scenarios_specs
227
+ and evals_path is None
212
228
  ):
213
229
  raise SystemExit(
214
230
  "reactifact check: pass a target/--contracts, --scenarios and/or --evals"
215
231
  )
216
- if args.no_contracts and not args.scenarios and args.evals is None:
232
+ if args.no_contracts and not scenarios_specs and evals_path is None:
217
233
  raise SystemExit("reactifact check: --no-contracts leaves no stage to run")
218
234
 
219
235
  ok = True
@@ -225,38 +241,38 @@ def cmd_check(args: argparse.Namespace) -> int:
225
241
  # types match the reloaded module.
226
242
  scenario_run = (
227
243
  _scenarios(
228
- args.scenarios,
244
+ scenarios_specs,
229
245
  filter_text=args.filter,
230
246
  mode=args.mode,
231
247
  )
232
- if args.scenarios
248
+ if scenarios_specs
233
249
  else None
234
250
  )
235
251
 
236
- target_obj = _load_object(args.target) if args.target else None
252
+ target_obj = _load_object(target_spec) if target_spec else None
237
253
  pipeline = target_obj if isinstance(target_obj, Pipeline) else None
238
- contracts_spec = args.contracts or (args.target if target_obj is not None else None)
239
254
 
240
255
  if not args.no_contracts and contracts_spec is not None:
241
256
  ok = (
242
257
  _contracts(
243
258
  contracts_spec,
244
- seeds=args.seed or (),
245
- terminal=args.terminal or (),
259
+ seeds=args.seed or config.seeds,
260
+ terminal=args.terminal or config.terminal,
261
+ budget=budget_from_config(config),
246
262
  )
247
263
  and ok
248
264
  )
249
265
 
250
- if args.scenarios:
266
+ if scenarios_specs:
251
267
  if scenario_run is None:
252
268
  print("scenarios no scenarios found (check the module path and -k filter)")
253
269
  ok = False
254
270
  else:
255
- print(f"scenarios {', '.join(args.scenarios)}")
271
+ print(f"scenarios {', '.join(scenarios_specs)}")
256
272
  render_run(scenario_run, show_state=not args.no_state)
257
273
  ok = scenario_run.ok and ok
258
274
 
259
- if args.evals is not None:
275
+ if evals_path is not None:
260
276
  if pipeline is None:
261
277
  raise SystemExit(
262
278
  "reactifact check: --evals needs a Pipeline as the positional "
@@ -265,9 +281,9 @@ def cmd_check(args: argparse.Namespace) -> int:
265
281
  ok = (
266
282
  _evals(
267
283
  pipeline,
268
- args.evals,
269
- gates=_gates(args.gate or ()),
270
- overall=args.overall,
284
+ evals_path,
285
+ gates=_gates(gates),
286
+ overall=overall,
271
287
  )
272
288
  and ok
273
289
  )
@@ -0,0 +1,120 @@
1
+ """`[tool.reactifact]` project configuration for the CLI.
2
+
3
+ The keys mirror the flags of `validate` / `graph --check` / `check`, so a
4
+ project can put its wiring in `pyproject.toml` once instead of repeating
5
+ `--seed`, `--terminal` and budget flags on every invocation:
6
+
7
+ [tool.reactifact]
8
+ groups = "app.pipeline:GROUPS"
9
+ seeds = ["Question"]
10
+ terminal = ["Answer"]
11
+ scenarios = ["app.scenarios"]
12
+ evals = "evals/qa.json"
13
+ overall = 0.8
14
+
15
+ [tool.reactifact.budget]
16
+ max_runs = 80
17
+ max_seconds = 120
18
+
19
+ Flags always win over the config; an absent section means empty defaults.
20
+ """
21
+
22
+ from __future__ import annotations
23
+
24
+ import tomllib
25
+ from dataclasses import dataclass, field
26
+ from pathlib import Path
27
+ from typing import Any
28
+
29
+ _BUDGET_KEYS = {
30
+ "max_runs",
31
+ "max_iterations",
32
+ "max_seconds",
33
+ "max_tool_calls",
34
+ "max_tokens",
35
+ "max_cost",
36
+ }
37
+
38
+
39
+ @dataclass(frozen=True)
40
+ class ProjectConfig:
41
+ groups: str | None = None
42
+ seeds: list[str] = field(default_factory=list)
43
+ terminal: list[str] = field(default_factory=list)
44
+ scenarios: list[str] = field(default_factory=list)
45
+ evals: str | None = None
46
+ overall: float | None = None
47
+ gates: dict[str, float] = field(default_factory=dict)
48
+ budget: dict[str, int | float] = field(default_factory=dict)
49
+
50
+
51
+ def _find_pyproject(start: Path) -> Path | None:
52
+ for directory in (start, *start.parents):
53
+ candidate = directory / "pyproject.toml"
54
+ if candidate.is_file():
55
+ return candidate
56
+ return None
57
+
58
+
59
+ def _string_list(value: Any, key: str) -> list[str]:
60
+ if value is None:
61
+ return []
62
+ if not isinstance(value, list) or not all(isinstance(item, str) for item in value):
63
+ raise SystemExit(f"[tool.reactifact] {key} must be a list of strings")
64
+ return list(value)
65
+
66
+
67
+ def load_config(start: Path | None = None) -> ProjectConfig:
68
+ """Reads `[tool.reactifact]` from the nearest `pyproject.toml`."""
69
+ path = _find_pyproject((start or Path.cwd()).resolve())
70
+ if path is None:
71
+ return ProjectConfig()
72
+ data = tomllib.loads(path.read_text(encoding="utf-8"))
73
+ raw = data.get("tool", {}).get("reactifact", {})
74
+ if not isinstance(raw, dict):
75
+ raise SystemExit("[tool.reactifact] must be a table")
76
+ budget = raw.get("budget", {})
77
+ if not isinstance(budget, dict):
78
+ raise SystemExit("[tool.reactifact] budget must be a table")
79
+ unknown = set(budget) - _BUDGET_KEYS
80
+ if unknown:
81
+ raise SystemExit(
82
+ "[tool.reactifact] unknown budget keys: " + ", ".join(sorted(unknown))
83
+ )
84
+ groups = raw.get("groups")
85
+ if groups is not None and not isinstance(groups, str):
86
+ raise SystemExit("[tool.reactifact] groups must be a module:attr string")
87
+ evals = raw.get("evals")
88
+ if evals is not None and not isinstance(evals, str):
89
+ raise SystemExit("[tool.reactifact] evals must be a path string")
90
+ overall = raw.get("overall")
91
+ if overall is not None and not isinstance(overall, (int, float)):
92
+ raise SystemExit("[tool.reactifact] overall must be a number")
93
+ gates = raw.get("gates", {})
94
+ if not isinstance(gates, dict) or not all(
95
+ isinstance(key, str) and isinstance(value, (int, float))
96
+ for key, value in gates.items()
97
+ ):
98
+ raise SystemExit("[tool.reactifact] gates must be a table of numbers")
99
+ return ProjectConfig(
100
+ groups=groups,
101
+ seeds=_string_list(raw.get("seeds"), "seeds"),
102
+ terminal=_string_list(raw.get("terminal"), "terminal"),
103
+ scenarios=_string_list(raw.get("scenarios"), "scenarios"),
104
+ evals=evals,
105
+ overall=float(overall) if overall is not None else None,
106
+ gates={key: float(value) for key, value in gates.items()},
107
+ budget=dict(budget),
108
+ )
109
+
110
+
111
+ def budget_from_config(config: ProjectConfig) -> Any:
112
+ """Builds a `Budget` from the config table (None when unset)."""
113
+ if not config.budget:
114
+ return None
115
+ from ..budget import Budget
116
+
117
+ return Budget.model_validate(config.budget)
118
+
119
+
120
+ __all__ = ["ProjectConfig", "budget_from_config", "load_config"]