navori 0.2.0 → 0.2.1
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/LICENSE +21 -0
- package/README.md +63 -17
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ulises Ciprés
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -25,8 +25,8 @@ navori init
|
|
|
25
25
|
|
|
26
26
|
El `init` detecta automáticamente del repo:
|
|
27
27
|
- **Nombre** del proyecto (de `package.json`, `pyproject.toml`, `Cargo.toml`, git remote o basename)
|
|
28
|
-
- **Stack**: framework (Next.js, Vite, NestJS,
|
|
29
|
-
- **Preset sugerido**
|
|
28
|
+
- **Stack**: framework (Next.js, Vite, NestJS, Express, Astro, etc.), UI, forms, state, test
|
|
29
|
+
- **Preset sugerido** según el stack (ej. `vite-react-ts-mantine`, `nextjs`, `express-mongoose`)
|
|
30
30
|
- **Quality gate** compuesto de los scripts del `package.json`
|
|
31
31
|
- **Branch base** del git (`origin/HEAD`, fallback main/master/develop)
|
|
32
32
|
- **Infraestructura Claude existente** (`.claude/`, `CLAUDE.md`, `AGENTS.md`, agents, skills) — ofrece coexistir o reemplazar con backup
|
|
@@ -34,20 +34,55 @@ El `init` detecta automáticamente del repo:
|
|
|
34
34
|
Y genera:
|
|
35
35
|
- `navori.config.json` — fuente de verdad del repo
|
|
36
36
|
- `CLAUDE.md` con managed blocks que el CLI mantiene sincronizados
|
|
37
|
+
- `.claude/` con agentes, skills, hooks y settings
|
|
37
38
|
|
|
38
39
|
## Comandos
|
|
39
40
|
|
|
40
41
|
| Comando | Qué hace |
|
|
41
42
|
|---|---|
|
|
42
|
-
| `init` | Bootstrap del repo con detección automática + wizard |
|
|
43
|
-
| `add <plugin>` | Activa un plugin
|
|
43
|
+
| `init` | Bootstrap del repo con detección automática + wizard (o `--recommended` sin preguntas) |
|
|
44
|
+
| `add <plugin>` | Activa un plugin y opcionalmente instala la tool externa |
|
|
44
45
|
| `configure <section>` | Ajusta una sección del config sin re-correr el wizard |
|
|
45
46
|
| `update` | Re-detecta el repo, refresca config y corre sync en un paso |
|
|
46
|
-
| `render` | Genera CLAUDE.md
|
|
47
|
-
| `sync` | Refresca managed blocks con conflict resolution + backups |
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
47
|
+
| `render` | Genera CLAUDE.md y `.claude/` desde el config (preview por default; `--apply` escribe) |
|
|
48
|
+
| `sync` | Refresca los managed blocks con conflict resolution + backups |
|
|
49
|
+
| `preset init <id>` | Scaffoldea un preset local en `.navori/presets/<id>/` |
|
|
50
|
+
| `scan` | Detecta workspaces nuevos en monorepos (`pnpm-workspace.yaml` / `package.json#workspaces`) |
|
|
51
|
+
| `doctor` | Audita el config + reporta procedencia y drift de cada managed block (`--strict` para CI) |
|
|
52
|
+
| `status` | Snapshot rápido: config, plugins activos, conteo de drift y próximos pasos |
|
|
53
|
+
| `bench` | Corre `render` en dry-run N veces y reporta latencias (detecta regresiones locales) |
|
|
54
|
+
| `workspace <sub>` | Gestiona workspaces cross-repo (`init`, `ls`, `show`, `rm`) |
|
|
55
|
+
| `ticket <sub>` | Gestiona tickets-as-files en un workspace (`new`, `list`, `show`, `archive`, `delete`) |
|
|
56
|
+
| `backup <sub>` | Lista y restaura backups de `~/.navori/backups/` |
|
|
57
|
+
| `migrations <sub>` | Lista y restaura migraciones de `~/.navori/migrations/` |
|
|
58
|
+
|
|
59
|
+
## Presets
|
|
60
|
+
|
|
61
|
+
Un preset aporta skills y reglas específicas del stack además del core. El `init` te sugiere uno según lo que detecta.
|
|
62
|
+
|
|
63
|
+
**Presets oficiales (incluidos):**
|
|
64
|
+
|
|
65
|
+
| Preset | Stack |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `vite-react-ts-mantine` | Vite + React + TS + Mantine (SPA) |
|
|
68
|
+
| `nextjs` | Next.js (App Router) |
|
|
69
|
+
| `nestjs` | NestJS (backend) |
|
|
70
|
+
| `express-mongoose` | Express + Mongoose (backend) |
|
|
71
|
+
| `astro` | Astro (static / SSR) |
|
|
72
|
+
| `medusa` | Medusa.js v2 (backend) |
|
|
73
|
+
|
|
74
|
+
**¿Tu stack no tiene preset oficial?** No pasa nada. El `init` instala el harness completo (agentes, gates, protocolo, SDD) y funciona desde ya — solo te quedas sin los skills específicos del stack. El init te avisa, te deja en el baseline (`preset: custom`) y te sugiere cubrir el gap con un preset local.
|
|
75
|
+
|
|
76
|
+
**Presets locales** — crea uno checked-in al repo bajo `.navori/presets/<id>/`:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
navori preset init sveltekit
|
|
80
|
+
# ✓ .navori/presets/sveltekit/ (manifest + managed/stack.md + skills/)
|
|
81
|
+
# ✓ navori.config.json → preset: sveltekit
|
|
82
|
+
# → edita las plantillas y corre 'navori render --apply'
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
La resolución es **local → bundled**: si tienes un preset local con el mismo id que uno oficial, gana el local. Así puedes override un preset incluido sin tocar el paquete.
|
|
51
86
|
|
|
52
87
|
## Plugins disponibles
|
|
53
88
|
|
|
@@ -66,6 +101,15 @@ navori add engram # te ofrece instalar la tool externa si falta
|
|
|
66
101
|
navori add engram --skip-install # solo registra el plugin
|
|
67
102
|
```
|
|
68
103
|
|
|
104
|
+
## Harness defensivo (read-only por default)
|
|
105
|
+
|
|
106
|
+
El harness que genera `navori` trae permisos seguros desde el arranque, para que tengas menos prompts en lo cotidiano sin bajar la guardia en lo peligroso:
|
|
107
|
+
|
|
108
|
+
- **Las lecturas no piden confirmación**: `git status/diff/log/show`, `ls`, `cat`, `grep`, `Read`/`Glob`/`Grep`, etc. corren sin interrumpirte.
|
|
109
|
+
- **Lo destructivo pide confirmación** (`ask`): `rm -rf`, `git push --force`, `git reset --hard`, `git clean -f`, `chmod -R`, …
|
|
110
|
+
- **Lo catastrófico se rechaza** (`deny`): `rm -rf /`, `sudo rm`, `mkfs`, …
|
|
111
|
+
- Un hook `guard-destructive` actúa como backstop adicional.
|
|
112
|
+
|
|
69
113
|
## Workspace + tickets cross-repo
|
|
70
114
|
|
|
71
115
|
Si un ticket toca varios repos (frontend + backend + microservicio), el workspace te da un punto único:
|
|
@@ -81,7 +125,7 @@ navori workspace add-repo bonum --name backend --path ~/dev/bonum/nexus --stack
|
|
|
81
125
|
# Crear ticket
|
|
82
126
|
navori ticket new bonum BNM-123 --title "Checkout flow rebuild"
|
|
83
127
|
|
|
84
|
-
# En cada repo que
|
|
128
|
+
# En cada repo que toca el ticket, agrega una referencia:
|
|
85
129
|
# echo "ticket: BNM-123" >> progress/current.md
|
|
86
130
|
|
|
87
131
|
# Ver el ticket + en qué repos aparece
|
|
@@ -105,17 +149,17 @@ contenido sincronizado
|
|
|
105
149
|
<!-- /navori:managed id="idioma-rol" -->
|
|
106
150
|
```
|
|
107
151
|
|
|
108
|
-
- **`hash`**: detecta si
|
|
152
|
+
- **`hash`**: detecta si editaste el bloque (sync te avisa antes de pisarlo)
|
|
109
153
|
- **`version`**: cuando se publica una nueva versión de `@navori/core` o un plugin, `sync` reporta "update available"
|
|
110
154
|
- **`source`**: qué paquete es dueño del bloque (`doctor` te muestra la procedencia de cada uno)
|
|
111
155
|
|
|
112
|
-
Si
|
|
156
|
+
Si modificas un managed block a mano y después corres `sync`, vas a ver:
|
|
113
157
|
```
|
|
114
158
|
Conflict in 'idioma-rol':
|
|
115
159
|
- tu versión
|
|
116
160
|
+ versión del Core
|
|
117
161
|
```
|
|
118
|
-
Y
|
|
162
|
+
Y eliges: `skip-conflicts` (mantener tu edit), `apply-all` (pisar) o `abort`.
|
|
119
163
|
|
|
120
164
|
Backups automáticos en `~/.navori/backups/<timestamp>/` antes de cada `sync` (retención 30 días).
|
|
121
165
|
|
|
@@ -128,17 +172,19 @@ navori configure plugins # multiselect de plugins activos
|
|
|
128
172
|
navori configure quality-gate # nuevo comando de quality gate
|
|
129
173
|
navori configure language en # switch a inglés (fallback a es)
|
|
130
174
|
navori configure engines # multiselect: claude / agents-md / cursor / copilot
|
|
175
|
+
navori configure branch-base develop # fijar la branch base
|
|
131
176
|
navori configure workspace bonum # asociar a un workspace
|
|
132
177
|
```
|
|
133
178
|
|
|
134
179
|
## Filosofía
|
|
135
180
|
|
|
136
|
-
- **Cero opinión sobre tu proceso**. El CLI detecta y propone;
|
|
137
|
-
- **Coexiste con harness existente**.
|
|
181
|
+
- **Cero opinión sobre tu proceso**. El CLI detecta y propone; tú decides.
|
|
182
|
+
- **Coexiste con harness existente**. El modo `coexist` no toca nada que ya tenías.
|
|
138
183
|
- **Nunca pisa silenciosamente**. Hash en el marker + backups antes de cada write.
|
|
184
|
+
- **Read-only por default**. Las lecturas no piden permiso; lo destructivo sí.
|
|
139
185
|
- **Output legible siempre**. Texto + `--json` para piping en CI.
|
|
140
|
-
- **Bilingüe ready**.
|
|
186
|
+
- **Bilingüe ready**. El schema soporta `language: es | en`. Hoy `es` está full; `en` cae en fallback honesto.
|
|
141
187
|
|
|
142
188
|
## Licencia
|
|
143
189
|
|
|
144
|
-
|
|
190
|
+
MIT.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "navori",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Multi-agent harness + SDD scaffolder for Claude Code and other AI engines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"coreAgents": 7,
|
|
26
26
|
"coreSkills": 3
|
|
27
27
|
},
|
|
28
|
-
"license": "
|
|
28
|
+
"license": "MIT",
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsup && node scripts/copy-assets.mjs",
|
|
31
31
|
"dev": "tsup --watch",
|