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.
- package/README.md +150 -43
- package/dist/agents/bdd-contract.d.ts +7 -0
- package/dist/agents/builtin-agents/architect-agent.d.ts +1 -0
- package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
- package/dist/agents/builtin-agents/{hephaestus-agent.d.ts → keymaker-agent.d.ts} +2 -0
- package/dist/agents/builtin-agents/model-resolution.d.ts +2 -1
- package/dist/agents/builtin-agents/morpheus-agent.d.ts +2 -0
- package/dist/agents/builtin-agents.d.ts +1 -1
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -1
- package/dist/agents/env-context.d.ts +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/merovingian.d.ts +2 -2
- package/dist/agents/mouse/agent.d.ts +5 -2
- package/dist/agents/mouse/deepseek.d.ts +16 -0
- package/dist/agents/mouse/index.d.ts +3 -0
- package/dist/agents/mouse/mimo.d.ts +15 -0
- package/dist/agents/mouse/qwen.d.ts +16 -0
- package/dist/agents/mouse/shared.d.ts +7 -0
- package/dist/agents/types.d.ts +4 -1
- package/dist/config/index.d.ts +3 -4
- package/dist/config/presets.d.ts +4 -0
- package/dist/config/resolve-tiers.d.ts +32 -0
- package/dist/config/schema/agent-names.d.ts +9 -17
- package/dist/config/schema/agent-overrides.d.ts +133 -0
- package/dist/config/schema/assembly.d.ts +13 -0
- package/dist/config/schema/categories.d.ts +16 -1
- package/dist/config/schema/commands.d.ts +10 -0
- package/dist/config/schema/dcp.d.ts +16 -0
- package/dist/config/schema/hooks.d.ts +2 -1
- package/dist/config/schema/matrixx-config.d.ts +169 -19
- package/dist/config/schema/security.d.ts +0 -5
- package/dist/config/schema.d.ts +4 -1
- package/dist/create-hooks.d.ts +2 -0
- package/dist/features/assembly-state/index.d.ts +1 -0
- package/dist/features/assembly-state/manager.d.ts +6 -0
- package/dist/features/background-agent/error-helpers.d.ts +6 -0
- package/dist/features/background-agent/manager.d.ts +6 -8
- package/dist/features/background-agent/message-dir.d.ts +5 -0
- package/dist/features/background-agent/notification-builder.d.ts +17 -0
- package/dist/features/bdd/schema.d.ts +434 -0
- package/dist/features/bdd/types.d.ts +2 -0
- package/dist/features/builtin-commands/templates/assembly.d.ts +1 -0
- package/dist/features/builtin-commands/templates/bdd-backend.d.ts +1 -0
- package/dist/features/builtin-commands/templates/bdd-contract.d.ts +1 -0
- package/dist/features/builtin-commands/templates/bdd-frontend.d.ts +1 -0
- package/dist/features/builtin-commands/templates/bdd-pipeline.d.ts +1 -0
- package/dist/features/builtin-commands/templates/bdd-tests.d.ts +1 -0
- package/dist/features/builtin-commands/templates/dcp-profile.d.ts +1 -0
- package/dist/features/builtin-commands/templates/research.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ultrawork.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +2 -2
- package/dist/features/builtin-skills/lazy-skill-helper.d.ts +17 -0
- package/dist/features/builtin-skills/skills/bdd-backend.d.ts +3 -0
- package/dist/features/builtin-skills/skills/bdd-contract.d.ts +3 -0
- package/dist/features/builtin-skills/skills/bdd-frontend.d.ts +3 -0
- package/dist/features/builtin-skills/skills/bdd-tests.d.ts +3 -0
- package/dist/features/builtin-skills/skills/docker-master.d.ts +2 -0
- package/dist/features/builtin-skills/skills/index.d.ts +7 -0
- package/dist/features/builtin-skills/skills/remove-ai-slops.d.ts +2 -0
- package/dist/features/builtin-skills/skills/ulw-research.d.ts +2 -0
- package/dist/features/command-loader/loader.d.ts +3 -0
- package/dist/features/hook-message-injector/injector.d.ts +1 -2
- package/dist/features/mission-state/constants.d.ts +10 -0
- package/dist/features/mission-state/index.d.ts +2 -0
- package/dist/features/mission-state/plan-storage.d.ts +48 -0
- package/dist/features/mission-state/rehydrate.d.ts +21 -0
- package/dist/features/mission-state/types.d.ts +46 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +1 -3
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +1 -1
- package/dist/features/opencode-skill-loader/types.d.ts +1 -1
- package/dist/features/skill-mcp-manager/connection-type.d.ts +2 -3
- package/dist/features/skill-mcp-manager/connection.d.ts +3 -4
- package/dist/features/skill-mcp-manager/manager.d.ts +2 -3
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +3 -3
- package/dist/features/skill-mcp-manager/types.d.ts +16 -4
- package/dist/features/tmux-subagent/index.d.ts +0 -2
- package/dist/features/ultrawork-state/index.d.ts +1 -0
- package/dist/features/ultrawork-state/manager.d.ts +6 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +0 -2
- package/dist/hooks/auto-update-checker/index.d.ts +1 -1
- package/dist/hooks/env-context-injector/index.d.ts +23 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/interactive-bash-session/parser.d.ts +0 -6
- package/dist/hooks/plan-persister/hook.d.ts +20 -0
- package/dist/hooks/plan-persister/index.d.ts +2 -0
- package/dist/index.js +44832 -26999
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
- package/dist/plugin-config.d.ts +1 -1
- package/dist/plugin-handlers/agent-config-handler.d.ts +2 -0
- package/dist/plugin-handlers/plugin-components-loader.d.ts +1 -1
- package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -0
- package/dist/shared/index.d.ts +2 -1
- package/dist/shared/merge-categories.d.ts +4 -0
- package/dist/shared/model-resolution-pipeline.d.ts +1 -24
- package/dist/shared/model-resolution-types.d.ts +4 -0
- package/dist/shared/model-resolver.d.ts +4 -2
- package/dist/shared/model-tiers.d.ts +31 -0
- package/dist/shared/opencode-config-dir.d.ts +1 -2
- package/dist/shared/session-directory-resolver.d.ts +0 -6
- package/dist/shared/tier-resolver.d.ts +26 -0
- package/dist/shared/tool-guards.d.ts +16 -0
- package/dist/tools/assembly/assembly-executor.d.ts +17 -0
- package/dist/tools/assembly/constants.d.ts +6 -0
- package/dist/tools/assembly/index.d.ts +2 -0
- package/dist/tools/assembly/provider-selector.d.ts +3 -0
- package/dist/tools/assembly/synthesizer.d.ts +3 -0
- package/dist/tools/assembly/tool-description.d.ts +2 -0
- package/dist/tools/assembly/tools.d.ts +10 -0
- package/dist/tools/assembly/types.d.ts +25 -0
- package/dist/tools/assembly/voter-spawner.d.ts +3 -0
- package/dist/tools/bdd-create-contract/constants.d.ts +1 -0
- package/dist/tools/bdd-create-contract/index.d.ts +3 -0
- package/dist/tools/bdd-create-contract/tools.d.ts +3 -0
- package/dist/tools/bdd-create-contract/types.d.ts +12 -0
- package/dist/tools/bdd-parse-gherkin/constants.d.ts +1 -0
- package/dist/tools/bdd-parse-gherkin/index.d.ts +3 -0
- package/dist/tools/bdd-parse-gherkin/tools.d.ts +5 -0
- package/dist/tools/bdd-parse-gherkin/types.d.ts +9 -0
- package/dist/tools/bdd-pipeline/analysis-report-sections.d.ts +10 -0
- package/dist/tools/bdd-pipeline/analysis-report.d.ts +9 -0
- package/dist/tools/bdd-pipeline/constants.d.ts +4 -0
- package/dist/tools/bdd-pipeline/feature-resolver.d.ts +5 -0
- package/dist/{features/run-continuation-state → tools/bdd-pipeline}/index.d.ts +1 -1
- package/dist/tools/bdd-pipeline/pipeline-runner.d.ts +6 -0
- package/dist/tools/bdd-pipeline/subagent-runner.d.ts +14 -0
- package/dist/tools/bdd-pipeline/tools.d.ts +5 -0
- package/dist/tools/bdd-pipeline/types.d.ts +74 -0
- package/dist/tools/bdd-validate-contract/index.d.ts +1 -0
- package/dist/tools/bdd-validate-contract/tools.d.ts +21 -0
- package/dist/tools/delegate-task/categories.d.ts +7 -0
- package/dist/tools/delegate-task/category-resolver.d.ts +6 -0
- package/dist/tools/delegate-task/complexity-constants.d.ts +24 -0
- package/dist/tools/delegate-task/complexity-scorer.d.ts +31 -0
- package/dist/tools/delegate-task/complexity-types.d.ts +10 -0
- package/dist/tools/delegate-task/executor-types.d.ts +1 -0
- package/dist/tools/delegate-task/index.d.ts +3 -0
- package/dist/tools/delegate-task/types.d.ts +8 -0
- package/dist/tools/handoff/constants.d.ts +0 -3
- package/dist/tools/index.d.ts +5 -0
- package/dist/tools/task/todo-sync.d.ts +1 -1
- package/package.json +22 -32
- package/bin/matrixx.js +0 -80
- package/bin/platform.js +0 -38
- package/bin/platform.test.ts +0 -148
- package/dist/agents/builtin-agents/environment-context.d.ts +0 -2
- package/dist/cli/cli-installer.d.ts +0 -2
- package/dist/cli/cli-program.d.ts +0 -1
- package/dist/cli/config-manager/add-plugin-to-opencode-config.d.ts +0 -2
- package/dist/cli/config-manager/add-provider-config.d.ts +0 -2
- package/dist/cli/config-manager/antigravity-provider-configuration.d.ts +0 -122
- package/dist/cli/config-manager/auth-plugins.d.ts +0 -3
- package/dist/cli/config-manager/bun-install.d.ts +0 -7
- package/dist/cli/config-manager/config-context.d.ts +0 -13
- package/dist/cli/config-manager/deep-merge-record.d.ts +0 -1
- package/dist/cli/config-manager/detect-current-config.d.ts +0 -2
- package/dist/cli/config-manager/ensure-config-directory-exists.d.ts +0 -1
- package/dist/cli/config-manager/format-error-with-suggestion.d.ts +0 -1
- package/dist/cli/config-manager/generate-matrixx-config.d.ts +0 -2
- package/dist/cli/config-manager/jsonc-provider-editor.d.ts +0 -1
- package/dist/cli/config-manager/npm-dist-tags.d.ts +0 -7
- package/dist/cli/config-manager/opencode-binary.d.ts +0 -2
- package/dist/cli/config-manager/opencode-config-format.d.ts +0 -6
- package/dist/cli/config-manager/parse-opencode-config-file.d.ts +0 -10
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +0 -1
- package/dist/cli/config-manager/write-matrixx-config.d.ts +0 -2
- package/dist/cli/config-manager.d.ts +0 -14
- package/dist/cli/doctor/checks/config.d.ts +0 -2
- package/dist/cli/doctor/checks/dependencies.d.ts +0 -4
- package/dist/cli/doctor/checks/index.d.ts +0 -7
- package/dist/cli/doctor/checks/model-resolution-cache.d.ts +0 -2
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +0 -2
- package/dist/cli/doctor/checks/model-resolution-details.d.ts +0 -6
- package/dist/cli/doctor/checks/model-resolution-effective-model.d.ts +0 -3
- package/dist/cli/doctor/checks/model-resolution-types.d.ts +0 -37
- package/dist/cli/doctor/checks/model-resolution-variant.d.ts +0 -5
- package/dist/cli/doctor/checks/model-resolution.d.ts +0 -6
- package/dist/cli/doctor/checks/system-binary.d.ts +0 -8
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +0 -10
- package/dist/cli/doctor/checks/system-plugin.d.ts +0 -15
- package/dist/cli/doctor/checks/system.d.ts +0 -3
- package/dist/cli/doctor/checks/tools-gh.d.ts +0 -11
- package/dist/cli/doctor/checks/tools-lsp.d.ts +0 -6
- package/dist/cli/doctor/checks/tools-mcp.d.ts +0 -3
- package/dist/cli/doctor/checks/tools.d.ts +0 -3
- package/dist/cli/doctor/constants.d.ts +0 -31
- package/dist/cli/doctor/format-default.d.ts +0 -2
- package/dist/cli/doctor/format-shared.d.ts +0 -6
- package/dist/cli/doctor/format-status.d.ts +0 -2
- package/dist/cli/doctor/format-verbose.d.ts +0 -2
- package/dist/cli/doctor/formatter.d.ts +0 -3
- package/dist/cli/doctor/index.d.ts +0 -5
- package/dist/cli/doctor/runner.d.ts +0 -5
- package/dist/cli/doctor/types.d.ts +0 -96
- package/dist/cli/fallback-chain-resolution.d.ts +0 -10
- package/dist/cli/get-local-version/formatter.d.ts +0 -3
- package/dist/cli/get-local-version/get-local-version.d.ts +0 -2
- package/dist/cli/get-local-version/index.d.ts +0 -2
- package/dist/cli/get-local-version/types.d.ts +0 -13
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js +0 -30691
- package/dist/cli/install-validators.d.ts +0 -31
- package/dist/cli/install.d.ts +0 -2
- package/dist/cli/mcp-oauth/index.d.ts +0 -6
- package/dist/cli/mcp-oauth/login.d.ts +0 -7
- package/dist/cli/mcp-oauth/logout.d.ts +0 -5
- package/dist/cli/mcp-oauth/status.d.ts +0 -1
- package/dist/cli/model-fallback-types.d.ts +0 -25
- package/dist/cli/model-fallback.d.ts +0 -4
- package/dist/cli/provider-availability.d.ts +0 -4
- package/dist/cli/provider-model-id-transform.d.ts +0 -1
- package/dist/cli/run/agent-resolver.d.ts +0 -5
- package/dist/cli/run/completion.d.ts +0 -2
- package/dist/cli/run/event-formatting.d.ts +0 -3
- package/dist/cli/run/event-handlers.d.ts +0 -10
- package/dist/cli/run/event-state.d.ts +0 -13
- package/dist/cli/run/event-stream-processor.d.ts +0 -3
- package/dist/cli/run/events.d.ts +0 -4
- package/dist/cli/run/index.d.ts +0 -9
- package/dist/cli/run/json-output.d.ts +0 -12
- package/dist/cli/run/on-complete-hook.d.ts +0 -7
- package/dist/cli/run/opencode-bin-path.d.ts +0 -3
- package/dist/cli/run/opencode-binary-resolver.d.ts +0 -4
- package/dist/cli/run/poll-for-completion.d.ts +0 -9
- package/dist/cli/run/runner.d.ts +0 -5
- package/dist/cli/run/server-connection.d.ts +0 -6
- package/dist/cli/run/session-resolver.d.ts +0 -6
- package/dist/cli/run/types.d.ts +0 -119
- package/dist/cli/tui-install-prompts.d.ts +0 -2
- package/dist/cli/tui-installer.d.ts +0 -2
- package/dist/cli/types.d.ts +0 -36
- package/dist/config/profiles.d.ts +0 -4
- package/dist/config/schema/claude-code.d.ts +0 -10
- package/dist/features/background-agent/background-task-notification-template.d.ts +0 -11
- package/dist/features/background-agent/opencode-client.d.ts +0 -2
- package/dist/features/background-agent/task-poller.d.ts +0 -21
- package/dist/features/claude-code-command-loader/loader.d.ts +0 -6
- package/dist/features/claude-code-mcp-loader/index.d.ts +0 -10
- package/dist/features/claude-code-mcp-loader/loader.d.ts +0 -3
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +0 -2
- package/dist/features/claude-code-mcp-loader/types.d.ts +0 -39
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +0 -3
- package/dist/features/claude-code-plugin-loader/command-loader.d.ts +0 -3
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +0 -2
- package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +0 -2
- package/dist/features/claude-code-plugin-loader/index.d.ts +0 -10
- package/dist/features/claude-code-plugin-loader/loader.d.ts +0 -20
- package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +0 -3
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
- package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +0 -3
- package/dist/features/claude-code-plugin-loader/types.d.ts +0 -187
- package/dist/features/claude-tasks/index.d.ts +0 -3
- package/dist/features/claude-tasks/session-storage.d.ts +0 -10
- package/dist/features/mcp-oauth/index.d.ts +0 -3
- package/dist/features/mcp-oauth/schema.d.ts +0 -5
- package/dist/features/run-continuation-state/constants.d.ts +0 -1
- package/dist/features/run-continuation-state/storage.d.ts +0 -6
- package/dist/features/run-continuation-state/types.d.ts +0 -13
- package/dist/features/tmux-subagent/cleanup.d.ts +0 -1
- package/dist/features/tmux-subagent/polling.d.ts +0 -1
- package/dist/hooks/session-recovery/recover-empty-content-message-sdk.d.ts +0 -13
- package/dist/hooks/task-reminder/hook.d.ts +0 -19
- package/dist/hooks/task-reminder/index.d.ts +0 -1
- package/dist/shared/claude-config-dir.d.ts +0 -1
- package/dist/tools/delegate-agent/background-agent-executor.d.ts +0 -5
- package/dist/tools/delegate-agent/message-storage-directory.d.ts +0 -1
- package/dist/tools/delegate-agent/subagent-session-creator.d.ts +0 -10
- package/dist/tools/delegate-agent/tool-context-with-metadata.d.ts +0 -10
- package/postinstall.mjs +0 -43
- /package/dist/features/{claude-code-agent-loader → agent-loader}/index.d.ts +0 -0
- /package/dist/features/{claude-code-agent-loader → agent-loader}/loader.d.ts +0 -0
- /package/dist/features/{claude-code-agent-loader → agent-loader}/types.d.ts +0 -0
- /package/dist/features/{claude-code-command-loader → command-loader}/index.d.ts +0 -0
- /package/dist/features/{claude-code-command-loader → command-loader}/types.d.ts +0 -0
- /package/dist/features/{claude-code-session-state → session-state}/index.d.ts +0 -0
- /package/dist/features/{claude-code-session-state → session-state}/state.d.ts +0 -0
- /package/dist/features/{claude-code-mcp-loader → skill-mcp-manager}/env-expander.d.ts +0 -0
- /package/dist/features/{claude-tasks → task-storage}/storage.d.ts +0 -0
- /package/dist/features/{claude-tasks → task-storage}/types.d.ts +0 -0
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export declare function ensureConfigDirectoryExists(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatErrorWithSuggestion(err: unknown, context: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function modifyProviderInJsonc(content: string, newProviderValue: Record<string, unknown>): string;
|
|
@@ -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,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,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,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,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,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,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,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,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
|
-
}
|
package/dist/cli/index.d.ts
DELETED