stuntdouble 2.1.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 (206) hide show
  1. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/.github/CODEOWNERS +1 -1
  2. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -0
  3. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/.github/workflows/ci.yml +12 -6
  4. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/.github/workflows/docs.yml +2 -5
  5. stuntdouble-2.2.0/.github/workflows/release.yml +210 -0
  6. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/.gitignore +3 -0
  7. stuntdouble-2.2.0/.trail/learnings/2026-11-30-preserve-unrelated-mocks-during-mirror-rollback-codex.md +23 -0
  8. stuntdouble-2.2.0/CHANGELOG.md +171 -0
  9. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/CLAUDE.md +3 -3
  10. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/CODE_OF_CONDUCT.md +1 -1
  11. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/CONTRIBUTING.md +13 -9
  12. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/PKG-INFO +26 -9
  13. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/README.md +20 -7
  14. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/SECURITY.md +2 -2
  15. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/architecture/overview.md +10 -13
  16. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/conf.py +4 -1
  17. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/context-aware-mocks.md +1 -1
  18. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/langgraph-integration.md +36 -0
  19. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/matchers-and-resolvers.md +80 -0
  20. stuntdouble-2.2.0/docs/guides/mcp-gateway-integration-scope.md +93 -0
  21. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/mcp-mirroring.md +137 -0
  22. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/mock-builder.md +22 -7
  23. stuntdouble-2.2.0/docs/guides/multi-tool-agent-tutorial.md +492 -0
  24. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/quickstart.md +1 -1
  25. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/signature-validation.md +23 -6
  26. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/index.md +1 -0
  27. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/reference/dependencies.md +18 -24
  28. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/reference/mock-format.md +38 -2
  29. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/reference/schema-validation.md +2 -1
  30. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/pyproject.toml +14 -2
  31. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/__init__.py +9 -1
  32. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/builder.py +106 -2
  33. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/exceptions.py +85 -0
  34. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/matching.py +17 -6
  35. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/__init__.py +2 -0
  36. stuntdouble-2.2.0/src/stuntdouble/mirroring/catalog.py +126 -0
  37. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/generation/presets.py +4 -2
  38. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/integrations/langchain.py +14 -3
  39. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/integrations/llm.py +27 -12
  40. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/mcp_client.py +164 -31
  41. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/mirror.py +103 -14
  42. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/mirror_registry.py +54 -24
  43. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/models.py +3 -0
  44. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/strategies.py +6 -3
  45. stuntdouble-2.2.0/src/stuntdouble/mirroring/streamable_http.py +130 -0
  46. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mock_registry.py +98 -32
  47. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/recorder.py +0 -1
  48. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/resolving.py +99 -45
  49. stuntdouble-2.2.0/src/stuntdouble/scenario_mocking.py +408 -0
  50. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/types.py +5 -2
  51. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/validation.py +84 -16
  52. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/wrapper.py +159 -36
  53. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/conftest.py +0 -9
  54. stuntdouble-2.2.0/tests/mirroring/test_gateway_integration.py +511 -0
  55. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_llm_provider.py +26 -0
  56. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_mcp_client.py +193 -5
  57. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_mirror_registry.py +163 -0
  58. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_builder.py +21 -0
  59. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_matching.py +82 -0
  60. stuntdouble-2.2.0/tests/test_mock_errors.py +409 -0
  61. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_mocking.py +23 -5
  62. stuntdouble-2.2.0/tests/test_reproducible_outputs.py +401 -0
  63. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_resolving.py +145 -0
  64. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_scenario_mocking.py +24 -0
  65. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_validation.py +249 -0
  66. stuntdouble-2.2.0/tests/test_version.py +17 -0
  67. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_wrapper.py +468 -0
  68. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests-e2e/test_integration.py +138 -3
  69. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/uv.lock +467 -1
  70. stuntdouble-2.1.2/.github/workflows/release.yml +0 -75
  71. stuntdouble-2.1.2/CHANGELOG.md +0 -19
  72. stuntdouble-2.1.2/docs/_build/html/.buildinfo +0 -4
  73. stuntdouble-2.1.2/docs/_build/html/.doctrees/__intersphinx_cache__/python_objects.inv +0 -0
  74. stuntdouble-2.1.2/docs/_build/html/.doctrees/architecture/overview.doctree +0 -0
  75. stuntdouble-2.1.2/docs/_build/html/.doctrees/environment.pickle +0 -0
  76. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/call-recording.doctree +0 -0
  77. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/context-aware-mocks.doctree +0 -0
  78. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/langgraph-integration.doctree +0 -0
  79. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/matchers-and-resolvers.doctree +0 -0
  80. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/mcp-mirroring.doctree +0 -0
  81. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/mock-builder.doctree +0 -0
  82. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/quickstart.doctree +0 -0
  83. stuntdouble-2.1.2/docs/_build/html/.doctrees/guides/signature-validation.doctree +0 -0
  84. stuntdouble-2.1.2/docs/_build/html/.doctrees/index.doctree +0 -0
  85. stuntdouble-2.1.2/docs/_build/html/.doctrees/reference/dependencies.doctree +0 -0
  86. stuntdouble-2.1.2/docs/_build/html/.doctrees/reference/mock-format.doctree +0 -0
  87. stuntdouble-2.1.2/docs/_build/html/.doctrees/reference/schema-validation.doctree +0 -0
  88. stuntdouble-2.1.2/docs/_build/html/_sources/architecture/overview.md.txt +0 -408
  89. stuntdouble-2.1.2/docs/_build/html/_sources/guides/call-recording.md.txt +0 -354
  90. stuntdouble-2.1.2/docs/_build/html/_sources/guides/context-aware-mocks.md.txt +0 -410
  91. stuntdouble-2.1.2/docs/_build/html/_sources/guides/langgraph-integration.md.txt +0 -1209
  92. stuntdouble-2.1.2/docs/_build/html/_sources/guides/matchers-and-resolvers.md.txt +0 -477
  93. stuntdouble-2.1.2/docs/_build/html/_sources/guides/mcp-mirroring.md.txt +0 -302
  94. stuntdouble-2.1.2/docs/_build/html/_sources/guides/mock-builder.md.txt +0 -390
  95. stuntdouble-2.1.2/docs/_build/html/_sources/guides/quickstart.md.txt +0 -622
  96. stuntdouble-2.1.2/docs/_build/html/_sources/guides/signature-validation.md.txt +0 -353
  97. stuntdouble-2.1.2/docs/_build/html/_sources/index.md.txt +0 -193
  98. stuntdouble-2.1.2/docs/_build/html/_sources/reference/dependencies.md.txt +0 -234
  99. stuntdouble-2.1.2/docs/_build/html/_sources/reference/mock-format.md.txt +0 -469
  100. stuntdouble-2.1.2/docs/_build/html/_sources/reference/schema-validation.md.txt +0 -130
  101. stuntdouble-2.1.2/docs/_build/html/_static/_sphinx_javascript_frameworks_compat.js +0 -123
  102. stuntdouble-2.1.2/docs/_build/html/_static/base-stemmer.js +0 -476
  103. stuntdouble-2.1.2/docs/_build/html/_static/basic.css +0 -906
  104. stuntdouble-2.1.2/docs/_build/html/_static/css/badge_only.css +0 -1
  105. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
  106. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  107. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  108. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  109. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/fontawesome-webfont.eot +0 -0
  110. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/fontawesome-webfont.svg +0 -2671
  111. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  112. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/fontawesome-webfont.woff +0 -0
  113. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  114. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-bold-italic.woff +0 -0
  115. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
  116. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-bold.woff +0 -0
  117. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-bold.woff2 +0 -0
  118. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-normal-italic.woff +0 -0
  119. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  120. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-normal.woff +0 -0
  121. stuntdouble-2.1.2/docs/_build/html/_static/css/fonts/lato-normal.woff2 +0 -0
  122. stuntdouble-2.1.2/docs/_build/html/_static/css/theme.css +0 -4
  123. stuntdouble-2.1.2/docs/_build/html/_static/doctools.js +0 -150
  124. stuntdouble-2.1.2/docs/_build/html/_static/documentation_options.js +0 -13
  125. stuntdouble-2.1.2/docs/_build/html/_static/english-stemmer.js +0 -1066
  126. stuntdouble-2.1.2/docs/_build/html/_static/file.png +0 -0
  127. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bold.eot +0 -0
  128. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bold.ttf +0 -0
  129. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bold.woff +0 -0
  130. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bold.woff2 +0 -0
  131. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bolditalic.eot +0 -0
  132. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
  133. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bolditalic.woff +0 -0
  134. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
  135. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-italic.eot +0 -0
  136. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-italic.ttf +0 -0
  137. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-italic.woff +0 -0
  138. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-italic.woff2 +0 -0
  139. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-regular.eot +0 -0
  140. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-regular.ttf +0 -0
  141. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-regular.woff +0 -0
  142. stuntdouble-2.1.2/docs/_build/html/_static/fonts/Lato/lato-regular.woff2 +0 -0
  143. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
  144. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
  145. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
  146. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
  147. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  148. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  149. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  150. stuntdouble-2.1.2/docs/_build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  151. stuntdouble-2.1.2/docs/_build/html/_static/jquery.js +0 -2
  152. stuntdouble-2.1.2/docs/_build/html/_static/js/badge_only.js +0 -1
  153. stuntdouble-2.1.2/docs/_build/html/_static/js/theme.js +0 -1
  154. stuntdouble-2.1.2/docs/_build/html/_static/js/versions.js +0 -228
  155. stuntdouble-2.1.2/docs/_build/html/_static/language_data.js +0 -13
  156. stuntdouble-2.1.2/docs/_build/html/_static/minus.png +0 -0
  157. stuntdouble-2.1.2/docs/_build/html/_static/plus.png +0 -0
  158. stuntdouble-2.1.2/docs/_build/html/_static/pygments.css +0 -75
  159. stuntdouble-2.1.2/docs/_build/html/_static/searchtools.js +0 -693
  160. stuntdouble-2.1.2/docs/_build/html/_static/sphinx_highlight.js +0 -159
  161. stuntdouble-2.1.2/docs/_build/html/architecture/overview.html +0 -1036
  162. stuntdouble-2.1.2/docs/_build/html/genindex.html +0 -533
  163. stuntdouble-2.1.2/docs/_build/html/guides/call-recording.html +0 -971
  164. stuntdouble-2.1.2/docs/_build/html/guides/context-aware-mocks.html +0 -948
  165. stuntdouble-2.1.2/docs/_build/html/guides/langgraph-integration.html +0 -1934
  166. stuntdouble-2.1.2/docs/_build/html/guides/matchers-and-resolvers.html +0 -1191
  167. stuntdouble-2.1.2/docs/_build/html/guides/mcp-mirroring.html +0 -898
  168. stuntdouble-2.1.2/docs/_build/html/guides/mock-builder.html +0 -924
  169. stuntdouble-2.1.2/docs/_build/html/guides/quickstart.html +0 -1145
  170. stuntdouble-2.1.2/docs/_build/html/guides/signature-validation.html +0 -929
  171. stuntdouble-2.1.2/docs/_build/html/index.html +0 -882
  172. stuntdouble-2.1.2/docs/_build/html/objects.inv +0 -0
  173. stuntdouble-2.1.2/docs/_build/html/reference/dependencies.html +0 -826
  174. stuntdouble-2.1.2/docs/_build/html/reference/mock-format.html +0 -1177
  175. stuntdouble-2.1.2/docs/_build/html/reference/schema-validation.html +0 -667
  176. stuntdouble-2.1.2/docs/_build/html/search.html +0 -548
  177. stuntdouble-2.1.2/docs/_build/html/searchindex.js +0 -1
  178. stuntdouble-2.1.2/docs/requirements.txt +0 -15
  179. stuntdouble-2.1.2/docs/stuntdouble_logo2.png +0 -0
  180. stuntdouble-2.1.2/src/stuntdouble/scenario_mocking.py +0 -210
  181. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/LICENSE +0 -0
  182. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/Makefile +0 -0
  183. {stuntdouble-2.1.2/docs/_build/html → stuntdouble-2.2.0/docs}/_static/stuntdouble_logo2.png +0 -0
  184. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/guides/call-recording.md +0 -0
  185. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/docs/stuntdouble_logo.jpg +0 -0
  186. {stuntdouble-2.1.2/docs/_static → stuntdouble-2.2.0/docs}/stuntdouble_logo2.png +0 -0
  187. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/config.py +0 -0
  188. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/cache.py +0 -0
  189. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/discovery.py +0 -0
  190. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/generation/__init__.py +0 -0
  191. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/generation/base.py +0 -0
  192. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/generation/entity.py +0 -0
  193. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/generation/responses.py +0 -0
  194. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/integrations/__init__.py +0 -0
  195. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/mirroring/mcp_utils.py +0 -0
  196. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/src/stuntdouble/py.typed +0 -0
  197. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_discovery.py +0 -0
  198. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_langchain_adapter.py +0 -0
  199. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_mirror.py +0 -0
  200. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_mock_strategy_enum.py +0 -0
  201. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_presets.py +0 -0
  202. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_response_cache.py +0 -0
  203. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/mirroring/test_strategies.py +0 -0
  204. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_config.py +0 -0
  205. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_exceptions.py +0 -0
  206. {stuntdouble-2.1.2 → stuntdouble-2.2.0}/tests/test_recorder.py +0 -0
@@ -7,4 +7,4 @@
7
7
  # the repo. Unless a later match takes precedence,
8
8
  # @global-owner1 and @global-owner2 will be requested for
9
9
  # review when someone opens a pull request.
10
- * @bbenchaya
10
+ * @bbenchaya @ChiefArchitect @sboorlagadda @asimhon
@@ -5,6 +5,7 @@
5
5
  - [ ] I'm requesting to **pull a topic/feature/bugfix branch**.
6
6
  - [ ] I checked that my code additions will pass code linting checks and unit tests.
7
7
  - [ ] I updated unit and integration tests (if applicable).
8
+ - [ ] I added an `[Unreleased]` changelog entry for a user-visible change, or confirmed the change is exempt.
8
9
  - [ ] I'm ready to notify the team of this contribution.
9
10
 
10
11
  ### Description
@@ -24,11 +24,17 @@ jobs:
24
24
  run: uv python install 3.13
25
25
 
26
26
  - name: Install dependencies
27
- run: uv sync --all-extras --group dev
27
+ run: uv sync --all-extras --group dev --frozen
28
28
 
29
- - name: Check formatting - lint (ruff)
29
+ - name: Lint (ruff)
30
30
  run: uv run ruff check
31
31
 
32
+ - name: Check formatting (ruff)
33
+ run: uv run ruff format --check
34
+
35
+ - name: Type check (mypy)
36
+ run: uv run mypy src/
37
+
32
38
  test:
33
39
  needs: [ lint ]
34
40
  name: Test (Python ${{ matrix.python-version }})
@@ -36,7 +42,7 @@ jobs:
36
42
  strategy:
37
43
  fail-fast: false
38
44
  matrix:
39
- python-version: ["3.12", "3.13"]
45
+ python-version: ["3.12", "3.13", "3.14"]
40
46
  steps:
41
47
  - uses: actions/checkout@v6
42
48
 
@@ -47,7 +53,7 @@ jobs:
47
53
  run: uv python install ${{ matrix.python-version }}
48
54
 
49
55
  - name: Install dependencies
50
- run: uv sync --all-extras --group dev
56
+ run: uv sync --all-extras --group dev --frozen
51
57
 
52
58
  - name: Run tests with coverage
53
59
  run: |
@@ -73,7 +79,7 @@ jobs:
73
79
  strategy:
74
80
  fail-fast: false
75
81
  matrix:
76
- python-version: ["3.12", "3.13"]
82
+ python-version: ["3.12", "3.13", "3.14"]
77
83
  steps:
78
84
  - uses: actions/checkout@v6
79
85
 
@@ -84,7 +90,7 @@ jobs:
84
90
  run: uv python install ${{ matrix.python-version }}
85
91
 
86
92
  - name: Install dependencies
87
- run: uv sync --all-extras --group dev
93
+ run: uv sync --all-extras --group dev --frozen
88
94
 
89
95
  - name: Run e2e tests with coverage
90
96
  run: |
@@ -28,13 +28,10 @@ jobs:
28
28
  run: uv python install 3.13
29
29
 
30
30
  - name: Install dependencies
31
- run: |
32
- uv venv .venv
33
- uv pip install -r docs/requirements.txt
34
- uv pip install .
31
+ run: uv sync --group docs --frozen
35
32
 
36
33
  - name: Build Sphinx HTML
37
- run: .venv/bin/sphinx-build -b html docs docs/_build/html
34
+ run: uv run sphinx-build -b html docs docs/_build/html
38
35
 
39
36
  - name: Upload pages artifact
40
37
  uses: actions/upload-pages-artifact@v3
@@ -0,0 +1,210 @@
1
+ name: Release
2
+
3
+ on:
4
+ pull_request:
5
+ types: [ closed ]
6
+ branches: [ main ]
7
+
8
+ # Queue merges before checkout so each run sees what the preceding run published.
9
+ concurrency:
10
+ group: stuntdouble-release
11
+ cancel-in-progress: false
12
+ queue: max
13
+
14
+ permissions:
15
+ contents: write
16
+ id-token: write # required for OIDC trusted publishing
17
+
18
+ jobs:
19
+ release:
20
+ name: Tag & Publish
21
+ if: github.event.pull_request.merged == true
22
+ runs-on: ubuntu-latest
23
+ environment: pypi
24
+
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+ with:
28
+ fetch-depth: 0
29
+
30
+ - name: Read version from pyproject.toml
31
+ id: version
32
+ run: |
33
+ VERSION=$(python -c "import tomllib; f=open('pyproject.toml','rb'); d=tomllib.load(f); print(d['project']['version'])")
34
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
35
+ echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
36
+ echo "sdist=stuntdouble-$VERSION.tar.gz" >> "$GITHUB_OUTPUT"
37
+ echo "wheel=stuntdouble-$VERSION-py3-none-any.whl" >> "$GITHUB_OUTPUT"
38
+
39
+ - name: Check release files on PyPI
40
+ id: pypi
41
+ env:
42
+ VERSION: ${{ steps.version.outputs.version }}
43
+ run: |
44
+ python3 - <<'PY'
45
+ import json
46
+ import os
47
+ from urllib.error import HTTPError
48
+ from urllib.parse import quote
49
+ from urllib.request import urlopen
50
+
51
+ version = quote(os.environ["VERSION"], safe="")
52
+ try:
53
+ with urlopen(f"https://pypi.org/pypi/stuntdouble/{version}/json", timeout=20) as response:
54
+ published_types = {file["packagetype"] for file in json.load(response)["urls"]}
55
+ except HTTPError as error:
56
+ if error.code != 404:
57
+ raise
58
+ published_types = set()
59
+
60
+ needs_sdist = "sdist" not in published_types
61
+ needs_wheel = "bdist_wheel" not in published_types
62
+ with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as output:
63
+ print(f"needs_sdist={str(needs_sdist).lower()}", file=output)
64
+ print(f"needs_wheel={str(needs_wheel).lower()}", file=output)
65
+ print(f"needs_publish={str(needs_sdist or needs_wheel).lower()}", file=output)
66
+ PY
67
+
68
+ - name: Check GitHub Release assets
69
+ id: github_release
70
+ env:
71
+ GH_TOKEN: ${{ github.token }}
72
+ TAG: ${{ steps.version.outputs.tag }}
73
+ SDIST: ${{ steps.version.outputs.sdist }}
74
+ WHEEL: ${{ steps.version.outputs.wheel }}
75
+ run: |
76
+ response=$(mktemp)
77
+ trap 'rm -f -- "$response"' EXIT
78
+ status=$(curl --silent --show-error --max-time 20 --output "$response" --write-out '%{http_code}' \
79
+ --header 'Accept: application/vnd.github+json' --header "Authorization: Bearer $GH_TOKEN" \
80
+ "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/tags/$TAG")
81
+ if [[ "$status" == '404' ]]; then
82
+ printf '%s\n' 'exists=false' 'needs_assets=true' >> "$GITHUB_OUTPUT"
83
+ exit 0
84
+ fi
85
+ if [[ "$status" != '200' ]]; then
86
+ echo "GitHub Release lookup failed with HTTP $status" >&2
87
+ exit 1
88
+ fi
89
+
90
+ python3 - "$response" <<'PY'
91
+ import json
92
+ import os
93
+ import sys
94
+
95
+ with open(sys.argv[1], encoding="utf-8") as response:
96
+ assets = json.load(response)["assets"]
97
+ sdist, wheel = os.environ["SDIST"], os.environ["WHEEL"]
98
+ uploaded = {asset["name"] for asset in assets if asset["state"] == "uploaded"}
99
+ missing = {sdist, wheel} - uploaded
100
+ starter_ids = [
101
+ str(asset["id"]) for asset in assets if asset["state"] == "starter" and asset["name"] in missing
102
+ ]
103
+ with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as output:
104
+ print("exists=true", file=output)
105
+ print(f"needs_sdist={str(sdist in missing).lower()}", file=output)
106
+ print(f"needs_wheel={str(wheel in missing).lower()}", file=output)
107
+ print(f"needs_assets={str(bool(missing)).lower()}", file=output)
108
+ print(f"starter_asset_ids={' '.join(starter_ids)}", file=output)
109
+ PY
110
+
111
+ - name: Ensure release tag exists
112
+ env:
113
+ TAG: ${{ steps.version.outputs.tag }}
114
+ run: |
115
+ if ! git show-ref --verify --quiet "refs/tags/$TAG"; then
116
+ git -c user.name='github-actions[bot]' -c user.email='github-actions[bot]@users.noreply.github.com' \
117
+ tag "$TAG" -m "Release $TAG"
118
+ git push origin "refs/tags/$TAG"
119
+ fi
120
+
121
+ - uses: astral-sh/setup-uv@v7
122
+ if: steps.pypi.outputs.needs_publish == 'true' || steps.github_release.outputs.needs_assets == 'true'
123
+ with:
124
+ enable-cache: true
125
+
126
+ - name: Build package from release tag
127
+ if: steps.pypi.outputs.needs_publish == 'true' || steps.github_release.outputs.needs_assets == 'true'
128
+ shell: bash
129
+ env:
130
+ TAG: ${{ steps.version.outputs.tag }}
131
+ VERSION: ${{ steps.version.outputs.version }}
132
+ SDIST: ${{ steps.version.outputs.sdist }}
133
+ WHEEL: ${{ steps.version.outputs.wheel }}
134
+ run: |
135
+ source_dir=$(mktemp -d)
136
+ trap 'rm -rf -- "$source_dir"' EXIT
137
+ git archive "refs/tags/$TAG" | tar -x -C "$source_dir"
138
+ python3 - "$source_dir/pyproject.toml" <<'PY'
139
+ import os
140
+ import sys
141
+ import tomllib
142
+
143
+ with open(sys.argv[1], "rb") as source:
144
+ project = tomllib.load(source)["project"]
145
+ if project["name"] != "stuntdouble" or project["version"] != os.environ["VERSION"]:
146
+ raise SystemExit("Release tag does not contain the expected package name and version")
147
+ PY
148
+ uv build "$source_dir" --out-dir "$GITHUB_WORKSPACE/dist"
149
+ test -f "dist/$SDIST"
150
+ test -f "dist/$WHEEL"
151
+
152
+ - name: Stage files missing from PyPI
153
+ if: steps.pypi.outputs.needs_publish == 'true'
154
+ env:
155
+ NEEDS_SDIST: ${{ steps.pypi.outputs.needs_sdist }}
156
+ NEEDS_WHEEL: ${{ steps.pypi.outputs.needs_wheel }}
157
+ run: |
158
+ mkdir dist-pypi
159
+ if [[ "$NEEDS_SDIST" == 'true' ]]; then
160
+ cp dist/*.tar.gz dist-pypi/
161
+ fi
162
+ if [[ "$NEEDS_WHEEL" == 'true' ]]; then
163
+ cp dist/*.whl dist-pypi/
164
+ fi
165
+
166
+ - name: Publish to PyPI
167
+ if: steps.pypi.outputs.needs_publish == 'true'
168
+ uses: pypa/gh-action-pypi-publish@release/v1
169
+ with:
170
+ packages-dir: dist-pypi/
171
+
172
+ - name: Create GitHub Release
173
+ if: steps.github_release.outputs.exists == 'false'
174
+ uses: softprops/action-gh-release@v2
175
+ with:
176
+ tag_name: ${{ steps.version.outputs.tag }}
177
+ name: ${{ steps.version.outputs.tag }}
178
+ generate_release_notes: true
179
+ fail_on_unmatched_files: true
180
+ files: |
181
+ dist/${{ steps.version.outputs.sdist }}
182
+ dist/${{ steps.version.outputs.wheel }}
183
+
184
+ - name: Upload missing GitHub Release assets
185
+ if: steps.github_release.outputs.exists == 'true' && steps.github_release.outputs.needs_assets == 'true'
186
+ env:
187
+ GH_TOKEN: ${{ github.token }}
188
+ TAG: ${{ steps.version.outputs.tag }}
189
+ SDIST: ${{ steps.version.outputs.sdist }}
190
+ WHEEL: ${{ steps.version.outputs.wheel }}
191
+ NEEDS_SDIST: ${{ steps.github_release.outputs.needs_sdist }}
192
+ NEEDS_WHEEL: ${{ steps.github_release.outputs.needs_wheel }}
193
+ STARTER_ASSET_IDS: ${{ steps.github_release.outputs.starter_asset_ids }}
194
+ run: |
195
+ files=()
196
+ if [[ "$NEEDS_SDIST" == 'true' ]]; then
197
+ files+=("dist/$SDIST")
198
+ fi
199
+ if [[ "$NEEDS_WHEEL" == 'true' ]]; then
200
+ files+=("dist/$WHEEL")
201
+ fi
202
+
203
+ # A failed upload can leave a starter asset that blocks the same filename.
204
+ read -r -a starter_ids <<< "$STARTER_ASSET_IDS"
205
+ for asset_id in "${starter_ids[@]}"; do
206
+ curl --fail --silent --show-error --max-time 20 --request DELETE \
207
+ --header 'Accept: application/vnd.github+json' --header "Authorization: Bearer $GH_TOKEN" \
208
+ "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/assets/$asset_id"
209
+ done
210
+ gh release upload --repo "$GITHUB_REPOSITORY" "$TAG" "${files[@]}"
@@ -70,6 +70,9 @@ dmypy.json
70
70
  # Ruff
71
71
  .ruff_cache/
72
72
 
73
+ # Sphinx build output
74
+ docs/_build/
75
+
73
76
  # Logs
74
77
  *.log
75
78
 
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: Preserve unrelated mocks during mirror rollback
3
+ author: Codex
4
+ date: 2026-11-30
5
+ branch: FAI-931-mcp-transport-catalog
6
+ id: l-c31798a8
7
+ scope: repo
8
+ status: active
9
+ src: agent
10
+ touches:
11
+ - src/stuntdouble/mirroring/mirror_registry.py
12
+ - tests/mirroring/test_mirror_registry.py
13
+ - tests/mirroring/test_gateway_integration.py
14
+ ---
15
+
16
+ ## Decided
17
+ In MirroredToolRegistry.unregister_mirror, missing metadata does not establish ownership of a shared MockToolsRegistry entry. Only unregister that entry if this mirror has a local mock callable. Store the local callable after shared register() succeeds and before _save_metadata(), so an unsuccessful registration cannot claim a manual mock while metadata failures remain recoverable.
18
+
19
+ ## Tried and ruled out
20
+ Returning immediately whenever metadata is absent would preserve manual mocks but leak registrations when metadata persistence fails. Checking the local cache without moving its insertion would still delete a manual mock when shared register() rejects the new registration.
21
+
22
+ ## Watch out
23
+ Keep False for cleanup without metadata and True for normal removal. Exercise real registry resolution, another mirror's registration, repeated removal after manual replacement, registration rejection, and catalog rollback followed by retry. This change does not add synchronization for concurrent mutations of a shared tool name.
@@ -0,0 +1,171 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ Per-release notes for tagged versions are auto-generated and published on the
9
+ [GitHub Releases page](https://github.com/intuit/StuntDouble/releases). This
10
+ file records notable unreleased changes and release summaries.
11
+
12
+ ## [Unreleased]
13
+
14
+ ## [2.2.0]
15
+
16
+ This release brings together the changes since 2.1.2: remote MCP discovery and
17
+ local agent mocks, native LangGraph tool responses, configured mock errors,
18
+ reproducible outputs, and fixes to factories, matching, and placeholders.
19
+
20
+ ### Upgrade guidance
21
+
22
+ - Python 3.12 or later remains required; Python 3.14 is now covered by CI.
23
+ - Install `stuntdouble[mcp]` for MCP mirroring, including the new Streamable HTTP
24
+ transport and registry catalog importer. Existing stdio and HTTP+SSE defaults
25
+ are unchanged; select `transport="streamable-http"` explicitly for that protocol.
26
+ - Broken mock factories now raise `MockFactoryError` instead of being treated as
27
+ missing mocks. The wrapper reports an error ToolMessage, or re-raises in strict
28
+ mode; lenient mode no longer falls through to the real backend for these errors.
29
+ - Nested input patterns now use partial matching and interpret operators at every
30
+ depth. Review scenarios that previously relied on literal nested-dictionary
31
+ equality or swallowed factory exceptions.
32
+ - Catalog visibility and local mock execution do not establish permission to call
33
+ real gateway tools. Test gateway authorization separately; see the
34
+ [integration scope guide](docs/guides/mcp-gateway-integration-scope.md).
35
+
36
+ ### Added
37
+
38
+ - **Streamable HTTP mirroring**: select `transport="streamable-http"` with an exact
39
+ MCP endpoint URL and authentication headers. The optional MCP SDK handles JSON/SSE
40
+ responses and sessions; discovery follows pagination. Existing transports retain
41
+ their defaults.
42
+ - **Registry catalog discovery**: `ToolMirror.mirror(registry_url=...)` imports stored,
43
+ caller-filtered tool definitions without contacting backend servers. Explicit
44
+ `tool_name_map` mappings resolve multi-server naming collisions. Catalog entries
45
+ with empty input schemas are rejected before registration, with guidance to use
46
+ direct MCP discovery or a registry release that preserves stored schemas.
47
+ - **Mocks that raise**: a data-driven case can set `"error"` instead of `"output"`, either a
48
+ message (raised as the new `MockToolError`) or `{"type", "message"}` naming a supported
49
+ built-in exception. `MockBuilder.raises()` is the fluent equivalent. The wrapper returns
50
+ these as `ToolMessage(status="error")` with the plain message (no `Mock error: ` prefix),
51
+ or re-raises them with `strict_mock_errors=True`. Errors from bugs in mock code keep the
52
+ prefix. A case with both `output` and `error` is rejected.
53
+ - **Nested placeholder paths**: `{{input.a.b.c}}` and `{{config.a.b.c}}` read nested
54
+ values, with integer segments indexing lists (`{{input.items.0.sku}}`). A missing
55
+ segment falls back to `| default(...)` or the `<a.b.c>` marker, like a missing field.
56
+ - **Reproducible outputs**: `scenario_metadata["stuntdouble"]` accepts a `base_time` to
57
+ freeze timestamp placeholders and a `seed` for `{{uuid}}` and the `random_*`
58
+ placeholders. Seeded streams are private per tool and run (`thread_id`, optionally
59
+ narrowed by `invocation_id`), and `reset_run_state()` replays them. Also adds
60
+ `{{now_utc}}`, and `base_time=` and `rng=` on `resolve_output`.
61
+
62
+ - **`ToolMessage` and `Command` from mocks**: mocks can return a `ToolMessage` or
63
+ `Command` directly instead of having it stringified. A returned `ToolMessage`, or one
64
+ in a returned `Command`'s update, gets a missing `tool_call_id` or `name` filled in. A
65
+ `(content, artifact)` tuple builds a `ToolMessage` with an
66
+ artifact for tools declared with `response_format="content_and_artifact"`, keeping a
67
+ list of content blocks as the content.
68
+
69
+ ### Fixed
70
+
71
+ - **Version reporting**: `stuntdouble.__version__` and the documentation version
72
+ are derived from installed package metadata instead of stale hardcoded values.
73
+ - **Structured LLM responses**: MCP mock generation joins text content blocks
74
+ before parsing JSON, supporting LangChain responses with structured content.
75
+ - **Failed Streamable HTTP imports** roll back the batch's registrations in both
76
+ the local and LangGraph registries, allowing a clean retry without removing
77
+ unrelated mocks. Catalog imports use the same rollback path.
78
+ - **Legacy mirror persistence paths** are retained when loading metadata, so
79
+ updates, unregister, and server-scoped clear operate on the original files.
80
+ Removed tools no longer reappear after reloading names containing spaces or `%`.
81
+ - **Streamable HTTP request failures**: HTTP errors after initialization now reach
82
+ the caller promptly with a sanitized status, instead of waiting for a request
83
+ timeout and reporting the actual error only during session cleanup.
84
+ - Mirrored tool definitions retain descriptions, raw input schemas and source metadata
85
+ through persistence and `to_langchain_tools()`. The latter advertises the original
86
+ JSON Schema instead of reconstructing empty arguments; raw schemas do not add
87
+ runtime argument validation.
88
+ - **Signature validation of async mock factories**: `register(..., tool=)` and
89
+ `create_mockable_tool_wrapper(tools=...)` no longer reject a valid async factory or
90
+ leave its coroutine unawaited. The wrapper checks the mock it resolved instead of
91
+ calling the factory again, and an async factory registered with `tool=` is checked
92
+ when `resolve()` is awaited. `validate_mock_callable()` checks an awaited mock directly.
93
+ - **Oversized list indices in placeholders**: a numeric path segment longer than
94
+ Python's integer-string conversion limit now falls back to `| default(...)` or the
95
+ `<a.b.c>` marker instead of raising `ValueError`.
96
+ - **Multiple placeholders in one string** now interpolate independently, so
97
+ values such as `{{input.a}}-{{input.b}}` resolve correctly instead of being
98
+ treated as one unknown placeholder expression.
99
+ - **Operators inside nested patterns**: `InputMatcher` now recurses into nested dict
100
+ patterns, so operators (`$regex`, `$gt`, `$in`, `$exists`, ...) work at any depth,
101
+ e.g. `{"filter": {"amount": {"$gt": 100}}}`. Previously a nested operator dict was
102
+ compared as a literal value and never matched. Nested matching is partial, like the
103
+ top level: extra keys in the actual value are ignored.
104
+ - **Signature validation and `**kwargs` mocks**: mocks that take `**kwargs` (what
105
+ `register_data_driven` and `MockBuilder.returns()/returns_fn()` build) no longer
106
+ fail `validate_signatures=True` with "Missing parameters"; extra required
107
+ parameters on such a mock are still reported.
108
+ - **`{{input.x}}` / `{{config.x}}` resolving to `None`**: a reference whose value
109
+ is `None`, and `| default(null)` / `| default(none)`, now resolve to `None` instead
110
+ of being left as the literal placeholder with an "Unknown placeholder" warning.
111
+ - **Mock factory errors** are no longer swallowed: `MockToolsRegistry.resolve()` raises
112
+ the new `MockFactoryError` (chained from the original exception) instead of returning
113
+ `None`, which made a broken mock surface as `MissingMockError: No mock registered`.
114
+ The wrapper returns `ToolMessage(status="error")` for it, or re-raises with
115
+ `strict_mock_errors=True`, and records the error on the `CallRecorder`. In
116
+ lenient mode a broken factory therefore no longer falls back to the real tool.
117
+ - **Async mock factories and `MockFactoryError`**: awaiting an async mock factory in the
118
+ tool wrapper now catches exceptions and wraps them in `MockFactoryError`, matching sync
119
+ factories (#79).
120
+ - **Arity detection in mock factories**: `MockToolsRegistry.resolve()` and
121
+ `validate_mock_signature` now evaluate `sig.bind()` before invoking the factory.
122
+ Internal `TypeError` exceptions raised inside 2-argument factory functions are
123
+ preserved rather than triggering a fallback to 1-argument invocation (#79).
124
+ - **`{{sequence('X')}}` in data-driven mocks**: counters now persist across calls of
125
+ the same resolved data-driven mock callable (e.g. when calling the factory's result
126
+ directly), instead of restarting at `001` on every call. Through the tool wrapper
127
+ each call still resolves a fresh callable, so the ids restart there (see #56).
128
+ - **stdio transport hangs**: the MCP client now drains the subprocess `stderr`
129
+ pipe on a background thread, so a server that logs verbosely can no longer
130
+ deadlock the client by filling the OS pipe buffer.
131
+ - **stdio read timeout**: JSON-RPC responses are now read with a configurable
132
+ `read_timeout` (default 30s) via `MCPServerConfig`, so an unresponsive server
133
+ no longer blocks `list_tools`/`call_tool` indefinitely.
134
+ - **`MockBuilder.returns_fn()`** now honors `.when(**conditions)` input matching
135
+ (raising `InputNotMatchedError` on a non-matching call) and `.echoes_input(...)`,
136
+ matching `.returns()`. Previously both were silently ignored.
137
+ - **Documentation**: corrected the module-structure map and dependency "used by"
138
+ paths (there is no `stuntdouble/langgraph/` or top-level `mcp/` package — the
139
+ layout is flat with MCP under `mirroring/`), fixed overstated Python-version
140
+ support (3.12–3.13), replaced a fabricated dev-dependency block, and fixed a
141
+ `NameError` in a context-aware-mocks example.
142
+
143
+ ### Changed
144
+
145
+ - Python 3.14 is now tested in CI (unit and e2e matrices) and listed in the
146
+ package classifiers.
147
+ - CI now enforces `mypy` type checking and `ruff format --check` in addition to
148
+ `ruff check`; the source tree is fully type-clean under mypy.
149
+ - Refreshed `uv.lock` to match the declared `requires-python = ">=3.12"` (it had
150
+ drifted to `>=3.11` and lagged the project version). CI and release now run
151
+ `uv sync --frozen` so the lockfile can no longer silently drift from
152
+ `pyproject.toml`.
153
+ - Docs are now built from the `docs` dependency group (`uv sync --group docs`)
154
+ instead of a separate `docs/requirements.txt`, which had drifted to older
155
+ Sphinx/MyST major versions; the redundant `docs/requirements.txt` is removed.
156
+
157
+ ## 0.1.0
158
+
159
+ Initial public release.
160
+
161
+ ### Features
162
+
163
+ - Per-invocation tool mocking via `MockToolsRegistry`
164
+ - Fluent mock builder API (`registry.mock("tool").returns(...)`)
165
+ - Data-driven mock factory with JSON scenario files
166
+ - Input matching with operator-based predicates
167
+ - Dynamic value resolution with placeholders
168
+ - Call recording for test assertions
169
+ - Mock signature validation against real tool schemas
170
+ - MCP tool mirroring (auto-discover and mock MCP server tools)
171
+ - LangGraph ToolNode integration via `create_mockable_tool_wrapper`
@@ -24,8 +24,8 @@ uv run mypy src/ # Type check
24
24
  ## Conventions
25
25
 
26
26
  - Line length: 120 (ruff)
27
- - Python: 3.11+
27
+ - Python: 3.12+
28
28
  - Build: hatchling
29
29
  - Package manager: uv
30
- - All public API exported from `stuntdouble.__init__`
31
- - No subpackage public APIs (import from `stuntdouble`, not `stuntdouble.X`)
30
+ - Core mocking API exported from `stuntdouble.__init__`
31
+ - MCP mirroring API exported from `stuntdouble.mirroring`
@@ -36,7 +36,7 @@ This Code of Conduct applies within all community spaces, and also applies when
36
36
 
37
37
  ## Enforcement
38
38
 
39
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at **stuntdouble@proton.me**. All complaints will be reviewed and investigated promptly and fairly.
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported privately to the community leaders responsible for enforcement by [opening a private report](https://github.com/intuit/StuntDouble/security/advisories/new). All complaints will be reviewed and investigated promptly and fairly.
40
40
 
41
41
  All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
42
 
@@ -13,17 +13,21 @@ Please note that this project is released with a [Code of Conduct](./CODE_OF_CON
13
13
  ## Contribution Expectations
14
14
 
15
15
  #### Adding Functionality or Reporting Bugs
16
- * Browse [open issues](https://github.com/stuntdouble/stuntdouble/issues) to find something to work on, or open a new issue to report a bug or suggest a feature.
16
+ * Browse [open issues](https://github.com/intuit/StuntDouble/issues) to find something to work on, or open a new issue to report a bug or suggest a feature.
17
17
  * Bug reports should include as much detail as possible: logs, stacktraces, Python version, OS, and steps to reproduce.
18
18
 
19
19
  #### Code Quality Expectations
20
20
  - **Tests**: All new code should have corresponding unit tests (pytest)
21
- - **Coverage**: Ensure that code coverage meets or exceeds 80%
21
+ - **Coverage**: New code should be well-covered; CI enforces a minimum unit-test coverage threshold (see `ci.yml`)
22
22
  - **Documentation**: Code should be well-documented. What code is doing should be self-explanatory based on coding conventions. Why code is doing something should be explained:
23
23
  * Python code should have docstrings (Google style)
24
24
  * `pyproject.toml` should have comments for non-obvious settings
25
25
  * Unit tests should have clear names and docstrings
26
26
  * Integration tests should document their scenarios
27
+ - **Changelog**: User-visible features, fixes, deprecations, and behavior changes
28
+ must add a concise entry under the appropriate heading in `[Unreleased]` in
29
+ [`CHANGELOG.md`](./CHANGELOG.md). Documentation-only changes, tests, internal
30
+ refactors, and CI/tooling changes that do not affect users are exempt.
27
31
  - **Code Style**: We follow PEP 8 conventions. Use `ruff` for formatting and linting. Run `uv run ruff check .` and `uv run ruff format --check .` to check compliance
28
32
 
29
33
  #### Review SLAs
@@ -36,9 +40,9 @@ Please note that this project is released with a [Code of Conduct](./CODE_OF_CON
36
40
 
37
41
  1. **Fork and Clone.** From the GitHub UI, fork the project into your user space. Then clone locally and add the upstream remote:
38
42
  ```sh
39
- git clone git@github.com:YOUR_USERNAME/stuntdouble.git
40
- cd stuntdouble
41
- git remote add upstream git@github.com:stuntdouble/stuntdouble.git
43
+ git clone git@github.com:YOUR_USERNAME/StuntDouble.git
44
+ cd StuntDouble
45
+ git remote add upstream git@github.com:intuit/StuntDouble.git
42
46
  ```
43
47
 
44
48
  1. **Create a branch.** Use a descriptive name prefixed with `feature/` or `bugfix/` and the issue number:
@@ -52,7 +56,7 @@ Please note that this project is released with a [Code of Conduct](./CODE_OF_CON
52
56
  Reference the GitHub issue number in the commit message (e.g., "Fixes #123").
53
57
  ```
54
58
 
55
- 1. **Test.** Bug fixes and features **should come with tests** and coverage should meet or exceed 80%. Make sure all tests pass. Please do not submit patches that fail this check.
59
+ 1. **Test.** Bug fixes and features **should come with tests** and must keep coverage above the threshold CI enforces. Make sure all tests pass. Please do not submit patches that fail this check.
56
60
 
57
61
  1. **Push your changes** to your fork's branch. Use `git rebase` (not `git merge`) to sync your work from time to time:
58
62
  ```sh
@@ -75,6 +79,6 @@ By contributing to StuntDouble, you agree that your contributions will be licens
75
79
 
76
80
  ## Contact Information
77
81
 
78
- * Need to get in contact with the maintainers? The best people to start with are the project [code owners](https://github.com/stuntdouble/stuntdouble/blob/main/CODEOWNERS).
79
- * Open a [GitHub Discussion](https://github.com/stuntdouble/stuntdouble/discussions) for questions or ideas.
80
- * File a [GitHub Issue](https://github.com/stuntdouble/stuntdouble/issues) for bugs or feature requests.
82
+ * Need to get in contact with the maintainers? The best people to start with are the project [code owners](https://github.com/intuit/StuntDouble/blob/main/.github/CODEOWNERS).
83
+ * Open a [GitHub Discussion](https://github.com/intuit/StuntDouble/discussions) for questions or ideas.
84
+ * File a [GitHub Issue](https://github.com/intuit/StuntDouble/issues) for bugs or feature requests.