The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix: remove useless escape characters in regex patterns (no-useless-escape ESLint)
Pangerkumzuk Longkumerd54124afad97
diff --git a/scripts/lib/package-manager.js b/scripts/lib/package-manager.jsindex c12537f05..7eefc3c98 100644--- a/scripts/lib/package-manager.js+++ b/scripts/lib/package-manager.js@@ -282,7 +282,7 @@ function setProjectPackageManager(pmName, projectDir = process.cwd()) {// Allowed characters in script/binary names: alphanumeric, dash, underscore, dot, slash, @// This prevents shell metacharacter injection while allowing scoped packages (e.g., @scope/pkg)-const SAFE_NAME_REGEX = /^[@a-zA-Z0-9_.\/-]+$/;+const SAFE_NAME_REGEX = /^[\[@a-zA-Z0-9_./-]+$/;/*** Get the command to run a script@@ -316,7 +316,7 @@ function getRunCommand(script, options = {}) {// Allowed characters in arguments: alphanumeric, whitespace, dashes, dots, slashes,// equals, colons, commas, quotes, @. Rejects shell metacharacters like ; | & ` $ ( ) { } < > !-const SAFE_ARGS_REGEX = /^[@a-zA-Z0-9\s_.\/:=,'"*+-]+$/;+const SAFE_ARGS_REGEX = /^[@a-zA-Z0-9\s_./:=,'"*+-]+$/;/*** Get the command to execute a package binary