@tpsdev-ai/flair-client 0.51.2 → 0.52.0

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/README.md +10 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -55,18 +55,21 @@ await flair.memory.delete('my-agent-1234567890')
55
55
 
56
56
  ## Soul API
57
57
 
58
- ```ts
59
- // Set personality/values
60
- await flair.soul.set('role', 'Security reviewer, meticulous and skeptical')
61
- await flair.soul.set('tone', 'Direct, technical, no fluff')
58
+ Soul writes require operator credentials. `flair.soul.set(...)` signs with
59
+ Ed25519 and now returns 403, including for admin-agent keys. Read is unchanged.
62
60
 
63
- // Read
61
+ ```ts
64
62
  const role = await flair.soul.get('role')
65
-
66
- // List all
67
63
  const entries = await flair.soul.list()
68
64
  ```
69
65
 
66
+ Write Soul with the CLI (`--admin-pass` / `--admin-pass-file`) or operator REST
67
+ (Harper administrator Basic):
68
+
69
+ ```bash
70
+ flair soul set --agent my-agent --key role --value "Security reviewer" --admin-pass-file ~/.flair/admin-pass
71
+ ```
72
+
70
73
  ## Auth
71
74
 
72
75
  Flair uses Ed25519 signatures. The client auto-discovers your key from:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpsdev-ai/flair-client",
3
- "version": "0.51.2",
3
+ "version": "0.52.0",
4
4
  "description": "Lightweight client for Flair — identity, memory, and soul for AI agents. Zero heavy dependencies.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",