@tpsdev-ai/flair 0.4.4 → 0.4.6
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/dist/cli.js +6 -10
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -333,17 +333,8 @@ program
|
|
|
333
333
|
localStudio: { enabled: false },
|
|
334
334
|
authentication: { authorizeLocal: true, enableSessions: true },
|
|
335
335
|
});
|
|
336
|
-
// Isolate from any global Harper install. Harper's installer reads
|
|
337
|
-
// ~/.harperdb/hdb_boot_properties.file to detect prior installs —
|
|
338
|
-
// if one exists (unrelated to flair), checkForExistingInstall crashes
|
|
339
|
-
// in beta.6+ querying databases with an uninitialized env. Setting
|
|
340
|
-
// HOME to flair's own dir prevents the subprocess from seeing the
|
|
341
|
-
// global boot file. Flair never uses the boot file (relies on
|
|
342
|
-
// ROOTPATH), so this is safe.
|
|
343
|
-
const flairHome = join(dataDir, ".."); // ~/.flair
|
|
344
336
|
const env = {
|
|
345
337
|
...process.env,
|
|
346
|
-
HOME: flairHome,
|
|
347
338
|
ROOTPATH: dataDir,
|
|
348
339
|
HARPER_SET_CONFIG: harperSetConfig,
|
|
349
340
|
DEFAULTS_MODE: "dev",
|
|
@@ -360,10 +351,15 @@ program
|
|
|
360
351
|
console.log("If something is wrong, run: flair doctor");
|
|
361
352
|
}
|
|
362
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, "..") };
|
|
363
359
|
console.log("Installing Harper...");
|
|
364
360
|
await new Promise((resolve, reject) => {
|
|
365
361
|
let output = "";
|
|
366
|
-
const install = spawn(process.execPath, [bin, "install"], { cwd: flairPackageDir(), env });
|
|
362
|
+
const install = spawn(process.execPath, [bin, "install"], { cwd: flairPackageDir(), env: installEnv });
|
|
367
363
|
install.stdout?.on("data", (d) => { output += d.toString(); });
|
|
368
364
|
install.stderr?.on("data", (d) => { output += d.toString(); });
|
|
369
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
|
+
"version": "0.4.6",
|
|
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",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"node": ">=22"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@harperfast/harper": "5.0.0-beta.
|
|
51
|
+
"@harperfast/harper": "5.0.0-beta.8",
|
|
52
52
|
"commander": "14.0.3",
|
|
53
|
-
"harper-fabric-embeddings": "
|
|
53
|
+
"harper-fabric-embeddings": "0.2.2",
|
|
54
54
|
"tweetnacl": "1.0.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "24.11.0",
|
|
58
|
-
"bun-types": "
|
|
58
|
+
"bun-types": "1.3.11",
|
|
59
59
|
"typescript": "5.9.3"
|
|
60
60
|
},
|
|
61
61
|
"trustedDependencies": [
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"plugins/*"
|
|
67
67
|
],
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@node-llama-cpp/mac-arm64-metal": "
|
|
69
|
+
"@node-llama-cpp/mac-arm64-metal": "3.18.1"
|
|
70
70
|
}
|
|
71
71
|
}
|