opencode-matrixx 2.1.0 → 2.3.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 (280) hide show
  1. package/README.md +150 -43
  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 +2 -1
  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/index.d.ts +1 -1
  12. package/dist/agents/merovingian.d.ts +2 -2
  13. package/dist/agents/mouse/agent.d.ts +5 -2
  14. package/dist/agents/mouse/deepseek.d.ts +16 -0
  15. package/dist/agents/mouse/index.d.ts +3 -0
  16. package/dist/agents/mouse/mimo.d.ts +15 -0
  17. package/dist/agents/mouse/qwen.d.ts +16 -0
  18. package/dist/agents/mouse/shared.d.ts +7 -0
  19. package/dist/agents/types.d.ts +4 -1
  20. package/dist/config/index.d.ts +3 -4
  21. package/dist/config/presets.d.ts +4 -0
  22. package/dist/config/resolve-tiers.d.ts +32 -0
  23. package/dist/config/schema/agent-names.d.ts +9 -17
  24. package/dist/config/schema/agent-overrides.d.ts +133 -0
  25. package/dist/config/schema/assembly.d.ts +13 -0
  26. package/dist/config/schema/categories.d.ts +16 -1
  27. package/dist/config/schema/commands.d.ts +10 -0
  28. package/dist/config/schema/dcp.d.ts +16 -0
  29. package/dist/config/schema/hooks.d.ts +2 -1
  30. package/dist/config/schema/matrixx-config.d.ts +169 -19
  31. package/dist/config/schema/security.d.ts +0 -5
  32. package/dist/config/schema.d.ts +4 -1
  33. package/dist/create-hooks.d.ts +2 -0
  34. package/dist/features/assembly-state/index.d.ts +1 -0
  35. package/dist/features/assembly-state/manager.d.ts +6 -0
  36. package/dist/features/background-agent/error-helpers.d.ts +6 -0
  37. package/dist/features/background-agent/manager.d.ts +6 -8
  38. package/dist/features/background-agent/message-dir.d.ts +5 -0
  39. package/dist/features/background-agent/notification-builder.d.ts +17 -0
  40. package/dist/features/bdd/schema.d.ts +434 -0
  41. package/dist/features/bdd/types.d.ts +2 -0
  42. package/dist/features/builtin-commands/templates/assembly.d.ts +1 -0
  43. package/dist/features/builtin-commands/templates/bdd-backend.d.ts +1 -0
  44. package/dist/features/builtin-commands/templates/bdd-contract.d.ts +1 -0
  45. package/dist/features/builtin-commands/templates/bdd-frontend.d.ts +1 -0
  46. package/dist/features/builtin-commands/templates/bdd-pipeline.d.ts +1 -0
  47. package/dist/features/builtin-commands/templates/bdd-tests.d.ts +1 -0
  48. package/dist/features/builtin-commands/templates/dcp-profile.d.ts +1 -0
  49. package/dist/features/builtin-commands/templates/research.d.ts +1 -0
  50. package/dist/features/builtin-commands/templates/ultrawork.d.ts +1 -0
  51. package/dist/features/builtin-commands/types.d.ts +2 -2
  52. package/dist/features/builtin-skills/lazy-skill-helper.d.ts +17 -0
  53. package/dist/features/builtin-skills/skills/bdd-backend.d.ts +3 -0
  54. package/dist/features/builtin-skills/skills/bdd-contract.d.ts +3 -0
  55. package/dist/features/builtin-skills/skills/bdd-frontend.d.ts +3 -0
  56. package/dist/features/builtin-skills/skills/bdd-tests.d.ts +3 -0
  57. package/dist/features/builtin-skills/skills/docker-master.d.ts +2 -0
  58. package/dist/features/builtin-skills/skills/index.d.ts +7 -0
  59. package/dist/features/builtin-skills/skills/remove-ai-slops.d.ts +2 -0
  60. package/dist/features/builtin-skills/skills/ulw-research.d.ts +2 -0
  61. package/dist/features/command-loader/loader.d.ts +3 -0
  62. package/dist/features/hook-message-injector/injector.d.ts +1 -2
  63. package/dist/features/mission-state/constants.d.ts +10 -0
  64. package/dist/features/mission-state/index.d.ts +2 -0
  65. package/dist/features/mission-state/plan-storage.d.ts +48 -0
  66. package/dist/features/mission-state/rehydrate.d.ts +21 -0
  67. package/dist/features/mission-state/types.d.ts +46 -0
  68. package/dist/features/opencode-skill-loader/loader.d.ts +1 -3
  69. package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +1 -1
  70. package/dist/features/opencode-skill-loader/types.d.ts +1 -1
  71. package/dist/features/skill-mcp-manager/connection-type.d.ts +2 -3
  72. package/dist/features/skill-mcp-manager/connection.d.ts +3 -4
  73. package/dist/features/skill-mcp-manager/manager.d.ts +2 -3
  74. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +3 -3
  75. package/dist/features/skill-mcp-manager/types.d.ts +16 -4
  76. package/dist/features/tmux-subagent/index.d.ts +0 -2
  77. package/dist/features/ultrawork-state/index.d.ts +1 -0
  78. package/dist/features/ultrawork-state/manager.d.ts +6 -0
  79. package/dist/hooks/auto-update-checker/cache.d.ts +0 -2
  80. package/dist/hooks/auto-update-checker/index.d.ts +1 -1
  81. package/dist/hooks/env-context-injector/index.d.ts +23 -0
  82. package/dist/hooks/index.d.ts +2 -0
  83. package/dist/hooks/interactive-bash-session/parser.d.ts +0 -6
  84. package/dist/hooks/plan-persister/hook.d.ts +20 -0
  85. package/dist/hooks/plan-persister/index.d.ts +2 -0
  86. package/dist/index.js +44832 -26999
  87. package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
  88. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
  89. package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
  90. package/dist/plugin-config.d.ts +1 -1
  91. package/dist/plugin-handlers/agent-config-handler.d.ts +2 -0
  92. package/dist/plugin-handlers/plugin-components-loader.d.ts +1 -1
  93. package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -0
  94. package/dist/shared/index.d.ts +2 -1
  95. package/dist/shared/merge-categories.d.ts +4 -0
  96. package/dist/shared/model-resolution-pipeline.d.ts +1 -24
  97. package/dist/shared/model-resolution-types.d.ts +4 -0
  98. package/dist/shared/model-resolver.d.ts +4 -2
  99. package/dist/shared/model-tiers.d.ts +31 -0
  100. package/dist/shared/opencode-config-dir.d.ts +1 -2
  101. package/dist/shared/session-directory-resolver.d.ts +0 -6
  102. package/dist/shared/tier-resolver.d.ts +26 -0
  103. package/dist/shared/tool-guards.d.ts +16 -0
  104. package/dist/tools/assembly/assembly-executor.d.ts +17 -0
  105. package/dist/tools/assembly/constants.d.ts +6 -0
  106. package/dist/tools/assembly/index.d.ts +2 -0
  107. package/dist/tools/assembly/provider-selector.d.ts +3 -0
  108. package/dist/tools/assembly/synthesizer.d.ts +3 -0
  109. package/dist/tools/assembly/tool-description.d.ts +2 -0
  110. package/dist/tools/assembly/tools.d.ts +10 -0
  111. package/dist/tools/assembly/types.d.ts +25 -0
  112. package/dist/tools/assembly/voter-spawner.d.ts +3 -0
  113. package/dist/tools/bdd-create-contract/constants.d.ts +1 -0
  114. package/dist/tools/bdd-create-contract/index.d.ts +3 -0
  115. package/dist/tools/bdd-create-contract/tools.d.ts +3 -0
  116. package/dist/tools/bdd-create-contract/types.d.ts +12 -0
  117. package/dist/tools/bdd-parse-gherkin/constants.d.ts +1 -0
  118. package/dist/tools/bdd-parse-gherkin/index.d.ts +3 -0
  119. package/dist/tools/bdd-parse-gherkin/tools.d.ts +5 -0
  120. package/dist/tools/bdd-parse-gherkin/types.d.ts +9 -0
  121. package/dist/tools/bdd-pipeline/analysis-report-sections.d.ts +10 -0
  122. package/dist/tools/bdd-pipeline/analysis-report.d.ts +9 -0
  123. package/dist/tools/bdd-pipeline/constants.d.ts +4 -0
  124. package/dist/tools/bdd-pipeline/feature-resolver.d.ts +5 -0
  125. package/dist/{features/run-continuation-state → tools/bdd-pipeline}/index.d.ts +1 -1
  126. package/dist/tools/bdd-pipeline/pipeline-runner.d.ts +6 -0
  127. package/dist/tools/bdd-pipeline/subagent-runner.d.ts +14 -0
  128. package/dist/tools/bdd-pipeline/tools.d.ts +5 -0
  129. package/dist/tools/bdd-pipeline/types.d.ts +74 -0
  130. package/dist/tools/bdd-validate-contract/index.d.ts +1 -0
  131. package/dist/tools/bdd-validate-contract/tools.d.ts +21 -0
  132. package/dist/tools/delegate-task/categories.d.ts +7 -0
  133. package/dist/tools/delegate-task/category-resolver.d.ts +6 -0
  134. package/dist/tools/delegate-task/complexity-constants.d.ts +24 -0
  135. package/dist/tools/delegate-task/complexity-scorer.d.ts +31 -0
  136. package/dist/tools/delegate-task/complexity-types.d.ts +10 -0
  137. package/dist/tools/delegate-task/executor-types.d.ts +1 -0
  138. package/dist/tools/delegate-task/index.d.ts +3 -0
  139. package/dist/tools/delegate-task/types.d.ts +8 -0
  140. package/dist/tools/handoff/constants.d.ts +0 -3
  141. package/dist/tools/index.d.ts +5 -0
  142. package/dist/tools/task/todo-sync.d.ts +1 -1
  143. package/package.json +22 -32
  144. package/bin/matrixx.js +0 -80
  145. package/bin/platform.js +0 -38
  146. package/bin/platform.test.ts +0 -148
  147. package/dist/agents/builtin-agents/environment-context.d.ts +0 -2
  148. package/dist/cli/cli-installer.d.ts +0 -2
  149. package/dist/cli/cli-program.d.ts +0 -1
  150. package/dist/cli/config-manager/add-plugin-to-opencode-config.d.ts +0 -2
  151. package/dist/cli/config-manager/add-provider-config.d.ts +0 -2
  152. package/dist/cli/config-manager/antigravity-provider-configuration.d.ts +0 -122
  153. package/dist/cli/config-manager/auth-plugins.d.ts +0 -3
  154. package/dist/cli/config-manager/bun-install.d.ts +0 -7
  155. package/dist/cli/config-manager/config-context.d.ts +0 -13
  156. package/dist/cli/config-manager/deep-merge-record.d.ts +0 -1
  157. package/dist/cli/config-manager/detect-current-config.d.ts +0 -2
  158. package/dist/cli/config-manager/ensure-config-directory-exists.d.ts +0 -1
  159. package/dist/cli/config-manager/format-error-with-suggestion.d.ts +0 -1
  160. package/dist/cli/config-manager/generate-matrixx-config.d.ts +0 -2
  161. package/dist/cli/config-manager/jsonc-provider-editor.d.ts +0 -1
  162. package/dist/cli/config-manager/npm-dist-tags.d.ts +0 -7
  163. package/dist/cli/config-manager/opencode-binary.d.ts +0 -2
  164. package/dist/cli/config-manager/opencode-config-format.d.ts +0 -6
  165. package/dist/cli/config-manager/parse-opencode-config-file.d.ts +0 -10
  166. package/dist/cli/config-manager/plugin-name-with-version.d.ts +0 -1
  167. package/dist/cli/config-manager/write-matrixx-config.d.ts +0 -2
  168. package/dist/cli/config-manager.d.ts +0 -14
  169. package/dist/cli/doctor/checks/config.d.ts +0 -2
  170. package/dist/cli/doctor/checks/dependencies.d.ts +0 -4
  171. package/dist/cli/doctor/checks/index.d.ts +0 -7
  172. package/dist/cli/doctor/checks/model-resolution-cache.d.ts +0 -2
  173. package/dist/cli/doctor/checks/model-resolution-config.d.ts +0 -2
  174. package/dist/cli/doctor/checks/model-resolution-details.d.ts +0 -6
  175. package/dist/cli/doctor/checks/model-resolution-effective-model.d.ts +0 -3
  176. package/dist/cli/doctor/checks/model-resolution-types.d.ts +0 -37
  177. package/dist/cli/doctor/checks/model-resolution-variant.d.ts +0 -5
  178. package/dist/cli/doctor/checks/model-resolution.d.ts +0 -6
  179. package/dist/cli/doctor/checks/system-binary.d.ts +0 -8
  180. package/dist/cli/doctor/checks/system-loaded-version.d.ts +0 -10
  181. package/dist/cli/doctor/checks/system-plugin.d.ts +0 -15
  182. package/dist/cli/doctor/checks/system.d.ts +0 -3
  183. package/dist/cli/doctor/checks/tools-gh.d.ts +0 -11
  184. package/dist/cli/doctor/checks/tools-lsp.d.ts +0 -6
  185. package/dist/cli/doctor/checks/tools-mcp.d.ts +0 -3
  186. package/dist/cli/doctor/checks/tools.d.ts +0 -3
  187. package/dist/cli/doctor/constants.d.ts +0 -31
  188. package/dist/cli/doctor/format-default.d.ts +0 -2
  189. package/dist/cli/doctor/format-shared.d.ts +0 -6
  190. package/dist/cli/doctor/format-status.d.ts +0 -2
  191. package/dist/cli/doctor/format-verbose.d.ts +0 -2
  192. package/dist/cli/doctor/formatter.d.ts +0 -3
  193. package/dist/cli/doctor/index.d.ts +0 -5
  194. package/dist/cli/doctor/runner.d.ts +0 -5
  195. package/dist/cli/doctor/types.d.ts +0 -96
  196. package/dist/cli/fallback-chain-resolution.d.ts +0 -10
  197. package/dist/cli/get-local-version/formatter.d.ts +0 -3
  198. package/dist/cli/get-local-version/get-local-version.d.ts +0 -2
  199. package/dist/cli/get-local-version/index.d.ts +0 -2
  200. package/dist/cli/get-local-version/types.d.ts +0 -13
  201. package/dist/cli/index.d.ts +0 -2
  202. package/dist/cli/index.js +0 -30691
  203. package/dist/cli/install-validators.d.ts +0 -31
  204. package/dist/cli/install.d.ts +0 -2
  205. package/dist/cli/mcp-oauth/index.d.ts +0 -6
  206. package/dist/cli/mcp-oauth/login.d.ts +0 -7
  207. package/dist/cli/mcp-oauth/logout.d.ts +0 -5
  208. package/dist/cli/mcp-oauth/status.d.ts +0 -1
  209. package/dist/cli/model-fallback-types.d.ts +0 -25
  210. package/dist/cli/model-fallback.d.ts +0 -4
  211. package/dist/cli/provider-availability.d.ts +0 -4
  212. package/dist/cli/provider-model-id-transform.d.ts +0 -1
  213. package/dist/cli/run/agent-resolver.d.ts +0 -5
  214. package/dist/cli/run/completion.d.ts +0 -2
  215. package/dist/cli/run/event-formatting.d.ts +0 -3
  216. package/dist/cli/run/event-handlers.d.ts +0 -10
  217. package/dist/cli/run/event-state.d.ts +0 -13
  218. package/dist/cli/run/event-stream-processor.d.ts +0 -3
  219. package/dist/cli/run/events.d.ts +0 -4
  220. package/dist/cli/run/index.d.ts +0 -9
  221. package/dist/cli/run/json-output.d.ts +0 -12
  222. package/dist/cli/run/on-complete-hook.d.ts +0 -7
  223. package/dist/cli/run/opencode-bin-path.d.ts +0 -3
  224. package/dist/cli/run/opencode-binary-resolver.d.ts +0 -4
  225. package/dist/cli/run/poll-for-completion.d.ts +0 -9
  226. package/dist/cli/run/runner.d.ts +0 -5
  227. package/dist/cli/run/server-connection.d.ts +0 -6
  228. package/dist/cli/run/session-resolver.d.ts +0 -6
  229. package/dist/cli/run/types.d.ts +0 -119
  230. package/dist/cli/tui-install-prompts.d.ts +0 -2
  231. package/dist/cli/tui-installer.d.ts +0 -2
  232. package/dist/cli/types.d.ts +0 -36
  233. package/dist/config/profiles.d.ts +0 -4
  234. package/dist/config/schema/claude-code.d.ts +0 -10
  235. package/dist/features/background-agent/background-task-notification-template.d.ts +0 -11
  236. package/dist/features/background-agent/opencode-client.d.ts +0 -2
  237. package/dist/features/background-agent/task-poller.d.ts +0 -21
  238. package/dist/features/claude-code-command-loader/loader.d.ts +0 -6
  239. package/dist/features/claude-code-mcp-loader/index.d.ts +0 -10
  240. package/dist/features/claude-code-mcp-loader/loader.d.ts +0 -3
  241. package/dist/features/claude-code-mcp-loader/transformer.d.ts +0 -2
  242. package/dist/features/claude-code-mcp-loader/types.d.ts +0 -39
  243. package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +0 -3
  244. package/dist/features/claude-code-plugin-loader/command-loader.d.ts +0 -3
  245. package/dist/features/claude-code-plugin-loader/discovery.d.ts +0 -2
  246. package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +0 -2
  247. package/dist/features/claude-code-plugin-loader/index.d.ts +0 -10
  248. package/dist/features/claude-code-plugin-loader/loader.d.ts +0 -20
  249. package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +0 -3
  250. package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
  251. package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +0 -3
  252. package/dist/features/claude-code-plugin-loader/types.d.ts +0 -187
  253. package/dist/features/claude-tasks/index.d.ts +0 -3
  254. package/dist/features/claude-tasks/session-storage.d.ts +0 -10
  255. package/dist/features/mcp-oauth/index.d.ts +0 -3
  256. package/dist/features/mcp-oauth/schema.d.ts +0 -5
  257. package/dist/features/run-continuation-state/constants.d.ts +0 -1
  258. package/dist/features/run-continuation-state/storage.d.ts +0 -6
  259. package/dist/features/run-continuation-state/types.d.ts +0 -13
  260. package/dist/features/tmux-subagent/cleanup.d.ts +0 -1
  261. package/dist/features/tmux-subagent/polling.d.ts +0 -1
  262. package/dist/hooks/session-recovery/recover-empty-content-message-sdk.d.ts +0 -13
  263. package/dist/hooks/task-reminder/hook.d.ts +0 -19
  264. package/dist/hooks/task-reminder/index.d.ts +0 -1
  265. package/dist/shared/claude-config-dir.d.ts +0 -1
  266. package/dist/tools/delegate-agent/background-agent-executor.d.ts +0 -5
  267. package/dist/tools/delegate-agent/message-storage-directory.d.ts +0 -1
  268. package/dist/tools/delegate-agent/subagent-session-creator.d.ts +0 -10
  269. package/dist/tools/delegate-agent/tool-context-with-metadata.d.ts +0 -10
  270. package/postinstall.mjs +0 -43
  271. /package/dist/features/{claude-code-agent-loader → agent-loader}/index.d.ts +0 -0
  272. /package/dist/features/{claude-code-agent-loader → agent-loader}/loader.d.ts +0 -0
  273. /package/dist/features/{claude-code-agent-loader → agent-loader}/types.d.ts +0 -0
  274. /package/dist/features/{claude-code-command-loader → command-loader}/index.d.ts +0 -0
  275. /package/dist/features/{claude-code-command-loader → command-loader}/types.d.ts +0 -0
  276. /package/dist/features/{claude-code-session-state → session-state}/index.d.ts +0 -0
  277. /package/dist/features/{claude-code-session-state → session-state}/state.d.ts +0 -0
  278. /package/dist/features/{claude-code-mcp-loader → skill-mcp-manager}/env-expander.d.ts +0 -0
  279. /package/dist/features/{claude-tasks → task-storage}/storage.d.ts +0 -0
  280. /package/dist/features/{claude-tasks → task-storage}/types.d.ts +0 -0
@@ -1,31 +0,0 @@
1
- import type { BooleanArg, ClaudeSubscription, DetectedConfig, InstallArgs, InstallConfig } from "./types";
2
- export declare const SYMBOLS: {
3
- check: string;
4
- cross: string;
5
- arrow: string;
6
- bullet: string;
7
- info: string;
8
- warn: string;
9
- star: string;
10
- };
11
- export declare function formatConfigSummary(config: InstallConfig): string;
12
- export declare function printHeader(isUpdate: boolean): void;
13
- export declare function printStep(step: number, total: number, message: string): void;
14
- export declare function printSuccess(message: string): void;
15
- export declare function printError(message: string): void;
16
- export declare function printInfo(message: string): void;
17
- export declare function printWarning(message: string): void;
18
- export declare function printBox(content: string, title?: string): void;
19
- export declare function validateNonTuiArgs(args: InstallArgs): {
20
- valid: boolean;
21
- errors: string[];
22
- };
23
- export declare function argsToConfig(args: InstallArgs): InstallConfig;
24
- export declare function detectedToInitialValues(detected: DetectedConfig): {
25
- claude: ClaudeSubscription;
26
- openai: BooleanArg;
27
- gemini: BooleanArg;
28
- copilot: BooleanArg;
29
- opencodeZen: BooleanArg;
30
- zaiCodingPlan: BooleanArg;
31
- };
@@ -1,2 +0,0 @@
1
- import type { InstallArgs } from "./types";
2
- export declare function install(args: InstallArgs): Promise<number>;
@@ -1,6 +0,0 @@
1
- import { Command } from "commander";
2
- import { login } from "./login";
3
- import { logout } from "./logout";
4
- import { status } from "./status";
5
- export declare function createMcpOAuthCommand(): Command;
6
- export { login, logout, status };
@@ -1,7 +0,0 @@
1
- interface LoginOptions {
2
- serverUrl?: string;
3
- clientId?: string;
4
- scopes?: string[];
5
- }
6
- export declare function login(serverName: string, options: LoginOptions): Promise<number>;
7
- export {};
@@ -1,5 +0,0 @@
1
- interface LogoutOptions {
2
- serverUrl?: string;
3
- }
4
- export declare function logout(serverName: string, options?: LogoutOptions): Promise<number>;
5
- export {};
@@ -1 +0,0 @@
1
- export declare function status(serverName: string | undefined): Promise<number>;
@@ -1,25 +0,0 @@
1
- export interface ProviderAvailability {
2
- native: {
3
- claude: boolean;
4
- openai: boolean;
5
- gemini: boolean;
6
- };
7
- opencodeZen: boolean;
8
- copilot: boolean;
9
- zai: boolean;
10
- isMaxPlan: boolean;
11
- }
12
- export interface AgentConfig {
13
- model: string;
14
- variant?: string;
15
- }
16
- export interface CategoryConfig {
17
- model: string;
18
- variant?: string;
19
- }
20
- export interface GeneratedMatrixxConfig {
21
- $schema: string;
22
- agents?: Record<string, AgentConfig>;
23
- categories?: Record<string, CategoryConfig>;
24
- [key: string]: unknown;
25
- }
@@ -1,4 +0,0 @@
1
- import type { GeneratedMatrixxConfig } from "./model-fallback-types";
2
- import type { InstallConfig } from "./types";
3
- export type { GeneratedMatrixxConfig } from "./model-fallback-types";
4
- export declare function generateModelConfig(config: InstallConfig): GeneratedMatrixxConfig;
@@ -1,4 +0,0 @@
1
- import type { ProviderAvailability } from "./model-fallback-types";
2
- import type { InstallConfig } from "./types";
3
- export declare function toProviderAvailability(config: InstallConfig): ProviderAvailability;
4
- export declare function isProviderAvailable(provider: string, availability: ProviderAvailability): boolean;
@@ -1 +0,0 @@
1
- export declare function transformModelForProvider(provider: string, model: string): string;
@@ -1,5 +0,0 @@
1
- import type { MatrixxConfig } from "../../config";
2
- import type { RunOptions } from "./types";
3
- type EnvVars = Record<string, string | undefined>;
4
- export declare const resolveRunAgent: (options: RunOptions, pluginConfig: MatrixxConfig, env?: EnvVars) => string;
5
- export {};
@@ -1,2 +0,0 @@
1
- import type { RunContext } from "./types";
2
- export declare function checkCompletionConditions(ctx: RunContext): Promise<boolean>;
@@ -1,3 +0,0 @@
1
- import type { EventPayload, RunContext } from "./types";
2
- export declare function serializeError(error: unknown): string;
3
- export declare function logEventVerbose(ctx: RunContext, payload: EventPayload): void;
@@ -1,10 +0,0 @@
1
- import type { EventState } from "./event-state";
2
- import type { EventPayload, RunContext } from "./types";
3
- export declare function handleSessionIdle(ctx: RunContext, payload: EventPayload, state: EventState): void;
4
- export declare function handleSessionStatus(ctx: RunContext, payload: EventPayload, state: EventState): void;
5
- export declare function handleSessionError(ctx: RunContext, payload: EventPayload, state: EventState): void;
6
- export declare function handleMessagePartUpdated(ctx: RunContext, payload: EventPayload, state: EventState): void;
7
- export declare function handleMessageUpdated(ctx: RunContext, payload: EventPayload, state: EventState): void;
8
- export declare function handleToolExecute(ctx: RunContext, payload: EventPayload, state: EventState): void;
9
- export declare function handleToolResult(ctx: RunContext, payload: EventPayload, state: EventState): void;
10
- export declare function handleTuiToast(_ctx: RunContext, payload: EventPayload, state: EventState): void;
@@ -1,13 +0,0 @@
1
- export interface EventState {
2
- mainSessionIdle: boolean;
3
- mainSessionError: boolean;
4
- lastError: string | null;
5
- lastOutput: string;
6
- lastPartText: string;
7
- currentTool: string | null;
8
- /** Set to true when the main session has produced meaningful work (text, tool call, or tool result) */
9
- hasReceivedMeaningfulWork: boolean;
10
- /** Count of assistant messages for the main session */
11
- messageCount: number;
12
- }
13
- export declare function createEventState(): EventState;
@@ -1,3 +0,0 @@
1
- import type { EventState } from "./event-state";
2
- import type { RunContext } from "./types";
3
- export declare function processEvents(ctx: RunContext, stream: AsyncIterable<unknown>, state: EventState): Promise<void>;
@@ -1,4 +0,0 @@
1
- export { serializeError } from "./event-formatting";
2
- export type { EventState } from "./event-state";
3
- export { createEventState } from "./event-state";
4
- export { processEvents } from "./event-stream-processor";
@@ -1,9 +0,0 @@
1
- export { resolveRunAgent } from "./agent-resolver";
2
- export type { EventState } from "./events";
3
- export { createEventState, processEvents, serializeError } from "./events";
4
- export { createJsonOutputManager } from "./json-output";
5
- export { executeOnCompleteHook } from "./on-complete-hook";
6
- export { run } from "./runner";
7
- export { createServerConnection } from "./server-connection";
8
- export { resolveSession } from "./session-resolver";
9
- export type { RunContext, RunOptions, RunResult, ServerConnection } from "./types";
@@ -1,12 +0,0 @@
1
- import type { RunResult } from "./types";
2
- interface JsonOutputManager {
3
- redirectToStderr: () => void;
4
- restore: () => void;
5
- emitResult: (result: RunResult) => void;
6
- }
7
- interface JsonOutputManagerOptions {
8
- stdout?: NodeJS.WriteStream;
9
- stderr?: NodeJS.WriteStream;
10
- }
11
- export declare function createJsonOutputManager(options?: JsonOutputManagerOptions): JsonOutputManager;
12
- export {};
@@ -1,7 +0,0 @@
1
- export declare function executeOnCompleteHook(options: {
2
- command: string;
3
- sessionId: string;
4
- exitCode: number;
5
- durationMs: number;
6
- messageCount: number;
7
- }): Promise<void>;
@@ -1,3 +0,0 @@
1
- type EnvLike = Record<string, string | undefined>;
2
- export declare function prependResolvedOpencodeBinToPath(env?: EnvLike, resolve?: (id: string) => string): void;
3
- export {};
@@ -1,4 +0,0 @@
1
- export declare function collectCandidateBinaryPaths(pathEnv: string | undefined, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): string[];
2
- export declare function findWorkingOpencodeBinary(pathEnv?: string | undefined, probe?: (binaryPath: string) => Promise<boolean>, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): Promise<string | null>;
3
- export declare function buildPathWithBinaryFirst(pathEnv: string | undefined, binaryPath: string): string;
4
- export declare function withWorkingOpencodePath<T>(startServer: () => Promise<T>, finder?: (pathEnv: string | undefined) => Promise<string | null>): Promise<T>;
@@ -1,9 +0,0 @@
1
- import type { EventState } from "./events";
2
- import type { RunContext } from "./types";
3
- interface PollOptions {
4
- pollIntervalMs?: number;
5
- requiredConsecutive?: number;
6
- minStabilizationMs?: number;
7
- }
8
- export declare function pollForCompletion(ctx: RunContext, eventState: EventState, abortController: AbortController, options?: PollOptions): Promise<number>;
9
- export {};
@@ -1,5 +0,0 @@
1
- import { resolveRunAgent } from "./agent-resolver";
2
- import type { RunOptions } from "./types";
3
- export { resolveRunAgent };
4
- export declare function waitForEventProcessorShutdown(eventProcessor: Promise<void>, timeoutMs?: number): Promise<void>;
5
- export declare function run(options: RunOptions): Promise<number>;
@@ -1,6 +0,0 @@
1
- import type { ServerConnection } from "./types";
2
- export declare function createServerConnection(options: {
3
- port?: number;
4
- attach?: string;
5
- signal: AbortSignal;
6
- }): Promise<ServerConnection>;
@@ -1,6 +0,0 @@
1
- import type { OpencodeClient } from "./types";
2
- export declare function resolveSession(options: {
3
- client: OpencodeClient;
4
- sessionId?: string;
5
- directory: string;
6
- }): Promise<string>;
@@ -1,119 +0,0 @@
1
- import type { OpencodeClient } from "@opencode-ai/sdk";
2
- export type { OpencodeClient };
3
- export interface RunOptions {
4
- message: string;
5
- agent?: string;
6
- directory?: string;
7
- timeout?: number;
8
- port?: number;
9
- attach?: string;
10
- onComplete?: string;
11
- json?: boolean;
12
- sessionId?: string;
13
- }
14
- export interface ServerConnection {
15
- client: OpencodeClient;
16
- cleanup: () => void;
17
- }
18
- export interface RunResult {
19
- sessionId: string;
20
- success: boolean;
21
- durationMs: number;
22
- messageCount: number;
23
- summary: string;
24
- }
25
- export interface RunContext {
26
- client: OpencodeClient;
27
- sessionID: string;
28
- directory: string;
29
- abortController: AbortController;
30
- }
31
- export interface Todo {
32
- id?: string;
33
- content: string;
34
- status: string;
35
- priority: string;
36
- }
37
- export interface SessionStatus {
38
- type: "idle" | "busy" | "retry";
39
- }
40
- export interface ChildSession {
41
- id: string;
42
- }
43
- export interface EventPayload {
44
- type: string;
45
- properties?: Record<string, unknown>;
46
- }
47
- export interface SessionIdleProps {
48
- sessionID?: string;
49
- sessionId?: string;
50
- }
51
- export interface SessionStatusProps {
52
- sessionID?: string;
53
- sessionId?: string;
54
- status?: {
55
- type?: string;
56
- };
57
- }
58
- export interface MessageUpdatedProps {
59
- info?: {
60
- sessionID?: string;
61
- sessionId?: string;
62
- role?: string;
63
- modelID?: string;
64
- providerID?: string;
65
- agent?: string;
66
- };
67
- }
68
- export interface MessagePartUpdatedProps {
69
- /** @deprecated Legacy structure — current OpenCode puts sessionID inside part */
70
- info?: {
71
- sessionID?: string;
72
- sessionId?: string;
73
- role?: string;
74
- };
75
- part?: {
76
- id?: string;
77
- sessionID?: string;
78
- sessionId?: string;
79
- messageID?: string;
80
- type?: string;
81
- text?: string;
82
- /** Tool name (for part.type === "tool") */
83
- tool?: string;
84
- /** Tool state (for part.type === "tool") */
85
- state?: {
86
- status?: string;
87
- input?: Record<string, unknown>;
88
- output?: string;
89
- };
90
- name?: string;
91
- input?: unknown;
92
- time?: {
93
- start?: number;
94
- end?: number;
95
- };
96
- };
97
- }
98
- export interface ToolExecuteProps {
99
- sessionID?: string;
100
- sessionId?: string;
101
- name?: string;
102
- input?: Record<string, unknown>;
103
- }
104
- export interface ToolResultProps {
105
- sessionID?: string;
106
- sessionId?: string;
107
- name?: string;
108
- output?: string;
109
- }
110
- export interface SessionErrorProps {
111
- sessionID?: string;
112
- sessionId?: string;
113
- error?: unknown;
114
- }
115
- export interface TuiToastShowProps {
116
- title?: string;
117
- message?: string;
118
- variant?: "info" | "success" | "warning" | "error";
119
- }
@@ -1,2 +0,0 @@
1
- import type { DetectedConfig, InstallConfig } from "./types";
2
- export declare function promptInstallConfig(detected: DetectedConfig): Promise<InstallConfig | null>;
@@ -1,2 +0,0 @@
1
- import type { InstallArgs } from "./types";
2
- export declare function runTuiInstaller(args: InstallArgs, version: string): Promise<number>;
@@ -1,36 +0,0 @@
1
- export type ClaudeSubscription = "no" | "yes" | "max20";
2
- export type BooleanArg = "no" | "yes";
3
- export interface InstallArgs {
4
- tui: boolean;
5
- claude?: ClaudeSubscription;
6
- openai?: BooleanArg;
7
- gemini?: BooleanArg;
8
- copilot?: BooleanArg;
9
- opencodeZen?: BooleanArg;
10
- zaiCodingPlan?: BooleanArg;
11
- skipAuth?: boolean;
12
- }
13
- export interface InstallConfig {
14
- hasClaude: boolean;
15
- isMax20: boolean;
16
- hasOpenAI: boolean;
17
- hasGemini: boolean;
18
- hasCopilot: boolean;
19
- hasOpencodeZen: boolean;
20
- hasZaiCodingPlan: boolean;
21
- }
22
- export interface ConfigMergeResult {
23
- success: boolean;
24
- configPath: string;
25
- error?: string;
26
- }
27
- export interface DetectedConfig {
28
- isInstalled: boolean;
29
- hasClaude: boolean;
30
- isMax20: boolean;
31
- hasOpenAI: boolean;
32
- hasGemini: boolean;
33
- hasCopilot: boolean;
34
- hasOpencodeZen: boolean;
35
- hasZaiCodingPlan: boolean;
36
- }
@@ -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,11 +0,0 @@
1
- import type { BackgroundTask } from "./types";
2
- type BackgroundTaskNotificationStatus = "COMPLETED" | "CANCELLED" | "INTERRUPTED";
3
- export declare function buildBackgroundTaskNotificationText(input: {
4
- task: BackgroundTask;
5
- duration: string;
6
- statusText: BackgroundTaskNotificationStatus;
7
- allComplete: boolean;
8
- remainingCount: number;
9
- completedTasks: BackgroundTask[];
10
- }): string;
11
- export {};
@@ -1,2 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- export type OpencodeClient = PluginInput["client"];
@@ -1,21 +0,0 @@
1
- import type { BackgroundTaskConfig } from "../../config/schema";
2
- import type { ConcurrencyManager } from "./concurrency";
3
- import type { OpencodeClient } from "./opencode-client";
4
- import type { BackgroundTask } from "./types";
5
- export declare function pruneStaleTasksAndNotifications(args: {
6
- tasks: Map<string, BackgroundTask>;
7
- notifications: Map<string, BackgroundTask[]>;
8
- onTaskPruned: (taskId: string, task: BackgroundTask, errorMessage: string) => void;
9
- }): void;
10
- type SessionStatusMap = Record<string, {
11
- type: string;
12
- }>;
13
- export declare function checkAndInterruptStaleTasks(args: {
14
- tasks: Iterable<BackgroundTask>;
15
- client: OpencodeClient;
16
- config: BackgroundTaskConfig | undefined;
17
- concurrencyManager: ConcurrencyManager;
18
- notifyParentSession: (task: BackgroundTask) => Promise<void>;
19
- sessionStatuses?: SessionStatusMap;
20
- }): Promise<void>;
21
- export {};
@@ -1,6 +0,0 @@
1
- import type { CommandDefinition } from "./types";
2
- export declare function loadUserCommands(): Promise<Record<string, CommandDefinition>>;
3
- export declare function loadProjectCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
4
- export declare function loadOpencodeGlobalCommands(): Promise<Record<string, CommandDefinition>>;
5
- export declare function loadOpencodeProjectCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
6
- export declare function loadAllCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
@@ -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>;