nofax 0.2.27 → 0.2.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nofax",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "mcpName": "io.github.AKzar1el/nofax",
5
5
  "description": "Human-in-the-loop approvals and notifications for AI coding agents via CLI, MCP, and agent hooks.",
6
6
  "type": "module",
@@ -74,7 +74,7 @@ const LIST_PENDING_OUTPUT_SCHEMA = z.object({
74
74
 
75
75
  export function buildMcpServer({ handlers = createMcpToolHandlers() } = {}) {
76
76
  const server = new McpServer(
77
- { name: 'nofax', version: '0.2.27' },
77
+ { name: 'nofax', version: '0.2.29' },
78
78
  { instructions: SERVER_INSTRUCTIONS }
79
79
  );
80
80
 
package/src/protocol.mjs CHANGED
@@ -49,11 +49,15 @@ function isSecretKey(key) {
49
49
  const normalized = normalizeSecretKeyName(key);
50
50
  const lower = normalized.toLowerCase();
51
51
  const isAuthHeader = lower === 'auth_header' || lower.endsWith('_auth_header');
52
+ const isAuthHeaderValue = lower === 'auth_header_value'
53
+ || lower.endsWith('_auth_header_value')
54
+ || lower === 'auth_header_values'
55
+ || lower.endsWith('_auth_header_values');
52
56
  const isPassphrase = lower === 'passphrase'
53
57
  || lower === 'pass_phrase'
54
58
  || lower.endsWith('_passphrase')
55
59
  || lower.endsWith('_pass_phrase');
56
- return lower === 'auth' || isAuthHeader || isPassphrase || SECRET_KEY.test(normalized);
60
+ return lower === 'auth' || isAuthHeader || isAuthHeaderValue || isPassphrase || SECRET_KEY.test(normalized);
57
61
  }
58
62
 
59
63
  function redactSecretText(value) {
@@ -105,7 +109,7 @@ function redactSecretText(value) {
105
109
  );
106
110
 
107
111
  redacted = redacted.replace(
108
- /([?&])([A-Za-z][A-Za-z0-9_-]{0,63})=([^&\s"'`,;]+)/g,
112
+ /([?&#])([A-Za-z][A-Za-z0-9_-]{0,63})=([^&\s"'`,;]+)/g,
109
113
  (match, prefix, key) => isSecretKey(key)
110
114
  ? `${prefix}${key}=[REDACTED]`
111
115
  : match