OpenLearn V2 官方文档中心 (Official Documentation Center)
欢迎使用 OpenLearn V2 官方技术文档中心。OpenLearn V2 是一套全栈、分布式、基于插件沙箱隔离(inline / worker_threads / 子进程三档执行模式)架构的智能教育操作系统(Educational OS)。
🚀 第一次使用? 先读 快速上手手册:安装 → 运行 → 上一节课 → 写第一个插件,一页走完,关键步骤配截图。
🔁 仓库单平台(Gitee):gitee.com/aymwoo/openlearn-next 是 Issue / PR / 分支 / 合并 的唯一入口;自动化 CI 目前仍只在 GitHub 归档副本上运行,合并前的本地质量门禁是唯一防线。
🚀 快速入门 (Getting Started)
🏛️ 平台架构 (Architecture)
- 平台系统架构全景 (System Overview)
- Platform Kernel 架构全景
- Composition Root & Server 服务组装
- Bootstrap Pipeline 引导流水线
- Layer Topology 分层拓扑
- Capability Gateway 能力网关与治理
- CommandBus & EventBus 事件指令总线
- 系统配置架构规范
- 可观测性架构(Observability)
- Dependency Injection 依赖注入系统
- Real-time Presence & Collaboration 实时在线与协同引擎
- Real-time Presence & Collaboration 实时在线与协同引擎
- Security & Permissions 安全与权限模型
- 学生端界面可见性策略(student-ui-policy)
- 数据库与版本化迁移架构 (Database & Migrations)
- ADR-001:多租户 / 多校区与数据库抽象层
- 现代教育 OS 主题系统 (Theming System Engine)
- Platform Service Registry 平台服务注册表
- Whiteboard Subsystems 白板子系统机制
- Classroom Runtime 架构说明
- Activity Contract(活动契约)
- Xuean Activities(学案活动)
- Progress Extension Contract(进度链路插件扩展契约)
- 进度写库侧去抖提案(契约 §4.5 遗留项)
- Extension Registry(扩展点注册表)
- Teaching Resource Runtime 架构说明
- LearningSurface 教学内容 / 活动容器设计
- Assignment(作业中心)架构说明
- 测评子系统 · 数据模型与 API(P0a)
- 测评域扩展插槽设计稿(Draft for Review)
- Skills 运行时
- L-1 立项提案:插件 Worker 的隔离原语升级
- 文件存储统一持久化与可扩展架构设计
🧩 插件生态与宿主 (Plugin)
- 插件宿主架构与沙箱隔离机制 (Plugin Architecture)
- 插件生命周期状态机与执行流程 (Plugin Lifecycle)
- 插件 Manifest 规范 (Plugin Manifest Specification)
- 插件注册表与分发管理 (Plugin Registry & Distribution)
- 社区插件市场 (Community Plugin Registry)
- 统一扩展点与 UI 贡献点注册表 (Extension & Contribution Registry)
- 锚点扩展槽目录 (Anchor Extension Slots)
- 远程前端插件:执行环境、能力边界与路线
- 插件安全边界迁移(PL-01 至 PL-08)
📦 SDK & 开发者工具 (SDK)
🤖 AI 平台与智能体 (AI)
🖥️ 工作区引擎 (Workspace)
📚 课程引擎 (Lesson)
🎨 白板与画布 (Whiteboard)
📊 学习分析引擎 (Analytics)
🚢 部署与运维 (Deployment)
🔧 系统配置规范 (Configuration)
📖 API 参考手册 (API Reference)
- TypeScript Interfaces 规范
- 完整 DI Token 与 Service API 字典
- API Coverage Report API 覆盖率报告
- Courseware Attempts API Contract
- 0. 通用约定
- 1. 表格:端点速览
- 2.
POST /api/courseware/attempts/:attemptId/log— 答题事件流 - 2b.
GET /api/courseware/attempts/:attemptId/answers— 逐题作答明细 - 2c. 协议适配器注册表(P3,插件面)
- 3.
POST /api/courseware/attempts/:attemptId/submit— 最终提交 - 4.
GET /api/courseware/attempts— 成绩榜(分页信封) - 4.1
GET /api/courseware/scores/view— 统一成绩视图 - 6.
GET /api/courseware/attempts/:attemptId/progress— 单条成绩快照 - 7.
GET /api/courseware/attempts/:attemptId/raw— 原始事件流 - 8. 实时事件
- 9. 已知契约陷阱(迁移期 backlog)
- 10. 相关源文件
- 11. 其余端点速记
- Whiteboard Event Slot Contract
💻 开发者指南 (Developer Guide)
🛡️ 管理员手册 (Administrator Guide)
🎓 完全教程 (Tutorials)
🤖 AI 插件开发手册 (Agent Plugin Handbook)
💡 编译示例 (Examples)
- Verifiable Examples 可编译验证示例全集
- 内置范例插件拆解指南 (Existing Built-in Plugins Guide)
- 1. 虚拟文件系统插件 (
@openlearn/plugin-vfs) - 2. 平台管理与运维插件 (
@openlearn/plugin-management) - 3. AI 智能体课程规划器 (
@openlearn/plugin-ai-planner) - 4. 智能作业自动批改插件 (
@openlearn/plugin-assignment-eval) - 5. 后台受控进程插件 (
@openlearn/plugin-process) - 6. 平台核心插件 (
@openlearn/plugin-builtin) - 7. AI 提交注入插件 (
@openlearn/plugin-ai-submit-injector) - 8. 如何将内置插件用作模板
- 1. 虚拟文件系统插件 (
🗺️ 产品路线图 (Roadmap)
📋 发布日志 (Release Notes)
- Release Notes v0.8.1
- Release Notes v0.8.0
- Release Notes v0.7.17
- Release Notes v0.7.16
- Release Notes v0.7.15
- Release Notes v0.7.14
- Release Notes v0.7.13
- Release Notes v0.7.12
- Release Notes v0.7.11
- Release Notes v0.7.10
- Release Notes v0.7.9
- Release Notes v0.7.8
- Release Notes v0.7.7
- Release Notes v0.7.6
- Release Notes v0.7.5
- Release Notes v0.7.4
- Release Notes v0.7.3
- Release Notes v0.7.2
- Release Notes v0.7.1
- Release Notes v0.7.0
- Release Notes v0.6.1
- Release Notes v0.6.0
- Release Notes v0.5.0
- Release Notes v0.4.2
- Release Notes v0.4.1
- Release Notes v0.4.0
- Release Notes v0.3.23
- Release Notes v0.3.22
- Release Notes v0.3.21
- Release Notes v0.3.18
- Release Notes v0.3.17
- Release Notes v0.3.16
- Release Notes v0.3.15
- Release Notes v0.3.14
- Release Notes v0.3.13
- Release Notes v0.3.12
- Release Notes v0.3.11
- Release Notes v0.3.10
- Release Notes v0.3.8
- Release Notes v0.3.7
- Release Notes v0.3.6
- Release Notes v0.3.5
- Release Notes v0.3.4
- Release Notes v0.3.3
- Release Notes v0.3.2
- Release Notes v0.3.1
- Release Notes v0.3.0
- Release Notes v0.2.9
- Release Notes v0.2.8
- Release Notes v0.2.7
- Release Notes v0.2.6
- Release Notes v0.2.5
- Release Notes v0.2.4
- Release Notes v0.2.3
- Release Notes v0.2.1
- Release Notes v0.2.0
- Release Notes v0.1.12
- Release Notes v0.1.11
- Release Notes v0.1.10
🔄 迁移指南 (Migration)
🎯 插件精准开发参考 (Plugin Dev Reference)
- 能力权限矩阵全集 (Capabilities Permission Matrix)
- 插件信任边界矩阵(Trust Boundary)
- AI Agent 与第三方插件开发架构契约与防护规范(Architecture Contracts & Guardrails RFC)
- UI 扩展槽位 Context / Props 上下文定义
- 1. 完整扩展槽位清单
- 1.1 扩展槽位的宿主布局上下文与容器契约(Layout & Container Contracts)
- 2. 各槽位组件收到的 Props(实际注入)
- 3. 宿主注入了哪些上下文?(如何获取 user/role/lessonId/classId/socket)
- 4. 插件如何声明目标槽位
- 5. 白板全屏渲染器注册表 (
fullscreenRendererRegistry) - 6. 白板属性编辑器注册表 (
propertyEditorRegistry) - 7. 课件内容源扩展 (
coursewareSourceRegistry) - 8. LMS Bridge 双向通信
- 9. 备课画板组件扩展 (
paletteItemRegistry/ 课程设计组件插槽) - 10. 白板自定义图元渲染器扩展 (
whiteboard.renderer) - 10.1 作业附件预览扩展 (
assignment.file.preview) - 11. 全域业务扩展槽位规范与使用指南(含国家智慧教育平台对接)
- 12. 后续新增槽位的使用说明
- 13. 统计口径
- 插件数据库 API 与 Migration 规范
- 平台数据表参考(Platform Data Tables)
- 活动生态(Activity Ecosystem)开发指南
- ClassroomFlowServer 开发指南:通讯协议 / 学分 / 成绩采集 / 双端工作区
- 能力 Provider 框架(Capability Invocation Framework)开发指南
- 宿主共享依赖白名单 (HostSharedDeps)
- 插件原地更新与分发 (Plugin In-Place Update & Distribution)
🤝 社区与贡献 (Contributing)
🔍 故障排查 (Troubleshooting)
⚖️ 架构治理 (Governance)
📑 审计归档 (Audit Archive)
全局模块速查
核心子系统导览
Platform Kernel: 4 层递进初始化 (Layer 0~3),零依赖基础设施到 Worker 宿主管理器。
Composition Root:
server.ts统一组装根,Express API 路由与 Socket.IO 服务整合。Bootstrap Pipeline: 5 阶段启动流水线(Startup -> Registration -> Initialization -> Activation -> Ready)。
Plugin Host & Sandbox: Worker Thread 进程隔离、ESM 加载器与完整生命周期状态机。
Plugin SDK:
@openlearn/plugin-sdk(版本随平台 release 同步,发布流程统一重写,勿在文档中写死)强类型定义、Token<T>DI 支持与ctx.provide()服务共享。AI Runtime & Tools: OpenAI 兼容大模型接入网关、多 Provider 动态切换与 Function Calling 工具调用。
CLI & Operations:
npx openlearn-next命令行自检 (doctor)、在线冷备 (backup)、数据还原 (restore)、沙盒演示 (--demo) 与缓存治理 (clean)。
最后更新:2026-12-04 (v0.8.1)
给 AI Agent 的另一套文档
本站是面向人的叙述式文档。仓库里还有一套面向 AI 编程 Agent 的技术参考层:
docs/ai-reference/INDEX.md
它按「结论 → 源码坐标(路径 → 符号 → 行号)→ 约束」组织,覆盖全平台分层、内核子系统、
HTTP 端点、命令描述符、实时路由、扩展槽位与环境变量全表,
并对每条结论标注 已验证 / 推断 / 待确认。
该目录不加入本 Sphinx 构建(conf.py 的 exclude_patterns 已排除),
因为它按符号名高频增删,纳入构建会持续产生 toctree 告警。
需要让 AI 定位代码、核对签名、查错误码时读它;需要给人讲架构时读本站。