@tested/cli 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -25,7 +25,7 @@ CI uses the composite Action (`tested-hq/cli/action@main`). It installs `@tested
25
25
  ```yaml
26
26
  - uses: tested-hq/cli/action@main
27
27
  with:
28
- version: 0.1.2
28
+ version: 0.1.4
29
29
  token: ${{ secrets.TESTED_TOKEN }}
30
30
  ```
31
31
 
@@ -133,7 +133,7 @@ If `thresholds` is missing from `.tested.yaml`, `tested check` prints a notice o
133
133
  ```yaml
134
134
  - uses: tested-hq/cli/action@main
135
135
  with:
136
- version: 0.1.2
136
+ version: 0.1.4
137
137
  push: true
138
138
  pr-number: ${{ github.event.pull_request.number }}
139
139
  token: ${{ secrets.TESTED_TOKEN }}
@@ -185,7 +185,7 @@ non-interactive mode / when `TESTED_SAFE_RUN=1`:
185
185
  Typical CI step after `tested check`:
186
186
 
187
187
  ```yaml
188
- - run: pnpm exec tested push --pr "${{ github.event.pull_request.number }}"
188
+ - run: pnpm exec tested push --pr "${{ github.event.pull_request.number }}" --base "${{ github.event.pull_request.base.sha }}"
189
189
  env:
190
190
  TESTED_TOKEN: ${{ secrets.TESTED_TOKEN }}
191
191
  ```
package/dist/td.js CHANGED
@@ -1053,7 +1053,9 @@ function assertSafeApiBase(raw) {
1053
1053
  }
1054
1054
  function resolveApiBase(opts) {
1055
1055
  const env = opts.env ?? process.env;
1056
- const raw = opts.flag ?? env.TESTED_API_URL ?? DEFAULT_API_BASE;
1056
+ const flag = opts.flag?.trim();
1057
+ const fromEnv = env.TESTED_API_URL?.trim();
1058
+ const raw = flag || fromEnv || DEFAULT_API_BASE;
1057
1059
  return assertSafeApiBase(raw);
1058
1060
  }
1059
1061
  function redactGitRemote(url) {
@@ -1879,7 +1881,7 @@ import pc3 from "picocolors";
1879
1881
  // package.json
1880
1882
  var package_default = {
1881
1883
  name: "@tested/cli",
1882
- version: "0.1.2",
1884
+ version: "0.1.4",
1883
1885
  description: "Coverage your agent can use. CLI for patch + project coverage with agent-readable JSON output.",
1884
1886
  license: "MIT",
1885
1887
  homepage: "https://tested.dev",
package/dist/tested.js CHANGED
@@ -1053,7 +1053,9 @@ function assertSafeApiBase(raw) {
1053
1053
  }
1054
1054
  function resolveApiBase(opts) {
1055
1055
  const env = opts.env ?? process.env;
1056
- const raw = opts.flag ?? env.TESTED_API_URL ?? DEFAULT_API_BASE;
1056
+ const flag = opts.flag?.trim();
1057
+ const fromEnv = env.TESTED_API_URL?.trim();
1058
+ const raw = flag || fromEnv || DEFAULT_API_BASE;
1057
1059
  return assertSafeApiBase(raw);
1058
1060
  }
1059
1061
  function redactGitRemote(url) {
@@ -1879,7 +1881,7 @@ import pc3 from "picocolors";
1879
1881
  // package.json
1880
1882
  var package_default = {
1881
1883
  name: "@tested/cli",
1882
- version: "0.1.2",
1884
+ version: "0.1.4",
1883
1885
  description: "Coverage your agent can use. CLI for patch + project coverage with agent-readable JSON output.",
1884
1886
  license: "MIT",
1885
1887
  homepage: "https://tested.dev",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tested/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Coverage your agent can use. CLI for patch + project coverage with agent-readable JSON output.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tested.dev",