pumuki 6.3.81 → 6.3.84

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.84
@@ -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.84)
10
+
11
+ - **Tracking en español**: `TRACKING_CANONICAL_SOURCE_CONFLICT` y `TRACKING_CANONICAL_IN_PROGRESS_INVALID` ya renderizan una causa 100% en español en el banner y en el modal macOS.
12
+ - **Rollout recomendado**: publicar `pumuki@6.3.84`, repin inmediato en los consumers donde el bloqueo de tracking sigue vivo y verificar que la notificación visible deja de mezclar inglés y español.
13
+
14
+ ### 2026-04-20 (v6.3.83)
15
+
16
+ - **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.
17
+ - **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.
18
+ - **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.
19
+
9
20
  ### 2026-04-17 (v6.3.81)
10
21
 
11
22
  - **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.84",
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": {
@@ -21,6 +21,41 @@ const BLOCKED_CAUSE_SUMMARY_BY_CODE: Readonly<Record<string, string>> = {
21
21
  BACKEND_AVOID_EXPLICIT_ANY: 'Se detectó uso de "any" explícito en backend.',
22
22
  GIT_ATOMICITY_TOO_MANY_SCOPES: 'Se han cambiado demasiados scopes en el mismo commit.',
23
23
  SOLID_HEURISTIC: 'Se detectó una violación estructural en el cambio actual.',
24
+ TRACKING_CANONICAL_SOURCE_CONFLICT:
25
+ 'Hay varias fuentes canónicas de seguimiento declaradas.',
26
+ TRACKING_CANONICAL_IN_PROGRESS_INVALID:
27
+ 'El archivo canónico de seguimiento debe tener exactamente una tarea en construcción.',
28
+ };
29
+
30
+ const ENGLISH_CAUSE_HINTS = [
31
+ 'detected',
32
+ 'avoid explicit any',
33
+ 'evidence is',
34
+ 'no upstream',
35
+ 'too many scopes',
36
+ 'atomicity',
37
+ 'heuristic violation',
38
+ 'protected branch',
39
+ 'missing',
40
+ 'invalid',
41
+ 'failed',
42
+ 'session',
43
+ 'open spec',
44
+ 'openspec',
45
+ 'policy-as-code',
46
+ 'worktree',
47
+ 'callback usage',
48
+ 'usage.',
49
+ ];
50
+
51
+ const buildGenericSpanishBlockedCauseSummary = (
52
+ event: Extract<PumukiCriticalNotificationEvent, { kind: 'gate.blocked' }>,
53
+ causeCode: string
54
+ ): string => {
55
+ if (causeCode.trim().length > 0 && causeCode !== 'GATE_BLOCKED') {
56
+ return `Se ha detectado el bloqueo ${causeCode} en ${event.stage}.`;
57
+ }
58
+ return `Se detectaron ${event.totalViolations} bloqueos en ${event.stage}.`;
24
59
  };
25
60
 
26
61
  const toKnownSpanishCauseFromMessage = (message: string): string | null => {
@@ -46,6 +81,11 @@ const toKnownSpanishCauseFromMessage = (message: string): string | null => {
46
81
  return null;
47
82
  };
48
83
 
84
+ const hasEnglishBlockedCauseHints = (message: string): boolean => {
85
+ const normalized = message.toLowerCase();
86
+ return ENGLISH_CAUSE_HINTS.some((hint) => normalized.includes(hint));
87
+ };
88
+
49
89
  export const resolveBlockedCauseSummary = (
50
90
  event: Extract<PumukiCriticalNotificationEvent, { kind: 'gate.blocked' }>,
51
91
  causeCode: string
@@ -60,7 +100,13 @@ export const resolveBlockedCauseSummary = (
60
100
  if (translated) {
61
101
  return translated;
62
102
  }
103
+ if (hasEnglishBlockedCauseHints(rawMessage)) {
104
+ return truncateNotificationText(
105
+ buildGenericSpanishBlockedCauseSummary(event, causeCode),
106
+ 72
107
+ );
108
+ }
63
109
  return truncateNotificationText(rawMessage, 72);
64
110
  }
65
- return `Se detectaron ${event.totalViolations} bloqueos en ${event.stage}.`;
111
+ return buildGenericSpanishBlockedCauseSummary(event, causeCode);
66
112
  };
@@ -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
  };