pumuki 6.3.164 → 6.3.165

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 CHANGED
@@ -6,6 +6,12 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [6.3.165] - 2026-05-06
10
+
11
+ ### Fixed
12
+
13
+ - **MCP evidence stdio PRE_PUSH:** los defaults de host, ruta, puerto y timeout quedan nombrados como constantes para cumplir reglas backend de configuración y evitar bloqueos del hook al publicar ramas de release.
14
+
9
15
  ## [6.3.164] - 2026-05-06
10
16
 
11
17
  ### Fixed
package/VERSION CHANGED
@@ -1 +1 @@
1
- v6.3.164
1
+ v6.3.165
@@ -21,6 +21,10 @@ type JsonRpcResponse = {
21
21
  };
22
22
 
23
23
  const MCP_PROTOCOL_VERSION = '2024-11-05';
24
+ const DEFAULT_EVIDENCE_HOST = '127.0.0.1';
25
+ const DEFAULT_EVIDENCE_ROUTE = '/ai-evidence';
26
+ const DEFAULT_EVIDENCE_PORT = 7341;
27
+ const PORT_PROBE_TIMEOUT_MS = 600;
24
28
 
25
29
  const toJsonRpcId = (value: unknown): JsonRpcId => {
26
30
  if (typeof value === 'string' || typeof value === 'number' || value === null) {
@@ -55,7 +59,7 @@ const sendError = (id: JsonRpcId, code: number, message: string): void => {
55
59
  const isPortInUse = async (host: string, port: number): Promise<boolean> =>
56
60
  await new Promise((resolve) => {
57
61
  const socket = new Socket();
58
- socket.setTimeout(600);
62
+ socket.setTimeout(PORT_PROBE_TIMEOUT_MS);
59
63
  socket.once('connect', () => {
60
64
  socket.destroy();
61
65
  resolve(true);
@@ -105,10 +109,10 @@ const startOrReuseEvidenceHttp = async (): Promise<{
105
109
  port: number;
106
110
  route: string;
107
111
  }> => {
108
- const host = process.env.PUMUKI_EVIDENCE_HOST ?? '127.0.0.1';
109
- const route = process.env.PUMUKI_EVIDENCE_ROUTE ?? '/ai-evidence';
112
+ const host = process.env.PUMUKI_EVIDENCE_HOST ?? DEFAULT_EVIDENCE_HOST;
113
+ const route = process.env.PUMUKI_EVIDENCE_ROUTE ?? DEFAULT_EVIDENCE_ROUTE;
110
114
  const parsedPort = Number.parseInt(process.env.PUMUKI_EVIDENCE_PORT ?? '', 10);
111
- const preferredPort = Number.isFinite(parsedPort) ? parsedPort : 7341;
115
+ const preferredPort = Number.isFinite(parsedPort) ? parsedPort : DEFAULT_EVIDENCE_PORT;
112
116
  const requestedPort = preferredPort > 0 ? preferredPort : await findEphemeralPort(host);
113
117
  const healthUrl = `http://${host}:${requestedPort}/health`;
114
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki",
3
- "version": "6.3.164",
3
+ "version": "6.3.165",
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": {