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

Method setText

src/components/answer-box.ts:17–23  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

15 }
16
17 setText(text: string) {
18 this.value = text;
19 const rendered = formatResponse(text);
20 // Prevent "⏺" from appearing on its own line when model output starts with newlines.
21 const normalized = rendered.replace(/^\n+/, '');
22 this.body.setText(`${theme.primary('⏺ ')}${normalized}`);
23 }
24}

Callers 15

constructorMethod · 0.95
refreshErrorFunction · 0.80
runCliFunction · 0.80
setActiveMethod · 0.80
setCompleteMethod · 0.80
setErrorMethod · 0.80
setDeniedMethod · 0.80
setApprovalMethod · 0.80
setStateMethod · 0.80
updateMessageMethod · 0.80
setQueryMethod · 0.80
setModelMethod · 0.80

Calls 1

formatResponseFunction · 0.85

Tested by

no test coverage detected