tamash-playwright 0.13.0-beta.2 → 0.13.0

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 (65) hide show
  1. package/.env.example +20 -0
  2. package/CHANGELOG.md +474 -477
  3. package/README.md +222 -635
  4. package/RELEASE-TESTING.md +406 -402
  5. package/dist/bindings/index.d.ts +1 -0
  6. package/dist/bindings/index.d.ts.map +1 -1
  7. package/dist/bindings/index.js +17 -0
  8. package/dist/bindings/index.js.map +1 -1
  9. package/dist/healer/failure-analysis.d.ts +3 -0
  10. package/dist/healer/failure-analysis.d.ts.map +1 -0
  11. package/dist/healer/failure-analysis.js +179 -0
  12. package/dist/healer/failure-analysis.js.map +1 -0
  13. package/dist/healer/failure-log.d.ts +11 -0
  14. package/dist/healer/failure-log.d.ts.map +1 -0
  15. package/dist/healer/failure-log.js +90 -0
  16. package/dist/healer/failure-log.js.map +1 -0
  17. package/dist/healer/index.d.ts +2 -0
  18. package/dist/healer/index.d.ts.map +1 -1
  19. package/dist/healer/index.js +15 -0
  20. package/dist/healer/index.js.map +1 -1
  21. package/dist/healer/providers/anthropic.d.ts.map +1 -1
  22. package/dist/healer/providers/anthropic.js +29 -0
  23. package/dist/healer/providers/anthropic.js.map +1 -1
  24. package/dist/healer/providers/claude-subscription.d.ts.map +1 -1
  25. package/dist/healer/providers/claude-subscription.js +18 -0
  26. package/dist/healer/providers/claude-subscription.js.map +1 -1
  27. package/dist/healer/providers/codex-subscription.d.ts.map +1 -1
  28. package/dist/healer/providers/codex-subscription.js +15 -0
  29. package/dist/healer/providers/codex-subscription.js.map +1 -1
  30. package/dist/healer/providers/copilot-subscription.d.ts.map +1 -1
  31. package/dist/healer/providers/copilot-subscription.js +18 -0
  32. package/dist/healer/providers/copilot-subscription.js.map +1 -1
  33. package/dist/healer/providers/cursor-subscription.d.ts.map +1 -1
  34. package/dist/healer/providers/cursor-subscription.js +15 -0
  35. package/dist/healer/providers/cursor-subscription.js.map +1 -1
  36. package/dist/healer/providers/gemini.d.ts.map +1 -1
  37. package/dist/healer/providers/gemini.js +45 -0
  38. package/dist/healer/providers/gemini.js.map +1 -1
  39. package/dist/healer/providers/kiro-subscription.d.ts.map +1 -1
  40. package/dist/healer/providers/kiro-subscription.js +15 -0
  41. package/dist/healer/providers/kiro-subscription.js.map +1 -1
  42. package/dist/healer/providers/ollama-local.d.ts.map +1 -1
  43. package/dist/healer/providers/ollama-local.js +52 -0
  44. package/dist/healer/providers/ollama-local.js.map +1 -1
  45. package/dist/healer/providers/ollama.d.ts.map +1 -1
  46. package/dist/healer/providers/ollama.js +55 -0
  47. package/dist/healer/providers/ollama.js.map +1 -1
  48. package/dist/healer/providers/openai.d.ts.map +1 -1
  49. package/dist/healer/providers/openai.js +45 -0
  50. package/dist/healer/providers/openai.js.map +1 -1
  51. package/dist/healer/providers/prompt.d.ts +7 -1
  52. package/dist/healer/providers/prompt.d.ts.map +1 -1
  53. package/dist/healer/providers/prompt.js +63 -1
  54. package/dist/healer/providers/prompt.js.map +1 -1
  55. package/dist/healer/providers/tamash-rule-based.d.ts.map +1 -1
  56. package/dist/healer/providers/tamash-rule-based.js +5 -0
  57. package/dist/healer/providers/tamash-rule-based.js.map +1 -1
  58. package/dist/healer/providers/types.d.ts +24 -0
  59. package/dist/healer/providers/types.d.ts.map +1 -1
  60. package/dist/index.d.ts +2 -2
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +2 -1
  63. package/dist/index.js.map +1 -1
  64. package/package.json +1 -1
  65. package/usage.md +157 -5
package/.env.example CHANGED
@@ -95,3 +95,23 @@ OLLAMA_API_KEY=
95
95
  # no vision fallback, no action-recovery tactics. A fast, free, deterministic first line of
96
96
  # defense, not a full replacement for an AI provider. Just set:
97
97
  # HEALER_PROVIDER=tamash
98
+
99
+ # --- Failure analysis: classify a genuinely-failed expect() assertion ---
100
+ # A separate capability from healing above — never fixes anything, only explains a test failure
101
+ # that already happened after every retry was exhausted: likely-defect vs. likely-wrong-locator
102
+ # vs. likely-timing-or-environment vs. inconclusive, with a short explanation. Covers any final
103
+ # failure, not just expect() -- an action (click/fill/etc.) healing already tried and reported on
104
+ # is analyzed too, with healing's own diagnosis folded in as extra context rather than skipped.
105
+ # Reuses whichever HEALER_PROVIDER is already configured above (tamash always declines — no
106
+ # reasoning capability). No reporter to add to playwright.config.ts, runs automatically the same
107
+ # way healing does.
108
+ #
109
+ # On by default, same polarity as HEALER_ENABLED above (unset or anything other than false/0
110
+ # leaves it on) -- independent of HEALER_ENABLED, though: turning healing off does not also turn
111
+ # this off, they check two separate flags. Costs a real AI call on every genuinely-failed test
112
+ # (unlike healing, which only spends when an action fails and is opportunistic about it), so a
113
+ # suite with several broken tests means several calls, every run, until each is fixed. Each
114
+ # call's token usage shows up as its own `failure-analysis-tokens-used` annotation in the report
115
+ # -- deliberately a different annotation type from healing's own `llm-tokens-used`, so the two
116
+ # costs can be weighed against each other, not just healing's. Set to false to turn it off:
117
+ # FAILURE_ANALYSIS_ENABLED=false