@hung319/opencode-hive 1.5.2 → 1.5.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 +116 -36
- package/dist/index.js +601 -1043
- package/dist/mcp/index.d.ts +0 -2
- package/dist/tools/ast-grep-native.d.ts +2 -1
- package/dist/tools/hive-doctor.d.ts +1 -1
- package/package.json +3 -3
- package/dist/ast-grep-napi.linux-x64-gnu-qdwfscvp.node +0 -0
- package/dist/ast-grep-napi.linux-x64-musl-qnd01z8b.node +0 -0
package/README.md
CHANGED
|
@@ -14,6 +14,49 @@ Vibe: "Just make it work"
|
|
|
14
14
|
Hive: Plan → Review → Approve → Execute → Ship
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
## Quick Setup (3 Steps)
|
|
18
|
+
|
|
19
|
+
### For AI Agents (LLM)
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
1. Run: hive_doctor
|
|
23
|
+
2. Install missing: npm install <packages> && npx -y <tools>
|
|
24
|
+
3. Config: Add to ~/.config/opencode/agent_hive.json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### For Humans
|
|
28
|
+
|
|
29
|
+
**Step 1: Install the plugin**
|
|
30
|
+
```bash
|
|
31
|
+
npm install @hung319/opencode-hive
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Step 2: Check what's available**
|
|
35
|
+
Open OpenCode and ask: "Run hive_doctor to check the system"
|
|
36
|
+
|
|
37
|
+
**Step 3: Install extras you want**
|
|
38
|
+
- For **code analysis**: Install `@notprolands/ast-grep-mcp`
|
|
39
|
+
- For **fast code search**: Install `@paretools/search`
|
|
40
|
+
- For **code navigation**: Install `@butttons/dora`
|
|
41
|
+
- For **auto code review**: Install `auto-cr-cmd`
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Install all extras at once
|
|
45
|
+
npm install @notprolands/ast-grep-mcp @paretools/search
|
|
46
|
+
npx -y @butttons/dora auto-cr-cmd
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Step 4: Optional config**
|
|
50
|
+
Create `~/.config/opencode/agent_hive.json`:
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"snip": { "enabled": true },
|
|
54
|
+
"vectorMemory": { "enabled": true }
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
17
60
|
## Installation
|
|
18
61
|
|
|
19
62
|
```bash
|
|
@@ -489,71 +532,108 @@ hive_vector_search({
|
|
|
489
532
|
|
|
490
533
|
## Hive Doctor
|
|
491
534
|
|
|
492
|
-
System health check
|
|
535
|
+
System health check with actionable fixes. Run this when setting up or troubleshooting.
|
|
493
536
|
|
|
494
537
|
### Tools
|
|
495
538
|
|
|
496
539
|
| Tool | Description |
|
|
497
540
|
|------|-------------|
|
|
498
|
-
| `hive_doctor` | Full health check with
|
|
541
|
+
| `hive_doctor` | Full health check with install commands |
|
|
499
542
|
| `hive_doctor_quick` | Quick status summary |
|
|
500
543
|
|
|
501
544
|
### Usage
|
|
502
545
|
|
|
503
546
|
```typescript
|
|
504
|
-
// Full health check
|
|
547
|
+
// Full health check with actionable output
|
|
505
548
|
hive_doctor()
|
|
506
549
|
|
|
507
|
-
// Quick
|
|
550
|
+
// Quick status
|
|
508
551
|
hive_doctor_quick()
|
|
509
552
|
```
|
|
510
553
|
|
|
511
554
|
### What it checks
|
|
512
555
|
|
|
513
|
-
1. **Dependencies** -
|
|
514
|
-
-
|
|
515
|
-
-
|
|
516
|
-
-
|
|
517
|
-
-
|
|
518
|
-
-
|
|
519
|
-
- exa-mcp-server
|
|
520
|
-
|
|
521
|
-
2. **
|
|
522
|
-
-
|
|
523
|
-
-
|
|
524
|
-
-
|
|
525
|
-
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
556
|
+
1. **Dependencies** - npm packages installed?
|
|
557
|
+
- `@ast-grep/napi` - Native AST analysis
|
|
558
|
+
- `@sparkleideas/agent-booster` - Fast code editing
|
|
559
|
+
- `@sparkleideas/memory` - Vector memory
|
|
560
|
+
- `@paretools/search` - Structured search
|
|
561
|
+
- `@upstash/context7-mcp` - Library docs
|
|
562
|
+
- `exa-mcp-server` - Web search
|
|
563
|
+
|
|
564
|
+
2. **CLI Tools** - npx tools available?
|
|
565
|
+
- `dora` - Code navigation (SCIP-based)
|
|
566
|
+
- `auto-cr` - Automated code review (SWC)
|
|
567
|
+
- `scip-typescript` - TypeScript indexer
|
|
568
|
+
- `veil` - Code discovery
|
|
569
|
+
|
|
570
|
+
3. **Native Binaries** - @ast-grep/napi tree-sitter?
|
|
571
|
+
- Native mode: Fastest, uses compiled binaries
|
|
572
|
+
- CLI mode: Falls back to MCP via npx
|
|
573
|
+
|
|
574
|
+
4. **Config** - Features enabled?
|
|
575
|
+
- snip, vectorMemory, agentBooster
|
|
576
|
+
- sandbox mode
|
|
577
|
+
- MCPs: ast_grep, veil, pare_search
|
|
530
578
|
|
|
531
579
|
### Example Output
|
|
532
580
|
|
|
533
581
|
```json
|
|
534
582
|
{
|
|
535
583
|
"status": "warning",
|
|
536
|
-
"
|
|
537
|
-
"dependencies":
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
584
|
+
"summary": {
|
|
585
|
+
"dependencies": "⚠️ 2 missing: agent-booster, vector-memory",
|
|
586
|
+
"cliTools": "⚠️ 1 missing: auto-cr",
|
|
587
|
+
"nativeBinaries": "⚡ CLI mode (native unavailable)",
|
|
588
|
+
"config": "💡 2 disabled: snip, vectorMemory"
|
|
589
|
+
},
|
|
590
|
+
"actionItems": [
|
|
591
|
+
{
|
|
592
|
+
"priority": "high",
|
|
593
|
+
"action": "Install auto-cr",
|
|
594
|
+
"command": "npx -y auto-cr-cmd",
|
|
595
|
+
"reason": "SWC-based automated code review"
|
|
541
596
|
},
|
|
542
|
-
|
|
543
|
-
"
|
|
544
|
-
"
|
|
545
|
-
"
|
|
597
|
+
{
|
|
598
|
+
"priority": "medium",
|
|
599
|
+
"action": "Install agent-booster",
|
|
600
|
+
"command": "npm install @sparkleideas/agent-booster",
|
|
601
|
+
"reason": "52x faster code editing"
|
|
546
602
|
}
|
|
547
|
-
},
|
|
548
|
-
"recommendations": [
|
|
549
|
-
"Enable vector memory for semantic search across memories"
|
|
550
603
|
],
|
|
551
|
-
"
|
|
552
|
-
|
|
553
|
-
|
|
604
|
+
"quickInstall": {
|
|
605
|
+
"deps": ["@sparkleideas/agent-booster", "@sparkleideas/memory"],
|
|
606
|
+
"cliTools": ["auto-cr-cmd"]
|
|
607
|
+
}
|
|
554
608
|
}
|
|
555
609
|
```
|
|
556
610
|
|
|
611
|
+
### Setup Workflow
|
|
612
|
+
|
|
613
|
+
**For AI Agents (LLM):**
|
|
614
|
+
|
|
615
|
+
```
|
|
616
|
+
1. Run: hive_doctor
|
|
617
|
+
2. Parse: actionItems[] for priority: "high"
|
|
618
|
+
3. Install: Run quickInstall.commands
|
|
619
|
+
4. Config: Apply config recommendations
|
|
620
|
+
5. Verify: Run hive_doctor again to confirm
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
**For Humans:**
|
|
624
|
+
|
|
625
|
+
1. **Open OpenCode** and ask "Run hive_doctor"
|
|
626
|
+
2. **Look at the summary** - it tells you what's missing
|
|
627
|
+
3. **Install what you need** - commands are ready to copy
|
|
628
|
+
4. **Optional: Configure** - enable snip, vector memory for extra features
|
|
629
|
+
|
|
630
|
+
```
|
|
631
|
+
Quick Install All:
|
|
632
|
+
npm install @notprolands/ast-grep-mcp @paretools/search @sparkleideas/memory
|
|
633
|
+
npx -y @butttons/dora auto-cr-cmd
|
|
634
|
+
```
|
|
635
|
+
```
|
|
636
|
+
|
|
557
637
|
## License
|
|
558
638
|
|
|
559
639
|
MIT with Commons Clause — Free for personal and non-commercial use. See [LICENSE](../../LICENSE) for details.
|