@kaitranntt/ccs 4.3.7 → 4.3.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/VERSION +1 -1
- package/bin/management/doctor.js +22 -1
- package/bin/utils/claude-dir-installer.js +15 -2
- package/bin/utils/claude-symlink-manager.js +16 -2
- package/lib/ccs +1 -1
- package/lib/ccs.ps1 +1 -1
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.3.
|
|
1
|
+
4.3.9
|
package/bin/management/doctor.js
CHANGED
|
@@ -6,7 +6,28 @@ const os = require('os');
|
|
|
6
6
|
const { spawn } = require('child_process');
|
|
7
7
|
const { colored } = require('../utils/helpers');
|
|
8
8
|
const { detectClaudeCli } = require('../utils/claude-detector');
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
// Make ora optional (might not be available during npm install postinstall)
|
|
11
|
+
// ora v9+ is an ES module, need to use .default for CommonJS
|
|
12
|
+
let ora = null;
|
|
13
|
+
try {
|
|
14
|
+
const oraModule = require('ora');
|
|
15
|
+
ora = oraModule.default || oraModule;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
// ora not available, create fallback spinner that uses console.log
|
|
18
|
+
ora = function(text) {
|
|
19
|
+
return {
|
|
20
|
+
start: () => ({
|
|
21
|
+
succeed: (msg) => console.log(msg || `[OK] ${text}`),
|
|
22
|
+
fail: (msg) => console.log(msg || `[X] ${text}`),
|
|
23
|
+
warn: (msg) => console.log(msg || `[!] ${text}`),
|
|
24
|
+
info: (msg) => console.log(msg || `[i] ${text}`),
|
|
25
|
+
text: ''
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
const Table = require('cli-table3');
|
|
11
32
|
|
|
12
33
|
/**
|
|
@@ -6,11 +6,24 @@ const path = require('path');
|
|
|
6
6
|
const os = require('os');
|
|
7
7
|
|
|
8
8
|
// Make ora optional (might not be available during npm install postinstall)
|
|
9
|
+
// ora v9+ is an ES module, need to use .default for CommonJS
|
|
9
10
|
let ora = null;
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
+
const oraModule = require('ora');
|
|
13
|
+
ora = oraModule.default || oraModule;
|
|
12
14
|
} catch (e) {
|
|
13
|
-
// ora not available,
|
|
15
|
+
// ora not available, create fallback spinner that uses console.log
|
|
16
|
+
ora = function(text) {
|
|
17
|
+
return {
|
|
18
|
+
start: () => ({
|
|
19
|
+
succeed: (msg) => console.log(msg || `[OK] ${text}`),
|
|
20
|
+
fail: (msg) => console.log(msg || `[X] ${text}`),
|
|
21
|
+
warn: (msg) => console.log(msg || `[!] ${text}`),
|
|
22
|
+
info: (msg) => console.log(msg || `[i] ${text}`),
|
|
23
|
+
text: ''
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
};
|
|
14
27
|
}
|
|
15
28
|
|
|
16
29
|
const { colored } = require('./helpers');
|
|
@@ -5,11 +5,24 @@ const path = require('path');
|
|
|
5
5
|
const os = require('os');
|
|
6
6
|
|
|
7
7
|
// Make ora optional (might not be available during npm install postinstall)
|
|
8
|
+
// ora v9+ is an ES module, need to use .default for CommonJS
|
|
8
9
|
let ora = null;
|
|
9
10
|
try {
|
|
10
|
-
|
|
11
|
+
const oraModule = require('ora');
|
|
12
|
+
ora = oraModule.default || oraModule;
|
|
11
13
|
} catch (e) {
|
|
12
|
-
// ora not available,
|
|
14
|
+
// ora not available, create fallback spinner that uses console.log
|
|
15
|
+
ora = function(text) {
|
|
16
|
+
return {
|
|
17
|
+
start: () => ({
|
|
18
|
+
succeed: (msg) => console.log(msg || `[OK] ${text}`),
|
|
19
|
+
fail: (msg) => console.log(msg || `[X] ${text}`),
|
|
20
|
+
warn: (msg) => console.log(msg || `[!] ${text}`),
|
|
21
|
+
info: (msg) => console.log(msg || `[i] ${text}`),
|
|
22
|
+
text: ''
|
|
23
|
+
})
|
|
24
|
+
};
|
|
25
|
+
};
|
|
13
26
|
}
|
|
14
27
|
|
|
15
28
|
const { colored } = require('./helpers');
|
|
@@ -35,6 +48,7 @@ class ClaudeSymlinkManager {
|
|
|
35
48
|
|
|
36
49
|
// CCS items to symlink (selective, item-level)
|
|
37
50
|
this.ccsItems = [
|
|
51
|
+
{ source: 'commands/ccs.md', target: 'commands/ccs.md', type: 'file' },
|
|
38
52
|
{ source: 'commands/ccs', target: 'commands/ccs', type: 'directory' },
|
|
39
53
|
{ source: 'skills/ccs-delegation', target: 'skills/ccs-delegation', type: 'directory' }
|
|
40
54
|
];
|
package/lib/ccs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
4
|
# Version (updated by scripts/bump-version.sh)
|
|
5
|
-
CCS_VERSION="4.3.
|
|
5
|
+
CCS_VERSION="4.3.9"
|
|
6
6
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
7
|
readonly CONFIG_FILE="${CCS_CONFIG:-$HOME/.ccs/config.json}"
|
|
8
8
|
readonly PROFILES_JSON="$HOME/.ccs/profiles.json"
|
package/lib/ccs.ps1
CHANGED
|
@@ -12,7 +12,7 @@ param(
|
|
|
12
12
|
$ErrorActionPreference = "Stop"
|
|
13
13
|
|
|
14
14
|
# Version (updated by scripts/bump-version.sh)
|
|
15
|
-
$CcsVersion = "4.3.
|
|
15
|
+
$CcsVersion = "4.3.9"
|
|
16
16
|
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
17
17
|
$ConfigFile = if ($env:CCS_CONFIG) { $env:CCS_CONFIG } else { "$env:USERPROFILE\.ccs\config.json" }
|
|
18
18
|
$ProfilesJson = "$env:USERPROFILE\.ccs\profiles.json"
|