@offbynan/pi-cursor-provider 0.3.0 → 0.3.1
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 +14 -1
- package/cursor-models-raw.json +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# pi-cursor-provider
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**This fork improves on the upstream in ten areas:**
|
|
4
|
+
|
|
5
|
+
- **Image support** — base64 `image_url` content parts are forwarded to Cursor end-to-end; the upstream silently drops them
|
|
6
|
+
- **`pi -p` exit fix** — non-interactive mode no longer hangs after printing a response
|
|
7
|
+
- **Dead eviction code removed** — unreachable 30-minute TTL eviction logic is gone
|
|
8
|
+
- **Accurate context windows** — per-model inference instead of a hardcoded 200 k for every model
|
|
9
|
+
- **Post-compaction sync** — cached checkpoint is cleared on `session_compact` so both sides stay in sync
|
|
10
|
+
- **Context window scaling** — token counts are scaled when Cursor enforces a tighter runtime cap than the model implies
|
|
11
|
+
- **Per-model cost estimation** — detailed price table (input / output / cache) covering all current model families
|
|
12
|
+
- **Model deduplication** — effort-suffix variants (`-low`, `-medium`, `-high`, …) are collapsed into one entry; pi's reasoning-level setting drives the suffix automatically
|
|
13
|
+
- **Thinking-tag filtering** — inline `<think>` / `<reasoning>` tags are stripped from the response and routed to `reasoning_content`
|
|
14
|
+
- **Structured debug logging** — opt-in JSONL event log (`PI_CURSOR_PROVIDER_DEBUG=1`) with a bundled timeline viewer
|
|
15
|
+
|
|
16
|
+
See the sections below for details.
|
|
4
17
|
|
|
5
18
|
[](https://www.npmjs.com/package/@offbynan/pi-cursor-provider)
|
|
6
19
|
|
package/cursor-models-raw.json
CHANGED
|
@@ -118,6 +118,20 @@
|
|
|
118
118
|
"contextWindow": 200000,
|
|
119
119
|
"maxTokens": 64000
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"id": "composer-2.5",
|
|
123
|
+
"name": "Composer 2.5",
|
|
124
|
+
"reasoning": false,
|
|
125
|
+
"contextWindow": 200000,
|
|
126
|
+
"maxTokens": 64000
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "composer-2.5-fast",
|
|
130
|
+
"name": "Composer 2.5 Fast",
|
|
131
|
+
"reasoning": false,
|
|
132
|
+
"contextWindow": 200000,
|
|
133
|
+
"maxTokens": 64000
|
|
134
|
+
},
|
|
121
135
|
{
|
|
122
136
|
"id": "default",
|
|
123
137
|
"name": "Auto",
|
package/package.json
CHANGED