@sejuneoh/aitop 0.42.0 → 0.42.1

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": "@sejuneoh/aitop",
3
- "version": "0.42.0",
3
+ "version": "0.42.1",
4
4
  "description": "터미널에서 Claude Code · Codex · Antigravity · Gemini 세션과 토큰을 실시간으로 보는 읽기 전용 모니터",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/monthly.mjs CHANGED
@@ -228,7 +228,8 @@ export function foldInto(a, books, { lo, hi, complete = lo, now = Date.now(), ga
228
228
  a.holes = a.holes.filter(([, to]) => to >= keep);
229
229
  if (a.since < keep) a.since = keep;
230
230
  if (a.from < keep) a.from = keep;
231
- if (a.from > a.through) a.from = addDays(a.through, 1);
231
+ // from 이 through 보다 뒤여도 깎지 않는다: 보관함 쪽에는 빠짐없이 센 날이 없다는 뜻이고, 다음 실행이 같은 경계를 써야
232
+ // 첫 실행과 다시 실행의 표가 같다 (#344, 기록이 모두 오늘 수정된 달 첫날에 through + 1 로 깎으면 오늘이 '완전'이 됐다).
232
233
  return 'folded';
233
234
  }
234
235
 
package/src/pricing.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // Claude API 정가 기준 환산 비용 (USD / 100만 토큰). 구독 요금제 사용분도 "API 로 썼다면" 기준으로 계산한다.
2
- // 출처: Anthropic 공식 가격표 https://platform.claude.com/docs/en/about-claude/pricing (2026-11-27 확인).
2
+ // 출처: Anthropic 공식 가격표 https://platform.claude.com/docs/en/about-claude/pricing (2026-12-01 확인).
3
3
  // 캐시 읽기는 기본 입력가의 0.1배이고 표에 cacheRead 가 있는 모델만 다르다 (Fable·Mythos 5.1/5.2 는 0.025배, Opus·Sonnet 5.5 는 0.05배).
4
4
  // 캐시 쓰기는 5분 1.25배·1시간 2배.
5
5
  // long: 프롬프트가 over 토큰을 넘는 요청 전체에 쓰는 단가 (Haiku 5.5 는 10만 토큰 초과면 입력·출력·캐시 모두 5배).
@@ -32,7 +32,8 @@ const PRICES = {
32
32
  };
33
33
 
34
34
  // Gemini API 정가 (USD / 100만 토큰, 유료 등급 standard). Antigravity CLI(agy) 사용분을 "API 로 썼다면" 기준으로 계산한다.
35
- // 출처: Google 공식 가격표 https://ai.google.dev/gemini-api/docs/pricing (2026-11-27 확인). 긴 컨텍스트 구간은 따로 없다.
35
+ // 출처: Google 공식 가격표 https://aistudio.google.com/docs/pricing (2026-12-01 확인, 예전 주소 ai.google.dev/gemini-api/docs/pricing 은 이리로 넘어간다).
36
+ // 표의 모델은 긴 컨텍스트 구간이 따로 없다.
36
37
  // 출력에는 생각 토큰이 들어 있고, cacheRead 는 context caching 가격이다. 가격이 바뀌는 모델은 날짜순 목록이며,
37
38
  // from 은 그 가격이 시작되는 날(UTC 0시)이다.
38
39
  const GEMINI_PRICES = {
@@ -194,13 +195,21 @@ export function vecCost(tool, model, v, f, at = Date.now(), l = null) {
194
195
 
195
196
  // Codex(OpenAI) API 정가 기준 환산 비용 (USD / 100만 토큰). Claude 와 같이 "API 로 썼다면" 기준이다.
196
197
  // 출처: OpenAI 공식 가격표 https://developers.openai.com/api/docs/pricing 와 모델별 문서
197
- // https://developers.openai.com/api/docs/models/<모델 이름> (2026-11-18 확인, 표의 모든 모델이 공식 값과 같다).
198
+ // https://developers.openai.com/api/docs/models/<모델 이름> (2026-12-01 확인, 표의 모든 모델이 공식 값과 같다).
198
199
  // cacheRead 는 cached input 가격이다. gpt-5.1-codex, gpt-5.1-codex-max, gpt-5-codex 는 가격표에는 없고 모델별 문서에만 있다
199
- // (세 모델 모두 지원 종료). gpt-5.6-sol 값은 2026-11-30 까지의 프로모션 가격이며, 그 뒤 가격은 2026-11-18 에도 공식 가격표에 없다.
200
- // 긴 컨텍스트 단가(입력 272K 초과 요청은 입력 2배·출력 1.5배, gpt-5.6-*, gpt-5.5, gpt-5.4)는 반영하지 않는다:
200
+ // (세 모델 모두 지원 종료). gpt-5.6-sol 은 "2026-11-30 까지 프로모션 가격"이라고 적혀 있지만 2026-12-01 에도 공식 가격표가
201
+ // 같은 값($4 / $0.40 / $20)을 보이고 그 뒤 가격은 없어서 그대로 둔다 (#267).
202
+ // 긴 컨텍스트 단가(입력 272K 초과 요청은 입력 2배·출력 1.5배, gpt-6*, gpt-5.6-*, gpt-5.5, gpt-5.4)는 반영하지 않는다:
201
203
  // 세션 누적 토큰만으로는 요청마다 272K 를 넘었는지 알 수 없어서, 모두 기본 단가로 계산한다.
202
204
  // 컨텍스트 창은 Codex 기록의 model_context_window 를 그대로 쓰므로 WINDOWS 표에 넣지 않는다.
203
205
  const OPENAI_PRICES = {
206
+ 'gpt-6.2-astra': { input: 8, cacheRead: 0.4, output: 40 },
207
+ 'gpt-6.2-sol': { input: 2, cacheRead: 0.1, output: 10 },
208
+ 'gpt-6.1-sol': { input: 2, cacheRead: 0.1, output: 10 },
209
+ 'gpt-6.1-terra': { input: 1, cacheRead: 0.05, output: 5 },
210
+ 'gpt-6-astra': { input: 10, cacheRead: 1, output: 50 },
211
+ 'gpt-6-sol': { input: 2, cacheRead: 0.2, output: 10 },
212
+ 'gpt-6-luna': { input: 0.1, cacheRead: 0.01, output: 0.5 },
204
213
  'gpt-5.6-sol': { input: 4, cacheRead: 0.4, output: 20 },
205
214
  'gpt-5.6-terra': { input: 2, cacheRead: 0.2, output: 12 },
206
215
  'gpt-5.6-luna': { input: 0.2, cacheRead: 0.02, output: 1.2 },