@crewx/cli 0.8.9-rc.26 → 0.8.9-rc.28
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 -8
- package/package.json +11 -11
package/dist/commands/doctor.js
CHANGED
|
@@ -100,19 +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
|
-
|
|
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);
|
|
111
118
|
return {
|
|
112
|
-
name: `${
|
|
119
|
+
name: `${displayName.toUpperCase()} CLI`,
|
|
113
120
|
status: available ? 'success' : 'warning',
|
|
114
121
|
message: available ? 'Installed and available' : 'Not installed or not on PATH',
|
|
115
|
-
details: available ? undefined : `Install: ${
|
|
122
|
+
details: available ? undefined : `Install: ${info.install}`,
|
|
116
123
|
};
|
|
117
124
|
});
|
|
118
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/cli",
|
|
3
|
-
"version": "0.8.9-rc.
|
|
3
|
+
"version": "0.8.9-rc.28",
|
|
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-rc.
|
|
28
|
-
"@crewx/memory": "0.1.23-rc.
|
|
29
|
-
"@crewx/
|
|
30
|
-
"@crewx/
|
|
31
|
-
"@crewx/workflow": "0.3.22-rc.
|
|
27
|
+
"@crewx/sdk": "0.8.9-rc.28",
|
|
28
|
+
"@crewx/memory": "0.1.23-rc.44",
|
|
29
|
+
"@crewx/doc": "0.1.9-rc.26",
|
|
30
|
+
"@crewx/search": "0.1.10-rc.27",
|
|
31
|
+
"@crewx/workflow": "0.3.22-rc.44",
|
|
32
|
+
"@crewx/cron": "0.1.10-rc.62",
|
|
33
|
+
"@crewx/wbs": "0.1.10-rc.57",
|
|
32
34
|
"@crewx/skill": "0.1.20",
|
|
33
|
-
"@crewx/
|
|
34
|
-
"@crewx/wi": "0.1.10-rc.
|
|
35
|
-
"@crewx/shared": "0.0.6-rc.
|
|
36
|
-
"@crewx/doc": "0.1.9-rc.24",
|
|
37
|
-
"@crewx/chromex": "0.1.0-rc.62"
|
|
35
|
+
"@crewx/chromex": "0.1.0-rc.64",
|
|
36
|
+
"@crewx/wi": "0.1.10-rc.28",
|
|
37
|
+
"@crewx/shared": "0.0.6-rc.15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/better-sqlite3": "*",
|