@ cleocode/ 大脑
部分 平等机会委员会。从 root README 开始;运行
cleo <command> --help对于任何命令.
统一图 大脑 cLEO的底物-底物不可知性预测 覆盖所有5个CLEO数据库: 蓝, (中文(简体) ), 下一轮, (中文(简体) ), 塔斯语, (中文(简体) ), 口号, (中文(简体) ), 财务报告和审定财务报表 签字。 。 。 .
目的
@cleocode/brain 从工作室内部推广统一图基底
模块到一等工作空间软件包,镜像 @cleocode/nexus运算符
按 T962 调节任务: BRAIN 是超域( 包内存 +)
连接+任务+管道+信号多克,值得CLI访问,需要包
独立发布道.
底线
每个节点都带有底部前缀的ID,所以跨底部边缘可以
明确提及节点,例如:. brain:O-abc 对 nexus:sym-123。 。 。 .
| 底盘 | 数据库 | 节点类型 |
|---|---|---|
brain | 大脑.db(项目) | 观察、决定、模式、学习 |
nexus | 链接.db(全球) | 符号, 文件 |
tasks | 任务.db(项目) | 任务,会话 |
conduit | 管道.db(项目) | 消息 |
signaldock | 信号dock.db(全球) | 代理人 |
使用量
import { getAllSubstrates, type BrainGraph } from '@cleocode/brain';
const graph: BrainGraph = getAllSubstrates({ limit: 500, minWeight: 0 });
console.log(`${graph.nodes.length} nodes across ${Object.keys(graph.counts.nodes).length} substrates`);
单个基底适配器导出自 @cleocode/brain/adapters数字 :
import {
getBrainSubstrate,
getConduitSubstrate,
getNexusSubstrate,
getSignaldockSubstrate,
getTasksSubstrate,
} from '@cleocode/brain/adapters';
线条格式
线条格式( 类型) BrainNode, (中文(简体) ), BrainEdge, (中文(简体) ), BrainGraph, (中文(简体) ),
BrainQueryOptions, (中文(简体) ), BrainStreamEvent)从顶层再出口
进入点。 见 src/types.ts 用于定义.
平行 合同镜像 生活状况
@cleocode/contracts/operations/brain (T968)用于方案-API
消费者。 它描述了大脑的HTTP线条格式. *操作
并且有意与这些运行时间类型(例如:.
合同 BrainNode 用途 type: string + 键 data,运行时间用途 kind: BrainNodeKind + 键 meta + 可选适配器 weight) (中文(简体) ).
命名
所有出口类型都带有 Brain* 前缀( e)BrainNode, (中文(简体) ), BrainEdge, (中文(简体) ),
BrainGraph, (中文(简体) ), BrainSubstrate, (中文(简体) ), BrainQueryOptions, (中文(简体) ), BrainStreamEvent, (中文(简体) ),
BrainConnectionStatus, (中文(简体) ), BrainNodeKindT973完成了LB* → Brain*
由T969套件提取开始重命名. 这个 LB* 前缀为无
以此软件包导出 .
许可证
麻省理工学院——见LICENSE.