@su-record/vibe 1.0.10 → 1.0.12

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 +25 -24
  2. package/package.json +1 -1
package/bin/vibe CHANGED
@@ -315,30 +315,31 @@ function setupCollaboratorAutoInstall(projectRoot) {
315
315
  modified = true;
316
316
  }
317
317
 
318
- // scripts에 prepare 추가 (postinstall 대신 - CI에서는 실행 안됨)
319
- if (!pkg.scripts) {
320
- pkg.scripts = {};
321
- }
322
- // postinstall에서 prepare로 변경 (npm install --production에서 스킵됨)
323
- if (pkg.scripts.postinstall && pkg.scripts.postinstall.includes('vibe update')) {
324
- // 기존 postinstall에서 vibe update 제거
325
- pkg.scripts.postinstall = pkg.scripts.postinstall
326
- .replace(/\s*&&\s*npx @su-record\/vibe update --silent/g, '')
327
- .replace(/npx @su-record\/vibe update --silent\s*&&\s*/g, '')
328
- .replace(/npx @su-record\/vibe update --silent/g, '')
329
- .trim();
330
- if (!pkg.scripts.postinstall) {
331
- delete pkg.scripts.postinstall;
332
- }
333
- modified = true;
334
- }
335
- // prepare에 vibe update 추가 (devDependency 설치 시에만 실행)
336
- if (!pkg.scripts.prepare) {
337
- pkg.scripts.prepare = 'npx @su-record/vibe update --silent 2>/dev/null || true';
338
- modified = true;
339
- } else if (!pkg.scripts.prepare.includes('vibe update')) {
340
- pkg.scripts.prepare = `${pkg.scripts.prepare} && npx @su-record/vibe update --silent 2>/dev/null || true`;
341
- modified = true;
318
+ // 기존 postinstall/prepare에서 vibe update 제거 (CI/prd 블로킹 문제)
319
+ // vibe update는 개발자가 직접 실행해야 함
320
+ if (pkg.scripts) {
321
+ const oldPatterns = [
322
+ /\s*&&\s*npx @su-record\/vibe update[^&|;]*/g,
323
+ /npx @su-record\/vibe update[^&|;]*\s*&&\s*/g,
324
+ /npx @su-record\/vibe update[^&|;]*/g,
325
+ /\s*&&\s*node_modules\/\.bin\/vibe update[^&|;]*/g,
326
+ /node_modules\/\.bin\/vibe update[^&|;]*\s*&&\s*/g,
327
+ /node_modules\/\.bin\/vibe update[^&|;]*/g
328
+ ];
329
+
330
+ ['postinstall', 'prepare'].forEach(script => {
331
+ if (pkg.scripts[script] && pkg.scripts[script].includes('vibe update')) {
332
+ let cleaned = pkg.scripts[script];
333
+ oldPatterns.forEach(p => { cleaned = cleaned.replace(p, ''); });
334
+ cleaned = cleaned.trim();
335
+ if (cleaned) {
336
+ pkg.scripts[script] = cleaned;
337
+ } else {
338
+ delete pkg.scripts[script];
339
+ }
340
+ modified = true;
341
+ }
342
+ });
342
343
  }
343
344
 
344
345
  if (modified) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework",
5
5
  "bin": {
6
6
  "vibe": "./bin/vibe"