navori 0.2.21 → 0.2.22

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 +32 -1
  2. package/dist/index.js +214 -209
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -47,7 +47,8 @@ Y genera:
47
47
  | `add <plugin>` | Activa un plugin y opcionalmente instala la tool externa |
48
48
  | `configure <section>` | Ajusta una sección del config sin re-correr el wizard |
49
49
  | `update` | Re-detecta el repo, refresca config y corre sync en un paso |
50
- | `render` | Genera CLAUDE.md y `.claude/` desde el config (preview por default; `--apply` escribe) |
50
+ | `render` | Genera CLAUDE.md y `.claude/` desde el config (preview por default; `--apply` escribe). `--all` renderea todos los repos del registro global; `--prune` limpia los que ya no existen |
51
+ | `registry <sub>` | Registro global de tus repos con navori, para `render --all` (`ls`, `scan <dir>`, `add`, `remove`, `prune`) |
51
52
  | `sync` | Refresca los managed blocks con conflict resolution + backups |
52
53
  | `preset init <id>` | Scaffoldea un preset local en `.navori/presets/<id>/` |
53
54
  | `scan` | Detecta workspaces nuevos en monorepos (`pnpm-workspace.yaml` / `package.json#workspaces`) |
@@ -161,6 +162,36 @@ navori workspace render bonum --apply # escribe en cada repo
161
162
 
162
163
  Storage: `~/.navori/workspaces/<name>/` (manifest + tickets/ + backups/).
163
164
 
165
+ ## Rollout global tras un bump de navori
166
+
167
+ Cuando actualizas el CLI (`npm i -g navori@latest`), el registro global mete los
168
+ cambios a **todos** tus repos en un comando — sin ir uno por uno:
169
+
170
+ ```bash
171
+ navori render --all # preview: qué cambiaría en cada repo del registro
172
+ navori render --all --apply # escribe el render nuevo en todos
173
+ navori render --all --verbose # además lista cada bloque managed que cambió, por repo
174
+ navori render --all --prune # además limpia repos que ya no existen
175
+ ```
176
+
177
+ El output es un registro autoexplicativo: header con el registro y el modo
178
+ (preview/apply), una línea por repo (`created`/`updated`/`conflict`/`removed`/`unchanged`),
179
+ un aviso que **nombra** los repos con bloques editados a mano (conflict, que el
180
+ render no pisa) y un roll-up `ok · changed · conflict · failed`.
181
+
182
+ El registro (`~/.navori/registry.json`) se puebla solo: cada `navori init` /
183
+ `navori update` te da de alta. Para arrancar con lo que ya tenías instalado,
184
+ escanéalo una vez:
185
+
186
+ ```bash
187
+ navori registry scan ~/dev ~/otra-carpeta # registra todo lo que tenga navori.config.json
188
+ navori registry ls # ver el registro (✓ presente / ✗ missing)
189
+ navori registry prune # quitar los que ya no existen
190
+ ```
191
+
192
+ Es ortogonal a los workspaces: el registro es "qué repos existen"; el workspace
193
+ es el perfil de policy (branchBase/prTarget) que cada repo hereda.
194
+
164
195
  ## Managed blocks con versionado
165
196
 
166
197
  Cada bloque que `navori` inyecta en tu `CLAUDE.md` lleva metadata: