pixelkiln 0.31.0 → 0.32.0
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/cli.js +86 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +84 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +85 -15
- package/dist/index.js.map +1 -1
- package/docs/CLI.md +11 -1
- package/docs/RECOVERY.md +3 -1
- package/package.json +1 -1
package/docs/CLI.md
CHANGED
|
@@ -142,7 +142,10 @@ provider result should take ownership. `gen --force` applies the same rule.
|
|
|
142
142
|
|
|
143
143
|
Repair missing generated files without buying new generations. It prefers
|
|
144
144
|
validated local content-addressed cache bytes and otherwise reuses provider
|
|
145
|
-
references. It never replaces a destination whose bytes disagree with the lock
|
|
145
|
+
references. It never replaces a destination whose bytes disagree with the lock
|
|
146
|
+
unless `--force` says to: `restore --force` puts the recorded bytes back over
|
|
147
|
+
a file that was changed after download (an `orphaned` plan entry), discarding
|
|
148
|
+
that change — copy it aside, or declare it with [`edit`](#edit), first.
|
|
146
149
|
|
|
147
150
|
The paid-work states have one safe next step:
|
|
148
151
|
|
|
@@ -344,6 +347,13 @@ pixelkiln gallery --edit
|
|
|
344
347
|
pixelkiln gallery --edit --workspace pixelkiln.workspace.json
|
|
345
348
|
```
|
|
346
349
|
|
|
350
|
+
An `orphaned` record — its file gone, or changed after download — offers
|
|
351
|
+
**Restore** (the recorded bytes back from the cache or the provider, no cost)
|
|
352
|
+
and, for a changed file, **Regenerate**; both replacements say what they
|
|
353
|
+
discard and ask first, and the way to keep the change is **Edit by hand** or
|
|
354
|
+
**Edit in browser**, which copies it beside the record. An `untracked` file
|
|
355
|
+
can be replaced by a generation the same way.
|
|
356
|
+
|
|
347
357
|
`--budget <n|provider=n>` enables generation from the page under that session
|
|
348
358
|
ceiling. It is the same `--budget` `gen` takes: one unkeyed amount when a run
|
|
349
359
|
involves a single provider, or one keyed amount per provider for a mixed run,
|
package/docs/RECOVERY.md
CHANGED
|
@@ -13,7 +13,9 @@ pixelkiln restore --style neon --only anvil
|
|
|
13
13
|
|
|
14
14
|
`restore` repairs a missing lock output from validated content-cache bytes or a
|
|
15
15
|
durable provider reference. It does not submit generation and refuses to
|
|
16
|
-
replace a file whose current bytes differ from the recorded hash
|
|
16
|
+
replace a file whose current bytes differ from the recorded hash; `--force`
|
|
17
|
+
overrides that for a file changed after download, and the gallery's
|
|
18
|
+
**Restore** button on an `orphaned` record does the same after asking.
|
|
17
19
|
|
|
18
20
|
Generation and download failures are separate lock states. A CDN failure after
|
|
19
21
|
successful generation becomes `download-failed`; the next `fetch` or `restore`
|