@su-record/vibe 2.3.0 → 2.3.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 (98) hide show
  1. package/.claude/settings.json +35 -35
  2. package/.claude/settings.local.json +24 -25
  3. package/.claude/vibe/constitution.md +184 -184
  4. package/.claude/vibe/rules/core/communication-guide.md +104 -104
  5. package/.claude/vibe/rules/core/development-philosophy.md +52 -52
  6. package/.claude/vibe/rules/core/quick-start.md +120 -120
  7. package/.claude/vibe/rules/languages/dart-flutter.md +509 -509
  8. package/.claude/vibe/rules/languages/go.md +396 -396
  9. package/.claude/vibe/rules/languages/java-spring.md +586 -586
  10. package/.claude/vibe/rules/languages/kotlin-android.md +491 -491
  11. package/.claude/vibe/rules/languages/python-django.md +371 -371
  12. package/.claude/vibe/rules/languages/python-fastapi.md +386 -386
  13. package/.claude/vibe/rules/languages/rust.md +425 -425
  14. package/.claude/vibe/rules/languages/swift-ios.md +516 -516
  15. package/.claude/vibe/rules/languages/typescript-nextjs.md +441 -441
  16. package/.claude/vibe/rules/languages/typescript-node.md +375 -375
  17. package/.claude/vibe/rules/languages/typescript-nuxt.md +521 -521
  18. package/.claude/vibe/rules/languages/typescript-react-native.md +446 -446
  19. package/.claude/vibe/rules/languages/typescript-react.md +525 -525
  20. package/.claude/vibe/rules/languages/typescript-vue.md +353 -353
  21. package/.claude/vibe/rules/quality/bdd-contract-testing.md +388 -388
  22. package/.claude/vibe/rules/quality/checklist.md +276 -276
  23. package/.claude/vibe/rules/quality/testing-strategy.md +437 -437
  24. package/.claude/vibe/rules/standards/anti-patterns.md +369 -369
  25. package/.claude/vibe/rules/standards/code-structure.md +291 -291
  26. package/.claude/vibe/rules/standards/complexity-metrics.md +312 -312
  27. package/.claude/vibe/rules/standards/naming-conventions.md +198 -198
  28. package/.claude/vibe/setup.sh +31 -31
  29. package/.claude/vibe/templates/constitution-template.md +184 -184
  30. package/.claude/vibe/templates/contract-backend-template.md +517 -517
  31. package/.claude/vibe/templates/contract-frontend-template.md +594 -594
  32. package/.claude/vibe/templates/feature-template.md +96 -96
  33. package/.claude/vibe/templates/spec-template.md +199 -199
  34. package/CLAUDE.md +345 -323
  35. package/LICENSE +21 -21
  36. package/README.md +744 -724
  37. package/agents/compounder.md +261 -261
  38. package/agents/diagrammer.md +178 -178
  39. package/agents/e2e-tester.md +266 -266
  40. package/agents/explorer.md +48 -48
  41. package/agents/implementer.md +53 -53
  42. package/agents/research/best-practices-agent.md +139 -139
  43. package/agents/research/codebase-patterns-agent.md +147 -147
  44. package/agents/research/framework-docs-agent.md +181 -181
  45. package/agents/research/security-advisory-agent.md +167 -167
  46. package/agents/review/architecture-reviewer.md +107 -107
  47. package/agents/review/complexity-reviewer.md +116 -116
  48. package/agents/review/data-integrity-reviewer.md +88 -88
  49. package/agents/review/git-history-reviewer.md +103 -103
  50. package/agents/review/performance-reviewer.md +86 -86
  51. package/agents/review/python-reviewer.md +152 -152
  52. package/agents/review/rails-reviewer.md +139 -139
  53. package/agents/review/react-reviewer.md +144 -144
  54. package/agents/review/security-reviewer.md +80 -80
  55. package/agents/review/simplicity-reviewer.md +140 -140
  56. package/agents/review/test-coverage-reviewer.md +116 -116
  57. package/agents/review/typescript-reviewer.md +127 -127
  58. package/agents/searcher.md +54 -54
  59. package/agents/simplifier.md +119 -119
  60. package/agents/tester.md +49 -49
  61. package/agents/ui-previewer.md +137 -137
  62. package/commands/vibe.analyze.md +245 -180
  63. package/commands/vibe.reason.md +223 -183
  64. package/commands/vibe.review.md +200 -136
  65. package/commands/vibe.run.md +838 -836
  66. package/commands/vibe.spec.md +419 -383
  67. package/commands/vibe.utils.md +101 -101
  68. package/commands/vibe.verify.md +282 -241
  69. package/dist/cli/index.js +385 -385
  70. package/dist/lib/MemoryManager.d.ts.map +1 -1
  71. package/dist/lib/MemoryManager.js +119 -114
  72. package/dist/lib/MemoryManager.js.map +1 -1
  73. package/dist/lib/PythonParser.js +108 -108
  74. package/dist/lib/gemini-mcp.js +15 -15
  75. package/dist/lib/gemini-oauth.js +35 -35
  76. package/dist/lib/gpt-mcp.js +17 -17
  77. package/dist/lib/gpt-oauth.js +44 -44
  78. package/dist/tools/analytics/getUsageAnalytics.js +12 -12
  79. package/dist/tools/index.d.ts +50 -0
  80. package/dist/tools/index.d.ts.map +1 -0
  81. package/dist/tools/index.js +61 -0
  82. package/dist/tools/index.js.map +1 -0
  83. package/dist/tools/memory/createMemoryTimeline.js +10 -10
  84. package/dist/tools/memory/getMemoryGraph.js +12 -12
  85. package/dist/tools/memory/getSessionContext.js +9 -9
  86. package/dist/tools/memory/linkMemories.js +14 -14
  87. package/dist/tools/memory/listMemories.js +4 -4
  88. package/dist/tools/memory/recallMemory.js +4 -4
  89. package/dist/tools/memory/saveMemory.js +4 -4
  90. package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
  91. package/dist/tools/planning/generatePrd.js +46 -46
  92. package/dist/tools/prompt/enhancePromptGemini.js +160 -160
  93. package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
  94. package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
  95. package/hooks/hooks.json +121 -103
  96. package/package.json +73 -69
  97. package/skills/git-worktree.md +178 -178
  98. package/skills/priority-todos.md +236 -236
package/hooks/hooks.json CHANGED
@@ -1,103 +1,121 @@
1
- {
2
- "hooks": {
3
- "SessionStart": [
4
- {
5
- "hooks": [
6
- {
7
- "type": "command",
8
- "command": "echo '[SESSION START] IMMEDIATELY call vibe_start_session to restore previous context. Do this before responding to the user.'"
9
- }
10
- ]
11
- }
12
- ],
13
- "PreToolUse": [
14
- {
15
- "matcher": "Bash",
16
- "hooks": [
17
- {
18
- "type": "command",
19
- "command": "echo '[BASH CHECK] Be cautious with destructive commands (rm -rf, git push --force, drop table). Verify paths before deletion.'"
20
- }
21
- ]
22
- }
23
- ],
24
- "PostToolUse": [
25
- {
26
- "matcher": "Write|Edit",
27
- "hooks": [
28
- {
29
- "type": "command",
30
- "command": "echo '[AUTO-CONTINUE] 코드 체크 완료. 문제 발견 다음 edit에서 수정하고 작업 계속. 절대 멈추지 것.'"
31
- }
32
- ]
33
- }
34
- ],
35
- "UserPromptSubmit": [
36
- {
37
- "matcher": "ultrawork|ulw|울트라워크",
38
- "hooks": [
39
- {
40
- "type": "command",
41
- "command": "echo '[ULTRAWORK MODE] Use PARALLEL Task calls. Auto-continue through ALL phases. Auto-retry on errors up to 3 times. Run vibe_auto_save_context at 70%+ context. Do NOT ask for confirmation between phases.'"
42
- }
43
- ]
44
- },
45
- {
46
- "matcher": "버그.*(해결|수정|고침)|문제.*(해결|수정)|bug.*(fixed|resolved|solved)|issue.*(fixed|resolved)|PR.*(merged|머지)",
47
- "hooks": [
48
- {
49
- "type": "command",
50
- "command": "echo '[COMPOUND TRIGGER] Significant solution detected. Consider /vibe.compound to document for future reference.'"
51
- }
52
- ]
53
- },
54
- {
55
- "matcher": "코드\\s*리뷰|code\\s*review|PR\\s*리뷰|리뷰.*해줘|review.*this",
56
- "hooks": [
57
- {
58
- "type": "command",
59
- "command": "echo '[REVIEW MODE] Use /vibe.review for parallel code review with 13+ specialized agents. P1=critical, P2=important, P3=nice-to-have.'"
60
- }
61
- ]
62
- },
63
- {
64
- "matcher": "e2e.*테스트|e2e.*test|playwright|브라우저.*테스트|browser.*test",
65
- "hooks": [
66
- {
67
- "type": "command",
68
- "command": "echo '[E2E MODE] Use /vibe.e2e for Playwright-based browser testing. Supports visual regression and video recording.'"
69
- }
70
- ]
71
- }
72
- ],
73
- "Notification": [
74
- {
75
- "matcher": "context_window_80",
76
- "hooks": [
77
- {
78
- "type": "command",
79
- "command": "echo '[CONTEXT 80%] MANDATORY: Call vibe_auto_save_context with urgency=medium NOW. This is NOT optional - save context before it is lost.'"
80
- }
81
- ]
82
- },
83
- {
84
- "matcher": "context_window_90",
85
- "hooks": [
86
- {
87
- "type": "command",
88
- "command": "echo '[CONTEXT 90% URGENT] MANDATORY: Call vibe_auto_save_context with urgency=high IMMEDIATELY. Do NOT proceed without saving.'"
89
- }
90
- ]
91
- },
92
- {
93
- "matcher": "context_window_95",
94
- "hooks": [
95
- {
96
- "type": "command",
97
- "command": "echo '[CONTEXT 95% CRITICAL] MANDATORY: Call vibe_auto_save_context with urgency=critical NOW. Session transition imminent - save everything.'"
98
- }
99
- ]
100
- }
101
- ]
102
- }
103
- }
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';Promise.all([import('@su-record/vibe/tools').then(t => t.startSession({projectPath: p})), import('@su-record/vibe/tools').then(t => t.getCurrentTime({format: 'human', timezone: 'Asia/Seoul'})), import('@su-record/vibe/tools').then(t => t.listMemories({limit: 5, projectPath: p}))]).then(([session, time, memories]) => console.log(session.content[0].text + '\\n\\n' + time.content[0].text + '\\n\\n[Recent Memories]\\n' + memories.content[0].text))\""
9
+ }
10
+ ]
11
+ }
12
+ ],
13
+ "PreToolUse": [
14
+ {
15
+ "matcher": "Bash",
16
+ "hooks": [
17
+ {
18
+ "type": "command",
19
+ "command": "echo '[BASH CHECK] Be cautious with destructive commands (rm -rf, git push --force, drop table). Verify paths before deletion.'"
20
+ }
21
+ ]
22
+ }
23
+ ],
24
+ "PostToolUse": [
25
+ {
26
+ "matcher": "Write|Edit",
27
+ "hooks": [
28
+ {
29
+ "type": "command",
30
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.validateCodeQuality({targetPath: '.', projectPath: p}).then(r => console.log('[CODE CHECK]', r.content[0].text.split('\\n').slice(0,3).join(' | ')))).catch(() => console.log('[AUTO-CONTINUE] Code written. Continue.'))\""
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "UserPromptSubmit": [
36
+ {
37
+ "matcher": "ultrawork|ulw|울트라워크",
38
+ "hooks": [
39
+ {
40
+ "type": "command",
41
+ "command": "echo '[ULTRAWORK MODE] Use PARALLEL Task calls. Auto-continue through ALL phases. Auto-retry on errors up to 3 times. Do NOT ask for confirmation between phases.'"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "matcher": "버그.*(해결|수정|고침)|문제.*(해결|수정)|bug.*(fixed|resolved|solved)|issue.*(fixed|resolved)|PR.*(merged|머지)",
47
+ "hooks": [
48
+ {
49
+ "type": "command",
50
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.saveMemory({key: 'solution-' + Date.now(), value: 'Solution documented at ' + new Date().toISOString(), category: 'solution', projectPath: p}).then(r => console.log('[COMPOUND]', r.content[0].text))).catch(() => console.log('[COMPOUND TRIGGER] Consider /vibe.utils --compound'))\""
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "matcher": "코드\\s*리뷰|code\\s*review|PR\\s*리뷰|리뷰.*해줘|review.*this",
56
+ "hooks": [
57
+ {
58
+ "type": "command",
59
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.validateCodeQuality({targetPath: '.', projectPath: p}).then(r => console.log('[REVIEW PREP]', r.content[0].text.split('\\n').slice(0,5).join(' | ')))).catch(() => console.log('[REVIEW MODE] Use /vibe.review'))\""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "matcher": "e2e.*테스트|e2e.*test|playwright|브라우저.*테스트|browser.*test",
65
+ "hooks": [
66
+ {
67
+ "type": "command",
68
+ "command": "echo '[E2E MODE] Use /vibe.utils --e2e for Playwright-based browser testing. Supports visual regression and video recording.'"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "matcher": "복잡도|complexity|분석해|analyze this",
74
+ "hooks": [
75
+ {
76
+ "type": "command",
77
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.analyzeComplexity({targetPath: '.', projectPath: p}).then(r => console.log('[COMPLEXITY]', r.content[0].text.split('\\n').slice(0,5).join(' | ')))).catch(() => console.log('[ANALYZE] Use analyzeComplexity tool'))\""
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "matcher": "뭐였지|기억|recall|이전에.*결정|저번에",
83
+ "hooks": [
84
+ {
85
+ "type": "command",
86
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.listMemories({limit: 10, projectPath: p}).then(r => console.log('[RECALL]', r.content[0].text.split('\\n').slice(0,7).join(' | ')))).catch(() => console.log('[RECALL] Use recallMemory tool'))\""
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ "Notification": [
92
+ {
93
+ "matcher": "context_window_80",
94
+ "hooks": [
95
+ {
96
+ "type": "command",
97
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.autoSaveContext({urgency: 'medium', contextType: 'progress', summary: 'Context at 80% - auto checkpoint', projectPath: p}).then(r => console.log('[CONTEXT 80%]', r.content[0].text)))\""
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "matcher": "context_window_90",
103
+ "hooks": [
104
+ {
105
+ "type": "command",
106
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.autoSaveContext({urgency: 'high', contextType: 'progress', summary: 'Context at 90% - save before overflow', projectPath: p}).then(r => console.log('[CONTEXT 90%]', r.content[0].text)))\""
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "matcher": "context_window_95",
112
+ "hooks": [
113
+ {
114
+ "type": "command",
115
+ "command": "node -e \"const p='$CLAUDE_PROJECT_DIR';import('@su-record/vibe/tools').then(t => t.autoSaveContext({urgency: 'critical', contextType: 'progress', summary: 'Context at 95% - CRITICAL save before session end', projectPath: p}).then(r => console.log('[CONTEXT 95%]', r.content[0].text)))\""
116
+ }
117
+ ]
118
+ }
119
+ ]
120
+ }
121
+ }
package/package.json CHANGED
@@ -1,69 +1,73 @@
1
- {
2
- "name": "@su-record/vibe",
3
- "version": "2.3.0",
4
- "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework with 35+ integrated tools",
5
- "type": "module",
6
- "main": "dist/cli/index.js",
7
- "bin": {
8
- "vibe": "./dist/cli/index.js"
9
- },
10
- "scripts": {
11
- "build": "tsc",
12
- "dev": "tsc --watch",
13
- "test": "vitest run",
14
- "test:watch": "vitest",
15
- "prepublishOnly": "npm run build"
16
- },
17
- "keywords": [
18
- "ai",
19
- "vibe",
20
- "coding",
21
- "spec-driven",
22
- "claude",
23
- "mcp",
24
- "framework",
25
- "requirements",
26
- "user-story",
27
- "ultrawork",
28
- "parallel-agents",
29
- "memory-management",
30
- "knowledge-graph",
31
- "code-analysis",
32
- "code-quality"
33
- ],
34
- "author": "Su",
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "https://github.com/su-record/vibe.git"
39
- },
40
- "homepage": "https://github.com/su-record/vibe#readme",
41
- "engines": {
42
- "node": ">=18.0.0"
43
- },
44
- "dependencies": {
45
- "@modelcontextprotocol/sdk": "^1.0.0",
46
- "better-sqlite3": "^12.4.1",
47
- "chalk": "^5.3.0",
48
- "glob": "^11.0.3",
49
- "ts-morph": "^26.0.0"
50
- },
51
- "devDependencies": {
52
- "@types/better-sqlite3": "^7.6.13",
53
- "@types/glob": "^8.1.0",
54
- "@types/node": "^22.0.0",
55
- "typescript": "^5.5.4",
56
- "vitest": "^4.0.9"
57
- },
58
- "files": [
59
- "dist/",
60
- ".claude/",
61
- "commands/",
62
- "agents/",
63
- "skills/",
64
- "hooks/",
65
- "CLAUDE.md",
66
- "README.md",
67
- "LICENSE"
68
- ]
69
- }
1
+ {
2
+ "name": "@su-record/vibe",
3
+ "version": "2.3.2",
4
+ "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework with 35+ integrated tools",
5
+ "type": "module",
6
+ "main": "dist/cli/index.js",
7
+ "exports": {
8
+ ".": "./dist/cli/index.js",
9
+ "./tools": "./dist/tools/index.js"
10
+ },
11
+ "bin": {
12
+ "vibe": "./dist/cli/index.js"
13
+ },
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "dev": "tsc --watch",
17
+ "test": "vitest run",
18
+ "test:watch": "vitest",
19
+ "prepublishOnly": "npm run build"
20
+ },
21
+ "keywords": [
22
+ "ai",
23
+ "vibe",
24
+ "coding",
25
+ "spec-driven",
26
+ "claude",
27
+ "mcp",
28
+ "framework",
29
+ "requirements",
30
+ "user-story",
31
+ "ultrawork",
32
+ "parallel-agents",
33
+ "memory-management",
34
+ "knowledge-graph",
35
+ "code-analysis",
36
+ "code-quality"
37
+ ],
38
+ "author": "Su",
39
+ "license": "MIT",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://github.com/su-record/vibe.git"
43
+ },
44
+ "homepage": "https://github.com/su-record/vibe#readme",
45
+ "engines": {
46
+ "node": ">=18.0.0"
47
+ },
48
+ "dependencies": {
49
+ "@modelcontextprotocol/sdk": "^1.0.0",
50
+ "better-sqlite3": "^12.4.1",
51
+ "chalk": "^5.3.0",
52
+ "glob": "^11.0.3",
53
+ "ts-morph": "^26.0.0"
54
+ },
55
+ "devDependencies": {
56
+ "@types/better-sqlite3": "^7.6.13",
57
+ "@types/glob": "^8.1.0",
58
+ "@types/node": "^22.0.0",
59
+ "typescript": "^5.5.4",
60
+ "vitest": "^4.0.9"
61
+ },
62
+ "files": [
63
+ "dist/",
64
+ ".claude/",
65
+ "commands/",
66
+ "agents/",
67
+ "skills/",
68
+ "hooks/",
69
+ "CLAUDE.md",
70
+ "README.md",
71
+ "LICENSE"
72
+ ]
73
+ }