opencode-matrixx 2.6.5 → 2.6.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.
Files changed (33) hide show
  1. package/dist/agents/oracle/behavioral-summary.d.ts +1 -1
  2. package/dist/agents/oracle/high-accuracy-mode.d.ts +1 -1
  3. package/dist/agents/oracle/interview-mode.d.ts +1 -1
  4. package/dist/agents/oracle/plan-generation.d.ts +1 -1
  5. package/dist/agents/oracle/plan-template.d.ts +1 -1
  6. package/dist/agents/oracle/system-prompt.d.ts +1 -1
  7. package/dist/cli.js +14 -6
  8. package/dist/config/schema/hooks.d.ts +1 -0
  9. package/dist/config/schema/matrixx-config.d.ts +1 -0
  10. package/dist/create-hooks.d.ts +1 -0
  11. package/dist/features/background-agent/handle-index.d.ts +63 -0
  12. package/dist/features/background-agent/handle-index.test.d.ts +1 -0
  13. package/dist/features/background-agent/index.d.ts +1 -0
  14. package/dist/features/background-agent/manager-handles.test.d.ts +1 -0
  15. package/dist/features/background-agent/manager.d.ts +12 -0
  16. package/dist/hooks/background-task-blocker/hook.d.ts +10 -0
  17. package/dist/hooks/background-task-blocker/index.d.ts +1 -0
  18. package/dist/hooks/index.d.ts +1 -0
  19. package/dist/index.js +278 -54
  20. package/dist/matrixx.schema.json +1 -0
  21. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
  22. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
  23. package/dist/shared/context-mode-prompt.d.ts +12 -0
  24. package/dist/shared/context-mode-prompt.test.d.ts +1 -0
  25. package/dist/shared/index.d.ts +1 -0
  26. package/dist/tools/background-task/constants.d.ts +0 -1
  27. package/dist/tools/background-task/index.d.ts +1 -1
  28. package/dist/tools/background-task/tools.d.ts +0 -1
  29. package/dist/tools/background-task/types.d.ts +0 -5
  30. package/dist/tools/delegate-task/sync-task.test.d.ts +1 -0
  31. package/dist/tools/delegate-task/timing.test.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/dist/tools/background-task/create-background-task.d.ts +0 -3
@@ -173,6 +173,7 @@
173
173
  "preemptive-compaction",
174
174
  "rules-injector",
175
175
  "background-notification",
176
+ "background-task-blocker",
176
177
  "auto-update-checker",
177
178
  "startup-toast",
178
179
  "keyword-detector",
@@ -13,6 +13,7 @@ export declare function createCoreHooks(args: {
13
13
  thinkingBlockValidator: ReturnType<typeof import("../../hooks").createThinkingBlockValidatorHook> | null;
14
14
  toolPairValidator: ReturnType<typeof import("../../hooks").createToolPairValidatorHook> | null;
15
15
  designIntentPreserver: ReturnType<typeof import("../../hooks").createDesignIntentPreserverHook> | null;
16
+ backgroundTaskBlocker: ReturnType<typeof import("../../hooks").createBackgroundTaskBlockerHook> | null;
16
17
  commentChecker: ReturnType<typeof import("../../hooks").createCommentCheckerHooks> | null;
17
18
  toolOutputTruncator: ReturnType<typeof import("../../hooks").createToolOutputTruncatorHook> | null;
18
19
  directoryAgentsInjector: ReturnType<typeof import("../../hooks").createDirectoryAgentsInjectorHook> | null;
@@ -1,7 +1,8 @@
1
1
  import type { HookName, MatrixxConfig } from "../../config";
2
- import { 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, 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
+ backgroundTaskBlocker: ReturnType<typeof createBackgroundTaskBlockerHook> | null;
5
6
  commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
6
7
  toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
7
8
  directoryAgentsInjector: ReturnType<typeof createDirectoryAgentsInjectorHook> | null;
@@ -0,0 +1,12 @@
1
+ export interface ContextModeToolGuidance {
2
+ searchGuidance: string;
3
+ readGuidance: string;
4
+ analysisGuidance: string;
5
+ }
6
+ /**
7
+ * Returns context-mode-aware tool guidance for subagent prompts.
8
+ * When `enforce` is true, raw grep/glob/read/bash-cat are blocked by the
9
+ * context-mode-enforcer hook, so guidance routes to ctx_* tools instead.
10
+ * When `enforce` is false, legacy tool guidance is preserved.
11
+ */
12
+ export declare function getContextModeToolGuidance(enforce: boolean): ContextModeToolGuidance;
@@ -0,0 +1 @@
1
+ export {};
@@ -4,6 +4,7 @@ export * from "./binary-downloader";
4
4
  export * from "./command-executor";
5
5
  export * from "./config-errors";
6
6
  export * from "./connected-providers-cache";
7
+ export * from "./context-mode-prompt";
7
8
  export * from "./data-path";
8
9
  export * from "./deep-merge";
9
10
  export * from "./delay";
@@ -1,3 +1,2 @@
1
- export declare const BACKGROUND_TASK_DESCRIPTION = "Run agent task in background. Returns task_id immediately; notifies on completion.\n\nUse `background_output` to get results. Prompts MUST be in English.";
2
1
  export declare const BACKGROUND_OUTPUT_DESCRIPTION = "Get output from background task. Use full_session=true to fetch session messages with filters. System notifies on completion, so block=true rarely needed.";
3
2
  export declare const BACKGROUND_CANCEL_DESCRIPTION = "Cancel running background task(s). Use all=true to cancel ALL before final answer.";
@@ -1,3 +1,3 @@
1
1
  export * from "./constants";
2
- export { createBackgroundCancel, createBackgroundOutput, createBackgroundTask, } from "./tools";
2
+ export { createBackgroundCancel, createBackgroundOutput, } from "./tools";
3
3
  export type * from "./types";
@@ -1,4 +1,3 @@
1
1
  export type { BackgroundCancelClient, BackgroundOutputClient, BackgroundOutputManager, BackgroundOutputMessage, BackgroundOutputMessagesResult, } from "./clients";
2
2
  export { createBackgroundCancel } from "./create-background-cancel";
3
3
  export { createBackgroundOutput } from "./create-background-output";
4
- export { createBackgroundTask } from "./create-background-task";
@@ -1,8 +1,3 @@
1
- export interface BackgroundTaskArgs {
2
- description: string;
3
- prompt: string;
4
- agent: string;
5
- }
6
1
  export interface BackgroundOutputArgs {
7
2
  task_id: string;
8
3
  block?: boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-matrixx",
3
- "version": "2.6.5",
3
+ "version": "2.6.6",
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,3 +0,0 @@
1
- import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- export declare function createBackgroundTask(manager: BackgroundManager, client: PluginInput["client"]): ToolDefinition;