pi-ptc-meter 1.0.5 → 1.0.7

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.en.md CHANGED
@@ -20,10 +20,14 @@ Turns "one tool call = one round trip" into visible numbers, and feeds them back
20
20
  | Log | `~/.pi/ptc-meter.jsonl` | keeps whole trailing lines over 1 MiB |
21
21
  | Language | Chinese | injected text and command output |
22
22
 
23
+ ## Credits
24
+
25
+ Original work; no upstream implementation. The "PTC (parallel tool calls)" discipline comes from the author's working rules; this package is its metering and feedback implementation.
26
+
23
27
  ## Install
24
28
 
25
29
  ```bash
26
- pi install npm:pi-ptc-meter@1.0.0
30
+ pi install npm:pi-ptc-meter
27
31
  pi install ./pi-ptc-meter
28
32
  ```
29
33
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-ptc-meter — 每轮工具调用计量与回灌(pi 扩展)
2
2
 
3
- 把「一次工具调用 = 一次往返」的浪费变成可见数字:统计每轮调用次数与时长,超阈值时把数字回灌给模型。
3
+ 把「一次工具调用 = 一次往返」的浪费变成可见数字:统计每轮调用次数与时长,每轮把数字回灌给模型(超阈值时单独标注)。
4
4
 
5
5
  ## 来源与借鉴
6
6
 
@@ -9,9 +9,9 @@
9
9
  ## 功能
10
10
 
11
11
  - 统计每轮工具调用次数、实际耗时、开工前声明的预计值。
12
- - 超阈值(默认 39 次/轮)时提示复核「是否有可合并的调用」。
12
+ - 每轮回灌计数、耗时与基线;超阈值(默认 39 次/轮)时标注需复核「是否有可合并的调用」。
13
13
  - 数字走对话尾部消息回灌,system 内只留逐字稳定的骨架(保护前缀缓存)。
14
- - 日志 `~/.pi/ptc-meter.jsonl`,每行含轮次、次数、时长、预计、会话 id。
14
+ - 日志 `~/.pi/ptc-meter.jsonl`,每行含轮次、次数、时长、预计次数、预计耗时、会话 id。
15
15
  - 命令 `/ptc [n]`:最近 n 轮的次数、时长、预计、中位、超标。
16
16
 
17
17
  ## 默认配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ptc-meter",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Measures tool-call batching per turn and feeds the numbers back to the model.",
5
5
  "type": "module",
6
6
  "license": "MIT",