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 +7 -3
- package/dist/bin/layero.js +2 -2
- package/dist/commands/init.js +7 -2
- package/package.json +1 -1
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` (
|
|
254
|
-
`project_not_found`, `cli_deploys_disabled
|
|
255
|
-
|
|
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
|
|
package/dist/bin/layero.js
CHANGED
|
@@ -318,8 +318,8 @@ main().catch((err) => {
|
|
|
318
318
|
event: "error",
|
|
319
319
|
code: "internal",
|
|
320
320
|
next_action: debug
|
|
321
|
-
? "report at https://
|
|
322
|
-
: "re-run with --debug for a stack trace, or report at https://
|
|
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
|
}
|
package/dist/commands/init.js
CHANGED
|
@@ -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
|
-
- \`
|
|
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\`
|
|
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
|
|