MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / taskOutputSizeBytes

Function taskOutputSizeBytes

apps/vis/server/src/lib/task-store.ts:88–97  ·  view source on GitHub ↗
(
  agentDir: string,
  taskId: string,
)

Source from the content-addressed store, hash-verified

86
87/** Byte size of a task's `output.log` (0 when absent or unreadable). */
88export async function taskOutputSizeBytes(
89 agentDir: string,
90 taskId: string,
91): Promise<number> {
92 try {
93 return (await stat(taskOutputFile(agentDir, taskId))).size;
94 } catch {
95 return 0;
96 }
97}
98
99export interface TaskOutputWindow {
100 /** Byte offset this window starts at (clamped to >= 0). */

Callers 2

task-store.test.tsFile · 0.90
tasksRouteFunction · 0.90

Calls 2

taskOutputFileFunction · 0.70
statFunction · 0.50

Tested by

no test coverage detected