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,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,3 +0,0 @@
1
- export * from "./session-storage";
2
- export * from "./storage";
3
- export * from "./types";
@@ -1,10 +0,0 @@
1
- import type { MatrixxConfig } from "../../config/schema";
2
- export declare function getSessionTaskDir(config: Partial<MatrixxConfig>, sessionID: string): string;
3
- export declare function listSessionTaskFiles(config: Partial<MatrixxConfig>, sessionID: string): string[];
4
- export declare function listAllSessionDirs(config: Partial<MatrixxConfig>): string[];
5
- interface TaskLocation {
6
- path: string;
7
- sessionID: string;
8
- }
9
- export declare function findTaskAcrossSessions(config: Partial<MatrixxConfig>, taskId: string): TaskLocation | null;
10
- export {};
@@ -1,3 +0,0 @@
1
- export * from "./oauth-authorization-flow";
2
- export * from "./provider";
3
- export * from "./schema";
@@ -1,5 +0,0 @@
1
- import { z } from "zod";
2
- export declare const McpOauthSchema: z.ZodObject<{
3
- clientId: z.ZodOptional<z.ZodString>;
4
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
- }, z.core.$strip>;
@@ -1 +0,0 @@
1
- export declare const CONTINUATION_MARKER_DIR = ".matrixx/run-continuation";
@@ -1,6 +0,0 @@
1
- import type { ContinuationMarker, ContinuationMarkerSource, ContinuationMarkerState } from "./types";
2
- export declare function readContinuationMarker(directory: string, sessionID: string): ContinuationMarker | null;
3
- export declare function setContinuationMarkerSource(directory: string, sessionID: string, source: ContinuationMarkerSource, state: ContinuationMarkerState, reason?: string): ContinuationMarker;
4
- export declare function clearContinuationMarker(directory: string, sessionID: string): void;
5
- export declare function isContinuationMarkerActive(marker: ContinuationMarker): boolean;
6
- export declare function getActiveContinuationMarkerReason(marker: ContinuationMarker): string | null;
@@ -1,13 +0,0 @@
1
- export type ContinuationMarkerSource = "todo" | "stop";
2
- export type ContinuationMarkerState = "idle" | "active" | "stopped";
3
- interface ContinuationMarkerSourceEntry {
4
- state: ContinuationMarkerState;
5
- reason?: string;
6
- updatedAt: string;
7
- }
8
- export interface ContinuationMarker {
9
- sessionID: string;
10
- updatedAt: string;
11
- sources: Partial<Record<ContinuationMarkerSource, ContinuationMarkerSourceEntry>>;
12
- }
13
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import type { createOpencodeClient } from "@opencode-ai/sdk";
2
- import type { MessageData } from "./types";
3
- type Client = ReturnType<typeof createOpencodeClient>;
4
- type ReplaceEmptyTextPartsAsync = (client: Client, sessionID: string, messageID: string, replacementText: string) => Promise<boolean>;
5
- type InjectTextPartAsync = (client: Client, sessionID: string, messageID: string, text: string) => Promise<boolean>;
6
- type FindMessagesWithEmptyTextPartsFromSDK = (client: Client, sessionID: string) => Promise<string[]>;
7
- export declare function recoverEmptyContentMessageFromSDK(client: Client, sessionID: string, failedAssistantMsg: MessageData, error: unknown, dependencies: {
8
- placeholderText: string;
9
- replaceEmptyTextPartsAsync: ReplaceEmptyTextPartsAsync;
10
- injectTextPartAsync: InjectTextPartAsync;
11
- findMessagesWithEmptyTextPartsFromSDK: FindMessagesWithEmptyTextPartsFromSDK;
12
- }): Promise<boolean>;
13
- export {};
@@ -1,19 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- interface ToolExecuteInput {
3
- tool: string;
4
- sessionID: string;
5
- callID: string;
6
- }
7
- interface ToolExecuteOutput {
8
- output: string;
9
- }
10
- export declare function createTaskReminderHook(_ctx: PluginInput): {
11
- "tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
12
- event: ({ event }: {
13
- event: {
14
- type: string;
15
- properties?: unknown;
16
- };
17
- }) => Promise<void>;
18
- };
19
- export {};
@@ -1 +0,0 @@
1
- export { createTaskReminderHook } from "./hook";
@@ -1 +0,0 @@
1
- export declare function getClaudeConfigDir(): string;
@@ -1,5 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
4
- import type { DelegateAgentArgs } from "./types";
5
- export declare function executeBackgroundAgent(args: DelegateAgentArgs, toolContext: ToolContextWithMetadata, manager: BackgroundManager, client: PluginInput["client"]): Promise<string>;
@@ -1 +0,0 @@
1
- export { getMessageDir } from "../../shared";
@@ -1,10 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
3
- import type { DelegateAgentArgs } from "./types";
4
- export declare function resolveOrCreateSessionId(ctx: PluginInput, args: DelegateAgentArgs, toolContext: ToolContextWithMetadata): Promise<{
5
- ok: true;
6
- sessionID: string;
7
- } | {
8
- ok: false;
9
- error: string;
10
- }>;
@@ -1,10 +0,0 @@
1
- export type ToolContextWithMetadata = {
2
- sessionID: string;
3
- messageID: string;
4
- agent: string;
5
- abort: AbortSignal;
6
- metadata?: (input: {
7
- title?: string;
8
- metadata?: Record<string, unknown>;
9
- }) => void;
10
- };
package/postinstall.mjs DELETED
@@ -1,43 +0,0 @@
1
- // postinstall.mjs
2
- // Runs after npm install to verify platform binary is available
3
-
4
- import { createRequire } from "node:module";
5
- import { getPlatformPackage, getBinaryPath } from "./bin/platform.js";
6
-
7
- const require = createRequire(import.meta.url);
8
-
9
- /**
10
- * Detect libc family on Linux
11
- */
12
- function getLibcFamily() {
13
- if (process.platform !== "linux") {
14
- return undefined;
15
- }
16
-
17
- try {
18
- const detectLibc = require("detect-libc");
19
- return detectLibc.familySync();
20
- } catch {
21
- return null;
22
- }
23
- }
24
-
25
- function main() {
26
- const { platform, arch } = process;
27
- const libcFamily = getLibcFamily();
28
-
29
- try {
30
- const pkg = getPlatformPackage({ platform, arch, libcFamily });
31
- const binPath = getBinaryPath(pkg, platform);
32
-
33
- // Try to resolve the binary
34
- require.resolve(binPath);
35
- console.log(`✓ matrixx binary installed for ${platform}-${arch}`);
36
- } catch (error) {
37
- console.warn(`⚠ matrixx: ${error.message}`);
38
- console.warn(` The CLI may not work on this platform.`);
39
- // Don't fail installation - let user try anyway
40
- }
41
- }
42
-
43
- main();