llm-wiki-kit 0.2.16 → 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.
- package/README.md +4 -2
- package/docs/concepts.md +6 -5
- package/docs/integrations/claude-code.md +3 -3
- package/docs/integrations/codex.md +3 -3
- package/docs/manual.md +8 -2
- package/docs/operations.md +9 -3
- package/docs/troubleshooting.md +2 -1
- package/package.json +1 -1
- package/src/capture-policy.js +9 -0
- package/src/cli.js +15 -3
- package/src/compact-capture.js +1 -0
- package/src/consolidate.js +19 -13
- package/src/evidence.js +31 -14
- package/src/hook.js +31 -9
- package/src/language.js +15 -0
- package/src/live-qa.js +34 -11
- package/src/maintenance.js +229 -1
- package/src/project.js +48 -2
- package/src/state.js +43 -1
- package/src/templates.js +11 -9
- package/src/wiki-search.js +8 -8
package/src/wiki-search.js
CHANGED
|
@@ -470,16 +470,16 @@ export function formatHookContextPack(pack, options = {}) {
|
|
|
470
470
|
const language = options.language === 'ko' ? 'ko' : 'en';
|
|
471
471
|
const lines = language === 'ko'
|
|
472
472
|
? [
|
|
473
|
-
'LLM Wiki context (
|
|
473
|
+
'LLM Wiki context (기능 요약):',
|
|
474
474
|
'- 우선순위: 현재 사용자 요청에 먼저 답하고, wiki context는 도움이 될 때만 사용한다.',
|
|
475
475
|
'- 언어: 현재 사용자 입력 언어를 따른다. 경로, 명령어, 코드 식별자, 오류 원문은 원래 언어를 유지한다.',
|
|
476
|
-
'- 기능 유지: hook memory/search/capture/maintenance/update
|
|
476
|
+
'- 기능 유지: hook memory/search/capture/maintenance/update 신호가 활성화되어 있다.',
|
|
477
477
|
'- 오래 남길 프로젝트 지식은 llm-wiki/wiki에 둔다. credentials, tokens, private keys, .env contents는 저장하지 않는다.',
|
|
478
478
|
]
|
|
479
479
|
: [
|
|
480
480
|
'LLM Wiki context (functional compact):',
|
|
481
481
|
'- Priority: answer the current user request first; use wiki context when it helps.',
|
|
482
|
-
'- Language: follow the current user prompt language. Keep paths, commands, code identifiers, and original error text unchanged.',
|
|
482
|
+
'- Language: follow the current real user prompt language. Keep paths, commands, code identifiers, and original error text unchanged.',
|
|
483
483
|
'- Functionality: hook memory/search/capture/maintenance/update signals are active.',
|
|
484
484
|
'- Durable project knowledge belongs in llm-wiki/wiki; never store credentials, tokens, private keys, or .env contents.',
|
|
485
485
|
];
|
|
@@ -490,12 +490,12 @@ export function formatHookContextPack(pack, options = {}) {
|
|
|
490
490
|
|
|
491
491
|
const memoryLines = memoryFocusLines(pack.memoryExcerpt, options.memoryLineLimit ?? 6);
|
|
492
492
|
if (memoryLines.length > 0) {
|
|
493
|
-
lines.push('', language === 'ko' ? '
|
|
493
|
+
lines.push('', language === 'ko' ? '메모리 핵심:' : 'Memory focus:');
|
|
494
494
|
lines.push(...memoryLines.map((line) => `- ${line.replace(/^-\s+/, '')}`));
|
|
495
495
|
} else {
|
|
496
496
|
lines.push(
|
|
497
497
|
'',
|
|
498
|
-
'Memory focus:',
|
|
498
|
+
language === 'ko' ? '메모리 핵심:' : 'Memory focus:',
|
|
499
499
|
language === 'ko'
|
|
500
500
|
? '- 프로젝트 맥락이 필요하면 llm-wiki/wiki/memory.md와 llm-wiki/wiki/index.md를 확인한다.'
|
|
501
501
|
: '- See llm-wiki/wiki/memory.md and llm-wiki/wiki/index.md when project context is needed.'
|
|
@@ -504,7 +504,7 @@ export function formatHookContextPack(pack, options = {}) {
|
|
|
504
504
|
|
|
505
505
|
const hits = hookHits(pack, options);
|
|
506
506
|
if (hits.length > 0) {
|
|
507
|
-
lines.push('', language === 'ko' ? '
|
|
507
|
+
lines.push('', language === 'ko' ? '관련 wiki 문서:' : 'Relevant wiki pages:');
|
|
508
508
|
for (const hit of hits) {
|
|
509
509
|
const suffix = hit.source === 'linked' && hit.via.length > 0
|
|
510
510
|
? `, via ${hit.via.join(', ')}`
|
|
@@ -514,7 +514,7 @@ export function formatHookContextPack(pack, options = {}) {
|
|
|
514
514
|
} else if (pack.query) {
|
|
515
515
|
lines.push(
|
|
516
516
|
'',
|
|
517
|
-
'Relevant wiki pages:',
|
|
517
|
+
language === 'ko' ? '관련 wiki 문서:' : 'Relevant wiki pages:',
|
|
518
518
|
language === 'ko'
|
|
519
519
|
? '- 직접 관련된 durable wiki 문서를 찾지 못했다. 정상적으로 답하고, 필요할 때만 파일/wiki를 확인한다.'
|
|
520
520
|
: '- No directly relevant durable wiki page found; answer normally and inspect files/wiki only if needed.'
|
|
@@ -523,7 +523,7 @@ export function formatHookContextPack(pack, options = {}) {
|
|
|
523
523
|
|
|
524
524
|
const logLines = logFocusLines(pack.logExcerpt, options.logLineLimit ?? 2);
|
|
525
525
|
if (logLines.length > 0) {
|
|
526
|
-
lines.push('', 'Recent log:');
|
|
526
|
+
lines.push('', language === 'ko' ? '최근 로그:' : 'Recent log:');
|
|
527
527
|
lines.push(...logLines.map((line) => `- ${line.replace(/^-\s+/, '')}`));
|
|
528
528
|
}
|
|
529
529
|
|