pumuki 6.3.118 → 6.3.120
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 +13 -0
- package/VERSION +1 -1
- package/integrations/lifecycle/cli.ts +23 -1
- package/integrations/lifecycle/install.ts +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [6.3.120] - 2026-04-28
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **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`.
|
|
14
|
+
- **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`.
|
|
15
|
+
|
|
16
|
+
## [6.3.119] - 2026-04-28
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **Contrato CLI estable para menú:** `pumuki menu --help` deja de fallar como comando desconocido y `pumuki menu` delega en el runtime de menú existente (`pumuki-framework`), cerrando `PUMUKI-INC-111` para consumers como RuralGo.
|
|
21
|
+
|
|
9
22
|
## [6.3.118] - 2026-04-28
|
|
10
23
|
|
|
11
24
|
### Fixed
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v6.3.
|
|
1
|
+
v6.3.120
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
2
3
|
import { dirname, isAbsolute, relative, resolve } from 'node:path';
|
|
3
4
|
import type { GatePolicy } from '../../core/gate/GatePolicy';
|
|
4
5
|
import { runPlatformGate } from '../git/runPlatformGate';
|
|
@@ -84,6 +85,7 @@ type LifecycleCommand =
|
|
|
84
85
|
| 'update'
|
|
85
86
|
| 'doctor'
|
|
86
87
|
| 'status'
|
|
88
|
+
| 'menu'
|
|
87
89
|
| 'watch'
|
|
88
90
|
| 'loop'
|
|
89
91
|
| 'sdd'
|
|
@@ -190,6 +192,7 @@ Pumuki lifecycle commands:
|
|
|
190
192
|
pumuki doctor [--remote-checks] [--deep] [--parity] [--json]
|
|
191
193
|
pumuki audit [--stage=PRE_WRITE|PRE_COMMIT|PRE_PUSH|CI] [--engine] [--json]
|
|
192
194
|
pumuki status [--json] [--remote-checks]
|
|
195
|
+
pumuki menu
|
|
193
196
|
pumuki watch [--stage=PRE_COMMIT|PRE_PUSH|CI] [--scope=workingTree|staged|repoAndStaged|repo] [--severity=critical|high|medium|low] [--interval-ms=<n>] [--notify-cooldown-ms=<n>] [--no-notify] [--once|--iterations=<n>] [--json]
|
|
194
197
|
pumuki loop run --objective=<text> [--max-attempts=<n>] [--json]
|
|
195
198
|
pumuki loop status --session=<session-id> [--json]
|
|
@@ -229,6 +232,7 @@ const isLifecycleCommand = (value: string): value is LifecycleCommand =>
|
|
|
229
232
|
value === 'update' ||
|
|
230
233
|
value === 'doctor' ||
|
|
231
234
|
value === 'status' ||
|
|
235
|
+
value === 'menu' ||
|
|
232
236
|
value === 'watch' ||
|
|
233
237
|
value === 'loop' ||
|
|
234
238
|
value === 'sdd' ||
|
|
@@ -559,6 +563,19 @@ const printHotspotsPublishDiagnostics = (diagnostics: HotspotsPublishDiagnostics
|
|
|
559
563
|
}
|
|
560
564
|
};
|
|
561
565
|
|
|
566
|
+
const runFrameworkMenuShim = (argv: ReadonlyArray<string>): number => {
|
|
567
|
+
const frameworkMenuBin = resolve(__dirname, '../../bin/pumuki-framework.js');
|
|
568
|
+
const result = spawnSync(process.execPath, [frameworkMenuBin, ...argv], {
|
|
569
|
+
stdio: 'inherit',
|
|
570
|
+
env: process.env,
|
|
571
|
+
});
|
|
572
|
+
if (result.error) {
|
|
573
|
+
writeError(`[pumuki] menu failed to start: ${result.error.message}`);
|
|
574
|
+
return 1;
|
|
575
|
+
}
|
|
576
|
+
return typeof result.status === 'number' ? result.status : 1;
|
|
577
|
+
};
|
|
578
|
+
|
|
562
579
|
export const parseLifecycleCliArgs = (argv: ReadonlyArray<string>): ParsedArgs => {
|
|
563
580
|
const commandRaw = argv[0];
|
|
564
581
|
if (!commandRaw || commandRaw === '--help' || commandRaw === '-h') {
|
|
@@ -704,7 +721,9 @@ export const parseLifecycleCliArgs = (argv: ReadonlyArray<string>): ParsedArgs =
|
|
|
704
721
|
watchIntervalMs: watchIntervalMs ?? 3000,
|
|
705
722
|
watchNotifyCooldownMs: watchNotifyCooldownMs ?? 30_000,
|
|
706
723
|
watchSeverityThreshold: watchSeverityThreshold ?? 'high',
|
|
707
|
-
watchNotifyEnabled:
|
|
724
|
+
watchNotifyEnabled:
|
|
725
|
+
watchNotifyEnabled !== false &&
|
|
726
|
+
!(json && watchIterations === 1),
|
|
708
727
|
...(typeof watchIterations === 'number' ? { watchIterations } : {}),
|
|
709
728
|
};
|
|
710
729
|
}
|
|
@@ -2463,6 +2482,9 @@ export const runLifecycleCli = async (
|
|
|
2463
2482
|
}
|
|
2464
2483
|
return 0;
|
|
2465
2484
|
}
|
|
2485
|
+
case 'menu': {
|
|
2486
|
+
return runFrameworkMenuShim(argv.slice(1));
|
|
2487
|
+
}
|
|
2466
2488
|
case 'watch': {
|
|
2467
2489
|
const watchResult = await activeDependencies.runLifecycleWatch(
|
|
2468
2490
|
{
|
|
@@ -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.120",
|
|
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": {
|