@kybird/llm-wiki 0.2.0 → 0.2.1

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.
@@ -42,6 +42,13 @@ function loadCompileState(wikiRoot) {
42
42
  }
43
43
  }
44
44
 
45
+ // "오늘"은 현지 날짜로 — raw 로그 헤더(# YYYY-MM-DD)가 현지 날짜로 쓰이므로
46
+ // UTC 기준과 섞으면 KST 자정~9시 사이에 전부 "new"로 재보고된다(2026-08-30 실측).
47
+ function localToday(date = new Date()) {
48
+ const pad = n => String(n).padStart(2, '0');
49
+ return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
50
+ }
51
+
45
52
  // 상태 재생성 — compile index 말미에서만 호출된다 (컴파일 완료 선언의 기록).
46
53
  function writeCompileState(wikiRoot, rawRoot, lastCompiled, previous) {
47
54
  const files = {};
@@ -189,7 +196,7 @@ function rebuildIndex() {
189
196
  // 컴파일 상태 — 여기가 유일한 쓰기점. lastCompiled 단조 가드(max)로 시계 오차
190
197
  // 머신이 날짜를 미래로 점프시키지 않게 하고, index.md의 Last updated와 같은 값을 쓴다.
191
198
  const previous = loadCompileState(wikiRoot);
192
- const today = new Date().toISOString().split('T')[0];
199
+ const today = localToday();
193
200
  const lastCompiled = previous && previous.lastCompiled > today ? previous.lastCompiled : today;
194
201
  indexContent += `- Last updated: ${lastCompiled}\n`;
195
202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kybird/llm-wiki",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "LLM-friendly knowledge graph + kanban for AI coding agents. Raw daily logs → compiled wiki → merged semantic+grep search, and a card-per-file kanban the work-loop skill consumes unattended. Drop-in for any repo.",
5
5
  "license": "MIT",
6
6
  "author": "kybird",