@hung319/opencode-hive 1.6.6 → 1.6.8
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/README.md +8 -0
- package/bin/doctor.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,9 +36,17 @@ npx @hung319/opencode-hive doctor
|
|
|
36
36
|
|
|
37
37
|
**Step 2: Install the plugin**
|
|
38
38
|
```bash
|
|
39
|
+
# For Node.js v24+, set CXXFLAGS first to build tree-sitter native modules:
|
|
40
|
+
export CXXFLAGS="-std=c++20"
|
|
39
41
|
npm install @hung319/opencode-hive
|
|
40
42
|
```
|
|
41
43
|
|
|
44
|
+
> ⚠️ **Note:** This plugin includes `@ast-grep/napi` which requires C++20 on Node.js v24. If installation fails, try:
|
|
45
|
+
> ```bash
|
|
46
|
+
> export CXXFLAGS="-std=c++20"
|
|
47
|
+
> npm install @hung319/opencode-hive
|
|
48
|
+
> ```
|
|
49
|
+
|
|
42
50
|
**Step 3: Install extras you want**
|
|
43
51
|
- For **code analysis**: `npm install @notprolands/ast-grep-mcp`
|
|
44
52
|
- For **fast code search**: `npm install @paretools/search`
|
package/bin/doctor.ts
CHANGED
|
@@ -485,8 +485,14 @@ function printDoctor(output: DoctorOutput) {
|
|
|
485
485
|
|
|
486
486
|
const args = process.argv.slice(2);
|
|
487
487
|
const autoFix = args.includes('--fix') || args.includes('-f');
|
|
488
|
+
const ciMode = process.env.CI === 'true' || args.includes('--ci');
|
|
488
489
|
|
|
489
490
|
const output = runDoctor(autoFix);
|
|
490
491
|
printDoctor(output);
|
|
491
492
|
|
|
493
|
+
// In CI mode, only fail on critical errors, not on missing optional tools
|
|
494
|
+
if (ciMode) {
|
|
495
|
+
process.exit(0);
|
|
496
|
+
}
|
|
497
|
+
|
|
492
498
|
process.exit(output.status === 'ready' ? 0 : 1);
|