docuking-mcp 2.5.0 → 2.5.2

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.
Files changed (2) hide show
  1. package/index.js +23 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -200,7 +200,7 @@ ${marker}
200
200
  - 의미 있는 작업 시작 시 (추적용)
201
201
 
202
202
  ### 규칙
203
- 1. yy_All_Docu/ 폴더만 동기화 대상
203
+ 1. 동기화 대상: yy_All_Docu/ + zz_ai_*/ 폴더 모두
204
204
  2. Push는 사용자 요청 시에만
205
205
  3. **Talk → Todo → Plan → Done** 순서 준수
206
206
  4. Plan 전에 반드시 Talk로 배경 기록
@@ -1337,7 +1337,9 @@ docuking_init 호출 시 apiKey 파라미터를 포함해주세요.`,
1337
1337
 
1338
1338
  // docuking_push 구현
1339
1339
  async function handlePush(args) {
1340
- const { localPath, filePath, message, author } = args;
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() === '') {
@@ -1975,7 +1977,9 @@ docuking_init을 먼저 실행하세요.`,
1975
1977
 
1976
1978
  // docuking_pull 구현
1977
1979
  async function handlePull(args) {
1978
- const { localPath, filePath } = args;
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 { localPath } = args;
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 { localPath } = args;
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 { localPath, path: filePath, limit = 20 } = args;
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 { localPath, path, version } = args;
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 { localPath, commitId, path } = args;
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 { localPath, action, todo, todoId } = args;
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 { localPath, title, content, tags = [] } = args;
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 { localPath, planId, title, goal, steps = [], notes } = args;
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 { localPath, planId, summary, artifacts = [] } = args;
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/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docuking-mcp",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "DocuKing MCP Server - AI 시대의 문서 협업 플랫폼",
5
5
  "type": "module",
6
6
  "main": "index.js",