@hung319/opencode-hive 1.6.1 → 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/README.md CHANGED
@@ -71,7 +71,7 @@ npm install @hung319/opencode-hive
71
71
  2. Set `EXA_API_KEY` to enable `websearch_exa` (optional).
72
72
  3. Restart OpenCode.
73
73
 
74
- This enables tools like `grep_app_searchGitHub`, `context7_query-docs`, `websearch_web_search_exa`, and `ast_grep_search`.
74
+ This enables tools like `grep_app_searchGitHub`, `context7_query-docs`, and `websearch_web_search_exa`.
75
75
 
76
76
  ## The Workflow
77
77
 
@@ -206,7 +206,7 @@ Hive uses a config file at `~/.config/opencode/agent_hive.json`. You can customi
206
206
  {
207
207
  "$schema": "https://raw.githubusercontent.com/hung319/agent-hive/main/packages/opencode-hive/schema/agent_hive.schema.json",
208
208
  "disableSkills": ["brainstorming", "writing-plans"],
209
- "disableMcps": ["websearch", "ast_grep"]
209
+ "disableMcps": ["websearch", "pare_search"]
210
210
  }
211
211
  ```
212
212
 
@@ -230,7 +230,6 @@ Hive uses a config file at `~/.config/opencode/agent_hive.json`. You can customi
230
230
  | `websearch` | Web search via [Exa AI](https://exa.ai). Real-time web searches and content scraping. | Set `EXA_API_KEY` env var |
231
231
  | `context7` | Library documentation lookup via [Context7](https://context7.com). Query up-to-date docs for any programming library. | None |
232
232
  | `grep_app` | GitHub code search via [grep.app](https://grep.app). Find real-world code examples from public repositories. | None |
233
- | `ast_grep` | AST-based pattern matching and code analysis. | None (runs via npx) |
234
233
  | `pare_search` | Structured ripgrep/fd search with 65-95% token reduction. | None (runs via npx) |
235
234
  | `veil` | Code discovery and intelligent retrieval. | None (runs via npx) |
236
235
 
@@ -547,7 +546,7 @@ bunx @hung319/opencode-hive doctor
547
546
  ### What it checks
548
547
 
549
548
  1. **Dependencies** - npm packages installed?
550
- - Core: `@ast-grep/napi`, `@notprolands/ast-grep-mcp`
549
+ - Core: `@ast-grep/napi`
551
550
  - Agent: `@sparkleideas/agent-booster`, `@sparkleideas/memory`
552
551
  - MCPs: `@paretools/search`, `@upstash/context7-mcp`, `exa-mcp-server`, `grep-mcp`
553
552
  - Blockchain: `btca`, `opencode-model-selector`
@@ -558,12 +557,11 @@ bunx @hung319/opencode-hive doctor
558
557
  - `scip-typescript` - TypeScript indexer
559
558
  - `veil` - Code discovery
560
559
  - `btca` - BTC/A blockchain agent (from npmx.dev)
561
- - `ast-grep` - AST-based pattern matching
562
560
 
563
561
  3. **Config** - Features enabled?
564
562
  - snip, vectorMemory, agentBooster
565
563
  - sandbox mode
566
- - MCPs: ast_grep, veil, pare_search
564
+ - MCPs: veil, pare_search
567
565
 
568
566
  ### Example Output
569
567
 
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
 
@@ -232,7 +233,6 @@ function runDoctor(): DoctorOutput {
232
233
  // Check dependencies
233
234
  const deps = [
234
235
  '@ast-grep/napi',
235
- '@notprolands/ast-grep-mcp',
236
236
  '@sparkleideas/agent-booster',
237
237
  '@sparkleideas/memory',
238
238
  '@paretools/search',
@@ -254,7 +254,6 @@ function runDoctor(): DoctorOutput {
254
254
  { name: 'veil', command: '@ushiradineth/veil', description: 'Code discovery and retrieval' },
255
255
  { name: 'scip-typescript', command: '@sourcegraph/scip-typescript', description: 'TypeScript SCIP indexer' },
256
256
  { name: 'btca', command: 'btca', description: 'BTC/A agent for blockchain tasks' },
257
- { name: 'ast-grep', command: '@notprolands/ast-grep-mcp', description: 'AST-based pattern matching' },
258
257
  ];
259
258
 
260
259
  output.checks.cliTools.items = cliTools.map(t => checkCliTool(t.name, t.command, t.description));
@@ -418,6 +417,10 @@ function printDoctor(output: DoctorOutput) {
418
417
  console.log('\n ' + colors.cyan('CLI Tools:'));
419
418
  console.log(' ' + colors.green(output.installCommands.cliTools));
420
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'));
421
424
  }
422
425
 
423
426
  console.log('\n' + colors.blue('═'.repeat(55)));
package/dist/index.js CHANGED
@@ -19852,20 +19852,13 @@ var veilMcp = {
19852
19852
  command: ["npx", "-y", "@ushiradineth/veil@latest", "mcp", "server"]
19853
19853
  };
19854
19854
 
19855
- // src/mcp/ast-grep.ts
19856
- var astGrepMcp = {
19857
- type: "local",
19858
- command: ["npx", "-y", "@notprolands/ast-grep-mcp"]
19859
- };
19860
-
19861
19855
  // src/mcp/index.ts
19862
19856
  var allBuiltinMcps = {
19863
19857
  websearch: websearchMcp,
19864
19858
  context7: context7Mcp,
19865
19859
  grep_app: grepAppMcp,
19866
19860
  pare_search: pareSearchMcp,
19867
- veil: veilMcp,
19868
- ast_grep: astGrepMcp
19861
+ veil: veilMcp
19869
19862
  };
19870
19863
  var createBuiltinMcps = (disabledMcps = []) => {
19871
19864
  const disabled = new Set(disabledMcps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hung319/opencode-hive",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Agent Hive - from vibe coding to hive coding",
6
6
  "license": "MIT WITH Commons-Clause",
@@ -44,7 +44,6 @@
44
44
  },
45
45
  "optionalDependencies": {
46
46
  "grep-mcp": "^1.1.0",
47
- "@notprolands/ast-grep-mcp": "^1.1.1",
48
47
  "@upstash/context7-mcp": "^2.1.0",
49
48
  "exa-mcp-server": "^3.1.5",
50
49
  "@sparkleideas/agent-booster": "^0.2.3",
@@ -1,7 +0,0 @@
1
- import type { LocalMcpConfig } from './types';
2
- /**
3
- * Ast-grep MCP for code analysis
4
- *
5
- * Uses @notprolands/ast-grep-mcp via npx for AST-based code search.
6
- */
7
- export declare const astGrepMcp: LocalMcpConfig;