bizrouter 0.3.2 → 0.3.3
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/AGENT_MANUAL.md +1 -0
- package/dist/commands/console.js +5 -2
- package/dist/commands/misc.js +1 -1
- package/package.json +1 -1
package/AGENT_MANUAL.md
CHANGED
|
@@ -152,6 +152,7 @@ Why did requests fail this morning?
|
|
|
152
152
|
|
|
153
153
|
```
|
|
154
154
|
bizrouter audit list --status error --from 2026-09-06 --limit 20
|
|
155
|
+
bizrouter audit list --user kim@example.com # one person's requests (email or name, partial match)
|
|
155
156
|
bizrouter audit show <log_id>
|
|
156
157
|
```
|
|
157
158
|
|
package/dist/commands/console.js
CHANGED
|
@@ -382,7 +382,7 @@ export async function orgCommand(argv) {
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
const AUDIT_USAGE = [
|
|
385
|
-
'bizrouter audit list [--status success|error|blocked] [--model ID] [--key 이름] [--from YYYY-MM-DD] [--to YYYY-MM-DD] [--search 텍스트] [--limit N] [--cursor C] [--json]',
|
|
385
|
+
'bizrouter audit list [--status success|error|blocked] [--model ID] [--key 이름] [--app 이름] [--user 이메일|이름] [--from YYYY-MM-DD] [--to YYYY-MM-DD] [--search 텍스트] [--limit N] [--cursor C] [--json]',
|
|
386
386
|
'bizrouter audit show <log_id> [--json]',
|
|
387
387
|
'bizrouter audit stats [--json]',
|
|
388
388
|
].join('\n');
|
|
@@ -399,6 +399,8 @@ export async function auditCommand(argv) {
|
|
|
399
399
|
model: flagString(parsed, 'model'),
|
|
400
400
|
api_key: flagString(parsed, 'key'),
|
|
401
401
|
app_name: flagString(parsed, 'app'),
|
|
402
|
+
// Partial, case-insensitive match on the requesting user's email or name.
|
|
403
|
+
user: flagString(parsed, 'user'),
|
|
402
404
|
search: flagString(parsed, 'search'),
|
|
403
405
|
start_date: from ? `${from}T00:00:00` : undefined,
|
|
404
406
|
end_date: to ? `${to}T23:59:59` : undefined,
|
|
@@ -410,13 +412,14 @@ export async function auditCommand(argv) {
|
|
|
410
412
|
print('조건에 맞는 요청 기록이 없습니다.');
|
|
411
413
|
return;
|
|
412
414
|
}
|
|
413
|
-
table(['시각', '모델', '상태', '토큰(입/출)', '비용', '앱', '요청 미리보기', 'id'], data.items.map((i) => [
|
|
415
|
+
table(['시각', '모델', '상태', '토큰(입/출)', '비용', '앱', '사용자', '요청 미리보기', 'id'], data.items.map((i) => [
|
|
414
416
|
shortDate(i.created_at),
|
|
415
417
|
i.model ?? '-',
|
|
416
418
|
i.status,
|
|
417
419
|
`${i.input_tokens ?? 0}/${i.output_tokens ?? 0}`,
|
|
418
420
|
i.cost_krw == null ? '-' : formatKrw(i.cost_krw),
|
|
419
421
|
i.app_name ?? '-',
|
|
422
|
+
i.user_email ?? '-',
|
|
420
423
|
(i.request_prompt_preview ?? '').replace(/\s+/g, ' ').slice(0, 40),
|
|
421
424
|
i.id,
|
|
422
425
|
]));
|
package/dist/commands/misc.js
CHANGED
|
@@ -2,7 +2,7 @@ import { spawn } from 'node:child_process';
|
|
|
2
2
|
import { ENV_KEY_NAME } from '../config.js';
|
|
3
3
|
import { c, info, print } from '../ui.js';
|
|
4
4
|
import { requireApiKey } from './shared.js';
|
|
5
|
-
export const VERSION = '0.3.
|
|
5
|
+
export const VERSION = '0.3.3';
|
|
6
6
|
/** `eval "$(bizrouter env)"` exports the saved key for tools configured by `bizrouter setup`. */
|
|
7
7
|
export function envCommand() {
|
|
8
8
|
const key = requireApiKey();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bizrouter",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "BizRouter CLI - run Claude Code, Codex, OpenCode, and Hermes through BizRouter, operate the BizRouter console (API keys, usage, policies, audit logs) from the terminal or as an MCP server, and ask BizRouter Search for answers grounded in 50+ live data sources",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|