MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / titleForActivity

Function titleForActivity

ai-code-studio/src/app/helpers.ts:358–369  ·  view source on GitHub ↗
(entry: FeedEntry)

Source from the content-addressed store, hash-verified

356}
357
358export function titleForActivity(entry: FeedEntry) {
359 if (entry.feedType === 'activity') {
360 return entry.title || entry.kind || '活动';
361 }
362 if (entry.feedType === 'tool_result' && entry.diff?.stats?.filesChanged) {
363 return `已编辑 ${entry.diff.stats.filesChanged} 个文件`;
364 }
365 if (entry.feedType === 'tool_use') {
366 return entry.title || entry.toolName || '工具调用';
367 }
368 return entry.title || '活动';
369}
370
371export function statusTone(status?: string) {
372 switch (status) {

Callers 1

ActivityCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected