@mnemonik/shared 6.12.6 → 6.13.1

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.
@@ -34,8 +34,14 @@ export declare const FETCH_TIMEOUT_MS = 2000;
34
34
  export declare const TELEMETRY_TIMEOUT_MS = 500;
35
35
  /** PostToolUse / track-ide-edit budget. Faster than FETCH because it's fire-and-forget. */
36
36
  export declare const POST_TOOL_TIMEOUT_MS = 1500;
37
- /** beforeMCPExecution gate budget. Same as FETCH today; documented separately so it can move independently. */
38
- export declare const MCP_PRECHECK_TIMEOUT_MS = 2000;
37
+ /**
38
+ * beforeMCPExecution gate budget. This is the ONLY synchronous, user-facing
39
+ * gate — the user waits on it before every MCP tool call — so it fails open
40
+ * faster than the background critical fetch (FETCH_TIMEOUT_MS = 2000). A
41
+ * precheck slower than 1s is not worth blocking the tool call for; on a
42
+ * degraded server we drop the gate rather than stall the user.
43
+ */
44
+ export declare const MCP_PRECHECK_TIMEOUT_MS = 1000;
39
45
  /**
40
46
  * Spawn an `AbortController` tied to a timeout. Returns the signal plus a
41
47
  * `cleanup` function the caller MUST invoke (in `finally`) to clear the
@@ -1 +1 @@
1
- {"version":3,"file":"hookTimeouts.d.ts","sourceRoot":"","sources":["../src/hookTimeouts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,2FAA2F;AAC3F,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,+GAA+G;AAC/G,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAIxF"}
1
+ {"version":3,"file":"hookTimeouts.d.ts","sourceRoot":"","sources":["../src/hookTimeouts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,2FAA2F;AAC3F,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAIxF"}
@@ -34,8 +34,14 @@ export const FETCH_TIMEOUT_MS = 2000;
34
34
  export const TELEMETRY_TIMEOUT_MS = 500;
35
35
  /** PostToolUse / track-ide-edit budget. Faster than FETCH because it's fire-and-forget. */
36
36
  export const POST_TOOL_TIMEOUT_MS = 1500;
37
- /** beforeMCPExecution gate budget. Same as FETCH today; documented separately so it can move independently. */
38
- export const MCP_PRECHECK_TIMEOUT_MS = 2000;
37
+ /**
38
+ * beforeMCPExecution gate budget. This is the ONLY synchronous, user-facing
39
+ * gate — the user waits on it before every MCP tool call — so it fails open
40
+ * faster than the background critical fetch (FETCH_TIMEOUT_MS = 2000). A
41
+ * precheck slower than 1s is not worth blocking the tool call for; on a
42
+ * degraded server we drop the gate rather than stall the user.
43
+ */
44
+ export const MCP_PRECHECK_TIMEOUT_MS = 1000;
39
45
  /**
40
46
  * Spawn an `AbortController` tied to a timeout. Returns the signal plus a
41
47
  * `cleanup` function the caller MUST invoke (in `finally`) to clear the
@@ -1 +1 @@
1
- {"version":3,"file":"hookTimeouts.js","sourceRoot":"","sources":["../src/hookTimeouts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;GAe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MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;AACnE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemonik/shared",
3
- "version": "6.12.6",
3
+ "version": "6.13.1",
4
4
  "description": "Shared constants and utilities for Mnemonik packages",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -38,8 +38,14 @@ export const TELEMETRY_TIMEOUT_MS = 500;
38
38
  /** PostToolUse / track-ide-edit budget. Faster than FETCH because it's fire-and-forget. */
39
39
  export const POST_TOOL_TIMEOUT_MS = 1500;
40
40
 
41
- /** beforeMCPExecution gate budget. Same as FETCH today; documented separately so it can move independently. */
42
- export const MCP_PRECHECK_TIMEOUT_MS = 2000;
41
+ /**
42
+ * beforeMCPExecution gate budget. This is the ONLY synchronous, user-facing
43
+ * gate — the user waits on it before every MCP tool call — so it fails open
44
+ * faster than the background critical fetch (FETCH_TIMEOUT_MS = 2000). A
45
+ * precheck slower than 1s is not worth blocking the tool call for; on a
46
+ * degraded server we drop the gate rather than stall the user.
47
+ */
48
+ export const MCP_PRECHECK_TIMEOUT_MS = 1000;
43
49
 
44
50
  /**
45
51
  * Spawn an `AbortController` tied to a timeout. Returns the signal plus a