code-abyss 1.6.7 → 1.6.9

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/install.js CHANGED
@@ -285,7 +285,7 @@ function installCore(tgt) {
285
285
  // ── Claude 后续 ──
286
286
 
287
287
  async function postClaude(ctx) {
288
- const { select, checkbox, confirm, input } = require('@inquirer/prompts');
288
+ const { select, checkbox, confirm, input } = await import('@inquirer/prompts');
289
289
 
290
290
  step(2, 3, '认证检测');
291
291
  const auth = detectClaudeAuth(ctx.settings);
@@ -388,7 +388,7 @@ async function installCcline(ctx) {
388
388
  // ── Codex 后续 ──
389
389
 
390
390
  async function postCodex() {
391
- const { select, confirm, input } = require('@inquirer/prompts');
391
+ const { confirm } = await import('@inquirer/prompts');
392
392
  const cfgPath = path.join(HOME, '.codex', 'config.toml');
393
393
  const exists = fs.existsSync(cfgPath);
394
394
 
@@ -437,7 +437,6 @@ async function postCodex() {
437
437
  async function main() {
438
438
  if (uninstallTarget) { runUninstall(uninstallTarget); return; }
439
439
 
440
- const { select } = require('@inquirer/prompts');
441
440
  banner();
442
441
 
443
442
  if (target) {
@@ -449,6 +448,7 @@ async function main() {
449
448
  return;
450
449
  }
451
450
 
451
+ const { select } = await import('@inquirer/prompts');
452
452
  const action = await select({
453
453
  message: '请选择操作',
454
454
  choices: [
package/bin/uninstall.js CHANGED
@@ -23,7 +23,7 @@ try {
23
23
  console.log(`\n🗑️ 卸载 Code Abyss v${manifest.version}...\n`);
24
24
 
25
25
  // 1. 删除安装的文件
26
- manifest.installed.forEach(f => {
26
+ (manifest.installed || []).forEach(f => {
27
27
  const p = path.join(targetDir, f);
28
28
  if (fs.existsSync(p)) {
29
29
  fs.rmSync(p, { recursive: true, force: true });
@@ -32,7 +32,7 @@ manifest.installed.forEach(f => {
32
32
  });
33
33
 
34
34
  // 2. 恢复备份
35
- manifest.backups.forEach(f => {
35
+ (manifest.backups || []).forEach(f => {
36
36
  const bp = path.join(backupDir, f);
37
37
  const tp = path.join(targetDir, f);
38
38
  if (fs.existsSync(bp)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-abyss",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "邪修红尘仙·宿命深渊 - 一键为 Claude Code / Codex CLI 注入邪修人格与安全工程知识体系",
5
5
  "keywords": [
6
6
  "claude",
@@ -15,14 +15,14 @@
15
15
  "license": "MIT",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "https://github.com/telagod/code-abyss.git"
18
+ "url": "git+https://github.com/telagod/code-abyss.git"
19
19
  },
20
20
  "homepage": "https://github.com/telagod/code-abyss#readme",
21
21
  "bugs": {
22
22
  "url": "https://github.com/telagod/code-abyss/issues"
23
23
  },
24
24
  "bin": {
25
- "code-abyss": "./bin/install.js"
25
+ "code-abyss": "bin/install.js"
26
26
  },
27
27
  "files": [
28
28
  "bin/",
@@ -33,7 +33,7 @@
33
33
  "README.md"
34
34
  ],
35
35
  "engines": {
36
- "node": ">=14.0.0"
36
+ "node": ">=18.0.0"
37
37
  },
38
38
  "scripts": {
39
39
  "test": "python3 -m unittest discover skills/tests/ -v"