ai-driven-e2e 0.4.0__tar.gz → 0.5.0rc0__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 (263) hide show
  1. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.env.example +5 -0
  2. ai_driven_e2e-0.5.0rc0/.github/workflows/assign-reviewer.yml +51 -0
  3. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/workflows/ci.yml +44 -18
  4. ai_driven_e2e-0.5.0rc0/.github/workflows/deploy-docs.yml +72 -0
  5. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.gitignore +3 -0
  6. ai_driven_e2e-0.5.0rc0/CHANGELOG.md +188 -0
  7. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/PKG-INFO +41 -47
  8. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/README.ja.md +12 -9
  9. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/README.ko.md +11 -9
  10. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/README.md +40 -46
  11. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/README.zh-CN.md +33 -40
  12. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/cli.py +242 -53
  13. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/config.py +21 -0
  14. ai_driven_e2e-0.5.0rc0/app/core/report/generator.test.ts +39 -0
  15. ai_driven_e2e-0.5.0rc0/app/core/report/generator.ts +75 -0
  16. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/graph.py +16 -1
  17. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/llm.py +2 -2
  18. ai_driven_e2e-0.5.0rc0/app/nodes/diagnoser.py +54 -0
  19. ai_driven_e2e-0.5.0rc0/app/nodes/patch_generator.py +151 -0
  20. ai_driven_e2e-0.5.0rc0/app/notifications.py +134 -0
  21. ai_driven_e2e-0.5.0rc0/app/preprocess/jsx_chunker.py +95 -0
  22. ai_driven_e2e-0.5.0rc0/app/prompts/patch_generator.py +166 -0
  23. ai_driven_e2e-0.5.0rc0/app/registry.py +196 -0
  24. ai_driven_e2e-0.5.0rc0/app/runner.py +112 -0
  25. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/sandbox.py +11 -1
  26. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/schemas.py +9 -0
  27. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/__init__.py +21 -1
  28. ai_driven_e2e-0.5.0rc0/app/shadow/browser_state.py +112 -0
  29. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/config.py +18 -0
  30. ai_driven_e2e-0.5.0rc0/app/shadow/content_addressed_snapshot_store.py +190 -0
  31. ai_driven_e2e-0.5.0rc0/app/shadow/har_entry.py +170 -0
  32. ai_driven_e2e-0.5.0rc0/app/shadow/har_parser.py +97 -0
  33. ai_driven_e2e-0.5.0rc0/app/shadow/injector.py +234 -0
  34. ai_driven_e2e-0.5.0rc0/app/shadow/match_options.py +45 -0
  35. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/matcher.py +26 -39
  36. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/normalizer.py +21 -5
  37. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/runtime.py +7 -2
  38. ai_driven_e2e-0.5.0rc0/app/shadow/schemas.py +199 -0
  39. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/scoring.py +14 -1
  40. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/trace_parser.py +16 -50
  41. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/state.py +10 -0
  42. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/ci/github-review-bot.example.yml +12 -2
  43. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/ci/github-workflow.example.yml +23 -7
  44. ai_driven_e2e-0.5.0rc0/docs/rfc_dom_picker_cli_bridge.md +296 -0
  45. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/roadmap-v0.5.md +17 -6
  46. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/shadow-testing.md +36 -28
  47. ai_driven_e2e-0.5.0rc0/docs-site/.contrib/issue-drafts.md +109 -0
  48. ai_driven_e2e-0.5.0rc0/docs-site/docs/getting-started/heal-vs-review.mdx +75 -0
  49. ai_driven_e2e-0.5.0rc0/docs-site/docs/getting-started/introduction.mdx +68 -0
  50. ai_driven_e2e-0.5.0rc0/docs-site/docs/getting-started/quickstart-cli.mdx +111 -0
  51. ai_driven_e2e-0.5.0rc0/docs-site/docs/getting-started/quickstart-github-action.mdx +117 -0
  52. ai_driven_e2e-0.5.0rc0/docs-site/docusaurus.config.ts +226 -0
  53. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/package.json +1 -0
  54. ai_driven_e2e-0.5.0rc0/docs-site/pnpm-lock.yaml +12658 -0
  55. ai_driven_e2e-0.5.0rc0/docs-site/sidebars.ts +80 -0
  56. ai_driven_e2e-0.5.0rc0/docs-site/src/components/ArchitectureFlow/index.tsx +78 -0
  57. ai_driven_e2e-0.5.0rc0/docs-site/src/components/ArchitectureFlow/styles.module.css +93 -0
  58. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HealingDiff/index.tsx +111 -0
  59. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HealingDiff/styles.module.css +101 -0
  60. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HelpWantedBoard/index.tsx +96 -0
  61. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HelpWantedBoard/styles.module.css +176 -0
  62. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HomepageFeatures/index.module.css +68 -0
  63. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HomepageFeatures/index.tsx +73 -0
  64. ai_driven_e2e-0.5.0rc0/docs-site/src/components/HomepageFeatures/styles.module.css +11 -0
  65. ai_driven_e2e-0.5.0rc0/docs-site/src/css/custom.css +115 -0
  66. ai_driven_e2e-0.5.0rc0/docs-site/src/pages/index.module.css +187 -0
  67. ai_driven_e2e-0.5.0rc0/docs-site/src/pages/index.tsx +118 -0
  68. ai_driven_e2e-0.5.0rc0/docs-site/static/llms.txt +28 -0
  69. ai_driven_e2e-0.5.0rc0/docs-site/static/robots.txt +9 -0
  70. ai_driven_e2e-0.5.0rc0/examples/README.md +92 -0
  71. ai_driven_e2e-0.5.0rc0/examples/demo-app/index.html +12 -0
  72. ai_driven_e2e-0.5.0rc0/examples/demo-app/src/App.tsx +26 -0
  73. ai_driven_e2e-0.5.0rc0/examples/demo-app/src/components/SubmitButton.tsx +7 -0
  74. ai_driven_e2e-0.5.0rc0/examples/demo-app/src/main.tsx +10 -0
  75. ai_driven_e2e-0.5.0rc0/examples/package.json +24 -0
  76. ai_driven_e2e-0.5.0rc0/examples/playwright.config.ts +21 -0
  77. ai_driven_e2e-0.5.0rc0/examples/pnpm-lock.yaml +1075 -0
  78. ai_driven_e2e-0.5.0rc0/examples/scenarios/id-rename/README.md +61 -0
  79. ai_driven_e2e-0.5.0rc0/examples/scenarios/id-rename/change.patch +12 -0
  80. ai_driven_e2e-0.5.0rc0/examples/scenarios/id-rename/spec.ts +13 -0
  81. ai_driven_e2e-0.5.0rc0/examples/tsconfig.json +17 -0
  82. ai_driven_e2e-0.5.0rc0/examples/vite.config.ts +12 -0
  83. ai_driven_e2e-0.5.0rc0/package.json +11 -0
  84. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/pyproject.toml +1 -1
  85. ai_driven_e2e-0.5.0rc0/roadmap.en.md +187 -0
  86. ai_driven_e2e-0.5.0rc0/roadmap.ko.md +170 -0
  87. ai_driven_e2e-0.5.0rc0/tests/fixtures/sample.har +65 -0
  88. ai_driven_e2e-0.5.0rc0/tests/test_browser_state.py +128 -0
  89. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_cli.py +162 -41
  90. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_config.py +5 -0
  91. ai_driven_e2e-0.5.0rc0/tests/test_content_addressed_snapshot_store.py +175 -0
  92. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_diagnoser.py +11 -1
  93. ai_driven_e2e-0.5.0rc0/tests/test_har_parser.py +292 -0
  94. ai_driven_e2e-0.5.0rc0/tests/test_jsx_chunker.py +88 -0
  95. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_llm.py +7 -7
  96. ai_driven_e2e-0.5.0rc0/tests/test_match_options.py +255 -0
  97. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_mock_injector.py +171 -0
  98. ai_driven_e2e-0.5.0rc0/tests/test_non_http_snapshots.py +161 -0
  99. ai_driven_e2e-0.5.0rc0/tests/test_notifications.py +95 -0
  100. ai_driven_e2e-0.5.0rc0/tests/test_patch_apply.py +202 -0
  101. ai_driven_e2e-0.5.0rc0/tests/test_patch_generator.py +57 -0
  102. ai_driven_e2e-0.5.0rc0/tests/test_patch_prompt_strategy.py +93 -0
  103. ai_driven_e2e-0.5.0rc0/tests/test_registry.py +247 -0
  104. ai_driven_e2e-0.5.0rc0/tests/test_runner.py +129 -0
  105. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_sandbox.py +16 -0
  106. ai_driven_e2e-0.5.0rc0/tests/test_selector_hint.py +93 -0
  107. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_shadow_config.py +15 -1
  108. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_shadow_runtime.py +33 -1
  109. ai_driven_e2e-0.4.0/.github/workflows/assign-reviewer.yml +0 -37
  110. ai_driven_e2e-0.4.0/CHANGELOG.md +0 -87
  111. ai_driven_e2e-0.4.0/app/nodes/diagnoser.py +0 -28
  112. ai_driven_e2e-0.4.0/app/nodes/patch_generator.py +0 -43
  113. ai_driven_e2e-0.4.0/app/prompts/patch_generator.py +0 -14
  114. ai_driven_e2e-0.4.0/app/runner.py +0 -31
  115. ai_driven_e2e-0.4.0/app/shadow/injector.py +0 -131
  116. ai_driven_e2e-0.4.0/app/shadow/schemas.py +0 -62
  117. ai_driven_e2e-0.4.0/docs-site/blog/2019-05-28-first-blog-post.mdx +0 -12
  118. ai_driven_e2e-0.4.0/docs-site/blog/2019-05-29-long-blog-post.mdx +0 -44
  119. ai_driven_e2e-0.4.0/docs-site/blog/2021-08-01-mdx-blog-post.mdx +0 -24
  120. ai_driven_e2e-0.4.0/docs-site/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
  121. ai_driven_e2e-0.4.0/docs-site/blog/2021-08-26-welcome/index.mdx +0 -29
  122. ai_driven_e2e-0.4.0/docs-site/blog/authors.yml +0 -25
  123. ai_driven_e2e-0.4.0/docs-site/blog/tags.yml +0 -19
  124. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/heal-vs-review.mdx +0 -18
  125. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/introduction.mdx +0 -18
  126. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/quickstart-cli.mdx +0 -19
  127. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/quickstart-github-action.mdx +0 -19
  128. ai_driven_e2e-0.4.0/docs-site/docusaurus.config.ts +0 -148
  129. ai_driven_e2e-0.4.0/docs-site/package-lock.json +0 -19526
  130. ai_driven_e2e-0.4.0/docs-site/sidebars.ts +0 -83
  131. ai_driven_e2e-0.4.0/docs-site/src/components/HelpWantedBoard/index.tsx +0 -80
  132. ai_driven_e2e-0.4.0/docs-site/src/components/HelpWantedBoard/styles.module.css +0 -176
  133. ai_driven_e2e-0.4.0/docs-site/src/components/HomepageFeatures/index.tsx +0 -71
  134. ai_driven_e2e-0.4.0/docs-site/src/components/HomepageFeatures/styles.module.css +0 -11
  135. ai_driven_e2e-0.4.0/docs-site/src/css/custom.css +0 -112
  136. ai_driven_e2e-0.4.0/docs-site/src/pages/index.module.css +0 -55
  137. ai_driven_e2e-0.4.0/docs-site/src/pages/index.tsx +0 -60
  138. ai_driven_e2e-0.4.0/examples/README.md +0 -58
  139. ai_driven_e2e-0.4.0/examples/components/SubmitButton.tsx +0 -8
  140. ai_driven_e2e-0.4.0/examples/example.spec.ts +0 -9
  141. ai_driven_e2e-0.4.0/examples/index.html +0 -19
  142. ai_driven_e2e-0.4.0/examples/package-lock.json +0 -78
  143. ai_driven_e2e-0.4.0/examples/package.json +0 -12
  144. ai_driven_e2e-0.4.0/examples/playwright.config.ts +0 -20
  145. ai_driven_e2e-0.4.0/examples/selector-rename.diff +0 -13
  146. ai_driven_e2e-0.4.0/tests/test_patch_apply.py +0 -28
  147. ai_driven_e2e-0.4.0/tests/test_runner.py +0 -68
  148. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.claude/CLAUDE.md +0 -0
  149. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.claude/agents/plan.md +0 -0
  150. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.claude/skills/docs-site/SKILL.md +0 -0
  151. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.coverage +0 -0
  152. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.editorconfig +0 -0
  153. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.githooks/pre-commit +0 -0
  154. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/ISSUE_TEMPLATE/architecture.yml +0 -0
  155. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  156. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  157. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  158. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/ISSUE_TEMPLATE/question.yml +0 -0
  159. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  160. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/workflows/publish-testpypi.yml +0 -0
  161. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.github/workflows/publish.yml +0 -0
  162. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/.python-version +0 -0
  163. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/AGENTS.md +0 -0
  164. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/CODE_OF_CONDUCT.md +0 -0
  165. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/CONTRIBUTING.md +0 -0
  166. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/LICENSE +0 -0
  167. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/Makefile +0 -0
  168. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/SECURITY.md +0 -0
  169. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/action.yml +0 -0
  170. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/__init__.py +0 -0
  171. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/logging.py +0 -0
  172. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/nodes/__init__.py +0 -0
  173. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/nodes/reviewer.py +0 -0
  174. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/nodes/selector_verifier.py +0 -0
  175. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/nodes/shadow_verifier.py +0 -0
  176. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/nodes/test_runner.py +0 -0
  177. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/preprocess/__init__.py +0 -0
  178. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/preprocess/aria_snapshot.py +0 -0
  179. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/preprocess/diff_ast_analyzer.py +0 -0
  180. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/preprocess/error_log_parser.py +0 -0
  181. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/preprocess/failure_scanner.py +0 -0
  182. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/prompts/__init__.py +0 -0
  183. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/prompts/diagnoser.py +0 -0
  184. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/prompts/reviewer.py +0 -0
  185. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/context.py +0 -0
  186. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/in_memory_snapshot_store.py +0 -0
  187. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/interfaces.py +0 -0
  188. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/snapshot_store.py +0 -0
  189. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/shadow/workspace.py +0 -0
  190. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/utils/__init__.py +0 -0
  191. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/utils/files.py +0 -0
  192. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/verify/__init__.py +0 -0
  193. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/app/verify/selector_check.py +0 -0
  194. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/RELEASING.md +0 -0
  195. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/demo.gif +0 -0
  196. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/demo.sh +0 -0
  197. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/demo.tape +0 -0
  198. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/design.md +0 -0
  199. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/sandbox.md +0 -0
  200. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/shadow-quickstart.md +0 -0
  201. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/usecase-demo-cta.png +0 -0
  202. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs/wiki_architecture.md +0 -0
  203. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/.gitignore +0 -0
  204. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/DESIGN.md +0 -0
  205. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/README.md +0 -0
  206. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/architecture/data-preprocessor.mdx +0 -0
  207. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/architecture/langgraph-agent.mdx +0 -0
  208. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/architecture/repair-loop.mdx +0 -0
  209. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/architecture/selector-verifier.mdx +0 -0
  210. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/community/changelog.mdx +0 -0
  211. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/community/contributing.mdx +0 -0
  212. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/community/security.mdx +0 -0
  213. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/examples/breakage-patterns.mdx +0 -0
  214. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/examples/demo-walkthrough.mdx +0 -0
  215. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/guides/auto-heal-on-pr.mdx +0 -0
  216. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/guides/pr-review-bot.mdx +0 -0
  217. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/guides/resilient-selectors.mdx +0 -0
  218. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/guides/selector-verification.mdx +0 -0
  219. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/guides/suite-vs-single.mdx +0 -0
  220. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/reference/cli.mdx +0 -0
  221. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/reference/configuration.mdx +0 -0
  222. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/reference/exit-codes.mdx +0 -0
  223. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/reference/github-action.mdx +0 -0
  224. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/safety/human-in-the-loop.mdx +0 -0
  225. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/safety/sandbox-modes.mdx +0 -0
  226. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/docs/safety/scope-guardrail.mdx +0 -0
  227. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/src/data/help-wanted.json +0 -0
  228. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/src/pages/markdown-page.mdx +0 -0
  229. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/.nojekyll +0 -0
  230. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/docusaurus-social-card.jpg +0 -0
  231. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/docusaurus.png +0 -0
  232. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/favicon.ico +0 -0
  233. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/logo.svg +0 -0
  234. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/undraw_docusaurus_mountain.svg +0 -0
  235. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/undraw_docusaurus_react.svg +0 -0
  236. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/static/img/undraw_docusaurus_tree.svg +0 -0
  237. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/docs-site/tsconfig.json +0 -0
  238. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/examples/classname-scenario/README.md +0 -0
  239. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/examples/classname-scenario/classname-rename.diff +0 -0
  240. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/examples/classname-scenario/classname.spec.ts +0 -0
  241. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/examples/classname-scenario/components/CTAButton.tsx +0 -0
  242. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/examples/classname-scenario/index.html +0 -0
  243. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/__init__.py +0 -0
  244. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_aria_snapshot.py +0 -0
  245. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_diff_ast_analyzer.py +0 -0
  246. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_error_log_parser.py +0 -0
  247. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_failure_scanner.py +0 -0
  248. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_files.py +0 -0
  249. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_graph.py +0 -0
  250. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_in_memory_snapshot_store.py +0 -0
  251. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_matching_engine.py +0 -0
  252. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_normalizer.py +0 -0
  253. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_repair_loop.py +0 -0
  254. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_reviewer.py +0 -0
  255. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_scoring.py +0 -0
  256. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_selector_check.py +0 -0
  257. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_selector_verifier.py +0 -0
  258. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_shadow_verifier.py +0 -0
  259. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_shadow_workspace.py +0 -0
  260. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_snapshot_store.py +0 -0
  261. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_suite_heal.py +0 -0
  262. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/tests/test_trace_parser.py +0 -0
  263. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0rc0}/uv.lock +0 -0
@@ -62,5 +62,10 @@ E2E_HEALER_WRITE_GLOBS=*.spec.js,*.spec.jsx,*.spec.ts,*.spec.tsx,*.test.js,*.tes
62
62
  E2E_HEALER_DENY_GLOBS=.env,.env.*,**/.env,**/.env.*,.git/**,.github/**,node_modules/**,.venv/**,uv.lock,package-lock.json,pnpm-lock.yaml,yarn.lock
63
63
  E2E_HEALER_ALLOW_TEMP_HELPER=true
64
64
 
65
+ # Architecture boundary for generated patches. Deny rules take precedence.
66
+ # Example: allow only tests and deny generated/vendor layers.
67
+ E2E_HEALER_ARCHITECTURE_ALLOW_GLOBS=**/*
68
+ E2E_HEALER_ARCHITECTURE_DENY_GLOBS=
69
+
65
70
  # Logging
66
71
  E2E_HEALER_LOG_LEVEL=INFO
@@ -0,0 +1,51 @@
1
+ name: assign-reviewer
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [opened, reopened, ready_for_review]
6
+
7
+ permissions:
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ assign:
12
+ runs-on: ubuntu-latest
13
+ # Skip drafts. Author exclusion is handled in the script so a maintainer's
14
+ # own PR still triggers the job and gets the *other* maintainer as reviewer.
15
+ if: github.event.pull_request.draft == false
16
+ steps:
17
+ - name: Request review from maintainers
18
+ uses: actions/github-script@v7
19
+ with:
20
+ script: |
21
+ const MAINTAINERS = ['Lee-Dongwook', 'Avaneesh635', 'Adityai1411','kamleshkc2002'];
22
+ const { owner, repo } = context.repo;
23
+ const pull_number = context.payload.pull_request.number;
24
+ const author = context.payload.pull_request.user.login;
25
+
26
+ // Never ask someone to review their own PR.
27
+ const candidates = MAINTAINERS.filter((login) => login !== author);
28
+ if (candidates.length === 0) {
29
+ core.info(`No reviewers to request (author "${author}" is the only maintainer).`);
30
+ return;
31
+ }
32
+
33
+ // Request each reviewer independently. requestReviewers is atomic per call,
34
+ // so a single non-collaborator (e.g. a pending invite that 422s) would sink
35
+ // the whole batch and assign nobody. Per-reviewer calls isolate that failure.
36
+ const requested = [];
37
+ const skipped = [];
38
+ for (const login of candidates) {
39
+ try {
40
+ await github.rest.pulls.requestReviewers({ owner, repo, pull_number, reviewers: [login] });
41
+ requested.push(login);
42
+ } catch (error) {
43
+ core.info(`Skipping "${login}": ${error.status} — ${error.message}`);
44
+ skipped.push(login);
45
+ }
46
+ }
47
+
48
+ core.info(`Requested review from: ${requested.join(', ') || '(none)'}`);
49
+ if (skipped.length > 0) {
50
+ core.info(`Skipped (not assignable, likely pending invite): ${skipped.join(', ')}`);
51
+ }
@@ -8,8 +8,13 @@ on:
8
8
  jobs:
9
9
  check:
10
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
11
13
  steps:
12
- - uses: actions/checkout@v4
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+ with:
17
+ ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.head_ref || github.ref }}
13
18
 
14
19
  - name: Install uv
15
20
  uses: astral-sh/setup-uv@v3
@@ -23,15 +28,19 @@ jobs:
23
28
  - name: Lint
24
29
  run: uv run ruff check .
25
30
 
26
- - name: Format check
27
- run: uv run ruff format --check .
31
+ - name: Auto-format
32
+ run: uv run ruff format .
28
33
 
29
34
  - name: Commit formatting changes
35
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
30
36
  uses: stefanzweifel/git-auto-commit-action@v5
31
37
  with:
32
38
  commit_message: "style: auto-format code with ruff"
33
39
  file_pattern: "*.py"
34
40
 
41
+ - name: Verify formatting changes were committed
42
+ run: git diff --exit-code -- "*.py"
43
+
35
44
  - name: Typecheck
36
45
  run: uv run pyright
37
46
 
@@ -49,29 +58,38 @@ jobs:
49
58
  steps:
50
59
  - uses: actions/checkout@v4
51
60
 
61
+ - uses: pnpm/action-setup@v4
62
+ with:
63
+ package_json_file: examples/package.json
64
+
52
65
  - uses: actions/setup-node@v4
53
66
  with:
54
- node-version: 20
55
- cache: npm
56
- cache-dependency-path: examples/package-lock.json
67
+ node-version: 24
68
+ cache: pnpm
69
+ cache-dependency-path: examples/pnpm-lock.yaml
57
70
 
58
71
  - name: Install Playwright demo deps
59
72
  working-directory: examples
60
- run: npm ci
73
+ run: pnpm install --frozen-lockfile
61
74
 
62
75
  - name: Install Chromium
63
76
  working-directory: examples
64
- run: npx playwright install chromium
77
+ run: pnpm exec playwright install chromium
65
78
 
66
- - name: Verify demo fails on outdated selector
79
+ - name: Verify demo is green on a clean checkout
80
+ working-directory: examples
81
+ run: pnpm exec playwright test scenarios/id-rename
82
+
83
+ - name: Verify applying the change breaks the selector
67
84
  working-directory: examples
68
85
  run: |
86
+ git apply scenarios/id-rename/change.patch
69
87
  set +e
70
- npx playwright test example.spec.ts
88
+ pnpm exec playwright test scenarios/id-rename
71
89
  code=$?
72
90
  set -e
73
91
  if [ "$code" -eq 0 ]; then
74
- echo "Expected example.spec.ts to fail on #submit-btn"
92
+ echo "Expected scenarios/id-rename to fail on #submit-btn after applying change.patch"
75
93
  exit 1
76
94
  fi
77
95
  echo "Demo correctly reproduces the broken-selector failure"
@@ -107,29 +125,37 @@ jobs:
107
125
  - name: Install Python dependencies
108
126
  run: uv sync --extra dev
109
127
 
128
+ - uses: pnpm/action-setup@v4
129
+ with:
130
+ package_json_file: examples/package.json
131
+
110
132
  - uses: actions/setup-node@v4
111
133
  with:
112
- node-version: 20
113
- cache: npm
114
- cache-dependency-path: examples/package-lock.json
134
+ node-version: 24
135
+ cache: pnpm
136
+ cache-dependency-path: examples/pnpm-lock.yaml
115
137
 
116
138
  - name: Install Playwright demo deps
117
139
  working-directory: examples
118
- run: npm ci
140
+ run: pnpm install --frozen-lockfile
119
141
 
120
142
  - name: Install Chromium
121
143
  working-directory: examples
122
- run: npx playwright install chromium
144
+ run: pnpm exec playwright install chromium
145
+
146
+ - name: Apply the breaking change
147
+ working-directory: examples
148
+ run: git apply scenarios/id-rename/change.patch
123
149
 
124
150
  - name: Capture failing Playwright log
125
151
  working-directory: examples
126
152
  run: |
127
153
  set +e
128
- npx playwright test example.spec.ts 2>&1 | tee playwright.log
154
+ pnpm exec playwright test scenarios/id-rename 2>&1 | tee scenarios/id-rename/playwright.log
129
155
  set -e
130
156
 
131
157
  - name: Dry-run heal against demo
132
158
  working-directory: examples
133
159
  env:
134
160
  E2E_HEALER_NVIDIA_API_KEY: ${{ secrets.E2E_HEALER_NVIDIA_API_KEY }}
135
- run: uv run e2e-healer example.spec.ts --log playwright.log --diff selector-rename.diff --dry-run
161
+ run: uv run e2e-healer scenarios/id-rename/spec.ts --log scenarios/id-rename/playwright.log --diff scenarios/id-rename/change.patch --dry-run
@@ -0,0 +1,72 @@
1
+ name: Deploy docs to GitHub Pages
2
+
3
+ # Builds the Docusaurus site in docs-site/ and publishes it to GitHub Pages.
4
+ # Runs on pushes to main that touch the docs, and can be triggered manually.
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ paths:
9
+ - 'docs-site/**'
10
+ - '.github/workflows/deploy-docs.yml'
11
+ workflow_dispatch:
12
+
13
+ # Least-privilege permissions required by the Pages deployment.
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # One deploy at a time; don't cancel an in-flight publish.
20
+ concurrency:
21
+ group: pages
22
+ cancel-in-progress: false
23
+
24
+ jobs:
25
+ build:
26
+ runs-on: ubuntu-latest
27
+ defaults:
28
+ run:
29
+ working-directory: docs-site
30
+ steps:
31
+ - name: Checkout
32
+ uses: actions/checkout@v4
33
+
34
+ - name: Setup pnpm
35
+ uses: pnpm/action-setup@v4
36
+ with:
37
+ version: 9.15.0
38
+
39
+ - name: Setup Node
40
+ uses: actions/setup-node@v4
41
+ with:
42
+ node-version: 22
43
+ cache: pnpm
44
+ cache-dependency-path: docs-site/pnpm-lock.yaml
45
+
46
+ - name: Install dependencies
47
+ run: pnpm install --frozen-lockfile
48
+
49
+ - name: Build site
50
+ run: pnpm build
51
+ env:
52
+ # Set these as repository secrets (Settings → Secrets and variables →
53
+ # Actions). Optional: the build succeeds without them, just without
54
+ # analytics / Search Console verification wired in.
55
+ GA4_ID: ${{ secrets.GA4_ID }}
56
+ GOOGLE_SITE_VERIFICATION: ${{ secrets.GOOGLE_SITE_VERIFICATION }}
57
+
58
+ - name: Upload Pages artifact
59
+ uses: actions/upload-pages-artifact@v3
60
+ with:
61
+ path: docs-site/build
62
+
63
+ deploy:
64
+ needs: build
65
+ runs-on: ubuntu-latest
66
+ environment:
67
+ name: github-pages
68
+ url: ${{ steps.deployment.outputs.page_url }}
69
+ steps:
70
+ - name: Deploy to GitHub Pages
71
+ id: deployment
72
+ uses: actions/deploy-pages@v4
@@ -34,3 +34,6 @@ repair-summary.json
34
34
  # Misc
35
35
  *.ipynb
36
36
  .DS_Store
37
+
38
+ .vscode/
39
+ /settings.json
@@ -0,0 +1,188 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format is based on
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.5.0-pre] - 2026-07-28
10
+
11
+ Preview release. Everything below is shipped and tested, but the surfaces added here
12
+ (registry, notifications, selector hints, Shadow extensions) may still change before `0.5.0`.
13
+
14
+ ### Added
15
+ - **Failed Test Registry** (`app/registry.py`) — aggregate failure statistics for the heal
16
+ loop: per-component and per-selector-pattern tracking, with categorized `FailureCause`
17
+ (id rename, className change, text change, structural change) and `SelectorKind`
18
+ (css id/class, role, test id, xpath, text) models (#122).
19
+ - **Slack notifications** for heal outcomes — posts a block-formatted summary to an incoming
20
+ webhook set via `E2E_HEALER_SLACK_WEBHOOK_URL` (a no-op when unset). Retries are handled by
21
+ tenacity and deliberately only fire on transient failures (network errors, HTTP 429/5xx);
22
+ 4xx responses fail fast instead of hammering a bad webhook (#124).
23
+ - **`e2e-healer init` readiness report** — inspects the repo (Playwright config, discovered
24
+ spec files and their directories, `playwright` in `package.json`, configured LLM provider
25
+ and API key) and prints a rich status table. `--scaffold` additionally writes a starter
26
+ GitHub Actions workflow so a repo can wire the healer into CI in one step, and `--force`
27
+ overwrites an existing one (#126, #144).
28
+ - **`--selector-hint`** on `heal` — accepts a JSON `SelectorHint` (`role` / `testid` / `text`
29
+ / `css`, plus the original selector and a confidence score) so a human, or a DOM picker,
30
+ can pinpoint the intended target instead of leaving it to inference (#119).
31
+ - **Framework-adaptive patch prompts** — the Patch Generator detects React / Vue / Svelte
32
+ (from the diff's file extensions, the test's imports, and nearby `package.json`
33
+ dependencies) and appends framework-specific selector guidance to the system prompt.
34
+ Detection is token-aware so an unrelated dependency name can't shadow the real framework,
35
+ and unknown stacks fall back to generic guidance. The core integrity guardrail is
36
+ appended to, never weakened.
37
+ - **Semantic JSX chunker** (`app/preprocess/jsx_chunker.py`) — locates the failing line and
38
+ sends only the enclosing JSX element to the LLM instead of the whole file, bounding context
39
+ cost. Configurable via `E2E_HEALER_JSX_CHUNK_MARGIN_LINES`, with a line-window fallback
40
+ when tree-sitter is unavailable.
41
+ - **Architecture-boundary enforcement** in the Patch Generator — `E2E_HEALER_ARCHITECTURE_ALLOW_GLOBS`
42
+ / `E2E_HEALER_ARCHITECTURE_DENY_GLOBS` constrain which paths a generated patch may touch.
43
+ A violation is recorded to the new `boundary_report` state field and aborts the patch
44
+ rather than letting it leak across architectural lines.
45
+ - **Markdown report generator** (`app/core/report/generator.ts`) — renders a run summary
46
+ (problem, before/after DOM, diagnosis, patch, pass/fail) as Markdown, with absolute-path
47
+ redaction and code-fence escaping so report content can't break the surrounding document
48
+ (#136).
49
+ - **Configurable test-run timeout** — `E2E_HEALER_TEST_TIMEOUT_SECONDS` (default 120) caps a
50
+ Playwright run so a hung test (dead dev server, deadlocked `waitForSelector`) can no longer
51
+ stall the repair loop.
52
+ - Shadow Testing extension points, behind the `I*` interfaces:
53
+ - **HAR trace parser** (`har_parser.py`, `har_entry.py`) — build snapshots from a standard
54
+ HTTP Archive file, alongside the existing Playwright trace parser.
55
+ - **Content-addressed snapshot store** — payloads are stored under a SHA-256 of their
56
+ canonical content with a small per-id ref pointing at it, so identical responses
57
+ deduplicate to one object and snapshot sets become diffable. Implements the existing
58
+ `ISnapshotStore` contract, so it drops in without touching call sites.
59
+ - **Configurable miss policy** — `strict`, `lenient`, or `record-and-augment` for requests
60
+ with no matching snapshot.
61
+ - **Opt-in richer matching** (`MatchOptions`) — extra ignored/case-insensitive query params,
62
+ headers promoted to hard match requirements, exact normalized-body matching, and
63
+ order-insensitive JSON array comparison. Every field defaults to the previous behavior,
64
+ so an unconfigured matcher is unchanged.
65
+ - **Non-HTTP snapshots** — cookies, `localStorage`, and clock state captured from and
66
+ restored to a Playwright browser context, so replay covers more than the network layer.
67
+ - Real **React + Vite** demo app under `examples/` with an id-rename breakage scenario, for
68
+ reproducible end-to-end tests.
69
+ - Documentation site (Docusaurus) with GitHub Pages deploy, SEO/GEO metadata, and analytics.
70
+ - RFC for a Chrome Extension ↔ CLI bridge (DOM picker → `--selector-hint`), in
71
+ `docs/rfc_dom_picker_cli_bridge.md` (#140).
72
+
73
+ ### Changed
74
+ - Test Runner rebuilt on `subprocess.Popen` with an explicit process group (POSIX
75
+ `start_new_session`, Windows `CREATE_NEW_PROCESS_GROUP`), so a timed-out run can reap the
76
+ entire tree — Playwright's browser and helper descendants included — instead of orphaning
77
+ them. A timeout surfaces as an ordinary test failure (refreshing `error_log` and
78
+ incrementing `loop_count`) rather than an exception, keeping the graph alive.
79
+ - Patch application hardened: patch instructions are validated against the current code
80
+ before being applied, with the outcome recorded in the new `patch_application_report`
81
+ state field, plus line-ending preservation and a safety net for malformed edits.
82
+ - `examples/` migrated from npm to pnpm; CI pinned to Node 22+ with a matching pnpm version.
83
+ - Docs and roadmap reconciled with what actually shipped; READMEs updated.
84
+ - Reviewer auto-assignment workflow made resilient to non-collaborators.
85
+
86
+ ### Fixed
87
+ - Diff/HAR robustness: HAR scalar fields are validated and compatibility edge cases handled
88
+ before a snapshot is built.
89
+ - Snapshot store correctness: objects and refs publish atomically, a referenced hash is
90
+ validated before it is turned into a path, snapshot-id normalization is no longer lossy,
91
+ and unreadable objects are normalized into the store's error hierarchy instead of raising
92
+ raw I/O errors.
93
+ - Framework detection reads `package.json` as explicit UTF-8.
94
+ - The JSX chunk margin is validated instead of trusted.
95
+ - Diagnoser LLM calls are wrapped in `try/except`; subprocess failures are caught and logged
96
+ with `logger.exception()` rather than `logger.error()`.
97
+ - `ContentAddressedSnapshotStore` is exported from `app.shadow`.
98
+
99
+ ### Security
100
+ - Browser-state snapshots hardened — cookie and storage entries returned by Playwright are
101
+ validated on the way in, and `Secure` / `SameSite` attributes are enforced on restore so a
102
+ replayed cookie can't be downgraded relative to how it was captured.
103
+
104
+ ## [0.4.0] - 2026-07-17
105
+
106
+ ### Added
107
+ - **Shadow Testing** execution mode — replay tests against captured, deterministic network
108
+ snapshots instead of a live backend. The full pipeline (trace parser, snapshot store, mock
109
+ injector, matcher, and runtime orchestration) is implemented and integrated into the heal
110
+ graph via the `shadow_verifier` node, enabling fast, repeatable, side-effect-free patch
111
+ verification before a full live test run. Activated with `--shadow`.
112
+ - Multi-provider LLM support: **OpenAI**, **Anthropic (Claude)**, and **Ollama** (local,
113
+ offline) alongside the existing NVIDIA NIM, selected via `E2E_HEALER_LLM_PROVIDER`.
114
+ Configuration is provider-neutral (`E2E_HEALER_LLM_*`); the standard `OPENAI_API_KEY` /
115
+ `ANTHROPIC_API_KEY` are used as fallbacks, and Ollama needs no key. Anthropic and Ollama
116
+ are optional extras — `ai-driven-e2e[anthropic]` / `ai-driven-e2e[ollama]` — so users who
117
+ don't need them don't pull in the dependency.
118
+
119
+ ### Changed
120
+ - LLM client rebuilt on a provider-agnostic abstraction over LangChain chat models: one
121
+ interface for free-text and structured completion plus a factory keyed on
122
+ `llm_provider`. Node call sites are unchanged. Structured outputs are enforced per
123
+ provider (OpenAI/NVIDIA strict `json_schema`, Anthropic tool-use, Ollama native
124
+ JSON-schema `format`), with the tenacity retry and Patch Generator feedback loop
125
+ preserved so a flaky JSON response never crashes the run.
126
+ - Documentation: README gains a provider matrix and per-provider setup blocks;
127
+ `.env.example` shows every provider.
128
+
129
+ ## [0.3.0] - 2026-07-11
130
+
131
+ ### Changed
132
+ - Diff parsing rewritten on a tree-sitter AST: the JSX/TSX diff analyzer now walks the
133
+ parsed syntax tree instead of matching regexes, producing more accurate and robust
134
+ before/after DOM node extraction. Added the tree-sitter dependencies and expanded the
135
+ diff-analyzer test coverage accordingly.
136
+
137
+ ## [0.2.2] - 2026-07-11
138
+
139
+ ### Added
140
+ - PR review-bot mode: `e2e-healer` can attach to a repository and review pull requests
141
+ (new Reviewer node, prompts, and structured schemas), surfaced through the CLI, the
142
+ composite Action (`action.yml`), and an example workflow (`ci/github-review-bot.example.yml`).
143
+ - `classname-scenario` example: a broken-selector demo covering a className rename.
144
+ - Japanese README translation (`README.ja.md`).
145
+
146
+ ### Changed
147
+ - CI: added coverage reporting and an examples smoke-test job.
148
+ - Tooling: expanded ruff lint/format config, added `.editorconfig` and pre-commit hooks,
149
+ and applied import sorting/formatting across the codebase.
150
+ - Added an auto-assign-reviewer workflow.
151
+
152
+ ### Fixed
153
+ - Added `None` guards to the preprocessors (error-log parser, diff AST analyzer, aria
154
+ snapshot) and expanded their test coverage.
155
+
156
+ ## [0.2.0] - 2026-07-04
157
+
158
+ ### Added
159
+ - Suite mode: `e2e-healer` with no path (or a directory) runs the whole Playwright suite,
160
+ then heals every failing test file and emits an aggregate `SuiteSummary` (exit 0 only if
161
+ all are healed). Single-file usage is unchanged.
162
+
163
+ ## [0.1.0] - 2026-07-04
164
+
165
+ ### Added
166
+ - CLI core (`e2e-healer`) that heals a failing Playwright test end-to-end: preprocess
167
+ (error log + JSX/TSX diff), LangGraph loop (Diagnoser → Patch Generator → Selector
168
+ Verifier → Test Runner), and a Router with a loop cap.
169
+ - Selector Verifier node: verifies patched selectors against the live DOM via a
170
+ Node/Playwright helper; hallucinated/ambiguous selectors are reverted and re-patched
171
+ before a full test run. Config via `E2E_HEALER_VERIFY_SELECTORS` / `E2E_HEALER_APP_URL`
172
+ and the `--app-url` flag / `app-url` action input.
173
+ - Self-run failure capture when `--log` is omitted; `--dry-run`, `--diff-base`, `--json`.
174
+ - Atomic in-place writes with restore-on-give-up.
175
+ - Reusable composite GitHub Action (`action.yml`) + example patch-PR workflow.
176
+ - Unit and mocked end-to-end tests; repo CI (lint, format, typecheck, test).
177
+
178
+ ### Changed
179
+ - LLM provider migrated from OpenAI to NVIDIA NIM (`openai/gpt-oss-120b`) via the
180
+ OpenAI-compatible endpoint; Structured Outputs guardrail retained.
181
+
182
+ [Unreleased]: https://github.com/Lee-Dongwook/E2E-Self-Heal/compare/v0.5-pre...HEAD
183
+ [0.5.0-pre]: https://github.com/Lee-Dongwook/E2E-Self-Heal/compare/v0.4.0...v0.5-pre
184
+ [0.4.0]: https://github.com/Lee-Dongwook/E2E-Self-Heal/compare/v0.3.0...v0.4.0
185
+ [0.3.0]: https://github.com/Lee-Dongwook/E2E-Self-Heal/compare/v0.2.2...v0.3.0
186
+ [0.2.2]: https://github.com/Lee-Dongwook/E2E-Self-Heal/compare/v0.2.0...v0.2.2
187
+ [0.2.0]: https://github.com/Lee-Dongwook/E2E-Self-Heal/compare/v0.1.0...v0.2.0
188
+ [0.1.0]: https://github.com/Lee-Dongwook/E2E-Self-Heal/releases/tag/v0.1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-driven-e2e
3
- Version: 0.4.0
3
+ Version: 0.5.0rc0
4
4
  Summary: LangGraph-based AI-driven E2E test self-healing engine (CLI core + CI integration)
5
5
  Project-URL: Homepage, https://github.com/Lee-Dongwook/E2E-Self-Heal
6
6
  Project-URL: Repository, https://github.com/Lee-Dongwook/E2E-Self-Heal
@@ -118,7 +118,7 @@ The flagship workflow: run your suite and auto-heal on failure, opening a patch
118
118
  ```yaml
119
119
  - name: E2E self-heal
120
120
  id: heal
121
- uses: Lee-Dongwook/E2E-Self-Heal@v0.2.0
121
+ uses: Lee-Dongwook/E2E-Self-Heal@v0.4.0
122
122
  with:
123
123
  test-path: tests/example.spec.ts
124
124
  nvidia-api-key: ${{ secrets.NVIDIA_API_KEY }}
@@ -145,7 +145,7 @@ comments — a ready-to-copy workflow lives in
145
145
  ```yaml
146
146
  - name: E2E review
147
147
  id: review
148
- uses: Lee-Dongwook/E2E-Self-Heal@v0.2.0
148
+ uses: Lee-Dongwook/E2E-Self-Heal@v0.4.0
149
149
  with:
150
150
  mode: review
151
151
  test-path: tests/example.spec.ts
@@ -156,9 +156,12 @@ comments — a ready-to-copy workflow lives in
156
156
 
157
157
  ## Demo (verified end-to-end)
158
158
 
159
- The [`examples/`](examples/) project reproduces a real break: the page's button id was
160
- renamed `submit-btn` → `submit`, so `example.spec.ts` times out. Running the healer against
161
- it (with a live NVIDIA key) produces:
159
+ The [`examples/`](examples/) project is a runnable **React + Vite** app the engine heals
160
+ end to end. It ships **green** — on a clean checkout every spec passes against the real app.
161
+ Applying a scenario's real `git diff` breaks it: the
162
+ [`id-rename`](examples/scenarios/id-rename/) scenario renames the button id
163
+ `submit-btn` → `submit`, so `scenarios/id-rename/spec.ts` times out on `#submit-btn`.
164
+ Running the healer against it (with a live NVIDIA key) produces:
162
165
 
163
166
  ```text
164
167
  diagnoser_finished
@@ -174,7 +177,8 @@ fixed after 0 loop(s)
174
177
  + await page.click("#submit"); # assertion on "Thanks!" left untouched
175
178
  ```
176
179
 
177
- Reproduce it yourself: see [`examples/README.md`](examples/README.md).
180
+ Reproduce it yourself (the demo uses [pnpm](https://pnpm.io)): see
181
+ [`examples/README.md`](examples/README.md).
178
182
 
179
183
  ## In practice
180
184
 
@@ -222,12 +226,13 @@ uv tool install git+https://github.com/Lee-Dongwook/E2E-Self-Heal.git
222
226
  Then in any Playwright project:
223
227
 
224
228
  ```bash
225
- cp .env.example .env # set E2E_HEALER_NVIDIA_API_KEY
229
+ cp .env.example .env # set E2E_HEALER_LLM_API_KEY (or your provider's key)
226
230
  e2e-healer tests/login.spec.ts
227
231
  ```
228
232
 
229
- Get a free NVIDIA NIM API key at [build.nvidia.com](https://build.nvidia.com/) (default
230
- model `openai/gpt-oss-120b`).
233
+ Works with **NVIDIA NIM (default), OpenAI, Anthropic (Claude), or a local Ollama model** —
234
+ see [Configuration](#configuration) to pick one. For the default, get a free NVIDIA NIM API
235
+ key at [build.nvidia.com](https://build.nvidia.com/) (default model `openai/gpt-oss-120b`).
231
236
 
232
237
  <details>
233
238
  <summary>Development install from a local clone</summary>
@@ -281,12 +286,12 @@ changes.
281
286
 
282
287
  ### Provider matrix
283
288
 
284
- | Provider | Install | Required env | Structured outputs | Notes |
285
- | ----------- | ------------------------------ | -------------------------------------------------------- | ----------------------------- | --------------------------------------------------------------------- |
286
- | `nvidia` | built-in (default) | `E2E_HEALER_LLM_API_KEY` (or legacy `NVIDIA_API_KEY`) | strict `json_schema` | OpenAI-compatible NIM endpoint; default `openai/gpt-oss-120b`. |
287
- | `openai` | built-in | `E2E_HEALER_LLM_API_KEY` **or** `OPENAI_API_KEY` | strict `json_schema` (native) | Set `LLM_BASE_URL` for Azure / OpenAI-compatible endpoints. |
288
- | `anthropic` | `ai-driven-e2e[anthropic]` | `E2E_HEALER_LLM_API_KEY` **or** `ANTHROPIC_API_KEY` | tool-use | No OpenAI `response_format`; schema enforced via Claude tool-use. |
289
- | `ollama` | `ai-driven-e2e[ollama]` | none (local) | native JSON-schema `format` | Fully offline; smaller models are less reliable at strict JSON. |
289
+ | Provider | Install | Required env | Structured outputs | Notes |
290
+ | ----------- | -------------------------- | ----------------------------------------------------- | ----------------------------- | ----------------------------------------------------------------- |
291
+ | `nvidia` | built-in (default) | `E2E_HEALER_LLM_API_KEY` (or legacy `NVIDIA_API_KEY`) | strict `json_schema` | OpenAI-compatible NIM endpoint; default `openai/gpt-oss-120b`. |
292
+ | `openai` | built-in | `E2E_HEALER_LLM_API_KEY` **or** `OPENAI_API_KEY` | strict `json_schema` (native) | Set `LLM_BASE_URL` for Azure / OpenAI-compatible endpoints. |
293
+ | `anthropic` | `ai-driven-e2e[anthropic]` | `E2E_HEALER_LLM_API_KEY` **or** `ANTHROPIC_API_KEY` | tool-use | No OpenAI `response_format`; schema enforced via Claude tool-use. |
294
+ | `ollama` | `ai-driven-e2e[ollama]` | none (local) | native JSON-schema `format` | Fully offline; smaller models are less reliable at strict JSON. |
290
295
 
291
296
  All providers read the generic `E2E_HEALER_LLM_MODEL` / `E2E_HEALER_LLM_MAX_TOKENS` /
292
297
  `E2E_HEALER_LLM_BASE_URL`. On a structured-output parse failure the engine retries
@@ -345,33 +350,32 @@ E2E_HEALER_LLM_MODEL=llama3.1
345
350
  # E2E_HEALER_LLM_BASE_URL=http://localhost:11434 # default; override for a remote host
346
351
  ```
347
352
 
348
- | Variable | Default | Purpose |
349
- | ------------------------------ | ------------------------------------- | ---------------------------------------------- |
353
+ | Variable | Default | Purpose |
354
+ | ------------------------------ | ------------------------------------- | ------------------------------------------------------ |
350
355
  | `E2E_HEALER_LLM_PROVIDER` | `nvidia` | LLM backend: `nvidia`, `openai`, `anthropic`, `ollama` |
351
- | `E2E_HEALER_LLM_API_KEY` | — | API key for the selected provider |
352
- | `E2E_HEALER_LLM_BASE_URL` | — | OpenAI-compatible endpoint (empty = SDK default) |
353
- | `E2E_HEALER_LLM_MODEL` | — | Structured-Outputs-capable model |
354
- | `E2E_HEALER_LLM_MAX_TOKENS` | `4096` | Completion token cap (headroom for reasoning) |
355
- | `E2E_HEALER_NVIDIA_API_KEY` | — | NVIDIA NIM API key (legacy; maps to `LLM_API_KEY`) |
356
- | `E2E_HEALER_NVIDIA_BASE_URL` | `https://integrate.api.nvidia.com/v1` | OpenAI-compatible endpoint (legacy) |
357
- | `E2E_HEALER_NVIDIA_MODEL` | `openai/gpt-oss-120b` | Structured-Outputs-capable model (legacy) |
358
- | `E2E_HEALER_NVIDIA_MAX_TOKENS` | `4096` | Completion token cap (legacy) |
359
- | `E2E_HEALER_MAX_LOOPS` | `3` | Repair loop cap |
360
- | `E2E_HEALER_PLAYWRIGHT_CMD` | `npx playwright test` | Playwright invocation |
361
- | `E2E_HEALER_VERIFY_SELECTORS` | `true` | Toggle live-DOM selector verification |
362
- | `E2E_HEALER_APP_URL` | — | URL the Selector Verifier loads (empty = skip) |
363
- | `E2E_HEALER_NODE_CMD` | `node` | Node executable for the verifier |
364
- | `E2E_HEALER_SANDBOX_MODE` | `relaxed` | `strict`, `relaxed`, or `off` |
365
- | `E2E_HEALER_WORKSPACE_ROOT` | `.` | Root for strict path checks |
366
- | `E2E_HEALER_WRITE_GLOBS` | `*.spec.js,...` | Writable test-file globs |
367
- | `E2E_HEALER_DENY_GLOBS` | `.env,.git/**,...` | Paths blocked by the sandbox |
368
- | `E2E_HEALER_ALLOW_TEMP_HELPER` | `true` | Permit selector verifier helper file |
356
+ | `E2E_HEALER_LLM_API_KEY` | — | API key for the selected provider |
357
+ | `E2E_HEALER_LLM_BASE_URL` | — | OpenAI-compatible endpoint (empty = SDK default) |
358
+ | `E2E_HEALER_LLM_MODEL` | — | Structured-Outputs-capable model |
359
+ | `E2E_HEALER_LLM_MAX_TOKENS` | `4096` | Completion token cap (headroom for reasoning) |
360
+ | `E2E_HEALER_NVIDIA_API_KEY` | — | NVIDIA NIM API key (legacy; maps to `LLM_API_KEY`) |
361
+ | `E2E_HEALER_NVIDIA_BASE_URL` | `https://integrate.api.nvidia.com/v1` | OpenAI-compatible endpoint (legacy) |
362
+ | `E2E_HEALER_NVIDIA_MODEL` | `openai/gpt-oss-120b` | Structured-Outputs-capable model (legacy) |
363
+ | `E2E_HEALER_NVIDIA_MAX_TOKENS` | `4096` | Completion token cap (legacy) |
364
+ | `E2E_HEALER_MAX_LOOPS` | `3` | Repair loop cap |
365
+ | `E2E_HEALER_PLAYWRIGHT_CMD` | `npx playwright test` | Playwright invocation |
366
+ | `E2E_HEALER_VERIFY_SELECTORS` | `true` | Toggle live-DOM selector verification |
367
+ | `E2E_HEALER_APP_URL` | — | URL the Selector Verifier loads (empty = skip) |
368
+ | `E2E_HEALER_NODE_CMD` | `node` | Node executable for the verifier |
369
+ | `E2E_HEALER_SANDBOX_MODE` | `relaxed` | `strict`, `relaxed`, or `off` |
370
+ | `E2E_HEALER_WORKSPACE_ROOT` | `.` | Root for strict path checks |
371
+ | `E2E_HEALER_WRITE_GLOBS` | `*.spec.js,...` | Writable test-file globs |
372
+ | `E2E_HEALER_DENY_GLOBS` | `.env,.git/**,...` | Paths blocked by the sandbox |
373
+ | `E2E_HEALER_ALLOW_TEMP_HELPER` | `true` | Permit selector verifier helper file |
369
374
 
370
375
  > The `--app-url` CLI flag overrides `E2E_HEALER_APP_URL`. To actually run selector
371
376
  > verification locally, the Playwright project needs browsers installed
372
377
  > (`npm install && npx playwright install`).
373
378
 
374
-
375
379
  ## Development
376
380
 
377
381
  ```bash
@@ -399,24 +403,14 @@ Picking up a docs-site component issue? Read [`docs-site/DESIGN.md`](docs-site/D
399
403
 
400
404
  ## Contributing
401
405
 
402
-
403
-
404
406
  Contributions of every size are welcome — bug reports, docs, tests, or code. Start with
405
407
  [`CONTRIBUTING.md`](CONTRIBUTING.md), then browse
406
408
  [**good first issues**](https://github.com/Lee-Dongwook/E2E-Self-Heal/labels/good%20first%20issue)
407
409
  and [**help wanted**](https://github.com/Lee-Dongwook/E2E-Self-Heal/labels/help%20wanted).
408
410
 
409
- **🙋 We're actively looking for contributors on:**
410
-
411
- - [#3 — Build a real React + Vite frontend demo environment](https://github.com/Lee-Dongwook/E2E-Self-Heal/issues/3) for the Playwright examples
412
-
413
- See the [**v0.3 roadmap**](https://github.com/Lee-Dongwook/E2E-Self-Heal/issues/9) for the
414
- bigger picture. New to the project? Comment on an issue to claim it — we're happy to help.
415
-
416
411
  ## Limitations
417
412
 
418
413
  - Fixes selectors and waits only — never assertions or control flow.
419
- - The JSX/TSX diff analyzer is a regex heuristic in v0.1 (tree-sitter upgrade planned).
420
414
  - The Selector Verifier checks the **entry-page state** at `APP_URL` in v1. Elements that
421
415
  only appear after clicks/navigation aren't verified here; the Test Runner remains the final
422
416
  arbiter (failure-time snapshot capture is planned).