opencode-matrixx 2.6.7 → 2.6.8

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 (28) hide show
  1. package/dist/agents/seraph.d.ts +1 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/config/schema/dcp.d.ts +1 -1
  4. package/dist/features/background-agent/constants.d.ts +2 -2
  5. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
  6. package/dist/features/context-injector/collector.d.ts +2 -0
  7. package/dist/features/context-injector/index.d.ts +1 -1
  8. package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -0
  9. package/dist/hooks/compaction-context-injector/hook.d.ts +1 -0
  10. package/dist/hooks/task-continuation-enforcer/constants.d.ts +4 -0
  11. package/dist/index.js +306 -603
  12. package/dist/matrixx.schema.json +1 -1
  13. package/dist/shared/poll-timeout-outcome.d.ts +21 -0
  14. package/dist/tools/dcp-switch-profile/tools.d.ts +6 -0
  15. package/dist/tools/delegate-task/constants.d.ts +1 -0
  16. package/dist/tools/delegate-task/poll-timeout-outcome.test.d.ts +1 -0
  17. package/dist/tools/index.d.ts +0 -1
  18. package/package.json +1 -1
  19. package/dist/tools/delegate-agent/background-executor.d.ts +0 -13
  20. package/dist/tools/delegate-agent/completion-poller.d.ts +0 -11
  21. package/dist/tools/delegate-agent/constants.d.ts +0 -2
  22. package/dist/tools/delegate-agent/index.d.ts +0 -3
  23. package/dist/tools/delegate-agent/message-dir.d.ts +0 -1
  24. package/dist/tools/delegate-agent/message-processor.d.ts +0 -2
  25. package/dist/tools/delegate-agent/session-creator.d.ts +0 -15
  26. package/dist/tools/delegate-agent/sync-executor.d.ts +0 -21
  27. package/dist/tools/delegate-agent/tools.d.ts +0 -3
  28. package/dist/tools/delegate-agent/types.d.ts +0 -19
@@ -4067,7 +4067,7 @@
4067
4067
  "brutal": {
4068
4068
  "pruneNotification": "off",
4069
4069
  "compress": {
4070
- "maxContextLimit": "15%",
4070
+ "maxContextLimit": "20%",
4071
4071
  "minContextLimit": "10%",
4072
4072
  "nudgeFrequency": 1,
4073
4073
  "nudgeForce": "strong",
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Poll-timeout outcome helper shared by the sync session poller.
3
+ *
4
+ * When `pollSyncSession` exhausts `maxPollTimeMs` without observing
5
+ * completion, the session is still running server-side. This helper turns
6
+ * that state into a machine-readable, non-throwing outcome string.
7
+ *
8
+ * Mirrors the shape of `src/shared/saturated-outcome.ts`
9
+ * (`formatSaturatedOutcome`): human-readable block plus a trailing
10
+ * `<task_metadata>{JSON}</task_metadata>` line for programmatic parsing.
11
+ */
12
+ export declare const POLL_TIMEOUT_PREFIX = "Poll timeout reached";
13
+ export declare const LAST_ASSISTANT_TEXT_CAP = 2000;
14
+ export interface PollTimeoutOutcomeArgs {
15
+ sessionID: string;
16
+ agentToUse: string;
17
+ maxPollTimeMs: number;
18
+ lastAssistantText?: string;
19
+ }
20
+ export declare function formatPollTimeoutOutcome(args: PollTimeoutOutcomeArgs): string;
21
+ export declare function isPollTimeoutOutcome(text: string): boolean;
@@ -6,4 +6,10 @@ export interface DcpSwitchProfileOptions {
6
6
  };
7
7
  }
8
8
  export declare function deepMergeProfile(builtin: Record<string, unknown>, override: Record<string, unknown>): Record<string, unknown>;
9
+ /**
10
+ * Switch the active DCP profile.
11
+ * Reads profile parameters from the Matrixx plugin configuration and writes
12
+ * a full inline DCP config to ~/.config/opencode/dcp.jsonc.
13
+ */
14
+ export declare function switchProfile(profile: string, options?: DcpSwitchProfileOptions): string;
9
15
  export declare function createDcpSwitchProfileTool(options?: DcpSwitchProfileOptions): Record<string, ToolDefinition>;
@@ -3,6 +3,7 @@ import type { CategoryConfig } from "../../config/schema";
3
3
  export declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
4
4
  export declare const CATEGORY_PROMPT_APPENDS: Record<string, string>;
5
5
  export declare const CATEGORY_DESCRIPTIONS: Record<string, string>;
6
+ export declare const SHORT_CATEGORY_HINTS: Record<string, string>;
6
7
  export declare function buildPlanAgentSystemPrepend(categories?: AvailableCategory[], skills?: AvailableSkill[]): string;
7
8
  /**
8
9
  * List of agent names that should be treated as plan agents (receive plan system prompt).
@@ -25,7 +25,6 @@ import type { BackgroundManager } from "../features/background-agent";
25
25
  type OpencodeClient = PluginInput["client"];
26
26
  export { createAssemblyTool } from "./assembly";
27
27
  export { createDcpSwitchProfileTool } from "./dcp-switch-profile";
28
- export { createDelegateAgent } from "./delegate-agent";
29
28
  export { createDelegateTask } from "./delegate-task";
30
29
  export { createHashlineEditTool } from "./hashline-edit";
31
30
  export { createLookAt } from "./look-at";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-matrixx",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
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,13 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- import type { DelegateAgentArgs } from "./types";
4
- export declare function executeBackground(args: DelegateAgentArgs, toolContext: {
5
- sessionID: string;
6
- messageID: string;
7
- agent: string;
8
- abort: AbortSignal;
9
- metadata?: (input: {
10
- title?: string;
11
- metadata?: Record<string, unknown>;
12
- }) => void;
13
- }, manager: BackgroundManager, client: PluginInput["client"]): Promise<string>;
@@ -1,11 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- export declare function waitForCompletion(sessionID: string, toolContext: {
3
- sessionID: string;
4
- messageID: string;
5
- agent: string;
6
- abort: AbortSignal;
7
- metadata?: (input: {
8
- title?: string;
9
- metadata?: Record<string, unknown>;
10
- }) => void;
11
- }, ctx: PluginInput): Promise<void>;
@@ -1,2 +0,0 @@
1
- export declare const ALLOWED_AGENTS: readonly ["trinity", "operator", "oracle", "construct"];
2
- export declare const CALL_DELEGATE_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nAvailable: {agents}\n\nPass `session_id=<id>` to continue previous agent with full context. Prompts MUST be in English. Use `background_output` for async results.";
@@ -1,3 +0,0 @@
1
- export * from "./constants";
2
- export { createDelegateAgent } from "./tools";
3
- export * from "./types";
@@ -1 +0,0 @@
1
- export { getMessageDir } from "../../shared/opencode-message-dir";
@@ -1,2 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- export declare function processMessages(sessionID: string, ctx: PluginInput): Promise<string>;
@@ -1,15 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { DelegateAgentArgs } from "./types";
3
- export declare function createOrGetSession(args: DelegateAgentArgs, toolContext: {
4
- sessionID: string;
5
- messageID: string;
6
- agent: string;
7
- abort: AbortSignal;
8
- metadata?: (input: {
9
- title?: string;
10
- metadata?: Record<string, unknown>;
11
- }) => void;
12
- }, ctx: PluginInput): Promise<{
13
- sessionID: string;
14
- isNew: boolean;
15
- }>;
@@ -1,21 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import { waitForCompletion } from "./completion-poller";
3
- import { processMessages } from "./message-processor";
4
- import { createOrGetSession } from "./session-creator";
5
- import type { DelegateAgentArgs } from "./types";
6
- type ExecuteSyncDeps = {
7
- createOrGetSession: typeof createOrGetSession;
8
- waitForCompletion: typeof waitForCompletion;
9
- processMessages: typeof processMessages;
10
- };
11
- export declare function executeSync(args: DelegateAgentArgs, toolContext: {
12
- sessionID: string;
13
- messageID: string;
14
- agent: string;
15
- abort: AbortSignal;
16
- metadata?: (input: {
17
- title?: string;
18
- metadata?: Record<string, unknown>;
19
- }) => void;
20
- }, ctx: PluginInput, deps?: ExecuteSyncDeps): Promise<string>;
21
- export {};
@@ -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 createDelegateAgent(ctx: PluginInput, backgroundManager: BackgroundManager, disabledAgents?: string[]): ToolDefinition;
@@ -1,19 +0,0 @@
1
- import type { ALLOWED_AGENTS } from "./constants";
2
- export type AllowedAgentType = (typeof ALLOWED_AGENTS)[number];
3
- export interface DelegateAgentArgs {
4
- description: string;
5
- prompt: string;
6
- subagent_type: string;
7
- run_in_background: boolean;
8
- session_id?: string;
9
- }
10
- export type ToolContextWithMetadata = {
11
- sessionID: string;
12
- messageID: string;
13
- agent: string;
14
- abort: AbortSignal;
15
- metadata?: (input: {
16
- title?: string;
17
- metadata?: Record<string, unknown>;
18
- }) => void;
19
- };