tamash-playwright 0.7.0 → 0.8.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.
package/.env.example CHANGED
@@ -1,16 +1,14 @@
1
1
  # Master on/off switch for self-healing. Unset or anything other than false/0 leaves it on.
2
2
  HEALER_ENABLED=true
3
3
 
4
- # Which AI provider backs self-healing: ollama | openai | anthropic | gemini
4
+ # Which AI provider backs self-healing: ollama | openai | anthropic | gemini | claude-subscription | copilot-subscription
5
5
  # Unset, unknown, or a provider whose key/model below is missing disables self-healing —
6
6
  # a failed action just fails normally, since there's no AI model configured to recover it.
7
+ # claude-subscription/copilot-subscription don't need an API key at all — they use an existing
8
+ # Claude/GitHub Copilot subscription login instead. See the sections near the bottom of this file
9
+ # for setup.
7
10
  HEALER_PROVIDER=ollama
8
11
 
9
- # Optional, off by default. If a locator gets healed but the action on it still fails (e.g. the
10
- # element is covered or needs scrolling into view), the AI can pick a recovery tactic (scroll,
11
- # force, wait, or dispatch the DOM event directly) instead of giving up immediately.
12
- # HEALER_ACTION_RECOVERY_ENABLED=true
13
-
14
12
  # --- Ollama Cloud (https://ollama.com) ---
15
13
  OLLAMA_MODEL=gpt-oss:120b
16
14
  OLLAMA_API_KEY=
@@ -29,3 +27,21 @@ OLLAMA_API_KEY=
29
27
  # GEMINI_MODEL= # check https://ai.google.dev/gemini-api/docs/models for the current model id
30
28
  # GEMINI_API_KEY=
31
29
  # GEMINI_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai
30
+
31
+ # --- Claude subscription (no API key — uses your existing Claude Pro/Max/Team/Enterprise subscription) ---
32
+ # Requires: npm install -g @anthropic-ai/claude-code (the CLI, so `claude login` exists to run),
33
+ # and npm install @anthropic-ai/claude-agent-sdk (the SDK tamash-playwright actually calls).
34
+ # Locally: run `claude login` once.
35
+ # In CI: run `claude setup-token` once to mint a 12-month token, then set it as a CI secret below.
36
+ # CLAUDE_SUBSCRIPTION_MODEL=haiku
37
+ # CLAUDE_CODE_OAUTH_TOKEN=
38
+
39
+ # --- GitHub Copilot subscription (no API key — uses your existing Copilot subscription or free tier) ---
40
+ # Requires: npm install -g @github/copilot (the CLI, so `copilot` exists to sign in with),
41
+ # and npm install @github/copilot-sdk (the SDK tamash-playwright actually calls).
42
+ # Locally: sign in with the `copilot` CLI once.
43
+ # In GitHub Actions CI: add `permissions: { copilot-requests: write }` to the workflow job — but
44
+ # only works if the repo's owning account/org has Copilot enabled; see README for the personal-
45
+ # account PAT fallback (COPILOT_GITHUB_TOKEN) if it doesn't.
46
+ # In other CI systems: set GITHUB_TOKEN (or COPILOT_GITHUB_TOKEN) to a PAT with "Copilot Requests".
47
+ # COPILOT_SUBSCRIPTION_MODEL=mai-code-1-flash-picker