@capstone-nomos/cli 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,6 +49,7 @@ export function toJobResult(out, requestedModel) {
|
|
|
49
49
|
cacheWriteTokens: out.usage?.cache_creation_input_tokens ?? 0,
|
|
50
50
|
cacheReadTokens: out.usage?.cache_read_input_tokens ?? 0,
|
|
51
51
|
},
|
|
52
|
+
modelLatencyMs: typeof out.duration_api_ms === 'number' && out.duration_api_ms >= 0 ? Math.round(out.duration_api_ms) : null,
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
const spawnClaude = (args, stdin, cwd) => {
|
|
@@ -105,7 +106,7 @@ export async function handleNextPmJob(client, log, run = spawnClaude) {
|
|
|
105
106
|
await client.failPmJob(job.id, result.error.slice(0, 2000));
|
|
106
107
|
}
|
|
107
108
|
else {
|
|
108
|
-
log(`완료(${sec}s, 출력 ${result.usage.outputTokens} 토큰) — 서버로 보냄`);
|
|
109
|
+
log(`완료(${sec}s${result.modelLatencyMs !== null ? `, 모델 ${(result.modelLatencyMs / 1000).toFixed(1)}s` : ''}, 출력 ${result.usage.outputTokens} 토큰) — 서버로 보냄`);
|
|
109
110
|
await client.submitPmJobResult(job.id, result);
|
|
110
111
|
}
|
|
111
112
|
return true;
|