New:Socket for Asana Is Now Available.Learn more
Get Started

@paretools/shared

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paretools/shared - npm Package Compare versions

Comparing version
0.6.0
to
0.7.0
+26
dist/tool-filter.d.ts
/**
* Granular tool selection — allows users to enable/disable individual tools
* via environment variables.
*
* Environment variable precedence:
* 1. `PARE_TOOLS` — universal filter across all servers.
* Format: comma-separated `server:tool` pairs.
* Example: `PARE_TOOLS=git:status,git:log,npm:install`
*
* 2. `PARE_{SERVER}_TOOLS` — per-server filter.
* Format: comma-separated tool names.
* Example: `PARE_GIT_TOOLS=status,log`
*
* 3. No env vars → all tools enabled (default).
*
* Universal (`PARE_TOOLS`) takes precedence over per-server env vars.
*/
/**
* Determines whether a tool should be registered based on environment variables.
*
* @param serverName - The server identifier (e.g., "git", "npm", "docker").
* @param toolName - The tool name (e.g., "status", "log", "install").
* @returns `true` if the tool should be registered, `false` if filtered out.
*/
export declare function shouldRegisterTool(serverName: string, toolName: string): boolean;
//# sourceMappingURL=tool-filter.d.ts.map
{"version":3,"file":"tool-filter.d.ts","sourceRoot":"","sources":["../src/tool-filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAiBhF"}
/**
* Granular tool selection — allows users to enable/disable individual tools
* via environment variables.
*
* Environment variable precedence:
* 1. `PARE_TOOLS` — universal filter across all servers.
* Format: comma-separated `server:tool` pairs.
* Example: `PARE_TOOLS=git:status,git:log,npm:install`
*
* 2. `PARE_{SERVER}_TOOLS` — per-server filter.
* Format: comma-separated tool names.
* Example: `PARE_GIT_TOOLS=status,log`
*
* 3. No env vars → all tools enabled (default).
*
* Universal (`PARE_TOOLS`) takes precedence over per-server env vars.
*/
/**
* Determines whether a tool should be registered based on environment variables.
*
* @param serverName - The server identifier (e.g., "git", "npm", "docker").
* @param toolName - The tool name (e.g., "status", "log", "install").
* @returns `true` if the tool should be registered, `false` if filtered out.
*/
export function shouldRegisterTool(serverName, toolName) {
const universal = process.env.PARE_TOOLS;
if (universal !== undefined) {
if (universal.trim() === "")
return false;
const allowed = universal.split(",").map((s) => s.trim());
return allowed.includes(`${serverName}:${toolName}`);
}
const envKey = `PARE_${serverName.toUpperCase().replace(/-/g, "_")}_TOOLS`;
const perServer = process.env[envKey];
if (perServer !== undefined) {
if (perServer.trim() === "")
return false;
const allowed = perServer.split(",").map((s) => s.trim());
return allowed.includes(toolName);
}
return true;
}
//# sourceMappingURL=tool-filter.js.map
{"version":3,"file":"tool-filter.js","sourceRoot":"","sources":["../src/tool-filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,UAAkB,EAAE,QAAgB;IACrE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;IACzC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QAC1C,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,UAAU,IAAI,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,UAAU,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC;IAC3E,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QAC1C,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
+1
-0

@@ -7,3 +7,4 @@ export { dualOutput, estimateTokens, compactDualOutput } from "./output.js";

export { sanitizeErrorOutput } from "./sanitize.js";
export { shouldRegisterTool } from "./tool-filter.js";
export type { ToolOutput } from "./types.js";
//# sourceMappingURL=index.d.ts.map
+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}

@@ -7,2 +7,3 @@ export { dualOutput, estimateTokens, compactDualOutput } from "./output.js";

export { sanitizeErrorOutput } from "./sanitize.js";
export { shouldRegisterTool } from "./tool-filter.js";
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,YAAY,EAAmC,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,YAAY,EAAmC,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}

@@ -6,2 +6,6 @@ /** Options for the command runner, including working directory, timeout, and environment overrides. */

env?: Record<string, string>;
/** Data to write to the child process's stdin. Useful for piping content
* (e.g., `git commit --file -`) instead of passing it as a command arg,
* which avoids cmd.exe argument-length and newline limitations on Windows. */
stdin?: string;
}

@@ -17,15 +21,17 @@ /** Result of a command execution, containing the exit code and ANSI-stripped stdout/stderr. */

*
* When `shell: true` is used with `execFile` on Windows, Node.js wraps each
* argument in double quotes. Inside double quotes cmd.exe still interprets:
* - `%VAR%` for environment variable expansion
* - `^` as the escape character itself
* - `&`, `|`, `<`, `>` as pipeline / redirection operators
* When `shell: true` is used with `execFile` on Windows, Node.js joins the
* command and args with spaces to build a cmd.exe command line. It does NOT
* automatically quote individual arguments, so args containing spaces would
* be split into multiple tokens by cmd.exe.
*
* We neutralise these by:
* 1. Replacing `%` with `%%` (disables env-var expansion inside quotes).
* 2. Prefixing `^`, `&`, `|`, `<`, `>`, `!` with the cmd.exe escape char `^`.
* (`!` must be escaped to prevent delayed expansion of `!VAR!`.)
* Strategy:
* - Args with spaces, tabs, or double quotes are wrapped in double quotes.
* Inside double quotes cmd.exe treats `&`, `|`, `<`, `>`, `^` as literal,
* so only `%` needs escaping (`%%`). Internal `"` chars are doubled (`""`).
* - Args without spaces are left unquoted, with cmd.exe metacharacters
* escaped via the caret (`^`) prefix.
* - `%` → `%%` is applied unconditionally (active in both quoted/unquoted).
*
* Parentheses `(` `)` are NOT escaped here because inside double-quoted
* strings they are literal characters and do not affect grouping.
* Parentheses `(` `)` are NOT escaped because inside double-quoted strings
* they are literal, and outside quotes they rarely appear in tool args.
*/

@@ -32,0 +38,0 @@ export declare function escapeCmdArg(arg: string): string;

@@ -1,1 +0,1 @@

{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAIA,uGAAuG;AACvG,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED,+FAA+F;AAC/F,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBhD;AAED;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAkEtF"}
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAIA,uGAAuG;AACvG,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B;;mFAE+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+FAA+F;AAC/F,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CA8BhD;AAED;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAyEtF"}

@@ -7,22 +7,36 @@ import { execFile } from "node:child_process";

*
* When `shell: true` is used with `execFile` on Windows, Node.js wraps each
* argument in double quotes. Inside double quotes cmd.exe still interprets:
* - `%VAR%` for environment variable expansion
* - `^` as the escape character itself
* - `&`, `|`, `<`, `>` as pipeline / redirection operators
* When `shell: true` is used with `execFile` on Windows, Node.js joins the
* command and args with spaces to build a cmd.exe command line. It does NOT
* automatically quote individual arguments, so args containing spaces would
* be split into multiple tokens by cmd.exe.
*
* We neutralise these by:
* 1. Replacing `%` with `%%` (disables env-var expansion inside quotes).
* 2. Prefixing `^`, `&`, `|`, `<`, `>`, `!` with the cmd.exe escape char `^`.
* (`!` must be escaped to prevent delayed expansion of `!VAR!`.)
* Strategy:
* - Args with spaces, tabs, or double quotes are wrapped in double quotes.
* Inside double quotes cmd.exe treats `&`, `|`, `<`, `>`, `^` as literal,
* so only `%` needs escaping (`%%`). Internal `"` chars are doubled (`""`).
* - Args without spaces are left unquoted, with cmd.exe metacharacters
* escaped via the caret (`^`) prefix.
* - `%` → `%%` is applied unconditionally (active in both quoted/unquoted).
*
* Parentheses `(` `)` are NOT escaped here because inside double-quoted
* strings they are literal characters and do not affect grouping.
* Parentheses `(` `)` are NOT escaped because inside double-quoted strings
* they are literal, and outside quotes they rarely appear in tool args.
*/
export function escapeCmdArg(arg) {
// Step 1: Escape % → %% to prevent %VAR% expansion
// Step 1: Escape % → %% to prevent %VAR% expansion (works quoted & unquoted)
let escaped = arg.replace(/%/g, "%%");
// Step 2: Caret-escape cmd.exe metacharacters that are dangerous
// even inside double quotes. The caret itself must be escaped first
// so that carets we insert are not themselves re-escaped.
// Step 2: If the arg contains spaces, tabs, or double quotes, wrap it in
// double quotes so cmd.exe keeps it as a single token.
if (/[ \t"]/.test(arg)) {
// Replace newlines with spaces — cmd.exe treats \n as a command-line
// terminator even inside double quotes, so literal newlines cannot be
// passed via command args. Tools that need newline-preserving input
// should use RunOptions.stdin instead (e.g., git commit --file -).
escaped = escaped.replace(/\r?\n/g, " ");
// Escape internal double quotes by doubling them
escaped = escaped.replace(/"/g, '""');
return `"${escaped}"`;
}
// Step 3: For unquoted args, caret-escape cmd.exe metacharacters.
// The caret itself must be escaped first so that carets we insert
// are not themselves re-escaped.
escaped = escaped.replace(/\^/g, "^^");

@@ -33,3 +47,3 @@ escaped = escaped.replace(/&/g, "^&");

escaped = escaped.replace(/>/g, "^>");
// Step 3: Escape ! to prevent delayed expansion (!VAR!)
// Step 4: Escape ! to prevent delayed expansion (!VAR!)
escaped = escaped.replace(/!/g, "^!");

@@ -53,3 +67,3 @@ return escaped;

const safeArgs = process.platform === "win32" ? args.map(escapeCmdArg) : args;
execFile(cmd, safeArgs, {
const child = execFile(cmd, safeArgs, {
cwd: opts?.cwd,

@@ -91,4 +105,10 @@ timeout: opts?.timeout ?? 60_000,

});
// Pipe stdin data if provided, then close the stream so the child
// process knows input is complete (e.g., `git commit --file -`).
if (opts?.stdin != null) {
child.stdin?.write(opts.stdin);
child.stdin?.end();
}
});
}
//# sourceMappingURL=runner.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"runner.js","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAgBpD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,mDAAmD;IACnD,IAAI,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEtC,iEAAiE;IACjE,oEAAoE;IACpE,0DAA0D;IAC1D,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvC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6.0",
"version": "0.7.0",
"description": "Shared utilities for Pare MCP servers",

@@ -5,0 +5,0 @@ "license": "MIT",