chore(deadcode): drop retired memory wiki vault metadata · openclaw/openclaw@03ee226
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
File tree
extensions/memory-wiki/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,9 +35,12 @@ describe("initializeMemoryWikiVault", () => {
|
35 | 35 | await expect(fs.readFile(path.join(rootDir, "WIKI.md"), "utf8")).resolves.toContain( |
36 | 36 | "Render mode: `obsidian`", |
37 | 37 | ); |
38 | | -await expect( |
39 | | -fs.readFile(path.join(rootDir, ".openclaw-wiki", "state.json"), "utf8"), |
40 | | -).resolves.toContain('"renderMode": "obsidian"'); |
| 38 | +await expect(fs.access(path.join(rootDir, ".openclaw-wiki", "state.json"))).rejects.toThrow( |
| 39 | +/ENOENT/, |
| 40 | +); |
| 41 | +await expect(fs.access(path.join(rootDir, ".openclaw-wiki", "locks"))).rejects.toThrow( |
| 42 | +/ENOENT/, |
| 43 | +); |
41 | 44 | }); |
42 | 45 | |
43 | 46 | it("is idempotent when the vault already exists", async () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,6 @@ export const WIKI_VAULT_DIRECTORIES = [
|
20 | 20 | "_attachments", |
21 | 21 | "_views", |
22 | 22 | ".openclaw-wiki", |
23 | | -".openclaw-wiki/locks", |
24 | 23 | ".openclaw-wiki/cache", |
25 | 24 | ] as const; |
26 | 25 | |
@@ -125,22 +124,6 @@ export async function initializeMemoryWikiVault(
|
125 | 124 | withTrailingNewline("# Inbox\n\nDrop raw ideas, questions, and source links here.\n"), |
126 | 125 | createdFiles, |
127 | 126 | ); |
128 | | -await writeFileIfMissing( |
129 | | -rootDir, |
130 | | -".openclaw-wiki/state.json", |
131 | | -withTrailingNewline( |
132 | | -JSON.stringify( |
133 | | -{ |
134 | | -version: 1, |
135 | | -createdAt: resolveMemoryWikiTimestamp(options?.nowMs), |
136 | | -renderMode: config.vault.renderMode, |
137 | | -}, |
138 | | -null, |
139 | | -2, |
140 | | -), |
141 | | -), |
142 | | -createdFiles, |
143 | | -); |
144 | 127 | await writeFileIfMissing(rootDir, ".openclaw-wiki/log.jsonl", "", createdFiles); |
145 | 128 | |
146 | 129 | if (createdDirectories.length > 0 || createdFiles.length > 0) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。