Skip to content

ast-guard@2.1.0

Choose a tag to compare

@github-actions github-actions released this 06 Jan 14:12
· 44 commits to main since this release
ea85dbf

ast-guard v2.1.0

📦 npm: ast-guard@2.1.0


Added

  • Introduced ResourceExhaustionRule to detect BigInt exponentiation with huge exponents, oversized array constructors, string repeat/join bombs, and constructor/property obfuscation attempts (libs/ast-guard/src/rules/resource-exhaustion.rule.ts:1-239).
  • AgentScript preset now enables ResourceExhaustionRule with sane defaults so DoS-style scripts are blocked by default and the rule is exported for custom presets (libs/ast-guard/src/presets/agentscript.preset.ts:434-447; libs/ast-guard/src/rules/index.ts:5-23).