@foleo/cli 0.1.24 → 0.1.26
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/index.d.ts.map +1 -1
- package/dist/index.js +492 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/foleo/SKILL.md +63 -11
package/skills/foleo/SKILL.md
CHANGED
|
@@ -204,9 +204,9 @@ as accepted/in progress until the server reports `complete`.
|
|
|
204
204
|
### Naming an HTML artifact
|
|
205
205
|
|
|
206
206
|
A hosted HTML artifact gets its own subdomain, and **`--name <label>` is
|
|
207
|
-
required** on every real HTML publish.
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
required** on every real HTML publish. Choose it deliberately, with the human:
|
|
208
|
+
it is the artifact's address, and changing it later is an explicit operation
|
|
209
|
+
that decides what happens to links already shared (see _Renaming_ below).
|
|
210
210
|
|
|
211
211
|
```
|
|
212
212
|
npx -y @foleo/cli name-check leadtube --json # free, no publish quota
|
|
@@ -225,10 +225,60 @@ requirement follows the format inferred from the path, not the command.
|
|
|
225
225
|
|
|
226
226
|
**The name you choose is the artifact's only address.** There is no generated
|
|
227
227
|
`a-<id>` fallback: Foleo stopped minting them (ADR 0040), so a name is not an
|
|
228
|
-
upgrade over a machine address, it _is_ the address.
|
|
229
|
-
2026-09-11
|
|
230
|
-
|
|
231
|
-
should use the artifact **id** through the API,
|
|
228
|
+
upgrade over a machine address, it _is_ the address. The generated `a-<id>`
|
|
229
|
+
hosts of artifacts created before 2026-09-11 were retired on 2026-09-14 and no
|
|
230
|
+
longer serve, and those labels can never be claimed by anyone. Anything needing
|
|
231
|
+
a durable machine-facing handle should use the artifact **id** through the API,
|
|
232
|
+
never a hostname.
|
|
233
|
+
|
|
234
|
+
### Renaming, aliases, and releasing a name
|
|
235
|
+
|
|
236
|
+
```sh
|
|
237
|
+
npx -y @foleo/cli names --json # names this org holds, plus quota
|
|
238
|
+
npx -y @foleo/cli names --artifact <id> --json # one artifact's active names
|
|
239
|
+
npx -y @foleo/cli name set <id> leadtube-2026 --previous keep-as-alias --dry-run --json
|
|
240
|
+
npx -y @foleo/cli name set <id> leadtube-2026 --previous keep-as-alias --json
|
|
241
|
+
npx -y @foleo/cli name set <id> leadtube-2026 --previous release --json
|
|
242
|
+
npx -y @foleo/cli name release <id> leadtube --acknowledge-link-breakage --json
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
`--previous` has no default, and the choice belongs to the human, because it
|
|
246
|
+
decides whether links already shared keep working:
|
|
247
|
+
|
|
248
|
+
- `keep-as-alias` — the old URL keeps serving the same artifact, and the new
|
|
249
|
+
name becomes the `name`/`url` that `get` reports. Each alias holds one of the
|
|
250
|
+
organization's 25 active names.
|
|
251
|
+
- `release` — the old URL stops working immediately. The name is held for this
|
|
252
|
+
organization for 30 days (`name-check` reports `cooldown` with `availableAt`),
|
|
253
|
+
and renaming back to it inside that window reclaims it. A release rename does
|
|
254
|
+
not add a name, so it still works at the 25-name limit.
|
|
255
|
+
|
|
256
|
+
`name set` to a name the artifact already holds as an alias makes it primary
|
|
257
|
+
and claims nothing. `name release` refuses an artifact's last name
|
|
258
|
+
(`last_name_release_refused`) — an artifact always keeps one address, so
|
|
259
|
+
unpublish it instead — and releasing the primary promotes the most recently
|
|
260
|
+
claimed alias. `quota_exceeded` from these commands carries `dimension`:
|
|
261
|
+
`publish.subdomain_names.active` means release something or use
|
|
262
|
+
`--previous release`; `publish.subdomain_claims` means wait for the daily reset.
|
|
263
|
+
|
|
264
|
+
If a rename or release times out, do not blindly retry it: run
|
|
265
|
+
`get <id> --json` first. A retry that finds the change already made returns
|
|
266
|
+
`name_unchanged` or `name_not_found` with the current `name`, `url` and `etag`.
|
|
267
|
+
|
|
268
|
+
`name attach|set|release` also accept `--dry-run`: it plans the change with GET
|
|
269
|
+
requests only — nothing is attached, renamed, or released. The plan reports
|
|
270
|
+
`result.primaryName`/`primaryUrl`, `addressesThatStopWorking`/
|
|
271
|
+
`addressesThatKeepWorking`, a D3 `promotedAlias` when releasing the primary, D4
|
|
272
|
+
`claimsExistingAlias` when the target is already held as an alias (claims
|
|
273
|
+
nothing), `reclaimsReleasedName` for this org's own reclaimable cooldown, and
|
|
274
|
+
the `publish.subdomain_claims` / `publish.subdomain_names.active` quota deltas
|
|
275
|
+
next to the current quota. A predicted refusal — `name_taken`, `name_reserved`,
|
|
276
|
+
`name_unchanged`, `name_not_found`, `last_name_release_refused`,
|
|
277
|
+
`quota_exceeded`, and so on — fails with the exact same stable error object the
|
|
278
|
+
real command would return; it is never a buried plan field. `--previous` and
|
|
279
|
+
`--acknowledge-link-breakage` are still required under `--dry-run`, because the
|
|
280
|
+
plan previews the exact request, and release's acknowledgement is part of that
|
|
281
|
+
request.
|
|
232
282
|
|
|
233
283
|
`--dry-run` plans a publish without consuming any publish quota: it uploads
|
|
234
284
|
nothing and creates nothing. The plan reports the resolved `name` and its
|
|
@@ -247,10 +297,12 @@ above. Signed out, the plan degrades to `scope: "bundle-only"` with
|
|
|
247
297
|
`--name` under `--dry-run` yields a _suggested_ label only — Foleo never
|
|
248
298
|
auto-claims a derived name.
|
|
249
299
|
|
|
250
|
-
`--dry-run`
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
300
|
+
`--dry-run` works on HTML create (`publish`) and on `name attach|set|release`
|
|
301
|
+
(see _Renaming, aliases, and releasing a name_ above). Every other command — a
|
|
302
|
+
Markdown publish, `update`, `html-update`, `settings`, `unpublish`, `delete`,
|
|
303
|
+
`restore`, `purge`, `names` — refuses it with `dry_run_unsupported` rather than
|
|
304
|
+
silently performing the real operation. Asking for a plan can never mutate
|
|
305
|
+
anything.
|
|
254
306
|
|
|
255
307
|
### Trusted active HTML alpha
|
|
256
308
|
|