pi-ptc-meter 1.0.22 → 1.0.23
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 +18 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,14 +19,6 @@
|
|
|
19
19
|
|
|
20
20
|
完整配置(全部键与默认值):
|
|
21
21
|
|
|
22
|
-
```json
|
|
23
|
-
{
|
|
24
|
-
"threshold": 39,
|
|
25
|
-
"inject": true,
|
|
26
|
-
"notify": false
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
22
|
## 安装
|
|
31
23
|
|
|
32
24
|
```bash
|
|
@@ -45,6 +37,15 @@ pi install npm:pi-ptc-meter
|
|
|
45
37
|
|
|
46
38
|
其他:日志 `~/.pi/ptc-meter.jsonl`(1 MiB 截断,保留尾部整行);无环境变量。
|
|
47
39
|
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"threshold": 39,
|
|
43
|
+
"inject": true,
|
|
44
|
+
"notify": false
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
48
49
|
## 命令
|
|
49
50
|
|
|
50
51
|
| 命令 | 作用 |
|
|
@@ -107,14 +108,6 @@ Per-turn tool-call metering: records calls and duration, compares them with the
|
|
|
107
108
|
|
|
108
109
|
Full config (all keys and defaults):
|
|
109
110
|
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"threshold": 39,
|
|
113
|
-
"inject": true,
|
|
114
|
-
"notify": false
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
|
|
118
111
|
## Install
|
|
119
112
|
|
|
120
113
|
```bash
|
|
@@ -133,6 +126,15 @@ Config file `~/.pi/ptc-meter.json` (optional; invalid JSON falls back):
|
|
|
133
126
|
|
|
134
127
|
Also: log `~/.pi/ptc-meter.jsonl` (1 MiB truncation, tail-preserving); no environment variables.
|
|
135
128
|
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"threshold": 39,
|
|
132
|
+
"inject": true,
|
|
133
|
+
"notify": false
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
|
|
136
138
|
## Commands
|
|
137
139
|
|
|
138
140
|
| Command | Purpose |
|