layero 0.8.14 → 0.8.16
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 +9 -1
- package/dist/bin/layero.js +2 -2
- package/dist/commands/init.js +7 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,7 +40,15 @@ layero deploy # auto-detects framework, packs, uploads, builds, ships
|
|
|
40
40
|
|
|
41
41
|
The first `layero deploy` in a directory creates a project and links it via
|
|
42
42
|
`./.layero/project.json`. Subsequent runs reuse the same project — re-edit code,
|
|
43
|
-
re-run `layero deploy
|
|
43
|
+
re-run `layero deploy`.
|
|
44
|
+
|
|
45
|
+
> **A plain `layero deploy` is not a preview.** For a project created from the
|
|
46
|
+
> CLI, direct uploads auto-promote: every run replaces what visitors see at the
|
|
47
|
+
> project's public address — the same `ready.url` the previous run printed.
|
|
48
|
+
> `--prod` matters only for projects with a connected git repository, where it
|
|
49
|
+
> targets the production environment. Isolated previews come from pushing to a
|
|
50
|
+
> branch of a connected repo, nothing else: `--branch` is accepted and silently
|
|
51
|
+
> ignored for direct uploads.
|
|
44
52
|
|
|
45
53
|
## Commands
|
|
46
54
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layero",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "Layero CLI
|
|
3
|
+
"version": "0.8.16",
|
|
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",
|
|
7
7
|
"homepage": "https://layero.ru",
|