viepilot 2.45.2 → 2.45.3

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/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.45.3] - 2026-04-25
11
+
12
+ ### Fixed
13
+ - **BUG-024**: `viepilot-install.cjs` hard-coded `libFiles` list caused `viepilot-persona.cjs`,
14
+ `skill-registry.cjs`, `skill-installer.cjs`, and `lib/adapters/`, `lib/hooks/`,
15
+ `lib/domain-packs/` subdirectories to be absent from all installed instances
16
+ (`~/.claude/viepilot/lib/`, `~/.cursor/viepilot/lib/`, Windows equivalents).
17
+ Fix: replaced explicit list with dynamic `lib/` directory scan — all files and
18
+ subdirectories now copied automatically. Affected: `persona auto-switch/context`,
19
+ `scan-skills`, `install-skill`, `uninstall-skill`, adapter detection (BUG-024)
20
+
10
21
  ## [2.45.2] - 2026-04-25
11
22
 
12
23
  ### Enhanced
@@ -132,7 +132,6 @@ function buildInstallPlan(packageRoot, envSource = process.env, opts = {}) {
132
132
  });
133
133
 
134
134
  const binFiles = ['vp-tools.cjs', 'viepilot.cjs'];
135
- const libFiles = ['cli-shared.cjs', 'viepilot-info.cjs', 'viepilot-update.cjs', 'viepilot-install.cjs', 'viepilot-config.cjs'];
136
135
  const uiRoot = path.join(root, 'ui-components');
137
136
 
138
137
  // One install loop per selected adapter (replaces cursor block + claude-code if-block).
@@ -181,8 +180,11 @@ function buildInstallPlan(packageRoot, envSource = process.env, opts = {}) {
181
180
  for (const f of binFiles) {
182
181
  steps.push({ kind: 'copy_file', from: path.join(root, 'bin', f), to: path.join(vpDir, 'bin', f) });
183
182
  }
184
- for (const f of libFiles) {
185
- steps.push({ kind: 'copy_file', from: path.join(root, 'lib', f), to: path.join(vpDir, 'lib', f) });
183
+ // BUG-024: dynamic lib/ scan — copies ALL files + subdirs (adapters/, hooks/, domain-packs/, etc.)
184
+ for (const ent of listDirEntries(root, 'lib')) {
185
+ const src = path.join(root, 'lib', ent.name);
186
+ const dest = path.join(vpDir, 'lib', ent.name);
187
+ steps.push(ent.isDirectory() ? { kind: 'copy_dir', from: src, to: dest } : { kind: 'copy_file', from: src, to: dest });
186
188
  }
187
189
  if (fs.existsSync(uiRoot)) {
188
190
  for (const ent of listDirEntries(root, 'ui-components')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viepilot",
3
- "version": "2.45.2",
3
+ "version": "2.45.3",
4
4
  "description": "**Autonomous Vibe Coding Framework / Bộ khung phát triển tự động có kiểm soát**",
5
5
  "main": "index.js",
6
6
  "bin": {