@nuxtseo/cli 0.5.9 → 0.5.10

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/dist/render.js CHANGED
@@ -979,7 +979,9 @@ export function renderMonitoredPages(data) {
979
979
  return 'No monitored Pages. Start one with `nuxtseo page scan <url>`.';
980
980
  return [
981
981
  `Monitored Pages (${data.pages.length})`,
982
- ...data.pages.map(page => ` ${page.enabled ? 'on ' : 'off'} ${page.path} last scan ${page.lastScanAt ?? 'never'}`),
982
+ ...data.pages.map(page => page.pauseReason
983
+ ? ` paused ${page.path} ${page.pauseReason} last scan ${page.lastScanAt ?? 'never'}`
984
+ : ` ${page.enabled ? 'on ' : 'off '} ${page.path} last scan ${page.lastScanAt ?? 'never'}`),
983
985
  ].join('\n');
984
986
  }
985
987
  export function renderScanDetail(data) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtseo/cli",
3
3
  "type": "module",
4
- "version": "0.5.9",
4
+ "version": "0.5.10",
5
5
  "description": "Command line interface for the Nuxt SEO public API.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://nuxtseo.com/pro",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@clack/prompts": "^1.8.0",
36
- "@nuxtseo/protocol": "^0.5.9",
37
- "@nuxtseo/sdk": "^0.5.9",
36
+ "@nuxtseo/protocol": "^0.5.10",
37
+ "@nuxtseo/sdk": "^0.5.10",
38
38
  "citty": "^0.2.2",
39
39
  "pathe": "^2.0.3"
40
40
  },
@@ -51,8 +51,16 @@ Read the matching file before you act on its subject:
51
51
  instead.
52
52
 
53
53
  3. **Token.** Run `nuxtseo whoami --json`. It returns the Team, role, scopes,
54
- and token expiry. Exit `3` means no working token. Ask the user to run
55
- `nuxtseo login` themselves, because a person must approve it in a browser.
54
+ and token expiry. Exit `3` means no working token.
55
+ If authentication is missing, invalid, or expired, run `nuxtseo login --no-browser`.
56
+ A missing referenced keychain credential can instead exit `7` with `state_error`; use the same login flow.
57
+ If browser automation is authorized, open the printed URL in the intended signed-in account.
58
+ Verify the account, Team, machine, and matching pairing code before approving.
59
+ Select the least access needed. Editor supports Scans and Action claims.
60
+ Keep the login process running until it saves the credential, then repeat `whoami --json`.
61
+ Honor browser connection approval. Never copy cookies or bypass sign-in.
62
+ If browser access or approval is unavailable, ask the user to approve the printed URL.
63
+ If login reports a transport failure, investigate it before starting another pairing.
56
64
  The other route is a token from
57
65
  <https://nuxtseo.com/pro/dashboard/settings/api-tokens>, exported as
58
66
  `NUXTSEO_TOKEN`. Never put a token in an argument, a file, or a commit.
@@ -108,7 +108,7 @@ lines.
108
108
  | --- | --- |
109
109
  | `whoami` | Credential, Team, role, granted scopes, token expiry. The cheapest health check. Reads no Site |
110
110
  | `feedback submit` | Submit sanitized agent feedback. Requires `--command` (1..200 characters), `--comment` (1..2000), `--agent` (1..100), and `--yes`. Optional `--intent bug\|improvement` (default `bug`) and `--request-id` (1..128). Adds the CLI version. Needs no Site. Returns the feedback ID and status |
111
- | `login` | Pairs the CLI with a Team through the browser. A person must approve the pairing, so ask the user to run it. `--with-token` reads a token from a hidden prompt or stdin. `--no-browser` skips opening the browser |
111
+ | `login` | Pairs the CLI with a Team through the browser. An authorized agent can run `--no-browser` and approve through the intended signed-in account. Verify the account, Team, machine, and matching code first. If approval is unavailable, ask the user to approve the printed URL. `--with-token` reads a token from a hidden prompt or stdin. `--no-browser` skips opening the browser |
112
112
  | `logout` | Discards the stored credential. Returns a `CliLogout` value |
113
113
  | `sites list` | Every accessible Site. The source of Site IDs |
114
114
  | `sites use <site-id>` | Persists a default Site in local config, for the human, not for you |
@@ -167,7 +167,7 @@ Branch on the exit code, not message text.
167
167
  | ---: | --- | --- |
168
168
  | `0` | Success, including a closed stdout pipe | Continue |
169
169
  | `2` | Invalid input, or mutation without `--yes` | Fix arguments. Do not retry unchanged |
170
- | `3` | Missing, invalid, or expired authentication | Ask the user for a token |
170
+ | `3` | Missing, invalid, or expired authentication | Run `nuxtseo login --no-browser`. Follow Setup's authorized browser pairing flow, then repeat `whoami --json` |
171
171
  | `4` | Forbidden, scope, or entitlement failure | Report the plan or token blocker |
172
172
  | `5` | Conflict, stale evidence, or ambiguous Site | Re-read. Pass `--site` if ambiguous |
173
173
  | `6` | Rate limit, `quota_exhausted`, provider outage, or timeout | Read retry metadata, then wait |