opencode-matrixx 2.1.0 → 2.2.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 (163) hide show
  1. package/README.md +129 -18
  2. package/dist/agents/builtin-agents/model-resolution.d.ts +1 -1
  3. package/dist/agents/index.d.ts +1 -1
  4. package/dist/agents/merovingian.d.ts +2 -2
  5. package/dist/config/index.d.ts +2 -2
  6. package/dist/config/schema/agent-names.d.ts +3 -17
  7. package/dist/config/schema/assembly.d.ts +13 -0
  8. package/dist/config/schema/categories.d.ts +0 -1
  9. package/dist/config/schema/commands.d.ts +4 -0
  10. package/dist/config/schema/hooks.d.ts +0 -1
  11. package/dist/config/schema/matrixx-config.d.ts +16 -1
  12. package/dist/config/schema/security.d.ts +0 -5
  13. package/dist/config/schema.d.ts +1 -0
  14. package/dist/features/assembly-state/index.d.ts +1 -0
  15. package/dist/features/assembly-state/manager.d.ts +6 -0
  16. package/dist/features/background-agent/error-helpers.d.ts +6 -0
  17. package/dist/features/background-agent/manager.d.ts +6 -8
  18. package/dist/features/background-agent/message-dir.d.ts +5 -0
  19. package/dist/features/background-agent/notification-builder.d.ts +17 -0
  20. package/dist/features/builtin-commands/templates/assembly.d.ts +1 -0
  21. package/dist/features/builtin-commands/templates/research.d.ts +1 -0
  22. package/dist/features/builtin-commands/templates/ultrawork.d.ts +1 -0
  23. package/dist/features/builtin-commands/types.d.ts +1 -1
  24. package/dist/features/builtin-skills/skills/index.d.ts +2 -0
  25. package/dist/features/builtin-skills/skills/remove-ai-slops.d.ts +2 -0
  26. package/dist/features/builtin-skills/skills/ulw-research.d.ts +2 -0
  27. package/dist/features/claude-code-command-loader/loader.d.ts +0 -1
  28. package/dist/features/hook-message-injector/injector.d.ts +1 -2
  29. package/dist/features/tmux-subagent/index.d.ts +0 -2
  30. package/dist/features/ultrawork-state/index.d.ts +1 -0
  31. package/dist/features/ultrawork-state/manager.d.ts +6 -0
  32. package/dist/hooks/auto-update-checker/cache.d.ts +0 -2
  33. package/dist/hooks/auto-update-checker/index.d.ts +1 -1
  34. package/dist/hooks/interactive-bash-session/parser.d.ts +0 -6
  35. package/dist/index.js +1824 -539
  36. package/dist/shared/index.d.ts +1 -0
  37. package/dist/shared/model-resolution-pipeline.d.ts +1 -24
  38. package/dist/shared/model-resolution-types.d.ts +1 -0
  39. package/dist/shared/model-resolver.d.ts +4 -2
  40. package/dist/shared/opencode-config-dir.d.ts +1 -2
  41. package/dist/shared/session-directory-resolver.d.ts +0 -6
  42. package/dist/shared/tool-guards.d.ts +16 -0
  43. package/dist/tools/assembly/assembly-executor.d.ts +17 -0
  44. package/dist/tools/assembly/constants.d.ts +6 -0
  45. package/dist/tools/assembly/index.d.ts +2 -0
  46. package/dist/tools/assembly/provider-selector.d.ts +3 -0
  47. package/dist/tools/assembly/synthesizer.d.ts +3 -0
  48. package/dist/tools/assembly/tool-description.d.ts +2 -0
  49. package/dist/tools/assembly/tools.d.ts +10 -0
  50. package/dist/tools/assembly/types.d.ts +25 -0
  51. package/dist/tools/assembly/voter-spawner.d.ts +3 -0
  52. package/dist/tools/handoff/constants.d.ts +0 -3
  53. package/dist/tools/index.d.ts +1 -0
  54. package/package.json +4 -29
  55. package/bin/matrixx.js +0 -80
  56. package/bin/platform.js +0 -38
  57. package/bin/platform.test.ts +0 -148
  58. package/dist/cli/cli-installer.d.ts +0 -2
  59. package/dist/cli/cli-program.d.ts +0 -1
  60. package/dist/cli/config-manager/add-plugin-to-opencode-config.d.ts +0 -2
  61. package/dist/cli/config-manager/add-provider-config.d.ts +0 -2
  62. package/dist/cli/config-manager/antigravity-provider-configuration.d.ts +0 -122
  63. package/dist/cli/config-manager/auth-plugins.d.ts +0 -3
  64. package/dist/cli/config-manager/bun-install.d.ts +0 -7
  65. package/dist/cli/config-manager/config-context.d.ts +0 -13
  66. package/dist/cli/config-manager/deep-merge-record.d.ts +0 -1
  67. package/dist/cli/config-manager/detect-current-config.d.ts +0 -2
  68. package/dist/cli/config-manager/ensure-config-directory-exists.d.ts +0 -1
  69. package/dist/cli/config-manager/format-error-with-suggestion.d.ts +0 -1
  70. package/dist/cli/config-manager/generate-matrixx-config.d.ts +0 -2
  71. package/dist/cli/config-manager/jsonc-provider-editor.d.ts +0 -1
  72. package/dist/cli/config-manager/npm-dist-tags.d.ts +0 -7
  73. package/dist/cli/config-manager/opencode-binary.d.ts +0 -2
  74. package/dist/cli/config-manager/opencode-config-format.d.ts +0 -6
  75. package/dist/cli/config-manager/parse-opencode-config-file.d.ts +0 -10
  76. package/dist/cli/config-manager/plugin-name-with-version.d.ts +0 -1
  77. package/dist/cli/config-manager/write-matrixx-config.d.ts +0 -2
  78. package/dist/cli/config-manager.d.ts +0 -14
  79. package/dist/cli/doctor/checks/config.d.ts +0 -2
  80. package/dist/cli/doctor/checks/dependencies.d.ts +0 -4
  81. package/dist/cli/doctor/checks/index.d.ts +0 -7
  82. package/dist/cli/doctor/checks/model-resolution-cache.d.ts +0 -2
  83. package/dist/cli/doctor/checks/model-resolution-config.d.ts +0 -2
  84. package/dist/cli/doctor/checks/model-resolution-details.d.ts +0 -6
  85. package/dist/cli/doctor/checks/model-resolution-effective-model.d.ts +0 -3
  86. package/dist/cli/doctor/checks/model-resolution-types.d.ts +0 -37
  87. package/dist/cli/doctor/checks/model-resolution-variant.d.ts +0 -5
  88. package/dist/cli/doctor/checks/model-resolution.d.ts +0 -6
  89. package/dist/cli/doctor/checks/system-binary.d.ts +0 -8
  90. package/dist/cli/doctor/checks/system-loaded-version.d.ts +0 -10
  91. package/dist/cli/doctor/checks/system-plugin.d.ts +0 -15
  92. package/dist/cli/doctor/checks/system.d.ts +0 -3
  93. package/dist/cli/doctor/checks/tools-gh.d.ts +0 -11
  94. package/dist/cli/doctor/checks/tools-lsp.d.ts +0 -6
  95. package/dist/cli/doctor/checks/tools-mcp.d.ts +0 -3
  96. package/dist/cli/doctor/checks/tools.d.ts +0 -3
  97. package/dist/cli/doctor/constants.d.ts +0 -31
  98. package/dist/cli/doctor/format-default.d.ts +0 -2
  99. package/dist/cli/doctor/format-shared.d.ts +0 -6
  100. package/dist/cli/doctor/format-status.d.ts +0 -2
  101. package/dist/cli/doctor/format-verbose.d.ts +0 -2
  102. package/dist/cli/doctor/formatter.d.ts +0 -3
  103. package/dist/cli/doctor/index.d.ts +0 -5
  104. package/dist/cli/doctor/runner.d.ts +0 -5
  105. package/dist/cli/doctor/types.d.ts +0 -96
  106. package/dist/cli/fallback-chain-resolution.d.ts +0 -10
  107. package/dist/cli/get-local-version/formatter.d.ts +0 -3
  108. package/dist/cli/get-local-version/get-local-version.d.ts +0 -2
  109. package/dist/cli/get-local-version/index.d.ts +0 -2
  110. package/dist/cli/get-local-version/types.d.ts +0 -13
  111. package/dist/cli/index.d.ts +0 -2
  112. package/dist/cli/index.js +0 -30691
  113. package/dist/cli/install-validators.d.ts +0 -31
  114. package/dist/cli/install.d.ts +0 -2
  115. package/dist/cli/mcp-oauth/index.d.ts +0 -6
  116. package/dist/cli/mcp-oauth/login.d.ts +0 -7
  117. package/dist/cli/mcp-oauth/logout.d.ts +0 -5
  118. package/dist/cli/mcp-oauth/status.d.ts +0 -1
  119. package/dist/cli/model-fallback-types.d.ts +0 -25
  120. package/dist/cli/model-fallback.d.ts +0 -4
  121. package/dist/cli/provider-availability.d.ts +0 -4
  122. package/dist/cli/provider-model-id-transform.d.ts +0 -1
  123. package/dist/cli/run/agent-resolver.d.ts +0 -5
  124. package/dist/cli/run/completion.d.ts +0 -2
  125. package/dist/cli/run/event-formatting.d.ts +0 -3
  126. package/dist/cli/run/event-handlers.d.ts +0 -10
  127. package/dist/cli/run/event-state.d.ts +0 -13
  128. package/dist/cli/run/event-stream-processor.d.ts +0 -3
  129. package/dist/cli/run/events.d.ts +0 -4
  130. package/dist/cli/run/index.d.ts +0 -9
  131. package/dist/cli/run/json-output.d.ts +0 -12
  132. package/dist/cli/run/on-complete-hook.d.ts +0 -7
  133. package/dist/cli/run/opencode-bin-path.d.ts +0 -3
  134. package/dist/cli/run/opencode-binary-resolver.d.ts +0 -4
  135. package/dist/cli/run/poll-for-completion.d.ts +0 -9
  136. package/dist/cli/run/runner.d.ts +0 -5
  137. package/dist/cli/run/server-connection.d.ts +0 -6
  138. package/dist/cli/run/session-resolver.d.ts +0 -6
  139. package/dist/cli/run/types.d.ts +0 -119
  140. package/dist/cli/tui-install-prompts.d.ts +0 -2
  141. package/dist/cli/tui-installer.d.ts +0 -2
  142. package/dist/cli/types.d.ts +0 -36
  143. package/dist/features/background-agent/background-task-notification-template.d.ts +0 -11
  144. package/dist/features/background-agent/opencode-client.d.ts +0 -2
  145. package/dist/features/background-agent/task-poller.d.ts +0 -21
  146. package/dist/features/claude-tasks/index.d.ts +0 -3
  147. package/dist/features/claude-tasks/session-storage.d.ts +0 -10
  148. package/dist/features/mcp-oauth/index.d.ts +0 -3
  149. package/dist/features/mcp-oauth/schema.d.ts +0 -5
  150. package/dist/features/run-continuation-state/constants.d.ts +0 -1
  151. package/dist/features/run-continuation-state/index.d.ts +0 -3
  152. package/dist/features/run-continuation-state/storage.d.ts +0 -6
  153. package/dist/features/run-continuation-state/types.d.ts +0 -13
  154. package/dist/features/tmux-subagent/cleanup.d.ts +0 -1
  155. package/dist/features/tmux-subagent/polling.d.ts +0 -1
  156. package/dist/hooks/session-recovery/recover-empty-content-message-sdk.d.ts +0 -13
  157. package/dist/hooks/task-reminder/hook.d.ts +0 -19
  158. package/dist/hooks/task-reminder/index.d.ts +0 -1
  159. package/dist/tools/delegate-agent/background-agent-executor.d.ts +0 -5
  160. package/dist/tools/delegate-agent/message-storage-directory.d.ts +0 -1
  161. package/dist/tools/delegate-agent/subagent-session-creator.d.ts +0 -10
  162. package/dist/tools/delegate-agent/tool-context-with-metadata.d.ts +0 -10
  163. package/postinstall.mjs +0 -43
@@ -1,122 +0,0 @@
1
- /**
2
- * Antigravity Provider Configuration
3
- *
4
- * IMPORTANT: Model names MUST use `antigravity-` prefix for stability.
5
- *
6
- * Since opencode-antigravity-auth v1.3.0, models use a variant system:
7
- * - `antigravity-gemini-3-pro` with variants: low, high
8
- * - `antigravity-gemini-3-flash` with variants: minimal, low, medium, high
9
- *
10
- * Legacy tier-suffixed names (e.g., `antigravity-gemini-3-pro-high`) still work
11
- * but variants are the recommended approach.
12
- *
13
- * @see https://github.com/NoeFabris/opencode-antigravity-auth#models
14
- */
15
- export declare const ANTIGRAVITY_PROVIDER_CONFIG: {
16
- google: {
17
- name: string;
18
- models: {
19
- "antigravity-gemini-3-pro": {
20
- name: string;
21
- limit: {
22
- context: number;
23
- output: number;
24
- };
25
- modalities: {
26
- input: string[];
27
- output: string[];
28
- };
29
- variants: {
30
- low: {
31
- thinkingLevel: string;
32
- };
33
- high: {
34
- thinkingLevel: string;
35
- };
36
- };
37
- };
38
- "antigravity-gemini-3-flash": {
39
- name: string;
40
- limit: {
41
- context: number;
42
- output: number;
43
- };
44
- modalities: {
45
- input: string[];
46
- output: string[];
47
- };
48
- variants: {
49
- minimal: {
50
- thinkingLevel: string;
51
- };
52
- low: {
53
- thinkingLevel: string;
54
- };
55
- medium: {
56
- thinkingLevel: string;
57
- };
58
- high: {
59
- thinkingLevel: string;
60
- };
61
- };
62
- };
63
- "antigravity-claude-sonnet-4-5": {
64
- name: string;
65
- limit: {
66
- context: number;
67
- output: number;
68
- };
69
- modalities: {
70
- input: string[];
71
- output: string[];
72
- };
73
- };
74
- "antigravity-claude-sonnet-4-5-thinking": {
75
- name: string;
76
- limit: {
77
- context: number;
78
- output: number;
79
- };
80
- modalities: {
81
- input: string[];
82
- output: string[];
83
- };
84
- variants: {
85
- low: {
86
- thinkingConfig: {
87
- thinkingBudget: number;
88
- };
89
- };
90
- max: {
91
- thinkingConfig: {
92
- thinkingBudget: number;
93
- };
94
- };
95
- };
96
- };
97
- "antigravity-claude-opus-4-5-thinking": {
98
- name: string;
99
- limit: {
100
- context: number;
101
- output: number;
102
- };
103
- modalities: {
104
- input: string[];
105
- output: string[];
106
- };
107
- variants: {
108
- low: {
109
- thinkingConfig: {
110
- thinkingBudget: number;
111
- };
112
- };
113
- max: {
114
- thinkingConfig: {
115
- thinkingBudget: number;
116
- };
117
- };
118
- };
119
- };
120
- };
121
- };
122
- };
@@ -1,3 +0,0 @@
1
- import type { ConfigMergeResult, InstallConfig } from "../types";
2
- export declare function fetchLatestVersion(packageName: string): Promise<string | null>;
3
- export declare function addAuthPlugins(config: InstallConfig): Promise<ConfigMergeResult>;
@@ -1,7 +0,0 @@
1
- export interface BunInstallResult {
2
- success: boolean;
3
- timedOut?: boolean;
4
- error?: string;
5
- }
6
- export declare function runBunInstall(): Promise<boolean>;
7
- export declare function runBunInstallWithDetails(): Promise<BunInstallResult>;
@@ -1,13 +0,0 @@
1
- import type { OpenCodeBinaryType, OpenCodeConfigPaths } from "../../shared/opencode-config-dir-types";
2
- export interface ConfigContext {
3
- binary: OpenCodeBinaryType;
4
- version: string | null;
5
- paths: OpenCodeConfigPaths;
6
- }
7
- export declare function initConfigContext(binary: OpenCodeBinaryType, version: string | null): void;
8
- export declare function getConfigContext(): ConfigContext;
9
- export declare function resetConfigContext(): void;
10
- export declare function getConfigDir(): string;
11
- export declare function getConfigJson(): string;
12
- export declare function getConfigJsonc(): string;
13
- export declare function getMatrixxConfigPath(): string;
@@ -1 +0,0 @@
1
- export declare function deepMergeRecord<TTarget extends Record<string, unknown>>(target: TTarget, source: Partial<TTarget>): TTarget;
@@ -1,2 +0,0 @@
1
- import type { DetectedConfig } from "../types";
2
- export declare function detectCurrentConfig(): DetectedConfig;
@@ -1 +0,0 @@
1
- export declare function ensureConfigDirectoryExists(): void;
@@ -1 +0,0 @@
1
- export declare function formatErrorWithSuggestion(err: unknown, context: string): string;
@@ -1,2 +0,0 @@
1
- import type { InstallConfig } from "../types";
2
- export declare function generateMatrixxConfig(installConfig: InstallConfig): Record<string, unknown>;
@@ -1 +0,0 @@
1
- export declare function modifyProviderInJsonc(content: string, newProviderValue: Record<string, unknown>): string;
@@ -1,7 +0,0 @@
1
- export interface NpmDistTags {
2
- latest?: string;
3
- beta?: string;
4
- next?: string;
5
- [tag: string]: string | undefined;
6
- }
7
- export declare function fetchNpmDistTags(packageName: string): Promise<NpmDistTags | null>;
@@ -1,2 +0,0 @@
1
- export declare function isOpenCodeInstalled(): Promise<boolean>;
2
- export declare function getOpenCodeVersion(): Promise<string | null>;
@@ -1,6 +0,0 @@
1
- type ConfigFormat = "json" | "jsonc" | "none";
2
- export declare function detectConfigFormat(): {
3
- format: ConfigFormat;
4
- path: string;
5
- };
6
- export {};
@@ -1,10 +0,0 @@
1
- interface ParseConfigResult {
2
- config: OpenCodeConfig | null;
3
- error?: string;
4
- }
5
- export interface OpenCodeConfig {
6
- plugin?: string[];
7
- [key: string]: unknown;
8
- }
9
- export declare function parseOpenCodeConfigFileWithError(path: string): ParseConfigResult;
10
- export {};
@@ -1 +0,0 @@
1
- export declare function getPluginNameWithVersion(currentVersion: string): Promise<string>;
@@ -1,2 +0,0 @@
1
- import type { ConfigMergeResult, InstallConfig } from "../types";
2
- export declare function writeMatrixxConfig(installConfig: InstallConfig): ConfigMergeResult;
@@ -1,14 +0,0 @@
1
- export { addPluginToOpenCodeConfig } from "./config-manager/add-plugin-to-opencode-config";
2
- export { addProviderConfig } from "./config-manager/add-provider-config";
3
- export { ANTIGRAVITY_PROVIDER_CONFIG } from "./config-manager/antigravity-provider-configuration";
4
- export { addAuthPlugins, fetchLatestVersion } from "./config-manager/auth-plugins";
5
- export type { BunInstallResult } from "./config-manager/bun-install";
6
- export { runBunInstall, runBunInstallWithDetails } from "./config-manager/bun-install";
7
- export type { ConfigContext } from "./config-manager/config-context";
8
- export { getConfigContext, initConfigContext, resetConfigContext, } from "./config-manager/config-context";
9
- export { detectCurrentConfig } from "./config-manager/detect-current-config";
10
- export { generateMatrixxConfig } from "./config-manager/generate-matrixx-config";
11
- export { fetchNpmDistTags } from "./config-manager/npm-dist-tags";
12
- export { getOpenCodeVersion, isOpenCodeInstalled } from "./config-manager/opencode-binary";
13
- export { getPluginNameWithVersion } from "./config-manager/plugin-name-with-version";
14
- export { writeMatrixxConfig } from "./config-manager/write-matrixx-config";
@@ -1,2 +0,0 @@
1
- import type { CheckResult } from "../types";
2
- export declare function checkConfig(): Promise<CheckResult>;
@@ -1,4 +0,0 @@
1
- import type { DependencyInfo } from "../types";
2
- export declare function checkAstGrepCli(): Promise<DependencyInfo>;
3
- export declare function checkAstGrepNapi(): Promise<DependencyInfo>;
4
- export declare function checkCommentChecker(): Promise<DependencyInfo>;
@@ -1,7 +0,0 @@
1
- import type { CheckDefinition } from "../types";
2
- import { gatherSystemInfo } from "./system";
3
- import { gatherToolsSummary } from "./tools";
4
- export * from "./model-resolution-types";
5
- export type { CheckDefinition };
6
- export { gatherSystemInfo, gatherToolsSummary };
7
- export declare function getAllCheckDefinitions(): CheckDefinition[];
@@ -1,2 +0,0 @@
1
- import type { AvailableModelsInfo } from "./model-resolution-types";
2
- export declare function loadAvailableModelsFromCache(): AvailableModelsInfo;
@@ -1,2 +0,0 @@
1
- import type { MatrixxConfig } from "./model-resolution-types";
2
- export declare function loadMatrixxConfig(): MatrixxConfig | null;
@@ -1,6 +0,0 @@
1
- import type { AvailableModelsInfo, MatrixxConfig, ModelResolutionInfo } from "./model-resolution-types";
2
- export declare function buildModelResolutionDetails(options: {
3
- info: ModelResolutionInfo;
4
- available: AvailableModelsInfo;
5
- config: MatrixxConfig;
6
- }): string[];
@@ -1,3 +0,0 @@
1
- import type { ModelRequirement } from "../../../shared/model-requirements";
2
- export declare function getEffectiveModel(requirement: ModelRequirement, userOverride?: string): string;
3
- export declare function buildEffectiveResolution(requirement: ModelRequirement, userOverride?: string): string;
@@ -1,37 +0,0 @@
1
- import type { ModelRequirement } from "../../../shared/model-requirements";
2
- export interface AgentResolutionInfo {
3
- name: string;
4
- requirement: ModelRequirement;
5
- userOverride?: string;
6
- userVariant?: string;
7
- effectiveModel: string;
8
- effectiveResolution: string;
9
- }
10
- export interface CategoryResolutionInfo {
11
- name: string;
12
- requirement: ModelRequirement;
13
- userOverride?: string;
14
- userVariant?: string;
15
- effectiveModel: string;
16
- effectiveResolution: string;
17
- }
18
- export interface ModelResolutionInfo {
19
- agents: AgentResolutionInfo[];
20
- categories: CategoryResolutionInfo[];
21
- }
22
- export interface MatrixxConfig {
23
- agents?: Record<string, {
24
- model?: string;
25
- variant?: string;
26
- category?: string;
27
- }>;
28
- categories?: Record<string, {
29
- model?: string;
30
- variant?: string;
31
- }>;
32
- }
33
- export interface AvailableModelsInfo {
34
- providers: string[];
35
- modelCount: number;
36
- cacheExists: boolean;
37
- }
@@ -1,5 +0,0 @@
1
- import type { ModelRequirement } from "../../../shared/model-requirements";
2
- import type { MatrixxConfig } from "./model-resolution-types";
3
- export declare function formatModelWithVariant(model: string, variant?: string): string;
4
- export declare function getEffectiveVariant(agentName: string, requirement: ModelRequirement, config: MatrixxConfig): string | undefined;
5
- export declare function getCategoryEffectiveVariant(categoryName: string, requirement: ModelRequirement, config: MatrixxConfig): string | undefined;
@@ -1,6 +0,0 @@
1
- import type { CheckResult } from "../types";
2
- import type { MatrixxConfig, ModelResolutionInfo } from "./model-resolution-types";
3
- export declare function getModelResolutionInfo(): ModelResolutionInfo;
4
- export declare function getModelResolutionInfoWithOverrides(config: MatrixxConfig): ModelResolutionInfo;
5
- export declare function checkModels(): Promise<CheckResult>;
6
- export declare const checkModelResolution: typeof checkModels;
@@ -1,8 +0,0 @@
1
- interface OpenCodeBinaryInfo {
2
- binary: string;
3
- path: string;
4
- }
5
- export declare function findOpenCodeBinary(): Promise<OpenCodeBinaryInfo | null>;
6
- export declare function getOpenCodeVersion(binaryPath: string, platform?: NodeJS.Platform): Promise<string | null>;
7
- export declare function compareVersions(current: string, minimum: string): boolean;
8
- export {};
@@ -1,10 +0,0 @@
1
- interface LoadedVersionInfo {
2
- cacheDir: string;
3
- cachePackagePath: string;
4
- installedPackagePath: string;
5
- expectedVersion: string | null;
6
- loadedVersion: string | null;
7
- }
8
- export declare function getLoadedPluginVersion(): LoadedVersionInfo;
9
- export declare function getLatestPluginVersion(currentVersion: string | null): Promise<string | null>;
10
- export {};
@@ -1,15 +0,0 @@
1
- export interface PluginInfo {
2
- registered: boolean;
3
- configPath: string | null;
4
- entry: string | null;
5
- isPinned: boolean;
6
- pinnedVersion: string | null;
7
- isLocalDev: boolean;
8
- }
9
- declare function detectConfigPath(): string | null;
10
- declare function findPluginEntry(entries: string[]): {
11
- entry: string;
12
- isLocalDev: boolean;
13
- } | null;
14
- export declare function getPluginInfo(): PluginInfo;
15
- export { detectConfigPath, findPluginEntry };
@@ -1,3 +0,0 @@
1
- import type { CheckResult, SystemInfo } from "../types";
2
- export declare function gatherSystemInfo(): Promise<SystemInfo>;
3
- export declare function checkSystem(): Promise<CheckResult>;
@@ -1,11 +0,0 @@
1
- interface GhCliInfo {
2
- installed: boolean;
3
- version: string | null;
4
- path: string | null;
5
- authenticated: boolean;
6
- username: string | null;
7
- scopes: string[];
8
- error: string | null;
9
- }
10
- export declare function getGhCliInfo(): Promise<GhCliInfo>;
11
- export {};
@@ -1,6 +0,0 @@
1
- import type { LspServerInfo } from "../types";
2
- export declare function getLspServersInfo(): LspServerInfo[];
3
- export declare function getLspServerStats(servers: LspServerInfo[]): {
4
- installed: number;
5
- total: number;
6
- };
@@ -1,3 +0,0 @@
1
- import type { McpServerInfo } from "../types";
2
- export declare function getBuiltinMcpInfo(): McpServerInfo[];
3
- export declare function getUserMcpInfo(): McpServerInfo[];
@@ -1,3 +0,0 @@
1
- import type { CheckResult, ToolsSummary } from "../types";
2
- export declare function gatherToolsSummary(): Promise<ToolsSummary>;
3
- export declare function checkTools(): Promise<CheckResult>;
@@ -1,31 +0,0 @@
1
- export declare const SYMBOLS: {
2
- readonly check: string;
3
- readonly cross: string;
4
- readonly warn: string;
5
- readonly info: string;
6
- readonly arrow: string;
7
- readonly bullet: string;
8
- readonly skip: string;
9
- };
10
- export declare const STATUS_COLORS: {
11
- readonly pass: import("picocolors/types").Formatter;
12
- readonly fail: import("picocolors/types").Formatter;
13
- readonly warn: import("picocolors/types").Formatter;
14
- readonly skip: import("picocolors/types").Formatter;
15
- };
16
- export declare const CHECK_IDS: {
17
- readonly SYSTEM: "system";
18
- readonly CONFIG: "config";
19
- readonly TOOLS: "tools";
20
- readonly MODELS: "models";
21
- };
22
- export declare const CHECK_NAMES: Record<string, string>;
23
- export declare const EXIT_CODES: {
24
- readonly SUCCESS: 0;
25
- readonly FAILURE: 1;
26
- };
27
- export declare const MIN_OPENCODE_VERSION = "1.0.150";
28
- export declare const PACKAGE_NAME = "matrixx";
29
- export declare const NPM_PACKAGE_NAME = "opencode-matrixx";
30
- export declare const LEGACY_NPM_PACKAGE_NAME = "matrixx";
31
- export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
@@ -1,2 +0,0 @@
1
- import type { DoctorResult } from "./types";
2
- export declare function formatDefault(result: DoctorResult): string;
@@ -1,6 +0,0 @@
1
- import type { CheckStatus, DoctorIssue } from "./types";
2
- export declare function formatStatusSymbol(status: CheckStatus): string;
3
- export declare function formatStatusMark(available: boolean): string;
4
- export declare function stripAnsi(str: string): string;
5
- export declare function formatHeader(): string;
6
- export declare function formatIssue(issue: DoctorIssue, index: number): string;
@@ -1,2 +0,0 @@
1
- import type { DoctorResult } from "./types";
2
- export declare function formatStatus(result: DoctorResult): string;
@@ -1,2 +0,0 @@
1
- import type { DoctorResult } from "./types";
2
- export declare function formatVerbose(result: DoctorResult): string;
@@ -1,3 +0,0 @@
1
- import type { DoctorMode, DoctorResult } from "./types";
2
- export declare function formatDoctorOutput(result: DoctorResult, mode: DoctorMode): string;
3
- export declare function formatJsonOutput(result: DoctorResult): string;
@@ -1,5 +0,0 @@
1
- import type { DoctorOptions } from "./types";
2
- export declare function doctor(options?: DoctorOptions): Promise<number>;
3
- export { formatDoctorOutput, formatJsonOutput } from "./formatter";
4
- export { runDoctor } from "./runner";
5
- export * from "./types";
@@ -1,5 +0,0 @@
1
- import type { CheckDefinition, CheckResult, DoctorOptions, DoctorResult, DoctorSummary } from "./types";
2
- export declare function runCheck(check: CheckDefinition): Promise<CheckResult>;
3
- export declare function calculateSummary(results: CheckResult[], duration: number): DoctorSummary;
4
- export declare function determineExitCode(results: CheckResult[]): number;
5
- export declare function runDoctor(options: DoctorOptions): Promise<DoctorResult>;
@@ -1,96 +0,0 @@
1
- export type DoctorMode = "default" | "status" | "verbose";
2
- export interface DoctorOptions {
3
- mode: DoctorMode;
4
- json?: boolean;
5
- }
6
- export interface DoctorIssue {
7
- title: string;
8
- description: string;
9
- fix?: string;
10
- affects?: string[];
11
- severity: "error" | "warning";
12
- }
13
- export type CheckStatus = "pass" | "fail" | "warn" | "skip";
14
- export interface CheckResult {
15
- name: string;
16
- status: CheckStatus;
17
- message: string;
18
- details?: string[];
19
- issues: DoctorIssue[];
20
- duration?: number;
21
- }
22
- type CheckFunction = () => Promise<CheckResult>;
23
- export interface CheckDefinition {
24
- id: string;
25
- name: string;
26
- check: CheckFunction;
27
- critical?: boolean;
28
- }
29
- export interface SystemInfo {
30
- opencodeVersion: string | null;
31
- opencodePath: string | null;
32
- pluginVersion: string | null;
33
- loadedVersion: string | null;
34
- bunVersion: string | null;
35
- configPath: string | null;
36
- configValid: boolean;
37
- isLocalDev: boolean;
38
- }
39
- export interface ToolsSummary {
40
- lspInstalled: number;
41
- lspTotal: number;
42
- astGrepCli: boolean;
43
- astGrepNapi: boolean;
44
- commentChecker: boolean;
45
- ghCli: {
46
- installed: boolean;
47
- authenticated: boolean;
48
- username: string | null;
49
- };
50
- mcpBuiltin: string[];
51
- mcpUser: string[];
52
- }
53
- export interface DoctorSummary {
54
- total: number;
55
- passed: number;
56
- failed: number;
57
- warnings: number;
58
- skipped: number;
59
- duration: number;
60
- }
61
- export interface DoctorResult {
62
- results: CheckResult[];
63
- systemInfo: SystemInfo;
64
- tools: ToolsSummary;
65
- summary: DoctorSummary;
66
- exitCode: number;
67
- }
68
- export interface PluginInfo {
69
- registered: boolean;
70
- configPath: string | null;
71
- entry: string | null;
72
- isPinned: boolean;
73
- pinnedVersion: string | null;
74
- }
75
- export interface DependencyInfo {
76
- name: string;
77
- required: boolean;
78
- installed: boolean;
79
- version: string | null;
80
- path: string | null;
81
- installHint?: string;
82
- }
83
- export interface LspServerInfo {
84
- id: string;
85
- installed: boolean;
86
- extensions: string[];
87
- source: "builtin" | "config" | "plugin";
88
- }
89
- export interface McpServerInfo {
90
- id: string;
91
- type: "builtin" | "user";
92
- enabled: boolean;
93
- valid: boolean;
94
- error?: string;
95
- }
96
- export {};
@@ -1,10 +0,0 @@
1
- import { type FallbackEntry } from "../shared/model-requirements";
2
- import type { ProviderAvailability } from "./model-fallback-types";
3
- export declare function resolveModelFromChain(fallbackChain: FallbackEntry[], availability: ProviderAvailability): {
4
- model: string;
5
- variant?: string;
6
- } | null;
7
- export declare function getMorpheusFallbackChain(): FallbackEntry[];
8
- export declare function isAnyFallbackEntryAvailable(fallbackChain: FallbackEntry[], availability: ProviderAvailability): boolean;
9
- export declare function isRequiredModelAvailable(requiresModel: string, fallbackChain: FallbackEntry[], availability: ProviderAvailability): boolean;
10
- export declare function isRequiredProviderAvailable(requiredProviders: string[], availability: ProviderAvailability): boolean;
@@ -1,3 +0,0 @@
1
- import type { VersionInfo } from "./types";
2
- export declare function formatVersionOutput(info: VersionInfo): string;
3
- export declare function formatJsonOutput(info: VersionInfo): string;
@@ -1,2 +0,0 @@
1
- import type { GetLocalVersionOptions } from "./types";
2
- export declare function getLocalVersion(options?: GetLocalVersionOptions): Promise<number>;
@@ -1,2 +0,0 @@
1
- export { getLocalVersion } from "./get-local-version";
2
- export * from "./types";
@@ -1,13 +0,0 @@
1
- export interface VersionInfo {
2
- currentVersion: string | null;
3
- latestVersion: string | null;
4
- isUpToDate: boolean;
5
- isLocalDev: boolean;
6
- isPinned: boolean;
7
- pinnedVersion: string | null;
8
- status: "up-to-date" | "outdated" | "local-dev" | "pinned" | "error" | "unknown";
9
- }
10
- export interface GetLocalVersionOptions {
11
- directory?: string;
12
- json?: boolean;
13
- }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env bun
2
- export {};