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,187 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claude Code Plugin Types
|
|
3
|
-
*
|
|
4
|
-
* Type definitions for Claude Code plugin system compatibility.
|
|
5
|
-
* Based on https://code.claude.com/docs/en/plugins-reference
|
|
6
|
-
*/
|
|
7
|
-
export type PluginScope = "user" | "project" | "local" | "managed";
|
|
8
|
-
/**
|
|
9
|
-
* Plugin installation entry in installed_plugins.json
|
|
10
|
-
*/
|
|
11
|
-
export interface PluginInstallation {
|
|
12
|
-
scope: PluginScope;
|
|
13
|
-
installPath: string;
|
|
14
|
-
version: string;
|
|
15
|
-
installedAt: string;
|
|
16
|
-
lastUpdated: string;
|
|
17
|
-
gitCommitSha?: string;
|
|
18
|
-
isLocal?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Installed plugins database v1 (legacy)
|
|
22
|
-
* plugins stored as direct objects
|
|
23
|
-
*/
|
|
24
|
-
interface InstalledPluginsDatabaseV1 {
|
|
25
|
-
version: 1;
|
|
26
|
-
plugins: Record<string, PluginInstallation>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Installed plugins database v2 (current)
|
|
30
|
-
* plugins stored as arrays
|
|
31
|
-
*/
|
|
32
|
-
interface InstalledPluginsDatabaseV2 {
|
|
33
|
-
version: 2;
|
|
34
|
-
plugins: Record<string, PluginInstallation[]>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Installed plugins database structure
|
|
38
|
-
* Located at ~/.claude/plugins/installed_plugins.json
|
|
39
|
-
*/
|
|
40
|
-
export type InstalledPluginsDatabase = InstalledPluginsDatabaseV1 | InstalledPluginsDatabaseV2;
|
|
41
|
-
/**
|
|
42
|
-
* Plugin author information
|
|
43
|
-
*/
|
|
44
|
-
interface PluginAuthor {
|
|
45
|
-
name?: string;
|
|
46
|
-
email?: string;
|
|
47
|
-
url?: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Plugin manifest (plugin.json)
|
|
51
|
-
* Located at <plugin_root>/.claude-plugin/plugin.json
|
|
52
|
-
*/
|
|
53
|
-
export interface PluginManifest {
|
|
54
|
-
name: string;
|
|
55
|
-
version?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
author?: PluginAuthor;
|
|
58
|
-
homepage?: string;
|
|
59
|
-
repository?: string;
|
|
60
|
-
license?: string;
|
|
61
|
-
keywords?: string[];
|
|
62
|
-
commands?: string | string[];
|
|
63
|
-
agents?: string | string[];
|
|
64
|
-
skills?: string | string[];
|
|
65
|
-
hooks?: string | HooksConfig;
|
|
66
|
-
mcpServers?: string | McpServersConfig;
|
|
67
|
-
lspServers?: string | LspServersConfig;
|
|
68
|
-
outputStyles?: string | string[];
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Hooks configuration
|
|
72
|
-
*/
|
|
73
|
-
interface HookEntry {
|
|
74
|
-
type: "command" | "prompt" | "agent";
|
|
75
|
-
command?: string;
|
|
76
|
-
prompt?: string;
|
|
77
|
-
agent?: string;
|
|
78
|
-
}
|
|
79
|
-
interface HookMatcher {
|
|
80
|
-
matcher?: string;
|
|
81
|
-
hooks: HookEntry[];
|
|
82
|
-
}
|
|
83
|
-
export interface HooksConfig {
|
|
84
|
-
hooks?: {
|
|
85
|
-
PreToolUse?: HookMatcher[];
|
|
86
|
-
PostToolUse?: HookMatcher[];
|
|
87
|
-
PostToolUseFailure?: HookMatcher[];
|
|
88
|
-
PermissionRequest?: HookMatcher[];
|
|
89
|
-
UserPromptSubmit?: HookMatcher[];
|
|
90
|
-
Notification?: HookMatcher[];
|
|
91
|
-
Stop?: HookMatcher[];
|
|
92
|
-
SubagentStart?: HookMatcher[];
|
|
93
|
-
SubagentStop?: HookMatcher[];
|
|
94
|
-
SessionStart?: HookMatcher[];
|
|
95
|
-
SessionEnd?: HookMatcher[];
|
|
96
|
-
PreCompact?: HookMatcher[];
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* MCP servers configuration in plugin
|
|
101
|
-
*/
|
|
102
|
-
interface PluginMcpServer {
|
|
103
|
-
command?: string;
|
|
104
|
-
args?: string[];
|
|
105
|
-
env?: Record<string, string>;
|
|
106
|
-
cwd?: string;
|
|
107
|
-
url?: string;
|
|
108
|
-
type?: "stdio" | "http" | "sse";
|
|
109
|
-
disabled?: boolean;
|
|
110
|
-
}
|
|
111
|
-
interface McpServersConfig {
|
|
112
|
-
mcpServers?: Record<string, PluginMcpServer>;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* LSP server configuration
|
|
116
|
-
*/
|
|
117
|
-
interface LspServerConfig {
|
|
118
|
-
command: string;
|
|
119
|
-
args?: string[];
|
|
120
|
-
extensionToLanguage: Record<string, string>;
|
|
121
|
-
transport?: "stdio" | "socket";
|
|
122
|
-
env?: Record<string, string>;
|
|
123
|
-
initializationOptions?: Record<string, unknown>;
|
|
124
|
-
settings?: Record<string, unknown>;
|
|
125
|
-
workspaceFolder?: string;
|
|
126
|
-
startupTimeout?: number;
|
|
127
|
-
shutdownTimeout?: number;
|
|
128
|
-
restartOnCrash?: boolean;
|
|
129
|
-
maxRestarts?: number;
|
|
130
|
-
loggingConfig?: {
|
|
131
|
-
args?: string[];
|
|
132
|
-
env?: Record<string, string>;
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
interface LspServersConfig {
|
|
136
|
-
[language: string]: LspServerConfig;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Loaded plugin with all resolved components
|
|
140
|
-
*/
|
|
141
|
-
export interface LoadedPlugin {
|
|
142
|
-
name: string;
|
|
143
|
-
version: string;
|
|
144
|
-
scope: PluginScope;
|
|
145
|
-
installPath: string;
|
|
146
|
-
manifest?: PluginManifest;
|
|
147
|
-
pluginKey: string;
|
|
148
|
-
commandsDir?: string;
|
|
149
|
-
agentsDir?: string;
|
|
150
|
-
skillsDir?: string;
|
|
151
|
-
hooksPath?: string;
|
|
152
|
-
mcpPath?: string;
|
|
153
|
-
lspPath?: string;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Plugin load result with all components
|
|
157
|
-
*/
|
|
158
|
-
export interface PluginLoadResult {
|
|
159
|
-
plugins: LoadedPlugin[];
|
|
160
|
-
errors: PluginLoadError[];
|
|
161
|
-
}
|
|
162
|
-
export interface PluginLoadError {
|
|
163
|
-
pluginKey: string;
|
|
164
|
-
installPath: string;
|
|
165
|
-
error: string;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Claude settings from ~/.claude/settings.json
|
|
169
|
-
*/
|
|
170
|
-
export interface ClaudeSettings {
|
|
171
|
-
enabledPlugins?: Record<string, boolean>;
|
|
172
|
-
[key: string]: unknown;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Plugin loader options
|
|
176
|
-
*/
|
|
177
|
-
export interface PluginLoaderOptions {
|
|
178
|
-
/**
|
|
179
|
-
* Override enabled plugins from matrixx config.
|
|
180
|
-
* Key format: "pluginName@marketplace" (e.g., "shell-scripting@claude-code-workflows")
|
|
181
|
-
* Value: true = enabled, false = disabled
|
|
182
|
-
*
|
|
183
|
-
* This takes precedence over ~/.claude/settings.json enabledPlugins
|
|
184
|
-
*/
|
|
185
|
-
enabledPluginsOverride?: Record<string, boolean>;
|
|
186
|
-
}
|
|
187
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "../../config/schema";
|
|
2
|
-
export declare function getSessionTaskDir(config: Partial<MatrixxConfig>, sessionID: string): string;
|
|
3
|
-
export declare function listSessionTaskFiles(config: Partial<MatrixxConfig>, sessionID: string): string[];
|
|
4
|
-
export declare function listAllSessionDirs(config: Partial<MatrixxConfig>): string[];
|
|
5
|
-
interface TaskLocation {
|
|
6
|
-
path: string;
|
|
7
|
-
sessionID: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function findTaskAcrossSessions(config: Partial<MatrixxConfig>, taskId: string): TaskLocation | null;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CONTINUATION_MARKER_DIR = ".matrixx/run-continuation";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ContinuationMarker, ContinuationMarkerSource, ContinuationMarkerState } from "./types";
|
|
2
|
-
export declare function readContinuationMarker(directory: string, sessionID: string): ContinuationMarker | null;
|
|
3
|
-
export declare function setContinuationMarkerSource(directory: string, sessionID: string, source: ContinuationMarkerSource, state: ContinuationMarkerState, reason?: string): ContinuationMarker;
|
|
4
|
-
export declare function clearContinuationMarker(directory: string, sessionID: string): void;
|
|
5
|
-
export declare function isContinuationMarkerActive(marker: ContinuationMarker): boolean;
|
|
6
|
-
export declare function getActiveContinuationMarkerReason(marker: ContinuationMarker): string | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type ContinuationMarkerSource = "todo" | "stop";
|
|
2
|
-
export type ContinuationMarkerState = "idle" | "active" | "stopped";
|
|
3
|
-
interface ContinuationMarkerSourceEntry {
|
|
4
|
-
state: ContinuationMarkerState;
|
|
5
|
-
reason?: string;
|
|
6
|
-
updatedAt: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ContinuationMarker {
|
|
9
|
-
sessionID: string;
|
|
10
|
-
updatedAt: string;
|
|
11
|
-
sources: Partial<Record<ContinuationMarkerSource, ContinuationMarkerSourceEntry>>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
-
import type { MessageData } from "./types";
|
|
3
|
-
type Client = ReturnType<typeof createOpencodeClient>;
|
|
4
|
-
type ReplaceEmptyTextPartsAsync = (client: Client, sessionID: string, messageID: string, replacementText: string) => Promise<boolean>;
|
|
5
|
-
type InjectTextPartAsync = (client: Client, sessionID: string, messageID: string, text: string) => Promise<boolean>;
|
|
6
|
-
type FindMessagesWithEmptyTextPartsFromSDK = (client: Client, sessionID: string) => Promise<string[]>;
|
|
7
|
-
export declare function recoverEmptyContentMessageFromSDK(client: Client, sessionID: string, failedAssistantMsg: MessageData, error: unknown, dependencies: {
|
|
8
|
-
placeholderText: string;
|
|
9
|
-
replaceEmptyTextPartsAsync: ReplaceEmptyTextPartsAsync;
|
|
10
|
-
injectTextPartAsync: InjectTextPartAsync;
|
|
11
|
-
findMessagesWithEmptyTextPartsFromSDK: FindMessagesWithEmptyTextPartsFromSDK;
|
|
12
|
-
}): Promise<boolean>;
|
|
13
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
interface ToolExecuteInput {
|
|
3
|
-
tool: string;
|
|
4
|
-
sessionID: string;
|
|
5
|
-
callID: string;
|
|
6
|
-
}
|
|
7
|
-
interface ToolExecuteOutput {
|
|
8
|
-
output: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function createTaskReminderHook(_ctx: PluginInput): {
|
|
11
|
-
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
12
|
-
event: ({ event }: {
|
|
13
|
-
event: {
|
|
14
|
-
type: string;
|
|
15
|
-
properties?: unknown;
|
|
16
|
-
};
|
|
17
|
-
}) => Promise<void>;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createTaskReminderHook } from "./hook";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getClaudeConfigDir(): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
|
|
4
|
-
import type { DelegateAgentArgs } from "./types";
|
|
5
|
-
export declare function executeBackgroundAgent(args: DelegateAgentArgs, toolContext: ToolContextWithMetadata, manager: BackgroundManager, client: PluginInput["client"]): Promise<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getMessageDir } from "../../shared";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
|
|
3
|
-
import type { DelegateAgentArgs } from "./types";
|
|
4
|
-
export declare function resolveOrCreateSessionId(ctx: PluginInput, args: DelegateAgentArgs, toolContext: ToolContextWithMetadata): Promise<{
|
|
5
|
-
ok: true;
|
|
6
|
-
sessionID: string;
|
|
7
|
-
} | {
|
|
8
|
-
ok: false;
|
|
9
|
-
error: string;
|
|
10
|
-
}>;
|
package/postinstall.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// postinstall.mjs
|
|
2
|
-
// Runs after npm install to verify platform binary is available
|
|
3
|
-
|
|
4
|
-
import { createRequire } from "node:module";
|
|
5
|
-
import { getPlatformPackage, getBinaryPath } from "./bin/platform.js";
|
|
6
|
-
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Detect libc family on Linux
|
|
11
|
-
*/
|
|
12
|
-
function getLibcFamily() {
|
|
13
|
-
if (process.platform !== "linux") {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
const detectLibc = require("detect-libc");
|
|
19
|
-
return detectLibc.familySync();
|
|
20
|
-
} catch {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function main() {
|
|
26
|
-
const { platform, arch } = process;
|
|
27
|
-
const libcFamily = getLibcFamily();
|
|
28
|
-
|
|
29
|
-
try {
|
|
30
|
-
const pkg = getPlatformPackage({ platform, arch, libcFamily });
|
|
31
|
-
const binPath = getBinaryPath(pkg, platform);
|
|
32
|
-
|
|
33
|
-
// Try to resolve the binary
|
|
34
|
-
require.resolve(binPath);
|
|
35
|
-
console.log(`✓ matrixx binary installed for ${platform}-${arch}`);
|
|
36
|
-
} catch (error) {
|
|
37
|
-
console.warn(`⚠ matrixx: ${error.message}`);
|
|
38
|
-
console.warn(` The CLI may not work on this platform.`);
|
|
39
|
-
// Don't fail installation - let user try anyway
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
main();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|