codesyncer 2.7.5 → 3.0.0

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.ko.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CodeSyncer CLI
2
2
 
3
- > Claude Code, Cursor, GitHub Copilot 등 모든 AI 코딩 어시스턴트와 함께 사용하는 멀티 레포지토리 협업 시스템!
3
+ > **Claude 세션이 끝나면 모든 것을 잊습니다. CodeSyncer가 기억하게 해줍니다.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/codesyncer.svg)](https://www.npmjs.com/package/codesyncer)
6
6
  [![License](https://img.shields.io/badge/License-Commons%20Clause-red.svg)](./LICENSE)
@@ -11,92 +11,128 @@
11
11
 
12
12
  ---
13
13
 
14
- ## 🎬 데모
14
+ ## 문제 → 해결
15
+
16
+ | 문제 | CodeSyncer 없이 | CodeSyncer 사용 시 |
17
+ |------|----------------|-------------------|
18
+ | **맥락 손실** | 매 세션 = 처음부터 다시 | 코드 태그 = 영구 기억 |
19
+ | **결정 망각** | "왜 JWT 썼더라?" → 🤷 | `@codesyncer-decision` → 즉시 확인 |
20
+ | **위험한 추론** | AI가 가격, 엔드포인트, 인증 추측 | 중요 키워드 자동 일시정지 |
21
+ | **기록 없음** | AI의 추론 이유 없음 | `codesyncer watch`가 모든 것 포착 |
15
22
 
16
- ![CodeSyncer Demo](https://raw.githubusercontent.com/bitjaru/codesyncer/main/demo.gif)
23
+ **결과**: 현재 프롬프트만 아는 AI가 아닌, 프로젝트를 진짜로 학습하는 AI
17
24
 
18
25
  ---
19
26
 
20
- ## 🤔 문제 상황
27
+ ## 🎬 데모
28
+
29
+ ![CodeSyncer Demo](https://raw.githubusercontent.com/bitjaru/codesyncer/main/demo-ko.gif)
21
30
 
22
- 실제 프로젝트에서 AI 쓰면 이런 문제 생깁니다:
31
+ ---
23
32
 
24
- **1. 세션마다 컨텍스트 날아감** 😫
25
- - 새 AI 세션 = 처음부터 다시 설명
26
- - 같은 아키텍처 설명 반복
27
- - "API 엔드포인트가 뭐였지?" "인증은 어떻게 하지?" - 매번. 물어봄.
33
+ ## 🧠 작동 원리
28
34
 
29
- **2. 멀티레포 혼돈** 🤯
30
- ```
31
- 내-프로젝트/
32
- ├── api-server/ (백엔드)
33
- ├── web-client/ (프론트엔드)
34
- └── mobile-app/ (모바일)
35
+ **핵심 인사이트**: AI는 코드를 읽습니다. 그러니 맥락을 코드 안에 넣으세요.
36
+
37
+ ```mermaid
38
+ flowchart LR
39
+ A["🧑‍💻 Claude와 코딩"] --> B{"결정 내림?"}
40
+ B -->|예| C["codesyncer-decision 태그 추가"]
41
+ B -->|아니오| D{"추론 했음?"}
42
+ D -->|예| E["codesyncer-inference 태그 추가"]
43
+ D -->|아니오| F["계속 코딩"]
44
+ C --> G["📝 코드에 영구 저장"]
45
+ E --> G
46
+ G --> H["🔄 다음 세션"]
47
+ H --> I["Claude가 코드 읽음"]
48
+ I --> J["✅ 맥락 복구 완료!"]
35
49
  ```
36
- - AI는 한 번에 한 레포만 봄
37
- - 다른 레포의 컨텍스트 부족 → 부분적인 코드만 생성
38
- - "로그인 추가해줘"는 백엔드 API + 프론트 UI 둘 다 필요한데 AI는 모름
39
50
 
40
- **3. AI가 위험한 추론을 함** ⚠️
41
- - "타임아웃 30초로 설정했어요" - 어? 5초여야 하는데!
42
- - "/api/v1/... 사용했습니다" - 잘못된 엔드포인트!
43
- - 비즈니스 로직, 보안 설정, 가격 정책을 마음대로 추론
51
+ ```typescript
52
+ // @codesyncer-decision: [2024-01-15] JWT 선택 (세션 관리가 간단함)
53
+ // @codesyncer-inference: 페이지 크기 20 (일반적인 UX 패턴)
54
+ // @codesyncer-rule: httpOnly 쿠키 사용 (XSS 방지)
55
+ const authConfig = { /* ... */ };
56
+ ```
44
57
 
45
- **결과**: 설명하고 고치는 시간이 실제 코딩 시간보다
58
+ 다음 세션? Claude가 코드를 읽으면 **자동으로 모든 맥락이 복구됩니다**.
46
59
 
47
60
  ---
48
61
 
49
- ## 해결 방법
62
+ ## 🔥 Watch 모드: 맥락을 절대 놓치지 마세요
50
63
 
51
- CodeSyncer는 AI에게 **전체 그림**을 제공합니다:
64
+ **문제**: Claude가 코딩하면서 태그 추가를 잊을 수 있습니다.
52
65
 
53
- 1. **📝 코드 주석** - 모든 결정과 맥락을 코드에 직접 기록
54
- 2. **🗂️ 마스터 문서** - 레포 간 이동과 전체 규칙 관리
55
- 3. **📋 레포별 문서** - 각 레포만의 특별한 가이드라인
56
- 4. **🎯 키워드 시스템** - 중요한 결정(결제, 인증 등)에서 자동 일시정지
66
+ **해결**: `codesyncer watch`로 태그 없는 변경을 잡아내세요.
57
67
 
58
- **결과**: 복잡한 멀티레포 프로젝트에서도 **정확도 높은** AI 코딩 🎯
59
-
60
- ---
68
+ ```bash
69
+ codesyncer watch
70
+ ```
61
71
 
62
- ## 🎯 CodeSyncer란?
72
+ ```
73
+ [14:32:10] 📝 변경됨: src/utils/api.ts
74
+ └── ⚠️ 태그 없음!
75
+ 💡 힌트: 추론하면 @codesyncer-inference 추가
63
76
 
64
- CodeSyncer는 AI 코딩 어시스턴트(Claude Code 등)가 멀티 레포지토리 워크스페이스에 지능형 협업 시스템을 구축할 수 있도록 **프레임워크와 규칙**을 제공합니다.
77
+ [14:33:22] 📝 변경됨: src/auth/login.ts
78
+ └── 🎯 발견: @codesyncer-decision
79
+ "SWR 대신 React Query 사용"
80
+ └── ✅ DECISIONS.md에 추가됨
81
+ ```
65
82
 
66
- **작동 방식:**
67
- 1. **사용자가** CodeSyncer CLI 설치
68
- 2. **사용자가** AI 어시스턴트 실행 (Claude Code, Cursor 등)
69
- 3. **사용자가** `codesyncer init` 실행
70
- 4. **AI가** 프로젝트를 분석하고 CodeSyncer 구조에 따라 문서 생성
83
+ **왜 중요한가**: 모든 코드 변경은 맥락을 기록할 기회입니다. Watch 모드가 놓치는 것 없이 잡아냅니다.
71
84
 
72
- CodeSyncer는 문서가 **어디에, 어떻게** 만들어져야 하는지 정의합니다. AI 어시스턴트는 실제 코드를 분석하여 **무엇을** 작성할지 결정합니다.
85
+ ---
73
86
 
74
- ### 주요 기능
87
+ ## 전체 기능 목록
75
88
 
76
- - 🤖 **AI 도구 독립적**: Claude Code, Cursor, GitHub Copilot 등 모두 지원
77
- - 📁 **단일 & 멀티 레포 지원**: 개별 레포지토리 또는 전체 워크스페이스 모두 지원
78
- - 📦 **모노레포 지원**: Turborepo, pnpm, Nx, Lerna, npm/yarn workspaces 자동 감지
79
- - 🔄 **Watch 모드**: 실시간 파일 모니터링 태그 자동 동기화
80
- - ✅ **Validate 명령어**: 설정 검사 수정 제안 (v2.7.0 신규)
81
- - 🏷️ **주석 태그 시스템**: `@codesyncer-*` 태그로 결정과 추론을 영구 기록
82
- - 🤝 **자동 의논 시스템**: 중요한 결정(결제, 보안 등)에서 자동으로 일시 정지
83
- - 🌐 **다국어 지원**: 한글/영문 완벽 지원
84
- - **빠른 설치**: 번의 명령으로 전체 워크스페이스 설정
85
- - 🔒 **보안 강화**: 경로 탐색 공격 방지 및 입력 검증 (v2.7.0)
89
+ | 기능 | 설명 |
90
+ |------|------|
91
+ | 🏷️ **태그 시스템** | `@codesyncer-decision`, `@codesyncer-inference`, `@codesyncer-rule` - 코드에 영구 맥락 |
92
+ | 🔄 **Watch 모드** | 실시간 모니터링, 태그 없는 변경 경고, DECISIONS.md 자동 동기화 |
93
+ | ✅ **Validate** | 태그 커버리지 확인, 누락된 문서 찾기, 수정 제안 |
94
+ | 🤝 **자동 일시정지** | 결제/보안/인증 키워드 감지 코딩 전 확인 |
95
+ | 📦 **모노레포** | Turborepo, pnpm, Nx, Lerna, npm/yarn workspaces 자동 감지 |
96
+ | 🌐 **다국어** | 한글/영문 완벽 지원 |
97
+ | 🔒 **보안** | 경로 탐색 방지 입력 검증 |
86
98
 
87
99
  ---
88
100
 
89
- ## ⚠️ 사전 요구사항
90
-
91
- **CodeSyncer는 AI 코딩 어시스턴트가 활성화되어 있어야 합니다.**
92
-
93
- 현재 지원:
101
+ ## 🔄 전체 워크플로우
102
+
103
+ ```
104
+ ┌─────────────────────────────────────────────────────────────┐
105
+ │ 1. 설정 (최초 1회) │
106
+ │ $ npm install -g codesyncer │
107
+ │ $ codesyncer init │
108
+ │ → CLAUDE.md, SETUP_GUIDE.md 생성 │
109
+ └─────────────────────────────────────────────────────────────┘
110
+
111
+ ┌─────────────────────────────────────────────────────────────┐
112
+ │ 2. AI 학습시키기 (세션마다 1회) │
113
+ │ Claude Code 열고 말하기: │
114
+ │ "CLAUDE.md 읽어줘" │
115
+ │ → Claude가 태그 시스템 학습 │
116
+ └─────────────────────────────────────────────────────────────┘
117
+
118
+ ┌─────────────────────────────────────────────────────────────┐
119
+ │ 3. 코딩 (watch 모드 실행 상태로) │
120
+ │ $ codesyncer watch ← 백그라운드 실행 │
121
+ │ Claude와 평소처럼 코딩 │
122
+ │ → Claude가 @codesyncer-* 태그 자동 추가 │
123
+ │ → Watch 모드가 태그 누락 시 알림 │
124
+ └─────────────────────────────────────────────────────────────┘
125
+
126
+ ┌─────────────────────────────────────────────────────────────┐
127
+ │ 4. 다음 세션 │
128
+ │ Claude가 코드 읽음 → 태그 확인 │
129
+ │ → 맥락 자동 복구 완료! │
130
+ └─────────────────────────────────────────────────────────────┘
131
+ ```
132
+
133
+ **지원 AI 도구:**
94
134
  - ✅ **Claude Code** (권장)
95
- - 🚧 Cursor (곧 지원 예정)
96
- - 🚧 GitHub Copilot (곧 지원 예정)
97
- - 🚧 Continue.dev (곧 지원 예정)
98
-
99
- **중요**: CodeSyncer를 사용하기 전에 AI 코딩 어시스턴트를 **실행하고 활성화**해주세요. AI가 프로젝트를 분석하고 정확한 문서를 생성하는 데 도움을 줍니다.
135
+ - 🚧 Cursor, GitHub Copilot, Continue.dev (곧 지원 예정)
100
136
 
101
137
  ---
102
138
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CodeSyncer CLI
2
2
 
3
- > AI-powered multi-repository collaboration system that works seamlessly with Claude Code, Cursor, GitHub Copilot, and more!
3
+ > **Claude forgets everything when the session ends. CodeSyncer makes it remember.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/codesyncer.svg)](https://www.npmjs.com/package/codesyncer)
6
6
  [![License](https://img.shields.io/badge/License-Commons%20Clause-red.svg)](./LICENSE)
@@ -11,92 +11,128 @@
11
11
 
12
12
  ---
13
13
 
14
+ ## ⚡ The Problem → The Solution
15
+
16
+ | Problem | Without CodeSyncer | With CodeSyncer |
17
+ |---------|-------------------|-----------------|
18
+ | **Context loss** | Every session = start from scratch | Tags in code = permanent memory |
19
+ | **Decision amnesia** | "Why did we use JWT?" → 🤷 | `@codesyncer-decision` → instant recall |
20
+ | **Dangerous inference** | AI guesses prices, endpoints, auth | Auto-pause on critical keywords |
21
+ | **Untracked changes** | No record of AI's reasoning | `codesyncer watch` catches everything |
22
+
23
+ **Result**: AI that actually learns your project, not just your current prompt.
24
+
25
+ ---
26
+
14
27
  ## 🎬 Demo
15
28
 
16
29
  ![CodeSyncer Demo](https://raw.githubusercontent.com/bitjaru/codesyncer/main/demo.gif)
17
30
 
18
31
  ---
19
32
 
20
- ## 🤔 The Problem
21
-
22
- Working with AI on real projects? You face these issues:
33
+ ## 🧠 How It Works
23
34
 
24
- **1. Context is lost every session** 😫
25
- - New AI session = Start from scratch
26
- - Explain the same architecture again and again
27
- - "What's the API endpoint?" "How does auth work?" - Every. Single. Time.
35
+ **The core insight**: AI reads code. So put your context IN the code.
28
36
 
29
- **2. Multi-repo chaos** 🤯
37
+ ```mermaid
38
+ flowchart LR
39
+ A["🧑‍💻 You code with Claude"] --> B{"Decision made?"}
40
+ B -->|Yes| C["Add codesyncer-decision tag"]
41
+ B -->|No| D{"Inference made?"}
42
+ D -->|Yes| E["Add codesyncer-inference tag"]
43
+ D -->|No| F["Continue coding"]
44
+ C --> G["📝 Saved in code forever"]
45
+ E --> G
46
+ G --> H["🔄 Next session"]
47
+ H --> I["Claude reads code"]
48
+ I --> J["✅ Context recovered!"]
30
49
  ```
31
- my-saas-project/
32
- ├── api-server/ (backend)
33
- ├── web-client/ (frontend)
34
- └── mobile-app/ (mobile)
35
- ```
36
- - AI only sees one repo at a time
37
- - Missing context from other repos → Fragmented code
38
- - "Add login" needs backend API + frontend UI, but AI doesn't know both
39
50
 
40
- **3. AI makes dangerous assumptions** ⚠️
41
- - "I'll set the timeout to 30 seconds" - Wait, should be 5!
42
- - "Using /api/v1/..." - Wrong endpoint!
43
- - Guesses business logic, security settings, pricing rules
51
+ ```typescript
52
+ // @codesyncer-decision: [2024-01-15] Using JWT (session management is simpler)
53
+ // @codesyncer-inference: Page size 20 (standard UX pattern)
54
+ // @codesyncer-rule: Use httpOnly cookies (XSS prevention)
55
+ const authConfig = { /* ... */ };
56
+ ```
44
57
 
45
- **Result**: You spend more time explaining and fixing than actual coding.
58
+ Next session? Claude reads your code and **automatically recovers all context**.
46
59
 
47
60
  ---
48
61
 
49
- ## The Solution
62
+ ## 🔥 Watch Mode: Never Lose Context Again
50
63
 
51
- CodeSyncer gives AI the **full picture** through:
64
+ **Problem**: Claude might forget to add tags while coding.
52
65
 
53
- 1. **📝 Comments in code** - All decisions and context live where they belong
54
- 2. **🗂️ Master document** - Cross-repo navigation and rules
55
- 3. **📋 Per-repo docs** - Each repo's specific guidelines
56
- 4. **🎯 Keyword system** - Auto-pause for critical decisions (payment, auth, etc.)
66
+ **Solution**: Run `codesyncer watch` to catch untagged changes.
57
67
 
58
- **Result**: AI codes with **high accuracy** even in complex multi-repo projects. 🎯
59
-
60
- ---
68
+ ```bash
69
+ codesyncer watch
70
+ ```
61
71
 
62
- ## 🎯 What is CodeSyncer?
72
+ ```
73
+ [14:32:10] 📝 Changed: src/utils/api.ts
74
+ └── ⚠️ No tags!
75
+ 💡 Hint: Add @codesyncer-inference for inferences
63
76
 
64
- CodeSyncer provides the **framework and rules** for AI coding assistants (like Claude Code) to set up an intelligent collaboration system across your multi-repository workspace.
77
+ [14:33:22] 📝 Changed: src/auth/login.ts
78
+ └── 🎯 Found: @codesyncer-decision
79
+ "Use React Query instead of SWR"
80
+ └── ✅ Added to DECISIONS.md
81
+ ```
65
82
 
66
- **How it works:**
67
- 1. **You install** CodeSyncer CLI
68
- 2. **You launch** your AI assistant (Claude Code, Cursor, etc.)
69
- 3. **You run** `codesyncer init`
70
- 4. **AI analyzes** your projects and generates documentation following CodeSyncer's structure
83
+ **Why this matters**: Every code change is an opportunity to capture context. Watch mode ensures nothing slips through.
71
84
 
72
- CodeSyncer defines **WHERE** and **HOW** documentation should be created. Your AI assistant fills in the **WHAT** by analyzing your actual code.
85
+ ---
73
86
 
74
- ### Key Features
87
+ ## Full Feature List
75
88
 
76
- - 🤖 **AI-Agnostic**: Works with Claude Code, Cursor, GitHub Copilot, and more
77
- - 📁 **Single & Multi-Repository Support**: Works with individual repos or entire workspaces
78
- - 📦 **Monorepo Support**: Auto-detects Turborepo, pnpm, Nx, Lerna, Yarn/npm workspaces
79
- - 🔄 **Watch Mode**: Real-time file monitoring with auto tag sync
80
- - ✅ **Validate Command**: Check your setup and get fix suggestions (NEW in v2.7.0)
81
- - 🏷️ **Comment Tag System**: `@codesyncer-*` tags to record decisions and inferences
82
- - 🤝 **Discussion Auto-Pause**: Automatically stops for critical decisions (payment, security, etc.)
83
- - 🌐 **Multi-Language**: Full Korean and English support
84
- - **Quick Setup**: One-command installation for your entire workspace
85
- - 🔒 **Security**: Path traversal protection and input validation (v2.7.0)
89
+ | Feature | Description |
90
+ |---------|-------------|
91
+ | 🏷️ **Tag System** | `@codesyncer-decision`, `@codesyncer-inference`, `@codesyncer-rule` - permanent context in code |
92
+ | 🔄 **Watch Mode** | Real-time monitoring, warns on untagged changes, auto-syncs to DECISIONS.md |
93
+ | ✅ **Validate** | Check tag coverage, find missing documentation, get fix suggestions |
94
+ | 🤝 **Auto-Pause** | Detects payment/security/auth keywords asks before coding |
95
+ | 📦 **Monorepo** | Auto-detects Turborepo, pnpm, Nx, Lerna, npm/yarn workspaces |
96
+ | 🌐 **Multi-Language** | Full Korean and English support |
97
+ | 🔒 **Security** | Path traversal protection and input validation |
86
98
 
87
99
  ---
88
100
 
89
- ## ⚠️ Prerequisites
90
-
91
- **CodeSyncer requires an AI coding assistant to be active.**
92
-
93
- Currently supported:
101
+ ## 🔄 Complete Workflow
102
+
103
+ ```
104
+ ┌─────────────────────────────────────────────────────────────┐
105
+ │ 1. SETUP (once) │
106
+ │ $ npm install -g codesyncer │
107
+ │ $ codesyncer init │
108
+ │ → Creates CLAUDE.md, SETUP_GUIDE.md │
109
+ └─────────────────────────────────────────────────────────────┘
110
+
111
+ ┌─────────────────────────────────────────────────────────────┐
112
+ │ 2. TEACH AI (once per session) │
113
+ │ Open Claude Code and say: │
114
+ │ "Read CLAUDE.md" │
115
+ │ → Claude learns the tagging system │
116
+ └─────────────────────────────────────────────────────────────┘
117
+
118
+ ┌─────────────────────────────────────────────────────────────┐
119
+ │ 3. CODE (with watch mode running) │
120
+ │ $ codesyncer watch ← Run in background │
121
+ │ Code with Claude as normal │
122
+ │ → Claude adds @codesyncer-* tags automatically │
123
+ │ → Watch mode alerts if tags are missing │
124
+ └─────────────────────────────────────────────────────────────┘
125
+
126
+ ┌─────────────────────────────────────────────────────────────┐
127
+ │ 4. NEXT SESSION │
128
+ │ Claude reads your code → sees the tags │
129
+ │ → Context automatically recovered! │
130
+ └─────────────────────────────────────────────────────────────┘
131
+ ```
132
+
133
+ **Supported AI Tools:**
94
134
  - ✅ **Claude Code** (Recommended)
95
- - 🚧 Cursor (Coming soon)
96
- - 🚧 GitHub Copilot (Coming soon)
97
- - 🚧 Continue.dev (Coming soon)
98
-
99
- **Important**: Make sure your AI coding assistant is **running and active** before using CodeSyncer. The AI will analyze your projects and help generate accurate documentation.
135
+ - 🚧 Cursor, GitHub Copilot, Continue.dev (Coming soon)
100
136
 
101
137
  ---
102
138
 
@@ -0,0 +1,6 @@
1
+ import { HandoffOptions } from '../types';
2
+ /**
3
+ * Handoff command - save/show context for next AI session
4
+ */
5
+ export declare function handoffCommand(options: HandoffOptions): Promise<void>;
6
+ //# sourceMappingURL=handoff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/commands/handoff.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAA4B,MAAM,UAAU,CAAC;AAuRpE;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC3E"}