nofax 0.2.16 → 0.2.17
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 +1 -1
- package/src/mcp-server.mjs +1 -1
- package/src/protocol.mjs +9 -12
package/package.json
CHANGED
package/src/mcp-server.mjs
CHANGED
|
@@ -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.
|
|
77
|
+
{ name: 'nofax', version: '0.2.17' },
|
|
78
78
|
{ instructions: SERVER_INSTRUCTIONS }
|
|
79
79
|
);
|
|
80
80
|
|
package/src/protocol.mjs
CHANGED
|
@@ -164,18 +164,15 @@ export function redactAndBound(value, options = {}) {
|
|
|
164
164
|
return [boundString(value[0]), '[REDACTED]'];
|
|
165
165
|
}
|
|
166
166
|
const bounded = value.slice(0, MAX_ARRAY);
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
&&
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
));
|
|
177
|
-
}
|
|
178
|
-
return bounded.map((item) => redactAndBound(item, { seen, depth: depth + 1 }));
|
|
167
|
+
const pairedLength = bounded.length - (bounded.length % 2);
|
|
168
|
+
return bounded.map((item, index) => (
|
|
169
|
+
index < pairedLength
|
|
170
|
+
&& index % 2 === 1
|
|
171
|
+
&& typeof bounded[index - 1] === 'string'
|
|
172
|
+
&& isSecretKey(bounded[index - 1])
|
|
173
|
+
? '[REDACTED]'
|
|
174
|
+
: redactAndBound(item, { seen, depth: depth + 1 })
|
|
175
|
+
));
|
|
179
176
|
}
|
|
180
177
|
|
|
181
178
|
const entryName = typeof value.name === 'string'
|