dsh-mnemon-source-documents 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +13 -8
- package/package.json +2 -2
- package/presentation/locales.json +10 -6
package/lib/client.js
CHANGED
|
@@ -65,6 +65,7 @@ window.__ModuleLoader__.load({
|
|
|
65
65
|
"documents.updated": "已保存新的档案修订。",
|
|
66
66
|
"documents.updatedAfterArchive": "已先迁移 {count} 份旧档案,再保存修订。",
|
|
67
67
|
"documents.archived": "已建立 Mnemon 冷索引并归档;关联记忆空间:{spaces}",
|
|
68
|
+
"documents.archivedLocally": "已归档到本地:原文移入归档目录,没有建立 Mnemon 冷索引。",
|
|
68
69
|
"documents.list": "项目档案列表",
|
|
69
70
|
"documents.activeList": "活跃目录",
|
|
70
71
|
"documents.archiveList": "归档目录",
|
|
@@ -84,11 +85,12 @@ window.__ModuleLoader__.load({
|
|
|
84
85
|
"documents.hash": "内容哈希",
|
|
85
86
|
"documents.size": "文件大小",
|
|
86
87
|
"documents.archiveReceipt": "Mnemon 冷索引回执",
|
|
88
|
+
"documents.archiveNote": "归档说明",
|
|
87
89
|
"documents.archiveTitle": "迁入归档",
|
|
88
|
-
"documents.archiveDescription": "独立任务 Agent 先拟定摘要和目标空间;Host
|
|
90
|
+
"documents.archiveDescription": "独立任务 Agent 先拟定摘要和目标空间;Host 校验后写入冷索引,再移动原文。没有已启用且支持精确写入与删除的记忆空间时,原文直接移入本地归档,不建立索引。",
|
|
89
91
|
"documents.archive": "归档",
|
|
90
|
-
"documents.archiveConfirm": "
|
|
91
|
-
"documents.archiving": "
|
|
92
|
+
"documents.archiveConfirm": "确认归档这份档案?",
|
|
93
|
+
"documents.archiving": "归档中…",
|
|
92
94
|
"documents.archiveNow": "确认归档",
|
|
93
95
|
"documents.footnote": "`.mnemon/documents/index.json` 是控制面事实源;active 总量固定不超过 10 MB,archived 不计入上限,项目源文件不会被修改。"
|
|
94
96
|
};
|
|
@@ -126,6 +128,7 @@ window.__ModuleLoader__.load({
|
|
|
126
128
|
"documents.updated": "New document revision saved.",
|
|
127
129
|
"documents.updatedAfterArchive": "Archived {count} older document(s), then saved the revision.",
|
|
128
130
|
"documents.archived": "Mnemon cold index created and document archived; Memory Spaces: {spaces}",
|
|
131
|
+
"documents.archivedLocally": "Archived locally: the original moved to the archive, without a Mnemon cold index.",
|
|
129
132
|
"documents.list": "Project document list",
|
|
130
133
|
"documents.activeList": "Active directory",
|
|
131
134
|
"documents.archiveList": "Archive directory",
|
|
@@ -145,11 +148,12 @@ window.__ModuleLoader__.load({
|
|
|
145
148
|
"documents.hash": "Content hash",
|
|
146
149
|
"documents.size": "File size",
|
|
147
150
|
"documents.archiveReceipt": "Mnemon cold-index receipt",
|
|
151
|
+
"documents.archiveNote": "Archive note",
|
|
148
152
|
"documents.archiveTitle": "Move to archive",
|
|
149
|
-
"documents.archiveDescription": "An independent task Agent proposes a summary and destination. The Host validates and writes the cold index before moving the original.
|
|
153
|
+
"documents.archiveDescription": "An independent task Agent proposes a summary and destination. The Host validates and writes the cold index before moving the original. Without an active Memory Space that has exact writes and safe deletion, the original moves to the local archive without an index.",
|
|
150
154
|
"documents.archive": "Archive",
|
|
151
|
-
"documents.archiveConfirm": "
|
|
152
|
-
"documents.archiving": "
|
|
155
|
+
"documents.archiveConfirm": "Archive this document?",
|
|
156
|
+
"documents.archiving": "Archiving…",
|
|
153
157
|
"documents.archiveNow": "Confirm archive",
|
|
154
158
|
"documents.footnote": "`.mnemon/documents/index.json` is the control-plane source of truth. active stays at or below 10 MB, archived is excluded, and project source files are never modified."
|
|
155
159
|
};
|
|
@@ -1338,7 +1342,8 @@ window.__ModuleLoader__.load({
|
|
|
1338
1342
|
setNotice(null);
|
|
1339
1343
|
try {
|
|
1340
1344
|
const result = await props.client.archiveDocument(selected.id);
|
|
1341
|
-
|
|
1345
|
+
const spaces = result.maintenance?.memoryBodyIds ?? [];
|
|
1346
|
+
setNotice(spaces.length === 0 ? t("documents.archivedLocally") : t("documents.archived", { spaces: spaces.join(", ") }));
|
|
1342
1347
|
setConfirmArchive(false);
|
|
1343
1348
|
setStatus("archived");
|
|
1344
1349
|
setQuery("");
|
|
@@ -1593,7 +1598,7 @@ window.__ModuleLoader__.load({
|
|
|
1593
1598
|
selected.status === "archived" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1594
1599
|
className: css.documentArchiveReceipt,
|
|
1595
1600
|
children: [
|
|
1596
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("documents.archiveReceipt") }),
|
|
1601
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t(selected.memoryBodyIds.length === 0 ? "documents.archiveNote" : "documents.archiveReceipt") }),
|
|
1597
1602
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: selected.archiveSummary }),
|
|
1598
1603
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: selected.memoryBodyIds.map((id) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children: id }, id)) })
|
|
1599
1604
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-source-documents",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"description": "Self-contained documents Source for Composable View Memory.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/node": "^22.0.0",
|
|
62
62
|
"@types/react": "^18.3.0",
|
|
63
63
|
"@types/react-dom": "^18.3.0",
|
|
64
|
-
"dsh-mnemon": "^0.5.
|
|
64
|
+
"dsh-mnemon": "^0.5.25",
|
|
65
65
|
"jsdom": "^26.0.0",
|
|
66
66
|
"react": "^18.2.0",
|
|
67
67
|
"react-dom": "^18.2.0",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"documents.updated": "已保存新的档案修订。",
|
|
34
34
|
"documents.updatedAfterArchive": "已先迁移 {count} 份旧档案,再保存修订。",
|
|
35
35
|
"documents.archived": "已建立 Mnemon 冷索引并归档;关联记忆空间:{spaces}",
|
|
36
|
+
"documents.archivedLocally": "已归档到本地:原文移入归档目录,没有建立 Mnemon 冷索引。",
|
|
36
37
|
"documents.list": "项目档案列表",
|
|
37
38
|
"documents.activeList": "活跃目录",
|
|
38
39
|
"documents.archiveList": "归档目录",
|
|
@@ -52,11 +53,12 @@
|
|
|
52
53
|
"documents.hash": "内容哈希",
|
|
53
54
|
"documents.size": "文件大小",
|
|
54
55
|
"documents.archiveReceipt": "Mnemon 冷索引回执",
|
|
56
|
+
"documents.archiveNote": "归档说明",
|
|
55
57
|
"documents.archiveTitle": "迁入归档",
|
|
56
|
-
"documents.archiveDescription": "独立任务 Agent 先拟定摘要和目标空间;Host
|
|
58
|
+
"documents.archiveDescription": "独立任务 Agent 先拟定摘要和目标空间;Host 校验后写入冷索引,再移动原文。没有已启用且支持精确写入与删除的记忆空间时,原文直接移入本地归档,不建立索引。",
|
|
57
59
|
"documents.archive": "归档",
|
|
58
|
-
"documents.archiveConfirm": "
|
|
59
|
-
"documents.archiving": "
|
|
60
|
+
"documents.archiveConfirm": "确认归档这份档案?",
|
|
61
|
+
"documents.archiving": "归档中…",
|
|
60
62
|
"documents.archiveNow": "确认归档",
|
|
61
63
|
"documents.footnote": "`.mnemon/documents/index.json` 是控制面事实源;active 总量固定不超过 10 MB,archived 不计入上限,项目源文件不会被修改。"
|
|
62
64
|
},
|
|
@@ -94,6 +96,7 @@
|
|
|
94
96
|
"documents.updated": "New document revision saved.",
|
|
95
97
|
"documents.updatedAfterArchive": "Archived {count} older document(s), then saved the revision.",
|
|
96
98
|
"documents.archived": "Mnemon cold index created and document archived; Memory Spaces: {spaces}",
|
|
99
|
+
"documents.archivedLocally": "Archived locally: the original moved to the archive, without a Mnemon cold index.",
|
|
97
100
|
"documents.list": "Project document list",
|
|
98
101
|
"documents.activeList": "Active directory",
|
|
99
102
|
"documents.archiveList": "Archive directory",
|
|
@@ -113,11 +116,12 @@
|
|
|
113
116
|
"documents.hash": "Content hash",
|
|
114
117
|
"documents.size": "File size",
|
|
115
118
|
"documents.archiveReceipt": "Mnemon cold-index receipt",
|
|
119
|
+
"documents.archiveNote": "Archive note",
|
|
116
120
|
"documents.archiveTitle": "Move to archive",
|
|
117
|
-
"documents.archiveDescription": "An independent task Agent proposes a summary and destination. The Host validates and writes the cold index before moving the original.
|
|
121
|
+
"documents.archiveDescription": "An independent task Agent proposes a summary and destination. The Host validates and writes the cold index before moving the original. Without an active Memory Space that has exact writes and safe deletion, the original moves to the local archive without an index.",
|
|
118
122
|
"documents.archive": "Archive",
|
|
119
|
-
"documents.archiveConfirm": "
|
|
120
|
-
"documents.archiving": "
|
|
123
|
+
"documents.archiveConfirm": "Archive this document?",
|
|
124
|
+
"documents.archiving": "Archiving…",
|
|
121
125
|
"documents.archiveNow": "Confirm archive",
|
|
122
126
|
"documents.footnote": "`.mnemon/documents/index.json` is the control-plane source of truth. active stays at or below 10 MB, archived is excluded, and project source files are never modified."
|
|
123
127
|
}
|