mirror of
https://git.sync.wtf/troed/oc-ls-stats.git
synced 2026-08-31 09:43:38 +03:00
- Fix PP calculation: use per-slot n_prompt_tokens during prefill state instead of global llamacpp:prompt_tokens_total from /metrics - Add isPrefilling flag and prefill tracking state (slotId, capturedTokens, startAt) - Add dedicated formatters: formatPps, formatTps, formatAvg, pad4 - Replace formatRate suffixes with raw number formatters - Display: PP | TPS | AVG with fixed-width 4-char padding - Slot polling every 2s with model query parameter - Debug logging to /tmp/oc-ls-stats-debug.log - Add .npmignore, TUIPLUGIN.md, test-debug-log.jsonl - Update AGENTS.md with slot state phases, PP calculation docs
21 lines
386 B
JSON
21 lines
386 B
JSON
{
|
|
"$schema": "https://json.schemastore.org/package.json",
|
|
"name": "@troed/oc-ls-stats",
|
|
"version": "0.0.40",
|
|
"type": "module",
|
|
"exports": {
|
|
"./tui": {
|
|
"import": "./tui.tsx"
|
|
}
|
|
},
|
|
"engines": {
|
|
"opencode": ">=1.3.14"
|
|
},
|
|
"peerDependencies": {
|
|
"@opencode-ai/plugin": "*",
|
|
"@opentui/core": "*",
|
|
"@opentui/solid": "*",
|
|
"solid-js": "*"
|
|
}
|
|
}
|