@tpsdev-ai/flair 0.25.2 → 0.25.4
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/README.md +3 -3
- package/dist/cli.js +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,11 +126,11 @@ Every agent has an Ed25519 key pair. Requests are signed with `agentId:timestamp
|
|
|
126
126
|
Memories are automatically embedded on write using [nomic-embed-text](https://huggingface.co/nomic-ai/nomic-embed-text-v1.5-GGUF) (768 dimensions). Search by meaning:
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
|
-
# Write a memory
|
|
130
|
-
flair memory
|
|
129
|
+
# Write a memory (--agent is your registered agent id)
|
|
130
|
+
flair memory add --agent myagent "Harper v5 sandbox blocks node:module but process.dlopen works"
|
|
131
131
|
|
|
132
132
|
# Find it later by concept, not exact words
|
|
133
|
-
flair memory search "native addon loading in sandboxed runtimes"
|
|
133
|
+
flair memory search --agent myagent "native addon loading in sandboxed runtimes"
|
|
134
134
|
# → [0.67] Harper v5 sandbox blocks node:module but process.dlopen works
|
|
135
135
|
```
|
|
136
136
|
|
package/dist/cli.js
CHANGED
|
@@ -8018,7 +8018,15 @@ program
|
|
|
8018
8018
|
{
|
|
8019
8019
|
name: "@tpsdev-ai/flair",
|
|
8020
8020
|
kind: "bin",
|
|
8021
|
-
|
|
8021
|
+
// Same PATH-independence fix as flair-mcp below: when `flair` isn't on
|
|
8022
|
+
// PATH (a custom npm prefix — mise/fnm/nvm/volta, or the sudo-less
|
|
8023
|
+
// user-prefix install the README recommends), the bin probe returns
|
|
8024
|
+
// null even though the package IS globally installed, and `flair
|
|
8025
|
+
// upgrade` mis-reports "not detected → run npm install -g". Fall back
|
|
8026
|
+
// to the lib probe, which require.resolves the package.json regardless
|
|
8027
|
+
// of PATH or `--version` support. (Canary's 0.25.3 dogfooding caught
|
|
8028
|
+
// this — the fallback existed for flair-mcp but not for flair itself.)
|
|
8029
|
+
probe: () => probeBinVersion(execFileSync, "flair") ?? probeLibVersion("@tpsdev-ai/flair"),
|
|
8022
8030
|
},
|
|
8023
8031
|
{
|
|
8024
8032
|
name: "@tpsdev-ai/flair-mcp",
|
|
@@ -12767,6 +12775,14 @@ program
|
|
|
12767
12775
|
// its Node-version check passes. The shim imports this module, so import.meta.main
|
|
12768
12776
|
// is false there — without this explicit entry point the CLI would load but never run.
|
|
12769
12777
|
async function runCli() {
|
|
12778
|
+
// A bare `flair` (no command) is a help request, not a usage error — show
|
|
12779
|
+
// help and exit 0, rather than commander's default (help + exit 1). Flags
|
|
12780
|
+
// like -h/--help/-v have argv beyond the binary and fall through to
|
|
12781
|
+
// commander, which already exits 0 for them.
|
|
12782
|
+
if (process.argv.length <= 2) {
|
|
12783
|
+
program.outputHelp();
|
|
12784
|
+
process.exit(0);
|
|
12785
|
+
}
|
|
12770
12786
|
await program.parseAsync();
|
|
12771
12787
|
}
|
|
12772
12788
|
// Run CLI directly when this file is the entry point — covers `node dist/cli.js`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpsdev-ai/flair",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.4",
|
|
4
4
|
"packageManager": "bun@1.3.10",
|
|
5
5
|
"description": "Identity, memory, and soul for AI agents. Cryptographic identity (Ed25519), semantic memory with local embeddings, and persistent personality — all in a single process.",
|
|
6
6
|
"type": "module",
|