pi-ptc-meter 1.0.18 → 1.0.19

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.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -73,17 +73,16 @@ flowchart TD
73
73
 
74
74
  ## 原理(小白)
75
75
 
76
- 像计步器:这一趟跑了多少步(调用了几次工具),下一趟出发前告诉你「上次 40 步,比平时多」,你自己决定要不要合并行程。
76
+ **像计步器**:这一趟跑了多少步(调用了几次工具),下一趟出发前告诉你「上次 40 步,比平时多」,你自己决定要不要合并行程。
77
77
 
78
78
  ```mermaid
79
- flowchart LR
80
- A[这一轮干活] --> B[计步:用了几次工具]
79
+ flowchart TD
80
+ A[干活:调用工具] --> B[计步:几次]
81
81
  B --> C[记下来]
82
- C --> D[下一轮开始时报数]
82
+ C --> D[下轮开始时报数]
83
83
  D --> A
84
84
  ```
85
85
 
86
-
87
86
  ## License
88
87
 
89
88
  MIT
@@ -157,15 +156,17 @@ flowchart TD
157
156
  D -->|nextTurn message<br/>calls / duration / deviation / median| A
158
157
  D -.->|system keeps a static skeleton| S[ptc_meter section]
159
158
 
159
+ ```
160
+
160
161
  ## How it works (plain words)
161
162
 
162
- Like a pedometer: counts how many steps (tool calls) this trip took, then tells you before the next trip that last one was 40 steps, above your usual — you decide whether to combine errands.
163
+ **Like a pedometer**: counts how many steps (tool calls) this trip took, then tells you before the next trip that last one was 40 steps, above your usual — you decide whether to combine errands.
163
164
 
164
165
  ```mermaid
165
- flowchart LR
166
- A[this turn's work] --> B[count: how many tool calls]
166
+ flowchart TD
167
+ A[work: tool calls] --> B[count: how many]
167
168
  B --> C[record it]
168
- C --> D[report at the start of the next turn]
169
+ C --> D[report next turn]
169
170
  D --> A
170
171
  ```
171
172
  flowchart TD
@@ -174,7 +175,6 @@ flowchart TD
174
175
  C --> D[before_agent_start<br/>settle previous turn]
175
176
  D -->|nextTurn message<br/>calls / duration / deviation / median| A
176
177
  D -.->|system keeps a static skeleton| S[ptc_meter section]
177
- ```
178
178
 
179
179
  ## License
180
180
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ptc-meter",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
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",