Repository navigation
bla-agents v3.1.2
What's Changed in v3.1.2
1. Deep Fix for SQLite & .db Directory Protection (#130, #142)
src/core/detector.ts: RequireSQLite format 3\0magic bytes for generic.dbfiles while keeping unambiguous.sqliteand.sqlite3in the extension fallback so corrupt SQLite files still fail closed while non-SQLite.dbruntime files (JSON/hex state, LevelDB, etc.) pass through as"unknown".src/shields/weave/weave-decoy.ts: Filter out.dbfiles whosedetectArtifactFormatis"unknown"inwalkWeaveCandidateFilesso non-SQLite.dbfiles do not downgradeWeavePlan.overallStatus.src/shields/formats/sqlite.ts: SupportWITHOUT ROWIDtables andBigIntvalues insnapshotBusinessTables.src/engine/protector.ts: Clean up newly created partial output directories when directory-modeprotectTargetfails on a child artifact, skip symlinks and.bla-hardened/__pycache__/.hg/.svn, and forward allProtectionOptions.
2. Hardening Engine, CLI, MCP, and CI Improvements (#114, #115, #116, #129, #137, #142)
- AST-Safe String Encryption (
src/engine/encrypt-strings.ts): Replace.split(p).join(call)with Babel AST span replacement, encrypt 0-substitution backtick template literals, and skip already-encrypted files (#129). - MCP Input Schema Validation (
src/mcp/server.ts): Enforce strictenum,minimum,array, anditems.typevalidation invalidateMcpToolArguments(#137). - Config Validation (
src/core/config.ts): ValidatesidecarEntangleandrequireAgentWeavein.blarcand validate existing configs inresolveProjectSeedandinitBlaConfig. - Custom
outputDirectorySafety (src/engine/harden.ts,src/core/output-path.ts): Exclude customoutputDirectoryfromdiscoverHardenTargetsand reject project-root or project-relative.git/node_modulesoutput directories. - CLI/MCP Lint Gate Parity (
src/cli.ts,src/mcp/server.ts): ExposeplaintextSecrets,integrityCoverage, andbindScopeinbla lint --jsondetailCountsand add--allow-plaintext-string,--allow-single-point-integrity, and--allow-missing-bind-runtimetobla lint/bla_lint. - Manifest Artifact Hash Verification (
src/core/manifest-verify.ts,src/cli.ts): Verify adjacent regular-file or--artifactSHA-256 digests againstmanifest.protectedSha256. - Website & CI Hardening: Add
scripts/verify-website.mjscovering all 7 HTML pages, CSP headers, and internal links/anchors, and enforce least-privilege workflow permissions (#114, #115, #116).
🤖 Generated with Claude Code