@tpsdev-ai/flair 0.55.2 → 0.56.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.
- package/README.md +3 -3
- package/dist/bridges/builtins/markdown.js +2 -2
- package/dist/bridges/discover.js +2 -2
- package/dist/bridges/runtime/allow-list.js +2 -2
- package/dist/build-info.json +3 -3
- package/dist/cli.js +10 -12
- package/dist/commands/attention.js +2 -2
- package/dist/commands/backup.js +2 -2
- package/dist/commands/doctor.js +39 -28
- package/dist/commands/export.js +2 -2
- package/dist/commands/federation.js +185 -38
- package/dist/commands/hook.js +4 -4
- package/dist/commands/init.js +30 -8
- package/dist/commands/mcp.js +2 -2
- package/dist/commands/migrate-harness-memory.js +8 -8
- package/dist/commands/rem.js +2 -2
- package/dist/commands/service.js +25 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/uninstall.js +2 -2
- package/dist/commands/upgrade.js +3 -3
- package/dist/doctor-client.js +5 -23
- package/dist/engine-version.js +2 -2
- package/dist/federation/scheduler.js +5 -5
- package/dist/install/clients.js +5 -10
- package/dist/keystore.js +10 -2
- package/dist/lib/auth-resolve.js +5 -5
- package/dist/lib/doctor-config-path.js +2 -2
- package/dist/lib/flair-paths.js +29 -0
- package/dist/lib/home.js +60 -0
- package/dist/lib/launchd-repair.js +6 -0
- package/dist/lib/mcp-enable.js +4 -4
- package/dist/lib/owned-pins.js +1 -13
- package/dist/lib/socket-path-limit.js +120 -0
- package/dist/lib/uninstall-purge.js +2 -18
- package/dist/lib/upgrade-plain-tree.js +2 -2
- package/dist/mcp-client-assertion.js +3 -3
- package/dist/rem/runner.js +3 -3
- package/dist/rem/scheduler.js +5 -5
- package/dist/rem/snapshot.js +2 -2
- package/dist/resources/OAuth.js +62 -11
- package/dist/resources/Presence.js +135 -47
- package/dist/resources/admin-layout.js +7 -2
- package/dist/resources/memory-reflect-lib.js +17 -1
- package/dist/src/keystore.js +10 -2
- package/dist/src/lib/home.js +60 -0
- package/dist/src/rem/scheduler.js +5 -5
- package/dist/version-check.js +2 -2
- package/dist/version-handshake.js +2 -2
- package/docs/api-reference.md +31 -6
- package/docs/auth.md +14 -2
- package/docs/deploying-on-fabric.md +5 -4
- package/docs/deployment.md +26 -37
- package/docs/embedding-in-a-harper-app.md +4 -2
- package/docs/entity-vocabulary.md +5 -5
- package/docs/federation.md +39 -19
- package/docs/hosted-on-fabric.md +7 -5
- package/docs/mcp-clients.md +29 -12
- package/docs/spoke-bringup.md +41 -22
- package/docs/standalone-local.md +12 -16
- package/package.json +1 -1
package/docs/standalone-local.md
CHANGED
|
@@ -79,27 +79,21 @@ All configuration lives in `~/.flair/`:
|
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
~/.flair/
|
|
82
|
-
├── config.yaml # port,
|
|
83
|
-
├── data/ # Harper database (RocksDB)
|
|
82
|
+
├── config.yaml # port, opsPort, opsBind, httpBind
|
|
83
|
+
├── data/ # Harper database (RocksDB); harper-config.yaml lives here
|
|
84
84
|
├── keys/ # Ed25519 keypairs per agent (mode 0600)
|
|
85
85
|
└── backups/ # flair backup output
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
### Key config options (`~/.flair/config.yaml`)
|
|
89
89
|
|
|
90
|
-
Flair
|
|
91
|
-
block, and no `http.host` (see [`deployment.md` — Direct network access](deployment.md#direct-network-access) for widening):
|
|
90
|
+
Flair reads four top-level keys from this file: `port`, `opsPort`, `opsBind`, and `httpBind`. There is no nested `http:` block and no `http.host`. `flair init` rewrites the file and drops every other key, so a `clustering:` or `logging:` block placed here does not survive and is not read. Embedding settings are the environment variables below, not keys in this file. Widening the HTTP listener is covered in [`deployment.md` — Direct network access](deployment.md#direct-network-access).
|
|
92
91
|
|
|
93
92
|
```yaml
|
|
94
|
-
port: 19926
|
|
93
|
+
port: 19926
|
|
94
|
+
opsPort: 19925 # Harper operations API port
|
|
95
|
+
opsBind: 127.0.0.1 # operations API bind host
|
|
95
96
|
httpBind: 127.0.0.1 # HTTP bind host; 0.0.0.0 widens (must include IPv4 loopback)
|
|
96
|
-
|
|
97
|
-
clustering:
|
|
98
|
-
nodeName: flair
|
|
99
|
-
|
|
100
|
-
logging:
|
|
101
|
-
level: warn
|
|
102
|
-
stdStreams: true
|
|
103
97
|
```
|
|
104
98
|
|
|
105
99
|
### Environment variables
|
|
@@ -110,7 +104,7 @@ logging:
|
|
|
110
104
|
| `HDB_ADMIN_PASSWORD` | Bootstrap password for the embedded Harper. After first start, the persisted user record is the source of truth. | Set at install time. See [secrets-and-keys.md](secrets-and-keys.md) for rotation. |
|
|
111
105
|
| `FLAIR_KEY_PASSPHRASE` | Passphrase for AES-256-GCM encryption of federation private-key seeds. | Set explicitly for production federation deployments. |
|
|
112
106
|
| `FLAIR_URL` | Override the Flair base URL for CLI commands (points to a remote instance). | When connecting from a different machine. |
|
|
113
|
-
| `FLAIR_HTTP_BIND` | HTTP API bind host.
|
|
107
|
+
| `FLAIR_HTTP_BIND` | HTTP API bind host. On start, restart, and upgrade: this variable, then top-level `httpBind` in `~/.flair/config.yaml`, then `127.0.0.1`. `flair init --http-bind` writes that key. On Linux the CLI resolves this on every start, and an env var in the service's environment overrides the file. On macOS the resolved bind is stored in the launchd job instead of being re-read on the launchd reload path: any restart that goes through it — `flair restart` included, and a restart launchd starts itself (a reboot, a crash, KeepAlive) — reuses that stored value and does not re-read this variable or the file; only `flair init` writes it. Only `127.0.0.1` or a wildcard (`0.0.0.0` / `::`) is accepted. | When the HTTP API must be reachable off-host; prefer recording it once with `flair init --http-bind 0.0.0.0`. See [deployment.md](deployment.md#direct-network-access). |
|
|
114
108
|
| `FLAIR_EMBED_THREADS` | CPU threads for in-process embedding. Default is `max(1, availableParallelism() − 1)` — host-aware, one core left for Harper. | Pin a positive integer on a dedicated ingest host, or when the default leaves cores idle / oversubscribed. See [deployment.md](deployment.md#performance-related-environment-variables). |
|
|
115
109
|
| `FLAIR_EMBED_GPU_LAYERS` | GPU layers to offload. Unset derives Metal (`99`) on Apple Silicon with a usable Metal prebuilt, else CPU (`0`). Stated on `/Health`. | Pin CPU with `0` on a Metal Mac, or force a layer count. See [deployment.md](deployment.md#performance-related-environment-variables). |
|
|
116
110
|
| `FLAIR_HYBRID_RETRIEVAL` | Hybrid BM25 + vector retrieval (default on). | Set `false` to revert to HNSW-only. |
|
|
@@ -227,15 +221,17 @@ Available. Pair a local instance as a hub or spoke with another Flair instance:
|
|
|
227
221
|
|
|
228
222
|
```bash
|
|
229
223
|
# On the hub — generate a one-time pairing token triple
|
|
230
|
-
FLAIR_ADMIN_PASS
|
|
224
|
+
(umask 077; set -C; FLAIR_ADMIN_PASS="$(cat ~/.flair/admin-pass)" flair federation token > triple.json)
|
|
231
225
|
|
|
232
|
-
# On the spoke —
|
|
233
|
-
flair federation pair <hub-url> --token-from ./triple.json
|
|
226
|
+
# On the spoke — its own admin password writes the local Peer row
|
|
227
|
+
FLAIR_ADMIN_PASS="$(cat ~/.flair/admin-pass)" flair federation pair <hub-url> --token-from ./triple.json
|
|
234
228
|
|
|
235
229
|
# Sync (one-shot)
|
|
236
230
|
flair federation sync --admin-pass-file ~/.flair/admin-pass
|
|
237
231
|
```
|
|
238
232
|
|
|
233
|
+
`set -C` refuses an existing `triple.json`; remove an old one first (`rm triple.json`).
|
|
234
|
+
|
|
239
235
|
Full walkthrough: [federation.md](federation.md).
|
|
240
236
|
|
|
241
237
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpsdev-ai/flair",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
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",
|