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,31 +0,0 @@
|
|
|
1
|
-
import type { BooleanArg, ClaudeSubscription, DetectedConfig, InstallArgs, InstallConfig } from "./types";
|
|
2
|
-
export declare const SYMBOLS: {
|
|
3
|
-
check: string;
|
|
4
|
-
cross: string;
|
|
5
|
-
arrow: string;
|
|
6
|
-
bullet: string;
|
|
7
|
-
info: string;
|
|
8
|
-
warn: string;
|
|
9
|
-
star: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function formatConfigSummary(config: InstallConfig): string;
|
|
12
|
-
export declare function printHeader(isUpdate: boolean): void;
|
|
13
|
-
export declare function printStep(step: number, total: number, message: string): void;
|
|
14
|
-
export declare function printSuccess(message: string): void;
|
|
15
|
-
export declare function printError(message: string): void;
|
|
16
|
-
export declare function printInfo(message: string): void;
|
|
17
|
-
export declare function printWarning(message: string): void;
|
|
18
|
-
export declare function printBox(content: string, title?: string): void;
|
|
19
|
-
export declare function validateNonTuiArgs(args: InstallArgs): {
|
|
20
|
-
valid: boolean;
|
|
21
|
-
errors: string[];
|
|
22
|
-
};
|
|
23
|
-
export declare function argsToConfig(args: InstallArgs): InstallConfig;
|
|
24
|
-
export declare function detectedToInitialValues(detected: DetectedConfig): {
|
|
25
|
-
claude: ClaudeSubscription;
|
|
26
|
-
openai: BooleanArg;
|
|
27
|
-
gemini: BooleanArg;
|
|
28
|
-
copilot: BooleanArg;
|
|
29
|
-
opencodeZen: BooleanArg;
|
|
30
|
-
zaiCodingPlan: BooleanArg;
|
|
31
|
-
};
|
package/dist/cli/install.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function status(serverName: string | undefined): Promise<number>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface ProviderAvailability {
|
|
2
|
-
native: {
|
|
3
|
-
claude: boolean;
|
|
4
|
-
openai: boolean;
|
|
5
|
-
gemini: boolean;
|
|
6
|
-
};
|
|
7
|
-
opencodeZen: boolean;
|
|
8
|
-
copilot: boolean;
|
|
9
|
-
zai: boolean;
|
|
10
|
-
isMaxPlan: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface AgentConfig {
|
|
13
|
-
model: string;
|
|
14
|
-
variant?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface CategoryConfig {
|
|
17
|
-
model: string;
|
|
18
|
-
variant?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface GeneratedMatrixxConfig {
|
|
21
|
-
$schema: string;
|
|
22
|
-
agents?: Record<string, AgentConfig>;
|
|
23
|
-
categories?: Record<string, CategoryConfig>;
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { GeneratedMatrixxConfig } from "./model-fallback-types";
|
|
2
|
-
import type { InstallConfig } from "./types";
|
|
3
|
-
export type { GeneratedMatrixxConfig } from "./model-fallback-types";
|
|
4
|
-
export declare function generateModelConfig(config: InstallConfig): GeneratedMatrixxConfig;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ProviderAvailability } from "./model-fallback-types";
|
|
2
|
-
import type { InstallConfig } from "./types";
|
|
3
|
-
export declare function toProviderAvailability(config: InstallConfig): ProviderAvailability;
|
|
4
|
-
export declare function isProviderAvailable(provider: string, availability: ProviderAvailability): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformModelForProvider(provider: string, model: string): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "../../config";
|
|
2
|
-
import type { RunOptions } from "./types";
|
|
3
|
-
type EnvVars = Record<string, string | undefined>;
|
|
4
|
-
export declare const resolveRunAgent: (options: RunOptions, pluginConfig: MatrixxConfig, env?: EnvVars) => string;
|
|
5
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { EventState } from "./event-state";
|
|
2
|
-
import type { EventPayload, RunContext } from "./types";
|
|
3
|
-
export declare function handleSessionIdle(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
4
|
-
export declare function handleSessionStatus(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
5
|
-
export declare function handleSessionError(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
6
|
-
export declare function handleMessagePartUpdated(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
7
|
-
export declare function handleMessageUpdated(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
8
|
-
export declare function handleToolExecute(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
9
|
-
export declare function handleToolResult(ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
10
|
-
export declare function handleTuiToast(_ctx: RunContext, payload: EventPayload, state: EventState): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface EventState {
|
|
2
|
-
mainSessionIdle: boolean;
|
|
3
|
-
mainSessionError: boolean;
|
|
4
|
-
lastError: string | null;
|
|
5
|
-
lastOutput: string;
|
|
6
|
-
lastPartText: string;
|
|
7
|
-
currentTool: string | null;
|
|
8
|
-
/** Set to true when the main session has produced meaningful work (text, tool call, or tool result) */
|
|
9
|
-
hasReceivedMeaningfulWork: boolean;
|
|
10
|
-
/** Count of assistant messages for the main session */
|
|
11
|
-
messageCount: number;
|
|
12
|
-
}
|
|
13
|
-
export declare function createEventState(): EventState;
|
package/dist/cli/run/events.d.ts
DELETED
package/dist/cli/run/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { resolveRunAgent } from "./agent-resolver";
|
|
2
|
-
export type { EventState } from "./events";
|
|
3
|
-
export { createEventState, processEvents, serializeError } from "./events";
|
|
4
|
-
export { createJsonOutputManager } from "./json-output";
|
|
5
|
-
export { executeOnCompleteHook } from "./on-complete-hook";
|
|
6
|
-
export { run } from "./runner";
|
|
7
|
-
export { createServerConnection } from "./server-connection";
|
|
8
|
-
export { resolveSession } from "./session-resolver";
|
|
9
|
-
export type { RunContext, RunOptions, RunResult, ServerConnection } from "./types";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { RunResult } from "./types";
|
|
2
|
-
interface JsonOutputManager {
|
|
3
|
-
redirectToStderr: () => void;
|
|
4
|
-
restore: () => void;
|
|
5
|
-
emitResult: (result: RunResult) => void;
|
|
6
|
-
}
|
|
7
|
-
interface JsonOutputManagerOptions {
|
|
8
|
-
stdout?: NodeJS.WriteStream;
|
|
9
|
-
stderr?: NodeJS.WriteStream;
|
|
10
|
-
}
|
|
11
|
-
export declare function createJsonOutputManager(options?: JsonOutputManagerOptions): JsonOutputManager;
|
|
12
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function collectCandidateBinaryPaths(pathEnv: string | undefined, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): string[];
|
|
2
|
-
export declare function findWorkingOpencodeBinary(pathEnv?: string | undefined, probe?: (binaryPath: string) => Promise<boolean>, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): Promise<string | null>;
|
|
3
|
-
export declare function buildPathWithBinaryFirst(pathEnv: string | undefined, binaryPath: string): string;
|
|
4
|
-
export declare function withWorkingOpencodePath<T>(startServer: () => Promise<T>, finder?: (pathEnv: string | undefined) => Promise<string | null>): Promise<T>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EventState } from "./events";
|
|
2
|
-
import type { RunContext } from "./types";
|
|
3
|
-
interface PollOptions {
|
|
4
|
-
pollIntervalMs?: number;
|
|
5
|
-
requiredConsecutive?: number;
|
|
6
|
-
minStabilizationMs?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function pollForCompletion(ctx: RunContext, eventState: EventState, abortController: AbortController, options?: PollOptions): Promise<number>;
|
|
9
|
-
export {};
|
package/dist/cli/run/runner.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { resolveRunAgent } from "./agent-resolver";
|
|
2
|
-
import type { RunOptions } from "./types";
|
|
3
|
-
export { resolveRunAgent };
|
|
4
|
-
export declare function waitForEventProcessorShutdown(eventProcessor: Promise<void>, timeoutMs?: number): Promise<void>;
|
|
5
|
-
export declare function run(options: RunOptions): Promise<number>;
|
package/dist/cli/run/types.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
-
export type { OpencodeClient };
|
|
3
|
-
export interface RunOptions {
|
|
4
|
-
message: string;
|
|
5
|
-
agent?: string;
|
|
6
|
-
directory?: string;
|
|
7
|
-
timeout?: number;
|
|
8
|
-
port?: number;
|
|
9
|
-
attach?: string;
|
|
10
|
-
onComplete?: string;
|
|
11
|
-
json?: boolean;
|
|
12
|
-
sessionId?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ServerConnection {
|
|
15
|
-
client: OpencodeClient;
|
|
16
|
-
cleanup: () => void;
|
|
17
|
-
}
|
|
18
|
-
export interface RunResult {
|
|
19
|
-
sessionId: string;
|
|
20
|
-
success: boolean;
|
|
21
|
-
durationMs: number;
|
|
22
|
-
messageCount: number;
|
|
23
|
-
summary: string;
|
|
24
|
-
}
|
|
25
|
-
export interface RunContext {
|
|
26
|
-
client: OpencodeClient;
|
|
27
|
-
sessionID: string;
|
|
28
|
-
directory: string;
|
|
29
|
-
abortController: AbortController;
|
|
30
|
-
}
|
|
31
|
-
export interface Todo {
|
|
32
|
-
id?: string;
|
|
33
|
-
content: string;
|
|
34
|
-
status: string;
|
|
35
|
-
priority: string;
|
|
36
|
-
}
|
|
37
|
-
export interface SessionStatus {
|
|
38
|
-
type: "idle" | "busy" | "retry";
|
|
39
|
-
}
|
|
40
|
-
export interface ChildSession {
|
|
41
|
-
id: string;
|
|
42
|
-
}
|
|
43
|
-
export interface EventPayload {
|
|
44
|
-
type: string;
|
|
45
|
-
properties?: Record<string, unknown>;
|
|
46
|
-
}
|
|
47
|
-
export interface SessionIdleProps {
|
|
48
|
-
sessionID?: string;
|
|
49
|
-
sessionId?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface SessionStatusProps {
|
|
52
|
-
sessionID?: string;
|
|
53
|
-
sessionId?: string;
|
|
54
|
-
status?: {
|
|
55
|
-
type?: string;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export interface MessageUpdatedProps {
|
|
59
|
-
info?: {
|
|
60
|
-
sessionID?: string;
|
|
61
|
-
sessionId?: string;
|
|
62
|
-
role?: string;
|
|
63
|
-
modelID?: string;
|
|
64
|
-
providerID?: string;
|
|
65
|
-
agent?: string;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export interface MessagePartUpdatedProps {
|
|
69
|
-
/** @deprecated Legacy structure — current OpenCode puts sessionID inside part */
|
|
70
|
-
info?: {
|
|
71
|
-
sessionID?: string;
|
|
72
|
-
sessionId?: string;
|
|
73
|
-
role?: string;
|
|
74
|
-
};
|
|
75
|
-
part?: {
|
|
76
|
-
id?: string;
|
|
77
|
-
sessionID?: string;
|
|
78
|
-
sessionId?: string;
|
|
79
|
-
messageID?: string;
|
|
80
|
-
type?: string;
|
|
81
|
-
text?: string;
|
|
82
|
-
/** Tool name (for part.type === "tool") */
|
|
83
|
-
tool?: string;
|
|
84
|
-
/** Tool state (for part.type === "tool") */
|
|
85
|
-
state?: {
|
|
86
|
-
status?: string;
|
|
87
|
-
input?: Record<string, unknown>;
|
|
88
|
-
output?: string;
|
|
89
|
-
};
|
|
90
|
-
name?: string;
|
|
91
|
-
input?: unknown;
|
|
92
|
-
time?: {
|
|
93
|
-
start?: number;
|
|
94
|
-
end?: number;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
export interface ToolExecuteProps {
|
|
99
|
-
sessionID?: string;
|
|
100
|
-
sessionId?: string;
|
|
101
|
-
name?: string;
|
|
102
|
-
input?: Record<string, unknown>;
|
|
103
|
-
}
|
|
104
|
-
export interface ToolResultProps {
|
|
105
|
-
sessionID?: string;
|
|
106
|
-
sessionId?: string;
|
|
107
|
-
name?: string;
|
|
108
|
-
output?: string;
|
|
109
|
-
}
|
|
110
|
-
export interface SessionErrorProps {
|
|
111
|
-
sessionID?: string;
|
|
112
|
-
sessionId?: string;
|
|
113
|
-
error?: unknown;
|
|
114
|
-
}
|
|
115
|
-
export interface TuiToastShowProps {
|
|
116
|
-
title?: string;
|
|
117
|
-
message?: string;
|
|
118
|
-
variant?: "info" | "success" | "warning" | "error";
|
|
119
|
-
}
|
package/dist/cli/types.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type ClaudeSubscription = "no" | "yes" | "max20";
|
|
2
|
-
export type BooleanArg = "no" | "yes";
|
|
3
|
-
export interface InstallArgs {
|
|
4
|
-
tui: boolean;
|
|
5
|
-
claude?: ClaudeSubscription;
|
|
6
|
-
openai?: BooleanArg;
|
|
7
|
-
gemini?: BooleanArg;
|
|
8
|
-
copilot?: BooleanArg;
|
|
9
|
-
opencodeZen?: BooleanArg;
|
|
10
|
-
zaiCodingPlan?: BooleanArg;
|
|
11
|
-
skipAuth?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface InstallConfig {
|
|
14
|
-
hasClaude: boolean;
|
|
15
|
-
isMax20: boolean;
|
|
16
|
-
hasOpenAI: boolean;
|
|
17
|
-
hasGemini: boolean;
|
|
18
|
-
hasCopilot: boolean;
|
|
19
|
-
hasOpencodeZen: boolean;
|
|
20
|
-
hasZaiCodingPlan: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface ConfigMergeResult {
|
|
23
|
-
success: boolean;
|
|
24
|
-
configPath: string;
|
|
25
|
-
error?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface DetectedConfig {
|
|
28
|
-
isInstalled: boolean;
|
|
29
|
-
hasClaude: boolean;
|
|
30
|
-
isMax20: boolean;
|
|
31
|
-
hasOpenAI: boolean;
|
|
32
|
-
hasGemini: boolean;
|
|
33
|
-
hasCopilot: boolean;
|
|
34
|
-
hasOpencodeZen: boolean;
|
|
35
|
-
hasZaiCodingPlan: boolean;
|
|
36
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "./schema/matrixx-config";
|
|
2
|
-
export declare const PROFILE_NAMES: readonly ["free", "budget", "economy", "balanced", "performance", "go", "xiaomi-ultimate", "go-ultimate", "go-trio", "go-duo"];
|
|
3
|
-
export type ProfileName = (typeof PROFILE_NAMES)[number];
|
|
4
|
-
export declare function expandProfile(profile: ProfileName): Partial<MatrixxConfig>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ClaudeCodeConfigSchema: z.ZodObject<{
|
|
3
|
-
mcp: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
-
commands: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
skills: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
agents: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
plugins: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
plugins_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type ClaudeCodeConfig = z.infer<typeof ClaudeCodeConfigSchema>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "./types";
|
|
2
|
-
type BackgroundTaskNotificationStatus = "COMPLETED" | "CANCELLED" | "INTERRUPTED";
|
|
3
|
-
export declare function buildBackgroundTaskNotificationText(input: {
|
|
4
|
-
task: BackgroundTask;
|
|
5
|
-
duration: string;
|
|
6
|
-
statusText: BackgroundTaskNotificationStatus;
|
|
7
|
-
allComplete: boolean;
|
|
8
|
-
remainingCount: number;
|
|
9
|
-
completedTasks: BackgroundTask[];
|
|
10
|
-
}): string;
|
|
11
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTaskConfig } from "../../config/schema";
|
|
2
|
-
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
-
import type { OpencodeClient } from "./opencode-client";
|
|
4
|
-
import type { BackgroundTask } from "./types";
|
|
5
|
-
export declare function pruneStaleTasksAndNotifications(args: {
|
|
6
|
-
tasks: Map<string, BackgroundTask>;
|
|
7
|
-
notifications: Map<string, BackgroundTask[]>;
|
|
8
|
-
onTaskPruned: (taskId: string, task: BackgroundTask, errorMessage: string) => void;
|
|
9
|
-
}): void;
|
|
10
|
-
type SessionStatusMap = Record<string, {
|
|
11
|
-
type: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare function checkAndInterruptStaleTasks(args: {
|
|
14
|
-
tasks: Iterable<BackgroundTask>;
|
|
15
|
-
client: OpencodeClient;
|
|
16
|
-
config: BackgroundTaskConfig | undefined;
|
|
17
|
-
concurrencyManager: ConcurrencyManager;
|
|
18
|
-
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
19
|
-
sessionStatuses?: SessionStatusMap;
|
|
20
|
-
}): Promise<void>;
|
|
21
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CommandDefinition } from "./types";
|
|
2
|
-
export declare function loadUserCommands(): Promise<Record<string, CommandDefinition>>;
|
|
3
|
-
export declare function loadProjectCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
|
|
4
|
-
export declare function loadOpencodeGlobalCommands(): Promise<Record<string, CommandDefinition>>;
|
|
5
|
-
export declare function loadOpencodeProjectCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
|
|
6
|
-
export declare function loadAllCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Configuration Loader
|
|
3
|
-
*
|
|
4
|
-
* Loads Claude Code .mcp.json format configurations from multiple scopes
|
|
5
|
-
* and transforms them to OpenCode SDK format
|
|
6
|
-
*/
|
|
7
|
-
export * from "./env-expander";
|
|
8
|
-
export * from "./loader";
|
|
9
|
-
export * from "./transformer";
|
|
10
|
-
export * from "./types";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type McpScope = "user" | "project" | "local";
|
|
2
|
-
export interface ClaudeCodeMcpServer {
|
|
3
|
-
type?: "http" | "sse" | "stdio";
|
|
4
|
-
url?: string;
|
|
5
|
-
command?: string;
|
|
6
|
-
args?: string[];
|
|
7
|
-
env?: Record<string, string>;
|
|
8
|
-
headers?: Record<string, string>;
|
|
9
|
-
oauth?: {
|
|
10
|
-
clientId?: string;
|
|
11
|
-
scopes?: string[];
|
|
12
|
-
};
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface ClaudeCodeMcpConfig {
|
|
16
|
-
mcpServers?: Record<string, ClaudeCodeMcpServer>;
|
|
17
|
-
}
|
|
18
|
-
export interface McpLocalConfig {
|
|
19
|
-
type: "local";
|
|
20
|
-
command: string[];
|
|
21
|
-
environment?: Record<string, string>;
|
|
22
|
-
enabled?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface McpRemoteConfig {
|
|
25
|
-
type: "remote";
|
|
26
|
-
url: string;
|
|
27
|
-
headers?: Record<string, string>;
|
|
28
|
-
enabled?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export type McpServerConfig = McpLocalConfig | McpRemoteConfig;
|
|
31
|
-
export interface LoadedMcpServer {
|
|
32
|
-
name: string;
|
|
33
|
-
scope: McpScope;
|
|
34
|
-
config: McpServerConfig;
|
|
35
|
-
}
|
|
36
|
-
export interface McpLoadResult {
|
|
37
|
-
servers: Record<string, McpServerConfig>;
|
|
38
|
-
loadedServers: LoadedMcpServer[];
|
|
39
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./agent-loader";
|
|
2
|
-
export * from "./command-loader";
|
|
3
|
-
export * from "./discovery";
|
|
4
|
-
export * from "./hook-loader";
|
|
5
|
-
export * from "./loader";
|
|
6
|
-
export * from "./mcp-server-loader";
|
|
7
|
-
export * from "./plugin-path-resolver";
|
|
8
|
-
export * from "./skill-loader";
|
|
9
|
-
export type { ClaudeSettings, PluginLoaderOptions } from "./types";
|
|
10
|
-
export * from "./types";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
|
3
|
-
import type { McpServerConfig } from "../claude-code-mcp-loader/types";
|
|
4
|
-
import type { HooksConfig, LoadedPlugin, PluginLoadError, PluginLoaderOptions } from "./types";
|
|
5
|
-
export { loadPluginAgents } from "./agent-loader";
|
|
6
|
-
export { loadPluginCommands } from "./command-loader";
|
|
7
|
-
export { discoverInstalledPlugins } from "./discovery";
|
|
8
|
-
export { loadPluginHooksConfigs } from "./hook-loader";
|
|
9
|
-
export { loadPluginMcpServers } from "./mcp-server-loader";
|
|
10
|
-
export { loadPluginSkillsAsCommands } from "./skill-loader";
|
|
11
|
-
interface PluginComponentsResult {
|
|
12
|
-
commands: Record<string, CommandDefinition>;
|
|
13
|
-
skills: Record<string, CommandDefinition>;
|
|
14
|
-
agents: Record<string, AgentConfig>;
|
|
15
|
-
mcpServers: Record<string, McpServerConfig>;
|
|
16
|
-
hooksConfigs: HooksConfig[];
|
|
17
|
-
plugins: LoadedPlugin[];
|
|
18
|
-
errors: PluginLoadError[];
|
|
19
|
-
}
|
|
20
|
-
export declare function loadAllPluginComponents(options?: PluginLoaderOptions): Promise<PluginComponentsResult>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolvePluginPaths<T>(obj: T, pluginRoot: string): T;
|