@su-record/vibe 1.0.9 → 1.0.11

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/bin/vibe +35 -11
  2. package/package.json +1 -1
package/bin/vibe CHANGED
@@ -315,16 +315,30 @@ function setupCollaboratorAutoInstall(projectRoot) {
315
315
  modified = true;
316
316
  }
317
317
 
318
- // scripts에 postinstall 추가
318
+ // 기존 postinstall/prepare에서 vibe update 제거 (CI/prd에서 멈춤 문제)
319
319
  if (!pkg.scripts) {
320
320
  pkg.scripts = {};
321
321
  }
322
- if (!pkg.scripts.postinstall) {
323
- pkg.scripts.postinstall = 'npx @su-record/vibe update --silent';
322
+ if (pkg.scripts.postinstall && pkg.scripts.postinstall.includes('vibe update')) {
323
+ pkg.scripts.postinstall = pkg.scripts.postinstall
324
+ .replace(/\s*&&\s*npx @su-record\/vibe update --silent[^&]*/g, '')
325
+ .replace(/npx @su-record\/vibe update --silent[^&]*\s*&&\s*/g, '')
326
+ .replace(/npx @su-record\/vibe update[^&]*/g, '')
327
+ .trim();
328
+ if (!pkg.scripts.postinstall) {
329
+ delete pkg.scripts.postinstall;
330
+ }
324
331
  modified = true;
325
- } else if (!pkg.scripts.postinstall.includes('vibe update')) {
326
- // 기존 postinstall이 있으면 vibe update 추가
327
- pkg.scripts.postinstall = `${pkg.scripts.postinstall} && npx @su-record/vibe update --silent`;
332
+ }
333
+ if (pkg.scripts.prepare && pkg.scripts.prepare.includes('vibe update')) {
334
+ pkg.scripts.prepare = pkg.scripts.prepare
335
+ .replace(/\s*&&\s*npx @su-record\/vibe update --silent[^&]*/g, '')
336
+ .replace(/npx @su-record\/vibe update --silent[^&]*\s*&&\s*/g, '')
337
+ .replace(/npx @su-record\/vibe update[^&]*/g, '')
338
+ .trim();
339
+ if (!pkg.scripts.prepare) {
340
+ delete pkg.scripts.prepare;
341
+ }
328
342
  modified = true;
329
343
  }
330
344
 
@@ -823,17 +837,27 @@ async function update() {
823
837
  const vibeDir = path.join(projectRoot, '.vibe');
824
838
  const claudeDir = path.join(projectRoot, '.claude');
825
839
 
840
+ // CI/프로덕션 환경에서는 스킵 (NODE_ENV=production 또는 CI=true)
841
+ if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
842
+ return;
843
+ }
844
+
826
845
  if (!fs.existsSync(vibeDir)) {
827
- console.log('❌ vibe 프로젝트가 아닙니다. 먼저 vibe init을 실행하세요.');
846
+ // silent 모드에서는 에러 출력하지 않음
847
+ if (!options.silent) {
848
+ console.log('❌ vibe 프로젝트가 아닙니다. 먼저 vibe init을 실행하세요.');
849
+ }
828
850
  return;
829
851
  }
830
852
 
831
853
  log('🔄 vibe 업데이트 중...\n');
832
854
 
833
- // 최신 버전 확인 및 자동 업그레이드
834
- const wasUpgraded = await checkAndUpgradeVibe();
835
- if (wasUpgraded) {
836
- return; // 새 버전에서 재실행됨
855
+ // 최신 버전 확인 및 자동 업그레이드 (silent 모드에서는 스킵)
856
+ if (!options.silent) {
857
+ const wasUpgraded = await checkAndUpgradeVibe();
858
+ if (wasUpgraded) {
859
+ return; // 새 버전에서 재실행됨
860
+ }
837
861
  }
838
862
 
839
863
  // 마이그레이션: .agent/rules/ → .vibe/rules/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework",
5
5
  "bin": {
6
6
  "vibe": "./bin/vibe"