oh-my-opencode 2.9.0 → 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.
Files changed (42) hide show
  1. package/README.ja.md +13 -1
  2. package/README.ko.md +13 -1
  3. package/README.md +32 -1
  4. package/README.zh-cn.md +13 -1
  5. package/dist/agents/sisyphus-prompt-builder.d.ts +7 -2
  6. package/dist/agents/sisyphus.d.ts +2 -2
  7. package/dist/agents/utils.d.ts +7 -1
  8. package/dist/cli/doctor/checks/gh.d.ts +13 -0
  9. package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
  10. package/dist/cli/doctor/checks/index.d.ts +1 -0
  11. package/dist/cli/doctor/constants.d.ts +1 -0
  12. package/dist/cli/index.js +148 -4
  13. package/dist/config/schema.d.ts +9 -0
  14. package/dist/features/builtin-skills/types.d.ts +2 -0
  15. package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
  16. package/dist/features/opencode-skill-loader/types.d.ts +3 -0
  17. package/dist/features/skill-mcp-manager/index.d.ts +2 -0
  18. package/dist/features/skill-mcp-manager/manager.d.ts +21 -0
  19. package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
  20. package/dist/features/skill-mcp-manager/types.d.ts +11 -0
  21. package/dist/google-auth.js +3 -3
  22. package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +1 -1
  23. package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
  24. package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
  25. package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
  26. package/dist/hooks/auto-slash-command/executor.d.ts +7 -0
  27. package/dist/hooks/auto-slash-command/index.d.ts +8 -0
  28. package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
  29. package/dist/hooks/auto-slash-command/types.d.ts +27 -0
  30. package/dist/hooks/index.d.ts +1 -0
  31. package/dist/hooks/keyword-detector/detector.d.ts +5 -0
  32. package/dist/hooks/keyword-detector/index.d.ts +2 -1
  33. package/dist/index.js +25840 -13026
  34. package/dist/tools/index.d.ts +1 -0
  35. package/dist/tools/skill/tools.test.d.ts +1 -0
  36. package/dist/tools/skill/types.d.ts +5 -0
  37. package/dist/tools/skill-mcp/constants.d.ts +2 -0
  38. package/dist/tools/skill-mcp/index.d.ts +3 -0
  39. package/dist/tools/skill-mcp/tools.d.ts +11 -0
  40. package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
  41. package/dist/tools/skill-mcp/types.d.ts +8 -0
  42. package/package.json +4 -1
@@ -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,2 @@
1
+ export declare const SKILL_MCP_TOOL_NAME = "skill_mcp";
2
+ 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.";
@@ -0,0 +1,3 @@
1
+ export * from "./constants";
2
+ export * from "./types";
3
+ export { createSkillMcpTool } from "./tools";
@@ -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 {};
@@ -0,0 +1,8 @@
1
+ export interface SkillMcpArgs {
2
+ mcp_name: string;
3
+ tool_name?: string;
4
+ resource_name?: string;
5
+ prompt_name?: string;
6
+ arguments?: string;
7
+ grep?: string;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "2.9.0",
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"