@tpsdev-ai/flair 0.4.3 → 0.4.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -351,10 +351,15 @@ program
351
351
  console.log("If something is wrong, run: flair doctor");
352
352
  }
353
353
  else {
354
+ // Isolate install from any global Harper boot file.
355
+ // ~/.harperdb/hdb_boot_properties.file from an unrelated install
356
+ // causes checkForExistingInstall to crash in Harper v5 beta.6+.
357
+ // Only applied to install — run needs real HOME for npm/node resolution.
358
+ const installEnv = { ...env, HOME: join(dataDir, "..") };
354
359
  console.log("Installing Harper...");
355
360
  await new Promise((resolve, reject) => {
356
361
  let output = "";
357
- const install = spawn(process.execPath, [bin, "install"], { cwd: flairPackageDir(), env });
362
+ const install = spawn(process.execPath, [bin, "install"], { cwd: flairPackageDir(), env: installEnv });
358
363
  install.stdout?.on("data", (d) => { output += d.toString(); });
359
364
  install.stderr?.on("data", (d) => { output += d.toString(); });
360
365
  install.on("exit", (code) => code === 0 ? resolve() : reject(new Error(`Harper install failed (${code}): ${output}`)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpsdev-ai/flair",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Identity, memory, and soul for AI agents. Cryptographic identity (Ed25519), semantic memory with local embeddings, and persistent personality — all in a single process.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",