opencode-matrixx 2.3.0 → 2.5.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 +76 -0
- package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
- package/dist/agents/builtin-agents.d.ts +2 -2
- package/dist/agents/construct.d.ts +3 -3
- package/dist/agents/index.d.ts +3 -3
- package/dist/agents/operator.d.ts +3 -3
- package/dist/agents/oracle/identity-constraints.d.ts +1 -1
- package/dist/agents/oracle/system-prompt.d.ts +2 -2
- package/dist/agents/trinity.d.ts +3 -3
- package/dist/config/schema/dcp.d.ts +231 -2
- package/dist/config/schema/hooks.d.ts +2 -1
- package/dist/config/schema/matrixx-config.d.ts +86 -3
- package/dist/config/schema/rtk.d.ts +7 -0
- package/dist/config/schema.d.ts +1 -0
- package/dist/create-hooks.d.ts +4 -3
- package/dist/create-managers.d.ts +0 -2
- package/dist/create-tools.d.ts +3 -3
- package/dist/features/builtin-commands/templates/dcp-profile.d.ts +1 -1
- package/dist/features/builtin-skills/types.d.ts +10 -1
- package/dist/features/command-loader/index.d.ts +1 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +5 -2
- package/dist/hooks/auto-slash-command/hook.d.ts +4 -2
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/source-detector.d.ts +1 -1
- package/dist/hooks/{prometheus-md-only → oracle-md-only}/constants.d.ts +2 -2
- package/dist/hooks/rtk-bash-rewriter/constants.d.ts +3 -0
- package/dist/hooks/rtk-bash-rewriter/hook.d.ts +12 -0
- package/dist/hooks/rtk-bash-rewriter/hook.test.d.ts +1 -0
- package/dist/hooks/rtk-bash-rewriter/index.d.ts +1 -0
- package/dist/hooks/rtk-bash-rewriter/types.d.ts +11 -0
- package/dist/index.js +83019 -95923
- package/dist/plugin/hooks/create-core-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +3 -2
- package/dist/plugin/hooks/create-skill-hooks.d.ts +2 -2
- package/dist/plugin/skill-context.d.ts +2 -2
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/plugin-handlers/index.d.ts +1 -1
- package/dist/plugin-handlers/plan-model-inheritance.d.ts +1 -1
- package/dist/shared/system-directive.d.ts +1 -1
- package/dist/tools/dcp-switch-profile/index.d.ts +1 -0
- package/dist/tools/dcp-switch-profile/tools.d.ts +8 -0
- package/dist/tools/delegate-agent/constants.d.ts +1 -1
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/skill-resolver.d.ts +2 -2
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/skill/types.d.ts +3 -7
- package/dist/tools/slashcommand/skill-command-converter.d.ts +2 -2
- package/dist/tools/slashcommand/types.d.ts +10 -3
- package/package.json +2 -2
- package/dist/features/agent-loader/index.d.ts +0 -2
- package/dist/features/agent-loader/loader.d.ts +0 -3
- package/dist/features/agent-loader/types.d.ts +0 -14
- package/dist/features/command-loader/loader.d.ts +0 -3
- package/dist/features/mcp-oauth/callback-server.d.ts +0 -11
- package/dist/features/mcp-oauth/dcr.d.ts +0 -28
- package/dist/features/mcp-oauth/discovery.d.ts +0 -8
- package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +0 -26
- package/dist/features/mcp-oauth/provider.d.ts +0 -29
- package/dist/features/mcp-oauth/step-up.d.ts +0 -9
- package/dist/features/mcp-oauth/storage.d.ts +0 -17
- package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +0 -1
- package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +0 -7
- package/dist/features/opencode-skill-loader/index.d.ts +0 -14
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +0 -9
- package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +0 -2
- package/dist/features/opencode-skill-loader/loader.d.ts +0 -17
- package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +0 -3
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +0 -3
- package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +0 -2
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +0 -3
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +0 -11
- package/dist/features/opencode-skill-loader/merger.d.ts +0 -8
- package/dist/features/opencode-skill-loader/skill-content.d.ts +0 -4
- package/dist/features/opencode-skill-loader/skill-deduplication.d.ts +0 -2
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +0 -3
- package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +0 -8
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +0 -4
- package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +0 -3
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +0 -7
- package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +0 -11
- package/dist/features/opencode-skill-loader/types.d.ts +0 -34
- package/dist/features/skill-mcp-manager/cleanup.d.ts +0 -7
- package/dist/features/skill-mcp-manager/connection-type.d.ts +0 -6
- package/dist/features/skill-mcp-manager/connection.d.ts +0 -14
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +0 -2
- package/dist/features/skill-mcp-manager/env-expander.d.ts +0 -1
- package/dist/features/skill-mcp-manager/http-client.d.ts +0 -3
- package/dist/features/skill-mcp-manager/index.d.ts +0 -2
- package/dist/features/skill-mcp-manager/manager.d.ts +0 -20
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +0 -8
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +0 -3
- package/dist/features/skill-mcp-manager/types.d.ts +0 -68
- package/dist/tools/skill-mcp/constants.d.ts +0 -1
- package/dist/tools/skill-mcp/index.d.ts +0 -3
- package/dist/tools/skill-mcp/tools.d.ts +0 -11
- package/dist/tools/skill-mcp/types.d.ts +0 -8
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/agent-matcher.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/agent-resolution.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/hook.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/index.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/path-policy.d.ts +0 -0
- /package/dist/plugin-handlers/{prometheus-agent-config-builder.d.ts → oracle-agent-config-builder.d.ts} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
|
-
import type { McpServerDefinition, SkillMcpClientInfo, SkillMcpManagerState } from "./types";
|
|
3
|
-
export declare function getOrCreateClient(params: {
|
|
4
|
-
state: SkillMcpManagerState;
|
|
5
|
-
clientKey: string;
|
|
6
|
-
info: SkillMcpClientInfo;
|
|
7
|
-
config: McpServerDefinition;
|
|
8
|
-
}): Promise<Client>;
|
|
9
|
-
export declare function getOrCreateClientWithRetryImpl(params: {
|
|
10
|
-
state: SkillMcpManagerState;
|
|
11
|
-
clientKey: string;
|
|
12
|
-
info: SkillMcpClientInfo;
|
|
13
|
-
config: McpServerDefinition;
|
|
14
|
-
}): Promise<Client>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function expandEnvVarsInObject<T>(obj: T): T;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
|
-
import type { Prompt, Resource, Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
-
import type { McpServerDefinition, SkillMcpClientInfo, SkillMcpServerContext } from "./types";
|
|
4
|
-
export declare class SkillMcpManager {
|
|
5
|
-
private readonly state;
|
|
6
|
-
private getClientKey;
|
|
7
|
-
getOrCreateClient(info: SkillMcpClientInfo, config: McpServerDefinition): Promise<Client>;
|
|
8
|
-
disconnectSession(sessionID: string): Promise<void>;
|
|
9
|
-
disconnectAll(): Promise<void>;
|
|
10
|
-
listTools(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Tool[]>;
|
|
11
|
-
listResources(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Resource[]>;
|
|
12
|
-
listPrompts(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Prompt[]>;
|
|
13
|
-
callTool(info: SkillMcpClientInfo, context: SkillMcpServerContext, name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
14
|
-
readResource(info: SkillMcpClientInfo, context: SkillMcpServerContext, uri: string): Promise<unknown>;
|
|
15
|
-
getPrompt(info: SkillMcpClientInfo, context: SkillMcpServerContext, name: string, args: Record<string, string>): Promise<unknown>;
|
|
16
|
-
private withOperationRetry;
|
|
17
|
-
private getOrCreateClientWithRetry;
|
|
18
|
-
getConnectedServers(): string[];
|
|
19
|
-
isConnected(info: SkillMcpClientInfo): boolean;
|
|
20
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { McpOAuthProvider } from "../mcp-oauth/provider";
|
|
2
|
-
import type { McpServerDefinition } from "./types";
|
|
3
|
-
export declare function buildHttpRequestInit(config: McpServerDefinition, authProviders: Map<string, McpOAuthProvider>): Promise<RequestInit | undefined>;
|
|
4
|
-
export declare function handleStepUpIfNeeded(params: {
|
|
5
|
-
error: Error;
|
|
6
|
-
config: McpServerDefinition;
|
|
7
|
-
authProviders: Map<string, McpOAuthProvider>;
|
|
8
|
-
}): Promise<boolean>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
|
-
import type { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
3
|
-
import type { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
4
|
-
import type { McpOAuthProvider } from "../mcp-oauth/provider";
|
|
5
|
-
export interface McpServerDefinition {
|
|
6
|
-
type?: "http" | "sse" | "stdio";
|
|
7
|
-
url?: string;
|
|
8
|
-
command?: string;
|
|
9
|
-
args?: string[];
|
|
10
|
-
env?: Record<string, string>;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
oauth?: {
|
|
13
|
-
clientId?: string;
|
|
14
|
-
scopes?: string[];
|
|
15
|
-
};
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export type SkillMcpConfig = Record<string, McpServerDefinition>;
|
|
19
|
-
export interface SkillMcpClientInfo {
|
|
20
|
-
serverName: string;
|
|
21
|
-
skillName: string;
|
|
22
|
-
sessionID: string;
|
|
23
|
-
}
|
|
24
|
-
export interface SkillMcpServerContext {
|
|
25
|
-
config: McpServerDefinition;
|
|
26
|
-
skillName: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Connection type for a managed MCP client.
|
|
30
|
-
* - "stdio": Local process via stdin/stdout
|
|
31
|
-
* - "http": Remote server via HTTP (Streamable HTTP transport)
|
|
32
|
-
*/
|
|
33
|
-
export type ConnectionType = "stdio" | "http";
|
|
34
|
-
interface ManagedClientBase {
|
|
35
|
-
client: Client;
|
|
36
|
-
skillName: string;
|
|
37
|
-
lastUsedAt: number;
|
|
38
|
-
connectionType: ConnectionType;
|
|
39
|
-
}
|
|
40
|
-
interface ManagedStdioClient extends ManagedClientBase {
|
|
41
|
-
connectionType: "stdio";
|
|
42
|
-
transport: StdioClientTransport;
|
|
43
|
-
}
|
|
44
|
-
interface ManagedHttpClient extends ManagedClientBase {
|
|
45
|
-
connectionType: "http";
|
|
46
|
-
transport: StreamableHTTPClientTransport;
|
|
47
|
-
}
|
|
48
|
-
export type ManagedClient = ManagedStdioClient | ManagedHttpClient;
|
|
49
|
-
interface ProcessCleanupHandler {
|
|
50
|
-
signal: NodeJS.Signals;
|
|
51
|
-
listener: () => void;
|
|
52
|
-
}
|
|
53
|
-
export interface SkillMcpManagerState {
|
|
54
|
-
clients: Map<string, ManagedClient>;
|
|
55
|
-
pendingConnections: Map<string, Promise<Client>>;
|
|
56
|
-
authProviders: Map<string, McpOAuthProvider>;
|
|
57
|
-
cleanupRegistered: boolean;
|
|
58
|
-
cleanupInterval: ReturnType<typeof setInterval> | null;
|
|
59
|
-
cleanupHandlers: ProcessCleanupHandler[];
|
|
60
|
-
idleTimeoutMs: number;
|
|
61
|
-
}
|
|
62
|
-
export interface SkillMcpClientConnectionParams {
|
|
63
|
-
state: SkillMcpManagerState;
|
|
64
|
-
clientKey: string;
|
|
65
|
-
info: SkillMcpClientInfo;
|
|
66
|
-
config: McpServerDefinition;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SKILL_MCP_DESCRIPTION = "Invoke MCP server operations from skill-embedded MCPs. Requires mcp_name plus exactly one of: tool_name, resource_name, or prompt_name.";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
-
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
3
|
-
import type { SkillMcpManager } from "../../features/skill-mcp-manager";
|
|
4
|
-
interface SkillMcpToolOptions {
|
|
5
|
-
manager: SkillMcpManager;
|
|
6
|
-
getLoadedSkills: () => LoadedSkill[];
|
|
7
|
-
getSessionID: () => string;
|
|
8
|
-
}
|
|
9
|
-
export declare function applyGrepFilter(output: string, pattern: string | undefined): string;
|
|
10
|
-
export declare function createSkillMcpTool(options: SkillMcpToolOptions): ToolDefinition;
|
|
11
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|