MCPcopy
hub / github.com/codeaashu/claude-code / getActivityDescription

Function getActivityDescription

src/tools/PowerShellTool/PowerShellTool.tsx:342–348  ·  view source on GitHub ↗
(input: Partial<PowerShellToolInput> | undefined)

Source from the content-addressed store, hash-verified

340 return truncate(command, TOOL_SUMMARY_MAX_LENGTH);
341 },
342 getActivityDescription(input: Partial<PowerShellToolInput> | undefined): string {
343 if (!input?.command) {
344 return 'Running command';
345 }
346 const desc = input.description ?? truncate(input.command, TOOL_SUMMARY_MAX_LENGTH);
347 return `Running ${desc}`;
348 },
349 isEnabled(): boolean {
350 return true;
351 },

Callers

nothing calls this directly

Calls 1

truncateFunction · 0.50

Tested by

no test coverage detected