MCPcopy
hub / github.com/virattt/dexter / setComplete

Method setComplete

src/components/tool-event.ts:116–126  ·  view source on GitHub ↗
(summary: string, duration: number)

Source from the content-addressed store, hash-verified

114 }
115
116 setComplete(summary: string, duration: number) {
117 this.clearDetail();
118 this.header.setText(`${theme.primary(CIRCLE)} ${this.toolTitle}`);
119 const detail = new Text(
120 `${theme.muted('⎿ ')}${summary}${theme.muted(` in ${formatDuration(duration)}`)}`,
121 0,
122 0
123 );
124 this.completedDetails.push(detail);
125 this.addChild(detail);
126 }
127
128 setError(error: string) {
129 this.clearDetail();

Callers

nothing calls this directly

Calls 3

clearDetailMethod · 0.95
setTextMethod · 0.80
formatDurationFunction · 0.70

Tested by

no test coverage detected