@su-record/vibe 2.7.0 → 2.7.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 (44) hide show
  1. package/CLAUDE.md +4 -5
  2. package/dist/cli/commands/init.d.ts.map +1 -1
  3. package/dist/cli/commands/init.js +1 -3
  4. package/dist/cli/commands/init.js.map +1 -1
  5. package/dist/cli/commands/update.d.ts.map +1 -1
  6. package/dist/cli/commands/update.js +1 -3
  7. package/dist/cli/commands/update.js.map +1 -1
  8. package/dist/cli/postinstall/fs-utils.d.ts +6 -0
  9. package/dist/cli/postinstall/fs-utils.d.ts.map +1 -1
  10. package/dist/cli/postinstall/fs-utils.js +24 -0
  11. package/dist/cli/postinstall/fs-utils.js.map +1 -1
  12. package/dist/cli/postinstall/index.d.ts +1 -1
  13. package/dist/cli/postinstall/index.d.ts.map +1 -1
  14. package/dist/cli/postinstall/index.js +1 -1
  15. package/dist/cli/postinstall/index.js.map +1 -1
  16. package/dist/cli/postinstall/main.d.ts.map +1 -1
  17. package/dist/cli/postinstall/main.js +4 -1
  18. package/dist/cli/postinstall/main.js.map +1 -1
  19. package/dist/cli/setup/GlobalInstaller.d.ts +0 -4
  20. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  21. package/dist/cli/setup/GlobalInstaller.js +0 -51
  22. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  23. package/dist/cli/setup/index.d.ts +2 -2
  24. package/dist/cli/setup/index.d.ts.map +1 -1
  25. package/dist/cli/setup/index.js +2 -2
  26. package/dist/cli/setup/index.js.map +1 -1
  27. package/dist/cli/setup.d.ts +2 -2
  28. package/dist/cli/setup.d.ts.map +1 -1
  29. package/dist/cli/setup.js +2 -2
  30. package/dist/cli/setup.js.map +1 -1
  31. package/hooks/scripts/post-edit.js +18 -48
  32. package/hooks/scripts/prompt-dispatcher.js +0 -25
  33. package/package.json +1 -1
  34. package/hooks/scripts/__tests__/skill-injector.test.js +0 -234
  35. package/hooks/scripts/autonomy-controller.js +0 -101
  36. package/hooks/scripts/code-review.js +0 -22
  37. package/hooks/scripts/complexity.js +0 -22
  38. package/hooks/scripts/compound.js +0 -23
  39. package/hooks/scripts/evolution-engine.js +0 -101
  40. package/hooks/scripts/hud-multiline.js +0 -262
  41. package/hooks/scripts/post-tool-verify.js +0 -210
  42. package/hooks/scripts/recall.js +0 -22
  43. package/hooks/scripts/skill-injector.js +0 -654
  44. package/hooks/scripts/skill-requirements.js +0 -83
@@ -1,83 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Skill Requirements Checker
4
- * Binary existence check + platform check + install hints
5
- */
6
-
7
- import { spawnSync } from 'child_process';
8
-
9
- // Binary existence cache (TTL: 5분)
10
- const BINARY_CACHE = new Map();
11
- const CACHE_TTL = 5 * 60 * 1000;
12
-
13
- // Allowed binary name pattern (security)
14
- const BINARY_NAME_PATTERN = /^[a-zA-Z0-9._-]+$/;
15
-
16
- /**
17
- * Check if a binary exists
18
- */
19
- export function checkBinaryExists(name) {
20
- if (!BINARY_NAME_PATTERN.test(name)) {
21
- return false;
22
- }
23
-
24
- // Check cache
25
- const cached = BINARY_CACHE.get(name);
26
- if (cached && Date.now() - cached.checkedAt < CACHE_TTL) {
27
- return cached.exists;
28
- }
29
-
30
- const cmd = process.platform === 'win32' ? 'where' : 'which';
31
- try {
32
- const result = spawnSync(cmd, [name], {
33
- shell: false,
34
- timeout: 1000,
35
- stdio: ['ignore', 'pipe', 'ignore'],
36
- });
37
- const exists = result.status === 0;
38
- BINARY_CACHE.set(name, { exists, checkedAt: Date.now() });
39
- return exists;
40
- } catch {
41
- BINARY_CACHE.set(name, { exists: false, checkedAt: Date.now() });
42
- return false;
43
- }
44
- }
45
-
46
- /**
47
- * Check all required binaries
48
- */
49
- export function checkAllRequirements(requires) {
50
- if (!requires || !Array.isArray(requires)) return [];
51
-
52
- return requires.map(name => ({
53
- name,
54
- exists: checkBinaryExists(name),
55
- }));
56
- }
57
-
58
- /**
59
- * Get install hint for current platform
60
- */
61
- export function getInstallHint(install, platform) {
62
- if (!install || typeof install !== 'object') return null;
63
- platform = platform || process.platform;
64
-
65
- if (platform === 'darwin' && install.brew) return `brew install ${install.brew}`;
66
- if (platform === 'linux' && install.apt) return `apt install ${install.apt}`;
67
- if (platform === 'win32' && install.choco) return `choco install ${install.choco}`;
68
- if (install.npm) return `npm install -g ${install.npm}`;
69
- if (install.url) return `Download: ${install.url}`;
70
-
71
- // Try brew as fallback for darwin/linux
72
- if (install.brew && platform !== 'win32') return `brew install ${install.brew}`;
73
-
74
- return null;
75
- }
76
-
77
- /**
78
- * Check platform compatibility
79
- */
80
- export function checkPlatform(os) {
81
- if (!os || !Array.isArray(os) || os.length === 0) return true;
82
- return os.includes(process.platform);
83
- }