nofax 0.2.14 → 0.2.15
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 +2 -4
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.15' },
|
|
78
78
|
{ instructions: SERVER_INSTRUCTIONS }
|
|
79
79
|
);
|
|
80
80
|
|
package/src/protocol.mjs
CHANGED
|
@@ -171,13 +171,11 @@ export function redactAndBound(value, options = {}) {
|
|
|
171
171
|
: typeof value.key === 'string'
|
|
172
172
|
? value.key
|
|
173
173
|
: null;
|
|
174
|
-
const redactEntryValue = entryName !== null
|
|
175
|
-
&& Object.prototype.hasOwnProperty.call(value, 'value')
|
|
176
|
-
&& isSecretKey(entryName);
|
|
174
|
+
const redactEntryValue = entryName !== null && isSecretKey(entryName);
|
|
177
175
|
|
|
178
176
|
const out = {};
|
|
179
177
|
for (const [key, child] of Object.entries(value).slice(0, MAX_OBJECT_KEYS)) {
|
|
180
|
-
out[key] = isSecretKey(key) || (redactEntryValue && key === 'value')
|
|
178
|
+
out[key] = isSecretKey(key) || (redactEntryValue && (key === 'value' || key === 'values'))
|
|
181
179
|
? '[REDACTED]'
|
|
182
180
|
: redactAndBound(child, { seen, depth: depth + 1 });
|
|
183
181
|
}
|