pleumrouter 0.5.18 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pleumrouter",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
4
4
  "description": "Official PleumRouter terminal CLI — launch any coding agent against PleumRouter.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/balance.mjs CHANGED
@@ -10,5 +10,7 @@ export async function balance() {
10
10
  const data = await res.json();
11
11
  const plm = data.balance_krw;
12
12
  const usd = data.balance_usd != null ? ` / $${data.balance_usd.toFixed(4)}` : "";
13
- console.log(`잔액: ${plm.toLocaleString("ko-KR")} 크레딧${usd}`);
13
+ // 원장 눈금이 0.1이라 잔액은 소수 1자리 고정 표기(딱 떨어져도 ".0"을 남긴다).
14
+ const shown = plm.toLocaleString("ko-KR", { minimumFractionDigits: 1, maximumFractionDigits: 1 });
15
+ console.log(`잔액: ${shown} 크레딧${usd}`);
14
16
  }
package/src/usage.mjs CHANGED
@@ -19,7 +19,9 @@ export function parseUsageArgs(rest = []) {
19
19
  return { by, days };
20
20
  }
21
21
 
22
- const fmtKrw = (n) => `${Math.round(n).toLocaleString("en-US")} 크레딧`;
22
+ // 원장 눈금 0.1 — Math.round로 자르면 소액 사용이 0으로 보인다.
23
+ const fmtKrw = (n) =>
24
+ `${Number(n).toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 })} 크레딧`;
23
25
 
24
26
  // report 응답 → 표시 문자열(순수 함수 — fixture 테스트 대상).
25
27
  export function renderUsage(data, styler = style) {