docuking-mcp 2.0.5 → 2.0.6
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/index.js +13 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -262,7 +262,7 @@ zzz_ai_Plan/
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
|
|
266
266
|
// 프로젝트 정보 조회 (로컬 config에서)
|
|
267
267
|
function getProjectInfo(localPath) {
|
|
268
268
|
const config = getLocalConfig(localPath);
|
|
@@ -1171,9 +1171,9 @@ docuking_init 호출 시 apiKey 파라미터를 포함해주세요.`,
|
|
|
1171
1171
|
updateClaudeMd(localPath);
|
|
1172
1172
|
|
|
1173
1173
|
// IDE별 자동 승인 설정 추가 (Claude Code 등)
|
|
1174
|
-
setupAutoApproval(localPath);
|
|
1175
|
-
|
|
1176
|
-
// .gitignore에 DocuKing 폴더 추가
|
|
1174
|
+
setupAutoApproval(localPath);
|
|
1175
|
+
|
|
1176
|
+
// .gitignore에 DocuKing 폴더 추가
|
|
1177
1177
|
updateGitignore(localPath);
|
|
1178
1178
|
|
|
1179
1179
|
// 폴더 생성: 오너는 yy_All_Docu/, 협업자는 yy_All_Docu/yy_{이름}/
|
|
@@ -2314,7 +2314,8 @@ async function handleRollback(args) {
|
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
2316
|
// 날짜 기반 파일명 생성 유틸
|
|
2317
|
-
|
|
2317
|
+
// prefix: 'T' for Talk, 'P' for Plan (optional)
|
|
2318
|
+
function generateDateFileName(title, prefix = '') {
|
|
2318
2319
|
const now = new Date();
|
|
2319
2320
|
const year = now.getFullYear();
|
|
2320
2321
|
const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
@@ -2328,8 +2329,11 @@ function generateDateFileName(title) {
|
|
|
2328
2329
|
.replace(/\s+/g, '_') // 공백을 언더스코어로
|
|
2329
2330
|
.substring(0, 50); // 50자 제한
|
|
2330
2331
|
|
|
2332
|
+
// 접두사가 있으면 "T_" 또는 "P_" 형태로 추가
|
|
2333
|
+
const prefixStr = prefix ? `${prefix}_` : '';
|
|
2334
|
+
|
|
2331
2335
|
return {
|
|
2332
|
-
fileName: `${year}-${month}-${day}_${hour}${minute}__${slug}.md`,
|
|
2336
|
+
fileName: `${prefixStr}${year}-${month}-${day}_${hour}${minute}__${slug}.md`,
|
|
2333
2337
|
yearMonth: `${year}/${month}`,
|
|
2334
2338
|
timestamp: `${year}-${month}-${day} ${hour}:${minute}`,
|
|
2335
2339
|
};
|
|
@@ -2543,8 +2547,8 @@ async function handleTalk(args) {
|
|
|
2543
2547
|
// zz_ai_Talk 폴더 경로 (로컬 전용, 킹톡)
|
|
2544
2548
|
const talkBasePath = path.join(localPath, 'zz_ai_Talk');
|
|
2545
2549
|
|
|
2546
|
-
// 날짜 기반 파일명 생성
|
|
2547
|
-
const { fileName, timestamp } = generateDateFileName(title);
|
|
2550
|
+
// 날짜 기반 파일명 생성 (T_ 접두사)
|
|
2551
|
+
const { fileName, timestamp } = generateDateFileName(title, 'T');
|
|
2548
2552
|
const talkFilePath = path.join(talkBasePath, fileName);
|
|
2549
2553
|
|
|
2550
2554
|
// 폴더 생성
|
|
@@ -2620,7 +2624,7 @@ async function handlePlan(args) {
|
|
|
2620
2624
|
} else {
|
|
2621
2625
|
// 새 계획 생성
|
|
2622
2626
|
targetPlanId = generatePlanId();
|
|
2623
|
-
const { fileName, timestamp } = generateDateFileName(title);
|
|
2627
|
+
const { fileName, timestamp } = generateDateFileName(title, 'P');
|
|
2624
2628
|
|
|
2625
2629
|
if (!fs.existsSync(planBasePath)) {
|
|
2626
2630
|
fs.mkdirSync(planBasePath, { recursive: true });
|