@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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capstone-nomos/cli",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "NOMOS 에이전트 CLI — 노트북의 Claude Code를 NOMOS 서버에 연결하고 배정된 태스크를 실행한다",
5
5
  "type": "module",
6
6
  "bin": {