Add MindSpace service facade skeleton

This commit is contained in:
john
2026-07-02 21:06:03 +08:00
parent 66c530b1ed
commit 253ee870e7
4 changed files with 180 additions and 1 deletions
+1
View File
@@ -94,6 +94,7 @@ validatePublicBackingObject({ publicationId })
- 新代码不得直接拼 `/MindSpace/<userId>/...`
- 当前分支新增的 `mindspace-canonical-url.mjs` 是 P1 facade 起点;后续旧 helper 迁移到它后,再接入 backing object 校验。
- 当前分支新增的 `mindspace-service.mjs` 是组合门面起点;它先组合 package manifest、storage adapter、canonical URL,不接入现有运行链路。
- 旧 URL helper 暂时保留为 compatibility layer。
- public URL 必须能反查到 publication 或 asset。
- URL 返回前应校验 backing object 存在,或明确返回 pending 状态。