oh-my-adhd 0.2.17 → 0.2.19

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 = [];
@@ -154,10 +155,12 @@ export function registerWikiImport(server) {
154
155
  const page = rawPage;
155
156
  const slug = typeof page.slug === "string" ? page.slug : "";
156
157
  const content = typeof page.content === "string" ? page.content : "";
157
- if (!SLUG_RE.test(slug) || !content)
158
+ if (!SLUG_RE.test(slug) || !content) {
159
+ skippedPages++;
158
160
  continue;
161
+ }
159
162
  if (Buffer.byteLength(content, "utf-8") > MAX_CONTENT_BYTES) {
160
- skippedThreads++;
163
+ skippedPages++;
161
164
  continue;
162
165
  }
163
166
  const pageFile = path.join(pagesDir, `${slug}.md`);
@@ -174,7 +177,7 @@ export function registerWikiImport(server) {
174
177
  text: [
175
178
  "가져오기 완료 ✓",
176
179
  `스레드: ${importedThreads}개 가져옴${skippedThreads > 0 ? ` (${skippedThreads}개 건너뜀)` : ""}`,
177
- `페이지: ${importedPages}개 가져옴`,
180
+ `페이지: ${importedPages}개 가져옴${skippedPages > 0 ? ` (${skippedPages}개 건너뜀)` : ""}`,
178
181
  `원본 파일: ${resolved}`,
179
182
  ].join("\n"),
180
183
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-adhd",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "ADHD second brain — zero-friction capture, auto context restore, unstick. MCP-native Claude Code plugin.",
5
5
  "author": "Yeachan Heo",
6
6
  "repository": {