oh-my-opencode 0.3.1 → 0.3.2
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.ko.md +1 -0
- package/README.md +1 -0
- package/dist/hooks/directory-readme-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/index.d.ts +22 -0
- package/dist/hooks/directory-readme-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/types.d.ts +5 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.js +435 -261
- package/dist/tools/skill/tools.d.ts +2 -1
- package/dist/tools/skill/types.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,12 +1,28 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
1
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>;
|
|
2
15
|
export interface SkillMetadata {
|
|
3
16
|
name: string;
|
|
4
17
|
description: string;
|
|
5
18
|
license?: string;
|
|
19
|
+
allowedTools?: string[];
|
|
20
|
+
metadata?: Record<string, string>;
|
|
6
21
|
}
|
|
7
22
|
export interface SkillInfo {
|
|
8
23
|
name: string;
|
|
9
24
|
path: string;
|
|
25
|
+
basePath: string;
|
|
10
26
|
metadata: SkillMetadata;
|
|
11
27
|
content: string;
|
|
12
28
|
references: string[];
|
|
@@ -16,6 +32,7 @@ export interface SkillInfo {
|
|
|
16
32
|
export interface LoadedSkill {
|
|
17
33
|
name: string;
|
|
18
34
|
metadata: SkillMetadata;
|
|
35
|
+
basePath: string;
|
|
19
36
|
body: string;
|
|
20
37
|
referencesLoaded: Array<{
|
|
21
38
|
path: string;
|