oh-my-opencode 2.9.1 → 2.10.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 +16 -0
- package/dist/agents/utils.d.ts +7 -1
- package/dist/cli/doctor/checks/gh.d.ts +13 -0
- package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
- package/dist/cli/doctor/checks/index.d.ts +1 -0
- package/dist/cli/doctor/constants.d.ts +1 -0
- package/dist/cli/index.js +148 -4
- package/dist/config/schema.d.ts +9 -0
- package/dist/features/builtin-skills/types.d.ts +2 -0
- package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/types.d.ts +3 -0
- package/dist/features/skill-mcp-manager/index.d.ts +2 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +21 -0
- package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/types.d.ts +11 -0
- package/dist/google-auth.js +3 -3
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
- package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
- package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +7 -0
- package/dist/hooks/auto-slash-command/index.d.ts +8 -0
- package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/types.d.ts +27 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/detector.d.ts +5 -0
- package/dist/hooks/keyword-detector/index.d.ts +2 -1
- package/dist/index.js +25737 -12972
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/skill/tools.test.d.ts +1 -0
- package/dist/tools/skill/types.d.ts +5 -0
- package/dist/tools/skill-mcp/constants.d.ts +2 -0
- package/dist/tools/skill-mcp/index.d.ts +3 -0
- package/dist/tools/skill-mcp/tools.d.ts +11 -0
- package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
- package/dist/tools/skill-mcp/types.d.ts +8 -0
- package/package.json +4 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
|
|
2
2
|
export { createSkillTool } from "./skill";
|
|
3
3
|
export { getTmuxPath } from "./interactive-bash/utils";
|
|
4
|
+
export { createSkillMcpTool } from "./skill-mcp";
|
|
4
5
|
import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin";
|
|
5
6
|
import type { BackgroundManager } from "../features/background-agent";
|
|
6
7
|
type OpencodeClient = PluginInput["client"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SkillScope, LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
2
|
+
import type { SkillMcpManager } from "../../features/skill-mcp-manager";
|
|
2
3
|
export interface SkillArgs {
|
|
3
4
|
name: string;
|
|
4
5
|
}
|
|
@@ -17,4 +18,8 @@ export interface SkillLoadOptions {
|
|
|
17
18
|
opencodeOnly?: boolean;
|
|
18
19
|
/** Pre-merged skills to use instead of discovering */
|
|
19
20
|
skills?: LoadedSkill[];
|
|
21
|
+
/** MCP manager for querying skill-embedded MCP servers */
|
|
22
|
+
mcpManager?: SkillMcpManager;
|
|
23
|
+
/** Session ID getter for MCP client identification */
|
|
24
|
+
getSessionID?: () => string;
|
|
20
25
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
import type { SkillMcpManager } from "../../features/skill-mcp-manager";
|
|
3
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,11 +54,13 @@
|
|
|
54
54
|
"@ast-grep/napi": "^0.40.0",
|
|
55
55
|
"@clack/prompts": "^0.11.0",
|
|
56
56
|
"@code-yeongyu/comment-checker": "^0.6.1",
|
|
57
|
+
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
57
58
|
"@openauthjs/openauth": "^0.4.3",
|
|
58
59
|
"@opencode-ai/plugin": "^1.0.162",
|
|
59
60
|
"@opencode-ai/sdk": "^1.0.162",
|
|
60
61
|
"commander": "^14.0.2",
|
|
61
62
|
"hono": "^4.10.4",
|
|
63
|
+
"js-yaml": "^4.1.1",
|
|
62
64
|
"jsonc-parser": "^3.3.1",
|
|
63
65
|
"picocolors": "^1.1.1",
|
|
64
66
|
"picomatch": "^4.0.2",
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
"zod": "^4.1.8"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
71
|
+
"@types/js-yaml": "^4.0.9",
|
|
69
72
|
"@types/picomatch": "^3.0.2",
|
|
70
73
|
"bun-types": "latest",
|
|
71
74
|
"typescript": "^5.7.3"
|