sistema-multiagente-sdlc 1.2.0 → 1.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/CHANGELOG.md +11 -1
- package/README.md +13 -2
- package/package.json +1 -1
- package/src/cli.js +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [1.2.
|
|
3
|
+
## [1.2.1] — 2026-05-18
|
|
4
|
+
|
|
5
|
+
### UX fix — `init` sin `--target` usa cwd
|
|
6
|
+
|
|
7
|
+
- `bin/sdlc.js` (`src/cli.js`): `requireTarget` deja de exigir `--target <repo>`. Cuando se omite, se usa `process.cwd()` como destino.
|
|
8
|
+
- El quickstart del README (`npx sistema-multiagente-sdlc init --dry-run`) ahora coincide con el comportamiento real del CLI; antes fallaba con `Falta --target <repo>`.
|
|
9
|
+
- Mensaje de `help` actualizado: `--target` queda marcado como opcional con default cwd.
|
|
10
|
+
- Regresión nueva en `tests/run-regression.mjs`: smoke test ejecuta `node bin/sdlc.js init --dry-run` desde un tmpdir con `cwd` distinto al repo y verifica que el dry-run no escriba archivos.
|
|
11
|
+
- Sin cambios en `frameworkVersion` (sigue `1.2.0`): no se altera el contenido de los archivos gestionados, solo el front-door del CLI. Las instalaciones existentes no requieren `upgrade` ni migración.
|
|
12
|
+
|
|
13
|
+
## [1.2.0] — 2026-05-17
|
|
4
14
|
|
|
5
15
|
### Phase 1 — Versionado y migraciones
|
|
6
16
|
|
package/README.md
CHANGED
|
@@ -12,10 +12,21 @@ The operating model is SDD waterfall by slice and agile by release: each slice h
|
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
|
-
Published package flow
|
|
15
|
+
Published package flow (>=1.2.1):
|
|
16
16
|
|
|
17
17
|
```powershell
|
|
18
|
-
|
|
18
|
+
# Desde la raíz del repo destino (cwd = repo).
|
|
19
|
+
# --target es opcional desde v1.2.1: si se omite, se usa el directorio actual.
|
|
20
|
+
npx sistema-multiagente-sdlc init --mode greenfield --project-name "My Project"
|
|
21
|
+
|
|
22
|
+
# Smoke previo sin escribir nada:
|
|
23
|
+
npx sistema-multiagente-sdlc init --mode greenfield --project-name "My Project" --dry-run --json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Para v1.2.0 (compatibilidad), el comando equivalente requería `--target` explícito:
|
|
27
|
+
|
|
28
|
+
```powershell
|
|
29
|
+
npx sistema-multiagente-sdlc@1.2.0 init --target . --mode greenfield --project-name "My Project"
|
|
19
30
|
```
|
|
20
31
|
|
|
21
32
|
Local development flow:
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -65,9 +65,7 @@ function print(payload, json) {
|
|
|
65
65
|
|
|
66
66
|
function requireTarget(options) {
|
|
67
67
|
if (!options.target) {
|
|
68
|
-
|
|
69
|
-
error.exitCode = EXIT_ERROR;
|
|
70
|
-
throw error;
|
|
68
|
+
return path.resolve(process.cwd());
|
|
71
69
|
}
|
|
72
70
|
return path.resolve(options.target);
|
|
73
71
|
}
|
|
@@ -624,7 +622,7 @@ function commandHelp() {
|
|
|
624
622
|
exitCode: EXIT_OK,
|
|
625
623
|
payload: {
|
|
626
624
|
status: "ok",
|
|
627
|
-
message: "Uso: sdlc <init|install|upgrade|rollback|doctor|diff|prune-backups|migrate-config> --target <repo> [--json]"
|
|
625
|
+
message: "Uso: sdlc <init|install|upgrade|rollback|doctor|diff|prune-backups|migrate-config> [--target <repo>] [--json]\nSi --target se omite, se usa el directorio actual (process.cwd())."
|
|
628
626
|
}
|
|
629
627
|
};
|
|
630
628
|
}
|