opencode-matrixx 2.6.9 → 2.6.10

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.
@@ -220,6 +220,7 @@
220
220
  "evolution-hitl",
221
221
  "context-mode-enforcer",
222
222
  "task-edit-guard",
223
+ "document-reader-guard",
223
224
  "failure-counter"
224
225
  ]
225
226
  },
@@ -2,7 +2,6 @@ import { z } from "zod";
2
2
  export declare const McpNameSchema: z.ZodEnum<{
3
3
  websearch: "websearch";
4
4
  context7: "context7";
5
- white_rabbit: "white_rabbit";
6
5
  document_reader: "document_reader";
7
6
  }>;
8
7
  export type McpName = z.infer<typeof McpNameSchema>;
@@ -33,6 +33,7 @@ export declare function createCoreHooks(args: {
33
33
  qualityGate: ReturnType<typeof import("../../hooks").createQualityGateHook> | null;
34
34
  taskNotepad: ReturnType<typeof import("../../hooks").createTaskNotepadHook> | null;
35
35
  taskEditGuard: ReturnType<typeof import("../../hooks").createTaskEditGuardHook> | null;
36
+ documentReaderGuard: ReturnType<typeof import("../../hooks").createDocumentReaderGuardHook> | null;
36
37
  evolutionWatcher: ReturnType<typeof import("../../hooks").createEvolutionWatcherHook> | null;
37
38
  contextWindowMonitor: ReturnType<typeof import("../../hooks").createContextWindowMonitorHook> | null;
38
39
  preemptiveCompaction: ReturnType<typeof import("../../hooks").createPreemptiveCompactionHook> | null;
@@ -1,5 +1,5 @@
1
1
  import type { HookName, MatrixxConfig } from "../../config";
2
- import { createBackgroundTaskBlockerHook, createBashFileReadGuardHook, createCommentCheckerHooks, createContextModeEnforcerHook, createDirectoryAgentsInjectorHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskEditGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
2
+ import { createBackgroundTaskBlockerHook, createBashFileReadGuardHook, createCommentCheckerHooks, createContextModeEnforcerHook, createDirectoryAgentsInjectorHook, createDocumentReaderGuardHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskEditGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
3
3
  import type { PluginContext } from "../types";
4
4
  export type ToolGuardHooks = {
5
5
  backgroundTaskBlocker: ReturnType<typeof createBackgroundTaskBlockerHook> | null;
@@ -22,6 +22,7 @@ export type ToolGuardHooks = {
22
22
  qualityGate: ReturnType<typeof createQualityGateHook> | null;
23
23
  taskNotepad: ReturnType<typeof createTaskNotepadHook> | null;
24
24
  taskEditGuard: ReturnType<typeof createTaskEditGuardHook> | null;
25
+ documentReaderGuard: ReturnType<typeof createDocumentReaderGuardHook> | null;
25
26
  evolutionWatcher: ReturnType<typeof createEvolutionWatcherHook> | null;
26
27
  };
27
28
  export declare function createToolGuardHooks(args: {
@@ -0,0 +1,7 @@
1
+ import type { GithubSearchResult } from "./types";
2
+ export declare function githubSearch(opts: {
3
+ query: string;
4
+ repo?: string;
5
+ language?: string;
6
+ limit?: number;
7
+ }): Promise<GithubSearchResult>;
@@ -0,0 +1,6 @@
1
+ export declare const DEFAULT_TIMEOUT_MS = 60000;
2
+ export declare const DEFAULT_MAX_OUTPUT_CHARS = 20000;
3
+ export declare const DEFAULT_LIMIT = 10;
4
+ export declare const MAX_LIMIT = 30;
5
+ export declare const CLONE_DEPTH = 1;
6
+ export declare const TMP_PREFIX = "matrixx-gh-";
@@ -0,0 +1 @@
1
+ export { createGithubSearchTools } from "./tools";
@@ -0,0 +1,2 @@
1
+ import type { GithubSearchResult } from "./types";
2
+ export declare function formatGithubSearchResult(result: GithubSearchResult): string;
@@ -0,0 +1,3 @@
1
+ import type { PluginInput } from "@opencode-ai/plugin";
2
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
3
+ export declare function createGithubSearchTools(_ctx: PluginInput): Record<string, ToolDefinition>;
@@ -0,0 +1,20 @@
1
+ export interface GithubSearchHit {
2
+ repo: string;
3
+ path: string;
4
+ sha?: string;
5
+ line?: number;
6
+ text?: string;
7
+ url?: string;
8
+ }
9
+ export interface GithubSearchResult {
10
+ hits: GithubSearchHit[];
11
+ truncated: boolean;
12
+ mode: "code-search" | "clone-search";
13
+ error?: string;
14
+ }
15
+ export interface GithubSearchOptions {
16
+ query: string;
17
+ repo?: string;
18
+ language?: string;
19
+ limit?: number;
20
+ }
@@ -4,6 +4,7 @@ export { createBddCreateContractTool } from "./bdd-create-contract";
4
4
  export { createBddParseGherkinTool } from "./bdd-parse-gherkin";
5
5
  export { createBddPipelineTool } from "./bdd-pipeline";
6
6
  export { createBddValidateContractTool } from "./bdd-validate-contract";
7
+ export { createGithubSearchTools } from "./github-search";
7
8
  export { createGlobTools } from "./glob";
8
9
  export { createGrepTools } from "./grep";
9
10
  export { createHandoffTools } from "./handoff";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-matrixx",
3
- "version": "2.6.9",
3
+ "version": "2.6.10",
4
4
  "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +0,0 @@
1
- export declare const white_rabbit: {
2
- type: "remote";
3
- url: string;
4
- enabled: boolean;
5
- oauth: false;
6
- };