oh-my-adhd 0.2.17 → 0.2.18
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.
|
@@ -86,6 +86,7 @@ export function registerWikiImport(server) {
|
|
|
86
86
|
let importedThreads = 0;
|
|
87
87
|
let skippedThreads = 0;
|
|
88
88
|
let importedPages = 0;
|
|
89
|
+
let skippedPages = 0;
|
|
89
90
|
await withBrainLock(async () => {
|
|
90
91
|
// Load existing manifest inside lock
|
|
91
92
|
let manifest = [];
|
|
@@ -157,7 +158,7 @@ export function registerWikiImport(server) {
|
|
|
157
158
|
if (!SLUG_RE.test(slug) || !content)
|
|
158
159
|
continue;
|
|
159
160
|
if (Buffer.byteLength(content, "utf-8") > MAX_CONTENT_BYTES) {
|
|
160
|
-
|
|
161
|
+
skippedPages++;
|
|
161
162
|
continue;
|
|
162
163
|
}
|
|
163
164
|
const pageFile = path.join(pagesDir, `${slug}.md`);
|
|
@@ -174,7 +175,7 @@ export function registerWikiImport(server) {
|
|
|
174
175
|
text: [
|
|
175
176
|
"가져오기 완료 ✓",
|
|
176
177
|
`스레드: ${importedThreads}개 가져옴${skippedThreads > 0 ? ` (${skippedThreads}개 건너뜀)` : ""}`,
|
|
177
|
-
`페이지: ${importedPages}개
|
|
178
|
+
`페이지: ${importedPages}개 가져옴${skippedPages > 0 ? ` (${skippedPages}개 건너뜀)` : ""}`,
|
|
178
179
|
`원본 파일: ${resolved}`,
|
|
179
180
|
].join("\n"),
|
|
180
181
|
}],
|
package/package.json
CHANGED