pumuki 6.3.80 → 6.3.83

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/VERSION CHANGED
@@ -1 +1 @@
1
- v6.3.80
1
+ v6.3.83
@@ -6,6 +6,17 @@ This file keeps only the operational highlights and rollout notes that matter wh
6
6
 
7
7
  ## 2026-04 (CLI stability and macOS notifications)
8
8
 
9
+ ### 2026-04-20 (v6.3.83)
10
+
11
+ - **Copy 100% en español**: `gate.blocked` ya no filtra `causeMessage` ni `remediation` en inglés cuando el código no está mapeado; el fallback visible para usuario final queda íntegramente en español.
12
+ - **Botones validados en framework**: `Desactivar` y `Silenciar 30 min` se han revalidado extremo a extremo dentro del runtime de notificaciones; `Desactivar` bloquea emisiones posteriores y `Silenciar 30 min` reabre automáticamente al expirar la ventana.
13
+ - **Rollout recomendado**: publicar `pumuki@6.3.83`, repin inmediato en consumers activos y comprobar en al menos un consumer real que el diálogo macOS deja de mostrar spaninglish y respeta las acciones del usuario.
14
+
15
+ ### 2026-04-17 (v6.3.81)
16
+
17
+ - **Causa 100% en español**: la notificación `gate.blocked` traduce explícitamente `EVIDENCE_GATE_BLOCKED` y también los mensajes legacy equivalentes, evitando el spanglish `Cause: Evidence AI gate status is BLOCKED.` en macOS.
18
+ - **Rollout recomendado**: publicar `pumuki@6.3.81` y repin rápido `RuralGo -> SAAS -> Flux`, revalidando la notificación bloqueante y `status/doctor` en cada consumer.
19
+
9
20
  ### 2026-04-17 (v6.3.80)
10
21
 
11
22
  - **Tracking canónico**: la línea viva acepta el formato contractual `[🚧] - tarea` en el plan maestro y en tablas con backticks, tanto en el parser de tracking como en el guardrail shell de una sola task activa.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki",
3
- "version": "6.3.80",
3
+ "version": "6.3.83",
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": {
@@ -5,6 +5,7 @@ import {
5
5
  } from './framework-menu-system-notifications-text';
6
6
 
7
7
  const BLOCKED_CAUSE_SUMMARY_BY_CODE: Readonly<Record<string, string>> = {
8
+ EVIDENCE_GATE_BLOCKED: 'El gate de evidencia de IA está bloqueado.',
8
9
  EVIDENCE_MISSING: 'Falta evidencia para validar este paso.',
9
10
  EVIDENCE_INVALID: 'La evidencia actual es inválida.',
10
11
  EVIDENCE_CHAIN_INVALID: 'La cadena de evidencia no es válida.',
@@ -22,6 +23,37 @@ const BLOCKED_CAUSE_SUMMARY_BY_CODE: Readonly<Record<string, string>> = {
22
23
  SOLID_HEURISTIC: 'Se detectó una violación estructural en el cambio actual.',
23
24
  };
24
25
 
26
+ const ENGLISH_CAUSE_HINTS = [
27
+ 'detected',
28
+ 'avoid explicit any',
29
+ 'evidence is',
30
+ 'no upstream',
31
+ 'too many scopes',
32
+ 'atomicity',
33
+ 'heuristic violation',
34
+ 'protected branch',
35
+ 'missing',
36
+ 'invalid',
37
+ 'failed',
38
+ 'session',
39
+ 'open spec',
40
+ 'openspec',
41
+ 'policy-as-code',
42
+ 'worktree',
43
+ 'callback usage',
44
+ 'usage.',
45
+ ];
46
+
47
+ const buildGenericSpanishBlockedCauseSummary = (
48
+ event: Extract<PumukiCriticalNotificationEvent, { kind: 'gate.blocked' }>,
49
+ causeCode: string
50
+ ): string => {
51
+ if (causeCode.trim().length > 0 && causeCode !== 'GATE_BLOCKED') {
52
+ return `Se ha detectado el bloqueo ${causeCode} en ${event.stage}.`;
53
+ }
54
+ return `Se detectaron ${event.totalViolations} bloqueos en ${event.stage}.`;
55
+ };
56
+
25
57
  const toKnownSpanishCauseFromMessage = (message: string): string | null => {
26
58
  const normalized = message.toLowerCase();
27
59
  if (normalized.includes('avoid explicit any')) {
@@ -30,6 +62,9 @@ const toKnownSpanishCauseFromMessage = (message: string): string | null => {
30
62
  if (normalized.includes('evidence is stale')) {
31
63
  return BLOCKED_CAUSE_SUMMARY_BY_CODE.EVIDENCE_STALE;
32
64
  }
65
+ if (normalized.includes('evidence ai gate status is blocked')) {
66
+ return BLOCKED_CAUSE_SUMMARY_BY_CODE.EVIDENCE_GATE_BLOCKED;
67
+ }
33
68
  if (normalized.includes('no upstream tracking reference')) {
34
69
  return BLOCKED_CAUSE_SUMMARY_BY_CODE.PRE_PUSH_UPSTREAM_MISSING;
35
70
  }
@@ -42,6 +77,11 @@ const toKnownSpanishCauseFromMessage = (message: string): string | null => {
42
77
  return null;
43
78
  };
44
79
 
80
+ const hasEnglishBlockedCauseHints = (message: string): boolean => {
81
+ const normalized = message.toLowerCase();
82
+ return ENGLISH_CAUSE_HINTS.some((hint) => normalized.includes(hint));
83
+ };
84
+
45
85
  export const resolveBlockedCauseSummary = (
46
86
  event: Extract<PumukiCriticalNotificationEvent, { kind: 'gate.blocked' }>,
47
87
  causeCode: string
@@ -56,7 +96,13 @@ export const resolveBlockedCauseSummary = (
56
96
  if (translated) {
57
97
  return translated;
58
98
  }
99
+ if (hasEnglishBlockedCauseHints(rawMessage)) {
100
+ return truncateNotificationText(
101
+ buildGenericSpanishBlockedCauseSummary(event, causeCode),
102
+ 72
103
+ );
104
+ }
59
105
  return truncateNotificationText(rawMessage, 72);
60
106
  }
61
- return `Se detectaron ${event.totalViolations} bloqueos en ${event.stage}.`;
107
+ return buildGenericSpanishBlockedCauseSummary(event, causeCode);
62
108
  };
@@ -7,6 +7,7 @@ import {
7
7
  type BlockedRemediationVariant = 'banner' | 'dialog';
8
8
 
9
9
  const BLOCKED_REMEDIATION_BY_CODE: Readonly<Record<string, string>> = {
10
+ EVIDENCE_GATE_BLOCKED: 'Corrige las violaciones bloqueantes detectadas en la evidencia y vuelve a ejecutar el gate.',
10
11
  EVIDENCE_MISSING: 'Genera la evidencia del slice actual y vuelve a validar esta fase.',
11
12
  EVIDENCE_INVALID: 'Regenera la evidencia de esta iteración y repite la validación.',
12
13
  EVIDENCE_CHAIN_INVALID: 'Regenera la evidencia para restaurar la cadena de integridad y vuelve a validar.',
@@ -44,6 +45,7 @@ const resolveFallbackRemediation = (causeCode: string): string =>
44
45
  const hasEnglishHints = (message: string): boolean => {
45
46
  const normalized = message.toLowerCase();
46
47
  return [
48
+ 'detected',
47
49
  'avoid explicit any',
48
50
  'set-upstream',
49
51
  'refresh evidence',
@@ -54,6 +56,16 @@ const hasEnglishHints = (message: string): boolean => {
54
56
  'rerun',
55
57
  'retry',
56
58
  'to continue',
59
+ 'protected branch',
60
+ 'open spec',
61
+ 'openspec',
62
+ 'session',
63
+ 'missing',
64
+ 'invalid',
65
+ 'failed',
66
+ 'worktree',
67
+ 'callback usage',
68
+ 'usage.',
57
69
  'run ',
58
70
  ].some((hint) => normalized.includes(hint));
59
71
  };
@@ -69,6 +81,9 @@ const toKnownSpanishRemediationFromMessage = (message: string, causeCode: string
69
81
  if (normalized.includes('refresh evidence') || normalized.includes('evidence is stale')) {
70
82
  return BLOCKED_REMEDIATION_BY_CODE.EVIDENCE_STALE;
71
83
  }
84
+ if (normalized.includes('evidence ai gate status is blocked')) {
85
+ return BLOCKED_REMEDIATION_BY_CODE.EVIDENCE_GATE_BLOCKED;
86
+ }
72
87
  if (normalized.includes('split the change')) {
73
88
  return BLOCKED_REMEDIATION_BY_CODE.GIT_ATOMICITY_TOO_MANY_SCOPES;
74
89
  }