nofax 0.2.29 → 0.2.30

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.29",
3
+ "version": "0.2.30",
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.29' },
77
+ { name: 'nofax', version: '0.2.30' },
78
78
  { instructions: SERVER_INSTRUCTIONS }
79
79
  );
80
80
 
package/src/protocol.mjs CHANGED
@@ -139,6 +139,20 @@ function redactSecretText(value) {
139
139
  }
140
140
  );
141
141
 
142
+ redacted = redacted.replace(
143
+ /(^|\s)(-u|--user|--proxy-user)(\s+|=)(["'])([^:\r\n"']*):([^\r\n"']+)\4/g,
144
+ (_match, prefix, flag, separator, quote, username) => (
145
+ `${prefix}${flag}${separator}${quote}${username}:[REDACTED]${quote}`
146
+ )
147
+ );
148
+
149
+ redacted = redacted.replace(
150
+ /(^|\s)(-u|--user|--proxy-user)(\s+|=)([^:\s"';&|]*):([^\s"';&|]+)/g,
151
+ (_match, prefix, flag, separator, username) => (
152
+ `${prefix}${flag}${separator}${username}:[REDACTED]`
153
+ )
154
+ );
155
+
142
156
  redacted = redacted.replace(
143
157
  /--([A-Za-z][A-Za-z0-9_-]{0,63})(\s+)(["'](?:.*?)["']|[^\s"'`,;&]+)/g,
144
158
  (match, key, separator) => isSecretKey(key)