layero 0.8.15 → 0.8.17

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
@@ -250,9 +250,13 @@ it means waiting for something that will not arrive.
250
250
 
251
251
  Not logged in? `deploy` starts the device-flow itself (`auth_required`).
252
252
 
253
- Errors carry a stable `code` (e.g. `not_logged_in`, `invalid_type`,
254
- `project_not_found`, `cli_deploys_disabled`) and a `next_action` hint so
255
- your agent can react without parsing prose.
253
+ Errors carry a stable `code` (`auth_required`, `auth_expired`, `auth_timeout`,
254
+ `project_unknown`, `project_not_found`, `cli_deploys_disabled`, `invalid_type`,
255
+ `prebuilt_no_dir`, `prebuilt_no_index`, `deploy_not_started`, `deploy_failed`,
256
+ `internal`, and a few command-specific ones) plus a `next_action` hint, so your
257
+ agent can react without parsing prose. The failure code is assembled as
258
+ `deploy_<status>` and a deploy only has `ready`, `building`, `failed` and
259
+ `cancelled` — so `deploy_error` and `deploy_timed_out` do not exist.
256
260
 
257
261
  ## Ignore rules
258
262
 
@@ -318,8 +318,8 @@ main().catch((err) => {
318
318
  event: "error",
319
319
  code: "internal",
320
320
  next_action: debug
321
- ? "report at https://github.com/LayeroInfra/core/issues"
322
- : "re-run with --debug for a stack trace, or report at https://github.com/LayeroInfra/core/issues",
321
+ ? "report at https://docs.layero.ru/contacts/"
322
+ : "re-run with --debug for a stack trace, or report at https://docs.layero.ru/contacts/",
323
323
  message,
324
324
  });
325
325
  }
@@ -49,11 +49,16 @@ stdout), the CLI auto-switches to JSON-lines. Key events to watch:
49
49
 
50
50
  Common error codes and remediation:
51
51
 
52
- - \`not_logged_in\` → run \`npx layero@latest login\`
52
+ - \`auth_required\` → run \`npx layero@latest login\`, or set \`LAYERO_TOKEN\`
53
53
  - \`auth_expired\` / \`auth_timeout\` → user did not approve in time, re-run login
54
+ - \`project_unknown\` → run from the project directory, or pass \`--project\`
54
55
  - \`invalid_type\` → drop \`--type\`, rely on auto-detect
55
56
  - \`cli_deploys_disabled\` → user must enable CLI deploys in project settings
56
- - \`deploy_failed\` / \`deploy_error\` → check the dashboard URL in the message
57
+ - \`deploy_failed\` → check the dashboard URL in the message
58
+ - \`internal\` → unexpected CLI error; re-run with \`--debug\`
59
+
60
+ There is no \`not_logged_in\`, \`deploy_error\` or \`deploy_timed_out\` — do not
61
+ branch on codes that are not listed here.
57
62
 
58
63
  ### Re-deploys and production
59
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "layero",
3
- "version": "0.8.15",
3
+ "version": "0.8.17",
4
4
  "description": "Layero CLI — publish a local site with one command. No git, no GitHub, agent-friendly (Cursor, Claude Code).",
5
5
  "license": "MIT",
6
6
  "type": "module",