shiplightai 0.1.101 → 0.1.103

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/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  All notable changes to `shiplightai` are documented here. This file is generated automatically at release time from the commits that touch the published package and its bundled SDK.
4
4
 
5
+ ## 0.1.103 (2026-09-02)
6
+
7
+ ### Features
8
+
9
+ - **telemetry:** add CLI command telemetry, share one client with the MCP server (bc3ba52)
10
+ - **cli:** replace login/logout with setup-api-token, retire nova hosts (4460953)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **telemetry:** name both opt-out switches in the first-run notice (5344464)
15
+ - **telemetry:** track setup-api-token, not the retired login/logout (df97829)
16
+ - **cli:** unify URL self-healing policy (0f8333c)
17
+ - **cli:** disable self-healing for URL navigation (86fe8d5)
18
+
19
+ ### Other Changes
20
+
21
+ - **telemetry:** split the two opt-out switches, unexport the collector constants (a52c8cf)
22
+ - rebuild workspace dependencies before package-level test and typecheck (9ada4a3)
23
+
24
+ ## 0.1.102 (2026-08-27)
25
+
26
+ ### Features
27
+
28
+ - **reporter:** include cached action per step (20d9d59)
29
+
30
+ ### Bug Fixes
31
+
32
+ - **reporter:** bound per-step variable snapshots and stream the report write (559d6e2)
33
+
34
+ ### Other Changes
35
+
36
+ - **reporter:** cover per-attempt encoding; clean up a stranded temp file (28d28bb)
37
+
5
38
  ## 0.1.101 (2026-08-24)
6
39
 
7
40
  ### Features
package/README.md CHANGED
@@ -11,8 +11,9 @@ Scaffold a new test project in under a minute:
11
11
  ```bash
12
12
  npx shiplightai@latest create ./my-tests
13
13
  cd my-tests
14
- cp .env.example .env # then set one of GOOGLE_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY
14
+ cp .env.example .env # configure credentials after install
15
15
  npm install
16
+ npx shiplight setup-api-token # writes SHIPLIGHT_API_TOKEN; skip if using a provider key
16
17
  npx playwright install chromium
17
18
  npx shiplight test # runs the scaffolded starter test
18
19
  ```
@@ -29,14 +30,15 @@ npm install shiplightai
29
30
 
30
31
  Every command is invoked via `npx shiplight <command>` from inside a project that has `shiplightai` installed.
31
32
 
32
- | Command | Purpose |
33
- |---|---|
34
- | `shiplight create <path>` | Scaffold a new test project |
35
- | `shiplight test [args]` | Run your YAML and Playwright test suite (forwards all Playwright flags) |
36
- | `shiplight debug <file>` | Launch the interactive visual debugger for a YAML test. The server picks a free port automatically; the chosen URL is printed on startup. Pass `--port N` for a stable URL (CI, bookmarks). Multiple concurrent `shiplight debug` invocations work without any port coordination. |
37
- | `shiplight report [folder]` | Regenerate or merge HTML reports |
38
- | `shiplight transpile [glob]` | Transpile YAML tests to `.yaml.spec.ts` (usually automatic). `--strict` fails while statements are still unenriched drafts (no captured `action`/`js`) |
39
- | `shiplight spec <topic>` | Print an authoring reference: `yaml` (the test language spec) or `actions` (every action and its parameters) |
33
+ | Command | Purpose |
34
+ | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
35
+ | `shiplight setup-api-token` | Authenticate with Shiplight and write `SHIPLIGHT_API_TOKEN` to the current project's `.env` |
36
+ | `shiplight create <path>` | Scaffold a new test project |
37
+ | `shiplight test [args]` | Run your YAML and Playwright test suite (forwards all Playwright flags) |
38
+ | `shiplight debug <file>` | Launch the interactive visual debugger for a YAML test. The server picks a free port automatically; the chosen URL is printed on startup. Pass `--port N` for a stable URL (CI, bookmarks). Multiple concurrent `shiplight debug` invocations work without any port coordination. |
39
+ | `shiplight report [folder]` | Regenerate or merge HTML reports |
40
+ | `shiplight transpile [glob]` | Transpile YAML tests to `.yaml.spec.ts` (usually automatic). `--strict` fails while statements are still unenriched drafts (no captured `action`/`js`) |
41
+ | `shiplight spec <topic>` | Print an authoring reference: `yaml` (the test language spec) or `actions` (every action and its parameters) |
40
42
 
41
43
  Full reference with flags, options, and troubleshooting: **[docs.shiplight.ai/local/cli-reference](https://docs.shiplight.ai/local/cli-reference)**.
42
44
 
@@ -99,9 +101,12 @@ For the YAML statement language, authentication, variables, templates, and custo
99
101
 
100
102
  ## Environment variables
101
103
 
102
- Set at least one LLM provider API key in `.env` before running tests:
104
+ Run `npx shiplight setup-api-token` to configure Shiplight's LLM proxy, or set
105
+ at least one provider API key in `.env` before running tests:
103
106
 
104
107
  ```
108
+ SHIPLIGHT_API_TOKEN=...
109
+ # or
105
110
  GOOGLE_API_KEY=...
106
111
  # or ANTHROPIC_API_KEY=sk-ant-...
107
112
  # or OPENAI_API_KEY=sk-...
@@ -111,6 +116,23 @@ The AI model is auto-selected from the first key set. Override with `WEB_AGENT_M
111
116
 
112
117
  Shiplight uses an **explicit env var allowlist**: only the vars it forwards into its internal SDK config are accessible to the agent. Any env var not on the list is invisible to the SDK by design. Full list (`OPENAI_BASE_URL`, Vertex AI routing, Mailgun keys, etc.): **[docs.shiplight.ai/local/cli-reference#environment-variables](https://docs.shiplight.ai/local/cli-reference)**.
113
118
 
119
+ ## Telemetry
120
+
121
+ The CLI sends one anonymous event per invocation: the subcommand name (`test`,
122
+ `debug`, …), the CLI version, your OS, CPU architecture, Node version, and
123
+ whether the run looks like CI. Nothing else — no arguments, file paths, URLs,
124
+ test content, or account data. Commands we do not ship are reported as
125
+ `unknown` rather than by name, so a mistyped path never leaves your machine.
126
+ Runs are grouped by a one-way SHA-256 hash of host, user, platform and
127
+ architecture; the inputs to that hash are never transmitted.
128
+
129
+ Opt out with either:
130
+
131
+ ```
132
+ SHIPLIGHT_TELEMETRY=0
133
+ DO_NOT_TRACK=1
134
+ ```
135
+
114
136
  ## Requirements
115
137
 
116
138
  - **Node.js >= 22**