UNPKG

@mastra/core

Version:
22 lines 1 kB
/** * InlineSkillSource — in-memory SkillSource for code-defined skills. * * Serves skills created via `createSkill()` without any filesystem dependency. * Implements the SkillSource interface so it can be used with WorkspaceSkillsImpl. * * Directory layout emulation: * Each inline skill appears as a directory at `inline/<name>/` with: * - SKILL.md (generated from the skill's metadata + instructions) * - references/<file> (from the skill's `references` map) */ import type { SkillSource, SkillSourceEntry, SkillSourceStat } from '../workspace/skills/skill-source.js'; import type { InlineSkill } from './types.js'; export declare class InlineSkillSource implements SkillSource { #private; constructor(skills: InlineSkill[]); exists(path: string): Promise<boolean>; stat(path: string): Promise<SkillSourceStat>; readFile(path: string): Promise<string | Buffer>; readdir(path: string): Promise<SkillSourceEntry[]>; } //# sourceMappingURL=inline-skill-source.d.ts.map