@su-record/vibe 2.4.0 → 2.4.1

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.
@@ -24,7 +24,8 @@
24
24
  "Bash(wc:*)",
25
25
  "mcp__context7__resolve-library-id",
26
26
  "mcp__context7__query-docs",
27
- "Bash(npm test:*)"
27
+ "Bash(npm test:*)",
28
+ "Bash(git stash:*)"
28
29
  ]
29
30
  }
30
31
  }
@@ -28,7 +28,7 @@ const typeSafety = {
28
28
  ```typescript
29
29
  const codeStructure = {
30
30
  singleResponsibility: true, // ✅ 단일 책임 원칙
31
- functionUnder20Lines: true, // ✅ 함수 20줄 이하
31
+ functionUnder30Lines: true, // ✅ 함수 30줄 이하 (권장), 50줄 허용
32
32
  maxNesting3Levels: true, // ✅ 최대 중첩 3단계
33
33
  cyclomaticComplexity: 10, // ✅ 순환 복잡도 ≤ 10
34
34
  cognitiveComplexity: 15, // ✅ 인지 복잡도 ≤ 15
@@ -171,7 +171,7 @@ const bundleOptimization = {
171
171
 
172
172
  ```
173
173
  [ ] 단일 책임 원칙 준수
174
- [ ] 함수 길이 20줄 이하 유지
174
+ [ ] 함수 길이 30줄 이하 유지 (최대 50줄)
175
175
  [ ] 중첩 깊이 3단계 이하
176
176
  [ ] 매직 넘버 상수화
177
177
  [ ] 타입 안전성 확보
@@ -207,7 +207,7 @@ module.exports = {
207
207
  rules: {
208
208
  'complexity': ['error', 10],
209
209
  'max-depth': ['error', 3],
210
- 'max-lines-per-function': ['error', 20],
210
+ 'max-lines-per-function': ['error', 50],
211
211
  'max-params': ['error', 5],
212
212
  'no-magic-numbers': ['warn', { ignore: [0, 1, -1] }],
213
213
  '@typescript-eslint/no-explicit-any': 'error',
@@ -266,7 +266,7 @@ npm run format:check
266
266
  ```
267
267
  ✅ 요청 범위만 수정했는가?
268
268
  ✅ any 타입이 없는가?
269
- ✅ 함수가 20줄 이하인가?
269
+ ✅ 함수가 30줄 이하인가? (최대 50줄)
270
270
  ✅ 중첩이 3단계 이하인가?
271
271
  ✅ 에러 처리를 했는가?
272
272
  ✅ 매직 넘버를 상수화했는가?
package/CLAUDE.md CHANGED
@@ -14,7 +14,7 @@ SPEC 주도 AI 코딩 프레임워크 (Claude Code 전용)
14
14
  ### 코드 복잡도 제한
15
15
  | 메트릭 | 제한 |
16
16
  |--------|------|
17
- | 함수 길이 | 20줄 이하 |
17
+ | 함수 길이 | 30줄 이하 (권장), 50줄 이하 (허용) |
18
18
  | 중첩 깊이 | 3단계 이하 |
19
19
  | 매개변수 | 5개 이하 |
20
20
  | 순환 복잡도 | 10 이하 |
package/README.md CHANGED
@@ -533,7 +533,7 @@ monorepo/
533
533
  | 메트릭 | 기준 |
534
534
  |--------|------|
535
535
  | 순환 복잡도 | ≤ 10 |
536
- | 함수 길이 | ≤ 20줄 |
536
+ | 함수 길이 | ≤ 30(권장), ≤ 50줄 (허용) |
537
537
  | 중첩 깊이 | ≤ 3단계 |
538
538
  | 매개변수 | ≤ 5개 |
539
539
  | 컴포넌트 JSX | ≤ 50줄 |
@@ -640,7 +640,7 @@ Phase N+1 Start (IMMEDIATE - exploration already done!)
640
640
  │ │ 빌드 │ ✅ │ npm run build 성공 │ │
641
641
  │ │ 테스트 │ ✅ │ 12/12 통과 │ │
642
642
  │ │ 타입 검사 │ ✅ │ 에러 0개 │ │
643
- │ │ 복잡도 │ ✅ │ 모든 함수 ≤20줄 │ │
643
+ │ │ 복잡도 │ ✅ │ 모든 함수 ≤30줄 │ │
644
644
  │ │ 보안 │ ✅ │ 취약점 0개 │ │
645
645
  │ └─────────────────────────────────────────────────────────┘ │
646
646
  │ │
@@ -106,7 +106,7 @@ Then: 로그인 성공 + JWT 토큰 반환
106
106
  │ │ 빌드 │ ✅ │ 성공 │ │
107
107
  │ │ 테스트 │ ✅ │ 12/12 통과 │ │
108
108
  │ │ 타입 검사 │ ✅ │ 에러 0개 │ │
109
- │ │ 복잡도 │ ✅ │ 모든 함수 ≤20줄 │ │
109
+ │ │ 복잡도 │ ✅ │ 모든 함수 ≤30줄 │ │
110
110
  │ │ 코드 커버리지 │ ⚠️ │ 78% (목표: 80%) │ │
111
111
  │ └─────────────────────────────────────────────────────────┘ │
112
112
  │ │
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework with 35+ integrated tools",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",