export const skillSummarizeDependencyDeclarations = [
    { dependencyId: "runtime.execEngine.filesystem.readText", kind: "filesystem", required: false, description: "Optional runtime-owned reader when caller provides a skillPath instead of source excerpts." },
    { dependencyId: "runtime.capabilityExposure.skillMetadataBudget", kind: "runtime", required: true, description: "Storage owns model-visible summary budget and truncation." },
];
export function createHostExecutorSkillFilesystemProvider(executor) {
    const readText = executor?.filesystem?.readText;
    if (readText === undefined)
        return undefined;
    return {
        async readText(request) {
            const result = await readText({ path: request.path, encoding: request.encoding, maxBytes: request.maxBytes });
            if (!result.ok)
                throw new Error(result.error.message);
            return result.output;
        },
    };
}
