@cleocode/brain 2026.11.9 → 2026.11.10-rc.ci.727
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 +21 -13
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,30 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
> Part of [CLEO](https://github.com/kryptobaseddev/cleo#readme). Start with the root README; run `cleo <command> --help` for any command.
|
|
4
4
|
|
|
5
|
-
The unified-graph **Brain** substrate for CLEO
|
|
6
|
-
across
|
|
7
|
-
and **
|
|
5
|
+
The unified-graph **Brain** substrate for CLEO: a substrate-agnostic projection
|
|
6
|
+
across five substrates: **brain** (memory), **nexus** (code graph), **tasks**,
|
|
7
|
+
**conduit** (messages) and **agent-registry** (agents).
|
|
8
|
+
|
|
9
|
+
> **Known defect (T14583).** The adapters still open the legacy per-domain
|
|
10
|
+
> files (`brain.db`, `tasks.db`, `conduit.db` under the project `.cleo/`,
|
|
11
|
+
> `signaldock.db` and `nexus.db` under CLEO home). The live store is one
|
|
12
|
+
> `cleo.db` per scope with prefixed tables (`tasks_tasks`,
|
|
13
|
+
> `agent_registry_agents`, …); `tasks.db` and `brain.db` are decoys and
|
|
14
|
+
> `signaldock.db` is retired. Until T14583 lands, `getAllSubstrates()` reads
|
|
15
|
+
> stale or empty files.
|
|
8
16
|
|
|
9
17
|
## Purpose
|
|
10
18
|
|
|
11
19
|
`@cleocode/brain` promotes the unified-graph substrate from a studio-internal
|
|
12
20
|
module to a first-class workspace package, mirroring `@cleocode/nexus`. Operator
|
|
13
21
|
mandate per T962 reconciliation: BRAIN is the super-domain (wraps memory +
|
|
14
|
-
nexus + tasks + conduit +
|
|
15
|
-
standalone publish lane.
|
|
22
|
+
nexus + tasks + conduit + the agent registry), deserves CLI access, and needs a
|
|
23
|
+
package standalone publish lane.
|
|
16
24
|
|
|
17
25
|
## Substrates
|
|
18
26
|
|
|
19
27
|
Every node carries a substrate-prefixed ID so cross-substrate edges can
|
|
20
28
|
reference nodes unambiguously, e.g. `brain:O-abc` vs `nexus:sym-123`.
|
|
21
29
|
|
|
22
|
-
| Substrate
|
|
23
|
-
|
|
24
|
-
| `brain`
|
|
25
|
-
| `nexus`
|
|
26
|
-
| `tasks`
|
|
27
|
-
| `conduit`
|
|
28
|
-
| `
|
|
30
|
+
| Substrate | File the adapter opens today (see T14583) | Node kinds |
|
|
31
|
+
|------------------|-------------------------------------------|------------------------------------------|
|
|
32
|
+
| `brain` | `brain.db` (project) | observation, decision, pattern, learning |
|
|
33
|
+
| `nexus` | `nexus.db` (global) | symbol, file |
|
|
34
|
+
| `tasks` | `tasks.db` (project) | task, session |
|
|
35
|
+
| `conduit` | `conduit.db` (project) | message |
|
|
36
|
+
| `agent-registry` | `signaldock.db` (global) | agent |
|
|
29
37
|
|
|
30
38
|
## Usage
|
|
31
39
|
|
|
@@ -42,8 +50,8 @@ Individual substrate adapters are exported from `@cleocode/brain/adapters`:
|
|
|
42
50
|
import {
|
|
43
51
|
getBrainSubstrate,
|
|
44
52
|
getConduitSubstrate,
|
|
53
|
+
getAgentRegistrySubstrate,
|
|
45
54
|
getNexusSubstrate,
|
|
46
|
-
getSignaldockSubstrate,
|
|
47
55
|
getTasksSubstrate,
|
|
48
56
|
} from '@cleocode/brain/adapters';
|
|
49
57
|
```
|