@rahularya01/pi-cursor 1.4.3 → 1.4.5
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 +16 -0
- package/README.md +1 -0
- package/dist/index.js +20 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.5] - 2026-08-02
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **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%.
|
|
8
|
+
- 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.
|
|
9
|
+
|
|
10
|
+
## [1.4.4] - 2026-08-02
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Simple turns looked like they "used 20% context".** The visible context-mode hierarchy blurb is tiny; the real cost is Pi's system prompt + full tool/MCP JSON schemas (often tens of thousands of tokens) re-sent every turn. pi-cursor now:
|
|
15
|
+
- drops no-op context-mode injections (hierarchy boilerplate + empty/mode-only `<session_state>`)
|
|
16
|
+
- slims tool descriptions/parameter docs/enums before building Cursor MCP tool defs (**default on**; `PI_CURSOR_SLIM_TOOLS=0` to disable)
|
|
17
|
+
- records a request-size breakdown on every stream (`lifecycle` `request_size` + `/cursor.doctor` `lastRequestSize`)
|
|
18
|
+
|
|
3
19
|
## [1.4.3] - 2026-08-02
|
|
4
20
|
|
|
5
21
|
### Fixed
|
package/README.md
CHANGED
|
@@ -159,6 +159,7 @@ Pi Coding Agent → streamSimple (cursor-native)
|
|
|
159
159
|
| `PI_CURSOR_ACTIVE_BRIDGE_TTL_MS` | How long a mid-tool bridge stays parked waiting for tool results (default: 1 hour). |
|
|
160
160
|
| `PI_CURSOR_H2_CONNECT_TIMEOUT_MS` | h2-bridge initial connect kill (default: `30000`; `0` disables). |
|
|
161
161
|
| `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` | 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. |
|
|
162
163
|
| `PI_CURSOR_MIDPAUSE_REBUILD_MAX_AGE_MS` | Max age of mid-pause metadata used for full-history rebuild (default: 15 min). |
|
|
163
164
|
|
|
164
165
|
## Architecture notes
|