MCPcopy Create free account
hub / github.com/bombshell-dev/clack / group

Function group

packages/prompts/src/task-log.ts:189–213  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

187 message(buffers[0], msg, mopts);
188 },
189 group(name: string) {
190 const buffer: BufferEntry = {
191 header: name,
192 value: '',
193 full: '',
194 };
195 buffers.push(buffer);
196 return {
197 message(msg: string, mopts?: TaskLogMessageOptions) {
198 message(buffer, msg, mopts);
199 },
200 error(message: string) {
201 completeBuffer(buffer, {
202 status: 'error',
203 message,
204 });
205 },
206 success(message: string) {
207 completeBuffer(buffer, {
208 status: 'success',
209 message,
210 });
211 },
212 };
213 },
214 error(message: string, opts?: TaskLogCompletionOptions): void {
215 clear(true);
216 log.error(message, { output, secondarySymbol, spacing: 1 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected