feat(library): 适配 WeKnora 0.9.1 并搬运编辑历史
build / build (push) Successful in 2m3s

- profile 新增 137(由 v090 克隆),声明知识域关联表 copied/derived/excluded 分类。
- 导出前与导入写事务内各跑漏表门禁;未声明有数据拒绝,空表警告写入 WriteSet。
- chunk_revisions/wiki_page_revisions 接入范围改写、目标身份映射、自然键与回滚顺序。
This commit is contained in:
Zhero & Rin
2026-11-30 18:45:31 +08:00
committed by 姚章浩
parent 32c773e24d
commit 73413c59ee
28 changed files with 1162 additions and 35 deletions
+3
View File
@@ -119,6 +119,9 @@ type WriteSet struct {
CreatedAt time.Time `json:"created_at"`
Rows []WriteSetRow `json:"rows"`
Universe map[string]TableFingerprint `json:"universe"`
// Warnings 是放行但需要留痕的契约警告(例如未分类但为空的表)。omitempty:
// 空警告不改变历史计划的规范字节/摘要,旧记录读回仍然一致。
Warnings []string `json:"warnings,omitempty"`
// Digest 是对除本字段外全部内容的 sha256:落盘文件名与治理库里的引用都用它,
// 记录被改一个字节就对不上。
Digest string `json:"digest"`