@rahularya01/pi-cursor 1.4.4 → 1.4.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.6] - 2026-08-02
4
+
5
+ ### Fixed
6
+
7
+ - **Trivial conversational turns no longer send tool schemas.** Exact greetings and acknowledgements such as `hi`, `hello`, `thanks`, and `sounds good` cannot require repository/MCP tools, yet previously paid for all 48 contracts. These turns now omit tools entirely; actionable text such as `hi, inspect src` still receives the full compact tool surface.
8
+ - Adds a `tools_omitted` lifecycle event with the original tool count. On the measured 48-tool `hi` request this should reduce estimated input from ~16.7k tokens to ~8.5k (roughly 10% → 5% for the current model). The remaining floor is Pi's system/project prompt.
9
+
10
+ ## [1.4.5] - 2026-08-02
11
+
12
+ ### Fixed
13
+
14
+ - **Further reduced simple-turn context usage.** Cursor's protobuf `google.protobuf.Value` encoding amplifies verbose JSON Schema annotations. Slim mode now removes parameter-level descriptions and other annotation-only fields while preserving the executable tool contract: property names, types, required fields, unions, enums, and validation constraints. Function descriptions are reduced to one concise sentence. Synthetic verbose-tool payloads shrink by about 83%.
15
+ - Corrected `/cursor.doctor`'s `approxTokens` estimate. It previously double-counted tool schemas and system content already included in request/blob bytes. It now estimates from actual wire bytes only and reports `wireBytes` explicitly.
16
+
3
17
  ## [1.4.4] - 2026-08-02
4
18
 
5
19
  ### Fixed
package/README.md CHANGED
@@ -136,6 +136,7 @@ Pi Coding Agent → streamSimple (cursor-native)
136
136
 
137
137
  - **Transport:** Native Connect/protobuf streaming over HTTP/2 via `h2-bridge.mjs`.
138
138
  - **Context-Mode Normalization:** Side-channel user messages (such as context-mode routing or post-compaction `<session_state>` blocks) are safely normalized into the system prompt so Cursor models stay focused on your primary task.
139
+ - **Context-Efficient Tools:** MCP schemas are compacted without changing callable constraints, and exact conversational-only turns (`hi`, `thanks`, etc.) omit tools entirely. Actionable prompts always retain tools.
139
140
  - **Cross-Platform:** Tested and fully compatible with macOS, Linux, Windows, and WSL.
140
141
 
141
142
  ## Configuration
@@ -159,7 +160,7 @@ Pi Coding Agent → streamSimple (cursor-native)
159
160
  | `PI_CURSOR_ACTIVE_BRIDGE_TTL_MS` | How long a mid-tool bridge stays parked waiting for tool results (default: 1 hour). |
160
161
  | `PI_CURSOR_H2_CONNECT_TIMEOUT_MS` | h2-bridge initial connect kill (default: `30000`; `0` disables). |
161
162
  | `PI_CURSOR_H2_IDLE_TIMEOUT_MS` | h2-bridge activity idle kill. **Default `0` (disabled)**. Parent heartbeats reset it when enabled. |
162
- | `PI_CURSOR_SLIM_TOOLS` | Truncate verbose tool descriptions/parameter docs/enums on the Cursor MCP tool surface. **Default on**; set `0`/`false` for full schemas. |
163
+ | `PI_CURSOR_SLIM_TOOLS` | Compact Cursor MCP tool definitions: concise function purpose, no annotation-only parameter prose, full callable schema constraints preserved. **Default on**; set `0`/`false` for verbatim schemas. |
163
164
  | `PI_CURSOR_MIDPAUSE_REBUILD_MAX_AGE_MS` | Max age of mid-pause metadata used for full-history rebuild (default: 15 min). |
164
165
 
165
166
  ## Architecture notes