chore(computer-use-mcp): remove all hardcoded file path

This commit is contained in:
Neko Ayaka
2026-04-11 05:13:55 +08:00
parent feb2055ed2
commit b18158bce2
9 changed files with 11 additions and 163 deletions
@@ -3,9 +3,8 @@ import type { RouteTargetExpression } from '@proj-airi/server-shared/types'
import type { AuthenticatedPeer } from '../../types'
function globToRegExp(glob: string) {
// eslint-disable-next-line e18e/prefer-static-regex
const escaped = glob.replace(/[.+^${}()|[\]\\]/g, '\\$&')
// eslint-disable-next-line e18e/prefer-static-regex
const pattern = `^${escaped.replace(/\*/g, '.*')}$`
return new RegExp(pattern)
}