docuking-mcp 2.5.1 → 2.5.3
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 +23 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1337,7 +1337,9 @@ docuking_init 호출 시 apiKey 파라미터를 포함해주세요.`,
|
|
|
1337
1337
|
|
|
1338
1338
|
// docuking_push 구현
|
|
1339
1339
|
async function handlePush(args) {
|
|
1340
|
-
|
|
1340
|
+
// localPath가 없으면 현재 작업 디렉토리 사용
|
|
1341
|
+
const localPath = args.localPath || process.cwd();
|
|
1342
|
+
const { filePath, message, author } = args;
|
|
1341
1343
|
|
|
1342
1344
|
// 커밋 메시지 필수 체크
|
|
1343
1345
|
if (!message || message.trim() === '') {
|
|
@@ -1596,7 +1598,7 @@ docuking_init을 먼저 실행하세요.`,
|
|
|
1596
1598
|
}
|
|
1597
1599
|
}
|
|
1598
1600
|
|
|
1599
|
-
if (filesToPush.length === 0) {
|
|
1601
|
+
if (filesToPush.length === 0 && emptyFolders.length === 0) {
|
|
1600
1602
|
return {
|
|
1601
1603
|
content: [
|
|
1602
1604
|
{
|
|
@@ -1975,7 +1977,9 @@ docuking_init을 먼저 실행하세요.`,
|
|
|
1975
1977
|
|
|
1976
1978
|
// docuking_pull 구현
|
|
1977
1979
|
async function handlePull(args) {
|
|
1978
|
-
|
|
1980
|
+
// localPath가 없으면 현재 작업 디렉토리 사용
|
|
1981
|
+
const localPath = args.localPath || process.cwd();
|
|
1982
|
+
const { filePath } = args;
|
|
1979
1983
|
|
|
1980
1984
|
// 로컬 config에서 API 키 읽기
|
|
1981
1985
|
const apiKey = getApiKey(localPath);
|
|
@@ -2143,7 +2147,7 @@ async function handlePull(args) {
|
|
|
2143
2147
|
|
|
2144
2148
|
// docuking_list 구현
|
|
2145
2149
|
async function handleList(args) {
|
|
2146
|
-
const
|
|
2150
|
+
const localPath = args.localPath || process.cwd();
|
|
2147
2151
|
|
|
2148
2152
|
// 로컬 config에서 API 키 읽기
|
|
2149
2153
|
const apiKey = getApiKey(localPath);
|
|
@@ -2437,7 +2441,7 @@ function flattenTree(tree, prefix = '') {
|
|
|
2437
2441
|
|
|
2438
2442
|
// docuking_status 구현
|
|
2439
2443
|
async function handleStatus(args) {
|
|
2440
|
-
const
|
|
2444
|
+
const localPath = args.localPath || process.cwd();
|
|
2441
2445
|
|
|
2442
2446
|
// 로컬 config에서 API 키 읽기
|
|
2443
2447
|
const apiKey = getApiKey(localPath);
|
|
@@ -2562,7 +2566,8 @@ async function handleStatus(args) {
|
|
|
2562
2566
|
|
|
2563
2567
|
// docuking_log 구현
|
|
2564
2568
|
async function handleLog(args) {
|
|
2565
|
-
const
|
|
2569
|
+
const localPath = args.localPath || process.cwd();
|
|
2570
|
+
const { path: filePath, limit = 20 } = args;
|
|
2566
2571
|
|
|
2567
2572
|
const projectId = repoMapping[localPath];
|
|
2568
2573
|
if (!projectId) {
|
|
@@ -2588,7 +2593,8 @@ async function handleLog(args) {
|
|
|
2588
2593
|
|
|
2589
2594
|
// docuking_diff 구현
|
|
2590
2595
|
async function handleDiff(args) {
|
|
2591
|
-
const
|
|
2596
|
+
const localPath = args.localPath || process.cwd();
|
|
2597
|
+
const { path, version } = args;
|
|
2592
2598
|
|
|
2593
2599
|
const projectId = repoMapping[localPath];
|
|
2594
2600
|
if (!projectId) {
|
|
@@ -2614,7 +2620,8 @@ async function handleDiff(args) {
|
|
|
2614
2620
|
|
|
2615
2621
|
// docuking_rollback 구현
|
|
2616
2622
|
async function handleRollback(args) {
|
|
2617
|
-
const
|
|
2623
|
+
const localPath = args.localPath || process.cwd();
|
|
2624
|
+
const { commitId, path } = args;
|
|
2618
2625
|
|
|
2619
2626
|
const projectId = repoMapping[localPath];
|
|
2620
2627
|
if (!projectId) {
|
|
@@ -2676,7 +2683,8 @@ function generatePlanId() {
|
|
|
2676
2683
|
|
|
2677
2684
|
// docuking_todo 구현 - 킹투두 (단일 파일 누적)
|
|
2678
2685
|
async function handleTodo(args) {
|
|
2679
|
-
const
|
|
2686
|
+
const localPath = args.localPath || process.cwd();
|
|
2687
|
+
const { action, todo, todoId } = args;
|
|
2680
2688
|
|
|
2681
2689
|
// 협업자 여부에 따라 zz_ai 경로 결정
|
|
2682
2690
|
// - 오너: localPath/zz_ai_2_Todo/
|
|
@@ -2870,7 +2878,8 @@ ${listText}
|
|
|
2870
2878
|
|
|
2871
2879
|
// docuking_talk 구현 - 대화록 자동 저장
|
|
2872
2880
|
async function handleTalk(args) {
|
|
2873
|
-
const
|
|
2881
|
+
const localPath = args.localPath || process.cwd();
|
|
2882
|
+
const { title, content, tags = [] } = args;
|
|
2874
2883
|
|
|
2875
2884
|
// 협업자 여부에 따라 zz_ai 경로 결정
|
|
2876
2885
|
// - 오너: localPath/zz_ai_1_Talk/
|
|
@@ -2926,7 +2935,8 @@ ${content}
|
|
|
2926
2935
|
|
|
2927
2936
|
// docuking_plan 구현 - 작업 계획 생성/업데이트
|
|
2928
2937
|
async function handlePlan(args) {
|
|
2929
|
-
const
|
|
2938
|
+
const localPath = args.localPath || process.cwd();
|
|
2939
|
+
const { planId, title, goal, steps = [], notes } = args;
|
|
2930
2940
|
|
|
2931
2941
|
// 협업자 여부에 따라 zz_ai 경로 결정
|
|
2932
2942
|
// - 오너: localPath/zz_ai_3_Plan/
|
|
@@ -3079,7 +3089,8 @@ function findPlanFiles(basePath, planId) {
|
|
|
3079
3089
|
|
|
3080
3090
|
// docuking_done 구현 - 작업 완료 처리
|
|
3081
3091
|
async function handleDone(args) {
|
|
3082
|
-
const
|
|
3092
|
+
const localPath = args.localPath || process.cwd();
|
|
3093
|
+
const { planId, summary, artifacts = [] } = args;
|
|
3083
3094
|
|
|
3084
3095
|
// 협업자 여부에 따라 zz_ai 경로 결정
|
|
3085
3096
|
// - 오너: localPath/zz_ai_3_Plan/
|