oh-my-opencode 2.4.3 → 2.4.5
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 +4 -3
- package/README.ko.md +4 -3
- package/README.md +4 -3
- package/README.zh-cn.md +4 -3
- package/dist/config/schema.d.ts +2 -0
- package/dist/hooks/tool-output-truncator.d.ts +6 -1
- package/dist/index.js +213 -417
- package/dist/tools/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/tools/skill/index.d.ts +0 -2
- package/dist/tools/skill/tools.d.ts +0 -10
- package/dist/tools/skill/types.d.ts +0 -41
package/dist/tools/index.d.ts
CHANGED
|
@@ -318,13 +318,4 @@ export declare const builtinTools: {
|
|
|
318
318
|
command: string;
|
|
319
319
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
320
320
|
};
|
|
321
|
-
skill: {
|
|
322
|
-
description: string;
|
|
323
|
-
args: {
|
|
324
|
-
skill: import("zod").ZodString;
|
|
325
|
-
};
|
|
326
|
-
execute(args: {
|
|
327
|
-
skill: string;
|
|
328
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
329
|
-
};
|
|
330
321
|
};
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export type SkillScope = "user" | "project";
|
|
3
|
-
/**
|
|
4
|
-
* Zod schema for skill frontmatter validation
|
|
5
|
-
* Following Anthropic Agent Skills Specification v1.0
|
|
6
|
-
*/
|
|
7
|
-
export declare const SkillFrontmatterSchema: z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
description: z.ZodString;
|
|
10
|
-
license: z.ZodOptional<z.ZodString>;
|
|
11
|
-
"allowed-tools": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export type SkillFrontmatter = z.infer<typeof SkillFrontmatterSchema>;
|
|
15
|
-
export interface SkillMetadata {
|
|
16
|
-
name: string;
|
|
17
|
-
description: string;
|
|
18
|
-
license?: string;
|
|
19
|
-
allowedTools?: string[];
|
|
20
|
-
metadata?: Record<string, string>;
|
|
21
|
-
}
|
|
22
|
-
export interface SkillInfo {
|
|
23
|
-
name: string;
|
|
24
|
-
path: string;
|
|
25
|
-
basePath: string;
|
|
26
|
-
metadata: SkillMetadata;
|
|
27
|
-
content: string;
|
|
28
|
-
references: string[];
|
|
29
|
-
scripts: string[];
|
|
30
|
-
assets: string[];
|
|
31
|
-
}
|
|
32
|
-
export interface LoadedSkill {
|
|
33
|
-
name: string;
|
|
34
|
-
metadata: SkillMetadata;
|
|
35
|
-
basePath: string;
|
|
36
|
-
body: string;
|
|
37
|
-
referencesLoaded: Array<{
|
|
38
|
-
path: string;
|
|
39
|
-
content: string;
|
|
40
|
-
}>;
|
|
41
|
-
}
|