move pi-llm-performance to monorepo, update README and add deno.json
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
# pi-llm-performance
|
||||
|
||||
LLM performance metrics extension
|
||||
LLM performance metrics extension — captures and displays TTFT, prefill, and generation speeds from pi agent turns.
|
||||
|
||||
## How to install
|
||||
## Development
|
||||
|
||||
Add to your global pi settings:
|
||||
This package lives in the `pi-extensions` monorepo.
|
||||
|
||||
```bash
|
||||
pi install /Users/willem/dev/spikes/llm/custom-coding-agent/packages/pi-llm-performance
|
||||
pnpm install # workspace setup
|
||||
deno test # run tests
|
||||
```
|
||||
|
||||
Or add manually to `~/.pi/agent/settings.json`:
|
||||
## Usage
|
||||
|
||||
```
|
||||
Add to your pi settings (`~/.pi/agent/settings.json`):
|
||||
|
||||
```json
|
||||
{
|
||||
"packages": [
|
||||
"/Users/willem/dev/spikes/llm/custom-coding-agent/packages/pi-llm-performance",
|
||||
...
|
||||
"../dev/spikes/llm/monotonic-pi-extensions/packages/pi-llm-performance"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Then reload pi:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"@std/assert": "jsr:@std/assert@^1.0.0"
|
||||
},
|
||||
"tasks": {
|
||||
"test": "deno test src/"
|
||||
}
|
||||
}
|
||||
Generated
+5
@@ -14,5 +14,10 @@
|
||||
"@std/internal@1.0.12": {
|
||||
"integrity": "972a634fd5bc34b242024402972cd5143eac68d8dffaca5eaa4dba30ce17b027"
|
||||
}
|
||||
},
|
||||
"workspace": {
|
||||
"dependencies": [
|
||||
"jsr:@std/assert@1"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user