@hung319/opencode-hive 1.3.4 → 1.3.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.
@@ -0,0 +1,48 @@
1
+ import type { ConfigService } from 'hive-core';
2
+ /**
3
+ * Todo Enforcer Hook
4
+ *
5
+ * Enforces task completion - when agent goes idle, the system yanks it back to work.
6
+ * Based on oh-my-openagent's todo-continuation-enforcer hook.
7
+ */
8
+ export interface TodoEnforcerOptions {
9
+ enabled?: boolean;
10
+ idleThresholdMs?: number;
11
+ }
12
+ export declare function createTodoEnforcerHook(configService: ConfigService, options?: TodoEnforcerOptions): {
13
+ name: string;
14
+ handler: (input: unknown, output: {
15
+ context: string[];
16
+ }) => void;
17
+ };
18
+ /**
19
+ * Hash-Anchored Edit Hook
20
+ *
21
+ * Enhances edit operations with hash-anchored line markers for robust editing.
22
+ * Based on oh-my-openagent's hashline-edit-diff-enhancer hook.
23
+ */
24
+ export interface HashlineEditOptions {
25
+ enabled?: boolean;
26
+ }
27
+ export declare function createHashlineEditHook(options?: HashlineEditOptions): {
28
+ name: string;
29
+ handler: (input: unknown, output: {
30
+ edit: string;
31
+ }) => void;
32
+ };
33
+ /**
34
+ * Comment Checker Hook
35
+ *
36
+ * Reminds agents to reduce excessive comments. Smartly ignores BDD, directives, docstrings.
37
+ * Based on oh-my-openagent's comment-checker hook.
38
+ */
39
+ export interface CommentCheckerOptions {
40
+ enabled?: boolean;
41
+ maxCommentLines?: number;
42
+ }
43
+ export declare function createCommentCheckerHook(options?: CommentCheckerOptions): {
44
+ name: string;
45
+ handler: (input: unknown, output: {
46
+ context: string[];
47
+ }) => void;
48
+ };
package/dist/index.js CHANGED
@@ -16498,10 +16498,9 @@ var grepAppMcp = {
16498
16498
  };
16499
16499
 
16500
16500
  // src/mcp/ast-grep.ts
16501
- var astGrepRemoteMcp = {
16502
- type: "remote",
16503
- url: "https://mcp.ast-grep.dev/mcp",
16504
- oauth: false
16501
+ var astGrepMcp = {
16502
+ type: "local",
16503
+ command: ["npx", "-y", "@notprolands/ast-grep-mcp"]
16505
16504
  };
16506
16505
 
16507
16506
  // src/mcp/index.ts
@@ -16509,7 +16508,7 @@ var allBuiltinMcps = {
16509
16508
  websearch: websearchMcp,
16510
16509
  context7: context7Mcp,
16511
16510
  grep_app: grepAppMcp,
16512
- ast_grep: astGrepRemoteMcp
16511
+ ast_grep: astGrepMcp
16513
16512
  };
16514
16513
  var createBuiltinMcps = (disabledMcps = []) => {
16515
16514
  const disabled = new Set(disabledMcps);
@@ -1,9 +1,7 @@
1
- import type { RemoteMcpConfig, LocalMcpConfig } from './types';
1
+ import type { LocalMcpConfig } from './types';
2
2
  /**
3
3
  * Ast-grep MCP for code analysis
4
4
  *
5
- * Prefers remote MCP when available, falls back to local npx
6
- * Remote is preferred to avoid local installation
5
+ * Uses local npx execution (remote endpoint mcp.ast-grep.dev is unavailable)
7
6
  */
8
- export declare const astGrepRemoteMcp: RemoteMcpConfig;
9
7
  export declare const astGrepMcp: LocalMcpConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hung319/opencode-hive",
3
- "version": "1.3.4",
3
+ "version": "1.3.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",