mcp-shrimp-task-manager
Version:
Shrimp Task Manager is a task tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. It converts natural language into structured dev tasks with dependency tracking and iterative refinement, enabling agent-like develope
19 lines (18 loc) • 1.04 kB
TypeScript
import { RelatedFile } from "../types/index.js";
/**
* 生成任務相關文件的內容摘要
*
* 此函數根據提供的 RelatedFile 物件列表,生成文件的摘要信息,而不實際讀取檔案內容。
* 這是一個輕量級的實現,僅基於檔案元數據(如路徑、類型、描述等)生成格式化的摘要,
* 適用於需要提供文件上下文信息但不需要訪問實際檔案內容的情境。
*
* @param relatedFiles 相關文件列表 - RelatedFile 物件數組,包含文件的路徑、類型、描述等資訊
* @param maxTotalLength 摘要內容的最大總長度 - 控制生成摘要的總字符數,避免過大的返回內容
* @returns 包含兩個字段的物件:
* - content: 詳細的文件資訊,包含每個檔案的基本資訊和提示訊息
* - summary: 簡潔的檔案列表概覽,適合快速瀏覽
*/
export declare function loadTaskRelatedFiles(relatedFiles: RelatedFile[], maxTotalLength?: number): Promise<{
content: string;
summary: string;
}>;