@hung319/opencode-hive 1.6.2 → 1.6.3
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/doctor.ts +5 -0
- package/package.json +1 -1
package/bin/doctor.ts
CHANGED
|
@@ -87,6 +87,7 @@ const colors = {
|
|
|
87
87
|
yellow: (text: string) => `\x1b[33m${text}\x1b[0m`,
|
|
88
88
|
red: (text: string) => `\x1b[31m${text}\x1b[0m`,
|
|
89
89
|
blue: (text: string) => `\x1b[34m${text}\x1b[0m`,
|
|
90
|
+
cyan: (text: string) => `\x1b[36m${text}\x1b[0m`,
|
|
90
91
|
gray: (text: string) => `\x1b[90m${text}\x1b[0m`,
|
|
91
92
|
};
|
|
92
93
|
|
|
@@ -416,6 +417,10 @@ function printDoctor(output: DoctorOutput) {
|
|
|
416
417
|
console.log('\n ' + colors.cyan('CLI Tools:'));
|
|
417
418
|
console.log(' ' + colors.green(output.installCommands.cliTools));
|
|
418
419
|
}
|
|
420
|
+
|
|
421
|
+
// Note about C++20 for native modules
|
|
422
|
+
console.log('\n' + colors.yellow('💡 Tip: ') + colors.gray('If @ast-grep/napi fails to build, try:'));
|
|
423
|
+
console.log(' ' + colors.green('export CXXFLAGS="-std=c++20" && npm install'));
|
|
419
424
|
}
|
|
420
425
|
|
|
421
426
|
console.log('\n' + colors.blue('═'.repeat(55)));
|