MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / outputLog

Function outputLog

daemon/src/routers/instance_event_router.ts:27–31  ·  view source on GitHub ↗
(instanceUuid: string, text: string)

Source from the content-addressed store, hash-verified

25
26// output stream record to buffer
27async function outputLog(instanceUuid: string, text: string) {
28 const buf = (buffer.get(instanceUuid) ?? "") + text;
29 if (buf.length > 1024 * 1024) buffer.set(instanceUuid, "");
30 buffer.set(instanceUuid, buf ?? null);
31}
32
33// instance output stream event
34// By default, it is added to the data cache to control the sending rate to ensure its stability

Callers 1

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected