@sejuneoh/aitop 0.22.0 → 0.23.0
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/README.md +7 -2
- package/bin/aitop.mjs +23 -45
- package/package.json +3 -3
- package/src/config.mjs +33 -25
- package/src/doctor.mjs +45 -24
- package/src/help.mjs +87 -58
- package/src/i18n.mjs +809 -0
- package/src/json.mjs +8 -2
- package/src/line.mjs +4 -2
- package/src/notify.mjs +14 -8
- package/src/order.mjs +4 -3
- package/src/sources/antigravity.mjs +16 -15
- package/src/sources/claude-tracker.mjs +4 -4
- package/src/sources/claude.mjs +10 -10
- package/src/sources/codex.mjs +5 -5
- package/src/sources/gemini.mjs +1 -1
- package/src/ui/chrome.mjs +62 -54
- package/src/ui/detail.mjs +49 -42
- package/src/ui/table.mjs +35 -33
- package/src/ui.mjs +4 -3
package/src/i18n.mjs
ADDED
|
@@ -0,0 +1,809 @@
|
|
|
1
|
+
// 화면 문구(--help, --doctor, 옵션 오류, --print-config, 실시간 화면의 표·상세·도움말·키 줄, 알림)의 한국어·영어 표와 t(). 의존성 없이 이 파일만으로 돈다.
|
|
2
|
+
// 언어는 --lang > AITOP_LANG > 설정 파일 lang > LC_ALL > LC_MESSAGES > LANG 순서로 고른다 (bin 이 setLang 으로 정한다).
|
|
3
|
+
// 로캘 문자열이 ko 로 시작하면 ko, 그 밖(C, C.UTF-8, POSIX, 없음 포함)은 en 이다.
|
|
4
|
+
// --json 의 phase 와 --on-waiting 의 AITOP_WAITING_FOR 는 호환을 위해 언어와 상관없이 ko 표로 만든다.
|
|
5
|
+
// 표의 값은 문자열이거나 { long, short } 다. short 는 좁은 폭에서 쓰고, 없으면 long 을 쓴다.
|
|
6
|
+
// 영어 수 문구는 { one, other } (long·short 안에도 가능)로 단수·복수를 나눈다. ko 는 늘 문자열이다.
|
|
7
|
+
// {name} 은 t(key, { name }) 의 값으로 바꾼다. vars 에 없는 {name} 은 그대로 둔다 (설정 예시의 { ... } 를 건드리지 않게).
|
|
8
|
+
|
|
9
|
+
export const LANGS = ['ko', 'en'];
|
|
10
|
+
|
|
11
|
+
// 모듈을 바로 불러 쓰는 테스트·화면은 한국어다. bin 만 setLang 으로 바꾼다.
|
|
12
|
+
let current = 'ko';
|
|
13
|
+
export const getLang = () => current;
|
|
14
|
+
export function setLang(lang) {
|
|
15
|
+
if (LANGS.includes(lang)) current = lang;
|
|
16
|
+
return current;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// 로캘 문자열 하나를 언어로. ko, ko_KR.UTF-8, ko-KR 은 ko, 그 밖은 en.
|
|
20
|
+
export const langOf = (locale) => (/^ko(?:$|[_.@-])/i.test(String(locale ?? '')) ? 'ko' : 'en');
|
|
21
|
+
|
|
22
|
+
// LC_ALL > LC_MESSAGES > LANG 중 비어 있지 않은 첫 값. 셋 다 없으면 en.
|
|
23
|
+
export function localeLang(env = process.env) {
|
|
24
|
+
for (const k of ['LC_ALL', 'LC_MESSAGES', 'LANG']) if (env[k]) return langOf(env[k]);
|
|
25
|
+
return 'en';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// AITOP_LANG, 설정 파일 lang, --lang 의 값. ko·en 만 받는다 (대소문자 무시). 아니면 undefined.
|
|
29
|
+
export const langValue = (v) => {
|
|
30
|
+
const s = typeof v === 'string' ? v.trim().toLowerCase() : '';
|
|
31
|
+
return LANGS.includes(s) ? s : undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// 고르는 순서 한 곳. flag: --lang 값, file: 설정 파일의 lang (올바른 값만).
|
|
35
|
+
export function pickLang({ flag, env = process.env, file } = {}) {
|
|
36
|
+
return langValue(flag) ?? langValue(env.AITOP_LANG) ?? langValue(file) ?? localeLang(env);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// argv 에서 --lang <ko|en>, --lang=<ko|en> 을 꺼낸다. 뒤에 준 쪽을 따른다.
|
|
40
|
+
// value: 언어(올바른 값만), rest: 나머지 인자, error: [키, vars] (언어를 정한 뒤 t 로 문장을 만든다).
|
|
41
|
+
export function langOption(argv) {
|
|
42
|
+
let value;
|
|
43
|
+
let error = null;
|
|
44
|
+
const rest = [];
|
|
45
|
+
for (let i = 0; i < argv.length; i++) {
|
|
46
|
+
const m = /^--lang(?:=(.*))?$/.exec(argv[i]);
|
|
47
|
+
if (!m) {
|
|
48
|
+
rest.push(argv[i]);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
const raw = m[1] ?? (argv[i + 1] == null || argv[i + 1].startsWith('-') ? '' : argv[++i]);
|
|
52
|
+
const v = langValue(raw);
|
|
53
|
+
if (v) value = v;
|
|
54
|
+
else error ??= raw === '' ? ['opt.langMissing', {}] : ['opt.langBad', { value: JSON.stringify(raw) }];
|
|
55
|
+
}
|
|
56
|
+
return { value, rest, error };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const HELP_KO = `{logo} aitop - 터미널에서 Claude Code · Codex · Antigravity · Gemini 세션을 실시간으로 본다
|
|
60
|
+
|
|
61
|
+
aitop 실시간 화면
|
|
62
|
+
aitop --once 현재 상태를 한 번 출력하고 끝낸다
|
|
63
|
+
aitop --all 종료된 세션(24시간 이내)도 함께 본다
|
|
64
|
+
aitop --line 오늘 비용·응답 대기 수·시간당 지출을 한 줄로 내고 끝낸다 (tmux 상태줄용, 예: $54.13/$50 wait 2 $3.1/h)
|
|
65
|
+
--line=tmux 는 tmux 색 서식(#[fg=...])을 넣는다. --line-width <N> 폭 상한(기본 40, 넘으면 뒤 항목부터 뺀다)
|
|
66
|
+
장부 캐시만 읽는다. 캐시가 없어 1.5초 안에 못 읽으면 ... 을 낸다. 응답 대기 수는 Claude Code 세션만 센다
|
|
67
|
+
aitop --json 세션 목록과 사용량 합계를 JSON 으로 한 번 출력한다 (--all 과 함께 쓸 수 있다)
|
|
68
|
+
aitop --doctor Claude · Codex · Antigravity · Gemini 기록과 실행 중인 프로세스, 설정 파일을 점검한다 (--json 과 함께 쓸 수 있다)
|
|
69
|
+
aitop --bell 응답 대기 세션이 새로 생기면 터미널 벨을 울린다
|
|
70
|
+
aitop --notify 응답 대기 세션이 새로 생기면 데스크톱 알림을 띄운다 (notify-send · osascript, 없으면 건너뜀)
|
|
71
|
+
aitop --on-waiting <명령> 응답 대기 세션이 새로 생기면 /bin/sh -c 로 명령을 실행한다 (내 권한으로 실행, 10초 제한)
|
|
72
|
+
세션 정보는 환경변수로만: AITOP_TOOL AITOP_PROJECT AITOP_SESSION_ID AITOP_CWD AITOP_WAITING_FOR
|
|
73
|
+
aitop --show-requests 응답 대기 요청 전체를 상세 패널·--json 에 보인다 (AITOP_SHOW_REQUESTS=1). 비밀값 가림은 최선일 뿐이라 명령 속 비밀값이 보일 수 있다
|
|
74
|
+
aitop --budget-day <달러> 하루 예산. 헤더에 오늘 $12.30/$50 처럼 보이고, 오늘 끝 예상 비용(오늘 + 최근 속도 × 자정까지, 늘 API 환산)이
|
|
75
|
+
80% 를 넘으면 '예상 $45', 100% 를 넘으면 '예상 $60!' 로 알린다 (AITOP_BUDGET_DAY, 설정 파일 budgetDay)
|
|
76
|
+
aitop --theme light|dark 밝은 배경 / 어두운 배경 색 (없으면 COLORFGBG 로 고른다)
|
|
77
|
+
aitop --color-blind 적록 색약용 색. 응답 대기·돈·경고·diff 를 노랑·파랑 계열로 가른다 (AITOP_COLOR_BLIND=1, 설정 파일 colorBlind). --theme 과 함께 쓴다
|
|
78
|
+
aitop --lang ko|en 화면·--help·--doctor·오류 문구의 언어 (AITOP_LANG, 설정 파일 lang, 없으면 LC_ALL·LC_MESSAGES·LANG 이 ko 로 시작할 때 한국어)
|
|
79
|
+
aitop --no-bell · --no-all · --no-show-requests · --no-notify · --no-on-waiting · --no-budget-day · --no-debug · --no-color-blind 설정 파일에서 켠 값을 이번 실행만 끈다
|
|
80
|
+
aitop --debug 디버그 로그를 남긴다 (AITOP_DEBUG=1, 설정 파일 debug). 기록 형식이 바뀌어 값이 빌 때 원인 확인용
|
|
81
|
+
{logPath} (1MB 넘으면 .1 로 하나만 남김, 오류 이름·파일 이름만 쓰고 비밀값은 가림)
|
|
82
|
+
aitop --print-config 설정 값마다 값과 출처(flag/env/file/default), 설정 파일 위치를 보인다 (--json 과 함께 쓸 수 있다)
|
|
83
|
+
aitop --version 설치된 버전을 보인다
|
|
84
|
+
|
|
85
|
+
AITOP_ICONS=plain 창 제목의 Nerd Font 아이콘과 WezTerm 탭 값을 끈다 (ascii 면 로고도 ASCII)
|
|
86
|
+
AITOP_AMBIGUOUS=wide ·, →, ─, ● 같은 폭이 모호한 기호를 2칸으로 그리는 터미널(동아시아 폭 설정)용. 표·상자 기호를 1칸 기호로 바꿔 줄이 밀리지 않게 한다 (설정 파일 ambiguous)
|
|
87
|
+
|
|
88
|
+
설정 파일: {configPath}
|
|
89
|
+
예) { "theme": "light", "icons": "plain", "bell": true, "notify": true, "onWaiting": "say 대기", "budgetDay": 50, "ambiguous": "wide", "hideIdleTools": false }
|
|
90
|
+
hideIdleTools: 실행 중 세션이 없고 7일 동안 쓰지 않은 도구를 헤더 아래 도구 줄에서 숨긴다 (기본 true, false 면 늘 셋 다)
|
|
91
|
+
onWaiting 은 파일 소유자가 나이고 그룹·다른 사용자가 쓸 수 없을 때(chmod 600)만 받는다.
|
|
92
|
+
옵션 > 환경 변수 > 설정 파일 순서로 정한다. 잘못된 값은 무시하고 --doctor 에 알린다.
|
|
93
|
+
|
|
94
|
+
{keys}
|
|
95
|
+
실시간 화면에서 ? 를 누르면 지금 화면의 키부터 보인다`;
|
|
96
|
+
|
|
97
|
+
const HELP_EN = `{logo} aitop - watch Claude Code, Codex, Antigravity and Gemini sessions live in your terminal
|
|
98
|
+
|
|
99
|
+
aitop live screen
|
|
100
|
+
aitop --once print the current state once and exit
|
|
101
|
+
aitop --all also show sessions that ended in the last 24 hours
|
|
102
|
+
aitop --line print today's cost, waiting count and spend per hour on one line and exit (for tmux, e.g. $54.13/$50 wait 2 $3.1/h)
|
|
103
|
+
--line=tmux adds tmux colors (#[fg=...]). --line-width <N> sets the max width (default 40, drops items from the end)
|
|
104
|
+
Reads only the cache. With no cache it prints ... after 1.5 seconds. The waiting count covers Claude Code sessions only
|
|
105
|
+
aitop --json print the session list and usage totals as JSON once (works with --all)
|
|
106
|
+
aitop --doctor check Claude, Codex, Antigravity and Gemini logs, running processes and the config file (works with --json)
|
|
107
|
+
aitop --bell ring the terminal bell when a session starts waiting for you
|
|
108
|
+
aitop --notify show a desktop notification when a session starts waiting (notify-send or osascript, skipped if missing)
|
|
109
|
+
aitop --on-waiting <cmd> run a command with /bin/sh -c when a session starts waiting (runs as you, 10 second limit)
|
|
110
|
+
Session info is passed only in env vars: AITOP_TOOL AITOP_PROJECT AITOP_SESSION_ID AITOP_CWD AITOP_WAITING_FOR
|
|
111
|
+
aitop --show-requests show full waiting requests in the detail panel and --json (AITOP_SHOW_REQUESTS=1). Secret masking is best effort, so secrets in commands may show
|
|
112
|
+
aitop --budget-day <usd> daily budget. The header shows today $12.30/$50, and it warns when the projected end-of-day cost (today + recent rate until midnight, always API cost)
|
|
113
|
+
passes 80%, and in the warning color with ! past 100% (AITOP_BUDGET_DAY, config budgetDay)
|
|
114
|
+
aitop --theme light|dark colors for a light or dark background (picked from COLORFGBG if not set)
|
|
115
|
+
aitop --color-blind red-green color blind palette. Waiting, money, warnings and diffs use yellow and blue (AITOP_COLOR_BLIND=1, config colorBlind). Works with --theme
|
|
116
|
+
aitop --lang ko|en language for the screen, --help, --doctor and error messages (AITOP_LANG, config lang, else Korean when LC_ALL, LC_MESSAGES or LANG starts with ko)
|
|
117
|
+
aitop --no-bell · --no-all · --no-show-requests · --no-notify · --no-on-waiting · --no-budget-day · --no-debug · --no-color-blind turn off a config file setting for this run
|
|
118
|
+
aitop --debug write a debug log (AITOP_DEBUG=1, config debug). Useful when a log format changes and values go blank
|
|
119
|
+
{logPath} (keeps one .1 file past 1MB, writes only error and file names, masks secrets)
|
|
120
|
+
aitop --print-config show each setting with its value, source (flag/env/file/default) and the config file path (works with --json)
|
|
121
|
+
aitop --version show the installed version
|
|
122
|
+
|
|
123
|
+
AITOP_ICONS=plain turn off the Nerd Font icon in the window title and the WezTerm tab values (ascii also makes the logo ASCII)
|
|
124
|
+
AITOP_AMBIGUOUS=wide for terminals that draw ambiguous width symbols like ·, →, ─, ● as 2 columns (East Asian width). Uses 1 column symbols so lines stay aligned (config ambiguous)
|
|
125
|
+
|
|
126
|
+
Config file: {configPath}
|
|
127
|
+
e.g. { "theme": "light", "icons": "plain", "bell": true, "notify": true, "onWaiting": "say waiting", "budgetDay": 50, "ambiguous": "wide", "hideIdleTools": false, "lang": "en" }
|
|
128
|
+
hideIdleTools: hide tools with no running session and no use in 7 days from the tool line under the header (default true, false always shows all)
|
|
129
|
+
onWaiting is accepted only when you own the file and no group or other user can write it (chmod 600).
|
|
130
|
+
Order: option > env var > config file. Bad values are ignored and reported by --doctor.
|
|
131
|
+
|
|
132
|
+
{keys}
|
|
133
|
+
Press ? on the live screen to see the keys for the current view first`;
|
|
134
|
+
|
|
135
|
+
export const STRINGS = {
|
|
136
|
+
ko: {
|
|
137
|
+
'help.usage': HELP_KO,
|
|
138
|
+
'help.keys': '키',
|
|
139
|
+
// 키 안내의 화면 이름과 키 짧은 이름. 화면 안 도움말(help.mjs 의 VIEWS)도 이 ko 값을 쓴다.
|
|
140
|
+
'view.table': '세션 표',
|
|
141
|
+
'view.detail': '상세 패널',
|
|
142
|
+
'view.files': '변경 파일 목록',
|
|
143
|
+
'view.diff': 'diff',
|
|
144
|
+
'view.filtered': '검색어가 걸린 표',
|
|
145
|
+
'view.search': '검색 입력 중',
|
|
146
|
+
'view.common': '어디서나',
|
|
147
|
+
'key.search': '검색',
|
|
148
|
+
'key.select': '선택',
|
|
149
|
+
'key.next': '다음 볼 세션',
|
|
150
|
+
'key.sort': '정렬',
|
|
151
|
+
'key.group': '묶기',
|
|
152
|
+
'key.costMode': '비용 기준',
|
|
153
|
+
'key.pin': '고정',
|
|
154
|
+
'key.files': '변경 파일',
|
|
155
|
+
'key.detail': '상세',
|
|
156
|
+
'key.ended': '종료 세션 토글',
|
|
157
|
+
'key.back': '뒤로',
|
|
158
|
+
'key.switchSession': '세션 바꾸기',
|
|
159
|
+
'key.close': '닫기',
|
|
160
|
+
'key.pick': '고르기',
|
|
161
|
+
'key.promptTab': '지시 탭',
|
|
162
|
+
'key.diff': 'diff',
|
|
163
|
+
'key.scroll': '스크롤',
|
|
164
|
+
'key.page': '페이지',
|
|
165
|
+
'key.prevNext': '이전·다음 파일',
|
|
166
|
+
'key.clearSearch': '검색어 지우기',
|
|
167
|
+
'key.newSearch': '새 검색',
|
|
168
|
+
'key.type': '입력',
|
|
169
|
+
'key.letters': '글자',
|
|
170
|
+
'key.erase': '지우기',
|
|
171
|
+
'key.apply': '적용',
|
|
172
|
+
'key.cancel': '취소',
|
|
173
|
+
'key.help': '도움말',
|
|
174
|
+
'key.quit': '나가기',
|
|
175
|
+
|
|
176
|
+
'cli.unknown': '모르는 옵션 {opts}',
|
|
177
|
+
'cli.themeMissing': '--theme 값이 없습니다 (light 또는 dark)',
|
|
178
|
+
'cli.unhandled': '처리되지 않은 오류로 끝냅니다 ({why})',
|
|
179
|
+
'cli.logOff': '디버그 로그를 열 수 없어 끕니다 ({path})',
|
|
180
|
+
'cli.notifyLiveOnly': '--notify, --on-waiting 은 실시간 화면에서만 동작한다 (--once·--json·--doctor·파이프 출력에서는 무시)',
|
|
181
|
+
'opt.langMissing': '--lang 값이 없습니다 (ko 또는 en)',
|
|
182
|
+
'opt.langBad': '--lang 값 {value} 이 잘못되었습니다 (ko 또는 en)',
|
|
183
|
+
'opt.budgetMissing': '--budget-day 값이 없습니다 (하루 예산, 달러)',
|
|
184
|
+
'opt.budgetBad': '--budget-day 값 {value} 이 잘못되었습니다 (0 보다 큰 수)',
|
|
185
|
+
'opt.onWaitingMissing': '--on-waiting 값이 없습니다 (실행할 명령)',
|
|
186
|
+
'opt.onWaitingDash': "--on-waiting 값이 - 로 시작합니다 ({value}). 명령이 맞으면 --on-waiting='{value}' 처럼 = 로 붙여 쓴다",
|
|
187
|
+
'opt.lineBad': '--line 값 {value} 이 잘못되었습니다 (plain 또는 tmux)',
|
|
188
|
+
'opt.lineWidthMissing': '--line-width 값이 없습니다 (글자 수)',
|
|
189
|
+
'opt.lineWidthBad': '--line-width 값 {value} 이 잘못되었습니다 (0 보다 큰 정수)',
|
|
190
|
+
|
|
191
|
+
'cfg.notFile': '설정 파일이 일반 파일이 아니라 읽지 않습니다',
|
|
192
|
+
'cfg.tooBig': '설정 파일이 {kb}KB 를 넘어 읽지 않습니다',
|
|
193
|
+
'cfg.unreadable': '설정 파일을 읽을 수 없습니다 ({code})',
|
|
194
|
+
'cfg.badJson': '설정 파일이 올바른 JSON 이 아니라 무시합니다 ({why})',
|
|
195
|
+
'cfg.notObject': '설정 파일의 맨 위는 JSON 객체({ ... })여야 합니다',
|
|
196
|
+
'cfg.unknownKey': '모르는 키 {key} 는 무시합니다',
|
|
197
|
+
'cfg.badValue': '{key} 값 {value} 이 잘못되어 무시합니다 ({expect})',
|
|
198
|
+
'cfg.badEnv': '환경 변수 {name} 값 {value} 이 잘못되어 무시합니다 ({expect})',
|
|
199
|
+
'cfg.onWaitingIgnored': 'onWaiting 은 무시합니다: {why}. chmod 600 으로 고치세요',
|
|
200
|
+
'cfg.notMine': '파일 소유자가 현재 사용자가 아님',
|
|
201
|
+
'cfg.shared': '그룹·다른 사용자가 쓸 수 있음 (mode {mode})',
|
|
202
|
+
'cfg.either': '{a} 또는 {b}',
|
|
203
|
+
'cfg.command': '실행할 명령 문자열',
|
|
204
|
+
'cfg.positive': '0 보다 큰 수',
|
|
205
|
+
'cfg.file': '설정 파일: {path} ({state})',
|
|
206
|
+
'cfg.exists': '있음',
|
|
207
|
+
'cfg.missing': '없음',
|
|
208
|
+
|
|
209
|
+
'doctor.title': '{logo} aitop {version} 연결 점검 ({os})',
|
|
210
|
+
'doctor.os': '{platform}, 프로세스 {state}',
|
|
211
|
+
'doctor.procsOk': '확인 가능',
|
|
212
|
+
'doctor.procsNo': '확인 불가',
|
|
213
|
+
'doctor.state.ok': '찾음',
|
|
214
|
+
'doctor.state.missing': '없음',
|
|
215
|
+
'doctor.state.limited': '일부 지원',
|
|
216
|
+
'doctor.noFolder': '기록 폴더 없음',
|
|
217
|
+
'doctor.records': '기록 {n}개',
|
|
218
|
+
'doctor.last': '마지막 {ago} 전',
|
|
219
|
+
'doctor.runningUnknown': '실행 수 확인 불가 (Linux·WSL·macOS 만 지원)',
|
|
220
|
+
'doctor.running': '실행 {n}',
|
|
221
|
+
'doctor.unreadable': '최근 기록 읽기 실패',
|
|
222
|
+
'doctor.keys': '키: {keys}',
|
|
223
|
+
'doctor.hint.missing': '{tool} 를 한 번 실행하면 생깁니다',
|
|
224
|
+
'doctor.hint.agyMissing': 'agy 를 한 번 실행하면 생깁니다 (Gemini 탭에 보입니다)',
|
|
225
|
+
'doctor.hint.gemini': '프로세스만 감지합니다 (세션·토큰은 아직 지원하지 않음)',
|
|
226
|
+
'doctor.hint.agyNode': 'Node {node} 에서는 기록을 읽기 전용으로 열 수 없어 프로세스만 감지합니다 (Node 22.15 이상 필요)',
|
|
227
|
+
'doctor.notifier': '✓ 알림 {kind} ({path}) · --notify 로 켬',
|
|
228
|
+
'doctor.noNotifier': '○ 알림 {want} 없음 · --notify 를 켜도 알림을 건너뜀{wsl}',
|
|
229
|
+
'doctor.wsl': ' (WSL 은 notify-send 만 쓴다)',
|
|
230
|
+
'doctor.config': '{mark} 설정 {state}{path}',
|
|
231
|
+
'doctor.configExists': '있음',
|
|
232
|
+
'doctor.configMissing': '없음 (기본값)',
|
|
233
|
+
'doctor.debug': '{mark} 디버그 {state}{path}{tail}',
|
|
234
|
+
'doctor.debugOn': '켬',
|
|
235
|
+
'doctor.debugOff': '꺼짐',
|
|
236
|
+
'doctor.debugTail': ' · --debug 로 켬',
|
|
237
|
+
|
|
238
|
+
// 상태 문구 (phaseText 가 phase.msg ?? phase.kind 로 고른다). --json 의 phase 는 늘 이 한국어 표로 만든다.
|
|
239
|
+
'phase.ended': '종료',
|
|
240
|
+
'phase.done': '완료',
|
|
241
|
+
'phase.unseen': '완료 · 확인 전',
|
|
242
|
+
'phase.idle': '다음 지시 대기',
|
|
243
|
+
'phase.starting': '시작 중',
|
|
244
|
+
'phase.firstInput': '첫 입력 대기',
|
|
245
|
+
'phase.noPrompt': '아직 지시 없음',
|
|
246
|
+
'phase.geminiLimited': '실행 중 (세부 정보 미지원)',
|
|
247
|
+
'phase.agyOldNode': '실행 중 (세부 정보는 Node 22.15 이상)',
|
|
248
|
+
'phase.waiting': '응답 대기',
|
|
249
|
+
'phase.shell': '쉘 명령 실행 중',
|
|
250
|
+
'phase.tool': '도구 실행 · {what}',
|
|
251
|
+
'phase.toolUnknown': '도구 실행 · 도구',
|
|
252
|
+
'phase.team': '팀원 {n}명 작업 중',
|
|
253
|
+
'phase.think': '생각 중',
|
|
254
|
+
'phase.working': '작업 중',
|
|
255
|
+
'phase.steps': '작업 중 · {n}단계',
|
|
256
|
+
'phase.loading': '기록 읽는 중 {pct}%',
|
|
257
|
+
'phase.write': '답변 작성 중',
|
|
258
|
+
'phase.agents': '에이전트 {n}개 실행 중',
|
|
259
|
+
|
|
260
|
+
// 실시간 화면 문구 (영어 화면 3/3). ko 값은 예전 화면 글자 그대로라 한국어 화면은 바뀌지 않는다.
|
|
261
|
+
'ui.loading': '세션 기록을 읽는 중…',
|
|
262
|
+
'ui.noMatch': "'{q}' 에 맞는 세션이 없습니다.",
|
|
263
|
+
'ui.more': '… +{n} 세션',
|
|
264
|
+
'ui.moreWaiting': ' (응답 대기 {n})',
|
|
265
|
+
'ui.moveHint': ' ↑↓ 로 이동',
|
|
266
|
+
|
|
267
|
+
'hdr.working': { long: '작업 중', short: '작업' },
|
|
268
|
+
'hdr.unseen': { long: '확인 전', short: '확인' },
|
|
269
|
+
'hdr.idle': '대기',
|
|
270
|
+
'hdr.waiting': { long: '응답 대기', short: '응답' },
|
|
271
|
+
'hdr.proj': '예상',
|
|
272
|
+
'hdr.projApi': 'API 예상',
|
|
273
|
+
'hdr.budget': '예산',
|
|
274
|
+
'hdr.today': '오늘',
|
|
275
|
+
'hdr.week': '7일',
|
|
276
|
+
'hdr.weekLoading': '7일 집계 중 {pct}%',
|
|
277
|
+
'hdr.apiLong': 'API 환산',
|
|
278
|
+
'hdr.apiShort': 'API',
|
|
279
|
+
'hdr.netLong': '캐시 제외',
|
|
280
|
+
'hdr.netShort': '캐시제외',
|
|
281
|
+
|
|
282
|
+
'tools.missing': '미설치',
|
|
283
|
+
'tools.hidden': '숨김 {list}',
|
|
284
|
+
'tools.ended': '종료된 세션 포함 (24시간)',
|
|
285
|
+
'table.title': '세션 {n}',
|
|
286
|
+
'group.count': '{n}개',
|
|
287
|
+
'group.waiting': '응답 대기',
|
|
288
|
+
'group.pinned': '고정',
|
|
289
|
+
'group.noFolder': '(폴더 없음)',
|
|
290
|
+
'sort.default': '기본',
|
|
291
|
+
'sort.cost': '비용',
|
|
292
|
+
'sort.context': '컨텍스트',
|
|
293
|
+
'sort.recent': '최근',
|
|
294
|
+
'groupBy.none': '없음',
|
|
295
|
+
'groupBy.project': '프로젝트',
|
|
296
|
+
'groupBy.tool': '도구',
|
|
297
|
+
'empty.none': '실행 중인 AI 세션이 없습니다.',
|
|
298
|
+
'empty.none24': '지난 24시간 안에 AI 세션이 없습니다.',
|
|
299
|
+
'empty.show': '지난 24시간 세션 보기: ',
|
|
300
|
+
'empty.or': ' 또는 ',
|
|
301
|
+
|
|
302
|
+
'foot.help': '도움',
|
|
303
|
+
'foot.closeHelp': '도움 닫기',
|
|
304
|
+
'foot.readOnly': '⊘ 읽기전용',
|
|
305
|
+
'foot.count': '{n}개',
|
|
306
|
+
'foot.clear': '지우기',
|
|
307
|
+
'foot.toFiles': '파일 목록으로',
|
|
308
|
+
'foot.prompts': '지시',
|
|
309
|
+
'foot.pickFile': '파일 선택',
|
|
310
|
+
'foot.viewDiff': 'diff 보기',
|
|
311
|
+
'foot.toSessions': '세션으로',
|
|
312
|
+
'foot.hideEnded': '종료 숨김',
|
|
313
|
+
'foot.showEnded': '종료 포함',
|
|
314
|
+
'foot.next': '다음',
|
|
315
|
+
'foot.files': '파일',
|
|
316
|
+
'foot.hideDetail': '상세 닫기',
|
|
317
|
+
'foot.showDetail': '상세 열기',
|
|
318
|
+
'foot.unpin': '고정 해제',
|
|
319
|
+
'foot.costMode': '비용 기준',
|
|
320
|
+
'foot.clearSearch': '검색 지우기',
|
|
321
|
+
|
|
322
|
+
'help.title': '도움말 · ? 또는 Esc 로 닫기',
|
|
323
|
+
'help.more': '… {n}줄 더 · ↑↓ 로 스크롤',
|
|
324
|
+
'help.here': ' (지금 화면)',
|
|
325
|
+
'help.others': '다른 화면',
|
|
326
|
+
'help.options': '옵션',
|
|
327
|
+
'help.config': '설정 파일',
|
|
328
|
+
'help.now': '지금',
|
|
329
|
+
'help.legend': '상태 기호',
|
|
330
|
+
'help.columns': '열',
|
|
331
|
+
'legend.busy': '작업 중 (STATUS 칸에 생각·답변, 도구 실행, 팀원 작업. 색으로도 나뉜다)',
|
|
332
|
+
'legend.waiting': '응답 대기 (권한·질문). 행 배경이 강조된다',
|
|
333
|
+
'legend.unseen': '완료 · 확인 전 (작업이 끝났는데 아직 선택해 보지 않음)',
|
|
334
|
+
'legend.idle': '다음 지시 대기',
|
|
335
|
+
'legend.ended': '종료',
|
|
336
|
+
'legend.pin': '고정한 세션 (p). SESSION 칸 앞에 붙는다',
|
|
337
|
+
'legend.status': '지금 단계. 큰 기록을 처음 읽는 동안은 기록 읽는 중 N%',
|
|
338
|
+
'legend.tokens': '세션 누적 토큰 (서브에이전트 포함, 캐시 읽기 포함)',
|
|
339
|
+
'legend.cost': 'API 정가로 환산한 비용 (Codex 는 OpenAI 정가 추정). ? 는 가격표에 없는 모델 포함',
|
|
340
|
+
'legend.context': '마지막 요청의 컨텍스트 사용률 (모델별 창 크기 기준)',
|
|
341
|
+
'legend.idleCol': '마지막 활동 후 지난 시간. 작업 중이면 now',
|
|
342
|
+
'legend.hiddenKey': '숨김 N',
|
|
343
|
+
'legend.hidden': '도구 줄 끝: 7일 동안 안 쓴 도구를 숨김. 다시 보려면 설정 파일에 "hideIdleTools": false',
|
|
344
|
+
'legend.folded': '도구 줄 끝: 화면이 좁아 접은 도구 수 (넓히면 보인다)',
|
|
345
|
+
'legend.periodKey': '오늘 / 7일',
|
|
346
|
+
'legend.period': '헤더 오른쪽. 날짜별 합계, API 정가 환산이며 구독 요금제의 청구액이 아니다',
|
|
347
|
+
'legend.filesKey': '변경 파일',
|
|
348
|
+
'legend.files': 'Edit/Write(Codex 는 apply_patch) 로 고친 파일과 편집 횟수. git diff 가 아니다',
|
|
349
|
+
|
|
350
|
+
// 화면 안 도움말의 키 설명 (help.mjs 의 VIEWS·COMMON). hk.<화면>.<이름>.
|
|
351
|
+
'hk.table.search': '세션 검색 (이름·폴더·모델). Enter 적용, Esc 지우기',
|
|
352
|
+
'hk.table.select': '세션 선택',
|
|
353
|
+
'hk.table.next': '다음 볼 세션으로 (응답 대기 → 완료 · 확인 전)',
|
|
354
|
+
'hk.table.sort': '정렬: 기본 → 비용순 → 컨텍스트순 → 최근순. 응답 대기는 늘 맨 위',
|
|
355
|
+
'hk.table.group': '묶기: 없음 → 프로젝트 → 도구. 묶음 머리에 세션 수·비용',
|
|
356
|
+
'hk.table.costMode': '비용 기준: API 환산 ↔ 캐시 제외. 표·헤더·상세가 같이 바뀐다 (예산은 늘 API 환산)',
|
|
357
|
+
'hk.table.pin': '고른 세션을 맨 위(응답 대기 아래)에 고정·해제. 여러 개는 고정한 순서, 이번 실행에만',
|
|
358
|
+
'hk.table.files': '고른 세션의 변경 파일 목록으로',
|
|
359
|
+
'hk.table.detail': '상세 패널 열기·닫기',
|
|
360
|
+
'hk.table.ended': '종료된 세션(24시간) 보이기·숨기기',
|
|
361
|
+
'hk.table.back': '한 단계 뒤로 (도움말·검색 닫기, diff → 파일 목록 → 세션). 종료하지 않음',
|
|
362
|
+
'hk.detail.switch': '다른 세션을 고르면 상세도 따라 바뀐다',
|
|
363
|
+
'hk.detail.files': '변경 파일 목록으로',
|
|
364
|
+
'hk.detail.close': '상세 패널 닫기',
|
|
365
|
+
'hk.files.pick': '파일 고르기',
|
|
366
|
+
'hk.files.tabs': '지시 탭: 이번 지시 · 편집이 있던 이전 지시 T번호 · 전체',
|
|
367
|
+
'hk.files.diff': '고른 파일의 diff 보기',
|
|
368
|
+
'hk.files.back': '세션 표로',
|
|
369
|
+
'hk.diff.scroll': '한 줄씩 스크롤',
|
|
370
|
+
'hk.diff.page': '한 페이지씩',
|
|
371
|
+
'hk.diff.prevNext': '이전·다음 파일',
|
|
372
|
+
'hk.diff.back': '파일 목록으로',
|
|
373
|
+
'hk.filtered.select': '검색 결과 안에서 세션 선택',
|
|
374
|
+
'hk.filtered.clear': '검색어 지우기 (표 전체로)',
|
|
375
|
+
'hk.filtered.new': '지금 검색어를 지우고 새로 입력',
|
|
376
|
+
'hk.search.type': '검색어 입력 (이름·폴더·모델, 대소문자 무시)',
|
|
377
|
+
'hk.search.erase': '한 글자 지우기',
|
|
378
|
+
'hk.search.apply': '검색어를 남기고 표로',
|
|
379
|
+
'hk.search.cancel': '검색 취소 (검색어 지우기)',
|
|
380
|
+
'hk.common.help': '이 도움말 열기·닫기',
|
|
381
|
+
'hk.common.quit': '나가기',
|
|
382
|
+
|
|
383
|
+
// 화면 안 도움말의 옵션 묶음 (help.mjs 의 OPTIONS). 값이 있는 옵션은 이름도 언어마다 다르다.
|
|
384
|
+
'hopt.onWaiting': '--on-waiting <명령>',
|
|
385
|
+
'hopt.budgetDay': '--budget-day <달러>',
|
|
386
|
+
'hopt.notify': '응답 대기가 생기면 데스크톱 알림',
|
|
387
|
+
'hopt.onWaitingText': '응답 대기가 생기면 명령 실행',
|
|
388
|
+
'hopt.budgetDayText': '하루 예산. 헤더에 예상 비용 경고',
|
|
389
|
+
'hopt.showRequests': '응답 대기 요청 전체를 상세·--json 에',
|
|
390
|
+
'hopt.colorBlind': '적록 색약용 색 (대기·돈·경고를 노랑·파랑 계열로)',
|
|
391
|
+
'hopt.debug': '디버그 로그를 남긴다',
|
|
392
|
+
'hopt.line': '오늘 비용·대기 수·시간당 지출 한 줄 (tmux 상태줄용)',
|
|
393
|
+
'hopt.printConfig': '설정 값과 출처, 설정 파일 위치',
|
|
394
|
+
'hopt.ambiguous': '·→─● 를 2칸으로 그리는 터미널용 (1칸 기호로)',
|
|
395
|
+
'set.budget': '예산 {v}',
|
|
396
|
+
'set.none': '없음',
|
|
397
|
+
'set.notify': '알림 {v}',
|
|
398
|
+
'set.onWaiting': '대기 명령 있음',
|
|
399
|
+
'set.debug': '디버그 {v}',
|
|
400
|
+
'set.on': '켜짐',
|
|
401
|
+
'set.off': '꺼짐',
|
|
402
|
+
|
|
403
|
+
'detail.edits': '편집 ×{n}',
|
|
404
|
+
'detail.newFile': '새 파일',
|
|
405
|
+
'detail.hidden': '비밀값이 있을 수 있는 파일이라 변경 내용을 숨겼습니다',
|
|
406
|
+
'detail.deleted': '이 파일을 삭제했습니다',
|
|
407
|
+
'detail.noHunks': '보관된 변경 내용이 없습니다',
|
|
408
|
+
// 소스(claude·codex)가 메인 세션의 변경에 붙이는 이름. 화면에서만 바꾼다.
|
|
409
|
+
'detail.main': '메인',
|
|
410
|
+
'detail.cut': '… {n}줄 생략',
|
|
411
|
+
'detail.dropped': '… 이전 변경 {n}개는 보관 한도를 넘어 생략',
|
|
412
|
+
'detail.diffStats': ' · 편집 ×{e} · 쓴 줄 {a} · 지운 줄 {d}',
|
|
413
|
+
'detail.noActivity': '아직 기록된 활동이 없습니다',
|
|
414
|
+
'detail.hours': ' {n}시간',
|
|
415
|
+
'detail.tabNow': { long: '이번 지시', short: '이번' },
|
|
416
|
+
'detail.tabAll': '전체',
|
|
417
|
+
'detail.allNote': '세션 전체 · 편집 {n}회',
|
|
418
|
+
'detail.noTurn': '지시 기록 없음',
|
|
419
|
+
'detail.editCount': ' 편집 {n}회',
|
|
420
|
+
'detail.request': '요청',
|
|
421
|
+
'detail.activity': '최근 활동',
|
|
422
|
+
'detail.files': '변경 파일',
|
|
423
|
+
'detail.tabNone': ' · {tab} 0개',
|
|
424
|
+
'detail.allFiles': '전체 {n}개 · f',
|
|
425
|
+
'detail.filesMeta': '편집 기록 · Bash 제외 · {n}개',
|
|
426
|
+
'detail.noFiles': '· 이 지시에서는 고친 파일 없음',
|
|
427
|
+
'detail.otherPrompts': '다른 지시',
|
|
428
|
+
'detail.fThen': 'f 다음',
|
|
429
|
+
'detail.moreFiles': '+{n}개 더',
|
|
430
|
+
'detail.startedAgo': '시작 {at} ({ago} 전)',
|
|
431
|
+
'detail.tokenParts': '입력 {i}·출력 {o}·캐시 {c}',
|
|
432
|
+
'detail.sub': ' +서브{n}',
|
|
433
|
+
'detail.netTag': '캐시제외 ',
|
|
434
|
+
'detail.session': '세션',
|
|
435
|
+
'detail.folder': '폴더',
|
|
436
|
+
'detail.branch': '브랜치',
|
|
437
|
+
'detail.model': '모델',
|
|
438
|
+
'detail.kind': '종류',
|
|
439
|
+
'detail.started': '시작',
|
|
440
|
+
'detail.ago': '{at} ({ago} 전)',
|
|
441
|
+
'detail.tokens': '토큰',
|
|
442
|
+
'detail.total': '합계',
|
|
443
|
+
'detail.mainSub': '메인 {m} + 서브 {n}개 {s}',
|
|
444
|
+
'detail.inOut': '입력 {i} · 출력 {o}',
|
|
445
|
+
'detail.cache': '캐시 읽기 {r} · 쓰기 {w}',
|
|
446
|
+
'detail.cost': '비용',
|
|
447
|
+
'detail.context': '컨텍스트',
|
|
448
|
+
'detail.apiLabel': 'API 환산',
|
|
449
|
+
'detail.netLabel': '캐시제외',
|
|
450
|
+
'detail.apiValue': 'API 환산 {v}',
|
|
451
|
+
'detail.netValue': '캐시 제외 {v}',
|
|
452
|
+
'detail.unpriced': ' ? 가격표에 없는 모델 포함',
|
|
453
|
+
|
|
454
|
+
// 데스크톱 알림 (--notify). 화면 언어를 따른다.
|
|
455
|
+
'notify.one': 'aitop: 응답 대기 ({tool})',
|
|
456
|
+
'notify.title': 'aitop: 응답 대기',
|
|
457
|
+
'notify.many': '{n}개 세션이 응답을 기다립니다',
|
|
458
|
+
// Antigravity 소스가 요청 이름을 모를 때 넣는 대기 사유. --json 에는 이 한국어 그대로 나가고 화면에서만 바꾼다.
|
|
459
|
+
'phase.approve': '도구 허락',
|
|
460
|
+
},
|
|
461
|
+
en: {
|
|
462
|
+
'help.usage': HELP_EN,
|
|
463
|
+
'help.keys': 'Keys',
|
|
464
|
+
'view.table': 'Session table',
|
|
465
|
+
'view.detail': 'Detail panel',
|
|
466
|
+
'view.files': 'Changed files',
|
|
467
|
+
'view.diff': 'diff',
|
|
468
|
+
'view.filtered': 'Filtered table',
|
|
469
|
+
'view.search': 'Typing a search',
|
|
470
|
+
'view.common': 'Anywhere',
|
|
471
|
+
'key.search': 'search',
|
|
472
|
+
'key.select': 'select',
|
|
473
|
+
'key.next': 'next to check',
|
|
474
|
+
'key.sort': 'sort',
|
|
475
|
+
'key.group': 'group',
|
|
476
|
+
'key.costMode': 'cost basis',
|
|
477
|
+
'key.pin': 'pin',
|
|
478
|
+
'key.files': 'changed files',
|
|
479
|
+
'key.detail': 'detail',
|
|
480
|
+
'key.ended': 'ended sessions',
|
|
481
|
+
'key.back': 'back',
|
|
482
|
+
'key.switchSession': 'switch session',
|
|
483
|
+
'key.close': 'close',
|
|
484
|
+
'key.pick': 'pick',
|
|
485
|
+
'key.promptTab': 'prompt tabs',
|
|
486
|
+
'key.diff': 'diff',
|
|
487
|
+
'key.scroll': 'scroll',
|
|
488
|
+
'key.page': 'page',
|
|
489
|
+
'key.prevNext': 'prev/next file',
|
|
490
|
+
'key.clearSearch': 'clear search',
|
|
491
|
+
'key.newSearch': 'new search',
|
|
492
|
+
'key.type': 'to search',
|
|
493
|
+
'key.letters': 'text',
|
|
494
|
+
'key.erase': 'erase',
|
|
495
|
+
'key.apply': 'apply',
|
|
496
|
+
'key.cancel': 'cancel',
|
|
497
|
+
'key.help': 'help',
|
|
498
|
+
'key.quit': 'quit',
|
|
499
|
+
|
|
500
|
+
'cli.unknown': 'unknown option {opts}',
|
|
501
|
+
'cli.themeMissing': '--theme needs a value (light or dark)',
|
|
502
|
+
'cli.unhandled': 'stopping on an unhandled error ({why})',
|
|
503
|
+
'cli.logOff': 'cannot open the debug log, turning it off ({path})',
|
|
504
|
+
'cli.notifyLiveOnly': '--notify and --on-waiting only work on the live screen (ignored with --once, --json, --doctor and piped output)',
|
|
505
|
+
'opt.langMissing': '--lang needs a value (ko or en)',
|
|
506
|
+
'opt.langBad': 'bad --lang value {value} (ko or en)',
|
|
507
|
+
'opt.budgetMissing': '--budget-day needs a value (daily budget in USD)',
|
|
508
|
+
'opt.budgetBad': 'bad --budget-day value {value} (a number above 0)',
|
|
509
|
+
'opt.onWaitingMissing': '--on-waiting needs a value (a command to run)',
|
|
510
|
+
'opt.onWaitingDash': "--on-waiting value starts with - ({value}). If it is the command, attach it with =, like --on-waiting='{value}'",
|
|
511
|
+
'opt.lineBad': 'bad --line value {value} (plain or tmux)',
|
|
512
|
+
'opt.lineWidthMissing': '--line-width needs a value (characters)',
|
|
513
|
+
'opt.lineWidthBad': 'bad --line-width value {value} (a whole number above 0)',
|
|
514
|
+
|
|
515
|
+
'cfg.notFile': 'config file is not a regular file, not reading it',
|
|
516
|
+
'cfg.tooBig': 'config file is over {kb}KB, not reading it',
|
|
517
|
+
'cfg.unreadable': 'cannot read the config file ({code})',
|
|
518
|
+
'cfg.badJson': 'config file is not valid JSON, ignoring it ({why})',
|
|
519
|
+
'cfg.notObject': 'config file must be a JSON object ({ ... }) at the top',
|
|
520
|
+
'cfg.unknownKey': 'ignoring unknown key {key}',
|
|
521
|
+
'cfg.badValue': 'ignoring bad {key} value {value} ({expect})',
|
|
522
|
+
'cfg.badEnv': 'ignoring bad env var {name} value {value} ({expect})',
|
|
523
|
+
'cfg.onWaitingIgnored': 'ignoring onWaiting: {why}. Fix with chmod 600',
|
|
524
|
+
'cfg.notMine': 'file is not owned by the current user',
|
|
525
|
+
'cfg.shared': 'group or other users can write it (mode {mode})',
|
|
526
|
+
'cfg.either': '{a} or {b}',
|
|
527
|
+
'cfg.command': 'a command string',
|
|
528
|
+
'cfg.positive': 'a number above 0',
|
|
529
|
+
'cfg.file': 'Config file: {path} ({state})',
|
|
530
|
+
'cfg.exists': 'found',
|
|
531
|
+
'cfg.missing': 'not found',
|
|
532
|
+
|
|
533
|
+
'doctor.title': '{logo} aitop {version} setup check ({os})',
|
|
534
|
+
'doctor.os': '{platform}, processes {state}',
|
|
535
|
+
'doctor.procsOk': 'visible',
|
|
536
|
+
'doctor.procsNo': 'not visible',
|
|
537
|
+
'doctor.state.ok': 'found',
|
|
538
|
+
'doctor.state.missing': 'missing',
|
|
539
|
+
'doctor.state.limited': { long: 'partial support', short: 'partial' },
|
|
540
|
+
'doctor.noFolder': 'no log folder',
|
|
541
|
+
'doctor.records': { one: '{n} log', other: '{n} logs' },
|
|
542
|
+
'doctor.last': 'last {ago} ago',
|
|
543
|
+
'doctor.runningUnknown': 'cannot count running (Linux, WSL and macOS only)',
|
|
544
|
+
'doctor.running': 'running {n}',
|
|
545
|
+
'doctor.unreadable': 'cannot read the latest log',
|
|
546
|
+
'doctor.keys': 'keys: {keys}',
|
|
547
|
+
'doctor.hint.missing': 'created after you run {tool} once',
|
|
548
|
+
'doctor.hint.agyMissing': 'created after you run agy once (shown in the Gemini tab)',
|
|
549
|
+
'doctor.hint.gemini': 'detects processes only (sessions and tokens not supported yet)',
|
|
550
|
+
'doctor.hint.agyNode': 'Node {node} cannot open the logs read-only, so only processes are detected (needs Node 22.15 or later)',
|
|
551
|
+
'doctor.notifier': '✓ notify {kind} ({path}) · turn on with --notify',
|
|
552
|
+
'doctor.noNotifier': '○ notify {want} not found · --notify will skip notifications{wsl}',
|
|
553
|
+
'doctor.wsl': ' (WSL uses notify-send only)',
|
|
554
|
+
'doctor.config': '{mark} config {state}{path}',
|
|
555
|
+
'doctor.configExists': 'found',
|
|
556
|
+
'doctor.configMissing': 'not found',
|
|
557
|
+
'doctor.debug': '{mark} debug {state}{path}{tail}',
|
|
558
|
+
'doctor.debugOn': 'on',
|
|
559
|
+
'doctor.debugOff': 'off',
|
|
560
|
+
'doctor.debugTail': ' · turn on with --debug',
|
|
561
|
+
|
|
562
|
+
'phase.ended': 'Ended',
|
|
563
|
+
'phase.done': 'Done',
|
|
564
|
+
'phase.unseen': { long: 'Done, unseen', short: 'Done, unseen' },
|
|
565
|
+
'phase.idle': { long: 'Idle, ready for the next prompt', short: 'Idle' },
|
|
566
|
+
'phase.starting': 'Starting',
|
|
567
|
+
'phase.firstInput': { long: 'Idle, ready for the first prompt', short: 'Idle' },
|
|
568
|
+
'phase.noPrompt': 'No prompt yet',
|
|
569
|
+
'phase.geminiLimited': { long: 'Running (no details yet)', short: 'Running' },
|
|
570
|
+
'phase.agyOldNode': { long: 'Running (details need Node 22.15+)', short: 'Running' },
|
|
571
|
+
'phase.waiting': { long: 'Waiting for you', short: 'Waiting' },
|
|
572
|
+
'phase.shell': { long: 'Running shell command', short: 'Shell' },
|
|
573
|
+
'phase.tool': { long: 'Running tool · {what}', short: 'Tool · {what}' },
|
|
574
|
+
'phase.toolUnknown': { long: 'Running tool', short: 'Tool' },
|
|
575
|
+
'phase.team': { long: 'Team working · {n}', short: 'Team · {n}' },
|
|
576
|
+
'phase.think': 'Thinking',
|
|
577
|
+
'phase.working': 'Working',
|
|
578
|
+
'phase.steps': { long: 'Working · step {n}', short: 'Step {n}' },
|
|
579
|
+
'phase.loading': { long: 'Reading log {pct}%', short: 'Loading {pct}%' },
|
|
580
|
+
'phase.write': { long: 'Writing reply', short: 'Writing' },
|
|
581
|
+
'phase.agents': { long: { one: '{n} agent running', other: '{n} agents running' }, short: { one: '{n} agent', other: '{n} agents' } },
|
|
582
|
+
|
|
583
|
+
'ui.loading': 'Reading session logs…',
|
|
584
|
+
'ui.noMatch': "No sessions match '{q}'.",
|
|
585
|
+
'ui.more': { one: '… +{n} session', other: '… +{n} sessions' },
|
|
586
|
+
'ui.moreWaiting': ' ({n} waiting)',
|
|
587
|
+
'ui.moveHint': ' ↑↓ to move',
|
|
588
|
+
|
|
589
|
+
'hdr.working': { long: 'working', short: 'busy' },
|
|
590
|
+
'hdr.unseen': 'unseen',
|
|
591
|
+
'hdr.idle': 'idle',
|
|
592
|
+
'hdr.waiting': { long: 'waiting', short: 'wait' },
|
|
593
|
+
'hdr.proj': 'est',
|
|
594
|
+
'hdr.projApi': 'API est',
|
|
595
|
+
'hdr.budget': 'budget',
|
|
596
|
+
'hdr.today': 'today',
|
|
597
|
+
'hdr.week': '7d',
|
|
598
|
+
'hdr.weekLoading': '7d loading {pct}%',
|
|
599
|
+
'hdr.apiLong': 'API cost',
|
|
600
|
+
'hdr.apiShort': 'API',
|
|
601
|
+
'hdr.netLong': 'no cache',
|
|
602
|
+
'hdr.netShort': 'no cache',
|
|
603
|
+
|
|
604
|
+
'tools.missing': 'not installed',
|
|
605
|
+
'tools.hidden': 'hidden {list}',
|
|
606
|
+
'tools.ended': 'with ended sessions (24h)',
|
|
607
|
+
'table.title': 'Sessions {n}',
|
|
608
|
+
'group.count': '{n}',
|
|
609
|
+
'group.waiting': 'Waiting',
|
|
610
|
+
'group.pinned': 'Pinned',
|
|
611
|
+
'group.noFolder': '(no folder)',
|
|
612
|
+
'sort.default': 'default',
|
|
613
|
+
'sort.cost': 'cost',
|
|
614
|
+
'sort.context': 'context',
|
|
615
|
+
'sort.recent': 'recent',
|
|
616
|
+
'groupBy.none': 'none',
|
|
617
|
+
'groupBy.project': 'project',
|
|
618
|
+
'groupBy.tool': 'tool',
|
|
619
|
+
'empty.none': 'No AI sessions running.',
|
|
620
|
+
'empty.none24': 'No AI sessions in the last 24 hours.',
|
|
621
|
+
'empty.show': 'Show the last 24 hours: ',
|
|
622
|
+
'empty.or': ' or ',
|
|
623
|
+
|
|
624
|
+
'foot.help': 'help',
|
|
625
|
+
'foot.closeHelp': 'close help',
|
|
626
|
+
'foot.readOnly': '⊘ read-only',
|
|
627
|
+
'foot.count': '{n} found',
|
|
628
|
+
'foot.clear': 'clear',
|
|
629
|
+
'foot.toFiles': 'to files',
|
|
630
|
+
'foot.prompts': 'prompts',
|
|
631
|
+
'foot.pickFile': 'pick file',
|
|
632
|
+
'foot.viewDiff': 'view diff',
|
|
633
|
+
'foot.toSessions': 'to sessions',
|
|
634
|
+
'foot.hideEnded': 'hide ended',
|
|
635
|
+
'foot.showEnded': 'show ended',
|
|
636
|
+
'foot.next': 'next',
|
|
637
|
+
'foot.files': 'files',
|
|
638
|
+
'foot.hideDetail': 'hide detail',
|
|
639
|
+
'foot.showDetail': 'show detail',
|
|
640
|
+
'foot.unpin': 'unpin',
|
|
641
|
+
'foot.costMode': 'cost',
|
|
642
|
+
'foot.clearSearch': 'clear search',
|
|
643
|
+
|
|
644
|
+
'help.title': 'Help · ? or Esc to close',
|
|
645
|
+
'help.more': { one: '… {n} more line · ↑↓ to scroll', other: '… {n} more lines · ↑↓ to scroll' },
|
|
646
|
+
'help.here': ' (this view)',
|
|
647
|
+
'help.others': 'Other views',
|
|
648
|
+
'help.options': 'Options',
|
|
649
|
+
'help.config': 'Config file',
|
|
650
|
+
'help.now': 'Now',
|
|
651
|
+
'help.legend': 'Status marks',
|
|
652
|
+
'help.columns': 'Columns',
|
|
653
|
+
'legend.busy': 'Working (thinking, writing, tools, team)',
|
|
654
|
+
'legend.waiting': 'Waiting for you (permission or question)',
|
|
655
|
+
'legend.unseen': 'Done, unseen (not selected yet)',
|
|
656
|
+
'legend.idle': 'Idle, ready for the next prompt',
|
|
657
|
+
'legend.ended': 'Ended',
|
|
658
|
+
'legend.pin': 'Pinned session (p), before SESSION',
|
|
659
|
+
'legend.status': 'Current step (Reading log N% on first load)',
|
|
660
|
+
'legend.tokens': 'Tokens incl. subagents and cache reads',
|
|
661
|
+
'legend.cost': 'API cost (Codex estimated). ? = unpriced',
|
|
662
|
+
'legend.context': 'Context used by the last request',
|
|
663
|
+
'legend.idleCol': 'Time since last activity. now while working',
|
|
664
|
+
'legend.hiddenKey': 'hidden N',
|
|
665
|
+
'legend.hidden': 'Tools unused for 7 days (hideIdleTools)',
|
|
666
|
+
'legend.folded': 'Tools folded on a narrow screen',
|
|
667
|
+
'legend.periodKey': 'today / 7d',
|
|
668
|
+
'legend.period': 'Daily API cost totals, not your bill',
|
|
669
|
+
'legend.filesKey': 'Changed files',
|
|
670
|
+
'legend.files': 'Edit/Write/apply_patch edits. Not git diff',
|
|
671
|
+
|
|
672
|
+
'hk.table.search': 'Search by name, folder or model',
|
|
673
|
+
'hk.table.select': 'Select a session',
|
|
674
|
+
'hk.table.next': 'Next session to check (waiting, then unseen)',
|
|
675
|
+
'hk.table.sort': 'Sort: cost, context, recent. Waiting on top',
|
|
676
|
+
'hk.table.group': 'Group by project or tool, with cost',
|
|
677
|
+
'hk.table.costMode': 'Cost basis: API cost or no cache',
|
|
678
|
+
'hk.table.pin': 'Pin on top, below waiting (this run only)',
|
|
679
|
+
'hk.table.files': 'Changed files of the session',
|
|
680
|
+
'hk.table.detail': 'Show or hide the detail panel',
|
|
681
|
+
'hk.table.ended': 'Show or hide ended sessions (24h)',
|
|
682
|
+
'hk.table.back': 'Go back one step. Never quits',
|
|
683
|
+
'hk.detail.switch': 'Pick another session, the detail follows',
|
|
684
|
+
'hk.detail.files': 'Open the changed files',
|
|
685
|
+
'hk.detail.close': 'Close the detail panel',
|
|
686
|
+
'hk.files.pick': 'Pick a file',
|
|
687
|
+
'hk.files.tabs': 'Prompt tabs: latest, earlier (T number), all',
|
|
688
|
+
'hk.files.diff': 'View the diff of the file',
|
|
689
|
+
'hk.files.back': 'Back to the session table',
|
|
690
|
+
'hk.diff.scroll': 'Scroll one line',
|
|
691
|
+
'hk.diff.page': 'Scroll one page',
|
|
692
|
+
'hk.diff.prevNext': 'Previous or next file',
|
|
693
|
+
'hk.diff.back': 'Back to the file list',
|
|
694
|
+
'hk.filtered.select': 'Select a session in the results',
|
|
695
|
+
'hk.filtered.clear': 'Clear the search (full table)',
|
|
696
|
+
'hk.filtered.new': 'Clear the search and type a new one',
|
|
697
|
+
'hk.search.type': 'Type a search (name, folder, model)',
|
|
698
|
+
'hk.search.erase': 'Erase one character',
|
|
699
|
+
'hk.search.apply': 'Keep the search and go to the table',
|
|
700
|
+
'hk.search.cancel': 'Cancel (clear the search)',
|
|
701
|
+
'hk.common.help': 'Open or close this help',
|
|
702
|
+
'hk.common.quit': 'Quit',
|
|
703
|
+
|
|
704
|
+
'hopt.onWaiting': '--on-waiting <cmd>',
|
|
705
|
+
'hopt.budgetDay': '--budget-day <usd>',
|
|
706
|
+
'hopt.notify': 'Desktop alert when a session waits',
|
|
707
|
+
'hopt.onWaitingText': 'Run a command when a session waits',
|
|
708
|
+
'hopt.budgetDayText': 'Daily budget, warns in the header',
|
|
709
|
+
'hopt.showRequests': 'Show full waiting requests',
|
|
710
|
+
'hopt.colorBlind': 'Red-green color blind palette',
|
|
711
|
+
'hopt.debug': 'Write a debug log',
|
|
712
|
+
'hopt.line': 'One line for the tmux status bar',
|
|
713
|
+
'hopt.printConfig': 'Settings, sources, config path',
|
|
714
|
+
'hopt.ambiguous': 'For 2 column ·→─● terminals',
|
|
715
|
+
'set.budget': 'budget {v}',
|
|
716
|
+
'set.none': 'none',
|
|
717
|
+
'set.notify': 'notify {v}',
|
|
718
|
+
'set.onWaiting': 'on-waiting set',
|
|
719
|
+
'set.debug': 'debug {v}',
|
|
720
|
+
'set.on': 'on',
|
|
721
|
+
'set.off': 'off',
|
|
722
|
+
|
|
723
|
+
'detail.edits': 'edits ×{n}',
|
|
724
|
+
'detail.newFile': 'new file',
|
|
725
|
+
'detail.hidden': 'Changes hidden because this file may hold secrets',
|
|
726
|
+
'detail.deleted': 'This file was deleted',
|
|
727
|
+
'detail.noHunks': 'No saved changes',
|
|
728
|
+
'detail.main': 'main',
|
|
729
|
+
'detail.cut': { one: '… {n} line cut', other: '… {n} lines cut' },
|
|
730
|
+
'detail.dropped': { one: '… {n} older change cut (over the limit)', other: '… {n} older changes cut (over the limit)' },
|
|
731
|
+
'detail.diffStats': ' · edits ×{e} · added {a} · removed {d}',
|
|
732
|
+
'detail.noActivity': 'No activity yet',
|
|
733
|
+
'detail.hours': ' {n}h',
|
|
734
|
+
'detail.tabNow': { long: 'Latest prompt', short: 'Latest' },
|
|
735
|
+
'detail.tabAll': 'All',
|
|
736
|
+
'detail.allNote': { one: 'Whole session · {n} edit', other: 'Whole session · {n} edits' },
|
|
737
|
+
'detail.noTurn': 'No prompt found',
|
|
738
|
+
'detail.editCount': { one: ' {n} edit', other: ' {n} edits' },
|
|
739
|
+
'detail.request': 'Request',
|
|
740
|
+
'detail.activity': 'Recent activity',
|
|
741
|
+
'detail.files': 'Changed files',
|
|
742
|
+
'detail.tabNone': ' · {tab}: none',
|
|
743
|
+
'detail.allFiles': 'all {n} · f',
|
|
744
|
+
'detail.filesMeta': 'edit log · no Bash · {n}',
|
|
745
|
+
'detail.noFiles': '· No files changed in this prompt',
|
|
746
|
+
'detail.otherPrompts': 'other prompts',
|
|
747
|
+
'detail.fThen': 'f then',
|
|
748
|
+
'detail.moreFiles': '+{n} more',
|
|
749
|
+
'detail.startedAgo': 'started {at} ({ago} ago)',
|
|
750
|
+
'detail.tokenParts': 'in {i}·out {o}·cache {c}',
|
|
751
|
+
'detail.sub': ' +sub{n}',
|
|
752
|
+
'detail.netTag': 'no cache ',
|
|
753
|
+
'detail.session': 'Session',
|
|
754
|
+
'detail.folder': 'Folder',
|
|
755
|
+
'detail.branch': 'Branch',
|
|
756
|
+
'detail.model': 'Model',
|
|
757
|
+
'detail.kind': 'Kind',
|
|
758
|
+
'detail.started': 'Started',
|
|
759
|
+
'detail.ago': '{at} ({ago} ago)',
|
|
760
|
+
'detail.tokens': 'Tokens',
|
|
761
|
+
'detail.total': 'Total',
|
|
762
|
+
'detail.mainSub': { one: 'main {m} + {n} subagent {s}', other: 'main {m} + {n} subagents {s}' },
|
|
763
|
+
'detail.inOut': 'in {i} · out {o}',
|
|
764
|
+
'detail.cache': 'cache read {r} · write {w}',
|
|
765
|
+
'detail.cost': 'Cost',
|
|
766
|
+
'detail.context': 'Context',
|
|
767
|
+
'detail.apiLabel': 'API cost',
|
|
768
|
+
'detail.netLabel': 'No cache',
|
|
769
|
+
'detail.apiValue': 'API cost {v}',
|
|
770
|
+
'detail.netValue': 'no cache {v}',
|
|
771
|
+
'detail.unpriced': ' ? includes unpriced models',
|
|
772
|
+
|
|
773
|
+
'notify.one': 'aitop: waiting ({tool})',
|
|
774
|
+
'notify.title': 'aitop: waiting',
|
|
775
|
+
'notify.many': { one: '{n} session is waiting for you', other: '{n} sessions are waiting for you' },
|
|
776
|
+
'phase.approve': 'Approve tool',
|
|
777
|
+
},
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
// 문구 하나. opts.lang 이 없으면 지금 언어, opts.short 면 짧은 문구(없으면 긴 문구).
|
|
781
|
+
// 표에 없는 키는 키 이름을 그대로 돌려 빠진 번역이 화면에서 드러나게 한다 (키 일치는 테스트가 막는다).
|
|
782
|
+
// 값이 { one, other } 면 vars.n 이 1 일 때 one, 아니면 other 를 쓴다 (영어 단수·복수). long·short 안에도 둘 수 있다.
|
|
783
|
+
export function t(key, vars, { lang = current, short = false } = {}) {
|
|
784
|
+
const table = STRINGS[lang] ?? STRINGS.ko;
|
|
785
|
+
const v = Object.hasOwn(table, key) ? table[key] : key;
|
|
786
|
+
const plural = (x) => (typeof x === 'string' ? x : Number(vars?.n) === 1 ? x.one : x.other);
|
|
787
|
+
const s = plural(typeof v === 'string' || 'one' in v ? v : short ? (v.short ?? v.long) : v.long);
|
|
788
|
+
if (!vars) return s;
|
|
789
|
+
return s.replace(/\{(\w+)\}/g, (m, name) => (Object.hasOwn(vars, name) ? String(vars[name]) : m));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
// 상태 문구. 수집 단계는 phase = { kind, msg?, args? } 만 보내고 문장은 화면(과 --json)이 여기서 만든다.
|
|
793
|
+
// msg 가 없으면 kind 가 문구 이름이다. args: what(도구 이름·대기 요청), n(팀원 수·단계 수), pct(기록 읽은 비율), agents(같이 도는 에이전트 수).
|
|
794
|
+
// 응답 대기는 '응답 대기 · {what}' 처럼 요청을 붙이고, agents 가 있으면 어느 상태든 ' · 에이전트 N개 실행 중' 을 붙인다.
|
|
795
|
+
// short: 표의 STATUS 칸. 짧은 문구를 쓰고, 응답 대기는 ◆ 와 행 색으로 이미 보이므로 앞의 '응답 대기' 를 뗀다 (뒤에 붙은 것이 없으면 남긴다).
|
|
796
|
+
export function phaseText(phase, { lang = current, short = false } = {}) {
|
|
797
|
+
if (!phase?.kind) return '';
|
|
798
|
+
const o = { lang, short };
|
|
799
|
+
const raw = phase.args ?? {};
|
|
800
|
+
// 소스가 넣은 한국어 대기 사유(도구 허락)는 ko 가 아닐 때만 바꾼다. ko(화면·--json)는 그대로.
|
|
801
|
+
const a = lang !== 'ko' && raw.what === STRINGS.ko['phase.approve'] ? { ...raw, what: t('phase.approve', null, o) } : raw;
|
|
802
|
+
const parts = [t(`phase.${phase.msg ?? phase.kind}`, a, o)];
|
|
803
|
+
if (phase.kind === 'waiting' && a.what) parts.push(String(a.what));
|
|
804
|
+
if (a.agents) parts.push(t('phase.agents', { n: a.agents }, o));
|
|
805
|
+
if (short && phase.kind === 'waiting' && parts.length > 1) parts.shift();
|
|
806
|
+
// 영어 에이전트 문구는 소문자로 시작해 문장 가운데(' · ' 뒤)에 붙는다. 맨 앞에 혼자 남으면 첫 글자만 대문자로.
|
|
807
|
+
if (lang !== 'ko' && a.agents && parts.length === 1) parts[0] = parts[0][0].toUpperCase() + parts[0].slice(1);
|
|
808
|
+
return parts.join(' · ');
|
|
809
|
+
}
|