Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .codex/hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch session-start --tool codex 2>/dev/null\" || true",
"additionalContextLimit": 0
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch stop --tool codex 2>/dev/null\" || true"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch post-tool-use --tool codex 2>/dev/null\" || true"
}
]
},
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch post-tool-use --tool codex --matcher Skill 2>/dev/null\" || true"
}
],
"matcher": "Skill"
},
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch post-tool-use --tool codex --matcher TodoWrite 2>/dev/null\" || true"
}
],
"matcher": "TodoWrite"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch prompt-submit --tool codex 2>/dev/null\" || true"
}
]
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch subagent-stop --tool codex 2>/dev/null\" || true"
}
]
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc \"teamai hook-dispatch subagent-start --tool codex 2>/dev/null\" || true",
"additionalContextLimit": 0
}
]
}
]
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ __pycache__/

# Local AI tool / agent workspaces (worktrees, scratch state)
.claude/
.codex/skills/
.gstack/
.worktrees/
.codebuddy/
.teamai/
# TeamAI-managed Copilot sync artifacts
.github/hooks/teamai.json
.github/skills/
Expand Down
34 changes: 34 additions & 0 deletions .teamai/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# teamai single-repo mode — machine-local state (never commit).
config.yaml
config.yaml.*.tmp
state.json
token
teamai.lock
.update-lock
.reports-lock
.learnings-lock
.bootstrap-lock
.sync-lock
env.sh
env.sh.exports.json
env.local
usage.jsonl
usage.jsonl.*
usage.pending-*.jsonl
known-skills.json
search-index.json
managed-mcp.json
workspaces/
dashboard/
reports-wt/
learnings-wt/
knowledge-wt/
pending-learnings/
members/
sessions/
votes/
stats/
pending-review.jsonl

# skills/, rules/, docs/, learnings/, env/, agents/, hooks/ and mcp/
# are shared team resources and are intentionally committed to main.
1 change: 1 addition & 0 deletions .teamai/agents/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions .teamai/docs/baseline/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3,189 changes: 3,189 additions & 0 deletions .teamai/docs/baseline/初始版本.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .teamai/docs/current/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

139 changes: 139 additions & 0 deletions .teamai/docs/current/当前版本.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
新gitbook三级目录

```text
1 开始了解 MEMO
├─ 1.1 欢迎与定位
│ ├─ 1.1.1 Agent 时代的可信状态层
│ ├─ 1.1.2 从 Data Layer 到 State Layer
├─ 1.2 产品地图
│ ├─ 1.2.1 MEMO Protocol:协议与网络底座
│ ├─ 1.2.2 MEMO Vault:Agent 状态存在哪里
│ ├─ 1.2.3 MEMO Agent Gateway:谁能做什么
│ ├─ 1.2.4 MEMO Proof:如何证明发生过
│ ├─ 1.2.5 MEFS:去中心化存储网络
│ ├─ 1.2.6 Data Wallet:用户身份、密钥与授权入口
│ ├─ 1.2.7 Data Market:数据与状态资产交付
│ └─ 1.2.8 Meeda:数据可用性与存储证明
└─ 1.3 按角色开始
├─ 1.3.1 Agent / 应用开发者
├─ 1.3.2 Storage Provider / 节点参与者
└─ 1.3.3 L2、企业与生态合作方

2 核心产品
├─ 2.1 MEMO Protocol:协议底座持续演进
│ ├─ 2.1.1 协议定位、网络角色与能力边界
│ ├─ 2.1.2 原六层协议与 Agent State Layer 的映射
│ └─ 2.1.3 Protocol 与 Vault / Gateway / Proof 的关系
├─ 2.2 MEMO Vault:基于 MEFS 的状态存储升级
│ ├─ 2.2.1 状态对象、命名空间与版本
│ ├─ 2.2.2 用户持钥、加密与密钥轮换
│ └─ 2.2.3 Local / Hosted / MEFS 存储后端
├─ 2.3 MEMO Agent Gateway:身份与访问能力升级
│ ├─ 2.3.1 用户身份、Agent 身份与委托关系
│ ├─ 2.3.2 授权策略、撤销与生命周期
│ └─ 2.3.3 MCP / REST / SDK 与签名回执
└─ 2.4 MEMO Proof:从存储证明到 Agent 证据
├─ 2.4.1 访问回执与审计根锚定
├─ 2.4.2 MEFS / Meeda 存储证明与挑战
└─ 2.4.3 Agent 记忆来源、运行证据与 ERC-7829

3 架构与状态模型
├─ 3.1 总体架构
│ ├─ 3.1.1 控制面、数据面与证明面
│ ├─ 3.1.2 六层 Agent State Layer
│ └─ 3.1.3 一次 Agent 请求的完整路径
├─ 3.2 状态模型与生命周期
│ ├─ 3.2.1 Memory、State Object 与 Artifact
│ ├─ 3.2.2 Checkpoint、Version 与 Trace
│ └─ 3.2.3 Memory Pack、Handoff 与迁移
└─ 3.3 信任边界
├─ 3.3.1 链上与链下边界
├─ 3.3.2 原文、密钥、承诺与证明
└─ 3.3.3 受控处理、外部副作用与失败语义

4 开发者指南
├─ 4.1 快速开始
│ ├─ 4.1.1 第一个可持续的 Agent 任务
│ ├─ 4.1.2 使用 SDK / REST 读写状态
│ └─ 4.1.3 错误处理、示例与验收
├─ 4.2 集成与适配
│ ├─ 4.2.1 MCP 与 MEFS MCP Server
│ ├─ 4.2.2 Agent 框架与记忆引擎适配
│ └─ 4.2.3 x402 / MEMO Facilitator 结算接入
└─ 4.3 状态生命周期操作
├─ 4.3.1 保存、恢复与工作交接
├─ 4.3.2 团队共享与权限管理
└─ 4.3.3 导出、撤销、删除与密钥轮换

5 安全、治理与运维
├─ 5.1 用户身份、Agent 身份与策略
│ ├─ 5.1.1 用户身份:钱包、账户 DID 与数据所有权
│ ├─ 5.1.2 Agent 身份:Agent DID、ERC-8004 与运行主体
│ └─ 5.1.3 用户—Agent 委托链、最小权限与撤销
├─ 5.2 来源与核验
│ ├─ 5.2.1 数据来源、存储完整性与版本核验
│ ├─ 5.2.2 Agent 记忆来源、生成链路与引用校验
│ └─ 5.2.3 Agent 运行内容、工具结果与成果验收
└─ 5.3 Agent 运行与风险
├─ 5.3.1 运行轨迹、决策内容与可观测性
├─ 5.3.2 提示注入、记忆污染与模型漂移
└─ 5.3.3 密钥、越权、外部副作用与故障恢复

6 基础设施与升级承接
├─ 6.1 MEMO Protocol 与 MEFS
│ ├─ 6.1.1 原六层协议与网络架构
│ ├─ 6.1.2 用户、提供者、守护者与节点
│ └─ 6.1.3 冗余、修复、RAFI 与存储证明
├─ 6.2 Meeda 与计算基础设施
│ ├─ 6.2.1 Meeda / DA 总览与 Lightnode API
│ ├─ 6.2.2 FileProof、合约与 OP Stack 接入
│ └─ 6.2.3 GRID、TEE 与受控处理
└─ 6.3 原有产品与迁移
├─ 6.3.1 Data Wallet 与身份控制入口
├─ 6.3.2 Data Market 与选择性状态资产化
└─ 6.3.3 DataDrive、Smart Layer 与 Storage API

7 标准与开放集成
├─ 7.1 标准组合
│ ├─ 7.1.1 ERC-8004、ERC-7857 与 ERC-7829
│ ├─ 7.1.2 MCP、A2A 与 Agent Skills
│ └─ 7.1.3 x402、支付与授权的边界
├─ 7.2 证明与协作扩展
│ ├─ 7.2.1 Attestation Server
│ ├─ 7.2.2 跨组织协作与受权交接
│ └─ 7.2.3 知识、经验与训练数据授权
└─ 7.3 兼容性与状态
├─ 7.3.1 协议与客户端兼容矩阵
├─ 7.3.2 标准成熟度与实现状态
└─ 7.3.3 版本、弃用与迁移说明

8 经济模型与参考资料
├─ 8.1 开发参考
│ ├─ 8.1.1 API / SDK / Schema
│ ├─ 8.1.2 合约方法与事件
│ └─ 8.1.3 网络、合约地址与环境
├─ 8.2 服务与兼容信息
│ ├─ 8.2.1 产品计费、存储与流量额度
│ ├─ 8.2.2 支持的客户端、框架与后端
│ └─ 8.2.3 术语表与能力状态索引
└─ 8.3 Tokenomics 与治理
├─ 8.3.1 MEMO、质押与结算层
├─ 8.3.2 分配、激励与冷启动
└─ 8.3.3 节点经济、挑战与治理

9 路线图、支持与社区
├─ 9.1 路线图与设计提案
│ ├─ 9.1.1 Phase 1:可控记忆
│ ├─ 9.1.2 Phase 2:可携状态、轨迹与存储证明
│ └─ 9.1.3 Phase 3:框架适配与选择性资产化
├─ 9.2 支持与维护
│ ├─ 9.2.1 FAQ
│ ├─ 9.2.2 排障、支持与安全反馈
│ └─ 9.2.3 更新日志与弃用说明
└─ 9.3 社区与历史
├─ 9.3.1 贡献指南与社区入口
├─ 9.3.2 历史文档与旧入口索引
└─ 9.3.3 研究提案、待核实能力与决策记录
```


Loading