docuking-mcp 2.5.5 → 2.5.7
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 +9 -6
- package/index.js +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,15 +60,18 @@ npx docuking-mcp
|
|
|
60
60
|
```
|
|
61
61
|
프로젝트/
|
|
62
62
|
├── yy_All_Docu/ ← 동기화 대상 (Push/Pull)
|
|
63
|
-
|
|
64
|
-
├──
|
|
65
|
-
├──
|
|
66
|
-
└──
|
|
63
|
+
├── yy_Coworker_{이름}/ ← 협업자 작업 폴더 (동기화 대상)
|
|
64
|
+
│ ├── zz_ai_1_Talk/ ← 협업자의 AI 대화록 (동기화 대상)
|
|
65
|
+
│ ├── zz_ai_2_Todo/ ← 협업자의 AI 투두 (동기화 대상)
|
|
66
|
+
│ └── zz_ai_3_Plan/ ← 협업자의 AI 플랜 (동기화 대상)
|
|
67
|
+
├── zz_ai_1_Talk/ ← 오너의 AI 대화록 (동기화 대상)
|
|
68
|
+
├── zz_ai_2_Todo/ ← 오너의 AI 투두 (동기화 대상)
|
|
69
|
+
└── zz_ai_3_Plan/ ← 오너의 AI 플랜 (동기화 대상)
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
**접두사 규칙:**
|
|
70
|
-
- `yy_*`: 동기화 대상
|
|
71
|
-
- `
|
|
73
|
+
- `yy_*`: 사람용 폴더 (동기화 대상)
|
|
74
|
+
- `zz_ai_*`: AI용 폴더 (동기화 대상)
|
|
72
75
|
|
|
73
76
|
## 웹사이트
|
|
74
77
|
|
package/index.js
CHANGED
|
@@ -1460,13 +1460,25 @@ Git처럼 무엇을 변경했는지 명확히 작성해주세요.
|
|
|
1460
1460
|
// Push 대상 폴더 목록 (프로젝트 루트 기준)
|
|
1461
1461
|
let pushTargetFolders = [];
|
|
1462
1462
|
|
|
1463
|
+
// 디버그: Push 대상 판단 로그
|
|
1464
|
+
console.error(`[DocuKing] Push 권한: isCoworker=${isCoworker}, coworkerFolder=${coworkerFolder}, coworkerFolderName=${coworkerFolderName}`);
|
|
1465
|
+
|
|
1463
1466
|
if (isCoworker) {
|
|
1464
1467
|
// 협업자: yy_Coworker_{폴더명}/ 폴더만 Push
|
|
1465
1468
|
const coworkerPath = path.join(localPath, coworkerFolderName);
|
|
1469
|
+
console.error(`[DocuKing] 협업자 Push 대상 폴더: ${coworkerPath}`);
|
|
1466
1470
|
if (!fs.existsSync(coworkerPath)) {
|
|
1467
1471
|
fs.mkdirSync(coworkerPath, { recursive: true });
|
|
1468
1472
|
}
|
|
1469
1473
|
pushTargetFolders.push({ localPath: coworkerPath, serverPrefix: coworkerFolderName });
|
|
1474
|
+
|
|
1475
|
+
// 협업자 폴더 내용 디버그 출력
|
|
1476
|
+
try {
|
|
1477
|
+
const entries = fs.readdirSync(coworkerPath, { withFileTypes: true });
|
|
1478
|
+
console.error(`[DocuKing] 협업자 폴더 내용: ${entries.map(e => e.name + (e.isDirectory() ? '/' : '')).join(', ')}`);
|
|
1479
|
+
} catch (e) {
|
|
1480
|
+
console.error(`[DocuKing] 협업자 폴더 읽기 실패: ${e.message}`);
|
|
1481
|
+
}
|
|
1470
1482
|
} else {
|
|
1471
1483
|
// 오너: yy_All_Docu/ 폴더 확인
|
|
1472
1484
|
if (!fs.existsSync(mainFolderPath)) {
|
|
@@ -1633,6 +1645,15 @@ docuking_init을 먼저 실행하세요.`,
|
|
|
1633
1645
|
const folderFiles = [];
|
|
1634
1646
|
collectFilesSimple(targetFolder.localPath, '', folderFiles, excludedFiles, largeFiles);
|
|
1635
1647
|
|
|
1648
|
+
// 디버그: 수집된 파일 목록 출력
|
|
1649
|
+
console.error(`[DocuKing] ${targetFolder.serverPrefix}/ 에서 수집된 파일 ${folderFiles.length}개:`);
|
|
1650
|
+
for (const f of folderFiles.slice(0, 10)) {
|
|
1651
|
+
console.error(` - ${f.path}`);
|
|
1652
|
+
}
|
|
1653
|
+
if (folderFiles.length > 10) {
|
|
1654
|
+
console.error(` ... 외 ${folderFiles.length - 10}개`);
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1636
1657
|
// 서버 경로 추가: prefix/상대경로 (예: yy_All_Docu/회의록/test.md)
|
|
1637
1658
|
for (const file of folderFiles) {
|
|
1638
1659
|
file.serverPath = `${targetFolder.serverPrefix}/${file.path}`;
|