pi-hashline-edit-pro 0.17.8 → 0.17.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-hashline-edit-pro",
3
- "version": "0.17.8",
3
+ "version": "0.17.9",
4
4
  "type": "module",
5
5
  "description": "Strict hashline read/replace tool for pi-coding-agent with hash-anchored edits (3-char, 18-bit, perfect hashing)",
6
6
  "main": "index.ts",
package/src/hash-store.ts CHANGED
@@ -215,8 +215,11 @@ export async function loadHashStore(): Promise<HashStore> {
215
215
  if (BetterDatabase) {
216
216
  try {
217
217
  handle = openBetterDb(storePath);
218
- } catch (error) {
219
- console.error('better-sqlite3 native binding failed, falling back to sql.js:', error);
218
+ } catch {
219
+ const debug = process.env.PI_HASHLINE_DEBUG === "1" || process.env.PI_HASHLINE_DEBUG === "true";
220
+ if (debug) {
221
+ console.error('better-sqlite3 native binding failed, falling back to sql.js');
222
+ }
220
223
  BetterDatabase = null;
221
224
  await ensureSqlJs();
222
225
  handle = openSqlJsDb(storePath);