Files
oh-my-opencode/dist/features/opencode-skill-loader/async-loader.d.ts
T
2026-03-14 04:56:50 +00:00

7 lines
607 B
TypeScript

import type { SkillScope, LoadedSkill } from "./types";
import type { SkillMcpConfig } from "../skill-mcp-manager/types";
export declare function mapWithConcurrency<T, R>(items: T[], mapper: (item: T) => Promise<R>, concurrency: number): Promise<R[]>;
export declare function loadMcpJsonFromDirAsync(skillDir: string): Promise<SkillMcpConfig | undefined>;
export declare function loadSkillFromPathAsync(skillPath: string, resolvedPath: string, defaultName: string, scope: SkillScope): Promise<LoadedSkill | null>;
export declare function discoverSkillsInDirAsync(skillsDir: string): Promise<LoadedSkill[]>;