@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 CHANGED
@@ -1,6 +1,19 @@
1
1
  # pi-cursor-provider
2
2
 
3
- > **This fork improves on the upstream in ten areas:** image support, correct `pi -p` exit behaviour, removal of dead eviction code, accurate per-model context window inference, post-compaction session sync, context window scaling when Cursor enforces a tighter cap, per-model cost estimation, model deduplication with reasoning-effort mapping, thinking-tag filtering, and structured debug logging. See the sections below for details.
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
  [![npm version](https://img.shields.io/npm/v/@offbynan/pi-cursor-provider.svg)](https://www.npmjs.com/package/@offbynan/pi-cursor-provider)
6
19
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@offbynan/pi-cursor-provider",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Pi extension providing access to Cursor models via OAuth and a local OpenAI-compatible gRPC proxy",
5
5
  "type": "module",
6
6
  "license": "MIT",