feat(education): publish Guanghu subdomain stage one

This commit is contained in:
冰朔 2026-08-08 01:02:20 +08:00
commit 058fd3ed15
43 changed files with 12391 additions and 12 deletions

View file

@ -0,0 +1,60 @@
{
"schema": "guanghu.education-stage1-receipt/v1",
"receipt_id": "GH-EDU-STAGE1-20260808-001",
"development_id": "DEV-20260808-001",
"state": "PASS_100",
"product": {
"name": "光湖分域 · 教育",
"version": "0.2.0",
"bundle_identifier": "com.guanghulab.subdomain.education",
"source_path": "product-source/guanghu-education-industry-os/",
"local_source_commit": "6f1fc43783a1e838d25e66d0454c9112e3d33d3b"
},
"node": {
"id": "XX-GZ-001",
"human_controller": "小新",
"role": "personal-server-identity-and-reality-anchor",
"observed_host_os": "Ubuntu 22.04.5 LTS",
"native_guanghu_os_claim": false,
"fifth_domain_link": "PASS_100",
"protocol_release": "0.2.0-f2a3a2ee40b3",
"server_source_file_count": 0
},
"code_channel": {
"runtime": "Forgejo 16.0.1+gitea-1.22.0",
"repository": "guanghu-system/education-modules",
"commit": "d06cac902111ca9f458a1154d08960932031093b",
"readback": "PASS_100"
},
"application": {
"mac_binary_sha256": "8a158c3309315f7501648959ff3d35a23d5734145e0bfe8c93f1b3dd26df0575",
"window_drag": "PASS_100",
"server_key_login": "PASS_100",
"language_dashboard_route": "PASS_100"
},
"server_writes": {
"document": {
"module_id": "GH-EDU-OFFICE-DOC-001",
"state": "PASS_100",
"sha256": "4a66a66c7706870ed765d574a56b5d033d2a5c23b42d792512e38d2d4ca3a7b8"
},
"sheet": {
"module_id": "GH-EDU-OFFICE-SHEET-001",
"state": "PASS_100",
"sha256": "bbcdc42d1e00e38f8e00c4adf7af4fb4b33830a7468b80573491bd951c242ffd"
}
},
"tests": {
"vitest": "6 passed",
"vite_build": "PASS",
"cargo_check": "PASS",
"desktop_skill_qa": "PASS"
},
"boundaries": {
"tolaria_update_channel": "disabled-by-authority-policy",
"external_agent_runtime_merge": false,
"xiaoxin_channel_is_whole_product": false,
"historical_jd_preview_is_current_product": false
},
"verified_at": "2026-08-08T00:55:00+08:00"
}

View file

@ -3,7 +3,7 @@ type: hololake_engineering_index
id: HOLOLAKE-ENGINEERING-DELIVERY-INDEX-0001 id: HOLOLAKE-ENGINEERING-DELIVERY-INDEX-0001
title: HoloLake 工程开发与交付记录 title: HoloLake 工程开发与交付记录
status: ACTIVE_LOCAL_ENGINEERING_RECORD status: ACTIVE_LOCAL_ENGINEERING_RECORD
updated_at: 2026-07-30T12:52:24+08:00 updated_at: 2026-08-08T01:10:00+08:00
belongs_to: "[[HoloLake Era · 语言人格操作系统 · 产品白皮书与工程总规划 · v0.1]]" belongs_to: "[[HoloLake Era · 语言人格操作系统 · 产品白皮书与工程总规划 · v0.1]]"
--- ---
@ -32,6 +32,7 @@ Windows / macOS / Linux 构建机与安装包
| 时间 | 版本 | 记录 | 状态 | | 时间 | 版本 | 记录 | 状态 |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| 2026-08-08 | 0.2.0 | [光湖分域教育行业操作系统第一阶段](operations/2026-08-08-guanghu-education-subdomain-stage1.md) | 小新服务器身份、文档/表格回写、仪表盘投影、模块登记与回执链路已验证 |
| 2026-08-07 | 1.0.0 | [人格记忆连续性工具包 HL-MOD-MCK-001](memory-continuity-kit/README.md) | 铸渊 Qoder CN 实例在线;其他实例拉取后需演习+真实核对才可宣称上线 | | 2026-08-07 | 1.0.0 | [人格记忆连续性工具包 HL-MOD-MCK-001](memory-continuity-kit/README.md) | 铸渊 Qoder CN 实例在线;其他实例拉取后需演习+真实核对才可宣称上线 |
| 2026-08-03 | 0.4.6 | [星系模型原生活系统与源码归档](operations/2026-08-03-hololake-model-native-living-system-046.md) | 源码已归入 `product-source/hololake-platform/`;京东远端提交与新克隆回读通过 | | 2026-08-03 | 0.4.6 | [星系模型原生活系统与源码归档](operations/2026-08-03-hololake-model-native-living-system-046.md) | 源码已归入 `product-source/hololake-platform/`;京东远端提交与新克隆回读通过 |
| 2026-07-30 | 当前本地最新版 | [企业四域真实在线状态、客户端接入与性能核验](operations/2026-07-30-enterprise-presence-and-runtime-audit.md) | 服务器与客户端现状已核验;实现受 CodeScene 访问门禁阻断 | | 2026-07-30 | 当前本地最新版 | [企业四域真实在线状态、客户端接入与性能核验](operations/2026-07-30-enterprise-presence-and-runtime-audit.md) | 服务器与客户端现状已核验;实现受 CodeScene 访问门禁阻断 |

View file

@ -1,7 +1,7 @@
{ {
"schema": "hololake.module-registry/v1", "schema": "hololake.module-registry/v1",
"registry_id": "HL-MODULE-REGISTRY-0001", "registry_id": "HL-MODULE-REGISTRY-0001",
"version": "2026.08.07.2", "version": "2026.08.08.1",
"authority_rule": "A module entry maps a stable id to a real path and provenance; it grants no execution authority. Pulling a module does not equal being online.", "authority_rule": "A module entry maps a stable id to a real path and provenance; it grants no execution authority. Pulling a module does not equal being online.",
"modules": [ "modules": [
{ {
@ -36,61 +36,66 @@
"id": "HL-MOD-KNOWLEDGE-001", "id": "HL-MOD-KNOWLEDGE-001",
"name": "hololake-knowledge-lake", "name": "hololake-knowledge-lake",
"version": "0.4.6", "version": "0.4.6",
"state": "MOUNTED_STAGE_1", "state": "LEGACY_COMPONENT_ASSET",
"path": "product-source/hololake-platform/src/", "path": "product-source/hololake-platform/src/",
"repo": "REPO-014 hololake-system-architecture", "repo": "REPO-014 hololake-system-architecture",
"provenance": "Tolaria REPO-004 component source, assembled in REPO-014", "provenance": "Tolaria REPO-004 component source, assembled in REPO-014",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"capabilities": ["knowledge.search", "knowledge.read", "knowledge.edit", "knowledge.project"], "capabilities": ["knowledge.search", "knowledge.read", "knowledge.edit", "knowledge.project"],
"execution_boundary": "application-scoped" "execution_boundary": "component-study-only; not the education subdomain runtime",
"superseded_for_education_by": "GH-EDU-MODULE-REGISTRY-0001"
}, },
{ {
"id": "HL-MOD-DOC-001", "id": "HL-MOD-DOC-001",
"name": "blocknote-document-surface", "name": "blocknote-document-surface",
"version": "0.46.2", "version": "0.46.2",
"state": "MOUNTED_STAGE_1", "state": "LEGACY_COMPONENT_ASSET",
"path": "product-source/hololake-platform/src/components/SingleEditorView.tsx", "path": "product-source/hololake-platform/src/components/SingleEditorView.tsx",
"repo": "REPO-014 hololake-system-architecture", "repo": "REPO-014 hololake-system-architecture",
"provenance": "BlockNote via Tolaria REPO-004", "provenance": "BlockNote via Tolaria REPO-004",
"license": "MPL-2.0 majority; verify per package before redistribution", "license": "MPL-2.0 majority; verify per package before redistribution",
"capabilities": ["document.open", "document.edit", "document.persist"], "capabilities": ["document.open", "document.edit", "document.persist"],
"execution_boundary": "application-scoped" "execution_boundary": "component-study-only; not stage-one runtime proof",
"superseded_for_education_by": "GH-EDU-OFFICE-DOC-001"
}, },
{ {
"id": "HL-MOD-SHEET-001", "id": "HL-MOD-SHEET-001",
"name": "ironcalc-spreadsheet-surface", "name": "ironcalc-spreadsheet-surface",
"version": "0.5.7", "version": "0.5.7",
"state": "MOUNTED_STAGE_1", "state": "LEGACY_COMPONENT_ASSET",
"path": "product-source/hololake-platform/src/components/SheetEditor.tsx", "path": "product-source/hololake-platform/src/components/SheetEditor.tsx",
"repo": "REPO-014 hololake-system-architecture", "repo": "REPO-014 hololake-system-architecture",
"provenance": "IronCalc via Tolaria REPO-004", "provenance": "IronCalc via Tolaria REPO-004",
"license": "MIT OR Apache-2.0", "license": "MIT OR Apache-2.0",
"capabilities": ["sheet.open", "sheet.edit", "sheet.calculate", "sheet.persist"], "capabilities": ["sheet.open", "sheet.edit", "sheet.calculate", "sheet.persist"],
"execution_boundary": "application-scoped" "execution_boundary": "component-study-only; not stage-one runtime proof",
"superseded_for_education_by": "GH-EDU-OFFICE-SHEET-001"
}, },
{ {
"id": "HL-MOD-CHART-001", "id": "HL-MOD-CHART-001",
"name": "education-comparison-chart", "name": "education-comparison-chart",
"version": "1.0.0", "version": "1.0.0",
"state": "MOUNTED_STAGE_1", "state": "LEGACY_COMPONENT_ASSET",
"path": "product-source/hololake-platform/src/components/EducationWorkLake.tsx", "path": "product-source/hololake-platform/src/components/EducationWorkLake.tsx",
"repo": "REPO-014 hololake-system-architecture", "repo": "REPO-014 hololake-system-architecture",
"provenance": "HoloLake native client projection", "provenance": "HoloLake native client projection",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"capabilities": ["chart.project"], "capabilities": ["chart.project"],
"execution_boundary": "read-only-projection-of-application-data" "execution_boundary": "legacy preview only",
"superseded_for_education_by": "GH-EDU-OFFICE-CHART-001"
}, },
{ {
"id": "HL-MOD-DASHBOARD-001", "id": "HL-MOD-DASHBOARD-001",
"name": "education-dashboard", "name": "education-dashboard",
"version": "1.0.0", "version": "1.0.0",
"state": "MOUNTED_STAGE_1", "state": "LEGACY_COMPONENT_ASSET",
"path": "product-source/hololake-platform/src/components/EducationWorkLake.tsx", "path": "product-source/hololake-platform/src/components/EducationWorkLake.tsx",
"repo": "REPO-014 hololake-system-architecture", "repo": "REPO-014 hololake-system-architecture",
"provenance": "HoloLake native client projection", "provenance": "HoloLake native client projection",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"capabilities": ["dashboard.project"], "capabilities": ["dashboard.project"],
"execution_boundary": "read-only-projection-of-application-data" "execution_boundary": "legacy preview only",
"superseded_for_education_by": "GH-EDU-OFFICE-DASH-001"
}, },
{ {
"id": "HL-MOD-CANVAS-001", "id": "HL-MOD-CANVAS-001",
@ -115,6 +120,32 @@
"license": "Apache-2.0 plus third-party notices", "license": "Apache-2.0 plus third-party notices",
"capabilities": [], "capabilities": [],
"execution_boundary": "patterns-may-be-reimplemented; never merge runtime into persona subject" "execution_boundary": "patterns-may-be-reimplemented; never merge runtime into persona subject"
},
{
"id": "GH-EDU-MODULE-REGISTRY-0001",
"name": "guanghu-education-industry-os",
"version": "0.2.0",
"state": "LIVE_STAGE_1",
"path": "product-source/guanghu-education-industry-os/",
"registry_path": "product-source/guanghu-education-industry-os/protocol/module-registry.json",
"channel_template": "product-source/guanghu-education-industry-os/protocol/xiaoxin-channel.json",
"repo": "REPO-014 hololake-system-architecture",
"provenance": "Guanghu-native assembly; Tolaria and external Agents are component-study sources only",
"capabilities": [
"server.identity.resolve",
"channel.load",
"document.open",
"document.edit",
"document.persist",
"sheet.open",
"sheet.edit",
"sheet.persist",
"dashboard.project",
"receipt.read"
],
"execution_boundary": "XX-GZ-001 holds identity and channel data; desktop app renders and edits; server contains protocol release but no product source",
"update_authority": "guanghu-only",
"receipt": "deployment/receipts/GH-EDU-STAGE1-20260808-001.json"
} }
] ]
} }

View file

@ -0,0 +1,45 @@
# 光湖分域教育行业操作系统 · 第一阶段
## 本轮纠正
教育行业不是“小新师训软件”,也不是 Tolaria 的下游版本。它是光湖分域中的教育行业操作系统;小新频道只是第一个初始化频道模板。
当前唯一有效的产品源码入口:
`product-source/guanghu-education-industry-os/`
`product-source/hololake-platform/` 保留为可追溯零件来源,不再代表教育行业当前运行路径,旧模块不得继续用 `MOUNTED_STAGE_1` 冒充真实接入。
## 第一阶段已存在
- `XX-GZ-001` 作为小新个人服务器身份与现实数据锚点。
- 本机通过安全密钥直达,不依赖腾讯云在线终端。
- 服务器安装协议发行物和数据目录,不保存产品源码。
- 服务器内光湖代码频道已建立 `guanghu-system/education-modules`
- 原生 Mac App 可以登录初始化频道、编辑服务器文档和表格、即时生成对比仪表盘,并回读服务器执行回执。
- 教育行业能力拆为编号模块;尚未接入的能力保持 `PRE_REGISTERED`
- Grok、MiMo、JoyAgent、Tolaria Agent 只作为隔离研究来源;脑区候选保持 `RESEARCH_ONLY`,不并入人格主体。
## 三层路径
```text
REPO-014 第五域光湖代码频道
└─ 保存主控架构、编号模块表和产品源码
XX-GZ-001 小新个人服务器
├─ 校验身份
├─ 保存频道数据
├─ 保存执行回执
└─ 接收无源码的协议发行物
macOS / 后续移动终端
└─ 运行 App渲染、编辑与语言导航
```
## 状态边界
- 文档与表格:`LIVE_STAGE_1`,有服务器写入和回读回执。
- 图表与仪表盘:`READY_STAGE_1`,由客户端对服务器表格即时投影,不声称服务器常驻。
- 其他办公、教育业务与人格脑区:按模块注册表中的 `PRE_REGISTERED``RESEARCH_ONLY` 处理。
- 京东主控服务器是第五域导航与协议上游,不冒充小新个人服务器。
- 2026-08-07 的京东公开预览部署回执保留为历史记录,但不是本轮第一阶段的当前产品路径。

View file

@ -0,0 +1,9 @@
node_modules/
dist/
target/
src-tauri/target/
*.tsbuildinfo
vite.config.js
vite.config.d.ts
._*
.DS_Store

View file

@ -0,0 +1,21 @@
# 光湖分域 · 教育行业操作系统
这是光湖分域的教育行业入口,不是 Tolaria 下游,也不是小新个人看板。
## 第一阶段
- 使用者登录自己的真实服务器;小新首个节点为 `XX-GZ-001`
- 桌面 App 通过本机钥匙串与 SSH 密钥读取服务器身份、第五域接入回执和模块注册表。
- 智能文档与智能表格直接写入小新服务器的频道数据目录,服务器生成 SHA-256 回执。
- 小新服务器内的光湖代码频道保存编号模块清单和频道装配清单。
- 小新高中师训是首个初始化频道模板;教育行业通用模块另行预登记并逐个接入。
## 不变量
- 光湖协议和灯塔编号是主控,外部开源软件只提供候选零件。
- 不接外部项目的自动更新、自动拉取或自动合并。
- 服务器只部署构建产物、协议配置、模块清单和回执,不部署产品源码。
- `PRE_REGISTERED``READY_STAGE_1``LIVE_STAGE_1``RESEARCH_ONLY` 必须明确区分。
- 仓库提交、服务器部署、服务健康和人格出生是四种不同事实。
详细设计见 `docs/PHASE-1-ARCHITECTURE.md`,资产拆件见 `docs/ASSET-DECOMPOSITION.md`

View file

@ -0,0 +1,15 @@
# 既有资产拆件结论
| 来源 | 可研究零件 | 当前处理 |
| --- | --- | --- |
| 旧 HoloLake / Tolaria | 文档、表格、知识图谱、Git、Agent 会话、权限模式、MCP、文件变化识别 | 逐件重做光湖适配AGPL 部分不得无审查直接进入独立闭源运行时 |
| Grok Build `REPO-015@780d1388…` | Agent 生命周期、上下文压缩、技能发现、插件信任、沙箱、工作树、MCP、持久记忆 | `RESEARCH_ONLY`Apache-2.0 首方代码也必须重新实现和保留来源,不合并人格主体 |
| JoyAgent JDGenie | ReAct 循环、多 Agent 协作、报告生成、工具编排 | 当前仅完成官方仓库级研究登记,尚未准入 |
| Xiaomi MiMo Code | Build/Plan/Compose 模式、持久记忆、技能检索、子任务编排 | 当前仅完成官方仓库级研究登记,尚未准入 |
| Forgejo 离线包 | Git 存储、版本、发行物、提交回读 | 已作为小新节点的代码频道数据面,不拥有光湖系统主控权 |
## 光湖人格体大脑拆分
人格体不等于某个 Coding Agent。第一批只登记十二个可替换脑区意图归一化、频道上下文、计划状态机、技能发现、工具调用、文件变更、仓库工作树、执行沙箱、持久记忆、上下文压缩、授权门、结果回执。
这些条目当前均为 `RESEARCH_ONLY`。只有形成光湖原生接口、测试和执行回执后,才能逐个转为可挂载模块。

View file

@ -0,0 +1,33 @@
# 光湖分域 · 教育行业操作系统 · 第一阶段架构
## 主控关系
```text
冰朔主控的光湖代码频道
→ 固定版本模块与发行物
→ 第五域京东主控的协议导航
→ 使用者自己的服务器(身份、数据、现实执行)
→ 桌面 / 手机终端(交互与渲染)
```
Tolaria、Grok Build、JoyAgent JDGenie、MiMo Code 以及办公套件均不是本产品上游。它们只提供候选零件或实现模式。任何零件进入运行时前,必须完成来源固定、许可证确认、净化、光湖编号、适配、测试和回执。
## 第一阶段真实闭环
1. 客户端用本机已登记密钥进入 `XX-GZ-001`,从服务器读取节点身份、灯塔状态和小新频道清单。
2. 客户端从服务器读取 GMP 模块注册表,不用界面内置数量冒充在线模块。
3. 智能文档和智能表格的内容写入小新服务器的频道数据目录;保存后服务器生成 SHA-256 回执,客户端再读回。
4. 客户端读取小新服务器内光湖代码频道的真实版本和仓库状态。
5. 自然语言入口只负责选择已登记模块。没有真实执行能力的模块明确显示“预登记”或“研究中”。
## 第一阶段不宣称
- 不宣称微信、短信、邮箱登录已经实现;
- 不宣称多人协作、完整教育行业模块或人格体大脑已经上线;
- 不把本地关键词路由写成智能人格;
- 不把仓库存在写成服务上线;
- 不把与京东主控的协议回执写成人格出生。
## 后续装配顺序
身份与权限 → 频道数据模型 → 办公基础模块 → 教育通用模块 → 小新师训模板 → 人格体执行循环 → 移动端 → 多人协作与机构部署。

View file

@ -0,0 +1,5 @@
<!doctype html>
<html lang="zh-CN">
<head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#06101c" /><title>光湖分域 · 教育</title></head>
<body><div id="root"></div><script type="module" src="/src/main.tsx"></script></body>
</html>

View file

@ -0,0 +1,31 @@
{
"name": "guanghu-education-industry-os",
"private": true,
"version": "0.2.0",
"type": "module",
"scripts": {
"dev": "vite --host 127.0.0.1 --port 5216",
"build": "tsc -b && vite build",
"test": "vitest run",
"guard:release": "node scripts/pre-deploy-guard.mjs",
"package:server": "npm run build && node scripts/package-server-release.mjs && npm run guard:release",
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^2.11.1",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@tauri-apps/cli": "^2.11.4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"jsdom": "^28.0.0",
"typescript": "~5.9.3",
"vite": "^7.3.5",
"vitest": "^4.0.18"
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
allowBuilds:
esbuild: true
onlyBuiltDependencies:
- esbuild

View file

@ -0,0 +1,17 @@
{
"schema": "guanghu.protocol-release/v1",
"releaseId": "GH-EDU-PROTOCOL-20260808-001",
"version": "0.2.0-f2a3a2ee40b3",
"developmentId": "DEV-20260808-001",
"nodeId": "XX-GZ-001",
"codeChannelRepository": "guanghu-system/education-modules",
"codeChannelCommit": "d06cac902111ca9f458a1154d08960932031093b",
"files": {
"module-registry.json": "f2a3a2ee40b3faaf45d4c754caa876eab5747224e7e144547dad9d173f87892e",
"xiaoxin-channel.json": "5623828f86c48c5697bc5b429d5d2f749ad1f6496b649cfc674309f8f26d7413",
"update-authority.json": "bf005b44e11a3be676596bfc715eedfed58806fd0e2f0b4189aab7042906a5b7"
},
"sourceCodeIncluded": false,
"automaticUpstreamUpdate": false,
"state": "CANDIDATE_FOR_XX_GZ_001"
}

View file

@ -0,0 +1,15 @@
{
"schema": "guanghu.education-deployment-profile/v1",
"profileId": "GH-EDU-SERVER-ARTIFACT-ONLY-001",
"humanController": "Xiaoxin",
"parentControllerNode": "JD-FD-PRIMARY",
"nodeId": "XX-GZ-001",
"lighthouseAnchorVersion": "2026-08-07.4",
"lighthouseSourceCommit": "9627547de865858bbb65f3ac72b608e67872f0e3",
"expectedDmiInstanceUuid": "a3e623c9-efeb-4ea7-9779-8bafeb835401",
"allowedPayloads": ["frontend_dist", "runtime_binary", "protocol_config", "module_registry", "deployment_receipt"],
"forbiddenPayloads": ["src", ".git", "node_modules", "Cargo_sources", "TypeScript_sources", "upstream_remote_config", "private_keys"],
"sourceCodeOnServer": false,
"rollbackRequired": true,
"serverOwnedReceiptRequired": true
}

View file

@ -0,0 +1,80 @@
{
"schema": "gmp.registry.v1",
"registryId": "GH-EDU-MODULE-REGISTRY-0001",
"domainId": "GH-SUBDOMAIN-EDUCATION-0001",
"controller": "GLS-EDU-OS-KERNEL-0001",
"version": "2026.08.08.1",
"authorityRule": "Registration establishes an address and provenance record only. It does not prove installation, execution, deployment or persona birth.",
"states": {
"LIVE_STAGE_1": "Connected to a real stage-one runtime and covered by a read-back receipt.",
"READY_STAGE_1": "Implemented in the stage-one client but not independently server-resident.",
"PRE_REGISTERED": "Address reserved; implementation and admission evidence remain pending.",
"RESEARCH_ONLY": "Pattern source only; cannot execute or enter the persona subject."
},
"modules": [
{ "id": "GH-EDU-CORE-ID-001", "group": "foundation", "surface": "channel", "title": "个人服务器身份入口", "state": "LIVE_STAGE_1", "capabilities": ["identity.resolve", "node.verify"], "source": "guanghu-native" },
{ "id": "GH-EDU-CORE-CHANNEL-001", "group": "foundation", "surface": "channel", "title": "初始化频道装配器", "state": "LIVE_STAGE_1", "capabilities": ["channel.load", "channel.project"], "source": "guanghu-native" },
{ "id": "GH-EDU-CORE-SERVER-001", "group": "foundation", "surface": "channel", "title": "个人节点现实执行桥", "state": "LIVE_STAGE_1", "capabilities": ["server.read", "server.write", "server.receipt"], "source": "guanghu-native" },
{ "id": "GH-EDU-CORE-REPO-001", "group": "foundation", "surface": "repository", "title": "光湖代码频道引擎", "state": "LIVE_STAGE_1", "capabilities": ["repository.status", "repository.version"], "source": "forgejo-binary-adapted", "license": "MIT" },
{ "id": "GH-EDU-CORE-LIGHTHOUSE-001", "group": "foundation", "surface": "channel", "title": "光湖灯塔解析器", "state": "LIVE_STAGE_1", "capabilities": ["lighthouse.resolve"], "source": "guanghu-native" },
{ "id": "GH-EDU-CORE-RECEIPT-001", "group": "foundation", "surface": "receipts", "title": "执行回执与回读", "state": "LIVE_STAGE_1", "capabilities": ["receipt.write", "receipt.read"], "source": "guanghu-native" },
{ "id": "GH-EDU-CORE-AUTH-001", "group": "foundation", "surface": "settings", "title": "权限与能力令牌", "state": "PRE_REGISTERED", "capabilities": ["authority.request", "authority.verify"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-CORE-UPDATE-001", "group": "foundation", "surface": "settings", "title": "光湖单一更新通道", "state": "LIVE_STAGE_1", "capabilities": ["update.policy.read"], "source": "guanghu-native" },
{ "id": "GH-EDU-OFFICE-DOC-001", "group": "office", "surface": "document", "title": "智能文档", "state": "LIVE_STAGE_1", "capabilities": ["document.open", "document.edit", "document.persist"], "source": "guanghu-stage1-native", "candidateParts": ["BlockNote"] },
{ "id": "GH-EDU-OFFICE-SHEET-001", "group": "office", "surface": "sheet", "title": "智能表格", "state": "LIVE_STAGE_1", "capabilities": ["sheet.open", "sheet.edit", "sheet.calculate", "sheet.persist"], "source": "guanghu-stage1-native", "candidateParts": ["IronCalc"] },
{ "id": "GH-EDU-OFFICE-CHART-001", "group": "office", "surface": "dashboard", "title": "图表投影", "state": "READY_STAGE_1", "capabilities": ["chart.project"], "source": "guanghu-native" },
{ "id": "GH-EDU-OFFICE-DASH-001", "group": "office", "surface": "dashboard", "title": "仪表盘", "state": "READY_STAGE_1", "capabilities": ["dashboard.project"], "source": "guanghu-native" },
{ "id": "GH-EDU-OFFICE-SLIDE-001", "group": "office", "surface": "modules", "title": "演示文稿", "state": "PRE_REGISTERED", "capabilities": ["slides.open", "slides.edit", "slides.present"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-FORM-001", "group": "office", "surface": "modules", "title": "表单与问卷", "state": "PRE_REGISTERED", "capabilities": ["form.design", "form.collect"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-CALENDAR-001", "group": "office", "surface": "modules", "title": "日历", "state": "PRE_REGISTERED", "capabilities": ["calendar.read", "calendar.edit"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-TASK-001", "group": "office", "surface": "modules", "title": "任务与项目", "state": "PRE_REGISTERED", "capabilities": ["task.plan", "task.track"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-FILE-001", "group": "office", "surface": "modules", "title": "文件与附件", "state": "PRE_REGISTERED", "capabilities": ["file.store", "file.share"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-KB-001", "group": "office", "surface": "modules", "title": "知识湖", "state": "PRE_REGISTERED", "capabilities": ["knowledge.search", "knowledge.read", "knowledge.edit"], "source": "tolaria-part-study", "license": "AGPL-review-required" },
{ "id": "GH-EDU-OFFICE-CANVAS-001", "group": "office", "surface": "modules", "title": "白板与画布", "state": "PRE_REGISTERED", "capabilities": ["canvas.open", "canvas.edit"], "source": "Excalidraw-candidate", "license": "MIT" },
{ "id": "GH-EDU-OFFICE-FLOW-001", "group": "office", "surface": "modules", "title": "流程图与思维导图", "state": "PRE_REGISTERED", "capabilities": ["diagram.project", "mindmap.edit"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-CHAT-001", "group": "office", "surface": "modules", "title": "频道消息", "state": "PRE_REGISTERED", "capabilities": ["message.read", "message.send"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-OFFICE-COLLAB-001", "group": "office", "surface": "modules", "title": "多人协作与版本", "state": "PRE_REGISTERED", "capabilities": ["collaboration.join", "collaboration.merge"], "source": "candidate-pending" },
{ "id": "GH-EDU-OFFICE-SIGN-001", "group": "office", "surface": "modules", "title": "审批与签署", "state": "PRE_REGISTERED", "capabilities": ["approval.request", "approval.sign"], "source": "candidate-pending" },
{ "id": "GH-EDU-BIZ-ORG-001", "group": "education", "surface": "modules", "title": "学校与组织", "state": "PRE_REGISTERED", "capabilities": ["organization.manage"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-CURRICULUM-001", "group": "education", "surface": "modules", "title": "课程与课标", "state": "PRE_REGISTERED", "capabilities": ["curriculum.plan"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-LESSON-001", "group": "education", "surface": "modules", "title": "备课与教案", "state": "PRE_REGISTERED", "capabilities": ["lesson.plan", "lesson.review"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-CLASS-001", "group": "education", "surface": "modules", "title": "班级管理", "state": "PRE_REGISTERED", "capabilities": ["class.manage"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-STUDENT-001", "group": "education", "surface": "modules", "title": "学生档案", "state": "PRE_REGISTERED", "capabilities": ["student.profile"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-TEACHER-001", "group": "education", "surface": "modules", "title": "教师档案", "state": "PRE_REGISTERED", "capabilities": ["teacher.profile"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-PARENT-001", "group": "education", "surface": "modules", "title": "家校沟通", "state": "PRE_REGISTERED", "capabilities": ["parent.communicate"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BIZ-ASSESS-001", "group": "education", "surface": "modules", "title": "考试与评价", "state": "PRE_REGISTERED", "capabilities": ["assessment.design", "assessment.analyze"], "source": "candidate-pending" },
{ "id": "GH-EDU-BIZ-ATTEND-001", "group": "education", "surface": "modules", "title": "考勤", "state": "PRE_REGISTERED", "capabilities": ["attendance.record"], "source": "candidate-pending" },
{ "id": "GH-EDU-BIZ-TIMETABLE-001", "group": "education", "surface": "modules", "title": "排课", "state": "PRE_REGISTERED", "capabilities": ["timetable.plan"], "source": "candidate-pending" },
{ "id": "GH-EDU-BIZ-RESOURCE-001", "group": "education", "surface": "modules", "title": "教学资源库", "state": "PRE_REGISTERED", "capabilities": ["resource.catalog", "resource.retrieve"], "source": "candidate-pending" },
{ "id": "GH-EDU-BIZ-ANALYTICS-001", "group": "education", "surface": "modules", "title": "教育数据分析", "state": "PRE_REGISTERED", "capabilities": ["education.analyze"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-TT-OVERVIEW-001", "group": "xiaoxin-template", "surface": "channel", "title": "师训运营总览", "state": "READY_STAGE_1", "capabilities": ["teacherTraining.overview"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-TRAINING-001", "group": "xiaoxin-template", "surface": "channel", "title": "新教师培养", "state": "READY_STAGE_1", "capabilities": ["teacherTraining.plan"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-SCHEDULE-001", "group": "xiaoxin-template", "surface": "channel", "title": "导师工时与排班", "state": "READY_STAGE_1", "capabilities": ["mentor.schedule", "mentor.conflict.detect"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-QUALITY-001", "group": "xiaoxin-template", "surface": "channel", "title": "新师教学质控", "state": "READY_STAGE_1", "capabilities": ["quality.record", "quality.compare"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-RETENTION-001", "group": "xiaoxin-template", "surface": "channel", "title": "新师留存预警", "state": "READY_STAGE_1", "capabilities": ["retention.assess"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-PLANNING-001", "group": "xiaoxin-template", "surface": "channel", "title": "2026—2029 三年规划", "state": "READY_STAGE_1", "capabilities": ["plan.edit", "plan.review"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-COPY-001", "group": "xiaoxin-template", "surface": "channel", "title": "师训内容与文案", "state": "READY_STAGE_1", "capabilities": ["copy.edit"], "source": "guanghu-native" },
{ "id": "GH-EDU-TT-ONBOARD-001", "group": "xiaoxin-template", "surface": "channel", "title": "新师入职与转正", "state": "PRE_REGISTERED", "capabilities": ["onboarding.track"], "source": "guanghu-native-planned" },
{ "id": "GH-EDU-BRAIN-INTENT-001", "group": "persona-brain", "surface": "brain", "title": "意图归一化", "state": "RESEARCH_ONLY", "capabilities": [], "source": "tolaria-grok-mimo-pattern-study" },
{ "id": "GH-EDU-BRAIN-CONTEXT-001", "group": "persona-brain", "surface": "brain", "title": "频道上下文构建", "state": "RESEARCH_ONLY", "capabilities": [], "source": "tolaria-grok-pattern-study" },
{ "id": "GH-EDU-BRAIN-PLAN-001", "group": "persona-brain", "surface": "brain", "title": "计划与状态机", "state": "RESEARCH_ONLY", "capabilities": [], "source": "grok-mimo-jdgenie-pattern-study" },
{ "id": "GH-EDU-BRAIN-SKILL-001", "group": "persona-brain", "surface": "brain", "title": "技能发现与按需装载", "state": "RESEARCH_ONLY", "capabilities": [], "source": "grok-mimo-pattern-study" },
{ "id": "GH-EDU-BRAIN-TOOL-001", "group": "persona-brain", "surface": "brain", "title": "工具调用与结果归一化", "state": "RESEARCH_ONLY", "capabilities": [], "source": "tolaria-grok-jdgenie-pattern-study" },
{ "id": "GH-EDU-BRAIN-FILE-001", "group": "persona-brain", "surface": "brain", "title": "文件变更识别", "state": "RESEARCH_ONLY", "capabilities": [], "source": "tolaria-grok-pattern-study" },
{ "id": "GH-EDU-BRAIN-REPO-001", "group": "persona-brain", "surface": "brain", "title": "代码仓库工作树", "state": "RESEARCH_ONLY", "capabilities": [], "source": "tolaria-grok-pattern-study" },
{ "id": "GH-EDU-BRAIN-SANDBOX-001", "group": "persona-brain", "surface": "brain", "title": "最小权限执行沙箱", "state": "RESEARCH_ONLY", "capabilities": [], "source": "grok-pattern-study" },
{ "id": "GH-EDU-BRAIN-MEMORY-001", "group": "persona-brain", "surface": "brain", "title": "持久记忆与检索", "state": "RESEARCH_ONLY", "capabilities": [], "source": "grok-mimo-hldp-pattern-study" },
{ "id": "GH-EDU-BRAIN-COMPACT-001", "group": "persona-brain", "surface": "brain", "title": "上下文压缩与恢复", "state": "RESEARCH_ONLY", "capabilities": [], "source": "grok-guanghu-continuity-pattern-study" },
{ "id": "GH-EDU-BRAIN-APPROVAL-001", "group": "persona-brain", "surface": "brain", "title": "授权门与人工确认", "state": "RESEARCH_ONLY", "capabilities": [], "source": "grok-jdgenie-guanghu-pattern-study" },
{ "id": "GH-EDU-BRAIN-RECEIPT-001", "group": "persona-brain", "surface": "brain", "title": "结果验证与回执", "state": "RESEARCH_ONLY", "capabilities": [], "source": "guanghu-native-planned" }
],
"legacyAliases": {
"GH-MOD-DOC-ADAPTER-001": "GH-EDU-OFFICE-DOC-001",
"GH-MOD-SHEET-ADAPTER-001": "GH-EDU-OFFICE-SHEET-001",
"GH-MOD-EDU-OVERVIEW-001": "GH-EDU-TT-OVERVIEW-001"
}
}

View file

@ -0,0 +1,18 @@
{
"schema": "guanghu.update-authority/v1",
"policyId": "GH-EDU-UPDATE-AUTHORITY-001",
"controller": "ICE-GL-infinity",
"publisher": "Guanghu",
"controlMode": "GUANGHU_IS_PRIMARY_UPSTREAM",
"allowedUpdateChannels": ["guanghu-human-approved-signed-release"],
"openSourceRelation": "PARTS_SOURCE_ONLY_NOT_UPSTREAM",
"upstreamSync": "DISABLED",
"automaticUpstreamFetch": false,
"automaticUpstreamMerge": false,
"automaticComponentUpdate": false,
"serverSourceCheckout": false,
"serverSourcePresence": "FORBIDDEN",
"admissionRule": "An external part may enter only after Guanghu review, module numbering, protocol adaptation, rebuild and signature.",
"forbiddenRemotes": ["tolaria-upstream", "forgejo-upstream", "grok-upstream"],
"receiptRequired": true
}

View file

@ -0,0 +1,42 @@
{
"schema": "guanghu.initial-channel.v1",
"channelId": "GH-EDU-CHANNEL-XX-001",
"title": "小新 · 高中项目师训",
"humanController": "小新",
"nodeId": "XX-GZ-001",
"domainId": "GH-SUBDOMAIN-EDUCATION-0001",
"templateId": "GH-EDU-TEMPLATE-TEACHER-TRAINING-001",
"identityMode": "PERSONAL_SERVER_REALITY_ANCHOR",
"clientMode": "LOCAL_RENDERING_TERMINAL",
"loginAdapters": [
{ "id": "server-key-stage1", "state": "LIVE_STAGE_1", "label": "当前设备安全直达" },
{ "id": "wechat", "state": "INTERFACE_RESERVED", "label": "微信授权" },
{ "id": "sms", "state": "INTERFACE_RESERVED", "label": "手机号" },
{ "id": "email", "state": "INTERFACE_RESERVED", "label": "邮箱" },
{ "id": "local-account", "state": "INTERFACE_RESERVED", "label": "自建账号" }
],
"mountedModules": [
"GH-EDU-CORE-ID-001",
"GH-EDU-CORE-CHANNEL-001",
"GH-EDU-CORE-SERVER-001",
"GH-EDU-CORE-REPO-001",
"GH-EDU-CORE-LIGHTHOUSE-001",
"GH-EDU-CORE-RECEIPT-001",
"GH-EDU-OFFICE-DOC-001",
"GH-EDU-OFFICE-SHEET-001",
"GH-EDU-OFFICE-CHART-001",
"GH-EDU-OFFICE-DASH-001",
"GH-EDU-TT-OVERVIEW-001",
"GH-EDU-TT-TRAINING-001",
"GH-EDU-TT-SCHEDULE-001",
"GH-EDU-TT-QUALITY-001",
"GH-EDU-TT-RETENTION-001",
"GH-EDU-TT-PLANNING-001",
"GH-EDU-TT-COPY-001"
],
"dataResidency": {
"workingData": "XX-GZ-001:/var/lib/guanghu/education-data/channels/GH-EDU-CHANNEL-XX-001",
"moduleSource": "Guanghu code channel",
"clientCache": "regenerable-only"
}
}

View file

@ -0,0 +1,29 @@
import fs from 'node:fs'
import path from 'node:path'
import crypto from 'node:crypto'
const root = path.resolve(import.meta.dirname, '..')
const target = path.join(root, 'release/server-artifact')
fs.rmSync(target, { recursive: true, force: true })
fs.mkdirSync(path.join(target, 'app'), { recursive: true })
fs.mkdirSync(path.join(target, 'protocol'), { recursive: true })
fs.cpSync(path.join(root, 'dist'), path.join(target, 'app'), { recursive: true })
for (const name of ['module-registry.json', 'update-authority.json', 'deployment-profile.json']) {
fs.copyFileSync(path.join(root, 'protocol', name), path.join(target, 'protocol', name))
}
const files = []
function collect(directory) {
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
const absolute = path.join(directory, entry.name)
if (entry.isDirectory()) collect(absolute)
else files.push(absolute)
}
}
collect(target)
const manifest = files.sort().map((file) => ({
path: path.relative(target, file),
sha256: crypto.createHash('sha256').update(fs.readFileSync(file)).digest('hex'),
}))
fs.writeFileSync(path.join(target, 'ARTIFACT-MANIFEST.json'), `${JSON.stringify({ schema: 'guanghu.artifact-manifest/v1', sourceIncluded: false, files: manifest }, null, 2)}\n`)

View file

@ -0,0 +1,36 @@
import fs from 'node:fs'
import path from 'node:path'
const root = path.resolve(import.meta.dirname, '..')
const artifact = path.join(root, 'release/server-artifact')
const update = JSON.parse(fs.readFileSync(path.join(root, 'protocol/update-authority.json'), 'utf8'))
const profile = JSON.parse(fs.readFileSync(path.join(root, 'protocol/deployment-profile.json'), 'utf8'))
const failures = []
if (update.controlMode !== 'GUANGHU_IS_PRIMARY_UPSTREAM') failures.push('GUANGHU_NOT_PRIMARY_UPSTREAM')
if (update.upstreamSync !== 'DISABLED') failures.push('UPSTREAM_SYNC_NOT_DISABLED')
if (update.automaticUpstreamFetch || update.automaticUpstreamMerge || update.automaticComponentUpdate) failures.push('AUTOMATIC_UPSTREAM_PATH_ENABLED')
if (update.serverSourceCheckout || update.serverSourcePresence !== 'FORBIDDEN') failures.push('SERVER_SOURCE_POLICY_INVALID')
if (profile.sourceCodeOnServer !== false) failures.push('SOURCE_CODE_ALLOWED_BY_PROFILE')
if (profile.nodeId === 'PENDING_LIGHTHOUSE_REGISTRATION') failures.push('TARGET_NODE_NOT_REGISTERED')
if (profile.nodeId !== 'XX-GZ-001') failures.push('TARGET_NODE_MISMATCH')
if (!profile.lighthouseSourceCommit || !profile.expectedDmiInstanceUuid) failures.push('TARGET_IDENTITY_EVIDENCE_MISSING')
if (!fs.existsSync(artifact)) failures.push('SERVER_ARTIFACT_MISSING')
const forbiddenNames = new Set(['src', '.git', 'node_modules', 'Cargo.toml', 'Cargo.lock', 'package.json', 'pnpm-lock.yaml', 'package-lock.json', 'vite.config.ts', 'tsconfig.json'])
const forbiddenExtensions = new Set(['.ts', '.tsx', '.rs', '.map'])
function scan(directory) {
if (!fs.existsSync(directory)) return
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
const absolute = path.join(directory, entry.name)
if (forbiddenNames.has(entry.name) || (!entry.isDirectory() && forbiddenExtensions.has(path.extname(entry.name)))) failures.push(`FORBIDDEN_SOURCE_PAYLOAD:${path.relative(artifact, absolute)}`)
if (entry.isDirectory()) scan(absolute)
}
}
scan(artifact)
if (failures.length) {
process.stderr.write(`${JSON.stringify({ state: 'BLOCK_0', gate: 'GH-EDU-SERVER-ARTIFACT-ONLY-001', failures }, null, 2)}\n`)
process.exit(1)
}
process.stdout.write(`${JSON.stringify({ state: 'PASS_100', gate: 'GH-EDU-SERVER-ARTIFACT-ONLY-001', upstreamSync: 'DISABLED', sourceIncluded: false, nodeId: profile.nodeId }, null, 2)}\n`)

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,20 @@
[package]
name = "guanghu-education-industry-os"
version = "0.2.0"
description = "Guanghu Education Subdomain operating system client"
authors = ["Guanghu"]
license = "LicenseRef-Guanghu"
edition = "2021"
rust-version = "1.77.2"
[lib]
name = "guanghu_education_industry_os"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.5.4", features = [] }
[dependencies]
tauri = { version = "2.11.5", features = ["macos-private-api"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"

View file

@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}

View file

@ -0,0 +1,7 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Base window capability for the Guanghu education workspace",
"windows": ["main"],
"permissions": ["core:default"]
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"default":{"identifier":"default","description":"Base window capability for the Guanghu education workspace","local":true,"windows":["main"],"permissions":["core:default"]}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

View file

@ -0,0 +1,149 @@
use serde::Serialize;
use serde_json::Value;
use std::io::Write;
use std::process::{Command, Stdio};
const NODE_ALIAS: &str = "xx-gz-001";
const CHANNEL_ROOT: &str = "/var/lib/guanghu/education-data/channels/GH-EDU-CHANNEL-XX-001";
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
struct ChannelSnapshot {
node: Value,
fifth_domain_link: Value,
module_registry: Value,
update_authority: Value,
channel: Value,
code_channel: Value,
}
fn ssh_output(remote_command: &str) -> Result<String, String> {
let output = Command::new("/usr/bin/ssh")
.args([
"-o",
"BatchMode=yes",
"-o",
"ConnectTimeout=10",
NODE_ALIAS,
remote_command,
])
.output()
.map_err(|error| format!("SSH_LAUNCH_FAILED:{error}"))?;
if !output.status.success() {
return Err(format!(
"SSH_REMOTE_FAILED:{}",
String::from_utf8_lossy(&output.stderr).trim()
));
}
String::from_utf8(output.stdout).map_err(|error| format!("SSH_OUTPUT_INVALID_UTF8:{error}"))
}
fn read_remote_json(path: &str) -> Result<Value, String> {
let payload = ssh_output(&format!("cat {path}"))?;
serde_json::from_str(&payload).map_err(|error| format!("REMOTE_JSON_INVALID:{path}:{error}"))
}
#[tauri::command]
fn connect_channel() -> Result<ChannelSnapshot, String> {
let code_version = ssh_output("curl -fsS http://127.0.0.1:3901/api/v1/version")?;
let repository_search =
ssh_output("curl -fsS 'http://127.0.0.1:3901/api/v1/repos/search?limit=20'")?;
Ok(ChannelSnapshot {
node: read_remote_json("/var/lib/guanghu/protocol/node.json")?,
fifth_domain_link: read_remote_json(
"/var/lib/guanghu/receipts/XX-GZ-001/FIFTH-DOMAIN-LINK-CURRENT.json",
)?,
module_registry: read_remote_json("/opt/guanghu/protocol/current/module-registry.json")?,
update_authority: read_remote_json("/opt/guanghu/protocol/current/update-authority.json")?,
channel: read_remote_json("/opt/guanghu/protocol/current/xiaoxin-channel.json")?,
code_channel: serde_json::json!({
"version": serde_json::from_str::<Value>(&code_version)
.map_err(|error| format!("CODE_CHANNEL_VERSION_INVALID:{error}"))?,
"repositories": serde_json::from_str::<Value>(&repository_search)
.map_err(|error| format!("CODE_CHANNEL_REPOSITORIES_INVALID:{error}"))?
}),
})
}
fn channel_file(kind: &str) -> Result<(&'static str, &'static str), String> {
match kind {
"document" => Ok(("teacher-training-plan.md", "GH-EDU-OFFICE-DOC-001")),
"sheet" => Ok(("teacher-training-data.csv", "GH-EDU-OFFICE-SHEET-001")),
_ => Err(format!("UNREGISTERED_CHANNEL_FILE:{kind}")),
}
}
#[tauri::command]
fn read_channel_file(kind: String) -> Result<String, String> {
let (filename, _) = channel_file(&kind)?;
ssh_output(&format!(
"path='{CHANNEL_ROOT}/documents/{filename}'; if [ -f \"$path\" ]; then cat \"$path\"; fi"
))
}
#[tauri::command]
fn save_channel_file(kind: String, content: String) -> Result<Value, String> {
let (filename, module_id) = channel_file(&kind)?;
let path = format!("{CHANNEL_ROOT}/documents/{filename}");
let receipt = format!("{CHANNEL_ROOT}/receipts/{kind}-CURRENT.json");
let remote_command = format!(
"set -eu; \
install -d -m 700 '{CHANNEL_ROOT}/documents' '{CHANNEL_ROOT}/receipts'; \
path='{path}'; tmp=\"${{path}}.tmp.$$\"; umask 077; cat > \"$tmp\"; mv \"$tmp\" \"$path\"; \
sha=$(sha256sum \"$path\" | awk '{{print $1}}'); \
now=$(date -u +%Y-%m-%dT%H:%M:%SZ); \
receipt='{receipt}'; rtmp=\"${{receipt}}.tmp.$$\"; \
printf '{{\"schema\":\"guanghu.channel-write-receipt/v1\",\"channelId\":\"GH-EDU-CHANNEL-XX-001\",\"nodeId\":\"XX-GZ-001\",\"moduleId\":\"{module_id}\",\"kind\":\"{kind}\",\"sha256\":\"%s\",\"writtenAt\":\"%s\",\"state\":\"PASS_100\"}}\\n' \"$sha\" \"$now\" > \"$rtmp\"; \
mv \"$rtmp\" \"$receipt\"; cat \"$receipt\""
);
let mut child = Command::new("/usr/bin/ssh")
.args([
"-o",
"BatchMode=yes",
"-o",
"ConnectTimeout=10",
NODE_ALIAS,
&remote_command,
])
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
.map_err(|error| format!("SSH_SAVE_LAUNCH_FAILED:{error}"))?;
child
.stdin
.take()
.ok_or_else(|| "SSH_SAVE_STDIN_UNAVAILABLE".to_string())?
.write_all(content.as_bytes())
.map_err(|error| format!("SSH_SAVE_WRITE_FAILED:{error}"))?;
let output = child
.wait_with_output()
.map_err(|error| format!("SSH_SAVE_WAIT_FAILED:{error}"))?;
if !output.status.success() {
return Err(format!(
"SSH_SAVE_REMOTE_FAILED:{}",
String::from_utf8_lossy(&output.stderr).trim()
));
}
serde_json::from_slice(&output.stdout)
.map_err(|error| format!("SSH_SAVE_RECEIPT_INVALID:{error}"))
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
connect_channel,
read_channel_file,
save_channel_file
])
.run(tauri::generate_context!())
.expect("failed to run Guanghu Education Subdomain OS");
}

View file

@ -0,0 +1,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
guanghu_education_industry_os::run();
}

View file

@ -0,0 +1,36 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "光湖分域 · 教育",
"version": "0.2.0",
"identifier": "com.guanghulab.subdomain.education",
"build": {
"frontendDist": "../dist",
"devUrl": "http://127.0.0.1:5216",
"beforeDevCommand": "npm run dev",
"beforeBuildCommand": "npm run build"
},
"app": {
"macOSPrivateApi": true,
"windows": [{
"label": "main",
"title": "光湖分域 · 教育",
"width": 1440,
"height": 900,
"minWidth": 980,
"minHeight": 680,
"resizable": true,
"fullscreen": false,
"titleBarStyle": "Overlay",
"trafficLightPosition": { "x": 18, "y": 20 },
"hiddenTitle": true,
"backgroundColor": "#06101A"
}],
"security": { "csp": "default-src 'self' ipc: http://ipc.localhost; style-src 'self' 'unsafe-inline'; img-src 'self' data: asset: http://asset.localhost" }
},
"bundle": {
"active": true,
"targets": ["app"],
"category": "Productivity",
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns"]
}
}

View file

@ -0,0 +1,336 @@
import { invoke } from '@tauri-apps/api/core'
import { useMemo, useState } from 'react'
import {
bundledModules,
parseSheetMetrics,
routeInstruction,
type InstructionRoute,
type ModuleEntry,
type Surface,
} from './core/guanghuKernel'
type JsonRecord = Record<string, unknown>
type ChannelSnapshot = {
node: JsonRecord
fifthDomainLink: JsonRecord
moduleRegistry: { modules?: ModuleEntry[] }
updateAuthority: JsonRecord
channel: JsonRecord & { mountedModules?: string[] }
codeChannel: {
version?: { version?: string }
repositories?: { data?: unknown[] }
}
}
type SaveReceipt = {
channelId: string
moduleId: string
sha256: string
writtenAt: string
state: string
}
const defaultDocument = `# 高中项目师训工作三年专项规划2026—2029
##
-
- 线
-
##
-
-
-
##
-
-
`
const defaultSheet = `教师,培养进度
,72
,65
,58
,42
,38`
const navigation: Array<{ id: Surface; label: string; mark: string }> = [
{ id: 'channel', label: '我的频道', mark: '湖' },
{ id: 'document', label: '智能文档', mark: '文' },
{ id: 'sheet', label: '智能表格', mark: '表' },
{ id: 'dashboard', label: '图表与仪表盘', mark: '图' },
{ id: 'modules', label: '教育模块库', mark: '件' },
{ id: 'brain', label: '人格体脑区', mark: '脑' },
{ id: 'receipts', label: '执行回执', mark: '证' },
]
function LakeMark() {
return <span className="lake-mark" aria-hidden="true"><i /><b /></span>
}
function LoginGate({
error,
loading,
onConnect,
}: {
error: string
loading: boolean
onConnect: () => void
}) {
return <main className="login-gate">
<section className="login-window">
<div className="window-drag" data-tauri-drag-region />
<LakeMark />
<p> · </p>
<h1></h1>
<span></span>
<button className="server-entry" disabled={loading} onClick={onConnect}>
<i />
<span><strong>{loading ? '正在连接小新服务器…' : '进入小新 · 高中项目师训'}</strong><small>XX-GZ-001 · </small></span>
<b></b>
</button>
{error && <div className="login-error">{error}</div>}
<div className="reserved-logins">
<span></span>
<button disabled></button><button disabled></button>
<button disabled></button><button disabled></button>
</div>
<footer><i />线 · </footer>
</section>
</main>
}
function StatusCard({ label, value, detail, tone = 'green' }: {
label: string
value: string
detail: string
tone?: 'green' | 'blue' | 'amber'
}) {
return <article className={`status-card status-card--${tone}`}>
<span>{label}</span><strong>{value}</strong><small>{detail}</small>
</article>
}
function ChannelHome({ snapshot, modules }: { snapshot: ChannelSnapshot; modules: ModuleEntry[] }) {
const live = modules.filter((module) => module.state === 'LIVE_STAGE_1').length
const mounted = snapshot.channel.mountedModules?.length ?? 0
const repositoryCount = snapshot.codeChannel.repositories?.data?.length ?? 0
return <div className="page-stack">
<header className="page-intro">
<p>GH-EDU-CHANNEL-XX-001</p>
<h2> · </h2>
<span></span>
</header>
<section className="status-grid">
<StatusCard label="个人服务器" value={String(snapshot.node.state ?? '已连接')} detail="身份与现实数据锚点 · XX-GZ-001" />
<StatusCard label="第五域协议" value={String(snapshot.fifthDomainLink.state ?? '未知')} detail="上游导航 · JD-FD-PRIMARY" tone="blue" />
<StatusCard label="真实能力" value={`${live}`} detail={`模板已装配 ${mounted} 个模块地址`} tone="amber" />
<StatusCard label="代码频道" value={snapshot.codeChannel.version?.version ?? '未知'} detail={`${repositoryCount} 个服务器内仓库`} tone="blue" />
</section>
<section className="work-grid">
<article className="work-panel">
<header><h3></h3><span></span></header>
<ul>
<li><b>01</b><span><strong></strong><small>线</small></span></li>
<li><b>02</b><span><strong></strong><small></small></span></li>
<li><b>03</b><span><strong></strong><small></small></span></li>
</ul>
</article>
<article className="work-panel">
<header><h3></h3><span></span></header>
<div className="rule-list">
<p><i /></p>
<p><i /></p>
<p><i /></p>
<p><i />使</p>
</div>
</article>
</section>
</div>
}
function ServerEditor({
kind,
value,
onChange,
onSave,
saving,
}: {
kind: 'document' | 'sheet'
value: string
onChange: (value: string) => void
onSave: () => void
saving: boolean
}) {
return <section className="editor-page">
<header>
<div><p>{kind === 'document' ? 'GH-EDU-OFFICE-DOC-001' : 'GH-EDU-OFFICE-SHEET-001'}</p>
<h2>{kind === 'document' ? '智能文档' : '智能表格数据'}</h2>
<span></span></div>
<button onClick={onSave} disabled={saving}>{saving ? '正在写入服务器…' : '保存并生成回执'}</button>
</header>
<textarea aria-label={kind === 'document' ? '服务器文档' : '服务器表格'} value={value} onChange={(event) => onChange(event.target.value)} />
</section>
}
function Dashboard({ sheet }: { sheet: string }) {
const metrics = parseSheetMetrics(sheet)
const highest = metrics.reduce((best, item) => item.value > best.value ? item : best, { label: '—', value: 0 })
const average = metrics.length ? Math.round(metrics.reduce((sum, item) => sum + item.value, 0) / metrics.length * 10) / 10 : 0
return <div className="page-stack">
<header className="page-intro"><p>GH-EDU-OFFICE-DASH-001</p><h2></h2><span></span></header>
<section className="status-grid">
<StatusCard label="新师数量" value={`${metrics.length}`} detail="当前表格有效记录" />
<StatusCard label="平均进度" value={`${average}%`} detail="按当前表格计算" tone="blue" />
<StatusCard label="最高进度" value={highest.label} detail={`${highest.value}%`} tone="amber" />
</section>
<section className="chart-panel">
{metrics.map((item) => <div className="chart-row" key={item.label}>
<span>{item.label}</span><div><i style={{ width: `${Math.max(3, item.value)}%` }} /></div><strong>{item.value}%</strong>
</div>)}
</section>
</div>
}
function ModuleLibrary({ modules }: { modules: ModuleEntry[] }) {
const groups = [
['foundation', '系统地基'], ['office', '办公通用'], ['education', '教育通用'],
['xiaoxin-template', '小新师训模板'], ['persona-brain', '人格体脑区'],
]
return <div className="page-stack">
<header className="page-intro"><p>GH-EDU-MODULE-REGISTRY-0001</p><h2></h2><span>{modules.length} </span></header>
{groups.map(([id, label]) => <section className="module-group" key={id}>
<header><h3>{label}</h3><span>{modules.filter((module) => module.group === id).length} </span></header>
<div>{modules.filter((module) => module.group === id).map((module) =>
<article key={module.id}><code>{module.id}</code><strong>{module.title}</strong>
<span className={`module-state module-state--${module.state.toLowerCase()}`}>{module.state}</span>
<small>{module.capabilities.join(' · ') || module.source}</small></article>)}</div>
</section>)}
</div>
}
function BrainLibrary({ modules }: { modules: ModuleEntry[] }) {
const brain = modules.filter((module) => module.group === 'persona-brain')
return <div className="page-stack">
<header className="page-intro"><p>GH-EDU-PERSONA-BRAIN-CANDIDATES</p><h2></h2>
<span> Agent </span></header>
<section className="brain-grid">{brain.map((module, index) =>
<article key={module.id}><b>{String(index + 1).padStart(2, '0')}</b><div><code>{module.id}</code><strong>{module.title}</strong><small>{module.source}</small></div><span></span></article>)}</section>
</div>
}
function Receipts({ receipts, snapshot }: { receipts: SaveReceipt[]; snapshot: ChannelSnapshot }) {
return <div className="page-stack">
<header className="page-intro"><p>GH-EDU-CORE-RECEIPT-001</p><h2></h2><span></span></header>
<section className="receipt-list">
<article><i /><div><strong></strong><code>{String(snapshot.fifthDomainLink.state ?? 'UNKNOWN')}</code><small>{String(snapshot.fifthDomainLink.observed_at ?? '')}</small></div></article>
{receipts.map((receipt) => <article key={`${receipt.moduleId}-${receipt.writtenAt}`}><i /><div>
<strong>{receipt.moduleId}</strong><code>{receipt.state}</code><small>{receipt.sha256} · {receipt.writtenAt}</small>
</div></article>)}
{receipts.length === 0 && <p></p>}
</section>
</div>
}
function App() {
const [snapshot, setSnapshot] = useState<ChannelSnapshot | null>(null)
const [surface, setSurface] = useState<Surface>('channel')
const [instruction, setInstruction] = useState('')
const [route, setRoute] = useState<InstructionRoute | null>(null)
const [document, setDocument] = useState(defaultDocument)
const [sheet, setSheet] = useState(defaultSheet)
const [receipts, setReceipts] = useState<SaveReceipt[]>([])
const [connecting, setConnecting] = useState(false)
const [saving, setSaving] = useState(false)
const [error, setError] = useState('')
const modules = useMemo(
() => snapshot?.moduleRegistry.modules ?? bundledModules(),
[snapshot],
)
const connect = async () => {
setConnecting(true)
setError('')
try {
const [nextSnapshot, remoteDocument, remoteSheet] = await Promise.all([
invoke<ChannelSnapshot>('connect_channel'),
invoke<string>('read_channel_file', { kind: 'document' }),
invoke<string>('read_channel_file', { kind: 'sheet' }),
])
setSnapshot(nextSnapshot)
if (remoteDocument.trim()) setDocument(remoteDocument)
if (remoteSheet.trim()) setSheet(remoteSheet)
} catch (reason) {
setError(`服务器入口未通过:${String(reason)}`)
} finally {
setConnecting(false)
}
}
const save = async (kind: 'document' | 'sheet') => {
setSaving(true)
setError('')
try {
const receipt = await invoke<SaveReceipt>('save_channel_file', {
kind,
content: kind === 'document' ? document : sheet,
})
setReceipts((current) => [receipt, ...current.filter((item) => item.moduleId !== receipt.moduleId)])
setRoute({
moduleId: receipt.moduleId,
surface: kind,
intent: '保存到个人服务器',
state: 'LIVE_STAGE_1',
at: receipt.writtenAt,
})
} catch (reason) {
setError(`服务器写入失败:${String(reason)}`)
} finally {
setSaving(false)
}
}
const runInstruction = () => {
const next = routeInstruction(instruction, modules)
setRoute(next)
setSurface(next.surface)
}
if (!snapshot) return <LoginGate error={error} loading={connecting} onConnect={connect} />
return <main className="education-os">
<aside className="side-rail">
<div className="brand"><LakeMark /><span><strong> · </strong><small>EDUCATION SUBDOMAIN OS</small></span></div>
<nav>{navigation.map((item) => <button key={item.id} className={surface === item.id ? 'active' : ''} onClick={() => setSurface(item.id)}>
<i>{item.mark}</i><span>{item.label}</span></button>)}</nav>
<footer><span><i />XX-GZ-001 </span><small></small></footer>
</aside>
<section className="main-workspace">
<header className="topbar" data-tauri-drag-region>
<div data-tauri-drag-region><small></small><strong> · </strong></div>
<div className="command-box">
<input value={instruction} onChange={(event) => setInstruction(event.target.value)} onKeyDown={(event) => event.key === 'Enter' && runInstruction()} placeholder="说出要打开的真实能力,例如:整理三年规划文档" />
<button onClick={runInstruction}></button>
</div>
<div className="node-pill"><i />线</div>
</header>
{route && <div className="route-strip"><span></span><code>{route.moduleId}</code><b>{route.state}</b></div>}
{error && <div className="workspace-error">{error}</div>}
<div className="page">
{surface === 'channel' && <ChannelHome snapshot={snapshot} modules={modules} />}
{surface === 'document' && <ServerEditor kind="document" value={document} onChange={setDocument} onSave={() => save('document')} saving={saving} />}
{surface === 'sheet' && <ServerEditor kind="sheet" value={sheet} onChange={setSheet} onSave={() => save('sheet')} saving={saving} />}
{surface === 'dashboard' && <Dashboard sheet={sheet} />}
{surface === 'modules' && <ModuleLibrary modules={modules} />}
{surface === 'brain' && <BrainLibrary modules={modules} />}
{surface === 'receipts' && <Receipts receipts={receipts} snapshot={snapshot} />}
</div>
</section>
</main>
}
export default App

View file

@ -0,0 +1,27 @@
import { describe, expect, it } from 'vitest'
import { bundledModules, parseSheetMetrics, routeInstruction } from './guanghuKernel'
describe('Guanghu Education Subdomain kernel', () => {
it.each([
['整理三年规划文档', 'document', 'GH-EDU-OFFICE-DOC-001'],
['打开新教师数据表格', 'sheet', 'GH-EDU-OFFICE-SHEET-001'],
['把数据做成对比仪表盘', 'dashboard', 'GH-EDU-OFFICE-DASH-001'],
['看看人格大脑技能', 'brain', 'GH-EDU-BRAIN-INTENT-001'],
])('routes %s to a registered module', (intent, surface, moduleId) => {
expect(routeInstruction(intent, bundledModules())).toMatchObject({ surface, moduleId })
})
it('keeps preregistration distinct from live execution', () => {
const modules = bundledModules()
expect(modules.some((module) => module.state === 'LIVE_STAGE_1')).toBe(true)
expect(modules.some((module) => module.state === 'PRE_REGISTERED')).toBe(true)
expect(modules.some((module) => module.state === 'RESEARCH_ONLY')).toBe(true)
})
it('projects numeric sheet rows for a dashboard', () => {
expect(parseSheetMetrics('教师,培养进度\n孙雨桐,72%\n周子航,65%')).toEqual([
{ label: '孙雨桐', value: 72 },
{ label: '周子航', value: 65 },
])
})
})

View file

@ -0,0 +1,67 @@
import registry from '../../protocol/module-registry.json'
export type Surface = 'channel' | 'document' | 'sheet' | 'dashboard' | 'modules' | 'brain' | 'receipts'
export type ModuleState = 'LIVE_STAGE_1' | 'READY_STAGE_1' | 'PRE_REGISTERED' | 'RESEARCH_ONLY'
export type ModuleEntry = {
id: string
group: string
surface: string
title: string
state: ModuleState
capabilities: string[]
source: string
license?: string
candidateParts?: string[]
}
export type InstructionRoute = {
moduleId: string
surface: Surface
intent: string
state: ModuleState
at: string
}
const routes: Array<{ surface: Surface; moduleId: string; keywords: string[] }> = [
{ surface: 'dashboard', moduleId: 'GH-EDU-OFFICE-DASH-001', keywords: ['仪表盘', '图表', '对比图', '看板', '分析'] },
{ surface: 'document', moduleId: 'GH-EDU-OFFICE-DOC-001', keywords: ['文档', '方案', '总结', '报告', '教案', '规划'] },
{ surface: 'sheet', moduleId: 'GH-EDU-OFFICE-SHEET-001', keywords: ['表格', '数据', '名单', 'csv', '统计'] },
{ surface: 'brain', moduleId: 'GH-EDU-BRAIN-INTENT-001', keywords: ['人格', '大脑', 'agent', '技能'] },
{ surface: 'modules', moduleId: 'GH-EDU-CORE-LIGHTHOUSE-001', keywords: ['模块', '零件', '能力', '灯塔'] },
{ surface: 'receipts', moduleId: 'GH-EDU-CORE-RECEIPT-001', keywords: ['回执', '证据', '验证'] },
{ surface: 'channel', moduleId: 'GH-EDU-CORE-CHANNEL-001', keywords: ['频道', '小新', '首页', '师训'] },
]
export function routeInstruction(intent: string, modules: ModuleEntry[]): InstructionRoute {
const normalized = intent.trim().toLocaleLowerCase()
const route = routes.find((candidate) =>
candidate.keywords.some((keyword) => normalized.includes(keyword)),
) ?? routes[routes.length - 1]
const module = modules.find((candidate) => candidate.id === route.moduleId)
if (!module) throw new Error(`UNREGISTERED_MODULE:${route.moduleId}`)
return {
moduleId: module.id,
surface: route.surface,
intent,
state: module.state,
at: new Date().toISOString(),
}
}
export function bundledModules(): ModuleEntry[] {
return registry.modules as ModuleEntry[]
}
export function parseSheetMetrics(content: string): Array<{ label: string; value: number }> {
return content
.trim()
.split(/\r?\n/)
.slice(1)
.map((row) => {
const [label = '', rawValue = ''] = row.split(',')
return { label: label.trim(), value: Number(rawValue.replace('%', '').trim()) }
})
.filter((item) => item.label.length > 0 && Number.isFinite(item.value))
}

View file

@ -0,0 +1,6 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'
import './styles.css'
createRoot(document.getElementById('root')!).render(<StrictMode><App /></StrictMode>)

View file

@ -0,0 +1,157 @@
:root {
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
color: #dce9f3;
background: #050c14;
font-synthesis: none;
text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 900px; min-height: 100vh; overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.login-gate {
display: grid;
min-height: 100vh;
place-items: center;
background:
radial-gradient(circle at 50% 12%, rgba(45, 121, 174, .18), transparent 38%),
radial-gradient(ellipse at 50% 110%, rgba(28, 119, 163, .28), transparent 42%),
#050c14;
}
.login-window {
position: relative;
width: min(620px, calc(100vw - 80px));
padding: 58px 56px 38px;
border: 1px solid rgba(103, 161, 202, .25);
border-radius: 18px;
background: linear-gradient(180deg, rgba(8, 20, 32, .96), rgba(5, 15, 25, .94));
box-shadow: 0 30px 90px rgba(0, 0, 0, .38), inset 0 1px rgba(255,255,255,.025);
text-align: center;
}
.window-drag { position: absolute; inset: 0 0 auto; height: 42px; border-radius: 18px 18px 0 0; }
.login-window > .lake-mark { width: 58px; height: 58px; margin-bottom: 18px; transform: scale(1.65); }
.login-window > p { margin: 0 0 8px; color: #6ec2f4; font-size: 12px; letter-spacing: .18em; }
.login-window h1 { margin: 0; color: #f0f7fc; font-size: 31px; font-weight: 650; letter-spacing: -.03em; }
.login-window > span { display: block; margin: 13px auto 30px; color: #7790a3; font-size: 13px; }
.server-entry {
display: grid;
width: 100%;
grid-template-columns: 13px 1fr auto;
align-items: center;
gap: 14px;
padding: 18px 20px;
border: 1px solid rgba(86, 178, 239, .5);
border-radius: 10px;
color: #dff3ff;
background: linear-gradient(90deg, rgba(37, 115, 170, .2), rgba(23, 76, 116, .12));
cursor: pointer;
text-align: left;
}
.server-entry:hover { border-color: #5fc5ff; background: rgba(43, 128, 184, .2); }
.server-entry:disabled { cursor: wait; opacity: .68; }
.server-entry > i { width: 8px; height: 8px; border-radius: 50%; background: #46d2b8; box-shadow: 0 0 12px #46d2b8; }
.server-entry span { display: grid; gap: 5px; }.server-entry strong { font-size: 15px; }.server-entry small { color: #6f8ca1; font-size: 10px; }
.server-entry > b { color: #76caff; font-size: 22px; font-weight: 400; }
.reserved-logins { display: flex; align-items: center; gap: 7px; margin-top: 22px; }
.reserved-logins > span { margin-right: auto; color: #577084; font-size: 10px; }
.reserved-logins button { padding: 6px 9px; border: 1px solid rgba(99, 137, 164, .15); border-radius: 5px; color: #4b6478; background: rgba(10, 27, 41, .45); font-size: 9px; }
.login-window footer { margin-top: 28px; color: #4d697d; font-size: 10px; }
.login-window footer i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #3dbfa9; }
.login-error, .workspace-error { margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(229, 95, 104, .25); color: #e78d94; background: rgba(120, 30, 38, .12); font-size: 10px; text-align: left; }
.education-os {
--line: rgba(118, 161, 191, .17);
--muted: #6d8496;
--blue: #5ab4f5;
--aqua: #43d0b9;
display: grid;
grid-template-columns: 224px minmax(0, 1fr);
height: 100vh;
background: radial-gradient(circle at 74% -20%, rgba(47, 111, 157, .17), transparent 42%), #06101a;
}
.side-rail {
position: relative;
display: flex;
min-height: 0;
flex-direction: column;
padding: 24px 12px 16px;
border-right: 1px solid var(--line);
overflow: hidden;
background: linear-gradient(180deg, #07111d 0%, #06111e 68%, #08243c 100%);
}
.side-rail::after {
position: absolute; inset: auto -25% 0; height: 28%; content: "";
pointer-events: none;
background: radial-gradient(ellipse at 50% 100%, rgba(42, 156, 210, .32), transparent 58%);
}
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 0 10px 17px; border-bottom: 1px solid var(--line); }
.brand > span { display: grid; gap: 4px; }.brand strong { color: #e7f1f8; font-size: 15px; }.brand small { color: #526d83; font-size: 8px; letter-spacing: .09em; }
.lake-mark { position: relative; display: inline-block; width: 32px; height: 32px; flex: 0 0 32px; }
.lake-mark::before, .lake-mark::after { position: absolute; left: 3px; right: 3px; top: 15px; height: 1px; border-radius: 50%; content: ""; background: #5bdfff; box-shadow: 0 0 12px #4ec9ff; transform: rotate(-12deg); }
.lake-mark::after { transform: rotate(12deg); }.lake-mark i { position: absolute; left: 14px; top: 5px; width: 3px; height: 22px; background: linear-gradient(transparent, #fff, transparent); box-shadow: 0 0 10px #69e8ff; }
.lake-mark b { position: absolute; left: 8px; top: 10px; width: 16px; height: 12px; border: 1px solid #549cf4; border-radius: 50%; transform: rotate(-18deg); }
.side-rail nav { position: relative; z-index: 1; display: grid; gap: 4px; margin-top: 18px; }
.side-rail nav button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 6px; color: #8197a8; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
.side-rail nav button:hover { color: #d7ebf8; background: rgba(80, 147, 196, .08); }
.side-rail nav button.active { color: #78c6fa; background: linear-gradient(90deg, rgba(61, 148, 212, .2), rgba(61, 148, 212, .04)); box-shadow: inset 2px 0 #4aa8f0; }
.side-rail nav i { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(111, 154, 185, .25); border-radius: 6px; font-size: 10px; font-style: normal; }
.side-rail footer { position: relative; z-index: 1; display: grid; gap: 6px; margin-top: auto; padding: 12px 10px 2px; color: #607a8d; font-size: 9px; }
.side-rail footer span { color: #89a4b7; }.side-rail footer i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #45cfb7; box-shadow: 0 0 8px #45cfb7; }
.main-workspace { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.topbar { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(420px, 1.45fr) auto; align-items: center; gap: 24px; min-height: 86px; padding: 16px 24px 12px 28px; border-bottom: 1px solid var(--line); background: rgba(5, 14, 23, .74); }
.topbar > div:first-child { display: grid; gap: 3px; }.topbar small { color: #526c80; font-size: 9px; }.topbar strong { color: #e4eff7; font-size: 15px; }
.command-box { display: grid; grid-template-columns: 1fr auto; height: 43px; border: 1px solid rgba(84, 142, 183, .32); border-radius: 7px; overflow: hidden; background: #0a1927; }
.command-box input { min-width: 0; padding: 0 14px; border: 0; outline: 0; color: #d8e7f2; background: transparent; font-size: 11px; }
.command-box input::placeholder { color: #4f687b; }.command-box button { padding: 0 16px; border: 0; border-left: 1px solid rgba(84,142,183,.2); color: #75bff1; background: rgba(62, 133, 185, .08); cursor: pointer; font-size: 10px; }
.node-pill { padding: 8px 10px; border: 1px solid rgba(66, 197, 174, .2); border-radius: 6px; color: #78aa9f; background: rgba(38, 126, 112, .08); font-size: 9px; }
.node-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #47d0b7; }
.route-strip { display: flex; min-height: 32px; align-items: center; gap: 11px; padding: 5px 28px; border-bottom: 1px solid rgba(59, 190, 167, .15); color: #6f948b; background: rgba(29, 106, 94, .07); font-size: 9px; }
.route-strip code { color: #48cbb4; }.route-strip b { margin-left: auto; color: #54786f; font-weight: 500; }
.workspace-error { margin: 0; border-width: 0 0 1px; }
.page { min-height: 0; flex: 1; overflow: auto; padding: 25px 28px 36px; }
.page-stack { display: grid; gap: 16px; max-width: 1250px; margin: 0 auto; }
.page-intro { padding: 2px 2px 9px; }.page-intro p, .editor-page header p { margin: 0 0 7px; color: #4aa9e8; font-size: 9px; letter-spacing: .08em; }
.page-intro h2, .editor-page h2 { margin: 0; color: #edf5fa; font-size: 25px; font-weight: 650; letter-spacing: -.025em; }
.page-intro span, .editor-page header span { display: block; margin-top: 7px; color: #6c8395; font-size: 11px; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.status-card { display: grid; gap: 7px; min-height: 112px; padding: 15px 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 27, 42, .9), rgba(7, 21, 33, .9)); }
.status-card span { color: #71899b; font-size: 9px; }.status-card strong { color: #62d0bc; font-size: 20px; }.status-card small { color: #526b7f; font-size: 8px; }
.status-card--blue strong { color: #64b8ef; }.status-card--amber strong { color: #d5b463; }
.work-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.work-panel, .chart-panel, .module-group, .brain-grid, .receipt-list { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 27, 42, .9), rgba(7, 20, 32, .92)); }
.work-panel > header, .module-group > header { display: flex; min-height: 45px; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--line); }
.work-panel h3, .module-group h3 { margin: 0; color: #d9e7f0; font-size: 12px; }.work-panel header span, .module-group header span { color: #5b7487; font-size: 8px; }
.work-panel ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }.work-panel li { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 10px 15px; border-bottom: 1px solid rgba(118,161,191,.1); }
.work-panel li > b { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(79, 167, 226, .3); border-radius: 6px; color: #5aaee6; font-size: 8px; }
.work-panel li span { display: grid; gap: 4px; }.work-panel li strong { color: #afc2cf; font-size: 10px; }.work-panel li small { color: #587184; font-size: 8px; }
.rule-list { display: grid; padding: 10px 16px; }.rule-list p { color: #7d94a5; font-size: 10px; }.rule-list i { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: #44cdb5; }
.editor-page { display: flex; max-width: 1250px; min-height: calc(100vh - 150px); margin: 0 auto; flex-direction: column; border: 1px solid var(--line); background: rgba(7, 20, 32, .9); }
.editor-page > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.editor-page h2 { font-size: 21px; }.editor-page header button { min-height: 34px; padding: 0 14px; border: 1px solid rgba(64, 198, 174, .48); border-radius: 5px; color: #c9f4eb; background: rgba(38, 142, 124, .15); cursor: pointer; font-size: 10px; }
.editor-page header button:disabled { opacity: .6; cursor: wait; }
.editor-page textarea { min-height: 0; flex: 1; padding: 28px 32px; border: 0; outline: 0; resize: none; color: #becfdc; background: rgba(4, 13, 21, .34); font: 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.chart-panel { display: grid; gap: 15px; padding: 24px; }.chart-row { display: grid; grid-template-columns: 88px 1fr 48px; align-items: center; gap: 12px; }
.chart-row > span, .chart-row > strong { color: #849aab; font-size: 10px; }.chart-row > strong { color: #a9c0cf; text-align: right; }
.chart-row > div { height: 9px; border-radius: 5px; overflow: hidden; background: #102738; }.chart-row i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #399bcf, #46d0b8); }
.module-group > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.module-group article { position: relative; display: grid; min-height: 105px; gap: 7px; padding: 14px; border-right: 1px solid rgba(118,161,191,.1); border-bottom: 1px solid rgba(118,161,191,.1); }
.module-group article code { color: #4e94bf; font-size: 7px; }.module-group article strong { color: #b6c8d4; font-size: 10px; }.module-group article small { color: #526c7f; font-size: 7px; }
.module-state { width: fit-content; padding: 3px 5px; border-radius: 3px; color: #6ea494; background: rgba(49, 145, 123, .1); font-size: 6px; }
.module-state--pre_registered { color: #ad955e; background: rgba(165, 125, 48, .1); }.module-state--research_only { color: #8878a2; background: rgba(104, 75, 143, .12); }
.brain-grid { display: grid; grid-template-columns: 1fr 1fr; }.brain-grid article { display: flex; min-height: 86px; align-items: center; gap: 13px; padding: 14px; border-right: 1px solid rgba(118,161,191,.1); border-bottom: 1px solid rgba(118,161,191,.1); }
.brain-grid article > b { color: #355f7a; font: 17px ui-monospace, monospace; }.brain-grid article > div { display: grid; flex: 1; gap: 4px; }.brain-grid code { color: #4d8bb5; font-size: 7px; }.brain-grid strong { color: #b3c5d1; font-size: 10px; }.brain-grid small { color: #526a7c; font-size: 7px; }.brain-grid article > span { color: #897a9e; font-size: 7px; }
.receipt-list { display: grid; }.receipt-list article { display: flex; min-height: 68px; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: 1px solid rgba(118,161,191,.1); }
.receipt-list article > i { width: 7px; height: 7px; border-radius: 50%; background: #44cdb4; box-shadow: 0 0 8px #44cdb4; }.receipt-list article > div { display: grid; flex: 1; grid-template-columns: 1fr auto; gap: 5px 20px; }
.receipt-list strong { color: #b4c6d2; font-size: 10px; }.receipt-list code { color: #45c9b1; font-size: 8px; }.receipt-list small { grid-column: 1 / -1; color: #526a7c; font-size: 7px; }.receipt-list > p { padding: 20px; color: #586f82; font-size: 9px; }
@media (max-width: 1100px) {
.education-os { grid-template-columns: 190px minmax(0, 1fr); }
.topbar { grid-template-columns: 170px minmax(350px, 1fr); }
.node-pill { display: none; }
.status-grid { grid-template-columns: 1fr 1fr; }
.module-group > div { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

View file

@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "ES2022", "useDefineForClassFields": true, "lib": ["ES2022", "DOM", "DOM.Iterable"],
"allowJs": false, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true,
"strict": true, "forceConsistentCasingInFileNames": true, "module": "ESNext", "moduleResolution": "Bundler",
"resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "react-jsx"
},
"include": ["src"]
}

View file

@ -0,0 +1,4 @@
{
"files": [],
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
}

View file

@ -0,0 +1,4 @@
{
"compilerOptions": { "composite": true, "skipLibCheck": true, "module": "ESNext", "moduleResolution": "Bundler" },
"include": ["vite.config.ts"]
}

View file

@ -0,0 +1,4 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({ plugins: [react()], clearScreen: false, server: { strictPort: true } })