@crewx/cli 0.8.9-rc.9 → 0.8.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/dist/commands/doctor.js +15 -9
- package/package.json +11 -11
package/dist/commands/doctor.js
CHANGED
|
@@ -100,20 +100,26 @@ function checkLogsDir() {
|
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Check CLI provider availability.
|
|
103
|
+
* Providers are checked in PROVIDER_ORDER: codex → claude → opencode → antigravity → copilot.
|
|
103
104
|
*/
|
|
104
105
|
function checkCliProviders() {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
// Map each provider (in PROVIDER_ORDER) to its CLI command and install hint.
|
|
107
|
+
const providerInfo = {
|
|
108
|
+
codex: { cmd: 'codex', install: 'npm install -g @openai/codex' },
|
|
109
|
+
claude: { cmd: 'claude', install: 'npm install -g @anthropic-ai/claude-code' },
|
|
110
|
+
opencode: { cmd: 'opencode', install: 'npm install -g opencode' },
|
|
111
|
+
antigravity: { cmd: 'antigravity', install: 'npm install -g antigravity' },
|
|
112
|
+
copilot: { cmd: 'gh', install: 'brew install gh # or visit cli.github.com' },
|
|
113
|
+
};
|
|
114
|
+
return sdk_1.PROVIDER_ORDER.map(provider => {
|
|
115
|
+
const info = providerInfo[provider];
|
|
116
|
+
const displayName = provider === 'copilot' ? 'copilot (gh)' : provider;
|
|
117
|
+
const available = isCommandAvailable(info.cmd);
|
|
112
118
|
return {
|
|
113
|
-
name: `${
|
|
119
|
+
name: `${displayName.toUpperCase()} CLI`,
|
|
114
120
|
status: available ? 'success' : 'warning',
|
|
115
121
|
message: available ? 'Installed and available' : 'Not installed or not on PATH',
|
|
116
|
-
details: available ? undefined : `Install: ${
|
|
122
|
+
details: available ? undefined : `Install: ${info.install}`,
|
|
117
123
|
};
|
|
118
124
|
});
|
|
119
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/cli",
|
|
3
|
-
"version": "0.8.9
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0"
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"@crewx/adapter-slack": "0.1.4",
|
|
25
25
|
"better-sqlite3": "*",
|
|
26
26
|
"isomorphic-git": "1.37.1",
|
|
27
|
-
"@crewx/sdk": "0.8.9
|
|
28
|
-
"@crewx/
|
|
29
|
-
"@crewx/
|
|
30
|
-
"@crewx/
|
|
31
|
-
"@crewx/
|
|
32
|
-
"@crewx/cron": "0.1.10
|
|
27
|
+
"@crewx/sdk": "0.8.9",
|
|
28
|
+
"@crewx/memory": "0.1.23",
|
|
29
|
+
"@crewx/search": "0.1.10",
|
|
30
|
+
"@crewx/doc": "0.1.9",
|
|
31
|
+
"@crewx/wbs": "0.1.10",
|
|
32
|
+
"@crewx/cron": "0.1.10",
|
|
33
|
+
"@crewx/workflow": "0.3.22",
|
|
33
34
|
"@crewx/skill": "0.1.20",
|
|
34
|
-
"@crewx/
|
|
35
|
-
"@crewx/
|
|
36
|
-
"@crewx/
|
|
37
|
-
"@crewx/shared": "0.0.5"
|
|
35
|
+
"@crewx/chromex": "0.1.0",
|
|
36
|
+
"@crewx/wi": "0.1.10",
|
|
37
|
+
"@crewx/shared": "0.0.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/better-sqlite3": "*",
|