v0.1.1 — pre-publish review fixes
Patch release addressing the v0.1.0 pre-publish review.
Added
gate.allows(string)shorthand — pass a tool-name string instead of{ type: name }._truncated: trueboolean at audit line root when truncation happens.- One-time stderr WARN when
humanChannelis unset and an ask/halt fires. - README "Common gotchas" section (allowlist-doesn't-silence-asks, glob
*over-matching/, humanChannel required for safe defaults, soft caps, serial gate calls).
Removed
Gate.fromConfig(config)—new Gate(config)is the only canonical form.
Docs
bareguard.context.mdversion line bumped to 0.1.1.
Tests
- 30 → 33 across Linux + macOS + Windows × Node 20 + 22 (CI matrix). All green.
See CHANGELOG for full notes.