pumuki 6.3.119 → 6.3.121
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/AGENTS.md +11 -0
- package/CHANGELOG.md +14 -0
- package/VERSION +1 -1
- package/integrations/git/brownfieldHotspots.ts +4 -25
- package/integrations/lifecycle/cli.ts +3 -1
- package/integrations/lifecycle/install.ts +15 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -81,6 +81,17 @@ Antes de realizar cualquier accion:
|
|
|
81
81
|
- explicar la regla exacta bloqueante, y
|
|
82
82
|
- pedir decision explicita del usuario antes de continuar.
|
|
83
83
|
|
|
84
|
+
## Protocolo condicionado de review paralela
|
|
85
|
+
- MUST: Cuando el usuario pida revisar una rama, PR, diff amplio o cambio transversal, usar subagentes paralelos si el alcance lo justifica.
|
|
86
|
+
- MUST: Separar la revision en tres focos independientes:
|
|
87
|
+
1. riesgos de seguridad
|
|
88
|
+
2. carencias de tests
|
|
89
|
+
3. mantenibilidad, deuda y complejidad
|
|
90
|
+
- MUST: Integrar los hallazgos en una unica respuesta final priorizada por severidad, con referencias a archivo/linea y sin duplicar conclusiones.
|
|
91
|
+
- MUST: Mantener el formato de review: hallazgos primero, preguntas/assumptions despues, resumen al final.
|
|
92
|
+
- MUST: No activar este protocolo para implementaciones normales, fixes pequenos, tareas de tracking o cambios documentales simples salvo peticion explicita del usuario.
|
|
93
|
+
- MUST: No sustituir los gates del repo por opiniones de subagentes; los subagentes aportan focos de revision, pero la respuesta final debe contrastar sus hallazgos con codigo, tests y evidencia local.
|
|
94
|
+
|
|
84
95
|
## Contrato hard de GitFlow y ramas (no negociable)
|
|
85
96
|
- El ciclo GitFlow del proyecto es obligatorio.
|
|
86
97
|
- Es obligatorio respetar ramas nombradas segun la convencion acordada del repositorio.
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,20 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [6.3.121] - 2026-04-28
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **Hotspots brownfield sin umbrales hardcodeados:** `BrownfieldHotspotGuard` deja de bloquear por tamaño implícito en carpetas `presentation`/`application`; el bloqueo por líneas solo se activa cuando el consumer declara explícitamente `max_lines` en `config/pumuki-hotspots.json`.
|
|
14
|
+
- **Cierre de `PUMUKI-INC-114`:** el guard mantiene bloqueo declarativo para hotspots marcados, pero SRP/god class vuelve a depender de reglas/skills AST inteligentes en vez de números internos `800/1200`.
|
|
15
|
+
|
|
16
|
+
## [6.3.120] - 2026-04-28
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **Watch no interactivo para auditoría machine-readable:** `pumuki watch --scope=repo --once --json` desactiva notificaciones por defecto en esa invocación de una sola pasada para terminar y emitir JSON sin depender de UI del sistema, cerrando `PUMUKI-INC-112`.
|
|
21
|
+
- **Bloqueos de install visibles:** cuando `pumuki install` queda bloqueado por governance, emite una notificación `gate.blocked` y añade el estado de entrega al error, cerrando la brecha de visibilidad de `PUMUKI-INC-113`.
|
|
22
|
+
|
|
9
23
|
## [6.3.119] - 2026-04-28
|
|
10
24
|
|
|
11
25
|
### Fixed
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v6.3.
|
|
1
|
+
v6.3.121
|
|
@@ -24,9 +24,6 @@ type ObservedFile = {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const DEFAULT_HOTSPOTS_CONFIG_PATH = 'config/pumuki-hotspots.json';
|
|
27
|
-
const PRESENTATION_OR_APPLICATION_SEGMENTS = ['/presentation/', '/application/'];
|
|
28
|
-
const HIGH_LINE_THRESHOLD = 800;
|
|
29
|
-
const CRITICAL_LINE_THRESHOLD = 1200;
|
|
30
27
|
|
|
31
28
|
const isObject = (value: unknown): value is Record<string, unknown> =>
|
|
32
29
|
typeof value === 'object' && value !== null;
|
|
@@ -102,11 +99,6 @@ const readBrownfieldHotspotConfig = (repoRoot: string): BrownfieldHotspotConfig
|
|
|
102
99
|
}
|
|
103
100
|
};
|
|
104
101
|
|
|
105
|
-
const isSensitiveLayerPath = (path: string): boolean => {
|
|
106
|
-
const normalized = `/${toNormalizedPath(path).toLowerCase()}`;
|
|
107
|
-
return PRESENTATION_OR_APPLICATION_SEGMENTS.some((segment) => normalized.includes(segment));
|
|
108
|
-
};
|
|
109
|
-
|
|
110
102
|
const hasRequiredArtifacts = (
|
|
111
103
|
repoRoot: string,
|
|
112
104
|
candidates: ReadonlyArray<string> | undefined
|
|
@@ -245,28 +237,15 @@ export const evaluateBrownfieldHotspotFindings = (params: {
|
|
|
245
237
|
|
|
246
238
|
for (const file of observedFiles) {
|
|
247
239
|
const configEntry = configByPath.get(file.path);
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
const criticalThreshold = Math.max(highThreshold, CRITICAL_LINE_THRESHOLD);
|
|
252
|
-
if (file.lineCount > criticalThreshold) {
|
|
253
|
-
findings.push(
|
|
254
|
-
toHotspotSizeFinding({
|
|
255
|
-
stage: params.stage,
|
|
256
|
-
path: file.path,
|
|
257
|
-
lineCount: file.lineCount,
|
|
258
|
-
threshold: criticalThreshold,
|
|
259
|
-
severity: 'CRITICAL',
|
|
260
|
-
reason: configEntry?.reason,
|
|
261
|
-
})
|
|
262
|
-
);
|
|
263
|
-
} else if (file.lineCount > highThreshold) {
|
|
240
|
+
if (typeof file.lineCount === 'number' && configEntry?.max_lines) {
|
|
241
|
+
const threshold = configEntry.max_lines;
|
|
242
|
+
if (file.lineCount > threshold) {
|
|
264
243
|
findings.push(
|
|
265
244
|
toHotspotSizeFinding({
|
|
266
245
|
stage: params.stage,
|
|
267
246
|
path: file.path,
|
|
268
247
|
lineCount: file.lineCount,
|
|
269
|
-
threshold
|
|
248
|
+
threshold,
|
|
270
249
|
severity: 'ERROR',
|
|
271
250
|
reason: configEntry?.reason,
|
|
272
251
|
})
|
|
@@ -721,7 +721,9 @@ export const parseLifecycleCliArgs = (argv: ReadonlyArray<string>): ParsedArgs =
|
|
|
721
721
|
watchIntervalMs: watchIntervalMs ?? 3000,
|
|
722
722
|
watchNotifyCooldownMs: watchNotifyCooldownMs ?? 30_000,
|
|
723
723
|
watchSeverityThreshold: watchSeverityThreshold ?? 'high',
|
|
724
|
-
watchNotifyEnabled:
|
|
724
|
+
watchNotifyEnabled:
|
|
725
|
+
watchNotifyEnabled !== false &&
|
|
726
|
+
!(json && watchIterations === 1),
|
|
725
727
|
...(typeof watchIterations === 'number' ? { watchIterations } : {}),
|
|
726
728
|
};
|
|
727
729
|
}
|
|
@@ -14,6 +14,7 @@ import { readOpenSpecManagedArtifacts, writeLifecycleState } from './state';
|
|
|
14
14
|
import { ensureRuntimeArtifactsIgnored } from './artifacts';
|
|
15
15
|
import { runLifecycleAdapterInstall } from './adapter';
|
|
16
16
|
import { runPolicyReconcile } from './policyReconcile';
|
|
17
|
+
import { emitGateBlockedNotification } from '../notifications/emitAuditSummaryNotification';
|
|
17
18
|
|
|
18
19
|
export type LifecycleInstallResult = {
|
|
19
20
|
repoRoot: string;
|
|
@@ -104,6 +105,7 @@ export const runLifecycleInstall = (params?: {
|
|
|
104
105
|
npm?: ILifecycleNpmService;
|
|
105
106
|
bootstrapOpenSpec?: boolean;
|
|
106
107
|
bestEffortAfterDoctorBlock?: boolean;
|
|
108
|
+
notifyGateBlocked?: typeof emitGateBlockedNotification;
|
|
107
109
|
}): LifecycleInstallResult => {
|
|
108
110
|
const git = params?.git ?? new LifecycleGitService();
|
|
109
111
|
const bestEffortAfterDoctorBlock =
|
|
@@ -134,8 +136,20 @@ export const runLifecycleInstall = (params?: {
|
|
|
134
136
|
};
|
|
135
137
|
}
|
|
136
138
|
const renderedIssues = report.issues.map((issue) => `- [${issue.severity}] ${issue.message}`).join('\n');
|
|
139
|
+
const firstIssue = report.issues[0];
|
|
140
|
+
const notificationResult = (params?.notifyGateBlocked ?? emitGateBlockedNotification)({
|
|
141
|
+
repoRoot: report.repoRoot,
|
|
142
|
+
stage: 'PRE_COMMIT',
|
|
143
|
+
totalViolations: report.issues.length,
|
|
144
|
+
causeCode: 'LIFECYCLE_INSTALL_SAFETY_BLOCKED',
|
|
145
|
+
causeMessage: firstIssue?.message ?? 'pumuki install blocked by repository safety checks.',
|
|
146
|
+
remediation: 'Corrige las incidencias activas del tracking externo y reintenta pumuki install.',
|
|
147
|
+
});
|
|
148
|
+
const notificationLine = notificationResult.delivered
|
|
149
|
+
? '- [info] Blocking notification delivered.'
|
|
150
|
+
: `- [warning] Blocking notification not delivered: ${notificationResult.reason}`;
|
|
137
151
|
throw new Error(
|
|
138
|
-
`pumuki install blocked by repository safety checks.\n${renderedIssues}\n` +
|
|
152
|
+
`pumuki install blocked by repository safety checks.\n${renderedIssues}\n${notificationLine}\n` +
|
|
139
153
|
'Fix the baseline (for example tracked node_modules) and retry.'
|
|
140
154
|
);
|
|
141
155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.121",
|
|
4
4
|
"description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|