pi-ptc-meter 1.0.16 → 1.0.17
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 +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,24 @@
|
|
|
9
9
|
|
|
10
10
|
每轮工具调用计量:统计调用次数与耗时,并把数字回灌给模型。
|
|
11
11
|
|
|
12
|
+
## 快速事实
|
|
13
|
+
|
|
14
|
+
| 项 | 说明 |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| 配置文件 | ~/.pi/ptc-meter.json(可省略) |
|
|
17
|
+
| 命令行 | /ptc [n](默认 20) |
|
|
18
|
+
| 调用方式 | **全自动**:计数与回灌无需触发;命令只查看 |
|
|
19
|
+
|
|
20
|
+
完整配置(全部键与默认值):
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"threshold": 39,
|
|
25
|
+
"inject": true,
|
|
26
|
+
"notify": false
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
12
30
|
## 安装
|
|
13
31
|
|
|
14
32
|
```bash
|
|
@@ -63,6 +81,24 @@ MIT
|
|
|
63
81
|
|
|
64
82
|
Per-turn tool-call metering: counts calls and duration, then feeds the numbers back to the model.
|
|
65
83
|
|
|
84
|
+
## At a glance
|
|
85
|
+
|
|
86
|
+
| Item | Description |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| Config file | ~/.pi/ptc-meter.json (optional) |
|
|
89
|
+
| Commands | /ptc [n] (default 20) |
|
|
90
|
+
| Automation | **Fully automatic**: metering and feedback need no trigger; the command only reads |
|
|
91
|
+
|
|
92
|
+
Full config (all keys and defaults):
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"threshold": 39,
|
|
97
|
+
"inject": true,
|
|
98
|
+
"notify": false
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
66
102
|
## Install
|
|
67
103
|
|
|
68
104
|
```bash
|