code-abyss 1.6.11 → 1.6.13

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/install.js +6 -3
  2. package/package.json +2 -2
package/bin/install.js CHANGED
@@ -7,7 +7,7 @@ const os = require('os');
7
7
  const VERSION = require(path.join(__dirname, '..', 'package.json')).version;
8
8
  const HOME = os.homedir();
9
9
  const SKIP = ['__pycache__', '.pyc', '.pyo', '.egg-info', '.DS_Store', 'Thumbs.db', '.git'];
10
- const PKG_ROOT = path.join(__dirname, '..');
10
+ const PKG_ROOT = fs.realpathSync(path.join(__dirname, '..'));
11
11
 
12
12
  // ── ANSI ──
13
13
 
@@ -36,7 +36,7 @@ function banner() {
36
36
  ██╔══██║██╔══██╗ ╚██╔╝ ╚════██║╚════██║
37
37
  ██║ ██║██████╔╝ ██║ ███████║███████║
38
38
  ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚══════╝╚══════╝`));
39
- console.log(c.d(` ☠️ 邪修红尘仙 · 宿命深渊 v${VERSION}\n`));
39
+ console.log(c.d(` 邪修红尘仙 · 宿命深渊 v${VERSION}\n`));
40
40
  }
41
41
 
42
42
  function divider(title) {
@@ -250,7 +250,10 @@ function installCore(tgt) {
250
250
  filesToInstall.forEach(({ src, dest }) => {
251
251
  const srcPath = path.join(PKG_ROOT, src);
252
252
  const destPath = path.join(targetDir, dest);
253
- if (!fs.existsSync(srcPath)) { warn(`跳过: ${src}`); return; }
253
+ if (!fs.existsSync(srcPath)) {
254
+ if (src === 'skills') { fail(`核心文件缺失: ${srcPath}\n 请尝试: npm cache clean --force && npx code-abyss`); process.exit(1); }
255
+ warn(`跳过: ${src}`); return;
256
+ }
254
257
  if (fs.existsSync(destPath)) {
255
258
  const bp = path.join(backupDir, dest);
256
259
  rmSafe(bp); copyRecursive(destPath, bp); manifest.backups.push(dest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-abyss",
3
- "version": "1.6.11",
3
+ "version": "1.6.13",
4
4
  "description": "邪修红尘仙·宿命深渊 - 一键为 Claude Code / Codex CLI 注入邪修人格与安全工程知识体系",
5
5
  "keywords": [
6
6
  "claude",
@@ -39,6 +39,6 @@
39
39
  "test": "python3 -m unittest discover skills/tests/ -v"
40
40
  },
41
41
  "dependencies": {
42
- "@inquirer/prompts": "^8.2.0"
42
+ "@inquirer/prompts": "^7.10.1"
43
43
  }
44
44
  }