github qybaihe/bla v3.1.2
bla-agents v3.1.2

19 days ago

What's Changed in v3.1.2

1. Deep Fix for SQLite & .db Directory Protection (#130, #142)

  • src/core/detector.ts: Require SQLite format 3\0 magic bytes for generic .db files while keeping unambiguous .sqlite and .sqlite3 in the extension fallback so corrupt SQLite files still fail closed while non-SQLite .db runtime files (JSON/hex state, LevelDB, etc.) pass through as "unknown".
  • src/shields/weave/weave-decoy.ts: Filter out .db files whose detectArtifactFormat is "unknown" in walkWeaveCandidateFiles so non-SQLite .db files do not downgrade WeavePlan.overallStatus.
  • src/shields/formats/sqlite.ts: Support WITHOUT ROWID tables and BigInt values in snapshotBusinessTables.
  • src/engine/protector.ts: Clean up newly created partial output directories when directory-mode protectTarget fails on a child artifact, skip symlinks and .bla-hardened/__pycache__/.hg/.svn, and forward all ProtectionOptions.

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 strict enum, minimum, array, and items.type validation in validateMcpToolArguments (#137).
  • Config Validation (src/core/config.ts): Validate sidecarEntangle and requireAgentWeave in .blarc and validate existing configs in resolveProjectSeed and initBlaConfig.
  • Custom outputDirectory Safety (src/engine/harden.ts, src/core/output-path.ts): Exclude custom outputDirectory from discoverHardenTargets and reject project-root or project-relative .git/node_modules output directories.
  • CLI/MCP Lint Gate Parity (src/cli.ts, src/mcp/server.ts): Expose plaintextSecrets, integrityCoverage, and bindScope in bla lint --json detailCounts and add --allow-plaintext-string, --allow-single-point-integrity, and --allow-missing-bind-runtime to bla lint / bla_lint.
  • Manifest Artifact Hash Verification (src/core/manifest-verify.ts, src/cli.ts): Verify adjacent regular-file or --artifact SHA-256 digests against manifest.protectedSha256.
  • Website & CI Hardening: Add scripts/verify-website.mjs covering all 7 HTML pages, CSP headers, and internal links/anchors, and enforce least-privilege workflow permissions (#114, #115, #116).

🤖 Generated with Claude Code

Don't miss a new bla release

NewReleases is sending notifications on new releases.