pumuki 6.3.81 → 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.81
1
+ v6.3.83
@@ -6,6 +6,12 @@ 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
+
9
15
  ### 2026-04-17 (v6.3.81)
10
16
 
11
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki",
3
- "version": "6.3.81",
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": {
@@ -23,6 +23,37 @@ const BLOCKED_CAUSE_SUMMARY_BY_CODE: Readonly<Record<string, string>> = {
23
23
  SOLID_HEURISTIC: 'Se detectó una violación estructural en el cambio actual.',
24
24
  };
25
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
+
26
57
  const toKnownSpanishCauseFromMessage = (message: string): string | null => {
27
58
  const normalized = message.toLowerCase();
28
59
  if (normalized.includes('avoid explicit any')) {
@@ -46,6 +77,11 @@ const toKnownSpanishCauseFromMessage = (message: string): string | null => {
46
77
  return null;
47
78
  };
48
79
 
80
+ const hasEnglishBlockedCauseHints = (message: string): boolean => {
81
+ const normalized = message.toLowerCase();
82
+ return ENGLISH_CAUSE_HINTS.some((hint) => normalized.includes(hint));
83
+ };
84
+
49
85
  export const resolveBlockedCauseSummary = (
50
86
  event: Extract<PumukiCriticalNotificationEvent, { kind: 'gate.blocked' }>,
51
87
  causeCode: string
@@ -60,7 +96,13 @@ export const resolveBlockedCauseSummary = (
60
96
  if (translated) {
61
97
  return translated;
62
98
  }
99
+ if (hasEnglishBlockedCauseHints(rawMessage)) {
100
+ return truncateNotificationText(
101
+ buildGenericSpanishBlockedCauseSummary(event, causeCode),
102
+ 72
103
+ );
104
+ }
63
105
  return truncateNotificationText(rawMessage, 72);
64
106
  }
65
- return `Se detectaron ${event.totalViolations} bloqueos en ${event.stage}.`;
107
+ return buildGenericSpanishBlockedCauseSummary(event, causeCode);
66
108
  };
@@ -45,6 +45,7 @@ const resolveFallbackRemediation = (causeCode: string): string =>
45
45
  const hasEnglishHints = (message: string): boolean => {
46
46
  const normalized = message.toLowerCase();
47
47
  return [
48
+ 'detected',
48
49
  'avoid explicit any',
49
50
  'set-upstream',
50
51
  'refresh evidence',
@@ -55,6 +56,16 @@ const hasEnglishHints = (message: string): boolean => {
55
56
  'rerun',
56
57
  'retry',
57
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.',
58
69
  'run ',
59
70
  ].some((hint) => normalized.includes(hint));
60
71
  };