layero 0.8.7 → 0.8.9

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
@@ -240,7 +240,9 @@ your agent can react without parsing prose.
240
240
 
241
241
  `layero deploy` honours `.gitignore` and `.layeroignore`. The following are
242
242
  always excluded: `node_modules`, `.git`, `dist`, `build`, `.next`, `.env*`,
243
- `.DS_Store`. Maximum archive size is 200 MB.
243
+ `.DS_Store`, and the rule files themselves (`.gitignore`, `.layeroignore`) —
244
+ they have no business being on the web, and they list exactly the filenames
245
+ you chose to hide. Maximum archive size is 200 MB.
244
246
 
245
247
  ## Config
246
248
 
@@ -68,9 +68,12 @@ apex is reachable the moment the deploy is ready.
68
68
 
69
69
  Hand the user \`ready.url\` and stop — that address is live.
70
70
 
71
- Use \`--branch <name>\` to deploy to an isolated preview environment that does
72
- **not** touch the apex. (\`--prod\` exists for git-connected projects; for
73
- direct CLI uploads it's redundant.)
71
+ There is no way to publish without replacing the live site from the CLI:
72
+ \`--branch\` is accepted and **silently ignored** archive uploads are always
73
+ filed under the reserved \`cli\` environment. If the user asks for a version
74
+ "just to look at" that leaves the live address alone, tell them it needs a
75
+ connected repository and a push to a branch. (\`--prod\` exists for
76
+ git-connected projects; for direct CLI uploads it's redundant.)
74
77
 
75
78
  ### Already built? Skip the server build
76
79
 
package/dist/pack.js CHANGED
@@ -25,6 +25,12 @@ const DEFAULT_IGNORE = [
25
25
  ".DS_Store",
26
26
  "Thumbs.db",
27
27
  ".layero",
28
+ // Сами файлы правил на сайте не нужны, а перечисляют они ровно то, что
29
+ // автор прятал: опубликованный `.gitignore` со строкой `private-draft.html`
30
+ // подсказывает, что искать. Проверено на проде — до этой правки оба
31
+ // отдавались с кодом 200. Та же категория, что `.git` и `.env*` выше.
32
+ ".gitignore",
33
+ ".layeroignore",
28
34
  ];
29
35
  async function readIgnoreFile(filePath) {
30
36
  try {
@@ -146,6 +152,11 @@ export async function packDirectory(targetDir, projectName) {
146
152
  ".DS_Store",
147
153
  "Thumbs.db",
148
154
  ".layero",
155
+ // См. комментарий у DEFAULT_IGNORE: файлы правил перечисляют то, что
156
+ // автор прятал, и на сайте им делать нечего. В каталоге сборки они
157
+ // оказываются редко, но `--prebuilt .` на корне проекта — обычное дело.
158
+ ".gitignore",
159
+ ".layeroignore",
149
160
  ]);
150
161
  const files = await walk(targetDir, minimalIgnore);
151
162
  if (files.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "layero",
3
- "version": "0.8.7",
3
+ "version": "0.8.9",
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",