Skip to main content
Glama
watch-footer.component.ts1.02 kB
/** * @fileoverview Watch mode footer component for real-time task updates */ import chalk from 'chalk'; import { formatTime } from '@tm/core'; /** * Get display label for storage source */ function getSourceLabel(storageType: 'api' | 'file'): string { return storageType === 'api' ? 'Hamster Studio' : 'tasks.json'; } /** * Display watch status footer */ export function displayWatchFooter( storageType: 'api' | 'file', lastSync: Date ): void { const syncTime = formatTime(lastSync); const source = getSourceLabel(storageType); console.log(chalk.dim(`\nWatching ${source} for changes...`)); console.log(chalk.gray(`Last synced: ${syncTime}`)); console.log(chalk.dim('Press Ctrl+C to exit')); } /** * Display sync notification message */ export function displaySyncMessage( storageType: 'api' | 'file', syncTime: Date ): void { const formattedTime = formatTime(syncTime); const source = getSourceLabel(storageType); console.log(chalk.blue(`\nℹ ${source} updated at ${formattedTime}`)); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eyaltoledano/claude-task-master'

If you have feedback or need assistance with the MCP directory API, please join our Discord server