opencode-matrixx 2.2.0 → 2.4.0

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 (141) hide show
  1. package/README.md +97 -25
  2. package/dist/agents/bdd-contract.d.ts +7 -0
  3. package/dist/agents/builtin-agents/architect-agent.d.ts +1 -0
  4. package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
  5. package/dist/agents/builtin-agents/{hephaestus-agent.d.ts → keymaker-agent.d.ts} +2 -0
  6. package/dist/agents/builtin-agents/model-resolution.d.ts +1 -0
  7. package/dist/agents/builtin-agents/morpheus-agent.d.ts +2 -0
  8. package/dist/agents/builtin-agents.d.ts +1 -1
  9. package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -1
  10. package/dist/agents/env-context.d.ts +1 -1
  11. package/dist/agents/mouse/agent.d.ts +5 -2
  12. package/dist/agents/mouse/deepseek.d.ts +16 -0
  13. package/dist/agents/mouse/index.d.ts +3 -0
  14. package/dist/agents/mouse/mimo.d.ts +15 -0
  15. package/dist/agents/mouse/qwen.d.ts +16 -0
  16. package/dist/agents/mouse/shared.d.ts +7 -0
  17. package/dist/agents/types.d.ts +4 -1
  18. package/dist/config/index.d.ts +1 -2
  19. package/dist/config/presets.d.ts +4 -0
  20. package/dist/config/resolve-tiers.d.ts +32 -0
  21. package/dist/config/schema/agent-names.d.ts +6 -0
  22. package/dist/config/schema/agent-overrides.d.ts +133 -0
  23. package/dist/config/schema/categories.d.ts +16 -0
  24. package/dist/config/schema/commands.d.ts +6 -0
  25. package/dist/config/schema/dcp.d.ts +16 -0
  26. package/dist/config/schema/hooks.d.ts +3 -0
  27. package/dist/config/schema/matrixx-config.d.ts +159 -18
  28. package/dist/config/schema/rtk.d.ts +7 -0
  29. package/dist/config/schema.d.ts +4 -1
  30. package/dist/create-hooks.d.ts +3 -0
  31. package/dist/features/bdd/schema.d.ts +434 -0
  32. package/dist/features/bdd/types.d.ts +2 -0
  33. package/dist/features/builtin-commands/templates/bdd-backend.d.ts +1 -0
  34. package/dist/features/builtin-commands/templates/bdd-contract.d.ts +1 -0
  35. package/dist/features/builtin-commands/templates/bdd-frontend.d.ts +1 -0
  36. package/dist/features/builtin-commands/templates/bdd-pipeline.d.ts +1 -0
  37. package/dist/features/builtin-commands/templates/bdd-tests.d.ts +1 -0
  38. package/dist/features/builtin-commands/templates/dcp-profile.d.ts +1 -0
  39. package/dist/features/builtin-commands/types.d.ts +2 -2
  40. package/dist/features/builtin-skills/lazy-skill-helper.d.ts +17 -0
  41. package/dist/features/builtin-skills/skills/bdd-backend.d.ts +3 -0
  42. package/dist/features/builtin-skills/skills/bdd-contract.d.ts +3 -0
  43. package/dist/features/builtin-skills/skills/bdd-frontend.d.ts +3 -0
  44. package/dist/features/builtin-skills/skills/bdd-tests.d.ts +3 -0
  45. package/dist/features/builtin-skills/skills/docker-master.d.ts +2 -0
  46. package/dist/features/builtin-skills/skills/index.d.ts +5 -0
  47. package/dist/features/{claude-code-command-loader → command-loader}/loader.d.ts +0 -2
  48. package/dist/features/mission-state/constants.d.ts +10 -0
  49. package/dist/features/mission-state/index.d.ts +2 -0
  50. package/dist/features/mission-state/plan-storage.d.ts +48 -0
  51. package/dist/features/mission-state/rehydrate.d.ts +21 -0
  52. package/dist/features/mission-state/types.d.ts +46 -0
  53. package/dist/features/opencode-skill-loader/loader.d.ts +1 -3
  54. package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +1 -1
  55. package/dist/features/opencode-skill-loader/types.d.ts +1 -1
  56. package/dist/features/skill-mcp-manager/connection-type.d.ts +2 -3
  57. package/dist/features/skill-mcp-manager/connection.d.ts +3 -4
  58. package/dist/features/skill-mcp-manager/manager.d.ts +2 -3
  59. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +3 -3
  60. package/dist/features/skill-mcp-manager/types.d.ts +16 -4
  61. package/dist/hooks/env-context-injector/index.d.ts +23 -0
  62. package/dist/hooks/index.d.ts +3 -0
  63. package/dist/hooks/plan-persister/hook.d.ts +20 -0
  64. package/dist/hooks/plan-persister/index.d.ts +2 -0
  65. package/dist/hooks/rtk-bash-rewriter/constants.d.ts +3 -0
  66. package/dist/hooks/rtk-bash-rewriter/hook.d.ts +12 -0
  67. package/dist/hooks/rtk-bash-rewriter/hook.test.d.ts +1 -0
  68. package/dist/hooks/rtk-bash-rewriter/index.d.ts +1 -0
  69. package/dist/hooks/rtk-bash-rewriter/types.d.ts +11 -0
  70. package/dist/index.js +44995 -28387
  71. package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
  72. package/dist/plugin/hooks/create-core-hooks.d.ts +2 -0
  73. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
  74. package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
  75. package/dist/plugin-config.d.ts +1 -1
  76. package/dist/plugin-handlers/agent-config-handler.d.ts +2 -0
  77. package/dist/plugin-handlers/plugin-components-loader.d.ts +1 -1
  78. package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -0
  79. package/dist/shared/index.d.ts +1 -1
  80. package/dist/shared/merge-categories.d.ts +4 -0
  81. package/dist/shared/model-resolution-types.d.ts +3 -0
  82. package/dist/shared/model-tiers.d.ts +31 -0
  83. package/dist/shared/tier-resolver.d.ts +26 -0
  84. package/dist/tools/bdd-create-contract/constants.d.ts +1 -0
  85. package/dist/tools/bdd-create-contract/index.d.ts +3 -0
  86. package/dist/tools/bdd-create-contract/tools.d.ts +3 -0
  87. package/dist/tools/bdd-create-contract/types.d.ts +12 -0
  88. package/dist/tools/bdd-parse-gherkin/constants.d.ts +1 -0
  89. package/dist/tools/bdd-parse-gherkin/index.d.ts +3 -0
  90. package/dist/tools/bdd-parse-gherkin/tools.d.ts +5 -0
  91. package/dist/tools/bdd-parse-gherkin/types.d.ts +9 -0
  92. package/dist/tools/bdd-pipeline/analysis-report-sections.d.ts +10 -0
  93. package/dist/tools/bdd-pipeline/analysis-report.d.ts +9 -0
  94. package/dist/tools/bdd-pipeline/constants.d.ts +4 -0
  95. package/dist/tools/bdd-pipeline/feature-resolver.d.ts +5 -0
  96. package/dist/tools/bdd-pipeline/index.d.ts +3 -0
  97. package/dist/tools/bdd-pipeline/pipeline-runner.d.ts +6 -0
  98. package/dist/tools/bdd-pipeline/subagent-runner.d.ts +14 -0
  99. package/dist/tools/bdd-pipeline/tools.d.ts +5 -0
  100. package/dist/tools/bdd-pipeline/types.d.ts +74 -0
  101. package/dist/tools/bdd-validate-contract/index.d.ts +1 -0
  102. package/dist/tools/bdd-validate-contract/tools.d.ts +21 -0
  103. package/dist/tools/delegate-task/categories.d.ts +7 -0
  104. package/dist/tools/delegate-task/category-resolver.d.ts +6 -0
  105. package/dist/tools/delegate-task/complexity-constants.d.ts +24 -0
  106. package/dist/tools/delegate-task/complexity-scorer.d.ts +31 -0
  107. package/dist/tools/delegate-task/complexity-types.d.ts +10 -0
  108. package/dist/tools/delegate-task/executor-types.d.ts +1 -0
  109. package/dist/tools/delegate-task/index.d.ts +3 -0
  110. package/dist/tools/delegate-task/types.d.ts +8 -0
  111. package/dist/tools/index.d.ts +4 -0
  112. package/dist/tools/task/todo-sync.d.ts +1 -1
  113. package/package.json +19 -4
  114. package/dist/agents/builtin-agents/environment-context.d.ts +0 -2
  115. package/dist/config/profiles.d.ts +0 -4
  116. package/dist/config/schema/claude-code.d.ts +0 -10
  117. package/dist/features/claude-code-mcp-loader/index.d.ts +0 -10
  118. package/dist/features/claude-code-mcp-loader/loader.d.ts +0 -3
  119. package/dist/features/claude-code-mcp-loader/transformer.d.ts +0 -2
  120. package/dist/features/claude-code-mcp-loader/types.d.ts +0 -39
  121. package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +0 -3
  122. package/dist/features/claude-code-plugin-loader/command-loader.d.ts +0 -3
  123. package/dist/features/claude-code-plugin-loader/discovery.d.ts +0 -2
  124. package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +0 -2
  125. package/dist/features/claude-code-plugin-loader/index.d.ts +0 -10
  126. package/dist/features/claude-code-plugin-loader/loader.d.ts +0 -20
  127. package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +0 -3
  128. package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
  129. package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +0 -3
  130. package/dist/features/claude-code-plugin-loader/types.d.ts +0 -187
  131. package/dist/shared/claude-config-dir.d.ts +0 -1
  132. /package/dist/features/{claude-code-agent-loader → agent-loader}/index.d.ts +0 -0
  133. /package/dist/features/{claude-code-agent-loader → agent-loader}/loader.d.ts +0 -0
  134. /package/dist/features/{claude-code-agent-loader → agent-loader}/types.d.ts +0 -0
  135. /package/dist/features/{claude-code-command-loader → command-loader}/index.d.ts +0 -0
  136. /package/dist/features/{claude-code-command-loader → command-loader}/types.d.ts +0 -0
  137. /package/dist/features/{claude-code-session-state → session-state}/index.d.ts +0 -0
  138. /package/dist/features/{claude-code-session-state → session-state}/state.d.ts +0 -0
  139. /package/dist/features/{claude-code-mcp-loader → skill-mcp-manager}/env-expander.d.ts +0 -0
  140. /package/dist/features/{claude-tasks → task-storage}/storage.d.ts +0 -0
  141. /package/dist/features/{claude-tasks → task-storage}/types.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- import type { AgentConfig } from "@opencode-ai/sdk";
2
- export declare function applyEnvironmentContext(config: AgentConfig, directory?: string): AgentConfig;
@@ -1,4 +0,0 @@
1
- import type { MatrixxConfig } from "./schema/matrixx-config";
2
- export declare const PROFILE_NAMES: readonly ["free", "budget", "economy", "balanced", "performance", "go", "xiaomi-ultimate", "go-ultimate", "go-trio", "go-duo"];
3
- export type ProfileName = (typeof PROFILE_NAMES)[number];
4
- export declare function expandProfile(profile: ProfileName): Partial<MatrixxConfig>;
@@ -1,10 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ClaudeCodeConfigSchema: z.ZodObject<{
3
- mcp: z.ZodOptional<z.ZodBoolean>;
4
- commands: z.ZodOptional<z.ZodBoolean>;
5
- skills: z.ZodOptional<z.ZodBoolean>;
6
- agents: z.ZodOptional<z.ZodBoolean>;
7
- plugins: z.ZodOptional<z.ZodBoolean>;
8
- plugins_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
9
- }, z.core.$strip>;
10
- export type ClaudeCodeConfig = z.infer<typeof ClaudeCodeConfigSchema>;
@@ -1,10 +0,0 @@
1
- /**
2
- * MCP Configuration Loader
3
- *
4
- * Loads Claude Code .mcp.json format configurations from multiple scopes
5
- * and transforms them to OpenCode SDK format
6
- */
7
- export * from "./env-expander";
8
- export * from "./loader";
9
- export * from "./transformer";
10
- export * from "./types";
@@ -1,3 +0,0 @@
1
- import type { McpLoadResult } from "./types";
2
- export declare function getSystemMcpServerNames(): Set<string>;
3
- export declare function loadMcpConfigs(disabledMcps?: string[]): Promise<McpLoadResult>;
@@ -1,2 +0,0 @@
1
- import type { ClaudeCodeMcpServer, McpServerConfig } from "./types";
2
- export declare function transformMcpServer(name: string, server: ClaudeCodeMcpServer): McpServerConfig;
@@ -1,39 +0,0 @@
1
- export type McpScope = "user" | "project" | "local";
2
- export interface ClaudeCodeMcpServer {
3
- type?: "http" | "sse" | "stdio";
4
- url?: string;
5
- command?: string;
6
- args?: string[];
7
- env?: Record<string, string>;
8
- headers?: Record<string, string>;
9
- oauth?: {
10
- clientId?: string;
11
- scopes?: string[];
12
- };
13
- disabled?: boolean;
14
- }
15
- export interface ClaudeCodeMcpConfig {
16
- mcpServers?: Record<string, ClaudeCodeMcpServer>;
17
- }
18
- export interface McpLocalConfig {
19
- type: "local";
20
- command: string[];
21
- environment?: Record<string, string>;
22
- enabled?: boolean;
23
- }
24
- export interface McpRemoteConfig {
25
- type: "remote";
26
- url: string;
27
- headers?: Record<string, string>;
28
- enabled?: boolean;
29
- }
30
- export type McpServerConfig = McpLocalConfig | McpRemoteConfig;
31
- export interface LoadedMcpServer {
32
- name: string;
33
- scope: McpScope;
34
- config: McpServerConfig;
35
- }
36
- export interface McpLoadResult {
37
- servers: Record<string, McpServerConfig>;
38
- loadedServers: LoadedMcpServer[];
39
- }
@@ -1,3 +0,0 @@
1
- import type { AgentConfig } from "@opencode-ai/sdk";
2
- import type { LoadedPlugin } from "./types";
3
- export declare function loadPluginAgents(plugins: LoadedPlugin[]): Record<string, AgentConfig>;
@@ -1,3 +0,0 @@
1
- import type { CommandDefinition } from "../claude-code-command-loader/types";
2
- import type { LoadedPlugin } from "./types";
3
- export declare function loadPluginCommands(plugins: LoadedPlugin[]): Record<string, CommandDefinition>;
@@ -1,2 +0,0 @@
1
- import type { PluginLoaderOptions, PluginLoadResult } from "./types";
2
- export declare function discoverInstalledPlugins(options?: PluginLoaderOptions): PluginLoadResult;
@@ -1,2 +0,0 @@
1
- import type { HooksConfig, LoadedPlugin } from "./types";
2
- export declare function loadPluginHooksConfigs(plugins: LoadedPlugin[]): HooksConfig[];
@@ -1,10 +0,0 @@
1
- export * from "./agent-loader";
2
- export * from "./command-loader";
3
- export * from "./discovery";
4
- export * from "./hook-loader";
5
- export * from "./loader";
6
- export * from "./mcp-server-loader";
7
- export * from "./plugin-path-resolver";
8
- export * from "./skill-loader";
9
- export type { ClaudeSettings, PluginLoaderOptions } from "./types";
10
- export * from "./types";
@@ -1,20 +0,0 @@
1
- import type { AgentConfig } from "@opencode-ai/sdk";
2
- import type { CommandDefinition } from "../claude-code-command-loader/types";
3
- import type { McpServerConfig } from "../claude-code-mcp-loader/types";
4
- import type { HooksConfig, LoadedPlugin, PluginLoadError, PluginLoaderOptions } from "./types";
5
- export { loadPluginAgents } from "./agent-loader";
6
- export { loadPluginCommands } from "./command-loader";
7
- export { discoverInstalledPlugins } from "./discovery";
8
- export { loadPluginHooksConfigs } from "./hook-loader";
9
- export { loadPluginMcpServers } from "./mcp-server-loader";
10
- export { loadPluginSkillsAsCommands } from "./skill-loader";
11
- interface PluginComponentsResult {
12
- commands: Record<string, CommandDefinition>;
13
- skills: Record<string, CommandDefinition>;
14
- agents: Record<string, AgentConfig>;
15
- mcpServers: Record<string, McpServerConfig>;
16
- hooksConfigs: HooksConfig[];
17
- plugins: LoadedPlugin[];
18
- errors: PluginLoadError[];
19
- }
20
- export declare function loadAllPluginComponents(options?: PluginLoaderOptions): Promise<PluginComponentsResult>;
@@ -1,3 +0,0 @@
1
- import type { McpServerConfig } from "../claude-code-mcp-loader/types";
2
- import type { LoadedPlugin } from "./types";
3
- export declare function loadPluginMcpServers(plugins: LoadedPlugin[]): Promise<Record<string, McpServerConfig>>;
@@ -1 +0,0 @@
1
- export declare function resolvePluginPaths<T>(obj: T, pluginRoot: string): T;
@@ -1,3 +0,0 @@
1
- import type { CommandDefinition } from "../claude-code-command-loader/types";
2
- import type { LoadedPlugin } from "./types";
3
- export declare function loadPluginSkillsAsCommands(plugins: LoadedPlugin[]): Record<string, CommandDefinition>;
@@ -1,187 +0,0 @@
1
- /**
2
- * Claude Code Plugin Types
3
- *
4
- * Type definitions for Claude Code plugin system compatibility.
5
- * Based on https://code.claude.com/docs/en/plugins-reference
6
- */
7
- export type PluginScope = "user" | "project" | "local" | "managed";
8
- /**
9
- * Plugin installation entry in installed_plugins.json
10
- */
11
- export interface PluginInstallation {
12
- scope: PluginScope;
13
- installPath: string;
14
- version: string;
15
- installedAt: string;
16
- lastUpdated: string;
17
- gitCommitSha?: string;
18
- isLocal?: boolean;
19
- }
20
- /**
21
- * Installed plugins database v1 (legacy)
22
- * plugins stored as direct objects
23
- */
24
- interface InstalledPluginsDatabaseV1 {
25
- version: 1;
26
- plugins: Record<string, PluginInstallation>;
27
- }
28
- /**
29
- * Installed plugins database v2 (current)
30
- * plugins stored as arrays
31
- */
32
- interface InstalledPluginsDatabaseV2 {
33
- version: 2;
34
- plugins: Record<string, PluginInstallation[]>;
35
- }
36
- /**
37
- * Installed plugins database structure
38
- * Located at ~/.claude/plugins/installed_plugins.json
39
- */
40
- export type InstalledPluginsDatabase = InstalledPluginsDatabaseV1 | InstalledPluginsDatabaseV2;
41
- /**
42
- * Plugin author information
43
- */
44
- interface PluginAuthor {
45
- name?: string;
46
- email?: string;
47
- url?: string;
48
- }
49
- /**
50
- * Plugin manifest (plugin.json)
51
- * Located at <plugin_root>/.claude-plugin/plugin.json
52
- */
53
- export interface PluginManifest {
54
- name: string;
55
- version?: string;
56
- description?: string;
57
- author?: PluginAuthor;
58
- homepage?: string;
59
- repository?: string;
60
- license?: string;
61
- keywords?: string[];
62
- commands?: string | string[];
63
- agents?: string | string[];
64
- skills?: string | string[];
65
- hooks?: string | HooksConfig;
66
- mcpServers?: string | McpServersConfig;
67
- lspServers?: string | LspServersConfig;
68
- outputStyles?: string | string[];
69
- }
70
- /**
71
- * Hooks configuration
72
- */
73
- interface HookEntry {
74
- type: "command" | "prompt" | "agent";
75
- command?: string;
76
- prompt?: string;
77
- agent?: string;
78
- }
79
- interface HookMatcher {
80
- matcher?: string;
81
- hooks: HookEntry[];
82
- }
83
- export interface HooksConfig {
84
- hooks?: {
85
- PreToolUse?: HookMatcher[];
86
- PostToolUse?: HookMatcher[];
87
- PostToolUseFailure?: HookMatcher[];
88
- PermissionRequest?: HookMatcher[];
89
- UserPromptSubmit?: HookMatcher[];
90
- Notification?: HookMatcher[];
91
- Stop?: HookMatcher[];
92
- SubagentStart?: HookMatcher[];
93
- SubagentStop?: HookMatcher[];
94
- SessionStart?: HookMatcher[];
95
- SessionEnd?: HookMatcher[];
96
- PreCompact?: HookMatcher[];
97
- };
98
- }
99
- /**
100
- * MCP servers configuration in plugin
101
- */
102
- interface PluginMcpServer {
103
- command?: string;
104
- args?: string[];
105
- env?: Record<string, string>;
106
- cwd?: string;
107
- url?: string;
108
- type?: "stdio" | "http" | "sse";
109
- disabled?: boolean;
110
- }
111
- interface McpServersConfig {
112
- mcpServers?: Record<string, PluginMcpServer>;
113
- }
114
- /**
115
- * LSP server configuration
116
- */
117
- interface LspServerConfig {
118
- command: string;
119
- args?: string[];
120
- extensionToLanguage: Record<string, string>;
121
- transport?: "stdio" | "socket";
122
- env?: Record<string, string>;
123
- initializationOptions?: Record<string, unknown>;
124
- settings?: Record<string, unknown>;
125
- workspaceFolder?: string;
126
- startupTimeout?: number;
127
- shutdownTimeout?: number;
128
- restartOnCrash?: boolean;
129
- maxRestarts?: number;
130
- loggingConfig?: {
131
- args?: string[];
132
- env?: Record<string, string>;
133
- };
134
- }
135
- interface LspServersConfig {
136
- [language: string]: LspServerConfig;
137
- }
138
- /**
139
- * Loaded plugin with all resolved components
140
- */
141
- export interface LoadedPlugin {
142
- name: string;
143
- version: string;
144
- scope: PluginScope;
145
- installPath: string;
146
- manifest?: PluginManifest;
147
- pluginKey: string;
148
- commandsDir?: string;
149
- agentsDir?: string;
150
- skillsDir?: string;
151
- hooksPath?: string;
152
- mcpPath?: string;
153
- lspPath?: string;
154
- }
155
- /**
156
- * Plugin load result with all components
157
- */
158
- export interface PluginLoadResult {
159
- plugins: LoadedPlugin[];
160
- errors: PluginLoadError[];
161
- }
162
- export interface PluginLoadError {
163
- pluginKey: string;
164
- installPath: string;
165
- error: string;
166
- }
167
- /**
168
- * Claude settings from ~/.claude/settings.json
169
- */
170
- export interface ClaudeSettings {
171
- enabledPlugins?: Record<string, boolean>;
172
- [key: string]: unknown;
173
- }
174
- /**
175
- * Plugin loader options
176
- */
177
- export interface PluginLoaderOptions {
178
- /**
179
- * Override enabled plugins from matrixx config.
180
- * Key format: "pluginName@marketplace" (e.g., "shell-scripting@claude-code-workflows")
181
- * Value: true = enabled, false = disabled
182
- *
183
- * This takes precedence over ~/.claude/settings.json enabledPlugins
184
- */
185
- enabledPluginsOverride?: Record<string, boolean>;
186
- }
187
- export {};
@@ -1 +0,0 @@
1
- export declare function getClaudeConfigDir(): string;