(status)
| 3608 | } |
| 3609 | |
| 3610 | function formatUnifiedMemoryStatus(status) { |
| 3611 | const counts = status.counts || {}; |
| 3612 | const stateParts = formatUnifiedMemoryStateParts(status.currentState); |
| 3613 | return [ |
| 3614 | "统一记忆状态:", |
| 3615 | `更新时间:${status.updatedAt || "暂无"}`, |
| 3616 | `电脑端 skill 自动写入:${state.unifiedMemory.autoWriteOnSkillRecall ? "开" : "关"}`, |
| 3617 | `iMessage 回看自动写入:${state.unifiedMemory.autoWriteOnIMessageRecall ? "开" : "关"}`, |
| 3618 | `/交接 手动写入:${state.unifiedMemory.manualHandoffCommand ? "开" : "关"}`, |
| 3619 | `交接:${counts.handoffHistory || 0} 条`, |
| 3620 | `点子:${counts.ideas || 0} 条`, |
| 3621 | `项目:${counts.projectNotes || 0} 条`, |
| 3622 | `待办:${counts.openLoops || 0} 条`, |
| 3623 | `日常状态:${counts.dailyTimeline || 0} 条`, |
| 3624 | stateParts.length ? `近期状态:${stateParts.join(";")}` : null |
| 3625 | ].filter(Boolean).join("\n"); |
| 3626 | } |
| 3627 | |
| 3628 | function formatCodexQuotaSummary(quota) { |
| 3629 | if (!quota?.available) return null; |
no test coverage detected