@hung319/opencode-hive 1.5.1 → 1.5.6

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.
@@ -1,4 +1,2 @@
1
1
  import type { McpConfig } from './types';
2
- import { astGrepMcp } from './ast-grep';
3
2
  export declare const createBuiltinMcps: (disabledMcps?: string[]) => Record<string, McpConfig>;
4
- export { astGrepMcp as astGrepLocalMcp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hung319/opencode-hive",
3
- "version": "1.5.1",
3
+ "version": "1.5.6",
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",
@@ -28,7 +28,7 @@
28
28
  "scripts": {
29
29
  "clean": "rm -rf dist",
30
30
  "generate-skills": "bun run scripts/generate-skills.ts",
31
- "build": "npm run clean && npm run generate-skills && bun build src/index.ts --outdir dist --target node --format esm --packages=bundle && tsc --emitDeclarationOnly",
31
+ "build": "npm run clean && npm run generate-skills && bun build src/index.ts --outdir dist --target node --format esm --packages=bundle --external @ast-grep/napi && tsc --emitDeclarationOnly",
32
32
  "dev": "opencode plugin dev",
33
33
  "test": "bun test"
34
34
  },
@@ -36,6 +36,7 @@
36
36
  "@opencode-ai/plugin": ">=0.13.7"
37
37
  },
38
38
  "dependencies": {
39
+ "@ast-grep/napi": "^0.41.1",
39
40
  "simple-git": "^3.27.0"
40
41
  },
41
42
  "optionalDependencies": {
@@ -45,7 +46,6 @@
45
46
  "exa-mcp-server": "^3.1.5",
46
47
  "@sparkleideas/agent-booster": "^0.2.3",
47
48
  "@sparkleideas/memory": "^3.5.2",
48
- "@ast-grep/napi": "^0.41.1",
49
49
  "@paretools/search": "^0.15.0",
50
50
  "@ushiradineth/veil": "^0.4.1",
51
51
  "@butttons/dora": "^0.1.0",
@@ -1,80 +0,0 @@
1
- /**
2
- * Plugin Dependencies that can be auto-installed
3
- */
4
- interface ToolConfig {
5
- name: string;
6
- npmPackage: string;
7
- installCommand: string[];
8
- verifyCommand: string;
9
- description: string;
10
- required: boolean;
11
- }
12
- /**
13
- * Dependency Installer for plugin tools
14
- */
15
- export declare class DependencyInstaller {
16
- private installDir;
17
- private cache;
18
- private cacheTimeout;
19
- constructor(installDir?: string);
20
- /**
21
- * Get the bin directory for installed tools
22
- */
23
- getBinDir(): string;
24
- /**
25
- * Check if a command exists
26
- */
27
- commandExists(cmd: string): boolean;
28
- /**
29
- * Verify a tool is installed and working
30
- */
31
- verifyTool(config: ToolConfig): boolean;
32
- /**
33
- * Install a single tool
34
- */
35
- install(config: ToolConfig): Promise<{
36
- success: boolean;
37
- output?: string;
38
- error?: string;
39
- }>;
40
- /**
41
- * Check if a tool is installed (with caching)
42
- */
43
- isInstalled(toolName: string): boolean;
44
- /**
45
- * Get status of all tools
46
- */
47
- getStatus(): Array<{
48
- name: string;
49
- installed: boolean;
50
- description: string;
51
- required: boolean;
52
- }>;
53
- /**
54
- * Ensure all required tools are installed
55
- */
56
- ensureRequired(): Promise<{
57
- installed: string[];
58
- missing: string[];
59
- errors: Record<string, string>;
60
- }>;
61
- /**
62
- * Install all optional tools (for full functionality)
63
- */
64
- installAll(): Promise<{
65
- success: string[];
66
- failed: Record<string, string>;
67
- }>;
68
- /**
69
- * Install specific tool by name
70
- */
71
- installTool(toolName: string): Promise<{
72
- success: boolean;
73
- output?: string;
74
- error?: string;
75
- }>;
76
- }
77
- export declare const dependencyInstaller: DependencyInstaller;
78
- export declare function ensurePluginDeps(): Promise<void>;
79
- export declare function getInstalledTools(): string[];
80
- export {};