@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.
- package/bin/vibe +35 -11
- 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
|
-
//
|
|
318
|
+
// 기존 postinstall/prepare에서 vibe update 제거 (CI/prd에서 멈춤 문제)
|
|
319
319
|
if (!pkg.scripts) {
|
|
320
320
|
pkg.scripts = {};
|
|
321
321
|
}
|
|
322
|
-
if (
|
|
323
|
-
pkg.scripts.postinstall =
|
|
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
|
-
}
|
|
326
|
-
|
|
327
|
-
pkg.scripts.
|
|
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
|
-
|
|
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
|
-
|
|
835
|
-
|
|
836
|
-
|
|
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/
|