import CoreModel /// 计划数据仓库协议(定义在 domain 层,实现放 CoreRepository)。 public protocol PlanRepository: Sendable { func observePlan(type: PlanType) -> AsyncThrowingStream func observePlanSubmit(type: PlanType, periodKey: String) -> AsyncThrowingStream func savePlan(type: PlanType, periodKey: String, content: String, attachments: [String]) async throws }