@linzumi/cli 1.0.53 → 1.0.55

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.
Files changed (3) hide show
  1. package/README.md +23 -1
  2. package/dist/index.js +427 -360
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -58,7 +58,7 @@ Install the CLI or run it with `npx`:
58
58
  ```bash
59
59
  npm install -g @linzumi/cli@latest
60
60
  npx -y @linzumi/cli@latest signup
61
- npx -y @linzumi/cli@1.0.53 --version
61
+ npx -y @linzumi/cli@1.0.55 --version
62
62
  linzumi --version
63
63
  ```
64
64
 
@@ -168,6 +168,28 @@ The trust list lives at `~/.linzumi/config.json`. The bootstrap agent
168
168
  adds `/tmp/hello_linzumi` for you on first run. For `linzumi connect`, the
169
169
  selected `--cwd` is also trusted for that runner process.
170
170
 
171
+ ## Git safety snapshots
172
+
173
+ Before an agent turn runs in a git workspace with uncommitted changes, the
174
+ runner saves a safety snapshot: dirty tracked state as a dangling `git stash
175
+ create` commit (pinned under `refs/linzumi/safety/`, never touching your
176
+ working tree) plus copies of untracked, non-ignored files under
177
+ `~/.linzumi/safety-snapshots/` (up to 200MB per snapshot; oversized files are
178
+ skipped loudly). A clean tree costs one `git status` and stores nothing.
179
+ Snapshots are pruned after 72 hours or beyond the newest 50.
180
+
181
+ If a turn discards work you wanted, recover it:
182
+
183
+ ```bash
184
+ linzumi safety-snapshots list
185
+ linzumi safety-snapshots restore <snapshot-id> --to ./recovered
186
+ ```
187
+
188
+ Restore materializes the snapshot into a new directory and never overwrites
189
+ current files; the listed stash commit also works directly with
190
+ `git stash apply <sha>`. Default ON; set `LINZUMI_GIT_SAFETY_SNAPSHOTS=0` to
191
+ disable.
192
+
171
193
  ## When something looks wrong
172
194
 
173
195
  Run `linzumi --help` or reconnect with `linzumi start ~/code/my-app`.