{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/services/workflowCatalogDeps/index.ts"],"sourcesContent":["import { statSync } from 'node:fs';\n\nimport { readWorkflowCatalog, summarizeWorkflow } from '@agimon-ai/workflow-mcp';\n\nimport type { WorkflowCatalogReaderDeps } from '../webWorkflowCatalog';\n\n/** Connect the pure catalog projection service to the workflow engine and filesystem. */\nexport function defaultCatalogDeps(): WorkflowCatalogReaderDeps {\n  return {\n    list: (directory) => readWorkflowCatalog(directory),\n    summarize: (workflowPath) => summarizeWorkflow(workflowPath),\n    stamp: (workflowPath) => {\n      try {\n        const stats = statSync(workflowPath);\n        return { size: stats.size, modifiedAt: stats.mtimeMs };\n      } catch {\n        return undefined;\n      }\n    },\n  };\n}\n"],"mappings":";;;;AAOA,SAAgB,qBAAgD;CAC9D,OAAO;EACL,OAAO,cAAc,oBAAoB,SAAS;EAClD,YAAY,iBAAiB,kBAAkB,YAAY;EAC3D,QAAQ,iBAAiB;GACvB,IAAI;IACF,MAAM,QAAQ,SAAS,YAAY;IACnC,OAAO;KAAE,MAAM,MAAM;KAAM,YAAY,MAAM;IAAQ;GACvD,QAAQ;IACN;GACF;EACF;CACF;AACF"}