@tpsdev-ai/flair 0.25.2 → 0.25.3

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 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 write "Harper v5 sandbox blocks node:module but process.dlopen works"
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
@@ -12767,6 +12767,14 @@ program
12767
12767
  // its Node-version check passes. The shim imports this module, so import.meta.main
12768
12768
  // is false there — without this explicit entry point the CLI would load but never run.
12769
12769
  async function runCli() {
12770
+ // A bare `flair` (no command) is a help request, not a usage error — show
12771
+ // help and exit 0, rather than commander's default (help + exit 1). Flags
12772
+ // like -h/--help/-v have argv beyond the binary and fall through to
12773
+ // commander, which already exits 0 for them.
12774
+ if (process.argv.length <= 2) {
12775
+ program.outputHelp();
12776
+ process.exit(0);
12777
+ }
12770
12778
  await program.parseAsync();
12771
12779
  }
12772
12780
  // 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.2",
3
+ "version": "0.25.3",
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",