@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
21 lines • 1.06 kB
TypeScript
import type { BlobStore } from '../../storage/domains/blobs/base.js';
import type { SkillVersionTree } from '../../storage/types.js';
import type { SkillSource, SkillSourceEntry, SkillSourceStat } from './skill-source.js';
/**
* A SkillSource implementation that reads skill files from a versioned
* content-addressable blob store, using a SkillVersionTree manifest.
*
* This is used by production agents to read from published skill versions
* rather than the live filesystem. The SkillVersionTree maps file paths
* to blob hashes, and the BlobStore provides the actual content.
*/
export declare class VersionedSkillSource implements SkillSource {
#private;
constructor(tree: SkillVersionTree, blobStore: BlobStore, versionCreatedAt: Date);
exists(path: string): Promise<boolean>;
stat(path: string): Promise<SkillSourceStat>;
readFile(path: string): Promise<string | Buffer>;
readdir(path: string): Promise<SkillSourceEntry[]>;
realpath(path: string): Promise<string>;
}
//# sourceMappingURL=versioned-skill-source.d.ts.map