oh-my-opencode 2.12.4 → 2.13.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.ja.md +11 -20
- package/README.ko.md +11 -20
- package/README.md +11 -20
- package/README.zh-cn.md +11 -20
- package/dist/cli/config-manager.d.ts +17 -29
- package/dist/cli/index.js +68 -161
- package/dist/config/schema.d.ts +2 -6
- package/dist/config/schema.test.d.ts +1 -0
- package/dist/features/claude-code-command-loader/loader.d.ts +5 -9
- package/dist/features/opencode-skill-loader/loader.d.ts +11 -41
- package/dist/hooks/keyword-detector/constants.d.ts +7 -1
- package/dist/hooks/keyword-detector/detector.d.ts +2 -2
- package/dist/index.js +550 -483
- package/dist/mcp/index.d.ts +1 -2
- package/dist/mcp/index.test.d.ts +1 -0
- package/dist/mcp/types.d.ts +2 -1
- package/dist/shared/file-utils.d.ts +1 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/slashcommand/index.d.ts +1 -1
- package/dist/tools/slashcommand/tools.d.ts +10 -1
- package/dist/tools/slashcommand/types.d.ts +7 -0
- package/package.json +1 -1
- package/dist/mcp/websearch-exa.d.ts +0 -5
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { McpName } from "./types";
|
|
2
1
|
export { McpNameSchema, type McpName } from "./types";
|
|
3
|
-
export declare function createBuiltinMcps(disabledMcps?:
|
|
2
|
+
export declare function createBuiltinMcps(disabledMcps?: string[]): Record<string, {
|
|
4
3
|
type: "remote";
|
|
5
4
|
url: string;
|
|
6
5
|
enabled: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/mcp/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const McpNameSchema: z.ZodEnum<{
|
|
3
|
-
websearch_exa: "websearch_exa";
|
|
4
3
|
context7: "context7";
|
|
5
4
|
grep_app: "grep_app";
|
|
6
5
|
}>;
|
|
7
6
|
export type McpName = z.infer<typeof McpNameSchema>;
|
|
7
|
+
export declare const AnyMcpNameSchema: z.ZodString;
|
|
8
|
+
export type AnyMcpName = z.infer<typeof AnyMcpNameSchema>;
|
|
@@ -4,3 +4,4 @@ export declare function isMarkdownFile(entry: {
|
|
|
4
4
|
}): boolean;
|
|
5
5
|
export declare function isSymbolicLink(filePath: string): boolean;
|
|
6
6
|
export declare function resolveSymlink(filePath: string): string;
|
|
7
|
+
export declare function resolveSymlinkAsync(filePath: string): Promise<string>;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { createSlashcommandTool, discoverCommandsSync } from "./slashcommand";
|
|
1
2
|
export { sessionExists } from "./session-manager/storage";
|
|
2
3
|
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
|
|
3
4
|
export { createSkillTool } from "./skill";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
|
-
export { slashcommand } from "./tools";
|
|
2
|
+
export { slashcommand, createSlashcommandTool, discoverCommandsSync } from "./tools";
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
-
|
|
2
|
+
import type { CommandInfo, SlashcommandToolOptions } from "./types";
|
|
3
|
+
export declare function discoverCommandsSync(): CommandInfo[];
|
|
4
|
+
export declare function createSlashcommandTool(options?: SlashcommandToolOptions): ToolDefinition;
|
|
5
|
+
export declare const slashcommand: {
|
|
6
|
+
description: string;
|
|
7
|
+
args: Readonly<{
|
|
8
|
+
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
9
|
+
}>;
|
|
10
|
+
execute(args: Record<string, unknown>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
11
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader";
|
|
1
2
|
export type CommandScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project";
|
|
2
3
|
export interface CommandMetadata {
|
|
3
4
|
name: string;
|
|
@@ -14,3 +15,9 @@ export interface CommandInfo {
|
|
|
14
15
|
content?: string;
|
|
15
16
|
scope: CommandScope;
|
|
16
17
|
}
|
|
18
|
+
export interface SlashcommandToolOptions {
|
|
19
|
+
/** Pre-loaded commands (skip discovery if provided) */
|
|
20
|
+
commands?: CommandInfo[];
|
|
21
|
+
/** Pre-loaded skills (skip discovery if provided) */
|
|
22
|
+
skills?: LoadedSkill[];
|
|
23
|
+
}
|
package/package.json
CHANGED